@osdk/client 2.6.1 → 2.7.0-beta.10
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.
- package/CHANGELOG.md +92 -88
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/MinimalClientContext.js.map +1 -1
- package/build/browser/actions/actions.test.js +9 -0
- package/build/browser/actions/actions.test.js.map +1 -1
- package/build/browser/actions/applyAction.js +4 -0
- package/build/browser/actions/applyAction.js.map +1 -1
- package/build/browser/createClient.js +2 -1
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createMinimalClient.js +1 -0
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +17 -1
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/browser/fetchMetadata.test.js +31 -0
- package/build/browser/fetchMetadata.test.js.map +1 -1
- package/build/browser/intellisense.test.js +1 -1
- package/build/browser/intellisense.test.js.map +1 -1
- package/build/browser/object/aggregate.js +1 -0
- package/build/browser/object/aggregate.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js +3 -0
- package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +8 -0
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +95 -3
- package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.js +18 -6
- package/build/browser/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js +189 -28
- package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/browser/object/fetchPage.js +18 -5
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/object/fetchPage.test.js.map +1 -1
- package/build/browser/object/formatting/applyPropertyFormatter.js +58 -0
- package/build/browser/object/formatting/applyPropertyFormatter.js.map +1 -0
- package/build/browser/object/formatting/applyPropertyFormatter.test.js +726 -0
- package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +1 -0
- package/build/browser/object/formatting/formatBoolean.js +23 -0
- package/build/browser/object/formatting/formatBoolean.js.map +1 -0
- package/build/browser/object/formatting/formatDateTime.js +158 -0
- package/build/browser/object/formatting/formatDateTime.js.map +1 -0
- package/build/browser/object/formatting/formatNumber.js +242 -0
- package/build/browser/object/formatting/formatNumber.js.map +1 -0
- package/build/browser/object/formatting/propertyFormattingUtils.js +39 -0
- package/build/browser/object/formatting/propertyFormattingUtils.js.map +1 -0
- package/build/browser/object/object.test.js +123 -0
- package/build/browser/object/object.test.js.map +1 -1
- package/build/browser/objectSet/InterfaceObjectSet.test.js +1 -1
- package/build/browser/objectSet/InterfaceObjectSet.test.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.test.js +7 -6
- package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
- package/build/browser/objectSet/ObjectSetListenerWebsocket.js +2 -2
- package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
- package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
- package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
- package/build/browser/objectSet/createObjectSet.js +13 -0
- package/build/browser/objectSet/createObjectSet.js.map +1 -1
- package/build/browser/objectSet/fetchLinksPage.js +57 -0
- package/build/browser/objectSet/fetchLinksPage.js.map +1 -0
- package/build/browser/objectSet/fetchLinksPage.test.js +102 -0
- package/build/browser/objectSet/fetchLinksPage.test.js.map +1 -0
- package/build/browser/observable/ListPayload.js.map +1 -1
- package/build/browser/observable/ObjectPayload.js.map +1 -1
- package/build/browser/observable/ObservableClient.js +0 -5
- package/build/browser/observable/ObservableClient.js.map +1 -1
- package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/browser/observable/internal/Store.test.js +104 -1
- package/build/browser/observable/internal/Store.test.js.map +1 -1
- package/build/browser/observable/internal/actions/OptimisticJob.js +1 -1
- package/build/browser/observable/internal/actions/OptimisticJob.js.map +1 -1
- package/build/browser/observable/internal/base-list/BaseListQuery.js +1 -1
- package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/browser/observable/internal/links/SpecificLinkQuery.js +9 -1
- package/build/browser/observable/internal/links/SpecificLinkQuery.js.map +1 -1
- package/build/browser/observable/internal/list/ListQuery.js +17 -2
- package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
- package/build/browser/observable/internal/objectset/ObjectSetQuery.js +9 -7
- package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
- package/build/browser/observable/internal/utils/rdpFieldOperations.js +46 -25
- package/build/browser/observable/internal/utils/rdpFieldOperations.js.map +1 -1
- package/build/browser/observable/internal/utils/rdpFieldOperations.test.js +172 -0
- package/build/browser/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
- package/build/browser/ontology/loadActionMetadata.js +3 -1
- package/build/browser/ontology/loadActionMetadata.js.map +1 -1
- package/build/browser/ontology/loadFullObjectMetadata.js +2 -1
- package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -1
- package/build/browser/ontology/loadInterfaceMetadata.js +2 -1
- package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/queries/applyQuery.js +14 -0
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/queries/queries.test.js +14 -2
- package/build/browser/queries/queries.test.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/util/toDataValue.js +0 -1
- package/build/browser/util/toDataValue.js.map +1 -1
- package/build/browser/util/toDataValue.test.js +4 -0
- package/build/browser/util/toDataValue.test.js.map +1 -1
- package/build/cjs/{chunk-6SCDLAU2.cjs → chunk-LDTMSHUZ.cjs} +4 -4
- package/build/cjs/{chunk-6SCDLAU2.cjs.map → chunk-LDTMSHUZ.cjs.map} +1 -1
- package/build/cjs/{chunk-BRUBBJUT.cjs → chunk-MZZAHBN6.cjs} +636 -138
- package/build/cjs/chunk-MZZAHBN6.cjs.map +1 -0
- package/build/cjs/{chunk-EHMN4DL4.cjs → chunk-RDZ5NKAI.cjs} +210 -129
- package/build/cjs/chunk-RDZ5NKAI.cjs.map +1 -0
- package/build/cjs/{createClient-DvwysJMX.d.cts → createClient-D5G3qzAO.d.cts} +1 -0
- package/build/cjs/{delay-KIUUJ5NJ.cjs → delay-W2TSML2P.cjs} +4 -4
- package/build/cjs/{delay-KIUUJ5NJ.cjs.map → delay-W2TSML2P.cjs.map} +1 -1
- package/build/cjs/index.cjs +12 -12
- package/build/cjs/index.d.cts +1 -1
- package/build/cjs/public/internal-node.cjs +219 -219
- package/build/cjs/public/internal.cjs +14 -14
- package/build/cjs/public/unstable-do-not-use.cjs +335 -145
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +9 -9
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/MinimalClientContext.js.map +1 -1
- package/build/esm/actions/actions.test.js +9 -0
- package/build/esm/actions/actions.test.js.map +1 -1
- package/build/esm/actions/applyAction.js +4 -0
- package/build/esm/actions/applyAction.js.map +1 -1
- package/build/esm/createClient.js +2 -1
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createMinimalClient.js +1 -0
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +17 -1
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/esm/fetchMetadata.test.js +31 -0
- package/build/esm/fetchMetadata.test.js.map +1 -1
- package/build/esm/intellisense.test.js +1 -1
- package/build/esm/intellisense.test.js.map +1 -1
- package/build/esm/object/aggregate.js +1 -0
- package/build/esm/object/aggregate.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js +3 -0
- package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +8 -0
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +95 -3
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.js +18 -6
- package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js +189 -28
- package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/esm/object/fetchPage.js +18 -5
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/object/fetchPage.test.js.map +1 -1
- package/build/esm/object/formatting/applyPropertyFormatter.js +58 -0
- package/build/esm/object/formatting/applyPropertyFormatter.js.map +1 -0
- package/build/esm/object/formatting/applyPropertyFormatter.test.js +726 -0
- package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +1 -0
- package/build/esm/object/formatting/formatBoolean.js +23 -0
- package/build/esm/object/formatting/formatBoolean.js.map +1 -0
- package/build/esm/object/formatting/formatDateTime.js +158 -0
- package/build/esm/object/formatting/formatDateTime.js.map +1 -0
- package/build/esm/object/formatting/formatNumber.js +242 -0
- package/build/esm/object/formatting/formatNumber.js.map +1 -0
- package/build/esm/object/formatting/propertyFormattingUtils.js +39 -0
- package/build/esm/object/formatting/propertyFormattingUtils.js.map +1 -0
- package/build/esm/object/object.test.js +123 -0
- package/build/esm/object/object.test.js.map +1 -1
- package/build/esm/objectSet/InterfaceObjectSet.test.js +1 -1
- package/build/esm/objectSet/InterfaceObjectSet.test.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.test.js +7 -6
- package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
- package/build/esm/objectSet/ObjectSetListenerWebsocket.js +2 -2
- package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
- package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
- package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
- package/build/esm/objectSet/createObjectSet.js +13 -0
- package/build/esm/objectSet/createObjectSet.js.map +1 -1
- package/build/esm/objectSet/fetchLinksPage.js +57 -0
- package/build/esm/objectSet/fetchLinksPage.js.map +1 -0
- package/build/esm/objectSet/fetchLinksPage.test.js +102 -0
- package/build/esm/objectSet/fetchLinksPage.test.js.map +1 -0
- package/build/esm/observable/ListPayload.js.map +1 -1
- package/build/esm/observable/ObjectPayload.js.map +1 -1
- package/build/esm/observable/ObservableClient.js +0 -5
- package/build/esm/observable/ObservableClient.js.map +1 -1
- package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/esm/observable/internal/Store.test.js +104 -1
- package/build/esm/observable/internal/Store.test.js.map +1 -1
- package/build/esm/observable/internal/actions/OptimisticJob.js +1 -1
- package/build/esm/observable/internal/actions/OptimisticJob.js.map +1 -1
- package/build/esm/observable/internal/base-list/BaseListQuery.js +1 -1
- package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/esm/observable/internal/links/SpecificLinkQuery.js +9 -1
- package/build/esm/observable/internal/links/SpecificLinkQuery.js.map +1 -1
- package/build/esm/observable/internal/list/ListQuery.js +17 -2
- package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
- package/build/esm/observable/internal/objectset/ObjectSetQuery.js +9 -7
- package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
- package/build/esm/observable/internal/utils/rdpFieldOperations.js +46 -25
- package/build/esm/observable/internal/utils/rdpFieldOperations.js.map +1 -1
- package/build/esm/observable/internal/utils/rdpFieldOperations.test.js +172 -0
- package/build/esm/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
- package/build/esm/ontology/loadActionMetadata.js +3 -1
- package/build/esm/ontology/loadActionMetadata.js.map +1 -1
- package/build/esm/ontology/loadFullObjectMetadata.js +2 -1
- package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -1
- package/build/esm/ontology/loadInterfaceMetadata.js +2 -1
- package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -1
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/queries/applyQuery.js +14 -0
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/queries/queries.test.js +14 -2
- package/build/esm/queries/queries.test.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/util/toDataValue.js +0 -1
- package/build/esm/util/toDataValue.js.map +1 -1
- package/build/esm/util/toDataValue.test.js +4 -0
- package/build/esm/util/toDataValue.test.js.map +1 -1
- package/build/types/Client.d.ts +1 -1
- package/build/types/MinimalClientContext.d.ts +1 -0
- package/build/types/MinimalClientContext.d.ts.map +1 -1
- package/build/types/actions/applyAction.d.ts.map +1 -1
- package/build/types/createClient.d.ts +1 -0
- package/build/types/createClient.d.ts.map +1 -1
- package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts +2 -0
- package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts.map +1 -1
- package/build/types/object/convertWireToOsdkObjects.d.ts +4 -4
- package/build/types/object/convertWireToOsdkObjects.d.ts.map +1 -1
- package/build/types/object/fetchPage.d.ts.map +1 -1
- package/build/types/object/formatting/applyPropertyFormatter.d.ts +18 -0
- package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +1 -0
- package/build/types/object/formatting/applyPropertyFormatter.test.d.ts +1 -0
- package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +1 -0
- package/build/types/object/formatting/formatBoolean.d.ts +5 -0
- package/build/types/object/formatting/formatBoolean.d.ts.map +1 -0
- package/build/types/object/formatting/formatDateTime.d.ts +6 -0
- package/build/types/object/formatting/formatDateTime.d.ts.map +1 -0
- package/build/types/object/formatting/formatNumber.d.ts +15 -0
- package/build/types/object/formatting/formatNumber.d.ts.map +1 -0
- package/build/types/object/formatting/propertyFormattingUtils.d.ts +10 -0
- package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +1 -0
- package/build/types/object/object.test.d.ts.map +1 -1
- package/build/types/objectSet/fetchLinksPage.d.ts +1 -0
- package/build/types/objectSet/fetchLinksPage.d.ts.map +1 -0
- package/build/types/objectSet/fetchLinksPage.test.d.ts +1 -0
- package/build/types/objectSet/fetchLinksPage.test.d.ts.map +1 -0
- package/build/types/observable/ListPayload.d.ts +3 -2
- package/build/types/observable/ListPayload.d.ts.map +1 -1
- package/build/types/observable/ObjectPayload.d.ts +2 -2
- package/build/types/observable/ObjectPayload.d.ts.map +1 -1
- package/build/types/observable/ObservableClient.d.ts +10 -7
- package/build/types/observable/ObservableClient.d.ts.map +1 -1
- package/build/types/observable/internal/Store.test.d.ts.map +1 -1
- package/build/types/observable/internal/actions/OptimisticJob.d.ts.map +1 -1
- package/build/types/observable/internal/links/SpecificLinkQuery.d.ts.map +1 -1
- package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
- package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
- package/build/types/observable/internal/utils/rdpFieldOperations.d.ts.map +1 -1
- package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts +1 -0
- package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts.map +1 -0
- package/build/types/public/unstable-do-not-use.d.ts +1 -1
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/build/types/queries/applyQuery.d.ts.map +1 -1
- package/package.json +14 -14
- package/build/cjs/chunk-BRUBBJUT.cjs.map +0 -1
- package/build/cjs/chunk-EHMN4DL4.cjs.map +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
|
|
4
4
|
var shared_net_errors = require('@osdk/shared.net.errors');
|
|
5
|
+
var invariant4 = require('tiny-invariant');
|
|
5
6
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
6
|
-
var invariant3 = require('tiny-invariant');
|
|
7
7
|
var api = require('@osdk/api');
|
|
8
8
|
var WebSocket = require('isomorphic-ws');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var invariant4__default = /*#__PURE__*/_interopDefault(invariant4);
|
|
13
13
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
14
14
|
|
|
15
15
|
// src/object/fetchPage.ts
|
|
16
|
-
|
|
16
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
19
|
-
|
|
18
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
19
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
21
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
22
22
|
var Action_exports = {};
|
|
23
|
-
|
|
23
|
+
chunkLDTMSHUZ_cjs.__export(Action_exports, {
|
|
24
24
|
apply: () => apply,
|
|
25
25
|
applyAsync: () => applyAsync,
|
|
26
26
|
applyBatch: () => applyBatch,
|
|
27
27
|
applyWithOverrides: () => applyWithOverrides
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
32
|
-
|
|
31
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
32
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
35
|
-
|
|
34
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
35
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
|
|
38
|
-
|
|
38
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
39
39
|
var symbolClientContext = Symbol("ClientContext");
|
|
40
40
|
|
|
41
41
|
// ../../node_modules/.pnpm/@osdk+shared.client2@1.0.0/node_modules/@osdk/shared.client2/index.js
|
|
42
|
-
|
|
42
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
43
43
|
var symbolClientContext2 = "__osdkClientContext";
|
|
44
44
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
45
45
|
const path = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
@@ -105,7 +105,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
105
105
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
108
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
109
109
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
110
110
|
function apply($ctx, ...args) {
|
|
111
111
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -123,17 +123,17 @@ function applyWithOverrides($ctx, ...args) {
|
|
|
123
123
|
return foundryPlatformFetch($ctx, _applyWithOverrides, ...args);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
127
|
-
|
|
126
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
127
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
128
128
|
|
|
129
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
129
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
130
130
|
var ActionTypeV2_exports = {};
|
|
131
|
-
|
|
131
|
+
chunkLDTMSHUZ_cjs.__export(ActionTypeV2_exports, {
|
|
132
132
|
get: () => get,
|
|
133
133
|
getByRid: () => getByRid,
|
|
134
134
|
list: () => list
|
|
135
135
|
});
|
|
136
|
-
|
|
136
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
137
137
|
var _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
|
|
138
138
|
function list($ctx, ...args) {
|
|
139
139
|
return foundryPlatformFetch($ctx, _list, ...args);
|
|
@@ -147,15 +147,15 @@ function getByRid($ctx, ...args) {
|
|
|
147
147
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
150
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
151
151
|
var Attachment_exports = {};
|
|
152
|
-
|
|
152
|
+
chunkLDTMSHUZ_cjs.__export(Attachment_exports, {
|
|
153
153
|
get: () => get2,
|
|
154
154
|
read: () => read,
|
|
155
155
|
upload: () => upload,
|
|
156
156
|
uploadWithRid: () => uploadWithRid
|
|
157
157
|
});
|
|
158
|
-
|
|
158
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
159
159
|
var _upload = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
|
|
160
160
|
function upload($ctx, ...args) {
|
|
161
161
|
const headerParams = {
|
|
@@ -183,23 +183,23 @@ function get2($ctx, ...args) {
|
|
|
183
183
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
187
|
-
|
|
186
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
187
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
188
188
|
|
|
189
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
190
|
-
|
|
189
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
190
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
191
191
|
|
|
192
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
193
|
-
|
|
192
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
193
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
194
194
|
|
|
195
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
195
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
196
196
|
var MediaReferenceProperty_exports = {};
|
|
197
|
-
|
|
197
|
+
chunkLDTMSHUZ_cjs.__export(MediaReferenceProperty_exports, {
|
|
198
198
|
getMediaContent: () => getMediaContent,
|
|
199
199
|
getMediaMetadata: () => getMediaMetadata,
|
|
200
200
|
upload: () => upload2
|
|
201
201
|
});
|
|
202
|
-
|
|
202
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
203
203
|
var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
|
|
204
204
|
function getMediaContent($ctx, ...args) {
|
|
205
205
|
return foundryPlatformFetch($ctx, _getMediaContent, ...args);
|
|
@@ -213,16 +213,16 @@ function upload2($ctx, ...args) {
|
|
|
213
213
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
216
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
217
217
|
var ObjectTypeV2_exports = {};
|
|
218
|
-
|
|
218
|
+
chunkLDTMSHUZ_cjs.__export(ObjectTypeV2_exports, {
|
|
219
219
|
get: () => get3,
|
|
220
220
|
getFullMetadata: () => getFullMetadata,
|
|
221
221
|
getOutgoingLinkType: () => getOutgoingLinkType,
|
|
222
222
|
list: () => list2,
|
|
223
223
|
listOutgoingLinkTypes: () => listOutgoingLinkTypes
|
|
224
224
|
});
|
|
225
|
-
|
|
225
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
226
226
|
var _list2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
|
|
227
227
|
function list2($ctx, ...args) {
|
|
228
228
|
return foundryPlatformFetch($ctx, _list2, ...args);
|
|
@@ -244,9 +244,9 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
244
244
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
247
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
248
248
|
var OntologyInterface_exports = {};
|
|
249
|
-
|
|
249
|
+
chunkLDTMSHUZ_cjs.__export(OntologyInterface_exports, {
|
|
250
250
|
aggregate: () => aggregate,
|
|
251
251
|
get: () => get4,
|
|
252
252
|
getOutgoingInterfaceLinkType: () => getOutgoingInterfaceLinkType,
|
|
@@ -256,7 +256,7 @@ chunk6SCDLAU2_cjs.__export(OntologyInterface_exports, {
|
|
|
256
256
|
listOutgoingInterfaceLinkTypes: () => listOutgoingInterfaceLinkTypes,
|
|
257
257
|
search: () => search
|
|
258
258
|
});
|
|
259
|
-
|
|
259
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
260
260
|
var _list3 = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
|
|
261
261
|
function list3($ctx, ...args) {
|
|
262
262
|
return foundryPlatformFetch($ctx, _list3, ...args);
|
|
@@ -290,9 +290,9 @@ function listInterfaceLinkedObjects($ctx, ...args) {
|
|
|
290
290
|
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
293
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
294
294
|
var OntologyObjectSet_exports = {};
|
|
295
|
-
|
|
295
|
+
chunkLDTMSHUZ_cjs.__export(OntologyObjectSet_exports, {
|
|
296
296
|
aggregate: () => aggregate2,
|
|
297
297
|
createTemporary: () => createTemporary,
|
|
298
298
|
get: () => get5,
|
|
@@ -301,7 +301,7 @@ chunk6SCDLAU2_cjs.__export(OntologyObjectSet_exports, {
|
|
|
301
301
|
loadMultipleObjectTypes: () => loadMultipleObjectTypes,
|
|
302
302
|
loadObjectsOrInterfaces: () => loadObjectsOrInterfaces
|
|
303
303
|
});
|
|
304
|
-
|
|
304
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
305
305
|
var _createTemporary = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 3];
|
|
306
306
|
function createTemporary($ctx, ...args) {
|
|
307
307
|
return foundryPlatformFetch($ctx, _createTemporary, ...args);
|
|
@@ -331,36 +331,36 @@ function loadLinks($ctx, ...args) {
|
|
|
331
331
|
return foundryPlatformFetch($ctx, _loadLinks, ...args);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
335
|
-
|
|
334
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
335
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
336
336
|
|
|
337
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
338
|
-
|
|
337
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
338
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
339
339
|
|
|
340
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
341
|
-
|
|
340
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
341
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
342
342
|
|
|
343
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
344
|
-
|
|
343
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
344
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
345
345
|
|
|
346
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
346
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
347
347
|
var Query_exports = {};
|
|
348
|
-
|
|
348
|
+
chunkLDTMSHUZ_cjs.__export(Query_exports, {
|
|
349
349
|
execute: () => execute
|
|
350
350
|
});
|
|
351
|
-
|
|
351
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
352
352
|
var _execute = [1, "/v2/ontologies/{0}/queries/{1}/execute", 7];
|
|
353
353
|
function execute($ctx, ...args) {
|
|
354
354
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
357
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
358
358
|
var QueryType_exports = {};
|
|
359
|
-
|
|
359
|
+
chunkLDTMSHUZ_cjs.__export(QueryType_exports, {
|
|
360
360
|
get: () => get6,
|
|
361
361
|
list: () => list4
|
|
362
362
|
});
|
|
363
|
-
|
|
363
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
364
364
|
var _list4 = [0, "/v2/ontologies/{0}/queryTypes", 2];
|
|
365
365
|
function list4($ctx, ...args) {
|
|
366
366
|
return foundryPlatformFetch($ctx, _list4, ...args);
|
|
@@ -370,14 +370,14 @@ function get6($ctx, ...args) {
|
|
|
370
370
|
return foundryPlatformFetch($ctx, _get6, ...args);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
373
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
374
374
|
var TimeSeriesPropertyV2_exports = {};
|
|
375
|
-
|
|
375
|
+
chunkLDTMSHUZ_cjs.__export(TimeSeriesPropertyV2_exports, {
|
|
376
376
|
getFirstPoint: () => getFirstPoint,
|
|
377
377
|
getLastPoint: () => getLastPoint,
|
|
378
378
|
streamPoints: () => streamPoints
|
|
379
379
|
});
|
|
380
|
-
|
|
380
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
381
381
|
var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
|
|
382
382
|
function getFirstPoint($ctx, ...args) {
|
|
383
383
|
return foundryPlatformFetch($ctx, _getFirstPoint, ...args);
|
|
@@ -391,13 +391,13 @@ function streamPoints($ctx, ...args) {
|
|
|
391
391
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
394
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
395
395
|
var TimeSeriesValueBankProperty_exports = {};
|
|
396
|
-
|
|
396
|
+
chunkLDTMSHUZ_cjs.__export(TimeSeriesValueBankProperty_exports, {
|
|
397
397
|
getLatestValue: () => getLatestValue,
|
|
398
398
|
streamValues: () => streamValues
|
|
399
399
|
});
|
|
400
|
-
|
|
400
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
401
401
|
var _getLatestValue = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue", 2];
|
|
402
402
|
function getLatestValue($ctx, ...args) {
|
|
403
403
|
return foundryPlatformFetch($ctx, _getLatestValue, ...args);
|
|
@@ -408,7 +408,7 @@ function streamValues($ctx, ...args) {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
// src/internal/conversions/extractNamespace.ts
|
|
411
|
-
|
|
411
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
412
412
|
function extractNamespace(fqApiName) {
|
|
413
413
|
const last = fqApiName.lastIndexOf(".");
|
|
414
414
|
if (last === -1) return [void 0, fqApiName];
|
|
@@ -416,7 +416,7 @@ function extractNamespace(fqApiName) {
|
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
// src/util/addUserAgentAndRequestContextHeaders.ts
|
|
419
|
-
|
|
419
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
420
420
|
var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
|
|
421
421
|
...client,
|
|
422
422
|
fetch: shared_net_fetch.createFetchHeaderMutator(client.fetch, (headers) => {
|
|
@@ -429,7 +429,7 @@ var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
|
|
|
429
429
|
});
|
|
430
430
|
|
|
431
431
|
// src/util/extractObjectOrInterfaceType.ts
|
|
432
|
-
|
|
432
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
433
433
|
async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
434
434
|
switch (objectSet.type) {
|
|
435
435
|
case "searchAround": {
|
|
@@ -439,7 +439,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
439
439
|
}
|
|
440
440
|
const objOrInterfaceDef2 = def2.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def2.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def2.apiName);
|
|
441
441
|
const linkDef2 = objOrInterfaceDef2.links[objectSet.link];
|
|
442
|
-
!linkDef2 ? process.env.NODE_ENV !== "production" ?
|
|
442
|
+
!linkDef2 ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant4__default.default(false) : void 0;
|
|
443
443
|
return objOrInterfaceDef2.type === "object" ? {
|
|
444
444
|
apiName: objOrInterfaceDef2.links[objectSet.link].targetType,
|
|
445
445
|
type: "object"
|
|
@@ -477,7 +477,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
477
477
|
const objectSetTypes2 = await Promise.all(objectSets2.map((os) => extractObjectOrInterfaceType(clientCtx, os)));
|
|
478
478
|
const filteredObjectTypes2 = objectSetTypes2.filter(Boolean);
|
|
479
479
|
const firstInterfaceType = filteredObjectTypes2.find((val) => val?.type === "interface");
|
|
480
|
-
!firstInterfaceType ? process.env.NODE_ENV !== "production" ?
|
|
480
|
+
!firstInterfaceType ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing interface type in intersect objectset scope'`) : invariant4__default.default(false) : void 0;
|
|
481
481
|
return firstInterfaceType;
|
|
482
482
|
}
|
|
483
483
|
case "subtract":
|
|
@@ -488,7 +488,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
488
488
|
const firstObjectType = filteredObjectTypes[0];
|
|
489
489
|
!filteredObjectTypes.every((val) => {
|
|
490
490
|
return val?.apiName === firstObjectType?.apiName && val?.type === firstObjectType?.type;
|
|
491
|
-
}) ? process.env.NODE_ENV !== "production" ?
|
|
491
|
+
}) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Can only have one object type when doing subtract, union") : invariant4__default.default(false) : void 0;
|
|
492
492
|
return filteredObjectTypes[0];
|
|
493
493
|
case "static":
|
|
494
494
|
case "reference":
|
|
@@ -500,7 +500,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
500
500
|
}
|
|
501
501
|
const objOrInterfaceDef = def.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def.apiName);
|
|
502
502
|
const linkDef = objOrInterfaceDef.links[objectSet.interfaceLink];
|
|
503
|
-
!linkDef ? process.env.NODE_ENV !== "production" ?
|
|
503
|
+
!linkDef ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.interfaceLink}'`) : invariant4__default.default(false) : void 0;
|
|
504
504
|
return objOrInterfaceDef.type === "object" ? {
|
|
505
505
|
apiName: objOrInterfaceDef.links[objectSet.interfaceLink].targetType,
|
|
506
506
|
type: "object"
|
|
@@ -510,12 +510,12 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
510
510
|
};
|
|
511
511
|
// We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
|
|
512
512
|
default:
|
|
513
|
-
process.env.NODE_ENV !== "production" ?
|
|
513
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for deriving object or interface type,`) : invariant4__default.default(false) ;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
// src/util/extractRdpDefinition.ts
|
|
518
|
-
|
|
518
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
519
519
|
async function extractRdpDefinition(clientCtx, objectSet) {
|
|
520
520
|
return (await extractRdpDefinitionInternal(clientCtx, objectSet, void 0)).definitions;
|
|
521
521
|
}
|
|
@@ -533,7 +533,7 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
533
533
|
}
|
|
534
534
|
const objDef = await clientCtx.ontologyProvider.getObjectDefinition(childObjectType);
|
|
535
535
|
const linkDef = objDef.links[objectSet.link];
|
|
536
|
-
!linkDef ? process.env.NODE_ENV !== "production" ?
|
|
536
|
+
!linkDef ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant4__default.default(false) : void 0;
|
|
537
537
|
return {
|
|
538
538
|
definitions: definitions2,
|
|
539
539
|
childObjectType: objDef.links[objectSet.link].targetType
|
|
@@ -619,13 +619,13 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
619
619
|
...acc,
|
|
620
620
|
...definitions2
|
|
621
621
|
}), {});
|
|
622
|
-
!(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ?
|
|
622
|
+
!(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Object sets combined using intersect, subtract, or union must not contain any derived property definitions") : invariant4__default.default(false) : void 0;
|
|
623
623
|
const firstValidChildObjectType = objectSetTypes.find(({
|
|
624
624
|
childObjectType
|
|
625
625
|
}) => childObjectType != null)?.childObjectType;
|
|
626
626
|
!objectSetTypes.every(({
|
|
627
627
|
childObjectType
|
|
628
|
-
}) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ?
|
|
628
|
+
}) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "All object sets in an intersect, subtract, or union must have the same child object type") : invariant4__default.default(false) : void 0;
|
|
629
629
|
return {
|
|
630
630
|
definitions: {},
|
|
631
631
|
childObjectType: firstValidChildObjectType
|
|
@@ -637,14 +637,14 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
637
637
|
};
|
|
638
638
|
// We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
|
|
639
639
|
case "interfaceLinkSearchAround":
|
|
640
|
-
process.env.NODE_ENV !== "production" ?
|
|
640
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant4__default.default(false) ;
|
|
641
641
|
default:
|
|
642
|
-
process.env.NODE_ENV !== "production" ?
|
|
642
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant4__default.default(false) ;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
// src/util/objectSetUtils.ts
|
|
647
|
-
|
|
647
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
648
648
|
function resolveBaseObjectSetType(objectType) {
|
|
649
649
|
return objectType.type === "interface" ? {
|
|
650
650
|
type: "interfaceBase",
|
|
@@ -690,6 +690,7 @@ function resolveInterfaceObjectSet(objectSet, interfaceTypeApiName, args) {
|
|
|
690
690
|
} : objectSet;
|
|
691
691
|
}
|
|
692
692
|
async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
|
|
693
|
+
const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
|
|
693
694
|
const requestBody = await applyFetchArgs(args, {
|
|
694
695
|
objectSet: {
|
|
695
696
|
type: "static",
|
|
@@ -697,7 +698,8 @@ async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
|
|
|
697
698
|
},
|
|
698
699
|
select: args?.$select ?? [],
|
|
699
700
|
excludeRid: !args?.$includeRid,
|
|
700
|
-
snapshot: useSnapshot
|
|
701
|
+
snapshot: useSnapshot,
|
|
702
|
+
loadPropertySecurities: shouldLoadPropertySecurities
|
|
701
703
|
}, client, {
|
|
702
704
|
type: "object",
|
|
703
705
|
apiName: ""
|
|
@@ -712,13 +714,14 @@ async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
|
|
|
712
714
|
transactionId: client.transactionId
|
|
713
715
|
});
|
|
714
716
|
return Promise.resolve({
|
|
715
|
-
data: await client.objectFactory2(client, result.data, void 0, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
|
|
717
|
+
data: await client.objectFactory2(client, result.data, void 0, {}, shouldLoadPropertySecurities ? result.propertySecurities : void 0, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings, result.interfaceToObjectTypeMappingsV2),
|
|
716
718
|
nextPageToken: result.nextPageToken,
|
|
717
719
|
totalCount: result.totalCount
|
|
718
720
|
});
|
|
719
721
|
}
|
|
720
722
|
async function fetchInterfacePage(client, interfaceType, args, objectSet, useSnapshot = false) {
|
|
721
723
|
if (args.$__UNSTABLE_useOldInterfaceApis) {
|
|
724
|
+
!(args.$loadPropertySecurityMetadata === false || args.$loadPropertySecurityMetadata === void 0) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "`$loadPropertySecurityMetadata` is not supported with old interface APIs") : invariant4__default.default(false) : void 0;
|
|
722
725
|
const baseRequestBody = {
|
|
723
726
|
augmentedProperties: {},
|
|
724
727
|
augmentedSharedPropertyTypes: {},
|
|
@@ -746,16 +749,19 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
|
|
|
746
749
|
// drop readonly
|
|
747
750
|
interfaceType.apiName,
|
|
748
751
|
!args.$includeRid,
|
|
749
|
-
await extractRdpDefinition(client, objectSet)
|
|
752
|
+
await extractRdpDefinition(client, objectSet),
|
|
753
|
+
void 0
|
|
750
754
|
);
|
|
751
755
|
return result2;
|
|
752
756
|
}
|
|
753
757
|
const extractedInterfaceTypeApiName = (await extractObjectOrInterfaceType(client, objectSet))?.apiName ?? interfaceType.apiName;
|
|
754
758
|
const resolvedInterfaceObjectSet = resolveInterfaceObjectSet(objectSet, extractedInterfaceTypeApiName, args);
|
|
759
|
+
const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
|
|
755
760
|
const requestBody = await buildAndRemapRequestBody(args, {
|
|
756
761
|
objectSet: resolvedInterfaceObjectSet,
|
|
757
762
|
select: args?.$select ? [...args.$select] : [],
|
|
758
763
|
selectV2: [],
|
|
764
|
+
loadPropertySecurities: shouldLoadPropertySecurities,
|
|
759
765
|
excludeRid: !args?.$includeRid,
|
|
760
766
|
snapshot: useSnapshot
|
|
761
767
|
}, client, interfaceType);
|
|
@@ -764,10 +770,11 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
|
|
|
764
770
|
}
|
|
765
771
|
const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, requestBody, {
|
|
766
772
|
preview: true,
|
|
773
|
+
branch: client.branch,
|
|
767
774
|
transactionId: client.transactionId
|
|
768
775
|
});
|
|
769
776
|
return Promise.resolve({
|
|
770
|
-
data: await client.objectFactory2(client, result.data, extractedInterfaceTypeApiName, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
|
|
777
|
+
data: await client.objectFactory2(client, result.data, extractedInterfaceTypeApiName, {}, shouldLoadPropertySecurities ? result.propertySecurities : void 0, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings, result.interfaceToObjectTypeMappingsV2),
|
|
771
778
|
nextPageToken: result.nextPageToken,
|
|
772
779
|
totalCount: result.totalCount
|
|
773
780
|
});
|
|
@@ -830,6 +837,9 @@ async function applyFetchArgs(args, body, _client, objectType) {
|
|
|
830
837
|
if (args?.$pageSize != null) {
|
|
831
838
|
body.pageSize = args.$pageSize;
|
|
832
839
|
}
|
|
840
|
+
if (args?.$loadPropertySecurityMetadata) {
|
|
841
|
+
body.loadPropertySecurities = true;
|
|
842
|
+
}
|
|
833
843
|
const orderBy = args?.$orderBy;
|
|
834
844
|
if (orderBy) {
|
|
835
845
|
if (orderBy === "relevance") {
|
|
@@ -854,10 +864,12 @@ async function applyFetchArgs(args, body, _client, objectType) {
|
|
|
854
864
|
async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot = false) {
|
|
855
865
|
void client.ontologyProvider.getObjectDefinition(objectType.apiName).catch(() => {
|
|
856
866
|
});
|
|
867
|
+
const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
|
|
857
868
|
const requestBody = await buildAndRemapRequestBody(args, {
|
|
858
869
|
objectSet,
|
|
859
870
|
select: args?.$select ? [...args.$select] : [],
|
|
860
871
|
selectV2: [],
|
|
872
|
+
loadPropertySecurities: shouldLoadPropertySecurities,
|
|
861
873
|
excludeRid: !args?.$includeRid,
|
|
862
874
|
snapshot: useSnapshot
|
|
863
875
|
}, client, objectType);
|
|
@@ -865,20 +877,21 @@ async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot
|
|
|
865
877
|
await client.flushEdits();
|
|
866
878
|
}
|
|
867
879
|
const r = await OntologyObjectSet_exports.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, requestBody, {
|
|
880
|
+
branch: client.branch,
|
|
868
881
|
transactionId: client.transactionId
|
|
869
882
|
});
|
|
870
883
|
return Promise.resolve({
|
|
871
|
-
data: await client.objectFactory(client, r.data, void 0, void 0, await extractRdpDefinition(client, objectSet), args.$select, false),
|
|
884
|
+
data: await client.objectFactory(client, r.data, void 0, void 0, await extractRdpDefinition(client, objectSet), shouldLoadPropertySecurities ? r.propertySecurities : void 0, args.$select, false),
|
|
872
885
|
nextPageToken: r.nextPageToken,
|
|
873
886
|
totalCount: r.totalCount
|
|
874
887
|
});
|
|
875
888
|
}
|
|
876
889
|
|
|
877
890
|
// src/public-utils/hydrateAttachmentFromRid.ts
|
|
878
|
-
|
|
891
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
879
892
|
|
|
880
893
|
// src/Client.ts
|
|
881
|
-
|
|
894
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
882
895
|
var additionalContext = Symbol("additionalContext");
|
|
883
896
|
|
|
884
897
|
// src/public-utils/hydrateAttachmentFromRid.ts
|
|
@@ -902,10 +915,10 @@ function hydrateAttachmentFromRidInternal(client, rid) {
|
|
|
902
915
|
}
|
|
903
916
|
|
|
904
917
|
// src/logger/MinimalLogger.ts
|
|
905
|
-
|
|
918
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
906
919
|
|
|
907
920
|
// src/logger/BaseLogger.ts
|
|
908
|
-
|
|
921
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
909
922
|
function noop() {
|
|
910
923
|
}
|
|
911
924
|
var levels = {
|
|
@@ -973,7 +986,7 @@ var MinimalLogger = class _MinimalLogger extends BaseLogger {
|
|
|
973
986
|
};
|
|
974
987
|
|
|
975
988
|
// src/object/fetchSingle.ts
|
|
976
|
-
|
|
989
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
977
990
|
async function fetchSingle(client, objectType, args, objectSet) {
|
|
978
991
|
const result = await fetchPage(client, objectType, {
|
|
979
992
|
...args,
|
|
@@ -1003,16 +1016,16 @@ async function fetchSingleWithErrors(client, objectType, args, objectSet) {
|
|
|
1003
1016
|
}
|
|
1004
1017
|
|
|
1005
1018
|
// src/objectSet/createObjectSet.ts
|
|
1006
|
-
|
|
1019
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1007
1020
|
|
|
1008
1021
|
// src/derivedProperties/createWithPropertiesObjectSet.ts
|
|
1009
|
-
|
|
1022
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1010
1023
|
|
|
1011
1024
|
// src/internal/conversions/modernToLegacyWhereClause.ts
|
|
1012
|
-
|
|
1025
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1013
1026
|
|
|
1014
1027
|
// src/internal/conversions/fullyQualifyPropName.ts
|
|
1015
|
-
|
|
1028
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1016
1029
|
function fullyQualifyPropName(fieldName, objectOrInterface) {
|
|
1017
1030
|
if (objectOrInterface.type === "interface") {
|
|
1018
1031
|
const [objApiNamespace] = extractNamespace(objectOrInterface.apiName);
|
|
@@ -1023,10 +1036,10 @@ function fullyQualifyPropName(fieldName, objectOrInterface) {
|
|
|
1023
1036
|
}
|
|
1024
1037
|
|
|
1025
1038
|
// src/internal/conversions/makeGeoFilterIntersects.ts
|
|
1026
|
-
|
|
1039
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1027
1040
|
|
|
1028
1041
|
// src/internal/conversions/makeGeoFilterBbox.ts
|
|
1029
|
-
|
|
1042
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1030
1043
|
function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
|
|
1031
1044
|
return {
|
|
1032
1045
|
type: filterType === "$within" ? "withinBoundingBox" : "intersectsBoundingBox",
|
|
@@ -1053,7 +1066,7 @@ function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
|
|
|
1053
1066
|
}
|
|
1054
1067
|
|
|
1055
1068
|
// src/internal/conversions/makeGeoFilterPolygon.ts
|
|
1056
|
-
|
|
1069
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1057
1070
|
function makeGeoFilterPolygon(coordinates, filterType, propertyIdentifier, field) {
|
|
1058
1071
|
return {
|
|
1059
1072
|
type: filterType,
|
|
@@ -1081,7 +1094,7 @@ function makeGeoFilterIntersects(intersectsBody, propertyIdentifier, field) {
|
|
|
1081
1094
|
}
|
|
1082
1095
|
|
|
1083
1096
|
// src/internal/conversions/makeGeoFilterWithin.ts
|
|
1084
|
-
|
|
1097
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1085
1098
|
function makeGeoFilterWithin(withinBody, propertyIdentifier, field) {
|
|
1086
1099
|
if (Array.isArray(withinBody)) {
|
|
1087
1100
|
return makeGeoFilterBbox(withinBody, "$within", propertyIdentifier, field);
|
|
@@ -1135,7 +1148,7 @@ function modernToLegacyWhereClause(whereClause, objectOrInterface, rdpNames) {
|
|
|
1135
1148
|
}
|
|
1136
1149
|
function modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames) {
|
|
1137
1150
|
const parts = Object.entries(whereClause);
|
|
1138
|
-
!(parts.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1151
|
+
!(parts.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid where clause provided.") : invariant4__default.default(false) : void 0;
|
|
1139
1152
|
if (isAndClause(whereClause)) {
|
|
1140
1153
|
return {
|
|
1141
1154
|
type: "and",
|
|
@@ -1155,7 +1168,7 @@ function modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames
|
|
|
1155
1168
|
return handleWherePair(parts[0], objectOrInterface, void 0, rdpNames);
|
|
1156
1169
|
}
|
|
1157
1170
|
function handleWherePair([fieldName, filter], objectOrInterface, structFieldSelector, rdpNames) {
|
|
1158
|
-
!(filter != null) ? process.env.NODE_ENV !== "production" ?
|
|
1171
|
+
!(filter != null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Defined key values are only allowed when they are not undefined.") : invariant4__default.default(false) : void 0;
|
|
1159
1172
|
const isRdp = !structFieldSelector && rdpNames?.has(fieldName);
|
|
1160
1173
|
const propertyIdentifier = isRdp ? {
|
|
1161
1174
|
type: "property",
|
|
@@ -1166,7 +1179,7 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
|
|
|
1166
1179
|
propertyApiName: fullyQualifyPropName(structFieldSelector.propertyApiName, objectOrInterface)
|
|
1167
1180
|
} : void 0;
|
|
1168
1181
|
const field = !isRdp && structFieldSelector == null ? fullyQualifyPropName(fieldName, objectOrInterface) : void 0;
|
|
1169
|
-
!(field == null || propertyIdentifier == null && (field != null || isRdp != null)) ? process.env.NODE_ENV !== "production" ?
|
|
1182
|
+
!(field == null || propertyIdentifier == null && (field != null || isRdp != null)) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Encountered error constructing where clause: field and propertyIdentifier cannot both be defined") : invariant4__default.default(false) : void 0;
|
|
1170
1183
|
if (typeof filter === "string" || typeof filter === "number" || typeof filter === "boolean") {
|
|
1171
1184
|
return {
|
|
1172
1185
|
type: "eq",
|
|
@@ -1179,10 +1192,10 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
|
|
|
1179
1192
|
}
|
|
1180
1193
|
const keysOfFilter = Object.keys(filter);
|
|
1181
1194
|
const hasDollarSign = keysOfFilter.some((key) => key.startsWith("$"));
|
|
1182
|
-
!(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1195
|
+
!(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "A WhereClause Filter with multiple clauses/fields is not allowed. Instead, use an 'or'/'and' clause to combine multiple filters.") : invariant4__default.default(false) : void 0;
|
|
1183
1196
|
if (!hasDollarSign) {
|
|
1184
1197
|
const structFilter = Object.entries(filter);
|
|
1185
|
-
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1198
|
+
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant4__default.default(false) : void 0;
|
|
1186
1199
|
const structFieldApiName = keysOfFilter[0];
|
|
1187
1200
|
return handleWherePair(Object.entries(filter)[0], objectOrInterface, {
|
|
1188
1201
|
propertyApiName: fieldName,
|
|
@@ -1190,10 +1203,10 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
|
|
|
1190
1203
|
}, rdpNames);
|
|
1191
1204
|
}
|
|
1192
1205
|
const firstKey = keysOfFilter[0];
|
|
1193
|
-
!(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ?
|
|
1206
|
+
!(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false) : invariant4__default.default(false) : void 0;
|
|
1194
1207
|
if (firstKey === "$contains" && filter[firstKey] instanceof Object) {
|
|
1195
1208
|
const structFilter = Object.entries(filter[firstKey]);
|
|
1196
|
-
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1209
|
+
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant4__default.default(false) : void 0;
|
|
1197
1210
|
const structFieldApiName = structFilter[0][0];
|
|
1198
1211
|
return handleWherePair(structFilter[0], objectOrInterface, {
|
|
1199
1212
|
propertyApiName: fieldName,
|
|
@@ -1241,7 +1254,7 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
|
|
|
1241
1254
|
}
|
|
1242
1255
|
|
|
1243
1256
|
// src/derivedProperties/derivedPropertyDefinitionFactory.ts
|
|
1244
|
-
|
|
1257
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1245
1258
|
function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
|
|
1246
1259
|
const definition = {
|
|
1247
1260
|
abs() {
|
|
@@ -1308,12 +1321,12 @@ function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
|
|
|
1308
1321
|
var getDefinitionFromMap = (arg, definitionMap) => {
|
|
1309
1322
|
if (typeof arg === "object") {
|
|
1310
1323
|
const definition = definitionMap.get(arg);
|
|
1311
|
-
!definition ? process.env.NODE_ENV !== "production" ?
|
|
1324
|
+
!definition ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Derived Property is not defined") : invariant4__default.default(false) : void 0;
|
|
1312
1325
|
return definition;
|
|
1313
1326
|
} else if (typeof arg === "number") {
|
|
1314
|
-
process.env.NODE_ENV !== "production" ?
|
|
1327
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Literals for derived properties are not yet supported") : invariant4__default.default(false) ;
|
|
1315
1328
|
}
|
|
1316
|
-
process.env.NODE_ENV !== "production" ?
|
|
1329
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid argument type for a derived property") : invariant4__default.default(false) ;
|
|
1317
1330
|
};
|
|
1318
1331
|
|
|
1319
1332
|
// src/derivedProperties/createWithPropertiesObjectSet.ts
|
|
@@ -1336,7 +1349,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1336
1349
|
},
|
|
1337
1350
|
aggregate: (aggregation, opt) => {
|
|
1338
1351
|
const splitAggregation = aggregation.split(":");
|
|
1339
|
-
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ?
|
|
1352
|
+
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation format") : invariant4__default.default(false) : void 0;
|
|
1340
1353
|
const [aggregationPropertyName, aggregationOperation] = splitAggregation;
|
|
1341
1354
|
let aggregationOperationDefinition;
|
|
1342
1355
|
switch (aggregationOperation) {
|
|
@@ -1374,7 +1387,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1374
1387
|
break;
|
|
1375
1388
|
}
|
|
1376
1389
|
default:
|
|
1377
|
-
process.env.NODE_ENV !== "production" ?
|
|
1390
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation operation " + aggregationOperation) : invariant4__default.default(false) ;
|
|
1378
1391
|
}
|
|
1379
1392
|
const wrappedObjectSet = {
|
|
1380
1393
|
type: "selection",
|
|
@@ -1406,22 +1419,39 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1406
1419
|
const selectorResult = derivedPropertyDefinitionFactory(wrappedObjectSet, definitionMap);
|
|
1407
1420
|
definitionMap.set(selectorResult, wrappedObjectSet);
|
|
1408
1421
|
return selectorResult;
|
|
1422
|
+
},
|
|
1423
|
+
constant: {
|
|
1424
|
+
double: (value) => {
|
|
1425
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1426
|
+
},
|
|
1427
|
+
integer: (value) => {
|
|
1428
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1429
|
+
},
|
|
1430
|
+
long: (value) => {
|
|
1431
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1432
|
+
},
|
|
1433
|
+
datetime: (value) => {
|
|
1434
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1435
|
+
},
|
|
1436
|
+
timestamp: (value) => {
|
|
1437
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1438
|
+
}
|
|
1409
1439
|
}
|
|
1410
1440
|
};
|
|
1411
1441
|
}
|
|
1412
1442
|
|
|
1413
1443
|
// src/object/aggregate.ts
|
|
1414
|
-
|
|
1444
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1415
1445
|
|
|
1416
1446
|
// src/internal/conversions/legacyToModernSingleAggregationResult.ts
|
|
1417
|
-
|
|
1447
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1418
1448
|
function legacyToModernSingleAggregationResult(entry) {
|
|
1419
1449
|
return entry.metrics.reduce((accumulator, curValue) => {
|
|
1420
1450
|
const parts = curValue.name.split(".");
|
|
1421
1451
|
if (parts[0] === "count") {
|
|
1422
1452
|
return accumulator;
|
|
1423
1453
|
}
|
|
1424
|
-
!(parts.length === 2) ? process.env.NODE_ENV !== "production" ?
|
|
1454
|
+
!(parts.length === 2) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "assumed we were getting a `${key}.${type}`") : invariant4__default.default(false) : void 0;
|
|
1425
1455
|
const property = parts[0];
|
|
1426
1456
|
const metricType = parts[1];
|
|
1427
1457
|
if (!(property in accumulator)) {
|
|
@@ -1433,7 +1463,7 @@ function legacyToModernSingleAggregationResult(entry) {
|
|
|
1433
1463
|
}
|
|
1434
1464
|
|
|
1435
1465
|
// src/internal/conversions/modernToLegacyAggregationClause.ts
|
|
1436
|
-
|
|
1466
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1437
1467
|
var directionFieldMap = (dir) => dir === "asc" ? "ASC" : dir === "desc" ? "DESC" : void 0;
|
|
1438
1468
|
function modernToLegacyAggregationClause(select) {
|
|
1439
1469
|
return Object.entries(select).flatMap(([propAndMetric, aggregationType]) => {
|
|
@@ -1457,7 +1487,7 @@ function modernToLegacyAggregationClause(select) {
|
|
|
1457
1487
|
}
|
|
1458
1488
|
|
|
1459
1489
|
// src/internal/conversions/modernToLegacyGroupByClause.ts
|
|
1460
|
-
|
|
1490
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1461
1491
|
function modernToLegacyGroupByClause(groupByClause) {
|
|
1462
1492
|
if (!groupByClause) return [];
|
|
1463
1493
|
return Object.entries(groupByClause).flatMap(([field, type]) => {
|
|
@@ -1528,10 +1558,11 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
|
|
|
1528
1558
|
groupBy: body.groupBy,
|
|
1529
1559
|
aggregation: body.aggregation
|
|
1530
1560
|
}, {
|
|
1561
|
+
branch: clientCtx.branch,
|
|
1531
1562
|
transactionId: clientCtx.transactionId
|
|
1532
1563
|
});
|
|
1533
1564
|
if (!req.$groupBy) {
|
|
1534
|
-
!(result.data.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1565
|
+
!(result.data.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "no group by clause should mean only one data result") : invariant4__default.default(false) : void 0;
|
|
1535
1566
|
return {
|
|
1536
1567
|
...aggregationToCountResult(result.data[0]),
|
|
1537
1568
|
...legacyToModernSingleAggregationResult(result.data[0])
|
|
@@ -1557,7 +1588,7 @@ function aggregationToCountResult(entry) {
|
|
|
1557
1588
|
}
|
|
1558
1589
|
|
|
1559
1590
|
// src/util/augmentRequestContext.ts
|
|
1560
|
-
|
|
1591
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1561
1592
|
var augmentRequestContext = (client, augment2) => ({
|
|
1562
1593
|
...client,
|
|
1563
1594
|
requestContext: {
|
|
@@ -1567,17 +1598,55 @@ var augmentRequestContext = (client, augment2) => ({
|
|
|
1567
1598
|
});
|
|
1568
1599
|
|
|
1569
1600
|
// src/util/WireObjectSet.ts
|
|
1570
|
-
|
|
1601
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1571
1602
|
var WIRE_OBJECT_SET_TYPES = /* @__PURE__ */ new Set(["base", "filter", "intersect", "reference", "searchAround", "static", "subtract", "union", "interfaceBase"]);
|
|
1572
1603
|
function isWireObjectSet(o) {
|
|
1573
1604
|
return o != null && typeof o === "object" && WIRE_OBJECT_SET_TYPES.has(o.type);
|
|
1574
1605
|
}
|
|
1575
1606
|
|
|
1607
|
+
// src/objectSet/fetchLinksPage.ts
|
|
1608
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1609
|
+
var fetchLinksPage = async (client, objectType, objectSet, links) => {
|
|
1610
|
+
if (objectType.type === "interface") {
|
|
1611
|
+
throw new Error("Interface object sets are not supported yet.");
|
|
1612
|
+
}
|
|
1613
|
+
void client.ontologyProvider.getObjectDefinition(objectType.apiName).catch(() => {
|
|
1614
|
+
});
|
|
1615
|
+
const result = await OntologyObjectSet_exports.loadLinks(client, await client.ontologyRid, {
|
|
1616
|
+
objectSet,
|
|
1617
|
+
links
|
|
1618
|
+
}, {
|
|
1619
|
+
branch: client.branch,
|
|
1620
|
+
preview: true
|
|
1621
|
+
});
|
|
1622
|
+
return remapLinksPage(result);
|
|
1623
|
+
};
|
|
1624
|
+
var remapLinksPage = (wireLinksPage) => {
|
|
1625
|
+
return {
|
|
1626
|
+
...wireLinksPage,
|
|
1627
|
+
data: wireLinksPage.data.flatMap(({
|
|
1628
|
+
sourceObject,
|
|
1629
|
+
linkedObjects
|
|
1630
|
+
}) => linkedObjects.map(({
|
|
1631
|
+
targetObject,
|
|
1632
|
+
linkType
|
|
1633
|
+
}) => ({
|
|
1634
|
+
source: remapObjectLocator(sourceObject),
|
|
1635
|
+
target: remapObjectLocator(targetObject),
|
|
1636
|
+
linkType
|
|
1637
|
+
})))
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
var remapObjectLocator = (wireObjectLocator) => ({
|
|
1641
|
+
$apiName: wireObjectLocator.__apiName,
|
|
1642
|
+
$primaryKey: wireObjectLocator.__primaryKey
|
|
1643
|
+
});
|
|
1644
|
+
|
|
1576
1645
|
// src/objectSet/ObjectSetListenerWebsocket.ts
|
|
1577
|
-
|
|
1646
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1578
1647
|
|
|
1579
1648
|
// src/util/exponentialBackoff.ts
|
|
1580
|
-
|
|
1649
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1581
1650
|
var DEFAULT_OPTIONS = {
|
|
1582
1651
|
initialDelayMs: 1e3,
|
|
1583
1652
|
maxDelayMs: 6e4,
|
|
@@ -1686,7 +1755,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1686
1755
|
this.#logger = client.logger?.child({}, {
|
|
1687
1756
|
msgPrefix: "<OSW> "
|
|
1688
1757
|
});
|
|
1689
|
-
!(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ?
|
|
1758
|
+
!(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Stack must be a URL") : invariant4__default.default(false) : void 0;
|
|
1690
1759
|
}
|
|
1691
1760
|
async subscribe(objectType, objectSet, listener, properties = []) {
|
|
1692
1761
|
const objOrInterfaceDef = objectType.type === "object" ? await this.#client.ontologyProvider.getObjectDefinition(objectType.apiName) : await this.#client.ontologyProvider.getInterfaceDefinition(objectType.apiName);
|
|
@@ -1880,7 +1949,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1880
1949
|
return;
|
|
1881
1950
|
}
|
|
1882
1951
|
default:
|
|
1883
|
-
process.env.NODE_ENV !== "production" ?
|
|
1952
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Unexpected message type") : invariant4__default.default(false) ;
|
|
1884
1953
|
}
|
|
1885
1954
|
};
|
|
1886
1955
|
#handleMessage_objectSetChanged = async (payload) => {
|
|
@@ -1894,7 +1963,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1894
1963
|
__primaryKey: sub.primaryKeyPropertyName != null ? o.primaryKey[sub.primaryKeyPropertyName] : void 0,
|
|
1895
1964
|
...o.primaryKey,
|
|
1896
1965
|
[o.property]: o.value
|
|
1897
|
-
}], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
|
|
1966
|
+
}], sub.interfaceApiName, {}, void 0, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
|
|
1898
1967
|
const singleOsdkObject = osdkObjectArray[0] ?? void 0;
|
|
1899
1968
|
return singleOsdkObject != null ? {
|
|
1900
1969
|
object: singleOsdkObject,
|
|
@@ -1916,7 +1985,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1916
1985
|
for (const key of keysToDelete) {
|
|
1917
1986
|
delete o.object[key];
|
|
1918
1987
|
}
|
|
1919
|
-
const osdkObjectArray = await this.#client.objectFactory2(this.#client, [o.object], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.object.__apiName, sub.interfaceApiName));
|
|
1988
|
+
const osdkObjectArray = await this.#client.objectFactory2(this.#client, [o.object], sub.interfaceApiName, {}, void 0, false, void 0, false, await this.#fetchInterfaceMapping(o.object.__apiName, sub.interfaceApiName));
|
|
1920
1989
|
const singleOsdkObject = osdkObjectArray[0] ?? void 0;
|
|
1921
1990
|
return singleOsdkObject != null ? {
|
|
1922
1991
|
object: singleOsdkObject,
|
|
@@ -1945,7 +2014,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1945
2014
|
}
|
|
1946
2015
|
#handleMessage_refreshObjectSet = (payload) => {
|
|
1947
2016
|
const sub = this.#subscriptions.get(payload.id);
|
|
1948
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
2017
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
|
|
1949
2018
|
try {
|
|
1950
2019
|
sub.listener.onOutOfDate();
|
|
1951
2020
|
} catch (error) {
|
|
@@ -1959,7 +2028,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1959
2028
|
responses
|
|
1960
2029
|
} = payload;
|
|
1961
2030
|
const subs = this.#pendingSubscriptions.get(id);
|
|
1962
|
-
!subs ? process.env.NODE_ENV !== "production" ?
|
|
2031
|
+
!subs ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `should have a pending subscription for ${id}`) : invariant4__default.default(false) : void 0;
|
|
1963
2032
|
this.#pendingSubscriptions.delete(id);
|
|
1964
2033
|
for (let i = 0; i < responses.length; i++) {
|
|
1965
2034
|
const sub = subs[i];
|
|
@@ -2001,7 +2070,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
2001
2070
|
#handleMessage_subscriptionClosed(payload) {
|
|
2002
2071
|
const sub = this.#subscriptions.get(payload.id);
|
|
2003
2072
|
if (sub == null && this.#endedSubscriptions.has(payload.id)) return;
|
|
2004
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
2073
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
|
|
2005
2074
|
this.#tryCatchOnError(sub, true, payload.cause);
|
|
2006
2075
|
this.#unsubscribe(sub, "error");
|
|
2007
2076
|
}
|
|
@@ -2030,7 +2099,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
2030
2099
|
if (this.#subscriptions.size > 0) {
|
|
2031
2100
|
if (process.env.NODE_ENV !== "production") {
|
|
2032
2101
|
for (const s of this.#subscriptions.values()) {
|
|
2033
|
-
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ?
|
|
2102
|
+
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "should not have done/error subscriptions still") : invariant4__default.default(false) : void 0;
|
|
2034
2103
|
}
|
|
2035
2104
|
}
|
|
2036
2105
|
for (const s of this.#subscriptions.values()) {
|
|
@@ -2186,7 +2255,7 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
|
|
|
2186
2255
|
},
|
|
2187
2256
|
narrowToType: (objectTypeDef) => {
|
|
2188
2257
|
const existingMapping = clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName];
|
|
2189
|
-
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ?
|
|
2258
|
+
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `${objectTypeDef.apiName} was previously used as an ${existingMapping}, but now used as a ${objectTypeDef.type}.`) : invariant4__default.default(false) : void 0;
|
|
2190
2259
|
clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName] = objectTypeDef.type;
|
|
2191
2260
|
return clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
|
|
2192
2261
|
type: "asType",
|
|
@@ -2194,6 +2263,18 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
|
|
|
2194
2263
|
entityType: objectTypeDef.apiName
|
|
2195
2264
|
});
|
|
2196
2265
|
},
|
|
2266
|
+
experimental_asyncIterLinks: async function* (links) {
|
|
2267
|
+
let $nextPageToken = void 0;
|
|
2268
|
+
do {
|
|
2269
|
+
const result = await fetchLinksPage(augmentRequestContext(clientCtx, (_) => ({
|
|
2270
|
+
finalMethodCall: "asyncIterLinks"
|
|
2271
|
+
})), objectType, objectSet, links);
|
|
2272
|
+
$nextPageToken = result.nextPageToken;
|
|
2273
|
+
for (const obj of result.data) {
|
|
2274
|
+
yield obj;
|
|
2275
|
+
}
|
|
2276
|
+
} while ($nextPageToken != null);
|
|
2277
|
+
},
|
|
2197
2278
|
$objectSetInternals: {
|
|
2198
2279
|
def: objectType
|
|
2199
2280
|
}
|
|
@@ -2262,5 +2343,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
|
|
|
2262
2343
|
exports.isObjectSet = isObjectSet;
|
|
2263
2344
|
exports.isWireObjectSet = isWireObjectSet;
|
|
2264
2345
|
exports.symbolClientContext = symbolClientContext;
|
|
2265
|
-
//# sourceMappingURL=chunk-
|
|
2266
|
-
//# sourceMappingURL=chunk-
|
|
2346
|
+
//# sourceMappingURL=chunk-RDZ5NKAI.cjs.map
|
|
2347
|
+
//# sourceMappingURL=chunk-RDZ5NKAI.cjs.map
|