@osdk/client 2.23.0 → 2.23.1-beta.2
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 +27 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/MinimalClientContext.js.map +1 -1
- package/build/browser/actions/applyAction.js +3 -1
- package/build/browser/actions/applyAction.js.map +1 -1
- package/build/browser/createClient.js +7 -3
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createMinimalClient.js +10 -0
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +3 -0
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js +30 -10
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/browser/object/aggregate.js +2 -1
- package/build/browser/object/aggregate.js.map +1 -1
- package/build/browser/object/fetchPage.js +6 -3
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/objectSet/createObjectSet.js +3 -0
- package/build/browser/objectSet/createObjectSet.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js +2 -0
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/queries/applyQuery.js +1 -0
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/scenarios/ScenarioClient.js +202 -0
- package/build/browser/scenarios/ScenarioClient.js.map +1 -0
- package/build/browser/scenarios/createScenario.js +55 -0
- package/build/browser/scenarios/createScenario.js.map +1 -0
- package/build/browser/scenarios/withScenario.js +42 -0
- package/build/browser/scenarios/withScenario.js.map +1 -0
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/util/toDataValue.js +4 -0
- package/build/browser/util/toDataValue.js.map +1 -1
- package/build/cjs/MediaReferenceProperty-CBPMMD73.cjs +22 -0
- package/build/cjs/{MediaReferenceProperty-Y6R5ASNW.cjs.map → MediaReferenceProperty-CBPMMD73.cjs.map} +1 -1
- package/build/cjs/{applyStreamingQuery-F77N7EOP.cjs → applyStreamingQuery-G2PA2SM7.cjs} +11 -11
- package/build/cjs/{applyStreamingQuery-F77N7EOP.cjs.map → applyStreamingQuery-G2PA2SM7.cjs.map} +1 -1
- package/build/cjs/{chunk-KILPUOJP.cjs → chunk-BV6P25ZM.cjs} +51 -21
- package/build/cjs/chunk-BV6P25ZM.cjs.map +1 -0
- package/build/cjs/{chunk-3DMI6Z4B.cjs → chunk-IWAZIBOK.cjs} +75 -75
- package/build/cjs/{chunk-3DMI6Z4B.cjs.map → chunk-IWAZIBOK.cjs.map} +1 -1
- package/build/cjs/{chunk-MURBAIS4.cjs → chunk-NFD4IH4H.cjs} +17 -16
- package/build/cjs/chunk-NFD4IH4H.cjs.map +1 -0
- package/build/cjs/{chunk-5WD6SB7R.cjs → chunk-WBINM4RT.cjs} +297 -100
- package/build/cjs/chunk-WBINM4RT.cjs.map +1 -0
- package/build/cjs/{chunk-DOXHU27E.cjs → chunk-YP43NHIA.cjs} +3 -3
- package/build/cjs/{chunk-DOXHU27E.cjs.map → chunk-YP43NHIA.cjs.map} +1 -1
- package/build/cjs/{chunk-ZPLXXOU6.cjs → chunk-ZFNHWPQA.cjs} +3 -3
- package/build/cjs/{chunk-ZPLXXOU6.cjs.map → chunk-ZFNHWPQA.cjs.map} +1 -1
- package/build/cjs/index.cjs +13 -13
- package/build/cjs/public/experimental.cjs +8 -8
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/observable.cjs +7 -7
- package/build/cjs/public/unstable-do-not-use.cjs +37 -12
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +167 -4
- package/build/cjs/{transformAndWaitInternal-F3UV33FN.cjs → transformAndWaitInternal-2GORZXPK.cjs} +6 -6
- package/build/cjs/{transformAndWaitInternal-F3UV33FN.cjs.map → transformAndWaitInternal-2GORZXPK.cjs.map} +1 -1
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/MinimalClientContext.js.map +1 -1
- package/build/esm/actions/applyAction.js +3 -1
- package/build/esm/actions/applyAction.js.map +1 -1
- package/build/esm/createClient.js +7 -3
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createMinimalClient.js +10 -0
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +3 -0
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js +30 -10
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/esm/object/aggregate.js +2 -1
- package/build/esm/object/aggregate.js.map +1 -1
- package/build/esm/object/fetchPage.js +6 -3
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/objectSet/createObjectSet.js +3 -0
- package/build/esm/objectSet/createObjectSet.js.map +1 -1
- package/build/esm/public/unstable-do-not-use.js +2 -0
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/queries/applyQuery.js +1 -0
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/scenarios/ScenarioClient.js +202 -0
- package/build/esm/scenarios/ScenarioClient.js.map +1 -0
- package/build/esm/scenarios/createScenario.js +55 -0
- package/build/esm/scenarios/createScenario.js.map +1 -0
- package/build/esm/scenarios/withScenario.js +42 -0
- package/build/esm/scenarios/withScenario.js.map +1 -0
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/util/toDataValue.js +4 -0
- package/build/esm/util/toDataValue.js.map +1 -1
- package/build/types/Client.d.ts +1 -1
- package/build/types/MinimalClientContext.d.ts +1 -0
- package/build/types/MinimalClientContext.d.ts.map +1 -1
- package/build/types/actions/applyAction.d.ts.map +1 -1
- package/build/types/createClient.d.ts.map +1 -1
- package/build/types/public/unstable-do-not-use.d.ts +3 -0
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/build/types/queries/applyQuery.d.ts.map +1 -1
- package/build/types/scenarios/ScenarioClient.d.ts +131 -0
- package/build/types/scenarios/ScenarioClient.d.ts.map +1 -0
- package/build/types/scenarios/createScenario.d.ts +21 -0
- package/build/types/scenarios/createScenario.d.ts.map +1 -0
- package/build/types/scenarios/withScenario.d.ts +23 -0
- package/build/types/scenarios/withScenario.d.ts.map +1 -0
- package/package.json +14 -14
- package/build/cjs/MediaReferenceProperty-Y6R5ASNW.cjs +0 -22
- package/build/cjs/chunk-5WD6SB7R.cjs.map +0 -1
- package/build/cjs/chunk-KILPUOJP.cjs.map +0 -1
- package/build/cjs/chunk-MURBAIS4.cjs.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { buildScenarioClient } from "./ScenarioClient.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Attach to an existing ontology scenario. Synchronous — no network call is made. The returned client scopes all
|
|
21
|
+
* subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.
|
|
22
|
+
*
|
|
23
|
+
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
24
|
+
* from. Throws at runtime if the client is already scoped to a scenario or transaction.
|
|
25
|
+
* @param scenarioRid - The RID of the scenario to attach to.
|
|
26
|
+
* @returns a {@link ScenarioClient} bound to `scenarioRid`.
|
|
27
|
+
*
|
|
28
|
+
* @beta This is an experimental, unstable feature subject to change.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { withScenario } from "@osdk/client/unstable-do-not-use";
|
|
33
|
+
*
|
|
34
|
+
* const scenario = withScenario(client, "ri.actions..scenario.abc");
|
|
35
|
+
* const page = await scenario(Doctor).fetchPage();
|
|
36
|
+
* await scenario(Schedule).applyAction({ doctor: page.data[0], shift: "AM" });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export function withScenario(client, scenarioRid) {
|
|
40
|
+
return buildScenarioClient(client, scenarioRid);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=withScenario.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withScenario.js","names":["buildScenarioClient","withScenario","client","scenarioRid"],"sources":["withScenario.ts"],"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 type { Client } from \"../Client.js\";\nimport { buildScenarioClient, type ScenarioClient } 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 or transaction.\n * @param scenarioRid - The RID of the scenario to attach to.\n * @returns a {@link 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(\n client: Client,\n scenarioRid: string,\n): ScenarioClient {\n return buildScenarioClient(client, scenarioRid);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,mBAAmB,QAA6B,qBAAqB;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAC1BC,MAAc,EACdC,WAAmB,EACH;EAChB,OAAOH,mBAAmB,CAACE,MAAM,EAAEC,WAAW,CAAC;AACjD","ignoreList":[]}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export const USER_AGENT = `osdk-client/${"2.23.
|
|
18
|
-
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.23.
|
|
17
|
+
export const USER_AGENT = `osdk-client/${"2.23.1-beta.2"}`;
|
|
18
|
+
export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.23.1-beta.2"}`;
|
|
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 =\n `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 =\n `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,gCAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,2CAAuD","ignoreList":[]}
|
|
@@ -19,6 +19,7 @@ import * as Attachments from "@osdk/foundry.ontologies/Attachment";
|
|
|
19
19
|
import { isAttachmentFile, isAttachmentUpload } from "../object/AttachmentUpload.js";
|
|
20
20
|
import { isMedia, isMediaReference, isMediaUpload } from "../object/mediaUpload.js";
|
|
21
21
|
import { getWireObjectSet, isObjectSet } from "../objectSet/createObjectSet.js";
|
|
22
|
+
import { isScenarioClient } from "../scenarios/ScenarioClient.js";
|
|
22
23
|
import { isInterfaceActionParam } from "./interfaceUtils.js";
|
|
23
24
|
import { isObjectSpecifiersObject } from "./isObjectSpecifiersObject.js";
|
|
24
25
|
import { isOntologyObjectV2 } from "./isOntologyObjectV2.js";
|
|
@@ -103,6 +104,9 @@ export async function toDataValue(value, client, actionMetadata) {
|
|
|
103
104
|
primaryKeyValue: value.$primaryKey
|
|
104
105
|
};
|
|
105
106
|
}
|
|
107
|
+
if (isScenarioClient(value)) {
|
|
108
|
+
return value.getScenarioReference().scenarioRid;
|
|
109
|
+
}
|
|
106
110
|
|
|
107
111
|
// TODO (during queries implementation)
|
|
108
112
|
// two dimensional aggregation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toDataValue.js","names":["MediaSets","Attachments","isAttachmentFile","isAttachmentUpload","isMedia","isMediaReference","isMediaUpload","getWireObjectSet","isObjectSet","isInterfaceActionParam","isObjectSpecifiersObject","isOntologyObjectV2","isPoint","isWireObjectSet","toDataValue","value","client","actionMetadata","Array","isArray","Set","values","from","some","dataValue","converted","push","promiseArray","innerValue","Promise","all","attachment","upload","data","filename","name","rid","mediaRef","uploadMedia","fileName","preview","getMediaReference","__primaryKey","$primaryKey","coordinates","objectTypeApiName","$objectType","primaryKeyValue","Object","entries","reduce","promisedAcc","key","structValue","acc","resolve"],"sources":["toDataValue.ts"],"sourcesContent":["/*\n * Copyright 2024 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 type { ActionMetadata } from \"@osdk/api\";\nimport { MediaSets } from \"@osdk/foundry.mediasets\";\nimport { type DataValue } from \"@osdk/foundry.ontologies\";\nimport * as Attachments from \"@osdk/foundry.ontologies/Attachment\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\nimport {\n isAttachmentFile,\n isAttachmentUpload,\n} from \"../object/AttachmentUpload.js\";\nimport {\n isMedia,\n isMediaReference,\n isMediaUpload,\n} from \"../object/mediaUpload.js\";\nimport { getWireObjectSet, isObjectSet } from \"../objectSet/createObjectSet.js\";\nimport { isInterfaceActionParam } from \"./interfaceUtils.js\";\nimport { isObjectSpecifiersObject } from \"./isObjectSpecifiersObject.js\";\nimport { isOntologyObjectV2 } from \"./isOntologyObjectV2.js\";\nimport { isPoint } from \"./isPoint.js\";\nimport { isWireObjectSet } from \"./WireObjectSet.js\";\n\n/**\n * Marshall user-facing data into the wire DataValue type\n *\n * @see DataValue for the expected payloads\n * @internal\n */\nexport async function toDataValue(\n value: unknown,\n client: MinimalClient,\n actionMetadata: ActionMetadata,\n): Promise<DataValue> {\n if (value == null) {\n // typeof null is 'object' so do this first\n // Sending null over the wire clears the data, whereas undefined is dropped at request time.\n return value;\n }\n\n // arrays and sets are both sent over the wire as arrays\n if (Array.isArray(value) || value instanceof Set) {\n const values = Array.from(value);\n if (\n values.some((dataValue) =>\n isAttachmentUpload(dataValue) || isAttachmentFile(dataValue)\n )\n ) {\n const converted = [];\n for (const value of values) {\n converted.push(await toDataValue(value, client, actionMetadata));\n }\n return converted;\n }\n const promiseArray = Array.from(\n value,\n async (innerValue) =>\n await toDataValue(innerValue, client, actionMetadata),\n );\n return Promise.all(promiseArray);\n }\n\n // For uploads, we need to upload ourselves first to get the RID of the attachment\n if (isAttachmentUpload(value)) {\n const attachment = await Attachments.upload(\n client,\n value.data,\n {\n filename: value.name,\n },\n );\n return await toDataValue(attachment.rid, client, actionMetadata);\n }\n\n if (isAttachmentFile(value)) {\n const attachment = await Attachments.upload(\n client,\n value,\n {\n filename: value.name as string,\n },\n );\n return await toDataValue(attachment.rid, client, actionMetadata);\n }\n\n if (isMediaUpload(value)) {\n const mediaRef = await MediaSets.uploadMedia(\n client,\n value.data,\n {\n filename: value.fileName,\n preview: true,\n },\n );\n return await toDataValue(mediaRef, client, actionMetadata);\n }\n\n if (isMedia(value)) {\n return value.getMediaReference();\n }\n\n if (isMediaReference(value)) {\n return value;\n }\n\n // objects just send the JSON'd primaryKey\n if (isOntologyObjectV2(value)) {\n return await toDataValue(value.__primaryKey, client, actionMetadata);\n }\n\n if (isObjectSpecifiersObject(value)) {\n return await toDataValue(value.$primaryKey, client, actionMetadata);\n }\n\n if (isPoint(value)) {\n return await toDataValue(\n `${value.coordinates[1]},${value.coordinates[0]}`,\n client,\n actionMetadata,\n );\n }\n\n // object set (the rid as a string (passes through the last return), or the ObjectSet definition directly)\n if (isWireObjectSet(value)) {\n return value;\n }\n if (isObjectSet(value)) {\n return getWireObjectSet(value);\n }\n\n if (isInterfaceActionParam(value)) {\n return {\n objectTypeApiName: value.$objectType,\n primaryKeyValue: value.$primaryKey,\n };\n }\n\n // TODO (during queries implementation)\n // two dimensional aggregation\n // three dimensional aggregation\n\n // struct\n if (typeof value === \"object\") {\n return Object.entries(value).reduce(\n async (promisedAcc, [key, structValue]) => {\n const acc = await promisedAcc;\n acc[key] = await toDataValue(structValue, client, actionMetadata);\n return acc;\n },\n Promise.resolve({} as { [key: string]: DataValue }),\n );\n }\n\n // expected to pass through - boolean, byte, date, decimal, float, double, integer, long, short, string, timestamp, object type reference\n return value;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,SAAS,QAAQ,yBAAyB;AAEnD,OAAO,KAAKC,WAAW,MAAM,qCAAqC;AAElE,SACEC,gBAAgB,EAChBC,kBAAkB,QACb,+BAA+B;AACtC,SACEC,OAAO,EACPC,gBAAgB,EAChBC,aAAa,QACR,0BAA0B;AACjC,SAASC,gBAAgB,EAAEC,WAAW,QAAQ,iCAAiC;AAC/E,SAASC,sBAAsB,QAAQ,qBAAqB;AAC5D,SAASC,wBAAwB,QAAQ,+BAA+B;AACxE,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,eAAe,QAAQ,oBAAoB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,WAAWA,CAC/BC,KAAc,EACdC,MAAqB,EACrBC,cAA8B,EACV;EACpB,IAAIF,KAAK,IAAI,IAAI,EAAE;IACjB;IACA;IACA,OAAOA,KAAK;EACd;;EAEA;EACA,IAAIG,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,IAAIA,KAAK,YAAYK,GAAG,EAAE;IAChD,MAAMC,MAAM,GAAGH,KAAK,CAACI,IAAI,CAACP,KAAK,CAAC;IAChC,IACEM,MAAM,CAACE,IAAI,CAAEC,SAAS,
|
|
1
|
+
{"version":3,"file":"toDataValue.js","names":["MediaSets","Attachments","isAttachmentFile","isAttachmentUpload","isMedia","isMediaReference","isMediaUpload","getWireObjectSet","isObjectSet","isScenarioClient","isInterfaceActionParam","isObjectSpecifiersObject","isOntologyObjectV2","isPoint","isWireObjectSet","toDataValue","value","client","actionMetadata","Array","isArray","Set","values","from","some","dataValue","converted","push","promiseArray","innerValue","Promise","all","attachment","upload","data","filename","name","rid","mediaRef","uploadMedia","fileName","preview","getMediaReference","__primaryKey","$primaryKey","coordinates","objectTypeApiName","$objectType","primaryKeyValue","getScenarioReference","scenarioRid","Object","entries","reduce","promisedAcc","key","structValue","acc","resolve"],"sources":["toDataValue.ts"],"sourcesContent":["/*\n * Copyright 2024 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 type { ActionMetadata } from \"@osdk/api\";\nimport { MediaSets } from \"@osdk/foundry.mediasets\";\nimport { type DataValue } from \"@osdk/foundry.ontologies\";\nimport * as Attachments from \"@osdk/foundry.ontologies/Attachment\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\nimport {\n isAttachmentFile,\n isAttachmentUpload,\n} from \"../object/AttachmentUpload.js\";\nimport {\n isMedia,\n isMediaReference,\n isMediaUpload,\n} from \"../object/mediaUpload.js\";\nimport { getWireObjectSet, isObjectSet } from \"../objectSet/createObjectSet.js\";\nimport { isScenarioClient } from \"../scenarios/ScenarioClient.js\";\nimport { isInterfaceActionParam } from \"./interfaceUtils.js\";\nimport { isObjectSpecifiersObject } from \"./isObjectSpecifiersObject.js\";\nimport { isOntologyObjectV2 } from \"./isOntologyObjectV2.js\";\nimport { isPoint } from \"./isPoint.js\";\nimport { isWireObjectSet } from \"./WireObjectSet.js\";\n\n/**\n * Marshall user-facing data into the wire DataValue type\n *\n * @see DataValue for the expected payloads\n * @internal\n */\nexport async function toDataValue(\n value: unknown,\n client: MinimalClient,\n actionMetadata: ActionMetadata,\n): Promise<DataValue> {\n if (value == null) {\n // typeof null is 'object' so do this first\n // Sending null over the wire clears the data, whereas undefined is dropped at request time.\n return value;\n }\n\n // arrays and sets are both sent over the wire as arrays\n if (Array.isArray(value) || value instanceof Set) {\n const values = Array.from(value);\n if (\n values.some((dataValue) =>\n isAttachmentUpload(dataValue) || isAttachmentFile(dataValue)\n )\n ) {\n const converted = [];\n for (const value of values) {\n converted.push(await toDataValue(value, client, actionMetadata));\n }\n return converted;\n }\n const promiseArray = Array.from(\n value,\n async (innerValue) =>\n await toDataValue(innerValue, client, actionMetadata),\n );\n return Promise.all(promiseArray);\n }\n\n // For uploads, we need to upload ourselves first to get the RID of the attachment\n if (isAttachmentUpload(value)) {\n const attachment = await Attachments.upload(\n client,\n value.data,\n {\n filename: value.name,\n },\n );\n return await toDataValue(attachment.rid, client, actionMetadata);\n }\n\n if (isAttachmentFile(value)) {\n const attachment = await Attachments.upload(\n client,\n value,\n {\n filename: value.name as string,\n },\n );\n return await toDataValue(attachment.rid, client, actionMetadata);\n }\n\n if (isMediaUpload(value)) {\n const mediaRef = await MediaSets.uploadMedia(\n client,\n value.data,\n {\n filename: value.fileName,\n preview: true,\n },\n );\n return await toDataValue(mediaRef, client, actionMetadata);\n }\n\n if (isMedia(value)) {\n return value.getMediaReference();\n }\n\n if (isMediaReference(value)) {\n return value;\n }\n\n // objects just send the JSON'd primaryKey\n if (isOntologyObjectV2(value)) {\n return await toDataValue(value.__primaryKey, client, actionMetadata);\n }\n\n if (isObjectSpecifiersObject(value)) {\n return await toDataValue(value.$primaryKey, client, actionMetadata);\n }\n\n if (isPoint(value)) {\n return await toDataValue(\n `${value.coordinates[1]},${value.coordinates[0]}`,\n client,\n actionMetadata,\n );\n }\n\n // object set (the rid as a string (passes through the last return), or the ObjectSet definition directly)\n if (isWireObjectSet(value)) {\n return value;\n }\n if (isObjectSet(value)) {\n return getWireObjectSet(value);\n }\n\n if (isInterfaceActionParam(value)) {\n return {\n objectTypeApiName: value.$objectType,\n primaryKeyValue: value.$primaryKey,\n };\n }\n\n if (isScenarioClient(value)) {\n return value.getScenarioReference().scenarioRid;\n }\n\n // TODO (during queries implementation)\n // two dimensional aggregation\n // three dimensional aggregation\n\n // struct\n if (typeof value === \"object\") {\n return Object.entries(value).reduce(\n async (promisedAcc, [key, structValue]) => {\n const acc = await promisedAcc;\n acc[key] = await toDataValue(structValue, client, actionMetadata);\n return acc;\n },\n Promise.resolve({} as { [key: string]: DataValue }),\n );\n }\n\n // expected to pass through - boolean, byte, date, decimal, float, double, integer, long, short, string, timestamp, object type reference\n return value;\n}\n"],"mappings":"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","ignoreList":[]}
|
package/build/types/Client.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface Client extends SharedClient, OldSharedClient {
|
|
|
81
81
|
*/
|
|
82
82
|
fetchMetadata<Q extends (ObjectTypeDefinition | InterfaceDefinition | ActionDefinition<any> | QueryDefinition<any>)>(o: Q): Promise<Q extends ObjectTypeDefinition ? ObjectMetadata : Q extends InterfaceDefinition ? InterfaceMetadata : Q extends ActionDefinition<any> ? ActionMetadata : Q extends QueryDefinition<any> ? QueryMetadata : never>;
|
|
83
83
|
}
|
|
84
|
-
declare const MaxOsdkVersion = "2.23.
|
|
84
|
+
declare const MaxOsdkVersion = "2.23.1";
|
|
85
85
|
export type MaxOsdkVersion = typeof MaxOsdkVersion;
|
|
86
86
|
declare const ErrorMessage: unique symbol;
|
|
87
87
|
export {};
|
|
@@ -15,6 +15,7 @@ export interface MinimalClient extends SharedClientContext {
|
|
|
15
15
|
branch?: string;
|
|
16
16
|
transactionId?: string;
|
|
17
17
|
flushEdits?: () => Promise<void>;
|
|
18
|
+
scenarioRid?: string;
|
|
18
19
|
clientCacheKey: ClientCacheKey;
|
|
19
20
|
requestContext: RequestContext;
|
|
20
21
|
narrowTypeInterfaceOrObjectMapping: Record<string, "object" | "interface">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,cAAc,WAAY;AACxC,cAAc,2BAA2B,sBAAuB;AAGhE,cAAc,wBAAwB,gCAAiC;AAEvE,cAAcA;AAEd,YAAY,iBAAiB,CAAE,IAAG;WAAY;AAAY;AAE1D,YAAY,iBAAiB;CAC3B;AACD;AAED,iBAAiB,sBAAsB,oBAAoB;CACzD,sBAAsB;CACtB,kBAAkB;CAClB,SAAS;CACT;CAMA;CACA,mBAAmB;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,cAAc,WAAY;AACxC,cAAc,2BAA2B,sBAAuB;AAGhE,cAAc,wBAAwB,gCAAiC;AAEvE,cAAcA;AAEd,YAAY,iBAAiB,CAAE,IAAG;WAAY;AAAY;AAE1D,YAAY,iBAAiB;CAC3B;AACD;AAED,iBAAiB,sBAAsB,oBAAoB;CACzD,sBAAsB;CACtB,kBAAkB;CAClB,SAAS;CACT;CAMA;CACA,mBAAmB;CACnB;CAEA,gBAAgB;CAChB,gBAAgB;CAChB,oCAAoC,eAAe,WAAW;AAC/D;AAED,YAAY,sBAAsB;CAChC,UAAU;CACV,UAAU;AACX;AAED,iBAAiB,sBAAsB;CACrC,sBAAsB;AACvB","names":["tag: unique symbol"],"sources":["../../src/MinimalClientContext.ts"],"version":3,"file":"MinimalClientContext.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,oBACA,yBACA,uBAAuB,2BACvB,6BACK,WAAY;AACnB,cACE,4BAEA,iCACK,0BAA2B;AAGlC,cAAc,qBAAqB,4BAA6B;AAGhE,cAAc,YAAY,iBAAkB;AAC5C,cAAc,qBAAqB,0BAA2B;AAC9D,cAAc,iBAAiB,sBAAuB;KAIjD,SAAS,YAAY,KAAK,eAAe,gBAAgB,WAC5D,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACrD,YAAY,WAAW,eACvB,IAAI,gBAAgB,eAAe,SAAS,gBAAgB,eAC1D,YAAY,cAAc,eAC5B,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACvD,YAAY,WAAW,eACzB,IAAI,sBAAsB,wBACxB,YAAY,cAAc,IAAI;KAGjC,eAAe,YAAY,eAAe,kBAC7C,IAAI,wBAAwB,OAAO,MAAM,SAAS,QAC9C,SAAS;KAEV,kBAAkB,UAAU,iCAC9B,WAAW,KAAI,eAAe,EAAE;AAGnC,YAAY,qBACV,UAAU,8BACR,cAAc,mBAAmB,kBAAkB,KACnD,UAAU,kBAAkB,IAAI,cAAc;AAElD,YAAY,uBACV,UAAU,yBACR;CACF,cACG,0BAA0B,GAAG,cAAc,kCACxC,gBAAgB,0BAA0B,GAAG,iBAC7C,0BAA0B,GAAG,cAAc;CAEjD,mBACG,0BAA0B,GAAG,cAAc,uCAChC,qBAAqB,0BAA0B,GAAG,iBAC1D,0BAA0B,GAAG,cAAc;AAClD;KAEI,6BAA6B,YAEhC,eAAe;AAGjB,YAAY,gBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXA,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,YAAY,qBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXD,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,OAAO,iBAAe;CACpB,WAAW;CACX,UACI,qBAAqB,0BAA0B,IAAI,iBACnD,qBAAqB,0BAA0B,IAAI;CACvD,WAAW,UAAU,qBACnB,0BAA0B,IAAI,mBAC1B,0BACF;EAEJC,QAAQ,eACRC,QAAQ,IACRC,aAAa,GACbC,UAAS,KACR,QACD,2BAA2B;
|
|
1
|
+
{"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,oBACA,yBACA,uBAAuB,2BACvB,6BACK,WAAY;AACnB,cACE,4BAEA,iCACK,0BAA2B;AAGlC,cAAc,qBAAqB,4BAA6B;AAGhE,cAAc,YAAY,iBAAkB;AAC5C,cAAc,qBAAqB,0BAA2B;AAC9D,cAAc,iBAAiB,sBAAuB;KAIjD,SAAS,YAAY,KAAK,eAAe,gBAAgB,WAC5D,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACrD,YAAY,WAAW,eACvB,IAAI,gBAAgB,eAAe,SAAS,gBAAgB,eAC1D,YAAY,cAAc,eAC5B,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACvD,YAAY,WAAW,eACzB,IAAI,sBAAsB,wBACxB,YAAY,cAAc,IAAI;KAGjC,eAAe,YAAY,eAAe,kBAC7C,IAAI,wBAAwB,OAAO,MAAM,SAAS,QAC9C,SAAS;KAEV,kBAAkB,UAAU,iCAC9B,WAAW,KAAI,eAAe,EAAE;AAGnC,YAAY,qBACV,UAAU,8BACR,cAAc,mBAAmB,kBAAkB,KACnD,UAAU,kBAAkB,IAAI,cAAc;AAElD,YAAY,uBACV,UAAU,yBACR;CACF,cACG,0BAA0B,GAAG,cAAc,kCACxC,gBAAgB,0BAA0B,GAAG,iBAC7C,0BAA0B,GAAG,cAAc;CAEjD,mBACG,0BAA0B,GAAG,cAAc,uCAChC,qBAAqB,0BAA0B,GAAG,iBAC1D,0BAA0B,GAAG,cAAc;AAClD;KAEI,6BAA6B,YAEhC,eAAe;AAGjB,YAAY,gBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXA,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,YAAY,qBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXD,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,OAAO,iBAAe;CACpB,WAAW;CACX,UACI,qBAAqB,0BAA0B,IAAI,iBACnD,qBAAqB,0BAA0B,IAAI;CACvD,WAAW,UAAU,qBACnB,0BAA0B,IAAI,mBAC1B,0BACF;EAEJC,QAAQ,eACRC,QAAQ,IACRC,aAAa,GACbC,UAAS,KACR,QACD,2BAA2B;AA6H7B,OAAO,iBAAS,oBACdC,UAAU,4BAA4B,6BACrC","names":["args: A","options?: OP","client: MinimalClient","action: AD","parameters?: P","options: Op","response: SyncApplyActionResponseV2 | BatchApplyActionResponseV2"],"sources":["../../../src/actions/applyAction.ts"],"version":3,"file":"applyAction.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAIE,cAYK,WAAY;AAqBnB,cAAiC,cAAc,aAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"mappings":"AAgBA,cAIE,cAYK,WAAY;AAqBnB,cAAiC,cAAc,aAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkZ7D,OAAO,cAAMA,eACXC,iBACAC,sBAAsB,iBACtBC,qBAAqB,iBACrBC,UAAU;CACR,SAAS;;CAET;CACA,UAAU;AACX,eACDC,iBAAiB,sBACd;AAQL,OAAO,cAAMC,8BACXC,uBACAC,kBAAkB,eAClB,GAAG,MAAM,kBAAkB,kBACxB","names":["createClient: (\n baseUrl: string,\n ontologyRid: string | Promise<string>,\n tokenProvider: () => Promise<string>,\n options?: {\n logger?: Logger;\n /** @beta This is an experimental feature subject to change */\n UNSTABLE_DO_NOT_USE_BRANCH?: string;\n headers?: Record<string, string>;\n } | undefined,\n fetchFn?: typeof fetch | undefined,\n) => Client","baseUrl: string","ontologyRid: string | Promise<string>","tokenProvider: () => Promise<string>","options?: {\n logger?: Logger;\n /** @beta This is an experimental feature subject to change */\n UNSTABLE_DO_NOT_USE_BRANCH?: string;\n headers?: Record<string, string>;\n } | undefined","fetchFn?: typeof fetch | undefined","createClientWithTransaction: (\n transactionId: string,\n flushEdits: () => Promise<void>,\n ...args: Parameters<typeof createClient>\n) => Client","transactionId: string","flushEdits: () => Promise<void>"],"sources":["../../src/createClient.ts"],"version":3,"file":"createClient.d.ts"}
|
|
@@ -3,6 +3,9 @@ export { getWireObjectSet, isObjectSet } from "../objectSet/createObjectSet.js";
|
|
|
3
3
|
export { getMetaTagContent, getOsdkConfig } from "../public-utils/osdkConfig.js";
|
|
4
4
|
export type { OsdkConfig } from "../public-utils/osdkConfig.js";
|
|
5
5
|
export { createClientWithTransaction } from "../createClient.js";
|
|
6
|
+
export { createScenario } from "../scenarios/createScenario.js";
|
|
7
|
+
export type { ScenarioClient } from "../scenarios/ScenarioClient.js";
|
|
8
|
+
export { withScenario } from "../scenarios/withScenario.js";
|
|
6
9
|
export { applyShapeTransformations, applyShapeTransformationsToArray, buildObjectSetFromLinkDefByType, getLinkQueryOptions } from "../shapes/index.js";
|
|
7
10
|
/** @deprecated Import from `@osdk/client/observable` instead. */
|
|
8
11
|
export type { ActionSignatureFromDef } from "../actions/applyAction.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,eAAe;AACxB,SAAS,kBAAkB,mBAAmB;AAE9C,SACE,mBACA,qBACK;AACP,cAAc,kBAAkB;AAEhC,SAAS,mCAAmC;AAE5C,SACE,2BACA,kCACA,iCACA,2BACK;;AAGP,cAAc,8BAA8B;;AAE5C,SAAS,8BAA8B;;AAEvC,cACE,YACA,eACA,sBACA,0BACA,kBACA,wBACA,6BACA,wBACA,2BACA,4BACA,sBACA,sBACK;;AAEP,cAAc,gBAAgB;;AAE9B,cAAc,oBAAoB;;AAElC,cAAc,oBAAoB,uBAAuB","names":[],"sources":["../../../src/public/unstable-do-not-use.ts"],"version":3,"file":"unstable-do-not-use.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,SAAS,eAAe;AACxB,SAAS,kBAAkB,mBAAmB;AAE9C,SACE,mBACA,qBACK;AACP,cAAc,kBAAkB;AAEhC,SAAS,mCAAmC;AAE5C,SAAS,sBAAsB;AAC/B,cAAc,sBAAsB;AACpC,SAAS,oBAAoB;AAE7B,SACE,2BACA,kCACA,iCACA,2BACK;;AAGP,cAAc,8BAA8B;;AAE5C,SAAS,8BAA8B;;AAEvC,cACE,YACA,eACA,sBACA,0BACA,kBACA,wBACA,6BACA,wBACA,2BACA,4BACA,sBACA,sBACK;;AAEP,cAAc,gBAAgB;;AAE9B,cAAc,oBAAoB;;AAElC,cAAc,oBAAoB,uBAAuB","names":[],"sources":["../../../src/public/unstable-do-not-use.ts"],"version":3,"file":"unstable-do-not-use.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAGE,qBACA,qBACA,6BACA,sBACA,UACA,gBACA,yBACA,iBAEA,gCACK,WAAY;AACnB,cAAc,iBAAiB,0BAA2B;AAI1D,cAAc,qBAAqB,4BAA6B;AAUhE,cAAc,oBAAoB,uBAAuB,YAAa;AAEtE,OAAO,iBAAe;CACpB,WAAW;CACX,UAAU,mBAAmB,oBAAoB,IAAI;EAErDA,QAAQ,eACRC,OAAO,IACPC,SAAS,IACR,QACD,gBAAgB,oBAAoB,IAAI;
|
|
1
|
+
{"mappings":"AAgBA,cAGE,qBACA,qBACA,6BACA,sBACA,UACA,gBACA,yBACA,iBAEA,gCACK,WAAY;AACnB,cAAc,iBAAiB,0BAA2B;AAI1D,cAAc,qBAAqB,4BAA6B;AAUhE,cAAc,oBAAoB,uBAAuB,YAAa;AAEtE,OAAO,iBAAe;CACpB,WAAW;CACX,UAAU,mBAAmB,oBAAoB,IAAI;EAErDA,QAAQ,eACRC,OAAO,IACPC,SAAS,IACR,QACD,gBAAgB,oBAAoB,IAAI;AAiD1C,OAAO,iBAAe,iBACpBC,QAAQ;;AAA8B,GACtCH,QAAQ,eACRI,YAAY,eAAe,iCAC1B,QAAQ;;AAA8B;AAYzC,OAAO,iBAAe;CACpB,UAAU;CACV,UAAU,wBAAwB;EAElCJ,QAAQ,eACRK,kBAAkB,GAClBC,eAAe,WACfC,aAAa,YAAY,+BACxB,QAAQ,gBAAgB;AA8L3B,OAAO,iBAAe,uBACpBC,UAAU,yBACVR,QAAQ,gBACP,QAAQ,YAAY;AA+IvB,OAAO,iBAAS,0BACd,UAAU,sBAEVS,YAAY,eAAe,IAC3BC,WAAW,IACV,SAAS;AAaZ,OAAO,iBAAS,6BACd,UAAU,qBAEVC,oBAAoB;CAClB;CACA,iBAAiB,eAAe;AACjC,GACDC,cAAc,IACb,SAAS","names":["client: MinimalClient","query: QD","params?: P","params: { [parameterId: string]: any }","paramTypes: Record<string, QueryParameterDefinition<any>>","responseDataType: T","responseValue: DataValue","definitions: Map<string, ObjectOrInterfaceDefinition>","dataType: QueryDataTypeDefinition","primaryKey: PrimaryKeyType<Q>","objectDef: Q","interfaceSpecifier: {\n objectTypeApiName: string;\n primaryKeyValue: PrimaryKeyType<Q>;\n }","interfaceDef: Q"],"sources":["../../../src/queries/applyQuery.ts"],"version":3,"file":"applyQuery.d.ts"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { LinkTypeApiNamesFor, MinimalDirectedObjectLinkInstance, ObjectIdentifiers, ObjectOrInterfaceDefinition, ObjectTypeDefinition } from "@osdk/api";
|
|
2
|
+
import { type Client } from "../Client.js";
|
|
3
|
+
/**
|
|
4
|
+
* The set of many-to-many link types modified within a scenario for one source object type. Returned as part of
|
|
5
|
+
* {@link ScenarioEditedEntityTypes.linkTypes}.
|
|
6
|
+
*/
|
|
7
|
+
export interface EditedLinksForObjectType {
|
|
8
|
+
objectTypeApiName: string;
|
|
9
|
+
linkTypes: string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The object types and link types that have been modified within a scenario. Only many-to-many link type edits are surfaced via `linkTypes`;
|
|
13
|
+
* one-to-many edits surface as object edits on the object type that owns the foreign key property.
|
|
14
|
+
*/
|
|
15
|
+
export interface ScenarioEditedEntityTypes {
|
|
16
|
+
objectTypes: string[];
|
|
17
|
+
linkTypes: EditedLinksForObjectType[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A page of edited object identifiers within a scenario
|
|
21
|
+
* for a given object type. Returned by {@link ScenarioClient.getEditedEntities}. To load full property values,
|
|
22
|
+
* pass the primary keys back through the scenario client, e.g.
|
|
23
|
+
* `scenario(MyObject).where({ $primaryKey: { $in: keys } }).fetchPage()`.
|
|
24
|
+
*/
|
|
25
|
+
export interface EditedEntitiesPage<Q extends ObjectTypeDefinition> {
|
|
26
|
+
data: ObjectIdentifiers<Q>[];
|
|
27
|
+
nextPageToken?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A page of directed link instances edited within a scenario for a given source object type and link api name.
|
|
31
|
+
* Returned by {@link ScenarioClient.getEditedLinks}. Source and target carry only `$primaryKey` + `$apiName`.
|
|
32
|
+
*/
|
|
33
|
+
export interface EditedLinksPage<
|
|
34
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
35
|
+
LINK_TYPE_API_NAME extends LinkTypeApiNamesFor<Q>
|
|
36
|
+
> {
|
|
37
|
+
data: MinimalDirectedObjectLinkInstance<Q, LINK_TYPE_API_NAME>[];
|
|
38
|
+
nextPageToken?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A {@link Client} attached to an ontology scenario. All read and write operations performed via this client are
|
|
42
|
+
* scoped to that scenario. `ScenarioClient` is a superset of {@link Client}: it is usable anywhere a `Client` is
|
|
43
|
+
* accepted (e.g. as the `scenarioReference` parameter on a scenario-merge action).
|
|
44
|
+
*
|
|
45
|
+
* @beta This is an experimental, unstable feature subject to change.
|
|
46
|
+
*/
|
|
47
|
+
export interface ScenarioClient extends Client {
|
|
48
|
+
/**
|
|
49
|
+
* Returns the scenario reference for this client. Pass directly to an action whose parameter is typed as
|
|
50
|
+
* `scenarioReference`, or use to inspect the underlying scenario RID.
|
|
51
|
+
*/
|
|
52
|
+
getScenarioReference(): {
|
|
53
|
+
scenarioRid: string
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* List the object types and many-to-many link types that have been modified within this scenario. Useful as a
|
|
57
|
+
* pre-step before paginating individual edited objects per type.
|
|
58
|
+
*/
|
|
59
|
+
getEditedEntityTypes(): Promise<ScenarioEditedEntityTypes>;
|
|
60
|
+
/**
|
|
61
|
+
* Get a page of object identifiers that have been
|
|
62
|
+
* edited within this scenario for the given object type. Use the scenario client to fetch full property values
|
|
63
|
+
* if needed.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* let pageToken: string | undefined;
|
|
68
|
+
* const keys: string[] = [];
|
|
69
|
+
* do {
|
|
70
|
+
* const page = await scenario.getEditedEntities(Doctor, { pageSize: 500, pageToken });
|
|
71
|
+
* keys.push(...page.data.map(o => o.$primaryKey));
|
|
72
|
+
* pageToken = page.nextPageToken;
|
|
73
|
+
* } while (pageToken);
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
getEditedEntities<Q extends ObjectTypeDefinition>(objectType: Q, options?: {
|
|
77
|
+
pageSize?: number
|
|
78
|
+
pageToken?: string
|
|
79
|
+
}): Promise<EditedEntitiesPage<Q>>;
|
|
80
|
+
/**
|
|
81
|
+
* Stream object identifiers for the objects edited within this scenario for the
|
|
82
|
+
* given object type. Pages are fetched lazily and deduplicated by `$primaryKey` across pages (Funnel may return
|
|
83
|
+
* duplicates).
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* for await (const obj of scenario.editedEntitiesAsyncIter(Doctor, { pageSize: 500 })) {
|
|
88
|
+
* // obj.$primaryKey is the unique key for this edited object
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
editedEntitiesAsyncIter<Q extends ObjectTypeDefinition>(objectType: Q, options?: {
|
|
93
|
+
pageSize?: number
|
|
94
|
+
}): AsyncIterableIterator<ObjectIdentifiers<Q>>;
|
|
95
|
+
/**
|
|
96
|
+
* List the outgoing many-to-many link API names that have been modified within this scenario for the given
|
|
97
|
+
* source object type. One-to-many link edits surface as object edits on the FK-owning side and are not returned
|
|
98
|
+
* here.
|
|
99
|
+
*/
|
|
100
|
+
getEditedLinkTypes<Q extends ObjectOrInterfaceDefinition>(sourceObjectType: Q): Promise<LinkTypeApiNamesFor<Q>[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Get a page of directed link instances edited within this scenario for a given source object type and link
|
|
103
|
+
* api name. The page form returns a flattened array of `{ source, target, linkType }` triples.
|
|
104
|
+
*/
|
|
105
|
+
getEditedLinks<
|
|
106
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
107
|
+
LINK_TYPE_API_NAME extends LinkTypeApiNamesFor<Q>
|
|
108
|
+
>(sourceObjectType: Q, linkType: LINK_TYPE_API_NAME, options?: {
|
|
109
|
+
pageSize?: number
|
|
110
|
+
pageToken?: string
|
|
111
|
+
}): Promise<EditedLinksPage<Q, LINK_TYPE_API_NAME>>;
|
|
112
|
+
/**
|
|
113
|
+
* Stream directed link instances edited within this scenario for a given source object type and link api name.
|
|
114
|
+
* Pages are fetched lazily.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* for await (
|
|
119
|
+
* const { source, target, linkType } of scenario.editedLinksAsyncIter(Doctor, "treats")
|
|
120
|
+
* ) {
|
|
121
|
+
* graph.addEdge(source, target, linkType);
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
editedLinksAsyncIter<
|
|
126
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
127
|
+
LINK_TYPE_API_NAME extends LinkTypeApiNamesFor<Q>
|
|
128
|
+
>(sourceObjectType: Q, linkType: LINK_TYPE_API_NAME, options?: {
|
|
129
|
+
pageSize?: number
|
|
130
|
+
}): AsyncIterableIterator<MinimalDirectedObjectLinkInstance<Q, LINK_TYPE_API_NAME>>;
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cACE,qBACA,mCACA,mBACA,6BACA,4BAEK,WAAY;AAEnB,cAAiC,cAAc,cAAe;;;;;AAQ9D,iBAAiB,yBAAyB;CACxC;CACA;AACD;;;;;AAMD,iBAAiB,0BAA0B;CACzC;CACA,WAAW;AACZ;;;;;;;AAQD,iBAAiB,mBAAmB,UAAU,sBAAsB;CAClE,MAAM,kBAAkB;CACxB;AACD;;;;;AAMD,iBAAiB;CACf,UAAU;CACV,2BAA2B,oBAAoB;EAC/C;CACA,MAAM,kCAAkC,GAAG;CAC3C;AACD;;;;;;;;AASD,iBAAiB,uBAAuB,OAAO;;;;;CAK7C,wBAAwB;EAAE;CAAqB;;;;;CAM/C,wBAAwB,QAAQ;;;;;;;;;;;;;;;;;CAkBhC,kBAAkB,UAAU,sBAC1BA,YAAY,GACZC,UAAU;EAAE;EAAmB;CAAoB,IAClD,QAAQ,mBAAmB;;;;;;;;;;;;;CAc9B,wBAAwB,UAAU,sBAChCD,YAAY,GACZE,UAAU;EAAE;CAAmB,IAC9B,sBAAsB,kBAAkB;;;;;;CAO3C,mBAAmB,UAAU,6BAC3BC,kBAAkB,IACjB,QAAQ,oBAAoB;;;;;CAM/B;EACE,UAAU;EACV,2BAA2B,oBAAoB;GAE/CA,kBAAkB,GAClBC,UAAU,oBACVH,UAAU;EAAE;EAAmB;CAAoB,IAClD,QAAQ,gBAAgB,GAAG;;;;;;;;;;;;;;CAe9B;EACE,UAAU;EACV,2BAA2B,oBAAoB;GAE/CE,kBAAkB,GAClBC,UAAU,oBACVF,UAAU;EAAE;CAAmB,IAC9B,sBACD,kCAAkC,GAAG;AAExC","names":["objectType: Q","options?: { pageSize?: number; pageToken?: string }","options?: { pageSize?: number }","sourceObjectType: Q","linkType: LINK_TYPE_API_NAME"],"sources":["../../../src/scenarios/ScenarioClient.ts"],"version":3,"file":"ScenarioClient.d.ts"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Client } from "../Client.js";
|
|
2
|
+
import { type ScenarioClient } from "./ScenarioClient.js";
|
|
3
|
+
/**
|
|
4
|
+
* Mint a fresh ontology scenario and return a client scoped to it.
|
|
5
|
+
*
|
|
6
|
+
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
7
|
+
* from. Throws at runtime if the client is already scoped to a scenario or transaction. When the base client has a
|
|
8
|
+
* branch set, the newly minted scenario uses that branch as its base.
|
|
9
|
+
* @returns a {@link ScenarioClient} bound to the freshly minted scenario RID.
|
|
10
|
+
*
|
|
11
|
+
* @beta This is an experimental, unstable feature subject to change.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { createScenario } from "@osdk/client/unstable-do-not-use";
|
|
16
|
+
*
|
|
17
|
+
* const scenario = await createScenario(client);
|
|
18
|
+
* const { scenarioRid } = scenario.getScenarioReference();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function createScenario(client: Client): Promise<ScenarioClient>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAiBA,cAAiC,cAAc,cAAe;AAE9D,cAAmC,sBAAsB,qBAAsB;;;;;;;;;;;;;;;;;;;AAoB/E,OAAO,iBAAe,eACpBA,QAAQ,SACP,QAAQ","names":["client: Client"],"sources":["../../../src/scenarios/createScenario.ts"],"version":3,"file":"createScenario.d.ts"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Client } from "../Client.js";
|
|
2
|
+
import { type ScenarioClient } from "./ScenarioClient.js";
|
|
3
|
+
/**
|
|
4
|
+
* Attach to an existing ontology scenario. Synchronous — no network call is made. The returned client scopes all
|
|
5
|
+
* subsequent operations (`fetchPage`, `applyAction`, `executeFunction`, etc.) to the given `scenarioRid`.
|
|
6
|
+
*
|
|
7
|
+
* @param client - The base {@link Client} to derive context (`baseUrl`, `ontologyRid`, `tokenProvider`, `branch`, …)
|
|
8
|
+
* from. Throws at runtime if the client is already scoped to a scenario or transaction.
|
|
9
|
+
* @param scenarioRid - The RID of the scenario to attach to.
|
|
10
|
+
* @returns a {@link ScenarioClient} bound to `scenarioRid`.
|
|
11
|
+
*
|
|
12
|
+
* @beta This is an experimental, unstable feature subject to change.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { withScenario } from "@osdk/client/unstable-do-not-use";
|
|
17
|
+
*
|
|
18
|
+
* const scenario = withScenario(client, "ri.actions..scenario.abc");
|
|
19
|
+
* const page = await scenario(Doctor).fetchPage();
|
|
20
|
+
* await scenario(Schedule).applyAction({ doctor: page.data[0], shift: "AM" });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function withScenario(client: Client, scenarioRid: string): ScenarioClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,cAAc,cAAe;AAC3C,cAAmC,sBAAsB,qBAAsB;;;;;;;;;;;;;;;;;;;;;AAsB/E,OAAO,iBAAS,aACdA,QAAQ,QACRC,sBACC","names":["client: Client","scenarioRid: string"],"sources":["../../../src/scenarios/withScenario.ts"],"version":3,"file":"withScenario.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/client",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.1-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@osdk/foundry.core": "2.
|
|
78
|
-
"@osdk/foundry.functions": "2.
|
|
79
|
-
"@osdk/foundry.mediasets": "2.
|
|
80
|
-
"@osdk/foundry.ontologies": "2.
|
|
77
|
+
"@osdk/foundry.core": "2.61.0",
|
|
78
|
+
"@osdk/foundry.functions": "2.61.0",
|
|
79
|
+
"@osdk/foundry.mediasets": "2.61.0",
|
|
80
|
+
"@osdk/foundry.ontologies": "2.61.0",
|
|
81
81
|
"@osdk/shared.client": "^1.0.1",
|
|
82
82
|
"@osdk/shared.client2": "^1.0.0",
|
|
83
83
|
"@types/geojson": "^7946.0.16",
|
|
@@ -90,15 +90,15 @@
|
|
|
90
90
|
"tiny-invariant": "^1.3.3",
|
|
91
91
|
"type-fest": "^4.41.0",
|
|
92
92
|
"ws": "^8.18.3",
|
|
93
|
-
"@osdk/api": "
|
|
94
|
-
"@osdk/client.unstable": "2.23.0",
|
|
95
|
-
"@osdk/generator-converters": "2.23.0",
|
|
96
|
-
"@osdk/shared.client.impl": "~1.12.0",
|
|
93
|
+
"@osdk/api": "2.23.1-beta.2",
|
|
97
94
|
"@osdk/shared.net.errors": "~2.10.0",
|
|
98
|
-
"@osdk/shared.net.fetch": "~1.10.0"
|
|
95
|
+
"@osdk/shared.net.fetch": "~1.10.0",
|
|
96
|
+
"@osdk/generator-converters": "2.23.1-beta.2",
|
|
97
|
+
"@osdk/shared.client.impl": "~1.12.0",
|
|
98
|
+
"@osdk/client.unstable": "2.23.1-beta.2"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@osdk/shared.test": "^2.18.0"
|
|
101
|
+
"@osdk/shared.test": "^2.18.1-beta.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|
|
104
104
|
"@osdk/shared.test": {
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"ts-expect": "^1.3.0",
|
|
125
125
|
"typescript": "~5.5.4",
|
|
126
126
|
"zod": "^3.25.76",
|
|
127
|
-
"@osdk/client.test.ontology": "2.23.0",
|
|
128
|
-
"@osdk/monorepo.
|
|
129
|
-
"@osdk/monorepo.
|
|
127
|
+
"@osdk/client.test.ontology": "2.23.1-beta.0",
|
|
128
|
+
"@osdk/monorepo.tsconfig": "~0.7.0",
|
|
129
|
+
"@osdk/monorepo.api-extractor": "~0.7.0"
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": {
|
|
132
132
|
"access": "public"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDOXHU27E_cjs = require('./chunk-DOXHU27E.cjs');
|
|
4
|
-
require('./chunk-D26YLHTV.cjs');
|
|
5
|
-
require('./chunk-74HV6NQQ.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "getMediaContent", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkDOXHU27E_cjs.getMediaContent; }
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "getMediaMetadata", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunkDOXHU27E_cjs.getMediaMetadata; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "upload", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunkDOXHU27E_cjs.upload; }
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=MediaReferenceProperty-Y6R5ASNW.cjs.map
|
|
22
|
-
//# sourceMappingURL=MediaReferenceProperty-Y6R5ASNW.cjs.map
|