@osdk/client 2.5.4 → 2.5.6

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 chunkQEZBIQEI_cjs = require('./chunk-QEZBIQEI.cjs');
4
- require('./chunk-ZZKV2GFQ.cjs');
3
+ var chunkKOVRRVJ6_cjs = require('./chunk-KOVRRVJ6.cjs');
4
+ require('./chunk-5DBB4EBV.cjs');
5
5
  require('./chunk-Q7SFCCGT.cjs');
6
6
  var api = require('@osdk/api');
7
7
  var shared_net_errors = require('@osdk/shared.net.errors');
@@ -13,7 +13,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
13
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
14
14
 
15
15
  function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
16
- return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkQEZBIQEI_cjs.USER_AGENT, fetchFn);
16
+ return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkKOVRRVJ6_cjs.USER_AGENT, fetchFn);
17
17
  }
18
18
  var isoRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
19
19
  var extractDate = (dateTime) => {
@@ -37,19 +37,19 @@ var extractDateFromIsoString = (dateTime) => {
37
37
 
38
38
  Object.defineProperty(exports, "ActionValidationError", {
39
39
  enumerable: true,
40
- get: function () { return chunkQEZBIQEI_cjs.ActionValidationError; }
40
+ get: function () { return chunkKOVRRVJ6_cjs.ActionValidationError; }
41
41
  });
42
42
  Object.defineProperty(exports, "createAttachmentUpload", {
43
43
  enumerable: true,
44
- get: function () { return chunkQEZBIQEI_cjs.createAttachmentUpload; }
44
+ get: function () { return chunkKOVRRVJ6_cjs.createAttachmentUpload; }
45
45
  });
46
46
  Object.defineProperty(exports, "createClient", {
47
47
  enumerable: true,
48
- get: function () { return chunkQEZBIQEI_cjs.createClient; }
48
+ get: function () { return chunkKOVRRVJ6_cjs.createClient; }
49
49
  });
50
50
  Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
51
51
  enumerable: true,
52
- get: function () { return chunkQEZBIQEI_cjs.createObjectSpecifierFromPrimaryKey; }
52
+ get: function () { return chunkKOVRRVJ6_cjs.createObjectSpecifierFromPrimaryKey; }
53
53
  });
54
54
  Object.defineProperty(exports, "isOk", {
55
55
  enumerable: true,
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkZZKV2GFQ_cjs = require('../chunk-ZZKV2GFQ.cjs');
3
+ var chunk5DBB4EBV_cjs = require('../chunk-5DBB4EBV.cjs');
4
4
  require('../chunk-Q7SFCCGT.cjs');
5
5
 
6
6
  // src/public-utils/createAndFetchTempObjectSetRid.ts
7
7
  async function createAndFetchTempObjectSetRid(client, objectSet) {
8
- const response = await chunkZZKV2GFQ_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkZZKV2GFQ_cjs.additionalContext].ontologyRid, {
9
- objectSet: chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet)
8
+ const response = await chunk5DBB4EBV_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunk5DBB4EBV_cjs.additionalContext].ontologyRid, {
9
+ objectSet: chunk5DBB4EBV_cjs.getWireObjectSet(objectSet)
10
10
  });
11
11
  return response.objectSetRid;
12
12
  }
13
13
 
14
14
  // src/public-utils/hydrateObjectSetFromObjectRids.ts
15
15
  function hydrateObjectSetFromObjectRids(client, definition, rids) {
16
- return chunkZZKV2GFQ_cjs.createObjectSet(definition, client[chunkZZKV2GFQ_cjs.additionalContext], {
16
+ return chunk5DBB4EBV_cjs.createObjectSet(definition, client[chunk5DBB4EBV_cjs.additionalContext], {
17
17
  type: "intersect",
18
18
  objectSets: [definition.type === "interface" ? {
19
19
  type: "interfaceBase",
@@ -33,7 +33,7 @@ function asMutableArray(array) {
33
33
 
34
34
  // src/public-utils/hydrateObjectSetFromRid.ts
35
35
  function hydrateObjectSetFromRid(client, definition, rid) {
36
- return chunkZZKV2GFQ_cjs.createObjectSet(definition, client[chunkZZKV2GFQ_cjs.additionalContext], {
36
+ return chunk5DBB4EBV_cjs.createObjectSet(definition, client[chunk5DBB4EBV_cjs.additionalContext], {
37
37
  type: "intersect",
38
38
  objectSets: [definition.type === "interface" ? {
39
39
  type: "interfaceBase",
@@ -74,7 +74,7 @@ var levelStyles = {
74
74
  color: "orange"
75
75
  })
76
76
  };
77
- var BrowserLogger = class _BrowserLogger extends chunkZZKV2GFQ_cjs.BaseLogger {
77
+ var BrowserLogger = class _BrowserLogger extends chunk5DBB4EBV_cjs.BaseLogger {
78
78
  constructor(bindings = {}, options = {}) {
79
79
  super(bindings, {
80
80
  ...options,
@@ -100,11 +100,11 @@ var BrowserLogger = class _BrowserLogger extends chunkZZKV2GFQ_cjs.BaseLogger {
100
100
 
101
101
  Object.defineProperty(exports, "MinimalLogger", {
102
102
  enumerable: true,
103
- get: function () { return chunkZZKV2GFQ_cjs.MinimalLogger; }
103
+ get: function () { return chunk5DBB4EBV_cjs.MinimalLogger; }
104
104
  });
105
105
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
106
106
  enumerable: true,
107
- get: function () { return chunkZZKV2GFQ_cjs.hydrateAttachmentFromRid; }
107
+ get: function () { return chunk5DBB4EBV_cjs.hydrateAttachmentFromRid; }
108
108
  });
109
109
  exports.BrowserLogger = BrowserLogger;
110
110
  exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkQEZBIQEI_cjs = require('../chunk-QEZBIQEI.cjs');
4
- var chunkZZKV2GFQ_cjs = require('../chunk-ZZKV2GFQ.cjs');
3
+ var chunkKOVRRVJ6_cjs = require('../chunk-KOVRRVJ6.cjs');
4
+ var chunk5DBB4EBV_cjs = require('../chunk-5DBB4EBV.cjs');
5
5
  require('../chunk-Q7SFCCGT.cjs');
6
6
  var trie = require('@wry/trie');
7
7
  var deepEqual5 = require('fast-deep-equal');
@@ -142,7 +142,7 @@ var WhereClauseCanonicalizer = class {
142
142
  var whereCanonicalizer = new WhereClauseCanonicalizer();
143
143
  var orderByCanonicalizer = new OrderByCanonicalizer();
144
144
  function computeObjectSetCacheKey(objectSet, options) {
145
- const keyParts = ["objectSet", chunkZZKV2GFQ_cjs.getWireObjectSet(objectSet)];
145
+ const keyParts = ["objectSet", chunk5DBB4EBV_cjs.getWireObjectSet(objectSet)];
146
146
  if (!options) {
147
147
  return JSON.stringify(keyParts);
148
148
  }
@@ -154,13 +154,13 @@ function computeObjectSetCacheKey(objectSet, options) {
154
154
  keyParts.push("props", propKeys);
155
155
  }
156
156
  if (options.union && options.union.length > 0) {
157
- keyParts.push("union", options.union.map((os) => chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
157
+ keyParts.push("union", options.union.map((os) => chunk5DBB4EBV_cjs.getWireObjectSet(os)));
158
158
  }
159
159
  if (options.intersect && options.intersect.length > 0) {
160
- keyParts.push("intersect", options.intersect.map((os) => chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
160
+ keyParts.push("intersect", options.intersect.map((os) => chunk5DBB4EBV_cjs.getWireObjectSet(os)));
161
161
  }
162
162
  if (options.subtract && options.subtract.length > 0) {
163
- keyParts.push("subtract", options.subtract.map((os) => chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
163
+ keyParts.push("subtract", options.subtract.map((os) => chunk5DBB4EBV_cjs.getWireObjectSet(os)));
164
164
  }
165
165
  if (options.pivotTo) {
166
166
  keyParts.push("pivotTo", options.pivotTo);
@@ -319,7 +319,7 @@ var OptimisticJob = class {
319
319
  return this;
320
320
  },
321
321
  createObject(type, pk, properties) {
322
- const create = store.client[chunkZZKV2GFQ_cjs.additionalContext].objectFactory2(store.client[chunkZZKV2GFQ_cjs.additionalContext], [{
322
+ const create = store.client[chunk5DBB4EBV_cjs.additionalContext].objectFactory2(store.client[chunk5DBB4EBV_cjs.additionalContext], [{
323
323
  $primaryKey: pk,
324
324
  $apiName: type.apiName,
325
325
  $objectType: type.apiName,
@@ -1003,7 +1003,7 @@ var Query = class {
1003
1003
  this.store = store;
1004
1004
  this.cacheKeys = store.cacheKeys;
1005
1005
  this.#subject = observable;
1006
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkZZKV2GFQ_cjs.additionalContext].logger : store.client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
1006
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunk5DBB4EBV_cjs.additionalContext].logger : store.client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
1007
1007
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
1008
1008
  }));
1009
1009
  }
@@ -1576,7 +1576,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1576
1576
  batch.changes.modified.add(this.cacheKey);
1577
1577
  }
1578
1578
  constructor(store, subject, cacheKey, opts) {
1579
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
1579
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
1580
1580
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1581
1581
  }) : void 0);
1582
1582
  [this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -1593,7 +1593,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1593
1593
  type: "object",
1594
1594
  apiName: this.#sourceApiName
1595
1595
  };
1596
- const sourceMetadata = await client[chunkZZKV2GFQ_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1596
+ const sourceMetadata = await client[chunk5DBB4EBV_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1597
1597
  const sourceQuery = client(sourceObjectDef).where({
1598
1598
  [sourceMetadata.primaryKeyApiName]: this.#sourcePk
1599
1599
  });
@@ -1657,7 +1657,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
1657
1657
  return this.revalidate(true);
1658
1658
  } else {
1659
1659
  return (async () => {
1660
- const sourceMetadata = await this.store.client[chunkZZKV2GFQ_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1660
+ const sourceMetadata = await this.store.client[chunk5DBB4EBV_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
1661
1661
  const linkDef = sourceMetadata.links?.[this.#linkName];
1662
1662
  if (!linkDef || linkDef.targetType !== objectType) return;
1663
1663
  const promise = this.revalidate(true);
@@ -1788,7 +1788,7 @@ var ListQuery = class extends BaseListQuery {
1788
1788
  batch.changes.registerList(this.cacheKey);
1789
1789
  }
1790
1790
  constructor(store, subject, apiName, whereClause, orderBy, cacheKey, opts) {
1791
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
1791
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
1792
1792
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1793
1793
  }) : void 0);
1794
1794
  this.apiName = apiName;
@@ -2080,7 +2080,7 @@ var InterfaceListQuery = class extends ListQuery {
2080
2080
  }
2081
2081
  extractRelevantObjects(changes) {
2082
2082
  const matchesApiName = ([, object]) => {
2083
- return this.apiName in object[chunkQEZBIQEI_cjs.ObjectDefRef].interfaceMap;
2083
+ return this.apiName in object[chunkKOVRRVJ6_cjs.ObjectDefRef].interfaceMap;
2084
2084
  };
2085
2085
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
2086
2086
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -2101,7 +2101,7 @@ var InterfaceListQuery = class extends ListQuery {
2101
2101
  async function reloadDataAsFullObjects(client, data) {
2102
2102
  const groups = groupBy__default.default(data, (x) => x.$objectType);
2103
2103
  const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
2104
- const objectDef = objects[0][chunkQEZBIQEI_cjs.UnderlyingOsdkObject][chunkQEZBIQEI_cjs.ObjectDefRef];
2104
+ const objectDef = objects[0][chunkKOVRRVJ6_cjs.UnderlyingOsdkObject][chunkKOVRRVJ6_cjs.ObjectDefRef];
2105
2105
  const where = {
2106
2106
  [objectDef.primaryKeyApiName]: {
2107
2107
  $in: objects.map((x) => x.$primaryKey)
@@ -2211,7 +2211,7 @@ var BulkObjectLoader = class {
2211
2211
  #maxEntries;
2212
2212
  constructor(client, maxWait = 25, maxEntries = 100) {
2213
2213
  this.#client = client;
2214
- this.#logger = client[chunkZZKV2GFQ_cjs.additionalContext].logger;
2214
+ this.#logger = client[chunk5DBB4EBV_cjs.additionalContext].logger;
2215
2215
  this.#maxWait = maxWait;
2216
2216
  this.#maxEntries = maxEntries;
2217
2217
  }
@@ -2274,7 +2274,7 @@ var ObjectQuery = class extends Query {
2274
2274
  #apiName;
2275
2275
  #pk;
2276
2276
  constructor(store, subject, type, pk, cacheKey, opts) {
2277
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
2277
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
2278
2278
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2279
2279
  }) : void 0);
2280
2280
  this.#apiName = type;
@@ -2410,7 +2410,7 @@ var ObjectSetQuery = class extends BaseListQuery {
2410
2410
  #composedObjectSet;
2411
2411
  #objectTypes;
2412
2412
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
2413
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
2413
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
2414
2414
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2415
2415
  }) : void 0);
2416
2416
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -2453,7 +2453,7 @@ var ObjectSetQuery = class extends BaseListQuery {
2453
2453
  }
2454
2454
  if (opts.union) {
2455
2455
  for (const os of opts.union) {
2456
- const wire = chunkZZKV2GFQ_cjs.getWireObjectSet(os);
2456
+ const wire = chunk5DBB4EBV_cjs.getWireObjectSet(os);
2457
2457
  if (wire.type) {
2458
2458
  types.add(wire.type);
2459
2459
  }
@@ -2461,7 +2461,7 @@ var ObjectSetQuery = class extends BaseListQuery {
2461
2461
  }
2462
2462
  if (opts.intersect) {
2463
2463
  for (const os of opts.intersect) {
2464
- const wire = chunkZZKV2GFQ_cjs.getWireObjectSet(os);
2464
+ const wire = chunk5DBB4EBV_cjs.getWireObjectSet(os);
2465
2465
  if (wire.type) {
2466
2466
  types.add(wire.type);
2467
2467
  }
@@ -2469,7 +2469,7 @@ var ObjectSetQuery = class extends BaseListQuery {
2469
2469
  }
2470
2470
  if (opts.subtract) {
2471
2471
  for (const os of opts.subtract) {
2472
- const wire = chunkZZKV2GFQ_cjs.getWireObjectSet(os);
2472
+ const wire = chunk5DBB4EBV_cjs.getWireObjectSet(os);
2473
2473
  if (wire.type) {
2474
2474
  types.add(wire.type);
2475
2475
  }
@@ -2543,7 +2543,7 @@ var ObjectSetHelper = class extends AbstractHelper {
2543
2543
  const {
2544
2544
  baseObjectSet
2545
2545
  } = options;
2546
- const baseObjectSetWire = JSON.stringify(chunkZZKV2GFQ_cjs.getWireObjectSet(baseObjectSet));
2546
+ const baseObjectSetWire = JSON.stringify(chunk5DBB4EBV_cjs.getWireObjectSet(baseObjectSet));
2547
2547
  const operations = this.buildCanonicalizedOperations(options);
2548
2548
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
2549
2549
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -2559,13 +2559,13 @@ var ObjectSetHelper = class extends AbstractHelper {
2559
2559
  operations.withProperties = Object.keys(options.withProperties).sort();
2560
2560
  }
2561
2561
  if (options.union && options.union.length > 0) {
2562
- operations.union = options.union.map((os) => JSON.stringify(chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
2562
+ operations.union = options.union.map((os) => JSON.stringify(chunk5DBB4EBV_cjs.getWireObjectSet(os)));
2563
2563
  }
2564
2564
  if (options.intersect && options.intersect.length > 0) {
2565
- operations.intersect = options.intersect.map((os) => JSON.stringify(chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
2565
+ operations.intersect = options.intersect.map((os) => JSON.stringify(chunk5DBB4EBV_cjs.getWireObjectSet(os)));
2566
2566
  }
2567
2567
  if (options.subtract && options.subtract.length > 0) {
2568
- operations.subtract = options.subtract.map((os) => JSON.stringify(chunkZZKV2GFQ_cjs.getWireObjectSet(os)));
2568
+ operations.subtract = options.subtract.map((os) => JSON.stringify(chunk5DBB4EBV_cjs.getWireObjectSet(os)));
2569
2569
  }
2570
2570
  if (options.pivotTo) {
2571
2571
  operations.pivotTo = options.pivotTo;
@@ -2618,7 +2618,7 @@ var Store = class {
2618
2618
  subjects = this.layers.subjects;
2619
2619
  // these are hopefully temporary
2620
2620
  constructor(client) {
2621
- this.logger = client[chunkZZKV2GFQ_cjs.additionalContext].logger?.child({}, {
2621
+ this.logger = client[chunk5DBB4EBV_cjs.additionalContext].logger?.child({}, {
2622
2622
  msgPrefix: "Store"
2623
2623
  });
2624
2624
  this.client = client;
@@ -2757,10 +2757,10 @@ var Store = class {
2757
2757
 
2758
2758
  // src/observable/ObservableClient.ts
2759
2759
  function createObservableClient(client) {
2760
- const tweakedClient = chunkQEZBIQEI_cjs.createClientFromContext({
2761
- ...client[chunkZZKV2GFQ_cjs.additionalContext],
2762
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkZZKV2GFQ_cjs.additionalContext].fetch, (headers) => {
2763
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkQEZBIQEI_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
2760
+ const tweakedClient = chunkKOVRRVJ6_cjs.createClientFromContext({
2761
+ ...client[chunk5DBB4EBV_cjs.additionalContext],
2762
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk5DBB4EBV_cjs.additionalContext].fetch, (headers) => {
2763
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkKOVRRVJ6_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
2764
2764
  return headers;
2765
2765
  })
2766
2766
  });
@@ -2803,11 +2803,11 @@ function getOsdkConfig(ontologyRid) {
2803
2803
 
2804
2804
  Object.defineProperty(exports, "createClientWithTransaction", {
2805
2805
  enumerable: true,
2806
- get: function () { return chunkQEZBIQEI_cjs.createClientWithTransaction; }
2806
+ get: function () { return chunkKOVRRVJ6_cjs.createClientWithTransaction; }
2807
2807
  });
2808
2808
  Object.defineProperty(exports, "augment", {
2809
2809
  enumerable: true,
2810
- get: function () { return chunkZZKV2GFQ_cjs.augment; }
2810
+ get: function () { return chunk5DBB4EBV_cjs.augment; }
2811
2811
  });
2812
2812
  exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
2813
2813
  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.5.4";
24
+ const MaxOsdkVersion = "2.5.6";
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.5.4\";\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.5.6\";\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.5.4"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.4"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.5.6"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.5.6"}`;
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.5.4";
19
+ declare const MaxOsdkVersion = "2.5.6";
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.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -65,12 +65,12 @@
65
65
  "tiny-invariant": "^1.3.3",
66
66
  "type-fest": "^4.41.0",
67
67
  "ws": "^8.18.3",
68
- "@osdk/api": "~2.5.4",
69
- "@osdk/generator-converters": "2.5.4",
70
- "@osdk/client.unstable": "2.5.4",
68
+ "@osdk/api": "~2.5.6",
69
+ "@osdk/client.unstable": "2.5.6",
71
70
  "@osdk/shared.client.impl": "~1.5.0",
72
- "@osdk/shared.net.fetch": "~1.5.0",
73
- "@osdk/shared.net.errors": "~2.5.0"
71
+ "@osdk/generator-converters": "2.5.6",
72
+ "@osdk/shared.net.errors": "~2.5.0",
73
+ "@osdk/shared.net.fetch": "~1.5.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@microsoft/api-documenter": "^7.26.32",
@@ -91,7 +91,7 @@
91
91
  "ts-expect": "^1.3.0",
92
92
  "typescript": "~5.5.4",
93
93
  "zod": "^3.25.76",
94
- "@osdk/client.test.ontology": "~2.5.4",
94
+ "@osdk/client.test.ontology": "~2.5.6",
95
95
  "@osdk/monorepo.api-extractor": "~0.4.0",
96
96
  "@osdk/monorepo.tsconfig": "~0.4.0",
97
97
  "@osdk/shared.test": "~2.5.0"