@osdk/client 2.71.0 → 2.71.1-main-e5023d02bf53a3ce0ad950a3a57e8a0e78ec711a

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 (29) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/util/UserAgent.js +2 -2
  5. package/build/browser/util/UserAgent.js.map +1 -1
  6. package/build/cjs/{applyStreamingQuery-H3X3C5FU.cjs → applyStreamingQuery-HBQPRJ4I.cjs} +8 -8
  7. package/build/cjs/{applyStreamingQuery-H3X3C5FU.cjs.map → applyStreamingQuery-HBQPRJ4I.cjs.map} +1 -1
  8. package/build/cjs/{chunk-PDBUYKWG.cjs → chunk-ANTHHHST.cjs} +80 -80
  9. package/build/cjs/{chunk-PDBUYKWG.cjs.map → chunk-ANTHHHST.cjs.map} +1 -1
  10. package/build/cjs/{chunk-DKODJJ7N.cjs → chunk-GOPEJNNA.cjs} +13 -13
  11. package/build/cjs/{chunk-DKODJJ7N.cjs.map → chunk-GOPEJNNA.cjs.map} +1 -1
  12. package/build/cjs/{chunk-RNB7M3QX.cjs → chunk-J2UASCCP.cjs} +8 -8
  13. package/build/cjs/{chunk-RNB7M3QX.cjs.map → chunk-J2UASCCP.cjs.map} +1 -1
  14. package/build/cjs/{chunk-ZWABEEHA.cjs → chunk-NQPEDXAP.cjs} +46 -46
  15. package/build/cjs/chunk-NQPEDXAP.cjs.map +1 -0
  16. package/build/cjs/{chunk-2E3QVQUU.cjs → chunk-TSHX2JAX.cjs} +2 -2
  17. package/build/cjs/{chunk-2E3QVQUU.cjs.map → chunk-TSHX2JAX.cjs.map} +1 -1
  18. package/build/cjs/index.cjs +11 -11
  19. package/build/cjs/public/experimental.cjs +9 -9
  20. package/build/cjs/public/internal.cjs +7 -7
  21. package/build/cjs/public/observable.cjs +5 -5
  22. package/build/cjs/public/unstable-do-not-use.cjs +16 -16
  23. package/build/esm/Client.js +1 -1
  24. package/build/esm/Client.js.map +1 -1
  25. package/build/esm/util/UserAgent.js +2 -2
  26. package/build/esm/util/UserAgent.js.map +1 -1
  27. package/build/types/Client.d.ts +1 -1
  28. package/package.json +6 -6
  29. package/build/cjs/chunk-ZWABEEHA.cjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWABEEHA_cjs = require('./chunk-ZWABEEHA.cjs');
4
- var chunkDKODJJ7N_cjs = require('./chunk-DKODJJ7N.cjs');
5
- var chunk2E3QVQUU_cjs = require('./chunk-2E3QVQUU.cjs');
3
+ var chunkNQPEDXAP_cjs = require('./chunk-NQPEDXAP.cjs');
4
+ var chunkGOPEJNNA_cjs = require('./chunk-GOPEJNNA.cjs');
5
+ var chunkTSHX2JAX_cjs = require('./chunk-TSHX2JAX.cjs');
6
6
  var shared_net_fetch = require('@osdk/shared.net.fetch');
7
7
  var rxjs = require('rxjs');
8
8
  var invariant5 = require('tiny-invariant');
@@ -67,8 +67,8 @@ var ObservableClientImpl = class {
67
67
  const instances = [];
68
68
  const objectSetWires = [];
69
69
  for (const item of options.dependsOnObjects ?? []) {
70
- if (chunk2E3QVQUU_cjs.isObjectSet(item)) {
71
- objectSetWires.push(chunk2E3QVQUU_cjs.getWireObjectSet(item));
70
+ if (chunkTSHX2JAX_cjs.isObjectSet(item)) {
71
+ objectSetWires.push(chunkTSHX2JAX_cjs.getWireObjectSet(item));
72
72
  } else {
73
73
  instances.push({
74
74
  $apiName: item.$objectType ?? item.$apiName,
@@ -76,7 +76,7 @@ var ObservableClientImpl = class {
76
76
  });
77
77
  }
78
78
  }
79
- const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunk2E3QVQUU_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunk2E3QVQUU_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
79
+ const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkTSHX2JAX_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkTSHX2JAX_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
80
80
  return this.__experimentalStore.functions.observe({
81
81
  ...options,
82
82
  queryDef,
@@ -139,7 +139,7 @@ var ObservableClientImpl = class {
139
139
  if (!arr || arr.length === 0) {
140
140
  return arr;
141
141
  }
142
- const wireStrings = arr.map((os) => JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(os)));
142
+ const wireStrings = arr.map((os) => JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(os)));
143
143
  const canonKey = canonicalize(wireStrings);
144
144
  let cached = cache.get(canonKey);
145
145
  if (!cached) {
@@ -354,7 +354,7 @@ var OptimisticJob = class {
354
354
  return this;
355
355
  },
356
356
  createObject(type, pk, properties) {
357
- const create = store.client[chunk2E3QVQUU_cjs.additionalContext].objectFactory(store.client[chunk2E3QVQUU_cjs.additionalContext], [{
357
+ const create = store.client[chunkTSHX2JAX_cjs.additionalContext].objectFactory(store.client[chunkTSHX2JAX_cjs.additionalContext], [{
358
358
  $primaryKey: pk,
359
359
  $apiName: type.apiName,
360
360
  $objectType: type.apiName,
@@ -860,7 +860,7 @@ var Query = class {
860
860
  this.store = store;
861
861
  this.cacheKeys = store.cacheKeys;
862
862
  this.#subject = observable;
863
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger : store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
863
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger : store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
864
864
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
865
865
  }));
866
866
  }
@@ -1022,7 +1022,7 @@ var AggregationQuery = class extends Query {
1022
1022
  #invalidationTypes;
1023
1023
  #invalidationTypesPromise;
1024
1024
  constructor(store, subject, cacheKey, opts) {
1025
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
1025
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
1026
1026
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1027
1027
  }) : void 0);
1028
1028
  this.apiName = cacheKey.otherKeys[API_NAME_IDX2];
@@ -1040,7 +1040,7 @@ var AggregationQuery = class extends Query {
1040
1040
  try {
1041
1041
  const {
1042
1042
  invalidationSet
1043
- } = await getObjectTypesThatInvalidate(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet);
1043
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet);
1044
1044
  return /* @__PURE__ */ new Set([this.apiName, ...invalidationSet]);
1045
1045
  } catch (error) {
1046
1046
  this.store.logger?.error("Failed to compute invalidation types for aggregation, falling back to base type only", error);
@@ -1111,7 +1111,7 @@ var ObjectAggregationQuery = class extends AggregationQuery {
1111
1111
  };
1112
1112
  let objectSet;
1113
1113
  if (this.parsedWireObjectSet) {
1114
- objectSet = chunk2E3QVQUU_cjs.createObjectSet(objectTypeDef, this.store.client[chunk2E3QVQUU_cjs.additionalContext], this.parsedWireObjectSet);
1114
+ objectSet = chunkTSHX2JAX_cjs.createObjectSet(objectTypeDef, this.store.client[chunkTSHX2JAX_cjs.additionalContext], this.parsedWireObjectSet);
1115
1115
  } else {
1116
1116
  objectSet = this.store.client(objectTypeDef);
1117
1117
  }
@@ -1153,7 +1153,7 @@ var AggregationsHelper = class extends AbstractHelper {
1153
1153
  return this.getOrCreateQuery(options, void 0);
1154
1154
  }
1155
1155
  getQueryWithObjectSet(options) {
1156
- const serializedObjectSet = JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(options.objectSet));
1156
+ const serializedObjectSet = JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(options.objectSet));
1157
1157
  return this.getOrCreateQuery(options, serializedObjectSet);
1158
1158
  }
1159
1159
  getOrCreateQuery(options, serializedObjectSet) {
@@ -1503,7 +1503,7 @@ var FunctionParamsCanonicalizer = class {
1503
1503
  path.push("$:map_end");
1504
1504
  return arr;
1505
1505
  }
1506
- if (chunkDKODJJ7N_cjs.isObjectSpecifiersObject(value)) {
1506
+ if (chunkGOPEJNNA_cjs.isObjectSpecifiersObject(value)) {
1507
1507
  const objectType = value.$objectType ?? value.$apiName;
1508
1508
  path.push("$:osdk", objectType, value.$primaryKey);
1509
1509
  return {
@@ -1511,8 +1511,8 @@ var FunctionParamsCanonicalizer = class {
1511
1511
  $primaryKey: value.$primaryKey
1512
1512
  };
1513
1513
  }
1514
- if (chunk2E3QVQUU_cjs.isObjectSet(value)) {
1515
- const wire = JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(value));
1514
+ if (chunkTSHX2JAX_cjs.isObjectSet(value)) {
1515
+ const wire = JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(value));
1516
1516
  path.push("$:objectset", wire);
1517
1517
  return wire;
1518
1518
  }
@@ -1572,7 +1572,7 @@ var FunctionQuery = class extends Query {
1572
1572
  #dependsOnObjects;
1573
1573
  #queryDef;
1574
1574
  constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
1575
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
1575
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
1576
1576
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1577
1577
  }) : void 0);
1578
1578
  this.#apiName = queryDef.apiName;
@@ -1629,7 +1629,7 @@ var FunctionQuery = class extends Query {
1629
1629
  }).debug("calling _fetchAndStore");
1630
1630
  }
1631
1631
  try {
1632
- const result = await chunkDKODJJ7N_cjs.applyQuery(this.store.client[chunk2E3QVQUU_cjs.additionalContext], this.#queryDef, this.#params);
1632
+ const result = await chunkGOPEJNNA_cjs.applyQuery(this.store.client[chunkTSHX2JAX_cjs.additionalContext], this.#queryDef, this.#params);
1633
1633
  const executedAt = Date.now();
1634
1634
  this.store.batch({}, (batch) => {
1635
1635
  this.writeToStore({
@@ -2209,11 +2209,11 @@ function isStringEncodedNumericType(type) {
2209
2209
  return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
2210
2210
  }
2211
2211
  function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
2212
- const objectType = holder?.[chunkZWABEEHA_cjs.ObjectDefRef]?.properties?.[key]?.type;
2212
+ const objectType = holder?.[chunkNQPEDXAP_cjs.ObjectDefRef]?.properties?.[key]?.type;
2213
2213
  if (typeof objectType === "string") {
2214
2214
  return objectType;
2215
2215
  }
2216
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkZWABEEHA_cjs.InterfaceDefRef], key);
2216
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkNQPEDXAP_cjs.InterfaceDefRef], key);
2217
2217
  if (typeof interfaceType === "string") {
2218
2218
  return interfaceType;
2219
2219
  }
@@ -2228,7 +2228,7 @@ function resolveInterfacePropertyType(interfaceDef, key) {
2228
2228
  if (typeof direct === "string") {
2229
2229
  return direct;
2230
2230
  }
2231
- const [namespace] = chunk2E3QVQUU_cjs.extractNamespace(interfaceDef.apiName);
2231
+ const [namespace] = chunkTSHX2JAX_cjs.extractNamespace(interfaceDef.apiName);
2232
2232
  if (namespace == null) {
2233
2233
  return void 0;
2234
2234
  }
@@ -2307,8 +2307,8 @@ function stripRdpFields(value, rdpFields) {
2307
2307
  if (rdpFields.size === 0) {
2308
2308
  return value;
2309
2309
  }
2310
- const underlying = value[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2311
- const objectDef = requireObjectDef(value[chunkZWABEEHA_cjs.ObjectDefRef], underlying);
2310
+ const underlying = value[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2311
+ const objectDef = requireObjectDef(value[chunkNQPEDXAP_cjs.ObjectDefRef], underlying);
2312
2312
  const newProps = {
2313
2313
  $apiName: underlying.$apiName,
2314
2314
  $objectType: underlying.$objectType,
@@ -2321,7 +2321,7 @@ function stripRdpFields(value, rdpFields) {
2321
2321
  newProps[key] = underlying[key];
2322
2322
  }
2323
2323
  }
2324
- return chunkZWABEEHA_cjs.createOsdkObject(value[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2324
+ return chunkNQPEDXAP_cjs.createOsdkObject(value[chunkNQPEDXAP_cjs.ClientRef], objectDef, newProps);
2325
2325
  }
2326
2326
  function isSuperset(superset, subset) {
2327
2327
  for (const field of subset) {
@@ -2332,8 +2332,8 @@ function isSuperset(superset, subset) {
2332
2332
  return true;
2333
2333
  }
2334
2334
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2335
- const underlying = value[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2336
- const objectDef = requireObjectDef(value[chunkZWABEEHA_cjs.ObjectDefRef], underlying);
2335
+ const underlying = value[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2336
+ const objectDef = requireObjectDef(value[chunkNQPEDXAP_cjs.ObjectDefRef], underlying);
2337
2337
  const newProps = {
2338
2338
  $apiName: underlying.$apiName,
2339
2339
  $objectType: underlying.$objectType,
@@ -2350,12 +2350,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2350
2350
  newProps[key] = underlying[key];
2351
2351
  }
2352
2352
  }
2353
- return chunkZWABEEHA_cjs.createOsdkObject(value[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2353
+ return chunkNQPEDXAP_cjs.createOsdkObject(value[chunkNQPEDXAP_cjs.ClientRef], objectDef, newProps);
2354
2354
  }
2355
2355
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2356
- const sourceUnderlying = sourceValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2357
- const existingUnderlying = existingValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2358
- const objectDef = requireObjectDef(sourceValue[chunkZWABEEHA_cjs.ObjectDefRef], sourceUnderlying);
2356
+ const sourceUnderlying = sourceValue[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2357
+ const existingUnderlying = existingValue[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2358
+ const objectDef = requireObjectDef(sourceValue[chunkNQPEDXAP_cjs.ObjectDefRef], sourceUnderlying);
2359
2359
  const newProps = {
2360
2360
  $apiName: sourceUnderlying.$apiName,
2361
2361
  $objectType: sourceUnderlying.$objectType,
@@ -2375,7 +2375,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
2375
2375
  newProps[key] = sourceUnderlying[key];
2376
2376
  }
2377
2377
  }
2378
- return chunkZWABEEHA_cjs.createOsdkObject(sourceValue[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2378
+ return chunkNQPEDXAP_cjs.createOsdkObject(sourceValue[chunkNQPEDXAP_cjs.ClientRef], objectDef, newProps);
2379
2379
  }
2380
2380
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
2381
2381
  if (targetRdpFields.size === 0) {
@@ -2387,8 +2387,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2387
2387
  }
2388
2388
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
2389
2389
  }
2390
- const sourceUnderlying = sourceValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2391
- const objectDef = requireObjectDef(sourceValue[chunkZWABEEHA_cjs.ObjectDefRef], sourceUnderlying);
2390
+ const sourceUnderlying = sourceValue[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2391
+ const objectDef = requireObjectDef(sourceValue[chunkNQPEDXAP_cjs.ObjectDefRef], sourceUnderlying);
2392
2392
  const newProps = {
2393
2393
  $apiName: sourceUnderlying.$apiName,
2394
2394
  $objectType: sourceUnderlying.$objectType,
@@ -2407,14 +2407,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2407
2407
  }
2408
2408
  }
2409
2409
  if (targetCurrentValue) {
2410
- const targetUnderlying = targetCurrentValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2410
+ const targetUnderlying = targetCurrentValue[chunkNQPEDXAP_cjs.UnderlyingOsdkObject];
2411
2411
  for (const field of targetRdpFields) {
2412
2412
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
2413
2413
  newProps[field] = targetUnderlying[field];
2414
2414
  }
2415
2415
  }
2416
2416
  }
2417
- return chunkZWABEEHA_cjs.createOsdkObject(sourceValue[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2417
+ return chunkNQPEDXAP_cjs.createOsdkObject(sourceValue[chunkNQPEDXAP_cjs.ClientRef], objectDef, newProps);
2418
2418
  }
2419
2419
  function createCollectionConnectable(subject, subjects, createPayload) {
2420
2420
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3062,7 +3062,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3062
3062
  batch.changes.modified.add(this.cacheKey);
3063
3063
  }
3064
3064
  constructor(store, subject, cacheKey, opts) {
3065
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
3065
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
3066
3066
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3067
3067
  }) : void 0);
3068
3068
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -3084,7 +3084,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3084
3084
  */
3085
3085
  async fetchPageData(signal) {
3086
3086
  const client = this.store.client;
3087
- const ontologyProvider = client[chunk2E3QVQUU_cjs.additionalContext].ontologyProvider;
3087
+ const ontologyProvider = client[chunkTSHX2JAX_cjs.additionalContext].ontologyProvider;
3088
3088
  const isInterface = this.#sourceTypeKind === "interface";
3089
3089
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
3090
3090
  let target;
@@ -3216,7 +3216,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3216
3216
  }
3217
3217
  return (async () => {
3218
3218
  try {
3219
- const ontologyProvider = this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyProvider;
3219
+ const ontologyProvider = this.store.client[chunkTSHX2JAX_cjs.additionalContext].ontologyProvider;
3220
3220
  if (this.#sourceTypeKind === "interface") {
3221
3221
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
3222
3222
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3397,7 +3397,7 @@ var ListQuery = class extends BaseListQuery {
3397
3397
  batch.changes.registerList(this.cacheKey);
3398
3398
  }
3399
3399
  constructor(store, subject, apiName, cacheKey, opts) {
3400
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
3400
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
3401
3401
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3402
3402
  }) : void 0);
3403
3403
  this.apiName = apiName;
@@ -3450,11 +3450,11 @@ var ListQuery = class extends BaseListQuery {
3450
3450
  async fetchPageData(signal) {
3451
3451
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3452
3452
  if (needsResultType) {
3453
- const wireObjectSet = chunk2E3QVQUU_cjs.getWireObjectSet(this.#objectSet);
3453
+ const wireObjectSet = chunkTSHX2JAX_cjs.getWireObjectSet(this.#objectSet);
3454
3454
  const {
3455
3455
  resultType,
3456
3456
  invalidationSet
3457
- } = await getObjectTypesThatInvalidate(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet);
3457
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet);
3458
3458
  this.#updateFetchedObjectType(resultType.apiName);
3459
3459
  this.#rdpInvalidationSet = invalidationSet;
3460
3460
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
@@ -3464,7 +3464,7 @@ var ListQuery = class extends BaseListQuery {
3464
3464
  // Carries derived-property type metadata so string-encoded numeric
3465
3465
  // derived properties (decimal/long) sort by value. Returns {} when
3466
3466
  // there are no derived properties.
3467
- await chunk2E3QVQUU_cjs.extractRdpDefinition(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet)
3467
+ await chunkTSHX2JAX_cjs.extractRdpDefinition(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet)
3468
3468
  );
3469
3469
  }
3470
3470
  if (this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied) {
@@ -3491,11 +3491,11 @@ var ListQuery = class extends BaseListQuery {
3491
3491
  }
3492
3492
  if (this.#fetchedObjectType == null) {
3493
3493
  try {
3494
- const wireObjectSet = chunk2E3QVQUU_cjs.getWireObjectSet(this.#objectSet);
3494
+ const wireObjectSet = chunkTSHX2JAX_cjs.getWireObjectSet(this.#objectSet);
3495
3495
  const {
3496
3496
  resultType,
3497
3497
  invalidationSet
3498
- } = await getObjectTypesThatInvalidate(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet);
3498
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet);
3499
3499
  this.#updateFetchedObjectType(resultType.apiName);
3500
3500
  this.#rdpInvalidationSet = invalidationSet;
3501
3501
  } catch {
@@ -3758,7 +3758,7 @@ var InterfaceListQuery = class extends ListQuery {
3758
3758
  type,
3759
3759
  apiName: this.apiName
3760
3760
  };
3761
- const clientCtx = store.client[chunk2E3QVQUU_cjs.additionalContext];
3761
+ const clientCtx = store.client[chunkTSHX2JAX_cjs.additionalContext];
3762
3762
  let objectSet;
3763
3763
  if (rids != null) {
3764
3764
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3802,7 +3802,7 @@ var InterfaceListQuery = class extends ListQuery {
3802
3802
  }
3803
3803
  extractRelevantObjects(changes) {
3804
3804
  const matchesApiName = ([, object]) => {
3805
- return this.apiName in object[chunkZWABEEHA_cjs.ObjectDefRef].interfaceMap;
3805
+ return this.apiName in object[chunkNQPEDXAP_cjs.ObjectDefRef].interfaceMap;
3806
3806
  };
3807
3807
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3808
3808
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -3821,7 +3821,7 @@ var InterfaceListQuery = class extends ListQuery {
3821
3821
  }
3822
3822
  };
3823
3823
  function createSourceSetForPivot(store, pivotInfo, rids) {
3824
- const clientCtx = store.client[chunk2E3QVQUU_cjs.additionalContext];
3824
+ const clientCtx = store.client[chunkTSHX2JAX_cjs.additionalContext];
3825
3825
  if (rids != null) {
3826
3826
  return clientCtx.objectSetFactory({
3827
3827
  type: "object",
@@ -3850,7 +3850,7 @@ var ObjectListQuery = class extends ListQuery {
3850
3850
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3851
3851
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3852
3852
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3853
- const clientCtx = store.client[chunk2E3QVQUU_cjs.additionalContext];
3853
+ const clientCtx = store.client[chunkTSHX2JAX_cjs.additionalContext];
3854
3854
  const typeDefinition = {
3855
3855
  type: "object",
3856
3856
  apiName: this.apiName
@@ -4111,7 +4111,7 @@ var MediaMetadataQuery = class extends Query {
4111
4111
  #propertyName;
4112
4112
  #preview;
4113
4113
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
4114
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
4114
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
4115
4115
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
4116
4116
  }) : void 0);
4117
4117
  this.#objectType = objectType;
@@ -4144,8 +4144,8 @@ var MediaMetadataQuery = class extends Query {
4144
4144
  this.setStatus("loading", batch);
4145
4145
  });
4146
4146
  try {
4147
- const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4148
- const response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4147
+ const ontologyRid = await this.store.client[chunkTSHX2JAX_cjs.additionalContext].ontologyRid;
4148
+ const response = await chunkNQPEDXAP_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkTSHX2JAX_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4149
4149
  preview: this.#preview
4150
4150
  });
4151
4151
  const metadata = {
@@ -4267,8 +4267,8 @@ var MediaHelper = class extends AbstractHelper {
4267
4267
  return this._subscribe(query, options, observer);
4268
4268
  }
4269
4269
  async fetchMetadata(coords, options) {
4270
- const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4271
- const response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4270
+ const ontologyRid = await this.store.client[chunkTSHX2JAX_cjs.additionalContext].ontologyRid;
4271
+ const response = await chunkNQPEDXAP_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkTSHX2JAX_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4272
4272
  preview: options?.preview ?? true
4273
4273
  });
4274
4274
  return {
@@ -4288,8 +4288,8 @@ var MediaHelper = class extends AbstractHelper {
4288
4288
  let response;
4289
4289
  const coords = this.resolveToCoords(mediaOrLocation);
4290
4290
  if (coords) {
4291
- const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4292
- response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4291
+ const ontologyRid = await this.store.client[chunkTSHX2JAX_cjs.additionalContext].ontologyRid;
4292
+ response = await chunkNQPEDXAP_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkTSHX2JAX_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4293
4293
  preview
4294
4294
  });
4295
4295
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4476,7 +4476,7 @@ var ObjectCacheKeyRegistry = class {
4476
4476
 
4477
4477
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4478
4478
  function isInterfaceHolder(v) {
4479
- return typeof v === "object" && v != null && chunkZWABEEHA_cjs.InterfaceDefRef in v;
4479
+ return typeof v === "object" && v != null && chunkNQPEDXAP_cjs.InterfaceDefRef in v;
4480
4480
  }
4481
4481
 
4482
4482
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4535,7 +4535,7 @@ var BulkObjectLoader = class {
4535
4535
  #maxEntries;
4536
4536
  constructor(client, maxWait = 25, maxEntries = 100) {
4537
4537
  this.#client = client;
4538
- this.#logger = client[chunk2E3QVQUU_cjs.additionalContext].logger;
4538
+ this.#logger = client[chunkTSHX2JAX_cjs.additionalContext].logger;
4539
4539
  this.#maxWait = maxWait;
4540
4540
  this.#maxEntries = maxEntries;
4541
4541
  }
@@ -4704,7 +4704,7 @@ var ObjectQuery = class extends Query {
4704
4704
  #includeAllBaseObjectProperties;
4705
4705
  #implementingTypes;
4706
4706
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4707
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
4707
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
4708
4708
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4709
4709
  }) : void 0);
4710
4710
  this.#apiName = type;
@@ -4819,7 +4819,7 @@ var ObjectsHelper = class extends AbstractHelper {
4819
4819
  select,
4820
4820
  $loadPropertySecurityMetadata
4821
4821
  } = options;
4822
- const defType = chunkDKODJJ7N_cjs.getDefType(options.apiName);
4822
+ const defType = chunkGOPEJNNA_cjs.getDefType(options.apiName);
4823
4823
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4824
4824
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4825
4825
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4836,7 +4836,7 @@ var ObjectsHelper = class extends AbstractHelper {
4836
4836
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4837
4837
  const holders = values;
4838
4838
  return holders.map((v) => {
4839
- const concreteHolder = isInterfaceHolder(v) ? v[chunkZWABEEHA_cjs.UnderlyingOsdkObject] : v;
4839
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkNQPEDXAP_cjs.UnderlyingOsdkObject] : v;
4840
4840
  return this.getQuery({
4841
4841
  apiName: v.$objectType ?? v.$apiName,
4842
4842
  pk: v.$primaryKey,
@@ -4934,7 +4934,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4934
4934
  // revalidation. Lazily populated on first fetch when `withProperties` is set.
4935
4935
  #rdpInvalidationSet;
4936
4936
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4937
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
4937
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
4938
4938
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4939
4939
  }) : void 0);
4940
4940
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -5002,7 +5002,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5002
5002
  return;
5003
5003
  }
5004
5004
  for (const os of sets) {
5005
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunk2E3QVQUU_cjs.getWireObjectSet(os));
5005
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkTSHX2JAX_cjs.getWireObjectSet(os));
5006
5006
  if (typeName) {
5007
5007
  types.add(typeName);
5008
5008
  }
@@ -5029,16 +5029,16 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5029
5029
  */
5030
5030
  async fetchPageData(signal) {
5031
5031
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
5032
- const wireObjectSet = chunk2E3QVQUU_cjs.getWireObjectSet(this.#composedObjectSet);
5032
+ const wireObjectSet = chunkTSHX2JAX_cjs.getWireObjectSet(this.#composedObjectSet);
5033
5033
  const {
5034
5034
  resultType,
5035
5035
  invalidationSet
5036
- } = await getObjectTypesThatInvalidate(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet);
5037
- this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunk2E3QVQUU_cjs.extractRdpDefinition(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet));
5036
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet);
5037
+ this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunkTSHX2JAX_cjs.extractRdpDefinition(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet));
5038
5038
  this.#rdpInvalidationSet = invalidationSet;
5039
5039
  }
5040
5040
  if (this.#rdpInvalidationSet == null && this.#operations.withProperties != null) {
5041
- const wireObjectSet = chunk2E3QVQUU_cjs.getWireObjectSet(this.#composedObjectSet);
5041
+ const wireObjectSet = chunkTSHX2JAX_cjs.getWireObjectSet(this.#composedObjectSet);
5042
5042
  this.#rdpInvalidationSet = await this.#computeInvalidationTypes(wireObjectSet);
5043
5043
  }
5044
5044
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5187,7 +5187,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5187
5187
  try {
5188
5188
  const {
5189
5189
  invalidationSet
5190
- } = await getObjectTypesThatInvalidate(this.store.client[chunk2E3QVQUU_cjs.additionalContext], wireObjectSet);
5190
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkTSHX2JAX_cjs.additionalContext], wireObjectSet);
5191
5191
  return invalidationSet;
5192
5192
  } catch (error) {
5193
5193
  this.store.logger?.error("Failed to compute invalidation types for object set query, falling back to empty set", error);
@@ -5268,7 +5268,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5268
5268
  if (process.env.NODE_ENV !== "production") {
5269
5269
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5270
5270
  }
5271
- } else if (options.withProperties || chunk2E3QVQUU_cjs.hasWithProperties(chunk2E3QVQUU_cjs.getWireObjectSet(options.baseObjectSet))) {
5271
+ } else if (options.withProperties || chunkTSHX2JAX_cjs.hasWithProperties(chunkTSHX2JAX_cjs.getWireObjectSet(options.baseObjectSet))) {
5272
5272
  if (process.env.NODE_ENV !== "production") {
5273
5273
  console.warn("[@osdk/client] streamUpdates is not supported with withProperties. The server does not support websocket subscriptions for object sets that include derived properties. Ignoring streamUpdates.");
5274
5274
  }
@@ -5282,7 +5282,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5282
5282
  const {
5283
5283
  baseObjectSet
5284
5284
  } = options;
5285
- const baseObjectSetWire = JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(baseObjectSet));
5285
+ const baseObjectSetWire = JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(baseObjectSet));
5286
5286
  const operations = this.buildCanonicalizedOperations(options);
5287
5287
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5288
5288
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5298,13 +5298,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5298
5298
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5299
5299
  }
5300
5300
  if (options.union && options.union.length > 0) {
5301
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(os))));
5301
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(os))));
5302
5302
  }
5303
5303
  if (options.intersect && options.intersect.length > 0) {
5304
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(os))));
5304
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(os))));
5305
5305
  }
5306
5306
  if (options.subtract && options.subtract.length > 0) {
5307
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunk2E3QVQUU_cjs.getWireObjectSet(os))));
5307
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkTSHX2JAX_cjs.getWireObjectSet(os))));
5308
5308
  }
5309
5309
  if (options.pivotTo) {
5310
5310
  operations.pivotTo = options.pivotTo;
@@ -5452,7 +5452,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5452
5452
  apiName: "__rdp_canonicalizer_holder__"
5453
5453
  };
5454
5454
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5455
- const builder = chunk2E3QVQUU_cjs.createWithPropertiesObjectSet(
5455
+ const builder = chunkTSHX2JAX_cjs.createWithPropertiesObjectSet(
5456
5456
  objectTypeHolder,
5457
5457
  {
5458
5458
  type: "methodInput"
@@ -5629,7 +5629,7 @@ var Store = class {
5629
5629
  subjects = this.layers.subjects;
5630
5630
  // these are hopefully temporary
5631
5631
  constructor(client, options) {
5632
- this.logger = client[chunk2E3QVQUU_cjs.additionalContext].logger?.child({}, {
5632
+ this.logger = client[chunkTSHX2JAX_cjs.additionalContext].logger?.child({}, {
5633
5633
  msgPrefix: "Store",
5634
5634
  level: options?.devMode?.logLevel
5635
5635
  });
@@ -6068,10 +6068,10 @@ var Store = class {
6068
6068
 
6069
6069
  // src/observable/ObservableClient.ts
6070
6070
  function createObservableClient(client, extraUserAgents, options) {
6071
- const tweakedClient = chunkZWABEEHA_cjs.createClientFromContext({
6072
- ...client[chunk2E3QVQUU_cjs.additionalContext],
6073
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk2E3QVQUU_cjs.additionalContext].fetch, (headers) => {
6074
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkZWABEEHA_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6071
+ const tweakedClient = chunkNQPEDXAP_cjs.createClientFromContext({
6072
+ ...client[chunkTSHX2JAX_cjs.additionalContext],
6073
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkTSHX2JAX_cjs.additionalContext].fetch, (headers) => {
6074
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkNQPEDXAP_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6075
6075
  return headers;
6076
6076
  })
6077
6077
  });
@@ -6079,5 +6079,5 @@ function createObservableClient(client, extraUserAgents, options) {
6079
6079
  }
6080
6080
 
6081
6081
  exports.createObservableClient = createObservableClient;
6082
- //# sourceMappingURL=chunk-PDBUYKWG.cjs.map
6083
- //# sourceMappingURL=chunk-PDBUYKWG.cjs.map
6082
+ //# sourceMappingURL=chunk-ANTHHHST.cjs.map
6083
+ //# sourceMappingURL=chunk-ANTHHHST.cjs.map