@osdk/client 2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982 → 2.32.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,21 +1,21 @@
1
1
  # @osdk/client
2
2
 
3
- ## 2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982
3
+ ## 2.32.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - 06adca1: add $snapshot option to fetchPage
8
+ - 79f8a6e: Stop serializing GeoJSON `Point` geometries into a `"lat,lon"` string when sending object property/parameter values. This broke geoshape values that are Points (the transaction edits and action endpoints rejected `"lat,lon"` with `InvalidTransactionEditPropertyValue` / invalid parameter for `GeoShape`). GeoJSON values are now passed through as objects, which the server accepts for both geoshape and geopoint/geohash targets. The FauxFoundry geohash action-parameter validator now also accepts GeoJSON objects, matching the real server.
8
9
 
9
10
  ### Patch Changes
10
11
 
11
- - 79f8a6e: Stop serializing GeoJSON `Point` geometries into a `"lat,lon"` string when sending object property/parameter values. This broke geoshape values that are Points (the transaction edits and action endpoints rejected `"lat,lon"` with `InvalidTransactionEditPropertyValue` / invalid parameter for `GeoShape`). GeoJSON values are now passed through as objects, which the server accepts for both geoshape and geopoint/geohash targets. The FauxFoundry geohash action-parameter validator now also accepts GeoJSON objects, matching the real server.
12
12
  - Updated dependencies [b5d0a61]
13
13
  - Updated dependencies [06adca1]
14
14
  - Updated dependencies [833f47a]
15
- - @osdk/client.unstable@2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982
16
- - @osdk/api@2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982
17
- - @osdk/generator-converters@2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982
18
- - @osdk/shared.test@2.23.1-main-b6f0fc39b4075ace2a3e16d976f40900854dd982
15
+ - @osdk/client.unstable@2.32.0
16
+ - @osdk/api@2.32.0
17
+ - @osdk/generator-converters@2.32.0
18
+ - @osdk/shared.test@2.24.0
19
19
 
20
20
  ## 2.31.0
21
21
 
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.32.0-main-b6f0fc39b4075ace2a3e16d976f40900854dd982"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.32.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.32.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 chunkD7LXHS2V_cjs = require('./chunk-D7LXHS2V.cjs');
3
+ var chunkWQOHLZST_cjs = require('./chunk-WQOHLZST.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
5
  var chunkRUZYKCPH_cjs = require('./chunk-RUZYKCPH.cjs');
6
6
  var chunkRX4TFC24_cjs = require('./chunk-RX4TFC24.cjs');
@@ -3571,7 +3571,7 @@ var InterfaceListQuery = class extends ListQuery {
3571
3571
  }
3572
3572
  extractRelevantObjects(changes) {
3573
3573
  const matchesApiName = ([, object]) => {
3574
- return this.apiName in object[chunkD7LXHS2V_cjs.ObjectDefRef].interfaceMap;
3574
+ return this.apiName in object[chunkWQOHLZST_cjs.ObjectDefRef].interfaceMap;
3575
3575
  };
3576
3576
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3577
3577
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -4164,8 +4164,8 @@ function stripRdpFields(value, rdpFields) {
4164
4164
  if (rdpFields.size === 0) {
4165
4165
  return value;
4166
4166
  }
4167
- const underlying = value[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4168
- const objectDef = requireObjectDef(value[chunkD7LXHS2V_cjs.ObjectDefRef], underlying);
4167
+ const underlying = value[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4168
+ const objectDef = requireObjectDef(value[chunkWQOHLZST_cjs.ObjectDefRef], underlying);
4169
4169
  const newProps = {
4170
4170
  $apiName: underlying.$apiName,
4171
4171
  $objectType: underlying.$objectType,
@@ -4178,7 +4178,7 @@ function stripRdpFields(value, rdpFields) {
4178
4178
  newProps[key] = underlying[key];
4179
4179
  }
4180
4180
  }
4181
- return chunkD7LXHS2V_cjs.createOsdkObject(value[chunkD7LXHS2V_cjs.ClientRef], objectDef, newProps);
4181
+ return chunkWQOHLZST_cjs.createOsdkObject(value[chunkWQOHLZST_cjs.ClientRef], objectDef, newProps);
4182
4182
  }
4183
4183
  function isSuperset(superset, subset) {
4184
4184
  for (const field of subset) {
@@ -4189,8 +4189,8 @@ function isSuperset(superset, subset) {
4189
4189
  return true;
4190
4190
  }
4191
4191
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4192
- const underlying = value[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4193
- const objectDef = requireObjectDef(value[chunkD7LXHS2V_cjs.ObjectDefRef], underlying);
4192
+ const underlying = value[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4193
+ const objectDef = requireObjectDef(value[chunkWQOHLZST_cjs.ObjectDefRef], underlying);
4194
4194
  const newProps = {
4195
4195
  $apiName: underlying.$apiName,
4196
4196
  $objectType: underlying.$objectType,
@@ -4206,12 +4206,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4206
4206
  }
4207
4207
  }
4208
4208
  }
4209
- return chunkD7LXHS2V_cjs.createOsdkObject(value[chunkD7LXHS2V_cjs.ClientRef], objectDef, newProps);
4209
+ return chunkWQOHLZST_cjs.createOsdkObject(value[chunkWQOHLZST_cjs.ClientRef], objectDef, newProps);
4210
4210
  }
4211
4211
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
4212
- const sourceUnderlying = sourceValue[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4213
- const existingUnderlying = existingValue[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4214
- const objectDef = requireObjectDef(sourceValue[chunkD7LXHS2V_cjs.ObjectDefRef], sourceUnderlying);
4212
+ const sourceUnderlying = sourceValue[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4213
+ const existingUnderlying = existingValue[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4214
+ const objectDef = requireObjectDef(sourceValue[chunkWQOHLZST_cjs.ObjectDefRef], sourceUnderlying);
4215
4215
  const newProps = {
4216
4216
  $apiName: sourceUnderlying.$apiName,
4217
4217
  $objectType: sourceUnderlying.$objectType,
@@ -4229,7 +4229,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
4229
4229
  newProps[key] = sourceUnderlying[key];
4230
4230
  }
4231
4231
  }
4232
- return chunkD7LXHS2V_cjs.createOsdkObject(sourceValue[chunkD7LXHS2V_cjs.ClientRef], objectDef, newProps);
4232
+ return chunkWQOHLZST_cjs.createOsdkObject(sourceValue[chunkWQOHLZST_cjs.ClientRef], objectDef, newProps);
4233
4233
  }
4234
4234
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
4235
4235
  if (targetRdpFields.size === 0) {
@@ -4241,8 +4241,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4241
4241
  }
4242
4242
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
4243
4243
  }
4244
- const sourceUnderlying = sourceValue[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4245
- const objectDef = requireObjectDef(sourceValue[chunkD7LXHS2V_cjs.ObjectDefRef], sourceUnderlying);
4244
+ const sourceUnderlying = sourceValue[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4245
+ const objectDef = requireObjectDef(sourceValue[chunkWQOHLZST_cjs.ObjectDefRef], sourceUnderlying);
4246
4246
  const newProps = {
4247
4247
  $apiName: sourceUnderlying.$apiName,
4248
4248
  $objectType: sourceUnderlying.$objectType,
@@ -4256,7 +4256,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4256
4256
  }
4257
4257
  }
4258
4258
  if (targetCurrentValue) {
4259
- const targetUnderlying = targetCurrentValue[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4259
+ const targetUnderlying = targetCurrentValue[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4260
4260
  for (const field of targetRdpFields) {
4261
4261
  if (field in targetUnderlying) {
4262
4262
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -4265,7 +4265,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4265
4265
  }
4266
4266
  }
4267
4267
  }
4268
- return chunkD7LXHS2V_cjs.createOsdkObject(sourceValue[chunkD7LXHS2V_cjs.ClientRef], objectDef, newProps);
4268
+ return chunkWQOHLZST_cjs.createOsdkObject(sourceValue[chunkWQOHLZST_cjs.ClientRef], objectDef, newProps);
4269
4269
  }
4270
4270
 
4271
4271
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4366,7 +4366,7 @@ var ObjectCacheKeyRegistry = class {
4366
4366
 
4367
4367
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4368
4368
  function isInterfaceHolder(v) {
4369
- return typeof v === "object" && v != null && chunkD7LXHS2V_cjs.InterfaceDefRef in v;
4369
+ return typeof v === "object" && v != null && chunkWQOHLZST_cjs.InterfaceDefRef in v;
4370
4370
  }
4371
4371
 
4372
4372
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4717,7 +4717,7 @@ var ObjectsHelper = class extends AbstractHelper {
4717
4717
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties) {
4718
4718
  const holders = values;
4719
4719
  return holders.map((v) => {
4720
- const concreteHolder = isInterfaceHolder(v) ? v[chunkD7LXHS2V_cjs.UnderlyingOsdkObject] : v;
4720
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkWQOHLZST_cjs.UnderlyingOsdkObject] : v;
4721
4721
  return this.getQuery({
4722
4722
  apiName: v.$objectType ?? v.$apiName,
4723
4723
  pk: v.$primaryKey,
@@ -4745,7 +4745,7 @@ var ObjectsHelper = class extends AbstractHelper {
4745
4745
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4746
4746
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4747
4747
  if (expectedRdpFields.size > 0) {
4748
- const underlying = valueToWrite[chunkD7LXHS2V_cjs.UnderlyingOsdkObject];
4748
+ const underlying = valueToWrite[chunkWQOHLZST_cjs.UnderlyingOsdkObject];
4749
4749
  const actualRdpFields = /* @__PURE__ */ new Set();
4750
4750
  for (const field of expectedRdpFields) {
4751
4751
  if (underlying && field in underlying) {
@@ -5920,10 +5920,10 @@ var Store = class {
5920
5920
 
5921
5921
  // src/observable/ObservableClient.ts
5922
5922
  function createObservableClient(client, extraUserAgents) {
5923
- const tweakedClient = chunkD7LXHS2V_cjs.createClientFromContext({
5923
+ const tweakedClient = chunkWQOHLZST_cjs.createClientFromContext({
5924
5924
  ...client[chunkRX4TFC24_cjs.additionalContext],
5925
5925
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkRX4TFC24_cjs.additionalContext].fetch, (headers) => {
5926
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkD7LXHS2V_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5926
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkWQOHLZST_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5927
5927
  return headers;
5928
5928
  })
5929
5929
  });
@@ -5931,5 +5931,5 @@ function createObservableClient(client, extraUserAgents) {
5931
5931
  }
5932
5932
 
5933
5933
  exports.createObservableClient = createObservableClient;
5934
- //# sourceMappingURL=chunk-7PXDLD7B.cjs.map
5935
- //# sourceMappingURL=chunk-7PXDLD7B.cjs.map
5934
+ //# sourceMappingURL=chunk-VBJBQ5J6.cjs.map
5935
+ //# sourceMappingURL=chunk-VBJBQ5J6.cjs.map