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