@osdk/client 2.8.0-beta.6 → 2.8.0-beta.8

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 chunkHCG4XO6Z_cjs = require('./chunk-HCG4XO6Z.cjs');
3
+ var chunkHJBHA4RM_cjs = require('./chunk-HJBHA4RM.cjs');
4
4
  require('./chunk-O22QYBFF.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
6
6
  var api = require('@osdk/api');
@@ -18,7 +18,7 @@ chunkLDTMSHUZ_cjs.init_cjs_shims();
18
18
  // src/createPlatformClient.ts
19
19
  chunkLDTMSHUZ_cjs.init_cjs_shims();
20
20
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
21
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkHCG4XO6Z_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkHJBHA4RM_cjs.USER_AGENT, fetchFn);
22
22
  }
23
23
 
24
24
  // src/util/datetimeConverters.ts
@@ -45,23 +45,23 @@ var extractDateFromIsoString = (dateTime) => {
45
45
 
46
46
  Object.defineProperty(exports, "ActionValidationError", {
47
47
  enumerable: true,
48
- get: function () { return chunkHCG4XO6Z_cjs.ActionValidationError; }
48
+ get: function () { return chunkHJBHA4RM_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkHCG4XO6Z_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkHJBHA4RM_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkHCG4XO6Z_cjs.createClient; }
56
+ get: function () { return chunkHJBHA4RM_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkHCG4XO6Z_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkHJBHA4RM_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkHCG4XO6Z_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkHJBHA4RM_cjs.extractPrimaryKeyFromObjectSpecifier; }
65
65
  });
66
66
  Object.defineProperty(exports, "isOk", {
67
67
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHCG4XO6Z_cjs = require('../chunk-HCG4XO6Z.cjs');
3
+ var chunkHJBHA4RM_cjs = require('../chunk-HJBHA4RM.cjs');
4
4
  var chunkO22QYBFF_cjs = require('../chunk-O22QYBFF.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('../chunk-LDTMSHUZ.cjs');
6
6
  var trie = require('@wry/trie');
@@ -536,8 +536,7 @@ var ActionApplication = class {
536
536
  if (process.env.NODE_ENV !== "production") {
537
537
  if (ACTION_DELAY > 0) {
538
538
  logger?.debug("action done, pausing", actionResults);
539
- const delay = (await import('../delay-W2TSML2P.cjs')).default;
540
- await delay(ACTION_DELAY);
539
+ await new Promise((resolve) => setTimeout(resolve, ACTION_DELAY));
541
540
  logger?.debug("action done, pausing done");
542
541
  }
543
542
  }
@@ -1329,7 +1328,7 @@ var FunctionParamsCanonicalizer = class {
1329
1328
  path.push("$:map_end");
1330
1329
  return arr;
1331
1330
  }
1332
- if (chunkHCG4XO6Z_cjs.isObjectSpecifiersObject(value)) {
1331
+ if (chunkHJBHA4RM_cjs.isObjectSpecifiersObject(value)) {
1333
1332
  const objectType = value.$objectType ?? value.$apiName;
1334
1333
  path.push("$:osdk", objectType, value.$primaryKey);
1335
1334
  return {
@@ -1458,7 +1457,7 @@ var FunctionQuery = class extends Query {
1458
1457
  }).debug("calling _fetchAndStore");
1459
1458
  }
1460
1459
  try {
1461
- const result = await chunkHCG4XO6Z_cjs.applyQuery(this.store.client[chunkO22QYBFF_cjs.additionalContext], this.#queryDef, this.#params);
1460
+ const result = await chunkHJBHA4RM_cjs.applyQuery(this.store.client[chunkO22QYBFF_cjs.additionalContext], this.#queryDef, this.#params);
1462
1461
  const executedAt = Date.now();
1463
1462
  this.store.batch({}, (batch) => {
1464
1463
  this.writeToStore({
@@ -3323,7 +3322,7 @@ var InterfaceListQuery = class extends ListQuery {
3323
3322
  }
3324
3323
  extractRelevantObjects(changes) {
3325
3324
  const matchesApiName = ([, object]) => {
3326
- return this.apiName in object[chunkHCG4XO6Z_cjs.ObjectDefRef].interfaceMap;
3325
+ return this.apiName in object[chunkHJBHA4RM_cjs.ObjectDefRef].interfaceMap;
3327
3326
  };
3328
3327
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3329
3328
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3538,8 +3537,8 @@ function stripRdpFields(value, rdpFields) {
3538
3537
  if (rdpFields.size === 0) {
3539
3538
  return value;
3540
3539
  }
3541
- const underlying = value[chunkHCG4XO6Z_cjs.UnderlyingOsdkObject];
3542
- const objectDef = value[chunkHCG4XO6Z_cjs.ObjectDefRef];
3540
+ const underlying = value[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3541
+ const objectDef = value[chunkHJBHA4RM_cjs.ObjectDefRef];
3543
3542
  const newProps = {
3544
3543
  $apiName: underlying.$apiName,
3545
3544
  $objectType: underlying.$objectType,
@@ -3552,7 +3551,7 @@ function stripRdpFields(value, rdpFields) {
3552
3551
  newProps[key] = underlying[key];
3553
3552
  }
3554
3553
  }
3555
- return chunkHCG4XO6Z_cjs.createOsdkObject(value[chunkHCG4XO6Z_cjs.ClientRef], objectDef, newProps);
3554
+ return chunkHJBHA4RM_cjs.createOsdkObject(value[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3556
3555
  }
3557
3556
  function isSuperset(superset, subset) {
3558
3557
  for (const field of subset) {
@@ -3563,8 +3562,8 @@ function isSuperset(superset, subset) {
3563
3562
  return true;
3564
3563
  }
3565
3564
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3566
- const underlying = value[chunkHCG4XO6Z_cjs.UnderlyingOsdkObject];
3567
- const objectDef = value[chunkHCG4XO6Z_cjs.ObjectDefRef];
3565
+ const underlying = value[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3566
+ const objectDef = value[chunkHJBHA4RM_cjs.ObjectDefRef];
3568
3567
  const newProps = {
3569
3568
  $apiName: underlying.$apiName,
3570
3569
  $objectType: underlying.$objectType,
@@ -3580,7 +3579,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3580
3579
  }
3581
3580
  }
3582
3581
  }
3583
- return chunkHCG4XO6Z_cjs.createOsdkObject(value[chunkHCG4XO6Z_cjs.ClientRef], objectDef, newProps);
3582
+ return chunkHJBHA4RM_cjs.createOsdkObject(value[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3584
3583
  }
3585
3584
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3586
3585
  if (targetRdpFields.size === 0) {
@@ -3592,8 +3591,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3592
3591
  }
3593
3592
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3594
3593
  }
3595
- const sourceUnderlying = sourceValue[chunkHCG4XO6Z_cjs.UnderlyingOsdkObject];
3596
- const objectDef = sourceValue[chunkHCG4XO6Z_cjs.ObjectDefRef];
3594
+ const sourceUnderlying = sourceValue[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3595
+ const objectDef = sourceValue[chunkHJBHA4RM_cjs.ObjectDefRef];
3597
3596
  const newProps = {
3598
3597
  $apiName: sourceUnderlying.$apiName,
3599
3598
  $objectType: sourceUnderlying.$objectType,
@@ -3607,7 +3606,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3607
3606
  }
3608
3607
  }
3609
3608
  if (targetCurrentValue) {
3610
- const targetUnderlying = targetCurrentValue[chunkHCG4XO6Z_cjs.UnderlyingOsdkObject];
3609
+ const targetUnderlying = targetCurrentValue[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3611
3610
  for (const field of targetRdpFields) {
3612
3611
  if (field in targetUnderlying) {
3613
3612
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -3616,7 +3615,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3616
3615
  }
3617
3616
  }
3618
3617
  }
3619
- return chunkHCG4XO6Z_cjs.createOsdkObject(sourceValue[chunkHCG4XO6Z_cjs.ClientRef], objectDef, newProps);
3618
+ return chunkHJBHA4RM_cjs.createOsdkObject(sourceValue[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3620
3619
  }
3621
3620
 
3622
3621
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4596,10 +4595,10 @@ var Store = class {
4596
4595
 
4597
4596
  // src/observable/ObservableClient.ts
4598
4597
  function createObservableClient(client) {
4599
- const tweakedClient = chunkHCG4XO6Z_cjs.createClientFromContext({
4598
+ const tweakedClient = chunkHJBHA4RM_cjs.createClientFromContext({
4600
4599
  ...client[chunkO22QYBFF_cjs.additionalContext],
4601
4600
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkO22QYBFF_cjs.additionalContext].fetch, (headers) => {
4602
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkHCG4XO6Z_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4601
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkHJBHA4RM_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4603
4602
  return headers;
4604
4603
  })
4605
4604
  });
@@ -4643,7 +4642,7 @@ function getOsdkConfig(ontologyRid) {
4643
4642
 
4644
4643
  Object.defineProperty(exports, "createClientWithTransaction", {
4645
4644
  enumerable: true,
4646
- get: function () { return chunkHCG4XO6Z_cjs.createClientWithTransaction; }
4645
+ get: function () { return chunkHJBHA4RM_cjs.createClientWithTransaction; }
4647
4646
  });
4648
4647
  Object.defineProperty(exports, "augment", {
4649
4648
  enumerable: true,