@osdk/client 2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453 → 2.71.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @osdk/client
2
2
 
3
- ## 2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453
3
+ ## 2.71.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,10 +9,10 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [ae55749]
12
- - @osdk/generator-converters@2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453
13
- - @osdk/api@2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453
14
- - @osdk/client.unstable@2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453
15
- - @osdk/shared.test@2.48.1-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453
12
+ - @osdk/generator-converters@2.71.0
13
+ - @osdk/api@2.71.0
14
+ - @osdk/client.unstable@2.71.0
15
+ - @osdk/shared.test@2.49.0
16
16
 
17
17
  ## 2.70.0
18
18
 
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.71.0-main-528d0ca33c2f48bf5da7feeed505e4b817f0d453"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.71.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.71.0"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,uEAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,kFAAuD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,yBAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,oCAAuD","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAAOOBJG3_cjs = require('./chunk-AAOOBJG3.cjs');
3
+ var chunkZWABEEHA_cjs = require('./chunk-ZWABEEHA.cjs');
4
4
  var chunkDKODJJ7N_cjs = require('./chunk-DKODJJ7N.cjs');
5
5
  var chunk2E3QVQUU_cjs = require('./chunk-2E3QVQUU.cjs');
6
6
  var shared_net_fetch = require('@osdk/shared.net.fetch');
@@ -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?.[chunkAAOOBJG3_cjs.ObjectDefRef]?.properties?.[key]?.type;
2212
+ const objectType = holder?.[chunkZWABEEHA_cjs.ObjectDefRef]?.properties?.[key]?.type;
2213
2213
  if (typeof objectType === "string") {
2214
2214
  return objectType;
2215
2215
  }
2216
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkAAOOBJG3_cjs.InterfaceDefRef], key);
2216
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkZWABEEHA_cjs.InterfaceDefRef], key);
2217
2217
  if (typeof interfaceType === "string") {
2218
2218
  return interfaceType;
2219
2219
  }
@@ -2307,8 +2307,8 @@ function stripRdpFields(value, rdpFields) {
2307
2307
  if (rdpFields.size === 0) {
2308
2308
  return value;
2309
2309
  }
2310
- const underlying = value[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2311
- const objectDef = requireObjectDef(value[chunkAAOOBJG3_cjs.ObjectDefRef], underlying);
2310
+ const underlying = value[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2311
+ const objectDef = requireObjectDef(value[chunkZWABEEHA_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 chunkAAOOBJG3_cjs.createOsdkObject(value[chunkAAOOBJG3_cjs.ClientRef], objectDef, newProps);
2324
+ return chunkZWABEEHA_cjs.createOsdkObject(value[chunkZWABEEHA_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[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2336
- const objectDef = requireObjectDef(value[chunkAAOOBJG3_cjs.ObjectDefRef], underlying);
2335
+ const underlying = value[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2336
+ const objectDef = requireObjectDef(value[chunkZWABEEHA_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 chunkAAOOBJG3_cjs.createOsdkObject(value[chunkAAOOBJG3_cjs.ClientRef], objectDef, newProps);
2353
+ return chunkZWABEEHA_cjs.createOsdkObject(value[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2354
2354
  }
2355
2355
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2356
- const sourceUnderlying = sourceValue[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2357
- const existingUnderlying = existingValue[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2358
- const objectDef = requireObjectDef(sourceValue[chunkAAOOBJG3_cjs.ObjectDefRef], sourceUnderlying);
2356
+ const sourceUnderlying = sourceValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2357
+ const existingUnderlying = existingValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2358
+ const objectDef = requireObjectDef(sourceValue[chunkZWABEEHA_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 chunkAAOOBJG3_cjs.createOsdkObject(sourceValue[chunkAAOOBJG3_cjs.ClientRef], objectDef, newProps);
2378
+ return chunkZWABEEHA_cjs.createOsdkObject(sourceValue[chunkZWABEEHA_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[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2391
- const objectDef = requireObjectDef(sourceValue[chunkAAOOBJG3_cjs.ObjectDefRef], sourceUnderlying);
2390
+ const sourceUnderlying = sourceValue[chunkZWABEEHA_cjs.UnderlyingOsdkObject];
2391
+ const objectDef = requireObjectDef(sourceValue[chunkZWABEEHA_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[chunkAAOOBJG3_cjs.UnderlyingOsdkObject];
2410
+ const targetUnderlying = targetCurrentValue[chunkZWABEEHA_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 chunkAAOOBJG3_cjs.createOsdkObject(sourceValue[chunkAAOOBJG3_cjs.ClientRef], objectDef, newProps);
2417
+ return chunkZWABEEHA_cjs.createOsdkObject(sourceValue[chunkZWABEEHA_cjs.ClientRef], objectDef, newProps);
2418
2418
  }
2419
2419
  function createCollectionConnectable(subject, subjects, createPayload) {
2420
2420
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3802,7 +3802,7 @@ var InterfaceListQuery = class extends ListQuery {
3802
3802
  }
3803
3803
  extractRelevantObjects(changes) {
3804
3804
  const matchesApiName = ([, object]) => {
3805
- return this.apiName in object[chunkAAOOBJG3_cjs.ObjectDefRef].interfaceMap;
3805
+ return this.apiName in object[chunkZWABEEHA_cjs.ObjectDefRef].interfaceMap;
3806
3806
  };
3807
3807
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3808
3808
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -4145,7 +4145,7 @@ var MediaMetadataQuery = class extends Query {
4145
4145
  });
4146
4146
  try {
4147
4147
  const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4148
- const response = await chunkAAOOBJG3_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4148
+ const response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4149
4149
  preview: this.#preview
4150
4150
  });
4151
4151
  const metadata = {
@@ -4268,7 +4268,7 @@ var MediaHelper = class extends AbstractHelper {
4268
4268
  }
4269
4269
  async fetchMetadata(coords, options) {
4270
4270
  const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4271
- const response = await chunkAAOOBJG3_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4271
+ const response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4272
4272
  preview: options?.preview ?? true
4273
4273
  });
4274
4274
  return {
@@ -4289,7 +4289,7 @@ var MediaHelper = class extends AbstractHelper {
4289
4289
  const coords = this.resolveToCoords(mediaOrLocation);
4290
4290
  if (coords) {
4291
4291
  const ontologyRid = await this.store.client[chunk2E3QVQUU_cjs.additionalContext].ontologyRid;
4292
- response = await chunkAAOOBJG3_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4292
+ response = await chunkZWABEEHA_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk2E3QVQUU_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4293
4293
  preview
4294
4294
  });
4295
4295
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4476,7 +4476,7 @@ var ObjectCacheKeyRegistry = class {
4476
4476
 
4477
4477
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4478
4478
  function isInterfaceHolder(v) {
4479
- return typeof v === "object" && v != null && chunkAAOOBJG3_cjs.InterfaceDefRef in v;
4479
+ return typeof v === "object" && v != null && chunkZWABEEHA_cjs.InterfaceDefRef in v;
4480
4480
  }
4481
4481
 
4482
4482
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4836,7 +4836,7 @@ var ObjectsHelper = class extends AbstractHelper {
4836
4836
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4837
4837
  const holders = values;
4838
4838
  return holders.map((v) => {
4839
- const concreteHolder = isInterfaceHolder(v) ? v[chunkAAOOBJG3_cjs.UnderlyingOsdkObject] : v;
4839
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkZWABEEHA_cjs.UnderlyingOsdkObject] : v;
4840
4840
  return this.getQuery({
4841
4841
  apiName: v.$objectType ?? v.$apiName,
4842
4842
  pk: v.$primaryKey,
@@ -6068,10 +6068,10 @@ var Store = class {
6068
6068
 
6069
6069
  // src/observable/ObservableClient.ts
6070
6070
  function createObservableClient(client, extraUserAgents, options) {
6071
- const tweakedClient = chunkAAOOBJG3_cjs.createClientFromContext({
6071
+ const tweakedClient = chunkZWABEEHA_cjs.createClientFromContext({
6072
6072
  ...client[chunk2E3QVQUU_cjs.additionalContext],
6073
6073
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk2E3QVQUU_cjs.additionalContext].fetch, (headers) => {
6074
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkAAOOBJG3_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6074
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkZWABEEHA_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6075
6075
  return headers;
6076
6076
  })
6077
6077
  });
@@ -6079,5 +6079,5 @@ function createObservableClient(client, extraUserAgents, options) {
6079
6079
  }
6080
6080
 
6081
6081
  exports.createObservableClient = createObservableClient;
6082
- //# sourceMappingURL=chunk-QB5SPHA3.cjs.map
6083
- //# sourceMappingURL=chunk-QB5SPHA3.cjs.map
6082
+ //# sourceMappingURL=chunk-PDBUYKWG.cjs.map
6083
+ //# sourceMappingURL=chunk-PDBUYKWG.cjs.map