@osdk/client 2.4.0-beta.7 → 2.4.0-beta.9
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 +26 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/internal/conversions/modernToLegacyGroupByClause.js +2 -1
- package/build/browser/internal/conversions/modernToLegacyGroupByClause.js.map +1 -1
- package/build/browser/object/aggregate.test.js +85 -0
- package/build/browser/object/aggregate.test.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-OKQUXVEK.cjs → chunk-E5BQ7757.cjs} +31 -16
- package/build/cjs/chunk-E5BQ7757.cjs.map +1 -0
- package/build/cjs/{chunk-IZEGJVM7.cjs → chunk-YZHCDIYC.cjs} +50 -50
- package/build/cjs/{chunk-IZEGJVM7.cjs.map → chunk-YZHCDIYC.cjs.map} +1 -1
- package/build/cjs/index.cjs +6 -6
- 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 +15 -15
- package/build/esm/index.js.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyGroupByClause.js +2 -1
- package/build/esm/internal/conversions/modernToLegacyGroupByClause.js.map +1 -1
- package/build/esm/object/aggregate.test.js +85 -0
- package/build/esm/object/aggregate.test.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/build/cjs/chunk-OKQUXVEK.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE5BQ7757_cjs = require('./chunk-E5BQ7757.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');
|
|
@@ -429,19 +429,19 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
429
429
|
return Promise.all(promiseArray);
|
|
430
430
|
}
|
|
431
431
|
if (isAttachmentUpload(value)) {
|
|
432
|
-
const attachment = await
|
|
432
|
+
const attachment = await chunkE5BQ7757_cjs.Attachment_exports.upload(client, value.data, {
|
|
433
433
|
filename: value.name
|
|
434
434
|
});
|
|
435
435
|
return await toDataValue(attachment.rid, client, actionMetadata);
|
|
436
436
|
}
|
|
437
437
|
if (isAttachmentFile(value)) {
|
|
438
|
-
const attachment = await
|
|
438
|
+
const attachment = await chunkE5BQ7757_cjs.Attachment_exports.upload(client, value, {
|
|
439
439
|
filename: value.name
|
|
440
440
|
});
|
|
441
441
|
return await toDataValue(attachment.rid, client, actionMetadata);
|
|
442
442
|
}
|
|
443
443
|
if (isMediaUpload(value)) {
|
|
444
|
-
const mediaRef = await
|
|
444
|
+
const mediaRef = await chunkE5BQ7757_cjs.MediaReferenceProperty_exports.uploadMedia(client, await client.ontologyRid, actionMetadata.apiName, value.data, {
|
|
445
445
|
mediaItemPath: value.path,
|
|
446
446
|
preview: true
|
|
447
447
|
});
|
|
@@ -456,11 +456,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
456
456
|
if (isPoint(value)) {
|
|
457
457
|
return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client, actionMetadata);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
459
|
+
if (chunkE5BQ7757_cjs.isWireObjectSet(value)) {
|
|
460
460
|
return value;
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
462
|
+
if (chunkE5BQ7757_cjs.isObjectSet(value)) {
|
|
463
|
+
return chunkE5BQ7757_cjs.getWireObjectSet(value);
|
|
464
464
|
}
|
|
465
465
|
if (isMediaReference(value)) {
|
|
466
466
|
return value;
|
|
@@ -483,11 +483,11 @@ async function toDataValue(value, client, actionMetadata) {
|
|
|
483
483
|
|
|
484
484
|
// src/actions/applyAction.ts
|
|
485
485
|
async function applyAction(client, action, parameters, options = {}) {
|
|
486
|
-
const clientWithHeaders =
|
|
486
|
+
const clientWithHeaders = chunkE5BQ7757_cjs.addUserAgentAndRequestContextHeaders(chunkE5BQ7757_cjs.augmentRequestContext(client, (_) => ({
|
|
487
487
|
finalMethodCall: "applyAction"
|
|
488
488
|
})), action);
|
|
489
489
|
if (Array.isArray(parameters)) {
|
|
490
|
-
const response = await
|
|
490
|
+
const response = await chunkE5BQ7757_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
491
491
|
requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
|
|
492
492
|
options: {
|
|
493
493
|
returnEdits: options?.$returnEdits ? "ALL" : "NONE"
|
|
@@ -496,7 +496,7 @@ async function applyAction(client, action, parameters, options = {}) {
|
|
|
496
496
|
const edits = response.edits;
|
|
497
497
|
return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
|
|
498
498
|
} else {
|
|
499
|
-
const response = await
|
|
499
|
+
const response = await chunkE5BQ7757_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
|
|
500
500
|
parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
|
|
501
501
|
options: {
|
|
502
502
|
mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
|
|
@@ -701,7 +701,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
async getLatestValue() {
|
|
704
|
-
const latestPointPromise =
|
|
704
|
+
const latestPointPromise = chunkE5BQ7757_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
705
705
|
latestPointPromise.then(
|
|
706
706
|
(latestPoint) => this.lastFetchedValue = latestPoint,
|
|
707
707
|
// eslint-disable-next-line no-console
|
|
@@ -717,7 +717,7 @@ var GeotimeSeriesPropertyImpl = class {
|
|
|
717
717
|
return allPoints;
|
|
718
718
|
}
|
|
719
719
|
async *asyncIterValues(query) {
|
|
720
|
-
const streamPointsIterator = await
|
|
720
|
+
const streamPointsIterator = await chunkE5BQ7757_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
721
721
|
range: getTimeRange(query)
|
|
722
722
|
} : {});
|
|
723
723
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -744,13 +744,13 @@ var MediaReferencePropertyImpl = class {
|
|
|
744
744
|
this.#mediaReference = mediaReference;
|
|
745
745
|
}
|
|
746
746
|
async fetchContents() {
|
|
747
|
-
return
|
|
747
|
+
return chunkE5BQ7757_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
748
748
|
preview: true
|
|
749
749
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
async fetchMetadata() {
|
|
753
|
-
const r = await
|
|
753
|
+
const r = await chunkE5BQ7757_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
|
|
754
754
|
preview: true
|
|
755
755
|
// TODO: Can turn this back off when backend is no longer in beta.
|
|
756
756
|
});
|
|
@@ -774,10 +774,10 @@ var TimeSeriesPropertyImpl = class {
|
|
|
774
774
|
this.#triplet = [objectApiName, primaryKey, propertyName];
|
|
775
775
|
}
|
|
776
776
|
async getFirstPoint() {
|
|
777
|
-
return
|
|
777
|
+
return chunkE5BQ7757_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
778
778
|
}
|
|
779
779
|
async getLastPoint() {
|
|
780
|
-
return
|
|
780
|
+
return chunkE5BQ7757_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
|
|
781
781
|
}
|
|
782
782
|
async getAllPoints(query) {
|
|
783
783
|
const allPoints = [];
|
|
@@ -787,7 +787,7 @@ var TimeSeriesPropertyImpl = class {
|
|
|
787
787
|
return allPoints;
|
|
788
788
|
}
|
|
789
789
|
async *asyncIterPoints(query) {
|
|
790
|
-
const streamPointsIterator = await
|
|
790
|
+
const streamPointsIterator = await chunkE5BQ7757_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
|
|
791
791
|
range: getTimeRange(query)
|
|
792
792
|
} : {});
|
|
793
793
|
for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
|
|
@@ -815,7 +815,7 @@ var ClientRef = Symbol("ClientRef" );
|
|
|
815
815
|
|
|
816
816
|
// src/object/convertWireToOsdkObjects/createOsdkInterface.ts
|
|
817
817
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
818
|
-
const [objApiNamespace] =
|
|
818
|
+
const [objApiNamespace] = chunkE5BQ7757_cjs.extractNamespace(interfaceDef.apiName);
|
|
819
819
|
return Object.freeze(Object.defineProperties({}, {
|
|
820
820
|
// first to minimize hidden classes
|
|
821
821
|
[UnderlyingOsdkObject]: {
|
|
@@ -865,7 +865,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
865
865
|
},
|
|
866
866
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
867
867
|
const objDef = underlying[ObjectDefRef];
|
|
868
|
-
const [apiNamespace, apiName] =
|
|
868
|
+
const [apiNamespace, apiName] = chunkE5BQ7757_cjs.extractNamespace(p);
|
|
869
869
|
const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
|
|
870
870
|
return [apiNamespace === objApiNamespace ? apiName : p, {
|
|
871
871
|
enumerable: targetPropName in underlying,
|
|
@@ -941,8 +941,8 @@ function get$link(holder) {
|
|
|
941
941
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
942
942
|
}).pivotTo(linkName);
|
|
943
943
|
const value = !linkDef.multiplicity ? {
|
|
944
|
-
fetchOne: (options) =>
|
|
945
|
-
fetchOneWithErrors: (options) =>
|
|
944
|
+
fetchOne: (options) => chunkE5BQ7757_cjs.fetchSingle(client, objDef, options ?? {}, chunkE5BQ7757_cjs.getWireObjectSet(objectSet)),
|
|
945
|
+
fetchOneWithErrors: (options) => chunkE5BQ7757_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkE5BQ7757_cjs.getWireObjectSet(objectSet))
|
|
946
946
|
} : objectSet;
|
|
947
947
|
return [linkName, value];
|
|
948
948
|
})));
|
|
@@ -1035,9 +1035,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1035
1035
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1036
1036
|
case "attachment":
|
|
1037
1037
|
if (Array.isArray(rawValue)) {
|
|
1038
|
-
return rawValue.map((a) =>
|
|
1038
|
+
return rawValue.map((a) => chunkE5BQ7757_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1039
1039
|
} else {
|
|
1040
|
-
return
|
|
1040
|
+
return chunkE5BQ7757_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1041
1041
|
}
|
|
1042
1042
|
default:
|
|
1043
1043
|
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 +1053,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
if (propDef.type === "attachment") {
|
|
1055
1055
|
if (Array.isArray(rawValue)) {
|
|
1056
|
-
return rawValue.map((a) =>
|
|
1056
|
+
return rawValue.map((a) => chunkE5BQ7757_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1057
1057
|
}
|
|
1058
|
-
return
|
|
1058
|
+
return chunkE5BQ7757_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1059
1059
|
}
|
|
1060
1060
|
if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
|
|
1061
1061
|
return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
|
|
@@ -1274,11 +1274,11 @@ function deepFreeze(obj) {
|
|
|
1274
1274
|
return Object.freeze(obj);
|
|
1275
1275
|
}
|
|
1276
1276
|
async function loadActionMetadata(client, actionType) {
|
|
1277
|
-
const r = await
|
|
1277
|
+
const r = await chunkE5BQ7757_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
|
|
1278
1278
|
return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
|
|
1279
1279
|
}
|
|
1280
1280
|
async function loadFullObjectMetadata(client, objectType) {
|
|
1281
|
-
const full = await
|
|
1281
|
+
const full = await chunkE5BQ7757_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
|
|
1282
1282
|
preview: true
|
|
1283
1283
|
});
|
|
1284
1284
|
const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
|
|
@@ -1287,14 +1287,14 @@ async function loadFullObjectMetadata(client, objectType) {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}
|
|
1289
1289
|
async function loadInterfaceMetadata(client, objectType) {
|
|
1290
|
-
const r = await
|
|
1290
|
+
const r = await chunkE5BQ7757_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
|
|
1291
1291
|
preview: true
|
|
1292
1292
|
});
|
|
1293
1293
|
return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
|
|
1294
1294
|
}
|
|
1295
1295
|
async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
|
|
1296
1296
|
const [apiName, version] = queryTypeApiNameAndVersion.split(":");
|
|
1297
|
-
const r = await
|
|
1297
|
+
const r = await chunkE5BQ7757_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
|
|
1298
1298
|
version
|
|
1299
1299
|
});
|
|
1300
1300
|
return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
|
|
@@ -1351,11 +1351,11 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
1351
1351
|
};
|
|
1352
1352
|
|
|
1353
1353
|
// src/util/UserAgent.ts
|
|
1354
|
-
var USER_AGENT = `osdk-client/${"2.4.0-beta.
|
|
1355
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0-beta.
|
|
1354
|
+
var USER_AGENT = `osdk-client/${"2.4.0-beta.9"}`;
|
|
1355
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.4.0-beta.9"}`;
|
|
1356
1356
|
|
|
1357
1357
|
// src/createMinimalClient.ts
|
|
1358
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
1358
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkE5BQ7757_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
1359
1359
|
if (process.env.NODE_ENV !== "production") {
|
|
1360
1360
|
try {
|
|
1361
1361
|
new URL(baseUrl);
|
|
@@ -1420,13 +1420,13 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1420
1420
|
switch (desiredType.type) {
|
|
1421
1421
|
case "attachment": {
|
|
1422
1422
|
if (isAttachmentUpload(value)) {
|
|
1423
|
-
const attachment = await
|
|
1423
|
+
const attachment = await chunkE5BQ7757_cjs.Attachment_exports.upload(client, value.data, {
|
|
1424
1424
|
filename: value.name
|
|
1425
1425
|
});
|
|
1426
1426
|
return attachment.rid;
|
|
1427
1427
|
}
|
|
1428
1428
|
if (isAttachmentFile(value)) {
|
|
1429
|
-
const attachment = await
|
|
1429
|
+
const attachment = await chunkE5BQ7757_cjs.Attachment_exports.upload(client, value, {
|
|
1430
1430
|
filename: value.name
|
|
1431
1431
|
});
|
|
1432
1432
|
return attachment.rid;
|
|
@@ -1457,11 +1457,11 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1457
1457
|
break;
|
|
1458
1458
|
}
|
|
1459
1459
|
case "objectSet": {
|
|
1460
|
-
if (
|
|
1460
|
+
if (chunkE5BQ7757_cjs.isWireObjectSet(value)) {
|
|
1461
1461
|
return value;
|
|
1462
1462
|
}
|
|
1463
|
-
if (
|
|
1464
|
-
return
|
|
1463
|
+
if (chunkE5BQ7757_cjs.isObjectSet(value)) {
|
|
1464
|
+
return chunkE5BQ7757_cjs.getWireObjectSet(value);
|
|
1465
1465
|
}
|
|
1466
1466
|
break;
|
|
1467
1467
|
}
|
|
@@ -1503,7 +1503,7 @@ async function toDataValueQueries(value, client, desiredType) {
|
|
|
1503
1503
|
// src/queries/applyQuery.ts
|
|
1504
1504
|
async function applyQuery(client, query, params) {
|
|
1505
1505
|
const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
|
|
1506
|
-
const response = await
|
|
1506
|
+
const response = await chunkE5BQ7757_cjs.Query_exports.execute(chunkE5BQ7757_cjs.addUserAgentAndRequestContextHeaders(chunkE5BQ7757_cjs.augmentRequestContext(client, (_) => ({
|
|
1507
1507
|
finalMethodCall: "applyQuery"
|
|
1508
1508
|
})), query), await client.ontologyRid, query.apiName, {
|
|
1509
1509
|
parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
|
|
@@ -1550,7 +1550,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1550
1550
|
return responseValue;
|
|
1551
1551
|
}
|
|
1552
1552
|
case "attachment": {
|
|
1553
|
-
return
|
|
1553
|
+
return chunkE5BQ7757_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
|
|
1554
1554
|
}
|
|
1555
1555
|
case "object": {
|
|
1556
1556
|
const def = definitions.get(responseDataType.object);
|
|
@@ -1565,7 +1565,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1565
1565
|
throw new Error(`Missing definition for ${responseDataType.objectSet}`);
|
|
1566
1566
|
}
|
|
1567
1567
|
if (typeof responseValue === "string") {
|
|
1568
|
-
return
|
|
1568
|
+
return chunkE5BQ7757_cjs.createObjectSet(def, client, {
|
|
1569
1569
|
type: "intersect",
|
|
1570
1570
|
objectSets: [{
|
|
1571
1571
|
type: "base",
|
|
@@ -1576,7 +1576,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
|
|
|
1576
1576
|
}]
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
|
-
return
|
|
1579
|
+
return chunkE5BQ7757_cjs.createObjectSet(def, client, responseValue);
|
|
1580
1580
|
}
|
|
1581
1581
|
case "struct": {
|
|
1582
1582
|
for (const [key, subtype] of Object.entries(responseDataType.struct)) {
|
|
@@ -1748,7 +1748,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
|
|
|
1748
1748
|
ontologyRid
|
|
1749
1749
|
}, baseUrl, tokenProvider, {
|
|
1750
1750
|
...options,
|
|
1751
|
-
logger: options?.logger ?? new
|
|
1751
|
+
logger: options?.logger ?? new chunkE5BQ7757_cjs.MinimalLogger()
|
|
1752
1752
|
}, fetchFn, objectSetFactory);
|
|
1753
1753
|
return createClientFromContext(clientCtx);
|
|
1754
1754
|
}
|
|
@@ -1769,7 +1769,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1769
1769
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
1770
1770
|
return {
|
|
1771
1771
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
1772
|
-
return await
|
|
1772
|
+
return await chunkE5BQ7757_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
1775
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
|
|
@@ -1781,7 +1781,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1781
1781
|
objectType,
|
|
1782
1782
|
propertyType
|
|
1783
1783
|
} = args;
|
|
1784
|
-
return await
|
|
1784
|
+
return await chunkE5BQ7757_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
|
|
1785
1785
|
mediaItemPath: fileName,
|
|
1786
1786
|
preview: true
|
|
1787
1787
|
});
|
|
@@ -1790,7 +1790,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1790
1790
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
1791
1791
|
return {
|
|
1792
1792
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
1793
|
-
return await
|
|
1793
|
+
return await chunkE5BQ7757_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
@@ -1802,13 +1802,13 @@ function createClientFromContext(clientCtx) {
|
|
|
1802
1802
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
1803
1803
|
const symbolClientContext2 = "__osdkClientContext";
|
|
1804
1804
|
const client = Object.defineProperties(clientFn, {
|
|
1805
|
-
[
|
|
1805
|
+
[chunkE5BQ7757_cjs.symbolClientContext]: {
|
|
1806
1806
|
value: clientCtx
|
|
1807
1807
|
},
|
|
1808
1808
|
[symbolClientContext2]: {
|
|
1809
1809
|
value: clientCtx
|
|
1810
1810
|
},
|
|
1811
|
-
[
|
|
1811
|
+
[chunkE5BQ7757_cjs.additionalContext]: {
|
|
1812
1812
|
value: clientCtx
|
|
1813
1813
|
},
|
|
1814
1814
|
fetchMetadata: {
|
|
@@ -1817,7 +1817,7 @@ function createClientFromContext(clientCtx) {
|
|
|
1817
1817
|
});
|
|
1818
1818
|
return client;
|
|
1819
1819
|
}
|
|
1820
|
-
var createClient = createClientInternal.bind(void 0,
|
|
1820
|
+
var createClient = createClientInternal.bind(void 0, chunkE5BQ7757_cjs.createObjectSet);
|
|
1821
1821
|
function createWithRid(rids) {
|
|
1822
1822
|
const withRid = {
|
|
1823
1823
|
type: "static",
|
|
@@ -1834,5 +1834,5 @@ exports.UnderlyingOsdkObject = UnderlyingOsdkObject;
|
|
|
1834
1834
|
exports.createAttachmentUpload = createAttachmentUpload;
|
|
1835
1835
|
exports.createClient = createClient;
|
|
1836
1836
|
exports.createClientFromContext = createClientFromContext;
|
|
1837
|
-
//# sourceMappingURL=chunk-
|
|
1838
|
-
//# sourceMappingURL=chunk-
|
|
1837
|
+
//# sourceMappingURL=chunk-YZHCDIYC.cjs.map
|
|
1838
|
+
//# sourceMappingURL=chunk-YZHCDIYC.cjs.map
|