-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #1051 Created token api return all tokens from other StandardRegistry fixed issue with filters for trust chain * #1055 Update block permissions * #1055 Update block permissions * GitBook: [#116] Corrected Updated Schema API * GitBook: [#115] Added documentValidatorBlock Co-authored-by: Stepan Kiryakov <[email protected]> Co-authored-by: prernaa.agarwal <[email protected]>
- Loading branch information
1 parent
b452ce2
commit 571fa0f
Showing
49 changed files
with
940 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
}, | ||
"author": "Envision Blockchain Solutions <[email protected]>", | ||
"dependencies": { | ||
"@guardian/common": "^2.2.0", | ||
"@guardian/interfaces": "^2.2.0", | ||
"@guardian/common": "^2.2.1", | ||
"@guardian/interfaces": "^2.2.1", | ||
"dotenv": "^16.0.0", | ||
"express": "^4.17.1", | ||
"jszip": "^3.7.1", | ||
|
@@ -49,5 +49,5 @@ | |
"start": "node dist/index.js", | ||
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml" | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.2.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ | |
}, | ||
"author": "Envision Blockchain Solutions <[email protected]>", | ||
"dependencies": { | ||
"@guardian/common": "^2.2.0", | ||
"@guardian/interfaces": "^2.2.0", | ||
"@guardian/common": "^2.2.1", | ||
"@guardian/interfaces": "^2.2.1", | ||
"dotenv": "^16.0.0", | ||
"jsonwebtoken": "^8.5.1", | ||
"module-alias": "^2.2.2", | ||
|
@@ -44,5 +44,5 @@ | |
"start": "node dist/index.js", | ||
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml" | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.2.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"author": "Envision Blockchain Solutions <[email protected]>", | ||
"dependencies": { | ||
"@guardian/interfaces": "^2.2.0", | ||
"@guardian/interfaces": "^2.2.1", | ||
"nats": "^2.6.1", | ||
"reflect-metadata": "^0.1.13", | ||
"zlib": "^1.0.5" | ||
|
@@ -27,5 +27,5 @@ | |
"prepare": "npm run build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.2.1" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
docs/available-policy-workflow-blocks/documentvalidatorblock.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# documentValidatorBlock | ||
|
||
This Block is to validate documents, including linked documents. This block returns an error if at least one of the checks don’t pass. It can be placed as a ‘child’ document, or as a link in the sequence of the blocks. | ||
|
||
![](<../.gitbook/assets/image (13).png>) | ||
|
||
### Properties | ||
|
||
| Block Property | Definition | Example Input | Status | | ||
| --------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------ | | ||
| tag | Unique name for the logic block. | documentValidatorBlock | | | ||
| permissions | Which entity has rights to interact at this part of the workflow. | VVB | | | ||
| defaultActive | Shows whether this block is active at this time and whether it needs to be shown. | Checked or unchecked. | | | ||
| On errors | Called if the system error has occurs in the Block | <p></p><ul><li>No action</li><li>Retry</li><li>Go to step</li><li>Go to tag</li></ul> | | | ||
| stop Propagation | End processing here, don't pass control to the next block. | Checked or unchecked. | | | ||
| DocumentType | Type of the documents to be validated. | <p>· VC Document</p><p>· VP Document</p><p>· Related VC<br>Document</p><p>. Related VP Document</p> | | | ||
| Check Schema | Validates schema documents. | Schema | | | ||
| Check Own Document | If ‘true’ validates document owners. | True / False | | | ||
| Check Assign Document | If ‘true’ validates document owners. | True / False | | | ||
| Conditions | Array containing conditions for validation. | Array | | | ||
|
||
|
||
|
||
![](<../.gitbook/assets/image (23).png>) | ||
|
||
### Document Type | ||
|
||
The following document types are supported: | ||
|
||
1. VC Document : validates the main document and its type (Verifiable Credential). | ||
2. VP Document : validates the main document and its type (Verifiable Presentation). | ||
3. Related VC Document : validates the document linked to the main document and its type (Verifiable Credential) | ||
4. Related VP Document : validates the document linked to the main document and its type (Verifiable Presentation) | ||
|
||
### Conditions | ||
|
||
#### Condition N | ||
|
||
#### Type: | ||
|
||
1. Equal – resolves to ‘true’ if value of the field is equal the the content of the Value parameter. | ||
2. Not Equal – resolves to ‘true’ if value of the field is NOT equal the the content of the Value parameter. | ||
3. In – resolves to ‘true’ if value of the field is present the the array. | ||
4. Not In – resolves to ‘true’ if value of the field is present the the array. | ||
|
||
#### Field :  | ||
|
||
This field of the document to validates the Value parameter. | ||
|
||
#### Value: | ||
|
||
The content of this parameter is compared to the content of the Field. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
docs/schema-creation-using-the-guardian-apis/updating-schema.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
99 changes: 99 additions & 0 deletions
99
...ation/blocks/documents/document-validator-config/document-validator-config.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<!-- UI Prop --> | ||
<table class="properties" [attr.readonly]="readonly" *ngIf="block"> | ||
<tr class="propRow"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Document Type</td> | ||
<td class="propRowCell"> | ||
<mat-select [(value)]="block.documentType" [disabled]="readonly"> | ||
<mat-option value="vc-document">VC Document</mat-option> | ||
<mat-option value="vp-document">VP Document</mat-option> | ||
<mat-option value="related-vc-document">Related VC Document</mat-option> | ||
<mat-option value="related-vp-document">Related VP Document</mat-option> | ||
</mat-select> | ||
</td> | ||
</tr> | ||
<tr class="propRow"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Check Schema</td> | ||
<td class="propRowCell"> | ||
<mat-select [(value)]="block.schema" [disabled]="readonly"> | ||
<mat-option *ngFor="let schema of schemas" [value]="schema.iri"> | ||
{{schema.name}} | ||
<span *ngIf="schema.version"> ({{schema.version}})</span> | ||
<span *ngIf="schema.status"> ({{schema.status}})</span> | ||
</mat-option> | ||
</mat-select> | ||
</td> | ||
</tr> | ||
<tr class="propRow"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Check Owner Document</td> | ||
<td class="propRowCell"> | ||
<input type="checkbox" [(ngModel)]="block.checkOwnerDocument" [readonly]="readonly"> | ||
</td> | ||
</tr> | ||
<tr class="propRow"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Check Assign Document</td> | ||
<td class="propRowCell"> | ||
<input type="checkbox" [(ngModel)]="block.checkAssignDocument" [readonly]="readonly"> | ||
</td> | ||
</tr> | ||
<tr class="propHeader"> | ||
<td class="propRowCol" (click)="onHide(propHidden, 'conditionsGroup')" | ||
[attr.collapse]="propHidden.conditionsGroup"> | ||
<mat-icon> | ||
expand_more | ||
</mat-icon> | ||
</td> | ||
<td class="propHeaderCell cellName">Conditions</td> | ||
<td class="propHeaderCell"> | ||
<div class="propAdd" (click)="addCondition()"> | ||
<mat-icon>add</mat-icon> | ||
<span>Add Condition</span> | ||
</div> | ||
</td> | ||
</tr> | ||
<ng-container *ngFor="let condition of block.conditions; let i=index"> | ||
<tr class="propRow" [attr.collapse]="propHidden.conditionsGroup"> | ||
<td class="propRowCol" (click)="onHide(propHidden.conditions, i)" | ||
[attr.collapse]="propHidden.conditions[i]"> | ||
<mat-icon> | ||
expand_more | ||
</mat-icon> | ||
</td> | ||
<td class="propRowCell cellName">Condition {{i}}</td> | ||
<td class="propRowCell"> | ||
<span *ngIf="condition.field && condition.type && condition.value"> | ||
{{condition.field}} {{condition.type}} {{condition.value}} | ||
</span> | ||
</td> | ||
</tr> | ||
<tr class="propRow subRow" [attr.collapse]="propHidden.conditionsGroup || propHidden.conditions[i]"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Type</td> | ||
<td class="propRowCell"> | ||
<mat-select [(value)]="condition.type" [disabled]="readonly"> | ||
<mat-option value="equal">Equal</mat-option> | ||
<mat-option value="not_equal">Not Equal</mat-option> | ||
<mat-option value="in">In</mat-option> | ||
<mat-option value="not_in">Not In</mat-option> | ||
</mat-select> | ||
</td> | ||
</tr> | ||
<tr class="propRow subRow" [attr.collapse]="propHidden.conditionsGroup || propHidden.conditions[i]"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Field</td> | ||
<td class="propRowCell"> | ||
<input [(ngModel)]="condition.field" [readonly]="readonly"> | ||
</td> | ||
</tr> | ||
<tr class="propRow subRow" [attr.collapse]="propHidden.conditionsGroup || propHidden.conditions[i]"> | ||
<td class="propRowCol"></td> | ||
<td class="propRowCell cellName">Value</td> | ||
<td class="propRowCell"> | ||
<input [(ngModel)]="condition.value" [readonly]="readonly"> | ||
</td> | ||
</tr> | ||
</ng-container> | ||
</table> |
Oops, something went wrong.