@osdk/client 2.90.0-main-1fd4023e9fe0ff3fd586e0c565dbb52170e2a541 → 2.90.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 +5 -15
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-SSR4267A.cjs → chunk-5IBQZZHO.cjs} +6 -6
- package/build/cjs/{chunk-SSR4267A.cjs.map → chunk-5IBQZZHO.cjs.map} +1 -1
- package/build/cjs/{chunk-LBJ2X5WM.cjs → chunk-6FNJVDZ2.cjs} +27 -27
- package/build/cjs/{chunk-LBJ2X5WM.cjs.map → chunk-6FNJVDZ2.cjs.map} +1 -1
- package/build/cjs/{chunk-UCUWZIMZ.cjs → chunk-FLHC6PBW.cjs} +4 -4
- package/build/cjs/chunk-FLHC6PBW.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-UCUWZIMZ.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
-
## 2.90.0
|
|
3
|
+
## 2.90.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,21 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- 5fade0a: Keep observable lists loading until their requested derived-property cache entries are available, so a plain query cannot cause useOsdkObjects to return undefined entries or finish loading before the RDP response arrives.
|
|
12
|
-
- a37fdfc: Batch cached object refreshes with the same runtime-derived properties when invalidating an object type, reducing per-object requests.
|
|
13
|
-
- 5d80e0f: Follow all pages and resolve batched objects as each page arrives, including RDP and interface object loads.
|
|
14
|
-
- 0bcfdc9: Fix observed object sets with intersect, subtract, or union options using only their where clause for cache updates. These sets now refresh from the server when related objects change in the cache, preserving the complete set operation.
|
|
15
|
-
- f1a74a8: Apply linked-object filters and expose automatic pagination through useLinks.
|
|
16
|
-
|
|
17
|
-
Preserve filters on nested operands in shape link set operations.
|
|
18
|
-
|
|
19
|
-
- 2e21fee: Remove the unused collection update path and use the sorting strategy directly in list updates.
|
|
20
|
-
- a37fdfc: Reuse matching list refreshes during object type and full-cache invalidation. Wait briefly for list members, including pages being refilled, and batch remaining object loads when rows are absent or the list refresh fails or takes too long.
|
|
21
11
|
- Updated dependencies [b8cfd7c]
|
|
22
|
-
- @osdk/api@2.90.0
|
|
23
|
-
- @osdk/generator-converters@2.90.0
|
|
24
|
-
- @osdk/shared.test@2.
|
|
25
|
-
- @osdk/client.unstable@2.90.0
|
|
12
|
+
- @osdk/api@2.90.0
|
|
13
|
+
- @osdk/generator-converters@2.90.0
|
|
14
|
+
- @osdk/shared.test@2.62.0
|
|
15
|
+
- @osdk/client.unstable@2.90.0
|
|
26
16
|
|
|
27
17
|
## 2.89.0
|
|
28
18
|
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.90.0
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.90.0
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.90.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.90.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 chunkFLHC6PBW_cjs = require('./chunk-FLHC6PBW.cjs');
|
|
4
4
|
var chunkG3NSPKBQ_cjs = require('./chunk-G3NSPKBQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/scenarios/createScenario.ts
|
|
@@ -19,18 +19,18 @@ async function createScenario(client, options) {
|
|
|
19
19
|
if (options?.expireAfter != null) {
|
|
20
20
|
request.expireAfter = options.expireAfter.toISOString();
|
|
21
21
|
}
|
|
22
|
-
const response = await
|
|
22
|
+
const response = await chunkFLHC6PBW_cjs.OntologyScenario_exports.createScenario(ctx, await ctx.ontologyRid, request, {
|
|
23
23
|
preview: true
|
|
24
24
|
});
|
|
25
|
-
return
|
|
25
|
+
return chunkFLHC6PBW_cjs.buildScenarioClient(client, response.scenarioRid);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// src/scenarios/withScenario.ts
|
|
29
29
|
function withScenario(client, scenarioRid) {
|
|
30
|
-
return
|
|
30
|
+
return chunkFLHC6PBW_cjs.buildScenarioClient(client, scenarioRid);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
exports.createScenario = createScenario;
|
|
34
34
|
exports.withScenario = withScenario;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-5IBQZZHO.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-5IBQZZHO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/scenarios/createScenario.ts","../../src/scenarios/withScenario.ts"],"names":["additionalContext","OntologyScenario_exports","buildScenarioClient"],"mappings":";;;;;;AAyCA,eAAsB,cAAA,CAAe,QAAQ,OAAA,EAAS;AACpD,EAAA,MAAM,GAAA,GAAM,OAAOA,mCAAiB,CAAA;AACpC,EAAA,IAAI,GAAA,CAAI,eAAe,IAAA,EAAM;AAC3B,IAAA,MAAM,IAAI,MAAM,iGAAiG,CAAA;AAAA,EACnH;AACA,EAAA,MAAM,UAAU,EAAC;AACjB,EAAA,IAAI,GAAA,CAAI,UAAU,IAAA,EAAM;AACtB,IAAA,OAAA,CAAQ,IAAA,GAAO;AAAA,MACb,IAAA,EAAM,QAAA;AAAA,MACN,QAAQ,GAAA,CAAI;AAAA,KACd;AAAA,EACF;AACA,EAAA,IAAI,OAAA,EAAS,eAAe,IAAA,EAAM;AAChC,IAAA,OAAA,CAAQ,WAAA,GAAc,OAAA,CAAQ,WAAA,CAAY,WAAA,EAAY;AAAA,EACxD;AACA,EAAA,MAAM,QAAA,GAAW,MAAMC,0CAAA,CAAkB,cAAA,CAAe,KAAK,MAAM,GAAA,CAAI,aAAa,OAAA,EAAS;AAAA,IAC3F,OAAA,EAAS;AAAA,GACV,CAAA;AACD,EAAA,OAAOC,qCAAA,CAAoB,MAAA,EAAQ,QAAA,CAAS,WAAW,CAAA;AACzD;;;ACrBO,SAAS,YAAA,CAAa,QAAQ,WAAA,EAAa;AAChD,EAAA,OAAOA,qCAAA,CAAoB,QAAQ,WAAW,CAAA;AAChD","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/scenarios/createScenario.ts","../../src/scenarios/withScenario.ts"],"names":["additionalContext","OntologyScenario_exports","buildScenarioClient"],"mappings":";;;;;;AAyCA,eAAsB,cAAA,CAAe,QAAQ,OAAA,EAAS;AACpD,EAAA,MAAM,GAAA,GAAM,OAAOA,mCAAiB,CAAA;AACpC,EAAA,IAAI,GAAA,CAAI,eAAe,IAAA,EAAM;AAC3B,IAAA,MAAM,IAAI,MAAM,iGAAiG,CAAA;AAAA,EACnH;AACA,EAAA,MAAM,UAAU,EAAC;AACjB,EAAA,IAAI,GAAA,CAAI,UAAU,IAAA,EAAM;AACtB,IAAA,OAAA,CAAQ,IAAA,GAAO;AAAA,MACb,IAAA,EAAM,QAAA;AAAA,MACN,QAAQ,GAAA,CAAI;AAAA,KACd;AAAA,EACF;AACA,EAAA,IAAI,OAAA,EAAS,eAAe,IAAA,EAAM;AAChC,IAAA,OAAA,CAAQ,WAAA,GAAc,OAAA,CAAQ,WAAA,CAAY,WAAA,EAAY;AAAA,EACxD;AACA,EAAA,MAAM,QAAA,GAAW,MAAMC,0CAAA,CAAkB,cAAA,CAAe,KAAK,MAAM,GAAA,CAAI,aAAa,OAAA,EAAS;AAAA,IAC3F,OAAA,EAAS;AAAA,GACV,CAAA;AACD,EAAA,OAAOC,qCAAA,CAAoB,MAAA,EAAQ,QAAA,CAAS,WAAW,CAAA;AACzD;;;ACrBO,SAAS,YAAA,CAAa,QAAQ,WAAA,EAAa;AAChD,EAAA,OAAOA,qCAAA,CAAoB,QAAQ,WAAW,CAAA;AAChD","file":"chunk-5IBQZZHO.cjs","sourcesContent":["/*\n * Copyright 2026 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\nimport { OntologyScenarios } from \"@osdk/foundry.ontologies\";\nimport { additionalContext } from \"../Client.js\";\nimport { buildScenarioClient } from \"./ScenarioClient.js\";\n\n/**\n * Mint a fresh ontology scenario and return a client scoped to it.\n *\n * @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)\n * from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,\n * the transaction is ignored (a warning is logged) and the client is scoped to the new scenario. When the base\n * client has a branch set, the newly minted scenario uses that branch as its base.\n * @param options - Optional settings for the new scenario.\n * @returns a {@link EXPERIMENTAL_ScenarioClient} bound to the freshly minted scenario RID.\n *\n * @beta This is an experimental, unstable feature subject to change.\n *\n * @example\n * ```ts\n * import { createScenario } from \"@osdk/client/unstable-do-not-use\";\n *\n * const expireAfter = new Date(Date.now() + 60 * 60 * 1000);\n * const scenario = await createScenario(client, { expireAfter });\n * const scenarioRid = scenario.getScenarioReference();\n * ```\n */\nexport async function createScenario(client, options) {\n const ctx = client[additionalContext];\n if (ctx.scenarioRid != null) {\n throw new Error(\"createScenario: the supplied client already has an active scenario. Scenarios cannot be nested.\");\n }\n const request = {};\n if (ctx.branch != null) {\n request.base = {\n type: \"branch\",\n branch: ctx.branch\n };\n }\n if (options?.expireAfter != null) {\n request.expireAfter = options.expireAfter.toISOString();\n }\n const response = await OntologyScenarios.createScenario(ctx, await ctx.ontologyRid, request, {\n preview: true\n });\n return buildScenarioClient(client, response.scenarioRid);\n}","/*\n * Copyright 2026 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\nimport { buildScenarioClient } from \"./ScenarioClient.js\";\n\n/**\n * Attach to an existing ontology scenario. Synchronous — no network call is made. The returned client scopes all\n * subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.\n *\n * @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)\n * from. Throws at runtime if the client is already scoped to a scenario. If the client has an active transaction,\n * the transaction is ignored (a warning is logged) and the client is scoped to the scenario.\n * @param scenarioRid - The RID of the scenario to attach to.\n * @returns a {@link EXPERIMENTAL_ScenarioClient} bound to `scenarioRid`.\n *\n * @beta This is an experimental, unstable feature subject to change.\n *\n * @example\n * ```ts\n * import { withScenario } from \"@osdk/client/unstable-do-not-use\";\n *\n * const scenario = withScenario(client, \"ri.actions..scenario.abc\");\n * const page = await scenario(Doctor).fetchPage();\n * await scenario(Schedule).applyAction({ doctor: page.data[0], shift: \"AM\" });\n * ```\n */\nexport function withScenario(client, scenarioRid) {\n return buildScenarioClient(client, scenarioRid);\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLHC6PBW_cjs = require('./chunk-FLHC6PBW.cjs');
|
|
4
4
|
var chunkNJNRUEOF_cjs = require('./chunk-NJNRUEOF.cjs');
|
|
5
5
|
var chunkG3NSPKBQ_cjs = require('./chunk-G3NSPKBQ.cjs');
|
|
6
6
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
@@ -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?.[chunkFLHC6PBW_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?.[chunkFLHC6PBW_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[chunkFLHC6PBW_cjs.UnderlyingOsdkObject];
|
|
2312
|
+
const objectDef = requireObjectDef(value[chunkFLHC6PBW_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 chunkFLHC6PBW_cjs.createOsdkObject(value[chunkFLHC6PBW_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[chunkFLHC6PBW_cjs.UnderlyingOsdkObject];
|
|
2337
|
+
const objectDef = requireObjectDef(value[chunkFLHC6PBW_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 chunkFLHC6PBW_cjs.createOsdkObject(value[chunkFLHC6PBW_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[chunkFLHC6PBW_cjs.UnderlyingOsdkObject];
|
|
2358
|
+
const existingUnderlying = existingValue[chunkFLHC6PBW_cjs.UnderlyingOsdkObject];
|
|
2359
|
+
const objectDef = requireObjectDef(sourceValue[chunkFLHC6PBW_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 chunkFLHC6PBW_cjs.createOsdkObject(sourceValue[chunkFLHC6PBW_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[chunkFLHC6PBW_cjs.UnderlyingOsdkObject];
|
|
2392
|
+
const objectDef = requireObjectDef(sourceValue[chunkFLHC6PBW_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[chunkFLHC6PBW_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 chunkFLHC6PBW_cjs.createOsdkObject(sourceValue[chunkFLHC6PBW_cjs.ClientRef], objectDef, newProps);
|
|
2419
2419
|
}
|
|
2420
2420
|
function createCollectionConnectable(subject, subjects, createPayload) {
|
|
2421
2421
|
return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
|
|
@@ -3818,7 +3818,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3818
3818
|
}
|
|
3819
3819
|
extractRelevantObjects(changes) {
|
|
3820
3820
|
const matchesApiName = ([, object]) => {
|
|
3821
|
-
return this.apiName in object[
|
|
3821
|
+
return this.apiName in object[chunkFLHC6PBW_cjs.ObjectDefRef].interfaceMap;
|
|
3822
3822
|
};
|
|
3823
3823
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
3824
3824
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
@@ -4219,7 +4219,7 @@ var MediaMetadataQuery = class extends Query {
|
|
|
4219
4219
|
});
|
|
4220
4220
|
try {
|
|
4221
4221
|
const ontologyRid = await this.store.client[chunkG3NSPKBQ_cjs.additionalContext].ontologyRid;
|
|
4222
|
-
const response = await
|
|
4222
|
+
const response = await chunkFLHC6PBW_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkG3NSPKBQ_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
|
|
4223
4223
|
branch: this.store.client[chunkG3NSPKBQ_cjs.additionalContext].branch,
|
|
4224
4224
|
preview: this.#preview
|
|
4225
4225
|
});
|
|
@@ -4343,7 +4343,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
async fetchMetadata(coords, options) {
|
|
4345
4345
|
const ontologyRid = await this.store.client[chunkG3NSPKBQ_cjs.additionalContext].ontologyRid;
|
|
4346
|
-
const response = await
|
|
4346
|
+
const response = await chunkFLHC6PBW_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkG3NSPKBQ_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4347
4347
|
branch: this.store.client[chunkG3NSPKBQ_cjs.additionalContext].branch,
|
|
4348
4348
|
preview: options?.preview ?? true
|
|
4349
4349
|
});
|
|
@@ -4365,7 +4365,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4365
4365
|
const coords = this.resolveToCoords(mediaOrLocation);
|
|
4366
4366
|
if (coords) {
|
|
4367
4367
|
const ontologyRid = await this.store.client[chunkG3NSPKBQ_cjs.additionalContext].ontologyRid;
|
|
4368
|
-
response = await
|
|
4368
|
+
response = await chunkFLHC6PBW_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkG3NSPKBQ_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4369
4369
|
branch: this.store.client[chunkG3NSPKBQ_cjs.additionalContext].branch,
|
|
4370
4370
|
preview
|
|
4371
4371
|
});
|
|
@@ -4553,7 +4553,7 @@ var ObjectCacheKeyRegistry = class {
|
|
|
4553
4553
|
|
|
4554
4554
|
// src/object/convertWireToOsdkObjects/InterfaceHolder.ts
|
|
4555
4555
|
function isInterfaceHolder(v) {
|
|
4556
|
-
return typeof v === "object" && v != null &&
|
|
4556
|
+
return typeof v === "object" && v != null && chunkFLHC6PBW_cjs.InterfaceDefRef in v;
|
|
4557
4557
|
}
|
|
4558
4558
|
|
|
4559
4559
|
// src/observable/internal/collections/DefaultMap.ts
|
|
@@ -4928,7 +4928,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4928
4928
|
storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
|
|
4929
4929
|
const holders = values;
|
|
4930
4930
|
return holders.map((v) => {
|
|
4931
|
-
const concreteHolder = isInterfaceHolder(v) ? v[
|
|
4931
|
+
const concreteHolder = isInterfaceHolder(v) ? v[chunkFLHC6PBW_cjs.UnderlyingOsdkObject] : v;
|
|
4932
4932
|
return this.getQuery({
|
|
4933
4933
|
apiName: v.$objectType ?? v.$apiName,
|
|
4934
4934
|
pk: v.$primaryKey,
|
|
@@ -6140,10 +6140,10 @@ var Store = class {
|
|
|
6140
6140
|
|
|
6141
6141
|
// src/observable/ObservableClient.ts
|
|
6142
6142
|
function createObservableClient(client, extraUserAgents, options) {
|
|
6143
|
-
const tweakedClient =
|
|
6143
|
+
const tweakedClient = chunkFLHC6PBW_cjs.createClientFromContext({
|
|
6144
6144
|
...client[chunkG3NSPKBQ_cjs.additionalContext],
|
|
6145
6145
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkG3NSPKBQ_cjs.additionalContext].fetch, (headers) => {
|
|
6146
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
6146
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkFLHC6PBW_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
|
|
6147
6147
|
return headers;
|
|
6148
6148
|
})
|
|
6149
6149
|
});
|
|
@@ -6151,5 +6151,5 @@ function createObservableClient(client, extraUserAgents, options) {
|
|
|
6151
6151
|
}
|
|
6152
6152
|
|
|
6153
6153
|
exports.createObservableClient = createObservableClient;
|
|
6154
|
-
//# sourceMappingURL=chunk-
|
|
6155
|
-
//# sourceMappingURL=chunk-
|
|
6154
|
+
//# sourceMappingURL=chunk-6FNJVDZ2.cjs.map
|
|
6155
|
+
//# sourceMappingURL=chunk-6FNJVDZ2.cjs.map
|