-
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.
Merge pull request #2166 from hashgraph/feature/2075
Feature/2075
- Loading branch information
Showing
49 changed files
with
2,311 additions
and
280 deletions.
There are no files selected for viewing
Binary file added
BIN
+24.5 KB
Methodology Library/iREC/Policies/iRec 10 Recipient (1684757087.809526003).policy
Binary file not shown.
Binary file added
BIN
+24.9 KB
Methodology Library/iREC/Policies/iRec 10 Source (1684756995.238994037).policy
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
import { BeforeCreate, Entity, Property } from '@mikro-orm/core'; | ||
import { BaseEntity } from '../models'; | ||
|
||
/** | ||
* Artifact collection | ||
*/ | ||
@Entity() | ||
export class ExternalDocument extends BaseEntity { | ||
/** | ||
* Block UUID | ||
*/ | ||
@Property({ nullable: true }) | ||
blockId?: string; | ||
|
||
/** | ||
* Policy id | ||
*/ | ||
@Property({ | ||
nullable: true, | ||
index: true, | ||
}) | ||
policyId?: string; | ||
|
||
/** | ||
* User | ||
*/ | ||
@Property({ nullable: true }) | ||
owner?: string; | ||
|
||
/** | ||
* Document Topic Id | ||
*/ | ||
@Property({ nullable: true }) | ||
documentTopicId?: string; | ||
|
||
/** | ||
* Policy Topic Id | ||
*/ | ||
@Property({ nullable: true }) | ||
policyTopicId?: string; | ||
|
||
/** | ||
* Instance Topic Id | ||
*/ | ||
@Property({ nullable: true }) | ||
instanceTopicId?: string; | ||
|
||
/** | ||
* Document Message | ||
*/ | ||
@Property({ nullable: true, type: 'unknown' }) | ||
documentMessage?: any; | ||
|
||
/** | ||
* Policy Message | ||
*/ | ||
@Property({ nullable: true, type: 'unknown' }) | ||
policyMessage?: any; | ||
|
||
/** | ||
* Policy Instance Message | ||
*/ | ||
@Property({ nullable: true, type: 'unknown' }) | ||
policyInstanceMessage?: any; | ||
|
||
/** | ||
* Schemas | ||
*/ | ||
@Property({ nullable: true, type: 'unknown' }) | ||
schemas?: any[]; | ||
|
||
/** | ||
* Schema | ||
*/ | ||
@Property({ nullable: true, type: 'unknown' }) | ||
schema?: any; | ||
|
||
/** | ||
* Schema Id | ||
*/ | ||
@Property({ nullable: true }) | ||
schemaId?: string; | ||
|
||
/** | ||
* Status | ||
*/ | ||
@Property({ nullable: true }) | ||
active?: boolean; | ||
|
||
/** | ||
* Last Message | ||
*/ | ||
@Property({ nullable: true }) | ||
lastMessage?: string; | ||
|
||
/** | ||
* Last Update | ||
*/ | ||
@Property({ nullable: true }) | ||
lastUpdate?: string; | ||
|
||
/** | ||
* Status | ||
*/ | ||
@Property({ nullable: true }) | ||
status?: string; | ||
|
||
/** | ||
* Default document values | ||
*/ | ||
@BeforeCreate() | ||
setDefaults() { | ||
this.lastMessage = this.lastMessage || ''; | ||
this.lastUpdate = this.lastUpdate || ''; | ||
this.active = this.active || false; | ||
} | ||
} |
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
Oops, something went wrong.