@osdk/client 2.37.0-main-b174a282d4a55296a00a00076f2ddff340316892 → 2.37.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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXNTKX42C_cjs = require('./chunk-XNTKX42C.cjs');
3
+ var chunk6I6YOZ3F_cjs = require('./chunk-6I6YOZ3F.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
5
  var chunkIZHXFBHV_cjs = require('./chunk-IZHXFBHV.cjs');
6
6
  var chunkFUYQV7Z5_cjs = require('./chunk-FUYQV7Z5.cjs');
@@ -2180,11 +2180,11 @@ function isStringEncodedNumericType(type) {
2180
2180
  return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
2181
2181
  }
2182
2182
  function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
2183
- const objectType = holder?.[chunkXNTKX42C_cjs.ObjectDefRef]?.properties?.[key]?.type;
2183
+ const objectType = holder?.[chunk6I6YOZ3F_cjs.ObjectDefRef]?.properties?.[key]?.type;
2184
2184
  if (typeof objectType === "string") {
2185
2185
  return objectType;
2186
2186
  }
2187
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkXNTKX42C_cjs.InterfaceDefRef], key);
2187
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunk6I6YOZ3F_cjs.InterfaceDefRef], key);
2188
2188
  if (typeof interfaceType === "string") {
2189
2189
  return interfaceType;
2190
2190
  }
@@ -2278,8 +2278,8 @@ function stripRdpFields(value, rdpFields) {
2278
2278
  if (rdpFields.size === 0) {
2279
2279
  return value;
2280
2280
  }
2281
- const underlying = value[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2282
- const objectDef = requireObjectDef(value[chunkXNTKX42C_cjs.ObjectDefRef], underlying);
2281
+ const underlying = value[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2282
+ const objectDef = requireObjectDef(value[chunk6I6YOZ3F_cjs.ObjectDefRef], underlying);
2283
2283
  const newProps = {
2284
2284
  $apiName: underlying.$apiName,
2285
2285
  $objectType: underlying.$objectType,
@@ -2292,7 +2292,7 @@ function stripRdpFields(value, rdpFields) {
2292
2292
  newProps[key] = underlying[key];
2293
2293
  }
2294
2294
  }
2295
- return chunkXNTKX42C_cjs.createOsdkObject(value[chunkXNTKX42C_cjs.ClientRef], objectDef, newProps);
2295
+ return chunk6I6YOZ3F_cjs.createOsdkObject(value[chunk6I6YOZ3F_cjs.ClientRef], objectDef, newProps);
2296
2296
  }
2297
2297
  function isSuperset(superset, subset) {
2298
2298
  for (const field of subset) {
@@ -2303,8 +2303,8 @@ function isSuperset(superset, subset) {
2303
2303
  return true;
2304
2304
  }
2305
2305
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2306
- const underlying = value[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2307
- const objectDef = requireObjectDef(value[chunkXNTKX42C_cjs.ObjectDefRef], underlying);
2306
+ const underlying = value[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2307
+ const objectDef = requireObjectDef(value[chunk6I6YOZ3F_cjs.ObjectDefRef], underlying);
2308
2308
  const newProps = {
2309
2309
  $apiName: underlying.$apiName,
2310
2310
  $objectType: underlying.$objectType,
@@ -2321,12 +2321,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2321
2321
  newProps[key] = underlying[key];
2322
2322
  }
2323
2323
  }
2324
- return chunkXNTKX42C_cjs.createOsdkObject(value[chunkXNTKX42C_cjs.ClientRef], objectDef, newProps);
2324
+ return chunk6I6YOZ3F_cjs.createOsdkObject(value[chunk6I6YOZ3F_cjs.ClientRef], objectDef, newProps);
2325
2325
  }
2326
2326
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2327
- const sourceUnderlying = sourceValue[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2328
- const existingUnderlying = existingValue[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2329
- const objectDef = requireObjectDef(sourceValue[chunkXNTKX42C_cjs.ObjectDefRef], sourceUnderlying);
2327
+ const sourceUnderlying = sourceValue[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2328
+ const existingUnderlying = existingValue[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2329
+ const objectDef = requireObjectDef(sourceValue[chunk6I6YOZ3F_cjs.ObjectDefRef], sourceUnderlying);
2330
2330
  const newProps = {
2331
2331
  $apiName: sourceUnderlying.$apiName,
2332
2332
  $objectType: sourceUnderlying.$objectType,
@@ -2346,7 +2346,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
2346
2346
  newProps[key] = sourceUnderlying[key];
2347
2347
  }
2348
2348
  }
2349
- return chunkXNTKX42C_cjs.createOsdkObject(sourceValue[chunkXNTKX42C_cjs.ClientRef], objectDef, newProps);
2349
+ return chunk6I6YOZ3F_cjs.createOsdkObject(sourceValue[chunk6I6YOZ3F_cjs.ClientRef], objectDef, newProps);
2350
2350
  }
2351
2351
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
2352
2352
  if (targetRdpFields.size === 0) {
@@ -2358,8 +2358,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2358
2358
  }
2359
2359
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
2360
2360
  }
2361
- const sourceUnderlying = sourceValue[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2362
- const objectDef = requireObjectDef(sourceValue[chunkXNTKX42C_cjs.ObjectDefRef], sourceUnderlying);
2361
+ const sourceUnderlying = sourceValue[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2362
+ const objectDef = requireObjectDef(sourceValue[chunk6I6YOZ3F_cjs.ObjectDefRef], sourceUnderlying);
2363
2363
  const newProps = {
2364
2364
  $apiName: sourceUnderlying.$apiName,
2365
2365
  $objectType: sourceUnderlying.$objectType,
@@ -2378,14 +2378,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2378
2378
  }
2379
2379
  }
2380
2380
  if (targetCurrentValue) {
2381
- const targetUnderlying = targetCurrentValue[chunkXNTKX42C_cjs.UnderlyingOsdkObject];
2381
+ const targetUnderlying = targetCurrentValue[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject];
2382
2382
  for (const field of targetRdpFields) {
2383
2383
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
2384
2384
  newProps[field] = targetUnderlying[field];
2385
2385
  }
2386
2386
  }
2387
2387
  }
2388
- return chunkXNTKX42C_cjs.createOsdkObject(sourceValue[chunkXNTKX42C_cjs.ClientRef], objectDef, newProps);
2388
+ return chunk6I6YOZ3F_cjs.createOsdkObject(sourceValue[chunk6I6YOZ3F_cjs.ClientRef], objectDef, newProps);
2389
2389
  }
2390
2390
  function createCollectionConnectable(subject, subjects, createPayload) {
2391
2391
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3766,7 +3766,7 @@ var InterfaceListQuery = class extends ListQuery {
3766
3766
  }
3767
3767
  extractRelevantObjects(changes) {
3768
3768
  const matchesApiName = ([, object]) => {
3769
- return this.apiName in object[chunkXNTKX42C_cjs.ObjectDefRef].interfaceMap;
3769
+ return this.apiName in object[chunk6I6YOZ3F_cjs.ObjectDefRef].interfaceMap;
3770
3770
  };
3771
3771
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3772
3772
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -4440,7 +4440,7 @@ var ObjectCacheKeyRegistry = class {
4440
4440
 
4441
4441
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4442
4442
  function isInterfaceHolder(v) {
4443
- return typeof v === "object" && v != null && chunkXNTKX42C_cjs.InterfaceDefRef in v;
4443
+ return typeof v === "object" && v != null && chunk6I6YOZ3F_cjs.InterfaceDefRef in v;
4444
4444
  }
4445
4445
 
4446
4446
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4800,7 +4800,7 @@ var ObjectsHelper = class extends AbstractHelper {
4800
4800
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4801
4801
  const holders = values;
4802
4802
  return holders.map((v) => {
4803
- const concreteHolder = isInterfaceHolder(v) ? v[chunkXNTKX42C_cjs.UnderlyingOsdkObject] : v;
4803
+ const concreteHolder = isInterfaceHolder(v) ? v[chunk6I6YOZ3F_cjs.UnderlyingOsdkObject] : v;
4804
4804
  return this.getQuery({
4805
4805
  apiName: v.$objectType ?? v.$apiName,
4806
4806
  pk: v.$primaryKey,
@@ -6008,10 +6008,10 @@ var Store = class {
6008
6008
 
6009
6009
  // src/observable/ObservableClient.ts
6010
6010
  function createObservableClient(client, extraUserAgents, options) {
6011
- const tweakedClient = chunkXNTKX42C_cjs.createClientFromContext({
6011
+ const tweakedClient = chunk6I6YOZ3F_cjs.createClientFromContext({
6012
6012
  ...client[chunkFUYQV7Z5_cjs.additionalContext],
6013
6013
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkFUYQV7Z5_cjs.additionalContext].fetch, (headers) => {
6014
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkXNTKX42C_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6014
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk6I6YOZ3F_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6015
6015
  return headers;
6016
6016
  })
6017
6017
  });
@@ -6019,5 +6019,5 @@ function createObservableClient(client, extraUserAgents, options) {
6019
6019
  }
6020
6020
 
6021
6021
  exports.createObservableClient = createObservableClient;
6022
- //# sourceMappingURL=chunk-2XD7JS4V.cjs.map
6023
- //# sourceMappingURL=chunk-2XD7JS4V.cjs.map
6022
+ //# sourceMappingURL=chunk-SQLE7RXL.cjs.map
6023
+ //# sourceMappingURL=chunk-SQLE7RXL.cjs.map