@osdk/client 2.16.0 → 2.17.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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkKA2HNXIJ_cjs = require('./chunk-KA2HNXIJ.cjs');
4
- var chunkKSARRFLR_cjs = require('./chunk-KSARRFLR.cjs');
3
+ var chunkOUBJPIXZ_cjs = require('./chunk-OUBJPIXZ.cjs');
4
+ var chunk4JJZ7QXU_cjs = require('./chunk-4JJZ7QXU.cjs');
5
5
  var chunkDOXHU27E_cjs = require('./chunk-DOXHU27E.cjs');
6
6
  var shared_net_fetch = require('@osdk/shared.net.fetch');
7
7
  var rxjs = require('rxjs');
@@ -65,8 +65,8 @@ var ObservableClientImpl = class {
65
65
  const instances = [];
66
66
  const objectSetWires = [];
67
67
  for (const item of options.dependsOnObjects ?? []) {
68
- if (chunkKSARRFLR_cjs.isObjectSet(item)) {
69
- objectSetWires.push(chunkKSARRFLR_cjs.getWireObjectSet(item));
68
+ if (chunk4JJZ7QXU_cjs.isObjectSet(item)) {
69
+ objectSetWires.push(chunk4JJZ7QXU_cjs.getWireObjectSet(item));
70
70
  } else {
71
71
  instances.push({
72
72
  $apiName: item.$objectType ?? item.$apiName,
@@ -74,7 +74,7 @@ var ObservableClientImpl = class {
74
74
  });
75
75
  }
76
76
  }
77
- const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkKSARRFLR_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkKSARRFLR_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
77
+ const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunk4JJZ7QXU_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunk4JJZ7QXU_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
78
78
  return this.__experimentalStore.functions.observe({
79
79
  ...options,
80
80
  queryDef,
@@ -137,7 +137,7 @@ var ObservableClientImpl = class {
137
137
  if (!arr || arr.length === 0) {
138
138
  return arr;
139
139
  }
140
- const wireStrings = arr.map((os) => JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(os)));
140
+ const wireStrings = arr.map((os) => JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(os)));
141
141
  const canonKey = canonicalize(wireStrings);
142
142
  let cached = cache.get(canonKey);
143
143
  if (!cached) {
@@ -340,7 +340,7 @@ var OptimisticJob = class {
340
340
  return this;
341
341
  },
342
342
  createObject(type, pk, properties) {
343
- const create = store.client[chunkKSARRFLR_cjs.additionalContext].objectFactory2(store.client[chunkKSARRFLR_cjs.additionalContext], [{
343
+ const create = store.client[chunk4JJZ7QXU_cjs.additionalContext].objectFactory2(store.client[chunk4JJZ7QXU_cjs.additionalContext], [{
344
344
  $primaryKey: pk,
345
345
  $apiName: type.apiName,
346
346
  $objectType: type.apiName,
@@ -808,7 +808,7 @@ var Query = class {
808
808
  this.store = store;
809
809
  this.cacheKeys = store.cacheKeys;
810
810
  this.#subject = observable;
811
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger : store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
811
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger : store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
812
812
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
813
813
  }));
814
814
  }
@@ -970,7 +970,7 @@ var AggregationQuery = class extends Query {
970
970
  #invalidationTypes;
971
971
  #invalidationTypesPromise;
972
972
  constructor(store, subject, cacheKey, opts) {
973
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
973
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
974
974
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
975
975
  }) : void 0);
976
976
  this.apiName = cacheKey.otherKeys[API_NAME_IDX];
@@ -988,7 +988,7 @@ var AggregationQuery = class extends Query {
988
988
  try {
989
989
  const {
990
990
  invalidationSet
991
- } = await getObjectTypesThatInvalidate(this.store.client[chunkKSARRFLR_cjs.additionalContext], wireObjectSet);
991
+ } = await getObjectTypesThatInvalidate(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], wireObjectSet);
992
992
  return /* @__PURE__ */ new Set([this.apiName, ...invalidationSet]);
993
993
  } catch (error) {
994
994
  this.store.logger?.error("Failed to compute invalidation types for aggregation, falling back to base type only", error);
@@ -1059,7 +1059,7 @@ var ObjectAggregationQuery = class extends AggregationQuery {
1059
1059
  };
1060
1060
  let objectSet;
1061
1061
  if (this.parsedWireObjectSet) {
1062
- objectSet = chunkKSARRFLR_cjs.createObjectSet(objectTypeDef, this.store.client[chunkKSARRFLR_cjs.additionalContext], this.parsedWireObjectSet);
1062
+ objectSet = chunk4JJZ7QXU_cjs.createObjectSet(objectTypeDef, this.store.client[chunk4JJZ7QXU_cjs.additionalContext], this.parsedWireObjectSet);
1063
1063
  } else {
1064
1064
  objectSet = this.store.client(objectTypeDef);
1065
1065
  }
@@ -1101,7 +1101,7 @@ var AggregationsHelper = class extends AbstractHelper {
1101
1101
  return this.getOrCreateQuery(options, void 0);
1102
1102
  }
1103
1103
  getQueryWithObjectSet(options) {
1104
- const serializedObjectSet = JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(options.objectSet));
1104
+ const serializedObjectSet = JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(options.objectSet));
1105
1105
  return this.getOrCreateQuery(options, serializedObjectSet);
1106
1106
  }
1107
1107
  getOrCreateQuery(options, serializedObjectSet) {
@@ -1424,7 +1424,7 @@ var FunctionParamsCanonicalizer = class {
1424
1424
  path.push("$:map_end");
1425
1425
  return arr;
1426
1426
  }
1427
- if (chunkKA2HNXIJ_cjs.isObjectSpecifiersObject(value)) {
1427
+ if (chunkOUBJPIXZ_cjs.isObjectSpecifiersObject(value)) {
1428
1428
  const objectType = value.$objectType ?? value.$apiName;
1429
1429
  path.push("$:osdk", objectType, value.$primaryKey);
1430
1430
  return {
@@ -1432,8 +1432,8 @@ var FunctionParamsCanonicalizer = class {
1432
1432
  $primaryKey: value.$primaryKey
1433
1433
  };
1434
1434
  }
1435
- if (chunkKSARRFLR_cjs.isObjectSet(value)) {
1436
- const wire = JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(value));
1435
+ if (chunk4JJZ7QXU_cjs.isObjectSet(value)) {
1436
+ const wire = JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(value));
1437
1437
  path.push("$:objectset", wire);
1438
1438
  return wire;
1439
1439
  }
@@ -1493,7 +1493,7 @@ var FunctionQuery = class extends Query {
1493
1493
  #dependsOnObjects;
1494
1494
  #queryDef;
1495
1495
  constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
1496
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
1496
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
1497
1497
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1498
1498
  }) : void 0);
1499
1499
  this.#apiName = queryDef.apiName;
@@ -1550,7 +1550,7 @@ var FunctionQuery = class extends Query {
1550
1550
  }).debug("calling _fetchAndStore");
1551
1551
  }
1552
1552
  try {
1553
- const result = await chunkKA2HNXIJ_cjs.applyQuery(this.store.client[chunkKSARRFLR_cjs.additionalContext], this.#queryDef, this.#params);
1553
+ const result = await chunkOUBJPIXZ_cjs.applyQuery(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], this.#queryDef, this.#params);
1554
1554
  const executedAt = Date.now();
1555
1555
  this.store.batch({}, (batch) => {
1556
1556
  this.writeToStore({
@@ -2761,7 +2761,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2761
2761
  batch.changes.modified.add(this.cacheKey);
2762
2762
  }
2763
2763
  constructor(store, subject, cacheKey, opts) {
2764
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
2764
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
2765
2765
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
2766
2766
  }) : void 0);
2767
2767
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -2782,7 +2782,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2782
2782
  */
2783
2783
  async fetchPageData(signal) {
2784
2784
  const client = this.store.client;
2785
- const ontologyProvider = client[chunkKSARRFLR_cjs.additionalContext].ontologyProvider;
2785
+ const ontologyProvider = client[chunk4JJZ7QXU_cjs.additionalContext].ontologyProvider;
2786
2786
  const isInterface = this.#sourceTypeKind === "interface";
2787
2787
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
2788
2788
  let target;
@@ -2905,7 +2905,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
2905
2905
  }
2906
2906
  return (async () => {
2907
2907
  try {
2908
- const ontologyProvider = this.store.client[chunkKSARRFLR_cjs.additionalContext].ontologyProvider;
2908
+ const ontologyProvider = this.store.client[chunk4JJZ7QXU_cjs.additionalContext].ontologyProvider;
2909
2909
  if (this.#sourceTypeKind === "interface") {
2910
2910
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
2911
2911
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3094,7 +3094,7 @@ var ListQuery = class extends BaseListQuery {
3094
3094
  batch.changes.registerList(this.cacheKey);
3095
3095
  }
3096
3096
  constructor(store, subject, apiName, cacheKey, opts) {
3097
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
3097
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
3098
3098
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3099
3099
  }) : void 0);
3100
3100
  this.apiName = apiName;
@@ -3147,10 +3147,10 @@ var ListQuery = class extends BaseListQuery {
3147
3147
  async fetchPageData(signal) {
3148
3148
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3149
3149
  if (needsResultType) {
3150
- const wireObjectSet = chunkKSARRFLR_cjs.getWireObjectSet(this.#objectSet);
3150
+ const wireObjectSet = chunk4JJZ7QXU_cjs.getWireObjectSet(this.#objectSet);
3151
3151
  const {
3152
3152
  resultType
3153
- } = await getObjectTypesThatInvalidate(this.store.client[chunkKSARRFLR_cjs.additionalContext], wireObjectSet);
3153
+ } = await getObjectTypesThatInvalidate(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], wireObjectSet);
3154
3154
  this.#updateFetchedObjectType(resultType.apiName);
3155
3155
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
3156
3156
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#orderBy);
@@ -3179,10 +3179,10 @@ var ListQuery = class extends BaseListQuery {
3179
3179
  }
3180
3180
  if (this.#fetchedObjectType == null) {
3181
3181
  try {
3182
- const wireObjectSet = chunkKSARRFLR_cjs.getWireObjectSet(this.#objectSet);
3182
+ const wireObjectSet = chunk4JJZ7QXU_cjs.getWireObjectSet(this.#objectSet);
3183
3183
  const {
3184
3184
  resultType
3185
- } = await getObjectTypesThatInvalidate(this.store.client[chunkKSARRFLR_cjs.additionalContext], wireObjectSet);
3185
+ } = await getObjectTypesThatInvalidate(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], wireObjectSet);
3186
3186
  this.#updateFetchedObjectType(resultType.apiName);
3187
3187
  } catch {
3188
3188
  this.#updateFetchedObjectType(this.apiName);
@@ -3451,7 +3451,7 @@ var InterfaceListQuery = class extends ListQuery {
3451
3451
  type,
3452
3452
  apiName: this.apiName
3453
3453
  };
3454
- const clientCtx = store.client[chunkKSARRFLR_cjs.additionalContext];
3454
+ const clientCtx = store.client[chunk4JJZ7QXU_cjs.additionalContext];
3455
3455
  let objectSet;
3456
3456
  if (rids != null) {
3457
3457
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3490,7 +3490,7 @@ var InterfaceListQuery = class extends ListQuery {
3490
3490
  }
3491
3491
  extractRelevantObjects(changes) {
3492
3492
  const matchesApiName = ([, object]) => {
3493
- return this.apiName in object[chunkKA2HNXIJ_cjs.ObjectDefRef].interfaceMap;
3493
+ return this.apiName in object[chunkOUBJPIXZ_cjs.ObjectDefRef].interfaceMap;
3494
3494
  };
3495
3495
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3496
3496
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -3509,7 +3509,7 @@ var InterfaceListQuery = class extends ListQuery {
3509
3509
  }
3510
3510
  };
3511
3511
  function createSourceSetForPivot(store, pivotInfo, rids) {
3512
- const clientCtx = store.client[chunkKSARRFLR_cjs.additionalContext];
3512
+ const clientCtx = store.client[chunk4JJZ7QXU_cjs.additionalContext];
3513
3513
  if (rids != null) {
3514
3514
  return clientCtx.objectSetFactory({
3515
3515
  type: "object",
@@ -3564,7 +3564,7 @@ var ObjectListQuery = class extends ListQuery {
3564
3564
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX2];
3565
3565
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3566
3566
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3567
- const clientCtx = store.client[chunkKSARRFLR_cjs.additionalContext];
3567
+ const clientCtx = store.client[chunk4JJZ7QXU_cjs.additionalContext];
3568
3568
  const typeDefinition = {
3569
3569
  type: "object",
3570
3570
  apiName: this.apiName
@@ -3823,7 +3823,7 @@ var MediaMetadataQuery = class extends Query {
3823
3823
  #propertyName;
3824
3824
  #preview;
3825
3825
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
3826
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
3826
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
3827
3827
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
3828
3828
  }) : void 0);
3829
3829
  this.#objectType = objectType;
@@ -3856,8 +3856,8 @@ var MediaMetadataQuery = class extends Query {
3856
3856
  this.setStatus("loading", batch);
3857
3857
  });
3858
3858
  try {
3859
- const ontologyRid = await this.store.client[chunkKSARRFLR_cjs.additionalContext].ontologyRid;
3860
- const response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkKSARRFLR_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
3859
+ const ontologyRid = await this.store.client[chunk4JJZ7QXU_cjs.additionalContext].ontologyRid;
3860
+ const response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
3861
3861
  preview: this.#preview
3862
3862
  });
3863
3863
  const metadata = {
@@ -3979,8 +3979,8 @@ var MediaHelper = class extends AbstractHelper {
3979
3979
  return this._subscribe(query, options, observer);
3980
3980
  }
3981
3981
  async fetchMetadata(coords, options) {
3982
- const ontologyRid = await this.store.client[chunkKSARRFLR_cjs.additionalContext].ontologyRid;
3983
- const response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkKSARRFLR_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
3982
+ const ontologyRid = await this.store.client[chunk4JJZ7QXU_cjs.additionalContext].ontologyRid;
3983
+ const response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
3984
3984
  preview: options?.preview ?? true
3985
3985
  });
3986
3986
  return {
@@ -4000,8 +4000,8 @@ var MediaHelper = class extends AbstractHelper {
4000
4000
  let response;
4001
4001
  const coords = this.resolveToCoords(mediaOrLocation);
4002
4002
  if (coords) {
4003
- const ontologyRid = await this.store.client[chunkKSARRFLR_cjs.additionalContext].ontologyRid;
4004
- response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkKSARRFLR_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4003
+ const ontologyRid = await this.store.client[chunk4JJZ7QXU_cjs.additionalContext].ontologyRid;
4004
+ response = await chunkDOXHU27E_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4005
4005
  preview
4006
4006
  });
4007
4007
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4101,8 +4101,8 @@ function stripRdpFields(value, rdpFields) {
4101
4101
  if (rdpFields.size === 0) {
4102
4102
  return value;
4103
4103
  }
4104
- const underlying = value[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4105
- const objectDef = value[chunkKA2HNXIJ_cjs.ObjectDefRef];
4104
+ const underlying = value[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4105
+ const objectDef = value[chunkOUBJPIXZ_cjs.ObjectDefRef];
4106
4106
  const newProps = {
4107
4107
  $apiName: underlying.$apiName,
4108
4108
  $objectType: underlying.$objectType,
@@ -4115,7 +4115,7 @@ function stripRdpFields(value, rdpFields) {
4115
4115
  newProps[key] = underlying[key];
4116
4116
  }
4117
4117
  }
4118
- return chunkKA2HNXIJ_cjs.createOsdkObject(value[chunkKA2HNXIJ_cjs.ClientRef], objectDef, newProps);
4118
+ return chunkOUBJPIXZ_cjs.createOsdkObject(value[chunkOUBJPIXZ_cjs.ClientRef], objectDef, newProps);
4119
4119
  }
4120
4120
  function isSuperset(superset, subset) {
4121
4121
  for (const field of subset) {
@@ -4126,8 +4126,8 @@ function isSuperset(superset, subset) {
4126
4126
  return true;
4127
4127
  }
4128
4128
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4129
- const underlying = value[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4130
- const objectDef = value[chunkKA2HNXIJ_cjs.ObjectDefRef];
4129
+ const underlying = value[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4130
+ const objectDef = value[chunkOUBJPIXZ_cjs.ObjectDefRef];
4131
4131
  const newProps = {
4132
4132
  $apiName: underlying.$apiName,
4133
4133
  $objectType: underlying.$objectType,
@@ -4143,12 +4143,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4143
4143
  }
4144
4144
  }
4145
4145
  }
4146
- return chunkKA2HNXIJ_cjs.createOsdkObject(value[chunkKA2HNXIJ_cjs.ClientRef], objectDef, newProps);
4146
+ return chunkOUBJPIXZ_cjs.createOsdkObject(value[chunkOUBJPIXZ_cjs.ClientRef], objectDef, newProps);
4147
4147
  }
4148
4148
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
4149
- const sourceUnderlying = sourceValue[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4150
- const existingUnderlying = existingValue[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4151
- const objectDef = sourceValue[chunkKA2HNXIJ_cjs.ObjectDefRef];
4149
+ const sourceUnderlying = sourceValue[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4150
+ const existingUnderlying = existingValue[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4151
+ const objectDef = sourceValue[chunkOUBJPIXZ_cjs.ObjectDefRef];
4152
4152
  const newProps = {
4153
4153
  $apiName: sourceUnderlying.$apiName,
4154
4154
  $objectType: sourceUnderlying.$objectType,
@@ -4166,7 +4166,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
4166
4166
  newProps[key] = sourceUnderlying[key];
4167
4167
  }
4168
4168
  }
4169
- return chunkKA2HNXIJ_cjs.createOsdkObject(sourceValue[chunkKA2HNXIJ_cjs.ClientRef], objectDef, newProps);
4169
+ return chunkOUBJPIXZ_cjs.createOsdkObject(sourceValue[chunkOUBJPIXZ_cjs.ClientRef], objectDef, newProps);
4170
4170
  }
4171
4171
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
4172
4172
  if (targetRdpFields.size === 0) {
@@ -4178,8 +4178,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4178
4178
  }
4179
4179
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
4180
4180
  }
4181
- const sourceUnderlying = sourceValue[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4182
- const objectDef = sourceValue[chunkKA2HNXIJ_cjs.ObjectDefRef];
4181
+ const sourceUnderlying = sourceValue[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4182
+ const objectDef = sourceValue[chunkOUBJPIXZ_cjs.ObjectDefRef];
4183
4183
  const newProps = {
4184
4184
  $apiName: sourceUnderlying.$apiName,
4185
4185
  $objectType: sourceUnderlying.$objectType,
@@ -4193,7 +4193,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4193
4193
  }
4194
4194
  }
4195
4195
  if (targetCurrentValue) {
4196
- const targetUnderlying = targetCurrentValue[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4196
+ const targetUnderlying = targetCurrentValue[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4197
4197
  for (const field of targetRdpFields) {
4198
4198
  if (field in targetUnderlying) {
4199
4199
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -4202,7 +4202,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4202
4202
  }
4203
4203
  }
4204
4204
  }
4205
- return chunkKA2HNXIJ_cjs.createOsdkObject(sourceValue[chunkKA2HNXIJ_cjs.ClientRef], objectDef, newProps);
4205
+ return chunkOUBJPIXZ_cjs.createOsdkObject(sourceValue[chunkOUBJPIXZ_cjs.ClientRef], objectDef, newProps);
4206
4206
  }
4207
4207
 
4208
4208
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4357,7 +4357,7 @@ var BulkObjectLoader = class {
4357
4357
  #maxEntries;
4358
4358
  constructor(client, maxWait = 25, maxEntries = 100) {
4359
4359
  this.#client = client;
4360
- this.#logger = client[chunkKSARRFLR_cjs.additionalContext].logger;
4360
+ this.#logger = client[chunk4JJZ7QXU_cjs.additionalContext].logger;
4361
4361
  this.#maxWait = maxWait;
4362
4362
  this.#maxEntries = maxEntries;
4363
4363
  }
@@ -4526,7 +4526,7 @@ var ObjectQuery = class extends Query {
4526
4526
  #includeAllBaseObjectProperties;
4527
4527
  #implementingTypes;
4528
4528
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4529
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
4529
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
4530
4530
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4531
4531
  }) : void 0);
4532
4532
  this.#apiName = type;
@@ -4632,7 +4632,7 @@ var ObjectsHelper = class extends AbstractHelper {
4632
4632
  select,
4633
4633
  $loadPropertySecurityMetadata
4634
4634
  } = options;
4635
- const defType = chunkKA2HNXIJ_cjs.getDefType(options.apiName);
4635
+ const defType = chunkOUBJPIXZ_cjs.getDefType(options.apiName);
4636
4636
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4637
4637
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4638
4638
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4673,7 +4673,7 @@ var ObjectsHelper = class extends AbstractHelper {
4673
4673
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4674
4674
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4675
4675
  if (expectedRdpFields.size > 0) {
4676
- const underlying = valueToWrite[chunkKA2HNXIJ_cjs.UnderlyingOsdkObject];
4676
+ const underlying = valueToWrite[chunkOUBJPIXZ_cjs.UnderlyingOsdkObject];
4677
4677
  const actualRdpFields = /* @__PURE__ */ new Set();
4678
4678
  for (const field of expectedRdpFields) {
4679
4679
  if (underlying && field in underlying) {
@@ -4748,7 +4748,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4748
4748
  #requiresServerEvaluation;
4749
4749
  #resultTypeApiName;
4750
4750
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4751
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
4751
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
4752
4752
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4753
4753
  }) : void 0);
4754
4754
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -4816,7 +4816,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4816
4816
  return;
4817
4817
  }
4818
4818
  for (const os of sets) {
4819
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkKSARRFLR_cjs.getWireObjectSet(os));
4819
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunk4JJZ7QXU_cjs.getWireObjectSet(os));
4820
4820
  if (typeName) {
4821
4821
  types.add(typeName);
4822
4822
  }
@@ -4843,10 +4843,10 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4843
4843
  */
4844
4844
  async fetchPageData(signal) {
4845
4845
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
4846
- const wireObjectSet = chunkKSARRFLR_cjs.getWireObjectSet(this.#composedObjectSet);
4846
+ const wireObjectSet = chunk4JJZ7QXU_cjs.getWireObjectSet(this.#composedObjectSet);
4847
4847
  const {
4848
4848
  resultType
4849
- } = await getObjectTypesThatInvalidate(this.store.client[chunkKSARRFLR_cjs.additionalContext], wireObjectSet);
4849
+ } = await getObjectTypesThatInvalidate(this.store.client[chunk4JJZ7QXU_cjs.additionalContext], wireObjectSet);
4850
4850
  this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy);
4851
4851
  }
4852
4852
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5063,7 +5063,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5063
5063
  if (process.env.NODE_ENV !== "production") {
5064
5064
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5065
5065
  }
5066
- } else if (options.withProperties || chunkKSARRFLR_cjs.hasWithProperties(chunkKSARRFLR_cjs.getWireObjectSet(options.baseObjectSet))) {
5066
+ } else if (options.withProperties || chunk4JJZ7QXU_cjs.hasWithProperties(chunk4JJZ7QXU_cjs.getWireObjectSet(options.baseObjectSet))) {
5067
5067
  if (process.env.NODE_ENV !== "production") {
5068
5068
  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.");
5069
5069
  }
@@ -5077,7 +5077,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5077
5077
  const {
5078
5078
  baseObjectSet
5079
5079
  } = options;
5080
- const baseObjectSetWire = JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(baseObjectSet));
5080
+ const baseObjectSetWire = JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(baseObjectSet));
5081
5081
  const operations = this.buildCanonicalizedOperations(options);
5082
5082
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5083
5083
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5093,13 +5093,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5093
5093
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5094
5094
  }
5095
5095
  if (options.union && options.union.length > 0) {
5096
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(os))));
5096
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(os))));
5097
5097
  }
5098
5098
  if (options.intersect && options.intersect.length > 0) {
5099
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(os))));
5099
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(os))));
5100
5100
  }
5101
5101
  if (options.subtract && options.subtract.length > 0) {
5102
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkKSARRFLR_cjs.getWireObjectSet(os))));
5102
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunk4JJZ7QXU_cjs.getWireObjectSet(os))));
5103
5103
  }
5104
5104
  if (options.pivotTo) {
5105
5105
  operations.pivotTo = options.pivotTo;
@@ -5247,7 +5247,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5247
5247
  apiName: "__rdp_canonicalizer_holder__"
5248
5248
  };
5249
5249
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5250
- const builder = chunkKSARRFLR_cjs.createWithPropertiesObjectSet(
5250
+ const builder = chunk4JJZ7QXU_cjs.createWithPropertiesObjectSet(
5251
5251
  objectTypeHolder,
5252
5252
  {
5253
5253
  type: "methodInput"
@@ -5414,7 +5414,7 @@ var Store = class {
5414
5414
  subjects = this.layers.subjects;
5415
5415
  // these are hopefully temporary
5416
5416
  constructor(client) {
5417
- this.logger = client[chunkKSARRFLR_cjs.additionalContext].logger?.child({}, {
5417
+ this.logger = client[chunk4JJZ7QXU_cjs.additionalContext].logger?.child({}, {
5418
5418
  msgPrefix: "Store"
5419
5419
  });
5420
5420
  this.client = client;
@@ -5824,10 +5824,10 @@ var Store = class {
5824
5824
 
5825
5825
  // src/observable/ObservableClient.ts
5826
5826
  function createObservableClient(client, extraUserAgents) {
5827
- const tweakedClient = chunkKA2HNXIJ_cjs.createClientFromContext({
5828
- ...client[chunkKSARRFLR_cjs.additionalContext],
5829
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkKSARRFLR_cjs.additionalContext].fetch, (headers) => {
5830
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkKA2HNXIJ_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5827
+ const tweakedClient = chunkOUBJPIXZ_cjs.createClientFromContext({
5828
+ ...client[chunk4JJZ7QXU_cjs.additionalContext],
5829
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk4JJZ7QXU_cjs.additionalContext].fetch, (headers) => {
5830
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkOUBJPIXZ_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5831
5831
  return headers;
5832
5832
  })
5833
5833
  });
@@ -5835,5 +5835,5 @@ function createObservableClient(client, extraUserAgents) {
5835
5835
  }
5836
5836
 
5837
5837
  exports.createObservableClient = createObservableClient;
5838
- //# sourceMappingURL=chunk-V2FALIB7.cjs.map
5839
- //# sourceMappingURL=chunk-V2FALIB7.cjs.map
5838
+ //# sourceMappingURL=chunk-LVNIU5CO.cjs.map
5839
+ //# sourceMappingURL=chunk-LVNIU5CO.cjs.map