@itwin/presentation-backend 4.0.0-dev.8 → 4.0.0-dev.80

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/lib/cjs/assets/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +5 -3
  3. package/lib/cjs/presentation-backend/BackendLoggerCategory.d.ts +41 -41
  4. package/lib/cjs/presentation-backend/BackendLoggerCategory.js +50 -50
  5. package/lib/cjs/presentation-backend/Constants.d.ts +8 -8
  6. package/lib/cjs/presentation-backend/Constants.js +40 -36
  7. package/lib/cjs/presentation-backend/Constants.js.map +1 -1
  8. package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +11 -11
  9. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +260 -262
  10. package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
  11. package/lib/cjs/presentation-backend/NativePlatform.d.ts +87 -87
  12. package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
  13. package/lib/cjs/presentation-backend/NativePlatform.js +140 -140
  14. package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
  15. package/lib/cjs/presentation-backend/Presentation.d.ts +106 -106
  16. package/lib/cjs/presentation-backend/Presentation.d.ts.map +1 -1
  17. package/lib/cjs/presentation-backend/Presentation.js +148 -150
  18. package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
  19. package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +12 -12
  20. package/lib/cjs/presentation-backend/PresentationIpcHandler.js +41 -41
  21. package/lib/cjs/presentation-backend/PresentationManager.d.ts +456 -445
  22. package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
  23. package/lib/cjs/presentation-backend/PresentationManager.js +309 -311
  24. package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
  25. package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +61 -61
  26. package/lib/cjs/presentation-backend/PresentationManagerDetail.js +430 -430
  27. package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
  28. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +62 -62
  29. package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts.map +1 -1
  30. package/lib/cjs/presentation-backend/PresentationRpcImpl.js +388 -388
  31. package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
  32. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts +102 -102
  33. package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts.map +1 -1
  34. package/lib/cjs/presentation-backend/RulesetEmbedder.js +284 -279
  35. package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
  36. package/lib/cjs/presentation-backend/RulesetManager.d.ts +53 -53
  37. package/lib/cjs/presentation-backend/RulesetManager.js +73 -73
  38. package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +140 -140
  39. package/lib/cjs/presentation-backend/RulesetVariablesManager.js +129 -129
  40. package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +28 -28
  41. package/lib/cjs/presentation-backend/SelectionScopesHelper.js +210 -213
  42. package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
  43. package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +123 -123
  44. package/lib/cjs/presentation-backend/TemporaryStorage.js +151 -151
  45. package/lib/cjs/presentation-backend/UpdatesTracker.d.ts +27 -27
  46. package/lib/cjs/presentation-backend/UpdatesTracker.js +54 -54
  47. package/lib/cjs/presentation-backend/Utils.d.ts +49 -49
  48. package/lib/cjs/presentation-backend/Utils.d.ts.map +1 -1
  49. package/lib/cjs/presentation-backend/Utils.js +107 -106
  50. package/lib/cjs/presentation-backend/Utils.js.map +1 -1
  51. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.d.ts +16 -16
  52. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +55 -51
  53. package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
  54. package/lib/cjs/presentation-backend/domain/RulesetElements.d.ts +21 -21
  55. package/lib/cjs/presentation-backend/domain/RulesetElements.js +38 -38
  56. package/lib/cjs/presentation-backend.d.ts +19 -19
  57. package/lib/cjs/presentation-backend.js +39 -35
  58. package/lib/cjs/presentation-backend.js.map +1 -1
  59. package/package.json +18 -18
@@ -1,52 +1,56 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Core
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PresentationRules = void 0;
30
- const core_backend_1 = require("@itwin/core-backend");
31
- const RulesetElements = __importStar(require("./RulesetElements"));
32
- /** @internal */
33
- class PresentationRules extends core_backend_1.Schema {
34
- static get schemaName() { return "PresentationRules"; }
35
- /** Registers this schema and it's elements' classes */
36
- static registerSchema() {
37
- if (this !== core_backend_1.Schemas.getRegisteredSchema(PresentationRules.schemaName)) {
38
- core_backend_1.Schemas.registerSchema(PresentationRules);
39
- core_backend_1.ClassRegistry.registerModule(RulesetElements, this);
40
- }
41
- }
42
- }
43
- exports.PresentationRules = PresentationRules;
44
- /** @internal */
45
- /* istanbul ignore next */
46
- (function (PresentationRules) {
47
- let CodeSpec;
48
- (function (CodeSpec) {
49
- CodeSpec["Ruleset"] = "PresentationRules:Ruleset";
50
- })(CodeSpec = PresentationRules.CodeSpec || (PresentationRules.CodeSpec = {}));
51
- })(PresentationRules = exports.PresentationRules || (exports.PresentationRules = {}));
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Core
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.PresentationRules = void 0;
34
+ const core_backend_1 = require("@itwin/core-backend");
35
+ const RulesetElements = __importStar(require("./RulesetElements"));
36
+ /** @internal */
37
+ class PresentationRules extends core_backend_1.Schema {
38
+ static get schemaName() { return "PresentationRules"; }
39
+ /** Registers this schema and it's elements' classes */
40
+ static registerSchema() {
41
+ if (this !== core_backend_1.Schemas.getRegisteredSchema(PresentationRules.schemaName)) {
42
+ core_backend_1.Schemas.registerSchema(PresentationRules);
43
+ core_backend_1.ClassRegistry.registerModule(RulesetElements, this);
44
+ }
45
+ }
46
+ }
47
+ exports.PresentationRules = PresentationRules;
48
+ /** @internal */
49
+ /* istanbul ignore next */
50
+ (function (PresentationRules) {
51
+ let CodeSpec;
52
+ (function (CodeSpec) {
53
+ CodeSpec["Ruleset"] = "PresentationRules:Ruleset";
54
+ })(CodeSpec = PresentationRules.CodeSpec || (PresentationRules.CodeSpec = {}));
55
+ })(PresentationRules = exports.PresentationRules || (exports.PresentationRules = {}));
52
56
  //# sourceMappingURL=PresentationRulesDomain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,mEAAqD;AAErD,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qBAAM;IACpC,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAE/E,uDAAuD;IAChD,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE;YACtE,sBAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,4BAAa,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AAVD,8CAUC;AAED,gBAAgB;AAChB,0BAA0B;AAC1B,WAAiB,iBAAiB;IAChC,IAAY,QAEX;IAFD,WAAY,QAAQ;QAClB,iDAAqC,CAAA;IACvC,CAAC,EAFW,QAAQ,GAAR,0BAAQ,KAAR,0BAAQ,QAEnB;AACH,CAAC,EAJgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAIjC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { ClassRegistry, Schema, Schemas } from \"@itwin/core-backend\";\r\nimport * as RulesetElements from \"./RulesetElements\";\r\n\r\n/** @internal */\r\nexport class PresentationRules extends Schema {\r\n public static override get schemaName(): string { return \"PresentationRules\"; }\r\n\r\n /** Registers this schema and it's elements' classes */\r\n public static registerSchema() {\r\n if (this !== Schemas.getRegisteredSchema(PresentationRules.schemaName)) {\r\n Schemas.registerSchema(PresentationRules);\r\n ClassRegistry.registerModule(RulesetElements, this);\r\n }\r\n }\r\n}\r\n\r\n/** @internal */\r\n/* istanbul ignore next */\r\nexport namespace PresentationRules { // eslint-disable-line no-redeclare\r\n export enum CodeSpec {\r\n Ruleset = \"PresentationRules:Ruleset\",\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,mEAAqD;AAErD,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qBAAM;IACpC,MAAM,KAAc,UAAU,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAE/E,uDAAuD;IAChD,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE;YACtE,sBAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,4BAAa,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AAVD,8CAUC;AAED,gBAAgB;AAChB,0BAA0B;AAC1B,WAAiB,iBAAiB;IAChC,IAAY,QAEX;IAFD,WAAY,QAAQ;QAClB,iDAAqC,CAAA;IACvC,CAAC,EAFW,QAAQ,GAAR,0BAAQ,KAAR,0BAAQ,QAEnB;AACH,CAAC,EAJgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAIjC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Core\r\n */\r\n\r\nimport { ClassRegistry, Schema, Schemas } from \"@itwin/core-backend\";\r\nimport * as RulesetElements from \"./RulesetElements\";\r\n\r\n/** @internal */\r\nexport class PresentationRules extends Schema {\r\n public static override get schemaName(): string { return \"PresentationRules\"; }\r\n\r\n /** Registers this schema and it's elements' classes */\r\n public static registerSchema() {\r\n if (this !== Schemas.getRegisteredSchema(PresentationRules.schemaName)) {\r\n Schemas.registerSchema(PresentationRules);\r\n ClassRegistry.registerModule(RulesetElements, this);\r\n }\r\n }\r\n}\r\n\r\n/** @internal */\r\n/* istanbul ignore next */\r\nexport namespace PresentationRules { // eslint-disable-line no-redeclare\r\n export enum CodeSpec {\r\n Ruleset = \"PresentationRules:Ruleset\",\r\n }\r\n}\r\n"]}
@@ -1,22 +1,22 @@
1
- /** @packageDocumentation
2
- * @module Core
3
- */
4
- import { Id64String } from "@itwin/core-bentley";
5
- import { DefinitionElement, IModelDb } from "@itwin/core-backend";
6
- import { Code } from "@itwin/core-common";
7
- import { Ruleset as PresentationRuleset } from "@itwin/presentation-common";
8
- /** @internal */
9
- export declare class Ruleset extends DefinitionElement {
10
- /**
11
- * Name of the `Ruleset` element class.
12
- */
13
- static get className(): string;
14
- /**
15
- * Generates a unique code for a ruleset
16
- * @param iModelDb DB the ruleset is supposed to be inserted into
17
- * @param modelId ID of a the model this ruleset should be created in
18
- * @param ruleset The ruleset code is being created for
19
- */
20
- static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset): Code;
21
- }
1
+ /** @packageDocumentation
2
+ * @module Core
3
+ */
4
+ import { Id64String } from "@itwin/core-bentley";
5
+ import { DefinitionElement, IModelDb } from "@itwin/core-backend";
6
+ import { Code } from "@itwin/core-common";
7
+ import { Ruleset as PresentationRuleset } from "@itwin/presentation-common";
8
+ /** @internal */
9
+ export declare class Ruleset extends DefinitionElement {
10
+ /**
11
+ * Name of the `Ruleset` element class.
12
+ */
13
+ static get className(): string;
14
+ /**
15
+ * Generates a unique code for a ruleset
16
+ * @param iModelDb DB the ruleset is supposed to be inserted into
17
+ * @param modelId ID of a the model this ruleset should be created in
18
+ * @param ruleset The ruleset code is being created for
19
+ */
20
+ static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset): Code;
21
+ }
22
22
  //# sourceMappingURL=RulesetElements.d.ts.map
@@ -1,39 +1,39 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Core
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Ruleset = void 0;
11
- const core_backend_1 = require("@itwin/core-backend");
12
- const core_common_1 = require("@itwin/core-common");
13
- const Utils_1 = require("../Utils");
14
- const PresentationRulesDomain_1 = require("./PresentationRulesDomain");
15
- /** @internal */
16
- class Ruleset extends core_backend_1.DefinitionElement {
17
- /**
18
- * Name of the `Ruleset` element class.
19
- */
20
- static get className() { return "Ruleset"; }
21
- /**
22
- * Generates a unique code for a ruleset
23
- * @param iModelDb DB the ruleset is supposed to be inserted into
24
- * @param modelId ID of a the model this ruleset should be created in
25
- * @param ruleset The ruleset code is being created for
26
- */
27
- static createRulesetCode(iModelDb, modelId, ruleset) {
28
- let codeValue = ruleset.id;
29
- if (ruleset.version)
30
- codeValue += `@${(0, Utils_1.normalizeVersion)(ruleset.version)}`;
31
- return new core_common_1.Code({
32
- spec: iModelDb.codeSpecs.getByName(PresentationRulesDomain_1.PresentationRules.CodeSpec.Ruleset).id,
33
- scope: modelId.toString(),
34
- value: codeValue,
35
- });
36
- }
37
- }
38
- exports.Ruleset = Ruleset;
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Core
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Ruleset = void 0;
11
+ const core_backend_1 = require("@itwin/core-backend");
12
+ const core_common_1 = require("@itwin/core-common");
13
+ const Utils_1 = require("../Utils");
14
+ const PresentationRulesDomain_1 = require("./PresentationRulesDomain");
15
+ /** @internal */
16
+ class Ruleset extends core_backend_1.DefinitionElement {
17
+ /**
18
+ * Name of the `Ruleset` element class.
19
+ */
20
+ static get className() { return "Ruleset"; }
21
+ /**
22
+ * Generates a unique code for a ruleset
23
+ * @param iModelDb DB the ruleset is supposed to be inserted into
24
+ * @param modelId ID of a the model this ruleset should be created in
25
+ * @param ruleset The ruleset code is being created for
26
+ */
27
+ static createRulesetCode(iModelDb, modelId, ruleset) {
28
+ let codeValue = ruleset.id;
29
+ if (ruleset.version)
30
+ codeValue += `@${(0, Utils_1.normalizeVersion)(ruleset.version)}`;
31
+ return new core_common_1.Code({
32
+ spec: iModelDb.codeSpecs.getByName(PresentationRulesDomain_1.PresentationRules.CodeSpec.Ruleset).id,
33
+ scope: modelId.toString(),
34
+ value: codeValue,
35
+ });
36
+ }
37
+ }
38
+ exports.Ruleset = Ruleset;
39
39
  //# sourceMappingURL=RulesetElements.js.map
@@ -1,20 +1,20 @@
1
- /**
2
- * @module Core
3
- *
4
- * @docs-group-description Core
5
- * Common types used for retrieving presentation data from iModels.
6
- */
7
- export * from "./presentation-backend/Presentation";
8
- export * from "./presentation-backend/PresentationManager";
9
- export * from "./presentation-backend/RulesetManager";
10
- export * from "./presentation-backend/RulesetVariablesManager";
11
- export * from "./presentation-backend/RulesetEmbedder";
12
- export * from "./presentation-backend/Utils";
13
- /**
14
- * @module Logging
15
- *
16
- * @docs-group-description Logging
17
- * Types related to logging in this package.
18
- */
19
- export * from "./presentation-backend/BackendLoggerCategory";
1
+ /**
2
+ * @module Core
3
+ *
4
+ * @docs-group-description Core
5
+ * Common types used for retrieving presentation data from iModels.
6
+ */
7
+ export * from "./presentation-backend/Presentation";
8
+ export * from "./presentation-backend/PresentationManager";
9
+ export * from "./presentation-backend/RulesetManager";
10
+ export * from "./presentation-backend/RulesetVariablesManager";
11
+ export * from "./presentation-backend/RulesetEmbedder";
12
+ export * from "./presentation-backend/Utils";
13
+ /**
14
+ * @module Logging
15
+ *
16
+ * @docs-group-description Logging
17
+ * Types related to logging in this package.
18
+ */
19
+ export * from "./presentation-backend/BackendLoggerCategory";
20
20
  //# sourceMappingURL=presentation-backend.d.ts.map
@@ -1,36 +1,40 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*---------------------------------------------------------------------------------------------
14
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
15
- * See LICENSE.md in the project root for license terms and full copyright notice.
16
- *--------------------------------------------------------------------------------------------*/
17
- /**
18
- * @module Core
19
- *
20
- * @docs-group-description Core
21
- * Common types used for retrieving presentation data from iModels.
22
- */
23
- __exportStar(require("./presentation-backend/Presentation"), exports);
24
- __exportStar(require("./presentation-backend/PresentationManager"), exports);
25
- __exportStar(require("./presentation-backend/RulesetManager"), exports);
26
- __exportStar(require("./presentation-backend/RulesetVariablesManager"), exports);
27
- __exportStar(require("./presentation-backend/RulesetEmbedder"), exports);
28
- __exportStar(require("./presentation-backend/Utils"), exports);
29
- /**
30
- * @module Logging
31
- *
32
- * @docs-group-description Logging
33
- * Types related to logging in this package.
34
- */
35
- __exportStar(require("./presentation-backend/BackendLoggerCategory"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /*---------------------------------------------------------------------------------------------
18
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
+ * See LICENSE.md in the project root for license terms and full copyright notice.
20
+ *--------------------------------------------------------------------------------------------*/
21
+ /**
22
+ * @module Core
23
+ *
24
+ * @docs-group-description Core
25
+ * Common types used for retrieving presentation data from iModels.
26
+ */
27
+ __exportStar(require("./presentation-backend/Presentation"), exports);
28
+ __exportStar(require("./presentation-backend/PresentationManager"), exports);
29
+ __exportStar(require("./presentation-backend/RulesetManager"), exports);
30
+ __exportStar(require("./presentation-backend/RulesetVariablesManager"), exports);
31
+ __exportStar(require("./presentation-backend/RulesetEmbedder"), exports);
32
+ __exportStar(require("./presentation-backend/Utils"), exports);
33
+ /**
34
+ * @module Logging
35
+ *
36
+ * @docs-group-description Logging
37
+ * Types related to logging in this package.
38
+ */
39
+ __exportStar(require("./presentation-backend/BackendLoggerCategory"), exports);
36
40
  //# sourceMappingURL=presentation-backend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,sEAAoD;AACpD,6EAA2D;AAC3D,wEAAsD;AACtD,iFAA+D;AAC/D,yEAAuD;AACvD,+DAA6C;AAE7C;;;;;GAKG;AACH,+EAA6D","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used for retrieving presentation data from iModels.\r\n */\r\nexport * from \"./presentation-backend/Presentation\";\r\nexport * from \"./presentation-backend/PresentationManager\";\r\nexport * from \"./presentation-backend/RulesetManager\";\r\nexport * from \"./presentation-backend/RulesetVariablesManager\";\r\nexport * from \"./presentation-backend/RulesetEmbedder\";\r\nexport * from \"./presentation-backend/Utils\";\r\n\r\n/**\r\n * @module Logging\r\n *\r\n * @docs-group-description Logging\r\n * Types related to logging in this package.\r\n */\r\nexport * from \"./presentation-backend/BackendLoggerCategory\";\r\n"]}
1
+ {"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F;;;;;GAKG;AACH,sEAAoD;AACpD,6EAA2D;AAC3D,wEAAsD;AACtD,iFAA+D;AAC/D,yEAAuD;AACvD,+DAA6C;AAE7C;;;;;GAKG;AACH,+EAA6D","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @module Core\r\n *\r\n * @docs-group-description Core\r\n * Common types used for retrieving presentation data from iModels.\r\n */\r\nexport * from \"./presentation-backend/Presentation\";\r\nexport * from \"./presentation-backend/PresentationManager\";\r\nexport * from \"./presentation-backend/RulesetManager\";\r\nexport * from \"./presentation-backend/RulesetVariablesManager\";\r\nexport * from \"./presentation-backend/RulesetEmbedder\";\r\nexport * from \"./presentation-backend/Utils\";\r\n\r\n/**\r\n * @module Logging\r\n *\r\n * @docs-group-description Logging\r\n * Types related to logging in this package.\r\n */\r\nexport * from \"./presentation-backend/BackendLoggerCategory\";\r\n"]}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@itwin/presentation-backend",
3
- "version": "4.0.0-dev.8",
3
+ "version": "4.0.0-dev.80",
4
4
  "description": "Backend of iTwin.js Presentation library",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/iTwin/itwinjs-core/tree/master/presentation/backend"
8
+ "url": "https://github.com/iTwin/itwinjs-core.git",
9
+ "directory": "presentation/backend"
9
10
  },
10
11
  "keywords": [
11
12
  "Bentley",
@@ -22,20 +23,20 @@
22
23
  "main": "lib/cjs/presentation-backend.js",
23
24
  "typings": "lib/cjs/presentation-backend",
24
25
  "peerDependencies": {
25
- "@itwin/core-backend": "^4.0.0-dev.8",
26
- "@itwin/core-bentley": "^4.0.0-dev.8",
27
- "@itwin/core-common": "^4.0.0-dev.8",
28
- "@itwin/core-quantity": "^4.0.0-dev.8",
29
- "@itwin/presentation-common": "^4.0.0-dev.8"
26
+ "@itwin/core-backend": "^4.0.0-dev.80",
27
+ "@itwin/core-bentley": "^4.0.0-dev.80",
28
+ "@itwin/core-common": "^4.0.0-dev.80",
29
+ "@itwin/core-quantity": "^4.0.0-dev.80",
30
+ "@itwin/presentation-common": "^4.0.0-dev.80"
30
31
  },
31
32
  "devDependencies": {
32
- "@itwin/build-tools": "4.0.0-dev.8",
33
- "@itwin/core-backend": "4.0.0-dev.8",
34
- "@itwin/core-bentley": "4.0.0-dev.8",
35
- "@itwin/core-common": "4.0.0-dev.8",
36
- "@itwin/core-quantity": "4.0.0-dev.8",
37
- "@itwin/eslint-plugin": "4.0.0-dev.8",
38
- "@itwin/presentation-common": "4.0.0-dev.8",
33
+ "@itwin/build-tools": "4.0.0-dev.80",
34
+ "@itwin/core-backend": "4.0.0-dev.80",
35
+ "@itwin/core-bentley": "4.0.0-dev.80",
36
+ "@itwin/core-common": "4.0.0-dev.80",
37
+ "@itwin/core-quantity": "4.0.0-dev.80",
38
+ "@itwin/eslint-plugin": "^4.0.0-dev.33",
39
+ "@itwin/presentation-common": "4.0.0-dev.80",
39
40
  "@types/chai": "4.3.1",
40
41
  "@types/chai-as-promised": "^7",
41
42
  "@types/chai-jest-snapshot": "^1.3.0",
@@ -44,7 +45,7 @@
44
45
  "@types/faker": "^4.1.0",
45
46
  "@types/lolex": "^2.1.2",
46
47
  "@types/mocha": "^8.2.2",
47
- "@types/node": "18.11.5",
48
+ "@types/node": "^18.11.5",
48
49
  "@types/object-hash": "^1.3.0",
49
50
  "@types/semver": "7.3.10",
50
51
  "@types/sinon": "^9.0.0",
@@ -56,7 +57,7 @@
56
57
  "cpx2": "^3.0.0",
57
58
  "cross-env": "^5.1.4",
58
59
  "deep-equal": "^1",
59
- "eslint": "^7.11.0",
60
+ "eslint": "^8.36.0",
60
61
  "faker": "^4.1.0",
61
62
  "lolex": "^2.7.1",
62
63
  "mocha": "^10.0.0",
@@ -65,7 +66,7 @@
65
66
  "sinon": "^9.0.2",
66
67
  "sinon-chai": "^3.2.0",
67
68
  "typemoq": "^2.1.0",
68
- "typescript": "~4.4.0"
69
+ "typescript": "~5.0.2"
69
70
  },
70
71
  "dependencies": {
71
72
  "object-hash": "^1.3.1",
@@ -82,7 +83,6 @@
82
83
  },
83
84
  "scripts": {
84
85
  "build": "npm run -s build:cjs",
85
- "build:ci": "npm run -s build",
86
86
  "build:cjs": "npm run -s copy:assets && tsc 1>&2",
87
87
  "copy:assets": "cpx \"./assets/**/*\" ./lib/cjs/assets",
88
88
  "build:watch": "npm run -s build:cjs -- -w",