@osdk/foundry.ontologies 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/build/browser/_components.d.ts +3647 -0
- package/build/browser/_components.d.ts.map +1 -1
- package/build/browser/index.d.ts +16 -1
- package/build/browser/index.d.ts.map +1 -1
- package/build/browser/index.js +15 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Action.d.ts +80 -0
- package/build/browser/public/Action.d.ts.map +1 -0
- package/build/browser/public/Action.js +79 -0
- package/build/browser/public/Action.js.map +1 -0
- package/build/browser/public/ActionTypeV2.d.ts +39 -0
- package/build/browser/public/ActionTypeV2.d.ts.map +1 -0
- package/build/browser/public/ActionTypeV2.js +49 -0
- package/build/browser/public/ActionTypeV2.js.map +1 -0
- package/build/browser/public/Attachment.d.ts +53 -0
- package/build/browser/public/Attachment.d.ts.map +1 -0
- package/build/browser/public/Attachment.js +72 -0
- package/build/browser/public/Attachment.js.map +1 -0
- package/build/browser/public/AttachmentPropertyV2.d.ts +92 -0
- package/build/browser/public/AttachmentPropertyV2.d.ts.map +1 -0
- package/build/browser/public/AttachmentPropertyV2.js +80 -0
- package/build/browser/public/AttachmentPropertyV2.js.map +1 -0
- package/build/browser/public/LinkedObjectV2.d.ts +67 -0
- package/build/browser/public/LinkedObjectV2.d.ts.map +1 -0
- package/build/browser/public/LinkedObjectV2.js +60 -0
- package/build/browser/public/LinkedObjectV2.js.map +1 -0
- package/build/browser/public/MediaReferenceProperty.d.ts +68 -0
- package/build/browser/public/MediaReferenceProperty.d.ts.map +1 -0
- package/build/browser/public/MediaReferenceProperty.js +61 -0
- package/build/browser/public/MediaReferenceProperty.js.map +1 -0
- package/build/browser/public/ObjectTypeV2.d.ts +92 -0
- package/build/browser/public/ObjectTypeV2.d.ts.map +1 -0
- package/build/browser/public/ObjectTypeV2.js +94 -0
- package/build/browser/public/ObjectTypeV2.js.map +1 -0
- package/build/browser/public/OntologyInterface.d.ts +132 -0
- package/build/browser/public/OntologyInterface.d.ts.map +1 -0
- package/build/browser/public/OntologyInterface.js +130 -0
- package/build/browser/public/OntologyInterface.js.map +1 -0
- package/build/browser/public/OntologyObjectSet.d.ts +135 -0
- package/build/browser/public/OntologyObjectSet.d.ts.map +1 -0
- package/build/browser/public/OntologyObjectSet.js +130 -0
- package/build/browser/public/OntologyObjectSet.js.map +1 -0
- package/build/browser/public/OntologyObjectV2.d.ts +139 -0
- package/build/browser/public/OntologyObjectV2.d.ts.map +1 -0
- package/build/browser/public/OntologyObjectV2.js +122 -0
- package/build/browser/public/OntologyObjectV2.js.map +1 -0
- package/build/browser/public/OntologyV2.d.ts +35 -0
- package/build/browser/public/OntologyV2.d.ts.map +1 -0
- package/build/browser/public/OntologyV2.js +58 -0
- package/build/browser/public/OntologyV2.js.map +1 -0
- package/build/browser/public/Query.d.ts +26 -0
- package/build/browser/public/Query.d.ts.map +1 -0
- package/build/browser/public/Query.js +35 -0
- package/build/browser/public/Query.js.map +1 -0
- package/build/browser/public/QueryType.d.ts +39 -0
- package/build/browser/public/QueryType.d.ts.map +1 -0
- package/build/browser/public/QueryType.js +49 -0
- package/build/browser/public/QueryType.js.map +1 -0
- package/build/browser/public/TimeSeriesPropertyV2.d.ts +69 -0
- package/build/browser/public/TimeSeriesPropertyV2.d.ts.map +1 -0
- package/build/browser/public/TimeSeriesPropertyV2.js +63 -0
- package/build/browser/public/TimeSeriesPropertyV2.js.map +1 -0
- package/build/browser/public/TimeSeriesValueBankProperty.d.ts +47 -0
- package/build/browser/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
- package/build/browser/public/TimeSeriesValueBankProperty.js +48 -0
- package/build/browser/public/TimeSeriesValueBankProperty.js.map +1 -0
- package/build/esm/_components.d.ts +3647 -0
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/index.d.ts +16 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +15 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Action.d.ts +80 -0
- package/build/esm/public/Action.d.ts.map +1 -0
- package/build/esm/public/Action.js +79 -0
- package/build/esm/public/Action.js.map +1 -0
- package/build/esm/public/ActionTypeV2.d.ts +39 -0
- package/build/esm/public/ActionTypeV2.d.ts.map +1 -0
- package/build/esm/public/ActionTypeV2.js +49 -0
- package/build/esm/public/ActionTypeV2.js.map +1 -0
- package/build/esm/public/Attachment.d.ts +53 -0
- package/build/esm/public/Attachment.d.ts.map +1 -0
- package/build/esm/public/Attachment.js +72 -0
- package/build/esm/public/Attachment.js.map +1 -0
- package/build/esm/public/AttachmentPropertyV2.d.ts +92 -0
- package/build/esm/public/AttachmentPropertyV2.d.ts.map +1 -0
- package/build/esm/public/AttachmentPropertyV2.js +80 -0
- package/build/esm/public/AttachmentPropertyV2.js.map +1 -0
- package/build/esm/public/LinkedObjectV2.d.ts +67 -0
- package/build/esm/public/LinkedObjectV2.d.ts.map +1 -0
- package/build/esm/public/LinkedObjectV2.js +60 -0
- package/build/esm/public/LinkedObjectV2.js.map +1 -0
- package/build/esm/public/MediaReferenceProperty.d.ts +68 -0
- package/build/esm/public/MediaReferenceProperty.d.ts.map +1 -0
- package/build/esm/public/MediaReferenceProperty.js +61 -0
- package/build/esm/public/MediaReferenceProperty.js.map +1 -0
- package/build/esm/public/ObjectTypeV2.d.ts +92 -0
- package/build/esm/public/ObjectTypeV2.d.ts.map +1 -0
- package/build/esm/public/ObjectTypeV2.js +94 -0
- package/build/esm/public/ObjectTypeV2.js.map +1 -0
- package/build/esm/public/OntologyInterface.d.ts +132 -0
- package/build/esm/public/OntologyInterface.d.ts.map +1 -0
- package/build/esm/public/OntologyInterface.js +130 -0
- package/build/esm/public/OntologyInterface.js.map +1 -0
- package/build/esm/public/OntologyObjectSet.d.ts +135 -0
- package/build/esm/public/OntologyObjectSet.d.ts.map +1 -0
- package/build/esm/public/OntologyObjectSet.js +130 -0
- package/build/esm/public/OntologyObjectSet.js.map +1 -0
- package/build/esm/public/OntologyObjectV2.d.ts +139 -0
- package/build/esm/public/OntologyObjectV2.d.ts.map +1 -0
- package/build/esm/public/OntologyObjectV2.js +122 -0
- package/build/esm/public/OntologyObjectV2.js.map +1 -0
- package/build/esm/public/OntologyV2.d.ts +35 -0
- package/build/esm/public/OntologyV2.d.ts.map +1 -0
- package/build/esm/public/OntologyV2.js +58 -0
- package/build/esm/public/OntologyV2.js.map +1 -0
- package/build/esm/public/Query.d.ts +26 -0
- package/build/esm/public/Query.d.ts.map +1 -0
- package/build/esm/public/Query.js +35 -0
- package/build/esm/public/Query.js.map +1 -0
- package/build/esm/public/QueryType.d.ts +39 -0
- package/build/esm/public/QueryType.d.ts.map +1 -0
- package/build/esm/public/QueryType.js +49 -0
- package/build/esm/public/QueryType.js.map +1 -0
- package/build/esm/public/TimeSeriesPropertyV2.d.ts +69 -0
- package/build/esm/public/TimeSeriesPropertyV2.d.ts.map +1 -0
- package/build/esm/public/TimeSeriesPropertyV2.js +63 -0
- package/build/esm/public/TimeSeriesPropertyV2.js.map +1 -0
- package/build/esm/public/TimeSeriesValueBankProperty.d.ts +47 -0
- package/build/esm/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
- package/build/esm/public/TimeSeriesValueBankProperty.js +48 -0
- package/build/esm/public/TimeSeriesValueBankProperty.js.map +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1,130 @@
|
|
|
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 _createTemporary = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 1];
|
|
19
|
+
/**
|
|
20
|
+
* Creates a temporary `ObjectSet` from the given definition.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
23
|
+
* following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
24
|
+
*
|
|
25
|
+
* @beta
|
|
26
|
+
*
|
|
27
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
28
|
+
* URL: /v2/ontologies/{ontology}/objectSets/createTemporary
|
|
29
|
+
*/
|
|
30
|
+
export function createTemporary($ctx, ...args) {
|
|
31
|
+
return $foundryPlatformFetch($ctx, _createTemporary, ...args);
|
|
32
|
+
}
|
|
33
|
+
const _get = [0, "/v2/ontologies/{0}/objectSets/{1}"];
|
|
34
|
+
/**
|
|
35
|
+
* Gets the definition of the `ObjectSet` with the given RID.
|
|
36
|
+
*
|
|
37
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
38
|
+
*
|
|
39
|
+
* @alpha
|
|
40
|
+
*
|
|
41
|
+
* Required Scopes: []
|
|
42
|
+
* URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}
|
|
43
|
+
*/
|
|
44
|
+
export function get($ctx, ...args) {
|
|
45
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
46
|
+
}
|
|
47
|
+
const _load = [1, "/v2/ontologies/{0}/objectSets/loadObjects", 3];
|
|
48
|
+
/**
|
|
49
|
+
* Load the ontology objects present in the `ObjectSet` from the provided object set definition.
|
|
50
|
+
*
|
|
51
|
+
* 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
|
|
52
|
+
* 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.
|
|
53
|
+
*
|
|
54
|
+
* Note that null value properties will not be returned.
|
|
55
|
+
*
|
|
56
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*
|
|
60
|
+
* Required Scopes: [api:ontologies-read]
|
|
61
|
+
* URL: /v2/ontologies/{ontology}/objectSets/loadObjects
|
|
62
|
+
*/
|
|
63
|
+
export function load($ctx, ...args) {
|
|
64
|
+
return $foundryPlatformFetch($ctx, _load, ...args);
|
|
65
|
+
}
|
|
66
|
+
const _loadMultipleObjectTypes = [1, "/v2/ontologies/{0}/objectSets/loadObjectsMultipleObjectTypes", 3];
|
|
67
|
+
/**
|
|
68
|
+
* Load the ontology objects present in the `ObjectSet` from the provided object set definition. The resulting
|
|
69
|
+
* objects may be scoped to an object type, in which all the selected properties on the object type are returned, or scoped
|
|
70
|
+
* to an interface, in which only the object type properties that implement the properties of any interfaces in its
|
|
71
|
+
* scope are returned. For objects that are scoped to an interface in the result, a mapping from interface to
|
|
72
|
+
* object implementation is returned in order to interpret the objects as the interfaces that they implement.
|
|
73
|
+
*
|
|
74
|
+
* 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
|
|
75
|
+
* 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.
|
|
76
|
+
*
|
|
77
|
+
* Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)
|
|
78
|
+
* will be prefixed with '$' instead of '\_\_' as is the case in `loadObjects`.
|
|
79
|
+
*
|
|
80
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
81
|
+
*
|
|
82
|
+
* @beta
|
|
83
|
+
*
|
|
84
|
+
* Required Scopes: [api:ontologies-read]
|
|
85
|
+
* URL: /v2/ontologies/{ontology}/objectSets/loadObjectsMultipleObjectTypes
|
|
86
|
+
*/
|
|
87
|
+
export function loadMultipleObjectTypes($ctx, ...args) {
|
|
88
|
+
return $foundryPlatformFetch($ctx, _loadMultipleObjectTypes, ...args);
|
|
89
|
+
}
|
|
90
|
+
const _loadObjectsOrInterfaces = [1, "/v2/ontologies/{0}/objectSets/loadObjectsOrInterfaces", 3];
|
|
91
|
+
/**
|
|
92
|
+
* Load the ontology objects present in the `ObjectSet` from the provided object set definition. If the requested
|
|
93
|
+
* object set contains interfaces and the object can be viewed as an interface, it will contain the properties
|
|
94
|
+
* defined by the interface. If not, it will contain the properties defined by its object type. This allows directly
|
|
95
|
+
* loading all objects of an interface where all objects are viewed as the interface, for example.
|
|
96
|
+
*
|
|
97
|
+
* Note that the result object set cannot contain a mix of objects with "interface" properties and "object type"
|
|
98
|
+
* properties. Attempting to load an object set like this will result in an error.
|
|
99
|
+
*
|
|
100
|
+
* 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
|
|
101
|
+
* 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.
|
|
102
|
+
*
|
|
103
|
+
* Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)
|
|
104
|
+
* will be prefixed with '$' instead of '\_\_' as is the case in `/loadObjects`.
|
|
105
|
+
*
|
|
106
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
107
|
+
*
|
|
108
|
+
* @beta
|
|
109
|
+
*
|
|
110
|
+
* Required Scopes: [api:ontologies-read]
|
|
111
|
+
* URL: /v2/ontologies/{ontology}/objectSets/loadObjectsOrInterfaces
|
|
112
|
+
*/
|
|
113
|
+
export function loadObjectsOrInterfaces($ctx, ...args) {
|
|
114
|
+
return $foundryPlatformFetch($ctx, _loadObjectsOrInterfaces, ...args);
|
|
115
|
+
}
|
|
116
|
+
const _aggregate = [1, "/v2/ontologies/{0}/objectSets/aggregate", 3];
|
|
117
|
+
/**
|
|
118
|
+
* Aggregates the ontology objects present in the `ObjectSet` from the provided object set definition.
|
|
119
|
+
*
|
|
120
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*
|
|
124
|
+
* Required Scopes: [api:ontologies-read]
|
|
125
|
+
* URL: /v2/ontologies/{ontology}/objectSets/aggregate
|
|
126
|
+
*/
|
|
127
|
+
export function aggregate($ctx, ...args) {
|
|
128
|
+
return $foundryPlatformFetch($ctx, _aggregate, ...args);
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=OntologyObjectSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OntologyObjectSet.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_createTemporary","createTemporary","$ctx","args","_get","get","_load","load","_loadMultipleObjectTypes","loadMultipleObjectTypes","_loadObjectsOrInterfaces","loadObjectsOrInterfaces","_aggregate","aggregate"],"sources":["OntologyObjectSet.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 _createTemporary = [1, \"/v2/ontologies/{0}/objectSets/createTemporary\", 1];\n/**\n * Creates a temporary `ObjectSet` from the given definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/objectSets/createTemporary\n */\nexport function createTemporary($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTemporary, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/objectSets/{1}\"];\n/**\n * Gets the definition of the `ObjectSet` with the given RID.\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: []\n * URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _load = [1, \"/v2/ontologies/{0}/objectSets/loadObjects\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition.\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 * 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}/objectSets/loadObjects\n */\nexport function load($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _load, ...args);\n}\nconst _loadMultipleObjectTypes = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsMultipleObjectTypes\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. The resulting\n * objects may be scoped to an object type, in which all the selected properties on the object type are returned, or scoped\n * to an interface, in which only the object type properties that implement the properties of any interfaces in its\n * scope are returned. For objects that are scoped to an interface in the result, a mapping from interface to\n * object implementation is returned in order to interpret the objects as the interfaces that they implement.\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 * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `loadObjects`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsMultipleObjectTypes\n */\nexport function loadMultipleObjectTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadMultipleObjectTypes, ...args);\n}\nconst _loadObjectsOrInterfaces = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsOrInterfaces\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. If the requested\n * object set contains interfaces and the object can be viewed as an interface, it will contain the properties\n * defined by the interface. If not, it will contain the properties defined by its object type. This allows directly\n * loading all objects of an interface where all objects are viewed as the interface, for example.\n *\n * Note that the result object set cannot contain a mix of objects with \"interface\" properties and \"object type\"\n * properties. Attempting to load an object set like this will result in an error.\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 * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `/loadObjects`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsOrInterfaces\n */\nexport function loadObjectsOrInterfaces($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadObjectsOrInterfaces, ...args);\n}\nconst _aggregate = [1, \"/v2/ontologies/{0}/objectSets/aggregate\", 3];\n/**\n * Aggregates the ontology objects present in the `ObjectSet` from the provided object set definition.\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}/objectSets/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...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,gBAAgB,GAAG,CAAC,CAAC,EAAE,+CAA+C,EAAE,CAAC,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,gBAAgB,EAAE,GAAGG,IAAI,CAAC;AACjE;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,KAAK,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,KAAK,EAAE,GAAGH,IAAI,CAAC;AACtD;AACA,MAAMK,wBAAwB,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,wBAAwB,EAAE,GAAGL,IAAI,CAAC;AACzE;AACA,MAAMO,wBAAwB,GAAG,CAAC,CAAC,EAAE,uDAAuD,EAAE,CAAC,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,wBAAwB,EAAE,GAAGP,IAAI,CAAC;AACzE;AACA,MAAMS,UAAU,GAAG,CAAC,CAAC,EAAE,yCAAyC,EAAE,CAAC,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,UAAU,EAAE,GAAGT,IAAI,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
|
+
import type * as _Ontologies from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Lists the objects for the given Ontology and object type.
|
|
7
|
+
*
|
|
8
|
+
* Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or
|
|
9
|
+
* repeated objects in the response pages.
|
|
10
|
+
*
|
|
11
|
+
* 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
|
|
12
|
+
* 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.
|
|
13
|
+
*
|
|
14
|
+
* Each page may be smaller or larger than the requested page size. However, it
|
|
15
|
+
* is guaranteed that if there are more results available, at least one result will be present
|
|
16
|
+
* in the response.
|
|
17
|
+
*
|
|
18
|
+
* Note that null value properties will not be returned.
|
|
19
|
+
*
|
|
20
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:ontologies-read]
|
|
25
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}
|
|
26
|
+
*/
|
|
27
|
+
export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
28
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
29
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
30
|
+
$queryParams: {
|
|
31
|
+
pageSize?: _Core.PageSize | undefined;
|
|
32
|
+
pageToken?: _Core.PageToken | undefined;
|
|
33
|
+
select: Array<_Ontologies.SelectedPropertyApiName>;
|
|
34
|
+
orderBy?: _Ontologies.OrderBy | undefined;
|
|
35
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
36
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
37
|
+
excludeRid?: boolean | undefined;
|
|
38
|
+
}
|
|
39
|
+
]): Promise<_Ontologies.ListObjectsResponseV2>;
|
|
40
|
+
/**
|
|
41
|
+
* Gets a specific object with the given primary key.
|
|
42
|
+
*
|
|
43
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
*
|
|
47
|
+
* Required Scopes: [api:ontologies-read]
|
|
48
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}
|
|
49
|
+
*/
|
|
50
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
51
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
52
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
53
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
54
|
+
$queryParams: {
|
|
55
|
+
select: Array<_Ontologies.SelectedPropertyApiName>;
|
|
56
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
57
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
58
|
+
excludeRid?: boolean | undefined;
|
|
59
|
+
}
|
|
60
|
+
]): Promise<_Ontologies.OntologyObjectV2>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns a count of the objects of the given object type.
|
|
63
|
+
*
|
|
64
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
65
|
+
*
|
|
66
|
+
* @alpha
|
|
67
|
+
*
|
|
68
|
+
* Required Scopes: [api:ontologies-read]
|
|
69
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/count
|
|
70
|
+
*/
|
|
71
|
+
export declare function count($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
72
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
73
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
74
|
+
$queryParams?: {
|
|
75
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
76
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
77
|
+
}
|
|
78
|
+
]): Promise<_Ontologies.CountObjectsResponseV2>;
|
|
79
|
+
/**
|
|
80
|
+
* Search for objects in the specified ontology and object type. The request body is used
|
|
81
|
+
* to filter objects based on the specified query. The supported queries are:
|
|
82
|
+
*
|
|
83
|
+
* | Query type | Description | Supported Types |
|
|
84
|
+
* |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|
|
|
85
|
+
* | lt | The provided property is less than the provided value. | number, string, date, timestamp |
|
|
86
|
+
* | gt | The provided property is greater than the provided value. | number, string, date, timestamp |
|
|
87
|
+
* | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |
|
|
88
|
+
* | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |
|
|
89
|
+
* | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |
|
|
90
|
+
* | isNull | The provided property is (or is not) null. | all |
|
|
91
|
+
* | contains | The provided property contains the provided value. | array |
|
|
92
|
+
* | not | The sub-query does not match. | N/A (applied on a query) |
|
|
93
|
+
* | and | All the sub-queries match. | N/A (applied on queries) |
|
|
94
|
+
* | or | At least one of the sub-queries match. | N/A (applied on queries) |
|
|
95
|
+
* | startsWith | The provided property starts with the provided term. | string |
|
|
96
|
+
* | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |
|
|
97
|
+
* | containsAllTermsInOrder | The provided property contains the provided term as a substring. | string |
|
|
98
|
+
* | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |
|
|
99
|
+
* | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |
|
|
100
|
+
*
|
|
101
|
+
* Queries can be at most three levels deep. By default, terms are separated by whitespace or punctuation (`?!,:;-[](){}'"~`). Periods (`.`) on their own are ignored.
|
|
102
|
+
* Partial terms are not matched by terms filters except where explicitly noted.
|
|
103
|
+
*
|
|
104
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*
|
|
108
|
+
* Required Scopes: [api:ontologies-read]
|
|
109
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/search
|
|
110
|
+
*/
|
|
111
|
+
export declare function search($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
112
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
113
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
114
|
+
$body: _Ontologies.SearchObjectsRequestV2,
|
|
115
|
+
$queryParams?: {
|
|
116
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
117
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
118
|
+
}
|
|
119
|
+
]): Promise<_Ontologies.SearchObjectsResponseV2>;
|
|
120
|
+
/**
|
|
121
|
+
* Perform functions on object fields in the specified ontology and object type.
|
|
122
|
+
*
|
|
123
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*
|
|
127
|
+
* Required Scopes: [api:ontologies-read]
|
|
128
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate
|
|
129
|
+
*/
|
|
130
|
+
export declare function aggregate($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
131
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
132
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
133
|
+
$body: _Ontologies.AggregateObjectsRequestV2,
|
|
134
|
+
$queryParams?: {
|
|
135
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
136
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
137
|
+
}
|
|
138
|
+
]): Promise<_Ontologies.AggregateObjectsResponseV2>;
|
|
139
|
+
//# sourceMappingURL=OntologyObjectV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OntologyObjectV2.d.ts","sourceRoot":"","sources":["../../../src/public/OntologyObjectV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAC;AAoBtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,UAAU,EAAE,WAAW,CAAC,iBAAiB;IAEzC,YAAY,EAAE;QACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACnD,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,SAAS,CAAC;QAC1C,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;QACrD,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAE5C;AAgBD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,UAAU,EAAE,WAAW,CAAC,iBAAiB;IACzC,UAAU,EAAE,WAAW,CAAC,0BAA0B;IAElD,YAAY,EAAE;QACZ,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACnD,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;QACrD,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAEvC;AAaD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,UAAU,EAAE,WAAW,CAAC,iBAAiB;IAEzC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;KACtD;CACF,GACA,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAE7C;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,UAAU,EAAE,WAAW,CAAC,iBAAiB;IACzC,KAAK,EAAE,WAAW,CAAC,sBAAsB;IACzC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;KACtD;CACF,GACA,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAE9C;AAcD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,UAAU,EAAE,WAAW,CAAC,iBAAiB;IACzC,KAAK,EAAE,WAAW,CAAC,yBAAyB;IAC5C,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;KACtD;CACF,GACA,OAAO,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAEjD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 _list = [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 list($ctx, ...args) {
|
|
42
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
43
|
+
}
|
|
44
|
+
const _get = [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 get($ctx, ...args) {
|
|
56
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
57
|
+
}
|
|
58
|
+
const _count = [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 count($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _count, ...args);
|
|
71
|
+
}
|
|
72
|
+
const _search = [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 term. | 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 term 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
|
+
* Queries can be at most three levels deep. By default, terms are separated by whitespace or punctuation (`?!,:;-[](){}'"~`). Periods (`.`) on their own are ignored.
|
|
96
|
+
* Partial terms are not matched by terms filters except where explicitly noted.
|
|
97
|
+
*
|
|
98
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*
|
|
102
|
+
* Required Scopes: [api:ontologies-read]
|
|
103
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/search
|
|
104
|
+
*/
|
|
105
|
+
export function search($ctx, ...args) {
|
|
106
|
+
return $foundryPlatformFetch($ctx, _search, ...args);
|
|
107
|
+
}
|
|
108
|
+
const _aggregate = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
|
|
109
|
+
/**
|
|
110
|
+
* Perform functions on object fields in the specified ontology and object type.
|
|
111
|
+
*
|
|
112
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
113
|
+
*
|
|
114
|
+
* @public
|
|
115
|
+
*
|
|
116
|
+
* Required Scopes: [api:ontologies-read]
|
|
117
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate
|
|
118
|
+
*/
|
|
119
|
+
export function aggregate($ctx, ...args) {
|
|
120
|
+
return $foundryPlatformFetch($ctx, _aggregate, ...args);
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=OntologyObjectV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OntologyObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get","_count","count","_search","search","_aggregate","aggregate"],"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 _list = [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 list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [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 get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _count = [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 count($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _count, ...args);\n}\nconst _search = [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 term. | 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 term 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 * Queries can be at most three levels deep. By default, terms are separated by whitespace or punctuation (`?!,:;-[](){}'\"~`). Periods (`.`) on their own are ignored.\n * Partial terms are not matched by terms filters except where explicitly noted.\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 search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _aggregate = [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 aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,MAAM,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,MAAM,EAAE,GAAGH,IAAI,CAAC;AACvD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,uCAAuC,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,UAAU,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,UAAU,EAAE,GAAGP,IAAI,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
3
|
+
import type * as _Ontologies from "../_components.js";
|
|
4
|
+
/**
|
|
5
|
+
* Lists the Ontologies visible to the current user.
|
|
6
|
+
*
|
|
7
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* Required Scopes: [api:ontologies-read]
|
|
12
|
+
* URL: /v2/ontologies
|
|
13
|
+
*/
|
|
14
|
+
export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: []): Promise<_Ontologies.ListOntologiesV2Response>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets a specific ontology with the given Ontology RID.
|
|
17
|
+
*
|
|
18
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*
|
|
22
|
+
* Required Scopes: [api:ontologies-read]
|
|
23
|
+
* URL: /v2/ontologies/{ontology}
|
|
24
|
+
*/
|
|
25
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ontology: _Ontologies.OntologyIdentifier]): Promise<_Ontologies.OntologyV2>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.
|
|
28
|
+
*
|
|
29
|
+
* @beta
|
|
30
|
+
*
|
|
31
|
+
* Required Scopes: [api:ontologies-read]
|
|
32
|
+
* URL: /v2/ontologies/{ontology}/fullMetadata
|
|
33
|
+
*/
|
|
34
|
+
export declare function getFullMetadata($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ontology: _Ontologies.OntologyIdentifier]): Promise<_Ontologies.OntologyFullMetadata>;
|
|
35
|
+
//# 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,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAC;AAQtD;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,EAAE,GACV,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAE/C;AAMD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,kBAAkB,CAAC,GAClD,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAEjC;AAQD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,kBAAkB,CAAC,GAClD,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAE3C"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 _list = [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 list($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _get = [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 get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
|
+
}
|
|
46
|
+
const _getFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
|
|
47
|
+
/**
|
|
48
|
+
* Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.
|
|
49
|
+
*
|
|
50
|
+
* @beta
|
|
51
|
+
*
|
|
52
|
+
* Required Scopes: [api:ontologies-read]
|
|
53
|
+
* URL: /v2/ontologies/{ontology}/fullMetadata
|
|
54
|
+
*/
|
|
55
|
+
export function getFullMetadata($ctx, ...args) {
|
|
56
|
+
return $foundryPlatformFetch($ctx, _getFullMetadata, ...args);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=OntologyV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OntologyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get","_getFullMetadata","getFullMetadata"],"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 _list = [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 list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [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 get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getFullMetadata = [0, \"/v2/ontologies/{0}/fullMetadata\"];\n/**\n * Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/fullMetadata\n */\nexport function getFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFullMetadata, ...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,KAAK,GAAG,CAAC,CAAC,EAAE,gBAAgB,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oBAAoB,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,gBAAgB,GAAG,CAAC,CAAC,EAAE,iCAAiC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,gBAAgB,EAAE,GAAGH,IAAI,CAAC;AACjE","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
2
|
+
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
3
|
+
import type * as _Ontologies from "../_components.js";
|
|
4
|
+
/**
|
|
5
|
+
* Executes a Query using the given parameters.
|
|
6
|
+
*
|
|
7
|
+
* Optional parameters do not need to be supplied.
|
|
8
|
+
*
|
|
9
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
10
|
+
* following operation scopes: `api:ontologies-read`.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*
|
|
14
|
+
* Required Scopes: [api:ontologies-read]
|
|
15
|
+
* URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute
|
|
16
|
+
*/
|
|
17
|
+
export declare function execute($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
18
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
19
|
+
queryApiName: _Ontologies.QueryApiName,
|
|
20
|
+
$body: _Ontologies.ExecuteQueryRequest,
|
|
21
|
+
$queryParams?: {
|
|
22
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
23
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
24
|
+
}
|
|
25
|
+
]): Promise<_Ontologies.ExecuteQueryResponse>;
|
|
26
|
+
//# 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,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAC;AAgBtD;;;;;;;;;;;;GAYG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,YAAY,EAAE,WAAW,CAAC,YAAY;IACtC,KAAK,EAAE,WAAW,CAAC,mBAAmB;IACtC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;KACtD;CACF,GACA,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAE3C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 _execute = [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 execute($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _execute, ...args);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=Query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_execute","execute","$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 _execute = [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 execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,QAAQ,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,QAAQ,EAAE,GAAGG,IAAI,CAAC;AACzD","ignoreList":[]}
|