@osdk/client 2.8.0-beta.4 → 2.8.0-beta.5

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 chunkRKC3366I_cjs = require('./chunk-RKC3366I.cjs');
3
+ var chunkLESMKESG_cjs = require('./chunk-LESMKESG.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, chunkRKC3366I_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkLESMKESG_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 chunkRKC3366I_cjs.ActionValidationError; }
48
+ get: function () { return chunkLESMKESG_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkRKC3366I_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkLESMKESG_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkRKC3366I_cjs.createClient; }
56
+ get: function () { return chunkLESMKESG_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkRKC3366I_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkLESMKESG_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkRKC3366I_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkLESMKESG_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 chunkRKC3366I_cjs = require('../chunk-RKC3366I.cjs');
3
+ var chunkLESMKESG_cjs = require('../chunk-LESMKESG.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');
@@ -1211,7 +1211,7 @@ var FunctionParamsCanonicalizer = class {
1211
1211
  path.push("$:map_end");
1212
1212
  return arr;
1213
1213
  }
1214
- if (chunkRKC3366I_cjs.isObjectSpecifiersObject(value)) {
1214
+ if (chunkLESMKESG_cjs.isObjectSpecifiersObject(value)) {
1215
1215
  const objectType = value.$objectType ?? value.$apiName;
1216
1216
  path.push("$:osdk", objectType, value.$primaryKey);
1217
1217
  return {
@@ -1340,7 +1340,7 @@ var FunctionQuery = class extends Query {
1340
1340
  }).debug("calling _fetchAndStore");
1341
1341
  }
1342
1342
  try {
1343
- const result = await chunkRKC3366I_cjs.applyQuery(this.store.client[chunkO22QYBFF_cjs.additionalContext], this.#queryDef, this.#params);
1343
+ const result = await chunkLESMKESG_cjs.applyQuery(this.store.client[chunkO22QYBFF_cjs.additionalContext], this.#queryDef, this.#params);
1344
1344
  const executedAt = Date.now();
1345
1345
  this.store.batch({}, (batch) => {
1346
1346
  this.writeToStore({
@@ -3206,7 +3206,7 @@ var InterfaceListQuery = class extends ListQuery {
3206
3206
  }
3207
3207
  extractRelevantObjects(changes) {
3208
3208
  const matchesApiName = ([, object]) => {
3209
- return this.apiName in object[chunkRKC3366I_cjs.ObjectDefRef].interfaceMap;
3209
+ return this.apiName in object[chunkLESMKESG_cjs.ObjectDefRef].interfaceMap;
3210
3210
  };
3211
3211
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3212
3212
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3410,8 +3410,8 @@ function stripRdpFields(value, rdpFields) {
3410
3410
  if (rdpFields.size === 0) {
3411
3411
  return value;
3412
3412
  }
3413
- const underlying = value[chunkRKC3366I_cjs.UnderlyingOsdkObject];
3414
- const objectDef = value[chunkRKC3366I_cjs.ObjectDefRef];
3413
+ const underlying = value[chunkLESMKESG_cjs.UnderlyingOsdkObject];
3414
+ const objectDef = value[chunkLESMKESG_cjs.ObjectDefRef];
3415
3415
  const newProps = {
3416
3416
  $apiName: underlying.$apiName,
3417
3417
  $objectType: underlying.$objectType,
@@ -3424,7 +3424,7 @@ function stripRdpFields(value, rdpFields) {
3424
3424
  newProps[key] = underlying[key];
3425
3425
  }
3426
3426
  }
3427
- return chunkRKC3366I_cjs.createOsdkObject(value[chunkRKC3366I_cjs.ClientRef], objectDef, newProps);
3427
+ return chunkLESMKESG_cjs.createOsdkObject(value[chunkLESMKESG_cjs.ClientRef], objectDef, newProps);
3428
3428
  }
3429
3429
  function isSuperset(superset, subset) {
3430
3430
  for (const field of subset) {
@@ -3435,8 +3435,8 @@ function isSuperset(superset, subset) {
3435
3435
  return true;
3436
3436
  }
3437
3437
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3438
- const underlying = value[chunkRKC3366I_cjs.UnderlyingOsdkObject];
3439
- const objectDef = value[chunkRKC3366I_cjs.ObjectDefRef];
3438
+ const underlying = value[chunkLESMKESG_cjs.UnderlyingOsdkObject];
3439
+ const objectDef = value[chunkLESMKESG_cjs.ObjectDefRef];
3440
3440
  const newProps = {
3441
3441
  $apiName: underlying.$apiName,
3442
3442
  $objectType: underlying.$objectType,
@@ -3452,7 +3452,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3452
3452
  }
3453
3453
  }
3454
3454
  }
3455
- return chunkRKC3366I_cjs.createOsdkObject(value[chunkRKC3366I_cjs.ClientRef], objectDef, newProps);
3455
+ return chunkLESMKESG_cjs.createOsdkObject(value[chunkLESMKESG_cjs.ClientRef], objectDef, newProps);
3456
3456
  }
3457
3457
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3458
3458
  if (targetRdpFields.size === 0) {
@@ -3464,8 +3464,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3464
3464
  }
3465
3465
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3466
3466
  }
3467
- const sourceUnderlying = sourceValue[chunkRKC3366I_cjs.UnderlyingOsdkObject];
3468
- const objectDef = sourceValue[chunkRKC3366I_cjs.ObjectDefRef];
3467
+ const sourceUnderlying = sourceValue[chunkLESMKESG_cjs.UnderlyingOsdkObject];
3468
+ const objectDef = sourceValue[chunkLESMKESG_cjs.ObjectDefRef];
3469
3469
  const newProps = {
3470
3470
  $apiName: sourceUnderlying.$apiName,
3471
3471
  $objectType: sourceUnderlying.$objectType,
@@ -3479,14 +3479,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3479
3479
  }
3480
3480
  }
3481
3481
  if (targetCurrentValue) {
3482
- const targetUnderlying = targetCurrentValue[chunkRKC3366I_cjs.UnderlyingOsdkObject];
3482
+ const targetUnderlying = targetCurrentValue[chunkLESMKESG_cjs.UnderlyingOsdkObject];
3483
3483
  for (const field of targetRdpFields) {
3484
3484
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
3485
3485
  newProps[field] = targetUnderlying[field];
3486
3486
  }
3487
3487
  }
3488
3488
  }
3489
- return chunkRKC3366I_cjs.createOsdkObject(sourceValue[chunkRKC3366I_cjs.ClientRef], objectDef, newProps);
3489
+ return chunkLESMKESG_cjs.createOsdkObject(sourceValue[chunkLESMKESG_cjs.ClientRef], objectDef, newProps);
3490
3490
  }
3491
3491
 
3492
3492
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4439,10 +4439,10 @@ var Store = class {
4439
4439
 
4440
4440
  // src/observable/ObservableClient.ts
4441
4441
  function createObservableClient(client) {
4442
- const tweakedClient = chunkRKC3366I_cjs.createClientFromContext({
4442
+ const tweakedClient = chunkLESMKESG_cjs.createClientFromContext({
4443
4443
  ...client[chunkO22QYBFF_cjs.additionalContext],
4444
4444
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkO22QYBFF_cjs.additionalContext].fetch, (headers) => {
4445
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkRKC3366I_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4445
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkLESMKESG_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4446
4446
  return headers;
4447
4447
  })
4448
4448
  });
@@ -4486,7 +4486,7 @@ function getOsdkConfig(ontologyRid) {
4486
4486
 
4487
4487
  Object.defineProperty(exports, "createClientWithTransaction", {
4488
4488
  enumerable: true,
4489
- get: function () { return chunkRKC3366I_cjs.createClientWithTransaction; }
4489
+ get: function () { return chunkLESMKESG_cjs.createClientWithTransaction; }
4490
4490
  });
4491
4491
  Object.defineProperty(exports, "augment", {
4492
4492
  enumerable: true,
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.8.0-beta.4"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.4"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.5"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.5"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client",
3
- "version": "2.8.0-beta.4",
3
+ "version": "2.8.0-beta.5",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -75,12 +75,12 @@
75
75
  "tiny-invariant": "^1.3.3",
76
76
  "type-fest": "^4.41.0",
77
77
  "ws": "^8.18.3",
78
- "@osdk/api": "2.8.0-beta.4",
79
- "@osdk/generator-converters": "2.8.0-beta.4",
80
- "@osdk/client.unstable": "2.8.0-beta.4",
78
+ "@osdk/api": "2.8.0-beta.5",
79
+ "@osdk/shared.client.impl": "~1.8.0-beta.1",
80
+ "@osdk/client.unstable": "2.8.0-beta.5",
81
81
  "@osdk/shared.net.errors": "~2.8.0-beta.1",
82
- "@osdk/shared.net.fetch": "~1.8.0-beta.1",
83
- "@osdk/shared.client.impl": "~1.8.0-beta.1"
82
+ "@osdk/generator-converters": "2.8.0-beta.5",
83
+ "@osdk/shared.net.fetch": "~1.8.0-beta.1"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@microsoft/api-documenter": "^7.26.32",
@@ -101,7 +101,7 @@
101
101
  "ts-expect": "^1.3.0",
102
102
  "typescript": "~5.5.4",
103
103
  "zod": "^3.25.76",
104
- "@osdk/client.test.ontology": "~2.8.0-beta.4",
104
+ "@osdk/client.test.ontology": "~2.8.0-beta.5",
105
105
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
106
106
  "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
107
107
  "@osdk/shared.test": "~2.8.0-beta.1"