@itwin/physical-material-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.
@@ -9,6 +9,10 @@ import { Schema } from "@itwin/core-backend";
9
9
  */
10
10
  export declare class PhysicalMaterialSchema extends Schema {
11
11
  static get schemaName(): string;
12
+ /**
13
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
14
+ * Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
15
+ */
12
16
  static get schemaFilePath(): string;
13
17
  static registerSchema(): void;
14
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
1
+ {"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.PhysicalMaterialSchema = 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("./PhysicalMaterialElements.js");
14
14
  /** The PhysicalMaterialSchema contains standard physical material classes.
@@ -18,6 +18,10 @@ const elementsModule = require("./PhysicalMaterialElements.js");
18
18
  */
19
19
  class PhysicalMaterialSchema extends core_backend_1.Schema {
20
20
  static get schemaName() { return "PhysicalMaterial"; }
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/physicalmaterial-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", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }
22
26
  static registerSchema() {
23
27
  if (this !== core_backend_1.Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA6B;AAC7B,sDAAqF;AACrF,gEAAgE;AAEhE;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qBAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACvE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,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;YAC7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAXD,wDAWC","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 PhysicalMaterial\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,kCAAkC;AAClC,sDAAqF;AACrF,gEAAgE;AAEhE;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qBAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAC9E;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,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;YAC7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAfD,wDAeC","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 PhysicalMaterial\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\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/physicalmaterial-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
@@ -9,6 +9,10 @@ import { Schema } from "@itwin/core-backend";
9
9
  */
10
10
  export declare class PhysicalMaterialSchema extends Schema {
11
11
  static get schemaName(): string;
12
+ /**
13
+ * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
14
+ * Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
15
+ */
12
16
  static get schemaFilePath(): string;
13
17
  static registerSchema(): void;
14
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
1
+ {"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
@@ -5,7 +5,7 @@
5
5
  /** @packageDocumentation
6
6
  * @module PhysicalMaterial
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 "./PhysicalMaterialElements.js";
11
11
  /** The PhysicalMaterialSchema contains standard physical material classes.
@@ -15,6 +15,10 @@ import * as elementsModule from "./PhysicalMaterialElements.js";
15
15
  */
16
16
  export class PhysicalMaterialSchema extends Schema {
17
17
  static get schemaName() { return "PhysicalMaterial"; }
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/physicalmaterial-schema and using require.resolve to obtain the path
21
+ */
18
22
  static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }
19
23
  static registerSchema() {
20
24
  if (this !== Schemas.getRegisteredSchema(this.schemaName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.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,+BAA+B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,MAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACvE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,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;YAC7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,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 PhysicalMaterial\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.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,+BAA+B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,MAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAC9E;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,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;YAC7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,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 PhysicalMaterial\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\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/physicalmaterial-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/physical-material-backend",
3
- "version": "5.0.0-dev.97",
3
+ "version": "5.0.0-dev.99",
4
4
  "main": "lib/cjs/physical-material-backend.js",
5
5
  "module": "lib/esm/physical-material-backend.js",
6
6
  "typings": "lib/cjs/physical-material-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
  "chai": "^4.3.10",
@@ -50,14 +49,11 @@
50
49
  "nyc": "^17.1.0",
51
50
  "rimraf": "^6.0.1",
52
51
  "typescript": "~5.6.2",
53
- "@itwin/build-tools": "5.0.0-dev.97",
54
- "@itwin/core-common": "5.0.0-dev.97",
55
- "@itwin/core-backend": "5.0.0-dev.97",
56
- "internal-tools": "3.0.0-dev.69",
57
- "@itwin/core-bentley": "5.0.0-dev.97"
58
- },
59
- "TODO-dependencies": {
60
- "@bentley/physicalmaterial-schema": "~1.0.1"
52
+ "@itwin/build-tools": "5.0.0-dev.99",
53
+ "@itwin/core-backend": "5.0.0-dev.99",
54
+ "@itwin/core-bentley": "5.0.0-dev.99",
55
+ "@itwin/core-common": "5.0.0-dev.99",
56
+ "internal-tools": "3.0.0-dev.69"
61
57
  },
62
58
  "nyc": {
63
59
  "extends": "./node_modules/@itwin/build-tools/.nycrc"