@osdk/client 2.8.0-beta.1 → 2.8.0-beta.2

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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk7543GRIE_cjs = require('./chunk-7543GRIE.cjs');
4
- require('./chunk-VVKEXIIO.cjs');
3
+ var chunkII23HDVV_cjs = require('./chunk-II23HDVV.cjs');
4
+ require('./chunk-XUFF6M4V.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
6
6
  var api = require('@osdk/api');
7
7
  var shared_net_errors = require('@osdk/shared.net.errors');
@@ -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, chunk7543GRIE_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkII23HDVV_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 chunk7543GRIE_cjs.ActionValidationError; }
48
+ get: function () { return chunkII23HDVV_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunk7543GRIE_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkII23HDVV_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunk7543GRIE_cjs.createClient; }
56
+ get: function () { return chunkII23HDVV_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunk7543GRIE_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkII23HDVV_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunk7543GRIE_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkII23HDVV_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 chunkVVKEXIIO_cjs = require('../chunk-VVKEXIIO.cjs');
3
+ var chunkXUFF6M4V_cjs = require('../chunk-XUFF6M4V.cjs');
4
4
  var chunkLDTMSHUZ_cjs = require('../chunk-LDTMSHUZ.cjs');
5
5
 
6
6
  // src/public/internal.ts
@@ -9,8 +9,8 @@ chunkLDTMSHUZ_cjs.init_cjs_shims();
9
9
  // src/public-utils/createAndFetchTempObjectSetRid.ts
10
10
  chunkLDTMSHUZ_cjs.init_cjs_shims();
11
11
  async function createAndFetchTempObjectSetRid(client, objectSet) {
12
- const response = await chunkVVKEXIIO_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkVVKEXIIO_cjs.additionalContext].ontologyRid, {
13
- objectSet: chunkVVKEXIIO_cjs.getWireObjectSet(objectSet)
12
+ const response = await chunkXUFF6M4V_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkXUFF6M4V_cjs.additionalContext].ontologyRid, {
13
+ objectSet: chunkXUFF6M4V_cjs.getWireObjectSet(objectSet)
14
14
  });
15
15
  return response.objectSetRid;
16
16
  }
@@ -18,7 +18,7 @@ async function createAndFetchTempObjectSetRid(client, objectSet) {
18
18
  // src/public-utils/hydrateObjectSetFromObjectRids.ts
19
19
  chunkLDTMSHUZ_cjs.init_cjs_shims();
20
20
  function hydrateObjectSetFromObjectRids(client, definition, rids) {
21
- return chunkVVKEXIIO_cjs.createObjectSet(definition, client[chunkVVKEXIIO_cjs.additionalContext], {
21
+ return chunkXUFF6M4V_cjs.createObjectSet(definition, client[chunkXUFF6M4V_cjs.additionalContext], {
22
22
  type: "intersect",
23
23
  objectSets: [definition.type === "interface" ? {
24
24
  type: "interfaceBase",
@@ -39,7 +39,7 @@ function asMutableArray(array) {
39
39
  // src/public-utils/hydrateObjectSetFromRid.ts
40
40
  chunkLDTMSHUZ_cjs.init_cjs_shims();
41
41
  function hydrateObjectSetFromRid(client, definition, rid) {
42
- return chunkVVKEXIIO_cjs.createObjectSet(definition, client[chunkVVKEXIIO_cjs.additionalContext], {
42
+ return chunkXUFF6M4V_cjs.createObjectSet(definition, client[chunkXUFF6M4V_cjs.additionalContext], {
43
43
  type: "intersect",
44
44
  objectSets: [definition.type === "interface" ? {
45
45
  type: "interfaceBase",
@@ -81,7 +81,7 @@ var levelStyles = {
81
81
  color: "orange"
82
82
  })
83
83
  };
84
- var BrowserLogger = class _BrowserLogger extends chunkVVKEXIIO_cjs.BaseLogger {
84
+ var BrowserLogger = class _BrowserLogger extends chunkXUFF6M4V_cjs.BaseLogger {
85
85
  constructor(bindings = {}, options = {}) {
86
86
  super(bindings, {
87
87
  ...options,
@@ -107,11 +107,11 @@ var BrowserLogger = class _BrowserLogger extends chunkVVKEXIIO_cjs.BaseLogger {
107
107
 
108
108
  Object.defineProperty(exports, "MinimalLogger", {
109
109
  enumerable: true,
110
- get: function () { return chunkVVKEXIIO_cjs.MinimalLogger; }
110
+ get: function () { return chunkXUFF6M4V_cjs.MinimalLogger; }
111
111
  });
112
112
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
113
113
  enumerable: true,
114
- get: function () { return chunkVVKEXIIO_cjs.hydrateAttachmentFromRid; }
114
+ get: function () { return chunkXUFF6M4V_cjs.hydrateAttachmentFromRid; }
115
115
  });
116
116
  exports.BrowserLogger = BrowserLogger;
117
117
  exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk7543GRIE_cjs = require('../chunk-7543GRIE.cjs');
4
- var chunkVVKEXIIO_cjs = require('../chunk-VVKEXIIO.cjs');
3
+ var chunkII23HDVV_cjs = require('../chunk-II23HDVV.cjs');
4
+ var chunkXUFF6M4V_cjs = require('../chunk-XUFF6M4V.cjs');
5
5
  var chunkLDTMSHUZ_cjs = require('../chunk-LDTMSHUZ.cjs');
6
6
  var trie = require('@wry/trie');
7
7
  var deepEqual = require('fast-deep-equal');
@@ -153,7 +153,7 @@ var WhereClauseCanonicalizer = class {
153
153
  var whereCanonicalizer = new WhereClauseCanonicalizer();
154
154
  var orderByCanonicalizer = new OrderByCanonicalizer();
155
155
  function computeObjectSetCacheKey(objectSet, options) {
156
- const keyParts = ["objectSet", chunkVVKEXIIO_cjs.getWireObjectSet(objectSet)];
156
+ const keyParts = ["objectSet", chunkXUFF6M4V_cjs.getWireObjectSet(objectSet)];
157
157
  if (!options) {
158
158
  return JSON.stringify(keyParts);
159
159
  }
@@ -165,13 +165,13 @@ function computeObjectSetCacheKey(objectSet, options) {
165
165
  keyParts.push("props", propKeys);
166
166
  }
167
167
  if (options.union && options.union.length > 0) {
168
- keyParts.push("union", options.union.map((os) => chunkVVKEXIIO_cjs.getWireObjectSet(os)));
168
+ keyParts.push("union", options.union.map((os) => chunkXUFF6M4V_cjs.getWireObjectSet(os)));
169
169
  }
170
170
  if (options.intersect && options.intersect.length > 0) {
171
- keyParts.push("intersect", options.intersect.map((os) => chunkVVKEXIIO_cjs.getWireObjectSet(os)));
171
+ keyParts.push("intersect", options.intersect.map((os) => chunkXUFF6M4V_cjs.getWireObjectSet(os)));
172
172
  }
173
173
  if (options.subtract && options.subtract.length > 0) {
174
- keyParts.push("subtract", options.subtract.map((os) => chunkVVKEXIIO_cjs.getWireObjectSet(os)));
174
+ keyParts.push("subtract", options.subtract.map((os) => chunkXUFF6M4V_cjs.getWireObjectSet(os)));
175
175
  }
176
176
  if (options.pivotTo) {
177
177
  keyParts.push("pivotTo", options.pivotTo);
@@ -371,7 +371,7 @@ var OptimisticJob = class {
371
371
  return this;
372
372
  },
373
373
  createObject(type, pk, properties) {
374
- const create = store.client[chunkVVKEXIIO_cjs.additionalContext].objectFactory2(store.client[chunkVVKEXIIO_cjs.additionalContext], [{
374
+ const create = store.client[chunkXUFF6M4V_cjs.additionalContext].objectFactory2(store.client[chunkXUFF6M4V_cjs.additionalContext], [{
375
375
  $primaryKey: pk,
376
376
  $apiName: type.apiName,
377
377
  $objectType: type.apiName,
@@ -593,7 +593,7 @@ var Query = class {
593
593
  this.store = store;
594
594
  this.cacheKeys = store.cacheKeys;
595
595
  this.#subject = observable;
596
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger : store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
596
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger : store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
597
597
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
598
598
  }));
599
599
  }
@@ -751,7 +751,7 @@ var Query = class {
751
751
  // src/observable/internal/aggregation/AggregationQuery.ts
752
752
  var AggregationQuery = class extends Query {
753
753
  constructor(store, subject, cacheKey, opts) {
754
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
754
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
755
755
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
756
756
  }) : void 0);
757
757
  this.apiName = cacheKey.otherKeys[API_NAME_IDX];
@@ -1122,7 +1122,7 @@ var FunctionParamsCanonicalizer = class {
1122
1122
  path.push("$:map_end");
1123
1123
  return arr;
1124
1124
  }
1125
- if (chunk7543GRIE_cjs.isObjectSpecifiersObject(value)) {
1125
+ if (chunkII23HDVV_cjs.isObjectSpecifiersObject(value)) {
1126
1126
  const objectType = value.$objectType ?? value.$apiName;
1127
1127
  path.push("$:osdk", objectType, value.$primaryKey);
1128
1128
  return {
@@ -1130,8 +1130,8 @@ var FunctionParamsCanonicalizer = class {
1130
1130
  $primaryKey: value.$primaryKey
1131
1131
  };
1132
1132
  }
1133
- if (chunkVVKEXIIO_cjs.isObjectSet(value)) {
1134
- const wire = chunkVVKEXIIO_cjs.getWireObjectSet(value);
1133
+ if (chunkXUFF6M4V_cjs.isObjectSet(value)) {
1134
+ const wire = chunkXUFF6M4V_cjs.getWireObjectSet(value);
1135
1135
  path.push("$:objectset", wire);
1136
1136
  return wire;
1137
1137
  }
@@ -1194,7 +1194,7 @@ var FunctionQuery = class extends Query {
1194
1194
  #dependsOnObjects;
1195
1195
  #queryDef;
1196
1196
  constructor(store, subject, queryDef, params, cacheKey, opts) {
1197
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
1197
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
1198
1198
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1199
1199
  }) : void 0);
1200
1200
  this.#apiName = queryDef.apiName;
@@ -1228,7 +1228,7 @@ var FunctionQuery = class extends Query {
1228
1228
  }).debug("calling _fetchAndStore");
1229
1229
  }
1230
1230
  try {
1231
- const result = await chunk7543GRIE_cjs.applyQuery(this.store.client[chunkVVKEXIIO_cjs.additionalContext], this.#queryDef, this.#params);
1231
+ const result = await chunkII23HDVV_cjs.applyQuery(this.store.client[chunkXUFF6M4V_cjs.additionalContext], this.#queryDef, this.#params);
1232
1232
  const executedAt = Date.now();
1233
1233
  this.store.batch({}, (batch) => {
1234
1234
  this.writeToStore({
@@ -2335,7 +2335,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2335
2335
  batch.changes.modified.add(this.cacheKey);
2336
2336
  }
2337
2337
  constructor(store, subject, cacheKey, opts) {
2338
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
2338
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
2339
2339
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2340
2340
  }) : void 0);
2341
2341
  [this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -2351,7 +2351,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2351
2351
  type: "object",
2352
2352
  apiName: this.#sourceApiName
2353
2353
  };
2354
- const sourceMetadata = await client[chunkVVKEXIIO_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2354
+ const sourceMetadata = await client[chunkXUFF6M4V_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2355
2355
  if (this.#orderBy && Object.keys(this.#orderBy).length > 0) {
2356
2356
  const linkDef = sourceMetadata.links?.[this.#linkName];
2357
2357
  if (!linkDef?.targetType) {
@@ -2423,7 +2423,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2423
2423
  return this.revalidate(true);
2424
2424
  } else {
2425
2425
  return (async () => {
2426
- const sourceMetadata = await this.store.client[chunkVVKEXIIO_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2426
+ const sourceMetadata = await this.store.client[chunkXUFF6M4V_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2427
2427
  const linkDef = sourceMetadata.links?.[this.#linkName];
2428
2428
  if (!linkDef || linkDef.targetType !== objectType) return;
2429
2429
  const promise = this.revalidate(true);
@@ -2731,7 +2731,7 @@ var ListQuery = class extends BaseListQuery {
2731
2731
  batch.changes.registerList(this.cacheKey);
2732
2732
  }
2733
2733
  constructor(store, subject, apiName, cacheKey, opts) {
2734
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
2734
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
2735
2735
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2736
2736
  }) : void 0);
2737
2737
  this.apiName = apiName;
@@ -2769,10 +2769,10 @@ var ListQuery = class extends BaseListQuery {
2769
2769
  */
2770
2770
  async fetchPageData(signal) {
2771
2771
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
2772
- const wireObjectSet = chunkVVKEXIIO_cjs.getWireObjectSet(this.#objectSet);
2772
+ const wireObjectSet = chunkXUFF6M4V_cjs.getWireObjectSet(this.#objectSet);
2773
2773
  const {
2774
2774
  resultType
2775
- } = await getObjectTypesThatInvalidate(this.store.client[chunkVVKEXIIO_cjs.additionalContext], wireObjectSet);
2775
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkXUFF6M4V_cjs.additionalContext], wireObjectSet);
2776
2776
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#orderBy);
2777
2777
  }
2778
2778
  const resp = await this.#objectSet.fetchPage({
@@ -3038,7 +3038,7 @@ var InterfaceListQuery = class extends ListQuery {
3038
3038
  }
3039
3039
  extractRelevantObjects(changes) {
3040
3040
  const matchesApiName = ([, object]) => {
3041
- return this.apiName in object[chunk7543GRIE_cjs.ObjectDefRef].interfaceMap;
3041
+ return this.apiName in object[chunkII23HDVV_cjs.ObjectDefRef].interfaceMap;
3042
3042
  };
3043
3043
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3044
3044
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3091,7 +3091,7 @@ var ObjectListQuery = class extends ListQuery {
3091
3091
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3092
3092
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3093
3093
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3094
- const clientCtx = store.client[chunkVVKEXIIO_cjs.additionalContext];
3094
+ const clientCtx = store.client[chunkXUFF6M4V_cjs.additionalContext];
3095
3095
  const typeDefinition = {
3096
3096
  type: "object",
3097
3097
  apiName: this.apiName
@@ -3242,8 +3242,8 @@ function stripRdpFields(value, rdpFields) {
3242
3242
  if (rdpFields.size === 0) {
3243
3243
  return value;
3244
3244
  }
3245
- const underlying = value[chunk7543GRIE_cjs.UnderlyingOsdkObject];
3246
- const objectDef = value[chunk7543GRIE_cjs.ObjectDefRef];
3245
+ const underlying = value[chunkII23HDVV_cjs.UnderlyingOsdkObject];
3246
+ const objectDef = value[chunkII23HDVV_cjs.ObjectDefRef];
3247
3247
  const newProps = {
3248
3248
  $apiName: underlying.$apiName,
3249
3249
  $objectType: underlying.$objectType,
@@ -3256,7 +3256,7 @@ function stripRdpFields(value, rdpFields) {
3256
3256
  newProps[key] = underlying[key];
3257
3257
  }
3258
3258
  }
3259
- return chunk7543GRIE_cjs.createOsdkObject(value[chunk7543GRIE_cjs.ClientRef], objectDef, newProps);
3259
+ return chunkII23HDVV_cjs.createOsdkObject(value[chunkII23HDVV_cjs.ClientRef], objectDef, newProps);
3260
3260
  }
3261
3261
  function isSuperset(superset, subset) {
3262
3262
  for (const field of subset) {
@@ -3267,8 +3267,8 @@ function isSuperset(superset, subset) {
3267
3267
  return true;
3268
3268
  }
3269
3269
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3270
- const underlying = value[chunk7543GRIE_cjs.UnderlyingOsdkObject];
3271
- const objectDef = value[chunk7543GRIE_cjs.ObjectDefRef];
3270
+ const underlying = value[chunkII23HDVV_cjs.UnderlyingOsdkObject];
3271
+ const objectDef = value[chunkII23HDVV_cjs.ObjectDefRef];
3272
3272
  const newProps = {
3273
3273
  $apiName: underlying.$apiName,
3274
3274
  $objectType: underlying.$objectType,
@@ -3284,7 +3284,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3284
3284
  }
3285
3285
  }
3286
3286
  }
3287
- return chunk7543GRIE_cjs.createOsdkObject(value[chunk7543GRIE_cjs.ClientRef], objectDef, newProps);
3287
+ return chunkII23HDVV_cjs.createOsdkObject(value[chunkII23HDVV_cjs.ClientRef], objectDef, newProps);
3288
3288
  }
3289
3289
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3290
3290
  if (targetRdpFields.size === 0) {
@@ -3296,8 +3296,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3296
3296
  }
3297
3297
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3298
3298
  }
3299
- const sourceUnderlying = sourceValue[chunk7543GRIE_cjs.UnderlyingOsdkObject];
3300
- const objectDef = sourceValue[chunk7543GRIE_cjs.ObjectDefRef];
3299
+ const sourceUnderlying = sourceValue[chunkII23HDVV_cjs.UnderlyingOsdkObject];
3300
+ const objectDef = sourceValue[chunkII23HDVV_cjs.ObjectDefRef];
3301
3301
  const newProps = {
3302
3302
  $apiName: sourceUnderlying.$apiName,
3303
3303
  $objectType: sourceUnderlying.$objectType,
@@ -3311,14 +3311,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3311
3311
  }
3312
3312
  }
3313
3313
  if (targetCurrentValue) {
3314
- const targetUnderlying = targetCurrentValue[chunk7543GRIE_cjs.UnderlyingOsdkObject];
3314
+ const targetUnderlying = targetCurrentValue[chunkII23HDVV_cjs.UnderlyingOsdkObject];
3315
3315
  for (const field of targetRdpFields) {
3316
3316
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
3317
3317
  newProps[field] = targetUnderlying[field];
3318
3318
  }
3319
3319
  }
3320
3320
  }
3321
- return chunk7543GRIE_cjs.createOsdkObject(sourceValue[chunk7543GRIE_cjs.ClientRef], objectDef, newProps);
3321
+ return chunkII23HDVV_cjs.createOsdkObject(sourceValue[chunkII23HDVV_cjs.ClientRef], objectDef, newProps);
3322
3322
  }
3323
3323
 
3324
3324
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -3453,7 +3453,7 @@ var BulkObjectLoader = class {
3453
3453
  #maxEntries;
3454
3454
  constructor(client, maxWait = 25, maxEntries = 100) {
3455
3455
  this.#client = client;
3456
- this.#logger = client[chunkVVKEXIIO_cjs.additionalContext].logger;
3456
+ this.#logger = client[chunkXUFF6M4V_cjs.additionalContext].logger;
3457
3457
  this.#maxWait = maxWait;
3458
3458
  this.#maxEntries = maxEntries;
3459
3459
  }
@@ -3522,7 +3522,7 @@ var ObjectQuery = class extends Query {
3522
3522
  #apiName;
3523
3523
  #pk;
3524
3524
  constructor(store, subject, type, pk, cacheKey, opts) {
3525
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
3525
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
3526
3526
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3527
3527
  }) : void 0);
3528
3528
  this.#apiName = type;
@@ -3683,7 +3683,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3683
3683
  #composedObjectSet;
3684
3684
  #objectTypes;
3685
3685
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
3686
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
3686
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
3687
3687
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3688
3688
  }) : void 0);
3689
3689
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -3728,7 +3728,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3728
3728
  }
3729
3729
  if (opts.union) {
3730
3730
  for (const os of opts.union) {
3731
- const wire = chunkVVKEXIIO_cjs.getWireObjectSet(os);
3731
+ const wire = chunkXUFF6M4V_cjs.getWireObjectSet(os);
3732
3732
  if (wire.type) {
3733
3733
  types.add(wire.type);
3734
3734
  }
@@ -3736,7 +3736,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3736
3736
  }
3737
3737
  if (opts.intersect) {
3738
3738
  for (const os of opts.intersect) {
3739
- const wire = chunkVVKEXIIO_cjs.getWireObjectSet(os);
3739
+ const wire = chunkXUFF6M4V_cjs.getWireObjectSet(os);
3740
3740
  if (wire.type) {
3741
3741
  types.add(wire.type);
3742
3742
  }
@@ -3744,7 +3744,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3744
3744
  }
3745
3745
  if (opts.subtract) {
3746
3746
  for (const os of opts.subtract) {
3747
- const wire = chunkVVKEXIIO_cjs.getWireObjectSet(os);
3747
+ const wire = chunkXUFF6M4V_cjs.getWireObjectSet(os);
3748
3748
  if (wire.type) {
3749
3749
  types.add(wire.type);
3750
3750
  }
@@ -3764,10 +3764,10 @@ var ObjectSetQuery = class extends BaseListQuery {
3764
3764
  */
3765
3765
  async fetchPageData(signal) {
3766
3766
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
3767
- const wireObjectSet = chunkVVKEXIIO_cjs.getWireObjectSet(this.#composedObjectSet);
3767
+ const wireObjectSet = chunkXUFF6M4V_cjs.getWireObjectSet(this.#composedObjectSet);
3768
3768
  const {
3769
3769
  resultType
3770
- } = await getObjectTypesThatInvalidate(this.store.client[chunkVVKEXIIO_cjs.additionalContext], wireObjectSet);
3770
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkXUFF6M4V_cjs.additionalContext], wireObjectSet);
3771
3771
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy);
3772
3772
  }
3773
3773
  const resp = await this.#composedObjectSet.fetchPage({
@@ -3836,7 +3836,7 @@ var ObjectSetHelper = class extends AbstractHelper {
3836
3836
  const {
3837
3837
  baseObjectSet
3838
3838
  } = options;
3839
- const baseObjectSetWire = JSON.stringify(chunkVVKEXIIO_cjs.getWireObjectSet(baseObjectSet));
3839
+ const baseObjectSetWire = JSON.stringify(chunkXUFF6M4V_cjs.getWireObjectSet(baseObjectSet));
3840
3840
  const operations = this.buildCanonicalizedOperations(options);
3841
3841
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
3842
3842
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -3852,13 +3852,13 @@ var ObjectSetHelper = class extends AbstractHelper {
3852
3852
  operations.withProperties = Object.keys(options.withProperties).sort();
3853
3853
  }
3854
3854
  if (options.union && options.union.length > 0) {
3855
- operations.union = options.union.map((os) => JSON.stringify(chunkVVKEXIIO_cjs.getWireObjectSet(os)));
3855
+ operations.union = options.union.map((os) => JSON.stringify(chunkXUFF6M4V_cjs.getWireObjectSet(os)));
3856
3856
  }
3857
3857
  if (options.intersect && options.intersect.length > 0) {
3858
- operations.intersect = options.intersect.map((os) => JSON.stringify(chunkVVKEXIIO_cjs.getWireObjectSet(os)));
3858
+ operations.intersect = options.intersect.map((os) => JSON.stringify(chunkXUFF6M4V_cjs.getWireObjectSet(os)));
3859
3859
  }
3860
3860
  if (options.subtract && options.subtract.length > 0) {
3861
- operations.subtract = options.subtract.map((os) => JSON.stringify(chunkVVKEXIIO_cjs.getWireObjectSet(os)));
3861
+ operations.subtract = options.subtract.map((os) => JSON.stringify(chunkXUFF6M4V_cjs.getWireObjectSet(os)));
3862
3862
  }
3863
3863
  if (options.pivotTo) {
3864
3864
  operations.pivotTo = options.pivotTo;
@@ -3930,7 +3930,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
3930
3930
  apiName: "__rdp_canonicalizer_holder__"
3931
3931
  };
3932
3932
  for (const [key, rdpFunction] of Object.entries(rdp)) {
3933
- const builder = chunkVVKEXIIO_cjs.createWithPropertiesObjectSet(
3933
+ const builder = chunkXUFF6M4V_cjs.createWithPropertiesObjectSet(
3934
3934
  objectTypeHolder,
3935
3935
  {
3936
3936
  type: "methodInput"
@@ -3998,7 +3998,7 @@ var Store = class {
3998
3998
  subjects = this.layers.subjects;
3999
3999
  // these are hopefully temporary
4000
4000
  constructor(client) {
4001
- this.logger = client[chunkVVKEXIIO_cjs.additionalContext].logger?.child({}, {
4001
+ this.logger = client[chunkXUFF6M4V_cjs.additionalContext].logger?.child({}, {
4002
4002
  msgPrefix: "Store"
4003
4003
  });
4004
4004
  this.client = client;
@@ -4271,10 +4271,10 @@ var Store = class {
4271
4271
 
4272
4272
  // src/observable/ObservableClient.ts
4273
4273
  function createObservableClient(client) {
4274
- const tweakedClient = chunk7543GRIE_cjs.createClientFromContext({
4275
- ...client[chunkVVKEXIIO_cjs.additionalContext],
4276
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkVVKEXIIO_cjs.additionalContext].fetch, (headers) => {
4277
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk7543GRIE_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4274
+ const tweakedClient = chunkII23HDVV_cjs.createClientFromContext({
4275
+ ...client[chunkXUFF6M4V_cjs.additionalContext],
4276
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkXUFF6M4V_cjs.additionalContext].fetch, (headers) => {
4277
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkII23HDVV_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4278
4278
  return headers;
4279
4279
  })
4280
4280
  });
@@ -4318,11 +4318,11 @@ function getOsdkConfig(ontologyRid) {
4318
4318
 
4319
4319
  Object.defineProperty(exports, "createClientWithTransaction", {
4320
4320
  enumerable: true,
4321
- get: function () { return chunk7543GRIE_cjs.createClientWithTransaction; }
4321
+ get: function () { return chunkII23HDVV_cjs.createClientWithTransaction; }
4322
4322
  });
4323
4323
  Object.defineProperty(exports, "augment", {
4324
4324
  enumerable: true,
4325
- get: function () { return chunkVVKEXIIO_cjs.augment; }
4325
+ get: function () { return chunkXUFF6M4V_cjs.augment; }
4326
4326
  });
4327
4327
  exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
4328
4328
  exports.createObservableClient = createObservableClient;
@@ -21,7 +21,7 @@
21
21
  export const additionalContext = Symbol("additionalContext");
22
22
 
23
23
  // BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
24
- const MaxOsdkVersion = "2.7.0";
24
+ const MaxOsdkVersion = "2.8.0";
25
25
  // END: THIS IS GENERATED CODE. DO NOT EDIT.
26
26
 
27
27
  const ErrorMessage = Symbol("ErrorMessage");
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\"> | Experiment<\"2.2.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.7.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> = Q extends VersionBound<infer V> ? (\n SatisfiesSemver<V, MaxOsdkVersion> extends true ? Q\n : Q & {\n [ErrorMessage]:\n `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n )\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends (InterfaceDefinition)>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"] ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n <Q extends ActionDefinition<any>>(\n o: Q,\n ): ActionSignatureFromDef<Q>;\n\n <Q extends QueryDefinition<any>>(\n o: Q,\n ): QuerySignatureFromDef<Q>;\n\n <Q extends Experiment<\"2.0.8\"> | Experiment<\"2.1.0\"> | Experiment<\"2.2.0\">>(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n fetchMetadata<\n Q extends (\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>\n ),\n >(o: Q): Promise<\n Q extends ObjectTypeDefinition ? ObjectMetadata\n : Q extends InterfaceDefinition ? InterfaceMetadata\n : Q extends ActionDefinition<any> ? ActionMetadata\n : Q extends QueryDefinition<any> ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.8.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA0BA;;AAsDA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
@@ -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.1"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.1"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.8.0-beta.2"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.8.0-beta.2"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -16,7 +16,7 @@ export interface Client extends SharedClient, OldSharedClient {
16
16
  <Q extends Experiment<"2.0.8"> | Experiment<"2.1.0"> | Experiment<"2.2.0">>(experiment: Q): ExperimentFns<Q>;
17
17
  fetchMetadata<Q extends (ObjectTypeDefinition | InterfaceDefinition | ActionDefinition<any> | QueryDefinition<any>)>(o: Q): Promise<Q extends ObjectTypeDefinition ? ObjectMetadata : Q extends InterfaceDefinition ? InterfaceMetadata : Q extends ActionDefinition<any> ? ActionMetadata : Q extends QueryDefinition<any> ? QueryMetadata : never>;
18
18
  }
19
- declare const MaxOsdkVersion = "2.7.0";
19
+ declare const MaxOsdkVersion = "2.8.0";
20
20
  export type MaxOsdkVersion = typeof MaxOsdkVersion;
21
21
  declare const ErrorMessage: unique symbol;
22
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client",
3
- "version": "2.8.0-beta.1",
3
+ "version": "2.8.0-beta.2",
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.1",
79
- "@osdk/client.unstable": "2.8.0-beta.1",
80
- "@osdk/generator-converters": "2.8.0-beta.1",
78
+ "@osdk/api": "2.8.0-beta.2",
79
+ "@osdk/client.unstable": "2.8.0-beta.2",
81
80
  "@osdk/shared.net.errors": "~2.8.0-beta.1",
82
- "@osdk/shared.client.impl": "~1.8.0-beta.1",
83
- "@osdk/shared.net.fetch": "~1.8.0-beta.1"
81
+ "@osdk/generator-converters": "2.8.0-beta.2",
82
+ "@osdk/shared.net.fetch": "~1.8.0-beta.1",
83
+ "@osdk/shared.client.impl": "~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.2",
104
105
  "@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
105
- "@osdk/client.test.ontology": "~2.8.0-beta.1",
106
106
  "@osdk/monorepo.tsconfig": "~0.7.0-beta.1",
107
107
  "@osdk/shared.test": "~2.8.0-beta.1"
108
108
  },