@osdk/client 2.8.0-beta.18 → 2.8.0-beta.19

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 chunkWZK2WYYS_cjs = require('./chunk-WZK2WYYS.cjs');
3
+ var chunkQA6ZDTCC_cjs = require('./chunk-QA6ZDTCC.cjs');
4
4
  var chunkZVFNBJ2F_cjs = require('./chunk-ZVFNBJ2F.cjs');
5
5
  require('./chunk-GSVXEVM4.cjs');
6
6
  require('./chunk-D26YLHTV.cjs');
@@ -16,7 +16,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
16
16
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
17
17
 
18
18
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
19
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkWZK2WYYS_cjs.USER_AGENT, fetchFn);
19
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkQA6ZDTCC_cjs.USER_AGENT, fetchFn);
20
20
  }
21
21
  var isoRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
22
22
  var extractDate = (dateTime) => {
@@ -40,23 +40,23 @@ var extractDateFromIsoString = (dateTime) => {
40
40
 
41
41
  Object.defineProperty(exports, "ActionValidationError", {
42
42
  enumerable: true,
43
- get: function () { return chunkWZK2WYYS_cjs.ActionValidationError; }
43
+ get: function () { return chunkQA6ZDTCC_cjs.ActionValidationError; }
44
44
  });
45
45
  Object.defineProperty(exports, "createAttachmentUpload", {
46
46
  enumerable: true,
47
- get: function () { return chunkWZK2WYYS_cjs.createAttachmentUpload; }
47
+ get: function () { return chunkQA6ZDTCC_cjs.createAttachmentUpload; }
48
48
  });
49
49
  Object.defineProperty(exports, "createClient", {
50
50
  enumerable: true,
51
- get: function () { return chunkWZK2WYYS_cjs.createClient; }
51
+ get: function () { return chunkQA6ZDTCC_cjs.createClient; }
52
52
  });
53
53
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
54
54
  enumerable: true,
55
- get: function () { return chunkWZK2WYYS_cjs.createObjectSpecifierFromPrimaryKey; }
55
+ get: function () { return chunkQA6ZDTCC_cjs.createObjectSpecifierFromPrimaryKey; }
56
56
  });
57
57
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
58
58
  enumerable: true,
59
- get: function () { return chunkWZK2WYYS_cjs.extractPrimaryKeyFromObjectSpecifier; }
59
+ get: function () { return chunkQA6ZDTCC_cjs.extractPrimaryKeyFromObjectSpecifier; }
60
60
  });
61
61
  Object.defineProperty(exports, "getWireObjectSet", {
62
62
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWZK2WYYS_cjs = require('../chunk-WZK2WYYS.cjs');
3
+ var chunkQA6ZDTCC_cjs = require('../chunk-QA6ZDTCC.cjs');
4
4
  var chunkZVFNBJ2F_cjs = require('../chunk-ZVFNBJ2F.cjs');
5
5
  require('../chunk-GSVXEVM4.cjs');
6
6
  require('../chunk-D26YLHTV.cjs');
@@ -1521,7 +1521,7 @@ var FunctionParamsCanonicalizer = class {
1521
1521
  path.push("$:map_end");
1522
1522
  return arr;
1523
1523
  }
1524
- if (chunkWZK2WYYS_cjs.isObjectSpecifiersObject(value)) {
1524
+ if (chunkQA6ZDTCC_cjs.isObjectSpecifiersObject(value)) {
1525
1525
  const objectType = value.$objectType ?? value.$apiName;
1526
1526
  path.push("$:osdk", objectType, value.$primaryKey);
1527
1527
  return {
@@ -1647,7 +1647,7 @@ var FunctionQuery = class extends Query {
1647
1647
  }).debug("calling _fetchAndStore");
1648
1648
  }
1649
1649
  try {
1650
- const result = await chunkWZK2WYYS_cjs.applyQuery(this.store.client[chunkZVFNBJ2F_cjs.additionalContext], this.#queryDef, this.#params);
1650
+ const result = await chunkQA6ZDTCC_cjs.applyQuery(this.store.client[chunkZVFNBJ2F_cjs.additionalContext], this.#queryDef, this.#params);
1651
1651
  const executedAt = Date.now();
1652
1652
  this.store.batch({}, (batch) => {
1653
1653
  this.writeToStore({
@@ -3456,7 +3456,7 @@ var InterfaceListQuery = class extends ListQuery {
3456
3456
  }
3457
3457
  extractRelevantObjects(changes) {
3458
3458
  const matchesApiName = ([, object]) => {
3459
- return this.apiName in object[chunkWZK2WYYS_cjs.ObjectDefRef].interfaceMap;
3459
+ return this.apiName in object[chunkQA6ZDTCC_cjs.ObjectDefRef].interfaceMap;
3460
3460
  };
3461
3461
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3462
3462
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3679,8 +3679,8 @@ function stripRdpFields(value, rdpFields) {
3679
3679
  if (rdpFields.size === 0) {
3680
3680
  return value;
3681
3681
  }
3682
- const underlying = value[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3683
- const objectDef = value[chunkWZK2WYYS_cjs.ObjectDefRef];
3682
+ const underlying = value[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3683
+ const objectDef = value[chunkQA6ZDTCC_cjs.ObjectDefRef];
3684
3684
  const newProps = {
3685
3685
  $apiName: underlying.$apiName,
3686
3686
  $objectType: underlying.$objectType,
@@ -3693,7 +3693,7 @@ function stripRdpFields(value, rdpFields) {
3693
3693
  newProps[key] = underlying[key];
3694
3694
  }
3695
3695
  }
3696
- return chunkWZK2WYYS_cjs.createOsdkObject(value[chunkWZK2WYYS_cjs.ClientRef], objectDef, newProps);
3696
+ return chunkQA6ZDTCC_cjs.createOsdkObject(value[chunkQA6ZDTCC_cjs.ClientRef], objectDef, newProps);
3697
3697
  }
3698
3698
  function isSuperset(superset, subset) {
3699
3699
  for (const field of subset) {
@@ -3704,8 +3704,8 @@ function isSuperset(superset, subset) {
3704
3704
  return true;
3705
3705
  }
3706
3706
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3707
- const underlying = value[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3708
- const objectDef = value[chunkWZK2WYYS_cjs.ObjectDefRef];
3707
+ const underlying = value[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3708
+ const objectDef = value[chunkQA6ZDTCC_cjs.ObjectDefRef];
3709
3709
  const newProps = {
3710
3710
  $apiName: underlying.$apiName,
3711
3711
  $objectType: underlying.$objectType,
@@ -3721,12 +3721,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3721
3721
  }
3722
3722
  }
3723
3723
  }
3724
- return chunkWZK2WYYS_cjs.createOsdkObject(value[chunkWZK2WYYS_cjs.ClientRef], objectDef, newProps);
3724
+ return chunkQA6ZDTCC_cjs.createOsdkObject(value[chunkQA6ZDTCC_cjs.ClientRef], objectDef, newProps);
3725
3725
  }
3726
3726
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
3727
- const sourceUnderlying = sourceValue[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3728
- const existingUnderlying = existingValue[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3729
- const objectDef = sourceValue[chunkWZK2WYYS_cjs.ObjectDefRef];
3727
+ const sourceUnderlying = sourceValue[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3728
+ const existingUnderlying = existingValue[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3729
+ const objectDef = sourceValue[chunkQA6ZDTCC_cjs.ObjectDefRef];
3730
3730
  const newProps = {
3731
3731
  $apiName: sourceUnderlying.$apiName,
3732
3732
  $objectType: sourceUnderlying.$objectType,
@@ -3744,7 +3744,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
3744
3744
  newProps[key] = sourceUnderlying[key];
3745
3745
  }
3746
3746
  }
3747
- return chunkWZK2WYYS_cjs.createOsdkObject(sourceValue[chunkWZK2WYYS_cjs.ClientRef], objectDef, newProps);
3747
+ return chunkQA6ZDTCC_cjs.createOsdkObject(sourceValue[chunkQA6ZDTCC_cjs.ClientRef], objectDef, newProps);
3748
3748
  }
3749
3749
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3750
3750
  if (targetRdpFields.size === 0) {
@@ -3756,8 +3756,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3756
3756
  }
3757
3757
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3758
3758
  }
3759
- const sourceUnderlying = sourceValue[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3760
- const objectDef = sourceValue[chunkWZK2WYYS_cjs.ObjectDefRef];
3759
+ const sourceUnderlying = sourceValue[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3760
+ const objectDef = sourceValue[chunkQA6ZDTCC_cjs.ObjectDefRef];
3761
3761
  const newProps = {
3762
3762
  $apiName: sourceUnderlying.$apiName,
3763
3763
  $objectType: sourceUnderlying.$objectType,
@@ -3771,7 +3771,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3771
3771
  }
3772
3772
  }
3773
3773
  if (targetCurrentValue) {
3774
- const targetUnderlying = targetCurrentValue[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
3774
+ const targetUnderlying = targetCurrentValue[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
3775
3775
  for (const field of targetRdpFields) {
3776
3776
  if (field in targetUnderlying) {
3777
3777
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -3780,7 +3780,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3780
3780
  }
3781
3781
  }
3782
3782
  }
3783
- return chunkWZK2WYYS_cjs.createOsdkObject(sourceValue[chunkWZK2WYYS_cjs.ClientRef], objectDef, newProps);
3783
+ return chunkQA6ZDTCC_cjs.createOsdkObject(sourceValue[chunkQA6ZDTCC_cjs.ClientRef], objectDef, newProps);
3784
3784
  }
3785
3785
 
3786
3786
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4178,7 +4178,7 @@ var ObjectsHelper = class extends AbstractHelper {
4178
4178
  pk,
4179
4179
  select
4180
4180
  } = options;
4181
- const defType = chunkWZK2WYYS_cjs.getDefType(options.apiName);
4181
+ const defType = chunkQA6ZDTCC_cjs.getDefType(options.apiName);
4182
4182
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0);
4183
4183
  return this.store.queries.get(objectCacheKey, () => new ObjectQuery(this.store, this.store.subjects.get(objectCacheKey), apiName, pk, objectCacheKey, {
4184
4184
  dedupeInterval: 0
@@ -4216,7 +4216,7 @@ var ObjectsHelper = class extends AbstractHelper {
4216
4216
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4217
4217
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4218
4218
  if (expectedRdpFields.size > 0) {
4219
- const underlying = valueToWrite[chunkWZK2WYYS_cjs.UnderlyingOsdkObject];
4219
+ const underlying = valueToWrite[chunkQA6ZDTCC_cjs.UnderlyingOsdkObject];
4220
4220
  const actualRdpFields = /* @__PURE__ */ new Set();
4221
4221
  for (const field of expectedRdpFields) {
4222
4222
  if (underlying && field in underlying) {
@@ -4917,10 +4917,10 @@ var Store = class {
4917
4917
 
4918
4918
  // src/observable/ObservableClient.ts
4919
4919
  function createObservableClient(client) {
4920
- const tweakedClient = chunkWZK2WYYS_cjs.createClientFromContext({
4920
+ const tweakedClient = chunkQA6ZDTCC_cjs.createClientFromContext({
4921
4921
  ...client[chunkZVFNBJ2F_cjs.additionalContext],
4922
4922
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkZVFNBJ2F_cjs.additionalContext].fetch, (headers) => {
4923
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkWZK2WYYS_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4923
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkQA6ZDTCC_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4924
4924
  return headers;
4925
4925
  })
4926
4926
  });
@@ -4963,7 +4963,7 @@ function getOsdkConfig(ontologyRid) {
4963
4963
 
4964
4964
  Object.defineProperty(exports, "createClientWithTransaction", {
4965
4965
  enumerable: true,
4966
- get: function () { return chunkWZK2WYYS_cjs.createClientWithTransaction; }
4966
+ get: function () { return chunkQA6ZDTCC_cjs.createClientWithTransaction; }
4967
4967
  });
4968
4968
  Object.defineProperty(exports, "augment", {
4969
4969
  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.18"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.18"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.19"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.19"}`;
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.18",
3
+ "version": "2.8.0-beta.19",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -71,10 +71,10 @@
71
71
  "tiny-invariant": "^1.3.3",
72
72
  "type-fest": "^4.41.0",
73
73
  "ws": "^8.18.3",
74
- "@osdk/api": "2.8.0-beta.18",
75
- "@osdk/client.unstable": "2.8.0-beta.18",
76
- "@osdk/generator-converters": "2.8.0-beta.18",
74
+ "@osdk/api": "2.8.0-beta.19",
75
+ "@osdk/client.unstable": "2.8.0-beta.19",
77
76
  "@osdk/shared.client.impl": "~1.8.0-beta.2",
77
+ "@osdk/generator-converters": "2.8.0-beta.19",
78
78
  "@osdk/shared.net.fetch": "~1.8.0-beta.3",
79
79
  "@osdk/shared.net.errors": "~2.8.0-beta.2"
80
80
  },
@@ -97,8 +97,8 @@
97
97
  "ts-expect": "^1.3.0",
98
98
  "typescript": "~5.5.4",
99
99
  "zod": "^3.25.76",
100
- "@osdk/client.test.ontology": "~2.8.0-beta.18",
101
100
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
101
+ "@osdk/client.test.ontology": "~2.8.0-beta.19",
102
102
  "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
103
103
  "@osdk/shared.test": "~2.8.0-beta.3"
104
104
  },