@osdk/client 2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb → 2.23.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,18 +1,21 @@
1
1
  # @osdk/client
2
2
 
3
- ## 2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb
3
+ ## 2.23.0
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
6
 
7
7
  - 8290dd7: Unwrap `$primaryKey` and `$title` when they are returned as secured property values, and include them as keys in `$propertySecurities` (both at the type level and at runtime, including interface views).
8
+
9
+ ### Patch Changes
10
+
8
11
  - Updated dependencies [9fb5afb]
9
12
  - Updated dependencies [198f219]
10
13
  - Updated dependencies [ef156b6]
11
14
  - Updated dependencies [8290dd7]
12
- - @osdk/generator-converters@2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb
13
- - @osdk/api@2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb
14
- - @osdk/client.unstable@2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb
15
- - @osdk/shared.test@2.17.1-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb
15
+ - @osdk/generator-converters@2.23.0
16
+ - @osdk/api@2.23.0
17
+ - @osdk/client.unstable@2.23.0
18
+ - @osdk/shared.test@2.18.0
16
19
 
17
20
  ## 2.22.0
18
21
 
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.23.0-main-b5d7e7b9644f6f9d2b3771c6fafca28cd20a3cbb"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.23.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.23.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 chunkD7DCRST5_cjs = require('./chunk-D7DCRST5.cjs');
3
+ var chunk5WD6SB7R_cjs = require('./chunk-5WD6SB7R.cjs');
4
4
  var chunkMURBAIS4_cjs = require('./chunk-MURBAIS4.cjs');
5
5
  var chunkKILPUOJP_cjs = require('./chunk-KILPUOJP.cjs');
6
6
  var chunkDOXHU27E_cjs = require('./chunk-DOXHU27E.cjs');
@@ -3528,7 +3528,7 @@ var InterfaceListQuery = class extends ListQuery {
3528
3528
  }
3529
3529
  extractRelevantObjects(changes) {
3530
3530
  const matchesApiName = ([, object]) => {
3531
- return this.apiName in object[chunkD7DCRST5_cjs.ObjectDefRef].interfaceMap;
3531
+ return this.apiName in object[chunk5WD6SB7R_cjs.ObjectDefRef].interfaceMap;
3532
3532
  };
3533
3533
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
3534
3534
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
@@ -4139,8 +4139,8 @@ function stripRdpFields(value, rdpFields) {
4139
4139
  if (rdpFields.size === 0) {
4140
4140
  return value;
4141
4141
  }
4142
- const underlying = value[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4143
- const objectDef = value[chunkD7DCRST5_cjs.ObjectDefRef];
4142
+ const underlying = value[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4143
+ const objectDef = value[chunk5WD6SB7R_cjs.ObjectDefRef];
4144
4144
  const newProps = {
4145
4145
  $apiName: underlying.$apiName,
4146
4146
  $objectType: underlying.$objectType,
@@ -4153,7 +4153,7 @@ function stripRdpFields(value, rdpFields) {
4153
4153
  newProps[key] = underlying[key];
4154
4154
  }
4155
4155
  }
4156
- return chunkD7DCRST5_cjs.createOsdkObject(value[chunkD7DCRST5_cjs.ClientRef], objectDef, newProps);
4156
+ return chunk5WD6SB7R_cjs.createOsdkObject(value[chunk5WD6SB7R_cjs.ClientRef], objectDef, newProps);
4157
4157
  }
4158
4158
  function isSuperset(superset, subset) {
4159
4159
  for (const field of subset) {
@@ -4164,8 +4164,8 @@ function isSuperset(superset, subset) {
4164
4164
  return true;
4165
4165
  }
4166
4166
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4167
- const underlying = value[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4168
- const objectDef = value[chunkD7DCRST5_cjs.ObjectDefRef];
4167
+ const underlying = value[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4168
+ const objectDef = value[chunk5WD6SB7R_cjs.ObjectDefRef];
4169
4169
  const newProps = {
4170
4170
  $apiName: underlying.$apiName,
4171
4171
  $objectType: underlying.$objectType,
@@ -4181,12 +4181,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
4181
4181
  }
4182
4182
  }
4183
4183
  }
4184
- return chunkD7DCRST5_cjs.createOsdkObject(value[chunkD7DCRST5_cjs.ClientRef], objectDef, newProps);
4184
+ return chunk5WD6SB7R_cjs.createOsdkObject(value[chunk5WD6SB7R_cjs.ClientRef], objectDef, newProps);
4185
4185
  }
4186
4186
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
4187
- const sourceUnderlying = sourceValue[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4188
- const existingUnderlying = existingValue[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4189
- const objectDef = sourceValue[chunkD7DCRST5_cjs.ObjectDefRef];
4187
+ const sourceUnderlying = sourceValue[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4188
+ const existingUnderlying = existingValue[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4189
+ const objectDef = sourceValue[chunk5WD6SB7R_cjs.ObjectDefRef];
4190
4190
  const newProps = {
4191
4191
  $apiName: sourceUnderlying.$apiName,
4192
4192
  $objectType: sourceUnderlying.$objectType,
@@ -4204,7 +4204,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
4204
4204
  newProps[key] = sourceUnderlying[key];
4205
4205
  }
4206
4206
  }
4207
- return chunkD7DCRST5_cjs.createOsdkObject(sourceValue[chunkD7DCRST5_cjs.ClientRef], objectDef, newProps);
4207
+ return chunk5WD6SB7R_cjs.createOsdkObject(sourceValue[chunk5WD6SB7R_cjs.ClientRef], objectDef, newProps);
4208
4208
  }
4209
4209
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
4210
4210
  if (targetRdpFields.size === 0) {
@@ -4216,8 +4216,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4216
4216
  }
4217
4217
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
4218
4218
  }
4219
- const sourceUnderlying = sourceValue[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4220
- const objectDef = sourceValue[chunkD7DCRST5_cjs.ObjectDefRef];
4219
+ const sourceUnderlying = sourceValue[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4220
+ const objectDef = sourceValue[chunk5WD6SB7R_cjs.ObjectDefRef];
4221
4221
  const newProps = {
4222
4222
  $apiName: sourceUnderlying.$apiName,
4223
4223
  $objectType: sourceUnderlying.$objectType,
@@ -4231,7 +4231,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4231
4231
  }
4232
4232
  }
4233
4233
  if (targetCurrentValue) {
4234
- const targetUnderlying = targetCurrentValue[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4234
+ const targetUnderlying = targetCurrentValue[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4235
4235
  for (const field of targetRdpFields) {
4236
4236
  if (field in targetUnderlying) {
4237
4237
  if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
@@ -4240,7 +4240,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
4240
4240
  }
4241
4241
  }
4242
4242
  }
4243
- return chunkD7DCRST5_cjs.createOsdkObject(sourceValue[chunkD7DCRST5_cjs.ClientRef], objectDef, newProps);
4243
+ return chunk5WD6SB7R_cjs.createOsdkObject(sourceValue[chunk5WD6SB7R_cjs.ClientRef], objectDef, newProps);
4244
4244
  }
4245
4245
 
4246
4246
  // src/observable/internal/object/ObjectCacheKeyRegistry.ts
@@ -4711,7 +4711,7 @@ var ObjectsHelper = class extends AbstractHelper {
4711
4711
  if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
4712
4712
  const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
4713
4713
  if (expectedRdpFields.size > 0) {
4714
- const underlying = valueToWrite[chunkD7DCRST5_cjs.UnderlyingOsdkObject];
4714
+ const underlying = valueToWrite[chunk5WD6SB7R_cjs.UnderlyingOsdkObject];
4715
4715
  const actualRdpFields = /* @__PURE__ */ new Set();
4716
4716
  for (const field of expectedRdpFields) {
4717
4717
  if (underlying && field in underlying) {
@@ -5886,10 +5886,10 @@ var Store = class {
5886
5886
 
5887
5887
  // src/observable/ObservableClient.ts
5888
5888
  function createObservableClient(client, extraUserAgents) {
5889
- const tweakedClient = chunkD7DCRST5_cjs.createClientFromContext({
5889
+ const tweakedClient = chunk5WD6SB7R_cjs.createClientFromContext({
5890
5890
  ...client[chunkKILPUOJP_cjs.additionalContext],
5891
5891
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkKILPUOJP_cjs.additionalContext].fetch, (headers) => {
5892
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkD7DCRST5_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5892
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunk5WD6SB7R_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5893
5893
  return headers;
5894
5894
  })
5895
5895
  });
@@ -5897,5 +5897,5 @@ function createObservableClient(client, extraUserAgents) {
5897
5897
  }
5898
5898
 
5899
5899
  exports.createObservableClient = createObservableClient;
5900
- //# sourceMappingURL=chunk-UQ7EVS3A.cjs.map
5901
- //# sourceMappingURL=chunk-UQ7EVS3A.cjs.map
5900
+ //# sourceMappingURL=chunk-3DMI6Z4B.cjs.map
5901
+ //# sourceMappingURL=chunk-3DMI6Z4B.cjs.map