@twin.org/hierarchies-models 0.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +17 -0
- package/dist/es/factories/hierarchiesConnectorFactory.js +9 -0
- package/dist/es/factories/hierarchiesConnectorFactory.js.map +1 -0
- package/dist/es/index.js +37 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAccreditation.js +2 -0
- package/dist/es/models/IAccreditation.js.map +1 -0
- package/dist/es/models/IFederation.js +2 -0
- package/dist/es/models/IFederation.js.map +1 -0
- package/dist/es/models/IGovernance.js +2 -0
- package/dist/es/models/IGovernance.js.map +1 -0
- package/dist/es/models/IHierarchiesComponent.js +2 -0
- package/dist/es/models/IHierarchiesComponent.js.map +1 -0
- package/dist/es/models/IHierarchiesConnector.js +2 -0
- package/dist/es/models/IHierarchiesConnector.js.map +1 -0
- package/dist/es/models/IProperty.js +2 -0
- package/dist/es/models/IProperty.js.map +1 -0
- package/dist/es/models/IPropertyCondition.js +2 -0
- package/dist/es/models/IPropertyCondition.js.map +1 -0
- package/dist/es/models/IPropertyValue.js +2 -0
- package/dist/es/models/IPropertyValue.js.map +1 -0
- package/dist/es/models/IRootAuthority.js +4 -0
- package/dist/es/models/IRootAuthority.js.map +1 -0
- package/dist/es/models/ITimespan.js +4 -0
- package/dist/es/models/ITimespan.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js +2 -0
- package/dist/es/models/api/IHierarchiesAccreditationAddRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesAccreditationGetRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js +2 -0
- package/dist/es/models/api/IHierarchiesAccreditationGetResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesAccreditationRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesAccreditationsGetRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js +2 -0
- package/dist/es/models/api/IHierarchiesAccreditationsGetResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesAuthorityAddRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesAuthorityRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesFederationCreateRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesFederationCreateRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesFederationGetRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesFederationGetRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesFederationGetResponse.js +2 -0
- package/dist/es/models/api/IHierarchiesFederationGetResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesPropertiesGetRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js +2 -0
- package/dist/es/models/api/IHierarchiesPropertiesGetResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js +2 -0
- package/dist/es/models/api/IHierarchiesPropertiesValidateRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js +4 -0
- package/dist/es/models/api/IHierarchiesPropertiesValidateResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyAddRequest.js +2 -0
- package/dist/es/models/api/IHierarchiesPropertyAddRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyGetRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesPropertyGetRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyGetResponse.js +2 -0
- package/dist/es/models/api/IHierarchiesPropertyGetResponse.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js +4 -0
- package/dist/es/models/api/IHierarchiesPropertyRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js +2 -0
- package/dist/es/models/api/IHierarchiesPropertyValidateRequest.js.map +1 -0
- package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js +4 -0
- package/dist/es/models/api/IHierarchiesPropertyValidateResponse.js.map +1 -0
- package/dist/es/models/propertyConstraintType.js +29 -0
- package/dist/es/models/propertyConstraintType.js.map +1 -0
- package/dist/es/models/propertyType.js +17 -0
- package/dist/es/models/propertyType.js.map +1 -0
- package/dist/types/factories/hierarchiesConnectorFactory.d.ts +6 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/types/models/IAccreditation.d.ts +18 -0
- package/dist/types/models/IFederation.d.ts +24 -0
- package/dist/types/models/IGovernance.d.ts +28 -0
- package/dist/types/models/IHierarchiesComponent.d.ts +160 -0
- package/dist/types/models/IHierarchiesConnector.d.ts +159 -0
- package/dist/types/models/IProperty.d.ts +24 -0
- package/dist/types/models/IPropertyCondition.d.ts +19 -0
- package/dist/types/models/IPropertyValue.d.ts +14 -0
- package/dist/types/models/IRootAuthority.d.ts +13 -0
- package/dist/types/models/ITimespan.d.ts +13 -0
- package/dist/types/models/api/IHierarchiesAccreditationAddRequest.d.ts +19 -0
- package/dist/types/models/api/IHierarchiesAccreditationGetRequest.d.ts +22 -0
- package/dist/types/models/api/IHierarchiesAccreditationGetResponse.d.ts +10 -0
- package/dist/types/models/api/IHierarchiesAccreditationRemoveRequest.d.ts +22 -0
- package/dist/types/models/api/IHierarchiesAccreditationsGetRequest.d.ts +18 -0
- package/dist/types/models/api/IHierarchiesAccreditationsGetResponse.d.ts +10 -0
- package/dist/types/models/api/IHierarchiesAuthorityAddRequest.d.ts +23 -0
- package/dist/types/models/api/IHierarchiesAuthorityRemoveRequest.d.ts +18 -0
- package/dist/types/models/api/IHierarchiesFederationCreateRequest.d.ts +18 -0
- package/dist/types/models/api/IHierarchiesFederationGetRequest.d.ts +23 -0
- package/dist/types/models/api/IHierarchiesFederationGetResponse.d.ts +10 -0
- package/dist/types/models/api/IHierarchiesPropertiesGetRequest.d.ts +23 -0
- package/dist/types/models/api/IHierarchiesPropertiesGetResponse.d.ts +10 -0
- package/dist/types/models/api/IHierarchiesPropertiesValidateRequest.d.ts +30 -0
- package/dist/types/models/api/IHierarchiesPropertiesValidateResponse.d.ts +14 -0
- package/dist/types/models/api/IHierarchiesPropertyAddRequest.d.ts +19 -0
- package/dist/types/models/api/IHierarchiesPropertyGetRequest.d.ts +18 -0
- package/dist/types/models/api/IHierarchiesPropertyGetResponse.d.ts +10 -0
- package/dist/types/models/api/IHierarchiesPropertyRemoveRequest.d.ts +18 -0
- package/dist/types/models/api/IHierarchiesPropertyValidateRequest.d.ts +32 -0
- package/dist/types/models/api/IHierarchiesPropertyValidateResponse.d.ts +14 -0
- package/dist/types/models/propertyConstraintType.d.ts +29 -0
- package/dist/types/models/propertyType.d.ts +17 -0
- package/docs/changelog.md +11 -0
- package/docs/examples.md +74 -0
- package/docs/reference/index.md +46 -0
- package/docs/reference/interfaces/IAccreditation.md +27 -0
- package/docs/reference/interfaces/IFederation.md +36 -0
- package/docs/reference/interfaces/IGovernance.md +44 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationAddRequest.md +25 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationGetRequest.md +29 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationGetResponse.md +11 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationRemoveRequest.md +29 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationsGetRequest.md +23 -0
- package/docs/reference/interfaces/IHierarchiesAccreditationsGetResponse.md +11 -0
- package/docs/reference/interfaces/IHierarchiesAuthorityAddRequest.md +31 -0
- package/docs/reference/interfaces/IHierarchiesAuthorityRemoveRequest.md +23 -0
- package/docs/reference/interfaces/IHierarchiesComponent.md +613 -0
- package/docs/reference/interfaces/IHierarchiesConnector.md +607 -0
- package/docs/reference/interfaces/IHierarchiesFederationCreateRequest.md +23 -0
- package/docs/reference/interfaces/IHierarchiesFederationGetRequest.md +31 -0
- package/docs/reference/interfaces/IHierarchiesFederationGetResponse.md +11 -0
- package/docs/reference/interfaces/IHierarchiesPropertiesGetRequest.md +31 -0
- package/docs/reference/interfaces/IHierarchiesPropertiesGetResponse.md +11 -0
- package/docs/reference/interfaces/IHierarchiesPropertiesValidateRequest.md +41 -0
- package/docs/reference/interfaces/IHierarchiesPropertiesValidateResponse.md +17 -0
- package/docs/reference/interfaces/IHierarchiesPropertyAddRequest.md +25 -0
- package/docs/reference/interfaces/IHierarchiesPropertyGetRequest.md +23 -0
- package/docs/reference/interfaces/IHierarchiesPropertyGetResponse.md +11 -0
- package/docs/reference/interfaces/IHierarchiesPropertyRemoveRequest.md +23 -0
- package/docs/reference/interfaces/IHierarchiesPropertyValidateRequest.md +43 -0
- package/docs/reference/interfaces/IHierarchiesPropertyValidateResponse.md +17 -0
- package/docs/reference/interfaces/IProperty.md +35 -0
- package/docs/reference/interfaces/IPropertyCondition.md +27 -0
- package/docs/reference/interfaces/IPropertyValue.md +19 -0
- package/docs/reference/interfaces/IRootAuthority.md +19 -0
- package/docs/reference/interfaces/ITimespan.md +19 -0
- package/docs/reference/type-aliases/PropertyConstraintType.md +5 -0
- package/docs/reference/type-aliases/PropertyType.md +5 -0
- package/docs/reference/variables/HierarchiesConnectorFactory.md +5 -0
- package/docs/reference/variables/PropertyConstraintType.md +37 -0
- package/docs/reference/variables/PropertyType.md +19 -0
- package/locales/en.json +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertiesValidateRequest
|
|
2
|
+
|
|
3
|
+
Request to validate properties for a federation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The request path parameters.
|
|
12
|
+
|
|
13
|
+
#### federationId
|
|
14
|
+
|
|
15
|
+
> **federationId**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the federation.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body {#body}
|
|
22
|
+
|
|
23
|
+
> **body**: `object`
|
|
24
|
+
|
|
25
|
+
The request data.
|
|
26
|
+
|
|
27
|
+
#### accreditedById
|
|
28
|
+
|
|
29
|
+
> **accreditedById**: `string`
|
|
30
|
+
|
|
31
|
+
The accredited by id.
|
|
32
|
+
|
|
33
|
+
#### propertiesToValidate
|
|
34
|
+
|
|
35
|
+
> **propertiesToValidate**: `object`
|
|
36
|
+
|
|
37
|
+
The properties to validate.
|
|
38
|
+
|
|
39
|
+
##### Index Signature
|
|
40
|
+
|
|
41
|
+
\[`propertyName`: `string`\]: [`IPropertyValue`](IPropertyValue.md)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertiesValidateResponse
|
|
2
|
+
|
|
3
|
+
Response for properties validation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### body {#body}
|
|
8
|
+
|
|
9
|
+
> **body**: `object`
|
|
10
|
+
|
|
11
|
+
The response body.
|
|
12
|
+
|
|
13
|
+
#### valid
|
|
14
|
+
|
|
15
|
+
> **valid**: `boolean`
|
|
16
|
+
|
|
17
|
+
Whether all provided properties are valid.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertyAddRequest
|
|
2
|
+
|
|
3
|
+
Request to add a property to a federation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The request path parameters.
|
|
12
|
+
|
|
13
|
+
#### federationId
|
|
14
|
+
|
|
15
|
+
> **federationId**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the federation.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body {#body}
|
|
22
|
+
|
|
23
|
+
> **body**: [`IProperty`](IProperty.md)
|
|
24
|
+
|
|
25
|
+
The request data.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertyGetRequest
|
|
2
|
+
|
|
3
|
+
Request to get a property from a federation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The request path parameters.
|
|
12
|
+
|
|
13
|
+
#### federationId
|
|
14
|
+
|
|
15
|
+
> **federationId**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the federation.
|
|
18
|
+
|
|
19
|
+
#### propertyName
|
|
20
|
+
|
|
21
|
+
> **propertyName**: `string`
|
|
22
|
+
|
|
23
|
+
The property name to get.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertyRemoveRequest
|
|
2
|
+
|
|
3
|
+
Request to remove a property from a federation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The request path parameters.
|
|
12
|
+
|
|
13
|
+
#### federationId
|
|
14
|
+
|
|
15
|
+
> **federationId**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the federation.
|
|
18
|
+
|
|
19
|
+
#### propertyName
|
|
20
|
+
|
|
21
|
+
> **propertyName**: `string`
|
|
22
|
+
|
|
23
|
+
The property name to remove.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertyValidateRequest
|
|
2
|
+
|
|
3
|
+
Request to validate a property for a federation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The request path parameters.
|
|
12
|
+
|
|
13
|
+
#### federationId
|
|
14
|
+
|
|
15
|
+
> **federationId**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the federation.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body {#body}
|
|
22
|
+
|
|
23
|
+
> **body**: `object`
|
|
24
|
+
|
|
25
|
+
The request data.
|
|
26
|
+
|
|
27
|
+
#### accreditedById
|
|
28
|
+
|
|
29
|
+
> **accreditedById**: `string`
|
|
30
|
+
|
|
31
|
+
The accredited by id.
|
|
32
|
+
|
|
33
|
+
#### propertyName
|
|
34
|
+
|
|
35
|
+
> **propertyName**: `string`
|
|
36
|
+
|
|
37
|
+
The property name to validate.
|
|
38
|
+
|
|
39
|
+
#### propertyValue
|
|
40
|
+
|
|
41
|
+
> **propertyValue**: [`IPropertyValue`](IPropertyValue.md)
|
|
42
|
+
|
|
43
|
+
The property value to validate.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IHierarchiesPropertyValidateResponse
|
|
2
|
+
|
|
3
|
+
Response for property validation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### body {#body}
|
|
8
|
+
|
|
9
|
+
> **body**: `object`
|
|
10
|
+
|
|
11
|
+
The response body.
|
|
12
|
+
|
|
13
|
+
#### valid
|
|
14
|
+
|
|
15
|
+
> **valid**: `boolean`
|
|
16
|
+
|
|
17
|
+
Whether the provided property is valid.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IProperty
|
|
2
|
+
|
|
3
|
+
Represents a named property with optional allowed values, a condition, and a validity timespan.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### name {#name}
|
|
8
|
+
|
|
9
|
+
> **name**: `string`
|
|
10
|
+
|
|
11
|
+
The property name, can be dotted form.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### allowedValues? {#allowedvalues}
|
|
16
|
+
|
|
17
|
+
> `optional` **allowedValues?**: [`IPropertyValue`](IPropertyValue.md)[]
|
|
18
|
+
|
|
19
|
+
The allowed values for this property, if empty, any value is allowed.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### condition? {#condition}
|
|
24
|
+
|
|
25
|
+
> `optional` **condition?**: [`IPropertyCondition`](IPropertyCondition.md)
|
|
26
|
+
|
|
27
|
+
The condition for this property.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### timespan? {#timespan}
|
|
32
|
+
|
|
33
|
+
> `optional` **timespan?**: [`ITimespan`](ITimespan.md)
|
|
34
|
+
|
|
35
|
+
The timespan for this property.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interface: IPropertyCondition
|
|
2
|
+
|
|
3
|
+
Describes the condition and constraints of a property within a hierarchy.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### type {#type}
|
|
8
|
+
|
|
9
|
+
> **type**: [`PropertyType`](../type-aliases/PropertyType.md)
|
|
10
|
+
|
|
11
|
+
The property type.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### value {#value}
|
|
16
|
+
|
|
17
|
+
> **value**: `string`
|
|
18
|
+
|
|
19
|
+
The property value.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### constraint? {#constraint}
|
|
24
|
+
|
|
25
|
+
> `optional` **constraint?**: [`PropertyConstraintType`](../type-aliases/PropertyConstraintType.md)
|
|
26
|
+
|
|
27
|
+
The constraint for this property.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IPropertyValue
|
|
2
|
+
|
|
3
|
+
Describes the value of a property.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### type {#type}
|
|
8
|
+
|
|
9
|
+
> **type**: [`PropertyType`](../type-aliases/PropertyType.md)
|
|
10
|
+
|
|
11
|
+
The property type.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### value {#value}
|
|
16
|
+
|
|
17
|
+
> **value**: `string`
|
|
18
|
+
|
|
19
|
+
The property value.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IRootAuthority
|
|
2
|
+
|
|
3
|
+
Represents a root authority in a federation hierarchy.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### id {#id}
|
|
8
|
+
|
|
9
|
+
> **id**: `string`
|
|
10
|
+
|
|
11
|
+
The ID of the root authority.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### accountId {#accountid}
|
|
16
|
+
|
|
17
|
+
> **accountId**: `string`
|
|
18
|
+
|
|
19
|
+
The account ID of the root authority.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: ITimespan
|
|
2
|
+
|
|
3
|
+
Represents a timespan in a federation hierarchy.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### validFrom? {#validfrom}
|
|
8
|
+
|
|
9
|
+
> `optional` **validFrom?**: `string`
|
|
10
|
+
|
|
11
|
+
Valid from as bigint string so it can be serialized accurately.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### validTo? {#validto}
|
|
16
|
+
|
|
17
|
+
> `optional` **validTo?**: `string`
|
|
18
|
+
|
|
19
|
+
Valid to as bigint string so it can be serialized accurately.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: PropertyConstraintType
|
|
2
|
+
|
|
3
|
+
> **PropertyConstraintType** = *typeof* [`PropertyConstraintType`](../variables/PropertyConstraintType.md)\[keyof *typeof* [`PropertyConstraintType`](../variables/PropertyConstraintType.md)\]
|
|
4
|
+
|
|
5
|
+
Type representing the possible condition types.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Variable: PropertyConstraintType
|
|
2
|
+
|
|
3
|
+
> `const` **PropertyConstraintType**: `object`
|
|
4
|
+
|
|
5
|
+
Defines the types of constraints that can be applied to federation properties.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Contains {#contains}
|
|
10
|
+
|
|
11
|
+
> `readonly` **Contains**: `"Contains"` = `"Contains"`
|
|
12
|
+
|
|
13
|
+
Value must contain a specific substring.
|
|
14
|
+
|
|
15
|
+
### StartsWith {#startswith}
|
|
16
|
+
|
|
17
|
+
> `readonly` **StartsWith**: `"StartsWith"` = `"StartsWith"`
|
|
18
|
+
|
|
19
|
+
Value must start with a specific substring.
|
|
20
|
+
|
|
21
|
+
### EndsWith {#endswith}
|
|
22
|
+
|
|
23
|
+
> `readonly` **EndsWith**: `"EndsWith"` = `"EndsWith"`
|
|
24
|
+
|
|
25
|
+
Value must end with a specific substring.
|
|
26
|
+
|
|
27
|
+
### GreaterThan {#greaterthan}
|
|
28
|
+
|
|
29
|
+
> `readonly` **GreaterThan**: `"GreaterThan"` = `"GreaterThan"`
|
|
30
|
+
|
|
31
|
+
Value must be greater than a specific value.
|
|
32
|
+
|
|
33
|
+
### LessThan {#lessthan}
|
|
34
|
+
|
|
35
|
+
> `readonly` **LessThan**: `"LessThan"` = `"LessThan"`
|
|
36
|
+
|
|
37
|
+
Value must be less than a specific value.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: PropertyType
|
|
2
|
+
|
|
3
|
+
> `const` **PropertyType**: `object`
|
|
4
|
+
|
|
5
|
+
Defines the supported data types for property values.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### String {#string}
|
|
10
|
+
|
|
11
|
+
> `readonly` **String**: `"String"` = `"String"`
|
|
12
|
+
|
|
13
|
+
Value is a string.
|
|
14
|
+
|
|
15
|
+
### BigInt {#bigint}
|
|
16
|
+
|
|
17
|
+
> `readonly` **BigInt**: `"BigInt"` = `"BigInt"`
|
|
18
|
+
|
|
19
|
+
Value is a bigint.
|
package/locales/en.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@twin.org/hierarchies-models",
|
|
3
|
+
"version": "0.9.0-next.1",
|
|
4
|
+
"description": "Shared interfaces, request and response models, and connector contracts.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-hierarchies.git",
|
|
8
|
+
"directory": "packages/hierarchies-models"
|
|
9
|
+
},
|
|
10
|
+
"author": "martyn.janes@iota.org",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@twin.org/core": "0.9.0-next.1",
|
|
18
|
+
"@twin.org/nameof": "0.9.0-next.1",
|
|
19
|
+
"@twin.org/web": "0.9.0-next.1"
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/es/index.js",
|
|
22
|
+
"types": "./dist/types/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"import": "./dist/es/index.js",
|
|
27
|
+
"default": "./dist/es/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist/es",
|
|
32
|
+
"dist/types",
|
|
33
|
+
"locales",
|
|
34
|
+
"docs"
|
|
35
|
+
],
|
|
36
|
+
"keywords": [
|
|
37
|
+
"twin",
|
|
38
|
+
"trade",
|
|
39
|
+
"iota",
|
|
40
|
+
"framework",
|
|
41
|
+
"blockchain",
|
|
42
|
+
"hierarchies",
|
|
43
|
+
"tokens",
|
|
44
|
+
"assets",
|
|
45
|
+
"models",
|
|
46
|
+
"types",
|
|
47
|
+
"schemas"
|
|
48
|
+
],
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "git+https://github.com/iotaledger/twin-hierarchies/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://twindev.org"
|
|
53
|
+
}
|