@osdk/client 2.8.0-beta.24 → 2.8.0-beta.25

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 chunk3C3ITRZO_cjs = require('./chunk-3C3ITRZO.cjs');
3
+ var chunk3RY4ECUB_cjs = require('./chunk-3RY4ECUB.cjs');
4
4
  var chunkR7OP6A6S_cjs = require('./chunk-R7OP6A6S.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, chunk3C3ITRZO_cjs.USER_AGENT, fetchFn);
19
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunk3RY4ECUB_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 chunk3C3ITRZO_cjs.ActionValidationError; }
43
+ get: function () { return chunk3RY4ECUB_cjs.ActionValidationError; }
44
44
  });
45
45
  Object.defineProperty(exports, "createAttachmentUpload", {
46
46
  enumerable: true,
47
- get: function () { return chunk3C3ITRZO_cjs.createAttachmentUpload; }
47
+ get: function () { return chunk3RY4ECUB_cjs.createAttachmentUpload; }
48
48
  });
49
49
  Object.defineProperty(exports, "createClient", {
50
50
  enumerable: true,
51
- get: function () { return chunk3C3ITRZO_cjs.createClient; }
51
+ get: function () { return chunk3RY4ECUB_cjs.createClient; }
52
52
  });
53
53
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
54
54
  enumerable: true,
55
- get: function () { return chunk3C3ITRZO_cjs.createObjectSpecifierFromPrimaryKey; }
55
+ get: function () { return chunk3RY4ECUB_cjs.createObjectSpecifierFromPrimaryKey; }
56
56
  });
57
57
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
58
58
  enumerable: true,
59
- get: function () { return chunk3C3ITRZO_cjs.extractPrimaryKeyFromObjectSpecifier; }
59
+ get: function () { return chunk3RY4ECUB_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 chunk3C3ITRZO_cjs = require('../chunk-3C3ITRZO.cjs');
3
+ var chunk3RY4ECUB_cjs = require('../chunk-3RY4ECUB.cjs');
4
4
  var chunkR7OP6A6S_cjs = require('../chunk-R7OP6A6S.cjs');
5
5
  require('../chunk-GSVXEVM4.cjs');
6
6
  require('../chunk-D26YLHTV.cjs');
@@ -1533,7 +1533,7 @@ var FunctionParamsCanonicalizer = class {
1533
1533
  path.push("$:map_end");
1534
1534
  return arr;
1535
1535
  }
1536
- if (chunk3C3ITRZO_cjs.isObjectSpecifiersObject(value)) {
1536
+ if (chunk3RY4ECUB_cjs.isObjectSpecifiersObject(value)) {
1537
1537
  const objectType = value.$objectType ?? value.$apiName;
1538
1538
  path.push("$:osdk", objectType, value.$primaryKey);
1539
1539
  return {
@@ -1659,7 +1659,7 @@ var FunctionQuery = class extends Query {
1659
1659
  }).debug("calling _fetchAndStore");
1660
1660
  }
1661
1661
  try {
1662
- const result = await chunk3C3ITRZO_cjs.applyQuery(this.store.client[chunkR7OP6A6S_cjs.additionalContext], this.#queryDef, this.#params);
1662
+ const result = await chunk3RY4ECUB_cjs.applyQuery(this.store.client[chunkR7OP6A6S_cjs.additionalContext], this.#queryDef, this.#params);
1663
1663
  const executedAt = Date.now();
1664
1664
  this.store.batch({}, (batch) => {
1665
1665
  this.writeToStore({
@@ -3484,7 +3484,7 @@ var InterfaceListQuery = class extends ListQuery {
3484
3484
  }
3485
3485
  extractRelevantObjects(changes) {
3486
3486
  const matchesApiName = ([, object]) => {
3487
- return this.apiName in object[chunk3C3ITRZO_cjs.ObjectDefRef].interfaceMap;
3487
+ return this.apiName in object[chunk3RY4ECUB_cjs.ObjectDefRef].interfaceMap;
3488
3488
  };
3489
3489
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3490
3490
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3703,8 +3703,8 @@ function stripRdpFields(value, rdpFields) {
3703
3703
  if (rdpFields.size === 0) {
3704
3704
  return value;
3705
3705
  }
3706
- const underlying = value[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3707
- const objectDef = value[chunk3C3ITRZO_cjs.ObjectDefRef];
3706
+ const underlying = value[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3707
+ const objectDef = value[chunk3RY4ECUB_cjs.ObjectDefRef];
3708
3708
  const newProps = {
3709
3709
  $apiName: underlying.$apiName,
3710
3710
  $objectType: underlying.$objectType,
@@ -3717,7 +3717,7 @@ function stripRdpFields(value, rdpFields) {
3717
3717
  newProps[key] = underlying[key];
3718
3718
  }
3719
3719
  }
3720
- return chunk3C3ITRZO_cjs.createOsdkObject(value[chunk3C3ITRZO_cjs.ClientRef], objectDef, newProps);
3720
+ return chunk3RY4ECUB_cjs.createOsdkObject(value[chunk3RY4ECUB_cjs.ClientRef], objectDef, newProps);
3721
3721
  }
3722
3722
  function isSuperset(superset, subset) {
3723
3723
  for (const field of subset) {
@@ -3728,8 +3728,8 @@ function isSuperset(superset, subset) {
3728
3728
  return true;
3729
3729
  }
3730
3730
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3731
- const underlying = value[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3732
- const objectDef = value[chunk3C3ITRZO_cjs.ObjectDefRef];
3731
+ const underlying = value[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3732
+ const objectDef = value[chunk3RY4ECUB_cjs.ObjectDefRef];
3733
3733
  const newProps = {
3734
3734
  $apiName: underlying.$apiName,
3735
3735
  $objectType: underlying.$objectType,
@@ -3745,12 +3745,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3745
3745
  }
3746
3746
  }
3747
3747
  }
3748
- return chunk3C3ITRZO_cjs.createOsdkObject(value[chunk3C3ITRZO_cjs.ClientRef], objectDef, newProps);
3748
+ return chunk3RY4ECUB_cjs.createOsdkObject(value[chunk3RY4ECUB_cjs.ClientRef], objectDef, newProps);
3749
3749
  }
3750
3750
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
3751
- const sourceUnderlying = sourceValue[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3752
- const existingUnderlying = existingValue[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3753
- const objectDef = sourceValue[chunk3C3ITRZO_cjs.ObjectDefRef];
3751
+ const sourceUnderlying = sourceValue[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3752
+ const existingUnderlying = existingValue[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3753
+ const objectDef = sourceValue[chunk3RY4ECUB_cjs.ObjectDefRef];
3754
3754
  const newProps = {
3755
3755
  $apiName: sourceUnderlying.$apiName,
3756
3756
  $objectType: sourceUnderlying.$objectType,
@@ -3768,7 +3768,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
3768
3768
  newProps[key] = sourceUnderlying[key];
3769
3769
  }
3770
3770
  }
3771
- return chunk3C3ITRZO_cjs.createOsdkObject(sourceValue[chunk3C3ITRZO_cjs.ClientRef], objectDef, newProps);
3771
+ return chunk3RY4ECUB_cjs.createOsdkObject(sourceValue[chunk3RY4ECUB_cjs.ClientRef], objectDef, newProps);
3772
3772
  }
3773
3773
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3774
3774
  if (targetRdpFields.size === 0) {
@@ -3780,8 +3780,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3780
3780
  }
3781
3781
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3782
3782
  }
3783
- const sourceUnderlying = sourceValue[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3784
- const objectDef = sourceValue[chunk3C3ITRZO_cjs.ObjectDefRef];
3783
+ const sourceUnderlying = sourceValue[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3784
+ const objectDef = sourceValue[chunk3RY4ECUB_cjs.ObjectDefRef];
3785
3785
  const newProps = {
3786
3786
  $apiName: sourceUnderlying.$apiName,
3787
3787
  $objectType: sourceUnderlying.$objectType,
@@ -3795,7 +3795,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3795
3795
  }
3796
3796
  }
3797
3797
  if (targetCurrentValue) {
3798
- const targetUnderlying = targetCurrentValue[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
3798
+ const targetUnderlying = targetCurrentValue[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
3799
3799
  for (const field of targetRdpFields) {
3800
3800
  if (field in targetUnderlying) {
3801
3801
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -3804,7 +3804,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3804
3804
  }
3805
3805
  }
3806
3806
  }
3807
- return chunk3C3ITRZO_cjs.createOsdkObject(sourceValue[chunk3C3ITRZO_cjs.ClientRef], objectDef, newProps);
3807
+ return chunk3RY4ECUB_cjs.createOsdkObject(sourceValue[chunk3RY4ECUB_cjs.ClientRef], objectDef, newProps);
3808
3808
  }
3809
3809
 
3810
3810
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4202,7 +4202,7 @@ var ObjectsHelper = class extends AbstractHelper {
4202
4202
  pk,
4203
4203
  select
4204
4204
  } = options;
4205
- const defType = chunk3C3ITRZO_cjs.getDefType(options.apiName);
4205
+ const defType = chunk3RY4ECUB_cjs.getDefType(options.apiName);
4206
4206
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0);
4207
4207
  return this.store.queries.get(objectCacheKey, () => new ObjectQuery(this.store, this.store.subjects.get(objectCacheKey), apiName, pk, objectCacheKey, {
4208
4208
  dedupeInterval: 0
@@ -4240,7 +4240,7 @@ var ObjectsHelper = class extends AbstractHelper {
4240
4240
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4241
4241
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4242
4242
  if (expectedRdpFields.size > 0) {
4243
- const underlying = valueToWrite[chunk3C3ITRZO_cjs.UnderlyingOsdkObject];
4243
+ const underlying = valueToWrite[chunk3RY4ECUB_cjs.UnderlyingOsdkObject];
4244
4244
  const actualRdpFields = /* @__PURE__ */ new Set();
4245
4245
  for (const field of expectedRdpFields) {
4246
4246
  if (underlying && field in underlying) {
@@ -4941,10 +4941,10 @@ var Store = class {
4941
4941
 
4942
4942
  // src/observable/ObservableClient.ts
4943
4943
  function createObservableClient(client) {
4944
- const tweakedClient = chunk3C3ITRZO_cjs.createClientFromContext({
4944
+ const tweakedClient = chunk3RY4ECUB_cjs.createClientFromContext({
4945
4945
  ...client[chunkR7OP6A6S_cjs.additionalContext],
4946
4946
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkR7OP6A6S_cjs.additionalContext].fetch, (headers) => {
4947
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk3C3ITRZO_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4947
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk3RY4ECUB_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4948
4948
  return headers;
4949
4949
  })
4950
4950
  });
@@ -4987,7 +4987,7 @@ function getOsdkConfig(ontologyRid) {
4987
4987
 
4988
4988
  Object.defineProperty(exports, "createClientWithTransaction", {
4989
4989
  enumerable: true,
4990
- get: function () { return chunk3C3ITRZO_cjs.createClientWithTransaction; }
4990
+ get: function () { return chunk3RY4ECUB_cjs.createClientWithTransaction; }
4991
4991
  });
4992
4992
  Object.defineProperty(exports, "augment", {
4993
4993
  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.24"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.24"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.25"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.25"}`;
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.24",
3
+ "version": "2.8.0-beta.25",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -71,11 +71,11 @@
71
71
  "tiny-invariant": "^1.3.3",
72
72
  "type-fest": "^4.41.0",
73
73
  "ws": "^8.18.3",
74
- "@osdk/client.unstable": "2.8.0-beta.24",
75
- "@osdk/generator-converters": "2.8.0-beta.24",
76
- "@osdk/api": "2.8.0-beta.24",
77
- "@osdk/shared.client.impl": "~1.8.0-beta.2",
74
+ "@osdk/api": "2.8.0-beta.25",
75
+ "@osdk/client.unstable": "2.8.0-beta.25",
76
+ "@osdk/generator-converters": "2.8.0-beta.25",
78
77
  "@osdk/shared.net.errors": "~2.8.0-beta.2",
78
+ "@osdk/shared.client.impl": "~1.8.0-beta.2",
79
79
  "@osdk/shared.net.fetch": "~1.8.0-beta.3"
80
80
  },
81
81
  "devDependencies": {
@@ -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.24",
101
100
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
101
+ "@osdk/client.test.ontology": "~2.8.0-beta.25",
102
102
  "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
103
103
  "@osdk/shared.test": "~2.8.0-beta.3"
104
104
  },