@osdk/client 2.7.3 → 2.7.5

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/observable/ObservableClient.js.map +1 -1
  5. package/build/browser/observable/computeObjectSetCacheKey.js.map +1 -1
  6. package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
  7. package/build/browser/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  8. package/build/browser/util/UserAgent.js +2 -2
  9. package/build/cjs/{chunk-EHWB7KEN.cjs → chunk-B5QGX6YV.cjs} +2 -2
  10. package/build/cjs/{chunk-EHWB7KEN.cjs.map → chunk-B5QGX6YV.cjs.map} +1 -1
  11. package/build/cjs/{chunk-O3SKYLBQ.cjs → chunk-N4XMAVKO.cjs} +65 -65
  12. package/build/cjs/{chunk-O3SKYLBQ.cjs.map → chunk-N4XMAVKO.cjs.map} +1 -1
  13. package/build/cjs/index.cjs +8 -8
  14. package/build/cjs/public/internal.cjs +8 -8
  15. package/build/cjs/public/unstable-do-not-use.cjs +55 -55
  16. package/build/cjs/public/unstable-do-not-use.d.cts +3 -3
  17. package/build/esm/Client.js +1 -1
  18. package/build/esm/Client.js.map +1 -1
  19. package/build/esm/observable/ObservableClient.js.map +1 -1
  20. package/build/esm/observable/computeObjectSetCacheKey.js.map +1 -1
  21. package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
  22. package/build/esm/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  23. package/build/esm/util/UserAgent.js +2 -2
  24. package/build/types/Client.d.ts +1 -1
  25. package/build/types/observable/ObservableClient.d.ts +1 -1
  26. package/build/types/observable/computeObjectSetCacheKey.d.ts +2 -2
  27. package/build/types/observable/computeObjectSetCacheKey.d.ts.map +1 -1
  28. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts +2 -2
  29. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts.map +1 -1
  30. package/package.json +8 -8
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkO3SKYLBQ_cjs = require('./chunk-O3SKYLBQ.cjs');
4
- require('./chunk-EHWB7KEN.cjs');
3
+ var chunkN4XMAVKO_cjs = require('./chunk-N4XMAVKO.cjs');
4
+ require('./chunk-B5QGX6YV.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, chunkO3SKYLBQ_cjs.USER_AGENT, fetchFn);
21
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkN4XMAVKO_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 chunkO3SKYLBQ_cjs.ActionValidationError; }
48
+ get: function () { return chunkN4XMAVKO_cjs.ActionValidationError; }
49
49
  });
50
50
  Object.defineProperty(exports, "createAttachmentUpload", {
51
51
  enumerable: true,
52
- get: function () { return chunkO3SKYLBQ_cjs.createAttachmentUpload; }
52
+ get: function () { return chunkN4XMAVKO_cjs.createAttachmentUpload; }
53
53
  });
54
54
  Object.defineProperty(exports, "createClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkO3SKYLBQ_cjs.createClient; }
56
+ get: function () { return chunkN4XMAVKO_cjs.createClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
59
59
  enumerable: true,
60
- get: function () { return chunkO3SKYLBQ_cjs.createObjectSpecifierFromPrimaryKey; }
60
+ get: function () { return chunkN4XMAVKO_cjs.createObjectSpecifierFromPrimaryKey; }
61
61
  });
62
62
  Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
63
63
  enumerable: true,
64
- get: function () { return chunkO3SKYLBQ_cjs.extractPrimaryKeyFromObjectSpecifier; }
64
+ get: function () { return chunkN4XMAVKO_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 chunkEHWB7KEN_cjs = require('../chunk-EHWB7KEN.cjs');
3
+ var chunkB5QGX6YV_cjs = require('../chunk-B5QGX6YV.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 chunkEHWB7KEN_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkEHWB7KEN_cjs.additionalContext].ontologyRid, {
13
- objectSet: chunkEHWB7KEN_cjs.getWireObjectSet(objectSet)
12
+ const response = await chunkB5QGX6YV_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkB5QGX6YV_cjs.additionalContext].ontologyRid, {
13
+ objectSet: chunkB5QGX6YV_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 chunkEHWB7KEN_cjs.createObjectSet(definition, client[chunkEHWB7KEN_cjs.additionalContext], {
21
+ return chunkB5QGX6YV_cjs.createObjectSet(definition, client[chunkB5QGX6YV_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 chunkEHWB7KEN_cjs.createObjectSet(definition, client[chunkEHWB7KEN_cjs.additionalContext], {
42
+ return chunkB5QGX6YV_cjs.createObjectSet(definition, client[chunkB5QGX6YV_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 chunkEHWB7KEN_cjs.BaseLogger {
84
+ var BrowserLogger = class _BrowserLogger extends chunkB5QGX6YV_cjs.BaseLogger {
85
85
  constructor(bindings = {}, options = {}) {
86
86
  super(bindings, {
87
87
  ...options,
@@ -107,11 +107,11 @@ var BrowserLogger = class _BrowserLogger extends chunkEHWB7KEN_cjs.BaseLogger {
107
107
 
108
108
  Object.defineProperty(exports, "MinimalLogger", {
109
109
  enumerable: true,
110
- get: function () { return chunkEHWB7KEN_cjs.MinimalLogger; }
110
+ get: function () { return chunkB5QGX6YV_cjs.MinimalLogger; }
111
111
  });
112
112
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
113
113
  enumerable: true,
114
- get: function () { return chunkEHWB7KEN_cjs.hydrateAttachmentFromRid; }
114
+ get: function () { return chunkB5QGX6YV_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 chunkO3SKYLBQ_cjs = require('../chunk-O3SKYLBQ.cjs');
4
- var chunkEHWB7KEN_cjs = require('../chunk-EHWB7KEN.cjs');
3
+ var chunkN4XMAVKO_cjs = require('../chunk-N4XMAVKO.cjs');
4
+ var chunkB5QGX6YV_cjs = require('../chunk-B5QGX6YV.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", chunkEHWB7KEN_cjs.getWireObjectSet(objectSet)];
156
+ const keyParts = ["objectSet", chunkB5QGX6YV_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) => chunkEHWB7KEN_cjs.getWireObjectSet(os)));
168
+ keyParts.push("union", options.union.map((os) => chunkB5QGX6YV_cjs.getWireObjectSet(os)));
169
169
  }
170
170
  if (options.intersect && options.intersect.length > 0) {
171
- keyParts.push("intersect", options.intersect.map((os) => chunkEHWB7KEN_cjs.getWireObjectSet(os)));
171
+ keyParts.push("intersect", options.intersect.map((os) => chunkB5QGX6YV_cjs.getWireObjectSet(os)));
172
172
  }
173
173
  if (options.subtract && options.subtract.length > 0) {
174
- keyParts.push("subtract", options.subtract.map((os) => chunkEHWB7KEN_cjs.getWireObjectSet(os)));
174
+ keyParts.push("subtract", options.subtract.map((os) => chunkB5QGX6YV_cjs.getWireObjectSet(os)));
175
175
  }
176
176
  if (options.pivotTo) {
177
177
  keyParts.push("pivotTo", options.pivotTo);
@@ -459,7 +459,7 @@ var OptimisticJob = class {
459
459
  return this;
460
460
  },
461
461
  createObject(type, pk, properties) {
462
- const create = store.client[chunkEHWB7KEN_cjs.additionalContext].objectFactory2(store.client[chunkEHWB7KEN_cjs.additionalContext], [{
462
+ const create = store.client[chunkB5QGX6YV_cjs.additionalContext].objectFactory2(store.client[chunkB5QGX6YV_cjs.additionalContext], [{
463
463
  $primaryKey: pk,
464
464
  $apiName: type.apiName,
465
465
  $objectType: type.apiName,
@@ -680,7 +680,7 @@ var Query = class {
680
680
  this.store = store;
681
681
  this.cacheKeys = store.cacheKeys;
682
682
  this.#subject = observable;
683
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger : store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
683
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger : store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
684
684
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
685
685
  }));
686
686
  }
@@ -838,7 +838,7 @@ var Query = class {
838
838
  // src/observable/internal/aggregation/AggregationQuery.ts
839
839
  var AggregationQuery = class extends Query {
840
840
  constructor(store, subject, cacheKey, opts) {
841
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
841
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
842
842
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
843
843
  }) : void 0);
844
844
  this.apiName = cacheKey.otherKeys[API_NAME_IDX];
@@ -1209,7 +1209,7 @@ var FunctionParamsCanonicalizer = class {
1209
1209
  path.push("$:map_end");
1210
1210
  return arr;
1211
1211
  }
1212
- if (chunkO3SKYLBQ_cjs.isObjectSpecifiersObject(value)) {
1212
+ if (chunkN4XMAVKO_cjs.isObjectSpecifiersObject(value)) {
1213
1213
  const objectType = value.$objectType ?? value.$apiName;
1214
1214
  path.push("$:osdk", objectType, value.$primaryKey);
1215
1215
  return {
@@ -1217,8 +1217,8 @@ var FunctionParamsCanonicalizer = class {
1217
1217
  $primaryKey: value.$primaryKey
1218
1218
  };
1219
1219
  }
1220
- if (chunkEHWB7KEN_cjs.isObjectSet(value)) {
1221
- const wire = chunkEHWB7KEN_cjs.getWireObjectSet(value);
1220
+ if (chunkB5QGX6YV_cjs.isObjectSet(value)) {
1221
+ const wire = chunkB5QGX6YV_cjs.getWireObjectSet(value);
1222
1222
  path.push("$:objectset", wire);
1223
1223
  return wire;
1224
1224
  }
@@ -1281,7 +1281,7 @@ var FunctionQuery = class extends Query {
1281
1281
  #dependsOnObjects;
1282
1282
  #queryDef;
1283
1283
  constructor(store, subject, queryDef, params, cacheKey, opts) {
1284
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
1284
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
1285
1285
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1286
1286
  }) : void 0);
1287
1287
  this.#apiName = queryDef.apiName;
@@ -1315,7 +1315,7 @@ var FunctionQuery = class extends Query {
1315
1315
  }).debug("calling _fetchAndStore");
1316
1316
  }
1317
1317
  try {
1318
- const result = await chunkO3SKYLBQ_cjs.applyQuery(this.store.client[chunkEHWB7KEN_cjs.additionalContext], this.#queryDef, this.#params);
1318
+ const result = await chunkN4XMAVKO_cjs.applyQuery(this.store.client[chunkB5QGX6YV_cjs.additionalContext], this.#queryDef, this.#params);
1319
1319
  const executedAt = Date.now();
1320
1320
  this.store.batch({}, (batch) => {
1321
1321
  this.writeToStore({
@@ -2422,7 +2422,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2422
2422
  batch.changes.modified.add(this.cacheKey);
2423
2423
  }
2424
2424
  constructor(store, subject, cacheKey, opts) {
2425
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
2425
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
2426
2426
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2427
2427
  }) : void 0);
2428
2428
  [this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -2438,7 +2438,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2438
2438
  type: "object",
2439
2439
  apiName: this.#sourceApiName
2440
2440
  };
2441
- const sourceMetadata = await client[chunkEHWB7KEN_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2441
+ const sourceMetadata = await client[chunkB5QGX6YV_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2442
2442
  if (this.#orderBy && Object.keys(this.#orderBy).length > 0) {
2443
2443
  const linkDef = sourceMetadata.links?.[this.#linkName];
2444
2444
  if (!linkDef?.targetType) {
@@ -2510,7 +2510,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2510
2510
  return this.revalidate(true);
2511
2511
  } else {
2512
2512
  return (async () => {
2513
- const sourceMetadata = await this.store.client[chunkEHWB7KEN_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2513
+ const sourceMetadata = await this.store.client[chunkB5QGX6YV_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
2514
2514
  const linkDef = sourceMetadata.links?.[this.#linkName];
2515
2515
  if (!linkDef || linkDef.targetType !== objectType) return;
2516
2516
  const promise = this.revalidate(true);
@@ -2818,7 +2818,7 @@ var ListQuery = class extends BaseListQuery {
2818
2818
  batch.changes.registerList(this.cacheKey);
2819
2819
  }
2820
2820
  constructor(store, subject, apiName, cacheKey, opts) {
2821
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
2821
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
2822
2822
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2823
2823
  }) : void 0);
2824
2824
  this.apiName = apiName;
@@ -2856,10 +2856,10 @@ var ListQuery = class extends BaseListQuery {
2856
2856
  */
2857
2857
  async fetchPageData(signal) {
2858
2858
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
2859
- const wireObjectSet = chunkEHWB7KEN_cjs.getWireObjectSet(this.#objectSet);
2859
+ const wireObjectSet = chunkB5QGX6YV_cjs.getWireObjectSet(this.#objectSet);
2860
2860
  const {
2861
2861
  resultType
2862
- } = await getObjectTypesThatInvalidate(this.store.client[chunkEHWB7KEN_cjs.additionalContext], wireObjectSet);
2862
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkB5QGX6YV_cjs.additionalContext], wireObjectSet);
2863
2863
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#orderBy);
2864
2864
  }
2865
2865
  const resp = await this.#objectSet.fetchPage({
@@ -3102,7 +3102,7 @@ var InterfaceListQuery = class extends ListQuery {
3102
3102
  type,
3103
3103
  apiName: this.apiName
3104
3104
  };
3105
- const clientCtx = store.client[chunkEHWB7KEN_cjs.additionalContext];
3105
+ const clientCtx = store.client[chunkB5QGX6YV_cjs.additionalContext];
3106
3106
  let objectSet;
3107
3107
  if (rids != null) {
3108
3108
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3145,7 +3145,7 @@ var InterfaceListQuery = class extends ListQuery {
3145
3145
  }
3146
3146
  extractRelevantObjects(changes) {
3147
3147
  const matchesApiName = ([, object]) => {
3148
- return this.apiName in object[chunkO3SKYLBQ_cjs.ObjectDefRef].interfaceMap;
3148
+ return this.apiName in object[chunkN4XMAVKO_cjs.ObjectDefRef].interfaceMap;
3149
3149
  };
3150
3150
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3151
3151
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3164,7 +3164,7 @@ var InterfaceListQuery = class extends ListQuery {
3164
3164
  }
3165
3165
  };
3166
3166
  function createSourceSetForPivot(store, pivotInfo, rids) {
3167
- const clientCtx = store.client[chunkEHWB7KEN_cjs.additionalContext];
3167
+ const clientCtx = store.client[chunkB5QGX6YV_cjs.additionalContext];
3168
3168
  if (rids != null) {
3169
3169
  return clientCtx.objectSetFactory({
3170
3170
  type: "object",
@@ -3220,7 +3220,7 @@ var ObjectListQuery = class extends ListQuery {
3220
3220
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3221
3221
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3222
3222
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3223
- const clientCtx = store.client[chunkEHWB7KEN_cjs.additionalContext];
3223
+ const clientCtx = store.client[chunkB5QGX6YV_cjs.additionalContext];
3224
3224
  const typeDefinition = {
3225
3225
  type: "object",
3226
3226
  apiName: this.apiName
@@ -3371,8 +3371,8 @@ function stripRdpFields(value, rdpFields) {
3371
3371
  if (rdpFields.size === 0) {
3372
3372
  return value;
3373
3373
  }
3374
- const underlying = value[chunkO3SKYLBQ_cjs.UnderlyingOsdkObject];
3375
- const objectDef = value[chunkO3SKYLBQ_cjs.ObjectDefRef];
3374
+ const underlying = value[chunkN4XMAVKO_cjs.UnderlyingOsdkObject];
3375
+ const objectDef = value[chunkN4XMAVKO_cjs.ObjectDefRef];
3376
3376
  const newProps = {
3377
3377
  $apiName: underlying.$apiName,
3378
3378
  $objectType: underlying.$objectType,
@@ -3385,7 +3385,7 @@ function stripRdpFields(value, rdpFields) {
3385
3385
  newProps[key] = underlying[key];
3386
3386
  }
3387
3387
  }
3388
- return chunkO3SKYLBQ_cjs.createOsdkObject(value[chunkO3SKYLBQ_cjs.ClientRef], objectDef, newProps);
3388
+ return chunkN4XMAVKO_cjs.createOsdkObject(value[chunkN4XMAVKO_cjs.ClientRef], objectDef, newProps);
3389
3389
  }
3390
3390
  function isSuperset(superset, subset) {
3391
3391
  for (const field of subset) {
@@ -3396,8 +3396,8 @@ function isSuperset(superset, subset) {
3396
3396
  return true;
3397
3397
  }
3398
3398
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3399
- const underlying = value[chunkO3SKYLBQ_cjs.UnderlyingOsdkObject];
3400
- const objectDef = value[chunkO3SKYLBQ_cjs.ObjectDefRef];
3399
+ const underlying = value[chunkN4XMAVKO_cjs.UnderlyingOsdkObject];
3400
+ const objectDef = value[chunkN4XMAVKO_cjs.ObjectDefRef];
3401
3401
  const newProps = {
3402
3402
  $apiName: underlying.$apiName,
3403
3403
  $objectType: underlying.$objectType,
@@ -3413,7 +3413,7 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
3413
3413
  }
3414
3414
  }
3415
3415
  }
3416
- return chunkO3SKYLBQ_cjs.createOsdkObject(value[chunkO3SKYLBQ_cjs.ClientRef], objectDef, newProps);
3416
+ return chunkN4XMAVKO_cjs.createOsdkObject(value[chunkN4XMAVKO_cjs.ClientRef], objectDef, newProps);
3417
3417
  }
3418
3418
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
3419
3419
  if (targetRdpFields.size === 0) {
@@ -3425,8 +3425,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3425
3425
  }
3426
3426
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
3427
3427
  }
3428
- const sourceUnderlying = sourceValue[chunkO3SKYLBQ_cjs.UnderlyingOsdkObject];
3429
- const objectDef = sourceValue[chunkO3SKYLBQ_cjs.ObjectDefRef];
3428
+ const sourceUnderlying = sourceValue[chunkN4XMAVKO_cjs.UnderlyingOsdkObject];
3429
+ const objectDef = sourceValue[chunkN4XMAVKO_cjs.ObjectDefRef];
3430
3430
  const newProps = {
3431
3431
  $apiName: sourceUnderlying.$apiName,
3432
3432
  $objectType: sourceUnderlying.$objectType,
@@ -3440,14 +3440,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
3440
3440
  }
3441
3441
  }
3442
3442
  if (targetCurrentValue) {
3443
- const targetUnderlying = targetCurrentValue[chunkO3SKYLBQ_cjs.UnderlyingOsdkObject];
3443
+ const targetUnderlying = targetCurrentValue[chunkN4XMAVKO_cjs.UnderlyingOsdkObject];
3444
3444
  for (const field of targetRdpFields) {
3445
3445
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
3446
3446
  newProps[field] = targetUnderlying[field];
3447
3447
  }
3448
3448
  }
3449
3449
  }
3450
- return chunkO3SKYLBQ_cjs.createOsdkObject(sourceValue[chunkO3SKYLBQ_cjs.ClientRef], objectDef, newProps);
3450
+ return chunkN4XMAVKO_cjs.createOsdkObject(sourceValue[chunkN4XMAVKO_cjs.ClientRef], objectDef, newProps);
3451
3451
  }
3452
3452
 
3453
3453
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -3582,7 +3582,7 @@ var BulkObjectLoader = class {
3582
3582
  #maxEntries;
3583
3583
  constructor(client, maxWait = 25, maxEntries = 100) {
3584
3584
  this.#client = client;
3585
- this.#logger = client[chunkEHWB7KEN_cjs.additionalContext].logger;
3585
+ this.#logger = client[chunkB5QGX6YV_cjs.additionalContext].logger;
3586
3586
  this.#maxWait = maxWait;
3587
3587
  this.#maxEntries = maxEntries;
3588
3588
  }
@@ -3716,7 +3716,7 @@ var ObjectQuery = class extends Query {
3716
3716
  #defType;
3717
3717
  #implementingTypes;
3718
3718
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object") {
3719
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
3719
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
3720
3720
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3721
3721
  }) : void 0);
3722
3722
  this.#apiName = type;
@@ -3810,7 +3810,7 @@ var ObjectsHelper = class extends AbstractHelper {
3810
3810
  const {
3811
3811
  pk
3812
3812
  } = options;
3813
- const defType = chunkO3SKYLBQ_cjs.getDefType(options.apiName);
3813
+ const defType = chunkN4XMAVKO_cjs.getDefType(options.apiName);
3814
3814
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0);
3815
3815
  return this.store.queries.get(objectCacheKey, () => new ObjectQuery(this.store, this.store.subjects.get(objectCacheKey), apiName, pk, objectCacheKey, {
3816
3816
  dedupeInterval: 0
@@ -3893,7 +3893,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3893
3893
  #composedObjectSet;
3894
3894
  #objectTypes;
3895
3895
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
3896
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
3896
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
3897
3897
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3898
3898
  }) : void 0);
3899
3899
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -3938,7 +3938,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3938
3938
  }
3939
3939
  if (opts.union) {
3940
3940
  for (const os of opts.union) {
3941
- const wire = chunkEHWB7KEN_cjs.getWireObjectSet(os);
3941
+ const wire = chunkB5QGX6YV_cjs.getWireObjectSet(os);
3942
3942
  if (wire.type) {
3943
3943
  types.add(wire.type);
3944
3944
  }
@@ -3946,7 +3946,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3946
3946
  }
3947
3947
  if (opts.intersect) {
3948
3948
  for (const os of opts.intersect) {
3949
- const wire = chunkEHWB7KEN_cjs.getWireObjectSet(os);
3949
+ const wire = chunkB5QGX6YV_cjs.getWireObjectSet(os);
3950
3950
  if (wire.type) {
3951
3951
  types.add(wire.type);
3952
3952
  }
@@ -3954,7 +3954,7 @@ var ObjectSetQuery = class extends BaseListQuery {
3954
3954
  }
3955
3955
  if (opts.subtract) {
3956
3956
  for (const os of opts.subtract) {
3957
- const wire = chunkEHWB7KEN_cjs.getWireObjectSet(os);
3957
+ const wire = chunkB5QGX6YV_cjs.getWireObjectSet(os);
3958
3958
  if (wire.type) {
3959
3959
  types.add(wire.type);
3960
3960
  }
@@ -3974,10 +3974,10 @@ var ObjectSetQuery = class extends BaseListQuery {
3974
3974
  */
3975
3975
  async fetchPageData(signal) {
3976
3976
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
3977
- const wireObjectSet = chunkEHWB7KEN_cjs.getWireObjectSet(this.#composedObjectSet);
3977
+ const wireObjectSet = chunkB5QGX6YV_cjs.getWireObjectSet(this.#composedObjectSet);
3978
3978
  const {
3979
3979
  resultType
3980
- } = await getObjectTypesThatInvalidate(this.store.client[chunkEHWB7KEN_cjs.additionalContext], wireObjectSet);
3980
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkB5QGX6YV_cjs.additionalContext], wireObjectSet);
3981
3981
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy);
3982
3982
  }
3983
3983
  const resp = await this.#composedObjectSet.fetchPage({
@@ -4046,7 +4046,7 @@ var ObjectSetHelper = class extends AbstractHelper {
4046
4046
  const {
4047
4047
  baseObjectSet
4048
4048
  } = options;
4049
- const baseObjectSetWire = JSON.stringify(chunkEHWB7KEN_cjs.getWireObjectSet(baseObjectSet));
4049
+ const baseObjectSetWire = JSON.stringify(chunkB5QGX6YV_cjs.getWireObjectSet(baseObjectSet));
4050
4050
  const operations = this.buildCanonicalizedOperations(options);
4051
4051
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
4052
4052
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -4062,13 +4062,13 @@ var ObjectSetHelper = class extends AbstractHelper {
4062
4062
  operations.withProperties = Object.keys(options.withProperties).sort();
4063
4063
  }
4064
4064
  if (options.union && options.union.length > 0) {
4065
- operations.union = options.union.map((os) => JSON.stringify(chunkEHWB7KEN_cjs.getWireObjectSet(os)));
4065
+ operations.union = options.union.map((os) => JSON.stringify(chunkB5QGX6YV_cjs.getWireObjectSet(os)));
4066
4066
  }
4067
4067
  if (options.intersect && options.intersect.length > 0) {
4068
- operations.intersect = options.intersect.map((os) => JSON.stringify(chunkEHWB7KEN_cjs.getWireObjectSet(os)));
4068
+ operations.intersect = options.intersect.map((os) => JSON.stringify(chunkB5QGX6YV_cjs.getWireObjectSet(os)));
4069
4069
  }
4070
4070
  if (options.subtract && options.subtract.length > 0) {
4071
- operations.subtract = options.subtract.map((os) => JSON.stringify(chunkEHWB7KEN_cjs.getWireObjectSet(os)));
4071
+ operations.subtract = options.subtract.map((os) => JSON.stringify(chunkB5QGX6YV_cjs.getWireObjectSet(os)));
4072
4072
  }
4073
4073
  if (options.pivotTo) {
4074
4074
  operations.pivotTo = options.pivotTo;
@@ -4140,7 +4140,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
4140
4140
  apiName: "__rdp_canonicalizer_holder__"
4141
4141
  };
4142
4142
  for (const [key, rdpFunction] of Object.entries(rdp)) {
4143
- const builder = chunkEHWB7KEN_cjs.createWithPropertiesObjectSet(
4143
+ const builder = chunkB5QGX6YV_cjs.createWithPropertiesObjectSet(
4144
4144
  objectTypeHolder,
4145
4145
  {
4146
4146
  type: "methodInput"
@@ -4208,7 +4208,7 @@ var Store = class {
4208
4208
  subjects = this.layers.subjects;
4209
4209
  // these are hopefully temporary
4210
4210
  constructor(client) {
4211
- this.logger = client[chunkEHWB7KEN_cjs.additionalContext].logger?.child({}, {
4211
+ this.logger = client[chunkB5QGX6YV_cjs.additionalContext].logger?.child({}, {
4212
4212
  msgPrefix: "Store"
4213
4213
  });
4214
4214
  this.client = client;
@@ -4481,10 +4481,10 @@ var Store = class {
4481
4481
 
4482
4482
  // src/observable/ObservableClient.ts
4483
4483
  function createObservableClient(client) {
4484
- const tweakedClient = chunkO3SKYLBQ_cjs.createClientFromContext({
4485
- ...client[chunkEHWB7KEN_cjs.additionalContext],
4486
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkEHWB7KEN_cjs.additionalContext].fetch, (headers) => {
4487
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkO3SKYLBQ_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4484
+ const tweakedClient = chunkN4XMAVKO_cjs.createClientFromContext({
4485
+ ...client[chunkB5QGX6YV_cjs.additionalContext],
4486
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkB5QGX6YV_cjs.additionalContext].fetch, (headers) => {
4487
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkN4XMAVKO_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
4488
4488
  return headers;
4489
4489
  })
4490
4490
  });
@@ -4528,11 +4528,11 @@ function getOsdkConfig(ontologyRid) {
4528
4528
 
4529
4529
  Object.defineProperty(exports, "createClientWithTransaction", {
4530
4530
  enumerable: true,
4531
- get: function () { return chunkO3SKYLBQ_cjs.createClientWithTransaction; }
4531
+ get: function () { return chunkN4XMAVKO_cjs.createClientWithTransaction; }
4532
4532
  });
4533
4533
  Object.defineProperty(exports, "augment", {
4534
4534
  enumerable: true,
4535
- get: function () { return chunkEHWB7KEN_cjs.augment; }
4535
+ get: function () { return chunkB5QGX6YV_cjs.augment; }
4536
4536
  });
4537
4537
  exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
4538
4538
  exports.createObservableClient = createObservableClient;
@@ -77,7 +77,7 @@ type OrderBy$1<Q extends ObjectTypeDefinition | InterfaceDefinition> = {
77
77
  */
78
78
  type InvalidationMode = "in-place" | "wait" | "reset";
79
79
 
80
- interface ObserveObjectSetOptions<Q extends ObjectTypeDefinition, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}> extends CommonObserveOptions {
80
+ interface ObserveObjectSetOptions<Q extends ObjectOrInterfaceDefinition, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}> extends CommonObserveOptions {
81
81
  where?: WhereClause<Q>;
82
82
  withProperties?: {
83
83
  [K in keyof RDPs]: DerivedProperty.Creator<Q, RDPs[K]>;
@@ -117,7 +117,7 @@ interface ObserveObjectSetOptions<Q extends ObjectTypeDefinition, RDPs extends R
117
117
  * @param options - Optional observation options (where, orderBy, etc.)
118
118
  * @returns A stable string key representing the ObjectSet and options
119
119
  */
120
- declare function computeObjectSetCacheKey<T extends ObjectTypeDefinition, BaseRDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> | BaseObjectSet<T> = never, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}>(objectSet: ObjectSet<T, BaseRDPs>, options?: ObserveObjectSetOptions<T, RDPs>): string;
120
+ declare function computeObjectSetCacheKey<T extends ObjectOrInterfaceDefinition, BaseRDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> | BaseObjectSet<T> = never, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}>(objectSet: ObjectSet<T, BaseRDPs>, options?: ObserveObjectSetOptions<T, RDPs>): string;
121
121
 
122
122
  type Canonical<T> = T & {
123
123
  __canonical: true;
@@ -327,7 +327,7 @@ interface ObservableClient extends ObserveLinks {
327
327
  * - Link traversal with pivotTo
328
328
  * - Sorting and pagination
329
329
  */
330
- observeObjectSet<T extends ObjectTypeDefinition, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}>(baseObjectSet: ObjectSet<T>, options: ObserveObjectSetOptions<T, RDPs>, subFn: Observer<ObserveObjectSetArgs<T, RDPs>>): Unsubscribable;
330
+ observeObjectSet<T extends ObjectOrInterfaceDefinition, RDPs extends Record<string, WirePropertyTypes | undefined | Array<WirePropertyTypes>> = {}>(baseObjectSet: ObjectSet<T>, options: ObserveObjectSetOptions<T, RDPs>, subFn: Observer<ObserveObjectSetArgs<T, RDPs>>): Unsubscribable;
331
331
  /**
332
332
  * Observe an aggregation query with automatic updates when underlying data changes.
333
333
  *
@@ -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.3";
24
+ const MaxOsdkVersion = "2.7.5";
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.3\";\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.7.5\";\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":[]}