@twin.org/standards-gs1 0.0.3-next.67 → 0.0.3-next.68

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.
@@ -6,7 +6,7 @@ import { Gs1Types } from "../models/gs1/gs1Types.js";
6
6
  import { Gs1Validation } from "../utils/gs1Validation.js";
7
7
  /**
8
8
  * Handle all the data types for GS1.
9
- * Vocabulary https://www.gs1.org/voc .
9
+ * @see https://www.gs1.org/voc
10
10
  */
11
11
  export class Gs1DataTypes {
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"gs1DataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gs1DataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,YAAY;IACxB;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,EAAE,EACxD,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,WAAW,CAAC,SAAS;YAChC,IAAI,EAAE,QAAQ,CAAC,kBAAkB;YACjC,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,aAAa,CAAC,kBAAkB,CAAC,YAAY,EAAE,KAAoB,EAAE,QAAQ,EAAE,SAAS,CAAC;SAC1F,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport type { Gs1Location } from \"../entities/gs1Location.js\";\nimport { GS1Contexts } from \"../models/gs1/gs1Contexts.js\";\nimport { Gs1Types } from \"../models/gs1/gs1Types.js\";\nimport { Gs1Validation } from \"../utils/gs1Validation.js\";\n\n/**\n * Handle all the data types for GS1.\n * Vocabulary https://www.gs1.org/voc .\n */\nexport class Gs1DataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GS1Contexts.Namespace}${Gs1Types.LocationMasterData}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: GS1Contexts.Namespace,\n\t\t\t\ttype: Gs1Types.LocationMasterData,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tGs1Validation.locationMasterData(propertyName, value as Gs1Location, failures, container)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"gs1DataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gs1DataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,YAAY;IACxB;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,EAAE,EACxD,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,WAAW,CAAC,SAAS;YAChC,IAAI,EAAE,QAAQ,CAAC,kBAAkB;YACjC,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,aAAa,CAAC,kBAAkB,CAAC,YAAY,EAAE,KAAoB,EAAE,QAAQ,EAAE,SAAS,CAAC;SAC1F,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport type { Gs1Location } from \"../entities/gs1Location.js\";\nimport { GS1Contexts } from \"../models/gs1/gs1Contexts.js\";\nimport { Gs1Types } from \"../models/gs1/gs1Types.js\";\nimport { Gs1Validation } from \"../utils/gs1Validation.js\";\n\n/**\n * Handle all the data types for GS1.\n * @see https://www.gs1.org/voc\n */\nexport class Gs1DataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GS1Contexts.Namespace}${Gs1Types.LocationMasterData}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: GS1Contexts.Namespace,\n\t\t\t\ttype: Gs1Types.LocationMasterData,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tGs1Validation.locationMasterData(propertyName, value as Gs1Location, failures, container)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
@@ -2,9 +2,8 @@
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  import { entity, property } from "@twin.org/entity";
4
4
  /**
5
- * Interface describing a GS1 Location master data.
6
- * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
7
- * Section 10.2 .
5
+ * GS1 Location master data entity.
6
+ * @see https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf
8
7
  */
9
8
  let Gs1Location = class Gs1Location {
10
9
  /**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uC;QACpD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;8CACwB;AAjJd,WAAW;IAJvB,MAAM,CAAC;QACP,WAAW,EACV,6FAA6F;KAC9F,CAAC;GACW,WAAW,CAkJvB","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property } from \"@twin.org/entity\";\nimport type { Gs1SubSiteAttributes } from \"../models/gs1/gs1SubSiteAttributes.js\";\nimport type { Gs1SubSiteTypes } from \"../models/gs1/gs1SubSiteTypes.js\";\n\n/**\n * Interface describing a GS1 Location master data.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.2 .\n */\n@entity({\n\tdescription:\n\t\t\"Stores detailed information about locations, including addresses and geographic coordinates\"\n})\nexport class Gs1Location {\n\t/**\n\t * The GS1 sgln identifier.\n\t */\n\t@property({ description: \"Unique identifier for the location.\", type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * Identifies the site in which the location is contained.\n\t */\n\t@property({\n\t\tdescription: \"Site identifier or name, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic site?: string;\n\n\t/**\n\t * Sub site type describes the primary business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Additional site-specific information or code.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic sst?: Gs1SubSiteTypes;\n\n\t/**\n\t * Sub site attribute further qualifies the business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Sub-site area or section information.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssa?: Gs1SubSiteAttributes;\n\n\t/**\n\t * Sub site detail provides additional proprietary information.\n\t */\n\t@property({\n\t\tdescription: \"Detailed site description or additional data.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssd?: string;\n\n\t/**\n\t * The name of the location.\n\t */\n\t@property({\n\t\tdescription: \"Name of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic name?: string;\n\n\t/**\n\t * The street address line 1.\n\t */\n\t@property({\n\t\tdescription: \"Primary street address.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressOne?: string;\n\n\t/**\n\t * The street address line 2.\n\t */\n\t@property({\n\t\tdescription: \"Secondary street address, if needed.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressTwo?: string;\n\n\t/**\n\t * The street address line 3.\n\t */\n\t@property({\n\t\tdescription: \"Tertiary street address, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressThree?: string;\n\n\t/**\n\t * City.\n\t */\n\t@property({\n\t\tdescription: \"City where the location is situated.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic city?: string;\n\n\t/**\n\t * State.\n\t */\n\t@property({\n\t\tdescription: \"State or province of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic state?: string;\n\n\t/**\n\t * Postal Code.\n\t */\n\t@property({\n\t\tdescription: \"Postal or ZIP code for the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic postalCode?: string;\n\n\t/**\n\t * Country Code The ISO 3166-1 alpha-2 code specifying the country for the address.\n\t */\n\t@property({\n\t\tdescription: \"Country code where the location is located.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic countryCode?: string;\n\n\t/**\n\t * The latitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Latitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic latitude?: number;\n\n\t/**\n\t * The longitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Longitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic longitude?: number;\n}\n"]}
1
+ {"version":3,"file":"gs1Location.js","sourceR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IAAI;KACd,CAAC;;8CACwB;AAjJd,WAAW;IAJvB,MAAM,CAAC;QACP,WAAW,EACV,6FAA6F;KAC9F,CAAC;GACW,WAAW,CAkJvB","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property } from \"@twin.org/entity\";\nimport type { Gs1SubSiteAttributes } from \"../models/gs1/gs1SubSiteAttributes.js\";\nimport type { Gs1SubSiteTypes } from \"../models/gs1/gs1SubSiteTypes.js\";\n\n/**\n * GS1 Location master data entity.\n * @see https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf\n */\n@entity({\n\tdescription:\n\t\t\"Stores detailed information about locations, including addresses and geographic coordinates\"\n})\nexport class Gs1Location {\n\t/**\n\t * The GS1 sgln identifier.\n\t */\n\t@property({ description: \"Unique identifier for the location.\", type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * Identifies the site in which the location is contained.\n\t */\n\t@property({\n\t\tdescription: \"Site identifier or name, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic site?: string;\n\n\t/**\n\t * Sub site type describes the primary business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Additional site-specific information or code.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic sst?: Gs1SubSiteTypes;\n\n\t/**\n\t * Sub site attribute further qualifies the business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Sub-site area or section information.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssa?: Gs1SubSiteAttributes;\n\n\t/**\n\t * Sub site detail provides additional proprietary information.\n\t */\n\t@property({\n\t\tdescription: \"Detailed site description or additional data.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssd?: string;\n\n\t/**\n\t * The name of the location.\n\t */\n\t@property({\n\t\tdescription: \"Name of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic name?: string;\n\n\t/**\n\t * The street address line 1.\n\t */\n\t@property({\n\t\tdescription: \"Primary street address.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressOne?: string;\n\n\t/**\n\t * The street address line 2.\n\t */\n\t@property({\n\t\tdescription: \"Secondary street address, if needed.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressTwo?: string;\n\n\t/**\n\t * The street address line 3.\n\t */\n\t@property({\n\t\tdescription: \"Tertiary street address, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressThree?: string;\n\n\t/**\n\t * City.\n\t */\n\t@property({\n\t\tdescription: \"City where the location is situated.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic city?: string;\n\n\t/**\n\t * State.\n\t */\n\t@property({\n\t\tdescription: \"State or province of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic state?: string;\n\n\t/**\n\t * Postal Code.\n\t */\n\t@property({\n\t\tdescription: \"Postal or ZIP code for the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic postalCode?: string;\n\n\t/**\n\t * Country Code The ISO 3166-1 alpha-2 code specifying the country for the address.\n\t */\n\t@property({\n\t\tdescription: \"Country code where the location is located.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic countryCode?: string;\n\n\t/**\n\t * The latitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Latitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic latitude?: number;\n\n\t/**\n\t * The longitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Longitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic longitude?: number;\n}\n"]}
@@ -13,9 +13,10 @@ export class Gs1Is {
13
13
  return /^[\dA-Fa-f]{24}$/.test(value);
14
14
  }
15
15
  /**
16
- * Is the value a valid geo uri https://en.wikipedia.org/wiki/Geo_URI_scheme.
16
+ * Is the value a valid geo URI.
17
17
  * @param value The value to check.
18
- * @returns True if the value matches a geo uri.
18
+ * @returns True if the value matches the geo URI scheme.
19
+ * @see https://en.wikipedia.org/wiki/Geo_URI_scheme
19
20
  */
20
21
  static isGeoUri(value) {
21
22
  return /^geo:[+-]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[+-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)($|,)(\d{0,5})?/.test(value);
@@ -1 +1 @@
1
- {"version":3,"file":"gs1Is.js","sourceRoot":"","sources":["../../../src/utils/gs1Is.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,MAAM,OAAO,KAAK;IACjB;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAC,KAAa;QACnC,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAC,KAAa;QACnC,OAAO,4GAA4G,CAAC,IAAI,CACvH,KAAK,CACL,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Is checks for GS1 data.\n */\nexport class Gs1Is {\n\t/**\n\t * Is the value an EPC identifier.\n\t * @param value The value to test.\n\t * @returns True if the value is an epc.\n\t */\n\tpublic static isEpcHex(value: string): boolean {\n\t\treturn /^[\\dA-Fa-f]{24}$/.test(value);\n\t}\n\n\t/**\n\t * Is the value a valid geo uri https://en.wikipedia.org/wiki/Geo_URI_scheme.\n\t * @param value The value to check.\n\t * @returns True if the value matches a geo uri.\n\t */\n\tpublic static isGeoUri(value: string): boolean {\n\t\treturn /^geo:[+-]?([1-8]?\\d(\\.\\d+)?|90(\\.0+)?),\\s*[+-]?(180(\\.0+)?|((1[0-7]\\d)|([1-9]?\\d))(\\.\\d+)?)($|,)(\\d{0,5})?/.test(\n\t\t\tvalue\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"gs1Is.js","sourceRoot":"","sources":["../../../src/utils/gs1Is.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,MAAM,OAAO,KAAK;IACjB;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAC,KAAa;QACnC,OAAO,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,QAAQ,CAAC,KAAa;QACnC,OAAO,4GAA4G,CAAC,IAAI,CACvH,KAAK,CACL,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Is checks for GS1 data.\n */\nexport class Gs1Is {\n\t/**\n\t * Is the value an EPC identifier.\n\t * @param value The value to test.\n\t * @returns True if the value is an epc.\n\t */\n\tpublic static isEpcHex(value: string): boolean {\n\t\treturn /^[\\dA-Fa-f]{24}$/.test(value);\n\t}\n\n\t/**\n\t * Is the value a valid geo URI.\n\t * @param value The value to check.\n\t * @returns True if the value matches the geo URI scheme.\n\t * @see https://en.wikipedia.org/wiki/Geo_URI_scheme\n\t */\n\tpublic static isGeoUri(value: string): boolean {\n\t\treturn /^geo:[+-]?([1-8]?\\d(\\.\\d+)?|90(\\.0+)?),\\s*[+-]?(180(\\.0+)?|((1[0-7]\\d)|([1-9]?\\d))(\\.\\d+)?)($|,)(\\d{0,5})?/.test(\n\t\t\tvalue\n\t\t);\n\t}\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Handle all the data types for GS1.
3
- * Vocabulary https://www.gs1.org/voc .
3
+ * @see https://www.gs1.org/voc
4
4
  */
5
5
  export declare class Gs1DataTypes {
6
6
  /**
@@ -1,9 +1,8 @@
1
1
  import type { Gs1SubSiteAttributes } from "../models/gs1/gs1SubSiteAttributes.js";
2
2
  import type { Gs1SubSiteTypes } from "../models/gs1/gs1SubSiteTypes.js";
3
3
  /**
4
- * Interface describing a GS1 Location master data.
5
- * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
6
- * Section 10.2 .
4
+ * GS1 Location master data entity.
5
+ * @see https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf
7
6
  */
8
7
  export declare class Gs1Location {
9
8
  /**
@@ -9,9 +9,10 @@ export declare class Gs1Is {
9
9
  */
10
10
  static isEpcHex(value: string): boolean;
11
11
  /**
12
- * Is the value a valid geo uri https://en.wikipedia.org/wiki/Geo_URI_scheme.
12
+ * Is the value a valid geo URI.
13
13
  * @param value The value to check.
14
- * @returns True if the value matches a geo uri.
14
+ * @returns True if the value matches the geo URI scheme.
15
+ * @see https://en.wikipedia.org/wiki/Geo_URI_scheme
15
16
  */
16
17
  static isGeoUri(value: string): boolean;
17
18
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.68](https://github.com/iotaledger/twin-standards/compare/standards-gs1-v0.0.3-next.67...standards-gs1-v0.0.3-next.68) (2026-06-22)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-gs1:** Synchronize repo versions
9
+
3
10
  ## [0.0.3-next.67](https://github.com/iotaledger/twin-standards/compare/standards-gs1-v0.0.3-next.66...standards-gs1-v0.0.3-next.67) (2026-06-12)
4
11
 
5
12
 
@@ -1,7 +1,10 @@
1
1
  # Class: Gs1DataTypes
2
2
 
3
3
  Handle all the data types for GS1.
4
- Vocabulary https://www.gs1.org/voc .
4
+
5
+ ## See
6
+
7
+ https://www.gs1.org/voc
5
8
 
6
9
  ## Constructors
7
10
 
@@ -40,7 +40,7 @@ True if the value is an epc.
40
40
 
41
41
  > `static` **isGeoUri**(`value`): `boolean`
42
42
 
43
- Is the value a valid geo uri https://en.wikipedia.org/wiki/Geo_URI_scheme.
43
+ Is the value a valid geo URI.
44
44
 
45
45
  #### Parameters
46
46
 
@@ -54,4 +54,8 @@ The value to check.
54
54
 
55
55
  `boolean`
56
56
 
57
- True if the value matches a geo uri.
57
+ True if the value matches the geo URI scheme.
58
+
59
+ #### See
60
+
61
+ https://en.wikipedia.org/wiki/Geo_URI_scheme
@@ -1,8 +1,10 @@
1
1
  # Class: Gs1Location
2
2
 
3
- Interface describing a GS1 Location master data.
4
- Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
5
- Section 10.2 .
3
+ GS1 Location master data entity.
4
+
5
+ ## See
6
+
7
+ https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf
6
8
 
7
9
  ## Constructors
8
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-gs1",
3
- "version": "0.0.3-next.67",
3
+ "version": "0.0.3-next.68",
4
4
  "description": "Data models for GS1 vocabularies and semantics.",
5
5
  "repository": {
6
6
  "type": "git",