@osdk/client 2.7.0-rc.15 → 2.8.0-beta.1
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 +0 -105
- package/build/browser/MinimalClientContext.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 +9 -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/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 +4 -4
- package/build/browser/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js +48 -27
- 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/object.test.js +123 -0
- package/build/browser/object/object.test.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.test.js +6 -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.map +1 -1
- package/build/browser/objectSet/fetchLinksPage.js +1 -0
- package/build/browser/objectSet/fetchLinksPage.js.map +1 -1
- package/build/browser/observable/internal/Store.test.js +1 -0
- 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/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/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-CDUYWOVQ.cjs → chunk-7543GRIE.cjs} +185 -91
- package/build/cjs/chunk-7543GRIE.cjs.map +1 -0
- package/build/cjs/{chunk-Y362HOIZ.cjs → chunk-VVKEXIIO.cjs} +97 -65
- package/build/cjs/chunk-VVKEXIIO.cjs.map +1 -0
- package/build/cjs/{createClient-BDmrDOzZ.d.cts → createClient-BPK4om7e.d.cts} +1 -0
- package/build/cjs/index.cjs +8 -8
- package/build/cjs/index.d.cts +1 -1
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/unstable-do-not-use.cjs +53 -53
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +1 -1
- package/build/esm/MinimalClientContext.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 +9 -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/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 +4 -4
- package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js +48 -27
- 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/object.test.js +123 -0
- package/build/esm/object/object.test.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.test.js +6 -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.map +1 -1
- package/build/esm/objectSet/fetchLinksPage.js +1 -0
- package/build/esm/objectSet/fetchLinksPage.js.map +1 -1
- package/build/esm/observable/internal/Store.test.js +1 -0
- 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/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/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/types/MinimalClientContext.d.ts +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/object.test.d.ts.map +1 -1
- package/build/types/objectSet/createObjectSet.d.ts +1 -14
- package/build/types/objectSet/createObjectSet.d.ts.map +1 -1
- package/build/types/objectSet/fetchLinksPage.d.ts +1 -9
- package/build/types/objectSet/fetchLinksPage.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/package.json +14 -14
- package/build/cjs/chunk-CDUYWOVQ.cjs.map +0 -1
- package/build/cjs/chunk-Y362HOIZ.cjs.map +0 -1
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
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.
|
|
18
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
19
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,
|
|
@@ -28,10 +28,10 @@ chunkLDTMSHUZ_cjs.__export(Action_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
31
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
32
32
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
34
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
35
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
|
|
@@ -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,10 +123,10 @@ function applyWithOverrides($ctx, ...args) {
|
|
|
123
123
|
return foundryPlatformFetch($ctx, _applyWithOverrides, ...args);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
126
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
127
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,
|
|
@@ -147,7 +147,7 @@ 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,
|
|
@@ -183,16 +183,16 @@ function get2($ctx, ...args) {
|
|
|
183
183
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
186
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
187
187
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
188
188
|
|
|
189
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
189
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
190
190
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
191
191
|
|
|
192
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
192
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
193
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,
|
|
@@ -213,7 +213,7 @@ 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,
|
|
@@ -244,7 +244,7 @@ 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,
|
|
@@ -290,7 +290,7 @@ 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,
|
|
@@ -331,19 +331,19 @@ function loadLinks($ctx, ...args) {
|
|
|
331
331
|
return foundryPlatformFetch($ctx, _loadLinks, ...args);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
334
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
335
335
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
336
336
|
|
|
337
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
337
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
338
338
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
339
339
|
|
|
340
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
340
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
341
341
|
chunkLDTMSHUZ_cjs.init_cjs_shims();
|
|
342
342
|
|
|
343
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
343
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
344
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
|
|
@@ -354,7 +354,7 @@ 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,
|
|
@@ -370,7 +370,7 @@ 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,
|
|
@@ -391,7 +391,7 @@ 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,
|
|
@@ -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,7 +510,7 @@ 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
|
|
|
@@ -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,9 +637,9 @@ 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
|
|
|
@@ -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, result.interfaceToObjectTypeMappingsV2),
|
|
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, result.interfaceToObjectTypeMappingsV2),
|
|
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,10 +877,11 @@ 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
|
});
|
|
@@ -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,7 +1203,7 @@ 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 containsValue = filter[firstKey];
|
|
1196
1209
|
const containsKeys = Object.keys(containsValue);
|
|
@@ -1199,7 +1212,7 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
|
|
|
1199
1212
|
return handleWherePair([fieldName, containsValue], objectOrInterface, structFieldSelector, rdpNames);
|
|
1200
1213
|
} else {
|
|
1201
1214
|
const structFilter = Object.entries(containsValue);
|
|
1202
|
-
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1215
|
+
!(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;
|
|
1203
1216
|
const structFieldApiName = structFilter[0][0];
|
|
1204
1217
|
return handleWherePair(structFilter[0], objectOrInterface, {
|
|
1205
1218
|
propertyApiName: fieldName,
|
|
@@ -1315,12 +1328,12 @@ function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
|
|
|
1315
1328
|
var getDefinitionFromMap = (arg, definitionMap) => {
|
|
1316
1329
|
if (typeof arg === "object") {
|
|
1317
1330
|
const definition = definitionMap.get(arg);
|
|
1318
|
-
!definition ? process.env.NODE_ENV !== "production" ?
|
|
1331
|
+
!definition ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Derived Property is not defined") : invariant4__default.default(false) : void 0;
|
|
1319
1332
|
return definition;
|
|
1320
1333
|
} else if (typeof arg === "number") {
|
|
1321
|
-
process.env.NODE_ENV !== "production" ?
|
|
1334
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Literals for derived properties are not yet supported") : invariant4__default.default(false) ;
|
|
1322
1335
|
}
|
|
1323
|
-
process.env.NODE_ENV !== "production" ?
|
|
1336
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid argument type for a derived property") : invariant4__default.default(false) ;
|
|
1324
1337
|
};
|
|
1325
1338
|
|
|
1326
1339
|
// src/derivedProperties/createWithPropertiesObjectSet.ts
|
|
@@ -1343,7 +1356,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1343
1356
|
},
|
|
1344
1357
|
aggregate: (aggregation, opt) => {
|
|
1345
1358
|
const splitAggregation = aggregation.split(":");
|
|
1346
|
-
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ?
|
|
1359
|
+
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation format") : invariant4__default.default(false) : void 0;
|
|
1347
1360
|
const [aggregationPropertyName, aggregationOperation] = splitAggregation;
|
|
1348
1361
|
let aggregationOperationDefinition;
|
|
1349
1362
|
switch (aggregationOperation) {
|
|
@@ -1381,7 +1394,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1381
1394
|
break;
|
|
1382
1395
|
}
|
|
1383
1396
|
default:
|
|
1384
|
-
process.env.NODE_ENV !== "production" ?
|
|
1397
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation operation " + aggregationOperation) : invariant4__default.default(false) ;
|
|
1385
1398
|
}
|
|
1386
1399
|
const wrappedObjectSet = {
|
|
1387
1400
|
type: "selection",
|
|
@@ -1413,6 +1426,23 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1413
1426
|
const selectorResult = derivedPropertyDefinitionFactory(wrappedObjectSet, definitionMap);
|
|
1414
1427
|
definitionMap.set(selectorResult, wrappedObjectSet);
|
|
1415
1428
|
return selectorResult;
|
|
1429
|
+
},
|
|
1430
|
+
constant: {
|
|
1431
|
+
double: (value) => {
|
|
1432
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1433
|
+
},
|
|
1434
|
+
integer: (value) => {
|
|
1435
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1436
|
+
},
|
|
1437
|
+
long: (value) => {
|
|
1438
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1439
|
+
},
|
|
1440
|
+
datetime: (value) => {
|
|
1441
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1442
|
+
},
|
|
1443
|
+
timestamp: (value) => {
|
|
1444
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
|
|
1445
|
+
}
|
|
1416
1446
|
}
|
|
1417
1447
|
};
|
|
1418
1448
|
}
|
|
@@ -1428,7 +1458,7 @@ function legacyToModernSingleAggregationResult(entry) {
|
|
|
1428
1458
|
if (parts[0] === "count") {
|
|
1429
1459
|
return accumulator;
|
|
1430
1460
|
}
|
|
1431
|
-
!(parts.length === 2) ? process.env.NODE_ENV !== "production" ?
|
|
1461
|
+
!(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;
|
|
1432
1462
|
const property = parts[0];
|
|
1433
1463
|
const metricType = parts[1];
|
|
1434
1464
|
if (!(property in accumulator)) {
|
|
@@ -1535,10 +1565,11 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
|
|
|
1535
1565
|
groupBy: body.groupBy,
|
|
1536
1566
|
aggregation: body.aggregation
|
|
1537
1567
|
}, {
|
|
1568
|
+
branch: clientCtx.branch,
|
|
1538
1569
|
transactionId: clientCtx.transactionId
|
|
1539
1570
|
});
|
|
1540
1571
|
if (!req.$groupBy) {
|
|
1541
|
-
!(result.data.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1572
|
+
!(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;
|
|
1542
1573
|
return {
|
|
1543
1574
|
...aggregationToCountResult(result.data[0]),
|
|
1544
1575
|
...legacyToModernSingleAggregationResult(result.data[0])
|
|
@@ -1592,6 +1623,7 @@ var fetchLinksPage = async (client, objectType, objectSet, links) => {
|
|
|
1592
1623
|
objectSet,
|
|
1593
1624
|
links
|
|
1594
1625
|
}, {
|
|
1626
|
+
branch: client.branch,
|
|
1595
1627
|
preview: true
|
|
1596
1628
|
});
|
|
1597
1629
|
return remapLinksPage(result);
|
|
@@ -1730,7 +1762,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1730
1762
|
this.#logger = client.logger?.child({}, {
|
|
1731
1763
|
msgPrefix: "<OSW> "
|
|
1732
1764
|
});
|
|
1733
|
-
!(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ?
|
|
1765
|
+
!(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;
|
|
1734
1766
|
}
|
|
1735
1767
|
async subscribe(objectType, objectSet, listener, properties = [], shouldLoadRids = false) {
|
|
1736
1768
|
const objOrInterfaceDef = objectType.type === "object" ? await this.#client.ontologyProvider.getObjectDefinition(objectType.apiName) : await this.#client.ontologyProvider.getInterfaceDefinition(objectType.apiName);
|
|
@@ -1928,7 +1960,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1928
1960
|
return;
|
|
1929
1961
|
}
|
|
1930
1962
|
default:
|
|
1931
|
-
process.env.NODE_ENV !== "production" ?
|
|
1963
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Unexpected message type") : invariant4__default.default(false) ;
|
|
1932
1964
|
}
|
|
1933
1965
|
};
|
|
1934
1966
|
#handleMessage_objectSetChanged = async (payload) => {
|
|
@@ -1942,7 +1974,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1942
1974
|
__primaryKey: sub.primaryKeyPropertyName != null ? o.primaryKey[sub.primaryKeyPropertyName] : void 0,
|
|
1943
1975
|
...o.primaryKey,
|
|
1944
1976
|
[o.property]: o.value
|
|
1945
|
-
}], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
|
|
1977
|
+
}], sub.interfaceApiName, {}, void 0, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
|
|
1946
1978
|
const singleOsdkObject = osdkObjectArray[0] ?? void 0;
|
|
1947
1979
|
return singleOsdkObject != null ? {
|
|
1948
1980
|
object: singleOsdkObject,
|
|
@@ -1964,7 +1996,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1964
1996
|
for (const key of keysToDelete) {
|
|
1965
1997
|
delete o.object[key];
|
|
1966
1998
|
}
|
|
1967
|
-
const osdkObjectArray = await this.#client.objectFactory2(this.#client, [o.object], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.object.__apiName, sub.interfaceApiName));
|
|
1999
|
+
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));
|
|
1968
2000
|
const singleOsdkObject = osdkObjectArray[0] ?? void 0;
|
|
1969
2001
|
const rid = singleOsdkObject["$rid"];
|
|
1970
2002
|
return singleOsdkObject != null ? rid === void 0 ? {
|
|
@@ -1998,7 +2030,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1998
2030
|
}
|
|
1999
2031
|
#handleMessage_refreshObjectSet = (payload) => {
|
|
2000
2032
|
const sub = this.#subscriptions.get(payload.id);
|
|
2001
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
2033
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
|
|
2002
2034
|
try {
|
|
2003
2035
|
sub.listener.onOutOfDate();
|
|
2004
2036
|
} catch (error) {
|
|
@@ -2012,7 +2044,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
2012
2044
|
responses
|
|
2013
2045
|
} = payload;
|
|
2014
2046
|
const subs = this.#pendingSubscriptions.get(id);
|
|
2015
|
-
!subs ? process.env.NODE_ENV !== "production" ?
|
|
2047
|
+
!subs ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `should have a pending subscription for ${id}`) : invariant4__default.default(false) : void 0;
|
|
2016
2048
|
this.#pendingSubscriptions.delete(id);
|
|
2017
2049
|
for (let i = 0; i < responses.length; i++) {
|
|
2018
2050
|
const sub = subs[i];
|
|
@@ -2054,7 +2086,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
2054
2086
|
#handleMessage_subscriptionClosed(payload) {
|
|
2055
2087
|
const sub = this.#subscriptions.get(payload.id);
|
|
2056
2088
|
if (sub == null && this.#endedSubscriptions.has(payload.id)) return;
|
|
2057
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
2089
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
|
|
2058
2090
|
this.#tryCatchOnError(sub, true, payload.cause);
|
|
2059
2091
|
this.#unsubscribe(sub, "error");
|
|
2060
2092
|
}
|
|
@@ -2083,7 +2115,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
2083
2115
|
if (this.#subscriptions.size > 0) {
|
|
2084
2116
|
if (process.env.NODE_ENV !== "production") {
|
|
2085
2117
|
for (const s of this.#subscriptions.values()) {
|
|
2086
|
-
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ?
|
|
2118
|
+
!(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;
|
|
2087
2119
|
}
|
|
2088
2120
|
}
|
|
2089
2121
|
for (const s of this.#subscriptions.values()) {
|
|
@@ -2239,7 +2271,7 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
|
|
|
2239
2271
|
},
|
|
2240
2272
|
narrowToType: (objectTypeDef) => {
|
|
2241
2273
|
const existingMapping = clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName];
|
|
2242
|
-
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ?
|
|
2274
|
+
!(!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;
|
|
2243
2275
|
clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName] = objectTypeDef.type;
|
|
2244
2276
|
return clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
|
|
2245
2277
|
type: "asType",
|
|
@@ -2327,5 +2359,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
|
|
|
2327
2359
|
exports.isObjectSet = isObjectSet;
|
|
2328
2360
|
exports.isWireObjectSet = isWireObjectSet;
|
|
2329
2361
|
exports.symbolClientContext = symbolClientContext;
|
|
2330
|
-
//# sourceMappingURL=chunk-
|
|
2331
|
-
//# sourceMappingURL=chunk-
|
|
2362
|
+
//# sourceMappingURL=chunk-VVKEXIIO.cjs.map
|
|
2363
|
+
//# sourceMappingURL=chunk-VVKEXIIO.cjs.map
|