@osdk/client 2.8.0-beta.10 → 2.8.0-beta.11

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 chunk6VOFZIIJ_cjs = require('./chunk-6VOFZIIJ.cjs');
3
+ var chunk2MMKVFIE_cjs = require('./chunk-2MMKVFIE.cjs');
4
4
  require('./chunk-YVZM2JPW.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, chunk6VOFZIIJ_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunk2MMKVFIE_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 chunk6VOFZIIJ_cjs.ActionValidationError; }
48
+ get: function () { return chunk2MMKVFIE_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunk6VOFZIIJ_cjs.createAttachmentUpload; }
52
+ get: function () { return chunk2MMKVFIE_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunk6VOFZIIJ_cjs.createClient; }
56
+ get: function () { return chunk2MMKVFIE_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunk6VOFZIIJ_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunk2MMKVFIE_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunk6VOFZIIJ_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunk2MMKVFIE_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 chunk6VOFZIIJ_cjs = require('../chunk-6VOFZIIJ.cjs');
3
+ var chunk2MMKVFIE_cjs = require('../chunk-2MMKVFIE.cjs');
4
4
  var chunkYVZM2JPW_cjs = require('../chunk-YVZM2JPW.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('../chunk-LDTMSHUZ.cjs');
6
6
  var trie = require('@wry/trie');
@@ -1550,7 +1550,7 @@ var FunctionParamsCanonicalizer = class {
1550
1550
  path.push("$:map_end");
1551
1551
  return arr;
1552
1552
  }
1553
- if (chunk6VOFZIIJ_cjs.isObjectSpecifiersObject(value)) {
1553
+ if (chunk2MMKVFIE_cjs.isObjectSpecifiersObject(value)) {
1554
1554
  const objectType = value.$objectType ?? value.$apiName;
1555
1555
  path.push("$:osdk", objectType, value.$primaryKey);
1556
1556
  return {
@@ -1679,7 +1679,7 @@ var FunctionQuery = class extends Query {
1679
1679
  }).debug("calling _fetchAndStore");
1680
1680
  }
1681
1681
  try {
1682
- const result = await chunk6VOFZIIJ_cjs.applyQuery(this.store.client[chunkYVZM2JPW_cjs.additionalContext], this.#queryDef, this.#params);
1682
+ const result = await chunk2MMKVFIE_cjs.applyQuery(this.store.client[chunkYVZM2JPW_cjs.additionalContext], this.#queryDef, this.#params);
1683
1683
  const executedAt = Date.now();
1684
1684
  this.store.batch({}, (batch) => {
1685
1685
  this.writeToStore({
@@ -3487,7 +3487,7 @@ var InterfaceListQuery = class extends ListQuery {
3487
3487
  }
3488
3488
  extractRelevantObjects(changes) {
3489
3489
  const matchesApiName = ([, object]) => {
3490
- return this.apiName in object[chunk6VOFZIIJ_cjs.ObjectDefRef].interfaceMap;
3490
+ return this.apiName in object[chunk2MMKVFIE_cjs.ObjectDefRef].interfaceMap;
3491
3491
  };
3492
3492
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3493
3493
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3691,8 +3691,8 @@ function stripRdpFields(value, rdpFields) {
3691
3691
  if (rdpFields.size === 0) {
3692
3692
  return value;
3693
3693
  }
3694
- const underlying = value[chunk6VOFZIIJ_cjs.UnderlyingOsdkObject];
3695
- const objectDef = value[chunk6VOFZIIJ_cjs.ObjectDefRef];
3694
+ const underlying = value[chunk2MMKVFIE_cjs.UnderlyingOsdkObject];
3695
+ const objectDef = value[chunk2MMKVFIE_cjs.ObjectDefRef];
3696
3696
  const newProps = {
3697
3697
  $apiName: underlying.$apiName,
3698
3698
  $objectType: underlying.$objectType,
@@ -3705,7 +3705,7 @@ function stripRdpFields(value, rdpFields) {
3705
3705
  newProps[key] = underlying[key];
3706
3706
  }
3707
3707
  }
3708
- return chunk6VOFZIIJ_cjs.createOsdkObject(value[chunk6VOFZIIJ_cjs.ClientRef], objectDef, newProps);
3708
+ return chunk2MMKVFIE_cjs.createOsdkObject(value[chunk2MMKVFIE_cjs.ClientRef], objectDef, newProps);
3709
3709
  }
3710
3710
  function isSuperset(superset, subset) {
3711
3711
  for (const field of subset) {
@@ -3716,8 +3716,8 @@ function isSuperset(superset, subset) {
3716
3716
  return true;
3717
3717
  }
3718
3718
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3719
- const underlying = value[chunk6VOFZIIJ_cjs.UnderlyingOsdkObject];
3720
- const objectDef = value[chunk6VOFZIIJ_cjs.ObjectDefRef];
3719
+ const underlying = value[chunk2MMKVFIE_cjs.UnderlyingOsdkObject];
3720
+ const objectDef = value[chunk2MMKVFIE_cjs.ObjectDefRef];
3721
3721
  const newProps = {
3722
3722
  $apiName: underlying.$apiName,
3723
3723
  $objectType: underlying.$objectType,
@@ -3733,7 +3733,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3733
3733
  }
3734
3734
  }
3735
3735
  }
3736
- return chunk6VOFZIIJ_cjs.createOsdkObject(value[chunk6VOFZIIJ_cjs.ClientRef], objectDef, newProps);
3736
+ return chunk2MMKVFIE_cjs.createOsdkObject(value[chunk2MMKVFIE_cjs.ClientRef], objectDef, newProps);
3737
3737
  }
3738
3738
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3739
3739
  if (targetRdpFields.size === 0) {
@@ -3745,8 +3745,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3745
3745
  }
3746
3746
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3747
3747
  }
3748
- const sourceUnderlying = sourceValue[chunk6VOFZIIJ_cjs.UnderlyingOsdkObject];
3749
- const objectDef = sourceValue[chunk6VOFZIIJ_cjs.ObjectDefRef];
3748
+ const sourceUnderlying = sourceValue[chunk2MMKVFIE_cjs.UnderlyingOsdkObject];
3749
+ const objectDef = sourceValue[chunk2MMKVFIE_cjs.ObjectDefRef];
3750
3750
  const newProps = {
3751
3751
  $apiName: sourceUnderlying.$apiName,
3752
3752
  $objectType: sourceUnderlying.$objectType,
@@ -3760,7 +3760,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3760
3760
  }
3761
3761
  }
3762
3762
  if (targetCurrentValue) {
3763
- const targetUnderlying = targetCurrentValue[chunk6VOFZIIJ_cjs.UnderlyingOsdkObject];
3763
+ const targetUnderlying = targetCurrentValue[chunk2MMKVFIE_cjs.UnderlyingOsdkObject];
3764
3764
  for (const field of targetRdpFields) {
3765
3765
  if (field in targetUnderlying) {
3766
3766
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -3769,7 +3769,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3769
3769
  }
3770
3770
  }
3771
3771
  }
3772
- return chunk6VOFZIIJ_cjs.createOsdkObject(sourceValue[chunk6VOFZIIJ_cjs.ClientRef], objectDef, newProps);
3772
+ return chunk2MMKVFIE_cjs.createOsdkObject(sourceValue[chunk2MMKVFIE_cjs.ClientRef], objectDef, newProps);
3773
3773
  }
3774
3774
 
3775
3775
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4132,7 +4132,7 @@ var ObjectsHelper = class extends AbstractHelper {
4132
4132
  const {
4133
4133
  pk
4134
4134
  } = options;
4135
- const defType = chunk6VOFZIIJ_cjs.getDefType(options.apiName);
4135
+ const defType = chunk2MMKVFIE_cjs.getDefType(options.apiName);
4136
4136
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0);
4137
4137
  return this.store.queries.get(objectCacheKey, () => new ObjectQuery(this.store, this.store.subjects.get(objectCacheKey), apiName, pk, objectCacheKey, {
4138
4138
  dedupeInterval: 0
@@ -4830,10 +4830,10 @@ var Store = class {
4830
4830
 
4831
4831
  // src/observable/ObservableClient.ts
4832
4832
  function createObservableClient(client) {
4833
- const tweakedClient = chunk6VOFZIIJ_cjs.createClientFromContext({
4833
+ const tweakedClient = chunk2MMKVFIE_cjs.createClientFromContext({
4834
4834
  ...client[chunkYVZM2JPW_cjs.additionalContext],
4835
4835
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkYVZM2JPW_cjs.additionalContext].fetch, (headers) => {
4836
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk6VOFZIIJ_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4836
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk2MMKVFIE_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4837
4837
  return headers;
4838
4838
  })
4839
4839
  });
@@ -4877,7 +4877,7 @@ function getOsdkConfig(ontologyRid) {
4877
4877
 
4878
4878
  Object.defineProperty(exports, "createClientWithTransaction", {
4879
4879
  enumerable: true,
4880
- get: function () { return chunk6VOFZIIJ_cjs.createClientWithTransaction; }
4880
+ get: function () { return chunk2MMKVFIE_cjs.createClientWithTransaction; }
4881
4881
  });
4882
4882
  Object.defineProperty(exports, "augment", {
4883
4883
  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.10"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.10"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.11"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.11"}`;
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.10",
3
+ "version": "2.8.0-beta.11",
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.10",
79
- "@osdk/client.unstable": "2.8.0-beta.10",
78
+ "@osdk/api": "2.8.0-beta.11",
79
+ "@osdk/generator-converters": "2.8.0-beta.11",
80
+ "@osdk/client.unstable": "2.8.0-beta.11",
80
81
  "@osdk/shared.client.impl": "~1.8.0-beta.1",
81
- "@osdk/generator-converters": "2.8.0-beta.10",
82
- "@osdk/shared.net.fetch": "~1.8.0-beta.1",
83
- "@osdk/shared.net.errors": "~2.8.0-beta.1"
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,10 +101,10 @@
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.10",
104
+ "@osdk/client.test.ontology": "~2.8.0-beta.11",
105
105
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
106
- "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
107
- "@osdk/shared.test": "~2.8.0-beta.2"
106
+ "@osdk/shared.test": "~2.8.0-beta.2",
107
+ "@osdk/monorepo.tsconfig": "~0.7.0-beta.1"
108
108
  },
109
109
  "publishConfig": {
110
110
  "access": "public"