@osdk/internal.foundry.ontologiesv2 0.2.0-beta.7 → 0.2.0-beta.9
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 +4 -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 +4 -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 +17 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +29 -15
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Action.d.ts +79 -0
- package/build/browser/public/Action.d.ts.map +1 -0
- package/build/browser/public/Action.js +78 -3
- package/build/browser/public/Action.js.map +1 -1
- package/build/browser/public/ActionTypeV2.d.ts +37 -0
- package/build/browser/public/ActionTypeV2.d.ts.map +1 -0
- package/build/browser/public/ActionTypeV2.js +48 -3
- package/build/browser/public/ActionTypeV2.js.map +1 -1
- package/build/browser/public/Attachment.d.ts +51 -0
- package/build/browser/public/Attachment.d.ts.map +1 -0
- package/build/browser/public/Attachment.js +71 -3
- package/build/browser/public/Attachment.js.map +1 -1
- package/build/browser/public/AttachmentPropertyV2.d.ts +91 -0
- package/build/browser/public/AttachmentPropertyV2.d.ts.map +1 -0
- package/build/browser/public/AttachmentPropertyV2.js +79 -3
- package/build/browser/public/AttachmentPropertyV2.js.map +1 -1
- package/build/browser/public/LinkedObjectV2.d.ts +65 -0
- package/build/browser/public/LinkedObjectV2.d.ts.map +1 -0
- package/build/browser/public/LinkedObjectV2.js +59 -3
- package/build/browser/public/LinkedObjectV2.js.map +1 -1
- package/build/browser/public/ObjectTypeV2.d.ts +90 -0
- package/build/browser/public/ObjectTypeV2.d.ts.map +1 -0
- package/build/browser/public/ObjectTypeV2.js +93 -3
- package/build/browser/public/ObjectTypeV2.js.map +1 -1
- package/build/browser/public/OntologyInterface.d.ts +119 -0
- package/build/browser/public/OntologyInterface.d.ts.map +1 -0
- package/build/browser/public/OntologyInterface.js +118 -3
- package/build/browser/public/OntologyInterface.js.map +1 -1
- package/build/browser/public/OntologyObjectSet.d.ts +73 -0
- package/build/browser/public/OntologyObjectSet.d.ts.map +1 -0
- package/build/browser/public/OntologyObjectSet.js +79 -3
- package/build/browser/public/OntologyObjectSet.js.map +1 -1
- package/build/browser/public/OntologyObjectV2.d.ts +134 -0
- package/build/browser/public/OntologyObjectV2.d.ts.map +1 -0
- package/build/browser/public/OntologyObjectV2.js +118 -3
- package/build/browser/public/OntologyObjectV2.js.map +1 -1
- package/build/browser/public/OntologyV2.d.ts +34 -0
- package/build/browser/public/OntologyV2.d.ts.map +1 -0
- package/build/browser/public/OntologyV2.js +57 -3
- package/build/browser/public/OntologyV2.js.map +1 -1
- package/build/browser/public/Query.d.ts +25 -0
- package/build/browser/public/Query.d.ts.map +1 -0
- package/build/browser/public/Query.js +34 -3
- package/build/browser/public/Query.js.map +1 -1
- package/build/browser/public/QueryType.d.ts +37 -0
- package/build/browser/public/QueryType.d.ts.map +1 -0
- package/build/browser/public/QueryType.js +48 -3
- package/build/browser/public/QueryType.js.map +1 -1
- package/build/browser/public/TimeSeriesPropertyV2.d.ts +67 -0
- package/build/browser/public/TimeSeriesPropertyV2.d.ts.map +1 -0
- package/build/browser/public/TimeSeriesPropertyV2.js +62 -3
- package/build/browser/public/TimeSeriesPropertyV2.js.map +1 -1
- package/build/browser/public/TimeSeriesValueBankProperty.d.ts +24 -0
- package/build/browser/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
- package/build/browser/public/TimeSeriesValueBankProperty.js +33 -0
- package/build/browser/public/TimeSeriesValueBankProperty.js.map +1 -0
- 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 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +29 -15
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Action.d.ts +19 -19
- package/build/esm/public/Action.d.ts.map +1 -1
- package/build/esm/public/Action.js +78 -3
- package/build/esm/public/Action.js.map +1 -1
- package/build/esm/public/ActionTypeV2.d.ts +9 -6
- package/build/esm/public/ActionTypeV2.d.ts.map +1 -1
- package/build/esm/public/ActionTypeV2.js +48 -3
- package/build/esm/public/ActionTypeV2.js.map +1 -1
- package/build/esm/public/Attachment.d.ts +6 -6
- package/build/esm/public/Attachment.d.ts.map +1 -1
- package/build/esm/public/Attachment.js +71 -3
- package/build/esm/public/Attachment.js.map +1 -1
- package/build/esm/public/AttachmentPropertyV2.d.ts +29 -29
- package/build/esm/public/AttachmentPropertyV2.d.ts.map +1 -1
- package/build/esm/public/AttachmentPropertyV2.js +79 -3
- package/build/esm/public/AttachmentPropertyV2.js.map +1 -1
- package/build/esm/public/LinkedObjectV2.d.ts +21 -21
- package/build/esm/public/LinkedObjectV2.d.ts.map +1 -1
- package/build/esm/public/LinkedObjectV2.js +59 -3
- package/build/esm/public/LinkedObjectV2.js.map +1 -1
- package/build/esm/public/ObjectTypeV2.d.ts +22 -19
- package/build/esm/public/ObjectTypeV2.d.ts.map +1 -1
- package/build/esm/public/ObjectTypeV2.js +93 -3
- package/build/esm/public/ObjectTypeV2.js.map +1 -1
- package/build/esm/public/OntologyInterface.d.ts +20 -20
- package/build/esm/public/OntologyInterface.d.ts.map +1 -1
- package/build/esm/public/OntologyInterface.js +118 -3
- package/build/esm/public/OntologyInterface.js.map +1 -1
- package/build/esm/public/OntologyObjectSet.d.ts +18 -15
- package/build/esm/public/OntologyObjectSet.d.ts.map +1 -1
- package/build/esm/public/OntologyObjectSet.js +79 -3
- package/build/esm/public/OntologyObjectSet.js.map +1 -1
- package/build/esm/public/OntologyObjectV2.d.ts +34 -34
- package/build/esm/public/OntologyObjectV2.d.ts.map +1 -1
- package/build/esm/public/OntologyObjectV2.js +118 -3
- package/build/esm/public/OntologyObjectV2.js.map +1 -1
- package/build/esm/public/OntologyV2.d.ts +4 -4
- package/build/esm/public/OntologyV2.d.ts.map +1 -1
- package/build/esm/public/OntologyV2.js +57 -3
- package/build/esm/public/OntologyV2.js.map +1 -1
- package/build/esm/public/Query.d.ts +7 -7
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +34 -3
- package/build/esm/public/Query.js.map +1 -1
- package/build/esm/public/QueryType.d.ts +9 -6
- package/build/esm/public/QueryType.d.ts.map +1 -1
- package/build/esm/public/QueryType.js +48 -3
- package/build/esm/public/QueryType.js.map +1 -1
- package/build/esm/public/TimeSeriesPropertyV2.d.ts +22 -22
- package/build/esm/public/TimeSeriesPropertyV2.d.ts.map +1 -1
- package/build/esm/public/TimeSeriesPropertyV2.js +62 -3
- package/build/esm/public/TimeSeriesPropertyV2.js.map +1 -1
- package/build/esm/public/TimeSeriesValueBankProperty.d.ts +24 -0
- package/build/esm/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
- package/build/esm/public/TimeSeriesValueBankProperty.js +33 -0
- package/build/esm/public/TimeSeriesValueBankProperty.js.map +1 -0
- package/package.json +6 -7
- package/build/browser/chunk-35VM6XLH.js +0 -26
- package/build/browser/chunk-35VM6XLH.js.map +0 -1
- package/build/browser/chunk-3H3SHEFA.js +0 -31
- package/build/browser/chunk-3H3SHEFA.js.map +0 -1
- package/build/browser/chunk-4TOWICL3.js +0 -21
- package/build/browser/chunk-4TOWICL3.js.map +0 -1
- package/build/browser/chunk-A2ZEBCGI.js +0 -26
- package/build/browser/chunk-A2ZEBCGI.js.map +0 -1
- package/build/browser/chunk-CTA4DXZF.js +0 -31
- package/build/browser/chunk-CTA4DXZF.js.map +0 -1
- package/build/browser/chunk-EFVOGNPX.js +0 -31
- package/build/browser/chunk-EFVOGNPX.js.map +0 -1
- package/build/browser/chunk-GWYI4RKT.js +0 -21
- package/build/browser/chunk-GWYI4RKT.js.map +0 -1
- package/build/browser/chunk-KQNF55S5.js +0 -26
- package/build/browser/chunk-KQNF55S5.js.map +0 -1
- package/build/browser/chunk-OBKC7XBM.js +0 -31
- package/build/browser/chunk-OBKC7XBM.js.map +0 -1
- package/build/browser/chunk-PZ5AY32C.js +0 -9
- package/build/browser/chunk-PZ5AY32C.js.map +0 -1
- package/build/browser/chunk-U76D6BOW.js +0 -36
- package/build/browser/chunk-U76D6BOW.js.map +0 -1
- package/build/browser/chunk-UFJTKRQC.js +0 -16
- package/build/browser/chunk-UFJTKRQC.js.map +0 -1
- package/build/browser/chunk-VCCTOHYG.js +0 -21
- package/build/browser/chunk-VCCTOHYG.js.map +0 -1
- package/build/browser/chunk-ZNHKEV4X.js +0 -36
- package/build/browser/chunk-ZNHKEV4X.js.map +0 -1
- package/build/esm/chunk-35VM6XLH.js +0 -26
- package/build/esm/chunk-35VM6XLH.js.map +0 -1
- package/build/esm/chunk-3H3SHEFA.js +0 -31
- package/build/esm/chunk-3H3SHEFA.js.map +0 -1
- package/build/esm/chunk-4TOWICL3.js +0 -21
- package/build/esm/chunk-4TOWICL3.js.map +0 -1
- package/build/esm/chunk-A2ZEBCGI.js +0 -26
- package/build/esm/chunk-A2ZEBCGI.js.map +0 -1
- package/build/esm/chunk-CTA4DXZF.js +0 -31
- package/build/esm/chunk-CTA4DXZF.js.map +0 -1
- package/build/esm/chunk-EFVOGNPX.js +0 -31
- package/build/esm/chunk-EFVOGNPX.js.map +0 -1
- package/build/esm/chunk-GWYI4RKT.js +0 -21
- package/build/esm/chunk-GWYI4RKT.js.map +0 -1
- package/build/esm/chunk-KQNF55S5.js +0 -26
- package/build/esm/chunk-KQNF55S5.js.map +0 -1
- package/build/esm/chunk-OBKC7XBM.js +0 -31
- package/build/esm/chunk-OBKC7XBM.js.map +0 -1
- package/build/esm/chunk-PZ5AY32C.js +0 -9
- package/build/esm/chunk-PZ5AY32C.js.map +0 -1
- package/build/esm/chunk-U76D6BOW.js +0 -36
- package/build/esm/chunk-U76D6BOW.js.map +0 -1
- package/build/esm/chunk-UFJTKRQC.js +0 -16
- package/build/esm/chunk-UFJTKRQC.js.map +0 -1
- package/build/esm/chunk-VCCTOHYG.js +0 -21
- package/build/esm/chunk-VCCTOHYG.js.map +0 -1
- package/build/esm/chunk-ZNHKEV4X.js +0 -36
- package/build/esm/chunk-ZNHKEV4X.js.map +0 -1
|
@@ -1,4 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 _listObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the objects for the given Ontology and object type.
|
|
21
|
+
*
|
|
22
|
+
* Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or
|
|
23
|
+
* repeated objects in the response pages.
|
|
24
|
+
*
|
|
25
|
+
* For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects
|
|
26
|
+
* are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.
|
|
27
|
+
*
|
|
28
|
+
* Each page may be smaller or larger than the requested page size. However, it
|
|
29
|
+
* is guaranteed that if there are more results available, at least one result will be present
|
|
30
|
+
* in the response.
|
|
31
|
+
*
|
|
32
|
+
* Note that null value properties will not be returned.
|
|
33
|
+
*
|
|
34
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
*
|
|
38
|
+
* Required Scopes: [api:ontologies-read]
|
|
39
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}
|
|
40
|
+
*/
|
|
41
|
+
export function listObjectsV2($ctx, ...args) {
|
|
42
|
+
return $foundryPlatformFetch($ctx, _listObjectsV2, ...args);
|
|
43
|
+
}
|
|
44
|
+
const _getObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}", 2];
|
|
45
|
+
/**
|
|
46
|
+
* Gets a specific object with the given primary key.
|
|
47
|
+
*
|
|
48
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
49
|
+
*
|
|
50
|
+
* @public
|
|
51
|
+
*
|
|
52
|
+
* Required Scopes: [api:ontologies-read]
|
|
53
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}
|
|
54
|
+
*/
|
|
55
|
+
export function getObjectV2($ctx, ...args) {
|
|
56
|
+
return $foundryPlatformFetch($ctx, _getObjectV2, ...args);
|
|
57
|
+
}
|
|
58
|
+
const _countObjects = [1, "/v2/ontologies/{0}/objects/{1}/count", 2];
|
|
59
|
+
/**
|
|
60
|
+
* Returns a count of the objects of the given object type.
|
|
61
|
+
*
|
|
62
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
63
|
+
*
|
|
64
|
+
* @alpha
|
|
65
|
+
*
|
|
66
|
+
* Required Scopes: [api:ontologies-read]
|
|
67
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/count
|
|
68
|
+
*/
|
|
69
|
+
export function countObjects($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _countObjects, ...args);
|
|
71
|
+
}
|
|
72
|
+
const _searchObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/search", 3];
|
|
73
|
+
/**
|
|
74
|
+
* Search for objects in the specified ontology and object type. The request body is used
|
|
75
|
+
* to filter objects based on the specified query. The supported queries are:
|
|
76
|
+
*
|
|
77
|
+
* | Query type | Description | Supported Types |
|
|
78
|
+
* |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|
|
|
79
|
+
* | lt | The provided property is less than the provided value. | number, string, date, timestamp |
|
|
80
|
+
* | gt | The provided property is greater than the provided value. | number, string, date, timestamp |
|
|
81
|
+
* | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |
|
|
82
|
+
* | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |
|
|
83
|
+
* | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |
|
|
84
|
+
* | isNull | The provided property is (or is not) null. | all |
|
|
85
|
+
* | contains | The provided property contains the provided value. | array |
|
|
86
|
+
* | not | The sub-query does not match. | N/A (applied on a query) |
|
|
87
|
+
* | and | All the sub-queries match. | N/A (applied on queries) |
|
|
88
|
+
* | or | At least one of the sub-queries match. | N/A (applied on queries) |
|
|
89
|
+
* | startsWith | The provided property starts with the provided value. | string |
|
|
90
|
+
* | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |
|
|
91
|
+
* | containsAllTermsInOrder | The provided property contains the provided value as a substring. | string |
|
|
92
|
+
* | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |
|
|
93
|
+
* | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |
|
|
94
|
+
*
|
|
95
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*
|
|
99
|
+
* Required Scopes: [api:ontologies-read]
|
|
100
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/search
|
|
101
|
+
*/
|
|
102
|
+
export function searchObjectsV2($ctx, ...args) {
|
|
103
|
+
return $foundryPlatformFetch($ctx, _searchObjectsV2, ...args);
|
|
104
|
+
}
|
|
105
|
+
const _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
|
|
106
|
+
/**
|
|
107
|
+
* Perform functions on object fields in the specified ontology and object type.
|
|
108
|
+
*
|
|
109
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
110
|
+
*
|
|
111
|
+
* @public
|
|
112
|
+
*
|
|
113
|
+
* Required Scopes: [api:ontologies-read]
|
|
114
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate
|
|
115
|
+
*/
|
|
116
|
+
export function aggregateObjectsV2($ctx, ...args) {
|
|
117
|
+
return $foundryPlatformFetch($ctx, _aggregateObjectsV2, ...args);
|
|
118
|
+
}
|
|
4
119
|
//# sourceMappingURL=OntologyObjectV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"OntologyObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listObjectsV2","listObjectsV2","$ctx","args","_getObjectV2","getObjectV2","_countObjects","countObjects","_searchObjectsV2","searchObjectsV2","_aggregateObjectsV2","aggregateObjectsV2"],"sources":["OntologyObjectV2.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 _listObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}\", 2];\n/**\n * Lists the objects for the given Ontology and object type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}\n */\nexport function listObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listObjectsV2, ...args);\n}\nconst _getObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}\", 2];\n/**\n * Gets a specific object with the given primary key.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}\n */\nexport function getObjectV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectV2, ...args);\n}\nconst _countObjects = [1, \"/v2/ontologies/{0}/objects/{1}/count\", 2];\n/**\n * Returns a count of the objects of the given object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/count\n */\nexport function countObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _countObjects, ...args);\n}\nconst _searchObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/search\", 3];\n/**\n * Search for objects in the specified ontology and object type. The request body is used\n * to filter objects based on the specified query. The supported queries are:\n *\n * | Query type | Description | Supported Types |\n * |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | startsWith | The provided property starts with the provided value. | string |\n * | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |\n * | containsAllTermsInOrder | The provided property contains the provided value as a substring. | string |\n * | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/search\n */\nexport function searchObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _searchObjectsV2, ...args);\n}\nconst _aggregateObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/aggregate\", 3];\n/**\n * Perform functions on object fields in the specified ontology and object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate\n */\nexport function aggregateObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregateObjectsV2, ...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,cAAc,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,cAAc,EAAE,GAAGG,IAAI,CAAC;AAC/D;AACA,MAAMC,YAAY,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACvC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,YAAY,EAAE,GAAGD,IAAI,CAAC;AAC7D;AACA,MAAMG,aAAa,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AACpE;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;AACA,MAAMK,gBAAgB,GAAG,CAAC,CAAC,EAAE,uCAAuC,EAAE,CAAC,CAAC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,gBAAgB,EAAE,GAAGL,IAAI,CAAC;AACjE;AACA,MAAMO,mBAAmB,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,mBAAmB,EAAE,GAAGP,IAAI,CAAC;AACpE","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
+
/**
|
|
4
|
+
* Lists the Ontologies visible to the current user.
|
|
5
|
+
*
|
|
6
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:ontologies-read]
|
|
11
|
+
* URL: /v2/ontologies
|
|
12
|
+
*/
|
|
13
|
+
export declare function listOntologiesV2($ctx: $Client | $ClientContext, ...args: []): Promise<_Core.ListOntologiesV2Response>;
|
|
14
|
+
/**
|
|
15
|
+
* Gets a specific ontology with the given Ontology RID.
|
|
16
|
+
*
|
|
17
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*
|
|
21
|
+
* Required Scopes: [api:ontologies-read]
|
|
22
|
+
* URL: /v2/ontologies/{ontology}
|
|
23
|
+
*/
|
|
24
|
+
export declare function getOntologyV2($ctx: $Client | $ClientContext, ...args: [ontology: _Core.OntologyIdentifier]): Promise<_Core.OntologyV2>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.
|
|
27
|
+
*
|
|
28
|
+
* @alpha
|
|
29
|
+
*
|
|
30
|
+
* Required Scopes: [api:ontologies-read]
|
|
31
|
+
* URL: /v2/ontologies/{ontology}/fullMetadata
|
|
32
|
+
*/
|
|
33
|
+
export declare function getOntologyFullMetadata($ctx: $Client | $ClientContext, ...args: [ontology: _Core.OntologyIdentifier]): Promise<_Core.OntologyFullMetadata>;
|
|
34
|
+
//# sourceMappingURL=OntologyV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OntologyV2.d.ts","sourceRoot":"","sources":["../../../src/public/OntologyV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAU7B;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,EAAE,GACV,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAEzC;AAMD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B;AAMD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAErC"}
|
|
@@ -1,4 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 _listOntologiesV2 = [0, "/v2/ontologies"];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the Ontologies visible to the current user.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* Required Scopes: [api:ontologies-read]
|
|
27
|
+
* URL: /v2/ontologies
|
|
28
|
+
*/
|
|
29
|
+
export function listOntologiesV2($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _listOntologiesV2, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _getOntologyV2 = [0, "/v2/ontologies/{0}"];
|
|
33
|
+
/**
|
|
34
|
+
* Gets a specific ontology with the given Ontology RID.
|
|
35
|
+
*
|
|
36
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*
|
|
40
|
+
* Required Scopes: [api:ontologies-read]
|
|
41
|
+
* URL: /v2/ontologies/{ontology}
|
|
42
|
+
*/
|
|
43
|
+
export function getOntologyV2($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _getOntologyV2, ...args);
|
|
45
|
+
}
|
|
46
|
+
const _getOntologyFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
|
|
47
|
+
/**
|
|
48
|
+
* Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.
|
|
49
|
+
*
|
|
50
|
+
* @alpha
|
|
51
|
+
*
|
|
52
|
+
* Required Scopes: [api:ontologies-read]
|
|
53
|
+
* URL: /v2/ontologies/{ontology}/fullMetadata
|
|
54
|
+
*/
|
|
55
|
+
export function getOntologyFullMetadata($ctx, ...args) {
|
|
56
|
+
return $foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...args);
|
|
57
|
+
}
|
|
4
58
|
//# sourceMappingURL=OntologyV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"OntologyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listOntologiesV2","listOntologiesV2","$ctx","args","_getOntologyV2","getOntologyV2","_getOntologyFullMetadata","getOntologyFullMetadata"],"sources":["OntologyV2.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 _listOntologiesV2 = [0, \"/v2/ontologies\"];\n/**\n * Lists the Ontologies visible to the current user.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies\n */\nexport function listOntologiesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOntologiesV2, ...args);\n}\nconst _getOntologyV2 = [0, \"/v2/ontologies/{0}\"];\n/**\n * Gets a specific ontology with the given Ontology RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}\n */\nexport function getOntologyV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOntologyV2, ...args);\n}\nconst _getOntologyFullMetadata = [0, \"/v2/ontologies/{0}/fullMetadata\"];\n/**\n * Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/fullMetadata\n */\nexport function getOntologyFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOntologyFullMetadata, ...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,iBAAiB,GAAG,CAAC,CAAC,EAAE,gBAAgB,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,iBAAiB,EAAE,GAAGG,IAAI,CAAC;AAClE;AACA,MAAMC,cAAc,GAAG,CAAC,CAAC,EAAE,oBAAoB,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,cAAc,EAAE,GAAGD,IAAI,CAAC;AAC/D;AACA,MAAMG,wBAAwB,GAAG,CAAC,CAAC,EAAE,iCAAiC,CAAC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,wBAAwB,EAAE,GAAGH,IAAI,CAAC;AACzE","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
+
/**
|
|
4
|
+
* Executes a Query using the given parameters.
|
|
5
|
+
*
|
|
6
|
+
* Optional parameters do not need to be supplied.
|
|
7
|
+
*
|
|
8
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
9
|
+
* following operation scopes: `api:ontologies-read`.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* Required Scopes: [api:ontologies-read]
|
|
14
|
+
* URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute
|
|
15
|
+
*/
|
|
16
|
+
export declare function executeQueryV2($ctx: $Client | $ClientContext, ...args: [
|
|
17
|
+
ontology: _Core.OntologyIdentifier,
|
|
18
|
+
queryApiName: _Core.QueryApiName,
|
|
19
|
+
$body: _Core.ExecuteQueryRequest,
|
|
20
|
+
$queryParams?: {
|
|
21
|
+
artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
|
|
22
|
+
packageName?: _Core.SdkPackageName | undefined;
|
|
23
|
+
}
|
|
24
|
+
]): Promise<_Core.ExecuteQueryResponse>;
|
|
25
|
+
//# 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,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAkB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,YAAY,EAAE,KAAK,CAAC,YAAY;IAChC,KAAK,EAAE,KAAK,CAAC,mBAAmB;IAChC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAErC"}
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Executes a Query using the given parameters.
|
|
21
|
+
*
|
|
22
|
+
* Optional parameters do not need to be supplied.
|
|
23
|
+
*
|
|
24
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
25
|
+
* following operation scopes: `api:ontologies-read`.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*
|
|
29
|
+
* Required Scopes: [api:ontologies-read]
|
|
30
|
+
* URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute
|
|
31
|
+
*/
|
|
32
|
+
export function executeQueryV2($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _executeQueryV2, ...args);
|
|
34
|
+
}
|
|
4
35
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_executeQueryV2","executeQueryV2","$ctx","args"],"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 _executeQueryV2 = [1, \"/v2/ontologies/{0}/queries/{1}/execute\", 3];\n/**\n * Executes a Query using the given parameters.\n *\n * Optional parameters do not need to be supplied.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute\n */\nexport function executeQueryV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeQueryV2, ...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,eAAe,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,eAAe,EAAE,GAAGG,IAAI,CAAC;AAChE","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
+
/**
|
|
4
|
+
* Lists the query types for the given Ontology.
|
|
5
|
+
*
|
|
6
|
+
* Each page may be smaller than the requested page size. However, it is guaranteed that if there are more
|
|
7
|
+
* results available, at least one result will be present in the response.
|
|
8
|
+
*
|
|
9
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* Required Scopes: [api:ontologies-read]
|
|
14
|
+
* URL: /v2/ontologies/{ontology}/queryTypes
|
|
15
|
+
*/
|
|
16
|
+
export declare function listQueryTypesV2($ctx: $Client | $ClientContext, ...args: [
|
|
17
|
+
ontology: _Core.OntologyIdentifier,
|
|
18
|
+
$queryParams?: {
|
|
19
|
+
pageSize?: _Core.PageSize | undefined;
|
|
20
|
+
pageToken?: _Core.PageToken | undefined;
|
|
21
|
+
}
|
|
22
|
+
]): Promise<_Core.ListQueryTypesResponseV2>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets a specific query type with the given API name.
|
|
25
|
+
*
|
|
26
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*
|
|
30
|
+
* Required Scopes: [api:ontologies-read]
|
|
31
|
+
* URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}
|
|
32
|
+
*/
|
|
33
|
+
export declare function getQueryTypeV2($ctx: $Client | $ClientContext, ...args: [
|
|
34
|
+
ontology: _Core.OntologyIdentifier,
|
|
35
|
+
queryApiName: _Core.QueryApiName
|
|
36
|
+
]): Promise<_Core.QueryTypeV2>;
|
|
37
|
+
//# sourceMappingURL=QueryType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryType.d.ts","sourceRoot":"","sources":["../../../src/public/QueryType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAElC,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAEzC;AASD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,YAAY,EAAE,KAAK,CAAC,YAAY;CACjC,GACA,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAE5B"}
|
|
@@ -1,4 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 _listQueryTypesV2 = [0, "/v2/ontologies/{0}/queryTypes", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the query types for the given Ontology.
|
|
21
|
+
*
|
|
22
|
+
* Each page may be smaller than the requested page size. However, it is guaranteed that if there are more
|
|
23
|
+
* results available, at least one result will be present in the response.
|
|
24
|
+
*
|
|
25
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*
|
|
29
|
+
* Required Scopes: [api:ontologies-read]
|
|
30
|
+
* URL: /v2/ontologies/{ontology}/queryTypes
|
|
31
|
+
*/
|
|
32
|
+
export function listQueryTypesV2($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);
|
|
34
|
+
}
|
|
35
|
+
const _getQueryTypeV2 = [0, "/v2/ontologies/{0}/queryTypes/{1}"];
|
|
36
|
+
/**
|
|
37
|
+
* Gets a specific query type with the given API name.
|
|
38
|
+
*
|
|
39
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*
|
|
43
|
+
* Required Scopes: [api:ontologies-read]
|
|
44
|
+
* URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}
|
|
45
|
+
*/
|
|
46
|
+
export function getQueryTypeV2($ctx, ...args) {
|
|
47
|
+
return $foundryPlatformFetch($ctx, _getQueryTypeV2, ...args);
|
|
48
|
+
}
|
|
4
49
|
//# sourceMappingURL=QueryType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"QueryType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listQueryTypesV2","listQueryTypesV2","$ctx","args","_getQueryTypeV2","getQueryTypeV2"],"sources":["QueryType.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 _listQueryTypesV2 = [0, \"/v2/ontologies/{0}/queryTypes\", 2];\n/**\n * Lists the query types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes\n */\nexport function listQueryTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listQueryTypesV2, ...args);\n}\nconst _getQueryTypeV2 = [0, \"/v2/ontologies/{0}/queryTypes/{1}\"];\n/**\n * Gets a specific query type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}\n */\nexport function getQueryTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getQueryTypeV2, ...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,iBAAiB,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,iBAAiB,EAAE,GAAGG,IAAI,CAAC;AAClE;AACA,MAAMC,eAAe,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,eAAe,EAAE,GAAGD,IAAI,CAAC;AAChE","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
+
/**
|
|
4
|
+
* Get the first point of a time series property.
|
|
5
|
+
*
|
|
6
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
7
|
+
* following operation scopes: `api:ontologies-read`.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* Required Scopes: [api:ontologies-read]
|
|
12
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint
|
|
13
|
+
*/
|
|
14
|
+
export declare function getFirstPoint($ctx: $Client | $ClientContext, ...args: [
|
|
15
|
+
ontology: _Core.OntologyIdentifier,
|
|
16
|
+
objectType: _Core.ObjectTypeApiName,
|
|
17
|
+
primaryKey: _Core.PropertyValueEscapedString,
|
|
18
|
+
property: _Core.PropertyApiName,
|
|
19
|
+
$queryParams?: {
|
|
20
|
+
artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
|
|
21
|
+
packageName?: _Core.SdkPackageName | undefined;
|
|
22
|
+
}
|
|
23
|
+
]): Promise<_Core.TimeSeriesPoint | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Get the last point of a time series property.
|
|
26
|
+
*
|
|
27
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
28
|
+
* following operation scopes: `api:ontologies-read`.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* Required Scopes: [api:ontologies-read]
|
|
33
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint
|
|
34
|
+
*/
|
|
35
|
+
export declare function getLastPoint($ctx: $Client | $ClientContext, ...args: [
|
|
36
|
+
ontology: _Core.OntologyIdentifier,
|
|
37
|
+
objectType: _Core.ObjectTypeApiName,
|
|
38
|
+
primaryKey: _Core.PropertyValueEscapedString,
|
|
39
|
+
property: _Core.PropertyApiName,
|
|
40
|
+
$queryParams?: {
|
|
41
|
+
artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
|
|
42
|
+
packageName?: _Core.SdkPackageName | undefined;
|
|
43
|
+
}
|
|
44
|
+
]): Promise<_Core.TimeSeriesPoint | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Stream all of the points of a time series property.
|
|
47
|
+
*
|
|
48
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
49
|
+
* following operation scopes: `api:ontologies-read`.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*
|
|
53
|
+
* Required Scopes: [api:ontologies-read]
|
|
54
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints
|
|
55
|
+
*/
|
|
56
|
+
export declare function streamPoints($ctx: $Client | $ClientContext, ...args: [
|
|
57
|
+
ontology: _Core.OntologyIdentifier,
|
|
58
|
+
objectType: _Core.ObjectTypeApiName,
|
|
59
|
+
primaryKey: _Core.PropertyValueEscapedString,
|
|
60
|
+
property: _Core.PropertyApiName,
|
|
61
|
+
$body: _Core.StreamTimeSeriesPointsRequest,
|
|
62
|
+
$queryParams?: {
|
|
63
|
+
artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
|
|
64
|
+
packageName?: _Core.SdkPackageName | undefined;
|
|
65
|
+
}
|
|
66
|
+
]): Promise<Blob>;
|
|
67
|
+
//# sourceMappingURL=TimeSeriesPropertyV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeSeriesPropertyV2.d.ts","sourceRoot":"","sources":["../../../src/public/TimeSeriesPropertyV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,SAAS,CAAC,CAE5C;AAeD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,SAAS,CAAC,CAE5C;AAsBD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,KAAK,EAAE,KAAK,CAAC,6BAA6B;IAC1C,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -1,4 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Get the first point of a time series property.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
23
|
+
* following operation scopes: `api:ontologies-read`.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*
|
|
27
|
+
* Required Scopes: [api:ontologies-read]
|
|
28
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint
|
|
29
|
+
*/
|
|
30
|
+
export function getFirstPoint($ctx, ...args) {
|
|
31
|
+
return $foundryPlatformFetch($ctx, _getFirstPoint, ...args);
|
|
32
|
+
}
|
|
33
|
+
const _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
|
|
34
|
+
/**
|
|
35
|
+
* Get the last point of a time series property.
|
|
36
|
+
*
|
|
37
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
38
|
+
* following operation scopes: `api:ontologies-read`.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*
|
|
42
|
+
* Required Scopes: [api:ontologies-read]
|
|
43
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint
|
|
44
|
+
*/
|
|
45
|
+
export function getLastPoint($ctx, ...args) {
|
|
46
|
+
return $foundryPlatformFetch($ctx, _getLastPoint, ...args);
|
|
47
|
+
}
|
|
48
|
+
const _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3,, "*/*"];
|
|
49
|
+
/**
|
|
50
|
+
* Stream all of the points of a time series property.
|
|
51
|
+
*
|
|
52
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
53
|
+
* following operation scopes: `api:ontologies-read`.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*
|
|
57
|
+
* Required Scopes: [api:ontologies-read]
|
|
58
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints
|
|
59
|
+
*/
|
|
60
|
+
export function streamPoints($ctx, ...args) {
|
|
61
|
+
return $foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
62
|
+
}
|
|
4
63
|
//# sourceMappingURL=TimeSeriesPropertyV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"file":"TimeSeriesPropertyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getFirstPoint","getFirstPoint","$ctx","args","_getLastPoint","getLastPoint","_streamPoints","streamPoints"],"sources":["TimeSeriesPropertyV2.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 _getFirstPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint\", 2];\n/**\n * Get the first point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint\n */\nexport function getFirstPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFirstPoint, ...args);\n}\nconst _getLastPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint\", 2];\n/**\n * Get the last point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint\n */\nexport function getLastPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLastPoint, ...args);\n}\nconst _streamPoints = [\n 1,\n \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints\",\n 3,\n ,\n \"*/*\",\n];\n/**\n * Stream all of the points of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints\n */\nexport function streamPoints($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamPoints, ...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,cAAc,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,cAAc,EAAE,GAAGG,IAAI,CAAC;AAC/D;AACA,MAAMC,aAAa,GAAG,CAAC,CAAC,EAAE,6DAA6D,EAAE,CAAC,CAAC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D;AACA,MAAMG,aAAa,GAAG,CAClB,CAAC,EACD,gEAAgE,EAChE,CAAC,GAED,KAAK,CACR;AACD;AACA;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":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
|
+
/**
|
|
4
|
+
* Get the latest value of a property backed by a timeseries. If a specific geotime series integration has both a history and a live integration, we will give precedence to the live integration.
|
|
5
|
+
*
|
|
6
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
7
|
+
* following operation scopes: `api:read-data`.
|
|
8
|
+
*
|
|
9
|
+
* @alpha
|
|
10
|
+
*
|
|
11
|
+
* Required Scopes: [api:read-data]
|
|
12
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue
|
|
13
|
+
*/
|
|
14
|
+
export declare function getLatestValue($ctx: $Client | $ClientContext, ...args: [
|
|
15
|
+
ontology: _Core.OntologyIdentifier,
|
|
16
|
+
objectType: _Core.ObjectTypeApiName,
|
|
17
|
+
primaryKey: _Core.PropertyValueEscapedString,
|
|
18
|
+
propertyName: _Core.PropertyApiName,
|
|
19
|
+
$queryParams?: {
|
|
20
|
+
artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
|
|
21
|
+
packageName?: _Core.SdkPackageName | undefined;
|
|
22
|
+
}
|
|
23
|
+
]): Promise<_Core.TimeseriesEntry | undefined>;
|
|
24
|
+
//# sourceMappingURL=TimeSeriesValueBankProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeSeriesValueBankProperty.d.ts","sourceRoot":"","sources":["../../../src/public/TimeSeriesValueBankProperty.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,YAAY,EAAE,KAAK,CAAC,eAAe;IAEnC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,SAAS,CAAC,CAE5C"}
|