@osdk/client 2.5.4 → 2.5.6

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZZKV2GFQ_cjs = require('./chunk-ZZKV2GFQ.cjs');
3
+ var chunk5DBB4EBV_cjs = require('./chunk-5DBB4EBV.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');
@@ -440,13 +440,13 @@ async function toDataValue(value, client, actionMetadata) {
440
440
  return Promise.all(promiseArray);
441
441
  }
442
442
  if (isAttachmentUpload(value)) {
443
- const attachment = await chunkZZKV2GFQ_cjs.Attachment_exports.upload(client, value.data, {
443
+ const attachment = await chunk5DBB4EBV_cjs.Attachment_exports.upload(client, value.data, {
444
444
  filename: value.name
445
445
  });
446
446
  return await toDataValue(attachment.rid, client);
447
447
  }
448
448
  if (isAttachmentFile(value)) {
449
- const attachment = await chunkZZKV2GFQ_cjs.Attachment_exports.upload(client, value, {
449
+ const attachment = await chunk5DBB4EBV_cjs.Attachment_exports.upload(client, value, {
450
450
  filename: value.name
451
451
  });
452
452
  return await toDataValue(attachment.rid, client);
@@ -460,11 +460,11 @@ async function toDataValue(value, client, actionMetadata) {
460
460
  if (isPoint(value)) {
461
461
  return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
462
462
  }
463
- if (chunkZZKV2GFQ_cjs.isWireObjectSet(value)) {
463
+ if (chunk5DBB4EBV_cjs.isWireObjectSet(value)) {
464
464
  return value;
465
465
  }
466
- if (chunkZZKV2GFQ_cjs.isObjectSet(value)) {
467
- return chunkZZKV2GFQ_cjs.getWireObjectSet(value);
466
+ if (chunk5DBB4EBV_cjs.isObjectSet(value)) {
467
+ return chunk5DBB4EBV_cjs.getWireObjectSet(value);
468
468
  }
469
469
  if (isMediaReference(value)) {
470
470
  return value;
@@ -487,11 +487,11 @@ async function toDataValue(value, client, actionMetadata) {
487
487
 
488
488
  // src/actions/applyAction.ts
489
489
  async function applyAction(client, action, parameters, options = {}) {
490
- const clientWithHeaders = chunkZZKV2GFQ_cjs.addUserAgentAndRequestContextHeaders(chunkZZKV2GFQ_cjs.augmentRequestContext(client, (_) => ({
490
+ const clientWithHeaders = chunk5DBB4EBV_cjs.addUserAgentAndRequestContextHeaders(chunk5DBB4EBV_cjs.augmentRequestContext(client, (_) => ({
491
491
  finalMethodCall: "applyAction"
492
492
  })), action);
493
493
  if (Array.isArray(parameters)) {
494
- const response = await chunkZZKV2GFQ_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
494
+ const response = await chunk5DBB4EBV_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
495
495
  requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
496
496
  options: {
497
497
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
@@ -500,7 +500,7 @@ async function applyAction(client, action, parameters, options = {}) {
500
500
  const edits = response.edits;
501
501
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
502
502
  } else {
503
- const response = await chunkZZKV2GFQ_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
503
+ const response = await chunk5DBB4EBV_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
504
504
  parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
505
505
  options: {
506
506
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -705,7 +705,7 @@ var GeotimeSeriesPropertyImpl = class {
705
705
  }
706
706
  }
707
707
  async getLatestValue() {
708
- const latestPointPromise = chunkZZKV2GFQ_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
708
+ const latestPointPromise = chunk5DBB4EBV_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
709
709
  latestPointPromise.then(
710
710
  (latestPoint) => this.lastFetchedValue = latestPoint,
711
711
  // eslint-disable-next-line no-console
@@ -721,7 +721,7 @@ var GeotimeSeriesPropertyImpl = class {
721
721
  return allPoints;
722
722
  }
723
723
  async *asyncIterValues(query) {
724
- const streamPointsIterator = await chunkZZKV2GFQ_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
724
+ const streamPointsIterator = await chunk5DBB4EBV_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
725
725
  range: getTimeRange(query)
726
726
  } : {});
727
727
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -748,13 +748,13 @@ var MediaReferencePropertyImpl = class {
748
748
  this.#mediaReference = mediaReference;
749
749
  }
750
750
  async fetchContents() {
751
- return chunkZZKV2GFQ_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
751
+ return chunk5DBB4EBV_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
752
752
  preview: true
753
753
  // TODO: Can turn this back off when backend is no longer in beta.
754
754
  });
755
755
  }
756
756
  async fetchMetadata() {
757
- const r = await chunkZZKV2GFQ_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
757
+ const r = await chunk5DBB4EBV_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
758
758
  preview: true
759
759
  // TODO: Can turn this back off when backend is no longer in beta.
760
760
  });
@@ -778,10 +778,10 @@ var TimeSeriesPropertyImpl = class {
778
778
  this.#triplet = [objectApiName, primaryKey, propertyName];
779
779
  }
780
780
  async getFirstPoint() {
781
- return chunkZZKV2GFQ_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
781
+ return chunk5DBB4EBV_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
782
782
  }
783
783
  async getLastPoint() {
784
- return chunkZZKV2GFQ_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
784
+ return chunk5DBB4EBV_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
785
785
  }
786
786
  async getAllPoints(query) {
787
787
  const allPoints = [];
@@ -791,7 +791,7 @@ var TimeSeriesPropertyImpl = class {
791
791
  return allPoints;
792
792
  }
793
793
  async *asyncIterPoints(query) {
794
- const streamPointsIterator = await chunkZZKV2GFQ_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
794
+ const streamPointsIterator = await chunk5DBB4EBV_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
795
795
  range: getTimeRange(query)
796
796
  } : {});
797
797
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -820,8 +820,8 @@ function get$link(holder) {
820
820
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
821
821
  }).pivotTo(linkName);
822
822
  const value = !linkDef.multiplicity ? {
823
- fetchOne: (options) => chunkZZKV2GFQ_cjs.fetchSingle(client, objDef, options ?? {}, chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet)),
824
- fetchOneWithErrors: (options) => chunkZZKV2GFQ_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet))
823
+ fetchOne: (options) => chunk5DBB4EBV_cjs.fetchSingle(client, objDef, options ?? {}, chunk5DBB4EBV_cjs.getWireObjectSet(objectSet)),
824
+ fetchOneWithErrors: (options) => chunk5DBB4EBV_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk5DBB4EBV_cjs.getWireObjectSet(objectSet))
825
825
  } : objectSet;
826
826
  return [linkName, value];
827
827
  })));
@@ -837,8 +837,8 @@ function get$linkForInterface(holder) {
837
837
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
838
838
  })).pivotTo(linkName);
839
839
  const value = !linkDef.multiplicity ? {
840
- fetchOne: (options) => chunkZZKV2GFQ_cjs.fetchSingle(client, objDef, options ?? {}, chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet)),
841
- fetchOneWithErrors: (options) => chunkZZKV2GFQ_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet))
840
+ fetchOne: (options) => chunk5DBB4EBV_cjs.fetchSingle(client, objDef, options ?? {}, chunk5DBB4EBV_cjs.getWireObjectSet(objectSet)),
841
+ fetchOneWithErrors: (options) => chunk5DBB4EBV_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunk5DBB4EBV_cjs.getWireObjectSet(objectSet))
842
842
  } : objectSet;
843
843
  return [linkName, value];
844
844
  })));
@@ -846,7 +846,7 @@ function get$linkForInterface(holder) {
846
846
 
847
847
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
848
848
  function createOsdkInterface(underlying, interfaceDef) {
849
- const [objApiNamespace] = chunkZZKV2GFQ_cjs.extractNamespace(interfaceDef.apiName);
849
+ const [objApiNamespace] = chunk5DBB4EBV_cjs.extractNamespace(interfaceDef.apiName);
850
850
  return Object.freeze(Object.defineProperties({}, {
851
851
  // first to minimize hidden classes
852
852
  [UnderlyingOsdkObject]: {
@@ -901,7 +901,7 @@ function createOsdkInterface(underlying, interfaceDef) {
901
901
  },
902
902
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
903
903
  const objDef = underlying[ObjectDefRef];
904
- const [apiNamespace, apiName] = chunkZZKV2GFQ_cjs.extractNamespace(p);
904
+ const [apiNamespace, apiName] = chunk5DBB4EBV_cjs.extractNamespace(p);
905
905
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
906
906
  return [apiNamespace === objApiNamespace ? apiName : p, {
907
907
  enumerable: targetPropName in underlying,
@@ -1053,9 +1053,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
1053
1053
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1054
1054
  case "attachment":
1055
1055
  if (Array.isArray(rawValue)) {
1056
- return rawValue.map((a) => chunkZZKV2GFQ_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1056
+ return rawValue.map((a) => chunk5DBB4EBV_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1057
1057
  } else {
1058
- return chunkZZKV2GFQ_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1058
+ return chunk5DBB4EBV_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1059
1059
  }
1060
1060
  default:
1061
1061
  process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
@@ -1071,9 +1071,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1071
1071
  }
1072
1072
  if (propDef.type === "attachment") {
1073
1073
  if (Array.isArray(rawValue)) {
1074
- return rawValue.map((a) => chunkZZKV2GFQ_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1074
+ return rawValue.map((a) => chunk5DBB4EBV_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1075
1075
  }
1076
- return chunkZZKV2GFQ_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1076
+ return chunk5DBB4EBV_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1077
1077
  }
1078
1078
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1079
1079
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1297,11 +1297,11 @@ function deepFreeze(obj) {
1297
1297
  return Object.freeze(obj);
1298
1298
  }
1299
1299
  async function loadActionMetadata(client, actionType) {
1300
- const r = await chunkZZKV2GFQ_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1300
+ const r = await chunk5DBB4EBV_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1301
1301
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
1302
1302
  }
1303
1303
  async function loadFullObjectMetadata(client, objectType) {
1304
- const full = await chunkZZKV2GFQ_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1304
+ const full = await chunk5DBB4EBV_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1305
1305
  preview: true
1306
1306
  });
1307
1307
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
@@ -1310,14 +1310,14 @@ async function loadFullObjectMetadata(client, objectType) {
1310
1310
  };
1311
1311
  }
1312
1312
  async function loadInterfaceMetadata(client, objectType) {
1313
- const r = await chunkZZKV2GFQ_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1313
+ const r = await chunk5DBB4EBV_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1314
1314
  preview: true
1315
1315
  });
1316
1316
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
1317
1317
  }
1318
1318
  async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
1319
1319
  const [apiName, version] = queryTypeApiNameAndVersion.split(":");
1320
- const r = await chunkZZKV2GFQ_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1320
+ const r = await chunk5DBB4EBV_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1321
1321
  version
1322
1322
  });
1323
1323
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
@@ -1374,11 +1374,11 @@ var createStandardOntologyProviderFactory = (client) => {
1374
1374
  };
1375
1375
 
1376
1376
  // src/util/UserAgent.ts
1377
- var USER_AGENT = `osdk-client/${"2.5.4"}`;
1378
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.4"}`;
1377
+ var USER_AGENT = `osdk-client/${"2.5.6"}`;
1378
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.6"}`;
1379
1379
 
1380
1380
  // src/createMinimalClient.ts
1381
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkZZKV2GFQ_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1381
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunk5DBB4EBV_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1382
1382
  if (process.env.NODE_ENV !== "production") {
1383
1383
  try {
1384
1384
  new URL(baseUrl);
@@ -1444,13 +1444,13 @@ async function toDataValueQueries(value, client, desiredType) {
1444
1444
  switch (desiredType.type) {
1445
1445
  case "attachment": {
1446
1446
  if (isAttachmentUpload(value)) {
1447
- const attachment = await chunkZZKV2GFQ_cjs.Attachment_exports.upload(client, value.data, {
1447
+ const attachment = await chunk5DBB4EBV_cjs.Attachment_exports.upload(client, value.data, {
1448
1448
  filename: value.name
1449
1449
  });
1450
1450
  return attachment.rid;
1451
1451
  }
1452
1452
  if (isAttachmentFile(value)) {
1453
- const attachment = await chunkZZKV2GFQ_cjs.Attachment_exports.upload(client, value, {
1453
+ const attachment = await chunk5DBB4EBV_cjs.Attachment_exports.upload(client, value, {
1454
1454
  filename: value.name
1455
1455
  });
1456
1456
  return attachment.rid;
@@ -1490,11 +1490,11 @@ async function toDataValueQueries(value, client, desiredType) {
1490
1490
  }
1491
1491
  case "objectSet":
1492
1492
  case "interfaceObjectSet": {
1493
- if (chunkZZKV2GFQ_cjs.isWireObjectSet(value)) {
1493
+ if (chunk5DBB4EBV_cjs.isWireObjectSet(value)) {
1494
1494
  return value;
1495
1495
  }
1496
- if (chunkZZKV2GFQ_cjs.isObjectSet(value)) {
1497
- return chunkZZKV2GFQ_cjs.getWireObjectSet(value);
1496
+ if (chunk5DBB4EBV_cjs.isObjectSet(value)) {
1497
+ return chunk5DBB4EBV_cjs.getWireObjectSet(value);
1498
1498
  }
1499
1499
  break;
1500
1500
  }
@@ -1536,7 +1536,7 @@ async function toDataValueQueries(value, client, desiredType) {
1536
1536
  // src/queries/applyQuery.ts
1537
1537
  async function applyQuery(client, query, params) {
1538
1538
  const qd = await client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
1539
- const response = await chunkZZKV2GFQ_cjs.Query_exports.execute(chunkZZKV2GFQ_cjs.addUserAgentAndRequestContextHeaders(chunkZZKV2GFQ_cjs.augmentRequestContext(client, (_) => ({
1539
+ const response = await chunk5DBB4EBV_cjs.Query_exports.execute(chunk5DBB4EBV_cjs.addUserAgentAndRequestContextHeaders(chunk5DBB4EBV_cjs.augmentRequestContext(client, (_) => ({
1540
1540
  finalMethodCall: "applyQuery"
1541
1541
  })), query), await client.ontologyRid, query.apiName, {
1542
1542
  parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
@@ -1583,7 +1583,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1583
1583
  return responseValue;
1584
1584
  }
1585
1585
  case "attachment": {
1586
- return chunkZZKV2GFQ_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1586
+ return chunk5DBB4EBV_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1587
1587
  }
1588
1588
  case "object": {
1589
1589
  const def = definitions.get(responseDataType.object);
@@ -1605,7 +1605,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1605
1605
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
1606
1606
  }
1607
1607
  if (typeof responseValue === "string") {
1608
- return chunkZZKV2GFQ_cjs.createObjectSet(def, client, {
1608
+ return chunk5DBB4EBV_cjs.createObjectSet(def, client, {
1609
1609
  type: "intersect",
1610
1610
  objectSets: [{
1611
1611
  type: "base",
@@ -1616,7 +1616,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1616
1616
  }]
1617
1617
  });
1618
1618
  }
1619
- return chunkZZKV2GFQ_cjs.createObjectSet(def, client, responseValue);
1619
+ return chunk5DBB4EBV_cjs.createObjectSet(def, client, responseValue);
1620
1620
  }
1621
1621
  case "struct": {
1622
1622
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -1802,7 +1802,7 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
1802
1802
  ontologyRid
1803
1803
  }, baseUrl, tokenProvider, {
1804
1804
  ...options,
1805
- logger: options?.logger ?? new chunkZZKV2GFQ_cjs.MinimalLogger(),
1805
+ logger: options?.logger ?? new chunk5DBB4EBV_cjs.MinimalLogger(),
1806
1806
  transactionRid
1807
1807
  }, fetchFn, objectSetFactory);
1808
1808
  return createClientFromContext(clientCtx);
@@ -1824,7 +1824,7 @@ function createClientFromContext(clientCtx) {
1824
1824
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
1825
1825
  return {
1826
1826
  fetchOneByRid: async (objectType, rid, options) => {
1827
- return await chunkZZKV2GFQ_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
1827
+ return await chunk5DBB4EBV_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
1828
1828
  }
1829
1829
  };
1830
1830
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -1836,7 +1836,7 @@ function createClientFromContext(clientCtx) {
1836
1836
  objectType,
1837
1837
  propertyType
1838
1838
  } = args;
1839
- return await chunkZZKV2GFQ_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
1839
+ return await chunk5DBB4EBV_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
1840
1840
  mediaItemPath: fileName,
1841
1841
  preview: true
1842
1842
  });
@@ -1845,10 +1845,10 @@ function createClientFromContext(clientCtx) {
1845
1845
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
1846
1846
  return {
1847
1847
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
1848
- return await chunkZZKV2GFQ_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
1848
+ return await chunk5DBB4EBV_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
1849
1849
  },
1850
1850
  fetchPageByRidNoType: async (rids, options) => {
1851
- return await chunkZZKV2GFQ_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
1851
+ return await chunk5DBB4EBV_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
1852
1852
  }
1853
1853
  };
1854
1854
  }
@@ -1860,13 +1860,13 @@ function createClientFromContext(clientCtx) {
1860
1860
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
1861
1861
  const symbolClientContext2 = "__osdkClientContext";
1862
1862
  const client = Object.defineProperties(clientFn, {
1863
- [chunkZZKV2GFQ_cjs.symbolClientContext]: {
1863
+ [chunk5DBB4EBV_cjs.symbolClientContext]: {
1864
1864
  value: clientCtx
1865
1865
  },
1866
1866
  [symbolClientContext2]: {
1867
1867
  value: clientCtx
1868
1868
  },
1869
- [chunkZZKV2GFQ_cjs.additionalContext]: {
1869
+ [chunk5DBB4EBV_cjs.additionalContext]: {
1870
1870
  value: clientCtx
1871
1871
  },
1872
1872
  fetchMetadata: {
@@ -1875,8 +1875,8 @@ function createClientFromContext(clientCtx) {
1875
1875
  });
1876
1876
  return client;
1877
1877
  }
1878
- var createClient = createClientInternal.bind(void 0, chunkZZKV2GFQ_cjs.createObjectSet, void 0);
1879
- var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkZZKV2GFQ_cjs.createObjectSet, transactionRid, ...args);
1878
+ var createClient = createClientInternal.bind(void 0, chunk5DBB4EBV_cjs.createObjectSet, void 0);
1879
+ var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunk5DBB4EBV_cjs.createObjectSet, transactionRid, ...args);
1880
1880
  function createWithRid(rids) {
1881
1881
  const withRid = {
1882
1882
  type: "static",
@@ -1895,5 +1895,5 @@ exports.createClient = createClient;
1895
1895
  exports.createClientFromContext = createClientFromContext;
1896
1896
  exports.createClientWithTransaction = createClientWithTransaction;
1897
1897
  exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
1898
- //# sourceMappingURL=chunk-QEZBIQEI.cjs.map
1899
- //# sourceMappingURL=chunk-QEZBIQEI.cjs.map
1898
+ //# sourceMappingURL=chunk-KOVRRVJ6.cjs.map
1899
+ //# sourceMappingURL=chunk-KOVRRVJ6.cjs.map