@osdk/client 2.8.0-beta.7 → 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 chunk7K7TSF7C_cjs = require('./chunk-7K7TSF7C.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, chunk7K7TSF7C_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 chunk7K7TSF7C_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 chunk7K7TSF7C_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 chunk7K7TSF7C_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 chunk7K7TSF7C_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 chunk7K7TSF7C_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 chunk7K7TSF7C_cjs = require('../chunk-7K7TSF7C.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');
@@ -1328,7 +1328,7 @@ var FunctionParamsCanonicalizer = class {
1328
1328
  path.push("$:map_end");
1329
1329
  return arr;
1330
1330
  }
1331
- if (chunk7K7TSF7C_cjs.isObjectSpecifiersObject(value)) {
1331
+ if (chunkHJBHA4RM_cjs.isObjectSpecifiersObject(value)) {
1332
1332
  const objectType = value.$objectType ?? value.$apiName;
1333
1333
  path.push("$:osdk", objectType, value.$primaryKey);
1334
1334
  return {
@@ -1457,7 +1457,7 @@ var FunctionQuery = class extends Query {
1457
1457
  }).debug("calling _fetchAndStore");
1458
1458
  }
1459
1459
  try {
1460
- const result = await chunk7K7TSF7C_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);
1461
1461
  const executedAt = Date.now();
1462
1462
  this.store.batch({}, (batch) => {
1463
1463
  this.writeToStore({
@@ -3322,7 +3322,7 @@ var InterfaceListQuery = class extends ListQuery {
3322
3322
  }
3323
3323
  extractRelevantObjects(changes) {
3324
3324
  const matchesApiName = ([, object]) => {
3325
- return this.apiName in object[chunk7K7TSF7C_cjs.ObjectDefRef].interfaceMap;
3325
+ return this.apiName in object[chunkHJBHA4RM_cjs.ObjectDefRef].interfaceMap;
3326
3326
  };
3327
3327
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3328
3328
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3537,8 +3537,8 @@ function stripRdpFields(value, rdpFields) {
3537
3537
  if (rdpFields.size === 0) {
3538
3538
  return value;
3539
3539
  }
3540
- const underlying = value[chunk7K7TSF7C_cjs.UnderlyingOsdkObject];
3541
- const objectDef = value[chunk7K7TSF7C_cjs.ObjectDefRef];
3540
+ const underlying = value[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3541
+ const objectDef = value[chunkHJBHA4RM_cjs.ObjectDefRef];
3542
3542
  const newProps = {
3543
3543
  $apiName: underlying.$apiName,
3544
3544
  $objectType: underlying.$objectType,
@@ -3551,7 +3551,7 @@ function stripRdpFields(value, rdpFields) {
3551
3551
  newProps[key] = underlying[key];
3552
3552
  }
3553
3553
  }
3554
- return chunk7K7TSF7C_cjs.createOsdkObject(value[chunk7K7TSF7C_cjs.ClientRef], objectDef, newProps);
3554
+ return chunkHJBHA4RM_cjs.createOsdkObject(value[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3555
3555
  }
3556
3556
  function isSuperset(superset, subset) {
3557
3557
  for (const field of subset) {
@@ -3562,8 +3562,8 @@ function isSuperset(superset, subset) {
3562
3562
  return true;
3563
3563
  }
3564
3564
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3565
- const underlying = value[chunk7K7TSF7C_cjs.UnderlyingOsdkObject];
3566
- const objectDef = value[chunk7K7TSF7C_cjs.ObjectDefRef];
3565
+ const underlying = value[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3566
+ const objectDef = value[chunkHJBHA4RM_cjs.ObjectDefRef];
3567
3567
  const newProps = {
3568
3568
  $apiName: underlying.$apiName,
3569
3569
  $objectType: underlying.$objectType,
@@ -3579,7 +3579,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3579
3579
  }
3580
3580
  }
3581
3581
  }
3582
- return chunk7K7TSF7C_cjs.createOsdkObject(value[chunk7K7TSF7C_cjs.ClientRef], objectDef, newProps);
3582
+ return chunkHJBHA4RM_cjs.createOsdkObject(value[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3583
3583
  }
3584
3584
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3585
3585
  if (targetRdpFields.size === 0) {
@@ -3591,8 +3591,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3591
3591
  }
3592
3592
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3593
3593
  }
3594
- const sourceUnderlying = sourceValue[chunk7K7TSF7C_cjs.UnderlyingOsdkObject];
3595
- const objectDef = sourceValue[chunk7K7TSF7C_cjs.ObjectDefRef];
3594
+ const sourceUnderlying = sourceValue[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3595
+ const objectDef = sourceValue[chunkHJBHA4RM_cjs.ObjectDefRef];
3596
3596
  const newProps = {
3597
3597
  $apiName: sourceUnderlying.$apiName,
3598
3598
  $objectType: sourceUnderlying.$objectType,
@@ -3606,7 +3606,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3606
3606
  }
3607
3607
  }
3608
3608
  if (targetCurrentValue) {
3609
- const targetUnderlying = targetCurrentValue[chunk7K7TSF7C_cjs.UnderlyingOsdkObject];
3609
+ const targetUnderlying = targetCurrentValue[chunkHJBHA4RM_cjs.UnderlyingOsdkObject];
3610
3610
  for (const field of targetRdpFields) {
3611
3611
  if (field in targetUnderlying) {
3612
3612
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -3615,7 +3615,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3615
3615
  }
3616
3616
  }
3617
3617
  }
3618
- return chunk7K7TSF7C_cjs.createOsdkObject(sourceValue[chunk7K7TSF7C_cjs.ClientRef], objectDef, newProps);
3618
+ return chunkHJBHA4RM_cjs.createOsdkObject(sourceValue[chunkHJBHA4RM_cjs.ClientRef], objectDef, newProps);
3619
3619
  }
3620
3620
 
3621
3621
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4595,10 +4595,10 @@ var Store = class {
4595
4595
 
4596
4596
  // src/observable/ObservableClient.ts
4597
4597
  function createObservableClient(client) {
4598
- const tweakedClient = chunk7K7TSF7C_cjs.createClientFromContext({
4598
+ const tweakedClient = chunkHJBHA4RM_cjs.createClientFromContext({
4599
4599
  ...client[chunkO22QYBFF_cjs.additionalContext],
4600
4600
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkO22QYBFF_cjs.additionalContext].fetch, (headers) => {
4601
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk7K7TSF7C_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(" "));
4602
4602
  return headers;
4603
4603
  })
4604
4604
  });
@@ -4642,7 +4642,7 @@ function getOsdkConfig(ontologyRid) {
4642
4642
 
4643
4643
  Object.defineProperty(exports, "createClientWithTransaction", {
4644
4644
  enumerable: true,
4645
- get: function () { return chunk7K7TSF7C_cjs.createClientWithTransaction; }
4645
+ get: function () { return chunkHJBHA4RM_cjs.createClientWithTransaction; }
4646
4646
  });
4647
4647
  Object.defineProperty(exports, "augment", {
4648
4648
  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.7"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.7"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.8"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.8"}`;
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.7",
3
+ "version": "2.8.0-beta.8",
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.7",
79
- "@osdk/client.unstable": "2.8.0-beta.7",
80
- "@osdk/generator-converters": "2.8.0-beta.7",
78
+ "@osdk/api": "2.8.0-beta.8",
79
+ "@osdk/client.unstable": "2.8.0-beta.8",
81
80
  "@osdk/shared.client.impl": "~1.8.0-beta.1",
82
- "@osdk/shared.net.fetch": "~1.8.0-beta.1",
83
- "@osdk/shared.net.errors": "~2.8.0-beta.1"
81
+ "@osdk/generator-converters": "2.8.0-beta.8",
82
+ "@osdk/shared.net.errors": "~2.8.0-beta.1",
83
+ "@osdk/shared.net.fetch": "~1.8.0-beta.1"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@microsoft/api-documenter": "^7.26.32",
@@ -101,8 +101,8 @@
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.8",
104
105
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
105
- "@osdk/client.test.ontology": "~2.8.0-beta.7",
106
106
  "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
107
107
  "@osdk/shared.test": "~2.8.0-beta.1"
108
108
  },