@itwin/linear-referencing-backend 5.0.0-dev.97 → 5.0.0-dev.98

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.
@@ -8,6 +8,10 @@ import { Schema } from "@itwin/core-backend";
8
8
  */
9
9
  export declare class LinearReferencingSchema extends Schema {
10
10
  static get schemaName(): string;
11
+ /**
12
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
13
+ * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path
14
+ */
11
15
  static get schemaFilePath(): string;
12
16
  static registerSchema(): void;
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingSchema.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,MAAM;IACjD,WAA2B,UAAU,IAAI,MAAM,CAAgC;IAC/E,WAAkB,cAAc,IAAI,MAAM,CAA+G;WAC3I,cAAc;CAU7B"}
1
+ {"version":3,"file":"LinearReferencingSchema.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,MAAM;IACjD,WAA2B,UAAU,IAAI,MAAM,CAAgC;IAC7E;;;KAGC;IACH,WAAkB,cAAc,IAAI,MAAM,CAA+G;WAC3I,cAAc;CAU7B"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.LinearReferencingSchema = void 0;
11
- const path = require("path");
11
+ const path = require("node:path");
12
12
  const core_backend_1 = require("@itwin/core-backend");
13
13
  const aspectsModule = require("./LinearReferencingElementAspects.js");
14
14
  const elementsModule = require("./LinearReferencingElements.js");
@@ -19,6 +19,10 @@ const relationshipsModule = require("./LinearReferencingRelationships.js");
19
19
  */
20
20
  class LinearReferencingSchema extends core_backend_1.Schema {
21
21
  static get schemaName() { return "LinearReferencing"; }
22
+ /**
23
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
24
+ * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path
25
+ */
22
26
  static get schemaFilePath() { return path.join(core_backend_1.KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", "LinearReferencing.ecschema.xml"); }
23
27
  static registerSchema() {
24
28
  if (this !== core_backend_1.Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingSchema.js","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA6B;AAC7B,sDAAqF;AACrF,sEAAsE;AACtE,iEAAiE;AACjE,2EAA2E;AAE3E;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,qBAAM;IAC1C,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IACxE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAC;IAClJ,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,sBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,sBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAE7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YACnD,4BAAa,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClD,4BAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF;AAbD,0DAaC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module LinearReferencing\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as aspectsModule from \"./LinearReferencingElementAspects.js\";\nimport * as elementsModule from \"./LinearReferencingElements.js\";\nimport * as relationshipsModule from \"./LinearReferencingRelationships.js\";\n\n/** Schema for the LinearReferencing domain.\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n * @beta\n */\nexport class LinearReferencingSchema extends Schema {\n public static override get schemaName(): string { return \"LinearReferencing\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"LinearReferencing.ecschema.xml\"); }\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n\n ClassRegistry.registerModule(elementsModule, this);\n ClassRegistry.registerModule(aspectsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"LinearReferencingSchema.js","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,kCAAkC;AAClC,sDAAqF;AACrF,sEAAsE;AACtE,iEAAiE;AACjE,2EAA2E;AAE3E;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,qBAAM;IAC1C,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAC7E;;;KAGC;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAC;IAClJ,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,sBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,sBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAE7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YACnD,4BAAa,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClD,4BAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF;AAjBD,0DAiBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module LinearReferencing\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as aspectsModule from \"./LinearReferencingElementAspects.js\";\nimport * as elementsModule from \"./LinearReferencingElements.js\";\nimport * as relationshipsModule from \"./LinearReferencingRelationships.js\";\n\n/** Schema for the LinearReferencing domain.\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n * @beta\n */\nexport class LinearReferencingSchema extends Schema {\n public static override get schemaName(): string { return \"LinearReferencing\"; }\n /**\n * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native\n * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"LinearReferencing.ecschema.xml\"); }\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n\n ClassRegistry.registerModule(elementsModule, this);\n ClassRegistry.registerModule(aspectsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
@@ -8,6 +8,10 @@ import { Schema } from "@itwin/core-backend";
8
8
  */
9
9
  export declare class LinearReferencingSchema extends Schema {
10
10
  static get schemaName(): string;
11
+ /**
12
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
13
+ * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path
14
+ */
11
15
  static get schemaFilePath(): string;
12
16
  static registerSchema(): void;
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingSchema.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,MAAM;IACjD,WAA2B,UAAU,IAAI,MAAM,CAAgC;IAC/E,WAAkB,cAAc,IAAI,MAAM,CAA+G;WAC3I,cAAc;CAU7B"}
1
+ {"version":3,"file":"LinearReferencingSchema.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,MAAM;IACjD,WAA2B,UAAU,IAAI,MAAM,CAAgC;IAC7E;;;KAGC;IACH,WAAkB,cAAc,IAAI,MAAM,CAA+G;WAC3I,cAAc;CAU7B"}
@@ -5,7 +5,7 @@
5
5
  /** @packageDocumentation
6
6
  * @module LinearReferencing
7
7
  */
8
- import * as path from "path";
8
+ import * as path from "node:path";
9
9
  import { ClassRegistry, KnownLocations, Schema, Schemas } from "@itwin/core-backend";
10
10
  import * as aspectsModule from "./LinearReferencingElementAspects.js";
11
11
  import * as elementsModule from "./LinearReferencingElements.js";
@@ -16,6 +16,10 @@ import * as relationshipsModule from "./LinearReferencingRelationships.js";
16
16
  */
17
17
  export class LinearReferencingSchema extends Schema {
18
18
  static get schemaName() { return "LinearReferencing"; }
19
+ /**
20
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
21
+ * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path
22
+ */
19
23
  static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", "LinearReferencing.ecschema.xml"); }
20
24
  static registerSchema() {
21
25
  if (this !== Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingSchema.js","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,aAAa,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,mBAAmB,MAAM,qCAAqC,CAAC;AAE3E;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,MAAM;IAC1C,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IACxE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAC;IAClJ,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAE7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YACnD,aAAa,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClD,aAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module LinearReferencing\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as aspectsModule from \"./LinearReferencingElementAspects.js\";\nimport * as elementsModule from \"./LinearReferencingElements.js\";\nimport * as relationshipsModule from \"./LinearReferencingRelationships.js\";\n\n/** Schema for the LinearReferencing domain.\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n * @beta\n */\nexport class LinearReferencingSchema extends Schema {\n public static override get schemaName(): string { return \"LinearReferencing\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"LinearReferencing.ecschema.xml\"); }\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n\n ClassRegistry.registerModule(elementsModule, this);\n ClassRegistry.registerModule(aspectsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"LinearReferencingSchema.js","sourceRoot":"","sources":["../../src/LinearReferencingSchema.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,aAAa,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,mBAAmB,MAAM,qCAAqC,CAAC;AAE3E;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,MAAM;IAC1C,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAC7E;;;KAGC;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAC;IAClJ,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAE7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YACnD,aAAa,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAClD,aAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module LinearReferencing\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as aspectsModule from \"./LinearReferencingElementAspects.js\";\nimport * as elementsModule from \"./LinearReferencingElements.js\";\nimport * as relationshipsModule from \"./LinearReferencingRelationships.js\";\n\n/** Schema for the LinearReferencing domain.\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n * @beta\n */\nexport class LinearReferencingSchema extends Schema {\n public static override get schemaName(): string { return \"LinearReferencing\"; }\n /**\n * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native\n * Look to add a dependency on @bentley/linear-referencing-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"LinearReferencing.ecschema.xml\"); }\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n\n ClassRegistry.registerModule(elementsModule, this);\n ClassRegistry.registerModule(aspectsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/linear-referencing-backend",
3
- "version": "5.0.0-dev.97",
3
+ "version": "5.0.0-dev.98",
4
4
  "main": "lib/cjs/linear-referencing-backend.js",
5
5
  "module": "lib/esm/linear-referencing-backend.js",
6
6
  "typings": "lib/cjs/linear-referencing-backend",
@@ -30,10 +30,10 @@
30
30
  "url": "http://www.bentley.com"
31
31
  },
32
32
  "peerDependencies": {
33
- "@itwin/core-bentley": "5.0.0-dev.97",
34
- "@itwin/core-backend": "5.0.0-dev.97",
35
- "@itwin/core-common": "5.0.0-dev.97",
36
- "@itwin/linear-referencing-common": "5.0.0-dev.97"
33
+ "@itwin/core-common": "5.0.0-dev.98",
34
+ "@itwin/core-bentley": "5.0.0-dev.98",
35
+ "@itwin/linear-referencing-common": "5.0.0-dev.98",
36
+ "@itwin/core-backend": "5.0.0-dev.98"
37
37
  },
38
38
  "//devDependencies": [
39
39
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -42,7 +42,6 @@
42
42
  "devDependencies": {
43
43
  "@itwin/eslint-plugin": "5.0.0-dev.1",
44
44
  "@types/chai": "4.3.1",
45
- "@types/fs-extra": "^4.0.7",
46
45
  "@types/mocha": "^10.0.6",
47
46
  "@types/node": "~20.17.0",
48
47
  "chai": "^4.3.10",
@@ -52,15 +51,12 @@
52
51
  "nyc": "^17.1.0",
53
52
  "rimraf": "^6.0.1",
54
53
  "typescript": "~5.6.2",
55
- "@itwin/build-tools": "5.0.0-dev.97",
56
- "@itwin/core-backend": "5.0.0-dev.97",
57
- "@itwin/core-common": "5.0.0-dev.97",
58
- "@itwin/linear-referencing-common": "5.0.0-dev.97",
59
- "@itwin/core-bentley": "5.0.0-dev.97",
60
- "internal-tools": "3.0.0-dev.69"
61
- },
62
- "TODO-dependencies": {
63
- "@itwin/linear-referencing-schema": "~1.0.1"
54
+ "@itwin/build-tools": "5.0.0-dev.98",
55
+ "@itwin/linear-referencing-common": "5.0.0-dev.98",
56
+ "@itwin/core-bentley": "5.0.0-dev.98",
57
+ "@itwin/core-backend": "5.0.0-dev.98",
58
+ "internal-tools": "3.0.0-dev.69",
59
+ "@itwin/core-common": "5.0.0-dev.98"
64
60
  },
65
61
  "nyc": {
66
62
  "extends": "./node_modules/@itwin/build-tools/.nycrc"