@osdk/foundry.sqlqueries 2.45.0 → 2.47.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 +24 -0
- package/build/browser/_components.d.ts +2 -2
- package/build/browser/_components.d.ts.map +1 -1
- package/build/browser/public/SqlQuery.d.ts +8 -29
- package/build/browser/public/SqlQuery.d.ts.map +1 -1
- package/build/browser/public/SqlQuery.js +8 -8
- package/build/browser/public/SqlQuery.js.map +1 -1
- package/build/esm/_components.d.ts +2 -2
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/public/SqlQuery.d.ts +8 -29
- package/build/esm/public/SqlQuery.d.ts.map +1 -1
- package/build/esm/public/SqlQuery.js +8 -8
- package/build/esm/public/SqlQuery.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @osdk/foundry.sqlqueries
|
|
2
2
|
|
|
3
|
+
## 2.47.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0a561e6: Fix cyclic dependency
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [0a561e6]
|
|
12
|
+
- @osdk/foundry.datasets@2.47.0
|
|
13
|
+
- @osdk/foundry.core@2.47.0
|
|
14
|
+
|
|
15
|
+
## 2.46.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- aabad9b: Regenerate platform sdks
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [aabad9b]
|
|
24
|
+
- @osdk/foundry.datasets@2.46.0
|
|
25
|
+
- @osdk/foundry.core@2.46.0
|
|
26
|
+
|
|
3
27
|
## 2.45.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
2
|
export type LooselyBrandedString<T extends string> = string & {
|
|
3
3
|
__LOOSE_BRAND?: T;
|
|
4
4
|
};
|
|
@@ -12,7 +12,7 @@ export interface CanceledQueryStatus {
|
|
|
12
12
|
*/
|
|
13
13
|
export interface ExecuteSqlQueryRequest {
|
|
14
14
|
query: string;
|
|
15
|
-
fallbackBranchIds?: Array<
|
|
15
|
+
fallbackBranchIds?: Array<_Core.BranchName>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Log Safety: UNSAFE
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;CAAG;AAEvC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,kBAAkB,CAAC,GAC1C,CAAC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,mBAAmB,CAAC,GAC5C,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,iBAAiB,CAAC,GACxC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,oBAAoB,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAC;CACrB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type * as _Core from "@osdk/foundry.core";
|
|
2
1
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
3
|
import type * as _SqlQueries from "../_components.js";
|
|
@@ -7,45 +6,30 @@ import type * as _SqlQueries from "../_components.js";
|
|
|
7
6
|
* results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit
|
|
8
7
|
* increases.
|
|
9
8
|
*
|
|
10
|
-
* @
|
|
9
|
+
* @public
|
|
11
10
|
*
|
|
12
11
|
* Required Scopes: [api:sql-queries-execute]
|
|
13
12
|
* URL: /v2/sqlQueries/execute
|
|
14
13
|
*/
|
|
15
|
-
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
16
|
-
$body: _SqlQueries.ExecuteSqlQueryRequest,
|
|
17
|
-
$queryParams?: {
|
|
18
|
-
preview?: _Core.PreviewMode | undefined;
|
|
19
|
-
}
|
|
20
|
-
]): Promise<_SqlQueries.QueryStatus>;
|
|
14
|
+
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [$body: _SqlQueries.ExecuteSqlQueryRequest]): Promise<_SqlQueries.QueryStatus>;
|
|
21
15
|
/**
|
|
22
16
|
* Gets the status of a query.
|
|
23
17
|
*
|
|
24
|
-
* @
|
|
18
|
+
* @public
|
|
25
19
|
*
|
|
26
20
|
* Required Scopes: [api:sql-queries-read]
|
|
27
21
|
* URL: /v2/sqlQueries/{sqlQueryId}/getStatus
|
|
28
22
|
*/
|
|
29
|
-
export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
30
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
31
|
-
$queryParams?: {
|
|
32
|
-
preview?: _Core.PreviewMode | undefined;
|
|
33
|
-
}
|
|
34
|
-
]): Promise<_SqlQueries.QueryStatus>;
|
|
23
|
+
export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<_SqlQueries.QueryStatus>;
|
|
35
24
|
/**
|
|
36
25
|
* Cancels a query. If the query is no longer running this is effectively a no-op.
|
|
37
26
|
*
|
|
38
|
-
* @
|
|
27
|
+
* @public
|
|
39
28
|
*
|
|
40
29
|
* Required Scopes: [api:sql-queries-execute]
|
|
41
30
|
* URL: /v2/sqlQueries/{sqlQueryId}/cancel
|
|
42
31
|
*/
|
|
43
|
-
export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
44
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
45
|
-
$queryParams?: {
|
|
46
|
-
preview?: _Core.PreviewMode | undefined;
|
|
47
|
-
}
|
|
48
|
-
]): Promise<void>;
|
|
32
|
+
export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<void>;
|
|
49
33
|
/**
|
|
50
34
|
* Gets the results of a query. The results of the query are returned in the
|
|
51
35
|
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
@@ -53,15 +37,10 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
53
37
|
* This endpoint implements long polling and requests will time out after one minute. They can be safely
|
|
54
38
|
* retried while the query is still running.
|
|
55
39
|
*
|
|
56
|
-
* @
|
|
40
|
+
* @public
|
|
57
41
|
*
|
|
58
42
|
* Required Scopes: [api:sql-queries-read]
|
|
59
43
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
60
44
|
*/
|
|
61
|
-
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
62
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
63
|
-
$queryParams?: {
|
|
64
|
-
preview?: _Core.PreviewMode | undefined;
|
|
65
|
-
}
|
|
66
|
-
]): Promise<Response>;
|
|
45
|
+
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<Response>;
|
|
67
46
|
//# sourceMappingURL=SqlQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlQuery.d.ts","sourceRoot":"","sources":["../../../src/public/SqlQuery.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SqlQuery.d.ts","sourceRoot":"","sources":["../../../src/public/SqlQuery.ts"],"names":[],"mappings":"AAgBA,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,WAAW,MAAM,mBAAmB,CAAC;AAUtD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,sBAAsB,CAAC,GACnD,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AAMD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AAMD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const _execute = [1, "/v2/sqlQueries/execute",
|
|
18
|
+
const _execute = [1, "/v2/sqlQueries/execute", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Executes a new query. Only the user that invoked the query can operate on the query. The size of query
|
|
21
21
|
* results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit
|
|
22
22
|
* increases.
|
|
23
23
|
*
|
|
24
|
-
* @
|
|
24
|
+
* @public
|
|
25
25
|
*
|
|
26
26
|
* Required Scopes: [api:sql-queries-execute]
|
|
27
27
|
* URL: /v2/sqlQueries/execute
|
|
@@ -29,11 +29,11 @@ const _execute = [1, "/v2/sqlQueries/execute", 3];
|
|
|
29
29
|
export function execute($ctx, ...args) {
|
|
30
30
|
return $foundryPlatformFetch($ctx, _execute, ...args);
|
|
31
31
|
}
|
|
32
|
-
const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus"
|
|
32
|
+
const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus"];
|
|
33
33
|
/**
|
|
34
34
|
* Gets the status of a query.
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
36
|
+
* @public
|
|
37
37
|
*
|
|
38
38
|
* Required Scopes: [api:sql-queries-read]
|
|
39
39
|
* URL: /v2/sqlQueries/{sqlQueryId}/getStatus
|
|
@@ -41,11 +41,11 @@ const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus", 2];
|
|
|
41
41
|
export function getStatus($ctx, ...args) {
|
|
42
42
|
return $foundryPlatformFetch($ctx, _getStatus, ...args);
|
|
43
43
|
}
|
|
44
|
-
const _cancel = [1, "/v2/sqlQueries/{0}/cancel"
|
|
44
|
+
const _cancel = [1, "/v2/sqlQueries/{0}/cancel"];
|
|
45
45
|
/**
|
|
46
46
|
* Cancels a query. If the query is no longer running this is effectively a no-op.
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*
|
|
50
50
|
* Required Scopes: [api:sql-queries-execute]
|
|
51
51
|
* URL: /v2/sqlQueries/{sqlQueryId}/cancel
|
|
@@ -53,7 +53,7 @@ const _cancel = [1, "/v2/sqlQueries/{0}/cancel", 2];
|
|
|
53
53
|
export function cancel($ctx, ...args) {
|
|
54
54
|
return $foundryPlatformFetch($ctx, _cancel, ...args);
|
|
55
55
|
}
|
|
56
|
-
const _getResults = [0, "/v2/sqlQueries/{0}/getResults"
|
|
56
|
+
const _getResults = [0, "/v2/sqlQueries/{0}/getResults",,, "application/octet-stream"];
|
|
57
57
|
/**
|
|
58
58
|
* Gets the results of a query. The results of the query are returned in the
|
|
59
59
|
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
@@ -61,7 +61,7 @@ const _getResults = [0, "/v2/sqlQueries/{0}/getResults", 2,, "application/octet-
|
|
|
61
61
|
* This endpoint implements long polling and requests will time out after one minute. They can be safely
|
|
62
62
|
* retried while the query is still running.
|
|
63
63
|
*
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*
|
|
66
66
|
* Required Scopes: [api:sql-queries-read]
|
|
67
67
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"sources":["SqlQuery.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 _execute = [1, \"/v2/sqlQueries/execute\",
|
|
1
|
+
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"sources":["SqlQuery.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 _execute = [1, \"/v2/sqlQueries/execute\", 1];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query. The size of query\n * results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit\n * increases.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _getStatus = [0, \"/v2/sqlQueries/{0}/getStatus\"];\n/**\n * Gets the status of a query.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/{sqlQueryId}/getStatus\n */\nexport function getStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getStatus, ...args);\n}\nconst _cancel = [1, \"/v2/sqlQueries/{0}/cancel\"];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/{sqlQueryId}/cancel\n */\nexport function cancel($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _cancel, ...args);\n}\nconst _getResults = [0, \"/v2/sqlQueries/{0}/getResults\", , , \"application/octet-stream\"];\n/**\n * Gets the results of a query. The results of the query are returned in the\n * [Apache Arrow](https://arrow.apache.org/) format.\n *\n * This endpoint implements long polling and requests will time out after one minute. They can be safely\n * retried while the query is still running.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/{sqlQueryId}/getResults\n */\nexport function getResults($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getResults, ...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,QAAQ,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,QAAQ,EAAE,GAAGG,IAAI,CAAC;AACzD;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,+BAA+B,IAAM,0BAA0B,CAAC;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
2
|
export type LooselyBrandedString<T extends string> = string & {
|
|
3
3
|
__LOOSE_BRAND?: T;
|
|
4
4
|
};
|
|
@@ -12,7 +12,7 @@ export interface CanceledQueryStatus {
|
|
|
12
12
|
*/
|
|
13
13
|
export interface ExecuteSqlQueryRequest {
|
|
14
14
|
query: string;
|
|
15
|
-
fallbackBranchIds?: Array<
|
|
15
|
+
fallbackBranchIds?: Array<_Core.BranchName>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Log Safety: UNSAFE
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;CAAG;AAEvC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,kBAAkB,CAAC,GAC1C,CAAC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,mBAAmB,CAAC,GAC5C,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,iBAAiB,CAAC,GACxC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,oBAAoB,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAC;CACrB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type * as _Core from "@osdk/foundry.core";
|
|
2
1
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
3
|
import type * as _SqlQueries from "../_components.js";
|
|
@@ -7,45 +6,30 @@ import type * as _SqlQueries from "../_components.js";
|
|
|
7
6
|
* results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit
|
|
8
7
|
* increases.
|
|
9
8
|
*
|
|
10
|
-
* @
|
|
9
|
+
* @public
|
|
11
10
|
*
|
|
12
11
|
* Required Scopes: [api:sql-queries-execute]
|
|
13
12
|
* URL: /v2/sqlQueries/execute
|
|
14
13
|
*/
|
|
15
|
-
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
16
|
-
$body: _SqlQueries.ExecuteSqlQueryRequest,
|
|
17
|
-
$queryParams?: {
|
|
18
|
-
preview?: _Core.PreviewMode | undefined;
|
|
19
|
-
}
|
|
20
|
-
]): Promise<_SqlQueries.QueryStatus>;
|
|
14
|
+
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [$body: _SqlQueries.ExecuteSqlQueryRequest]): Promise<_SqlQueries.QueryStatus>;
|
|
21
15
|
/**
|
|
22
16
|
* Gets the status of a query.
|
|
23
17
|
*
|
|
24
|
-
* @
|
|
18
|
+
* @public
|
|
25
19
|
*
|
|
26
20
|
* Required Scopes: [api:sql-queries-read]
|
|
27
21
|
* URL: /v2/sqlQueries/{sqlQueryId}/getStatus
|
|
28
22
|
*/
|
|
29
|
-
export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
30
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
31
|
-
$queryParams?: {
|
|
32
|
-
preview?: _Core.PreviewMode | undefined;
|
|
33
|
-
}
|
|
34
|
-
]): Promise<_SqlQueries.QueryStatus>;
|
|
23
|
+
export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<_SqlQueries.QueryStatus>;
|
|
35
24
|
/**
|
|
36
25
|
* Cancels a query. If the query is no longer running this is effectively a no-op.
|
|
37
26
|
*
|
|
38
|
-
* @
|
|
27
|
+
* @public
|
|
39
28
|
*
|
|
40
29
|
* Required Scopes: [api:sql-queries-execute]
|
|
41
30
|
* URL: /v2/sqlQueries/{sqlQueryId}/cancel
|
|
42
31
|
*/
|
|
43
|
-
export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
44
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
45
|
-
$queryParams?: {
|
|
46
|
-
preview?: _Core.PreviewMode | undefined;
|
|
47
|
-
}
|
|
48
|
-
]): Promise<void>;
|
|
32
|
+
export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<void>;
|
|
49
33
|
/**
|
|
50
34
|
* Gets the results of a query. The results of the query are returned in the
|
|
51
35
|
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
@@ -53,15 +37,10 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
53
37
|
* This endpoint implements long polling and requests will time out after one minute. They can be safely
|
|
54
38
|
* retried while the query is still running.
|
|
55
39
|
*
|
|
56
|
-
* @
|
|
40
|
+
* @public
|
|
57
41
|
*
|
|
58
42
|
* Required Scopes: [api:sql-queries-read]
|
|
59
43
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
60
44
|
*/
|
|
61
|
-
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
62
|
-
sqlQueryId: _SqlQueries.SqlQueryId,
|
|
63
|
-
$queryParams?: {
|
|
64
|
-
preview?: _Core.PreviewMode | undefined;
|
|
65
|
-
}
|
|
66
|
-
]): Promise<Response>;
|
|
45
|
+
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<Response>;
|
|
67
46
|
//# sourceMappingURL=SqlQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlQuery.d.ts","sourceRoot":"","sources":["../../../src/public/SqlQuery.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SqlQuery.d.ts","sourceRoot":"","sources":["../../../src/public/SqlQuery.ts"],"names":[],"mappings":"AAgBA,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,WAAW,MAAM,mBAAmB,CAAC;AAUtD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,sBAAsB,CAAC,GACnD,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AAMD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AAMD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,GAC5C,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const _execute = [1, "/v2/sqlQueries/execute",
|
|
18
|
+
const _execute = [1, "/v2/sqlQueries/execute", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Executes a new query. Only the user that invoked the query can operate on the query. The size of query
|
|
21
21
|
* results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit
|
|
22
22
|
* increases.
|
|
23
23
|
*
|
|
24
|
-
* @
|
|
24
|
+
* @public
|
|
25
25
|
*
|
|
26
26
|
* Required Scopes: [api:sql-queries-execute]
|
|
27
27
|
* URL: /v2/sqlQueries/execute
|
|
@@ -29,11 +29,11 @@ const _execute = [1, "/v2/sqlQueries/execute", 3];
|
|
|
29
29
|
export function execute($ctx, ...args) {
|
|
30
30
|
return $foundryPlatformFetch($ctx, _execute, ...args);
|
|
31
31
|
}
|
|
32
|
-
const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus"
|
|
32
|
+
const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus"];
|
|
33
33
|
/**
|
|
34
34
|
* Gets the status of a query.
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
36
|
+
* @public
|
|
37
37
|
*
|
|
38
38
|
* Required Scopes: [api:sql-queries-read]
|
|
39
39
|
* URL: /v2/sqlQueries/{sqlQueryId}/getStatus
|
|
@@ -41,11 +41,11 @@ const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus", 2];
|
|
|
41
41
|
export function getStatus($ctx, ...args) {
|
|
42
42
|
return $foundryPlatformFetch($ctx, _getStatus, ...args);
|
|
43
43
|
}
|
|
44
|
-
const _cancel = [1, "/v2/sqlQueries/{0}/cancel"
|
|
44
|
+
const _cancel = [1, "/v2/sqlQueries/{0}/cancel"];
|
|
45
45
|
/**
|
|
46
46
|
* Cancels a query. If the query is no longer running this is effectively a no-op.
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*
|
|
50
50
|
* Required Scopes: [api:sql-queries-execute]
|
|
51
51
|
* URL: /v2/sqlQueries/{sqlQueryId}/cancel
|
|
@@ -53,7 +53,7 @@ const _cancel = [1, "/v2/sqlQueries/{0}/cancel", 2];
|
|
|
53
53
|
export function cancel($ctx, ...args) {
|
|
54
54
|
return $foundryPlatformFetch($ctx, _cancel, ...args);
|
|
55
55
|
}
|
|
56
|
-
const _getResults = [0, "/v2/sqlQueries/{0}/getResults"
|
|
56
|
+
const _getResults = [0, "/v2/sqlQueries/{0}/getResults",,, "application/octet-stream"];
|
|
57
57
|
/**
|
|
58
58
|
* Gets the results of a query. The results of the query are returned in the
|
|
59
59
|
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
@@ -61,7 +61,7 @@ const _getResults = [0, "/v2/sqlQueries/{0}/getResults", 2,, "application/octet-
|
|
|
61
61
|
* This endpoint implements long polling and requests will time out after one minute. They can be safely
|
|
62
62
|
* retried while the query is still running.
|
|
63
63
|
*
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*
|
|
66
66
|
* Required Scopes: [api:sql-queries-read]
|
|
67
67
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"sources":["SqlQuery.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 _execute = [1, \"/v2/sqlQueries/execute\",
|
|
1
|
+
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"sources":["SqlQuery.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 _execute = [1, \"/v2/sqlQueries/execute\", 1];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query. The size of query\n * results are limited by default to 1 million rows. Contact your Palantir representative to discuss limit\n * increases.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _getStatus = [0, \"/v2/sqlQueries/{0}/getStatus\"];\n/**\n * Gets the status of a query.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/{sqlQueryId}/getStatus\n */\nexport function getStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getStatus, ...args);\n}\nconst _cancel = [1, \"/v2/sqlQueries/{0}/cancel\"];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/{sqlQueryId}/cancel\n */\nexport function cancel($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _cancel, ...args);\n}\nconst _getResults = [0, \"/v2/sqlQueries/{0}/getResults\", , , \"application/octet-stream\"];\n/**\n * Gets the results of a query. The results of the query are returned in the\n * [Apache Arrow](https://arrow.apache.org/) format.\n *\n * This endpoint implements long polling and requests will time out after one minute. They can be safely\n * retried while the query is still running.\n *\n * @public\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/{sqlQueryId}/getResults\n */\nexport function getResults($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getResults, ...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,QAAQ,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,QAAQ,EAAE,GAAGG,IAAI,CAAC;AACzD;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,+BAA+B,IAAM,0BAA0B,CAAC;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.sqlqueries",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.47.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@osdk/shared.client": "^1.0.1",
|
|
23
23
|
"@osdk/shared.client2": "^1.0.0",
|
|
24
|
-
"@osdk/foundry.
|
|
25
|
-
"@osdk/foundry.
|
|
24
|
+
"@osdk/foundry.core": "2.47.0",
|
|
25
|
+
"@osdk/foundry.datasets": "2.47.0",
|
|
26
26
|
"@osdk/shared.net.platformapi": "~1.6.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"sls": {
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"com.palantir.foundry.api:api-gateway": {
|
|
49
|
-
"minVersion": "1.
|
|
49
|
+
"minVersion": "1.1465.0",
|
|
50
50
|
"maxVersion": "1.x.x",
|
|
51
51
|
"optional": false
|
|
52
52
|
}
|