@osdk/client 2.81.0-main-9f97981b0138f67ea08d91ffdbde9fa1529840e8 → 2.81.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 -8
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-QNNINR2H.cjs → chunk-3HS2NUB5.cjs} +6 -6
- package/build/cjs/{chunk-QNNINR2H.cjs.map → chunk-3HS2NUB5.cjs.map} +1 -1
- package/build/cjs/{chunk-46PBLS46.cjs → chunk-AWX7KKOB.cjs} +27 -27
- package/build/cjs/{chunk-46PBLS46.cjs.map → chunk-AWX7KKOB.cjs.map} +1 -1
- package/build/cjs/{chunk-GWLU5TME.cjs → chunk-BP3NAUAM.cjs} +4 -4
- package/build/cjs/chunk-BP3NAUAM.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-GWLU5TME.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
-
## 2.81.0
|
|
3
|
+
## 2.81.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- 3677309: Convert agent session arguments containing OSDK objects and object sets, including nested values.
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
9
11
|
- Updated dependencies [3677309]
|
|
10
12
|
- Updated dependencies [24630ae]
|
|
11
|
-
- Updated dependencies [9f97981]
|
|
12
13
|
- Updated dependencies [23701c5]
|
|
13
|
-
- @osdk/shared.test@2.
|
|
14
|
-
- @osdk/api@2.81.0
|
|
15
|
-
- @osdk/generator-converters@2.81.0
|
|
16
|
-
- @osdk/client.unstable@2.81.0
|
|
14
|
+
- @osdk/shared.test@2.54.0
|
|
15
|
+
- @osdk/api@2.81.0
|
|
16
|
+
- @osdk/generator-converters@2.81.0
|
|
17
|
+
- @osdk/client.unstable@2.81.0
|
|
17
18
|
|
|
18
19
|
## 2.80.0
|
|
19
20
|
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.81.0
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.81.0
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.81.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.81.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 chunkBP3NAUAM_cjs = require('./chunk-BP3NAUAM.cjs');
|
|
4
4
|
var chunkE5DVPO34_cjs = require('./chunk-E5DVPO34.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 chunkBP3NAUAM_cjs.OntologyScenario_exports.createScenario(ctx, await ctx.ontologyRid, request, {
|
|
23
23
|
preview: true
|
|
24
24
|
});
|
|
25
|
-
return
|
|
25
|
+
return chunkBP3NAUAM_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 chunkBP3NAUAM_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-3HS2NUB5.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-3HS2NUB5.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-3HS2NUB5.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 chunkBP3NAUAM_cjs = require('./chunk-BP3NAUAM.cjs');
|
|
4
4
|
var chunkIGXTYQVQ_cjs = require('./chunk-IGXTYQVQ.cjs');
|
|
5
5
|
var chunkE5DVPO34_cjs = require('./chunk-E5DVPO34.cjs');
|
|
6
6
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
@@ -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?.[chunkBP3NAUAM_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?.[chunkBP3NAUAM_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[chunkBP3NAUAM_cjs.UnderlyingOsdkObject];
|
|
2311
|
+
const objectDef = requireObjectDef(value[chunkBP3NAUAM_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 chunkBP3NAUAM_cjs.createOsdkObject(value[chunkBP3NAUAM_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[chunkBP3NAUAM_cjs.UnderlyingOsdkObject];
|
|
2336
|
+
const objectDef = requireObjectDef(value[chunkBP3NAUAM_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 chunkBP3NAUAM_cjs.createOsdkObject(value[chunkBP3NAUAM_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[chunkBP3NAUAM_cjs.UnderlyingOsdkObject];
|
|
2357
|
+
const existingUnderlying = existingValue[chunkBP3NAUAM_cjs.UnderlyingOsdkObject];
|
|
2358
|
+
const objectDef = requireObjectDef(sourceValue[chunkBP3NAUAM_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 chunkBP3NAUAM_cjs.createOsdkObject(sourceValue[chunkBP3NAUAM_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[chunkBP3NAUAM_cjs.UnderlyingOsdkObject];
|
|
2391
|
+
const objectDef = requireObjectDef(sourceValue[chunkBP3NAUAM_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[chunkBP3NAUAM_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 chunkBP3NAUAM_cjs.createOsdkObject(sourceValue[chunkBP3NAUAM_cjs.ClientRef], objectDef, newProps);
|
|
2418
2418
|
}
|
|
2419
2419
|
function createCollectionConnectable(subject, subjects, createPayload) {
|
|
2420
2420
|
return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
|
|
@@ -3802,7 +3802,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3802
3802
|
}
|
|
3803
3803
|
extractRelevantObjects(changes) {
|
|
3804
3804
|
const matchesApiName = ([, object]) => {
|
|
3805
|
-
return this.apiName in object[
|
|
3805
|
+
return this.apiName in object[chunkBP3NAUAM_cjs.ObjectDefRef].interfaceMap;
|
|
3806
3806
|
};
|
|
3807
3807
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
3808
3808
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
@@ -4145,7 +4145,7 @@ var MediaMetadataQuery = class extends Query {
|
|
|
4145
4145
|
});
|
|
4146
4146
|
try {
|
|
4147
4147
|
const ontologyRid = await this.store.client[chunkE5DVPO34_cjs.additionalContext].ontologyRid;
|
|
4148
|
-
const response = await
|
|
4148
|
+
const response = await chunkBP3NAUAM_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkE5DVPO34_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
|
|
4149
4149
|
branch: this.store.client[chunkE5DVPO34_cjs.additionalContext].branch,
|
|
4150
4150
|
preview: this.#preview
|
|
4151
4151
|
});
|
|
@@ -4269,7 +4269,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
async fetchMetadata(coords, options) {
|
|
4271
4271
|
const ontologyRid = await this.store.client[chunkE5DVPO34_cjs.additionalContext].ontologyRid;
|
|
4272
|
-
const response = await
|
|
4272
|
+
const response = await chunkBP3NAUAM_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkE5DVPO34_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4273
4273
|
branch: this.store.client[chunkE5DVPO34_cjs.additionalContext].branch,
|
|
4274
4274
|
preview: options?.preview ?? true
|
|
4275
4275
|
});
|
|
@@ -4291,7 +4291,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4291
4291
|
const coords = this.resolveToCoords(mediaOrLocation);
|
|
4292
4292
|
if (coords) {
|
|
4293
4293
|
const ontologyRid = await this.store.client[chunkE5DVPO34_cjs.additionalContext].ontologyRid;
|
|
4294
|
-
response = await
|
|
4294
|
+
response = await chunkBP3NAUAM_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkE5DVPO34_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4295
4295
|
branch: this.store.client[chunkE5DVPO34_cjs.additionalContext].branch,
|
|
4296
4296
|
preview
|
|
4297
4297
|
});
|
|
@@ -4479,7 +4479,7 @@ var ObjectCacheKeyRegistry = class {
|
|
|
4479
4479
|
|
|
4480
4480
|
// src/object/convertWireToOsdkObjects/InterfaceHolder.ts
|
|
4481
4481
|
function isInterfaceHolder(v) {
|
|
4482
|
-
return typeof v === "object" && v != null &&
|
|
4482
|
+
return typeof v === "object" && v != null && chunkBP3NAUAM_cjs.InterfaceDefRef in v;
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
4485
|
// ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
|
|
@@ -4839,7 +4839,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4839
4839
|
storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
|
|
4840
4840
|
const holders = values;
|
|
4841
4841
|
return holders.map((v) => {
|
|
4842
|
-
const concreteHolder = isInterfaceHolder(v) ? v[
|
|
4842
|
+
const concreteHolder = isInterfaceHolder(v) ? v[chunkBP3NAUAM_cjs.UnderlyingOsdkObject] : v;
|
|
4843
4843
|
return this.getQuery({
|
|
4844
4844
|
apiName: v.$objectType ?? v.$apiName,
|
|
4845
4845
|
pk: v.$primaryKey,
|
|
@@ -6118,10 +6118,10 @@ var Store = class {
|
|
|
6118
6118
|
|
|
6119
6119
|
// src/observable/ObservableClient.ts
|
|
6120
6120
|
function createObservableClient(client, extraUserAgents, options) {
|
|
6121
|
-
const tweakedClient =
|
|
6121
|
+
const tweakedClient = chunkBP3NAUAM_cjs.createClientFromContext({
|
|
6122
6122
|
...client[chunkE5DVPO34_cjs.additionalContext],
|
|
6123
6123
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkE5DVPO34_cjs.additionalContext].fetch, (headers) => {
|
|
6124
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
6124
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkBP3NAUAM_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
|
|
6125
6125
|
return headers;
|
|
6126
6126
|
})
|
|
6127
6127
|
});
|
|
@@ -6129,5 +6129,5 @@ function createObservableClient(client, extraUserAgents, options) {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
|
|
6131
6131
|
exports.createObservableClient = createObservableClient;
|
|
6132
|
-
//# sourceMappingURL=chunk-
|
|
6133
|
-
//# sourceMappingURL=chunk-
|
|
6132
|
+
//# sourceMappingURL=chunk-AWX7KKOB.cjs.map
|
|
6133
|
+
//# sourceMappingURL=chunk-AWX7KKOB.cjs.map
|