@osdk/client 2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d → 2.38.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,15 +1,18 @@
1
1
  # @osdk/client
2
2
 
3
- ## 2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d
3
+ ## 2.38.0
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
6
 
7
7
  - 11c7eb8: Revert the empty-where-clause runtime checks added in #3348. `modernToLegacyWhereClause` no longer throws on an empty clause, and `.where({})` no longer short-circuits to a no-op, restoring the pre-#3348 behavior where an empty clause lowers to an empty AND. Note: this reintroduces the original behavior where a `.where({})` (including no-filter `useOsdkObjects`/`useOsdkAggregation` queries via the observable layer) emits an empty AND on the wire, which some object-storage backends reject on the aggregate path.
8
8
  - bbb89ce: Fix `SyntaxError: The requested module 'big.js' does not provide an export named 'Big'`
9
- - @osdk/api@2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d
10
- - @osdk/client.unstable@2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d
11
- - @osdk/generator-converters@2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d
12
- - @osdk/shared.test@2.27.1-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d
9
+
10
+ ### Patch Changes
11
+
12
+ - @osdk/api@2.38.0
13
+ - @osdk/client.unstable@2.38.0
14
+ - @osdk/generator-converters@2.38.0
15
+ - @osdk/shared.test@2.28.0
13
16
 
14
17
  ## 2.37.0
15
18
 
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.38.0-main-bbb89ce6c40d68bdf04f62ac40cc186dbd68750d"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.38.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.38.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 =\n `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,GACxC,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 =\n `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,GACxC,oCAAuD","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTJZHL42Q_cjs = require('./chunk-TJZHL42Q.cjs');
3
+ var chunkO7S4QCBV_cjs = require('./chunk-O7S4QCBV.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
5
  var chunk7RMQABID_cjs = require('./chunk-7RMQABID.cjs');
6
6
  var chunkMHRH2XSF_cjs = require('./chunk-MHRH2XSF.cjs');
@@ -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?.[chunkTJZHL42Q_cjs.ObjectDefRef]?.properties?.[key]?.type;
2185
+ const objectType = holder?.[chunkO7S4QCBV_cjs.ObjectDefRef]?.properties?.[key]?.type;
2186
2186
  if (typeof objectType === "string") {
2187
2187
  return objectType;
2188
2188
  }
2189
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkTJZHL42Q_cjs.InterfaceDefRef], key);
2189
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkO7S4QCBV_cjs.InterfaceDefRef], key);
2190
2190
  if (typeof interfaceType === "string") {
2191
2191
  return interfaceType;
2192
2192
  }
@@ -2280,8 +2280,8 @@ function stripRdpFields(value, rdpFields) {
2280
2280
  if (rdpFields.size === 0) {
2281
2281
  return value;
2282
2282
  }
2283
- const underlying = value[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2284
- const objectDef = requireObjectDef(value[chunkTJZHL42Q_cjs.ObjectDefRef], underlying);
2283
+ const underlying = value[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2284
+ const objectDef = requireObjectDef(value[chunkO7S4QCBV_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 chunkTJZHL42Q_cjs.createOsdkObject(value[chunkTJZHL42Q_cjs.ClientRef], objectDef, newProps);
2297
+ return chunkO7S4QCBV_cjs.createOsdkObject(value[chunkO7S4QCBV_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[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2309
- const objectDef = requireObjectDef(value[chunkTJZHL42Q_cjs.ObjectDefRef], underlying);
2308
+ const underlying = value[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2309
+ const objectDef = requireObjectDef(value[chunkO7S4QCBV_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 chunkTJZHL42Q_cjs.createOsdkObject(value[chunkTJZHL42Q_cjs.ClientRef], objectDef, newProps);
2326
+ return chunkO7S4QCBV_cjs.createOsdkObject(value[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2327
2327
  }
2328
2328
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2329
- const sourceUnderlying = sourceValue[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2330
- const existingUnderlying = existingValue[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2331
- const objectDef = requireObjectDef(sourceValue[chunkTJZHL42Q_cjs.ObjectDefRef], sourceUnderlying);
2329
+ const sourceUnderlying = sourceValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2330
+ const existingUnderlying = existingValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2331
+ const objectDef = requireObjectDef(sourceValue[chunkO7S4QCBV_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 chunkTJZHL42Q_cjs.createOsdkObject(sourceValue[chunkTJZHL42Q_cjs.ClientRef], objectDef, newProps);
2351
+ return chunkO7S4QCBV_cjs.createOsdkObject(sourceValue[chunkO7S4QCBV_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[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2364
- const objectDef = requireObjectDef(sourceValue[chunkTJZHL42Q_cjs.ObjectDefRef], sourceUnderlying);
2363
+ const sourceUnderlying = sourceValue[chunkO7S4QCBV_cjs.UnderlyingOsdkObject];
2364
+ const objectDef = requireObjectDef(sourceValue[chunkO7S4QCBV_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[chunkTJZHL42Q_cjs.UnderlyingOsdkObject];
2383
+ const targetUnderlying = targetCurrentValue[chunkO7S4QCBV_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 chunkTJZHL42Q_cjs.createOsdkObject(sourceValue[chunkTJZHL42Q_cjs.ClientRef], objectDef, newProps);
2390
+ return chunkO7S4QCBV_cjs.createOsdkObject(sourceValue[chunkO7S4QCBV_cjs.ClientRef], objectDef, newProps);
2391
2391
  }
2392
2392
  function createCollectionConnectable(subject, subjects, createPayload) {
2393
2393
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -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[chunkTJZHL42Q_cjs.ObjectDefRef].interfaceMap;
3771
+ return this.apiName in object[chunkO7S4QCBV_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));
@@ -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 && chunkTJZHL42Q_cjs.InterfaceDefRef in v;
4445
+ return typeof v === "object" && v != null && chunkO7S4QCBV_cjs.InterfaceDefRef in v;
4446
4446
  }
4447
4447
 
4448
4448
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -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[chunkTJZHL42Q_cjs.UnderlyingOsdkObject] : v;
4805
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkO7S4QCBV_cjs.UnderlyingOsdkObject] : v;
4806
4806
  return this.getQuery({
4807
4807
  apiName: v.$objectType ?? v.$apiName,
4808
4808
  pk: v.$primaryKey,
@@ -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 = chunkTJZHL42Q_cjs.createClientFromContext({
6013
+ const tweakedClient = chunkO7S4QCBV_cjs.createClientFromContext({
6014
6014
  ...client[chunkMHRH2XSF_cjs.additionalContext],
6015
6015
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkMHRH2XSF_cjs.additionalContext].fetch, (headers) => {
6016
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkTJZHL42Q_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6016
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkO7S4QCBV_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-EXKWEGSB.cjs.map
6025
- //# sourceMappingURL=chunk-EXKWEGSB.cjs.map
6024
+ //# sourceMappingURL=chunk-GKBL44QY.cjs.map
6025
+ //# sourceMappingURL=chunk-GKBL44QY.cjs.map