@osdk/foundry.functions 0.0.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.
@@ -0,0 +1,31 @@
1
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+
9
+ // src/public/Query.ts
10
+ var Query_exports = {};
11
+ __export(Query_exports, {
12
+ executeQuery: () => executeQuery,
13
+ getByRidQueries: () => getByRidQueries,
14
+ getQuery: () => getQuery
15
+ });
16
+ var _getQuery = [0, "/v2/functions/queries/{0}", 2];
17
+ function getQuery($ctx, ...args) {
18
+ return foundryPlatformFetch($ctx, _getQuery, ...args);
19
+ }
20
+ var _getByRidQueries = [1, "/v2/functions/queries/getByRid", 3];
21
+ function getByRidQueries($ctx, ...args) {
22
+ return foundryPlatformFetch($ctx, _getByRidQueries, ...args);
23
+ }
24
+ var _executeQuery = [1, "/v2/functions/queries/{0}/execute", 3];
25
+ function executeQuery($ctx, ...args) {
26
+ return foundryPlatformFetch($ctx, _executeQuery, ...args);
27
+ }
28
+
29
+ export { Query_exports, executeQuery, getByRidQueries, getQuery };
30
+ //# sourceMappingURL=chunk-H5KZWBWQ.js.map
31
+ //# sourceMappingURL=chunk-H5KZWBWQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Query.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;;;;;;AAAA,IAAA,aAAA,GAAA,GAAA;AAAA,QAAA,CAAA,aAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,eAAA,EAAA,MAAA,eAAA;AAAA,EAAA,QAAA,EAAA,MAAA,QAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,SAAY,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAU7C,SAAS,QAAA,CAAS,SAAS,IAAM,EAAA;AACtC,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,SAAW,EAAA,GAAG,IAAI,CAAA,CAAA;AACvD,CAAA;AACA,IAAM,gBAAmB,GAAA,CAAC,CAAG,EAAA,gCAAA,EAAkC,CAAC,CAAA,CAAA;AAUzD,SAAS,eAAA,CAAgB,SAAS,IAAM,EAAA;AAC7C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,gBAAkB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC9D,CAAA;AACA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,mCAAA,EAAqC,CAAC,CAAA,CAAA;AAYzD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-H5KZWBWQ.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 */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _getQuery = [0, \"/v2/functions/queries/{0}\", 2];\n\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/**\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/**\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}"]}
@@ -0,0 +1,3 @@
1
+ export { Query_exports as Queries } from './chunk-H5KZWBWQ.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,3 @@
1
+ export { executeQuery, getByRidQueries, getQuery } from '../chunk-H5KZWBWQ.js';
2
+ //# sourceMappingURL=Query.js.map
3
+ //# sourceMappingURL=Query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Query.js"}
@@ -0,0 +1,323 @@
1
+ import type { DisplayName } from "@osdk/foundry.core";
2
+ export type LooselyBrandedString<T extends string> = string & {
3
+ __LOOSE_BRAND?: T;
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
+ /**
124
+ * Represents the value of data in the following format. Note that these values can be nested, for example an array of structs.
125
+ | Type | JSON encoding | Example |
126
+ |-----------------------------|-------------------------------------------------------|-------------------------------------------------------------------------------|
127
+ | Array | array | ["alpha", "bravo", "charlie"] |
128
+ | Attachment | string | "ri.attachments.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e" |
129
+ | Boolean | boolean | true |
130
+ | Byte | number | 31 |
131
+ | Date | ISO 8601 extended local date string | "2021-05-01" |
132
+ | Decimal | string | "2.718281828" |
133
+ | Float | number | 3.14159265 |
134
+ | Double | number | 3.14159265 |
135
+ | Integer | number | 238940 |
136
+ | Long | string | "58319870951433" |
137
+ | Marking | string | "MU" |
138
+ | 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
+ | Set | array | ["alpha", "bravo", "charlie"] |
142
+ | Short | number | 8739 |
143
+ | String | string | "Call me Ishmael" |
144
+ | Struct | JSON object | {"name": "John Doe", "age": 42} |
145
+ | TwoDimensionalAggregation | JSON object | {"groups": [{"key": "alpha", "value": 100}, {"key": "beta", "value": 101}]} |
146
+ | ThreeDimensionalAggregation | JSON object | {"groups": [{"key": "NYC", "groups": [{"key": "Engineer", "value" : 100}]}]}|
147
+ | Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
148
+ *
149
+ * Log Safety: UNSAFE
150
+ */
151
+ 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
+ /**
163
+ * Log Safety: UNSAFE
164
+ */
165
+ export interface ExecuteQueryRequest {
166
+ parameters: Record<ParameterId, DataValue>;
167
+ }
168
+ /**
169
+ * Log Safety: UNSAFE
170
+ */
171
+ export interface ExecuteQueryResponse {
172
+ value: DataValue;
173
+ }
174
+ /**
175
+ * Log Safety: SAFE
176
+ */
177
+ export interface FloatType {
178
+ }
179
+ /**
180
+ * The unique resource identifier of a Function, useful for interacting with other Foundry APIs.
181
+ *
182
+ * Log Safety: SAFE
183
+ */
184
+ export type FunctionRid = LooselyBrandedString<"FunctionRid">;
185
+ /**
186
+ * The version of the given Function, written <major>.<minor>.<patch>-<tag>, where -<tag> is optional.
187
+ Examples: 1.2.3, 1.2.3-rc1.
188
+ *
189
+ * Log Safety: UNSAFE
190
+ */
191
+ export type FunctionVersion = LooselyBrandedString<"FunctionVersion">;
192
+ /**
193
+ * Log Safety: SAFE
194
+ */
195
+ export interface GetByRidQueriesRequest {
196
+ rid: FunctionRid;
197
+ }
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
+ /**
235
+ * Details about a parameter of a query.
236
+ *
237
+ * Log Safety: UNSAFE
238
+ */
239
+ export interface Parameter {
240
+ description?: string;
241
+ dataType: DataType;
242
+ }
243
+ /**
244
+ * The unique identifier of the parameter. Parameters are used as inputs when an action or query is applied.
245
+ Parameters can be viewed and managed in the Ontology Manager.
246
+ *
247
+ * Log Safety: UNSAFE
248
+ */
249
+ export type ParameterId = LooselyBrandedString<"ParameterId">;
250
+ /**
251
+ * Log Safety: UNSAFE
252
+ */
253
+ export interface Query {
254
+ apiName: ApiName;
255
+ description?: string;
256
+ displayName?: DisplayName;
257
+ parameters: Record<ParameterId, Parameter>;
258
+ output: DataType;
259
+ rid: FunctionRid;
260
+ version: FunctionVersion;
261
+ }
262
+ /**
263
+ * Log Safety: UNSAFE
264
+ */
265
+ export interface SetType {
266
+ subType: DataType;
267
+ }
268
+ /**
269
+ * Log Safety: SAFE
270
+ */
271
+ export interface StringType {
272
+ }
273
+ /**
274
+ * Log Safety: UNSAFE
275
+ */
276
+ export interface StructField {
277
+ name: StructFieldName;
278
+ fieldType: DataType;
279
+ }
280
+ /**
281
+ * The name of a field in a Struct.
282
+ *
283
+ * Log Safety: UNSAFE
284
+ */
285
+ export type StructFieldName = LooselyBrandedString<"StructFieldName">;
286
+ /**
287
+ * Log Safety: UNSAFE
288
+ */
289
+ export interface StructType {
290
+ fields: Array<StructField>;
291
+ }
292
+ /**
293
+ * Log Safety: UNSAFE
294
+ */
295
+ export interface ThreeDimensionalAggregation {
296
+ keyType: AggregationKeyType;
297
+ valueType: TwoDimensionalAggregation;
298
+ }
299
+ /**
300
+ * Log Safety: SAFE
301
+ */
302
+ export interface TimestampType {
303
+ }
304
+ /**
305
+ * Log Safety: UNSAFE
306
+ */
307
+ export interface TwoDimensionalAggregation {
308
+ keyType: AggregationKeyType;
309
+ valueType: AggregationValueType;
310
+ }
311
+ /**
312
+ * Log Safety: UNSAFE
313
+ */
314
+ export interface UnionType {
315
+ unionTypes: Array<DataType>;
316
+ }
317
+ /**
318
+ * Log Safety: UNSAFE
319
+ */
320
+ export interface UnsupportedType {
321
+ unsupportedType: string;
322
+ }
323
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,GAC7B,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,WAAW,CAAC,GACnC,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,UAAU,CAAC,GACjC,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,UAAU,CAAC,GACjC,CAAC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,oBAAoB,CAAC,GAC1C,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,WAAW,CAAC,GACnC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,aAAa,CAAC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAC/B,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,GAC7B,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,UAAU,CAAC,GACjC,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,WAAW,CAAC,GACnC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GA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AQ,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,yBAAyB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;CAAG;AAEjC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,41 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * Could not execute the Query.
6
+ *
7
+ * Log Safety: UNSAFE
8
+ */
9
+ export interface ExecuteQueryPermissionDenied {
10
+ errorCode: "PERMISSION_DENIED";
11
+ errorName: "ExecuteQueryPermissionDenied";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ queryApiName: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * Could not getByRid the Query.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface GetByRidQueriesPermissionDenied {
23
+ errorCode: "PERMISSION_DENIED";
24
+ errorName: "GetByRidQueriesPermissionDenied";
25
+ errorInstanceId: string;
26
+ parameters: {};
27
+ }
28
+ /**
29
+ * The given Query could not be found.
30
+ *
31
+ * Log Safety: UNSAFE
32
+ */
33
+ export interface QueryNotFound {
34
+ errorCode: "NOT_FOUND";
35
+ errorName: "QueryNotFound";
36
+ errorInstanceId: string;
37
+ parameters: {
38
+ queryApiName: unknown;
39
+ };
40
+ }
41
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +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,4BAA4B;IAC3C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,8BAA8B,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,iCAAiC,CAAC;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH"}
@@ -0,0 +1,31 @@
1
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+
9
+ // src/public/Query.ts
10
+ var Query_exports = {};
11
+ __export(Query_exports, {
12
+ executeQuery: () => executeQuery,
13
+ getByRidQueries: () => getByRidQueries,
14
+ getQuery: () => getQuery
15
+ });
16
+ var _getQuery = [0, "/v2/functions/queries/{0}", 2];
17
+ function getQuery($ctx, ...args) {
18
+ return foundryPlatformFetch($ctx, _getQuery, ...args);
19
+ }
20
+ var _getByRidQueries = [1, "/v2/functions/queries/getByRid", 3];
21
+ function getByRidQueries($ctx, ...args) {
22
+ return foundryPlatformFetch($ctx, _getByRidQueries, ...args);
23
+ }
24
+ var _executeQuery = [1, "/v2/functions/queries/{0}/execute", 3];
25
+ function executeQuery($ctx, ...args) {
26
+ return foundryPlatformFetch($ctx, _executeQuery, ...args);
27
+ }
28
+
29
+ export { Query_exports, executeQuery, getByRidQueries, getQuery };
30
+ //# sourceMappingURL=chunk-H5KZWBWQ.js.map
31
+ //# sourceMappingURL=chunk-H5KZWBWQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Query.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;;;;;;AAAA,IAAA,aAAA,GAAA,GAAA;AAAA,QAAA,CAAA,aAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,eAAA,EAAA,MAAA,eAAA;AAAA,EAAA,QAAA,EAAA,MAAA,QAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,SAAY,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAU7C,SAAS,QAAA,CAAS,SAAS,IAAM,EAAA;AACtC,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,SAAW,EAAA,GAAG,IAAI,CAAA,CAAA;AACvD,CAAA;AACA,IAAM,gBAAmB,GAAA,CAAC,CAAG,EAAA,gCAAA,EAAkC,CAAC,CAAA,CAAA;AAUzD,SAAS,eAAA,CAAgB,SAAS,IAAM,EAAA;AAC7C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,gBAAkB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC9D,CAAA;AACA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,mCAAA,EAAqC,CAAC,CAAA,CAAA;AAYzD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-H5KZWBWQ.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 */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _getQuery = [0, \"/v2/functions/queries/{0}\", 2];\n\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/**\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/**\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}"]}
@@ -0,0 +1,4 @@
1
+ export type { AggregationKeyType, AggregationRangeSubType, AggregationRangeType, AggregationValueType, ApiName, ArrayType, AttachmentType, BooleanType, DataType, DataValue, DateType, DoubleType, ExecuteQueryRequest, ExecuteQueryResponse, FloatType, FunctionRid, FunctionVersion, GetByRidQueriesRequest, IntegerType, LongType, NullType, ObjectTypeApiName, OntologyObjectSetType, OntologyObjectType, Parameter, ParameterId, Query, SetType, StringType, StructField, StructFieldName, StructType, ThreeDimensionalAggregation, TimestampType, TwoDimensionalAggregation, UnionType, UnsupportedType, } from "./_components.js";
2
+ export type { ExecuteQueryPermissionDenied, GetByRidQueriesPermissionDenied, QueryNotFound, } from "./_errors.js";
3
+ export * as Queries from "./public/Query.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,SAAS,EACT,cAAc,EACd,WAAW,EACX,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,KAAK,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,2BAA2B,EAC3B,aAAa,EACb,yBAAyB,EACzB,SAAS,EACT,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Query_exports as Queries } from './chunk-H5KZWBWQ.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,49 @@
1
+ import type { PreviewMode } from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type { ApiName, ExecuteQueryRequest, ExecuteQueryResponse, GetByRidQueriesRequest, Query } from "../_components.js";
4
+ /**
5
+ * Gets a specific query type with the given API name.
6
+ *
7
+ * @alpha
8
+ *
9
+ * Required Scopes: [api:functions-read]
10
+ * URL: /v2/functions/queries/{queryApiName}
11
+ */
12
+ export declare function getQuery($ctx: $Client | $ClientContext, ...args: [
13
+ queryApiName: ApiName,
14
+ $queryParams?: {
15
+ preview?: PreviewMode | undefined;
16
+ }
17
+ ]): Promise<Query>;
18
+ /**
19
+ * Gets a specific query type with the given RID.
20
+ *
21
+ * @alpha
22
+ *
23
+ * Required Scopes: [api:functions-read]
24
+ * URL: /v2/functions/queries/getByRid
25
+ */
26
+ export declare function getByRidQueries($ctx: $Client | $ClientContext, ...args: [
27
+ $body: GetByRidQueriesRequest,
28
+ $queryParams?: {
29
+ preview?: PreviewMode | undefined;
30
+ }
31
+ ]): Promise<Query>;
32
+ /**
33
+ * Executes a Query using the given parameters.
34
+ *
35
+ * Optional parameters do not need to be supplied.
36
+ *
37
+ * @alpha
38
+ *
39
+ * Required Scopes: [api:functions-read]
40
+ * URL: /v2/functions/queries/{queryApiName}/execute
41
+ */
42
+ export declare function executeQuery($ctx: $Client | $ClientContext, ...args: [
43
+ queryApiName: ApiName,
44
+ $body: ExecuteQueryRequest,
45
+ $queryParams?: {
46
+ preview?: PreviewMode | undefined;
47
+ }
48
+ ]): Promise<ExecuteQueryResponse>;
49
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/public/Query.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,EACN,MAAM,mBAAmB,CAAC;AAW3B;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,OAAO;IAErB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,KAAK,CAAC,CAEhB;AASD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,sBAAsB;IAC7B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,KAAK,CAAC,CAEhB;AAUD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,OAAO;IACrB,KAAK,EAAE,mBAAmB;IAC1B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,oBAAoB,CAAC,CAE/B"}
@@ -0,0 +1,3 @@
1
+ export { executeQuery, getByRidQueries, getQuery } from '../chunk-H5KZWBWQ.js';
2
+ //# sourceMappingURL=Query.js.map
3
+ //# sourceMappingURL=Query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Query.js"}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@osdk/foundry.functions",
3
+ "version": "0.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/palantir/osdk-ts.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./build/browser/index.js",
12
+ "import": "./build/esm/index.js"
13
+ },
14
+ "./*": {
15
+ "browser": "./build/browser/public/*.js",
16
+ "import": "./build/esm/public/*.js"
17
+ }
18
+ },
19
+ "dependencies": {
20
+ "@osdk/foundry.core": "2.1.0-beta.2",
21
+ "@osdk/shared.net.platformapi": "~0.2.0",
22
+ "@osdk/shared.client": "~0.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.5.4",
26
+ "@osdk/monorepo.api-extractor": "~0.0.0",
27
+ "@osdk/monorepo.tsconfig": "~0.0.0",
28
+ "@osdk/monorepo.tsup": "~0.0.0"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "files": [
34
+ "build/cjs",
35
+ "build/esm",
36
+ "build/browser",
37
+ "CHANGELOG.md",
38
+ "package.json",
39
+ "templates",
40
+ "*.d.ts"
41
+ ],
42
+ "module": "./build/esm/index.js",
43
+ "types": "./build/esm/index.d.ts",
44
+ "sls": {
45
+ "dependencies": {
46
+ "com.palantir.foundry.api:api-gateway": {
47
+ "minVersion": "1.927.0",
48
+ "maxVersion": "1.x.x",
49
+ "optional": true
50
+ }
51
+ }
52
+ },
53
+ "type": "module",
54
+ "scripts": {
55
+ "check-attw": "monorepo.tool.attw esm",
56
+ "check-spelling": "cspell --quiet .",
57
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
58
+ "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
59
+ "lint": "eslint . && dprint check --config $(find-up dprint.json)",
60
+ "transpile": "monorepo.tool.transpile",
61
+ "typecheck": "monorepo.tool.typecheck esm"
62
+ }
63
+ }