@osdk/client 2.52.0-main-d349c0b902db45b062a48637949eb27953953cbf → 2.52.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 +9 -6
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-FWBTXQSA.cjs → chunk-AA2XCKNU.cjs} +24 -24
- package/build/cjs/{chunk-FWBTXQSA.cjs.map → chunk-AA2XCKNU.cjs.map} +1 -1
- package/build/cjs/{chunk-TTDSRHN7.cjs → chunk-FMLMNWRU.cjs} +6 -6
- package/build/cjs/{chunk-TTDSRHN7.cjs.map → chunk-FMLMNWRU.cjs.map} +1 -1
- package/build/cjs/{chunk-M6VV2T2V.cjs → chunk-NSFHMV6E.cjs} +4 -4
- package/build/cjs/chunk-NSFHMV6E.cjs.map +1 -0
- package/build/cjs/index.cjs +4 -4
- package/build/cjs/public/experimental.cjs +6 -6
- package/build/cjs/public/observable.cjs +3 -3
- package/build/cjs/public/unstable-do-not-use.cjs +9 -9
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +8 -8
- package/build/cjs/chunk-M6VV2T2V.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
-
## 2.52.0
|
|
3
|
+
## 2.52.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- bf4580a: Add annotate, contrast, encrypt, and decrypt image operations to the experimental media transformation surface, closing parity with the platform image-operation set.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
8
11
|
- Updated dependencies [5d92381]
|
|
9
12
|
- Updated dependencies [bf4580a]
|
|
10
13
|
- Updated dependencies [9d0b21e]
|
|
11
|
-
- @osdk/api@2.52.0
|
|
12
|
-
- @osdk/generator-converters@2.52.0
|
|
13
|
-
- @osdk/shared.test@2.
|
|
14
|
-
- @osdk/client.unstable@2.52.0
|
|
14
|
+
- @osdk/api@2.52.0
|
|
15
|
+
- @osdk/generator-converters@2.52.0
|
|
16
|
+
- @osdk/shared.test@2.35.0
|
|
17
|
+
- @osdk/client.unstable@2.52.0
|
|
15
18
|
|
|
16
19
|
## 2.51.0
|
|
17
20
|
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.52.0
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.52.0
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.52.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.52.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 = `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 = `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,GAAG,oCAAuD","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNSFHMV6E_cjs = require('./chunk-NSFHMV6E.cjs');
|
|
4
4
|
var chunkPIWGMK3H_cjs = require('./chunk-PIWGMK3H.cjs');
|
|
5
5
|
var chunkECYOCUVS_cjs = require('./chunk-ECYOCUVS.cjs');
|
|
6
6
|
var chunkF7SYRCG4_cjs = require('./chunk-F7SYRCG4.cjs');
|
|
@@ -2210,11 +2210,11 @@ function isStringEncodedNumericType(type) {
|
|
|
2210
2210
|
return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
|
|
2211
2211
|
}
|
|
2212
2212
|
function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
|
|
2213
|
-
const objectType = holder?.[
|
|
2213
|
+
const objectType = holder?.[chunkNSFHMV6E_cjs.ObjectDefRef]?.properties?.[key]?.type;
|
|
2214
2214
|
if (typeof objectType === "string") {
|
|
2215
2215
|
return objectType;
|
|
2216
2216
|
}
|
|
2217
|
-
const interfaceType = resolveInterfacePropertyType(holder?.[
|
|
2217
|
+
const interfaceType = resolveInterfacePropertyType(holder?.[chunkNSFHMV6E_cjs.InterfaceDefRef], key);
|
|
2218
2218
|
if (typeof interfaceType === "string") {
|
|
2219
2219
|
return interfaceType;
|
|
2220
2220
|
}
|
|
@@ -2308,8 +2308,8 @@ function stripRdpFields(value, rdpFields) {
|
|
|
2308
2308
|
if (rdpFields.size === 0) {
|
|
2309
2309
|
return value;
|
|
2310
2310
|
}
|
|
2311
|
-
const underlying = value[
|
|
2312
|
-
const objectDef = requireObjectDef(value[
|
|
2311
|
+
const underlying = value[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2312
|
+
const objectDef = requireObjectDef(value[chunkNSFHMV6E_cjs.ObjectDefRef], underlying);
|
|
2313
2313
|
const newProps = {
|
|
2314
2314
|
$apiName: underlying.$apiName,
|
|
2315
2315
|
$objectType: underlying.$objectType,
|
|
@@ -2322,7 +2322,7 @@ function stripRdpFields(value, rdpFields) {
|
|
|
2322
2322
|
newProps[key] = underlying[key];
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
|
-
return
|
|
2325
|
+
return chunkNSFHMV6E_cjs.createOsdkObject(value[chunkNSFHMV6E_cjs.ClientRef], objectDef, newProps);
|
|
2326
2326
|
}
|
|
2327
2327
|
function isSuperset(superset, subset) {
|
|
2328
2328
|
for (const field of subset) {
|
|
@@ -2333,8 +2333,8 @@ function isSuperset(superset, subset) {
|
|
|
2333
2333
|
return true;
|
|
2334
2334
|
}
|
|
2335
2335
|
function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
2336
|
-
const underlying = value[
|
|
2337
|
-
const objectDef = requireObjectDef(value[
|
|
2336
|
+
const underlying = value[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2337
|
+
const objectDef = requireObjectDef(value[chunkNSFHMV6E_cjs.ObjectDefRef], underlying);
|
|
2338
2338
|
const newProps = {
|
|
2339
2339
|
$apiName: underlying.$apiName,
|
|
2340
2340
|
$objectType: underlying.$objectType,
|
|
@@ -2351,12 +2351,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
|
2351
2351
|
newProps[key] = underlying[key];
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
return
|
|
2354
|
+
return chunkNSFHMV6E_cjs.createOsdkObject(value[chunkNSFHMV6E_cjs.ClientRef], objectDef, newProps);
|
|
2355
2355
|
}
|
|
2356
2356
|
function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
|
|
2357
|
-
const sourceUnderlying = sourceValue[
|
|
2358
|
-
const existingUnderlying = existingValue[
|
|
2359
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2357
|
+
const sourceUnderlying = sourceValue[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2358
|
+
const existingUnderlying = existingValue[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2359
|
+
const objectDef = requireObjectDef(sourceValue[chunkNSFHMV6E_cjs.ObjectDefRef], sourceUnderlying);
|
|
2360
2360
|
const newProps = {
|
|
2361
2361
|
$apiName: sourceUnderlying.$apiName,
|
|
2362
2362
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -2376,7 +2376,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
|
|
|
2376
2376
|
newProps[key] = sourceUnderlying[key];
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
return
|
|
2379
|
+
return chunkNSFHMV6E_cjs.createOsdkObject(sourceValue[chunkNSFHMV6E_cjs.ClientRef], objectDef, newProps);
|
|
2380
2380
|
}
|
|
2381
2381
|
function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
|
|
2382
2382
|
if (targetRdpFields.size === 0) {
|
|
@@ -2388,8 +2388,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
2388
2388
|
}
|
|
2389
2389
|
return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
|
|
2390
2390
|
}
|
|
2391
|
-
const sourceUnderlying = sourceValue[
|
|
2392
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2391
|
+
const sourceUnderlying = sourceValue[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2392
|
+
const objectDef = requireObjectDef(sourceValue[chunkNSFHMV6E_cjs.ObjectDefRef], sourceUnderlying);
|
|
2393
2393
|
const newProps = {
|
|
2394
2394
|
$apiName: sourceUnderlying.$apiName,
|
|
2395
2395
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -2408,14 +2408,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
2410
|
if (targetCurrentValue) {
|
|
2411
|
-
const targetUnderlying = targetCurrentValue[
|
|
2411
|
+
const targetUnderlying = targetCurrentValue[chunkNSFHMV6E_cjs.UnderlyingOsdkObject];
|
|
2412
2412
|
for (const field of targetRdpFields) {
|
|
2413
2413
|
if (!sourceRdpFields.has(field) && field in targetUnderlying) {
|
|
2414
2414
|
newProps[field] = targetUnderlying[field];
|
|
2415
2415
|
}
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
return
|
|
2418
|
+
return chunkNSFHMV6E_cjs.createOsdkObject(sourceValue[chunkNSFHMV6E_cjs.ClientRef], objectDef, newProps);
|
|
2419
2419
|
}
|
|
2420
2420
|
function createCollectionConnectable(subject, subjects, createPayload) {
|
|
2421
2421
|
return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
|
|
@@ -3801,7 +3801,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
extractRelevantObjects(changes) {
|
|
3803
3803
|
const matchesApiName = ([, object]) => {
|
|
3804
|
-
return this.apiName in object[
|
|
3804
|
+
return this.apiName in object[chunkNSFHMV6E_cjs.ObjectDefRef].interfaceMap;
|
|
3805
3805
|
};
|
|
3806
3806
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
3807
3807
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
@@ -4475,7 +4475,7 @@ var ObjectCacheKeyRegistry = class {
|
|
|
4475
4475
|
|
|
4476
4476
|
// src/object/convertWireToOsdkObjects/InterfaceHolder.ts
|
|
4477
4477
|
function isInterfaceHolder(v) {
|
|
4478
|
-
return typeof v === "object" && v != null &&
|
|
4478
|
+
return typeof v === "object" && v != null && chunkNSFHMV6E_cjs.InterfaceDefRef in v;
|
|
4479
4479
|
}
|
|
4480
4480
|
|
|
4481
4481
|
// ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
|
|
@@ -4835,7 +4835,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4835
4835
|
storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
|
|
4836
4836
|
const holders = values;
|
|
4837
4837
|
return holders.map((v) => {
|
|
4838
|
-
const concreteHolder = isInterfaceHolder(v) ? v[
|
|
4838
|
+
const concreteHolder = isInterfaceHolder(v) ? v[chunkNSFHMV6E_cjs.UnderlyingOsdkObject] : v;
|
|
4839
4839
|
return this.getQuery({
|
|
4840
4840
|
apiName: v.$objectType ?? v.$apiName,
|
|
4841
4841
|
pk: v.$primaryKey,
|
|
@@ -6067,10 +6067,10 @@ var Store = class {
|
|
|
6067
6067
|
|
|
6068
6068
|
// src/observable/ObservableClient.ts
|
|
6069
6069
|
function createObservableClient(client, extraUserAgents, options) {
|
|
6070
|
-
const tweakedClient =
|
|
6070
|
+
const tweakedClient = chunkNSFHMV6E_cjs.createClientFromContext({
|
|
6071
6071
|
...client[chunkF7SYRCG4_cjs.additionalContext],
|
|
6072
6072
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkF7SYRCG4_cjs.additionalContext].fetch, (headers) => {
|
|
6073
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
6073
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkNSFHMV6E_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
|
|
6074
6074
|
return headers;
|
|
6075
6075
|
})
|
|
6076
6076
|
});
|
|
@@ -6078,5 +6078,5 @@ function createObservableClient(client, extraUserAgents, options) {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
|
|
6080
6080
|
exports.createObservableClient = createObservableClient;
|
|
6081
|
-
//# sourceMappingURL=chunk-
|
|
6082
|
-
//# sourceMappingURL=chunk-
|
|
6081
|
+
//# sourceMappingURL=chunk-AA2XCKNU.cjs.map
|
|
6082
|
+
//# sourceMappingURL=chunk-AA2XCKNU.cjs.map
|