@osdk/client 2.41.0-main-d24cc61b1e7fde7722d8229ed2b6821f5ce1bf8a → 2.41.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 +6 -6
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-T6NQXSJY.cjs → chunk-FDV6B7WU.cjs} +24 -24
- package/build/cjs/{chunk-T6NQXSJY.cjs.map → chunk-FDV6B7WU.cjs.map} +1 -1
- package/build/cjs/{chunk-CHIEZR53.cjs → chunk-YBWIE5CJ.cjs} +4 -4
- package/build/cjs/chunk-YBWIE5CJ.cjs.map +1 -0
- package/build/cjs/index.cjs +4 -4
- package/build/cjs/public/experimental.cjs +3 -3
- package/build/cjs/public/observable.cjs +3 -3
- package/build/cjs/public/unstable-do-not-use.cjs +8 -8
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +10 -10
- package/build/cjs/chunk-CHIEZR53.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
-
## 2.41.0
|
|
3
|
+
## 2.41.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- 9b150d7: Add nullity check for decrypt
|
|
7
8
|
- 15a35f2: Add CipherText support for codegen and implement decryption interface
|
|
8
9
|
|
|
9
10
|
### Patch Changes
|
|
10
11
|
|
|
11
|
-
- 9b150d7: Add nullity check for decrypt
|
|
12
12
|
- Updated dependencies [9b150d7]
|
|
13
13
|
- Updated dependencies [15a35f2]
|
|
14
|
-
- @osdk/api@2.41.0
|
|
15
|
-
- @osdk/generator-converters@2.41.0
|
|
16
|
-
- @osdk/shared.test@2.30.0
|
|
17
|
-
- @osdk/client.unstable@2.41.0
|
|
14
|
+
- @osdk/api@2.41.0
|
|
15
|
+
- @osdk/generator-converters@2.41.0
|
|
16
|
+
- @osdk/shared.test@2.30.0
|
|
17
|
+
- @osdk/client.unstable@2.41.0
|
|
18
18
|
|
|
19
19
|
## 2.40.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.41.0
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.41.0
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.41.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.41.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,
|
|
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
|
|
3
|
+
var chunkYBWIE5CJ_cjs = require('./chunk-YBWIE5CJ.cjs');
|
|
4
4
|
var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
|
|
5
5
|
var chunkVUQAQMDE_cjs = require('./chunk-VUQAQMDE.cjs');
|
|
6
6
|
var chunk6BO5YHRX_cjs = require('./chunk-6BO5YHRX.cjs');
|
|
@@ -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?.[
|
|
2212
|
+
const objectType = holder?.[chunkYBWIE5CJ_cjs.ObjectDefRef]?.properties?.[key]?.type;
|
|
2213
2213
|
if (typeof objectType === "string") {
|
|
2214
2214
|
return objectType;
|
|
2215
2215
|
}
|
|
2216
|
-
const interfaceType = resolveInterfacePropertyType(holder?.[
|
|
2216
|
+
const interfaceType = resolveInterfacePropertyType(holder?.[chunkYBWIE5CJ_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[
|
|
2311
|
-
const objectDef = requireObjectDef(value[
|
|
2310
|
+
const underlying = value[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
|
|
2311
|
+
const objectDef = requireObjectDef(value[chunkYBWIE5CJ_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
|
|
2324
|
+
return chunkYBWIE5CJ_cjs.createOsdkObject(value[chunkYBWIE5CJ_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[
|
|
2336
|
-
const objectDef = requireObjectDef(value[
|
|
2335
|
+
const underlying = value[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
|
|
2336
|
+
const objectDef = requireObjectDef(value[chunkYBWIE5CJ_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
|
|
2353
|
+
return chunkYBWIE5CJ_cjs.createOsdkObject(value[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
|
|
2354
2354
|
}
|
|
2355
2355
|
function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
|
|
2356
|
-
const sourceUnderlying = sourceValue[
|
|
2357
|
-
const existingUnderlying = existingValue[
|
|
2358
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2356
|
+
const sourceUnderlying = sourceValue[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
|
|
2357
|
+
const existingUnderlying = existingValue[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
|
|
2358
|
+
const objectDef = requireObjectDef(sourceValue[chunkYBWIE5CJ_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
|
|
2378
|
+
return chunkYBWIE5CJ_cjs.createOsdkObject(sourceValue[chunkYBWIE5CJ_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[
|
|
2391
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2390
|
+
const sourceUnderlying = sourceValue[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject];
|
|
2391
|
+
const objectDef = requireObjectDef(sourceValue[chunkYBWIE5CJ_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[
|
|
2410
|
+
const targetUnderlying = targetCurrentValue[chunkYBWIE5CJ_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
|
|
2417
|
+
return chunkYBWIE5CJ_cjs.createOsdkObject(sourceValue[chunkYBWIE5CJ_cjs.ClientRef], objectDef, newProps);
|
|
2418
2418
|
}
|
|
2419
2419
|
function createCollectionConnectable(subject, subjects, createPayload) {
|
|
2420
2420
|
return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
|
|
@@ -3795,7 +3795,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3795
3795
|
}
|
|
3796
3796
|
extractRelevantObjects(changes) {
|
|
3797
3797
|
const matchesApiName = ([, object]) => {
|
|
3798
|
-
return this.apiName in object[
|
|
3798
|
+
return this.apiName in object[chunkYBWIE5CJ_cjs.ObjectDefRef].interfaceMap;
|
|
3799
3799
|
};
|
|
3800
3800
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
3801
3801
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
@@ -4469,7 +4469,7 @@ var ObjectCacheKeyRegistry = class {
|
|
|
4469
4469
|
|
|
4470
4470
|
// src/object/convertWireToOsdkObjects/InterfaceHolder.ts
|
|
4471
4471
|
function isInterfaceHolder(v) {
|
|
4472
|
-
return typeof v === "object" && v != null &&
|
|
4472
|
+
return typeof v === "object" && v != null && chunkYBWIE5CJ_cjs.InterfaceDefRef in v;
|
|
4473
4473
|
}
|
|
4474
4474
|
|
|
4475
4475
|
// ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
|
|
@@ -4829,7 +4829,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4829
4829
|
storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
|
|
4830
4830
|
const holders = values;
|
|
4831
4831
|
return holders.map((v) => {
|
|
4832
|
-
const concreteHolder = isInterfaceHolder(v) ? v[
|
|
4832
|
+
const concreteHolder = isInterfaceHolder(v) ? v[chunkYBWIE5CJ_cjs.UnderlyingOsdkObject] : v;
|
|
4833
4833
|
return this.getQuery({
|
|
4834
4834
|
apiName: v.$objectType ?? v.$apiName,
|
|
4835
4835
|
pk: v.$primaryKey,
|
|
@@ -6051,10 +6051,10 @@ var Store = class {
|
|
|
6051
6051
|
|
|
6052
6052
|
// src/observable/ObservableClient.ts
|
|
6053
6053
|
function createObservableClient(client, extraUserAgents, options) {
|
|
6054
|
-
const tweakedClient =
|
|
6054
|
+
const tweakedClient = chunkYBWIE5CJ_cjs.createClientFromContext({
|
|
6055
6055
|
...client[chunk6BO5YHRX_cjs.additionalContext],
|
|
6056
6056
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk6BO5YHRX_cjs.additionalContext].fetch, (headers) => {
|
|
6057
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
6057
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkYBWIE5CJ_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
|
|
6058
6058
|
return headers;
|
|
6059
6059
|
})
|
|
6060
6060
|
});
|
|
@@ -6062,5 +6062,5 @@ function createObservableClient(client, extraUserAgents, options) {
|
|
|
6062
6062
|
}
|
|
6063
6063
|
|
|
6064
6064
|
exports.createObservableClient = createObservableClient;
|
|
6065
|
-
//# sourceMappingURL=chunk-
|
|
6066
|
-
//# sourceMappingURL=chunk-
|
|
6065
|
+
//# sourceMappingURL=chunk-FDV6B7WU.cjs.map
|
|
6066
|
+
//# sourceMappingURL=chunk-FDV6B7WU.cjs.map
|