@osdk/client 2.7.0-beta.1 → 2.7.0-beta.11
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 +138 -0
- 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/createClient.js +4 -3
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createClient.test.js +1 -1
- package/build/browser/createClient.test.js.map +1 -1
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/fetchMetadata.test.js +21 -1
- package/build/browser/fetchMetadata.test.js.map +1 -1
- package/build/browser/index.js +1 -1
- package/build/browser/index.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/AttachmentUpload.js +1 -1
- package/build/browser/object/AttachmentUpload.js.map +1 -1
- package/build/browser/object/aggregate.js +3 -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/InternalSymbols.js +3 -0
- package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +85 -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 +178 -29
- package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/browser/object/fetchPage.js +30 -5
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/object/fetchPage.test.js.map +1 -1
- package/build/browser/object/mediaUpload.js +1 -1
- package/build/browser/object/mediaUpload.js.map +1 -1
- 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/FunctionPayload.js +2 -0
- package/build/browser/observable/FunctionPayload.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/Changes.js +3 -0
- package/build/browser/observable/internal/Changes.js.map +1 -1
- package/build/browser/observable/internal/KnownCacheKey.js.map +1 -1
- package/build/browser/observable/internal/ObservableClientImpl.js +20 -0
- package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/browser/observable/internal/Store.js +8 -0
- package/build/browser/observable/internal/Store.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/ActionApplication.js +11 -7
- package/build/browser/observable/internal/actions/ActionApplication.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/function/FunctionCacheKey.js +26 -0
- package/build/browser/observable/internal/function/FunctionCacheKey.js.map +1 -0
- package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.js +150 -0
- package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.js.map +1 -0
- package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.test.js +186 -0
- package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.test.js.map +1 -0
- package/build/browser/observable/internal/function/FunctionQuery.js +137 -0
- package/build/browser/observable/internal/function/FunctionQuery.js.map +1 -0
- package/build/browser/observable/internal/function/FunctionQuery.test.js +278 -0
- package/build/browser/observable/internal/function/FunctionQuery.test.js.map +1 -0
- package/build/browser/observable/internal/function/FunctionsHelper.js +92 -0
- package/build/browser/observable/internal/function/FunctionsHelper.js.map +1 -0
- 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/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/queries/applyQuery.js +19 -1
- 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 -5
- package/build/browser/util/toDataValue.js.map +1 -1
- package/build/browser/util/toDataValue.test.js +2 -7
- package/build/browser/util/toDataValue.test.js.map +1 -1
- package/build/cjs/{Client-DaUJl7jZ.d.cts → Client-Cmx6x_V1.d.cts} +1 -1
- package/build/cjs/{chunk-WQL7SQ7H.cjs → chunk-666JN2DO.cjs} +250 -148
- package/build/cjs/chunk-666JN2DO.cjs.map +1 -0
- 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-VDAI3GGL.cjs → chunk-RDZ5NKAI.cjs} +218 -135
- package/build/cjs/chunk-RDZ5NKAI.cjs.map +1 -0
- package/build/cjs/{createClient-CPUYdECn.d.cts → createClient-BPK4om7e.d.cts} +2 -2
- 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 -16
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +3 -3
- package/build/cjs/public/internal-node.cjs +219 -219
- package/build/cjs/public/internal.cjs +14 -14
- package/build/cjs/public/internal.d.cts +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +694 -152
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +61 -10
- 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/createClient.js +4 -3
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createClient.test.js +1 -1
- package/build/esm/createClient.test.js.map +1 -1
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/fetchMetadata.test.js +21 -1
- package/build/esm/fetchMetadata.test.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.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/AttachmentUpload.js +1 -1
- package/build/esm/object/AttachmentUpload.js.map +1 -1
- package/build/esm/object/aggregate.js +3 -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/InternalSymbols.js +3 -0
- package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +85 -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 +178 -29
- package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/esm/object/fetchPage.js +30 -5
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/object/fetchPage.test.js.map +1 -1
- package/build/esm/object/mediaUpload.js +1 -1
- package/build/esm/object/mediaUpload.js.map +1 -1
- 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/FunctionPayload.js +2 -0
- package/build/esm/observable/FunctionPayload.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/Changes.js +3 -0
- package/build/esm/observable/internal/Changes.js.map +1 -1
- package/build/esm/observable/internal/KnownCacheKey.js.map +1 -1
- package/build/esm/observable/internal/ObservableClientImpl.js +20 -0
- package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/esm/observable/internal/Store.js +8 -0
- package/build/esm/observable/internal/Store.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/ActionApplication.js +11 -7
- package/build/esm/observable/internal/actions/ActionApplication.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/function/FunctionCacheKey.js +26 -0
- package/build/esm/observable/internal/function/FunctionCacheKey.js.map +1 -0
- package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.js +150 -0
- package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.js.map +1 -0
- package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.test.js +186 -0
- package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.test.js.map +1 -0
- package/build/esm/observable/internal/function/FunctionQuery.js +137 -0
- package/build/esm/observable/internal/function/FunctionQuery.js.map +1 -0
- package/build/esm/observable/internal/function/FunctionQuery.test.js +278 -0
- package/build/esm/observable/internal/function/FunctionQuery.test.js.map +1 -0
- package/build/esm/observable/internal/function/FunctionsHelper.js +92 -0
- package/build/esm/observable/internal/function/FunctionsHelper.js.map +1 -0
- 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/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/queries/applyQuery.js +19 -1
- 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 -5
- package/build/esm/util/toDataValue.js.map +1 -1
- package/build/esm/util/toDataValue.test.js +2 -7
- 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 -1
- package/build/types/MinimalClientContext.d.ts.map +1 -1
- package/build/types/createClient.d.ts +1 -1
- package/build/types/createClient.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/object/AttachmentUpload.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/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/FunctionPayload.d.ts +10 -0
- package/build/types/observable/FunctionPayload.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 +61 -7
- package/build/types/observable/ObservableClient.d.ts.map +1 -1
- package/build/types/observable/internal/Changes.d.ts +5 -3
- package/build/types/observable/internal/Changes.d.ts.map +1 -1
- package/build/types/observable/internal/KnownCacheKey.d.ts +2 -1
- package/build/types/observable/internal/KnownCacheKey.d.ts.map +1 -1
- package/build/types/observable/internal/Store.d.ts +5 -1
- package/build/types/observable/internal/Store.d.ts.map +1 -1
- package/build/types/observable/internal/Store.test.d.ts.map +1 -1
- package/build/types/observable/internal/actions/ActionApplication.d.ts.map +1 -1
- package/build/types/observable/internal/actions/OptimisticJob.d.ts.map +1 -1
- package/build/types/observable/internal/function/FunctionCacheKey.d.ts +17 -0
- package/build/types/observable/internal/function/FunctionCacheKey.d.ts.map +1 -0
- package/build/types/observable/internal/function/FunctionParamsCanonicalizer.d.ts +16 -0
- package/build/types/observable/internal/function/FunctionParamsCanonicalizer.d.ts.map +1 -0
- package/build/types/observable/internal/function/FunctionParamsCanonicalizer.test.d.ts +1 -0
- package/build/types/observable/internal/function/FunctionParamsCanonicalizer.test.d.ts.map +1 -0
- package/build/types/observable/internal/function/FunctionQuery.d.ts +40 -0
- package/build/types/observable/internal/function/FunctionQuery.d.ts.map +1 -0
- package/build/types/observable/internal/function/FunctionQuery.test.d.ts +1 -0
- package/build/types/observable/internal/function/FunctionQuery.test.d.ts.map +1 -0
- package/build/types/observable/internal/function/FunctionsHelper.d.ts +25 -0
- package/build/types/observable/internal/function/FunctionsHelper.d.ts.map +1 -0
- 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 +2 -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 +10 -10
- package/build/cjs/chunk-VDAI3GGL.cjs.map +0 -1
- package/build/cjs/chunk-WQL7SQ7H.cjs.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkRDZ5NKAI_cjs = require('./chunk-RDZ5NKAI.cjs');
|
|
4
|
+
var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
|
|
5
5
|
var unstable = require('@osdk/api/unstable');
|
|
6
6
|
var client_unstable = require('@osdk/client.unstable');
|
|
7
|
-
var
|
|
8
|
-
var api = require('@osdk/api');
|
|
7
|
+
var invariant3 = require('tiny-invariant');
|
|
9
8
|
var shared_client_impl = require('@osdk/shared.client.impl');
|
|
9
|
+
var api = require('@osdk/api');
|
|
10
10
|
var generatorConverters = require('@osdk/generator-converters');
|
|
11
11
|
|
|
12
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var invariant3__default = /*#__PURE__*/_interopDefault(invariant3);
|
|
15
15
|
|
|
16
16
|
// src/actions/ActionValidationError.ts
|
|
17
|
-
|
|
17
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
18
18
|
var ActionValidationError = class extends Error {
|
|
19
19
|
constructor(validation) {
|
|
20
20
|
super("Validation Error: " + JSON.stringify(validation, null, 2));
|
|
@@ -23,9 +23,9 @@ var ActionValidationError = class extends Error {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
// src/object/AttachmentUpload.ts
|
|
26
|
-
|
|
26
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
27
27
|
function isAttachmentUpload(o) {
|
|
28
|
-
return typeof o ===
|
|
28
|
+
return typeof o === "object" && o != null && "name" in o && typeof o.name === "string" && "data" in o && o.data instanceof Blob && !("fileName" in o);
|
|
29
29
|
}
|
|
30
30
|
function isAttachmentFile(o) {
|
|
31
31
|
return typeof o === "object" && o instanceof Blob && "name" in o;
|
|
@@ -38,7 +38,7 @@ function createAttachmentUpload(data, name) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// src/util/objectSpecifierUtils.ts
|
|
41
|
-
|
|
41
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
42
42
|
function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
|
|
43
43
|
return `${objectDef.apiName}:${primaryKey}`;
|
|
44
44
|
}
|
|
@@ -50,13 +50,13 @@ function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// src/createClient.ts
|
|
53
|
-
|
|
53
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
54
54
|
|
|
55
55
|
// src/__unstable/createBulkLinksAsyncIterFactory.ts
|
|
56
|
-
|
|
56
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
57
57
|
|
|
58
58
|
// src/objectSet/conjureUnionType.ts
|
|
59
|
-
|
|
59
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
60
60
|
function conjureUnionType(type, value) {
|
|
61
61
|
return {
|
|
62
62
|
type,
|
|
@@ -65,7 +65,7 @@ function conjureUnionType(type, value) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// src/ontology/makeConjureContext.ts
|
|
68
|
-
|
|
68
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
69
69
|
function makeConjureContext({
|
|
70
70
|
baseUrl,
|
|
71
71
|
fetch: fetchFn,
|
|
@@ -80,7 +80,7 @@ function makeConjureContext({
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// src/pageRequestAsAsyncIter.ts
|
|
83
|
-
|
|
83
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
84
84
|
function getResults(x) {
|
|
85
85
|
return x.results;
|
|
86
86
|
}
|
|
@@ -104,10 +104,10 @@ async function* pageRequestAsAsyncIter(call, values, nextArgs, initialPayload) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// src/__unstable/ConjureSupport.ts
|
|
107
|
-
|
|
107
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
108
108
|
|
|
109
109
|
// src/object/SimpleCache.ts
|
|
110
|
-
|
|
110
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
111
111
|
function createSimpleCache(map = /* @__PURE__ */ new Map(), fn) {
|
|
112
112
|
function get(key) {
|
|
113
113
|
const r = map.get(key);
|
|
@@ -159,7 +159,7 @@ function createSimpleAsyncCache(type, fn, createCacheLocal = createSimpleCache)
|
|
|
159
159
|
var cachedAllOntologies;
|
|
160
160
|
async function getOntologyVersionForRid(ctx, ontologyRid) {
|
|
161
161
|
cachedAllOntologies ??= await client_unstable.loadAllOntologies(ctx, {});
|
|
162
|
-
!cachedAllOntologies.ontologies[ontologyRid] ? process.env.NODE_ENV !== "production" ?
|
|
162
|
+
!cachedAllOntologies.ontologies[ontologyRid] ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "ontology should be loaded") : invariant3__default.default(false) : void 0;
|
|
163
163
|
return cachedAllOntologies.ontologies[ontologyRid].currentOntologyVersion;
|
|
164
164
|
}
|
|
165
165
|
var strongMemoAsync = (fn) => createSimpleAsyncCache("strong", fn).get;
|
|
@@ -201,7 +201,7 @@ var MetadataClient = class {
|
|
|
201
201
|
[objectTypeRid]: await this.ontologyVersion("")
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
!linkTypes.linkTypes[objectTypeRid] ? process.env.NODE_ENV !== "production" ?
|
|
204
|
+
!linkTypes.linkTypes[objectTypeRid] ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "link type should be loaded") : invariant3__default.default(false) : void 0;
|
|
205
205
|
const ret = {};
|
|
206
206
|
for (const l of linkTypes.linkTypes[objectTypeRid]) {
|
|
207
207
|
const helper = ({
|
|
@@ -279,14 +279,14 @@ var MetadataClient = class {
|
|
|
279
279
|
entityMetadata: void 0
|
|
280
280
|
};
|
|
281
281
|
const entities = await client_unstable.bulkLoadOntologyEntities(this.#ctx, void 0, body);
|
|
282
|
-
!entities.objectTypes[0]?.objectType ? process.env.NODE_ENV !== "production" ?
|
|
282
|
+
!entities.objectTypes[0]?.objectType ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "object type should be loaded") : invariant3__default.default(false) : void 0;
|
|
283
283
|
return entities.objectTypes[0].objectType;
|
|
284
284
|
});
|
|
285
285
|
ontologyVersion = strongMemoAsync(async (_) => getOntologyVersionForRid(this.#ctx, await this.#client.ontologyRid));
|
|
286
286
|
};
|
|
287
287
|
var metadataCacheClient = weakMemoAsync((client) => Promise.resolve(new MetadataClient(client)));
|
|
288
288
|
function createObjectPropertyMapping(conjureOT) {
|
|
289
|
-
!(conjureOT.primaryKeys.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
289
|
+
!(conjureOT.primaryKeys.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `only one primary key supported, got ${conjureOT.primaryKeys.length}`) : invariant3__default.default(false) : void 0;
|
|
290
290
|
const pkRid = conjureOT.primaryKeys[0];
|
|
291
291
|
const pkProperty = Object.values(conjureOT.propertyTypes).find((a) => a.rid === pkRid);
|
|
292
292
|
if (!pkProperty) {
|
|
@@ -318,7 +318,7 @@ function createBulkLinksAsyncIterFactory(ctx) {
|
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
ctx.logger?.debug("Preparing to fetch bulk links");
|
|
321
|
-
!objs.every((a) => a.$objectType === objs[0].$objectType) ? process.env.NODE_ENV !== "production" ?
|
|
321
|
+
!objs.every((a) => a.$objectType === objs[0].$objectType) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
|
|
322
322
|
const mcc = await metadataCacheClient(ctx);
|
|
323
323
|
const helper = await mcc.forObjectByApiName(objs[0].$objectType);
|
|
324
324
|
const [objectTypeRid, propertyMapping, fullLinkMapping] = await Promise.all([helper.getRid(), helper.getPropertyMapping(), helper.getLinkMapping()]);
|
|
@@ -409,17 +409,17 @@ function getPrimaryKeyOrThrow(ref) {
|
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
// src/actions/applyAction.ts
|
|
412
|
-
|
|
412
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
413
413
|
|
|
414
414
|
// src/util/toDataValue.ts
|
|
415
|
-
|
|
415
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
416
416
|
|
|
417
|
-
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.
|
|
418
|
-
|
|
417
|
+
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.45.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
|
|
418
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
419
419
|
|
|
420
|
-
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.
|
|
420
|
+
// ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.45.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
|
|
421
421
|
var MediaSet_exports = {};
|
|
422
|
-
|
|
422
|
+
chunkLDTMSHUZ_cjs.__export(MediaSet_exports, {
|
|
423
423
|
abort: () => abort,
|
|
424
424
|
calculate: () => calculate,
|
|
425
425
|
commit: () => commit,
|
|
@@ -433,67 +433,67 @@ chunk6SCDLAU2_cjs.__export(MediaSet_exports, {
|
|
|
433
433
|
upload: () => upload,
|
|
434
434
|
uploadMedia: () => uploadMedia
|
|
435
435
|
});
|
|
436
|
-
|
|
436
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
437
437
|
var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
|
|
438
438
|
function abort($ctx, ...args) {
|
|
439
|
-
return
|
|
439
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _abort, ...args);
|
|
440
440
|
}
|
|
441
441
|
var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
|
|
442
442
|
function calculate($ctx, ...args) {
|
|
443
|
-
return
|
|
443
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
|
|
444
444
|
}
|
|
445
445
|
var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
|
|
446
446
|
function commit($ctx, ...args) {
|
|
447
|
-
return
|
|
447
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _commit, ...args);
|
|
448
448
|
}
|
|
449
449
|
var _create = [1, "/v2/mediasets/{0}/transactions", 2];
|
|
450
450
|
function create($ctx, ...args) {
|
|
451
|
-
return
|
|
451
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _create, ...args);
|
|
452
452
|
}
|
|
453
453
|
var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
|
|
454
454
|
function info($ctx, ...args) {
|
|
455
|
-
return
|
|
455
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _info, ...args);
|
|
456
456
|
}
|
|
457
457
|
var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
|
|
458
458
|
function reference($ctx, ...args) {
|
|
459
|
-
return
|
|
459
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _reference, ...args);
|
|
460
460
|
}
|
|
461
461
|
var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
|
|
462
462
|
function getRidByPath($ctx, ...args) {
|
|
463
|
-
return
|
|
463
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
|
|
464
464
|
}
|
|
465
465
|
var _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
|
|
466
466
|
function upload($ctx, ...args) {
|
|
467
|
-
return
|
|
467
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _upload, ...args);
|
|
468
468
|
}
|
|
469
469
|
var _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
|
|
470
470
|
function read($ctx, ...args) {
|
|
471
|
-
return
|
|
471
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _read, ...args);
|
|
472
472
|
}
|
|
473
473
|
var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
|
|
474
474
|
function readOriginal($ctx, ...args) {
|
|
475
|
-
return
|
|
475
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
|
|
476
476
|
}
|
|
477
477
|
var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
|
|
478
478
|
function retrieve($ctx, ...args) {
|
|
479
|
-
return
|
|
479
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
|
|
480
480
|
}
|
|
481
481
|
var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
|
|
482
482
|
function uploadMedia($ctx, ...args) {
|
|
483
|
-
return
|
|
483
|
+
return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
// src/object/mediaUpload.ts
|
|
487
|
-
|
|
487
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
488
488
|
function isMediaReference(o) {
|
|
489
489
|
return typeof o === `object` && typeof o.mimeType === "string" && "reference" in o && typeof o.reference === "object" && o.reference.type === "mediaSetViewItem" && "mediaSetViewItem" in o.reference && typeof o.reference.mediaSetViewItem === "object" && typeof o.reference.mediaSetViewItem.mediaSetRid === "string" && typeof o.reference.mediaSetViewItem.mediaSetViewRid === "string" && typeof o.reference.mediaSetViewItem.mediaItemRid === "string";
|
|
490
490
|
}
|
|
491
491
|
function isMediaUpload(o) {
|
|
492
|
-
return typeof o === "object" && "fileName" in o && typeof o.fileName === "string" && "data" in o && typeof o.data === "object" && o.data instanceof Blob;
|
|
492
|
+
return typeof o === "object" && o != null && "fileName" in o && typeof o.fileName === "string" && "data" in o && typeof o.data === "object" && o.data instanceof Blob;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
// src/util/interfaceUtils.ts
|
|
496
|
-
|
|
496
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
497
497
|
function isInterfaceActionParam(o) {
|
|
498
498
|
return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
|
|
499
499
|
}
|
|
@@ -505,19 +505,19 @@ function isInterfaceSpecifier(o) {
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
// src/util/isObjectSpecifiersObject.ts
|
|
508
|
-
|
|
508
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
509
509
|
function isObjectSpecifiersObject(o) {
|
|
510
510
|
return o && typeof o === "object" && typeof o.$apiName === "string" && o.$primaryKey != null;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
// src/util/isOntologyObjectV2.ts
|
|
514
|
-
|
|
514
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
515
515
|
function isOntologyObjectV2(o) {
|
|
516
516
|
return o && typeof o === "object" && typeof o.__apiName === "string" && o.__primaryKey != null;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
// src/util/isPoint.ts
|
|
520
|
-
|
|
520
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
521
521
|
function isPoint(o) {
|
|
522
522
|
return o && typeof o === "object" && "type" in o && o.type === "Point" && "coordinates" in o && o.coordinates.length === 2;
|
|
523
523
|
}
|
|
@@ -527,9 +527,6 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
527
527
|
if (value == null) {
|
|
528
528
|
return value;
|
|
529
529
|
}
|
|
530
|
-
if (value === api.NULL_VALUE) {
|
|
531
|
-
return null;
|
|
532
|
-
}
|
|
533
530
|
if (Array.isArray(value) || value instanceof Set) {
|
|
534
531
|
const values = Array.from(value);
|
|
535
532
|
if (values.some((dataValue) => isAttachmentUpload(dataValue) || isAttachmentFile(dataValue))) {
|
|
@@ -543,13 +540,13 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
543
540
|
return Promise.all(promiseArray);
|
|
544
541
|
}
|
|
545
542
|
if (isAttachmentUpload(value)) {
|
|
546
|
-
const attachment = await
|
|
543
|
+
const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value.data, {
|
|
547
544
|
filename: value.name
|
|
548
545
|
});
|
|
549
546
|
return await toDataValue(attachment.rid, client);
|
|
550
547
|
}
|
|
551
548
|
if (isAttachmentFile(value)) {
|
|
552
|
-
const attachment = await
|
|
549
|
+
const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value, {
|
|
553
550
|
filename: value.name
|
|
554
551
|
});
|
|
555
552
|
return await toDataValue(attachment.rid, client);
|
|
@@ -570,11 +567,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
570
567
|
if (isPoint(value)) {
|
|
571
568
|
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
|
|
572
569
|
}
|
|
573
|
-
if (
|
|
570
|
+
if (chunkRDZ5NKAI_cjs.isWireObjectSet(value)) {
|
|
574
571
|
return value;
|
|
575
572
|
}
|
|
576
|
-
if (
|
|
577
|
-
return
|
|
573
|
+
if (chunkRDZ5NKAI_cjs.isObjectSet(value)) {
|
|
574
|
+
return chunkRDZ5NKAI_cjs.getWireObjectSet(value);
|
|
578
575
|
}
|
|
579
576
|
if (isMediaReference(value)) {
|
|
580
577
|
return value;
|
|
@@ -597,11 +594,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
597
594
|
|
|
598
595
|
// src/actions/applyAction.ts
|
|
599
596
|
async function applyAction(client, action, parameters, options = {}) {
|
|
600
|
-
const clientWithHeaders =
|
|
597
|
+
const clientWithHeaders = chunkRDZ5NKAI_cjs.addUserAgentAndRequestContextHeaders(chunkRDZ5NKAI_cjs.augmentRequestContext(client, (_) => ({
|
|
601
598
|
finalMethodCall: "applyAction"
|
|
602
599
|
})), action);
|
|
603
600
|
if (Array.isArray(parameters)) {
|
|
604
|
-
const response = await
|
|
601
|
+
const response = await chunkRDZ5NKAI_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
605
602
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
606
603
|
options: {
|
|
607
604
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -612,7 +609,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
612
609
|
const edits = response.edits;
|
|
613
610
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
614
611
|
} else {
|
|
615
|
-
const response = await
|
|
612
|
+
const response = await chunkRDZ5NKAI_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
616
613
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
617
614
|
options: {
|
|
618
615
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -701,22 +698,22 @@ function remapActionResponse(response) {
|
|
|
701
698
|
}
|
|
702
699
|
|
|
703
700
|
// src/createMinimalClient.ts
|
|
704
|
-
|
|
701
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
705
702
|
|
|
706
703
|
// src/object/convertWireToOsdkObjects.ts
|
|
707
|
-
|
|
704
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
708
705
|
|
|
709
706
|
// src/object/convertWireToOsdkObjects/createOsdkObject.ts
|
|
710
|
-
|
|
707
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
711
708
|
|
|
712
709
|
// src/createGeotimeSeriesProperty.ts
|
|
713
|
-
|
|
710
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
714
711
|
|
|
715
712
|
// src/util/timeseriesUtils.ts
|
|
716
|
-
|
|
713
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
717
714
|
|
|
718
715
|
// src/util/streamutils.ts
|
|
719
|
-
|
|
716
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
720
717
|
var START_TOKEN = new Uint8Array([123, 34, 100, 97, 116, 97, 34, 58, 91]);
|
|
721
718
|
var OBJECT_OPEN_CHAR_CODE = 123;
|
|
722
719
|
var OBJECT_CLOSE_CHAR_CODE = 125;
|
|
@@ -835,7 +832,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
835
832
|
}
|
|
836
833
|
}
|
|
837
834
|
async getLatestValue() {
|
|
838
|
-
const latestPointPromise =
|
|
835
|
+
const latestPointPromise = chunkRDZ5NKAI_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
839
836
|
latestPointPromise.then(
|
|
840
837
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
841
838
|
// eslint-disable-next-line no-console
|
|
@@ -851,7 +848,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
851
848
|
return allPoints;
|
|
852
849
|
}
|
|
853
850
|
async *asyncIterValues(query) {
|
|
854
|
-
const streamPointsIterator = await
|
|
851
|
+
const streamPointsIterator = await chunkRDZ5NKAI_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
855
852
|
range: getTimeRange(query)
|
|
856
853
|
} : {});
|
|
857
854
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -861,7 +858,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
861
858
|
};
|
|
862
859
|
|
|
863
860
|
// src/createMediaReferenceProperty.ts
|
|
864
|
-
|
|
861
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
865
862
|
var MediaReferencePropertyImpl = class {
|
|
866
863
|
#mediaReference;
|
|
867
864
|
#triplet;
|
|
@@ -879,13 +876,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
879
876
|
this.#mediaReference = mediaReference;
|
|
880
877
|
}
|
|
881
878
|
async fetchContents() {
|
|
882
|
-
return
|
|
879
|
+
return chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
883
880
|
preview: true
|
|
884
881
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
885
882
|
});
|
|
886
883
|
}
|
|
887
884
|
async fetchMetadata() {
|
|
888
|
-
const r = await
|
|
885
|
+
const r = await chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
889
886
|
preview: true
|
|
890
887
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
891
888
|
});
|
|
@@ -901,7 +898,7 @@ var MediaReferencePropertyImpl = class {
|
|
|
901
898
|
};
|
|
902
899
|
|
|
903
900
|
// src/createTimeseriesProperty.ts
|
|
904
|
-
|
|
901
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
905
902
|
var TimeSeriesPropertyImpl = class {
|
|
906
903
|
#triplet;
|
|
907
904
|
#client;
|
|
@@ -910,10 +907,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
910
907
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
911
908
|
}
|
|
912
909
|
async getFirstPoint() {
|
|
913
|
-
return
|
|
910
|
+
return chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
914
911
|
}
|
|
915
912
|
async getLastPoint() {
|
|
916
|
-
return
|
|
913
|
+
return chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
917
914
|
}
|
|
918
915
|
async getAllPoints(query) {
|
|
919
916
|
const allPoints = [];
|
|
@@ -923,7 +920,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
923
920
|
return allPoints;
|
|
924
921
|
}
|
|
925
922
|
async *asyncIterPoints(query) {
|
|
926
|
-
const streamPointsIterator = await
|
|
923
|
+
const streamPointsIterator = await chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
927
924
|
range: getTimeRange(query)
|
|
928
925
|
} : {});
|
|
929
926
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -933,19 +930,19 @@ var TimeSeriesPropertyImpl = class {
|
|
|
933
930
|
};
|
|
934
931
|
|
|
935
932
|
// src/object/formatting/applyPropertyFormatter.ts
|
|
936
|
-
|
|
933
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
937
934
|
|
|
938
935
|
// src/object/formatting/formatBoolean.ts
|
|
939
|
-
|
|
936
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
940
937
|
function formatBoolean(value, rule) {
|
|
941
938
|
return value ? rule.valueIfTrue : rule.valueIfFalse;
|
|
942
939
|
}
|
|
943
940
|
|
|
944
941
|
// src/object/formatting/formatDateTime.ts
|
|
945
|
-
|
|
942
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
946
943
|
|
|
947
944
|
// src/object/formatting/propertyFormattingUtils.ts
|
|
948
|
-
|
|
945
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
949
946
|
function resolvePropertyReference(ref, objectData) {
|
|
950
947
|
if (ref.type === "constant") {
|
|
951
948
|
return ref.value;
|
|
@@ -1095,7 +1092,7 @@ function formatRelativeToNow(date, locale, timezone) {
|
|
|
1095
1092
|
}
|
|
1096
1093
|
|
|
1097
1094
|
// src/object/formatting/formatNumber.ts
|
|
1098
|
-
|
|
1095
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1099
1096
|
function formatNumber(value, numberType, objectData, locale) {
|
|
1100
1097
|
switch (numberType.type) {
|
|
1101
1098
|
case "standard":
|
|
@@ -1310,24 +1307,25 @@ function formatPropertyValue(value, rule, objectData, options) {
|
|
|
1310
1307
|
}
|
|
1311
1308
|
|
|
1312
1309
|
// src/object/convertWireToOsdkObjects/getDollarAs.ts
|
|
1313
|
-
|
|
1310
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1314
1311
|
|
|
1315
1312
|
// src/ontology/OntologyProvider.ts
|
|
1316
|
-
|
|
1313
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1317
1314
|
var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
|
|
1318
1315
|
|
|
1319
1316
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
1320
|
-
|
|
1317
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1321
1318
|
|
|
1322
1319
|
// src/object/convertWireToOsdkObjects/getDollarLink.ts
|
|
1323
|
-
|
|
1320
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1324
1321
|
|
|
1325
1322
|
// src/object/convertWireToOsdkObjects/InternalSymbols.ts
|
|
1326
|
-
|
|
1323
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1327
1324
|
var UnderlyingOsdkObject = Symbol("Underlying Object" );
|
|
1328
1325
|
var ObjectDefRef = Symbol("ObjectDefinition" );
|
|
1329
1326
|
var InterfaceDefRef = Symbol("InterfaceDefinition" );
|
|
1330
1327
|
var ClientRef = Symbol("ClientRef" );
|
|
1328
|
+
var PropertySecuritiesRef = Symbol("Property Securities" );
|
|
1331
1329
|
|
|
1332
1330
|
// src/object/convertWireToOsdkObjects/getDollarLink.ts
|
|
1333
1331
|
function get$link(holder) {
|
|
@@ -1340,8 +1338,8 @@ function get$link(holder) {
|
|
|
1340
1338
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
1341
1339
|
}).pivotTo(linkName);
|
|
1342
1340
|
const value = !linkDef.multiplicity ? {
|
|
1343
|
-
fetchOne: (options) =>
|
|
1344
|
-
fetchOneWithErrors: (options) =>
|
|
1341
|
+
fetchOne: (options) => chunkRDZ5NKAI_cjs.fetchSingle(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet)),
|
|
1342
|
+
fetchOneWithErrors: (options) => chunkRDZ5NKAI_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet))
|
|
1345
1343
|
} : objectSet;
|
|
1346
1344
|
return [linkName, value];
|
|
1347
1345
|
})));
|
|
@@ -1357,8 +1355,8 @@ function get$linkForInterface(holder) {
|
|
|
1357
1355
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
1358
1356
|
})).pivotTo(linkName);
|
|
1359
1357
|
const value = !linkDef.multiplicity ? {
|
|
1360
|
-
fetchOne: (options) =>
|
|
1361
|
-
fetchOneWithErrors: (options) =>
|
|
1358
|
+
fetchOne: (options) => chunkRDZ5NKAI_cjs.fetchSingle(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet)),
|
|
1359
|
+
fetchOneWithErrors: (options) => chunkRDZ5NKAI_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet))
|
|
1362
1360
|
} : objectSet;
|
|
1363
1361
|
return [linkName, value];
|
|
1364
1362
|
})));
|
|
@@ -1366,7 +1364,7 @@ function get$linkForInterface(holder) {
|
|
|
1366
1364
|
|
|
1367
1365
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
1368
1366
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
1369
|
-
const [objApiNamespace] =
|
|
1367
|
+
const [objApiNamespace] = chunkRDZ5NKAI_cjs.extractNamespace(interfaceDef.apiName);
|
|
1370
1368
|
return Object.freeze(Object.defineProperties({}, {
|
|
1371
1369
|
// first to minimize hidden classes
|
|
1372
1370
|
[UnderlyingOsdkObject]: {
|
|
@@ -1404,6 +1402,10 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
1404
1402
|
value: clone,
|
|
1405
1403
|
enumerable: false
|
|
1406
1404
|
},
|
|
1405
|
+
"$propertySecurities": {
|
|
1406
|
+
value: underlying.$propertySecurities,
|
|
1407
|
+
enumerable: "$propertySecurities" in underlying
|
|
1408
|
+
},
|
|
1407
1409
|
"$__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata": {
|
|
1408
1410
|
value: {
|
|
1409
1411
|
"ObjectMetadata": underlying[ObjectDefRef],
|
|
@@ -1425,7 +1427,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
1425
1427
|
},
|
|
1426
1428
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
1427
1429
|
const objDef = underlying[ObjectDefRef];
|
|
1428
|
-
const [apiNamespace, apiName] =
|
|
1430
|
+
const [apiNamespace, apiName] = chunkRDZ5NKAI_cjs.extractNamespace(p);
|
|
1429
1431
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
1430
1432
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
1431
1433
|
enumerable: targetPropName in underlying,
|
|
@@ -1532,6 +1534,12 @@ var basePropDefs = {
|
|
|
1532
1534
|
},
|
|
1533
1535
|
enumerable: true
|
|
1534
1536
|
},
|
|
1537
|
+
"$propertySecurities": {
|
|
1538
|
+
get: function() {
|
|
1539
|
+
return this[PropertySecuritiesRef];
|
|
1540
|
+
},
|
|
1541
|
+
enumerable: true
|
|
1542
|
+
},
|
|
1535
1543
|
"$__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata": {
|
|
1536
1544
|
get: function() {
|
|
1537
1545
|
return {
|
|
@@ -1550,13 +1558,21 @@ var basePropDefs = {
|
|
|
1550
1558
|
enumerable: false
|
|
1551
1559
|
}
|
|
1552
1560
|
};
|
|
1553
|
-
function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedPropertyTypeByName = {}) {
|
|
1554
|
-
const
|
|
1561
|
+
function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedPropertyTypeByName = {}, wirePropertySecurities = []) {
|
|
1562
|
+
const {
|
|
1563
|
+
parsedObject,
|
|
1564
|
+
clientPropertySecurities
|
|
1565
|
+
} = parseWhenSecuritiesLoaded(wirePropertySecurities, simpleOsdkProperties, objectDef, derivedPropertyTypeByName);
|
|
1566
|
+
const rawObj = parsedObject;
|
|
1555
1567
|
Object.defineProperties(rawObj, {
|
|
1556
1568
|
[UnderlyingOsdkObject]: {
|
|
1557
1569
|
enumerable: false,
|
|
1558
1570
|
value: simpleOsdkProperties
|
|
1559
1571
|
},
|
|
1572
|
+
[PropertySecuritiesRef]: {
|
|
1573
|
+
enumerable: false,
|
|
1574
|
+
value: clientPropertySecurities
|
|
1575
|
+
},
|
|
1560
1576
|
[ObjectDefRef]: {
|
|
1561
1577
|
value: objectDef,
|
|
1562
1578
|
enumerable: false
|
|
@@ -1580,18 +1596,18 @@ function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedProper
|
|
|
1580
1596
|
function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKey) {
|
|
1581
1597
|
if (derivedPropertyTypeByName[propKey].definition.type === "selection" && derivedPropertyTypeByName[propKey].definition.operation.type === "count") {
|
|
1582
1598
|
const num = Number(rawValue);
|
|
1583
|
-
!Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ?
|
|
1599
|
+
!Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Count aggregation for derived property " + propKey + " returned a value larger than safe integer.") : invariant3__default.default(false) : void 0;
|
|
1584
1600
|
return num;
|
|
1585
1601
|
} else if (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType != null && typeof derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type === "string" && specialPropertyTypes.has(derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type)) {
|
|
1586
1602
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1587
1603
|
case "attachment":
|
|
1588
1604
|
if (Array.isArray(rawValue)) {
|
|
1589
|
-
return rawValue.map((a) =>
|
|
1605
|
+
return rawValue.map((a) => chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1590
1606
|
} else {
|
|
1591
|
-
return
|
|
1607
|
+
return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1592
1608
|
}
|
|
1593
1609
|
default:
|
|
1594
|
-
process.env.NODE_ENV !== "production" ?
|
|
1610
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant3__default.default(false) ;
|
|
1595
1611
|
}
|
|
1596
1612
|
}
|
|
1597
1613
|
return rawValue;
|
|
@@ -1600,13 +1616,13 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1600
1616
|
const rawValue = rawObject[p];
|
|
1601
1617
|
const propDef = objectDef.properties[p];
|
|
1602
1618
|
if (process.env.NODE_ENV !== "production") {
|
|
1603
|
-
!(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ?
|
|
1619
|
+
!(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
|
|
1604
1620
|
}
|
|
1605
1621
|
if (propDef.type === "attachment") {
|
|
1606
1622
|
if (Array.isArray(rawValue)) {
|
|
1607
|
-
return rawValue.map((a) =>
|
|
1623
|
+
return rawValue.map((a) => chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1608
1624
|
}
|
|
1609
|
-
return
|
|
1625
|
+
return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1610
1626
|
}
|
|
1611
1627
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1612
1628
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1630,16 +1646,81 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1630
1646
|
});
|
|
1631
1647
|
}
|
|
1632
1648
|
}
|
|
1649
|
+
function parseWhenSecuritiesLoaded(wirePropertySecurities, rawObject, objectDef, derivedPropertyTypeByName = {}) {
|
|
1650
|
+
if (wirePropertySecurities == null || wirePropertySecurities.length === 0) {
|
|
1651
|
+
return {
|
|
1652
|
+
parsedObject: rawObject,
|
|
1653
|
+
clientPropertySecurities: void 0
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
const parsedObject = {
|
|
1657
|
+
...rawObject
|
|
1658
|
+
};
|
|
1659
|
+
const clientPropertySecurities = {};
|
|
1660
|
+
for (const propKey of Object.keys(rawObject)) {
|
|
1661
|
+
if (propKey in objectDef.properties || propKey in derivedPropertyTypeByName) {
|
|
1662
|
+
const value = rawObject[propKey];
|
|
1663
|
+
if (Array.isArray(value)) {
|
|
1664
|
+
const newVal = [];
|
|
1665
|
+
const newSecurities = [];
|
|
1666
|
+
value.forEach((spv) => {
|
|
1667
|
+
!(typeof spv === "object" && spv != null && "value" in spv && "propertySecurityIndex" in spv) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected destructured secured property value object in array") : invariant3__default.default(false) : void 0;
|
|
1668
|
+
const securedValue = spv;
|
|
1669
|
+
newVal.push(securedValue.value);
|
|
1670
|
+
const securityIndex = securedValue.propertySecurityIndex;
|
|
1671
|
+
!(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
|
|
1672
|
+
!(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
|
|
1673
|
+
newSecurities.push(wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities));
|
|
1674
|
+
});
|
|
1675
|
+
parsedObject[propKey] = newVal;
|
|
1676
|
+
clientPropertySecurities[propKey] = newSecurities;
|
|
1677
|
+
} else if (typeof value === "object" && value != null && "value" in value && "propertySecurityIndex" in value) {
|
|
1678
|
+
const securedValue = value;
|
|
1679
|
+
parsedObject[propKey] = securedValue.value;
|
|
1680
|
+
const securityIndex = securedValue.propertySecurityIndex;
|
|
1681
|
+
!(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
|
|
1682
|
+
!(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
|
|
1683
|
+
clientPropertySecurities[propKey] = wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities);
|
|
1684
|
+
} else {
|
|
1685
|
+
parsedObject[propKey] = value;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
return {
|
|
1690
|
+
parsedObject,
|
|
1691
|
+
clientPropertySecurities
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
function wireToClientPropertySecurities(propertySecurity) {
|
|
1695
|
+
switch (propertySecurity.type) {
|
|
1696
|
+
case "propertyMarkingSummary":
|
|
1697
|
+
return {
|
|
1698
|
+
type: "propertyMarkings",
|
|
1699
|
+
conjunctive: propertySecurity.conjunctive,
|
|
1700
|
+
containerConjunctive: propertySecurity.containerConjunctive,
|
|
1701
|
+
disjunctive: propertySecurity.disjunctive,
|
|
1702
|
+
containerDisjunctive: propertySecurity.containerDisjunctive
|
|
1703
|
+
};
|
|
1704
|
+
case "errorComputingSecurity":
|
|
1705
|
+
return {
|
|
1706
|
+
type: "errorComputingSecurity"
|
|
1707
|
+
};
|
|
1708
|
+
case "unsupportedPolicy":
|
|
1709
|
+
return {
|
|
1710
|
+
type: "unsupportedPolicy"
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1633
1714
|
|
|
1634
1715
|
// src/object/convertWireToOsdkObjects.ts
|
|
1635
|
-
async function convertWireToOsdkObjects(client, objects, interfaceApiName, forceRemoveRid = false, derivedPropertyTypesByName, selectedProps, strictNonNull = false) {
|
|
1716
|
+
async function convertWireToOsdkObjects(client, objects, interfaceApiName, forceRemoveRid = false, derivedPropertyTypesByName, propertySecurities, selectedProps, strictNonNull = false) {
|
|
1636
1717
|
fixObjectPropertiesInPlace(objects, forceRemoveRid);
|
|
1637
1718
|
const ifaceDef = interfaceApiName ? await client.ontologyProvider.getInterfaceDefinition(interfaceApiName) : void 0;
|
|
1638
1719
|
const ifaceSelected = ifaceDef ? selectedProps ?? Object.keys(ifaceDef.properties) : void 0;
|
|
1639
1720
|
const ret = [];
|
|
1640
1721
|
for (const rawObj of objects) {
|
|
1641
1722
|
const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
|
|
1642
|
-
!objectDef ? process.env.NODE_ENV !== "production" ?
|
|
1723
|
+
!objectDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant3__default.default(false) : void 0;
|
|
1643
1724
|
let objProps;
|
|
1644
1725
|
let conforming = true;
|
|
1645
1726
|
if (ifaceDef && ifaceSelected) {
|
|
@@ -1656,20 +1737,21 @@ async function convertWireToOsdkObjects(client, objects, interfaceApiName, force
|
|
|
1656
1737
|
} else if (strictNonNull === "drop" && !conforming) {
|
|
1657
1738
|
continue;
|
|
1658
1739
|
}
|
|
1659
|
-
let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypesByName);
|
|
1740
|
+
let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypesByName, propertySecurities);
|
|
1660
1741
|
if (interfaceApiName) osdkObject = osdkObject.$as(interfaceApiName);
|
|
1661
1742
|
ret.push(osdkObject);
|
|
1662
1743
|
}
|
|
1663
1744
|
return ret;
|
|
1664
1745
|
}
|
|
1665
|
-
async function convertWireToOsdkObjects2(client, objects, interfaceApiName, derivedPropertyTypeByName, forceRemoveRid = false, selectedProps, strictNonNull = false, interfaceToObjectTypeMappings = {}) {
|
|
1746
|
+
async function convertWireToOsdkObjects2(client, objects, interfaceApiName, derivedPropertyTypeByName, propertySecurities, forceRemoveRid = false, selectedProps, strictNonNull = false, interfaceToObjectTypeMappings = {}, interfaceToObjectTypeMappingsV2 = {}) {
|
|
1666
1747
|
fixObjectPropertiesInPlace(objects, forceRemoveRid);
|
|
1667
|
-
const
|
|
1748
|
+
const effectiveMappings = Object.keys(interfaceToObjectTypeMappingsV2).length > 0 ? convertInterfaceToObjectTypeMappingsV2ToV1(interfaceToObjectTypeMappingsV2) : interfaceToObjectTypeMappings;
|
|
1749
|
+
const isInterfaceScoped = Object.keys(effectiveMappings).length > 0;
|
|
1668
1750
|
const ret = [];
|
|
1669
1751
|
for (const rawObj of objects) {
|
|
1670
1752
|
const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
|
|
1671
|
-
!objectDef ? process.env.NODE_ENV !== "production" ?
|
|
1672
|
-
const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ?
|
|
1753
|
+
!objectDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant3__default.default(false) : void 0;
|
|
1754
|
+
const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ? effectiveMappings[interfaceApiName][rawObj.$apiName] : void 0;
|
|
1673
1755
|
const ifaceSelected = interfaceApiName && interfaceToObjMapping ? selectedProps ? Object.keys(interfaceToObjMapping).filter((val) => {
|
|
1674
1756
|
selectedProps?.includes(interfaceToObjMapping[val]);
|
|
1675
1757
|
}) : [...Object.values(interfaceToObjMapping), objectDef.primaryKeyApiName] : void 0;
|
|
@@ -1687,7 +1769,7 @@ async function convertWireToOsdkObjects2(client, objects, interfaceApiName, deri
|
|
|
1687
1769
|
} else if (strictNonNull === "drop" && !conforming) {
|
|
1688
1770
|
continue;
|
|
1689
1771
|
}
|
|
1690
|
-
let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypeByName);
|
|
1772
|
+
let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypeByName, propertySecurities);
|
|
1691
1773
|
if (interfaceApiName && isInterfaceScoped) osdkObject = osdkObject.$as(interfaceApiName);
|
|
1692
1774
|
ret.push(osdkObject);
|
|
1693
1775
|
}
|
|
@@ -1762,12 +1844,15 @@ function fixObjectPropertiesInPlace(objs, forceRemoveRid) {
|
|
|
1762
1844
|
delete obj.__title;
|
|
1763
1845
|
}
|
|
1764
1846
|
}
|
|
1847
|
+
function convertInterfaceToObjectTypeMappingsV2ToV1(mappingsV2) {
|
|
1848
|
+
return Object.fromEntries(Object.entries(mappingsV2).map(([interfaceApiName, objectTypeMappingsV2]) => [interfaceApiName, Object.fromEntries(Object.entries(objectTypeMappingsV2).map(([objectTypeName, propertyMappings]) => [objectTypeName, Object.fromEntries(Object.entries(propertyMappings).filter(([, impl]) => impl.type === "localPropertyImplementation").map(([interfaceProp, impl]) => [interfaceProp, impl.propertyApiName]))]))]));
|
|
1849
|
+
}
|
|
1765
1850
|
|
|
1766
1851
|
// src/ontology/StandardOntologyProvider.ts
|
|
1767
|
-
|
|
1852
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1768
1853
|
|
|
1769
1854
|
// src/object/Cache.ts
|
|
1770
|
-
|
|
1855
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1771
1856
|
function createClientCache(fn) {
|
|
1772
1857
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
1773
1858
|
function get(client, key) {
|
|
@@ -1824,7 +1909,7 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
|
|
|
1824
1909
|
}
|
|
1825
1910
|
|
|
1826
1911
|
// src/util/deepFreeze.ts
|
|
1827
|
-
|
|
1912
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1828
1913
|
function deepFreeze(obj) {
|
|
1829
1914
|
Object.getOwnPropertyNames(obj).forEach((name) => {
|
|
1830
1915
|
const prop = obj[name];
|
|
@@ -1836,18 +1921,18 @@ function deepFreeze(obj) {
|
|
|
1836
1921
|
}
|
|
1837
1922
|
|
|
1838
1923
|
// src/ontology/loadActionMetadata.ts
|
|
1839
|
-
|
|
1924
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1840
1925
|
async function loadActionMetadata(client, actionType) {
|
|
1841
|
-
const r = await
|
|
1926
|
+
const r = await chunkRDZ5NKAI_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
|
|
1842
1927
|
branch: client.branch
|
|
1843
1928
|
});
|
|
1844
1929
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1845
1930
|
}
|
|
1846
1931
|
|
|
1847
1932
|
// src/ontology/loadFullObjectMetadata.ts
|
|
1848
|
-
|
|
1933
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1849
1934
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1850
|
-
const full = await
|
|
1935
|
+
const full = await chunkRDZ5NKAI_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1851
1936
|
preview: true,
|
|
1852
1937
|
branch: client.branch
|
|
1853
1938
|
});
|
|
@@ -1858,9 +1943,9 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1858
1943
|
}
|
|
1859
1944
|
|
|
1860
1945
|
// src/ontology/loadInterfaceMetadata.ts
|
|
1861
|
-
|
|
1946
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1862
1947
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1863
|
-
const r = await
|
|
1948
|
+
const r = await chunkRDZ5NKAI_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1864
1949
|
preview: true,
|
|
1865
1950
|
branch: client.branch
|
|
1866
1951
|
});
|
|
@@ -1868,10 +1953,10 @@ async function loadInterfaceMetadata(client, objectType) {
|
|
|
1868
1953
|
}
|
|
1869
1954
|
|
|
1870
1955
|
// src/ontology/loadQueryMetadata.ts
|
|
1871
|
-
|
|
1956
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1872
1957
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1873
1958
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1874
|
-
const r = await
|
|
1959
|
+
const r = await chunkRDZ5NKAI_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1875
1960
|
version
|
|
1876
1961
|
});
|
|
1877
1962
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1928,12 +2013,12 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1928
2013
|
};
|
|
1929
2014
|
|
|
1930
2015
|
// src/util/UserAgent.ts
|
|
1931
|
-
|
|
1932
|
-
var USER_AGENT = `osdk-client/${"2.7.0-beta.
|
|
1933
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.
|
|
2016
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
2017
|
+
var USER_AGENT = `osdk-client/${"2.7.0-beta.11"}`;
|
|
2018
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.11"}`;
|
|
1934
2019
|
|
|
1935
2020
|
// src/createMinimalClient.ts
|
|
1936
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
2021
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkRDZ5NKAI_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1937
2022
|
if (process.env.NODE_ENV !== "production") {
|
|
1938
2023
|
try {
|
|
1939
2024
|
new URL(baseUrl);
|
|
@@ -1963,7 +2048,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
|
|
|
1963
2048
|
}
|
|
1964
2049
|
|
|
1965
2050
|
// src/fetchMetadata.ts
|
|
1966
|
-
|
|
2051
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1967
2052
|
var fetchMetadataInternal = async (client, definition) => {
|
|
1968
2053
|
if (definition.type === "object") {
|
|
1969
2054
|
const {
|
|
@@ -1983,10 +2068,10 @@ var fetchMetadataInternal = async (client, definition) => {
|
|
|
1983
2068
|
};
|
|
1984
2069
|
|
|
1985
2070
|
// src/queries/applyQuery.ts
|
|
1986
|
-
|
|
2071
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1987
2072
|
|
|
1988
2073
|
// src/util/toDataValueQueries.ts
|
|
1989
|
-
|
|
2074
|
+
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
1990
2075
|
async function toDataValueQueries(value, client, desiredType) {
|
|
1991
2076
|
if (value == null) {
|
|
1992
2077
|
return value;
|
|
@@ -2006,13 +2091,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2006
2091
|
switch (desiredType.type) {
|
|
2007
2092
|
case "attachment": {
|
|
2008
2093
|
if (isAttachmentUpload(value)) {
|
|
2009
|
-
const attachment = await
|
|
2094
|
+
const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value.data, {
|
|
2010
2095
|
filename: value.name
|
|
2011
2096
|
});
|
|
2012
2097
|
return attachment.rid;
|
|
2013
2098
|
}
|
|
2014
2099
|
if (isAttachmentFile(value)) {
|
|
2015
|
-
const attachment = await
|
|
2100
|
+
const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value, {
|
|
2016
2101
|
filename: value.name
|
|
2017
2102
|
});
|
|
2018
2103
|
return attachment.rid;
|
|
@@ -2052,11 +2137,11 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2052
2137
|
}
|
|
2053
2138
|
case "objectSet":
|
|
2054
2139
|
case "interfaceObjectSet": {
|
|
2055
|
-
if (
|
|
2140
|
+
if (chunkRDZ5NKAI_cjs.isWireObjectSet(value)) {
|
|
2056
2141
|
return value;
|
|
2057
2142
|
}
|
|
2058
|
-
if (
|
|
2059
|
-
return
|
|
2143
|
+
if (chunkRDZ5NKAI_cjs.isObjectSet(value)) {
|
|
2144
|
+
return chunkRDZ5NKAI_cjs.getWireObjectSet(value);
|
|
2060
2145
|
}
|
|
2061
2146
|
break;
|
|
2062
2147
|
}
|
|
@@ -2098,12 +2183,16 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
2098
2183
|
// src/queries/applyQuery.ts
|
|
2099
2184
|
async function applyQuery(client, query, params) {
|
|
2100
2185
|
const qd = client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
2101
|
-
|
|
2186
|
+
if (client.flushEdits != null) {
|
|
2187
|
+
await client.flushEdits();
|
|
2188
|
+
}
|
|
2189
|
+
const response = await chunkRDZ5NKAI_cjs.Query_exports.execute(chunkRDZ5NKAI_cjs.addUserAgentAndRequestContextHeaders(chunkRDZ5NKAI_cjs.augmentRequestContext(client, (_) => ({
|
|
2102
2190
|
finalMethodCall: "applyQuery"
|
|
2103
2191
|
})), query), await client.ontologyRid, query.apiName, {
|
|
2104
2192
|
parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
|
|
2105
2193
|
}, {
|
|
2106
|
-
version: query.isFixedVersion ? query.version : void 0
|
|
2194
|
+
version: query.isFixedVersion ? query.version : void 0,
|
|
2195
|
+
transactionId: client.transactionId
|
|
2107
2196
|
});
|
|
2108
2197
|
const objectOutputDefs = await getRequiredDefinitions((await qd).output, client);
|
|
2109
2198
|
const remappedResponse = await remapQueryResponse(client, (await qd).output, response.value, objectOutputDefs);
|
|
@@ -2141,7 +2230,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2141
2230
|
return responseValue;
|
|
2142
2231
|
}
|
|
2143
2232
|
case "attachment": {
|
|
2144
|
-
return
|
|
2233
|
+
return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
2145
2234
|
}
|
|
2146
2235
|
case "object": {
|
|
2147
2236
|
const def = definitions.get(responseDataType.object);
|
|
@@ -2163,7 +2252,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2163
2252
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
2164
2253
|
}
|
|
2165
2254
|
if (typeof responseValue === "string") {
|
|
2166
|
-
return
|
|
2255
|
+
return chunkRDZ5NKAI_cjs.createObjectSet(def, client, {
|
|
2167
2256
|
type: "intersect",
|
|
2168
2257
|
objectSets: [{
|
|
2169
2258
|
type: "base",
|
|
@@ -2174,7 +2263,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2174
2263
|
}]
|
|
2175
2264
|
});
|
|
2176
2265
|
}
|
|
2177
|
-
return
|
|
2266
|
+
return chunkRDZ5NKAI_cjs.createObjectSet(def, client, responseValue);
|
|
2178
2267
|
}
|
|
2179
2268
|
case "struct": {
|
|
2180
2269
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -2186,10 +2275,10 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
2186
2275
|
}
|
|
2187
2276
|
case "map": {
|
|
2188
2277
|
const map = {};
|
|
2189
|
-
!Array.isArray(responseValue) ? process.env.NODE_ENV !== "production" ?
|
|
2278
|
+
!Array.isArray(responseValue) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected array entry") : invariant3__default.default(false) : void 0;
|
|
2190
2279
|
for (const entry of responseValue) {
|
|
2191
|
-
!(entry.key != null) ? process.env.NODE_ENV !== "production" ?
|
|
2192
|
-
!(entry.value != null) ? process.env.NODE_ENV !== "production" ?
|
|
2280
|
+
!(entry.key != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected key") : invariant3__default.default(false) : void 0;
|
|
2281
|
+
!(entry.value != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected value") : invariant3__default.default(false) : void 0;
|
|
2193
2282
|
const key = responseDataType.keyType.type === "object" ? getObjectSpecifier(entry.key, responseDataType.keyType.object, definitions) : entry.key;
|
|
2194
2283
|
const value = await remapQueryResponse(client, responseDataType.valueType, entry.value, definitions);
|
|
2195
2284
|
map[key] = value;
|
|
@@ -2243,6 +2332,11 @@ async function getRequiredDefinitions(dataType, client) {
|
|
|
2243
2332
|
result.set(dataType.objectSet, objectDef);
|
|
2244
2333
|
break;
|
|
2245
2334
|
}
|
|
2335
|
+
case "interfaceObjectSet": {
|
|
2336
|
+
const interfaceDef = await client.ontologyProvider.getInterfaceDefinition(dataType.objectSet);
|
|
2337
|
+
result.set(dataType.objectSet, interfaceDef);
|
|
2338
|
+
break;
|
|
2339
|
+
}
|
|
2246
2340
|
case "object": {
|
|
2247
2341
|
const objectDef = await client.ontologyProvider.getObjectDefinition(dataType.object);
|
|
2248
2342
|
result.set(dataType.object, objectDef);
|
|
@@ -2256,6 +2350,9 @@ async function getRequiredDefinitions(dataType, client) {
|
|
|
2256
2350
|
case "set": {
|
|
2257
2351
|
return getRequiredDefinitions(dataType.set, client);
|
|
2258
2352
|
}
|
|
2353
|
+
case "array": {
|
|
2354
|
+
return getRequiredDefinitions(dataType.array, client);
|
|
2355
|
+
}
|
|
2259
2356
|
case "map": {
|
|
2260
2357
|
const types = [dataType.keyType, dataType.valueType];
|
|
2261
2358
|
const allDefs = await Promise.all(types.map((value) => getRequiredDefinitions(value, client)));
|
|
@@ -2344,7 +2441,7 @@ var QueryInvoker = class {
|
|
|
2344
2441
|
this.executeFunction = applyQuery.bind(void 0, clientCtx, queryDef);
|
|
2345
2442
|
}
|
|
2346
2443
|
};
|
|
2347
|
-
function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontologyRid, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
2444
|
+
function createClientInternal(objectSetFactory, transactionRid, flushEdits, baseUrl, ontologyRid, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
2348
2445
|
if (typeof ontologyRid === "string") {
|
|
2349
2446
|
if (!ontologyRid.startsWith("ri.")) {
|
|
2350
2447
|
throw new Error("Invalid ontology RID");
|
|
@@ -2360,8 +2457,9 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
|
|
|
2360
2457
|
ontologyRid
|
|
2361
2458
|
}, baseUrl, tokenProvider, {
|
|
2362
2459
|
...options,
|
|
2363
|
-
logger: options?.logger ?? new
|
|
2460
|
+
logger: options?.logger ?? new chunkRDZ5NKAI_cjs.MinimalLogger(),
|
|
2364
2461
|
transactionId: transactionRid,
|
|
2462
|
+
flushEdits,
|
|
2365
2463
|
branch: options?.branch
|
|
2366
2464
|
}, fetchFn, objectSetFactory);
|
|
2367
2465
|
return createClientFromContext(clientCtx);
|
|
@@ -2383,7 +2481,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2383
2481
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
2384
2482
|
return {
|
|
2385
2483
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
2386
|
-
return await
|
|
2484
|
+
return await chunkRDZ5NKAI_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
2387
2485
|
}
|
|
2388
2486
|
};
|
|
2389
2487
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -2395,7 +2493,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2395
2493
|
objectType,
|
|
2396
2494
|
propertyType
|
|
2397
2495
|
} = args;
|
|
2398
|
-
return await
|
|
2496
|
+
return await chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
2399
2497
|
mediaItemPath: fileName,
|
|
2400
2498
|
preview: true
|
|
2401
2499
|
});
|
|
@@ -2404,10 +2502,10 @@ function createClientFromContext(clientCtx) {
|
|
|
2404
2502
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
2405
2503
|
return {
|
|
2406
2504
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
2407
|
-
return await
|
|
2505
|
+
return await chunkRDZ5NKAI_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
2408
2506
|
},
|
|
2409
2507
|
fetchPageByRidNoType: async (rids, options) => {
|
|
2410
|
-
return await
|
|
2508
|
+
return await chunkRDZ5NKAI_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
|
|
2411
2509
|
}
|
|
2412
2510
|
};
|
|
2413
2511
|
}
|
|
@@ -2419,13 +2517,13 @@ function createClientFromContext(clientCtx) {
|
|
|
2419
2517
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
2420
2518
|
const symbolClientContext2 = "__osdkClientContext";
|
|
2421
2519
|
const client = Object.defineProperties(clientFn, {
|
|
2422
|
-
[
|
|
2520
|
+
[chunkRDZ5NKAI_cjs.symbolClientContext]: {
|
|
2423
2521
|
value: clientCtx
|
|
2424
2522
|
},
|
|
2425
2523
|
[symbolClientContext2]: {
|
|
2426
2524
|
value: clientCtx
|
|
2427
2525
|
},
|
|
2428
|
-
[
|
|
2526
|
+
[chunkRDZ5NKAI_cjs.additionalContext]: {
|
|
2429
2527
|
value: clientCtx
|
|
2430
2528
|
},
|
|
2431
2529
|
fetchMetadata: {
|
|
@@ -2434,8 +2532,8 @@ function createClientFromContext(clientCtx) {
|
|
|
2434
2532
|
});
|
|
2435
2533
|
return client;
|
|
2436
2534
|
}
|
|
2437
|
-
var createClient = createClientInternal.bind(void 0,
|
|
2438
|
-
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(
|
|
2535
|
+
var createClient = createClientInternal.bind(void 0, chunkRDZ5NKAI_cjs.createObjectSet, void 0, void 0);
|
|
2536
|
+
var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkRDZ5NKAI_cjs.createObjectSet, transactionRid, flushEdits, ...args);
|
|
2439
2537
|
function createWithRid(rids) {
|
|
2440
2538
|
const withRid = {
|
|
2441
2539
|
type: "static",
|
|
@@ -2445,15 +2543,19 @@ function createWithRid(rids) {
|
|
|
2445
2543
|
}
|
|
2446
2544
|
|
|
2447
2545
|
exports.ActionValidationError = ActionValidationError;
|
|
2546
|
+
exports.ClientRef = ClientRef;
|
|
2448
2547
|
exports.OBSERVABLE_USER_AGENT = OBSERVABLE_USER_AGENT;
|
|
2449
2548
|
exports.ObjectDefRef = ObjectDefRef;
|
|
2450
2549
|
exports.USER_AGENT = USER_AGENT;
|
|
2451
2550
|
exports.UnderlyingOsdkObject = UnderlyingOsdkObject;
|
|
2551
|
+
exports.applyQuery = applyQuery;
|
|
2452
2552
|
exports.createAttachmentUpload = createAttachmentUpload;
|
|
2453
2553
|
exports.createClient = createClient;
|
|
2454
2554
|
exports.createClientFromContext = createClientFromContext;
|
|
2455
2555
|
exports.createClientWithTransaction = createClientWithTransaction;
|
|
2456
2556
|
exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
|
|
2557
|
+
exports.createOsdkObject = createOsdkObject;
|
|
2457
2558
|
exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
|
|
2458
|
-
|
|
2459
|
-
//# sourceMappingURL=chunk-
|
|
2559
|
+
exports.isObjectSpecifiersObject = isObjectSpecifiersObject;
|
|
2560
|
+
//# sourceMappingURL=chunk-666JN2DO.cjs.map
|
|
2561
|
+
//# sourceMappingURL=chunk-666JN2DO.cjs.map
|