@osdk/client 2.6.0-beta.11 → 2.6.0-beta.13
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 +29 -0
- package/build/browser/MinimalClientContext.js.map +1 -1
- package/build/browser/createMinimalClient.js +1 -1
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/objectSet/createObjectSet.js +3 -3
- package/build/browser/objectSet/createObjectSet.js.map +1 -1
- package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
- package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
- package/build/browser/observable/internal/list/ListQuery.test.js +34 -0
- package/build/browser/observable/internal/list/ListQuery.test.js.map +1 -1
- package/build/browser/observable/internal/testUtils.js +1 -1
- package/build/browser/observable/internal/testUtils.js.map +1 -1
- package/build/browser/queries/applyQuery.js +7 -12
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/queries/types.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/extractObjectOrInterfaceType.js +1 -1
- package/build/browser/util/extractObjectOrInterfaceType.js.map +1 -1
- package/build/browser/util/extractObjectOrInterfaceType.test.js +2 -2
- package/build/browser/util/extractObjectOrInterfaceType.test.js.map +1 -1
- package/build/cjs/{Client-CF85LpFu.d.cts → Client-DaUJl7jZ.d.cts} +1 -1
- package/build/cjs/{chunk-RO7XAQOS.cjs → chunk-QZANBCOP.cjs} +27 -27
- package/build/cjs/{chunk-RO7XAQOS.cjs.map → chunk-QZANBCOP.cjs.map} +1 -1
- package/build/cjs/{chunk-VGO7XU6T.cjs → chunk-WKSXDHYH.cjs} +74 -78
- package/build/cjs/chunk-WKSXDHYH.cjs.map +1 -0
- package/build/cjs/{createClient-mOlFts15.d.cts → createClient-CPUYdECn.d.cts} +1 -1
- package/build/cjs/index.cjs +8 -8
- package/build/cjs/index.d.cts +2 -2
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/internal.d.cts +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +33 -33
- package/build/cjs/public/unstable-do-not-use.d.cts +2 -2
- package/build/esm/MinimalClientContext.js.map +1 -1
- package/build/esm/createMinimalClient.js +1 -1
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/objectSet/createObjectSet.js +3 -3
- package/build/esm/objectSet/createObjectSet.js.map +1 -1
- package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
- package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
- package/build/esm/observable/internal/list/ListQuery.test.js +34 -0
- package/build/esm/observable/internal/list/ListQuery.test.js.map +1 -1
- package/build/esm/observable/internal/testUtils.js +1 -1
- package/build/esm/observable/internal/testUtils.js.map +1 -1
- package/build/esm/queries/applyQuery.js +7 -12
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/queries/types.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/extractObjectOrInterfaceType.js +1 -1
- package/build/esm/util/extractObjectOrInterfaceType.js.map +1 -1
- package/build/esm/util/extractObjectOrInterfaceType.test.js +2 -2
- package/build/esm/util/extractObjectOrInterfaceType.test.js.map +1 -1
- package/build/types/MinimalClientContext.d.ts +1 -1
- package/build/types/MinimalClientContext.d.ts.map +1 -1
- package/build/types/queries/applyQuery.d.ts.map +1 -1
- package/build/types/queries/types.d.ts +1 -1
- package/build/types/queries/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/build/cjs/chunk-VGO7XU6T.cjs.map +0 -1
|
@@ -15,10 +15,10 @@ var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
|
15
15
|
// src/object/fetchPage.ts
|
|
16
16
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
18
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
19
19
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
21
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
22
22
|
var Action_exports = {};
|
|
23
23
|
chunk6SCDLAU2_cjs.__export(Action_exports, {
|
|
24
24
|
apply: () => apply,
|
|
@@ -104,7 +104,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
104
104
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
107
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
108
108
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
109
109
|
function apply($ctx, ...args) {
|
|
110
110
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -118,10 +118,10 @@ function applyBatch($ctx, ...args) {
|
|
|
118
118
|
return foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
121
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
122
122
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
123
123
|
|
|
124
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
124
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
125
125
|
var ActionTypeV2_exports = {};
|
|
126
126
|
chunk6SCDLAU2_cjs.__export(ActionTypeV2_exports, {
|
|
127
127
|
get: () => get,
|
|
@@ -142,7 +142,7 @@ function getByRid($ctx, ...args) {
|
|
|
142
142
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
145
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
146
146
|
var Attachment_exports = {};
|
|
147
147
|
chunk6SCDLAU2_cjs.__export(Attachment_exports, {
|
|
148
148
|
get: () => get2,
|
|
@@ -168,16 +168,16 @@ function get2($ctx, ...args) {
|
|
|
168
168
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
171
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
172
172
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
173
173
|
|
|
174
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
174
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
175
175
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
176
176
|
|
|
177
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
177
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
178
178
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
179
179
|
|
|
180
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
180
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
181
181
|
var MediaReferenceProperty_exports = {};
|
|
182
182
|
chunk6SCDLAU2_cjs.__export(MediaReferenceProperty_exports, {
|
|
183
183
|
getMediaContent: () => getMediaContent,
|
|
@@ -198,7 +198,7 @@ function upload2($ctx, ...args) {
|
|
|
198
198
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
201
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
202
202
|
var ObjectTypeV2_exports = {};
|
|
203
203
|
chunk6SCDLAU2_cjs.__export(ObjectTypeV2_exports, {
|
|
204
204
|
get: () => get3,
|
|
@@ -229,7 +229,7 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
229
229
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
232
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
233
233
|
var OntologyInterface_exports = {};
|
|
234
234
|
chunk6SCDLAU2_cjs.__export(OntologyInterface_exports, {
|
|
235
235
|
aggregate: () => aggregate,
|
|
@@ -275,7 +275,7 @@ function listInterfaceLinkedObjects($ctx, ...args) {
|
|
|
275
275
|
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
278
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
279
279
|
var OntologyObjectSet_exports = {};
|
|
280
280
|
chunk6SCDLAU2_cjs.__export(OntologyObjectSet_exports, {
|
|
281
281
|
aggregate: () => aggregate2,
|
|
@@ -311,19 +311,19 @@ function aggregate2($ctx, ...args) {
|
|
|
311
311
|
return foundryPlatformFetch($ctx, _aggregate2, ...args);
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
314
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
315
315
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
316
316
|
|
|
317
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
317
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
318
318
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
319
319
|
|
|
320
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
320
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
321
321
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
322
322
|
|
|
323
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
323
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
324
324
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
325
325
|
|
|
326
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
326
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
327
327
|
var Query_exports = {};
|
|
328
328
|
chunk6SCDLAU2_cjs.__export(Query_exports, {
|
|
329
329
|
execute: () => execute
|
|
@@ -334,7 +334,7 @@ function execute($ctx, ...args) {
|
|
|
334
334
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
337
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
338
338
|
var QueryType_exports = {};
|
|
339
339
|
chunk6SCDLAU2_cjs.__export(QueryType_exports, {
|
|
340
340
|
get: () => get6,
|
|
@@ -350,7 +350,7 @@ function get6($ctx, ...args) {
|
|
|
350
350
|
return foundryPlatformFetch($ctx, _get6, ...args);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
353
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
354
354
|
var TimeSeriesPropertyV2_exports = {};
|
|
355
355
|
chunk6SCDLAU2_cjs.__export(TimeSeriesPropertyV2_exports, {
|
|
356
356
|
getFirstPoint: () => getFirstPoint,
|
|
@@ -371,7 +371,7 @@ function streamPoints($ctx, ...args) {
|
|
|
371
371
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
374
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.41.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
375
375
|
var TimeSeriesValueBankProperty_exports = {};
|
|
376
376
|
chunk6SCDLAU2_cjs.__export(TimeSeriesValueBankProperty_exports, {
|
|
377
377
|
getLatestValue: () => getLatestValue,
|
|
@@ -449,7 +449,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
449
449
|
return extractObjectOrInterfaceType(clientCtx, objectSet.objectSet);
|
|
450
450
|
case "asType":
|
|
451
451
|
return {
|
|
452
|
-
type: clientCtx.
|
|
452
|
+
type: clientCtx.narrowTypeInterfaceOrObjectMapping[objectSet.entityType],
|
|
453
453
|
apiName: objectSet.entityType
|
|
454
454
|
};
|
|
455
455
|
case "intersect": {
|
|
@@ -2165,10 +2165,10 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
|
|
|
2165
2165
|
objectSet
|
|
2166
2166
|
});
|
|
2167
2167
|
},
|
|
2168
|
-
|
|
2169
|
-
const existingMapping = clientCtx.
|
|
2168
|
+
narrowToType: (objectTypeDef) => {
|
|
2169
|
+
const existingMapping = clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName];
|
|
2170
2170
|
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `${objectTypeDef.apiName} was previously used as an ${existingMapping}, but now used as a ${objectTypeDef.type}.`) : invariant3__default.default(false) : void 0;
|
|
2171
|
-
clientCtx.
|
|
2171
|
+
clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName] = objectTypeDef.type;
|
|
2172
2172
|
return clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
|
|
2173
2173
|
type: "asType",
|
|
2174
2174
|
objectSet,
|
|
@@ -2243,5 +2243,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
|
|
|
2243
2243
|
exports.isObjectSet = isObjectSet;
|
|
2244
2244
|
exports.isWireObjectSet = isWireObjectSet;
|
|
2245
2245
|
exports.symbolClientContext = symbolClientContext;
|
|
2246
|
-
//# sourceMappingURL=chunk-
|
|
2247
|
-
//# sourceMappingURL=chunk-
|
|
2246
|
+
//# sourceMappingURL=chunk-QZANBCOP.cjs.map
|
|
2247
|
+
//# sourceMappingURL=chunk-QZANBCOP.cjs.map
|