@osdk/client 2.95.0-main-9a1c66bc1936a12edddf4d556cb28e16e30ffae1 → 2.95.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-BVTCIAWL.cjs → chunk-35RDHB5T.cjs} +6 -6
- package/build/cjs/{chunk-BVTCIAWL.cjs.map → chunk-35RDHB5T.cjs.map} +1 -1
- package/build/cjs/{chunk-2TW6QYC7.cjs → chunk-EV74MG67.cjs} +29 -29
- package/build/cjs/{chunk-2TW6QYC7.cjs.map → chunk-EV74MG67.cjs.map} +1 -1
- package/build/cjs/{chunk-B3YRFNEB.cjs → chunk-JBCRSB2X.cjs} +4 -4
- package/build/cjs/chunk-JBCRSB2X.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 +10 -10
- package/build/cjs/chunk-B3YRFNEB.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
-
## 2.95.0
|
|
3
|
+
## 2.95.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- 9a1c66b: Omit unresolved and deleted objects from observable lists before emitting them.
|
|
7
8
|
- 7a3917d: Allow OsdkProvider's client prop to accept an existing ObservableClient so React and non-React consumers can share a cache. Allow creation options only with a plain client. Add ObservableClient.getClient() to access the store's underlying client and registerUserAgent() to preserve request attribution.
|
|
8
9
|
|
|
9
10
|
### Patch Changes
|
|
10
11
|
|
|
11
|
-
- 9a1c66b: Omit unresolved and deleted objects from observable lists before emitting them.
|
|
12
12
|
- Updated dependencies [0f1892a]
|
|
13
13
|
- Updated dependencies [5c5709f]
|
|
14
14
|
- Updated dependencies [a5bdff2]
|
|
15
|
-
- @osdk/client.unstable@2.95.0
|
|
16
|
-
- @osdk/api@2.95.0
|
|
17
|
-
- @osdk/generator-converters@2.95.0
|
|
18
|
-
- @osdk/shared.test@2.
|
|
15
|
+
- @osdk/client.unstable@2.95.0
|
|
16
|
+
- @osdk/api@2.95.0
|
|
17
|
+
- @osdk/generator-converters@2.95.0
|
|
18
|
+
- @osdk/shared.test@2.65.0
|
|
19
19
|
|
|
20
20
|
## 2.94.0
|
|
21
21
|
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.95.0
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.95.0
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.95.0"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.95.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 chunkJBCRSB2X_cjs = require('./chunk-JBCRSB2X.cjs');
|
|
4
4
|
var chunkB2NX6A3J_cjs = require('./chunk-B2NX6A3J.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 chunkJBCRSB2X_cjs.OntologyScenario_exports.createScenario(ctx, await ctx.ontologyRid, request, {
|
|
23
23
|
preview: true
|
|
24
24
|
});
|
|
25
|
-
return
|
|
25
|
+
return chunkJBCRSB2X_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 chunkJBCRSB2X_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-35RDHB5T.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-35RDHB5T.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-35RDHB5T.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 chunkJBCRSB2X_cjs = require('./chunk-JBCRSB2X.cjs');
|
|
4
4
|
var chunkQDEI35QO_cjs = require('./chunk-QDEI35QO.cjs');
|
|
5
5
|
var chunkB2NX6A3J_cjs = require('./chunk-B2NX6A3J.cjs');
|
|
6
6
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
@@ -2221,11 +2221,11 @@ function isStringEncodedNumericType(type) {
|
|
|
2221
2221
|
return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
|
|
2222
2222
|
}
|
|
2223
2223
|
function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
|
|
2224
|
-
const objectType = holder?.[
|
|
2224
|
+
const objectType = holder?.[chunkJBCRSB2X_cjs.ObjectDefRef]?.properties?.[key]?.type;
|
|
2225
2225
|
if (typeof objectType === "string") {
|
|
2226
2226
|
return objectType;
|
|
2227
2227
|
}
|
|
2228
|
-
const interfaceType = resolveInterfacePropertyType(holder?.[
|
|
2228
|
+
const interfaceType = resolveInterfacePropertyType(holder?.[chunkJBCRSB2X_cjs.InterfaceDefRef], key);
|
|
2229
2229
|
if (typeof interfaceType === "string") {
|
|
2230
2230
|
return interfaceType;
|
|
2231
2231
|
}
|
|
@@ -2319,8 +2319,8 @@ function stripRdpFields(value, rdpFields) {
|
|
|
2319
2319
|
if (rdpFields.size === 0) {
|
|
2320
2320
|
return value;
|
|
2321
2321
|
}
|
|
2322
|
-
const underlying = value[
|
|
2323
|
-
const objectDef = requireObjectDef(value[
|
|
2322
|
+
const underlying = value[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2323
|
+
const objectDef = requireObjectDef(value[chunkJBCRSB2X_cjs.ObjectDefRef], underlying);
|
|
2324
2324
|
const newProps = {
|
|
2325
2325
|
$apiName: underlying.$apiName,
|
|
2326
2326
|
$objectType: underlying.$objectType,
|
|
@@ -2333,7 +2333,7 @@ function stripRdpFields(value, rdpFields) {
|
|
|
2333
2333
|
newProps[key] = underlying[key];
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
|
-
return
|
|
2336
|
+
return chunkJBCRSB2X_cjs.createOsdkObject(value[chunkJBCRSB2X_cjs.ClientRef], objectDef, newProps, {}, void 0, value[chunkJBCRSB2X_cjs.UncastableProperties]);
|
|
2337
2337
|
}
|
|
2338
2338
|
function isSuperset(superset, subset) {
|
|
2339
2339
|
for (const field of subset) {
|
|
@@ -2344,8 +2344,8 @@ function isSuperset(superset, subset) {
|
|
|
2344
2344
|
return true;
|
|
2345
2345
|
}
|
|
2346
2346
|
function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
2347
|
-
const underlying = value[
|
|
2348
|
-
const objectDef = requireObjectDef(value[
|
|
2347
|
+
const underlying = value[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2348
|
+
const objectDef = requireObjectDef(value[chunkJBCRSB2X_cjs.ObjectDefRef], underlying);
|
|
2349
2349
|
const newProps = {
|
|
2350
2350
|
$apiName: underlying.$apiName,
|
|
2351
2351
|
$objectType: underlying.$objectType,
|
|
@@ -2362,12 +2362,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
|
2362
2362
|
newProps[key] = underlying[key];
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
|
-
return
|
|
2365
|
+
return chunkJBCRSB2X_cjs.createOsdkObject(value[chunkJBCRSB2X_cjs.ClientRef], objectDef, newProps, {}, void 0, value[chunkJBCRSB2X_cjs.UncastableProperties]);
|
|
2366
2366
|
}
|
|
2367
2367
|
function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
|
|
2368
|
-
const sourceUnderlying = sourceValue[
|
|
2369
|
-
const existingUnderlying = existingValue[
|
|
2370
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2368
|
+
const sourceUnderlying = sourceValue[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2369
|
+
const existingUnderlying = existingValue[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2370
|
+
const objectDef = requireObjectDef(sourceValue[chunkJBCRSB2X_cjs.ObjectDefRef], sourceUnderlying);
|
|
2371
2371
|
const newProps = {
|
|
2372
2372
|
$apiName: sourceUnderlying.$apiName,
|
|
2373
2373
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -2380,20 +2380,20 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
|
|
|
2380
2380
|
newProps[key] = existingUnderlying[key];
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
const uncastableProperties = new Set(existingValue[
|
|
2383
|
+
const uncastableProperties = new Set(existingValue[chunkJBCRSB2X_cjs.UncastableProperties]);
|
|
2384
2384
|
for (const key of Object.keys(sourceUnderlying)) {
|
|
2385
2385
|
if (sourceRdpFields.has(key)) {
|
|
2386
2386
|
newProps[key] = sourceUnderlying[key];
|
|
2387
2387
|
} else if (key in objectDef.properties && selectFields.has(key)) {
|
|
2388
2388
|
newProps[key] = sourceUnderlying[key];
|
|
2389
|
-
if (sourceValue[
|
|
2389
|
+
if (sourceValue[chunkJBCRSB2X_cjs.UncastableProperties].includes(key)) {
|
|
2390
2390
|
uncastableProperties.add(key);
|
|
2391
2391
|
} else {
|
|
2392
2392
|
uncastableProperties.delete(key);
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
return
|
|
2396
|
+
return chunkJBCRSB2X_cjs.createOsdkObject(sourceValue[chunkJBCRSB2X_cjs.ClientRef], objectDef, newProps, {}, void 0, [...uncastableProperties]);
|
|
2397
2397
|
}
|
|
2398
2398
|
function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
|
|
2399
2399
|
if (targetRdpFields.size === 0) {
|
|
@@ -2405,8 +2405,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
2405
2405
|
}
|
|
2406
2406
|
return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
|
|
2407
2407
|
}
|
|
2408
|
-
const sourceUnderlying = sourceValue[
|
|
2409
|
-
const objectDef = requireObjectDef(sourceValue[
|
|
2408
|
+
const sourceUnderlying = sourceValue[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2409
|
+
const objectDef = requireObjectDef(sourceValue[chunkJBCRSB2X_cjs.ObjectDefRef], sourceUnderlying);
|
|
2410
2410
|
const newProps = {
|
|
2411
2411
|
$apiName: sourceUnderlying.$apiName,
|
|
2412
2412
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -2425,14 +2425,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
2425
2425
|
}
|
|
2426
2426
|
}
|
|
2427
2427
|
if (targetCurrentValue) {
|
|
2428
|
-
const targetUnderlying = targetCurrentValue[
|
|
2428
|
+
const targetUnderlying = targetCurrentValue[chunkJBCRSB2X_cjs.UnderlyingOsdkObject];
|
|
2429
2429
|
for (const field of targetRdpFields) {
|
|
2430
2430
|
if (!sourceRdpFields.has(field) && field in targetUnderlying) {
|
|
2431
2431
|
newProps[field] = targetUnderlying[field];
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
|
-
return
|
|
2435
|
+
return chunkJBCRSB2X_cjs.createOsdkObject(sourceValue[chunkJBCRSB2X_cjs.ClientRef], objectDef, newProps, {}, void 0, sourceValue[chunkJBCRSB2X_cjs.UncastableProperties]);
|
|
2436
2436
|
}
|
|
2437
2437
|
function createCollectionConnectable(subject, subjects, createPayload) {
|
|
2438
2438
|
return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
|
|
@@ -3835,7 +3835,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3835
3835
|
}
|
|
3836
3836
|
extractRelevantObjects(changes) {
|
|
3837
3837
|
const matchesApiName = ([, object]) => {
|
|
3838
|
-
return this.apiName in object[
|
|
3838
|
+
return this.apiName in object[chunkJBCRSB2X_cjs.ObjectDefRef].interfaceMap;
|
|
3839
3839
|
};
|
|
3840
3840
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
3841
3841
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
|
|
@@ -4236,7 +4236,7 @@ var MediaMetadataQuery = class extends Query {
|
|
|
4236
4236
|
});
|
|
4237
4237
|
try {
|
|
4238
4238
|
const ontologyRid = await this.store.client[chunkB2NX6A3J_cjs.additionalContext].ontologyRid;
|
|
4239
|
-
const response = await
|
|
4239
|
+
const response = await chunkJBCRSB2X_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkB2NX6A3J_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
|
|
4240
4240
|
branch: this.store.client[chunkB2NX6A3J_cjs.additionalContext].branch,
|
|
4241
4241
|
preview: this.#preview
|
|
4242
4242
|
});
|
|
@@ -4360,7 +4360,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4360
4360
|
}
|
|
4361
4361
|
async fetchMetadata(coords, options) {
|
|
4362
4362
|
const ontologyRid = await this.store.client[chunkB2NX6A3J_cjs.additionalContext].ontologyRid;
|
|
4363
|
-
const response = await
|
|
4363
|
+
const response = await chunkJBCRSB2X_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkB2NX6A3J_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4364
4364
|
branch: this.store.client[chunkB2NX6A3J_cjs.additionalContext].branch,
|
|
4365
4365
|
preview: options?.preview ?? true
|
|
4366
4366
|
});
|
|
@@ -4382,7 +4382,7 @@ var MediaHelper = class extends AbstractHelper {
|
|
|
4382
4382
|
const coords = this.resolveToCoords(mediaOrLocation);
|
|
4383
4383
|
if (coords) {
|
|
4384
4384
|
const ontologyRid = await this.store.client[chunkB2NX6A3J_cjs.additionalContext].ontologyRid;
|
|
4385
|
-
response = await
|
|
4385
|
+
response = await chunkJBCRSB2X_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkB2NX6A3J_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
|
|
4386
4386
|
branch: this.store.client[chunkB2NX6A3J_cjs.additionalContext].branch,
|
|
4387
4387
|
preview
|
|
4388
4388
|
});
|
|
@@ -4570,7 +4570,7 @@ var ObjectCacheKeyRegistry = class {
|
|
|
4570
4570
|
|
|
4571
4571
|
// src/object/convertWireToOsdkObjects/InterfaceHolder.ts
|
|
4572
4572
|
function isInterfaceHolder(v) {
|
|
4573
|
-
return typeof v === "object" && v != null &&
|
|
4573
|
+
return typeof v === "object" && v != null && chunkJBCRSB2X_cjs.InterfaceDefRef in v;
|
|
4574
4574
|
}
|
|
4575
4575
|
|
|
4576
4576
|
// src/observable/internal/collections/DefaultMap.ts
|
|
@@ -4945,7 +4945,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4945
4945
|
storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
|
|
4946
4946
|
const holders = values;
|
|
4947
4947
|
return holders.map((v) => {
|
|
4948
|
-
const concreteHolder = isInterfaceHolder(v) ? v[
|
|
4948
|
+
const concreteHolder = isInterfaceHolder(v) ? v[chunkJBCRSB2X_cjs.UnderlyingOsdkObject] : v;
|
|
4949
4949
|
return this.getQuery({
|
|
4950
4950
|
apiName: v.$objectType ?? v.$apiName,
|
|
4951
4951
|
pk: v.$primaryKey,
|
|
@@ -6158,10 +6158,10 @@ var Store = class {
|
|
|
6158
6158
|
// src/observable/ObservableClient.ts
|
|
6159
6159
|
function createObservableClient(client, extraUserAgents, options) {
|
|
6160
6160
|
const userAgents = /* @__PURE__ */ new Map();
|
|
6161
|
-
const tweakedClient =
|
|
6161
|
+
const tweakedClient = chunkJBCRSB2X_cjs.createClientFromContext({
|
|
6162
6162
|
...client[chunkB2NX6A3J_cjs.additionalContext],
|
|
6163
6163
|
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkB2NX6A3J_cjs.additionalContext].fetch, (headers) => {
|
|
6164
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
6164
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkJBCRSB2X_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? [], ...new Set(userAgents.values())].filter((x) => x && x?.length > 0).join(" "));
|
|
6165
6165
|
return headers;
|
|
6166
6166
|
})
|
|
6167
6167
|
});
|
|
@@ -6169,5 +6169,5 @@ function createObservableClient(client, extraUserAgents, options) {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
|
|
6171
6171
|
exports.createObservableClient = createObservableClient;
|
|
6172
|
-
//# sourceMappingURL=chunk-
|
|
6173
|
-
//# sourceMappingURL=chunk-
|
|
6172
|
+
//# sourceMappingURL=chunk-EV74MG67.cjs.map
|
|
6173
|
+
//# sourceMappingURL=chunk-EV74MG67.cjs.map
|