@osdk/foundry.functions 2.58.0 → 2.60.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 +26 -0
- package/build/browser/_components.d.ts +86 -0
- package/build/browser/_components.d.ts.map +1 -1
- package/build/browser/_errors.d.ts +186 -0
- package/build/browser/_errors.d.ts.map +1 -1
- package/build/browser/index.d.ts +3 -2
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/index.js +1 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Execution.d.ts +46 -0
- package/build/browser/public/Execution.d.ts.map +1 -0
- package/build/browser/public/Execution.js +54 -0
- package/build/browser/public/Execution.js.map +1 -0
- package/build/browser/public/Query.d.ts +25 -0
- package/build/browser/public/Query.d.ts.map +1 -1
- package/build/browser/public/Query.js +16 -0
- package/build/browser/public/Query.js.map +1 -1
- package/build/esm/_components.d.ts +86 -0
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/_errors.d.ts +186 -0
- package/build/esm/_errors.d.ts.map +1 -1
- package/build/esm/index.d.ts +3 -2
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Execution.d.ts +46 -0
- package/build/esm/public/Execution.d.ts.map +1 -0
- package/build/esm/public/Execution.js +54 -0
- package/build/esm/public/Execution.js.map +1 -0
- package/build/esm/public/Query.d.ts +25 -0
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +16 -0
- package/build/esm/public/Query.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
|
+
//
|
|
18
|
+
const _getResult = [1, "/v2/functions/executions/{0}/getResult", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Poll for the result of an async query execution.
|
|
21
|
+
*
|
|
22
|
+
* Returns a discriminated union:
|
|
23
|
+
*
|
|
24
|
+
* * running: execution is still in progress.
|
|
25
|
+
* * succeeded: execution completed successfully with a return value.
|
|
26
|
+
*
|
|
27
|
+
* If the execution failed, a service error is thrown.
|
|
28
|
+
*
|
|
29
|
+
* Use the timeout parameter for long-polling: the server holds the
|
|
30
|
+
* connection open for up to the specified number of seconds. If the
|
|
31
|
+
* execution completes within that window, the result is returned
|
|
32
|
+
* immediately. Otherwise, the running variant is returned.
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*
|
|
36
|
+
* Required Scopes: [api:functions-execute]
|
|
37
|
+
* URL: /v2/functions/executions/{executionId}/getResult
|
|
38
|
+
*/
|
|
39
|
+
export function getResult($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _getResult, ...args);
|
|
41
|
+
}
|
|
42
|
+
const _cancel = [1, "/v2/functions/executions/{0}/cancel", 2];
|
|
43
|
+
/**
|
|
44
|
+
* Cancel a running async query execution. This endpoint is idempotent.
|
|
45
|
+
*
|
|
46
|
+
* @alpha
|
|
47
|
+
*
|
|
48
|
+
* Required Scopes: [api:functions-execute]
|
|
49
|
+
* URL: /v2/functions/executions/{executionId}/cancel
|
|
50
|
+
*/
|
|
51
|
+
export function cancel($ctx, ...args) {
|
|
52
|
+
return $foundryPlatformFetch($ctx, _cancel, ...args);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=Execution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Execution.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getResult","getResult","$ctx","args","_cancel","cancel"],"sources":["Execution.js"],"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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getResult = [1, \"/v2/functions/executions/{0}/getResult\", 3];\n/**\n * Poll for the result of an async query execution.\n *\n * Returns a discriminated union:\n *\n * * running: execution is still in progress.\n * * succeeded: execution completed successfully with a return value.\n *\n * If the execution failed, a service error is thrown.\n *\n * Use the timeout parameter for long-polling: the server holds the\n * connection open for up to the specified number of seconds. If the\n * execution completes within that window, the result is returned\n * immediately. Otherwise, the running variant is returned.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/executions/{executionId}/getResult\n */\nexport function getResult($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getResult, ...args);\n}\nconst _cancel = [1, \"/v2/functions/executions/{0}/cancel\", 2];\n/**\n * Cancel a running async query execution. This endpoint is idempotent.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/executions/{executionId}/cancel\n */\nexport function cancel($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _cancel, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,UAAU,EAAE,GAAGG,IAAI,CAAC;AAC3D;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,OAAO,EAAE,GAAGD,IAAI,CAAC;AACxD","ignoreList":[]}
|
|
@@ -123,4 +123,29 @@ export declare function streamingExecute($ctx: $Client | $ClientContext | $OldCl
|
|
|
123
123
|
traceState?: _Core.TraceState | undefined;
|
|
124
124
|
}
|
|
125
125
|
]): Promise<Response>;
|
|
126
|
+
/**
|
|
127
|
+
* Submits a Query for asynchronous execution. Returns either an execution ID
|
|
128
|
+
* for polling, or the complete result if execution finished immediately.
|
|
129
|
+
*
|
|
130
|
+
* Use the Execution resource's getResult endpoint to poll for the
|
|
131
|
+
* result of a submitted execution.
|
|
132
|
+
*
|
|
133
|
+
* @alpha
|
|
134
|
+
*
|
|
135
|
+
* Required Scopes: [api:functions-execute]
|
|
136
|
+
* URL: /v2/functions/queries/{queryApiName}/executeAsync
|
|
137
|
+
*/
|
|
138
|
+
export declare function executeAsync($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
139
|
+
queryApiName: _Functions.QueryApiName,
|
|
140
|
+
$body: _Functions.ExecuteAsyncQueryRequest,
|
|
141
|
+
$queryParams?: {
|
|
142
|
+
transactionId?: _Functions.TransactionId | undefined;
|
|
143
|
+
preview?: _Core.PreviewMode | undefined;
|
|
144
|
+
},
|
|
145
|
+
$headerParams?: {
|
|
146
|
+
attribution?: _Core.Attribution | undefined;
|
|
147
|
+
traceParent?: _Core.TraceParent | undefined;
|
|
148
|
+
traceState?: _Core.TraceState | undefined;
|
|
149
|
+
}
|
|
150
|
+
]): Promise<_Functions.ExecuteQueryAsyncResponse>;
|
|
126
151
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAcrD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IAErC,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,CAAC;QACjD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B;AAWD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,c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EAAE;QACb,aAAa,CAAC,EAAE,UAAU,CAAC,aAAa,GAAG,SAAS,CAAC;QACrD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;IACD,aAAa,CAAC,EAAE;QACd,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;QAC5C,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;QAC5C,UAAU,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC;KAC3C;CACF,GACA,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAE/C"}
|
|
@@ -109,4 +109,20 @@ const _streamingExecute = [1, "/v2/functions/queries/{0}/streamingExecute", 7,,
|
|
|
109
109
|
export function streamingExecute($ctx, ...args) {
|
|
110
110
|
return $foundryPlatformFetch($ctx, _streamingExecute, ...args);
|
|
111
111
|
}
|
|
112
|
+
const _executeAsync = [1, "/v2/functions/queries/{0}/executeAsync", 7];
|
|
113
|
+
/**
|
|
114
|
+
* Submits a Query for asynchronous execution. Returns either an execution ID
|
|
115
|
+
* for polling, or the complete result if execution finished immediately.
|
|
116
|
+
*
|
|
117
|
+
* Use the Execution resource's getResult endpoint to poll for the
|
|
118
|
+
* result of a submitted execution.
|
|
119
|
+
*
|
|
120
|
+
* @alpha
|
|
121
|
+
*
|
|
122
|
+
* Required Scopes: [api:functions-execute]
|
|
123
|
+
* URL: /v2/functions/queries/{queryApiName}/executeAsync
|
|
124
|
+
*/
|
|
125
|
+
export function executeAsync($ctx, ...args) {
|
|
126
|
+
return $foundryPlatformFetch($ctx, _executeAsync, ...args);
|
|
127
|
+
}
|
|
112
128
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_getByRid","getByRid","_getByRidBatch","getByRidBatch","_execute","execute","_streamingExecute","streamingExecute"],"sources":["Query.js"],"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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/functions/queries/{0}\", 2];\n/**\n * Gets a specific query type with the given API name. By default, this gets the latest version of the query.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getByRid = [0, \"/v2/functions/queries/getByRid\", 2];\n/**\n * Gets a specific query type with the given RID. By default, this gets the latest version of the query.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRid\n */\nexport function getByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRid, ...args);\n}\nconst _getByRidBatch = [1, \"/v2/functions/queries/getByRidBatch\", 3];\n/**\n * Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.\n *\n * Queries are filtered from the response if they don't exist or the requesting token lacks the required\n * permissions.\n *\n * The maximum batch size for this endpoint is 100.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRidBatch\n */\nexport function getByRidBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRidBatch, ...args);\n}\nconst _execute = [1, \"/v2/functions/queries/{0}/execute\", 7];\n/**\n * Executes a Query using the given parameters. By default, this executes the latest version of the query.\n *\n * This endpoint is maintained for backward compatibility only.\n *\n * For all new implementations, use the `streamingExecute` endpoint, which supports all function types\n * and provides enhanced functionality.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _streamingExecute = [\n 1,\n \"/v2/functions/queries/{0}/streamingExecute\",\n 7,\n ,\n \"application/octet-stream\",\n];\n/**\n * Executes a Query using the given parameters, returning results as an NDJSON stream. By default, this executes the latest version of the query.\n *\n * This endpoint supports all Query functions. The endpoint name 'streamingExecute' refers to the NDJSON\n * streaming response format. Both streaming and non-streaming functions can use this endpoint.\n * Non-streaming functions return a single-line NDJSON response, while streaming functions return multi-line NDJSON responses.\n * This is the recommended endpoint for all query execution.\n *\n * The response is returned as a binary stream in NDJSON (Newline Delimited JSON) format, where each line\n * is a StreamingExecuteQueryResponse containing either a data batch or an error.\n *\n * For a function returning a list of 5 records with a batch size of 3, the response stream would contain\n * two lines. The first line contains the first 3 items, and the second line contains the remaining 2 items:\n *\n * ```\n * {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99},{\"productId\":\"SKU-002\",\"price\":49.99},{\"productId\":\"SKU-003\",\"price\":19.99}]}\n * {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-004\",\"price\":39.99},{\"productId\":\"SKU-005\",\"price\":59.99}]}\n * ```\n *\n * Each line is a separate JSON object followed by a newline character. Clients should parse the stream\n * line-by-line to process results as they arrive. If an error occurs during execution, the stream will\n * contain an error line:\n *\n * ```\n * {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n * ```\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecute\n */\nexport function streamingExecute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecute, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD;AACA,MAAMC,SAAS,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACpC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,SAAS,EAAE,GAAGD,IAAI,CAAC;AAC1D;AACA,MAAMG,cAAc,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,cAAc,EAAE,GAAGH,IAAI,CAAC;AAC/D;AACA,MAAMK,QAAQ,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,QAAQ,EAAE,GAAGL,IAAI,CAAC;AACzD;AACA,MAAMO,iBAAiB,GAAG,CACtB,CAAC,EACD,4CAA4C,EAC5C,CAAC,GAED,0BAA0B,CAC7B;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,iBAAiB,EAAE,GAAGP,IAAI,CAAC;AAClE","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_getByRid","getByRid","_getByRidBatch","getByRidBatch","_execute","execute","_streamingExecute","streamingExecute","_executeAsync","executeAsync"],"sources":["Query.js"],"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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/functions/queries/{0}\", 2];\n/**\n * Gets a specific query type with the given API name. By default, this gets the latest version of the query.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getByRid = [0, \"/v2/functions/queries/getByRid\", 2];\n/**\n * Gets a specific query type with the given RID. By default, this gets the latest version of the query.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRid\n */\nexport function getByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRid, ...args);\n}\nconst _getByRidBatch = [1, \"/v2/functions/queries/getByRidBatch\", 3];\n/**\n * Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.\n *\n * Queries are filtered from the response if they don't exist or the requesting token lacks the required\n * permissions.\n *\n * The maximum batch size for this endpoint is 100.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRidBatch\n */\nexport function getByRidBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRidBatch, ...args);\n}\nconst _execute = [1, \"/v2/functions/queries/{0}/execute\", 7];\n/**\n * Executes a Query using the given parameters. By default, this executes the latest version of the query.\n *\n * This endpoint is maintained for backward compatibility only.\n *\n * For all new implementations, use the `streamingExecute` endpoint, which supports all function types\n * and provides enhanced functionality.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _streamingExecute = [\n 1,\n \"/v2/functions/queries/{0}/streamingExecute\",\n 7,\n ,\n \"application/octet-stream\",\n];\n/**\n * Executes a Query using the given parameters, returning results as an NDJSON stream. By default, this executes the latest version of the query.\n *\n * This endpoint supports all Query functions. The endpoint name 'streamingExecute' refers to the NDJSON\n * streaming response format. Both streaming and non-streaming functions can use this endpoint.\n * Non-streaming functions return a single-line NDJSON response, while streaming functions return multi-line NDJSON responses.\n * This is the recommended endpoint for all query execution.\n *\n * The response is returned as a binary stream in NDJSON (Newline Delimited JSON) format, where each line\n * is a StreamingExecuteQueryResponse containing either a data batch or an error.\n *\n * For a function returning a list of 5 records with a batch size of 3, the response stream would contain\n * two lines. The first line contains the first 3 items, and the second line contains the remaining 2 items:\n *\n * ```\n * {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99},{\"productId\":\"SKU-002\",\"price\":49.99},{\"productId\":\"SKU-003\",\"price\":19.99}]}\n * {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-004\",\"price\":39.99},{\"productId\":\"SKU-005\",\"price\":59.99}]}\n * ```\n *\n * Each line is a separate JSON object followed by a newline character. Clients should parse the stream\n * line-by-line to process results as they arrive. If an error occurs during execution, the stream will\n * contain an error line:\n *\n * ```\n * {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n * ```\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecute\n */\nexport function streamingExecute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecute, ...args);\n}\nconst _executeAsync = [1, \"/v2/functions/queries/{0}/executeAsync\", 7];\n/**\n * Submits a Query for asynchronous execution. Returns either an execution ID\n * for polling, or the complete result if execution finished immediately.\n *\n * Use the Execution resource's getResult endpoint to poll for the\n * result of a submitted execution.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/executeAsync\n */\nexport function executeAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeAsync, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,I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AAMS,aAAa,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,aAAa,EAAE,GAAGT,IAAI,CAAC;AAC9D","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.functions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.60.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@osdk/shared.client": "^1.0.1",
|
|
23
23
|
"@osdk/shared.client2": "^1.0.0",
|
|
24
|
-
"@osdk/foundry.core": "2.
|
|
25
|
-
"@osdk/
|
|
26
|
-
"@osdk/
|
|
24
|
+
"@osdk/foundry.core": "2.60.0",
|
|
25
|
+
"@osdk/shared.net.platformapi": "~1.6.0",
|
|
26
|
+
"@osdk/foundry.ontologies": "2.60.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.5.4",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"sls": {
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"com.palantir.foundry.api:api-gateway": {
|
|
49
|
-
"minVersion": "1.
|
|
49
|
+
"minVersion": "1.1598.0",
|
|
50
50
|
"maxVersion": "1.x.x",
|
|
51
51
|
"optional": false
|
|
52
52
|
}
|