@osdk/foundry.sqlqueries 2.48.0 → 2.49.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 +12 -0
- package/build/browser/_components.d.ts +319 -0
- package/build/browser/_components.d.ts.map +1 -1
- package/build/browser/_errors.d.ts +26 -0
- package/build/browser/_errors.d.ts.map +1 -1
- package/build/browser/index.d.ts +2 -2
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/public/SqlQuery.d.ts +16 -0
- package/build/browser/public/SqlQuery.d.ts.map +1 -1
- package/build/browser/public/SqlQuery.js +13 -0
- package/build/browser/public/SqlQuery.js.map +1 -1
- package/build/esm/_components.d.ts +319 -0
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/_errors.d.ts +26 -0
- package/build/esm/_errors.d.ts.map +1 -1
- package/build/esm/index.d.ts +2 -2
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/public/SqlQuery.d.ts +16 -0
- package/build/esm/public/SqlQuery.d.ts.map +1 -1
- package/build/esm/public/SqlQuery.js +13 -0
- package/build/esm/public/SqlQuery.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @osdk/foundry.sqlqueries
|
|
2
2
|
|
|
3
|
+
## 2.49.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ed3ac19: Regenerate Platform SDKs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ed3ac19]
|
|
12
|
+
- @osdk/foundry.datasets@2.49.0
|
|
13
|
+
- @osdk/foundry.core@2.49.0
|
|
14
|
+
|
|
3
15
|
## 2.48.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -2,11 +2,68 @@ import type * as _Core from "@osdk/foundry.core";
|
|
|
2
2
|
export type LooselyBrandedString<T extends string> = string & {
|
|
3
3
|
__LOOSE_BRAND?: T;
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Log Safety: SAFE
|
|
7
|
+
*/
|
|
8
|
+
export interface AnyColumnType {
|
|
9
|
+
}
|
|
5
10
|
/**
|
|
6
11
|
* Log Safety: SAFE
|
|
7
12
|
*/
|
|
8
13
|
export interface CanceledQueryStatus {
|
|
9
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The type of a column in a SQL query result or parameter.
|
|
17
|
+
*
|
|
18
|
+
* Log Safety: UNSAFE
|
|
19
|
+
*/
|
|
20
|
+
export type ColumnType = ({
|
|
21
|
+
type: "date";
|
|
22
|
+
} & _Core.DateType) | ({
|
|
23
|
+
type: "struct";
|
|
24
|
+
} & StructColumnType) | ({
|
|
25
|
+
type: "string";
|
|
26
|
+
} & _Core.StringType) | ({
|
|
27
|
+
type: "double";
|
|
28
|
+
} & _Core.DoubleType) | ({
|
|
29
|
+
type: "integer";
|
|
30
|
+
} & _Core.IntegerType) | ({
|
|
31
|
+
type: "float";
|
|
32
|
+
} & _Core.FloatType) | ({
|
|
33
|
+
type: "list";
|
|
34
|
+
} & ListColumnType) | ({
|
|
35
|
+
type: "any";
|
|
36
|
+
} & AnyColumnType) | ({
|
|
37
|
+
type: "long";
|
|
38
|
+
} & _Core.LongType) | ({
|
|
39
|
+
type: "boolean";
|
|
40
|
+
} & _Core.BooleanType) | ({
|
|
41
|
+
type: "binary";
|
|
42
|
+
} & _Core.BinaryType) | ({
|
|
43
|
+
type: "short";
|
|
44
|
+
} & _Core.ShortType) | ({
|
|
45
|
+
type: "decimal";
|
|
46
|
+
} & DecimalColumnType) | ({
|
|
47
|
+
type: "map";
|
|
48
|
+
} & MapColumnType) | ({
|
|
49
|
+
type: "timestamp";
|
|
50
|
+
} & _Core.TimestampType);
|
|
51
|
+
/**
|
|
52
|
+
* Log Safety: SAFE
|
|
53
|
+
*/
|
|
54
|
+
export interface DecimalColumnType {
|
|
55
|
+
precision: number;
|
|
56
|
+
scale: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Log Safety: UNSAFE
|
|
60
|
+
*/
|
|
61
|
+
export interface ExecuteOntologySqlQueryRequest {
|
|
62
|
+
query: string;
|
|
63
|
+
parameters?: Parameters;
|
|
64
|
+
rowLimit?: number;
|
|
65
|
+
dryRun?: boolean;
|
|
66
|
+
}
|
|
10
67
|
/**
|
|
11
68
|
* Log Safety: UNSAFE
|
|
12
69
|
*/
|
|
@@ -20,6 +77,212 @@ export interface ExecuteSqlQueryRequest {
|
|
|
20
77
|
export interface FailedQueryStatus {
|
|
21
78
|
errorMessage: string;
|
|
22
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Log Safety: UNSAFE
|
|
82
|
+
*/
|
|
83
|
+
export interface ListColumnType {
|
|
84
|
+
elementType: ColumnType;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Log Safety: UNSAFE
|
|
88
|
+
*/
|
|
89
|
+
export interface MapColumnType {
|
|
90
|
+
keyType: ColumnType;
|
|
91
|
+
valueType: ColumnType;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A key for a map parameter value.
|
|
95
|
+
*
|
|
96
|
+
* Log Safety: UNSAFE
|
|
97
|
+
*/
|
|
98
|
+
export type MapParameterKey = LooselyBrandedString<"MapParameterKey">;
|
|
99
|
+
/**
|
|
100
|
+
* A named mapping of parameter names to values.
|
|
101
|
+
*
|
|
102
|
+
* Log Safety: UNSAFE
|
|
103
|
+
*/
|
|
104
|
+
export interface NamedParameterMapping {
|
|
105
|
+
mapping: ParameterMapping;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* An untyped parameter value.
|
|
109
|
+
*
|
|
110
|
+
* Log Safety: UNSAFE
|
|
111
|
+
*/
|
|
112
|
+
export interface ParameterAnyValue {
|
|
113
|
+
value: any;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A boolean parameter value.
|
|
117
|
+
*
|
|
118
|
+
* Log Safety: UNSAFE
|
|
119
|
+
*/
|
|
120
|
+
export interface ParameterBooleanValue {
|
|
121
|
+
value: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* A date parameter value.
|
|
125
|
+
*
|
|
126
|
+
* Log Safety: UNSAFE
|
|
127
|
+
*/
|
|
128
|
+
export interface ParameterDateValue {
|
|
129
|
+
value: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* A decimal parameter value.
|
|
133
|
+
*
|
|
134
|
+
* Log Safety: UNSAFE
|
|
135
|
+
*/
|
|
136
|
+
export interface ParameterDecimalValue {
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* A double parameter value.
|
|
141
|
+
*
|
|
142
|
+
* Log Safety: UNSAFE
|
|
143
|
+
*/
|
|
144
|
+
export interface ParameterDoubleValue {
|
|
145
|
+
value: number;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* A float parameter value.
|
|
149
|
+
*
|
|
150
|
+
* Log Safety: UNSAFE
|
|
151
|
+
*/
|
|
152
|
+
export interface ParameterFloatValue {
|
|
153
|
+
value: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* An integer parameter value.
|
|
157
|
+
*
|
|
158
|
+
* Log Safety: UNSAFE
|
|
159
|
+
*/
|
|
160
|
+
export interface ParameterIntegerValue {
|
|
161
|
+
value: number;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A parameter value that is a list of other parameter values. All values in the list must be of the same type.
|
|
165
|
+
*
|
|
166
|
+
* Log Safety: UNSAFE
|
|
167
|
+
*/
|
|
168
|
+
export interface ParameterListValue {
|
|
169
|
+
values: Array<ParameterValue>;
|
|
170
|
+
elementType: ColumnType;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A long integer parameter value.
|
|
174
|
+
*
|
|
175
|
+
* Log Safety: UNSAFE
|
|
176
|
+
*/
|
|
177
|
+
export interface ParameterLongValue {
|
|
178
|
+
value: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A mapping of named parameters to their values.
|
|
182
|
+
*
|
|
183
|
+
* Log Safety: UNSAFE
|
|
184
|
+
*/
|
|
185
|
+
export type ParameterMapping = Record<ParameterName, ParameterValue>;
|
|
186
|
+
/**
|
|
187
|
+
* A map parameter value.
|
|
188
|
+
*
|
|
189
|
+
* Log Safety: UNSAFE
|
|
190
|
+
*/
|
|
191
|
+
export interface ParameterMapValue {
|
|
192
|
+
values: Record<MapParameterKey, ParameterValue>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* The name of a SQL query parameter.
|
|
196
|
+
*
|
|
197
|
+
* Log Safety: UNSAFE
|
|
198
|
+
*/
|
|
199
|
+
export type ParameterName = LooselyBrandedString<"ParameterName">;
|
|
200
|
+
/**
|
|
201
|
+
* A null parameter value.
|
|
202
|
+
*
|
|
203
|
+
* Log Safety: SAFE
|
|
204
|
+
*/
|
|
205
|
+
export interface ParameterNullValue {
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Parameters for SQL query execution. Can be either unnamed positional parameters
|
|
209
|
+
or named parameter mappings.
|
|
210
|
+
*
|
|
211
|
+
* Log Safety: UNSAFE
|
|
212
|
+
*/
|
|
213
|
+
export type Parameters = ({
|
|
214
|
+
type: "unnamedParameterValues";
|
|
215
|
+
} & UnnamedParameterValues) | ({
|
|
216
|
+
type: "namedParameterMapping";
|
|
217
|
+
} & NamedParameterMapping);
|
|
218
|
+
/**
|
|
219
|
+
* A short integer parameter value.
|
|
220
|
+
*
|
|
221
|
+
* Log Safety: UNSAFE
|
|
222
|
+
*/
|
|
223
|
+
export interface ParameterShortValue {
|
|
224
|
+
value: number;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* A string parameter value.
|
|
228
|
+
*
|
|
229
|
+
* Log Safety: UNSAFE
|
|
230
|
+
*/
|
|
231
|
+
export interface ParameterStringValue {
|
|
232
|
+
value: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* A struct composed of ordered elements, each with a name and value.
|
|
236
|
+
*
|
|
237
|
+
* Log Safety: UNSAFE
|
|
238
|
+
*/
|
|
239
|
+
export interface ParameterStructValue {
|
|
240
|
+
structElements: Array<StructElement>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A timestamp parameter value.
|
|
244
|
+
*
|
|
245
|
+
* Log Safety: UNSAFE
|
|
246
|
+
*/
|
|
247
|
+
export interface ParameterTimestampValue {
|
|
248
|
+
value: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A typed parameter value for SQL query execution.
|
|
252
|
+
*
|
|
253
|
+
* Log Safety: UNSAFE
|
|
254
|
+
*/
|
|
255
|
+
export type ParameterValue = ({
|
|
256
|
+
type: "date";
|
|
257
|
+
} & ParameterDateValue) | ({
|
|
258
|
+
type: "struct";
|
|
259
|
+
} & ParameterStructValue) | ({
|
|
260
|
+
type: "string";
|
|
261
|
+
} & ParameterStringValue) | ({
|
|
262
|
+
type: "double";
|
|
263
|
+
} & ParameterDoubleValue) | ({
|
|
264
|
+
type: "integer";
|
|
265
|
+
} & ParameterIntegerValue) | ({
|
|
266
|
+
type: "float";
|
|
267
|
+
} & ParameterFloatValue) | ({
|
|
268
|
+
type: "list";
|
|
269
|
+
} & ParameterListValue) | ({
|
|
270
|
+
type: "any";
|
|
271
|
+
} & ParameterAnyValue) | ({
|
|
272
|
+
type: "long";
|
|
273
|
+
} & ParameterLongValue) | ({
|
|
274
|
+
type: "boolean";
|
|
275
|
+
} & ParameterBooleanValue) | ({
|
|
276
|
+
type: "null";
|
|
277
|
+
} & ParameterNullValue) | ({
|
|
278
|
+
type: "short";
|
|
279
|
+
} & ParameterShortValue) | ({
|
|
280
|
+
type: "decimal";
|
|
281
|
+
} & ParameterDecimalValue) | ({
|
|
282
|
+
type: "map";
|
|
283
|
+
} & ParameterMapValue) | ({
|
|
284
|
+
type: "timestamp";
|
|
285
|
+
} & ParameterTimestampValue);
|
|
23
286
|
/**
|
|
24
287
|
* Log Safety: UNSAFE
|
|
25
288
|
*/
|
|
@@ -50,10 +313,66 @@ export interface SqlQuery {
|
|
|
50
313
|
* Log Safety: UNSAFE
|
|
51
314
|
*/
|
|
52
315
|
export type SqlQueryId = LooselyBrandedString<"SqlQueryId">;
|
|
316
|
+
/**
|
|
317
|
+
* Log Safety: UNSAFE
|
|
318
|
+
*/
|
|
319
|
+
export interface StructColumnFieldType {
|
|
320
|
+
name: string;
|
|
321
|
+
type: ColumnType;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Log Safety: UNSAFE
|
|
325
|
+
*/
|
|
326
|
+
export interface StructColumnType {
|
|
327
|
+
fields: Array<StructColumnFieldType>;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Represents an entry in a struct.
|
|
331
|
+
*
|
|
332
|
+
* Log Safety: UNSAFE
|
|
333
|
+
*/
|
|
334
|
+
export interface StructElement {
|
|
335
|
+
structElementName: StructElementName;
|
|
336
|
+
structElementValue: ParameterValue;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* The name of a struct element.
|
|
340
|
+
*
|
|
341
|
+
* Log Safety: UNSAFE
|
|
342
|
+
*/
|
|
343
|
+
export type StructElementName = ({
|
|
344
|
+
type: "structFieldRid";
|
|
345
|
+
} & StructFieldRid) | ({
|
|
346
|
+
type: "structFieldKey";
|
|
347
|
+
} & StructFieldKeyValue);
|
|
348
|
+
/**
|
|
349
|
+
* A string key for a struct field.
|
|
350
|
+
*
|
|
351
|
+
* Log Safety: UNSAFE
|
|
352
|
+
*/
|
|
353
|
+
export interface StructFieldKeyValue {
|
|
354
|
+
value: string;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* A unique identifier for a field of a struct property type.
|
|
358
|
+
*
|
|
359
|
+
* Log Safety: SAFE
|
|
360
|
+
*/
|
|
361
|
+
export interface StructFieldRid {
|
|
362
|
+
value: string;
|
|
363
|
+
}
|
|
53
364
|
/**
|
|
54
365
|
* Log Safety: UNSAFE
|
|
55
366
|
*/
|
|
56
367
|
export interface SucceededQueryStatus {
|
|
57
368
|
queryId: SqlQueryId;
|
|
58
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* An ordered list of unnamed positional parameter values.
|
|
372
|
+
*
|
|
373
|
+
* Log Safety: UNSAFE
|
|
374
|
+
*/
|
|
375
|
+
export interface UnnamedParameterValues {
|
|
376
|
+
values: Array<ParameterValue>;
|
|
377
|
+
}
|
|
59
378
|
//# 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,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,C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AAM,MAAM,iBAAiB,GACzB,CAAC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,cAAc,CAAC,GAC7C,CAAC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,mBAAmB,CAAC,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAC/B"}
|
|
@@ -15,6 +15,18 @@ export interface CancelSqlQueryPermissionDenied {
|
|
|
15
15
|
sqlQueryId: unknown;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Could not executeOntology the SqlQuery.
|
|
20
|
+
*
|
|
21
|
+
* Log Safety: SAFE
|
|
22
|
+
*/
|
|
23
|
+
export interface ExecuteOntologySqlQueryPermissionDenied {
|
|
24
|
+
errorCode: "PERMISSION_DENIED";
|
|
25
|
+
errorName: "ExecuteOntologySqlQueryPermissionDenied";
|
|
26
|
+
errorDescription: "Could not executeOntology the SqlQuery.";
|
|
27
|
+
errorInstanceId: string;
|
|
28
|
+
parameters: {};
|
|
29
|
+
}
|
|
18
30
|
/**
|
|
19
31
|
* Could not execute the SqlQuery.
|
|
20
32
|
*
|
|
@@ -55,6 +67,20 @@ export interface GetStatusSqlQueryPermissionDenied {
|
|
|
55
67
|
sqlQueryId: unknown;
|
|
56
68
|
};
|
|
57
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* The Ontology query failed.
|
|
72
|
+
*
|
|
73
|
+
* Log Safety: UNSAFE
|
|
74
|
+
*/
|
|
75
|
+
export interface OntologyQueryFailed {
|
|
76
|
+
errorCode: "INTERNAL";
|
|
77
|
+
errorName: "OntologyQueryFailed";
|
|
78
|
+
errorDescription: "The Ontology query failed.";
|
|
79
|
+
errorInstanceId: string;
|
|
80
|
+
parameters: {
|
|
81
|
+
errorMessage: unknown;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
58
84
|
/**
|
|
59
85
|
* The query was canceled.
|
|
60
86
|
*
|
|
@@ -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,8BAA8B;IAC7C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,gBAAgB,EAAE,gCAAgC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,iCAAiC,CAAC;IAC7C,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,oCAAoC,CAAC;IAChD,gBAAgB,EAAE,oCAAoC,CAAC;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EA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IAC9B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,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,gBAAgB,EACd,wEAAwE,CAAC;IAC3E,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,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,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,gBAAgB,EACd,gFAAgF,CAAC;IACnF,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;CACH"}
|
package/build/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
1
|
+
export type { AnyColumnType, CanceledQueryStatus, ColumnType, DecimalColumnType, ExecuteOntologySqlQueryRequest, ExecuteSqlQueryRequest, FailedQueryStatus, ListColumnType, MapColumnType, MapParameterKey, NamedParameterMapping, ParameterAnyValue, ParameterBooleanValue, ParameterDateValue, ParameterDecimalValue, ParameterDoubleValue, ParameterFloatValue, ParameterIntegerValue, ParameterListValue, ParameterLongValue, ParameterMapping, ParameterMapValue, ParameterName, ParameterNullValue, Parameters, ParameterShortValue, ParameterStringValue, ParameterStructValue, ParameterTimestampValue, ParameterValue, QueryStatus, RunningQueryStatus, SqlQuery, SqlQueryId, StructColumnFieldType, StructColumnType, StructElement, StructElementName, StructFieldKeyValue, StructFieldRid, SucceededQueryStatus, UnnamedParameterValues, } from "./_components.js";
|
|
2
|
+
export type { CancelSqlQueryPermissionDenied, ExecuteOntologySqlQueryPermissionDenied, ExecuteSqlQueryPermissionDenied, GetResultsSqlQueryPermissionDenied, GetStatusSqlQueryPermissionDenied, OntologyQueryFailed, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
|
|
3
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,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,uCAAuC,EACvC,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,EACjC,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
1
2
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
2
3
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
3
4
|
import type * as _SqlQueries from "../_components.js";
|
|
@@ -43,4 +44,19 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
43
44
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
44
45
|
*/
|
|
45
46
|
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Executes a SQL query against the Ontology. Results are returned synchronously in
|
|
49
|
+
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
50
|
+
*
|
|
51
|
+
* @alpha
|
|
52
|
+
*
|
|
53
|
+
* Required Scopes: [api:sql-queries-execute, api:ontologies-read]
|
|
54
|
+
* URL: /v2/sqlQueries/executeOntology
|
|
55
|
+
*/
|
|
56
|
+
export declare function executeOntology($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
57
|
+
$body: _SqlQueries.ExecuteOntologySqlQueryRequest,
|
|
58
|
+
$queryParams?: {
|
|
59
|
+
preview?: _Core.PreviewMode | undefined;
|
|
60
|
+
}
|
|
61
|
+
]): Promise<Response>;
|
|
46
62
|
//# 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,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;;;;;;;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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;AASD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,WAAW,CAAC,8BAA8B;IACjD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
|
|
@@ -69,4 +69,17 @@ const _getResults = [0, "/v2/sqlQueries/{0}/getResults",,, "application/octet-st
|
|
|
69
69
|
export function getResults($ctx, ...args) {
|
|
70
70
|
return $foundryPlatformFetch($ctx, _getResults, ...args);
|
|
71
71
|
}
|
|
72
|
+
const _executeOntology = [1, "/v2/sqlQueries/executeOntology", 3,, "application/octet-stream"];
|
|
73
|
+
/**
|
|
74
|
+
* Executes a SQL query against the Ontology. Results are returned synchronously in
|
|
75
|
+
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
76
|
+
*
|
|
77
|
+
* @alpha
|
|
78
|
+
*
|
|
79
|
+
* Required Scopes: [api:sql-queries-execute, api:ontologies-read]
|
|
80
|
+
* URL: /v2/sqlQueries/executeOntology
|
|
81
|
+
*/
|
|
82
|
+
export function executeOntology($ctx, ...args) {
|
|
83
|
+
return $foundryPlatformFetch($ctx, _executeOntology, ...args);
|
|
84
|
+
}
|
|
72
85
|
//# sourceMappingURL=SqlQuery.js.map
|
|
@@ -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];\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
|
+
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults","_executeOntology","executeOntology"],"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}\nconst _executeOntology = [1, \"/v2/sqlQueries/executeOntology\", 3, , \"application/octet-stream\"];\n/**\n * Executes a SQL query against the Ontology. Results are returned synchronously in\n * [Apache Arrow](https://arrow.apache.org/) format.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute, api:ontologies-read]\n * URL: /v2/sqlQueries/executeOntology\n */\nexport function executeOntology($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeOntology, ...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;AACA,MAAMO,gBAAgB,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,gBAAgB,EAAE,GAAGP,IAAI,CAAC;AACjE","ignoreList":[]}
|
|
@@ -2,11 +2,68 @@ import type * as _Core from "@osdk/foundry.core";
|
|
|
2
2
|
export type LooselyBrandedString<T extends string> = string & {
|
|
3
3
|
__LOOSE_BRAND?: T;
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Log Safety: SAFE
|
|
7
|
+
*/
|
|
8
|
+
export interface AnyColumnType {
|
|
9
|
+
}
|
|
5
10
|
/**
|
|
6
11
|
* Log Safety: SAFE
|
|
7
12
|
*/
|
|
8
13
|
export interface CanceledQueryStatus {
|
|
9
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The type of a column in a SQL query result or parameter.
|
|
17
|
+
*
|
|
18
|
+
* Log Safety: UNSAFE
|
|
19
|
+
*/
|
|
20
|
+
export type ColumnType = ({
|
|
21
|
+
type: "date";
|
|
22
|
+
} & _Core.DateType) | ({
|
|
23
|
+
type: "struct";
|
|
24
|
+
} & StructColumnType) | ({
|
|
25
|
+
type: "string";
|
|
26
|
+
} & _Core.StringType) | ({
|
|
27
|
+
type: "double";
|
|
28
|
+
} & _Core.DoubleType) | ({
|
|
29
|
+
type: "integer";
|
|
30
|
+
} & _Core.IntegerType) | ({
|
|
31
|
+
type: "float";
|
|
32
|
+
} & _Core.FloatType) | ({
|
|
33
|
+
type: "list";
|
|
34
|
+
} & ListColumnType) | ({
|
|
35
|
+
type: "any";
|
|
36
|
+
} & AnyColumnType) | ({
|
|
37
|
+
type: "long";
|
|
38
|
+
} & _Core.LongType) | ({
|
|
39
|
+
type: "boolean";
|
|
40
|
+
} & _Core.BooleanType) | ({
|
|
41
|
+
type: "binary";
|
|
42
|
+
} & _Core.BinaryType) | ({
|
|
43
|
+
type: "short";
|
|
44
|
+
} & _Core.ShortType) | ({
|
|
45
|
+
type: "decimal";
|
|
46
|
+
} & DecimalColumnType) | ({
|
|
47
|
+
type: "map";
|
|
48
|
+
} & MapColumnType) | ({
|
|
49
|
+
type: "timestamp";
|
|
50
|
+
} & _Core.TimestampType);
|
|
51
|
+
/**
|
|
52
|
+
* Log Safety: SAFE
|
|
53
|
+
*/
|
|
54
|
+
export interface DecimalColumnType {
|
|
55
|
+
precision: number;
|
|
56
|
+
scale: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Log Safety: UNSAFE
|
|
60
|
+
*/
|
|
61
|
+
export interface ExecuteOntologySqlQueryRequest {
|
|
62
|
+
query: string;
|
|
63
|
+
parameters?: Parameters;
|
|
64
|
+
rowLimit?: number;
|
|
65
|
+
dryRun?: boolean;
|
|
66
|
+
}
|
|
10
67
|
/**
|
|
11
68
|
* Log Safety: UNSAFE
|
|
12
69
|
*/
|
|
@@ -20,6 +77,212 @@ export interface ExecuteSqlQueryRequest {
|
|
|
20
77
|
export interface FailedQueryStatus {
|
|
21
78
|
errorMessage: string;
|
|
22
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Log Safety: UNSAFE
|
|
82
|
+
*/
|
|
83
|
+
export interface ListColumnType {
|
|
84
|
+
elementType: ColumnType;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Log Safety: UNSAFE
|
|
88
|
+
*/
|
|
89
|
+
export interface MapColumnType {
|
|
90
|
+
keyType: ColumnType;
|
|
91
|
+
valueType: ColumnType;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A key for a map parameter value.
|
|
95
|
+
*
|
|
96
|
+
* Log Safety: UNSAFE
|
|
97
|
+
*/
|
|
98
|
+
export type MapParameterKey = LooselyBrandedString<"MapParameterKey">;
|
|
99
|
+
/**
|
|
100
|
+
* A named mapping of parameter names to values.
|
|
101
|
+
*
|
|
102
|
+
* Log Safety: UNSAFE
|
|
103
|
+
*/
|
|
104
|
+
export interface NamedParameterMapping {
|
|
105
|
+
mapping: ParameterMapping;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* An untyped parameter value.
|
|
109
|
+
*
|
|
110
|
+
* Log Safety: UNSAFE
|
|
111
|
+
*/
|
|
112
|
+
export interface ParameterAnyValue {
|
|
113
|
+
value: any;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A boolean parameter value.
|
|
117
|
+
*
|
|
118
|
+
* Log Safety: UNSAFE
|
|
119
|
+
*/
|
|
120
|
+
export interface ParameterBooleanValue {
|
|
121
|
+
value: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* A date parameter value.
|
|
125
|
+
*
|
|
126
|
+
* Log Safety: UNSAFE
|
|
127
|
+
*/
|
|
128
|
+
export interface ParameterDateValue {
|
|
129
|
+
value: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* A decimal parameter value.
|
|
133
|
+
*
|
|
134
|
+
* Log Safety: UNSAFE
|
|
135
|
+
*/
|
|
136
|
+
export interface ParameterDecimalValue {
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* A double parameter value.
|
|
141
|
+
*
|
|
142
|
+
* Log Safety: UNSAFE
|
|
143
|
+
*/
|
|
144
|
+
export interface ParameterDoubleValue {
|
|
145
|
+
value: number;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* A float parameter value.
|
|
149
|
+
*
|
|
150
|
+
* Log Safety: UNSAFE
|
|
151
|
+
*/
|
|
152
|
+
export interface ParameterFloatValue {
|
|
153
|
+
value: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* An integer parameter value.
|
|
157
|
+
*
|
|
158
|
+
* Log Safety: UNSAFE
|
|
159
|
+
*/
|
|
160
|
+
export interface ParameterIntegerValue {
|
|
161
|
+
value: number;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A parameter value that is a list of other parameter values. All values in the list must be of the same type.
|
|
165
|
+
*
|
|
166
|
+
* Log Safety: UNSAFE
|
|
167
|
+
*/
|
|
168
|
+
export interface ParameterListValue {
|
|
169
|
+
values: Array<ParameterValue>;
|
|
170
|
+
elementType: ColumnType;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A long integer parameter value.
|
|
174
|
+
*
|
|
175
|
+
* Log Safety: UNSAFE
|
|
176
|
+
*/
|
|
177
|
+
export interface ParameterLongValue {
|
|
178
|
+
value: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A mapping of named parameters to their values.
|
|
182
|
+
*
|
|
183
|
+
* Log Safety: UNSAFE
|
|
184
|
+
*/
|
|
185
|
+
export type ParameterMapping = Record<ParameterName, ParameterValue>;
|
|
186
|
+
/**
|
|
187
|
+
* A map parameter value.
|
|
188
|
+
*
|
|
189
|
+
* Log Safety: UNSAFE
|
|
190
|
+
*/
|
|
191
|
+
export interface ParameterMapValue {
|
|
192
|
+
values: Record<MapParameterKey, ParameterValue>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* The name of a SQL query parameter.
|
|
196
|
+
*
|
|
197
|
+
* Log Safety: UNSAFE
|
|
198
|
+
*/
|
|
199
|
+
export type ParameterName = LooselyBrandedString<"ParameterName">;
|
|
200
|
+
/**
|
|
201
|
+
* A null parameter value.
|
|
202
|
+
*
|
|
203
|
+
* Log Safety: SAFE
|
|
204
|
+
*/
|
|
205
|
+
export interface ParameterNullValue {
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Parameters for SQL query execution. Can be either unnamed positional parameters
|
|
209
|
+
or named parameter mappings.
|
|
210
|
+
*
|
|
211
|
+
* Log Safety: UNSAFE
|
|
212
|
+
*/
|
|
213
|
+
export type Parameters = ({
|
|
214
|
+
type: "unnamedParameterValues";
|
|
215
|
+
} & UnnamedParameterValues) | ({
|
|
216
|
+
type: "namedParameterMapping";
|
|
217
|
+
} & NamedParameterMapping);
|
|
218
|
+
/**
|
|
219
|
+
* A short integer parameter value.
|
|
220
|
+
*
|
|
221
|
+
* Log Safety: UNSAFE
|
|
222
|
+
*/
|
|
223
|
+
export interface ParameterShortValue {
|
|
224
|
+
value: number;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* A string parameter value.
|
|
228
|
+
*
|
|
229
|
+
* Log Safety: UNSAFE
|
|
230
|
+
*/
|
|
231
|
+
export interface ParameterStringValue {
|
|
232
|
+
value: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* A struct composed of ordered elements, each with a name and value.
|
|
236
|
+
*
|
|
237
|
+
* Log Safety: UNSAFE
|
|
238
|
+
*/
|
|
239
|
+
export interface ParameterStructValue {
|
|
240
|
+
structElements: Array<StructElement>;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A timestamp parameter value.
|
|
244
|
+
*
|
|
245
|
+
* Log Safety: UNSAFE
|
|
246
|
+
*/
|
|
247
|
+
export interface ParameterTimestampValue {
|
|
248
|
+
value: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A typed parameter value for SQL query execution.
|
|
252
|
+
*
|
|
253
|
+
* Log Safety: UNSAFE
|
|
254
|
+
*/
|
|
255
|
+
export type ParameterValue = ({
|
|
256
|
+
type: "date";
|
|
257
|
+
} & ParameterDateValue) | ({
|
|
258
|
+
type: "struct";
|
|
259
|
+
} & ParameterStructValue) | ({
|
|
260
|
+
type: "string";
|
|
261
|
+
} & ParameterStringValue) | ({
|
|
262
|
+
type: "double";
|
|
263
|
+
} & ParameterDoubleValue) | ({
|
|
264
|
+
type: "integer";
|
|
265
|
+
} & ParameterIntegerValue) | ({
|
|
266
|
+
type: "float";
|
|
267
|
+
} & ParameterFloatValue) | ({
|
|
268
|
+
type: "list";
|
|
269
|
+
} & ParameterListValue) | ({
|
|
270
|
+
type: "any";
|
|
271
|
+
} & ParameterAnyValue) | ({
|
|
272
|
+
type: "long";
|
|
273
|
+
} & ParameterLongValue) | ({
|
|
274
|
+
type: "boolean";
|
|
275
|
+
} & ParameterBooleanValue) | ({
|
|
276
|
+
type: "null";
|
|
277
|
+
} & ParameterNullValue) | ({
|
|
278
|
+
type: "short";
|
|
279
|
+
} & ParameterShortValue) | ({
|
|
280
|
+
type: "decimal";
|
|
281
|
+
} & ParameterDecimalValue) | ({
|
|
282
|
+
type: "map";
|
|
283
|
+
} & ParameterMapValue) | ({
|
|
284
|
+
type: "timestamp";
|
|
285
|
+
} & ParameterTimestampValue);
|
|
23
286
|
/**
|
|
24
287
|
* Log Safety: UNSAFE
|
|
25
288
|
*/
|
|
@@ -50,10 +313,66 @@ export interface SqlQuery {
|
|
|
50
313
|
* Log Safety: UNSAFE
|
|
51
314
|
*/
|
|
52
315
|
export type SqlQueryId = LooselyBrandedString<"SqlQueryId">;
|
|
316
|
+
/**
|
|
317
|
+
* Log Safety: UNSAFE
|
|
318
|
+
*/
|
|
319
|
+
export interface StructColumnFieldType {
|
|
320
|
+
name: string;
|
|
321
|
+
type: ColumnType;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Log Safety: UNSAFE
|
|
325
|
+
*/
|
|
326
|
+
export interface StructColumnType {
|
|
327
|
+
fields: Array<StructColumnFieldType>;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Represents an entry in a struct.
|
|
331
|
+
*
|
|
332
|
+
* Log Safety: UNSAFE
|
|
333
|
+
*/
|
|
334
|
+
export interface StructElement {
|
|
335
|
+
structElementName: StructElementName;
|
|
336
|
+
structElementValue: ParameterValue;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* The name of a struct element.
|
|
340
|
+
*
|
|
341
|
+
* Log Safety: UNSAFE
|
|
342
|
+
*/
|
|
343
|
+
export type StructElementName = ({
|
|
344
|
+
type: "structFieldRid";
|
|
345
|
+
} & StructFieldRid) | ({
|
|
346
|
+
type: "structFieldKey";
|
|
347
|
+
} & StructFieldKeyValue);
|
|
348
|
+
/**
|
|
349
|
+
* A string key for a struct field.
|
|
350
|
+
*
|
|
351
|
+
* Log Safety: UNSAFE
|
|
352
|
+
*/
|
|
353
|
+
export interface StructFieldKeyValue {
|
|
354
|
+
value: string;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* A unique identifier for a field of a struct property type.
|
|
358
|
+
*
|
|
359
|
+
* Log Safety: SAFE
|
|
360
|
+
*/
|
|
361
|
+
export interface StructFieldRid {
|
|
362
|
+
value: string;
|
|
363
|
+
}
|
|
53
364
|
/**
|
|
54
365
|
* Log Safety: UNSAFE
|
|
55
366
|
*/
|
|
56
367
|
export interface SucceededQueryStatus {
|
|
57
368
|
queryId: SqlQueryId;
|
|
58
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* An ordered list of unnamed positional parameter values.
|
|
372
|
+
*
|
|
373
|
+
* Log Safety: UNSAFE
|
|
374
|
+
*/
|
|
375
|
+
export interface UnnamedParameterValues {
|
|
376
|
+
values: Array<ParameterValue>;
|
|
377
|
+
}
|
|
59
378
|
//# 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,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,C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GAAG,cAAc,CAAC,GAC7C,CAAC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,mBAAmB,CAAC,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAC/B"}
|
package/build/esm/_errors.d.ts
CHANGED
|
@@ -15,6 +15,18 @@ export interface CancelSqlQueryPermissionDenied {
|
|
|
15
15
|
sqlQueryId: unknown;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Could not executeOntology the SqlQuery.
|
|
20
|
+
*
|
|
21
|
+
* Log Safety: SAFE
|
|
22
|
+
*/
|
|
23
|
+
export interface ExecuteOntologySqlQueryPermissionDenied {
|
|
24
|
+
errorCode: "PERMISSION_DENIED";
|
|
25
|
+
errorName: "ExecuteOntologySqlQueryPermissionDenied";
|
|
26
|
+
errorDescription: "Could not executeOntology the SqlQuery.";
|
|
27
|
+
errorInstanceId: string;
|
|
28
|
+
parameters: {};
|
|
29
|
+
}
|
|
18
30
|
/**
|
|
19
31
|
* Could not execute the SqlQuery.
|
|
20
32
|
*
|
|
@@ -55,6 +67,20 @@ export interface GetStatusSqlQueryPermissionDenied {
|
|
|
55
67
|
sqlQueryId: unknown;
|
|
56
68
|
};
|
|
57
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* The Ontology query failed.
|
|
72
|
+
*
|
|
73
|
+
* Log Safety: UNSAFE
|
|
74
|
+
*/
|
|
75
|
+
export interface OntologyQueryFailed {
|
|
76
|
+
errorCode: "INTERNAL";
|
|
77
|
+
errorName: "OntologyQueryFailed";
|
|
78
|
+
errorDescription: "The Ontology query failed.";
|
|
79
|
+
errorInstanceId: string;
|
|
80
|
+
parameters: {
|
|
81
|
+
errorMessage: unknown;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
58
84
|
/**
|
|
59
85
|
* The query was canceled.
|
|
60
86
|
*
|
|
@@ -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,8BAA8B;IAC7C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,gBAAgB,EAAE,gCAAgC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,iCAAiC,CAAC;IAC7C,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,oCAAoC,CAAC;IAChD,gBAAgB,EAAE,oCAAoC,CAAC;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,mCAAmC,CAAC;IAC/C,gBAAgB,EAAE,mCA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AAgB,EAAE,6BAA6B,CAAC;IAChD,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,gBAAgB,EACd,wEAAwE,CAAC;IAC3E,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,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,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,gBAAgB,EACd,gFAAgF,CAAC;IACnF,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;CACH"}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
1
|
+
export type { AnyColumnType, CanceledQueryStatus, ColumnType, DecimalColumnType, ExecuteOntologySqlQueryRequest, ExecuteSqlQueryRequest, FailedQueryStatus, ListColumnType, MapColumnType, MapParameterKey, NamedParameterMapping, ParameterAnyValue, ParameterBooleanValue, ParameterDateValue, ParameterDecimalValue, ParameterDoubleValue, ParameterFloatValue, ParameterIntegerValue, ParameterListValue, ParameterLongValue, ParameterMapping, ParameterMapValue, ParameterName, ParameterNullValue, Parameters, ParameterShortValue, ParameterStringValue, ParameterStructValue, ParameterTimestampValue, ParameterValue, QueryStatus, RunningQueryStatus, SqlQuery, SqlQueryId, StructColumnFieldType, StructColumnType, StructElement, StructElementName, StructFieldKeyValue, StructFieldRid, SucceededQueryStatus, UnnamedParameterValues, } from "./_components.js";
|
|
2
|
+
export type { CancelSqlQueryPermissionDenied, ExecuteOntologySqlQueryPermissionDenied, ExecuteSqlQueryPermissionDenied, GetResultsSqlQueryPermissionDenied, GetStatusSqlQueryPermissionDenied, OntologyQueryFailed, QueryCanceled, QueryFailed, QueryParseError, QueryPermissionDenied, QueryRunning, ReadQueryInputsPermissionDenied, } from "./_errors.js";
|
|
3
3
|
export * as SqlQueries from "./public/SqlQuery.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/build/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,8BAA8B,EAC9B,uCAAuC,EACvC,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,EACjC,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,+BAA+B,GAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
1
2
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
2
3
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
3
4
|
import type * as _SqlQueries from "../_components.js";
|
|
@@ -43,4 +44,19 @@ export declare function cancel($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
43
44
|
* URL: /v2/sqlQueries/{sqlQueryId}/getResults
|
|
44
45
|
*/
|
|
45
46
|
export declare function getResults($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [sqlQueryId: _SqlQueries.SqlQueryId]): Promise<Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Executes a SQL query against the Ontology. Results are returned synchronously in
|
|
49
|
+
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
50
|
+
*
|
|
51
|
+
* @alpha
|
|
52
|
+
*
|
|
53
|
+
* Required Scopes: [api:sql-queries-execute, api:ontologies-read]
|
|
54
|
+
* URL: /v2/sqlQueries/executeOntology
|
|
55
|
+
*/
|
|
56
|
+
export declare function executeOntology($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
57
|
+
$body: _SqlQueries.ExecuteOntologySqlQueryRequest,
|
|
58
|
+
$queryParams?: {
|
|
59
|
+
preview?: _Core.PreviewMode | undefined;
|
|
60
|
+
}
|
|
61
|
+
]): Promise<Response>;
|
|
46
62
|
//# 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,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,wBAAg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G;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;AASD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,WAAW,CAAC,8BAA8B;IACjD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
|
|
@@ -69,4 +69,17 @@ const _getResults = [0, "/v2/sqlQueries/{0}/getResults",,, "application/octet-st
|
|
|
69
69
|
export function getResults($ctx, ...args) {
|
|
70
70
|
return $foundryPlatformFetch($ctx, _getResults, ...args);
|
|
71
71
|
}
|
|
72
|
+
const _executeOntology = [1, "/v2/sqlQueries/executeOntology", 3,, "application/octet-stream"];
|
|
73
|
+
/**
|
|
74
|
+
* Executes a SQL query against the Ontology. Results are returned synchronously in
|
|
75
|
+
* [Apache Arrow](https://arrow.apache.org/) format.
|
|
76
|
+
*
|
|
77
|
+
* @alpha
|
|
78
|
+
*
|
|
79
|
+
* Required Scopes: [api:sql-queries-execute, api:ontologies-read]
|
|
80
|
+
* URL: /v2/sqlQueries/executeOntology
|
|
81
|
+
*/
|
|
82
|
+
export function executeOntology($ctx, ...args) {
|
|
83
|
+
return $foundryPlatformFetch($ctx, _executeOntology, ...args);
|
|
84
|
+
}
|
|
72
85
|
//# sourceMappingURL=SqlQuery.js.map
|
|
@@ -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];\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
|
+
{"version":3,"file":"SqlQuery.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$ctx","args","_getStatus","getStatus","_cancel","cancel","_getResults","getResults","_executeOntology","executeOntology"],"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}\nconst _executeOntology = [1, \"/v2/sqlQueries/executeOntology\", 3, , \"application/octet-stream\"];\n/**\n * Executes a SQL query against the Ontology. Results are returned synchronously in\n * [Apache Arrow](https://arrow.apache.org/) format.\n *\n * @alpha\n *\n * Required Scopes: [api:sql-queries-execute, api:ontologies-read]\n * URL: /v2/sqlQueries/executeOntology\n */\nexport function executeOntology($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeOntology, ...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;AACA,MAAMO,gBAAgB,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,gBAAgB,EAAE,GAAGP,IAAI,CAAC;AACjE","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.sqlqueries",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.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.core": "2.
|
|
25
|
-
"@osdk/foundry.datasets": "2.
|
|
24
|
+
"@osdk/foundry.core": "2.49.0",
|
|
25
|
+
"@osdk/foundry.datasets": "2.49.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.1487.0",
|
|
50
50
|
"maxVersion": "1.x.x",
|
|
51
51
|
"optional": false
|
|
52
52
|
}
|