@osdk/client 2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d → 2.31.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.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d
3
+ ## 2.31.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -11,10 +11,10 @@
11
11
  ### Patch Changes
12
12
 
13
13
  - Updated dependencies [57cbc6d]
14
- - @osdk/api@2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d
15
- - @osdk/client.unstable@2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d
16
- - @osdk/generator-converters@2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d
17
- - @osdk/shared.test@2.22.1-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d
14
+ - @osdk/api@2.31.0
15
+ - @osdk/client.unstable@2.31.0
16
+ - @osdk/generator-converters@2.31.0
17
+ - @osdk/shared.test@2.23.0
18
18
 
19
19
  ## 2.30.0
20
20
 
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.31.0-main-4fcf89e992c7652902cba750ca7ec8148ac7ab1d"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.31.0"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.31.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 chunkENCUSZDP_cjs = require('./chunk-ENCUSZDP.cjs');
3
+ var chunkNEHSDW7Z_cjs = require('./chunk-NEHSDW7Z.cjs');
4
4
  var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
5
5
  var chunkJX5KXEAF_cjs = require('./chunk-JX5KXEAF.cjs');
6
6
  var chunk3N4RHZYX_cjs = require('./chunk-3N4RHZYX.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[chunkENCUSZDP_cjs.ObjectDefRef].interfaceMap;
3574
+ return this.apiName in object[chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4168
- const objectDef = requireObjectDef(value[chunkENCUSZDP_cjs.ObjectDefRef], underlying);
4167
+ const underlying = value[chunkNEHSDW7Z_cjs.UnderlyingOsdkObject];
4168
+ const objectDef = requireObjectDef(value[chunkNEHSDW7Z_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 chunkENCUSZDP_cjs.createOsdkObject(value[chunkENCUSZDP_cjs.ClientRef], objectDef, newProps);
4181
+ return chunkNEHSDW7Z_cjs.createOsdkObject(value[chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4193
- const objectDef = requireObjectDef(value[chunkENCUSZDP_cjs.ObjectDefRef], underlying);
4192
+ const underlying = value[chunkNEHSDW7Z_cjs.UnderlyingOsdkObject];
4193
+ const objectDef = requireObjectDef(value[chunkNEHSDW7Z_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 chunkENCUSZDP_cjs.createOsdkObject(value[chunkENCUSZDP_cjs.ClientRef], objectDef, newProps);
4209
+ return chunkNEHSDW7Z_cjs.createOsdkObject(value[chunkNEHSDW7Z_cjs.ClientRef], objectDef, newProps);
4210
4210
  }
4211
4211
  function mergeSelectFields(sourceValue, selectFields, existingValue) {
4212
- const sourceUnderlying = sourceValue[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4213
- const existingUnderlying = existingValue[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4214
- const objectDef = requireObjectDef(sourceValue[chunkENCUSZDP_cjs.ObjectDefRef], sourceUnderlying);
4212
+ const sourceUnderlying = sourceValue[chunkNEHSDW7Z_cjs.UnderlyingOsdkObject];
4213
+ const existingUnderlying = existingValue[chunkNEHSDW7Z_cjs.UnderlyingOsdkObject];
4214
+ const objectDef = requireObjectDef(sourceValue[chunkNEHSDW7Z_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 chunkENCUSZDP_cjs.createOsdkObject(sourceValue[chunkENCUSZDP_cjs.ClientRef], objectDef, newProps);
4232
+ return chunkNEHSDW7Z_cjs.createOsdkObject(sourceValue[chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4245
- const objectDef = requireObjectDef(sourceValue[chunkENCUSZDP_cjs.ObjectDefRef], sourceUnderlying);
4244
+ const sourceUnderlying = sourceValue[chunkNEHSDW7Z_cjs.UnderlyingOsdkObject];
4245
+ const objectDef = requireObjectDef(sourceValue[chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4259
+ const targetUnderlying = targetCurrentValue[chunkNEHSDW7Z_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 chunkENCUSZDP_cjs.createOsdkObject(sourceValue[chunkENCUSZDP_cjs.ClientRef], objectDef, newProps);
4268
+ return chunkNEHSDW7Z_cjs.createOsdkObject(sourceValue[chunkNEHSDW7Z_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 && chunkENCUSZDP_cjs.InterfaceDefRef in v;
4369
+ return typeof v === "object" && v != null && chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject] : v;
4720
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkNEHSDW7Z_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[chunkENCUSZDP_cjs.UnderlyingOsdkObject];
4748
+ const underlying = valueToWrite[chunkNEHSDW7Z_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 = chunkENCUSZDP_cjs.createClientFromContext({
5923
+ const tweakedClient = chunkNEHSDW7Z_cjs.createClientFromContext({
5924
5924
  ...client[chunk3N4RHZYX_cjs.additionalContext],
5925
5925
  fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk3N4RHZYX_cjs.additionalContext].fetch, (headers) => {
5926
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkENCUSZDP_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
5926
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkNEHSDW7Z_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-2RB5I6ZN.cjs.map
5935
- //# sourceMappingURL=chunk-2RB5I6ZN.cjs.map
5934
+ //# sourceMappingURL=chunk-ESQLPI5C.cjs.map
5935
+ //# sourceMappingURL=chunk-ESQLPI5C.cjs.map