@twin.org/standards-unece 0.0.1-next.30 → 0.0.1-next.32

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.
@@ -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 data.
24030
+ * The types of UNECE contexts.
24031
24031
  */
24032
24032
  // eslint-disable-next-line @typescript-eslint/naming-convention
24033
- const UneceTypes = {
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(`${UneceTypes.ContextRoot}${UneceTypes.Document}`, () => ({
24067
+ dataCore.DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Document}`, () => ({
24059
24068
  type: UneceTypes.Document,
24060
24069
  defaultValue: {}
24061
24070
  }));
24062
- dataCore.DataTypeHandlerFactory.register(`${UneceTypes.ContextRoot}${UneceTypes.Consignment}`, () => ({
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;
@@ -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 data.
24028
+ * The types of UNECE contexts.
24029
24029
  */
24030
24030
  // eslint-disable-next-line @typescript-eslint/naming-convention
24031
- const UneceTypes = {
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(`${UneceTypes.ContextRoot}${UneceTypes.Document}`, () => ({
24065
+ DataTypeHandlerFactory.register(`${UneceContexts.ContextRoot}${UneceTypes.Document}`, () => ({
24057
24066
  type: UneceTypes.Document,
24058
24067
  defaultValue: {}
24059
24068
  }));
24060
- DataTypeHandlerFactory.register(`${UneceTypes.ContextRoot}${UneceTypes.Consignment}`, () => ({
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 };
@@ -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];
@@ -2,10 +2,6 @@
2
2
  * The types of UNECE data.
3
3
  */
4
4
  export declare const UneceTypes: {
5
- /**
6
- * Context Root.
7
- */
8
- readonly ContextRoot: "https://vocabulary.uncefact.org/";
9
5
  /**
10
6
  * Represents a UN/CEFACT document.
11
7
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/standards-unece - Changelog
2
2
 
3
- ## v0.0.1-next.30
3
+ ## v0.0.1-next.32
4
4
 
5
5
  - Initial Release
@@ -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,5 @@
1
+ # Type Alias: UneceContexts
2
+
3
+ > **UneceContexts**: *typeof* [`UneceContexts`](../variables/UneceContexts.md)\[keyof *typeof* [`UneceContexts`](../variables/UneceContexts.md)\]
4
+
5
+ The types of UNECE contexts.
@@ -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"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-unece",
3
- "version": "0.0.1-next.30",
3
+ "version": "0.0.1-next.32",
4
4
  "description": "Models which define the structure of UN/CEFACT Standard",
5
5
  "repository": {
6
6
  "type": "git",