@osdk/client 2.8.0-beta.12 → 2.8.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkYVZM2JPW_cjs = require('./chunk-YVZM2JPW.cjs');
3
+ var chunkJVLSSAAP_cjs = require('./chunk-JVLSSAAP.cjs');
4
4
  var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
5
5
  var unstable = require('@osdk/api/unstable');
6
6
  var client_unstable = require('@osdk/client.unstable');
@@ -414,78 +414,93 @@ chunkLDTMSHUZ_cjs.init_cjs_shims();
414
414
  // src/util/toDataValue.ts
415
415
  chunkLDTMSHUZ_cjs.init_cjs_shims();
416
416
 
417
- // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.47.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
417
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.50.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
418
418
  chunkLDTMSHUZ_cjs.init_cjs_shims();
419
419
 
420
- // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.47.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
420
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.50.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
421
421
  var MediaSet_exports = {};
422
422
  chunkLDTMSHUZ_cjs.__export(MediaSet_exports, {
423
423
  abort: () => abort,
424
424
  calculate: () => calculate,
425
425
  commit: () => commit,
426
426
  create: () => create,
427
+ getResult: () => getResult,
427
428
  getRidByPath: () => getRidByPath,
429
+ getStatus: () => getStatus,
428
430
  info: () => info,
429
431
  metadata: () => metadata,
430
432
  read: () => read,
431
433
  readOriginal: () => readOriginal,
432
434
  reference: () => reference,
433
435
  retrieve: () => retrieve,
436
+ transform: () => transform,
434
437
  upload: () => upload,
435
438
  uploadMedia: () => uploadMedia
436
439
  });
437
440
  chunkLDTMSHUZ_cjs.init_cjs_shims();
438
441
  var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
439
442
  function abort($ctx, ...args) {
440
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _abort, ...args);
443
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _abort, ...args);
441
444
  }
442
445
  var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
443
446
  function calculate($ctx, ...args) {
444
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
447
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
445
448
  }
446
449
  var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
447
450
  function commit($ctx, ...args) {
448
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _commit, ...args);
451
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _commit, ...args);
449
452
  }
450
453
  var _create = [1, "/v2/mediasets/{0}/transactions", 2];
451
454
  function create($ctx, ...args) {
452
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _create, ...args);
455
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _create, ...args);
453
456
  }
454
457
  var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
455
458
  function info($ctx, ...args) {
456
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _info, ...args);
459
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _info, ...args);
457
460
  }
458
461
  var _metadata = [0, "/v2/mediasets/{0}/items/{1}/metadata", 6];
459
462
  function metadata($ctx, ...args) {
460
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _metadata, ...args);
463
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _metadata, ...args);
461
464
  }
462
465
  var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
463
466
  function reference($ctx, ...args) {
464
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _reference, ...args);
467
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _reference, ...args);
465
468
  }
466
469
  var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
467
470
  function getRidByPath($ctx, ...args) {
468
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
471
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
472
+ }
473
+ var _getResult = [0, "/v2/mediasets/{0}/items/{1}/transformationJobs/{2}/result", 6, , "*/*"];
474
+ function getResult($ctx, ...args) {
475
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _getResult, ...args);
476
+ }
477
+ var _getStatus = [0, "/v2/mediasets/{0}/items/{1}/transformationJobs/{2}", 6];
478
+ function getStatus($ctx, ...args) {
479
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _getStatus, ...args);
469
480
  }
470
481
  var _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
471
482
  function upload($ctx, ...args) {
472
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _upload, ...args);
483
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _upload, ...args);
473
484
  }
474
485
  var _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
475
486
  function read($ctx, ...args) {
476
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _read, ...args);
487
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _read, ...args);
477
488
  }
478
489
  var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
479
490
  function readOriginal($ctx, ...args) {
480
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
491
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
481
492
  }
482
493
  var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
483
494
  function retrieve($ctx, ...args) {
484
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
495
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
496
+ }
497
+ var _transform = [1, "/v2/mediasets/{0}/items/{1}/transform", 7];
498
+ function transform($ctx, ...args) {
499
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _transform, ...args);
485
500
  }
486
501
  var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
487
502
  function uploadMedia($ctx, ...args) {
488
- return chunkYVZM2JPW_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
503
+ return chunkJVLSSAAP_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
489
504
  }
490
505
 
491
506
  // src/object/mediaUpload.ts
@@ -548,13 +563,13 @@ async function toDataValue(value, client, actionMetadata) {
548
563
  return Promise.all(promiseArray);
549
564
  }
550
565
  if (isAttachmentUpload(value)) {
551
- const attachment = await chunkYVZM2JPW_cjs.Attachment_exports.upload(client, value.data, {
566
+ const attachment = await chunkJVLSSAAP_cjs.Attachment_exports.upload(client, value.data, {
552
567
  filename: value.name
553
568
  });
554
569
  return await toDataValue(attachment.rid, client);
555
570
  }
556
571
  if (isAttachmentFile(value)) {
557
- const attachment = await chunkYVZM2JPW_cjs.Attachment_exports.upload(client, value, {
572
+ const attachment = await chunkJVLSSAAP_cjs.Attachment_exports.upload(client, value, {
558
573
  filename: value.name
559
574
  });
560
575
  return await toDataValue(attachment.rid, client);
@@ -575,11 +590,11 @@ async function toDataValue(value, client, actionMetadata) {
575
590
  if (isPoint(value)) {
576
591
  return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
577
592
  }
578
- if (chunkYVZM2JPW_cjs.isWireObjectSet(value)) {
593
+ if (chunkJVLSSAAP_cjs.isWireObjectSet(value)) {
579
594
  return value;
580
595
  }
581
- if (chunkYVZM2JPW_cjs.isObjectSet(value)) {
582
- return chunkYVZM2JPW_cjs.getWireObjectSet(value);
596
+ if (chunkJVLSSAAP_cjs.isObjectSet(value)) {
597
+ return chunkJVLSSAAP_cjs.getWireObjectSet(value);
583
598
  }
584
599
  if (isMediaReference(value)) {
585
600
  return value;
@@ -602,11 +617,11 @@ async function toDataValue(value, client, actionMetadata) {
602
617
 
603
618
  // src/actions/applyAction.ts
604
619
  async function applyAction(client, action, parameters, options = {}) {
605
- const clientWithHeaders = chunkYVZM2JPW_cjs.addUserAgentAndRequestContextHeaders(chunkYVZM2JPW_cjs.augmentRequestContext(client, (_) => ({
620
+ const clientWithHeaders = chunkJVLSSAAP_cjs.addUserAgentAndRequestContextHeaders(chunkJVLSSAAP_cjs.augmentRequestContext(client, (_) => ({
606
621
  finalMethodCall: "applyAction"
607
622
  })), action);
608
623
  if (Array.isArray(parameters)) {
609
- const response = await chunkYVZM2JPW_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
624
+ const response = await chunkJVLSSAAP_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
610
625
  requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
611
626
  options: {
612
627
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
@@ -617,7 +632,7 @@ async function applyAction(client, action, parameters, options = {}) {
617
632
  const edits = response.edits;
618
633
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
619
634
  } else {
620
- const response = await chunkYVZM2JPW_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
635
+ const response = await chunkJVLSSAAP_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
621
636
  parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
622
637
  options: {
623
638
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -841,7 +856,7 @@ var GeotimeSeriesPropertyImpl = class {
841
856
  }
842
857
  }
843
858
  async getLatestValue() {
844
- const latestPointPromise = chunkYVZM2JPW_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
859
+ const latestPointPromise = chunkJVLSSAAP_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
845
860
  latestPointPromise.then(
846
861
  (latestPoint) => this.lastFetchedValue = latestPoint,
847
862
  // eslint-disable-next-line no-console
@@ -857,7 +872,7 @@ var GeotimeSeriesPropertyImpl = class {
857
872
  return allPoints;
858
873
  }
859
874
  async *asyncIterValues(query) {
860
- const streamPointsIterator = await chunkYVZM2JPW_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
875
+ const streamPointsIterator = await chunkJVLSSAAP_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
861
876
  range: getTimeRange(query)
862
877
  } : {});
863
878
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -885,13 +900,13 @@ var MediaReferencePropertyImpl = class {
885
900
  this.#mediaReference = mediaReference;
886
901
  }
887
902
  async fetchContents() {
888
- return chunkYVZM2JPW_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
903
+ return chunkJVLSSAAP_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
889
904
  preview: true
890
905
  // TODO: Can turn this back off when backend is no longer in beta.
891
906
  });
892
907
  }
893
908
  async fetchMetadata() {
894
- const r = await chunkYVZM2JPW_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
909
+ const r = await chunkJVLSSAAP_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
895
910
  preview: true
896
911
  // TODO: Can turn this back off when backend is no longer in beta.
897
912
  });
@@ -916,10 +931,10 @@ var TimeSeriesPropertyImpl = class {
916
931
  this.#triplet = [objectApiName, primaryKey, propertyName];
917
932
  }
918
933
  async getFirstPoint() {
919
- return chunkYVZM2JPW_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
934
+ return chunkJVLSSAAP_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
920
935
  }
921
936
  async getLastPoint() {
922
- return chunkYVZM2JPW_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
937
+ return chunkJVLSSAAP_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
923
938
  }
924
939
  async getAllPoints(query) {
925
940
  const allPoints = [];
@@ -929,7 +944,7 @@ var TimeSeriesPropertyImpl = class {
929
944
  return allPoints;
930
945
  }
931
946
  async *asyncIterPoints(query) {
932
- const streamPointsIterator = await chunkYVZM2JPW_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
947
+ const streamPointsIterator = await chunkJVLSSAAP_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
933
948
  range: getTimeRange(query)
934
949
  } : {});
935
950
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -1347,8 +1362,8 @@ function get$link(holder) {
1347
1362
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1348
1363
  }).pivotTo(linkName);
1349
1364
  const value = !linkDef.multiplicity ? {
1350
- fetchOne: (options) => chunkYVZM2JPW_cjs.fetchSingle(client, objDef, options ?? {}, chunkYVZM2JPW_cjs.getWireObjectSet(objectSet)),
1351
- fetchOneWithErrors: (options) => chunkYVZM2JPW_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkYVZM2JPW_cjs.getWireObjectSet(objectSet))
1365
+ fetchOne: (options) => chunkJVLSSAAP_cjs.fetchSingle(client, objDef, options ?? {}, chunkJVLSSAAP_cjs.getWireObjectSet(objectSet)),
1366
+ fetchOneWithErrors: (options) => chunkJVLSSAAP_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkJVLSSAAP_cjs.getWireObjectSet(objectSet))
1352
1367
  } : objectSet;
1353
1368
  return [linkName, value];
1354
1369
  })));
@@ -1364,8 +1379,8 @@ function get$linkForInterface(holder) {
1364
1379
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1365
1380
  })).pivotTo(linkName);
1366
1381
  const value = !linkDef.multiplicity ? {
1367
- fetchOne: (options) => chunkYVZM2JPW_cjs.fetchSingle(client, objDef, options ?? {}, chunkYVZM2JPW_cjs.getWireObjectSet(objectSet)),
1368
- fetchOneWithErrors: (options) => chunkYVZM2JPW_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkYVZM2JPW_cjs.getWireObjectSet(objectSet))
1382
+ fetchOne: (options) => chunkJVLSSAAP_cjs.fetchSingle(client, objDef, options ?? {}, chunkJVLSSAAP_cjs.getWireObjectSet(objectSet)),
1383
+ fetchOneWithErrors: (options) => chunkJVLSSAAP_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkJVLSSAAP_cjs.getWireObjectSet(objectSet))
1369
1384
  } : objectSet;
1370
1385
  return [linkName, value];
1371
1386
  })));
@@ -1373,7 +1388,7 @@ function get$linkForInterface(holder) {
1373
1388
 
1374
1389
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
1375
1390
  function createOsdkInterface(underlying, interfaceDef) {
1376
- const [objApiNamespace] = chunkYVZM2JPW_cjs.extractNamespace(interfaceDef.apiName);
1391
+ const [objApiNamespace] = chunkJVLSSAAP_cjs.extractNamespace(interfaceDef.apiName);
1377
1392
  return Object.freeze(Object.defineProperties({}, {
1378
1393
  // first to minimize hidden classes
1379
1394
  [UnderlyingOsdkObject]: {
@@ -1436,7 +1451,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1436
1451
  },
1437
1452
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1438
1453
  const objDef = underlying[ObjectDefRef];
1439
- const [apiNamespace, apiName] = chunkYVZM2JPW_cjs.extractNamespace(p);
1454
+ const [apiNamespace, apiName] = chunkJVLSSAAP_cjs.extractNamespace(p);
1440
1455
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
1441
1456
  return [apiNamespace === objApiNamespace ? apiName : p, {
1442
1457
  enumerable: targetPropName in underlying,
@@ -1611,9 +1626,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
1611
1626
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1612
1627
  case "attachment":
1613
1628
  if (Array.isArray(rawValue)) {
1614
- return rawValue.map((a) => chunkYVZM2JPW_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1629
+ return rawValue.map((a) => chunkJVLSSAAP_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1615
1630
  } else {
1616
- return chunkYVZM2JPW_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1631
+ return chunkJVLSSAAP_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1617
1632
  }
1618
1633
  default:
1619
1634
  process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant3__default.default(false) ;
@@ -1629,9 +1644,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1629
1644
  }
1630
1645
  if (propDef.type === "attachment") {
1631
1646
  if (Array.isArray(rawValue)) {
1632
- return rawValue.map((a) => chunkYVZM2JPW_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1647
+ return rawValue.map((a) => chunkJVLSSAAP_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1633
1648
  }
1634
- return chunkYVZM2JPW_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1649
+ return chunkJVLSSAAP_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1635
1650
  }
1636
1651
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1637
1652
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1932,7 +1947,7 @@ function deepFreeze(obj) {
1932
1947
  // src/ontology/loadActionMetadata.ts
1933
1948
  chunkLDTMSHUZ_cjs.init_cjs_shims();
1934
1949
  async function loadActionMetadata(client, actionType) {
1935
- const r = await chunkYVZM2JPW_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
1950
+ const r = await chunkJVLSSAAP_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
1936
1951
  branch: client.branch
1937
1952
  });
1938
1953
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
@@ -1941,7 +1956,7 @@ async function loadActionMetadata(client, actionType) {
1941
1956
  // src/ontology/loadFullObjectMetadata.ts
1942
1957
  chunkLDTMSHUZ_cjs.init_cjs_shims();
1943
1958
  async function loadFullObjectMetadata(client, objectType) {
1944
- const full = await chunkYVZM2JPW_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1959
+ const full = await chunkJVLSSAAP_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1945
1960
  preview: true,
1946
1961
  branch: client.branch
1947
1962
  });
@@ -1954,7 +1969,7 @@ async function loadFullObjectMetadata(client, objectType) {
1954
1969
  // src/ontology/loadInterfaceMetadata.ts
1955
1970
  chunkLDTMSHUZ_cjs.init_cjs_shims();
1956
1971
  async function loadInterfaceMetadata(client, objectType) {
1957
- const r = await chunkYVZM2JPW_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1972
+ const r = await chunkJVLSSAAP_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1958
1973
  preview: true,
1959
1974
  branch: client.branch
1960
1975
  });
@@ -1965,7 +1980,7 @@ async function loadInterfaceMetadata(client, objectType) {
1965
1980
  chunkLDTMSHUZ_cjs.init_cjs_shims();
1966
1981
  async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
1967
1982
  const [apiName, version] = queryTypeApiNameAndVersion.split(":");
1968
- const r = await chunkYVZM2JPW_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1983
+ const r = await chunkJVLSSAAP_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1969
1984
  version
1970
1985
  });
1971
1986
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
@@ -2023,11 +2038,11 @@ var createStandardOntologyProviderFactory = (client) => {
2023
2038
 
2024
2039
  // src/util/UserAgent.ts
2025
2040
  chunkLDTMSHUZ_cjs.init_cjs_shims();
2026
- var USER_AGENT = `osdk-client/${"2.8.0-beta.12"}`;
2027
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.12"}`;
2041
+ var USER_AGENT = `osdk-client/${"2.8.0-beta.13"}`;
2042
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.13"}`;
2028
2043
 
2029
2044
  // src/createMinimalClient.ts
2030
- function createMinimalClient(metadata2, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkYVZM2JPW_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
2045
+ function createMinimalClient(metadata2, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkJVLSSAAP_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
2031
2046
  if (process.env.NODE_ENV !== "production") {
2032
2047
  try {
2033
2048
  new URL(baseUrl);
@@ -2100,13 +2115,13 @@ async function toDataValueQueries(value, client, desiredType) {
2100
2115
  switch (desiredType.type) {
2101
2116
  case "attachment": {
2102
2117
  if (isAttachmentUpload(value)) {
2103
- const attachment = await chunkYVZM2JPW_cjs.Attachment_exports.upload(client, value.data, {
2118
+ const attachment = await chunkJVLSSAAP_cjs.Attachment_exports.upload(client, value.data, {
2104
2119
  filename: value.name
2105
2120
  });
2106
2121
  return attachment.rid;
2107
2122
  }
2108
2123
  if (isAttachmentFile(value)) {
2109
- const attachment = await chunkYVZM2JPW_cjs.Attachment_exports.upload(client, value, {
2124
+ const attachment = await chunkJVLSSAAP_cjs.Attachment_exports.upload(client, value, {
2110
2125
  filename: value.name
2111
2126
  });
2112
2127
  return attachment.rid;
@@ -2146,11 +2161,11 @@ async function toDataValueQueries(value, client, desiredType) {
2146
2161
  }
2147
2162
  case "objectSet":
2148
2163
  case "interfaceObjectSet": {
2149
- if (chunkYVZM2JPW_cjs.isWireObjectSet(value)) {
2164
+ if (chunkJVLSSAAP_cjs.isWireObjectSet(value)) {
2150
2165
  return value;
2151
2166
  }
2152
- if (chunkYVZM2JPW_cjs.isObjectSet(value)) {
2153
- return chunkYVZM2JPW_cjs.getWireObjectSet(value);
2167
+ if (chunkJVLSSAAP_cjs.isObjectSet(value)) {
2168
+ return chunkJVLSSAAP_cjs.getWireObjectSet(value);
2154
2169
  }
2155
2170
  break;
2156
2171
  }
@@ -2195,13 +2210,14 @@ async function applyQuery(client, query, params) {
2195
2210
  if (client.flushEdits != null) {
2196
2211
  await client.flushEdits();
2197
2212
  }
2198
- const response = await chunkYVZM2JPW_cjs.Query_exports.execute(chunkYVZM2JPW_cjs.addUserAgentAndRequestContextHeaders(chunkYVZM2JPW_cjs.augmentRequestContext(client, (_) => ({
2213
+ const response = await chunkJVLSSAAP_cjs.Query_exports.execute(chunkJVLSSAAP_cjs.addUserAgentAndRequestContextHeaders(chunkJVLSSAAP_cjs.augmentRequestContext(client, (_) => ({
2199
2214
  finalMethodCall: "applyQuery"
2200
2215
  })), query), await client.ontologyRid, query.apiName, {
2201
2216
  parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
2202
2217
  }, {
2203
2218
  version: query.isFixedVersion ? query.version : void 0,
2204
- transactionId: client.transactionId
2219
+ transactionId: client.transactionId,
2220
+ branch: client.branch
2205
2221
  });
2206
2222
  const objectOutputDefs = await getRequiredDefinitions((await qd).output, client);
2207
2223
  const remappedResponse = await remapQueryResponse(client, (await qd).output, response.value, objectOutputDefs);
@@ -2239,7 +2255,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2239
2255
  return responseValue;
2240
2256
  }
2241
2257
  case "attachment": {
2242
- return chunkYVZM2JPW_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2258
+ return chunkJVLSSAAP_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2243
2259
  }
2244
2260
  case "object": {
2245
2261
  const def = definitions.get(responseDataType.object);
@@ -2261,7 +2277,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2261
2277
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
2262
2278
  }
2263
2279
  if (typeof responseValue === "string") {
2264
- return chunkYVZM2JPW_cjs.createObjectSet(def, client, {
2280
+ return chunkJVLSSAAP_cjs.createObjectSet(def, client, {
2265
2281
  type: "intersect",
2266
2282
  objectSets: [{
2267
2283
  type: "base",
@@ -2272,7 +2288,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2272
2288
  }]
2273
2289
  });
2274
2290
  }
2275
- return chunkYVZM2JPW_cjs.createObjectSet(def, client, responseValue);
2291
+ return chunkJVLSSAAP_cjs.createObjectSet(def, client, responseValue);
2276
2292
  }
2277
2293
  case "struct": {
2278
2294
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -2466,7 +2482,7 @@ function createClientInternal(objectSetFactory, transactionRid, flushEdits, base
2466
2482
  ontologyRid
2467
2483
  }, baseUrl, tokenProvider, {
2468
2484
  ...options,
2469
- logger: options?.logger ?? new chunkYVZM2JPW_cjs.MinimalLogger(),
2485
+ logger: options?.logger ?? new chunkJVLSSAAP_cjs.MinimalLogger(),
2470
2486
  transactionId: transactionRid,
2471
2487
  flushEdits,
2472
2488
  branch: options?.branch
@@ -2490,7 +2506,7 @@ function createClientFromContext(clientCtx) {
2490
2506
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
2491
2507
  return {
2492
2508
  fetchOneByRid: async (objectType, rid, options) => {
2493
- return await chunkYVZM2JPW_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2509
+ return await chunkJVLSSAAP_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2494
2510
  }
2495
2511
  };
2496
2512
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -2502,7 +2518,7 @@ function createClientFromContext(clientCtx) {
2502
2518
  objectType,
2503
2519
  propertyType
2504
2520
  } = args;
2505
- return await chunkYVZM2JPW_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
2521
+ return await chunkJVLSSAAP_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
2506
2522
  mediaItemPath: fileName,
2507
2523
  preview: true
2508
2524
  });
@@ -2511,10 +2527,10 @@ function createClientFromContext(clientCtx) {
2511
2527
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
2512
2528
  return {
2513
2529
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
2514
- return await chunkYVZM2JPW_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2530
+ return await chunkJVLSSAAP_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2515
2531
  },
2516
2532
  fetchPageByRidNoType: async (rids, options) => {
2517
- return await chunkYVZM2JPW_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2533
+ return await chunkJVLSSAAP_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2518
2534
  }
2519
2535
  };
2520
2536
  }
@@ -2526,13 +2542,13 @@ function createClientFromContext(clientCtx) {
2526
2542
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
2527
2543
  const symbolClientContext2 = "__osdkClientContext";
2528
2544
  const client = Object.defineProperties(clientFn, {
2529
- [chunkYVZM2JPW_cjs.symbolClientContext]: {
2545
+ [chunkJVLSSAAP_cjs.symbolClientContext]: {
2530
2546
  value: clientCtx
2531
2547
  },
2532
2548
  [symbolClientContext2]: {
2533
2549
  value: clientCtx
2534
2550
  },
2535
- [chunkYVZM2JPW_cjs.additionalContext]: {
2551
+ [chunkJVLSSAAP_cjs.additionalContext]: {
2536
2552
  value: clientCtx
2537
2553
  },
2538
2554
  fetchMetadata: {
@@ -2541,8 +2557,8 @@ function createClientFromContext(clientCtx) {
2541
2557
  });
2542
2558
  return client;
2543
2559
  }
2544
- var createClient = createClientInternal.bind(void 0, chunkYVZM2JPW_cjs.createObjectSet, void 0, void 0);
2545
- var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkYVZM2JPW_cjs.createObjectSet, transactionRid, flushEdits, ...args);
2560
+ var createClient = createClientInternal.bind(void 0, chunkJVLSSAAP_cjs.createObjectSet, void 0, void 0);
2561
+ var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkJVLSSAAP_cjs.createObjectSet, transactionRid, flushEdits, ...args);
2546
2562
  function createWithRid(rids) {
2547
2563
  const withRid = {
2548
2564
  type: "static",
@@ -2567,5 +2583,5 @@ exports.createOsdkObject = createOsdkObject;
2567
2583
  exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
2568
2584
  exports.getDefType = getDefType;
2569
2585
  exports.isObjectSpecifiersObject = isObjectSpecifiersObject;
2570
- //# sourceMappingURL=chunk-22QZVXHI.cjs.map
2571
- //# sourceMappingURL=chunk-22QZVXHI.cjs.map
2586
+ //# sourceMappingURL=chunk-FE6Q5R5O.cjs.map
2587
+ //# sourceMappingURL=chunk-FE6Q5R5O.cjs.map