@osdk/client 2.38.0 → 2.39.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 chunkO7S4QCBV_cjs = require('./chunk-O7S4QCBV.cjs');
3
+ var chunkDZARYB4B_cjs = require('./chunk-DZARYB4B.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
- var chunk7RMQABID_cjs = require('./chunk-7RMQABID.cjs');
6
- var chunkMHRH2XSF_cjs = require('./chunk-MHRH2XSF.cjs');
5
+ var chunkQ5F3SO2G_cjs = require('./chunk-Q5F3SO2G.cjs');
6
+ var chunkKLTUXSNI_cjs = require('./chunk-KLTUXSNI.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 (chunkMHRH2XSF_cjs.isObjectSet(item)) {
72
- objectSetWires.push(chunkMHRH2XSF_cjs.getWireObjectSet(item));
71
+ if (chunkKLTUXSNI_cjs.isObjectSet(item)) {
72
+ objectSetWires.push(chunkKLTUXSNI_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) => chunkMHRH2XSF_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkMHRH2XSF_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) => chunkKLTUXSNI_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkKLTUXSNI_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(chunkMHRH2XSF_cjs.getWireObjectSet(os)));
143
+ const wireStrings = arr.map((os) => JSON.stringify(chunkKLTUXSNI_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[chunkMHRH2XSF_cjs.additionalContext].objectFactory(store.client[chunkMHRH2XSF_cjs.additionalContext], [{
357
+ const create = store.client[chunkKLTUXSNI_cjs.additionalContext].objectFactory(store.client[chunkKLTUXSNI_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[chunkMHRH2XSF_cjs.additionalContext].logger : store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
863
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger : store.client[chunkKLTUXSNI_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[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
1025
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_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[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet);
1043
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkKLTUXSNI_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 = chunkMHRH2XSF_cjs.createObjectSet(objectTypeDef, this.store.client[chunkMHRH2XSF_cjs.additionalContext], this.parsedWireObjectSet);
1114
+ objectSet = chunkKLTUXSNI_cjs.createObjectSet(objectTypeDef, this.store.client[chunkKLTUXSNI_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(chunkMHRH2XSF_cjs.getWireObjectSet(options.objectSet));
1156
+ const serializedObjectSet = JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(options.objectSet));
1157
1157
  return this.getOrCreateQuery(options, serializedObjectSet);
1158
1158
  }
1159
1159
  getOrCreateQuery(options, serializedObjectSet) {
@@ -1476,7 +1476,7 @@ var FunctionParamsCanonicalizer = class {
1476
1476
  path.push("$:map_end");
1477
1477
  return arr;
1478
1478
  }
1479
- if (chunk7RMQABID_cjs.isObjectSpecifiersObject(value)) {
1479
+ if (chunkQ5F3SO2G_cjs.isObjectSpecifiersObject(value)) {
1480
1480
  const objectType = value.$objectType ?? value.$apiName;
1481
1481
  path.push("$:osdk", objectType, value.$primaryKey);
1482
1482
  return {
@@ -1484,8 +1484,8 @@ var FunctionParamsCanonicalizer = class {
1484
1484
  $primaryKey: value.$primaryKey
1485
1485
  };
1486
1486
  }
1487
- if (chunkMHRH2XSF_cjs.isObjectSet(value)) {
1488
- const wire = JSON.stringify(chunkMHRH2XSF_cjs.getWireObjectSet(value));
1487
+ if (chunkKLTUXSNI_cjs.isObjectSet(value)) {
1488
+ const wire = JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(value));
1489
1489
  path.push("$:objectset", wire);
1490
1490
  return wire;
1491
1491
  }
@@ -1545,7 +1545,7 @@ var FunctionQuery = class extends Query {
1545
1545
  #dependsOnObjects;
1546
1546
  #queryDef;
1547
1547
  constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
1548
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
1548
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
1549
1549
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1550
1550
  }) : void 0);
1551
1551
  this.#apiName = queryDef.apiName;
@@ -1602,7 +1602,7 @@ var FunctionQuery = class extends Query {
1602
1602
  }).debug("calling _fetchAndStore");
1603
1603
  }
1604
1604
  try {
1605
- const result = await chunk7RMQABID_cjs.applyQuery(this.store.client[chunkMHRH2XSF_cjs.additionalContext], this.#queryDef, this.#params);
1605
+ const result = await chunkQ5F3SO2G_cjs.applyQuery(this.store.client[chunkKLTUXSNI_cjs.additionalContext], this.#queryDef, this.#params);
1606
1606
  const executedAt = Date.now();
1607
1607
  this.store.batch({}, (batch) => {
1608
1608
  this.writeToStore({
@@ -2182,11 +2182,11 @@ function isStringEncodedNumericType(type) {
2182
2182
  return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
2183
2183
  }
2184
2184
  function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
2185
- const objectType = holder?.[chunkO7S4QCBV_cjs.ObjectDefRef]?.properties?.[key]?.type;
2185
+ const objectType = holder?.[chunkDZARYB4B_cjs.ObjectDefRef]?.properties?.[key]?.type;
2186
2186
  if (typeof objectType === "string") {
2187
2187
  return objectType;
2188
2188
  }
2189
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkO7S4QCBV_cjs.InterfaceDefRef], key);
2189
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkDZARYB4B_cjs.InterfaceDefRef], key);
2190
2190
  if (typeof interfaceType === "string") {
2191
2191
  return interfaceType;
2192
2192
  }
@@ -2201,7 +2201,7 @@ function resolveInterfacePropertyType(interfaceDef, key) {
2201
2201
  if (typeof direct === "string") {
2202
2202
  return direct;
2203
2203
  }
2204
- const [namespace] = chunkMHRH2XSF_cjs.extractNamespace(interfaceDef.apiName);
2204
+ const [namespace] = chunkKLTUXSNI_cjs.extractNamespace(interfaceDef.apiName);
2205
2205
  if (namespace == null) {
2206
2206
  return void 0;
2207
2207
  }
@@ -2280,8 +2280,8 @@ function stripRdpFields(value, rdpFields) {
2280
2280
  if (rdpFields.size === 0) {
2281
2281
  return value;
2282
2282
  }
2283
- const underlying = value[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2284
- const objectDef = requireObjectDef(value[chunkO7S4QCBV_cjs.ObjectDefRef], underlying);
2283
+ const underlying = value[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2284
+ const objectDef = requireObjectDef(value[chunkDZARYB4B_cjs.ObjectDefRef], underlying);
2285
2285
  const newProps = {
2286
2286
  $apiName: underlying.$apiName,
2287
2287
  $objectType: underlying.$objectType,
@@ -2294,7 +2294,7 @@ function stripRdpFields(value, rdpFields) {
2294
2294
  newProps[key] = underlying[key];
2295
2295
  }
2296
2296
  }
2297
- return chunkO7S4QCBV_cjs.createOsdkObject(value[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2297
+ return chunkDZARYB4B_cjs.createOsdkObject(value[chunkDZARYB4B_cjs.ClientRef], objectDef, newProps);
2298
2298
  }
2299
2299
  function isSuperset(superset, subset) {
2300
2300
  for (const field of subset) {
@@ -2305,8 +2305,8 @@ function isSuperset(superset, subset) {
2305
2305
  return true;
2306
2306
  }
2307
2307
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2308
- const underlying = value[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2309
- const objectDef = requireObjectDef(value[chunkO7S4QCBV_cjs.ObjectDefRef], underlying);
2308
+ const underlying = value[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2309
+ const objectDef = requireObjectDef(value[chunkDZARYB4B_cjs.ObjectDefRef], underlying);
2310
2310
  const newProps = {
2311
2311
  $apiName: underlying.$apiName,
2312
2312
  $objectType: underlying.$objectType,
@@ -2323,12 +2323,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2323
2323
  newProps[key] = underlying[key];
2324
2324
  }
2325
2325
  }
2326
- return chunkO7S4QCBV_cjs.createOsdkObject(value[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2326
+ return chunkDZARYB4B_cjs.createOsdkObject(value[chunkDZARYB4B_cjs.ClientRef], objectDef, newProps);
2327
2327
  }
2328
2328
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2329
- const sourceUnderlying = sourceValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2330
- const existingUnderlying = existingValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2331
- const objectDef = requireObjectDef(sourceValue[chunkO7S4QCBV_cjs.ObjectDefRef], sourceUnderlying);
2329
+ const sourceUnderlying = sourceValue[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2330
+ const existingUnderlying = existingValue[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2331
+ const objectDef = requireObjectDef(sourceValue[chunkDZARYB4B_cjs.ObjectDefRef], sourceUnderlying);
2332
2332
  const newProps = {
2333
2333
  $apiName: sourceUnderlying.$apiName,
2334
2334
  $objectType: sourceUnderlying.$objectType,
@@ -2348,7 +2348,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
2348
2348
  newProps[key] = sourceUnderlying[key];
2349
2349
  }
2350
2350
  }
2351
- return chunkO7S4QCBV_cjs.createOsdkObject(sourceValue[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2351
+ return chunkDZARYB4B_cjs.createOsdkObject(sourceValue[chunkDZARYB4B_cjs.ClientRef], objectDef, newProps);
2352
2352
  }
2353
2353
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
2354
2354
  if (targetRdpFields.size === 0) {
@@ -2360,8 +2360,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2360
2360
  }
2361
2361
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
2362
2362
  }
2363
- const sourceUnderlying = sourceValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2364
- const objectDef = requireObjectDef(sourceValue[chunkO7S4QCBV_cjs.ObjectDefRef], sourceUnderlying);
2363
+ const sourceUnderlying = sourceValue[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2364
+ const objectDef = requireObjectDef(sourceValue[chunkDZARYB4B_cjs.ObjectDefRef], sourceUnderlying);
2365
2365
  const newProps = {
2366
2366
  $apiName: sourceUnderlying.$apiName,
2367
2367
  $objectType: sourceUnderlying.$objectType,
@@ -2380,14 +2380,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2380
2380
  }
2381
2381
  }
2382
2382
  if (targetCurrentValue) {
2383
- const targetUnderlying = targetCurrentValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2383
+ const targetUnderlying = targetCurrentValue[chunkDZARYB4B_cjs.UnderlyingOsdkObject];
2384
2384
  for (const field of targetRdpFields) {
2385
2385
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
2386
2386
  newProps[field] = targetUnderlying[field];
2387
2387
  }
2388
2388
  }
2389
2389
  }
2390
- return chunkO7S4QCBV_cjs.createOsdkObject(sourceValue[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2390
+ return chunkDZARYB4B_cjs.createOsdkObject(sourceValue[chunkDZARYB4B_cjs.ClientRef], objectDef, newProps);
2391
2391
  }
2392
2392
  function createCollectionConnectable(subject, subjects, createPayload) {
2393
2393
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3033,7 +3033,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3033
3033
  batch.changes.modified.add(this.cacheKey);
3034
3034
  }
3035
3035
  constructor(store, subject, cacheKey, opts) {
3036
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
3036
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
3037
3037
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3038
3038
  }) : void 0);
3039
3039
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -3055,7 +3055,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3055
3055
  */
3056
3056
  async fetchPageData(signal) {
3057
3057
  const client = this.store.client;
3058
- const ontologyProvider = client[chunkMHRH2XSF_cjs.additionalContext].ontologyProvider;
3058
+ const ontologyProvider = client[chunkKLTUXSNI_cjs.additionalContext].ontologyProvider;
3059
3059
  const isInterface = this.#sourceTypeKind === "interface";
3060
3060
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
3061
3061
  let target;
@@ -3185,7 +3185,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3185
3185
  }
3186
3186
  return (async () => {
3187
3187
  try {
3188
- const ontologyProvider = this.store.client[chunkMHRH2XSF_cjs.additionalContext].ontologyProvider;
3188
+ const ontologyProvider = this.store.client[chunkKLTUXSNI_cjs.additionalContext].ontologyProvider;
3189
3189
  if (this.#sourceTypeKind === "interface") {
3190
3190
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
3191
3191
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3366,7 +3366,7 @@ var ListQuery = class extends BaseListQuery {
3366
3366
  batch.changes.registerList(this.cacheKey);
3367
3367
  }
3368
3368
  constructor(store, subject, apiName, cacheKey, opts) {
3369
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
3369
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
3370
3370
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3371
3371
  }) : void 0);
3372
3372
  this.apiName = apiName;
@@ -3419,11 +3419,11 @@ var ListQuery = class extends BaseListQuery {
3419
3419
  async fetchPageData(signal) {
3420
3420
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3421
3421
  if (needsResultType) {
3422
- const wireObjectSet = chunkMHRH2XSF_cjs.getWireObjectSet(this.#objectSet);
3422
+ const wireObjectSet = chunkKLTUXSNI_cjs.getWireObjectSet(this.#objectSet);
3423
3423
  const {
3424
3424
  resultType,
3425
3425
  invalidationSet
3426
- } = await getObjectTypesThatInvalidate(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet);
3426
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet);
3427
3427
  this.#updateFetchedObjectType(resultType.apiName);
3428
3428
  this.#rdpInvalidationSet = invalidationSet;
3429
3429
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
@@ -3433,7 +3433,7 @@ var ListQuery = class extends BaseListQuery {
3433
3433
  // Carries derived-property type metadata so string-encoded numeric
3434
3434
  // derived properties (decimal/long) sort by value. Returns {} when
3435
3435
  // there are no derived properties.
3436
- await chunkMHRH2XSF_cjs.extractRdpDefinition(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet)
3436
+ await chunkKLTUXSNI_cjs.extractRdpDefinition(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet)
3437
3437
  );
3438
3438
  }
3439
3439
  if (this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied) {
@@ -3460,11 +3460,11 @@ var ListQuery = class extends BaseListQuery {
3460
3460
  }
3461
3461
  if (this.#fetchedObjectType == null) {
3462
3462
  try {
3463
- const wireObjectSet = chunkMHRH2XSF_cjs.getWireObjectSet(this.#objectSet);
3463
+ const wireObjectSet = chunkKLTUXSNI_cjs.getWireObjectSet(this.#objectSet);
3464
3464
  const {
3465
3465
  resultType,
3466
3466
  invalidationSet
3467
- } = await getObjectTypesThatInvalidate(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet);
3467
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet);
3468
3468
  this.#updateFetchedObjectType(resultType.apiName);
3469
3469
  this.#rdpInvalidationSet = invalidationSet;
3470
3470
  } catch {
@@ -3726,7 +3726,7 @@ var InterfaceListQuery = class extends ListQuery {
3726
3726
  type,
3727
3727
  apiName: this.apiName
3728
3728
  };
3729
- const clientCtx = store.client[chunkMHRH2XSF_cjs.additionalContext];
3729
+ const clientCtx = store.client[chunkKLTUXSNI_cjs.additionalContext];
3730
3730
  let objectSet;
3731
3731
  if (rids != null) {
3732
3732
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3768,7 +3768,7 @@ var InterfaceListQuery = class extends ListQuery {
3768
3768
  }
3769
3769
  extractRelevantObjects(changes) {
3770
3770
  const matchesApiName = ([, object]) => {
3771
- return this.apiName in object[chunkO7S4QCBV_cjs.ObjectDefRef].interfaceMap;
3771
+ return this.apiName in object[chunkDZARYB4B_cjs.ObjectDefRef].interfaceMap;
3772
3772
  };
3773
3773
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3774
3774
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -3787,7 +3787,7 @@ var InterfaceListQuery = class extends ListQuery {
3787
3787
  }
3788
3788
  };
3789
3789
  function createSourceSetForPivot(store, pivotInfo, rids) {
3790
- const clientCtx = store.client[chunkMHRH2XSF_cjs.additionalContext];
3790
+ const clientCtx = store.client[chunkKLTUXSNI_cjs.additionalContext];
3791
3791
  if (rids != null) {
3792
3792
  return clientCtx.objectSetFactory({
3793
3793
  type: "object",
@@ -3816,7 +3816,7 @@ var ObjectListQuery = class extends ListQuery {
3816
3816
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3817
3817
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3818
3818
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3819
- const clientCtx = store.client[chunkMHRH2XSF_cjs.additionalContext];
3819
+ const clientCtx = store.client[chunkKLTUXSNI_cjs.additionalContext];
3820
3820
  const typeDefinition = {
3821
3821
  type: "object",
3822
3822
  apiName: this.apiName
@@ -4077,7 +4077,7 @@ var MediaMetadataQuery = class extends Query {
4077
4077
  #propertyName;
4078
4078
  #preview;
4079
4079
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
4080
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
4080
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
4081
4081
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
4082
4082
  }) : void 0);
4083
4083
  this.#objectType = objectType;
@@ -4110,8 +4110,8 @@ var MediaMetadataQuery = class extends Query {
4110
4110
  this.setStatus("loading", batch);
4111
4111
  });
4112
4112
  try {
4113
- const ontologyRid = await this.store.client[chunkMHRH2XSF_cjs.additionalContext].ontologyRid;
4114
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkMHRH2XSF_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4113
+ const ontologyRid = await this.store.client[chunkKLTUXSNI_cjs.additionalContext].ontologyRid;
4114
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkKLTUXSNI_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4115
4115
  preview: this.#preview
4116
4116
  });
4117
4117
  const metadata = {
@@ -4233,8 +4233,8 @@ var MediaHelper = class extends AbstractHelper {
4233
4233
  return this._subscribe(query, options, observer);
4234
4234
  }
4235
4235
  async fetchMetadata(coords, options) {
4236
- const ontologyRid = await this.store.client[chunkMHRH2XSF_cjs.additionalContext].ontologyRid;
4237
- const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkMHRH2XSF_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4236
+ const ontologyRid = await this.store.client[chunkKLTUXSNI_cjs.additionalContext].ontologyRid;
4237
+ const response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkKLTUXSNI_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4238
4238
  preview: options?.preview ?? true
4239
4239
  });
4240
4240
  return {
@@ -4254,8 +4254,8 @@ var MediaHelper = class extends AbstractHelper {
4254
4254
  let response;
4255
4255
  const coords = this.resolveToCoords(mediaOrLocation);
4256
4256
  if (coords) {
4257
- const ontologyRid = await this.store.client[chunkMHRH2XSF_cjs.additionalContext].ontologyRid;
4258
- response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkMHRH2XSF_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4257
+ const ontologyRid = await this.store.client[chunkKLTUXSNI_cjs.additionalContext].ontologyRid;
4258
+ response = await chunkPIWGMK3H_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkKLTUXSNI_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4259
4259
  preview
4260
4260
  });
4261
4261
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4442,7 +4442,7 @@ var ObjectCacheKeyRegistry = class {
4442
4442
 
4443
4443
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4444
4444
  function isInterfaceHolder(v) {
4445
- return typeof v === "object" && v != null && chunkO7S4QCBV_cjs.InterfaceDefRef in v;
4445
+ return typeof v === "object" && v != null && chunkDZARYB4B_cjs.InterfaceDefRef in v;
4446
4446
  }
4447
4447
 
4448
4448
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4501,7 +4501,7 @@ var BulkObjectLoader = class {
4501
4501
  #maxEntries;
4502
4502
  constructor(client, maxWait = 25, maxEntries = 100) {
4503
4503
  this.#client = client;
4504
- this.#logger = client[chunkMHRH2XSF_cjs.additionalContext].logger;
4504
+ this.#logger = client[chunkKLTUXSNI_cjs.additionalContext].logger;
4505
4505
  this.#maxWait = maxWait;
4506
4506
  this.#maxEntries = maxEntries;
4507
4507
  }
@@ -4670,7 +4670,7 @@ var ObjectQuery = class extends Query {
4670
4670
  #includeAllBaseObjectProperties;
4671
4671
  #implementingTypes;
4672
4672
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4673
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
4673
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
4674
4674
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4675
4675
  }) : void 0);
4676
4676
  this.#apiName = type;
@@ -4785,7 +4785,7 @@ var ObjectsHelper = class extends AbstractHelper {
4785
4785
  select,
4786
4786
  $loadPropertySecurityMetadata
4787
4787
  } = options;
4788
- const defType = chunk7RMQABID_cjs.getDefType(options.apiName);
4788
+ const defType = chunkQ5F3SO2G_cjs.getDefType(options.apiName);
4789
4789
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4790
4790
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4791
4791
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4802,7 +4802,7 @@ var ObjectsHelper = class extends AbstractHelper {
4802
4802
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4803
4803
  const holders = values;
4804
4804
  return holders.map((v) => {
4805
- const concreteHolder = isInterfaceHolder(v) ? v[chunkO7S4QCBV_cjs.UnderlyingOsdkObject] : v;
4805
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkDZARYB4B_cjs.UnderlyingOsdkObject] : v;
4806
4806
  return this.getQuery({
4807
4807
  apiName: v.$objectType ?? v.$apiName,
4808
4808
  pk: v.$primaryKey,
@@ -4900,7 +4900,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4900
4900
  // revalidation. Lazily populated on first fetch when `withProperties` is set.
4901
4901
  #rdpInvalidationSet;
4902
4902
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4903
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
4903
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
4904
4904
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4905
4905
  }) : void 0);
4906
4906
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -4968,7 +4968,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4968
4968
  return;
4969
4969
  }
4970
4970
  for (const os of sets) {
4971
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkMHRH2XSF_cjs.getWireObjectSet(os));
4971
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkKLTUXSNI_cjs.getWireObjectSet(os));
4972
4972
  if (typeName) {
4973
4973
  types.add(typeName);
4974
4974
  }
@@ -4995,16 +4995,16 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4995
4995
  */
4996
4996
  async fetchPageData(signal) {
4997
4997
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
4998
- const wireObjectSet = chunkMHRH2XSF_cjs.getWireObjectSet(this.#composedObjectSet);
4998
+ const wireObjectSet = chunkKLTUXSNI_cjs.getWireObjectSet(this.#composedObjectSet);
4999
4999
  const {
5000
5000
  resultType,
5001
5001
  invalidationSet
5002
- } = await getObjectTypesThatInvalidate(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet);
5003
- this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunkMHRH2XSF_cjs.extractRdpDefinition(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet));
5002
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet);
5003
+ this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunkKLTUXSNI_cjs.extractRdpDefinition(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet));
5004
5004
  this.#rdpInvalidationSet = invalidationSet;
5005
5005
  }
5006
5006
  if (this.#rdpInvalidationSet == null && this.#operations.withProperties != null) {
5007
- const wireObjectSet = chunkMHRH2XSF_cjs.getWireObjectSet(this.#composedObjectSet);
5007
+ const wireObjectSet = chunkKLTUXSNI_cjs.getWireObjectSet(this.#composedObjectSet);
5008
5008
  this.#rdpInvalidationSet = await this.#computeInvalidationTypes(wireObjectSet);
5009
5009
  }
5010
5010
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5153,7 +5153,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5153
5153
  try {
5154
5154
  const {
5155
5155
  invalidationSet
5156
- } = await getObjectTypesThatInvalidate(this.store.client[chunkMHRH2XSF_cjs.additionalContext], wireObjectSet);
5156
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkKLTUXSNI_cjs.additionalContext], wireObjectSet);
5157
5157
  return invalidationSet;
5158
5158
  } catch (error) {
5159
5159
  this.store.logger?.error("Failed to compute invalidation types for object set query, falling back to empty set", error);
@@ -5232,7 +5232,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5232
5232
  if (process.env.NODE_ENV !== "production") {
5233
5233
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5234
5234
  }
5235
- } else if (options.withProperties || chunkMHRH2XSF_cjs.hasWithProperties(chunkMHRH2XSF_cjs.getWireObjectSet(options.baseObjectSet))) {
5235
+ } else if (options.withProperties || chunkKLTUXSNI_cjs.hasWithProperties(chunkKLTUXSNI_cjs.getWireObjectSet(options.baseObjectSet))) {
5236
5236
  if (process.env.NODE_ENV !== "production") {
5237
5237
  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.");
5238
5238
  }
@@ -5246,7 +5246,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5246
5246
  const {
5247
5247
  baseObjectSet
5248
5248
  } = options;
5249
- const baseObjectSetWire = JSON.stringify(chunkMHRH2XSF_cjs.getWireObjectSet(baseObjectSet));
5249
+ const baseObjectSetWire = JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(baseObjectSet));
5250
5250
  const operations = this.buildCanonicalizedOperations(options);
5251
5251
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5252
5252
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5262,13 +5262,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5262
5262
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5263
5263
  }
5264
5264
  if (options.union && options.union.length > 0) {
5265
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkMHRH2XSF_cjs.getWireObjectSet(os))));
5265
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(os))));
5266
5266
  }
5267
5267
  if (options.intersect && options.intersect.length > 0) {
5268
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkMHRH2XSF_cjs.getWireObjectSet(os))));
5268
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(os))));
5269
5269
  }
5270
5270
  if (options.subtract && options.subtract.length > 0) {
5271
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkMHRH2XSF_cjs.getWireObjectSet(os))));
5271
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkKLTUXSNI_cjs.getWireObjectSet(os))));
5272
5272
  }
5273
5273
  if (options.pivotTo) {
5274
5274
  operations.pivotTo = options.pivotTo;
@@ -5416,7 +5416,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5416
5416
  apiName: "__rdp_canonicalizer_holder__"
5417
5417
  };
5418
5418
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5419
- const builder = chunkMHRH2XSF_cjs.createWithPropertiesObjectSet(
5419
+ const builder = chunkKLTUXSNI_cjs.createWithPropertiesObjectSet(
5420
5420
  objectTypeHolder,
5421
5421
  {
5422
5422
  type: "methodInput"
@@ -5588,7 +5588,7 @@ var Store = class {
5588
5588
  subjects = this.layers.subjects;
5589
5589
  // these are hopefully temporary
5590
5590
  constructor(client, options) {
5591
- this.logger = client[chunkMHRH2XSF_cjs.additionalContext].logger?.child({}, {
5591
+ this.logger = client[chunkKLTUXSNI_cjs.additionalContext].logger?.child({}, {
5592
5592
  msgPrefix: "Store"
5593
5593
  });
5594
5594
  this.client = client;
@@ -6010,10 +6010,10 @@ var Store = class {
6010
6010
 
6011
6011
  // src/observable/ObservableClient.ts
6012
6012
  function createObservableClient(client, extraUserAgents, options) {
6013
- const tweakedClient = chunkO7S4QCBV_cjs.createClientFromContext({
6014
- ...client[chunkMHRH2XSF_cjs.additionalContext],
6015
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkMHRH2XSF_cjs.additionalContext].fetch, (headers) => {
6016
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkO7S4QCBV_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6013
+ const tweakedClient = chunkDZARYB4B_cjs.createClientFromContext({
6014
+ ...client[chunkKLTUXSNI_cjs.additionalContext],
6015
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkKLTUXSNI_cjs.additionalContext].fetch, (headers) => {
6016
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkDZARYB4B_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6017
6017
  return headers;
6018
6018
  })
6019
6019
  });
@@ -6021,5 +6021,5 @@ function createObservableClient(client, extraUserAgents, options) {
6021
6021
  }
6022
6022
 
6023
6023
  exports.createObservableClient = createObservableClient;
6024
- //# sourceMappingURL=chunk-GKBL44QY.cjs.map
6025
- //# sourceMappingURL=chunk-GKBL44QY.cjs.map
6024
+ //# sourceMappingURL=chunk-P7EPRSKV.cjs.map
6025
+ //# sourceMappingURL=chunk-P7EPRSKV.cjs.map