@osdk/client 2.3.2 → 2.3.4
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 +18 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.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/queries/applyQuery.js +1 -1
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-S62LFHT6.cjs → chunk-OQRJNAV4.cjs} +14 -19
- package/build/cjs/chunk-OQRJNAV4.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-OLYYIUHP.cjs → chunk-YBLJPEFE.cjs} +51 -51
- package/build/cjs/chunk-YBLJPEFE.cjs.map +1 -0
- package/build/cjs/delay-QK4T7RVX.cjs +74 -0
- package/build/cjs/delay-QK4T7RVX.cjs.map +1 -0
- package/build/cjs/index.cjs +7 -6
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/public/internal.cjs +9 -8
- package/build/cjs/public/internal.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +19 -72
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.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/queries/applyQuery.js +1 -1
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/Client.d.ts +1 -1
- package/build/types/observable/internal/ActionApplication.d.ts.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-OLYYIUHP.cjs.map +0 -1
- package/build/cjs/chunk-S62LFHT6.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOQRJNAV4_cjs = require('./chunk-OQRJNAV4.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');
|
|
@@ -423,13 +423,13 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
423
423
|
return Promise.all(promiseArray);
|
|
424
424
|
}
|
|
425
425
|
if (isAttachmentUpload(value)) {
|
|
426
|
-
const attachment = await
|
|
426
|
+
const attachment = await chunkOQRJNAV4_cjs.Attachment_exports.upload(client, value.data, {
|
|
427
427
|
filename: value.name
|
|
428
428
|
});
|
|
429
429
|
return await toDataValue(attachment.rid, client);
|
|
430
430
|
}
|
|
431
431
|
if (isAttachmentFile(value)) {
|
|
432
|
-
const attachment = await
|
|
432
|
+
const attachment = await chunkOQRJNAV4_cjs.Attachment_exports.upload(client, value, {
|
|
433
433
|
filename: value.name
|
|
434
434
|
});
|
|
435
435
|
return await toDataValue(attachment.rid, client);
|
|
@@ -443,11 +443,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
443
443
|
if (isPoint(value)) {
|
|
444
444
|
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
|
|
445
445
|
}
|
|
446
|
-
if (
|
|
446
|
+
if (chunkOQRJNAV4_cjs.isWireObjectSet(value)) {
|
|
447
447
|
return value;
|
|
448
448
|
}
|
|
449
|
-
if (
|
|
450
|
-
return
|
|
449
|
+
if (chunkOQRJNAV4_cjs.isObjectSet(value)) {
|
|
450
|
+
return chunkOQRJNAV4_cjs.getWireObjectSet(value);
|
|
451
451
|
}
|
|
452
452
|
if (isMediaReference(value)) {
|
|
453
453
|
return value;
|
|
@@ -470,11 +470,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
470
470
|
|
|
471
471
|
// src/actions/applyAction.ts
|
|
472
472
|
async function applyAction(client, action, parameters, options = {}) {
|
|
473
|
-
const clientWithHeaders =
|
|
473
|
+
const clientWithHeaders = chunkOQRJNAV4_cjs.addUserAgentAndRequestContextHeaders(chunkOQRJNAV4_cjs.augmentRequestContext(client, (_) => ({
|
|
474
474
|
finalMethodCall: "applyAction"
|
|
475
475
|
})), action);
|
|
476
476
|
if (Array.isArray(parameters)) {
|
|
477
|
-
const response = await
|
|
477
|
+
const response = await chunkOQRJNAV4_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
478
478
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
479
479
|
options: {
|
|
480
480
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -483,7 +483,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
483
483
|
const edits = response.edits;
|
|
484
484
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
485
485
|
} else {
|
|
486
|
-
const response = await
|
|
486
|
+
const response = await chunkOQRJNAV4_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
487
487
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
488
488
|
options: {
|
|
489
489
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -688,7 +688,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
async getLatestValue() {
|
|
691
|
-
const latestPointPromise =
|
|
691
|
+
const latestPointPromise = chunkOQRJNAV4_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
692
692
|
latestPointPromise.then(
|
|
693
693
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
694
694
|
// eslint-disable-next-line no-console
|
|
@@ -704,7 +704,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
704
704
|
return allPoints;
|
|
705
705
|
}
|
|
706
706
|
async *asyncIterValues(query) {
|
|
707
|
-
const streamPointsIterator = await
|
|
707
|
+
const streamPointsIterator = await chunkOQRJNAV4_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
708
708
|
range: getTimeRange(query)
|
|
709
709
|
} : {});
|
|
710
710
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -731,13 +731,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
731
731
|
this.#mediaReference = mediaReference;
|
|
732
732
|
}
|
|
733
733
|
async fetchContents() {
|
|
734
|
-
return
|
|
734
|
+
return chunkOQRJNAV4_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
735
735
|
preview: true
|
|
736
736
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
async fetchMetadata() {
|
|
740
|
-
const r = await
|
|
740
|
+
const r = await chunkOQRJNAV4_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
741
741
|
preview: true
|
|
742
742
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
743
743
|
});
|
|
@@ -761,10 +761,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
761
761
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
762
762
|
}
|
|
763
763
|
async getFirstPoint() {
|
|
764
|
-
return
|
|
764
|
+
return chunkOQRJNAV4_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
765
765
|
}
|
|
766
766
|
async getLastPoint() {
|
|
767
|
-
return
|
|
767
|
+
return chunkOQRJNAV4_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
768
768
|
}
|
|
769
769
|
async getAllPoints(query) {
|
|
770
770
|
const allPoints = [];
|
|
@@ -774,7 +774,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
774
774
|
return allPoints;
|
|
775
775
|
}
|
|
776
776
|
async *asyncIterPoints(query) {
|
|
777
|
-
const streamPointsIterator = await
|
|
777
|
+
const streamPointsIterator = await chunkOQRJNAV4_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
778
778
|
range: getTimeRange(query)
|
|
779
779
|
} : {});
|
|
780
780
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -802,7 +802,7 @@ var ClientRef = Symbol("ClientRef" );
|
|
|
802
802
|
|
|
803
803
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
804
804
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
805
|
-
const [objApiNamespace] =
|
|
805
|
+
const [objApiNamespace] = chunkOQRJNAV4_cjs.extractNamespace(interfaceDef.apiName);
|
|
806
806
|
return Object.freeze(Object.defineProperties({}, {
|
|
807
807
|
// first to minimize hidden classes
|
|
808
808
|
[UnderlyingOsdkObject]: {
|
|
@@ -845,7 +845,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
845
845
|
},
|
|
846
846
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
847
847
|
const objDef = underlying[ObjectDefRef];
|
|
848
|
-
const [apiNamespace, apiName] =
|
|
848
|
+
const [apiNamespace, apiName] = chunkOQRJNAV4_cjs.extractNamespace(p);
|
|
849
849
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
850
850
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
851
851
|
enumerable: targetPropName in underlying,
|
|
@@ -921,8 +921,8 @@ function get$link(holder) {
|
|
|
921
921
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
922
922
|
}).pivotTo(linkName);
|
|
923
923
|
const value = !linkDef.multiplicity ? {
|
|
924
|
-
fetchOne: (options) =>
|
|
925
|
-
fetchOneWithErrors: (options) =>
|
|
924
|
+
fetchOne: (options) => chunkOQRJNAV4_cjs.fetchSingle(client, objDef, options ?? {}, chunkOQRJNAV4_cjs.getWireObjectSet(objectSet)),
|
|
925
|
+
fetchOneWithErrors: (options) => chunkOQRJNAV4_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkOQRJNAV4_cjs.getWireObjectSet(objectSet))
|
|
926
926
|
} : objectSet;
|
|
927
927
|
return [linkName, value];
|
|
928
928
|
})));
|
|
@@ -1006,9 +1006,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1006
1006
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1007
1007
|
case "attachment":
|
|
1008
1008
|
if (Array.isArray(rawValue)) {
|
|
1009
|
-
return rawValue.map((a) =>
|
|
1009
|
+
return rawValue.map((a) => chunkOQRJNAV4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1010
1010
|
} else {
|
|
1011
|
-
return
|
|
1011
|
+
return chunkOQRJNAV4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1012
1012
|
}
|
|
1013
1013
|
default:
|
|
1014
1014
|
process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
|
|
@@ -1024,9 +1024,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
if (propDef.type === "attachment") {
|
|
1026
1026
|
if (Array.isArray(rawValue)) {
|
|
1027
|
-
return rawValue.map((a) =>
|
|
1027
|
+
return rawValue.map((a) => chunkOQRJNAV4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1028
1028
|
}
|
|
1029
|
-
return
|
|
1029
|
+
return chunkOQRJNAV4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1030
1030
|
}
|
|
1031
1031
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1032
1032
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1234,11 +1234,11 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
|
|
|
1234
1234
|
return ret;
|
|
1235
1235
|
}
|
|
1236
1236
|
async function loadActionMetadata(client, actionType) {
|
|
1237
|
-
const r = await
|
|
1237
|
+
const r = await chunkOQRJNAV4_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
|
|
1238
1238
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1239
1239
|
}
|
|
1240
1240
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1241
|
-
const full = await
|
|
1241
|
+
const full = await chunkOQRJNAV4_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1242
1242
|
preview: true
|
|
1243
1243
|
});
|
|
1244
1244
|
const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
|
|
@@ -1247,14 +1247,14 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1247
1247
|
};
|
|
1248
1248
|
}
|
|
1249
1249
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1250
|
-
const r = await
|
|
1250
|
+
const r = await chunkOQRJNAV4_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1251
1251
|
preview: true
|
|
1252
1252
|
});
|
|
1253
1253
|
return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
|
|
1254
1254
|
}
|
|
1255
1255
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1256
1256
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1257
|
-
const r = await
|
|
1257
|
+
const r = await chunkOQRJNAV4_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1258
1258
|
version
|
|
1259
1259
|
});
|
|
1260
1260
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1311,11 +1311,11 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
1313
|
// src/util/UserAgent.ts
|
|
1314
|
-
var USER_AGENT = `osdk-client/${"2.3.
|
|
1315
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.3.
|
|
1314
|
+
var USER_AGENT = `osdk-client/${"2.3.4"}`;
|
|
1315
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.3.4"}`;
|
|
1316
1316
|
|
|
1317
1317
|
// src/createMinimalClient.ts
|
|
1318
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
1318
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkOQRJNAV4_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1319
1319
|
if (process.env.NODE_ENV !== "production") {
|
|
1320
1320
|
try {
|
|
1321
1321
|
new URL(baseUrl);
|
|
@@ -1381,13 +1381,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1381
1381
|
switch (desiredType.type) {
|
|
1382
1382
|
case "attachment": {
|
|
1383
1383
|
if (isAttachmentUpload(value)) {
|
|
1384
|
-
const attachment = await
|
|
1384
|
+
const attachment = await chunkOQRJNAV4_cjs.Attachment_exports.upload(client, value.data, {
|
|
1385
1385
|
filename: value.name
|
|
1386
1386
|
});
|
|
1387
1387
|
return attachment.rid;
|
|
1388
1388
|
}
|
|
1389
1389
|
if (isAttachmentFile(value)) {
|
|
1390
|
-
const attachment = await
|
|
1390
|
+
const attachment = await chunkOQRJNAV4_cjs.Attachment_exports.upload(client, value, {
|
|
1391
1391
|
filename: value.name
|
|
1392
1392
|
});
|
|
1393
1393
|
return attachment.rid;
|
|
@@ -1418,11 +1418,11 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1418
1418
|
break;
|
|
1419
1419
|
}
|
|
1420
1420
|
case "objectSet": {
|
|
1421
|
-
if (
|
|
1421
|
+
if (chunkOQRJNAV4_cjs.isWireObjectSet(value)) {
|
|
1422
1422
|
return value;
|
|
1423
1423
|
}
|
|
1424
|
-
if (
|
|
1425
|
-
return
|
|
1424
|
+
if (chunkOQRJNAV4_cjs.isObjectSet(value)) {
|
|
1425
|
+
return chunkOQRJNAV4_cjs.getWireObjectSet(value);
|
|
1426
1426
|
}
|
|
1427
1427
|
break;
|
|
1428
1428
|
}
|
|
@@ -1464,12 +1464,12 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1464
1464
|
// src/queries/applyQuery.ts
|
|
1465
1465
|
async function applyQuery(client, query, params) {
|
|
1466
1466
|
const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
1467
|
-
const response = await
|
|
1467
|
+
const response = await chunkOQRJNAV4_cjs.Query_exports.execute(chunkOQRJNAV4_cjs.addUserAgentAndRequestContextHeaders(chunkOQRJNAV4_cjs.augmentRequestContext(client, (_) => ({
|
|
1468
1468
|
finalMethodCall: "applyQuery"
|
|
1469
1469
|
})), query), await client.ontologyRid, query.apiName, {
|
|
1470
1470
|
parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
|
|
1471
1471
|
}, {
|
|
1472
|
-
version:
|
|
1472
|
+
version: query.isFixedVersion ? query.version : void 0
|
|
1473
1473
|
});
|
|
1474
1474
|
const objectOutputDefs = await getRequiredDefinitions(qd.output, client);
|
|
1475
1475
|
const remappedResponse = await remapQueryResponse(client, qd.output, response.value, objectOutputDefs);
|
|
@@ -1511,7 +1511,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1511
1511
|
return responseValue;
|
|
1512
1512
|
}
|
|
1513
1513
|
case "attachment": {
|
|
1514
|
-
return
|
|
1514
|
+
return chunkOQRJNAV4_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
1515
1515
|
}
|
|
1516
1516
|
case "object": {
|
|
1517
1517
|
const def = definitions.get(responseDataType.object);
|
|
@@ -1526,7 +1526,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1526
1526
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
1527
1527
|
}
|
|
1528
1528
|
if (typeof responseValue === "string") {
|
|
1529
|
-
return
|
|
1529
|
+
return chunkOQRJNAV4_cjs.createObjectSet(def, client, {
|
|
1530
1530
|
type: "intersect",
|
|
1531
1531
|
objectSets: [{
|
|
1532
1532
|
type: "base",
|
|
@@ -1537,7 +1537,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1537
1537
|
}]
|
|
1538
1538
|
});
|
|
1539
1539
|
}
|
|
1540
|
-
return
|
|
1540
|
+
return chunkOQRJNAV4_cjs.createObjectSet(def, client, responseValue);
|
|
1541
1541
|
}
|
|
1542
1542
|
case "struct": {
|
|
1543
1543
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -1709,7 +1709,7 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
|
|
|
1709
1709
|
ontologyRid
|
|
1710
1710
|
}, baseUrl, tokenProvider, {
|
|
1711
1711
|
...options,
|
|
1712
|
-
logger: options?.logger ?? new
|
|
1712
|
+
logger: options?.logger ?? new chunkOQRJNAV4_cjs.MinimalLogger(),
|
|
1713
1713
|
transactionRid
|
|
1714
1714
|
}, fetchFn, objectSetFactory);
|
|
1715
1715
|
return createClientFromContext(clientCtx);
|
|
@@ -1731,7 +1731,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1731
1731
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
1732
1732
|
return {
|
|
1733
1733
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
1734
|
-
return await
|
|
1734
|
+
return await chunkOQRJNAV4_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
1735
1735
|
}
|
|
1736
1736
|
};
|
|
1737
1737
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -1743,7 +1743,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1743
1743
|
objectType,
|
|
1744
1744
|
propertyType
|
|
1745
1745
|
} = args;
|
|
1746
|
-
return await
|
|
1746
|
+
return await chunkOQRJNAV4_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
1747
1747
|
mediaItemPath: fileName,
|
|
1748
1748
|
preview: true
|
|
1749
1749
|
});
|
|
@@ -1752,7 +1752,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1752
1752
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
1753
1753
|
return {
|
|
1754
1754
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
1755
|
-
return await
|
|
1755
|
+
return await chunkOQRJNAV4_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
1756
1756
|
}
|
|
1757
1757
|
};
|
|
1758
1758
|
}
|
|
@@ -1764,13 +1764,13 @@ function createClientFromContext(clientCtx) {
|
|
|
1764
1764
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
1765
1765
|
const symbolClientContext2 = "__osdkClientContext";
|
|
1766
1766
|
const client = Object.defineProperties(clientFn, {
|
|
1767
|
-
[
|
|
1767
|
+
[chunkOQRJNAV4_cjs.symbolClientContext]: {
|
|
1768
1768
|
value: clientCtx
|
|
1769
1769
|
},
|
|
1770
1770
|
[symbolClientContext2]: {
|
|
1771
1771
|
value: clientCtx
|
|
1772
1772
|
},
|
|
1773
|
-
[
|
|
1773
|
+
[chunkOQRJNAV4_cjs.additionalContext]: {
|
|
1774
1774
|
value: clientCtx
|
|
1775
1775
|
},
|
|
1776
1776
|
fetchMetadata: {
|
|
@@ -1779,8 +1779,8 @@ function createClientFromContext(clientCtx) {
|
|
|
1779
1779
|
});
|
|
1780
1780
|
return client;
|
|
1781
1781
|
}
|
|
1782
|
-
var createClient = createClientInternal.bind(void 0,
|
|
1783
|
-
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(
|
|
1782
|
+
var createClient = createClientInternal.bind(void 0, chunkOQRJNAV4_cjs.createObjectSet, void 0);
|
|
1783
|
+
var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkOQRJNAV4_cjs.createObjectSet, transactionRid, ...args);
|
|
1784
1784
|
function createWithRid(rids) {
|
|
1785
1785
|
const withRid = {
|
|
1786
1786
|
type: "static",
|
|
@@ -1798,5 +1798,5 @@ exports.createAttachmentUpload = createAttachmentUpload;
|
|
|
1798
1798
|
exports.createClient = createClient;
|
|
1799
1799
|
exports.createClientFromContext = createClientFromContext;
|
|
1800
1800
|
exports.createClientWithTransaction = createClientWithTransaction;
|
|
1801
|
-
//# sourceMappingURL=chunk-
|
|
1802
|
-
//# sourceMappingURL=chunk-
|
|
1801
|
+
//# sourceMappingURL=chunk-YBLJPEFE.cjs.map
|
|
1802
|
+
//# sourceMappingURL=chunk-YBLJPEFE.cjs.map
|