@osdk/foundry.functions 2.1.0-beta.4 → 2.1.0-beta.6
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 +25 -0
- package/build/browser/_components.d.ts +249 -0
- package/build/browser/_components.d.ts.map +1 -0
- package/build/browser/_components.js +17 -0
- package/build/browser/_components.js.map +1 -0
- package/build/browser/_errors.d.ts +41 -0
- package/build/browser/_errors.d.ts.map +1 -0
- package/build/browser/_errors.js +17 -0
- package/build/browser/_errors.js.map +1 -0
- package/build/browser/index.d.ts +4 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +16 -2
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Query.d.ts +49 -0
- package/build/browser/public/Query.d.ts.map +1 -0
- package/build/browser/public/Query.js +55 -2
- package/build/browser/public/Query.js.map +1 -1
- package/build/esm/_components.d.ts +127 -201
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/_components.js +17 -0
- package/build/esm/_components.js.map +1 -0
- package/build/esm/_errors.js +17 -0
- package/build/esm/_errors.js.map +1 -0
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +16 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Query.d.ts +12 -12
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +55 -2
- package/build/esm/public/Query.js.map +1 -1
- package/package.json +8 -9
- package/build/browser/chunk-H5KZWBWQ.js +0 -31
- package/build/browser/chunk-H5KZWBWQ.js.map +0 -1
- package/build/esm/chunk-H5KZWBWQ.js +0 -31
- package/build/esm/chunk-H5KZWBWQ.js.map +0 -1
|
@@ -1,125 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
2
|
export type LooselyBrandedString<T extends string> = string & {
|
|
3
3
|
__LOOSE_BRAND?: T;
|
|
4
4
|
};
|
|
5
|
-
/**
|
|
6
|
-
* A union of all the types supported by query aggregation keys.
|
|
7
|
-
*
|
|
8
|
-
* Log Safety: UNSAFE
|
|
9
|
-
*/
|
|
10
|
-
export type AggregationKeyType = ({
|
|
11
|
-
type: "date";
|
|
12
|
-
} & DateType) | ({
|
|
13
|
-
type: "boolean";
|
|
14
|
-
} & BooleanType) | ({
|
|
15
|
-
type: "string";
|
|
16
|
-
} & StringType) | ({
|
|
17
|
-
type: "double";
|
|
18
|
-
} & DoubleType) | ({
|
|
19
|
-
type: "range";
|
|
20
|
-
} & AggregationRangeType) | ({
|
|
21
|
-
type: "integer";
|
|
22
|
-
} & IntegerType) | ({
|
|
23
|
-
type: "timestamp";
|
|
24
|
-
} & TimestampType);
|
|
25
|
-
/**
|
|
26
|
-
* A union of all the types supported by query aggregation ranges.
|
|
27
|
-
*
|
|
28
|
-
* Log Safety: UNSAFE
|
|
29
|
-
*/
|
|
30
|
-
export type AggregationRangeSubType = ({
|
|
31
|
-
type: "date";
|
|
32
|
-
} & DateType) | ({
|
|
33
|
-
type: "double";
|
|
34
|
-
} & DoubleType) | ({
|
|
35
|
-
type: "integer";
|
|
36
|
-
} & IntegerType) | ({
|
|
37
|
-
type: "timestamp";
|
|
38
|
-
} & TimestampType);
|
|
39
|
-
/**
|
|
40
|
-
* Log Safety: UNSAFE
|
|
41
|
-
*/
|
|
42
|
-
export interface AggregationRangeType {
|
|
43
|
-
subType: AggregationRangeSubType;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* A union of all the types supported by query aggregation keys.
|
|
47
|
-
*
|
|
48
|
-
* Log Safety: UNSAFE
|
|
49
|
-
*/
|
|
50
|
-
export type AggregationValueType = ({
|
|
51
|
-
type: "date";
|
|
52
|
-
} & DateType) | ({
|
|
53
|
-
type: "double";
|
|
54
|
-
} & DoubleType) | ({
|
|
55
|
-
type: "timestamp";
|
|
56
|
-
} & TimestampType);
|
|
57
|
-
/**
|
|
58
|
-
* The name of the Query in the API.
|
|
59
|
-
*
|
|
60
|
-
* Log Safety: UNSAFE
|
|
61
|
-
*/
|
|
62
|
-
export type ApiName = LooselyBrandedString<"ApiName">;
|
|
63
|
-
/**
|
|
64
|
-
* Log Safety: UNSAFE
|
|
65
|
-
*/
|
|
66
|
-
export interface ArrayType {
|
|
67
|
-
subType: DataType;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Log Safety: SAFE
|
|
71
|
-
*/
|
|
72
|
-
export interface AttachmentType {
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Log Safety: SAFE
|
|
76
|
-
*/
|
|
77
|
-
export interface BooleanType {
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* A union of all the types supported by Ontology Query parameters or outputs.
|
|
81
|
-
*
|
|
82
|
-
* Log Safety: UNSAFE
|
|
83
|
-
*/
|
|
84
|
-
export type DataType = ({
|
|
85
|
-
type: "date";
|
|
86
|
-
} & DateType) | ({
|
|
87
|
-
type: "struct";
|
|
88
|
-
} & StructType) | ({
|
|
89
|
-
type: "set";
|
|
90
|
-
} & SetType) | ({
|
|
91
|
-
type: "string";
|
|
92
|
-
} & StringType) | ({
|
|
93
|
-
type: "double";
|
|
94
|
-
} & DoubleType) | ({
|
|
95
|
-
type: "integer";
|
|
96
|
-
} & IntegerType) | ({
|
|
97
|
-
type: "threeDimensionalAggregation";
|
|
98
|
-
} & ThreeDimensionalAggregation) | ({
|
|
99
|
-
type: "union";
|
|
100
|
-
} & UnionType) | ({
|
|
101
|
-
type: "float";
|
|
102
|
-
} & FloatType) | ({
|
|
103
|
-
type: "long";
|
|
104
|
-
} & LongType) | ({
|
|
105
|
-
type: "boolean";
|
|
106
|
-
} & BooleanType) | ({
|
|
107
|
-
type: "unsupported";
|
|
108
|
-
} & UnsupportedType) | ({
|
|
109
|
-
type: "attachment";
|
|
110
|
-
} & AttachmentType) | ({
|
|
111
|
-
type: "null";
|
|
112
|
-
} & NullType) | ({
|
|
113
|
-
type: "array";
|
|
114
|
-
} & ArrayType) | ({
|
|
115
|
-
type: "objectSet";
|
|
116
|
-
} & OntologyObjectSetType) | ({
|
|
117
|
-
type: "twoDimensionalAggregation";
|
|
118
|
-
} & TwoDimensionalAggregation) | ({
|
|
119
|
-
type: "object";
|
|
120
|
-
} & OntologyObjectType) | ({
|
|
121
|
-
type: "timestamp";
|
|
122
|
-
} & TimestampType);
|
|
123
5
|
/**
|
|
124
6
|
* Represents the value of data in the following format. Note that these values can be nested, for example an array of structs.
|
|
125
7
|
| Type | JSON encoding | Example |
|
|
@@ -136,8 +18,6 @@ export type DataType = ({
|
|
|
136
18
|
| Long | string | "58319870951433" |
|
|
137
19
|
| Marking | string | "MU" |
|
|
138
20
|
| Null | null | null |
|
|
139
|
-
| Object Set | string OR the object set definition | ri.object-set.main.versioned-object-set.h13274m8-23f5-431c-8aee-a4554157c57z|
|
|
140
|
-
| Ontology Object Reference | JSON encoding of the object's primary key | 10033123 or "EMP1234" |
|
|
141
21
|
| Set | array | ["alpha", "bravo", "charlie"] |
|
|
142
22
|
| Short | number | 8739 |
|
|
143
23
|
| String | string | "Call me Ishmael" |
|
|
@@ -149,21 +29,11 @@ export type DataType = ({
|
|
|
149
29
|
* Log Safety: UNSAFE
|
|
150
30
|
*/
|
|
151
31
|
export type DataValue = any;
|
|
152
|
-
/**
|
|
153
|
-
* Log Safety: SAFE
|
|
154
|
-
*/
|
|
155
|
-
export interface DateType {
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Log Safety: SAFE
|
|
159
|
-
*/
|
|
160
|
-
export interface DoubleType {
|
|
161
|
-
}
|
|
162
32
|
/**
|
|
163
33
|
* Log Safety: UNSAFE
|
|
164
34
|
*/
|
|
165
35
|
export interface ExecuteQueryRequest {
|
|
166
|
-
parameters: Record<ParameterId, DataValue>;
|
|
36
|
+
parameters: Record<ParameterId, DataValue | undefined>;
|
|
167
37
|
}
|
|
168
38
|
/**
|
|
169
39
|
* Log Safety: UNSAFE
|
|
@@ -171,11 +41,6 @@ export interface ExecuteQueryRequest {
|
|
|
171
41
|
export interface ExecuteQueryResponse {
|
|
172
42
|
value: DataValue;
|
|
173
43
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Log Safety: SAFE
|
|
176
|
-
*/
|
|
177
|
-
export interface FloatType {
|
|
178
|
-
}
|
|
179
44
|
/**
|
|
180
45
|
* The unique resource identifier of a Function, useful for interacting with other Foundry APIs.
|
|
181
46
|
*
|
|
@@ -195,42 +60,6 @@ export type FunctionVersion = LooselyBrandedString<"FunctionVersion">;
|
|
|
195
60
|
export interface GetByRidQueriesRequest {
|
|
196
61
|
rid: FunctionRid;
|
|
197
62
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Log Safety: SAFE
|
|
200
|
-
*/
|
|
201
|
-
export interface IntegerType {
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Log Safety: SAFE
|
|
205
|
-
*/
|
|
206
|
-
export interface LongType {
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Log Safety: SAFE
|
|
210
|
-
*/
|
|
211
|
-
export interface NullType {
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
|
|
215
|
-
List object types endpoint or check the Ontology Manager.
|
|
216
|
-
*
|
|
217
|
-
* Log Safety: UNSAFE
|
|
218
|
-
*/
|
|
219
|
-
export type ObjectTypeApiName = LooselyBrandedString<"ObjectTypeApiName">;
|
|
220
|
-
/**
|
|
221
|
-
* Log Safety: UNSAFE
|
|
222
|
-
*/
|
|
223
|
-
export interface OntologyObjectSetType {
|
|
224
|
-
objectApiName?: ObjectTypeApiName;
|
|
225
|
-
objectTypeApiName?: ObjectTypeApiName;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Log Safety: UNSAFE
|
|
229
|
-
*/
|
|
230
|
-
export interface OntologyObjectType {
|
|
231
|
-
objectApiName: ObjectTypeApiName;
|
|
232
|
-
objectTypeApiName: ObjectTypeApiName;
|
|
233
|
-
}
|
|
234
63
|
/**
|
|
235
64
|
* Details about a parameter of a query.
|
|
236
65
|
*
|
|
@@ -238,7 +67,7 @@ export interface OntologyObjectType {
|
|
|
238
67
|
*/
|
|
239
68
|
export interface Parameter {
|
|
240
69
|
description?: string;
|
|
241
|
-
dataType:
|
|
70
|
+
dataType: QueryDataType;
|
|
242
71
|
}
|
|
243
72
|
/**
|
|
244
73
|
* The unique identifier of the parameter. Parameters are used as inputs when an action or query is applied.
|
|
@@ -251,73 +80,170 @@ export type ParameterId = LooselyBrandedString<"ParameterId">;
|
|
|
251
80
|
* Log Safety: UNSAFE
|
|
252
81
|
*/
|
|
253
82
|
export interface Query {
|
|
254
|
-
apiName:
|
|
83
|
+
apiName: QueryApiName;
|
|
255
84
|
description?: string;
|
|
256
|
-
displayName?: DisplayName;
|
|
85
|
+
displayName?: _Core.DisplayName;
|
|
257
86
|
parameters: Record<ParameterId, Parameter>;
|
|
258
|
-
output:
|
|
87
|
+
output: QueryDataType;
|
|
259
88
|
rid: FunctionRid;
|
|
260
89
|
version: FunctionVersion;
|
|
261
90
|
}
|
|
262
91
|
/**
|
|
92
|
+
* A union of all the types supported by query aggregation keys.
|
|
93
|
+
*
|
|
263
94
|
* Log Safety: UNSAFE
|
|
264
95
|
*/
|
|
265
|
-
export
|
|
266
|
-
|
|
267
|
-
}
|
|
96
|
+
export type QueryAggregationKeyType = ({
|
|
97
|
+
type: "date";
|
|
98
|
+
} & _Core.DateType) | ({
|
|
99
|
+
type: "boolean";
|
|
100
|
+
} & _Core.BooleanType) | ({
|
|
101
|
+
type: "string";
|
|
102
|
+
} & _Core.StringType) | ({
|
|
103
|
+
type: "double";
|
|
104
|
+
} & _Core.DoubleType) | ({
|
|
105
|
+
type: "range";
|
|
106
|
+
} & QueryAggregationRangeType) | ({
|
|
107
|
+
type: "integer";
|
|
108
|
+
} & _Core.IntegerType) | ({
|
|
109
|
+
type: "timestamp";
|
|
110
|
+
} & _Core.TimestampType);
|
|
268
111
|
/**
|
|
269
|
-
*
|
|
112
|
+
* A union of all the types supported by query aggregation ranges.
|
|
113
|
+
*
|
|
114
|
+
* Log Safety: UNSAFE
|
|
115
|
+
*/
|
|
116
|
+
export type QueryAggregationRangeSubType = ({
|
|
117
|
+
type: "date";
|
|
118
|
+
} & _Core.DateType) | ({
|
|
119
|
+
type: "double";
|
|
120
|
+
} & _Core.DoubleType) | ({
|
|
121
|
+
type: "integer";
|
|
122
|
+
} & _Core.IntegerType) | ({
|
|
123
|
+
type: "timestamp";
|
|
124
|
+
} & _Core.TimestampType);
|
|
125
|
+
/**
|
|
126
|
+
* Log Safety: UNSAFE
|
|
270
127
|
*/
|
|
271
|
-
export interface
|
|
128
|
+
export interface QueryAggregationRangeType {
|
|
129
|
+
subType: QueryAggregationRangeSubType;
|
|
272
130
|
}
|
|
273
131
|
/**
|
|
132
|
+
* A union of all the types supported by query aggregation keys.
|
|
133
|
+
*
|
|
274
134
|
* Log Safety: UNSAFE
|
|
275
135
|
*/
|
|
276
|
-
export
|
|
277
|
-
|
|
278
|
-
|
|
136
|
+
export type QueryAggregationValueType = ({
|
|
137
|
+
type: "date";
|
|
138
|
+
} & _Core.DateType) | ({
|
|
139
|
+
type: "double";
|
|
140
|
+
} & _Core.DoubleType) | ({
|
|
141
|
+
type: "timestamp";
|
|
142
|
+
} & _Core.TimestampType);
|
|
143
|
+
/**
|
|
144
|
+
* The name of the Query in the API.
|
|
145
|
+
*
|
|
146
|
+
* Log Safety: UNSAFE
|
|
147
|
+
*/
|
|
148
|
+
export type QueryApiName = LooselyBrandedString<"QueryApiName">;
|
|
149
|
+
/**
|
|
150
|
+
* Log Safety: UNSAFE
|
|
151
|
+
*/
|
|
152
|
+
export interface QueryArrayType {
|
|
153
|
+
subType: QueryDataType;
|
|
279
154
|
}
|
|
280
155
|
/**
|
|
281
|
-
*
|
|
156
|
+
* A union of all the types supported by Query parameters or outputs.
|
|
282
157
|
*
|
|
283
158
|
* Log Safety: UNSAFE
|
|
284
159
|
*/
|
|
285
|
-
export type
|
|
160
|
+
export type QueryDataType = ({
|
|
161
|
+
type: "date";
|
|
162
|
+
} & _Core.DateType) | ({
|
|
163
|
+
type: "struct";
|
|
164
|
+
} & QueryStructType) | ({
|
|
165
|
+
type: "set";
|
|
166
|
+
} & QuerySetType) | ({
|
|
167
|
+
type: "string";
|
|
168
|
+
} & _Core.StringType) | ({
|
|
169
|
+
type: "double";
|
|
170
|
+
} & _Core.DoubleType) | ({
|
|
171
|
+
type: "integer";
|
|
172
|
+
} & _Core.IntegerType) | ({
|
|
173
|
+
type: "threeDimensionalAggregation";
|
|
174
|
+
} & ThreeDimensionalAggregation) | ({
|
|
175
|
+
type: "union";
|
|
176
|
+
} & QueryUnionType) | ({
|
|
177
|
+
type: "float";
|
|
178
|
+
} & _Core.FloatType) | ({
|
|
179
|
+
type: "long";
|
|
180
|
+
} & _Core.LongType) | ({
|
|
181
|
+
type: "boolean";
|
|
182
|
+
} & _Core.BooleanType) | ({
|
|
183
|
+
type: "unsupported";
|
|
184
|
+
} & _Core.UnsupportedType) | ({
|
|
185
|
+
type: "attachment";
|
|
186
|
+
} & _Core.AttachmentType) | ({
|
|
187
|
+
type: "null";
|
|
188
|
+
} & _Core.NullType) | ({
|
|
189
|
+
type: "array";
|
|
190
|
+
} & QueryArrayType) | ({
|
|
191
|
+
type: "twoDimensionalAggregation";
|
|
192
|
+
} & TwoDimensionalAggregation) | ({
|
|
193
|
+
type: "timestamp";
|
|
194
|
+
} & _Core.TimestampType);
|
|
286
195
|
/**
|
|
287
196
|
* Log Safety: UNSAFE
|
|
288
197
|
*/
|
|
289
|
-
export
|
|
290
|
-
|
|
198
|
+
export type QueryRuntimeErrorParameter = LooselyBrandedString<"QueryRuntimeErrorParameter">;
|
|
199
|
+
/**
|
|
200
|
+
* Log Safety: UNSAFE
|
|
201
|
+
*/
|
|
202
|
+
export interface QuerySetType {
|
|
203
|
+
subType: QueryDataType;
|
|
291
204
|
}
|
|
292
205
|
/**
|
|
293
206
|
* Log Safety: UNSAFE
|
|
294
207
|
*/
|
|
295
|
-
export interface
|
|
296
|
-
|
|
297
|
-
|
|
208
|
+
export interface QueryStructField {
|
|
209
|
+
name: StructFieldName;
|
|
210
|
+
fieldType: QueryDataType;
|
|
298
211
|
}
|
|
299
212
|
/**
|
|
300
|
-
* Log Safety:
|
|
213
|
+
* Log Safety: UNSAFE
|
|
301
214
|
*/
|
|
302
|
-
export interface
|
|
215
|
+
export interface QueryStructType {
|
|
216
|
+
fields: Array<QueryStructField>;
|
|
303
217
|
}
|
|
304
218
|
/**
|
|
305
219
|
* Log Safety: UNSAFE
|
|
306
220
|
*/
|
|
307
|
-
export interface
|
|
308
|
-
|
|
309
|
-
valueType: AggregationValueType;
|
|
221
|
+
export interface QueryUnionType {
|
|
222
|
+
unionTypes: Array<QueryDataType>;
|
|
310
223
|
}
|
|
311
224
|
/**
|
|
225
|
+
* The name of a field in a Struct.
|
|
226
|
+
*
|
|
312
227
|
* Log Safety: UNSAFE
|
|
313
228
|
*/
|
|
314
|
-
export
|
|
315
|
-
|
|
229
|
+
export type StructFieldName = LooselyBrandedString<"StructFieldName">;
|
|
230
|
+
/**
|
|
231
|
+
* Log Safety: UNSAFE
|
|
232
|
+
*/
|
|
233
|
+
export interface ThreeDimensionalAggregation {
|
|
234
|
+
keyType: QueryAggregationKeyType;
|
|
235
|
+
valueType: TwoDimensionalAggregation;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Log Safety: SAFE
|
|
239
|
+
*/
|
|
240
|
+
export interface TimestampType {
|
|
316
241
|
}
|
|
317
242
|
/**
|
|
318
243
|
* Log Safety: UNSAFE
|
|
319
244
|
*/
|
|
320
|
-
export interface
|
|
321
|
-
|
|
245
|
+
export interface TwoDimensionalAggregation {
|
|
246
|
+
keyType: QueryAggregationKeyType;
|
|
247
|
+
valueType: QueryAggregationValueType;
|
|
322
248
|
}
|
|
323
249
|
//# sourceMappingURL=_components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;KAyBK;AACL,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;CACxD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAE9D;;;;;KAKK;AACL,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,WAAW,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED;;;;;KAKK;AACL,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,W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
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=_components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_components.js","names":[],"sources":["_components.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 {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=_errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_errors.js","names":[],"sources":["_errors.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 {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { DataValue, ExecuteQueryRequest, ExecuteQueryResponse, FunctionRid, FunctionVersion, GetByRidQueriesRequest, Parameter, ParameterId, Query, QueryAggregationKeyType, QueryAggregationRangeSubType, QueryAggregationRangeType, QueryAggregationValueType, QueryApiName, QueryArrayType, QueryDataType, QueryRuntimeErrorParameter, QuerySetType, QueryStructField, QueryStructType, QueryUnionType, StructFieldName, ThreeDimensionalAggregation, TimestampType, TwoDimensionalAggregation, } from "./_components.js";
|
|
2
2
|
export type { ExecuteQueryPermissionDenied, GetByRidQueriesPermissionDenied, QueryNotFound, } from "./_errors.js";
|
|
3
3
|
export * as Queries from "./public/Query.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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,KAAK,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,eAAe,EACf,2BAA2B,EAC3B,aAAa,EACb,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
|
package/build/esm/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * as Queries from "./public/Query.js";
|
|
3
17
|
//# sourceMappingURL=index.js.map
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
-
import type
|
|
3
|
+
import type * as _Functions from "../_components.js";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a specific query type with the given API name.
|
|
6
6
|
*
|
|
@@ -10,11 +10,11 @@ import type { ApiName, ExecuteQueryRequest, ExecuteQueryResponse, GetByRidQuerie
|
|
|
10
10
|
* URL: /v2/functions/queries/{queryApiName}
|
|
11
11
|
*/
|
|
12
12
|
export declare function getQuery($ctx: $Client | $ClientContext, ...args: [
|
|
13
|
-
queryApiName:
|
|
13
|
+
queryApiName: _Functions.QueryApiName,
|
|
14
14
|
$queryParams?: {
|
|
15
|
-
preview?: PreviewMode | undefined;
|
|
15
|
+
preview?: _Core.PreviewMode | undefined;
|
|
16
16
|
}
|
|
17
|
-
]): Promise<Query>;
|
|
17
|
+
]): Promise<_Functions.Query>;
|
|
18
18
|
/**
|
|
19
19
|
* Gets a specific query type with the given RID.
|
|
20
20
|
*
|
|
@@ -24,11 +24,11 @@ export declare function getQuery($ctx: $Client | $ClientContext, ...args: [
|
|
|
24
24
|
* URL: /v2/functions/queries/getByRid
|
|
25
25
|
*/
|
|
26
26
|
export declare function getByRidQueries($ctx: $Client | $ClientContext, ...args: [
|
|
27
|
-
$body: GetByRidQueriesRequest,
|
|
27
|
+
$body: _Functions.GetByRidQueriesRequest,
|
|
28
28
|
$queryParams?: {
|
|
29
|
-
preview?: PreviewMode | undefined;
|
|
29
|
+
preview?: _Core.PreviewMode | undefined;
|
|
30
30
|
}
|
|
31
|
-
]): Promise<Query>;
|
|
31
|
+
]): Promise<_Functions.Query>;
|
|
32
32
|
/**
|
|
33
33
|
* Executes a Query using the given parameters.
|
|
34
34
|
*
|
|
@@ -40,10 +40,10 @@ export declare function getByRidQueries($ctx: $Client | $ClientContext, ...args:
|
|
|
40
40
|
* URL: /v2/functions/queries/{queryApiName}/execute
|
|
41
41
|
*/
|
|
42
42
|
export declare function executeQuery($ctx: $Client | $ClientContext, ...args: [
|
|
43
|
-
queryApiName:
|
|
44
|
-
$body: ExecuteQueryRequest,
|
|
43
|
+
queryApiName: _Functions.QueryApiName,
|
|
44
|
+
$body: _Functions.ExecuteQueryRequest,
|
|
45
45
|
$queryParams?: {
|
|
46
|
-
preview?: PreviewMode | undefined;
|
|
46
|
+
preview?: _Core.PreviewMode | undefined;
|
|
47
47
|
}
|
|
48
|
-
]): Promise<ExecuteQueryResponse>;
|
|
48
|
+
]): Promise<_Functions.ExecuteQueryResponse>;
|
|
49
49
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
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,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAWrD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IAErC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B;AASD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,UAAU,CAAC,sBAAsB;IACxC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B;AAUD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,UAAU,CAAC,YAAY;IACrC,KAAK,EAAE,UAAU,CAAC,mBAAmB;IACrC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAE1C"}
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
|
+
//
|
|
18
|
+
const _getQuery = [0, "/v2/functions/queries/{0}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Gets a specific query type with the given API name.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:functions-read]
|
|
25
|
+
* URL: /v2/functions/queries/{queryApiName}
|
|
26
|
+
*/
|
|
27
|
+
export function getQuery($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _getQuery, ...args);
|
|
29
|
+
}
|
|
30
|
+
const _getByRidQueries = [1, "/v2/functions/queries/getByRid", 3];
|
|
31
|
+
/**
|
|
32
|
+
* Gets a specific query type with the given RID.
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*
|
|
36
|
+
* Required Scopes: [api:functions-read]
|
|
37
|
+
* URL: /v2/functions/queries/getByRid
|
|
38
|
+
*/
|
|
39
|
+
export function getByRidQueries($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _getByRidQueries, ...args);
|
|
41
|
+
}
|
|
42
|
+
const _executeQuery = [1, "/v2/functions/queries/{0}/execute", 3];
|
|
43
|
+
/**
|
|
44
|
+
* Executes a Query using the given parameters.
|
|
45
|
+
*
|
|
46
|
+
* Optional parameters do not need to be supplied.
|
|
47
|
+
*
|
|
48
|
+
* @alpha
|
|
49
|
+
*
|
|
50
|
+
* Required Scopes: [api:functions-read]
|
|
51
|
+
* URL: /v2/functions/queries/{queryApiName}/execute
|
|
52
|
+
*/
|
|
53
|
+
export function executeQuery($ctx, ...args) {
|
|
54
|
+
return $foundryPlatformFetch($ctx, _executeQuery, ...args);
|
|
55
|
+
}
|
|
3
56
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getQuery","getQuery","$ctx","args","_getByRidQueries","getByRidQueries","_executeQuery","executeQuery"],"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 _getQuery = [0, \"/v2/functions/queries/{0}\", 2];\n/**\n * Gets a specific query type with the given API name.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}\n */\nexport function getQuery($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getQuery, ...args);\n}\nconst _getByRidQueries = [1, \"/v2/functions/queries/getByRid\", 3];\n/**\n * Gets a specific query type with the given RID.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/getByRid\n */\nexport function getByRidQueries($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getByRidQueries, ...args);\n}\nconst _executeQuery = [1, \"/v2/functions/queries/{0}/execute\", 3];\n/**\n * Executes a Query using the given parameters.\n *\n * Optional parameters do not need to be supplied.\n *\n * @alpha\n *\n * Required Scopes: [api:functions-read]\n * URL: /v2/functions/queries/{queryApiName}/execute\n */\nexport function executeQuery($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeQuery, ...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,SAAS,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACpC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,SAAS,EAAE,GAAGG,IAAI,CAAC;AAC1D;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,gBAAgB,EAAE,GAAGD,IAAI,CAAC;AACjE;AACA,MAAMG,aAAa,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,aAAa,EAAE,GAAGH,IAAI,CAAC;AAC9D","ignoreList":[]}
|