@osdk/client 2.35.0 → 2.36.0

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 (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/scenarios/ScenarioClient.js +5 -3
  5. package/build/browser/scenarios/ScenarioClient.js.map +1 -1
  6. package/build/browser/scenarios/createScenario.js +3 -5
  7. package/build/browser/scenarios/createScenario.js.map +1 -1
  8. package/build/browser/scenarios/withScenario.js +2 -1
  9. package/build/browser/scenarios/withScenario.js.map +1 -1
  10. package/build/browser/util/UserAgent.js +2 -2
  11. package/build/cjs/{applyStreamingQuery-IWZCZA6J.cjs → applyStreamingQuery-RK2N6TJ5.cjs} +9 -9
  12. package/build/cjs/{applyStreamingQuery-IWZCZA6J.cjs.map → applyStreamingQuery-RK2N6TJ5.cjs.map} +1 -1
  13. package/build/cjs/{chunk-A4LQCGPA.cjs → chunk-53ODHT6J.cjs} +47 -47
  14. package/build/cjs/{chunk-A4LQCGPA.cjs.map → chunk-53ODHT6J.cjs.map} +1 -1
  15. package/build/cjs/{chunk-CWBZEZQC.cjs → chunk-QUF62D2S.cjs} +76 -76
  16. package/build/cjs/{chunk-CWBZEZQC.cjs.map → chunk-QUF62D2S.cjs.map} +1 -1
  17. package/build/cjs/{chunk-LWT7AZZD.cjs → chunk-VD4QAB27.cjs} +13 -13
  18. package/build/cjs/{chunk-LWT7AZZD.cjs.map → chunk-VD4QAB27.cjs.map} +1 -1
  19. package/build/cjs/{chunk-ZLUXOM2B.cjs → chunk-ZSQBDK7L.cjs} +2 -2
  20. package/build/cjs/{chunk-ZLUXOM2B.cjs.map → chunk-ZSQBDK7L.cjs.map} +1 -1
  21. package/build/cjs/index.cjs +11 -11
  22. package/build/cjs/public/experimental.cjs +6 -6
  23. package/build/cjs/public/internal.cjs +7 -7
  24. package/build/cjs/public/observable.cjs +5 -5
  25. package/build/cjs/public/unstable-do-not-use.cjs +14 -17
  26. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  27. package/build/cjs/public/unstable-do-not-use.d.cts +5 -3
  28. package/build/esm/Client.js +1 -1
  29. package/build/esm/Client.js.map +1 -1
  30. package/build/esm/scenarios/ScenarioClient.js +5 -3
  31. package/build/esm/scenarios/ScenarioClient.js.map +1 -1
  32. package/build/esm/scenarios/createScenario.js +3 -5
  33. package/build/esm/scenarios/createScenario.js.map +1 -1
  34. package/build/esm/scenarios/withScenario.js +2 -1
  35. package/build/esm/scenarios/withScenario.js.map +1 -1
  36. package/build/esm/util/UserAgent.js +2 -2
  37. package/build/types/Client.d.ts +1 -1
  38. package/build/types/scenarios/createScenario.d.ts +3 -2
  39. package/build/types/scenarios/createScenario.d.ts.map +1 -1
  40. package/build/types/scenarios/withScenario.d.ts +2 -1
  41. package/build/types/scenarios/withScenario.d.ts.map +1 -1
  42. package/package.json +6 -6
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkA4LQCGPA_cjs = require('./chunk-A4LQCGPA.cjs');
3
+ var chunk53ODHT6J_cjs = require('./chunk-53ODHT6J.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
- var chunkLWT7AZZD_cjs = require('./chunk-LWT7AZZD.cjs');
6
- var chunkZLUXOM2B_cjs = require('./chunk-ZLUXOM2B.cjs');
5
+ var chunkVD4QAB27_cjs = require('./chunk-VD4QAB27.cjs');
6
+ var chunkZSQBDK7L_cjs = require('./chunk-ZSQBDK7L.cjs');
7
7
  var shared_net_fetch = require('@osdk/shared.net.fetch');
8
8
  var rxjs = require('rxjs');
9
9
  var invariant5 = require('tiny-invariant');
@@ -66,8 +66,8 @@ var ObservableClientImpl = class {
66
66
  const instances = [];
67
67
  const objectSetWires = [];
68
68
  for (const item of options.dependsOnObjects ?? []) {
69
- if (chunkZLUXOM2B_cjs.isObjectSet(item)) {
70
- objectSetWires.push(chunkZLUXOM2B_cjs.getWireObjectSet(item));
69
+ if (chunkZSQBDK7L_cjs.isObjectSet(item)) {
70
+ objectSetWires.push(chunkZSQBDK7L_cjs.getWireObjectSet(item));
71
71
  } else {
72
72
  instances.push({
73
73
  $apiName: item.$objectType ?? item.$apiName,
@@ -75,7 +75,7 @@ var ObservableClientImpl = class {
75
75
  });
76
76
  }
77
77
  }
78
- const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkZLUXOM2B_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkZLUXOM2B_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
78
+ const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkZSQBDK7L_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkZSQBDK7L_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
79
79
  return this.__experimentalStore.functions.observe({
80
80
  ...options,
81
81
  queryDef,
@@ -138,7 +138,7 @@ var ObservableClientImpl = class {
138
138
  if (!arr || arr.length === 0) {
139
139
  return arr;
140
140
  }
141
- const wireStrings = arr.map((os) => JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(os)));
141
+ const wireStrings = arr.map((os) => JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(os)));
142
142
  const canonKey = canonicalize(wireStrings);
143
143
  let cached = cache.get(canonKey);
144
144
  if (!cached) {
@@ -352,7 +352,7 @@ var OptimisticJob = class {
352
352
  return this;
353
353
  },
354
354
  createObject(type, pk, properties) {
355
- const create = store.client[chunkZLUXOM2B_cjs.additionalContext].objectFactory(store.client[chunkZLUXOM2B_cjs.additionalContext], [{
355
+ const create = store.client[chunkZSQBDK7L_cjs.additionalContext].objectFactory(store.client[chunkZSQBDK7L_cjs.additionalContext], [{
356
356
  $primaryKey: pk,
357
357
  $apiName: type.apiName,
358
358
  $objectType: type.apiName,
@@ -857,7 +857,7 @@ var Query = class {
857
857
  this.store = store;
858
858
  this.cacheKeys = store.cacheKeys;
859
859
  this.#subject = observable;
860
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger : store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
860
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger : store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
861
861
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
862
862
  }));
863
863
  }
@@ -1019,7 +1019,7 @@ var AggregationQuery = class extends Query {
1019
1019
  #invalidationTypes;
1020
1020
  #invalidationTypesPromise;
1021
1021
  constructor(store, subject, cacheKey, opts) {
1022
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
1022
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
1023
1023
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1024
1024
  }) : void 0);
1025
1025
  this.apiName = cacheKey.otherKeys[API_NAME_IDX2];
@@ -1037,7 +1037,7 @@ var AggregationQuery = class extends Query {
1037
1037
  try {
1038
1038
  const {
1039
1039
  invalidationSet
1040
- } = await getObjectTypesThatInvalidate(this.store.client[chunkZLUXOM2B_cjs.additionalContext], wireObjectSet);
1040
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkZSQBDK7L_cjs.additionalContext], wireObjectSet);
1041
1041
  return /* @__PURE__ */ new Set([this.apiName, ...invalidationSet]);
1042
1042
  } catch (error) {
1043
1043
  this.store.logger?.error("Failed to compute invalidation types for aggregation, falling back to base type only", error);
@@ -1108,7 +1108,7 @@ var ObjectAggregationQuery = class extends AggregationQuery {
1108
1108
  };
1109
1109
  let objectSet;
1110
1110
  if (this.parsedWireObjectSet) {
1111
- objectSet = chunkZLUXOM2B_cjs.createObjectSet(objectTypeDef, this.store.client[chunkZLUXOM2B_cjs.additionalContext], this.parsedWireObjectSet);
1111
+ objectSet = chunkZSQBDK7L_cjs.createObjectSet(objectTypeDef, this.store.client[chunkZSQBDK7L_cjs.additionalContext], this.parsedWireObjectSet);
1112
1112
  } else {
1113
1113
  objectSet = this.store.client(objectTypeDef);
1114
1114
  }
@@ -1150,7 +1150,7 @@ var AggregationsHelper = class extends AbstractHelper {
1150
1150
  return this.getOrCreateQuery(options, void 0);
1151
1151
  }
1152
1152
  getQueryWithObjectSet(options) {
1153
- const serializedObjectSet = JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(options.objectSet));
1153
+ const serializedObjectSet = JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(options.objectSet));
1154
1154
  return this.getOrCreateQuery(options, serializedObjectSet);
1155
1155
  }
1156
1156
  getOrCreateQuery(options, serializedObjectSet) {
@@ -1473,7 +1473,7 @@ var FunctionParamsCanonicalizer = class {
1473
1473
  path.push("$:map_end");
1474
1474
  return arr;
1475
1475
  }
1476
- if (chunkLWT7AZZD_cjs.isObjectSpecifiersObject(value)) {
1476
+ if (chunkVD4QAB27_cjs.isObjectSpecifiersObject(value)) {
1477
1477
  const objectType = value.$objectType ?? value.$apiName;
1478
1478
  path.push("$:osdk", objectType, value.$primaryKey);
1479
1479
  return {
@@ -1481,8 +1481,8 @@ var FunctionParamsCanonicalizer = class {
1481
1481
  $primaryKey: value.$primaryKey
1482
1482
  };
1483
1483
  }
1484
- if (chunkZLUXOM2B_cjs.isObjectSet(value)) {
1485
- const wire = JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(value));
1484
+ if (chunkZSQBDK7L_cjs.isObjectSet(value)) {
1485
+ const wire = JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(value));
1486
1486
  path.push("$:objectset", wire);
1487
1487
  return wire;
1488
1488
  }
@@ -1542,7 +1542,7 @@ var FunctionQuery = class extends Query {
1542
1542
  #dependsOnObjects;
1543
1543
  #queryDef;
1544
1544
  constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
1545
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
1545
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
1546
1546
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1547
1547
  }) : void 0);
1548
1548
  this.#apiName = queryDef.apiName;
@@ -1599,7 +1599,7 @@ var FunctionQuery = class extends Query {
1599
1599
  }).debug("calling _fetchAndStore");
1600
1600
  }
1601
1601
  try {
1602
- const result = await chunkLWT7AZZD_cjs.applyQuery(this.store.client[chunkZLUXOM2B_cjs.additionalContext], this.#queryDef, this.#params);
1602
+ const result = await chunkVD4QAB27_cjs.applyQuery(this.store.client[chunkZSQBDK7L_cjs.additionalContext], this.#queryDef, this.#params);
1603
1603
  const executedAt = Date.now();
1604
1604
  this.store.batch({}, (batch) => {
1605
1605
  this.writeToStore({
@@ -2843,7 +2843,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2843
2843
  batch.changes.modified.add(this.cacheKey);
2844
2844
  }
2845
2845
  constructor(store, subject, cacheKey, opts) {
2846
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
2846
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
2847
2847
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2848
2848
  }) : void 0);
2849
2849
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -2865,7 +2865,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2865
2865
  */
2866
2866
  async fetchPageData(signal) {
2867
2867
  const client = this.store.client;
2868
- const ontologyProvider = client[chunkZLUXOM2B_cjs.additionalContext].ontologyProvider;
2868
+ const ontologyProvider = client[chunkZSQBDK7L_cjs.additionalContext].ontologyProvider;
2869
2869
  const isInterface = this.#sourceTypeKind === "interface";
2870
2870
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
2871
2871
  let target;
@@ -2995,7 +2995,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2995
2995
  }
2996
2996
  return (async () => {
2997
2997
  try {
2998
- const ontologyProvider = this.store.client[chunkZLUXOM2B_cjs.additionalContext].ontologyProvider;
2998
+ const ontologyProvider = this.store.client[chunkZSQBDK7L_cjs.additionalContext].ontologyProvider;
2999
2999
  if (this.#sourceTypeKind === "interface") {
3000
3000
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
3001
3001
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3176,7 +3176,7 @@ var ListQuery = class extends BaseListQuery {
3176
3176
  batch.changes.registerList(this.cacheKey);
3177
3177
  }
3178
3178
  constructor(store, subject, apiName, cacheKey, opts) {
3179
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
3179
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
3180
3180
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3181
3181
  }) : void 0);
3182
3182
  this.apiName = apiName;
@@ -3229,11 +3229,11 @@ var ListQuery = class extends BaseListQuery {
3229
3229
  async fetchPageData(signal) {
3230
3230
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3231
3231
  if (needsResultType) {
3232
- const wireObjectSet = chunkZLUXOM2B_cjs.getWireObjectSet(this.#objectSet);
3232
+ const wireObjectSet = chunkZSQBDK7L_cjs.getWireObjectSet(this.#objectSet);
3233
3233
  const {
3234
3234
  resultType,
3235
3235
  invalidationSet
3236
- } = await getObjectTypesThatInvalidate(this.store.client[chunkZLUXOM2B_cjs.additionalContext], wireObjectSet);
3236
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkZSQBDK7L_cjs.additionalContext], wireObjectSet);
3237
3237
  this.#updateFetchedObjectType(resultType.apiName);
3238
3238
  this.#rdpInvalidationSet = invalidationSet;
3239
3239
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
@@ -3263,11 +3263,11 @@ var ListQuery = class extends BaseListQuery {
3263
3263
  }
3264
3264
  if (this.#fetchedObjectType == null) {
3265
3265
  try {
3266
- const wireObjectSet = chunkZLUXOM2B_cjs.getWireObjectSet(this.#objectSet);
3266
+ const wireObjectSet = chunkZSQBDK7L_cjs.getWireObjectSet(this.#objectSet);
3267
3267
  const {
3268
3268
  resultType,
3269
3269
  invalidationSet
3270
- } = await getObjectTypesThatInvalidate(this.store.client[chunkZLUXOM2B_cjs.additionalContext], wireObjectSet);
3270
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkZSQBDK7L_cjs.additionalContext], wireObjectSet);
3271
3271
  this.#updateFetchedObjectType(resultType.apiName);
3272
3272
  this.#rdpInvalidationSet = invalidationSet;
3273
3273
  } catch {
@@ -3529,7 +3529,7 @@ var InterfaceListQuery = class extends ListQuery {
3529
3529
  type,
3530
3530
  apiName: this.apiName
3531
3531
  };
3532
- const clientCtx = store.client[chunkZLUXOM2B_cjs.additionalContext];
3532
+ const clientCtx = store.client[chunkZSQBDK7L_cjs.additionalContext];
3533
3533
  let objectSet;
3534
3534
  if (rids != null) {
3535
3535
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3571,7 +3571,7 @@ var InterfaceListQuery = class extends ListQuery {
3571
3571
  }
3572
3572
  extractRelevantObjects(changes) {
3573
3573
  const matchesApiName = ([, object]) => {
3574
- return this.apiName in object[chunkA4LQCGPA_cjs.ObjectDefRef].interfaceMap;
3574
+ return this.apiName in object[chunk53ODHT6J_cjs.ObjectDefRef].interfaceMap;
3575
3575
  };
3576
3576
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3577
3577
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -3590,7 +3590,7 @@ var InterfaceListQuery = class extends ListQuery {
3590
3590
  }
3591
3591
  };
3592
3592
  function createSourceSetForPivot(store, pivotInfo, rids) {
3593
- const clientCtx = store.client[chunkZLUXOM2B_cjs.additionalContext];
3593
+ const clientCtx = store.client[chunkZSQBDK7L_cjs.additionalContext];
3594
3594
  if (rids != null) {
3595
3595
  return clientCtx.objectSetFactory({
3596
3596
  type: "object",
@@ -3619,7 +3619,7 @@ var ObjectListQuery = class extends ListQuery {
3619
3619
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3620
3620
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3621
3621
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3622
- const clientCtx = store.client[chunkZLUXOM2B_cjs.additionalContext];
3622
+ const clientCtx = store.client[chunkZSQBDK7L_cjs.additionalContext];
3623
3623
  const typeDefinition = {
3624
3624
  type: "object",
3625
3625
  apiName: this.apiName
@@ -3880,7 +3880,7 @@ var MediaMetadataQuery = class extends Query {
3880
3880
  #propertyName;
3881
3881
  #preview;
3882
3882
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
3883
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
3883
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
3884
3884
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
3885
3885
  }) : void 0);
3886
3886
  this.#objectType = objectType;
@@ -3913,8 +3913,8 @@ var MediaMetadataQuery = class extends Query {
3913
3913
  this.setStatus("loading", batch);
3914
3914
  });
3915
3915
  try {
3916
- const ontologyRid = await this.store.client[chunkZLUXOM2B_cjs.additionalContext].ontologyRid;
3917
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkZLUXOM2B_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
3916
+ const ontologyRid = await this.store.client[chunkZSQBDK7L_cjs.additionalContext].ontologyRid;
3917
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkZSQBDK7L_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
3918
3918
  preview: this.#preview
3919
3919
  });
3920
3920
  const metadata = {
@@ -4036,8 +4036,8 @@ var MediaHelper = class extends AbstractHelper {
4036
4036
  return this._subscribe(query, options, observer);
4037
4037
  }
4038
4038
  async fetchMetadata(coords, options) {
4039
- const ontologyRid = await this.store.client[chunkZLUXOM2B_cjs.additionalContext].ontologyRid;
4040
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkZLUXOM2B_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4039
+ const ontologyRid = await this.store.client[chunkZSQBDK7L_cjs.additionalContext].ontologyRid;
4040
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkZSQBDK7L_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4041
4041
  preview: options?.preview ?? true
4042
4042
  });
4043
4043
  return {
@@ -4057,8 +4057,8 @@ var MediaHelper = class extends AbstractHelper {
4057
4057
  let response;
4058
4058
  const coords = this.resolveToCoords(mediaOrLocation);
4059
4059
  if (coords) {
4060
- const ontologyRid = await this.store.client[chunkZLUXOM2B_cjs.additionalContext].ontologyRid;
4061
- response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkZLUXOM2B_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4060
+ const ontologyRid = await this.store.client[chunkZSQBDK7L_cjs.additionalContext].ontologyRid;
4061
+ response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkZSQBDK7L_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4062
4062
  preview
4063
4063
  });
4064
4064
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4164,8 +4164,8 @@ function stripRdpFields(value, rdpFields) {
4164
4164
  if (rdpFields.size === 0) {
4165
4165
  return value;
4166
4166
  }
4167
- const underlying = value[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4168
- const objectDef = requireObjectDef(value[chunkA4LQCGPA_cjs.ObjectDefRef], underlying);
4167
+ const underlying = value[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4168
+ const objectDef = requireObjectDef(value[chunk53ODHT6J_cjs.ObjectDefRef], underlying);
4169
4169
  const newProps = {
4170
4170
  $apiName: underlying.$apiName,
4171
4171
  $objectType: underlying.$objectType,
@@ -4178,7 +4178,7 @@ function stripRdpFields(value, rdpFields) {
4178
4178
  newProps[key] = underlying[key];
4179
4179
  }
4180
4180
  }
4181
- return chunkA4LQCGPA_cjs.createOsdkObject(value[chunkA4LQCGPA_cjs.ClientRef], objectDef, newProps);
4181
+ return chunk53ODHT6J_cjs.createOsdkObject(value[chunk53ODHT6J_cjs.ClientRef], objectDef, newProps);
4182
4182
  }
4183
4183
  function isSuperset(superset, subset) {
4184
4184
  for (const field of subset) {
@@ -4189,8 +4189,8 @@ function isSuperset(superset, subset) {
4189
4189
  return true;
4190
4190
  }
4191
4191
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4192
- const underlying = value[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4193
- const objectDef = requireObjectDef(value[chunkA4LQCGPA_cjs.ObjectDefRef], underlying);
4192
+ const underlying = value[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4193
+ const objectDef = requireObjectDef(value[chunk53ODHT6J_cjs.ObjectDefRef], underlying);
4194
4194
  const newProps = {
4195
4195
  $apiName: underlying.$apiName,
4196
4196
  $objectType: underlying.$objectType,
@@ -4206,12 +4206,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4206
4206
  }
4207
4207
  }
4208
4208
  }
4209
- return chunkA4LQCGPA_cjs.createOsdkObject(value[chunkA4LQCGPA_cjs.ClientRef], objectDef, newProps);
4209
+ return chunk53ODHT6J_cjs.createOsdkObject(value[chunk53ODHT6J_cjs.ClientRef], objectDef, newProps);
4210
4210
  }
4211
4211
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
4212
- const sourceUnderlying = sourceValue[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4213
- const existingUnderlying = existingValue[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4214
- const objectDef = requireObjectDef(sourceValue[chunkA4LQCGPA_cjs.ObjectDefRef], sourceUnderlying);
4212
+ const sourceUnderlying = sourceValue[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4213
+ const existingUnderlying = existingValue[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4214
+ const objectDef = requireObjectDef(sourceValue[chunk53ODHT6J_cjs.ObjectDefRef], sourceUnderlying);
4215
4215
  const newProps = {
4216
4216
  $apiName: sourceUnderlying.$apiName,
4217
4217
  $objectType: sourceUnderlying.$objectType,
@@ -4229,7 +4229,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
4229
4229
  newProps[key] = sourceUnderlying[key];
4230
4230
  }
4231
4231
  }
4232
- return chunkA4LQCGPA_cjs.createOsdkObject(sourceValue[chunkA4LQCGPA_cjs.ClientRef], objectDef, newProps);
4232
+ return chunk53ODHT6J_cjs.createOsdkObject(sourceValue[chunk53ODHT6J_cjs.ClientRef], objectDef, newProps);
4233
4233
  }
4234
4234
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
4235
4235
  if (targetRdpFields.size === 0) {
@@ -4241,8 +4241,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4241
4241
  }
4242
4242
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
4243
4243
  }
4244
- const sourceUnderlying = sourceValue[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4245
- const objectDef = requireObjectDef(sourceValue[chunkA4LQCGPA_cjs.ObjectDefRef], sourceUnderlying);
4244
+ const sourceUnderlying = sourceValue[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4245
+ const objectDef = requireObjectDef(sourceValue[chunk53ODHT6J_cjs.ObjectDefRef], sourceUnderlying);
4246
4246
  const newProps = {
4247
4247
  $apiName: sourceUnderlying.$apiName,
4248
4248
  $objectType: sourceUnderlying.$objectType,
@@ -4256,7 +4256,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4256
4256
  }
4257
4257
  }
4258
4258
  if (targetCurrentValue) {
4259
- const targetUnderlying = targetCurrentValue[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4259
+ const targetUnderlying = targetCurrentValue[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4260
4260
  for (const field of targetRdpFields) {
4261
4261
  if (field in targetUnderlying) {
4262
4262
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -4265,7 +4265,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4265
4265
  }
4266
4266
  }
4267
4267
  }
4268
- return chunkA4LQCGPA_cjs.createOsdkObject(sourceValue[chunkA4LQCGPA_cjs.ClientRef], objectDef, newProps);
4268
+ return chunk53ODHT6J_cjs.createOsdkObject(sourceValue[chunk53ODHT6J_cjs.ClientRef], objectDef, newProps);
4269
4269
  }
4270
4270
 
4271
4271
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4366,7 +4366,7 @@ var ObjectCacheKeyRegistry = class {
4366
4366
 
4367
4367
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4368
4368
  function isInterfaceHolder(v) {
4369
- return typeof v === "object" && v != null && chunkA4LQCGPA_cjs.InterfaceDefRef in v;
4369
+ return typeof v === "object" && v != null && chunk53ODHT6J_cjs.InterfaceDefRef in v;
4370
4370
  }
4371
4371
 
4372
4372
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4425,7 +4425,7 @@ var BulkObjectLoader = class {
4425
4425
  #maxEntries;
4426
4426
  constructor(client, maxWait = 25, maxEntries = 100) {
4427
4427
  this.#client = client;
4428
- this.#logger = client[chunkZLUXOM2B_cjs.additionalContext].logger;
4428
+ this.#logger = client[chunkZSQBDK7L_cjs.additionalContext].logger;
4429
4429
  this.#maxWait = maxWait;
4430
4430
  this.#maxEntries = maxEntries;
4431
4431
  }
@@ -4594,7 +4594,7 @@ var ObjectQuery = class extends Query {
4594
4594
  #includeAllBaseObjectProperties;
4595
4595
  #implementingTypes;
4596
4596
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4597
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
4597
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
4598
4598
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4599
4599
  }) : void 0);
4600
4600
  this.#apiName = type;
@@ -4700,7 +4700,7 @@ var ObjectsHelper = class extends AbstractHelper {
4700
4700
  select,
4701
4701
  $loadPropertySecurityMetadata
4702
4702
  } = options;
4703
- const defType = chunkLWT7AZZD_cjs.getDefType(options.apiName);
4703
+ const defType = chunkVD4QAB27_cjs.getDefType(options.apiName);
4704
4704
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4705
4705
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4706
4706
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4717,7 +4717,7 @@ var ObjectsHelper = class extends AbstractHelper {
4717
4717
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties) {
4718
4718
  const holders = values;
4719
4719
  return holders.map((v) => {
4720
- const concreteHolder = isInterfaceHolder(v) ? v[chunkA4LQCGPA_cjs.UnderlyingOsdkObject] : v;
4720
+ const concreteHolder = isInterfaceHolder(v) ? v[chunk53ODHT6J_cjs.UnderlyingOsdkObject] : v;
4721
4721
  return this.getQuery({
4722
4722
  apiName: v.$objectType ?? v.$apiName,
4723
4723
  pk: v.$primaryKey,
@@ -4745,7 +4745,7 @@ var ObjectsHelper = class extends AbstractHelper {
4745
4745
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4746
4746
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4747
4747
  if (expectedRdpFields.size > 0) {
4748
- const underlying = valueToWrite[chunkA4LQCGPA_cjs.UnderlyingOsdkObject];
4748
+ const underlying = valueToWrite[chunk53ODHT6J_cjs.UnderlyingOsdkObject];
4749
4749
  const actualRdpFields = /* @__PURE__ */ new Set();
4750
4750
  for (const field of expectedRdpFields) {
4751
4751
  if (underlying && field in underlying) {
@@ -4826,7 +4826,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4826
4826
  // revalidation. Lazily populated on first fetch when `withProperties` is set.
4827
4827
  #rdpInvalidationSet;
4828
4828
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4829
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
4829
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
4830
4830
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4831
4831
  }) : void 0);
4832
4832
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -4894,7 +4894,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4894
4894
  return;
4895
4895
  }
4896
4896
  for (const os of sets) {
4897
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkZLUXOM2B_cjs.getWireObjectSet(os));
4897
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkZSQBDK7L_cjs.getWireObjectSet(os));
4898
4898
  if (typeName) {
4899
4899
  types.add(typeName);
4900
4900
  }
@@ -4921,16 +4921,16 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4921
4921
  */
4922
4922
  async fetchPageData(signal) {
4923
4923
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
4924
- const wireObjectSet = chunkZLUXOM2B_cjs.getWireObjectSet(this.#composedObjectSet);
4924
+ const wireObjectSet = chunkZSQBDK7L_cjs.getWireObjectSet(this.#composedObjectSet);
4925
4925
  const {
4926
4926
  resultType,
4927
4927
  invalidationSet
4928
- } = await getObjectTypesThatInvalidate(this.store.client[chunkZLUXOM2B_cjs.additionalContext], wireObjectSet);
4928
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkZSQBDK7L_cjs.additionalContext], wireObjectSet);
4929
4929
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy);
4930
4930
  this.#rdpInvalidationSet = invalidationSet;
4931
4931
  }
4932
4932
  if (this.#rdpInvalidationSet == null && this.#operations.withProperties != null) {
4933
- const wireObjectSet = chunkZLUXOM2B_cjs.getWireObjectSet(this.#composedObjectSet);
4933
+ const wireObjectSet = chunkZSQBDK7L_cjs.getWireObjectSet(this.#composedObjectSet);
4934
4934
  this.#rdpInvalidationSet = await this.#computeInvalidationTypes(wireObjectSet);
4935
4935
  }
4936
4936
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5079,7 +5079,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5079
5079
  try {
5080
5080
  const {
5081
5081
  invalidationSet
5082
- } = await getObjectTypesThatInvalidate(this.store.client[chunkZLUXOM2B_cjs.additionalContext], wireObjectSet);
5082
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkZSQBDK7L_cjs.additionalContext], wireObjectSet);
5083
5083
  return invalidationSet;
5084
5084
  } catch (error) {
5085
5085
  this.store.logger?.error("Failed to compute invalidation types for object set query, falling back to empty set", error);
@@ -5158,7 +5158,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5158
5158
  if (process.env.NODE_ENV !== "production") {
5159
5159
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5160
5160
  }
5161
- } else if (options.withProperties || chunkZLUXOM2B_cjs.hasWithProperties(chunkZLUXOM2B_cjs.getWireObjectSet(options.baseObjectSet))) {
5161
+ } else if (options.withProperties || chunkZSQBDK7L_cjs.hasWithProperties(chunkZSQBDK7L_cjs.getWireObjectSet(options.baseObjectSet))) {
5162
5162
  if (process.env.NODE_ENV !== "production") {
5163
5163
  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.");
5164
5164
  }
@@ -5172,7 +5172,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5172
5172
  const {
5173
5173
  baseObjectSet
5174
5174
  } = options;
5175
- const baseObjectSetWire = JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(baseObjectSet));
5175
+ const baseObjectSetWire = JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(baseObjectSet));
5176
5176
  const operations = this.buildCanonicalizedOperations(options);
5177
5177
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5178
5178
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5188,13 +5188,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5188
5188
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5189
5189
  }
5190
5190
  if (options.union && options.union.length > 0) {
5191
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(os))));
5191
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(os))));
5192
5192
  }
5193
5193
  if (options.intersect && options.intersect.length > 0) {
5194
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(os))));
5194
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(os))));
5195
5195
  }
5196
5196
  if (options.subtract && options.subtract.length > 0) {
5197
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkZLUXOM2B_cjs.getWireObjectSet(os))));
5197
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkZSQBDK7L_cjs.getWireObjectSet(os))));
5198
5198
  }
5199
5199
  if (options.pivotTo) {
5200
5200
  operations.pivotTo = options.pivotTo;
@@ -5342,7 +5342,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5342
5342
  apiName: "__rdp_canonicalizer_holder__"
5343
5343
  };
5344
5344
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5345
- const builder = chunkZLUXOM2B_cjs.createWithPropertiesObjectSet(
5345
+ const builder = chunkZSQBDK7L_cjs.createWithPropertiesObjectSet(
5346
5346
  objectTypeHolder,
5347
5347
  {
5348
5348
  type: "methodInput"
@@ -5509,7 +5509,7 @@ var Store = class {
5509
5509
  subjects = this.layers.subjects;
5510
5510
  // these are hopefully temporary
5511
5511
  constructor(client) {
5512
- this.logger = client[chunkZLUXOM2B_cjs.additionalContext].logger?.child({}, {
5512
+ this.logger = client[chunkZSQBDK7L_cjs.additionalContext].logger?.child({}, {
5513
5513
  msgPrefix: "Store"
5514
5514
  });
5515
5515
  this.client = client;
@@ -5920,10 +5920,10 @@ var Store = class {
5920
5920
 
5921
5921
  // src/observable/ObservableClient.ts
5922
5922
  function createObservableClient(client, extraUserAgents) {
5923
- const tweakedClient = chunkA4LQCGPA_cjs.createClientFromContext({
5924
- ...client[chunkZLUXOM2B_cjs.additionalContext],
5925
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkZLUXOM2B_cjs.additionalContext].fetch, (headers) => {
5926
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkA4LQCGPA_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5923
+ const tweakedClient = chunk53ODHT6J_cjs.createClientFromContext({
5924
+ ...client[chunkZSQBDK7L_cjs.additionalContext],
5925
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkZSQBDK7L_cjs.additionalContext].fetch, (headers) => {
5926
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk53ODHT6J_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5927
5927
  return headers;
5928
5928
  })
5929
5929
  });
@@ -5931,5 +5931,5 @@ function createObservableClient(client, extraUserAgents) {
5931
5931
  }
5932
5932
 
5933
5933
  exports.createObservableClient = createObservableClient;
5934
- //# sourceMappingURL=chunk-CWBZEZQC.cjs.map
5935
- //# sourceMappingURL=chunk-CWBZEZQC.cjs.map
5934
+ //# sourceMappingURL=chunk-QUF62D2S.cjs.map
5935
+ //# sourceMappingURL=chunk-QUF62D2S.cjs.map