@osdk/client 2.87.0-main-1fd9dc45c62080a4e08f07409af63a8565eb85b4 → 2.87.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 -7
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js +21 -2
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{applyStreamingQuery-GG6YRECI.cjs → applyStreamingQuery-OFE276IY.cjs} +11 -11
- package/build/cjs/{applyStreamingQuery-GG6YRECI.cjs.map → applyStreamingQuery-OFE276IY.cjs.map} +1 -1
- package/build/cjs/{chunk-NJFXSQ4X.cjs → chunk-B4UCZI2Z.cjs} +13 -9
- package/build/cjs/chunk-B4UCZI2Z.cjs.map +1 -0
- package/build/cjs/{chunk-XCQOINFF.cjs → chunk-FRZNF77P.cjs} +38 -116
- package/build/cjs/chunk-FRZNF77P.cjs.map +1 -0
- package/build/cjs/{chunk-I536YZL7.cjs → chunk-HL7TDBEU.cjs} +5 -5
- package/build/cjs/{chunk-I536YZL7.cjs.map → chunk-HL7TDBEU.cjs.map} +1 -1
- package/build/cjs/{chunk-JVTQVCST.cjs → chunk-JPO5C5QG.cjs} +18 -18
- package/build/cjs/{chunk-JVTQVCST.cjs.map → chunk-JPO5C5QG.cjs.map} +1 -1
- package/build/cjs/{chunk-F7VOYQZZ.cjs → chunk-PPEWTL53.cjs} +83 -83
- package/build/cjs/{chunk-F7VOYQZZ.cjs.map → chunk-PPEWTL53.cjs.map} +1 -1
- package/build/cjs/{chunk-6NHMELIG.cjs → chunk-US5WI5KS.cjs} +8 -8
- package/build/cjs/{chunk-6NHMELIG.cjs.map → chunk-US5WI5KS.cjs.map} +1 -1
- package/build/cjs/{chunk-JILZ2BLD.cjs → chunk-VK37CUQE.cjs} +98 -98
- package/build/cjs/chunk-VK37CUQE.cjs.map +1 -0
- package/build/cjs/index.cjs +13 -13
- package/build/cjs/public/experimental.cjs +11 -11
- package/build/cjs/public/internal.cjs +11 -11
- package/build/cjs/public/observable.cjs +7 -7
- package/build/cjs/public/unstable-do-not-use.cjs +18 -18
- package/build/cjs/{transformAndWaitInternal-MXF3R6YX.cjs → transformAndWaitInternal-J3XOTTQ2.cjs} +6 -6
- package/build/cjs/{transformAndWaitInternal-MXF3R6YX.cjs.map → transformAndWaitInternal-J3XOTTQ2.cjs.map} +1 -1
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js +21 -2
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/package.json +14 -14
- package/build/cjs/chunk-JILZ2BLD.cjs.map +0 -1
- package/build/cjs/chunk-NJFXSQ4X.cjs.map +0 -1
- package/build/cjs/chunk-XCQOINFF.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkVK37CUQE_cjs = require('./chunk-VK37CUQE.cjs');
|
|
4
|
+
var chunkFRZNF77P_cjs = require('./chunk-FRZNF77P.cjs');
|
|
5
5
|
|
|
6
6
|
// src/scenarios/createScenario.ts
|
|
7
7
|
async function createScenario(client, options) {
|
|
8
|
-
const ctx = client[
|
|
8
|
+
const ctx = client[chunkFRZNF77P_cjs.additionalContext];
|
|
9
9
|
if (ctx.scenarioRid != null) {
|
|
10
10
|
throw new Error("createScenario: the supplied client already has an active scenario. Scenarios cannot be nested.");
|
|
11
11
|
}
|
|
@@ -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 chunkVK37CUQE_cjs.OntologyScenario_exports.createScenario(ctx, await ctx.ontologyRid, request, {
|
|
23
23
|
preview: true
|
|
24
24
|
});
|
|
25
|
-
return
|
|
25
|
+
return chunkVK37CUQE_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 chunkVK37CUQE_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-US5WI5KS.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-US5WI5KS.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-US5WI5KS.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,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHL7TDBEU_cjs = require('./chunk-HL7TDBEU.cjs');
|
|
4
4
|
var chunk6OIQ3CCD_cjs = require('./chunk-6OIQ3CCD.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkJPO5C5QG_cjs = require('./chunk-JPO5C5QG.cjs');
|
|
6
|
+
var chunkFRZNF77P_cjs = require('./chunk-FRZNF77P.cjs');
|
|
7
|
+
var chunkB4UCZI2Z_cjs = require('./chunk-B4UCZI2Z.cjs');
|
|
8
8
|
var chunkIWUIN6JJ_cjs = require('./chunk-IWUIN6JJ.cjs');
|
|
9
9
|
var chunkQ7SFCCGT_cjs = require('./chunk-Q7SFCCGT.cjs');
|
|
10
10
|
var unstable = require('@osdk/api/unstable');
|
|
@@ -25,29 +25,29 @@ var ActionValidationError = class extends Error {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
28
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/Action.js
|
|
29
29
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 7];
|
|
30
30
|
function apply($ctx, ...args) {
|
|
31
|
-
return
|
|
31
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _apply, ...args);
|
|
32
32
|
}
|
|
33
33
|
var _applyBatch = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
|
|
34
34
|
function applyBatch($ctx, ...args) {
|
|
35
|
-
return
|
|
35
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
38
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/ActionTypeV2.js
|
|
39
39
|
var _get = [0, "/v2/ontologies/{0}/actionTypes/{1}", 2];
|
|
40
40
|
function get($ctx, ...args) {
|
|
41
|
-
return
|
|
41
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _get, ...args);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
44
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/CipherTextProperty.js
|
|
45
45
|
var _decrypt = [0, "/v2/ontologies/{0}/objects/{1}/{2}/ciphertexts/{3}/decrypt", 2];
|
|
46
46
|
function decrypt($ctx, ...args) {
|
|
47
|
-
return
|
|
47
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _decrypt, ...args);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
50
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/MediaReferenceProperty.js
|
|
51
51
|
var MediaReferenceProperty_exports = {};
|
|
52
52
|
chunkQ7SFCCGT_cjs.__export(MediaReferenceProperty_exports, {
|
|
53
53
|
getMediaContent: () => getMediaContent,
|
|
@@ -56,30 +56,30 @@ chunkQ7SFCCGT_cjs.__export(MediaReferenceProperty_exports, {
|
|
|
56
56
|
});
|
|
57
57
|
var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 6, , "*/*"];
|
|
58
58
|
function getMediaContent($ctx, ...args) {
|
|
59
|
-
return
|
|
59
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getMediaContent, ...args);
|
|
60
60
|
}
|
|
61
61
|
var _getMediaMetadata = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata", 2];
|
|
62
62
|
function getMediaMetadata($ctx, ...args) {
|
|
63
|
-
return
|
|
63
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getMediaMetadata, ...args);
|
|
64
64
|
}
|
|
65
65
|
var _upload = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/*"];
|
|
66
66
|
function upload2($ctx, ...args) {
|
|
67
|
-
return
|
|
67
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _upload, ...args);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
70
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/ObjectTypeV2.js
|
|
71
71
|
var _getFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
|
|
72
72
|
function getFullMetadata($ctx, ...args) {
|
|
73
|
-
return
|
|
73
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getFullMetadata, ...args);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
76
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/OntologyInterface.js
|
|
77
77
|
var _get2 = [0, "/v2/ontologies/{0}/interfaceTypes/{1}", 2];
|
|
78
78
|
function get2($ctx, ...args) {
|
|
79
|
-
return
|
|
79
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _get2, ...args);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
82
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/OntologyScenario.js
|
|
83
83
|
var OntologyScenario_exports = {};
|
|
84
84
|
chunkQ7SFCCGT_cjs.__export(OntologyScenario_exports, {
|
|
85
85
|
createScenario: () => createScenario,
|
|
@@ -93,71 +93,71 @@ chunkQ7SFCCGT_cjs.__export(OntologyScenario_exports, {
|
|
|
93
93
|
});
|
|
94
94
|
var _createScenario = [1, "/v2/ontologies/{0}/scenarios/create", 3];
|
|
95
95
|
function createScenario($ctx, ...args) {
|
|
96
|
-
return
|
|
96
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _createScenario, ...args);
|
|
97
97
|
}
|
|
98
98
|
var _rebaseScenario = [1, "/v2/ontologies/{0}/scenarios/{1}/rebase", 2];
|
|
99
99
|
function rebaseScenario($ctx, ...args) {
|
|
100
|
-
return
|
|
100
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _rebaseScenario, ...args);
|
|
101
101
|
}
|
|
102
102
|
var _listScenarioEditedObjectTypes = [0, "/v2/ontologies/{0}/scenarios/{1}/objectTypes/edited", 2];
|
|
103
103
|
function listScenarioEditedObjectTypes($ctx, ...args) {
|
|
104
|
-
return
|
|
104
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioEditedObjectTypes, ...args);
|
|
105
105
|
}
|
|
106
106
|
var _listScenarioEditedLinkTypes = [0, "/v2/ontologies/{0}/scenarios/{1}/objectTypes/{2}/outgoingLinkTypes/edited", 2];
|
|
107
107
|
function listScenarioEditedLinkTypes($ctx, ...args) {
|
|
108
|
-
return
|
|
108
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioEditedLinkTypes, ...args);
|
|
109
109
|
}
|
|
110
110
|
var _listScenarioEditedEntityTypes = [0, "/v2/ontologies/{0}/scenarios/{1}/editedEntityTypes", 2];
|
|
111
111
|
function listScenarioEditedEntityTypes($ctx, ...args) {
|
|
112
|
-
return
|
|
112
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioEditedEntityTypes, ...args);
|
|
113
113
|
}
|
|
114
114
|
var _listScenarioEditedObjects = [0, "/v2/ontologies/{0}/scenarios/{1}/objects/{2}/edited", 2];
|
|
115
115
|
function listScenarioEditedObjects($ctx, ...args) {
|
|
116
|
-
return
|
|
116
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioEditedObjects, ...args);
|
|
117
117
|
}
|
|
118
118
|
var _listScenarioEditedLinks = [0, "/v2/ontologies/{0}/scenarios/{1}/objects/{2}/links/{3}/edited", 2];
|
|
119
119
|
function listScenarioEditedLinks($ctx, ...args) {
|
|
120
|
-
return
|
|
120
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioEditedLinks, ...args);
|
|
121
121
|
}
|
|
122
122
|
var _listScenarioConflictingObjects = [0, "/v2/ontologies/{0}/scenarios/{1}/objects/{2}/conflicting", 2];
|
|
123
123
|
function listScenarioConflictingObjects($ctx, ...args) {
|
|
124
|
-
return
|
|
124
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _listScenarioConflictingObjects, ...args);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
127
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/OntologyV2.js
|
|
128
128
|
var _get3 = [0, "/v2/ontologies/{0}"];
|
|
129
129
|
function get3($ctx, ...args) {
|
|
130
|
-
return
|
|
130
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _get3, ...args);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
133
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/QueryType.js
|
|
134
134
|
var _get4 = [0, "/v2/ontologies/{0}/queryTypes/{1}", 2];
|
|
135
135
|
function get4($ctx, ...args) {
|
|
136
|
-
return
|
|
136
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _get4, ...args);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
139
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/TimeSeriesPropertyV2.js
|
|
140
140
|
var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
|
|
141
141
|
function getFirstPoint($ctx, ...args) {
|
|
142
|
-
return
|
|
142
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getFirstPoint, ...args);
|
|
143
143
|
}
|
|
144
144
|
var _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
|
|
145
145
|
function getLastPoint($ctx, ...args) {
|
|
146
|
-
return
|
|
146
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getLastPoint, ...args);
|
|
147
147
|
}
|
|
148
148
|
var _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3, , "*/*"];
|
|
149
149
|
function streamPoints($ctx, ...args) {
|
|
150
|
-
return
|
|
150
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
153
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.87.0/node_modules/@osdk/foundry.ontologies/build/esm/v2/public/TimeSeriesValueBankProperty.js
|
|
154
154
|
var _getLatestValue = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue", 2];
|
|
155
155
|
function getLatestValue($ctx, ...args) {
|
|
156
|
-
return
|
|
156
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _getLatestValue, ...args);
|
|
157
157
|
}
|
|
158
158
|
var _streamValues = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamValues", 3, , "*/*"];
|
|
159
159
|
function streamValues($ctx, ...args) {
|
|
160
|
-
return
|
|
160
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _streamValues, ...args);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// src/scenarios/ScenarioClient.ts
|
|
@@ -165,7 +165,7 @@ function isScenarioClient(value) {
|
|
|
165
165
|
return value != null && (typeof value === "object" || typeof value === "function") && typeof value.getScenarioReference === "function";
|
|
166
166
|
}
|
|
167
167
|
function buildScenarioClient(parent, scenarioRid) {
|
|
168
|
-
const ctx = parent[
|
|
168
|
+
const ctx = parent[chunkFRZNF77P_cjs.additionalContext];
|
|
169
169
|
if (ctx.transactionId != null) {
|
|
170
170
|
console.warn("withScenario / createScenario: the supplied client has an active transaction. Ignoring the transaction and scoping to the scenario instead.");
|
|
171
171
|
}
|
|
@@ -179,7 +179,7 @@ function buildScenarioClient(parent, scenarioRid) {
|
|
|
179
179
|
scenarioRid,
|
|
180
180
|
clientCacheKey: {}
|
|
181
181
|
});
|
|
182
|
-
const innerCtx = inner[
|
|
182
|
+
const innerCtx = inner[chunkFRZNF77P_cjs.additionalContext];
|
|
183
183
|
async function rebase() {
|
|
184
184
|
const ontologyRid = await innerCtx.ontologyRid;
|
|
185
185
|
await OntologyScenario_exports.rebaseScenario(innerCtx, ontologyRid, scenarioRid, {
|
|
@@ -368,7 +368,7 @@ async function toDataValue(value, client, parameterType) {
|
|
|
368
368
|
}
|
|
369
369
|
if (Array.isArray(value) || value instanceof Set) {
|
|
370
370
|
const values = Array.from(value);
|
|
371
|
-
if (values.some((dataValue) =>
|
|
371
|
+
if (values.some((dataValue) => chunkJPO5C5QG_cjs.isAttachmentUpload(dataValue) || chunkJPO5C5QG_cjs.isAttachmentFile(dataValue))) {
|
|
372
372
|
const converted = [];
|
|
373
373
|
for (const value2 of values) {
|
|
374
374
|
converted.push(await toDataValue(value2, client, parameterType));
|
|
@@ -378,43 +378,43 @@ async function toDataValue(value, client, parameterType) {
|
|
|
378
378
|
const promiseArray = Array.from(value, async (innerValue) => await toDataValue(innerValue, client, parameterType));
|
|
379
379
|
return Promise.all(promiseArray);
|
|
380
380
|
}
|
|
381
|
-
if (
|
|
382
|
-
const attachment = await
|
|
381
|
+
if (chunkJPO5C5QG_cjs.isAttachmentUpload(value)) {
|
|
382
|
+
const attachment = await chunkFRZNF77P_cjs.upload(client, value.data, {
|
|
383
383
|
filename: value.name
|
|
384
384
|
});
|
|
385
385
|
return await toDataValue(attachment.rid, client, parameterType);
|
|
386
386
|
}
|
|
387
|
-
if (
|
|
388
|
-
const attachment = await
|
|
387
|
+
if (chunkJPO5C5QG_cjs.isAttachmentFile(value)) {
|
|
388
|
+
const attachment = await chunkFRZNF77P_cjs.upload(client, value, {
|
|
389
389
|
filename: value.name
|
|
390
390
|
});
|
|
391
391
|
return await toDataValue(attachment.rid, client, parameterType);
|
|
392
392
|
}
|
|
393
|
-
if (
|
|
394
|
-
const mediaRef = await
|
|
393
|
+
if (chunkJPO5C5QG_cjs.isMediaUpload(value)) {
|
|
394
|
+
const mediaRef = await chunkB4UCZI2Z_cjs.MediaSet_exports.uploadMedia(client, value.data, {
|
|
395
395
|
filename: value.fileName
|
|
396
396
|
});
|
|
397
397
|
return await toDataValue(mediaRef, client, parameterType);
|
|
398
398
|
}
|
|
399
|
-
if (
|
|
399
|
+
if (chunkJPO5C5QG_cjs.isMedia(value)) {
|
|
400
400
|
return value.getMediaReference();
|
|
401
401
|
}
|
|
402
|
-
if (
|
|
402
|
+
if (chunkJPO5C5QG_cjs.isMediaReference(value)) {
|
|
403
403
|
return value;
|
|
404
404
|
}
|
|
405
405
|
if (isOntologyObjectV2(value)) {
|
|
406
406
|
return await toDataValue(value.__primaryKey, client, parameterType);
|
|
407
407
|
}
|
|
408
|
-
if (
|
|
408
|
+
if (chunkJPO5C5QG_cjs.isObjectSpecifiersObject(value)) {
|
|
409
409
|
return await toDataValue(value.$primaryKey, client, parameterType);
|
|
410
410
|
}
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
411
|
+
if (chunkFRZNF77P_cjs.isWireObjectSet(value)) {
|
|
412
|
+
return chunkFRZNF77P_cjs.normalizeInterfaceLinkSearchArounds(client, value);
|
|
413
413
|
}
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
414
|
+
if (chunkFRZNF77P_cjs.isObjectSet(value)) {
|
|
415
|
+
return chunkFRZNF77P_cjs.normalizeInterfaceLinkSearchArounds(client, chunkFRZNF77P_cjs.getWireObjectSet(value));
|
|
416
416
|
}
|
|
417
|
-
if (
|
|
417
|
+
if (chunkJPO5C5QG_cjs.isInterfaceActionParam(value)) {
|
|
418
418
|
return {
|
|
419
419
|
objectTypeApiName: value.$objectType,
|
|
420
420
|
primaryKeyValue: value.$primaryKey
|
|
@@ -458,7 +458,7 @@ function isTimeSeriesReference(value) {
|
|
|
458
458
|
|
|
459
459
|
// src/actions/applyAction.ts
|
|
460
460
|
async function applyAction(client, action, parameters, options = {}) {
|
|
461
|
-
const clientWithHeaders =
|
|
461
|
+
const clientWithHeaders = chunkFRZNF77P_cjs.addUserAgentHeader(client, action);
|
|
462
462
|
if (Array.isArray(parameters)) {
|
|
463
463
|
!(client.transactionId == null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Batch actions are not supported for staged edit functions or when supplying a transaction ID") : invariant4__default.default(false) : void 0;
|
|
464
464
|
const response = await applyBatch(clientWithHeaders, await client.ontologyRid, action.unsanitizedApiName ?? action.apiName, {
|
|
@@ -579,14 +579,14 @@ function remapActionResponse(response) {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
// ../../node_modules/.pnpm/@osdk+foundry.agents@2.
|
|
582
|
+
// ../../node_modules/.pnpm/@osdk+foundry.agents@2.87.0/node_modules/@osdk/foundry.agents/build/esm/v2/public/AgentSession.js
|
|
583
583
|
var _create = [1, "/v2/agents/agentSessions", 3];
|
|
584
584
|
function create($ctx, ...args) {
|
|
585
|
-
return
|
|
585
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _create, ...args);
|
|
586
586
|
}
|
|
587
587
|
var _sendEvent = [1, "/v2/agents/agentSessions/{0}/sendEvent", 3];
|
|
588
588
|
function sendEvent($ctx, ...args) {
|
|
589
|
-
return
|
|
589
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _sendEvent, ...args);
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
// src/object/Cache.ts
|
|
@@ -656,12 +656,12 @@ async function toDataValueAgents(value, client, desiredType, path = "") {
|
|
|
656
656
|
case "nullable":
|
|
657
657
|
return await toDataValueAgents(value, client, desiredType.wrappedType, path);
|
|
658
658
|
case "object": {
|
|
659
|
-
const primaryKey =
|
|
659
|
+
const primaryKey = chunkJPO5C5QG_cjs.isObjectSpecifiersObject(value) ? value.$primaryKey : value;
|
|
660
660
|
if (typeof primaryKey !== "string" && typeof primaryKey !== "number") {
|
|
661
661
|
throw new TypeError(`Invalid agent argument "${path}": expected an OSDK object, object identifier, or string or number primary key.`);
|
|
662
662
|
}
|
|
663
663
|
await checkOntology(client, desiredType.ontologyApiName, path);
|
|
664
|
-
const objectTypeApiName =
|
|
664
|
+
const objectTypeApiName = chunkJPO5C5QG_cjs.isObjectSpecifiersObject(value) ? value.$apiName : desiredType.objectTypeApiName;
|
|
665
665
|
const objectTypeDefinition = await client.ontologyProvider.getObjectDefinition(objectTypeApiName);
|
|
666
666
|
return {
|
|
667
667
|
ontologyRid: await client.ontologyRid,
|
|
@@ -675,11 +675,11 @@ async function toDataValueAgents(value, client, desiredType, path = "") {
|
|
|
675
675
|
if (typeof value === "string") {
|
|
676
676
|
return value;
|
|
677
677
|
}
|
|
678
|
-
if (!
|
|
678
|
+
if (!chunkFRZNF77P_cjs.isWireObjectSet(value) && !chunkFRZNF77P_cjs.isObjectSet(value)) {
|
|
679
679
|
throw new TypeError(`Invalid agent argument "${path}": expected an OSDK ObjectSet, object set definition, or object set RID string.`);
|
|
680
680
|
}
|
|
681
681
|
await checkOntology(client, desiredType.ontologyApiName, path);
|
|
682
|
-
return await
|
|
682
|
+
return await chunkHL7TDBEU_cjs.createTemporaryObjectSet(client, value);
|
|
683
683
|
}
|
|
684
684
|
case "list":
|
|
685
685
|
if (!Array.isArray(value)) {
|
|
@@ -784,7 +784,7 @@ async function createAgentSession(client, agent, args) {
|
|
|
784
784
|
if (client.branch != null) {
|
|
785
785
|
throw new Error("Agent sessions are not supported on branches");
|
|
786
786
|
}
|
|
787
|
-
const clientWithHeaders =
|
|
787
|
+
const clientWithHeaders = chunkFRZNF77P_cjs.addUserAgentHeader(client, agent);
|
|
788
788
|
const ontologyRid = await client.ontologyRid;
|
|
789
789
|
const agentDefinition = await client.ontologyProvider.getAgentDefinition(agent.apiName, agent.version);
|
|
790
790
|
const convertedArguments = await toDataValueAgents(args ?? {}, client, {
|
|
@@ -1031,11 +1031,11 @@ var MediaReferencePropertyImpl = class {
|
|
|
1031
1031
|
mediaItemRid,
|
|
1032
1032
|
token
|
|
1033
1033
|
} = this.#mediaReference.reference.mediaSetViewItem;
|
|
1034
|
-
const raw = await
|
|
1034
|
+
const raw = await chunkB4UCZI2Z_cjs.MediaSet_exports.metadata(this.#client, mediaSetRid, mediaItemRid, token ? {
|
|
1035
1035
|
ReadToken: token
|
|
1036
1036
|
} : void 0);
|
|
1037
1037
|
return {
|
|
1038
|
-
itemMetadata:
|
|
1038
|
+
itemMetadata: chunkFRZNF77P_cjs.validateMediaItemMetadata(raw)
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
getMediaReference() {
|
|
@@ -1463,8 +1463,8 @@ function get$link(holder) {
|
|
|
1463
1463
|
[objDef.primaryKeyApiName]: rawObj.$primaryKey
|
|
1464
1464
|
}).pivotTo(linkName);
|
|
1465
1465
|
const value = !linkDef.multiplicity ? {
|
|
1466
|
-
fetchOne: (options) =>
|
|
1467
|
-
fetchOneWithErrors: (options) =>
|
|
1466
|
+
fetchOne: (options) => chunkFRZNF77P_cjs.fetchSingle(client, objDef, options ?? {}, chunkFRZNF77P_cjs.getWireObjectSet(objectSet)),
|
|
1467
|
+
fetchOneWithErrors: (options) => chunkFRZNF77P_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkFRZNF77P_cjs.getWireObjectSet(objectSet))
|
|
1468
1468
|
} : objectSet;
|
|
1469
1469
|
return [linkName, value];
|
|
1470
1470
|
})));
|
|
@@ -1487,8 +1487,8 @@ function get$linkForInterface(holder) {
|
|
|
1487
1487
|
apiName: linkDef.targetTypeApiName
|
|
1488
1488
|
};
|
|
1489
1489
|
const value = !linkDef.multiplicity ? {
|
|
1490
|
-
fetchOne: (options) =>
|
|
1491
|
-
fetchOneWithErrors: (options) =>
|
|
1490
|
+
fetchOne: (options) => chunkFRZNF77P_cjs.fetchSingle(client, linkTargetDef, options ?? {}, chunkFRZNF77P_cjs.getWireObjectSet(objectSet)),
|
|
1491
|
+
fetchOneWithErrors: (options) => chunkFRZNF77P_cjs.fetchSingleWithErrors(client, linkTargetDef, options ?? {}, chunkFRZNF77P_cjs.getWireObjectSet(objectSet))
|
|
1492
1492
|
} : objectSet;
|
|
1493
1493
|
return [linkName, value];
|
|
1494
1494
|
})));
|
|
@@ -1533,7 +1533,7 @@ function isStruct(value) {
|
|
|
1533
1533
|
return typeof value === "object" && value != null && !Array.isArray(value);
|
|
1534
1534
|
}
|
|
1535
1535
|
function createOsdkInterface(underlying, interfaceDef) {
|
|
1536
|
-
const [objApiNamespace] =
|
|
1536
|
+
const [objApiNamespace] = chunkFRZNF77P_cjs.extractNamespace(interfaceDef.apiName);
|
|
1537
1537
|
const objDef = underlying[ObjectDefRef];
|
|
1538
1538
|
const underlyingProperties = underlying;
|
|
1539
1539
|
return Object.freeze(Object.defineProperties({}, {
|
|
@@ -1597,7 +1597,7 @@ function createOsdkInterface(underlying, interfaceDef) {
|
|
|
1597
1597
|
value: interfaceDef
|
|
1598
1598
|
},
|
|
1599
1599
|
...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
|
|
1600
|
-
const [apiNamespace, apiName] =
|
|
1600
|
+
const [apiNamespace, apiName] = chunkFRZNF77P_cjs.extractNamespace(p);
|
|
1601
1601
|
const exposedName = apiNamespace === objApiNamespace ? apiName : p;
|
|
1602
1602
|
const impl = objDef.interfaceImplementations?.[interfaceDef.apiName]?.[p];
|
|
1603
1603
|
if (impl != null) {
|
|
@@ -1646,7 +1646,7 @@ function remapPropertySecuritiesForInterface(underlyingSecurities, objDef, inter
|
|
|
1646
1646
|
}
|
|
1647
1647
|
const interfacePropName = inverseMap[objPropName];
|
|
1648
1648
|
if (interfacePropName == null) continue;
|
|
1649
|
-
const [apiNamespace, apiName] =
|
|
1649
|
+
const [apiNamespace, apiName] = chunkFRZNF77P_cjs.extractNamespace(interfacePropName);
|
|
1650
1650
|
const key = apiNamespace === objApiNamespace ? apiName : interfacePropName;
|
|
1651
1651
|
remapped[key] = underlyingSecurities[objPropName];
|
|
1652
1652
|
}
|
|
@@ -1739,7 +1739,7 @@ var basePropDefs = {
|
|
|
1739
1739
|
$objectSpecifier: {
|
|
1740
1740
|
get() {
|
|
1741
1741
|
const rawObj = this[UnderlyingOsdkObject];
|
|
1742
|
-
return
|
|
1742
|
+
return chunkJPO5C5QG_cjs.createObjectSpecifierFromPrimaryKey(this[ObjectDefRef], rawObj.$primaryKey);
|
|
1743
1743
|
},
|
|
1744
1744
|
enumerable: true
|
|
1745
1745
|
},
|
|
@@ -1811,9 +1811,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
|
|
|
1811
1811
|
switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
|
|
1812
1812
|
case "attachment":
|
|
1813
1813
|
if (Array.isArray(rawValue)) {
|
|
1814
|
-
return rawValue.map((a) =>
|
|
1814
|
+
return rawValue.map((a) => chunkFRZNF77P_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1815
1815
|
} else {
|
|
1816
|
-
return
|
|
1816
|
+
return chunkFRZNF77P_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1817
1817
|
}
|
|
1818
1818
|
default:
|
|
1819
1819
|
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant4__default.default(false) ;
|
|
@@ -1829,9 +1829,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
if (propDef.type === "attachment") {
|
|
1831
1831
|
if (Array.isArray(rawValue)) {
|
|
1832
|
-
return rawValue.map((a) =>
|
|
1832
|
+
return rawValue.map((a) => chunkFRZNF77P_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
|
|
1833
1833
|
}
|
|
1834
|
-
return
|
|
1834
|
+
return chunkFRZNF77P_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
|
|
1835
1835
|
}
|
|
1836
1836
|
if (propDef.type === "cipherText") {
|
|
1837
1837
|
return new CipherTextPropertyImpl({
|
|
@@ -2037,10 +2037,10 @@ async function loadActionMetadata(client, actionType) {
|
|
|
2037
2037
|
return wireActionTypeV2ToSdkActionMetadata(r);
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
|
-
// ../../node_modules/.pnpm/@osdk+foundry.agents@2.
|
|
2040
|
+
// ../../node_modules/.pnpm/@osdk+foundry.agents@2.87.0/node_modules/@osdk/foundry.agents/build/esm/v2/public/AgentDefinitionVersion.js
|
|
2041
2041
|
var _get5 = [0, "/v2/agents/agentDefinitions/{0}/versions/{1}", 2];
|
|
2042
2042
|
function get5($ctx, ...args) {
|
|
2043
|
-
return
|
|
2043
|
+
return chunkB4UCZI2Z_cjs.foundryPlatformFetch($ctx, _get5, ...args);
|
|
2044
2044
|
}
|
|
2045
2045
|
|
|
2046
2046
|
// src/ontology/loadAgentMetadata.ts
|
|
@@ -2145,11 +2145,11 @@ var createStandardOntologyProviderFactory = (client) => {
|
|
|
2145
2145
|
};
|
|
2146
2146
|
|
|
2147
2147
|
// src/util/UserAgent.ts
|
|
2148
|
-
var USER_AGENT = `osdk-client/${"2.87.0
|
|
2149
|
-
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.87.0
|
|
2148
|
+
var USER_AGENT = `osdk-client/${"2.87.0"}`;
|
|
2149
|
+
var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.87.0"}`;
|
|
2150
2150
|
|
|
2151
2151
|
// src/createMinimalClient.ts
|
|
2152
|
-
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory =
|
|
2152
|
+
function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkFRZNF77P_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
|
|
2153
2153
|
if (process.env.NODE_ENV !== "production") {
|
|
2154
2154
|
try {
|
|
2155
2155
|
new URL(baseUrl);
|
|
@@ -2838,7 +2838,7 @@ var ActionInvoker = class {
|
|
|
2838
2838
|
};
|
|
2839
2839
|
var QueryInvoker = class {
|
|
2840
2840
|
constructor(clientCtx, queryDef) {
|
|
2841
|
-
this.executeFunction =
|
|
2841
|
+
this.executeFunction = chunkJPO5C5QG_cjs.applyQuery.bind(void 0, clientCtx, queryDef);
|
|
2842
2842
|
}
|
|
2843
2843
|
};
|
|
2844
2844
|
var AgentClient = class {
|
|
@@ -2862,7 +2862,7 @@ function createClientInternal(objectSetFactory, transactionRid, flushEdits, scen
|
|
|
2862
2862
|
ontologyRid
|
|
2863
2863
|
}, baseUrl, tokenProvider, {
|
|
2864
2864
|
...options,
|
|
2865
|
-
logger: options?.logger ?? new
|
|
2865
|
+
logger: options?.logger ?? new chunkHL7TDBEU_cjs.MinimalLogger(),
|
|
2866
2866
|
transactionId: transactionRid,
|
|
2867
2867
|
flushEdits,
|
|
2868
2868
|
scenarioRid,
|
|
@@ -2888,7 +2888,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2888
2888
|
async *executeStreamingFunction(query, params) {
|
|
2889
2889
|
const {
|
|
2890
2890
|
applyStreamingQuery
|
|
2891
|
-
} = await import('./applyStreamingQuery-
|
|
2891
|
+
} = await import('./applyStreamingQuery-OFE276IY.cjs');
|
|
2892
2892
|
yield* applyStreamingQuery(clientCtx, query, params);
|
|
2893
2893
|
}
|
|
2894
2894
|
};
|
|
@@ -2915,16 +2915,16 @@ function createClientFromContext(clientCtx) {
|
|
|
2915
2915
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
|
|
2916
2916
|
return {
|
|
2917
2917
|
fetchOneByRid: async (objectType, rid, options) => {
|
|
2918
|
-
return await
|
|
2918
|
+
return await chunkFRZNF77P_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
|
|
2919
2919
|
}
|
|
2920
2920
|
};
|
|
2921
2921
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
|
|
2922
2922
|
return {
|
|
2923
2923
|
fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
|
|
2924
|
-
return await
|
|
2924
|
+
return await chunkFRZNF77P_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
|
|
2925
2925
|
},
|
|
2926
2926
|
fetchPageByRidNoType: async (rids, options) => {
|
|
2927
|
-
return await
|
|
2927
|
+
return await chunkFRZNF77P_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
|
|
2928
2928
|
}
|
|
2929
2929
|
};
|
|
2930
2930
|
case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet.name:
|
|
@@ -2944,7 +2944,7 @@ function createClientFromContext(clientCtx) {
|
|
|
2944
2944
|
transformAndWait: async (args) => {
|
|
2945
2945
|
const {
|
|
2946
2946
|
transformAndWaitInternal
|
|
2947
|
-
} = await import('./transformAndWaitInternal-
|
|
2947
|
+
} = await import('./transformAndWaitInternal-J3XOTTQ2.cjs');
|
|
2948
2948
|
const {
|
|
2949
2949
|
mediaSetRid,
|
|
2950
2950
|
mediaItemRid,
|
|
@@ -2962,13 +2962,13 @@ function createClientFromContext(clientCtx) {
|
|
|
2962
2962
|
const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
|
|
2963
2963
|
const symbolClientContext2 = "__osdkClientContext";
|
|
2964
2964
|
const client = Object.defineProperties(clientFn, {
|
|
2965
|
-
[
|
|
2965
|
+
[chunkB4UCZI2Z_cjs.symbolClientContext]: {
|
|
2966
2966
|
value: clientCtx
|
|
2967
2967
|
},
|
|
2968
2968
|
[symbolClientContext2]: {
|
|
2969
2969
|
value: clientCtx
|
|
2970
2970
|
},
|
|
2971
|
-
[
|
|
2971
|
+
[chunkFRZNF77P_cjs.additionalContext]: {
|
|
2972
2972
|
value: clientCtx
|
|
2973
2973
|
},
|
|
2974
2974
|
fetchMetadata: {
|
|
@@ -2977,9 +2977,9 @@ function createClientFromContext(clientCtx) {
|
|
|
2977
2977
|
});
|
|
2978
2978
|
return client;
|
|
2979
2979
|
}
|
|
2980
|
-
var createClient = createClientInternal.bind(void 0,
|
|
2981
|
-
var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(
|
|
2982
|
-
var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(
|
|
2980
|
+
var createClient = createClientInternal.bind(void 0, chunkFRZNF77P_cjs.createObjectSet, void 0, void 0, void 0, void 0);
|
|
2981
|
+
var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkFRZNF77P_cjs.createObjectSet, transactionRid, flushEdits, void 0, void 0, ...args);
|
|
2982
|
+
var createClientWithSubscriptionConnection = (createSubscriptionConnection, ...args) => createClientInternal(chunkFRZNF77P_cjs.createObjectSet, void 0, void 0, void 0, createSubscriptionConnection, ...args);
|
|
2983
2983
|
function createWithRid(rids) {
|
|
2984
2984
|
const withRid = {
|
|
2985
2985
|
type: "static",
|
|
@@ -3004,5 +3004,5 @@ exports.createClientFromContext = createClientFromContext;
|
|
|
3004
3004
|
exports.createClientWithSubscriptionConnection = createClientWithSubscriptionConnection;
|
|
3005
3005
|
exports.createClientWithTransaction = createClientWithTransaction;
|
|
3006
3006
|
exports.createOsdkObject = createOsdkObject;
|
|
3007
|
-
//# sourceMappingURL=chunk-
|
|
3008
|
-
//# sourceMappingURL=chunk-
|
|
3007
|
+
//# sourceMappingURL=chunk-VK37CUQE.cjs.map
|
|
3008
|
+
//# sourceMappingURL=chunk-VK37CUQE.cjs.map
|