@itwin/analytical-backend 5.0.0-dev.97 → 5.0.0-dev.99

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.
@@ -7,6 +7,10 @@ import { Schema } from "@itwin/core-backend";
7
7
  */
8
8
  export declare class AnalyticalSchema extends Schema {
9
9
  static get schemaName(): string;
10
+ /**
11
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
12
+ * Look to add a dependency on @bentley/analytical-schema and using require.resolve to obtain the path
13
+ */
10
14
  static get schemaFilePath(): string;
11
15
  static registerSchema(): void;
12
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticalSchema.d.ts","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C,WAA2B,UAAU,IAAI,MAAM,CAAyB;IACxE,WAAkB,cAAc,IAAI,MAAM,CAAwG;WACpI,cAAc;CAU7B"}
1
+ {"version":3,"file":"AnalyticalSchema.d.ts","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C,WAA2B,UAAU,IAAI,MAAM,CAAyB;IACxE;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAwG;WACpI,cAAc;CAU7B"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.AnalyticalSchema = 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 elementsModule = require("./AnalyticalElements.js");
14
14
  const modelsModule = require("./AnalyticalModels.js");
@@ -18,6 +18,10 @@ const relationshipsModule = require("./AnalyticalRelationships.js");
18
18
  */
19
19
  class AnalyticalSchema extends core_backend_1.Schema {
20
20
  static get schemaName() { return "Analytical"; }
21
+ /**
22
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
23
+ * Look to add a dependency on @bentley/analytical-schema and using require.resolve to obtain the path
24
+ */
21
25
  static get schemaFilePath() { return path.join(core_backend_1.KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", "Analytical.ecschema.xml"); }
22
26
  static registerSchema() {
23
27
  if (this !== core_backend_1.Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticalSchema.js","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA6B;AAC7B,sDAAqF;AACrF,0DAA0D;AAC1D,sDAAsD;AACtD,oEAAoE;AAEpE;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAM;IACnC,MAAM,KAAc,UAAU,KAAa,OAAO,YAAY,CAAC,CAAC,CAAC;IACjE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAC3I,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,YAAY,EAAE,IAAI,CAAC,CAAC;YACjD,4BAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF;AAbD,4CAaC","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 Analytical\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./AnalyticalElements.js\";\nimport * as modelsModule from \"./AnalyticalModels.js\";\nimport * as relationshipsModule from \"./AnalyticalRelationships.js\";\n\n/** Schema class for the Analytical domain.\n * @beta\n */\nexport class AnalyticalSchema extends Schema {\n public static override get schemaName(): string { return \"Analytical\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"Analytical.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(modelsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"AnalyticalSchema.js","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,kCAAkC;AAClC,sDAAqF;AACrF,0DAA0D;AAC1D,sDAAsD;AACtD,oEAAoE;AAEpE;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAM;IACnC,MAAM,KAAc,UAAU,KAAa,OAAO,YAAY,CAAC,CAAC,CAAC;IACxE;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAC3I,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,YAAY,EAAE,IAAI,CAAC,CAAC;YACjD,4BAAa,CAAC,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF;AAjBD,4CAiBC","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 Analytical\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./AnalyticalElements.js\";\nimport * as modelsModule from \"./AnalyticalModels.js\";\nimport * as relationshipsModule from \"./AnalyticalRelationships.js\";\n\n/** Schema class for the Analytical domain.\n * @beta\n */\nexport class AnalyticalSchema extends Schema {\n public static override get schemaName(): string { return \"Analytical\"; }\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/analytical-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"Analytical.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(modelsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
@@ -7,6 +7,10 @@ import { Schema } from "@itwin/core-backend";
7
7
  */
8
8
  export declare class AnalyticalSchema extends Schema {
9
9
  static get schemaName(): string;
10
+ /**
11
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
12
+ * Look to add a dependency on @bentley/analytical-schema and using require.resolve to obtain the path
13
+ */
10
14
  static get schemaFilePath(): string;
11
15
  static registerSchema(): void;
12
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticalSchema.d.ts","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C,WAA2B,UAAU,IAAI,MAAM,CAAyB;IACxE,WAAkB,cAAc,IAAI,MAAM,CAAwG;WACpI,cAAc;CAU7B"}
1
+ {"version":3,"file":"AnalyticalSchema.d.ts","sourceRoot":"","sources":["../../src/AnalyticalSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAKrF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C,WAA2B,UAAU,IAAI,MAAM,CAAyB;IACxE;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAwG;WACpI,cAAc;CAU7B"}
@@ -5,7 +5,7 @@
5
5
  /** @packageDocumentation
6
6
  * @module Analytical
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 elementsModule from "./AnalyticalElements.js";
11
11
  import * as modelsModule from "./AnalyticalModels.js";
@@ -15,6 +15,10 @@ import * as relationshipsModule from "./AnalyticalRelationships.js";
15
15
  */
16
16
  export class AnalyticalSchema extends Schema {
17
17
  static get schemaName() { return "Analytical"; }
18
+ /**
19
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
20
+ * Look to add a dependency on @bentley/analytical-schema and using require.resolve to obtain the path
21
+ */
18
22
  static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", "Analytical.ecschema.xml"); }
19
23
  static registerSchema() {
20
24
  if (this !== Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"AnalyticalSchema.js","sourceRoot":"","sources":["../../src/AnalyticalSchema.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,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AAEpE;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,MAAM;IACnC,MAAM,KAAc,UAAU,KAAa,OAAO,YAAY,CAAC,CAAC,CAAC;IACjE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAC3I,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,YAAY,EAAE,IAAI,CAAC,CAAC;YACjD,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 Analytical\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./AnalyticalElements.js\";\nimport * as modelsModule from \"./AnalyticalModels.js\";\nimport * as relationshipsModule from \"./AnalyticalRelationships.js\";\n\n/** Schema class for the Analytical domain.\n * @beta\n */\nexport class AnalyticalSchema extends Schema {\n public static override get schemaName(): string { return \"Analytical\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"Analytical.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(modelsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"AnalyticalSchema.js","sourceRoot":"","sources":["../../src/AnalyticalSchema.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,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AAEpE;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,MAAM;IACnC,MAAM,KAAc,UAAU,KAAa,OAAO,YAAY,CAAC,CAAC,CAAC;IACxE;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC;IAC3I,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,YAAY,EAAE,IAAI,CAAC,CAAC;YACjD,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 Analytical\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./AnalyticalElements.js\";\nimport * as modelsModule from \"./AnalyticalModels.js\";\nimport * as relationshipsModule from \"./AnalyticalRelationships.js\";\n\n/** Schema class for the Analytical domain.\n * @beta\n */\nexport class AnalyticalSchema extends Schema {\n public static override get schemaName(): string { return \"Analytical\"; }\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/analytical-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", \"Analytical.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(modelsModule, this);\n ClassRegistry.registerModule(relationshipsModule, this);\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/analytical-backend",
3
- "version": "5.0.0-dev.97",
3
+ "version": "5.0.0-dev.99",
4
4
  "main": "lib/cjs/analytical-backend.js",
5
5
  "module": "lib/esm/analytical-backend.js",
6
6
  "typings": "lib/cjs/analytical-backend",
@@ -30,9 +30,9 @@
30
30
  "url": "http://www.bentley.com"
31
31
  },
32
32
  "peerDependencies": {
33
- "@itwin/core-backend": "5.0.0-dev.97",
34
- "@itwin/core-bentley": "5.0.0-dev.97",
35
- "@itwin/core-common": "5.0.0-dev.97"
33
+ "@itwin/core-backend": "5.0.0-dev.99",
34
+ "@itwin/core-bentley": "5.0.0-dev.99",
35
+ "@itwin/core-common": "5.0.0-dev.99"
36
36
  },
37
37
  "//devDependencies": [
38
38
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -41,7 +41,6 @@
41
41
  "devDependencies": {
42
42
  "@itwin/eslint-plugin": "5.0.0-dev.1",
43
43
  "@types/chai": "4.3.1",
44
- "@types/fs-extra": "^4.0.7",
45
44
  "@types/mocha": "^10.0.6",
46
45
  "@types/node": "~20.17.0",
47
46
  "@types/semver": "7.3.10",
@@ -53,14 +52,11 @@
53
52
  "rimraf": "^6.0.1",
54
53
  "semver": "^7.5.2",
55
54
  "typescript": "~5.6.2",
56
- "@itwin/build-tools": "5.0.0-dev.97",
57
- "internal-tools": "3.0.0-dev.69",
58
- "@itwin/core-backend": "5.0.0-dev.97",
59
- "@itwin/core-bentley": "5.0.0-dev.97",
60
- "@itwin/core-common": "5.0.0-dev.97"
61
- },
62
- "TODO-dependencies": {
63
- "@bentley/analytical-schema": "~1.0.0"
55
+ "@itwin/build-tools": "5.0.0-dev.99",
56
+ "@itwin/core-backend": "5.0.0-dev.99",
57
+ "@itwin/core-common": "5.0.0-dev.99",
58
+ "@itwin/core-bentley": "5.0.0-dev.99",
59
+ "internal-tools": "3.0.0-dev.69"
64
60
  },
65
61
  "nyc": {
66
62
  "extends": "./node_modules/@itwin/build-tools/.nycrc"