@osdk/client 2.41.0 → 2.41.1-main-e39a72892d538f3130e2cd51cee05d83d11fa493

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 chunkYBWIE5CJ_cjs = require('./chunk-YBWIE5CJ.cjs');
3
+ var chunkWD4DPREM_cjs = require('./chunk-WD4DPREM.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
- var chunkVUQAQMDE_cjs = require('./chunk-VUQAQMDE.cjs');
6
- var chunk6BO5YHRX_cjs = require('./chunk-6BO5YHRX.cjs');
5
+ var chunkRAA62TNS_cjs = require('./chunk-RAA62TNS.cjs');
6
+ var chunkJMM4ZAQJ_cjs = require('./chunk-JMM4ZAQJ.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 (chunk6BO5YHRX_cjs.isObjectSet(item)) {
72
- objectSetWires.push(chunk6BO5YHRX_cjs.getWireObjectSet(item));
71
+ if (chunkJMM4ZAQJ_cjs.isObjectSet(item)) {
72
+ objectSetWires.push(chunkJMM4ZAQJ_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) => chunk6BO5YHRX_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunk6BO5YHRX_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) => chunkJMM4ZAQJ_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkJMM4ZAQJ_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(chunk6BO5YHRX_cjs.getWireObjectSet(os)));
143
+ const wireStrings = arr.map((os) => JSON.stringify(chunkJMM4ZAQJ_cjs.getWireObjectSet(os)));
144
144
  const canonKey = canonicalize(wireStrings);
145
145
  let cached = cache.get(canonKey);
146
146
  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[chunk6BO5YHRX_cjs.additionalContext].objectFactory(store.client[chunk6BO5YHRX_cjs.additionalContext], [{
357
+ const create = store.client[chunkJMM4ZAQJ_cjs.additionalContext].objectFactory(store.client[chunkJMM4ZAQJ_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[chunk6BO5YHRX_cjs.additionalContext].logger : store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
863
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger : store.client[chunkJMM4ZAQJ_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[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
1025
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_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[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet);
1043
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkJMM4ZAQJ_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 = chunk6BO5YHRX_cjs.createObjectSet(objectTypeDef, this.store.client[chunk6BO5YHRX_cjs.additionalContext], this.parsedWireObjectSet);
1114
+ objectSet = chunkJMM4ZAQJ_cjs.createObjectSet(objectTypeDef, this.store.client[chunkJMM4ZAQJ_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(chunk6BO5YHRX_cjs.getWireObjectSet(options.objectSet));
1156
+ const serializedObjectSet = JSON.stringify(chunkJMM4ZAQJ_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 (chunkVUQAQMDE_cjs.isObjectSpecifiersObject(value)) {
1506
+ if (chunkRAA62TNS_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 (chunk6BO5YHRX_cjs.isObjectSet(value)) {
1515
- const wire = JSON.stringify(chunk6BO5YHRX_cjs.getWireObjectSet(value));
1514
+ if (chunkJMM4ZAQJ_cjs.isObjectSet(value)) {
1515
+ const wire = JSON.stringify(chunkJMM4ZAQJ_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[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
1575
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_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 chunkVUQAQMDE_cjs.applyQuery(this.store.client[chunk6BO5YHRX_cjs.additionalContext], this.#queryDef, this.#params);
1632
+ const result = await chunkRAA62TNS_cjs.applyQuery(this.store.client[chunkJMM4ZAQJ_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?.[chunkYBWIE5CJ_cjs.ObjectDefRef]?.properties?.[key]?.type;
2212
+ const objectType = holder?.[chunkWD4DPREM_cjs.ObjectDefRef]?.properties?.[key]?.type;
2213
2213
  if (typeof objectType === "string") {
2214
2214
  return objectType;
2215
2215
  }
2216
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkYBWIE5CJ_cjs.InterfaceDefRef], key);
2216
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkWD4DPREM_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] = chunk6BO5YHRX_cjs.extractNamespace(interfaceDef.apiName);
2231
+ const [namespace] = chunkJMM4ZAQJ_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[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2311
- const objectDef = requireObjectDef(value[chunkYBWIE5CJ_cjs.ObjectDefRef], underlying);
2310
+ const underlying = value[chunkWD4DPREM_cjs.UnderlyingOsdkObject];
2311
+ const objectDef = requireObjectDef(value[chunkWD4DPREM_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 chunkYBWIE5CJ_cjs.createOsdkObject(value[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
2324
+ return chunkWD4DPREM_cjs.createOsdkObject(value[chunkWD4DPREM_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[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2336
- const objectDef = requireObjectDef(value[chunkYBWIE5CJ_cjs.ObjectDefRef], underlying);
2335
+ const underlying = value[chunkWD4DPREM_cjs.UnderlyingOsdkObject];
2336
+ const objectDef = requireObjectDef(value[chunkWD4DPREM_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 chunkYBWIE5CJ_cjs.createOsdkObject(value[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
2353
+ return chunkWD4DPREM_cjs.createOsdkObject(value[chunkWD4DPREM_cjs.ClientRef], objectDef, newProps);
2354
2354
  }
2355
2355
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2356
- const sourceUnderlying = sourceValue[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2357
- const existingUnderlying = existingValue[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2358
- const objectDef = requireObjectDef(sourceValue[chunkYBWIE5CJ_cjs.ObjectDefRef], sourceUnderlying);
2356
+ const sourceUnderlying = sourceValue[chunkWD4DPREM_cjs.UnderlyingOsdkObject];
2357
+ const existingUnderlying = existingValue[chunkWD4DPREM_cjs.UnderlyingOsdkObject];
2358
+ const objectDef = requireObjectDef(sourceValue[chunkWD4DPREM_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 chunkYBWIE5CJ_cjs.createOsdkObject(sourceValue[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
2378
+ return chunkWD4DPREM_cjs.createOsdkObject(sourceValue[chunkWD4DPREM_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[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2391
- const objectDef = requireObjectDef(sourceValue[chunkYBWIE5CJ_cjs.ObjectDefRef], sourceUnderlying);
2390
+ const sourceUnderlying = sourceValue[chunkWD4DPREM_cjs.UnderlyingOsdkObject];
2391
+ const objectDef = requireObjectDef(sourceValue[chunkWD4DPREM_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[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
2410
+ const targetUnderlying = targetCurrentValue[chunkWD4DPREM_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 chunkYBWIE5CJ_cjs.createOsdkObject(sourceValue[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
2417
+ return chunkWD4DPREM_cjs.createOsdkObject(sourceValue[chunkWD4DPREM_cjs.ClientRef], objectDef, newProps);
2418
2418
  }
2419
2419
  function createCollectionConnectable(subject, subjects, createPayload) {
2420
2420
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3060,7 +3060,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3060
3060
  batch.changes.modified.add(this.cacheKey);
3061
3061
  }
3062
3062
  constructor(store, subject, cacheKey, opts) {
3063
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
3063
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
3064
3064
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3065
3065
  }) : void 0);
3066
3066
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -3082,7 +3082,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3082
3082
  */
3083
3083
  async fetchPageData(signal) {
3084
3084
  const client = this.store.client;
3085
- const ontologyProvider = client[chunk6BO5YHRX_cjs.additionalContext].ontologyProvider;
3085
+ const ontologyProvider = client[chunkJMM4ZAQJ_cjs.additionalContext].ontologyProvider;
3086
3086
  const isInterface = this.#sourceTypeKind === "interface";
3087
3087
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
3088
3088
  let target;
@@ -3212,7 +3212,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3212
3212
  }
3213
3213
  return (async () => {
3214
3214
  try {
3215
- const ontologyProvider = this.store.client[chunk6BO5YHRX_cjs.additionalContext].ontologyProvider;
3215
+ const ontologyProvider = this.store.client[chunkJMM4ZAQJ_cjs.additionalContext].ontologyProvider;
3216
3216
  if (this.#sourceTypeKind === "interface") {
3217
3217
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
3218
3218
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3393,7 +3393,7 @@ var ListQuery = class extends BaseListQuery {
3393
3393
  batch.changes.registerList(this.cacheKey);
3394
3394
  }
3395
3395
  constructor(store, subject, apiName, cacheKey, opts) {
3396
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
3396
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
3397
3397
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3398
3398
  }) : void 0);
3399
3399
  this.apiName = apiName;
@@ -3446,11 +3446,11 @@ var ListQuery = class extends BaseListQuery {
3446
3446
  async fetchPageData(signal) {
3447
3447
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3448
3448
  if (needsResultType) {
3449
- const wireObjectSet = chunk6BO5YHRX_cjs.getWireObjectSet(this.#objectSet);
3449
+ const wireObjectSet = chunkJMM4ZAQJ_cjs.getWireObjectSet(this.#objectSet);
3450
3450
  const {
3451
3451
  resultType,
3452
3452
  invalidationSet
3453
- } = await getObjectTypesThatInvalidate(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet);
3453
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet);
3454
3454
  this.#updateFetchedObjectType(resultType.apiName);
3455
3455
  this.#rdpInvalidationSet = invalidationSet;
3456
3456
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
@@ -3460,7 +3460,7 @@ var ListQuery = class extends BaseListQuery {
3460
3460
  // Carries derived-property type metadata so string-encoded numeric
3461
3461
  // derived properties (decimal/long) sort by value. Returns {} when
3462
3462
  // there are no derived properties.
3463
- await chunk6BO5YHRX_cjs.extractRdpDefinition(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet)
3463
+ await chunkJMM4ZAQJ_cjs.extractRdpDefinition(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet)
3464
3464
  );
3465
3465
  }
3466
3466
  if (this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied) {
@@ -3487,11 +3487,11 @@ var ListQuery = class extends BaseListQuery {
3487
3487
  }
3488
3488
  if (this.#fetchedObjectType == null) {
3489
3489
  try {
3490
- const wireObjectSet = chunk6BO5YHRX_cjs.getWireObjectSet(this.#objectSet);
3490
+ const wireObjectSet = chunkJMM4ZAQJ_cjs.getWireObjectSet(this.#objectSet);
3491
3491
  const {
3492
3492
  resultType,
3493
3493
  invalidationSet
3494
- } = await getObjectTypesThatInvalidate(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet);
3494
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet);
3495
3495
  this.#updateFetchedObjectType(resultType.apiName);
3496
3496
  this.#rdpInvalidationSet = invalidationSet;
3497
3497
  } catch {
@@ -3753,7 +3753,7 @@ var InterfaceListQuery = class extends ListQuery {
3753
3753
  type,
3754
3754
  apiName: this.apiName
3755
3755
  };
3756
- const clientCtx = store.client[chunk6BO5YHRX_cjs.additionalContext];
3756
+ const clientCtx = store.client[chunkJMM4ZAQJ_cjs.additionalContext];
3757
3757
  let objectSet;
3758
3758
  if (rids != null) {
3759
3759
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3795,7 +3795,7 @@ var InterfaceListQuery = class extends ListQuery {
3795
3795
  }
3796
3796
  extractRelevantObjects(changes) {
3797
3797
  const matchesApiName = ([, object]) => {
3798
- return this.apiName in object[chunkYBWIE5CJ_cjs.ObjectDefRef].interfaceMap;
3798
+ return this.apiName in object[chunkWD4DPREM_cjs.ObjectDefRef].interfaceMap;
3799
3799
  };
3800
3800
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3801
3801
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -3814,7 +3814,7 @@ var InterfaceListQuery = class extends ListQuery {
3814
3814
  }
3815
3815
  };
3816
3816
  function createSourceSetForPivot(store, pivotInfo, rids) {
3817
- const clientCtx = store.client[chunk6BO5YHRX_cjs.additionalContext];
3817
+ const clientCtx = store.client[chunkJMM4ZAQJ_cjs.additionalContext];
3818
3818
  if (rids != null) {
3819
3819
  return clientCtx.objectSetFactory({
3820
3820
  type: "object",
@@ -3843,7 +3843,7 @@ var ObjectListQuery = class extends ListQuery {
3843
3843
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3844
3844
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3845
3845
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3846
- const clientCtx = store.client[chunk6BO5YHRX_cjs.additionalContext];
3846
+ const clientCtx = store.client[chunkJMM4ZAQJ_cjs.additionalContext];
3847
3847
  const typeDefinition = {
3848
3848
  type: "object",
3849
3849
  apiName: this.apiName
@@ -4104,7 +4104,7 @@ var MediaMetadataQuery = class extends Query {
4104
4104
  #propertyName;
4105
4105
  #preview;
4106
4106
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
4107
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
4107
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
4108
4108
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
4109
4109
  }) : void 0);
4110
4110
  this.#objectType = objectType;
@@ -4137,8 +4137,8 @@ var MediaMetadataQuery = class extends Query {
4137
4137
  this.setStatus("loading", batch);
4138
4138
  });
4139
4139
  try {
4140
- const ontologyRid = await this.store.client[chunk6BO5YHRX_cjs.additionalContext].ontologyRid;
4141
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk6BO5YHRX_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4140
+ const ontologyRid = await this.store.client[chunkJMM4ZAQJ_cjs.additionalContext].ontologyRid;
4141
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4142
4142
  preview: this.#preview
4143
4143
  });
4144
4144
  const metadata = {
@@ -4260,8 +4260,8 @@ var MediaHelper = class extends AbstractHelper {
4260
4260
  return this._subscribe(query, options, observer);
4261
4261
  }
4262
4262
  async fetchMetadata(coords, options) {
4263
- const ontologyRid = await this.store.client[chunk6BO5YHRX_cjs.additionalContext].ontologyRid;
4264
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk6BO5YHRX_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4263
+ const ontologyRid = await this.store.client[chunkJMM4ZAQJ_cjs.additionalContext].ontologyRid;
4264
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4265
4265
  preview: options?.preview ?? true
4266
4266
  });
4267
4267
  return {
@@ -4281,8 +4281,8 @@ var MediaHelper = class extends AbstractHelper {
4281
4281
  let response;
4282
4282
  const coords = this.resolveToCoords(mediaOrLocation);
4283
4283
  if (coords) {
4284
- const ontologyRid = await this.store.client[chunk6BO5YHRX_cjs.additionalContext].ontologyRid;
4285
- response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk6BO5YHRX_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4284
+ const ontologyRid = await this.store.client[chunkJMM4ZAQJ_cjs.additionalContext].ontologyRid;
4285
+ response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4286
4286
  preview
4287
4287
  });
4288
4288
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4469,7 +4469,7 @@ var ObjectCacheKeyRegistry = class {
4469
4469
 
4470
4470
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4471
4471
  function isInterfaceHolder(v) {
4472
- return typeof v === "object" && v != null && chunkYBWIE5CJ_cjs.InterfaceDefRef in v;
4472
+ return typeof v === "object" && v != null && chunkWD4DPREM_cjs.InterfaceDefRef in v;
4473
4473
  }
4474
4474
 
4475
4475
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4528,7 +4528,7 @@ var BulkObjectLoader = class {
4528
4528
  #maxEntries;
4529
4529
  constructor(client, maxWait = 25, maxEntries = 100) {
4530
4530
  this.#client = client;
4531
- this.#logger = client[chunk6BO5YHRX_cjs.additionalContext].logger;
4531
+ this.#logger = client[chunkJMM4ZAQJ_cjs.additionalContext].logger;
4532
4532
  this.#maxWait = maxWait;
4533
4533
  this.#maxEntries = maxEntries;
4534
4534
  }
@@ -4697,7 +4697,7 @@ var ObjectQuery = class extends Query {
4697
4697
  #includeAllBaseObjectProperties;
4698
4698
  #implementingTypes;
4699
4699
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4700
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
4700
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
4701
4701
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4702
4702
  }) : void 0);
4703
4703
  this.#apiName = type;
@@ -4812,7 +4812,7 @@ var ObjectsHelper = class extends AbstractHelper {
4812
4812
  select,
4813
4813
  $loadPropertySecurityMetadata
4814
4814
  } = options;
4815
- const defType = chunkVUQAQMDE_cjs.getDefType(options.apiName);
4815
+ const defType = chunkRAA62TNS_cjs.getDefType(options.apiName);
4816
4816
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4817
4817
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4818
4818
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4829,7 +4829,7 @@ var ObjectsHelper = class extends AbstractHelper {
4829
4829
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4830
4830
  const holders = values;
4831
4831
  return holders.map((v) => {
4832
- const concreteHolder = isInterfaceHolder(v) ? v[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject] : v;
4832
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkWD4DPREM_cjs.UnderlyingOsdkObject] : v;
4833
4833
  return this.getQuery({
4834
4834
  apiName: v.$objectType ?? v.$apiName,
4835
4835
  pk: v.$primaryKey,
@@ -4927,7 +4927,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4927
4927
  // revalidation. Lazily populated on first fetch when `withProperties` is set.
4928
4928
  #rdpInvalidationSet;
4929
4929
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4930
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
4930
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
4931
4931
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4932
4932
  }) : void 0);
4933
4933
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -4995,7 +4995,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4995
4995
  return;
4996
4996
  }
4997
4997
  for (const os of sets) {
4998
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunk6BO5YHRX_cjs.getWireObjectSet(os));
4998
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkJMM4ZAQJ_cjs.getWireObjectSet(os));
4999
4999
  if (typeName) {
5000
5000
  types.add(typeName);
5001
5001
  }
@@ -5022,16 +5022,16 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5022
5022
  */
5023
5023
  async fetchPageData(signal) {
5024
5024
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
5025
- const wireObjectSet = chunk6BO5YHRX_cjs.getWireObjectSet(this.#composedObjectSet);
5025
+ const wireObjectSet = chunkJMM4ZAQJ_cjs.getWireObjectSet(this.#composedObjectSet);
5026
5026
  const {
5027
5027
  resultType,
5028
5028
  invalidationSet
5029
- } = await getObjectTypesThatInvalidate(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet);
5030
- this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunk6BO5YHRX_cjs.extractRdpDefinition(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet));
5029
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet);
5030
+ this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunkJMM4ZAQJ_cjs.extractRdpDefinition(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet));
5031
5031
  this.#rdpInvalidationSet = invalidationSet;
5032
5032
  }
5033
5033
  if (this.#rdpInvalidationSet == null && this.#operations.withProperties != null) {
5034
- const wireObjectSet = chunk6BO5YHRX_cjs.getWireObjectSet(this.#composedObjectSet);
5034
+ const wireObjectSet = chunkJMM4ZAQJ_cjs.getWireObjectSet(this.#composedObjectSet);
5035
5035
  this.#rdpInvalidationSet = await this.#computeInvalidationTypes(wireObjectSet);
5036
5036
  }
5037
5037
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5180,7 +5180,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5180
5180
  try {
5181
5181
  const {
5182
5182
  invalidationSet
5183
- } = await getObjectTypesThatInvalidate(this.store.client[chunk6BO5YHRX_cjs.additionalContext], wireObjectSet);
5183
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkJMM4ZAQJ_cjs.additionalContext], wireObjectSet);
5184
5184
  return invalidationSet;
5185
5185
  } catch (error) {
5186
5186
  this.store.logger?.error("Failed to compute invalidation types for object set query, falling back to empty set", error);
@@ -5259,7 +5259,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5259
5259
  if (process.env.NODE_ENV !== "production") {
5260
5260
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5261
5261
  }
5262
- } else if (options.withProperties || chunk6BO5YHRX_cjs.hasWithProperties(chunk6BO5YHRX_cjs.getWireObjectSet(options.baseObjectSet))) {
5262
+ } else if (options.withProperties || chunkJMM4ZAQJ_cjs.hasWithProperties(chunkJMM4ZAQJ_cjs.getWireObjectSet(options.baseObjectSet))) {
5263
5263
  if (process.env.NODE_ENV !== "production") {
5264
5264
  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.");
5265
5265
  }
@@ -5273,7 +5273,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5273
5273
  const {
5274
5274
  baseObjectSet
5275
5275
  } = options;
5276
- const baseObjectSetWire = JSON.stringify(chunk6BO5YHRX_cjs.getWireObjectSet(baseObjectSet));
5276
+ const baseObjectSetWire = JSON.stringify(chunkJMM4ZAQJ_cjs.getWireObjectSet(baseObjectSet));
5277
5277
  const operations = this.buildCanonicalizedOperations(options);
5278
5278
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5279
5279
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5289,13 +5289,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5289
5289
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5290
5290
  }
5291
5291
  if (options.union && options.union.length > 0) {
5292
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunk6BO5YHRX_cjs.getWireObjectSet(os))));
5292
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkJMM4ZAQJ_cjs.getWireObjectSet(os))));
5293
5293
  }
5294
5294
  if (options.intersect && options.intersect.length > 0) {
5295
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunk6BO5YHRX_cjs.getWireObjectSet(os))));
5295
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkJMM4ZAQJ_cjs.getWireObjectSet(os))));
5296
5296
  }
5297
5297
  if (options.subtract && options.subtract.length > 0) {
5298
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunk6BO5YHRX_cjs.getWireObjectSet(os))));
5298
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkJMM4ZAQJ_cjs.getWireObjectSet(os))));
5299
5299
  }
5300
5300
  if (options.pivotTo) {
5301
5301
  operations.pivotTo = options.pivotTo;
@@ -5443,7 +5443,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5443
5443
  apiName: "__rdp_canonicalizer_holder__"
5444
5444
  };
5445
5445
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5446
- const builder = chunk6BO5YHRX_cjs.createWithPropertiesObjectSet(
5446
+ const builder = chunkJMM4ZAQJ_cjs.createWithPropertiesObjectSet(
5447
5447
  objectTypeHolder,
5448
5448
  {
5449
5449
  type: "methodInput"
@@ -5620,7 +5620,7 @@ var Store = class {
5620
5620
  subjects = this.layers.subjects;
5621
5621
  // these are hopefully temporary
5622
5622
  constructor(client, options) {
5623
- this.logger = client[chunk6BO5YHRX_cjs.additionalContext].logger?.child({}, {
5623
+ this.logger = client[chunkJMM4ZAQJ_cjs.additionalContext].logger?.child({}, {
5624
5624
  msgPrefix: "Store",
5625
5625
  level: options?.devMode?.logLevel
5626
5626
  });
@@ -6051,10 +6051,10 @@ var Store = class {
6051
6051
 
6052
6052
  // src/observable/ObservableClient.ts
6053
6053
  function createObservableClient(client, extraUserAgents, options) {
6054
- const tweakedClient = chunkYBWIE5CJ_cjs.createClientFromContext({
6055
- ...client[chunk6BO5YHRX_cjs.additionalContext],
6056
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk6BO5YHRX_cjs.additionalContext].fetch, (headers) => {
6057
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkYBWIE5CJ_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6054
+ const tweakedClient = chunkWD4DPREM_cjs.createClientFromContext({
6055
+ ...client[chunkJMM4ZAQJ_cjs.additionalContext],
6056
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkJMM4ZAQJ_cjs.additionalContext].fetch, (headers) => {
6057
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkWD4DPREM_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6058
6058
  return headers;
6059
6059
  })
6060
6060
  });
@@ -6062,5 +6062,5 @@ function createObservableClient(client, extraUserAgents, options) {
6062
6062
  }
6063
6063
 
6064
6064
  exports.createObservableClient = createObservableClient;
6065
- //# sourceMappingURL=chunk-FDV6B7WU.cjs.map
6066
- //# sourceMappingURL=chunk-FDV6B7WU.cjs.map
6065
+ //# sourceMappingURL=chunk-NRZDKXHJ.cjs.map
6066
+ //# sourceMappingURL=chunk-NRZDKXHJ.cjs.map