@osdk/foundry.functions 2.78.0 → 2.80.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/index.d.ts +1 -6
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/index.js +1 -4
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Execution.d.ts +1 -45
- package/build/browser/public/Execution.d.ts.map +1 -1
- package/build/browser/public/Execution.js +1 -38
- package/build/browser/public/Execution.js.map +1 -1
- package/build/browser/public/Query.d.ts +1 -190
- package/build/browser/public/Query.d.ts.map +1 -1
- package/build/browser/public/Query.js +1 -141
- package/build/browser/public/Query.js.map +1 -1
- package/build/browser/public/ValueType.d.ts +1 -18
- package/build/browser/public/ValueType.d.ts.map +1 -1
- package/build/browser/public/ValueType.js +1 -14
- package/build/browser/public/ValueType.js.map +1 -1
- package/build/browser/public/VersionId.d.ts +1 -19
- package/build/browser/public/VersionId.d.ts.map +1 -1
- package/build/browser/public/VersionId.js +1 -14
- package/build/browser/public/VersionId.js.map +1 -1
- package/build/browser/public/v2.d.ts +2 -0
- package/build/browser/public/v2.d.ts.map +1 -0
- package/build/browser/public/v2.js +17 -0
- package/build/browser/public/v2.js.map +1 -0
- package/build/browser/{_components.d.ts → v2/_components.d.ts} +2 -2
- package/build/browser/v2/_components.d.ts.map +1 -0
- package/build/browser/v2/_errors.d.ts.map +1 -0
- package/build/browser/v2/index.d.ts +7 -0
- package/build/browser/v2/index.d.ts.map +1 -0
- package/build/browser/v2/index.js +20 -0
- package/build/browser/v2/index.js.map +1 -0
- package/build/browser/v2/public/Execution.d.ts +46 -0
- package/build/browser/v2/public/Execution.d.ts.map +1 -0
- package/build/browser/v2/public/Execution.js +54 -0
- package/build/browser/v2/public/Execution.js.map +1 -0
- package/build/browser/v2/public/Query.d.ts +191 -0
- package/build/browser/v2/public/Query.d.ts.map +1 -0
- package/build/browser/v2/public/Query.js +157 -0
- package/build/browser/v2/public/Query.js.map +1 -0
- package/build/browser/v2/public/ValueType.d.ts +19 -0
- package/build/browser/v2/public/ValueType.d.ts.map +1 -0
- package/build/browser/v2/public/ValueType.js +30 -0
- package/build/browser/v2/public/ValueType.js.map +1 -0
- package/build/browser/v2/public/VersionId.d.ts +20 -0
- package/build/browser/v2/public/VersionId.d.ts.map +1 -0
- package/build/browser/v2/public/VersionId.js +30 -0
- package/build/browser/v2/public/VersionId.js.map +1 -0
- package/build/esm/index.d.ts +1 -6
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +1 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Execution.d.ts +1 -45
- package/build/esm/public/Execution.d.ts.map +1 -1
- package/build/esm/public/Execution.js +1 -38
- package/build/esm/public/Execution.js.map +1 -1
- package/build/esm/public/Query.d.ts +1 -190
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +1 -141
- package/build/esm/public/Query.js.map +1 -1
- package/build/esm/public/ValueType.d.ts +1 -18
- package/build/esm/public/ValueType.d.ts.map +1 -1
- package/build/esm/public/ValueType.js +1 -14
- package/build/esm/public/ValueType.js.map +1 -1
- package/build/esm/public/VersionId.d.ts +1 -19
- package/build/esm/public/VersionId.d.ts.map +1 -1
- package/build/esm/public/VersionId.js +1 -14
- package/build/esm/public/VersionId.js.map +1 -1
- package/build/esm/public/v2.d.ts +2 -0
- package/build/esm/public/v2.d.ts.map +1 -0
- package/build/esm/public/v2.js +17 -0
- package/build/esm/public/v2.js.map +1 -0
- package/build/esm/{_components.d.ts → v2/_components.d.ts} +2 -2
- package/build/esm/v2/_components.d.ts.map +1 -0
- package/build/esm/v2/_errors.d.ts.map +1 -0
- package/build/esm/v2/index.d.ts +7 -0
- package/build/esm/v2/index.d.ts.map +1 -0
- package/build/esm/v2/index.js +20 -0
- package/build/esm/v2/index.js.map +1 -0
- package/build/esm/v2/public/Execution.d.ts +46 -0
- package/build/esm/v2/public/Execution.d.ts.map +1 -0
- package/build/esm/v2/public/Execution.js +54 -0
- package/build/esm/v2/public/Execution.js.map +1 -0
- package/build/esm/v2/public/Query.d.ts +191 -0
- package/build/esm/v2/public/Query.d.ts.map +1 -0
- package/build/esm/v2/public/Query.js +157 -0
- package/build/esm/v2/public/Query.js.map +1 -0
- package/build/esm/v2/public/ValueType.d.ts +19 -0
- package/build/esm/v2/public/ValueType.d.ts.map +1 -0
- package/build/esm/v2/public/ValueType.js +30 -0
- package/build/esm/v2/public/ValueType.js.map +1 -0
- package/build/esm/v2/public/VersionId.d.ts +20 -0
- package/build/esm/v2/public/VersionId.d.ts.map +1 -0
- package/build/esm/v2/public/VersionId.js +30 -0
- package/build/esm/v2/public/VersionId.js.map +1 -0
- package/package.json +10 -5
- package/v2.d.ts +17 -0
- package/build/browser/_components.d.ts.map +0 -1
- package/build/browser/_errors.d.ts.map +0 -1
- package/build/esm/_components.d.ts.map +0 -1
- package/build/esm/_errors.d.ts.map +0 -1
- /package/build/browser/{_components.js → v2/_components.js} +0 -0
- /package/build/browser/{_components.js.map → v2/_components.js.map} +0 -0
- /package/build/browser/{_errors.d.ts → v2/_errors.d.ts} +0 -0
- /package/build/browser/{_errors.js → v2/_errors.js} +0 -0
- /package/build/browser/{_errors.js.map → v2/_errors.js.map} +0 -0
- /package/build/esm/{_components.js → v2/_components.js} +0 -0
- /package/build/esm/{_components.js.map → v2/_components.js.map} +0 -0
- /package/build/esm/{_errors.d.ts → v2/_errors.d.ts} +0 -0
- /package/build/esm/{_errors.js → v2/_errors.js} +0 -0
- /package/build/esm/{_errors.js.map → v2/_errors.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Executions","Queries","ValueTypes","VersionIds"],"sources":["index.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 */\nexport * as Executions from \"./public/Execution.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as ValueTypes from \"./public/ValueType.js\";\nexport * as VersionIds from \"./public/VersionId.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,UAAU,MAAM,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core/v2";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Functions from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Poll for the result of an async query execution.
|
|
7
|
+
*
|
|
8
|
+
* Returns a discriminated union:
|
|
9
|
+
*
|
|
10
|
+
* * running: execution is still in progress.
|
|
11
|
+
* * succeeded: execution completed successfully with a return value.
|
|
12
|
+
*
|
|
13
|
+
* If the execution failed, a service error is thrown.
|
|
14
|
+
*
|
|
15
|
+
* Use the timeout parameter for long-polling: the server holds the
|
|
16
|
+
* connection open for up to the specified number of seconds. If the
|
|
17
|
+
* execution completes within that window, the result is returned
|
|
18
|
+
* immediately. Otherwise, the running variant is returned.
|
|
19
|
+
*
|
|
20
|
+
* @alpha
|
|
21
|
+
*
|
|
22
|
+
* Required Scopes: [api:functions-execute]
|
|
23
|
+
* URL: /v2/functions/executions/{executionId}/getResult
|
|
24
|
+
*/
|
|
25
|
+
export declare function getResult($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
26
|
+
executionId: _Functions.ExecutionId,
|
|
27
|
+
$body: _Functions.GetResultExecutionRequest,
|
|
28
|
+
$queryParams?: {
|
|
29
|
+
preview?: _Core.PreviewMode | undefined;
|
|
30
|
+
}
|
|
31
|
+
]): Promise<_Functions.GetExecutionResultResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Cancel a running async query execution. This endpoint is idempotent.
|
|
34
|
+
*
|
|
35
|
+
* @alpha
|
|
36
|
+
*
|
|
37
|
+
* Required Scopes: [api:functions-execute]
|
|
38
|
+
* URL: /v2/functions/executions/{executionId}/cancel
|
|
39
|
+
*/
|
|
40
|
+
export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
41
|
+
executionId: _Functions.ExecutionId,
|
|
42
|
+
$queryParams?: {
|
|
43
|
+
preview?: _Core.PreviewMode | undefined;
|
|
44
|
+
}
|
|
45
|
+
]): Promise<_Functions.CancelExecutionResponse>;
|
|
46
|
+
//# sourceMappingURL=Execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Execution.d.ts","sourceRoot":"","sources":["../../../../src/v2/public/Execution.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,uBAAuB,CAAC;AACpD,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;AAYrD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,KAAK,EAAE,UAAU,CAAC,yBAAyB;IAC3C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAEhD;AASD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,UAAU,CAAC,WAAW;IAEnC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAE7C"}
|
|
@@ -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":[]}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core/v2";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Functions from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Gets a specific query type with the given API name. By default, this returns the highest semantic
|
|
7
|
+
* version of the query, excluding pre-release versions. To resolve the most recently published version
|
|
8
|
+
* instead, including pre-release versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
9
|
+
*
|
|
10
|
+
* @beta
|
|
11
|
+
*
|
|
12
|
+
* Required Scopes: [api:functions-read]
|
|
13
|
+
* URL: /v2/functions/queries/{queryApiName}
|
|
14
|
+
*/
|
|
15
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
16
|
+
queryApiName: _Functions.QueryApiName,
|
|
17
|
+
$queryParams?: {
|
|
18
|
+
version?: _Functions.FunctionVersion | undefined;
|
|
19
|
+
latestVersionResolution?: _Functions.LatestVersionResolution | undefined;
|
|
20
|
+
includePrerelease?: _Functions.IncludePrerelease | undefined;
|
|
21
|
+
preview?: _Core.PreviewMode | undefined;
|
|
22
|
+
}
|
|
23
|
+
]): Promise<_Functions.Query>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets a specific query type with the given RID. By default, this gets the latest version of the query.
|
|
26
|
+
*
|
|
27
|
+
* @beta
|
|
28
|
+
*
|
|
29
|
+
* Required Scopes: [api:functions-read]
|
|
30
|
+
* URL: /v2/functions/queries/getByRid
|
|
31
|
+
*/
|
|
32
|
+
export declare function getByRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
33
|
+
$queryParams: {
|
|
34
|
+
rid: _Functions.FunctionRid;
|
|
35
|
+
version?: _Functions.FunctionVersion | undefined;
|
|
36
|
+
includePrerelease?: boolean | undefined;
|
|
37
|
+
preview?: _Core.PreviewMode | undefined;
|
|
38
|
+
}
|
|
39
|
+
]): Promise<_Functions.Query>;
|
|
40
|
+
/**
|
|
41
|
+
* Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.
|
|
42
|
+
*
|
|
43
|
+
* Queries are filtered from the response if they don't exist or the requesting token lacks the required
|
|
44
|
+
* permissions.
|
|
45
|
+
*
|
|
46
|
+
* The maximum batch size for this endpoint is 100.
|
|
47
|
+
*
|
|
48
|
+
* @beta
|
|
49
|
+
*
|
|
50
|
+
* Required Scopes: [api:functions-read]
|
|
51
|
+
* URL: /v2/functions/queries/getByRidBatch
|
|
52
|
+
*/
|
|
53
|
+
export declare function getByRidBatch($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
54
|
+
$body: Array<_Functions.GetByRidQueriesBatchRequestElement>,
|
|
55
|
+
$queryParams?: {
|
|
56
|
+
preview?: _Core.PreviewMode | undefined;
|
|
57
|
+
}
|
|
58
|
+
]): Promise<_Functions.GetByRidQueriesBatchResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Executes a Query and returns the result as a single JSON object. By default, this executes
|
|
61
|
+
* the highest semantic version of the query, excluding pre-release versions. To resolve the
|
|
62
|
+
* most recently published version instead, including pre-release versions, set
|
|
63
|
+
* `latestVersionResolution` to `PUBLISH_TIME`.
|
|
64
|
+
*
|
|
65
|
+
* This endpoint executes global (non-ontology-scoped) query functions. For ontology-scoped
|
|
66
|
+
* functions, use the equivalent endpoint under
|
|
67
|
+
* `/v2/ontologies/{ontology}/queries/{queryApiName}/execute`. For streaming or incremental
|
|
68
|
+
* result delivery, use `streamingExecute`.
|
|
69
|
+
*
|
|
70
|
+
* @beta
|
|
71
|
+
*
|
|
72
|
+
* Required Scopes: [api:functions-execute]
|
|
73
|
+
* URL: /v2/functions/queries/{queryApiName}/execute
|
|
74
|
+
*/
|
|
75
|
+
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
76
|
+
queryApiName: _Functions.QueryApiName,
|
|
77
|
+
$body: _Functions.ExecuteQueryRequest,
|
|
78
|
+
$queryParams?: {
|
|
79
|
+
transactionId?: _Functions.TransactionId | undefined;
|
|
80
|
+
preview?: _Core.PreviewMode | undefined;
|
|
81
|
+
},
|
|
82
|
+
$headerParams?: {
|
|
83
|
+
attribution?: _Core.Attribution | undefined;
|
|
84
|
+
traceParent?: _Core.TraceParent | undefined;
|
|
85
|
+
traceState?: _Core.TraceState | undefined;
|
|
86
|
+
}
|
|
87
|
+
]): Promise<_Functions.ExecuteQueryResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.
|
|
90
|
+
* By default, this executes the highest semantic version of the query, excluding pre-release
|
|
91
|
+
* versions. To resolve the most recently published version instead, including pre-release
|
|
92
|
+
* versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
93
|
+
*
|
|
94
|
+
* This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded
|
|
95
|
+
* `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more
|
|
96
|
+
* result values, or an error (`type: error`) emitted before stream termination if execution
|
|
97
|
+
* fails. Non-streaming functions emit a single data event containing the entire result;
|
|
98
|
+
* streaming functions emit a data event per batch as results become available.
|
|
99
|
+
*
|
|
100
|
+
* Per the Server-Sent Events specification, each event is terminated by a blank line:
|
|
101
|
+
*
|
|
102
|
+
* ```
|
|
103
|
+
* data: {"type":"data","value":[{"productId":"SKU-001","price":29.99}]}
|
|
104
|
+
*
|
|
105
|
+
* data: {"type":"error","errorCode":"INVALID_ARGUMENT","errorName":"QueryRuntimeError","errorInstanceId":"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c","errorDescription":"Division by zero","parameters":{}}
|
|
106
|
+
*
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @beta
|
|
110
|
+
*
|
|
111
|
+
* Required Scopes: [api:functions-execute]
|
|
112
|
+
* URL: /v2/functions/queries/{queryApiName}/streamingExecute
|
|
113
|
+
*/
|
|
114
|
+
export declare function streamingExecute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
115
|
+
queryApiName: _Functions.QueryApiName,
|
|
116
|
+
$body: _Functions.StreamingExecuteQueryRequest,
|
|
117
|
+
$queryParams?: {
|
|
118
|
+
transactionId?: _Functions.TransactionId | undefined;
|
|
119
|
+
preview?: _Core.PreviewMode | undefined;
|
|
120
|
+
},
|
|
121
|
+
$headerParams?: {
|
|
122
|
+
attribution?: _Core.Attribution | undefined;
|
|
123
|
+
traceParent?: _Core.TraceParent | undefined;
|
|
124
|
+
traceState?: _Core.TraceState | undefined;
|
|
125
|
+
}
|
|
126
|
+
]): Promise<AsyncGenerator<_Functions.StreamingExecuteQueryResponse, void, void>>;
|
|
127
|
+
/**
|
|
128
|
+
* Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.
|
|
129
|
+
* By default, this executes the highest semantic version of the query, excluding pre-release
|
|
130
|
+
* versions. To resolve the most recently published version instead, including pre-release
|
|
131
|
+
* versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
132
|
+
*
|
|
133
|
+
* This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded
|
|
134
|
+
* `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more
|
|
135
|
+
* result values, or an error (`type: error`) emitted before stream termination if execution
|
|
136
|
+
* fails. Non-streaming functions emit a single data event containing the entire result;
|
|
137
|
+
* streaming functions emit a data event per batch as results become available.
|
|
138
|
+
*
|
|
139
|
+
* Per the Server-Sent Events specification, each event is terminated by a blank line:
|
|
140
|
+
*
|
|
141
|
+
* ```
|
|
142
|
+
* data: {"type":"data","value":[{"productId":"SKU-001","price":29.99}]}
|
|
143
|
+
*
|
|
144
|
+
* data: {"type":"error","errorCode":"INVALID_ARGUMENT","errorName":"QueryRuntimeError","errorInstanceId":"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c","errorDescription":"Division by zero","parameters":{}}
|
|
145
|
+
*
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
148
|
+
* @alpha
|
|
149
|
+
*
|
|
150
|
+
* Required Scopes: [api:functions-execute]
|
|
151
|
+
* URL: /v2/functions/queries/{queryApiName}/streamingExecuteEvents
|
|
152
|
+
*/
|
|
153
|
+
export declare function streamingExecuteEvents($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
154
|
+
queryApiName: _Functions.QueryApiName,
|
|
155
|
+
$body: _Functions.StreamingExecuteEventsQueryRequest,
|
|
156
|
+
$queryParams?: {
|
|
157
|
+
transactionId?: _Functions.TransactionId | undefined;
|
|
158
|
+
preview?: _Core.PreviewMode | undefined;
|
|
159
|
+
},
|
|
160
|
+
$headerParams?: {
|
|
161
|
+
attribution?: _Core.Attribution | undefined;
|
|
162
|
+
traceParent?: _Core.TraceParent | undefined;
|
|
163
|
+
traceState?: _Core.TraceState | undefined;
|
|
164
|
+
}
|
|
165
|
+
]): Promise<AsyncGenerator<_Functions.StreamingExecuteQueryResponse, void, void>>;
|
|
166
|
+
/**
|
|
167
|
+
* Submits a Query for asynchronous execution. Returns either an execution ID
|
|
168
|
+
* for polling, or the complete result if execution finished immediately.
|
|
169
|
+
*
|
|
170
|
+
* Use the Execution resource's getResult endpoint to poll for the
|
|
171
|
+
* result of a submitted execution.
|
|
172
|
+
*
|
|
173
|
+
* @alpha
|
|
174
|
+
*
|
|
175
|
+
* Required Scopes: [api:functions-execute]
|
|
176
|
+
* URL: /v2/functions/queries/{queryApiName}/executeAsync
|
|
177
|
+
*/
|
|
178
|
+
export declare function executeAsync($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
179
|
+
queryApiName: _Functions.QueryApiName,
|
|
180
|
+
$body: _Functions.ExecuteAsyncQueryRequest,
|
|
181
|
+
$queryParams?: {
|
|
182
|
+
transactionId?: _Functions.TransactionId | undefined;
|
|
183
|
+
preview?: _Core.PreviewMode | undefined;
|
|
184
|
+
},
|
|
185
|
+
$headerParams?: {
|
|
186
|
+
attribution?: _Core.Attribution | undefined;
|
|
187
|
+
traceParent?: _Core.TraceParent | undefined;
|
|
188
|
+
traceState?: _Core.TraceState | undefined;
|
|
189
|
+
}
|
|
190
|
+
]): Promise<_Functions.ExecuteQueryAsyncResponse>;
|
|
191
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../src/v2/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,uBAAuB,CAAC;AACpD,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;AAgBrD;;;;;;;;;GASG;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,uBAAuB,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,CAAC;QACzE,iBAAiB,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,SAAS,CAAC;QAC7D,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,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE;QACZ,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC;QAC5B,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,CAAC;QACjD,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B;AASD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAC3D,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAElD;AAkBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IACrC,KAAK,EAAE,UAAU,CAAC,mBAAmB;IACrC,YAAY,CAAC,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,oBAAoB,CAAC,CAE1C;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IACrC,KAAK,EAAE,UAAU,CAAC,4BAA4B;IAC9C,YAAY,CAAC,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,CACR,cAAc,CAAC,UAAU,CAAC,6BAA6B,EAAE,IAAI,EAAE,IAAI,CAAC,CACrE,CAEA;AA0BD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IACrC,KAAK,EAAE,UAAU,CAAC,kCAAkC;IACpD,YAAY,CAAC,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,CACR,cAAc,CAAC,UAAU,CAAC,6BAA6B,EAAE,IAAI,EAAE,IAAI,CAAC,CACrE,CAEA;AAkBD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IACrC,KAAK,EAAE,UAAU,CAAC,wBAAwB;IAC1C,YAAY,CAAC,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"}
|
|
@@ -0,0 +1,157 @@
|
|
|
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 _get = [0, "/v2/functions/queries/{0}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Gets a specific query type with the given API name. By default, this returns the highest semantic
|
|
21
|
+
* version of the query, excluding pre-release versions. To resolve the most recently published version
|
|
22
|
+
* instead, including pre-release versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
23
|
+
*
|
|
24
|
+
* @beta
|
|
25
|
+
*
|
|
26
|
+
* Required Scopes: [api:functions-read]
|
|
27
|
+
* URL: /v2/functions/queries/{queryApiName}
|
|
28
|
+
*/
|
|
29
|
+
export function get($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _getByRid = [0, "/v2/functions/queries/getByRid", 2];
|
|
33
|
+
/**
|
|
34
|
+
* Gets a specific query type with the given RID. By default, this gets the latest version of the query.
|
|
35
|
+
*
|
|
36
|
+
* @beta
|
|
37
|
+
*
|
|
38
|
+
* Required Scopes: [api:functions-read]
|
|
39
|
+
* URL: /v2/functions/queries/getByRid
|
|
40
|
+
*/
|
|
41
|
+
export function getByRid($ctx, ...args) {
|
|
42
|
+
return $foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
43
|
+
}
|
|
44
|
+
const _getByRidBatch = [1, "/v2/functions/queries/getByRidBatch", 3];
|
|
45
|
+
/**
|
|
46
|
+
* Gets a list of query types by RID in bulk. By default, this gets the latest version of each query.
|
|
47
|
+
*
|
|
48
|
+
* Queries are filtered from the response if they don't exist or the requesting token lacks the required
|
|
49
|
+
* permissions.
|
|
50
|
+
*
|
|
51
|
+
* The maximum batch size for this endpoint is 100.
|
|
52
|
+
*
|
|
53
|
+
* @beta
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:functions-read]
|
|
56
|
+
* URL: /v2/functions/queries/getByRidBatch
|
|
57
|
+
*/
|
|
58
|
+
export function getByRidBatch($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _getByRidBatch, ...args);
|
|
60
|
+
}
|
|
61
|
+
const _execute = [1, "/v2/functions/queries/{0}/execute", 7];
|
|
62
|
+
/**
|
|
63
|
+
* Executes a Query and returns the result as a single JSON object. By default, this executes
|
|
64
|
+
* the highest semantic version of the query, excluding pre-release versions. To resolve the
|
|
65
|
+
* most recently published version instead, including pre-release versions, set
|
|
66
|
+
* `latestVersionResolution` to `PUBLISH_TIME`.
|
|
67
|
+
*
|
|
68
|
+
* This endpoint executes global (non-ontology-scoped) query functions. For ontology-scoped
|
|
69
|
+
* functions, use the equivalent endpoint under
|
|
70
|
+
* `/v2/ontologies/{ontology}/queries/{queryApiName}/execute`. For streaming or incremental
|
|
71
|
+
* result delivery, use `streamingExecute`.
|
|
72
|
+
*
|
|
73
|
+
* @beta
|
|
74
|
+
*
|
|
75
|
+
* Required Scopes: [api:functions-execute]
|
|
76
|
+
* URL: /v2/functions/queries/{queryApiName}/execute
|
|
77
|
+
*/
|
|
78
|
+
export function execute($ctx, ...args) {
|
|
79
|
+
return $foundryPlatformFetch($ctx, _execute, ...args);
|
|
80
|
+
}
|
|
81
|
+
const _streamingExecute = [1, "/v2/functions/queries/{0}/streamingExecute", 7,, "text/event-stream"];
|
|
82
|
+
/**
|
|
83
|
+
* Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.
|
|
84
|
+
* By default, this executes the highest semantic version of the query, excluding pre-release
|
|
85
|
+
* versions. To resolve the most recently published version instead, including pre-release
|
|
86
|
+
* versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
87
|
+
*
|
|
88
|
+
* This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded
|
|
89
|
+
* `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more
|
|
90
|
+
* result values, or an error (`type: error`) emitted before stream termination if execution
|
|
91
|
+
* fails. Non-streaming functions emit a single data event containing the entire result;
|
|
92
|
+
* streaming functions emit a data event per batch as results become available.
|
|
93
|
+
*
|
|
94
|
+
* Per the Server-Sent Events specification, each event is terminated by a blank line:
|
|
95
|
+
*
|
|
96
|
+
* ```
|
|
97
|
+
* data: {"type":"data","value":[{"productId":"SKU-001","price":29.99}]}
|
|
98
|
+
*
|
|
99
|
+
* data: {"type":"error","errorCode":"INVALID_ARGUMENT","errorName":"QueryRuntimeError","errorInstanceId":"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c","errorDescription":"Division by zero","parameters":{}}
|
|
100
|
+
*
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @beta
|
|
104
|
+
*
|
|
105
|
+
* Required Scopes: [api:functions-execute]
|
|
106
|
+
* URL: /v2/functions/queries/{queryApiName}/streamingExecute
|
|
107
|
+
*/
|
|
108
|
+
export function streamingExecute($ctx, ...args) {
|
|
109
|
+
return $foundryPlatformFetch($ctx, _streamingExecute, ...args);
|
|
110
|
+
}
|
|
111
|
+
const _streamingExecuteEvents = [1, "/v2/functions/queries/{0}/streamingExecuteEvents", 7,, "text/event-stream"];
|
|
112
|
+
/**
|
|
113
|
+
* Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.
|
|
114
|
+
* By default, this executes the highest semantic version of the query, excluding pre-release
|
|
115
|
+
* versions. To resolve the most recently published version instead, including pre-release
|
|
116
|
+
* versions, set `latestVersionResolution` to `PUBLISH_TIME`.
|
|
117
|
+
*
|
|
118
|
+
* This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded
|
|
119
|
+
* `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more
|
|
120
|
+
* result values, or an error (`type: error`) emitted before stream termination if execution
|
|
121
|
+
* fails. Non-streaming functions emit a single data event containing the entire result;
|
|
122
|
+
* streaming functions emit a data event per batch as results become available.
|
|
123
|
+
*
|
|
124
|
+
* Per the Server-Sent Events specification, each event is terminated by a blank line:
|
|
125
|
+
*
|
|
126
|
+
* ```
|
|
127
|
+
* data: {"type":"data","value":[{"productId":"SKU-001","price":29.99}]}
|
|
128
|
+
*
|
|
129
|
+
* data: {"type":"error","errorCode":"INVALID_ARGUMENT","errorName":"QueryRuntimeError","errorInstanceId":"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c","errorDescription":"Division by zero","parameters":{}}
|
|
130
|
+
*
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @alpha
|
|
134
|
+
*
|
|
135
|
+
* Required Scopes: [api:functions-execute]
|
|
136
|
+
* URL: /v2/functions/queries/{queryApiName}/streamingExecuteEvents
|
|
137
|
+
*/
|
|
138
|
+
export function streamingExecuteEvents($ctx, ...args) {
|
|
139
|
+
return $foundryPlatformFetch($ctx, _streamingExecuteEvents, ...args);
|
|
140
|
+
}
|
|
141
|
+
const _executeAsync = [1, "/v2/functions/queries/{0}/executeAsync", 7];
|
|
142
|
+
/**
|
|
143
|
+
* Submits a Query for asynchronous execution. Returns either an execution ID
|
|
144
|
+
* for polling, or the complete result if execution finished immediately.
|
|
145
|
+
*
|
|
146
|
+
* Use the Execution resource's getResult endpoint to poll for the
|
|
147
|
+
* result of a submitted execution.
|
|
148
|
+
*
|
|
149
|
+
* @alpha
|
|
150
|
+
*
|
|
151
|
+
* Required Scopes: [api:functions-execute]
|
|
152
|
+
* URL: /v2/functions/queries/{queryApiName}/executeAsync
|
|
153
|
+
*/
|
|
154
|
+
export function executeAsync($ctx, ...args) {
|
|
155
|
+
return $foundryPlatformFetch($ctx, _executeAsync, ...args);
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=Query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_getByRid","getByRid","_getByRidBatch","getByRidBatch","_execute","execute","_streamingExecute","streamingExecute","_streamingExecuteEvents","streamingExecuteEvents","_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 returns the highest semantic\n * version of the query, excluding pre-release versions. To resolve the most recently published version\n * instead, including pre-release versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * @beta\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 * @beta\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 * @beta\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 and returns the result as a single JSON object. By default, this executes\n * the highest semantic version of the query, excluding pre-release versions. To resolve the\n * most recently published version instead, including pre-release versions, set\n * `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint executes global (non-ontology-scoped) query functions. For ontology-scoped\n * functions, use the equivalent endpoint under\n * `/v2/ontologies/{ontology}/queries/{queryApiName}/execute`. For streaming or incremental\n * result delivery, use `streamingExecute`.\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _streamingExecute = [1, \"/v2/functions/queries/{0}/streamingExecute\", 7, , \"text/event-stream\"];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @beta\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecute\n */\nexport function streamingExecute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecute, ...args);\n}\nconst _streamingExecuteEvents = [\n 1,\n \"/v2/functions/queries/{0}/streamingExecuteEvents\",\n 7,\n ,\n \"text/event-stream\",\n];\n/**\n * Executes a Query and returns results as a Server-Sent Events (`text/event-stream`) stream.\n * By default, this executes the highest semantic version of the query, excluding pre-release\n * versions. To resolve the most recently published version instead, including pre-release\n * versions, set `latestVersionResolution` to `PUBLISH_TIME`.\n *\n * This endpoint supports all Query functions. Each SSE event's `data` field is a JSON-encoded\n * `StreamingExecuteQueryResponse` – either a data batch (`type: data`) carrying one or more\n * result values, or an error (`type: error`) emitted before stream termination if execution\n * fails. Non-streaming functions emit a single data event containing the entire result;\n * streaming functions emit a data event per batch as results become available.\n *\n * Per the Server-Sent Events specification, each event is terminated by a blank line:\n *\n * ```\n * data: {\"type\":\"data\",\"value\":[{\"productId\":\"SKU-001\",\"price\":29.99}]}\n *\n * data: {\"type\":\"error\",\"errorCode\":\"INVALID_ARGUMENT\",\"errorName\":\"QueryRuntimeError\",\"errorInstanceId\":\"3f8a9c7b-2e4d-4a1f-9b8c-7d6e5f4a3b2c\",\"errorDescription\":\"Division by zero\",\"parameters\":{}}\n *\n * ```\n *\n * @alpha\n *\n * Required Scopes: [api:functions-execute]\n * URL: /v2/functions/queries/{queryApiName}/streamingExecuteEvents\n */\nexport function streamingExecuteEvents($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamingExecuteEvents, ...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;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;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,CAAC,CAAC,EAAE,4CAA4C,EAAE,CAAC,GAAI,mBAAmB,CAAC;AACrG;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;AACA,MAAMS,uBAAuB,GAAG,CAC5B,CAAC,EACD,kDAAkD,EAClD,CAAC,GAED,mBAAmB,CACtB;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,OAAO,SAASC,sBAAsBA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,uBAAuB,EAAE,GAAGT,IAAI,CAAC;AACxE;AACA,MAAMW,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,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,aAAa,EAAE,GAAGX,IAAI,CAAC;AAC9D","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core/v2";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Functions from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Gets a specific value type with the given RID. The latest version is returned.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:functions-read]
|
|
11
|
+
* URL: /v2/functions/valueTypes/{valueTypeRid}
|
|
12
|
+
*/
|
|
13
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
valueTypeRid: _Functions.ValueTypeRid,
|
|
15
|
+
$queryParams?: {
|
|
16
|
+
preview?: _Core.PreviewMode | undefined;
|
|
17
|
+
}
|
|
18
|
+
]): Promise<_Functions.ValueType>;
|
|
19
|
+
//# sourceMappingURL=ValueType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueType.d.ts","sourceRoot":"","sources":["../../../../src/v2/public/ValueType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,uBAAuB,CAAC;AACpD,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;AAWrD;;;;;;;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;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAE/B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 _get = [0, "/v2/functions/valueTypes/{0}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Gets a specific value type with the given RID. The latest version is returned.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:functions-read]
|
|
25
|
+
* URL: /v2/functions/valueTypes/{valueTypeRid}
|
|
26
|
+
*/
|
|
27
|
+
export function get($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ValueType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["ValueType.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/valueTypes/{0}\", 2];\n/**\n * Gets a specific value type with the given RID. The latest version is returned.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/valueTypes/{valueTypeRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,8BAA8B,EAAE,CAAC,CAAC;AACnD;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","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core/v2";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Functions from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Gets a specific version of a value type with the given RID and version ID.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:functions-read]
|
|
11
|
+
* URL: /v2/functions/valueTypes/{valueTypeRid}/versionIds/{versionIdVersionId}
|
|
12
|
+
*/
|
|
13
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
valueTypeRid: _Functions.ValueTypeRid,
|
|
15
|
+
versionIdVersionId: _Functions.ValueTypeVersionId,
|
|
16
|
+
$queryParams?: {
|
|
17
|
+
preview?: _Core.PreviewMode | undefined;
|
|
18
|
+
}
|
|
19
|
+
]): Promise<_Functions.VersionId>;
|
|
20
|
+
//# sourceMappingURL=VersionId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionId.d.ts","sourceRoot":"","sources":["../../../../src/v2/public/VersionId.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,uBAAuB,CAAC;AACpD,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;AAYrD;;;;;;;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;IACrC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;IAEjD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAE/B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 _get = [0, "/v2/functions/valueTypes/{0}/versionIds/{1}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Gets a specific version of a value type with the given RID and version ID.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:functions-read]
|
|
25
|
+
* URL: /v2/functions/valueTypes/{valueTypeRid}/versionIds/{versionIdVersionId}
|
|
26
|
+
*/
|
|
27
|
+
export function get($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=VersionId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionId.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["VersionId.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/valueTypes/{0}/versionIds/{1}\", 2];\n/**\n * Gets a specific version of a value type with the given RID and version ID.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/valueTypes/{valueTypeRid}/versionIds/{versionIdVersionId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,6CAA6C,EAAE,CAAC,CAAC;AAClE;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","ignoreList":[]}
|