1
-
2
1
export interface IPaginationDetails {
3
2
totalItems : number ;
4
3
hasNextPage : boolean ;
@@ -8,111 +7,120 @@ export interface IPaginationDetails {
8
7
lastPage : number ;
9
8
}
10
9
10
+ export interface ISchemasWithPagination extends IPaginationDetails {
11
+ data : ISchemaData [ ] ;
12
+ }
13
+
14
+ export interface ISchemaData extends ISchema {
15
+ orgId : string ;
16
+ }
11
17
12
- export interface ISchemasWithPagination extends IPaginationDetails {
13
- data : ISchemaData [ ] ;
14
- }
18
+ export interface ISchemaDetails extends IPaginationDetails {
19
+ data : ISchema [ ] ;
20
+ }
15
21
16
- export interface ISchemaData extends ISchema {
17
- orgId : string ;
18
- }
22
+ export interface IW3CSchema {
23
+ response : {
24
+ did : string ;
25
+ schemaId : string ;
26
+ schemaTxnHash : string ;
27
+ resourceTxnHash : string ;
28
+ } ;
29
+ }
30
+ interface ISchema {
31
+ createDateTime : Date ;
32
+ createdBy : string ;
33
+ name : string ;
34
+ schemaLedgerId : string ;
35
+ version : string ;
36
+ attributes : string ;
37
+ publisherDid : string ;
38
+ issuerId : string ;
39
+ }
19
40
20
- export interface ISchemaDetails extends IPaginationDetails {
21
- data : ISchema [ ] ;
22
- }
41
+ interface Attribute {
42
+ attributeName : string ;
43
+ schemaDataType : string ;
44
+ displayName : string ;
45
+ isRequired : boolean ;
46
+ }
23
47
24
- export interface IW3CSchema {
25
- response : {
26
- did : string ,
27
- schemaId : string ,
28
- schemaTxnHash : string ,
29
- resourceTxnHash : string
30
- }
31
- }
32
- interface ISchema {
33
- createDateTime : Date ;
34
- createdBy : string ;
48
+ export interface ISchemaDetail {
49
+ id : string ;
50
+ createDateTime : string ;
51
+ createdBy : string ;
52
+ lastChangedDateTime : string ;
53
+ lastChangedBy : string ;
54
+ name : string ;
55
+ version : string ;
56
+ attributes : Attribute [ ] ;
57
+ schemaLedgerId : string ;
58
+ publisherDid : string ;
59
+ issuerId : string ;
60
+ orgId : string ;
61
+ ledgerId : string ;
62
+ type : string ;
63
+ isSchemaArchived : boolean ;
64
+ organisation : {
35
65
name : string ;
36
- schemaLedgerId : string ;
37
- version : string ;
38
- attributes : string ;
39
- publisherDid : string ;
40
- issuerId : string ;
41
- }
42
-
43
- interface Attribute {
44
- attributeName : string ;
45
- schemaDataType : string ;
46
- displayName : string ;
47
- isRequired : boolean ;
48
- }
49
-
50
- export interface ISchemaDetail {
51
- id : string ;
52
- createDateTime : string ;
53
- createdBy : string ;
54
- lastChangedDateTime : string ;
55
- lastChangedBy : string ;
66
+ } ;
67
+ }
68
+
69
+ export interface IPlatformSchemas {
70
+ schemasCount : number ;
71
+ schemasResult : ISchemaData [ ] ;
72
+ }
73
+
74
+ export interface ICredDefData {
75
+ tag : string ;
76
+ credentialDefinitionId : string ;
77
+ schemaLedgerId : string ;
78
+ revocable : boolean ;
79
+ createDateTime ?: Date ;
80
+ }
81
+
82
+ export interface ICredDefWithPagination extends IPaginationDetails {
83
+ data : ICredDefData [ ] ;
84
+ }
85
+
86
+ export interface ICredDefWithCount {
87
+ credDefCount : number ;
88
+ credDefResult : ICredDefData [ ] ;
89
+ }
90
+
91
+ export interface INetworkUrl {
92
+ networkUrl : string ;
93
+ }
94
+
95
+ export interface ISchemaFields {
96
+ name ?: string ;
97
+ schemaName ?: string ;
98
+ attributes ?: IIndySchemaAttributesValue [ ] ;
99
+ schemaAttributes ?: IW3CSchemaAttributesValue [ ] ;
100
+ endorse ?: boolean ;
101
+ version ?: string ;
102
+ did ?: string ;
103
+ description ?: string ;
104
+ }
105
+
106
+ interface IIndySchemaAttributesValue {
107
+ attributeName : string ;
108
+ schemaDataType : string ;
109
+ displayName : string ;
110
+ }
111
+
112
+ interface IW3CSchemaAttributesValue {
113
+ title : string ;
114
+ type : string ;
115
+ }
116
+
117
+ export interface ISchemaDataWithOrg extends ISchemaData {
118
+ organisation : {
56
119
name : string ;
57
- version : string ;
58
- attributes : Attribute [ ] ;
59
- schemaLedgerId : string ;
60
- publisherDid : string ;
61
- issuerId : string ;
62
- orgId : string ;
63
- ledgerId : string ;
64
- type : string ;
65
- isSchemaArchived : boolean ,
66
- organisation : {
67
- name : string
68
- }
69
- }
70
-
71
- export interface IPlatformSchemas {
72
- schemasCount : number ;
73
- schemasResult : ISchemaData [ ] ;
74
- }
75
-
76
- export interface ICredDefData {
77
- tag : string ;
78
- credentialDefinitionId : string ;
79
- schemaLedgerId : string ;
80
- revocable : boolean ;
81
- createDateTime ?: Date ;
82
- }
83
-
84
- export interface ICredDefWithPagination extends IPaginationDetails {
85
- data : ICredDefData [ ] ;
86
- }
87
-
88
- export interface ICredDefWithCount {
89
- credDefCount : number ;
90
- credDefResult : ICredDefData [ ] ;
91
- }
92
-
93
- export interface INetworkUrl {
94
- networkUrl : string ;
95
- }
96
-
97
- export interface ISchemaFields {
98
- name ?: string ;
99
- schemaName ?: string ;
100
- attributes ?: IIndySchemaAttributesValue [ ] ;
101
- schemaAttributes ?: IW3CSchemaAttributesValue [ ] ;
102
- endorse ?: boolean ;
103
- version ?: string ;
104
- did ?: string ;
105
- description ?: string ;
106
- }
107
-
108
- interface IIndySchemaAttributesValue {
109
- attributeName : string ;
110
- schemaDataType : string ;
111
- displayName : string ;
112
- }
113
-
114
- interface IW3CSchemaAttributesValue {
115
- title : string ;
116
- type : string ;
117
- }
118
-
120
+ } ;
121
+ }
122
+
123
+ export interface IPlatformSchemasWithOrg {
124
+ schemasCount : number ;
125
+ schemasResult : ISchemaDataWithOrg [ ] ;
126
+ }
0 commit comments