@osdk/foundry.sqlqueries 2.17.0 → 2.18.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @osdk/foundry.sqlqueries
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 98ec492: Update Platform SDKs
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [98ec492]
12
+ - @osdk/foundry.datasets@2.18.0
13
+ - @osdk/foundry.core@2.18.0
14
+
3
15
  ## 2.17.0
4
16
 
5
17
  ### Minor Changes
@@ -10,7 +10,7 @@ export interface CanceledQueryStatus {
10
10
  /**
11
11
  * Log Safety: UNSAFE
12
12
  */
13
- export interface ExecuteQueryRequest {
13
+ export interface ExecuteSqlQueryRequest {
14
14
  query: string;
15
15
  fallbackBranchIds?: Array<_Datasets.BranchName>;
16
16
  }
@@ -20,18 +20,6 @@ export interface ExecuteQueryRequest {
20
20
  export interface FailedQueryStatus {
21
21
  errorMessage: string;
22
22
  }
23
- /**
24
- * Log Safety: UNSAFE
25
- */
26
- export interface Query {
27
- id: QueryId;
28
- }
29
- /**
30
- * The identifier of a Query.
31
- *
32
- * Log Safety: UNSAFE
33
- */
34
- export type QueryId = LooselyBrandedString<"QueryId">;
35
23
  /**
36
24
  * Log Safety: UNSAFE
37
25
  */
@@ -48,12 +36,24 @@ export type QueryStatus = ({
48
36
  * Log Safety: UNSAFE
49
37
  */
50
38
  export interface RunningQueryStatus {
51
- queryId: QueryId;
39
+ queryId: SqlQueryId;
52
40
  }
41
+ /**
42
+ * Log Safety: UNSAFE
43
+ */
44
+ export interface SqlQuery {
45
+ id: SqlQueryId;
46
+ }
47
+ /**
48
+ * The identifier of a SQL Query.
49
+ *
50
+ * Log Safety: UNSAFE
51
+ */
52
+ export type SqlQueryId = LooselyBrandedString<"SqlQueryId">;
53
53
  /**
54
54
  * Log Safety: UNSAFE
55
55
  */
56
56
  export interface SucceededQueryStatus {
57
- queryId: QueryId;
57
+ queryId: SqlQueryId;
58
58
  }
59
59
  //# sourceMappingURL=_components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEzD,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,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,OAAO,CAAC;CACb;AAED;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAEtD;;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,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEzD,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,SAAS,CAAC,UAAU,CAAC,CAAC;CACjD;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"}
@@ -2,53 +2,53 @@ export type LooselyBrandedString<T extends string> = string & {
2
2
  __LOOSE_BRAND?: T;
3
3
  };
4
4
  /**
5
- * Could not cancel the Query.
5
+ * Could not cancel the SqlQuery.
6
6
  *
7
7
  * Log Safety: UNSAFE
8
8
  */
9
- export interface CancelQueryPermissionDenied {
9
+ export interface CancelSqlQueryPermissionDenied {
10
10
  errorCode: "PERMISSION_DENIED";
11
- errorName: "CancelQueryPermissionDenied";
11
+ errorName: "CancelSqlQueryPermissionDenied";
12
12
  errorInstanceId: string;
13
13
  parameters: {
14
- queryId: unknown;
14
+ sqlQueryId: unknown;
15
15
  };
16
16
  }
17
17
  /**
18
- * Could not execute the Query.
18
+ * Could not execute the SqlQuery.
19
19
  *
20
20
  * Log Safety: SAFE
21
21
  */
22
- export interface ExecuteQueryPermissionDenied {
22
+ export interface ExecuteSqlQueryPermissionDenied {
23
23
  errorCode: "PERMISSION_DENIED";
24
- errorName: "ExecuteQueryPermissionDenied";
24
+ errorName: "ExecuteSqlQueryPermissionDenied";
25
25
  errorInstanceId: string;
26
26
  parameters: {};
27
27
  }
28
28
  /**
29
- * Could not getResults the Query.
29
+ * Could not getResults the SqlQuery.
30
30
  *
31
31
  * Log Safety: UNSAFE
32
32
  */
33
- export interface GetResultsPermissionDenied {
33
+ export interface GetResultsSqlQueryPermissionDenied {
34
34
  errorCode: "PERMISSION_DENIED";
35
- errorName: "GetResultsPermissionDenied";
35
+ errorName: "GetResultsSqlQueryPermissionDenied";
36
36
  errorInstanceId: string;
37
37
  parameters: {
38
- queryId: unknown;
38
+ sqlQueryId: unknown;
39
39
  };
40
40
  }
41
41
  /**
42
- * Could not getStatus the Query.
42
+ * Could not getStatus the SqlQuery.
43
43
  *
44
44
  * Log Safety: UNSAFE
45
45
  */
46
- export interface GetStatusPermissionDenied {
46
+ export interface GetStatusSqlQueryPermissionDenied {
47
47
  errorCode: "PERMISSION_DENIED";
48
- errorName: "GetStatusPermissionDenied";
48
+ errorName: "GetStatusSqlQueryPermissionDenied";
49
49
  errorInstanceId: string;
50
50
  parameters: {
51
- queryId: unknown;
51
+ sqlQueryId: unknown;
52
52
  };
53
53
  }
54
54
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;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,uBAAuB,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,cAAc,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,iCAAiC,CAAC;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;CACH"}
@@ -1,4 +1,4 @@
1
- export type { CanceledQueryStatus, ExecuteQueryRequest, FailedQueryStatus, Query, QueryId, QueryStatus, RunningQueryStatus, SucceededQueryStatus, } from "./_components.js";
2
- export type { CancelQueryPermissionDenied, ExecuteQueryPermissionDenied, GetResultsPermissionDenied, GetStatusPermissionDenied, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
3
- export * as Queries from "./public/Query.js";
1
+ export type { CanceledQueryStatus, ExecuteSqlQueryRequest, FailedQueryStatus, QueryStatus, RunningQueryStatus, SqlQuery, SqlQueryId, SucceededQueryStatus, } from "./_components.js";
2
+ export type { CancelSqlQueryPermissionDenied, ExecuteSqlQueryPermissionDenied, GetResultsSqlQueryPermissionDenied, GetStatusSqlQueryPermissionDenied, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
3
+ export * as SqlQueries from "./public/SqlQuery.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,EACjC,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC"}
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * as Queries from "./public/Query.js";
16
+ export * as SqlQueries from "./public/SqlQuery.js";
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Queries"],"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 Queries from \"./public/Query.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["SqlQueries"],"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 SqlQueries from \"./public/SqlQuery.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,UAAU,MAAM,sBAAsB","ignoreList":[]}
@@ -8,10 +8,10 @@ import type * as _SqlQueries from "../_components.js";
8
8
  * @alpha
9
9
  *
10
10
  * Required Scopes: [api:sql-queries-execute]
11
- * URL: /v2/sqlQueries/queries/execute
11
+ * URL: /v2/sqlQueries/execute
12
12
  */
13
13
  export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
- $body: _SqlQueries.ExecuteQueryRequest,
14
+ $body: _SqlQueries.ExecuteSqlQueryRequest,
15
15
  $queryParams?: {
16
16
  preview?: _Core.PreviewMode | undefined;
17
17
  }
@@ -22,10 +22,10 @@ export declare function execute($ctx: $Client | $ClientContext | $OldClient | $O
22
22
  * @alpha
23
23
  *
24
24
  * Required Scopes: [api:sql-queries-read]
25
- * URL: /v2/sqlQueries/queries/{queryId}/getStatus
25
+ * URL: /v2/sqlQueries/{sqlQueryId}/getStatus
26
26
  */
27
27
  export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
- queryId: _SqlQueries.QueryId,
28
+ sqlQueryId: _SqlQueries.SqlQueryId,
29
29
  $queryParams?: {
30
30
  preview?: _Core.PreviewMode | undefined;
31
31
  }
@@ -36,10 +36,10 @@ export declare function getStatus($ctx: $Client | $ClientContext | $OldClient |
36
36
  * @alpha
37
37
  *
38
38
  * Required Scopes: [api:sql-queries-execute]
39
- * URL: /v2/sqlQueries/queries/{queryId}/cancel
39
+ * URL: /v2/sqlQueries/{sqlQueryId}/cancel
40
40
  */
41
41
  export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
42
- queryId: _SqlQueries.QueryId,
42
+ sqlQueryId: _SqlQueries.SqlQueryId,
43
43
  $queryParams?: {
44
44
  preview?: _Core.PreviewMode | undefined;
45
45
  }
@@ -51,12 +51,12 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
51
51
  * @alpha
52
52
  *
53
53
  * Required Scopes: [api:sql-queries-read]
54
- * URL: /v2/sqlQueries/queries/{queryId}/getResults
54
+ * URL: /v2/sqlQueries/{sqlQueryId}/getResults
55
55
  */
56
56
  export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
57
- queryId: _SqlQueries.QueryId,
57
+ sqlQueryId: _SqlQueries.SqlQueryId,
58
58
  $queryParams?: {
59
59
  preview?: _Core.PreviewMode | undefined;
60
60
  }
61
61
  ]): Promise<Response>;
62
- //# sourceMappingURL=Query.d.ts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AAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AASD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,WAAW,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
@@ -15,43 +15,43 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _execute = [1, "/v2/sqlQueries/queries/execute", 3];
18
+ const _execute = [1, "/v2/sqlQueries/execute", 3];
19
19
  /**
20
20
  * Executes a new query. Only the user that invoked the query can operate on the query.
21
21
  *
22
22
  * @alpha
23
23
  *
24
24
  * Required Scopes: [api:sql-queries-execute]
25
- * URL: /v2/sqlQueries/queries/execute
25
+ * URL: /v2/sqlQueries/execute
26
26
  */
27
27
  export function execute($ctx, ...args) {
28
28
  return $foundryPlatformFetch($ctx, _execute, ...args);
29
29
  }
30
- const _getStatus = [0, "/v2/sqlQueries/queries/{0}/getStatus", 2];
30
+ const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus", 2];
31
31
  /**
32
32
  * Gets the status of a query.
33
33
  *
34
34
  * @alpha
35
35
  *
36
36
  * Required Scopes: [api:sql-queries-read]
37
- * URL: /v2/sqlQueries/queries/{queryId}/getStatus
37
+ * URL: /v2/sqlQueries/{sqlQueryId}/getStatus
38
38
  */
39
39
  export function getStatus($ctx, ...args) {
40
40
  return $foundryPlatformFetch($ctx, _getStatus, ...args);
41
41
  }
42
- const _cancel = [1, "/v2/sqlQueries/queries/{0}/cancel", 2];
42
+ const _cancel = [1, "/v2/sqlQueries/{0}/cancel", 2];
43
43
  /**
44
44
  * Cancels a query. If the query is no longer running this is effectively a no-op.
45
45
  *
46
46
  * @alpha
47
47
  *
48
48
  * Required Scopes: [api:sql-queries-execute]
49
- * URL: /v2/sqlQueries/queries/{queryId}/cancel
49
+ * URL: /v2/sqlQueries/{sqlQueryId}/cancel
50
50
  */
51
51
  export function cancel($ctx, ...args) {
52
52
  return $foundryPlatformFetch($ctx, _cancel, ...args);
53
53
  }
54
- const _getResults = [0, "/v2/sqlQueries/queries/{0}/getResults", 2,, "application/octet-stream"];
54
+ const _getResults = [0, "/v2/sqlQueries/{0}/getResults", 2,, "application/octet-stream"];
55
55
  /**
56
56
  * Gets the results of a query. This endpoint implements long polling and requests will time out after
57
57
  * one minute.
@@ -59,9 +59,9 @@ const _getResults = [0, "/v2/sqlQueries/queries/{0}/getResults", 2,, "applicatio
59
59
  * @alpha
60
60
  *
61
61
  * Required Scopes: [api:sql-queries-read]
62
- * URL: /v2/sqlQueries/queries/{queryId}/getResults
62
+ * URL: /v2/sqlQueries/{sqlQueryId}/getResults
63
63
  */
64
64
  export function getResults($ctx, ...args) {
65
65
  return $foundryPlatformFetch($ctx, _getResults, ...args);
66
66
  }
67
- //# sourceMappingURL=Query.js.map
67
+ //# sourceMappingURL=SqlQuery.js.map
@@ -0,0 +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\", 3];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query.\n *\n * @alpha\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\", 2];\n/**\n * Gets the status of a query.\n *\n * @alpha\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\", 2];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @alpha\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\", 2, , \"application/octet-stream\"];\n/**\n * Gets the results of a query. This endpoint implements long polling and requests will time out after\n * one minute.\n *\n * @alpha\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,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,EAAE,CAAC,CAAC;AACzD;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,EAAE,CAAC,CAAC;AACnD;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,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACzF;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":[]}
@@ -10,7 +10,7 @@ export interface CanceledQueryStatus {
10
10
  /**
11
11
  * Log Safety: UNSAFE
12
12
  */
13
- export interface ExecuteQueryRequest {
13
+ export interface ExecuteSqlQueryRequest {
14
14
  query: string;
15
15
  fallbackBranchIds?: Array<_Datasets.BranchName>;
16
16
  }
@@ -20,18 +20,6 @@ export interface ExecuteQueryRequest {
20
20
  export interface FailedQueryStatus {
21
21
  errorMessage: string;
22
22
  }
23
- /**
24
- * Log Safety: UNSAFE
25
- */
26
- export interface Query {
27
- id: QueryId;
28
- }
29
- /**
30
- * The identifier of a Query.
31
- *
32
- * Log Safety: UNSAFE
33
- */
34
- export type QueryId = LooselyBrandedString<"QueryId">;
35
23
  /**
36
24
  * Log Safety: UNSAFE
37
25
  */
@@ -48,12 +36,24 @@ export type QueryStatus = ({
48
36
  * Log Safety: UNSAFE
49
37
  */
50
38
  export interface RunningQueryStatus {
51
- queryId: QueryId;
39
+ queryId: SqlQueryId;
52
40
  }
41
+ /**
42
+ * Log Safety: UNSAFE
43
+ */
44
+ export interface SqlQuery {
45
+ id: SqlQueryId;
46
+ }
47
+ /**
48
+ * The identifier of a SQL Query.
49
+ *
50
+ * Log Safety: UNSAFE
51
+ */
52
+ export type SqlQueryId = LooselyBrandedString<"SqlQueryId">;
53
53
  /**
54
54
  * Log Safety: UNSAFE
55
55
  */
56
56
  export interface SucceededQueryStatus {
57
- queryId: QueryId;
57
+ queryId: SqlQueryId;
58
58
  }
59
59
  //# sourceMappingURL=_components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEzD,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,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,OAAO,CAAC;CACb;AAED;;;;GAIG;AACH,MAAM,MAAM,O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A;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"}
@@ -2,53 +2,53 @@ export type LooselyBrandedString<T extends string> = string & {
2
2
  __LOOSE_BRAND?: T;
3
3
  };
4
4
  /**
5
- * Could not cancel the Query.
5
+ * Could not cancel the SqlQuery.
6
6
  *
7
7
  * Log Safety: UNSAFE
8
8
  */
9
- export interface CancelQueryPermissionDenied {
9
+ export interface CancelSqlQueryPermissionDenied {
10
10
  errorCode: "PERMISSION_DENIED";
11
- errorName: "CancelQueryPermissionDenied";
11
+ errorName: "CancelSqlQueryPermissionDenied";
12
12
  errorInstanceId: string;
13
13
  parameters: {
14
- queryId: unknown;
14
+ sqlQueryId: unknown;
15
15
  };
16
16
  }
17
17
  /**
18
- * Could not execute the Query.
18
+ * Could not execute the SqlQuery.
19
19
  *
20
20
  * Log Safety: SAFE
21
21
  */
22
- export interface ExecuteQueryPermissionDenied {
22
+ export interface ExecuteSqlQueryPermissionDenied {
23
23
  errorCode: "PERMISSION_DENIED";
24
- errorName: "ExecuteQueryPermissionDenied";
24
+ errorName: "ExecuteSqlQueryPermissionDenied";
25
25
  errorInstanceId: string;
26
26
  parameters: {};
27
27
  }
28
28
  /**
29
- * Could not getResults the Query.
29
+ * Could not getResults the SqlQuery.
30
30
  *
31
31
  * Log Safety: UNSAFE
32
32
  */
33
- export interface GetResultsPermissionDenied {
33
+ export interface GetResultsSqlQueryPermissionDenied {
34
34
  errorCode: "PERMISSION_DENIED";
35
- errorName: "GetResultsPermissionDenied";
35
+ errorName: "GetResultsSqlQueryPermissionDenied";
36
36
  errorInstanceId: string;
37
37
  parameters: {
38
- queryId: unknown;
38
+ sqlQueryId: unknown;
39
39
  };
40
40
  }
41
41
  /**
42
- * Could not getStatus the Query.
42
+ * Could not getStatus the SqlQuery.
43
43
  *
44
44
  * Log Safety: UNSAFE
45
45
  */
46
- export interface GetStatusPermissionDenied {
46
+ export interface GetStatusSqlQueryPermissionDenied {
47
47
  errorCode: "PERMISSION_DENIED";
48
- errorName: "GetStatusPermissionDenied";
48
+ errorName: "GetStatusSqlQueryPermissionDenied";
49
49
  errorInstanceId: string;
50
50
  parameters: {
51
- queryId: unknown;
51
+ sqlQueryId: unknown;
52
52
  };
53
53
  }
54
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,6BAA6B,CAAC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,8BAA8B,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,4BAA4B,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC;IACx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anceledQueryStatus, ExecuteQueryRequest, FailedQueryStatus, Query, QueryId, QueryStatus, RunningQueryStatus, SucceededQueryStatus, } from "./_components.js";
2
- export type { CancelQueryPermissionDenied, ExecuteQueryPermissionDenied, GetResultsPermissionDenied, GetStatusPermissionDenied, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
3
- export * as Queries from "./public/Query.js";
1
+ export type { CanceledQueryStatus, ExecuteSqlQueryRequest, FailedQueryStatus, QueryStatus, RunningQueryStatus, SqlQuery, SqlQueryId, SucceededQueryStatus, } from "./_components.js";
2
+ export type { CancelSqlQueryPermissionDenied, ExecuteSqlQueryPermissionDenied, GetResultsSqlQueryPermissionDenied, GetStatusSqlQueryPermissionDenied, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
3
+ export * as SqlQueries from "./public/SqlQuery.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,EACjC,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC"}
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * as Queries from "./public/Query.js";
16
+ export * as SqlQueries from "./public/SqlQuery.js";
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Queries"],"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 Queries from \"./public/Query.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["SqlQueries"],"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 SqlQueries from \"./public/SqlQuery.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,UAAU,MAAM,sBAAsB","ignoreList":[]}
@@ -8,10 +8,10 @@ import type * as _SqlQueries from "../_components.js";
8
8
  * @alpha
9
9
  *
10
10
  * Required Scopes: [api:sql-queries-execute]
11
- * URL: /v2/sqlQueries/queries/execute
11
+ * URL: /v2/sqlQueries/execute
12
12
  */
13
13
  export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
- $body: _SqlQueries.ExecuteQueryRequest,
14
+ $body: _SqlQueries.ExecuteSqlQueryRequest,
15
15
  $queryParams?: {
16
16
  preview?: _Core.PreviewMode | undefined;
17
17
  }
@@ -22,10 +22,10 @@ export declare function execute($ctx: $Client | $ClientContext | $OldClient | $O
22
22
  * @alpha
23
23
  *
24
24
  * Required Scopes: [api:sql-queries-read]
25
- * URL: /v2/sqlQueries/queries/{queryId}/getStatus
25
+ * URL: /v2/sqlQueries/{sqlQueryId}/getStatus
26
26
  */
27
27
  export declare function getStatus($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
- queryId: _SqlQueries.QueryId,
28
+ sqlQueryId: _SqlQueries.SqlQueryId,
29
29
  $queryParams?: {
30
30
  preview?: _Core.PreviewMode | undefined;
31
31
  }
@@ -36,10 +36,10 @@ export declare function getStatus($ctx: $Client | $ClientContext | $OldClient |
36
36
  * @alpha
37
37
  *
38
38
  * Required Scopes: [api:sql-queries-execute]
39
- * URL: /v2/sqlQueries/queries/{queryId}/cancel
39
+ * URL: /v2/sqlQueries/{sqlQueryId}/cancel
40
40
  */
41
41
  export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
42
- queryId: _SqlQueries.QueryId,
42
+ sqlQueryId: _SqlQueries.SqlQueryId,
43
43
  $queryParams?: {
44
44
  preview?: _Core.PreviewMode | undefined;
45
45
  }
@@ -51,12 +51,12 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
51
51
  * @alpha
52
52
  *
53
53
  * Required Scopes: [api:sql-queries-read]
54
- * URL: /v2/sqlQueries/queries/{queryId}/getResults
54
+ * URL: /v2/sqlQueries/{sqlQueryId}/getResults
55
55
  */
56
56
  export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
57
- queryId: _SqlQueries.QueryId,
57
+ sqlQueryId: _SqlQueries.SqlQueryId,
58
58
  $queryParams?: {
59
59
  preview?: _Core.PreviewMode | undefined;
60
60
  }
61
61
  ]): Promise<Response>;
62
- //# sourceMappingURL=Query.d.ts.map
62
+ //# sourceMappingURL=SqlQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SqlQuery.d.ts","sourceRoot":"","sources":["../../../src/public/SqlQuery.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,WAAW,MAAM,mBAAmB,CAAC;AAWtD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,WAAW,CAAC,sBAAsB;IACzC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AASD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,WAAW,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAElC;AASD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,WAAW,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AASD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,WAAW,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
@@ -15,43 +15,43 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _execute = [1, "/v2/sqlQueries/queries/execute", 3];
18
+ const _execute = [1, "/v2/sqlQueries/execute", 3];
19
19
  /**
20
20
  * Executes a new query. Only the user that invoked the query can operate on the query.
21
21
  *
22
22
  * @alpha
23
23
  *
24
24
  * Required Scopes: [api:sql-queries-execute]
25
- * URL: /v2/sqlQueries/queries/execute
25
+ * URL: /v2/sqlQueries/execute
26
26
  */
27
27
  export function execute($ctx, ...args) {
28
28
  return $foundryPlatformFetch($ctx, _execute, ...args);
29
29
  }
30
- const _getStatus = [0, "/v2/sqlQueries/queries/{0}/getStatus", 2];
30
+ const _getStatus = [0, "/v2/sqlQueries/{0}/getStatus", 2];
31
31
  /**
32
32
  * Gets the status of a query.
33
33
  *
34
34
  * @alpha
35
35
  *
36
36
  * Required Scopes: [api:sql-queries-read]
37
- * URL: /v2/sqlQueries/queries/{queryId}/getStatus
37
+ * URL: /v2/sqlQueries/{sqlQueryId}/getStatus
38
38
  */
39
39
  export function getStatus($ctx, ...args) {
40
40
  return $foundryPlatformFetch($ctx, _getStatus, ...args);
41
41
  }
42
- const _cancel = [1, "/v2/sqlQueries/queries/{0}/cancel", 2];
42
+ const _cancel = [1, "/v2/sqlQueries/{0}/cancel", 2];
43
43
  /**
44
44
  * Cancels a query. If the query is no longer running this is effectively a no-op.
45
45
  *
46
46
  * @alpha
47
47
  *
48
48
  * Required Scopes: [api:sql-queries-execute]
49
- * URL: /v2/sqlQueries/queries/{queryId}/cancel
49
+ * URL: /v2/sqlQueries/{sqlQueryId}/cancel
50
50
  */
51
51
  export function cancel($ctx, ...args) {
52
52
  return $foundryPlatformFetch($ctx, _cancel, ...args);
53
53
  }
54
- const _getResults = [0, "/v2/sqlQueries/queries/{0}/getResults", 2,, "application/octet-stream"];
54
+ const _getResults = [0, "/v2/sqlQueries/{0}/getResults", 2,, "application/octet-stream"];
55
55
  /**
56
56
  * Gets the results of a query. This endpoint implements long polling and requests will time out after
57
57
  * one minute.
@@ -59,9 +59,9 @@ const _getResults = [0, "/v2/sqlQueries/queries/{0}/getResults", 2,, "applicatio
59
59
  * @alpha
60
60
  *
61
61
  * Required Scopes: [api:sql-queries-read]
62
- * URL: /v2/sqlQueries/queries/{queryId}/getResults
62
+ * URL: /v2/sqlQueries/{sqlQueryId}/getResults
63
63
  */
64
64
  export function getResults($ctx, ...args) {
65
65
  return $foundryPlatformFetch($ctx, _getResults, ...args);
66
66
  }
67
- //# sourceMappingURL=Query.js.map
67
+ //# sourceMappingURL=SqlQuery.js.map
@@ -0,0 +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\", 3];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query.\n *\n * @alpha\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\", 2];\n/**\n * Gets the status of a query.\n *\n * @alpha\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\", 2];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @alpha\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\", 2, , \"application/octet-stream\"];\n/**\n * Gets the results of a query. This endpoint implements long polling and requests will time out after\n * one minute.\n *\n * @alpha\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,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,EAAE,CAAC,CAAC;AACzD;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,EAAE,CAAC,CAAC;AACnD;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,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACzF;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.17.0",
3
+ "version": "2.18.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.datasets": "2.17.0",
25
- "@osdk/shared.net.platformapi": "~1.3.0",
26
- "@osdk/foundry.core": "2.17.0"
24
+ "@osdk/foundry.core": "2.18.0",
25
+ "@osdk/foundry.datasets": "2.18.0",
26
+ "@osdk/shared.net.platformapi": "~1.3.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.1124.0",
49
+ "minVersion": "1.1138.0",
50
50
  "maxVersion": "1.x.x",
51
51
  "optional": false
52
52
  }
@@ -1 +0,0 @@
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,WAAW,MAAM,mBAAmB,CAAC;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version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"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 _execute = [1, \"/v2/sqlQueries/queries/execute\", 3];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/queries/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _getStatus = [0, \"/v2/sqlQueries/queries/{0}/getStatus\", 2];\n/**\n * Gets the status of a query.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/queries/{queryId}/getStatus\n */\nexport function getStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getStatus, ...args);\n}\nconst _cancel = [1, \"/v2/sqlQueries/queries/{0}/cancel\", 2];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/queries/{queryId}/cancel\n */\nexport function cancel($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _cancel, ...args);\n}\nconst _getResults = [\n 0,\n \"/v2/sqlQueries/queries/{0}/getResults\",\n 2,\n ,\n \"application/octet-stream\",\n];\n/**\n * Gets the results of a query. This endpoint implements long polling and requests will time out after\n * one minute.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/queries/{queryId}/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,gCAAgC,EAAE,CAAC,CAAC;AACzD;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,sCAAsC,EAAE,CAAC,CAAC;AACjE;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,mCAAmC,EAAE,CAAC,CAAC;AAC3D;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,CAChB,CAAC,EACD,uCAAuC,EACvC,CAAC,GAED,0BAA0B,CAC7B;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,I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OAAO,EAAE,WAAW,CAAC,OAAO;IAE5B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAeD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,OAAO,EAAE,WAAW,CAAC,OAAO;IAE5B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults"],"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 _execute = [1, \"/v2/sqlQueries/queries/execute\", 3];\n/**\n * Executes a new query. Only the user that invoked the query can operate on the query.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/queries/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\nconst _getStatus = [0, \"/v2/sqlQueries/queries/{0}/getStatus\", 2];\n/**\n * Gets the status of a query.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/queries/{queryId}/getStatus\n */\nexport function getStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getStatus, ...args);\n}\nconst _cancel = [1, \"/v2/sqlQueries/queries/{0}/cancel\", 2];\n/**\n * Cancels a query. If the query is no longer running this is effectively a no-op.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute]\n * URL: /v2/sqlQueries/queries/{queryId}/cancel\n */\nexport function cancel($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _cancel, ...args);\n}\nconst _getResults = [\n 0,\n \"/v2/sqlQueries/queries/{0}/getResults\",\n 2,\n ,\n \"application/octet-stream\",\n];\n/**\n * Gets the results of a query. This endpoint implements long polling and requests will time out after\n * one minute.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-read]\n * URL: /v2/sqlQueries/queries/{queryId}/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,gCAAgC,EAAE,CAAC,CAAC;AACzD;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,sCAAsC,EAAE,CAAC,CAAC;AACjE;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,mCAAmC,EAAE,CAAC,CAAC;AAC3D;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,CAChB,CAAC,EACD,uCAAuC,EACvC,CAAC,GAED,0BAA0B,CAC7B;AACD;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":[]}