@twin.org/standards-unece 0.0.1-next.29 → 0.0.1-next.31
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/dist/cjs/index.cjs +15 -5
- package/dist/esm/index.mjs +15 -6
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/uneceContexts.d.ts +13 -0
- package/dist/types/models/uneceTypes.d.ts +0 -4
- package/docs/changelog.md +1 -1
- package/docs/reference/index.md +2 -0
- package/docs/reference/type-aliases/UneceContexts.md +5 -0
- package/docs/reference/variables/UneceContexts.md +13 -0
- package/docs/reference/variables/UneceTypes.md +0 -6
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -24027,14 +24027,23 @@ const UneceWorkflowStatusCodes = {
|
|
|
24027
24027
|
// Copyright 2024 IOTA Stiftung.
|
|
24028
24028
|
// SPDX-License-Identifier: Apache-2.0.
|
|
24029
24029
|
/**
|
|
24030
|
-
* The types of UNECE
|
|
24030
|
+
* The types of UNECE contexts.
|
|
24031
24031
|
*/
|
|
24032
24032
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24033
|
-
const
|
|
24033
|
+
const UneceContexts = {
|
|
24034
24034
|
/**
|
|
24035
24035
|
* Context Root.
|
|
24036
24036
|
*/
|
|
24037
|
-
ContextRoot: "https://vocabulary.uncefact.org/"
|
|
24037
|
+
ContextRoot: "https://vocabulary.uncefact.org/"
|
|
24038
|
+
};
|
|
24039
|
+
|
|
24040
|
+
// Copyright 2024 IOTA Stiftung.
|
|
24041
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
24042
|
+
/**
|
|
24043
|
+
* The types of UNECE data.
|
|
24044
|
+
*/
|
|
24045
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24046
|
+
const UneceTypes = {
|
|
24038
24047
|
/**
|
|
24039
24048
|
* Represents a UN/CEFACT document.
|
|
24040
24049
|
*/
|
|
@@ -24055,11 +24064,11 @@ class UneceDataTypes {
|
|
|
24055
24064
|
* Register all the data types.
|
|
24056
24065
|
*/
|
|
24057
24066
|
static registerTypes() {
|
|
24058
|
-
dataCore.DataTypeHandlerFactory.register(`${
|
|
24067
|
+
dataCore.DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Document}`, () => ({
|
|
24059
24068
|
type: UneceTypes.Document,
|
|
24060
24069
|
defaultValue: {}
|
|
24061
24070
|
}));
|
|
24062
|
-
dataCore.DataTypeHandlerFactory.register(`${
|
|
24071
|
+
dataCore.DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Consignment}`, () => ({
|
|
24063
24072
|
type: UneceTypes.Consignment,
|
|
24064
24073
|
defaultValue: {}
|
|
24065
24074
|
}));
|
|
@@ -24078,6 +24087,7 @@ exports.UNECE_TRANSPORT_MEANS_TYPE_CODES = UNECE_TRANSPORT_MEANS_TYPE_CODES;
|
|
|
24078
24087
|
exports.UNECE_TRANSPORT_MODE_CODES = UNECE_TRANSPORT_MODE_CODES;
|
|
24079
24088
|
exports.UNECE_WORKFLOW_STATUS_CODES = UNECE_WORKFLOW_STATUS_CODES;
|
|
24080
24089
|
exports.UneceAmountCurrencyCodes = UneceAmountCurrencyCodes;
|
|
24090
|
+
exports.UneceContexts = UneceContexts;
|
|
24081
24091
|
exports.UneceCountryIdCodes = UneceCountryIdCodes;
|
|
24082
24092
|
exports.UneceDataTypes = UneceDataTypes;
|
|
24083
24093
|
exports.UneceDocumentCodes = UneceDocumentCodes;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -24025,14 +24025,23 @@ const UneceWorkflowStatusCodes = {
|
|
|
24025
24025
|
// Copyright 2024 IOTA Stiftung.
|
|
24026
24026
|
// SPDX-License-Identifier: Apache-2.0.
|
|
24027
24027
|
/**
|
|
24028
|
-
* The types of UNECE
|
|
24028
|
+
* The types of UNECE contexts.
|
|
24029
24029
|
*/
|
|
24030
24030
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24031
|
-
const
|
|
24031
|
+
const UneceContexts = {
|
|
24032
24032
|
/**
|
|
24033
24033
|
* Context Root.
|
|
24034
24034
|
*/
|
|
24035
|
-
ContextRoot: "https://vocabulary.uncefact.org/"
|
|
24035
|
+
ContextRoot: "https://vocabulary.uncefact.org/"
|
|
24036
|
+
};
|
|
24037
|
+
|
|
24038
|
+
// Copyright 2024 IOTA Stiftung.
|
|
24039
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
24040
|
+
/**
|
|
24041
|
+
* The types of UNECE data.
|
|
24042
|
+
*/
|
|
24043
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24044
|
+
const UneceTypes = {
|
|
24036
24045
|
/**
|
|
24037
24046
|
* Represents a UN/CEFACT document.
|
|
24038
24047
|
*/
|
|
@@ -24053,15 +24062,15 @@ class UneceDataTypes {
|
|
|
24053
24062
|
* Register all the data types.
|
|
24054
24063
|
*/
|
|
24055
24064
|
static registerTypes() {
|
|
24056
|
-
DataTypeHandlerFactory.register(`${
|
|
24065
|
+
DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Document}`, () => ({
|
|
24057
24066
|
type: UneceTypes.Document,
|
|
24058
24067
|
defaultValue: {}
|
|
24059
24068
|
}));
|
|
24060
|
-
DataTypeHandlerFactory.register(`${
|
|
24069
|
+
DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Consignment}`, () => ({
|
|
24061
24070
|
type: UneceTypes.Consignment,
|
|
24062
24071
|
defaultValue: {}
|
|
24063
24072
|
}));
|
|
24064
24073
|
}
|
|
24065
24074
|
}
|
|
24066
24075
|
|
|
24067
|
-
export { UNECE_AMOUNT_CURRENCY_CODES, UNECE_COUNTRY_ID_CODES, UNECE_DOCUMENT_CODES, UNECE_DOCUMENT_STATUS_CODES, UNECE_GOVERNMENT_ACTION_CODES, UNECE_REFERENCE_CODES, UNECE_RESPONSIBLE_GOVERNMENT_AGENCY_CODES, UNECE_STATUS_CODES, UNECE_TRANSPORT_MEANS_TYPE_CODES, UNECE_TRANSPORT_MODE_CODES, UNECE_WORKFLOW_STATUS_CODES, UneceAmountCurrencyCodes, UneceCountryIdCodes, UneceDataTypes, UneceDocumentCodes, UneceDocumentStatusCodes, UneceGovernmentActionCodes, UneceReferenceCodes, UneceResponsibleGovernmentAgencyCodes, UneceStatusCodes, UneceTransportMeansTypeCodes, UneceTransportModeCodes, UneceTypes, UneceWorkflowStatusCodes };
|
|
24076
|
+
export { UNECE_AMOUNT_CURRENCY_CODES, UNECE_COUNTRY_ID_CODES, UNECE_DOCUMENT_CODES, UNECE_DOCUMENT_STATUS_CODES, UNECE_GOVERNMENT_ACTION_CODES, UNECE_REFERENCE_CODES, UNECE_RESPONSIBLE_GOVERNMENT_AGENCY_CODES, UNECE_STATUS_CODES, UNECE_TRANSPORT_MEANS_TYPE_CODES, UNECE_TRANSPORT_MODE_CODES, UNECE_WORKFLOW_STATUS_CODES, UneceAmountCurrencyCodes, UneceContexts, UneceCountryIdCodes, UneceDataTypes, UneceDocumentCodes, UneceDocumentStatusCodes, UneceGovernmentActionCodes, UneceReferenceCodes, UneceResponsibleGovernmentAgencyCodes, UneceStatusCodes, UneceTransportMeansTypeCodes, UneceTransportModeCodes, UneceTypes, UneceWorkflowStatusCodes };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,4 +22,5 @@ export * from "./codeTypes/uneceTransportModeCodes";
|
|
|
22
22
|
export * from "./codeTypes/uneceWorkflowStatusCodes";
|
|
23
23
|
export * from "./dataTypes/uneceDataTypes";
|
|
24
24
|
export * from "./models/IUneceCode";
|
|
25
|
+
export * from "./models/uneceContexts";
|
|
25
26
|
export * from "./models/uneceTypes";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The types of UNECE contexts.
|
|
3
|
+
*/
|
|
4
|
+
export declare const UneceContexts: {
|
|
5
|
+
/**
|
|
6
|
+
* Context Root.
|
|
7
|
+
*/
|
|
8
|
+
readonly ContextRoot: "https://vocabulary.uncefact.org/";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The types of UNECE contexts.
|
|
12
|
+
*/
|
|
13
|
+
export type UneceContexts = (typeof UneceContexts)[keyof typeof UneceContexts];
|
package/docs/changelog.md
CHANGED
package/docs/reference/index.md
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
- [UneceTransportMeansTypeCodes](type-aliases/UneceTransportMeansTypeCodes.md)
|
|
22
22
|
- [UneceTransportModeCodes](type-aliases/UneceTransportModeCodes.md)
|
|
23
23
|
- [UneceWorkflowStatusCodes](type-aliases/UneceWorkflowStatusCodes.md)
|
|
24
|
+
- [UneceContexts](type-aliases/UneceContexts.md)
|
|
24
25
|
- [UneceTypes](type-aliases/UneceTypes.md)
|
|
25
26
|
|
|
26
27
|
## Variables
|
|
@@ -47,4 +48,5 @@
|
|
|
47
48
|
- [UNECE\_TRANSPORT\_MEANS\_TYPE\_CODES](variables/UNECE_TRANSPORT_MEANS_TYPE_CODES.md)
|
|
48
49
|
- [UNECE\_TRANSPORT\_MODE\_CODES](variables/UNECE_TRANSPORT_MODE_CODES.md)
|
|
49
50
|
- [UNECE\_WORKFLOW\_STATUS\_CODES](variables/UNECE_WORKFLOW_STATUS_CODES.md)
|
|
51
|
+
- [UneceContexts](variables/UneceContexts.md)
|
|
50
52
|
- [UneceTypes](variables/UneceTypes.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: UneceContexts
|
|
2
|
+
|
|
3
|
+
> `const` **UneceContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The types of UNECE contexts.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://vocabulary.uncefact.org/"` = `"https://vocabulary.uncefact.org/"`
|
|
12
|
+
|
|
13
|
+
Context Root.
|
|
@@ -6,12 +6,6 @@ The types of UNECE data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://vocabulary.uncefact.org/"` = `"https://vocabulary.uncefact.org/"`
|
|
12
|
-
|
|
13
|
-
Context Root.
|
|
14
|
-
|
|
15
9
|
### Document
|
|
16
10
|
|
|
17
11
|
> `readonly` **Document**: `"Document"` = `"Document"`
|