@osdk/client 2.4.0-beta.9 → 2.4.0
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 +191 -0
- package/build/browser/MinimalClientContext.js.map +1 -1
- package/build/browser/createClient.js +5 -5
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createClient.test.js +3 -3
- package/build/browser/createClient.test.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 +0 -17
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/browser/fetchMetadata.test.js +7 -1
- package/build/browser/fetchMetadata.test.js.map +1 -1
- package/build/browser/index.js +2 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.js +3 -2
- package/build/browser/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js +36 -24
- package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/browser/object/fetchPage.js +9 -2
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/object/mediaUpload.js +0 -3
- package/build/browser/object/mediaUpload.js.map +1 -1
- package/build/browser/objectSet/InterfaceObjectSet.test.js +5 -1
- package/build/browser/objectSet/InterfaceObjectSet.test.js.map +1 -1
- package/build/browser/objectSet/createObjectSet.js +5 -1
- package/build/browser/objectSet/createObjectSet.js.map +1 -1
- package/build/browser/observable/internal/ActionApplication.js +1 -1
- package/build/browser/observable/internal/ActionApplication.js.map +1 -1
- package/build/browser/observable/internal/Store.test.js +3 -0
- package/build/browser/observable/internal/Store.test.js.map +1 -1
- package/build/browser/ontology/StandardOntologyProvider.test.js +1 -1
- package/build/browser/ontology/StandardOntologyProvider.test.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js +1 -0
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/public-utils/hydrateObjectSetFromObjectRids.js +4 -1
- package/build/browser/public-utils/hydrateObjectSetFromObjectRids.js.map +1 -1
- package/build/browser/public-utils/hydrateObjectSetFromRid.js +4 -1
- package/build/browser/public-utils/hydrateObjectSetFromRid.js.map +1 -1
- package/build/browser/queries/applyQuery.js +24 -1
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/queries/queries.test.js +27 -2
- package/build/browser/queries/queries.test.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/UserAgent.js.map +1 -1
- package/build/browser/util/WireObjectSet.js +1 -1
- package/build/browser/util/WireObjectSet.js.map +1 -1
- package/build/browser/util/extractObjectOrInterfaceType.js +96 -0
- package/build/browser/util/extractObjectOrInterfaceType.js.map +1 -0
- package/build/browser/util/extractObjectOrInterfaceType.test.js +135 -0
- package/build/browser/util/extractObjectOrInterfaceType.test.js.map +1 -0
- package/build/browser/util/interfaceUtils.js +10 -0
- package/build/browser/util/interfaceUtils.js.map +1 -1
- package/build/browser/util/objectSpecifierUtils.js +12 -0
- package/build/browser/util/objectSpecifierUtils.js.map +1 -1
- package/build/browser/util/toDataValue.js +1 -15
- package/build/browser/util/toDataValue.js.map +1 -1
- package/build/browser/util/toDataValue.test.js +2 -42
- package/build/browser/util/toDataValue.test.js.map +1 -1
- package/build/browser/util/toDataValueQueries.js +11 -0
- package/build/browser/util/toDataValueQueries.js.map +1 -1
- package/build/cjs/{Client-CgL2LKN9.d.cts → Client-CF85LpFu.d.cts} +2 -2
- package/build/cjs/{chunk-E5BQ7757.cjs → chunk-DSQAJPW5.cjs} +120 -64
- package/build/cjs/chunk-DSQAJPW5.cjs.map +1 -0
- package/build/cjs/chunk-Q7SFCCGT.cjs +11 -0
- package/build/cjs/chunk-Q7SFCCGT.cjs.map +1 -0
- package/build/cjs/{chunk-YZHCDIYC.cjs → chunk-RLFLBDLT.cjs} +117 -85
- package/build/cjs/chunk-RLFLBDLT.cjs.map +1 -0
- package/build/cjs/createClient-BJo8T7Js.d.cts +9 -0
- package/build/cjs/delay-QK4T7RVX.cjs +74 -0
- package/build/cjs/delay-QK4T7RVX.cjs.map +1 -0
- package/build/cjs/index.cjs +9 -8
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +15 -8
- package/build/cjs/public/internal.cjs +17 -10
- package/build/cjs/public/internal.cjs.map +1 -1
- package/build/cjs/public/internal.d.cts +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +22 -71
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +2 -1
- package/build/esm/MinimalClientContext.js.map +1 -1
- package/build/esm/createClient.js +5 -5
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createClient.test.js +3 -3
- package/build/esm/createClient.test.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 +0 -17
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/esm/fetchMetadata.test.js +7 -1
- package/build/esm/fetchMetadata.test.js.map +1 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.js +3 -2
- package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js +36 -24
- package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/esm/object/fetchPage.js +9 -2
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/object/mediaUpload.js +0 -3
- package/build/esm/object/mediaUpload.js.map +1 -1
- package/build/esm/objectSet/InterfaceObjectSet.test.js +5 -1
- package/build/esm/objectSet/InterfaceObjectSet.test.js.map +1 -1
- package/build/esm/objectSet/createObjectSet.js +5 -1
- package/build/esm/objectSet/createObjectSet.js.map +1 -1
- package/build/esm/observable/internal/ActionApplication.js +1 -1
- package/build/esm/observable/internal/ActionApplication.js.map +1 -1
- package/build/esm/observable/internal/Store.test.js +3 -0
- package/build/esm/observable/internal/Store.test.js.map +1 -1
- package/build/esm/ontology/StandardOntologyProvider.test.js +1 -1
- package/build/esm/ontology/StandardOntologyProvider.test.js.map +1 -1
- package/build/esm/public/unstable-do-not-use.js +1 -0
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/public-utils/hydrateObjectSetFromObjectRids.js +4 -1
- package/build/esm/public-utils/hydrateObjectSetFromObjectRids.js.map +1 -1
- package/build/esm/public-utils/hydrateObjectSetFromRid.js +4 -1
- package/build/esm/public-utils/hydrateObjectSetFromRid.js.map +1 -1
- package/build/esm/queries/applyQuery.js +24 -1
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/queries/queries.test.js +27 -2
- package/build/esm/queries/queries.test.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/UserAgent.js.map +1 -1
- package/build/esm/util/WireObjectSet.js +1 -1
- package/build/esm/util/WireObjectSet.js.map +1 -1
- package/build/esm/util/extractObjectOrInterfaceType.js +96 -0
- package/build/esm/util/extractObjectOrInterfaceType.js.map +1 -0
- package/build/esm/util/extractObjectOrInterfaceType.test.js +135 -0
- package/build/esm/util/extractObjectOrInterfaceType.test.js.map +1 -0
- package/build/esm/util/interfaceUtils.js +10 -0
- package/build/esm/util/interfaceUtils.js.map +1 -1
- package/build/esm/util/objectSpecifierUtils.js +12 -0
- package/build/esm/util/objectSpecifierUtils.js.map +1 -1
- package/build/esm/util/toDataValue.js +1 -15
- package/build/esm/util/toDataValue.js.map +1 -1
- package/build/esm/util/toDataValue.test.js +2 -42
- package/build/esm/util/toDataValue.test.js.map +1 -1
- package/build/esm/util/toDataValueQueries.js +11 -0
- package/build/esm/util/toDataValueQueries.js.map +1 -1
- package/build/types/MinimalClientContext.d.ts +1 -0
- package/build/types/MinimalClientContext.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/index.d.ts +3 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/object/fetchPage.d.ts.map +1 -1
- package/build/types/object/mediaUpload.d.ts +1 -2
- package/build/types/object/mediaUpload.d.ts.map +1 -1
- package/build/types/observable/internal/ActionApplication.d.ts.map +1 -1
- package/build/types/public/unstable-do-not-use.d.ts +1 -0
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/build/types/queries/applyQuery.d.ts +5 -1
- package/build/types/queries/applyQuery.d.ts.map +1 -1
- package/build/types/queries/types.d.ts +2 -2
- package/build/types/queries/types.d.ts.map +1 -1
- package/build/types/util/extractObjectOrInterfaceType.d.ts +1 -0
- package/build/types/util/extractObjectOrInterfaceType.d.ts.map +1 -0
- package/build/types/util/extractObjectOrInterfaceType.test.d.ts +1 -0
- package/build/types/util/extractObjectOrInterfaceType.test.d.ts.map +1 -0
- package/build/types/util/objectSpecifierUtils.d.ts +13 -1
- package/build/types/util/objectSpecifierUtils.d.ts.map +1 -1
- package/package.json +11 -11
- package/build/cjs/chunk-E5BQ7757.cjs.map +0 -1
- package/build/cjs/chunk-YZHCDIYC.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDSQAJPW5_cjs = require('./chunk-DSQAJPW5.cjs');
|
|
4
4
|
var unstable = require('@osdk/api/unstable');
|
|
5
5
|
var client_unstable = require('@osdk/client.unstable');
|
|
6
6
|
var invariant = require('tiny-invariant');
|
|
7
|
-
var api = require('@osdk/api');
|
|
8
7
|
var shared_client_impl = require('@osdk/shared.client.impl');
|
|
8
|
+
var api = require('@osdk/api');
|
|
9
9
|
var generatorConverters = require('@osdk/generator-converters');
|
|
10
10
|
|
|
11
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -34,6 +34,17 @@ function createAttachmentUpload(data, name) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
// src/util/objectSpecifierUtils.ts
|
|
38
|
+
function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
|
|
39
|
+
return `${objectDef.apiName}:${primaryKey}`;
|
|
40
|
+
}
|
|
41
|
+
function createObjectSpecifierFromInterfaceSpecifier(interfaceDef, interfaceSpecifier) {
|
|
42
|
+
return `${interfaceSpecifier.objectTypeApiName}:${interfaceSpecifier.primaryKeyValue}`;
|
|
43
|
+
}
|
|
44
|
+
function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
|
|
45
|
+
return ObjectSpecifier.split(":")[1];
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
// src/objectSet/conjureUnionType.ts
|
|
38
49
|
function conjureUnionType(type, value) {
|
|
39
50
|
return {
|
|
@@ -384,14 +395,17 @@ function getPrimaryKeyOrThrow(ref) {
|
|
|
384
395
|
function isMediaReference(o) {
|
|
385
396
|
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";
|
|
386
397
|
}
|
|
387
|
-
function isMediaUpload(o) {
|
|
388
|
-
return typeof o === "object" && "path" in o && typeof o.path === "string" && "data" in o && typeof o.data === "object" && o.data instanceof Blob;
|
|
389
|
-
}
|
|
390
398
|
|
|
391
399
|
// src/util/interfaceUtils.ts
|
|
392
400
|
function isInterfaceActionParam(o) {
|
|
393
401
|
return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
|
|
394
402
|
}
|
|
403
|
+
function isInterfaceQueryParam(o) {
|
|
404
|
+
return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
|
|
405
|
+
}
|
|
406
|
+
function isInterfaceSpecifier(o) {
|
|
407
|
+
return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o && o.$objectType !== o.$apiName;
|
|
408
|
+
}
|
|
395
409
|
|
|
396
410
|
// src/util/isObjectSpecifiersObject.ts
|
|
397
411
|
function isObjectSpecifiersObject(o) {
|
|
@@ -413,54 +427,44 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
413
427
|
if (value == null) {
|
|
414
428
|
return value;
|
|
415
429
|
}
|
|
416
|
-
if (value === api.NULL_VALUE) {
|
|
417
|
-
return null;
|
|
418
|
-
}
|
|
419
430
|
if (Array.isArray(value) || value instanceof Set) {
|
|
420
431
|
const values = Array.from(value);
|
|
421
432
|
if (values.some((dataValue) => isAttachmentUpload(dataValue) || isAttachmentFile(dataValue))) {
|
|
422
433
|
const converted = [];
|
|
423
434
|
for (const value2 of values) {
|
|
424
|
-
converted.push(await toDataValue(value2, client
|
|
435
|
+
converted.push(await toDataValue(value2, client));
|
|
425
436
|
}
|
|
426
437
|
return converted;
|
|
427
438
|
}
|
|
428
|
-
const promiseArray = Array.from(value, async (innerValue) => await toDataValue(innerValue, client
|
|
439
|
+
const promiseArray = Array.from(value, async (innerValue) => await toDataValue(innerValue, client));
|
|
429
440
|
return Promise.all(promiseArray);
|
|
430
441
|
}
|
|
431
442
|
if (isAttachmentUpload(value)) {
|
|
432
|
-
const attachment = await
|
|
443
|
+
const attachment = await chunkDSQAJPW5_cjs.Attachment_exports.upload(client, value.data, {
|
|
433
444
|
filename: value.name
|
|
434
445
|
});
|
|
435
|
-
return await toDataValue(attachment.rid, client
|
|
446
|
+
return await toDataValue(attachment.rid, client);
|
|
436
447
|
}
|
|
437
448
|
if (isAttachmentFile(value)) {
|
|
438
|
-
const attachment = await
|
|
449
|
+
const attachment = await chunkDSQAJPW5_cjs.Attachment_exports.upload(client, value, {
|
|
439
450
|
filename: value.name
|
|
440
451
|
});
|
|
441
|
-
return await toDataValue(attachment.rid, client
|
|
442
|
-
}
|
|
443
|
-
if (isMediaUpload(value)) {
|
|
444
|
-
const mediaRef = await chunkE5BQ7757_cjs.MediaReferenceProperty_exports.uploadMedia(client, await client.ontologyRid, actionMetadata.apiName, value.data, {
|
|
445
|
-
mediaItemPath: value.path,
|
|
446
|
-
preview: true
|
|
447
|
-
});
|
|
448
|
-
return await toDataValue(mediaRef, client, actionMetadata);
|
|
452
|
+
return await toDataValue(attachment.rid, client);
|
|
449
453
|
}
|
|
450
454
|
if (isOntologyObjectV2(value)) {
|
|
451
|
-
return await toDataValue(value.__primaryKey, client
|
|
455
|
+
return await toDataValue(value.__primaryKey, client);
|
|
452
456
|
}
|
|
453
457
|
if (isObjectSpecifiersObject(value)) {
|
|
454
|
-
return await toDataValue(value.$primaryKey, client
|
|
458
|
+
return await toDataValue(value.$primaryKey, client);
|
|
455
459
|
}
|
|
456
460
|
if (isPoint(value)) {
|
|
457
|
-
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client
|
|
461
|
+
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
|
|
458
462
|
}
|
|
459
|
-
if (
|
|
463
|
+
if (chunkDSQAJPW5_cjs.isWireObjectSet(value)) {
|
|
460
464
|
return value;
|
|
461
465
|
}
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
466
|
+
if (chunkDSQAJPW5_cjs.isObjectSet(value)) {
|
|
467
|
+
return chunkDSQAJPW5_cjs.getWireObjectSet(value);
|
|
464
468
|
}
|
|
465
469
|
if (isMediaReference(value)) {
|
|
466
470
|
return value;
|
|
@@ -474,7 +478,7 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
474
478
|
if (typeof value === "object") {
|
|
475
479
|
return Object.entries(value).reduce(async (promisedAcc, [key, structValue]) => {
|
|
476
480
|
const acc = await promisedAcc;
|
|
477
|
-
acc[key] = await toDataValue(structValue, client
|
|
481
|
+
acc[key] = await toDataValue(structValue, client);
|
|
478
482
|
return acc;
|
|
479
483
|
}, Promise.resolve({}));
|
|
480
484
|
}
|
|
@@ -483,11 +487,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
483
487
|
|
|
484
488
|
// src/actions/applyAction.ts
|
|
485
489
|
async function applyAction(client, action, parameters, options = {}) {
|
|
486
|
-
const clientWithHeaders =
|
|
490
|
+
const clientWithHeaders = chunkDSQAJPW5_cjs.addUserAgentAndRequestContextHeaders(chunkDSQAJPW5_cjs.augmentRequestContext(client, (_) => ({
|
|
487
491
|
finalMethodCall: "applyAction"
|
|
488
492
|
})), action);
|
|
489
493
|
if (Array.isArray(parameters)) {
|
|
490
|
-
const response = await
|
|
494
|
+
const response = await chunkDSQAJPW5_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
491
495
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
492
496
|
options: {
|
|
493
497
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -496,7 +500,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
496
500
|
const edits = response.edits;
|
|
497
501
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
498
502
|
} else {
|
|
499
|
-
const response = await
|
|
503
|
+
const response = await chunkDSQAJPW5_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
500
504
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
501
505
|
options: {
|
|
502
506
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -520,14 +524,14 @@ async function remapActionParams(params, client, actionMetadata) {
|
|
|
520
524
|
}
|
|
521
525
|
const parameterMap = {};
|
|
522
526
|
for (const [key, value] of Object.entries(params)) {
|
|
523
|
-
parameterMap[key] = await toDataValue(value, client
|
|
527
|
+
parameterMap[key] = await toDataValue(value, client);
|
|
524
528
|
}
|
|
525
529
|
return parameterMap;
|
|
526
530
|
}
|
|
527
531
|
async function remapBatchActionParams(params, client, actionMetadata) {
|
|
528
532
|
const remappedParams = await Promise.all(params.map(async (param) => {
|
|
529
533
|
return {
|
|
530
|
-
parameters: await remapActionParams(param, client
|
|
534
|
+
parameters: await remapActionParams(param, client)
|
|
531
535
|
};
|
|
532
536
|
}));
|
|
533
537
|
return remappedParams;
|
|
@@ -701,7 +705,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
701
705
|
}
|
|
702
706
|
}
|
|
703
707
|
async getLatestValue() {
|
|
704
|
-
const latestPointPromise =
|
|
708
|
+
const latestPointPromise = chunkDSQAJPW5_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
705
709
|
latestPointPromise.then(
|
|
706
710
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
707
711
|
// eslint-disable-next-line no-console
|
|
@@ -717,7 +721,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
717
721
|
return allPoints;
|
|
718
722
|
}
|
|
719
723
|
async *asyncIterValues(query) {
|
|
720
|
-
const streamPointsIterator = await
|
|
724
|
+
const streamPointsIterator = await chunkDSQAJPW5_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
721
725
|
range: getTimeRange(query)
|
|
722
726
|
} : {});
|
|
723
727
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -744,13 +748,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
744
748
|
this.#mediaReference = mediaReference;
|
|
745
749
|
}
|
|
746
750
|
async fetchContents() {
|
|
747
|
-
return
|
|
751
|
+
return chunkDSQAJPW5_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
748
752
|
preview: true
|
|
749
753
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
750
754
|
});
|
|
751
755
|
}
|
|
752
756
|
async fetchMetadata() {
|
|
753
|
-
const r = await
|
|
757
|
+
const r = await chunkDSQAJPW5_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
754
758
|
preview: true
|
|
755
759
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
756
760
|
});
|
|
@@ -774,10 +778,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
774
778
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
775
779
|
}
|
|
776
780
|
async getFirstPoint() {
|
|
777
|
-
return
|
|
781
|
+
return chunkDSQAJPW5_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
778
782
|
}
|
|
779
783
|
async getLastPoint() {
|
|
780
|
-
return
|
|
784
|
+
return chunkDSQAJPW5_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
781
785
|
}
|
|
782
786
|
async getAllPoints(query) {
|
|
783
787
|
const allPoints = [];
|
|
@@ -787,7 +791,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
787
791
|
return allPoints;
|
|
788
792
|
}
|
|
789
793
|
async *asyncIterPoints(query) {
|
|
790
|
-
const streamPointsIterator = await
|
|
794
|
+
const streamPointsIterator = await chunkDSQAJPW5_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
791
795
|
range: getTimeRange(query)
|
|
792
796
|
} : {});
|
|
793
797
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -796,14 +800,6 @@ var TimeSeriesPropertyImpl = class {
|
|
|
796
800
|
}
|
|
797
801
|
};
|
|
798
802
|
|
|
799
|
-
// src/util/objectSpecifierUtils.ts
|
|
800
|
-
function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
|
|
801
|
-
return `${objectDef.apiName}:${primaryKey}`;
|
|
802
|
-
}
|
|
803
|
-
function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
|
|
804
|
-
return ObjectSpecifier.split(":")[1];
|
|
805
|
-
}
|
|
806
|
-
|
|
807
803
|
// src/ontology/OntologyProvider.ts
|
|
808
804
|
var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
|
|
809
805
|
|
|
@@ -815,7 +811,7 @@ var ClientRef = Symbol("ClientRef" );
|
|
|
815
811
|
|
|
816
812
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
817
813
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
818
|
-
const [objApiNamespace] =
|
|
814
|
+
const [objApiNamespace] = chunkDSQAJPW5_cjs.extractNamespace(interfaceDef.apiName);
|
|
819
815
|
return Object.freeze(Object.defineProperties({}, {
|
|
820
816
|
// first to minimize hidden classes
|
|
821
817
|
[UnderlyingOsdkObject]: {
|
|
@@ -865,7 +861,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
865
861
|
},
|
|
866
862
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
867
863
|
const objDef = underlying[ObjectDefRef];
|
|
868
|
-
const [apiNamespace, apiName] =
|
|
864
|
+
const [apiNamespace, apiName] = chunkDSQAJPW5_cjs.extractNamespace(p);
|
|
869
865
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
870
866
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
871
867
|
enumerable: targetPropName in underlying,
|
|
@@ -941,8 +937,8 @@ function get$link(holder) {
|
|
|
941
937
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
942
938
|
}).pivotTo(linkName);
|
|
943
939
|
const value = !linkDef.multiplicity ? {
|
|
944
|
-
fetchOne: (options) =>
|
|
945
|
-
fetchOneWithErrors: (options) =>
|
|
940
|
+
fetchOne: (options) => chunkDSQAJPW5_cjs.fetchSingle(client, objDef, options ?? {}, chunkDSQAJPW5_cjs.getWireObjectSet(objectSet)),
|
|
941
|
+
fetchOneWithErrors: (options) => chunkDSQAJPW5_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkDSQAJPW5_cjs.getWireObjectSet(objectSet))
|
|
946
942
|
} : objectSet;
|
|
947
943
|
return [linkName, value];
|
|
948
944
|
})));
|
|
@@ -1035,9 +1031,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1035
1031
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1036
1032
|
case "attachment":
|
|
1037
1033
|
if (Array.isArray(rawValue)) {
|
|
1038
|
-
return rawValue.map((a) =>
|
|
1034
|
+
return rawValue.map((a) => chunkDSQAJPW5_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1039
1035
|
} else {
|
|
1040
|
-
return
|
|
1036
|
+
return chunkDSQAJPW5_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1041
1037
|
}
|
|
1042
1038
|
default:
|
|
1043
1039
|
process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
|
|
@@ -1053,9 +1049,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1053
1049
|
}
|
|
1054
1050
|
if (propDef.type === "attachment") {
|
|
1055
1051
|
if (Array.isArray(rawValue)) {
|
|
1056
|
-
return rawValue.map((a) =>
|
|
1052
|
+
return rawValue.map((a) => chunkDSQAJPW5_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1057
1053
|
}
|
|
1058
|
-
return
|
|
1054
|
+
return chunkDSQAJPW5_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1059
1055
|
}
|
|
1060
1056
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1061
1057
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1113,11 +1109,12 @@ async function convertWireToOsdkObjects(client, objects, interfaceApiName, force
|
|
|
1113
1109
|
}
|
|
1114
1110
|
async function convertWireToOsdkObjects2(client, objects, interfaceApiName, derivedPropertyTypeByName, forceRemoveRid = false, selectedProps, strictNonNull = false, interfaceToObjectTypeMappings = {}) {
|
|
1115
1111
|
fixObjectPropertiesInPlace(objects, forceRemoveRid);
|
|
1112
|
+
const isInterfaceScoped = Object.keys(interfaceToObjectTypeMappings).length > 0;
|
|
1116
1113
|
const ret = [];
|
|
1117
1114
|
for (const rawObj of objects) {
|
|
1118
1115
|
const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
|
|
1119
1116
|
!objectDef ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant__default.default(false) : void 0;
|
|
1120
|
-
const interfaceToObjMapping = interfaceApiName ? interfaceToObjectTypeMappings[interfaceApiName][rawObj.$apiName] : void 0;
|
|
1117
|
+
const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ? interfaceToObjectTypeMappings[interfaceApiName][rawObj.$apiName] : void 0;
|
|
1121
1118
|
const ifaceSelected = interfaceApiName && interfaceToObjMapping ? selectedProps ? Object.keys(interfaceToObjMapping).filter((val) => {
|
|
1122
1119
|
selectedProps?.includes(interfaceToObjMapping[val]);
|
|
1123
1120
|
}) : [...Object.values(interfaceToObjMapping), objectDef.primaryKeyApiName] : void 0;
|
|
@@ -1136,7 +1133,7 @@ async function convertWireToOsdkObjects2(client, objects, interfaceApiName, deri
|
|
|
1136
1133
|
continue;
|
|
1137
1134
|
}
|
|
1138
1135
|
let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypeByName);
|
|
1139
|
-
if (interfaceApiName) osdkObject = osdkObject.$as(interfaceApiName);
|
|
1136
|
+
if (interfaceApiName && isInterfaceScoped) osdkObject = osdkObject.$as(interfaceApiName);
|
|
1140
1137
|
ret.push(osdkObject);
|
|
1141
1138
|
}
|
|
1142
1139
|
return ret;
|
|
@@ -1274,11 +1271,11 @@ function deepFreeze(obj) {
|
|
|
1274
1271
|
return Object.freeze(obj);
|
|
1275
1272
|
}
|
|
1276
1273
|
async function loadActionMetadata(client, actionType) {
|
|
1277
|
-
const r = await
|
|
1274
|
+
const r = await chunkDSQAJPW5_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
|
|
1278
1275
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1279
1276
|
}
|
|
1280
1277
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1281
|
-
const full = await
|
|
1278
|
+
const full = await chunkDSQAJPW5_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1282
1279
|
preview: true
|
|
1283
1280
|
});
|
|
1284
1281
|
const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
|
|
@@ -1287,14 +1284,14 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1287
1284
|
};
|
|
1288
1285
|
}
|
|
1289
1286
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1290
|
-
const r = await
|
|
1287
|
+
const r = await chunkDSQAJPW5_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1291
1288
|
preview: true
|
|
1292
1289
|
});
|
|
1293
1290
|
return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
|
|
1294
1291
|
}
|
|
1295
1292
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1296
1293
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1297
|
-
const r = await
|
|
1294
|
+
const r = await chunkDSQAJPW5_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1298
1295
|
version
|
|
1299
1296
|
});
|
|
1300
1297
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1351,11 +1348,11 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1351
1348
|
};
|
|
1352
1349
|
|
|
1353
1350
|
// src/util/UserAgent.ts
|
|
1354
|
-
var USER_AGENT = `osdk-client/${"2.4.0
|
|
1355
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0
|
|
1351
|
+
var USER_AGENT = `osdk-client/${"2.4.0"}`;
|
|
1352
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0"}`;
|
|
1356
1353
|
|
|
1357
1354
|
// src/createMinimalClient.ts
|
|
1358
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
1355
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkDSQAJPW5_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1359
1356
|
if (process.env.NODE_ENV !== "production") {
|
|
1360
1357
|
try {
|
|
1361
1358
|
new URL(baseUrl);
|
|
@@ -1373,6 +1370,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
|
|
|
1373
1370
|
objectFactory2: convertWireToOsdkObjects2,
|
|
1374
1371
|
ontologyRid: metadata.ontologyRid,
|
|
1375
1372
|
logger: options.logger,
|
|
1373
|
+
transactionRid: options.transactionRid,
|
|
1376
1374
|
clientCacheKey: {},
|
|
1377
1375
|
requestContext: {}
|
|
1378
1376
|
};
|
|
@@ -1420,13 +1418,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1420
1418
|
switch (desiredType.type) {
|
|
1421
1419
|
case "attachment": {
|
|
1422
1420
|
if (isAttachmentUpload(value)) {
|
|
1423
|
-
const attachment = await
|
|
1421
|
+
const attachment = await chunkDSQAJPW5_cjs.Attachment_exports.upload(client, value.data, {
|
|
1424
1422
|
filename: value.name
|
|
1425
1423
|
});
|
|
1426
1424
|
return attachment.rid;
|
|
1427
1425
|
}
|
|
1428
1426
|
if (isAttachmentFile(value)) {
|
|
1429
|
-
const attachment = await
|
|
1427
|
+
const attachment = await chunkDSQAJPW5_cjs.Attachment_exports.upload(client, value, {
|
|
1430
1428
|
filename: value.name
|
|
1431
1429
|
});
|
|
1432
1430
|
return attachment.rid;
|
|
@@ -1456,12 +1454,21 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1456
1454
|
}
|
|
1457
1455
|
break;
|
|
1458
1456
|
}
|
|
1459
|
-
case "
|
|
1460
|
-
if (
|
|
1457
|
+
case "interface": {
|
|
1458
|
+
if (isInterfaceSpecifier(value) || isInterfaceQueryParam(value)) {
|
|
1459
|
+
return {
|
|
1460
|
+
objectTypeApiName: value.$objectType,
|
|
1461
|
+
primaryKeyValue: value.$primaryKey
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
case "objectSet":
|
|
1466
|
+
case "interfaceObjectSet": {
|
|
1467
|
+
if (chunkDSQAJPW5_cjs.isWireObjectSet(value)) {
|
|
1461
1468
|
return value;
|
|
1462
1469
|
}
|
|
1463
|
-
if (
|
|
1464
|
-
return
|
|
1470
|
+
if (chunkDSQAJPW5_cjs.isObjectSet(value)) {
|
|
1471
|
+
return chunkDSQAJPW5_cjs.getWireObjectSet(value);
|
|
1465
1472
|
}
|
|
1466
1473
|
break;
|
|
1467
1474
|
}
|
|
@@ -1503,7 +1510,7 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1503
1510
|
// src/queries/applyQuery.ts
|
|
1504
1511
|
async function applyQuery(client, query, params) {
|
|
1505
1512
|
const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
1506
|
-
const response = await
|
|
1513
|
+
const response = await chunkDSQAJPW5_cjs.Query_exports.execute(chunkDSQAJPW5_cjs.addUserAgentAndRequestContextHeaders(chunkDSQAJPW5_cjs.augmentRequestContext(client, (_) => ({
|
|
1507
1514
|
finalMethodCall: "applyQuery"
|
|
1508
1515
|
})), query), await client.ontologyRid, query.apiName, {
|
|
1509
1516
|
parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
|
|
@@ -1550,7 +1557,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1550
1557
|
return responseValue;
|
|
1551
1558
|
}
|
|
1552
1559
|
case "attachment": {
|
|
1553
|
-
return
|
|
1560
|
+
return chunkDSQAJPW5_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
1554
1561
|
}
|
|
1555
1562
|
case "object": {
|
|
1556
1563
|
const def = definitions.get(responseDataType.object);
|
|
@@ -1559,13 +1566,20 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1559
1566
|
}
|
|
1560
1567
|
return createQueryObjectResponse(responseValue, def);
|
|
1561
1568
|
}
|
|
1569
|
+
case "interface": {
|
|
1570
|
+
const def = definitions.get(responseDataType.interface);
|
|
1571
|
+
if (!def || def.type !== "interface") {
|
|
1572
|
+
throw new Error(`Missing definition for ${responseDataType.interface}`);
|
|
1573
|
+
}
|
|
1574
|
+
return createQueryInterfaceResponse(responseValue, def);
|
|
1575
|
+
}
|
|
1562
1576
|
case "objectSet": {
|
|
1563
1577
|
const def = definitions.get(responseDataType.objectSet);
|
|
1564
1578
|
if (!def) {
|
|
1565
1579
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
1566
1580
|
}
|
|
1567
1581
|
if (typeof responseValue === "string") {
|
|
1568
|
-
return
|
|
1582
|
+
return chunkDSQAJPW5_cjs.createObjectSet(def, client, {
|
|
1569
1583
|
type: "intersect",
|
|
1570
1584
|
objectSets: [{
|
|
1571
1585
|
type: "base",
|
|
@@ -1576,7 +1590,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1576
1590
|
}]
|
|
1577
1591
|
});
|
|
1578
1592
|
}
|
|
1579
|
-
return
|
|
1593
|
+
return chunkDSQAJPW5_cjs.createObjectSet(def, client, responseValue);
|
|
1580
1594
|
}
|
|
1581
1595
|
case "struct": {
|
|
1582
1596
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -1650,6 +1664,11 @@ async function getRequiredDefinitions(dataType, client) {
|
|
|
1650
1664
|
result.set(dataType.object, objectDef);
|
|
1651
1665
|
break;
|
|
1652
1666
|
}
|
|
1667
|
+
case "interface": {
|
|
1668
|
+
const interfaceDef = await client.ontologyProvider.getInterfaceDefinition(dataType.interface);
|
|
1669
|
+
result.set(dataType.interface, interfaceDef);
|
|
1670
|
+
break;
|
|
1671
|
+
}
|
|
1653
1672
|
case "set": {
|
|
1654
1673
|
return getRequiredDefinitions(dataType.set, client);
|
|
1655
1674
|
}
|
|
@@ -1719,6 +1738,15 @@ function createQueryObjectResponse(primaryKey, objectDef) {
|
|
|
1719
1738
|
$objectSpecifier: createObjectSpecifierFromPrimaryKey(objectDef, primaryKey)
|
|
1720
1739
|
};
|
|
1721
1740
|
}
|
|
1741
|
+
function createQueryInterfaceResponse(interfaceSpecifier, interfaceDef) {
|
|
1742
|
+
return {
|
|
1743
|
+
$apiName: interfaceDef.apiName,
|
|
1744
|
+
$title: void 0,
|
|
1745
|
+
$objectType: interfaceSpecifier.objectTypeApiName,
|
|
1746
|
+
$primaryKey: interfaceSpecifier.primaryKeyValue,
|
|
1747
|
+
$objectSpecifier: createObjectSpecifierFromInterfaceSpecifier(interfaceDef, interfaceSpecifier)
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1722
1750
|
|
|
1723
1751
|
// src/createClient.ts
|
|
1724
1752
|
var ActionInvoker = class {
|
|
@@ -1732,7 +1760,7 @@ var QueryInvoker = class {
|
|
|
1732
1760
|
this.executeFunction = applyQuery.bind(void 0, clientCtx, queryDef);
|
|
1733
1761
|
}
|
|
1734
1762
|
};
|
|
1735
|
-
function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
1763
|
+
function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontologyRid, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
1736
1764
|
if (typeof ontologyRid === "string") {
|
|
1737
1765
|
if (!ontologyRid.startsWith("ri.")) {
|
|
1738
1766
|
throw new Error("Invalid ontology RID");
|
|
@@ -1748,7 +1776,8 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
|
|
|
1748
1776
|
ontologyRid
|
|
1749
1777
|
}, baseUrl, tokenProvider, {
|
|
1750
1778
|
...options,
|
|
1751
|
-
logger: options?.logger ?? new
|
|
1779
|
+
logger: options?.logger ?? new chunkDSQAJPW5_cjs.MinimalLogger(),
|
|
1780
|
+
transactionRid
|
|
1752
1781
|
}, fetchFn, objectSetFactory);
|
|
1753
1782
|
return createClientFromContext(clientCtx);
|
|
1754
1783
|
}
|
|
@@ -1769,7 +1798,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1769
1798
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
1770
1799
|
return {
|
|
1771
1800
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
1772
|
-
return await
|
|
1801
|
+
return await chunkDSQAJPW5_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
1773
1802
|
}
|
|
1774
1803
|
};
|
|
1775
1804
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -1781,7 +1810,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1781
1810
|
objectType,
|
|
1782
1811
|
propertyType
|
|
1783
1812
|
} = args;
|
|
1784
|
-
return await
|
|
1813
|
+
return await chunkDSQAJPW5_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
1785
1814
|
mediaItemPath: fileName,
|
|
1786
1815
|
preview: true
|
|
1787
1816
|
});
|
|
@@ -1790,7 +1819,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1790
1819
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
1791
1820
|
return {
|
|
1792
1821
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
1793
|
-
return await
|
|
1822
|
+
return await chunkDSQAJPW5_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
1794
1823
|
}
|
|
1795
1824
|
};
|
|
1796
1825
|
}
|
|
@@ -1802,13 +1831,13 @@ function createClientFromContext(clientCtx) {
|
|
|
1802
1831
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
1803
1832
|
const symbolClientContext2 = "__osdkClientContext";
|
|
1804
1833
|
const client = Object.defineProperties(clientFn, {
|
|
1805
|
-
[
|
|
1834
|
+
[chunkDSQAJPW5_cjs.symbolClientContext]: {
|
|
1806
1835
|
value: clientCtx
|
|
1807
1836
|
},
|
|
1808
1837
|
[symbolClientContext2]: {
|
|
1809
1838
|
value: clientCtx
|
|
1810
1839
|
},
|
|
1811
|
-
[
|
|
1840
|
+
[chunkDSQAJPW5_cjs.additionalContext]: {
|
|
1812
1841
|
value: clientCtx
|
|
1813
1842
|
},
|
|
1814
1843
|
fetchMetadata: {
|
|
@@ -1817,7 +1846,8 @@ function createClientFromContext(clientCtx) {
|
|
|
1817
1846
|
});
|
|
1818
1847
|
return client;
|
|
1819
1848
|
}
|
|
1820
|
-
var createClient = createClientInternal.bind(void 0,
|
|
1849
|
+
var createClient = createClientInternal.bind(void 0, chunkDSQAJPW5_cjs.createObjectSet, void 0);
|
|
1850
|
+
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkDSQAJPW5_cjs.createObjectSet, transactionRid, ...args);
|
|
1821
1851
|
function createWithRid(rids) {
|
|
1822
1852
|
const withRid = {
|
|
1823
1853
|
type: "static",
|
|
@@ -1834,5 +1864,7 @@ exports.UnderlyingOsdkObject = UnderlyingOsdkObject;
|
|
|
1834
1864
|
exports.createAttachmentUpload = createAttachmentUpload;
|
|
1835
1865
|
exports.createClient = createClient;
|
|
1836
1866
|
exports.createClientFromContext = createClientFromContext;
|
|
1837
|
-
|
|
1838
|
-
|
|
1867
|
+
exports.createClientWithTransaction = createClientWithTransaction;
|
|
1868
|
+
exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
|
|
1869
|
+
//# sourceMappingURL=chunk-RLFLBDLT.cjs.map
|
|
1870
|
+
//# sourceMappingURL=chunk-RLFLBDLT.cjs.map
|