@osdk/client 2.7.0-rc.15 → 2.7.0

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 chunkCDUYWOVQ_cjs = require('./chunk-CDUYWOVQ.cjs');
3
+ var chunkW4BHRZWL_cjs = require('./chunk-W4BHRZWL.cjs');
4
4
  require('./chunk-Y362HOIZ.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, chunkCDUYWOVQ_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkW4BHRZWL_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 chunkCDUYWOVQ_cjs.ActionValidationError; }
48
+ get: function () { return chunkW4BHRZWL_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkCDUYWOVQ_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkW4BHRZWL_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkCDUYWOVQ_cjs.createClient; }
56
+ get: function () { return chunkW4BHRZWL_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkCDUYWOVQ_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkW4BHRZWL_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkCDUYWOVQ_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkW4BHRZWL_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 chunkCDUYWOVQ_cjs = require('../chunk-CDUYWOVQ.cjs');
3
+ var chunkW4BHRZWL_cjs = require('../chunk-W4BHRZWL.cjs');
4
4
  var chunkY362HOIZ_cjs = require('../chunk-Y362HOIZ.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('../chunk-LDTMSHUZ.cjs');
6
6
  var trie = require('@wry/trie');
@@ -438,8 +438,7 @@ var ActionApplication = class {
438
438
  if (process.env.NODE_ENV !== "production") {
439
439
  if (ACTION_DELAY > 0) {
440
440
  logger?.debug("action done, pausing", actionResults);
441
- const delay = (await import('../delay-W2TSML2P.cjs')).default;
442
- await delay(ACTION_DELAY);
441
+ await new Promise((resolve) => setTimeout(resolve, ACTION_DELAY));
443
442
  logger?.debug("action done, pausing done");
444
443
  }
445
444
  }
@@ -1122,7 +1121,7 @@ var FunctionParamsCanonicalizer = class {
1122
1121
  path.push("$:map_end");
1123
1122
  return arr;
1124
1123
  }
1125
- if (chunkCDUYWOVQ_cjs.isObjectSpecifiersObject(value)) {
1124
+ if (chunkW4BHRZWL_cjs.isObjectSpecifiersObject(value)) {
1126
1125
  const objectType = value.$objectType ?? value.$apiName;
1127
1126
  path.push("$:osdk", objectType, value.$primaryKey);
1128
1127
  return {
@@ -1228,7 +1227,7 @@ var FunctionQuery = class extends Query {
1228
1227
  }).debug("calling _fetchAndStore");
1229
1228
  }
1230
1229
  try {
1231
- const result = await chunkCDUYWOVQ_cjs.applyQuery(this.store.client[chunkY362HOIZ_cjs.additionalContext], this.#queryDef, this.#params);
1230
+ const result = await chunkW4BHRZWL_cjs.applyQuery(this.store.client[chunkY362HOIZ_cjs.additionalContext], this.#queryDef, this.#params);
1232
1231
  const executedAt = Date.now();
1233
1232
  this.store.batch({}, (batch) => {
1234
1233
  this.writeToStore({
@@ -3038,7 +3037,7 @@ var InterfaceListQuery = class extends ListQuery {
3038
3037
  }
3039
3038
  extractRelevantObjects(changes) {
3040
3039
  const matchesApiName = ([, object]) => {
3041
- return this.apiName in object[chunkCDUYWOVQ_cjs.ObjectDefRef].interfaceMap;
3040
+ return this.apiName in object[chunkW4BHRZWL_cjs.ObjectDefRef].interfaceMap;
3042
3041
  };
3043
3042
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3044
3043
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3242,8 +3241,8 @@ function stripRdpFields(value, rdpFields) {
3242
3241
  if (rdpFields.size === 0) {
3243
3242
  return value;
3244
3243
  }
3245
- const underlying = value[chunkCDUYWOVQ_cjs.UnderlyingOsdkObject];
3246
- const objectDef = value[chunkCDUYWOVQ_cjs.ObjectDefRef];
3244
+ const underlying = value[chunkW4BHRZWL_cjs.UnderlyingOsdkObject];
3245
+ const objectDef = value[chunkW4BHRZWL_cjs.ObjectDefRef];
3247
3246
  const newProps = {
3248
3247
  $apiName: underlying.$apiName,
3249
3248
  $objectType: underlying.$objectType,
@@ -3256,7 +3255,7 @@ function stripRdpFields(value, rdpFields) {
3256
3255
  newProps[key] = underlying[key];
3257
3256
  }
3258
3257
  }
3259
- return chunkCDUYWOVQ_cjs.createOsdkObject(value[chunkCDUYWOVQ_cjs.ClientRef], objectDef, newProps);
3258
+ return chunkW4BHRZWL_cjs.createOsdkObject(value[chunkW4BHRZWL_cjs.ClientRef], objectDef, newProps);
3260
3259
  }
3261
3260
  function isSuperset(superset, subset) {
3262
3261
  for (const field of subset) {
@@ -3267,8 +3266,8 @@ function isSuperset(superset, subset) {
3267
3266
  return true;
3268
3267
  }
3269
3268
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3270
- const underlying = value[chunkCDUYWOVQ_cjs.UnderlyingOsdkObject];
3271
- const objectDef = value[chunkCDUYWOVQ_cjs.ObjectDefRef];
3269
+ const underlying = value[chunkW4BHRZWL_cjs.UnderlyingOsdkObject];
3270
+ const objectDef = value[chunkW4BHRZWL_cjs.ObjectDefRef];
3272
3271
  const newProps = {
3273
3272
  $apiName: underlying.$apiName,
3274
3273
  $objectType: underlying.$objectType,
@@ -3284,7 +3283,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3284
3283
  }
3285
3284
  }
3286
3285
  }
3287
- return chunkCDUYWOVQ_cjs.createOsdkObject(value[chunkCDUYWOVQ_cjs.ClientRef], objectDef, newProps);
3286
+ return chunkW4BHRZWL_cjs.createOsdkObject(value[chunkW4BHRZWL_cjs.ClientRef], objectDef, newProps);
3288
3287
  }
3289
3288
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3290
3289
  if (targetRdpFields.size === 0) {
@@ -3296,8 +3295,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3296
3295
  }
3297
3296
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3298
3297
  }
3299
- const sourceUnderlying = sourceValue[chunkCDUYWOVQ_cjs.UnderlyingOsdkObject];
3300
- const objectDef = sourceValue[chunkCDUYWOVQ_cjs.ObjectDefRef];
3298
+ const sourceUnderlying = sourceValue[chunkW4BHRZWL_cjs.UnderlyingOsdkObject];
3299
+ const objectDef = sourceValue[chunkW4BHRZWL_cjs.ObjectDefRef];
3301
3300
  const newProps = {
3302
3301
  $apiName: sourceUnderlying.$apiName,
3303
3302
  $objectType: sourceUnderlying.$objectType,
@@ -3311,14 +3310,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3311
3310
  }
3312
3311
  }
3313
3312
  if (targetCurrentValue) {
3314
- const targetUnderlying = targetCurrentValue[chunkCDUYWOVQ_cjs.UnderlyingOsdkObject];
3313
+ const targetUnderlying = targetCurrentValue[chunkW4BHRZWL_cjs.UnderlyingOsdkObject];
3315
3314
  for (const field of targetRdpFields) {
3316
3315
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
3317
3316
  newProps[field] = targetUnderlying[field];
3318
3317
  }
3319
3318
  }
3320
3319
  }
3321
- return chunkCDUYWOVQ_cjs.createOsdkObject(sourceValue[chunkCDUYWOVQ_cjs.ClientRef], objectDef, newProps);
3320
+ return chunkW4BHRZWL_cjs.createOsdkObject(sourceValue[chunkW4BHRZWL_cjs.ClientRef], objectDef, newProps);
3322
3321
  }
3323
3322
 
3324
3323
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4271,10 +4270,10 @@ var Store = class {
4271
4270
 
4272
4271
  // src/observable/ObservableClient.ts
4273
4272
  function createObservableClient(client) {
4274
- const tweakedClient = chunkCDUYWOVQ_cjs.createClientFromContext({
4273
+ const tweakedClient = chunkW4BHRZWL_cjs.createClientFromContext({
4275
4274
  ...client[chunkY362HOIZ_cjs.additionalContext],
4276
4275
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkY362HOIZ_cjs.additionalContext].fetch, (headers) => {
4277
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkCDUYWOVQ_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4276
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkW4BHRZWL_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4278
4277
  return headers;
4279
4278
  })
4280
4279
  });
@@ -4318,7 +4317,7 @@ function getOsdkConfig(ontologyRid) {
4318
4317
 
4319
4318
  Object.defineProperty(exports, "createClientWithTransaction", {
4320
4319
  enumerable: true,
4321
- get: function () { return chunkCDUYWOVQ_cjs.createClientWithTransaction; }
4320
+ get: function () { return chunkW4BHRZWL_cjs.createClientWithTransaction; }
4322
4321
  });
4323
4322
  Object.defineProperty(exports, "augment", {
4324
4323
  enumerable: true,