@osdk/internal.foundry.ontologies 0.2.0-beta.8 → 0.2.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 +59 -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 +11 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +23 -10
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Action.d.ts +105 -0
- package/build/browser/public/Action.d.ts.map +1 -0
- package/build/browser/public/Action.js +108 -3
- package/build/browser/public/Action.js.map +1 -1
- package/build/browser/public/ActionType.d.ts +37 -0
- package/build/browser/public/ActionType.d.ts.map +1 -0
- package/build/browser/public/ActionType.js +48 -3
- package/build/browser/public/ActionType.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/ObjectType.d.ts +70 -0
- package/build/browser/public/ObjectType.d.ts.map +1 -0
- package/build/browser/public/ObjectType.js +79 -3
- package/build/browser/public/ObjectType.js.map +1 -1
- package/build/browser/public/Ontology.d.ts +25 -0
- package/build/browser/public/Ontology.d.ts.map +1 -0
- package/build/browser/public/Ontology.js +45 -3
- package/build/browser/public/Ontology.js.map +1 -1
- package/build/browser/public/OntologyObject.d.ts +162 -0
- package/build/browser/public/OntologyObject.d.ts.map +1 -0
- package/build/browser/public/OntologyObject.js +150 -3
- package/build/browser/public/OntologyObject.js.map +1 -1
- package/build/browser/public/Query.d.ts +18 -0
- package/build/browser/public/Query.d.ts.map +1 -0
- package/build/browser/public/Query.js +31 -3
- package/build/browser/public/Query.js.map +1 -1
- package/build/browser/public/QueryType.d.ts +34 -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/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.js +23 -10
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Action.d.ts +27 -27
- package/build/esm/public/Action.d.ts.map +1 -1
- package/build/esm/public/Action.js +108 -3
- package/build/esm/public/Action.js.map +1 -1
- package/build/esm/public/ActionType.d.ts +10 -7
- package/build/esm/public/ActionType.d.ts.map +1 -1
- package/build/esm/public/ActionType.js +48 -3
- package/build/esm/public/ActionType.js.map +1 -1
- package/build/esm/public/Attachment.d.ts +7 -7
- 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/ObjectType.d.ts +16 -16
- package/build/esm/public/ObjectType.d.ts.map +1 -1
- package/build/esm/public/ObjectType.js +79 -3
- package/build/esm/public/ObjectType.js.map +1 -1
- package/build/esm/public/Ontology.d.ts +3 -3
- package/build/esm/public/Ontology.d.ts.map +1 -1
- package/build/esm/public/Ontology.js +45 -3
- package/build/esm/public/Ontology.js.map +1 -1
- package/build/esm/public/OntologyObject.d.ts +41 -41
- package/build/esm/public/OntologyObject.d.ts.map +1 -1
- package/build/esm/public/OntologyObject.js +150 -3
- package/build/esm/public/OntologyObject.js.map +1 -1
- package/build/esm/public/Query.d.ts +6 -6
- package/build/esm/public/Query.d.ts.map +1 -1
- package/build/esm/public/Query.js +31 -3
- package/build/esm/public/Query.js.map +1 -1
- package/build/esm/public/QueryType.d.ts +7 -7
- 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/package.json +6 -7
- package/build/browser/chunk-5RUWELWF.js +0 -21
- package/build/browser/chunk-5RUWELWF.js.map +0 -1
- package/build/browser/chunk-ABHCL2BI.js +0 -21
- package/build/browser/chunk-ABHCL2BI.js.map +0 -1
- package/build/browser/chunk-ATSSLGFA.js +0 -31
- package/build/browser/chunk-ATSSLGFA.js.map +0 -1
- package/build/browser/chunk-MONAXU3N.js +0 -36
- package/build/browser/chunk-MONAXU3N.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-SALCOSHR.js +0 -16
- package/build/browser/chunk-SALCOSHR.js.map +0 -1
- package/build/browser/chunk-UM4N5F6D.js +0 -21
- package/build/browser/chunk-UM4N5F6D.js.map +0 -1
- package/build/browser/chunk-VBZZKGHE.js +0 -41
- package/build/browser/chunk-VBZZKGHE.js.map +0 -1
- package/build/browser/chunk-YCOLCQXU.js +0 -31
- package/build/browser/chunk-YCOLCQXU.js.map +0 -1
- package/build/esm/chunk-5RUWELWF.js +0 -21
- package/build/esm/chunk-5RUWELWF.js.map +0 -1
- package/build/esm/chunk-ABHCL2BI.js +0 -21
- package/build/esm/chunk-ABHCL2BI.js.map +0 -1
- package/build/esm/chunk-ATSSLGFA.js +0 -31
- package/build/esm/chunk-ATSSLGFA.js.map +0 -1
- package/build/esm/chunk-MONAXU3N.js +0 -36
- package/build/esm/chunk-MONAXU3N.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-SALCOSHR.js +0 -16
- package/build/esm/chunk-SALCOSHR.js.map +0 -1
- package/build/esm/chunk-UM4N5F6D.js +0 -21
- package/build/esm/chunk-UM4N5F6D.js.map +0 -1
- package/build/esm/chunk-VBZZKGHE.js +0 -41
- package/build/esm/chunk-VBZZKGHE.js.map +0 -1
- package/build/esm/chunk-YCOLCQXU.js +0 -31
- package/build/esm/chunk-YCOLCQXU.js.map +0 -1
|
@@ -1,4 +1,109 @@
|
|
|
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 _apply = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
|
|
19
|
+
/**
|
|
20
|
+
* Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take
|
|
21
|
+
* some time to be visible.
|
|
22
|
+
*
|
|
23
|
+
* Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
|
|
24
|
+
* this endpoint.
|
|
25
|
+
*
|
|
26
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
27
|
+
* following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
32
|
+
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply
|
|
33
|
+
*/
|
|
34
|
+
export function apply($ctx, ...args) {
|
|
35
|
+
return $foundryPlatformFetch($ctx, _apply, ...args);
|
|
36
|
+
}
|
|
37
|
+
const _applyBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
|
|
38
|
+
/**
|
|
39
|
+
* Applies multiple actions (of the same Action Type) using the given parameters.
|
|
40
|
+
* Changes to the Ontology are eventually consistent and may take some time to be visible.
|
|
41
|
+
*
|
|
42
|
+
* Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not
|
|
43
|
+
* call Functions may receive a higher limit.
|
|
44
|
+
*
|
|
45
|
+
* Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and
|
|
46
|
+
* [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.
|
|
47
|
+
*
|
|
48
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
49
|
+
* following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*
|
|
53
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
54
|
+
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch
|
|
55
|
+
*/
|
|
56
|
+
export function applyBatch($ctx, ...args) {
|
|
57
|
+
return $foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
58
|
+
}
|
|
59
|
+
const _applyAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
|
|
60
|
+
/**
|
|
61
|
+
* Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent
|
|
62
|
+
* and may take some time to be visible.
|
|
63
|
+
*
|
|
64
|
+
* Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently
|
|
65
|
+
* supported by this endpoint.
|
|
66
|
+
*
|
|
67
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
68
|
+
* following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
69
|
+
*
|
|
70
|
+
* @alpha
|
|
71
|
+
*
|
|
72
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
73
|
+
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync
|
|
74
|
+
*/
|
|
75
|
+
export function applyAsync($ctx, ...args) {
|
|
76
|
+
return $foundryPlatformFetch($ctx, _applyAsync, ...args);
|
|
77
|
+
}
|
|
78
|
+
const _getOperationStatus = [0, "/v1/ontologies/{0}/actions/{1}/applyAsync/{2}", 2];
|
|
79
|
+
/**
|
|
80
|
+
* @alpha
|
|
81
|
+
*
|
|
82
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
83
|
+
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}
|
|
84
|
+
*/
|
|
85
|
+
export function getOperationStatus($ctx, ...args) {
|
|
86
|
+
return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);
|
|
87
|
+
}
|
|
88
|
+
const _validate = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
|
|
89
|
+
/**
|
|
90
|
+
* Validates if an action can be run with the given set of parameters.
|
|
91
|
+
* The response contains the evaluation of parameters and **submission criteria**
|
|
92
|
+
* that determine if the request is `VALID` or `INVALID`.
|
|
93
|
+
* For performance reasons, validations will not consider existing objects or other data in Foundry.
|
|
94
|
+
* For example, the uniqueness of a primary key or the existence of a user ID will not be checked.
|
|
95
|
+
* Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
|
|
96
|
+
* this endpoint. Unspecified parameters will be given a default value of `null`.
|
|
97
|
+
*
|
|
98
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
99
|
+
* following operation scopes: `api:ontologies-read`.
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*
|
|
103
|
+
* Required Scopes: [api:ontologies-read]
|
|
104
|
+
* URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate
|
|
105
|
+
*/
|
|
106
|
+
export function validate($ctx, ...args) {
|
|
107
|
+
return $foundryPlatformFetch($ctx, _validate, ...args);
|
|
108
|
+
}
|
|
4
109
|
//# sourceMappingURL=Action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_apply","apply","$ctx","args","_applyBatch","applyBatch","_applyAsync","applyAsync","_getOperationStatus","getOperationStatus","_validate","validate"],"sources":["Action.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 _apply = [1, \"/v1/ontologies/{0}/actions/{1}/apply\", 1];\n/**\n * Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take\n * some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\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 * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyBatch = [1, \"/v1/ontologies/{0}/actions/{1}/applyBatch\", 1];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and\n * [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\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 * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...args);\n}\nconst _applyAsync = [1, \"/v1/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent\n * and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently\n * supported by this endpoint.\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 * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _getOperationStatus = [0, \"/v1/ontologies/{0}/actions/{1}/applyAsync/{2}\", 2];\n/**\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}\n */\nexport function getOperationStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);\n}\nconst _validate = [1, \"/v1/ontologies/{0}/actions/{1}/validate\", 1];\n/**\n * Validates if an action can be run with the given set of parameters.\n * The response contains the evaluation of parameters and **submission criteria**\n * that determine if the request is `VALID` or `INVALID`.\n * For performance reasons, validations will not consider existing objects or other data in Foundry.\n * For example, the uniqueness of a primary key or the existence of a user ID will not be checked.\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint. Unspecified parameters will be given a default value of `null`.\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: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate\n */\nexport function validate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _validate, ...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,MAAM,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,MAAM,EAAE,GAAGG,IAAI,CAAC;AACvD;AACA,MAAMC,WAAW,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,WAAW,EAAE,GAAGD,IAAI,CAAC;AAC5D;AACA,MAAMG,WAAW,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,WAAW,EAAE,GAAGH,IAAI,CAAC;AAC5D;AACA,MAAMK,mBAAmB,GAAG,CAAC,CAAC,EAAE,+CAA+C,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,mBAAmB,EAAE,GAAGL,IAAI,CAAC;AACpE;AACA,MAAMO,SAAS,GAAG,CAAC,CAAC,EAAE,yCAAyC,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACpC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,SAAS,EAAE,GAAGP,IAAI,CAAC;AAC1D","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
3
|
/**
|
|
4
4
|
* Lists the action types for the given Ontology.
|
|
@@ -13,13 +13,13 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
13
13
|
* Required Scopes: [api:ontologies-read]
|
|
14
14
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
17
|
-
ontologyRid: OntologyRid,
|
|
16
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
17
|
+
ontologyRid: _Core.OntologyRid,
|
|
18
18
|
$queryParams?: {
|
|
19
|
-
pageSize?: PageSize | undefined;
|
|
20
|
-
pageToken?: PageToken | undefined;
|
|
19
|
+
pageSize?: _Core.PageSize | undefined;
|
|
20
|
+
pageToken?: _Core.PageToken | undefined;
|
|
21
21
|
}
|
|
22
|
-
]): Promise<ListActionTypesResponse>;
|
|
22
|
+
]): Promise<_Core.ListActionTypesResponse>;
|
|
23
23
|
/**
|
|
24
24
|
* Gets a specific action type with the given API name.
|
|
25
25
|
*
|
|
@@ -30,5 +30,8 @@ export declare function listActionTypes($ctx: $Client | $ClientContext, ...args:
|
|
|
30
30
|
* Required Scopes: [api:ontologies-read]
|
|
31
31
|
* URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
|
|
32
32
|
*/
|
|
33
|
-
export declare function
|
|
33
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
34
|
+
ontologyRid: _Core.OntologyRid,
|
|
35
|
+
actionTypeApiName: _Core.ActionTypeApiName
|
|
36
|
+
]): Promise<_Core.ActionType>;
|
|
34
37
|
//# sourceMappingURL=ActionType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionType.d.ts","sourceRoot":"","sources":["../../../src/public/ActionType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ActionType.d.ts","sourceRoot":"","sources":["../../../src/public/ActionType.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,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,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,uBAAuB,CAAC,CAExC;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;CAC3C,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}
|
|
@@ -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 _list = [0, "/v1/ontologies/{0}/actionTypes", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the action 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: /v1/ontologies/{ontologyRid}/actionTypes
|
|
31
|
+
*/
|
|
32
|
+
export function list($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
34
|
+
}
|
|
35
|
+
const _get = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
|
|
36
|
+
/**
|
|
37
|
+
* Gets a specific action 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: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
|
|
45
|
+
*/
|
|
46
|
+
export function get($ctx, ...args) {
|
|
47
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
48
|
+
}
|
|
4
49
|
//# sourceMappingURL=ActionType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ActionType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["ActionType.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, \"/v1/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action 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: /v1/ontologies/{ontologyRid}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action 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: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,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,CAAC;AACtD;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","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
3
|
/**
|
|
4
4
|
* Upload an attachment to use in an action. Any attachment which has not been linked to an object via
|
|
@@ -15,15 +15,15 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
15
15
|
* Required Scopes: [api:ontologies-write]
|
|
16
16
|
* URL: /v1/attachments/upload
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function upload($ctx: $Client | $ClientContext, ...args: [
|
|
19
19
|
$body: Blob,
|
|
20
20
|
$queryParams: {
|
|
21
|
-
filename: Filename;
|
|
21
|
+
filename: _Core.Filename;
|
|
22
22
|
},
|
|
23
23
|
$headerParams?: {
|
|
24
|
-
"Content-Type"?: ContentType;
|
|
24
|
+
"Content-Type"?: _Core.ContentType;
|
|
25
25
|
}
|
|
26
|
-
]): Promise<Attachment>;
|
|
26
|
+
]): Promise<_Core.Attachment>;
|
|
27
27
|
/**
|
|
28
28
|
* Get the content of an attachment.
|
|
29
29
|
*
|
|
@@ -35,7 +35,7 @@ export declare function uploadAttachment($ctx: $Client | $ClientContext, ...args
|
|
|
35
35
|
* Required Scopes: [api:ontologies-read]
|
|
36
36
|
* URL: /v1/attachments/{attachmentRid}/content
|
|
37
37
|
*/
|
|
38
|
-
export declare function
|
|
38
|
+
export declare function read($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<Blob>;
|
|
39
39
|
/**
|
|
40
40
|
* Get the metadata of an attachment.
|
|
41
41
|
*
|
|
@@ -47,5 +47,5 @@ export declare function getAttachmentContent($ctx: $Client | $ClientContext, ...
|
|
|
47
47
|
* Required Scopes: [api:ontologies-read]
|
|
48
48
|
* URL: /v1/attachments/{attachmentRid}
|
|
49
49
|
*/
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<_Core.Attachment>;
|
|
51
51
|
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.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;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,IAAI;IACX,YAAY,EAAE;QAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAA;KAAE;IAC1C,aAAa,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;KAAE;CACvD,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAQ3B;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}
|
|
@@ -1,4 +1,72 @@
|
|
|
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 _upload = [1, "/v1/attachments/upload", 7, "*/*"];
|
|
19
|
+
/**
|
|
20
|
+
* Upload an attachment to use in an action. Any attachment which has not been linked to an object via
|
|
21
|
+
* an action within one hour after upload will be removed.
|
|
22
|
+
* Previously mapped attachments which are not connected to any object anymore are also removed on
|
|
23
|
+
* a biweekly basis.
|
|
24
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
25
|
+
*
|
|
26
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
27
|
+
* following operation scopes: `api:ontologies-write`.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* Required Scopes: [api:ontologies-write]
|
|
32
|
+
* URL: /v1/attachments/upload
|
|
33
|
+
*/
|
|
34
|
+
export function upload($ctx, ...args) {
|
|
35
|
+
const headerParams = {
|
|
36
|
+
...args[2],
|
|
37
|
+
"Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
|
|
38
|
+
"Content-Length": args[0].size.toString()
|
|
39
|
+
};
|
|
40
|
+
return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);
|
|
41
|
+
}
|
|
42
|
+
const _read = [0, "/v1/attachments/{0}/content",,, "*/*"];
|
|
43
|
+
/**
|
|
44
|
+
* Get the content of an attachment.
|
|
45
|
+
*
|
|
46
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
47
|
+
* following operation scopes: `api:ontologies-read`.
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*
|
|
51
|
+
* Required Scopes: [api:ontologies-read]
|
|
52
|
+
* URL: /v1/attachments/{attachmentRid}/content
|
|
53
|
+
*/
|
|
54
|
+
export function read($ctx, ...args) {
|
|
55
|
+
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
56
|
+
}
|
|
57
|
+
const _get = [0, "/v1/attachments/{0}"];
|
|
58
|
+
/**
|
|
59
|
+
* Get the metadata of an attachment.
|
|
60
|
+
*
|
|
61
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
62
|
+
* following operation scopes: `api:ontologies-read`.
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*
|
|
66
|
+
* Required Scopes: [api:ontologies-read]
|
|
67
|
+
* URL: /v1/attachments/{attachmentRid}
|
|
68
|
+
*/
|
|
69
|
+
export function get($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
71
|
+
}
|
|
4
72
|
//# sourceMappingURL=Attachment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Attachment.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_upload","upload","$ctx","args","headerParams","type","size","toString","_read","read","_get","get"],"sources":["Attachment.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 _upload = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v1/attachments/upload\n */\nexport function upload($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString(),\n };\n return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);\n}\nconst _read = [0, \"/v1/attachments/{0}/content\", , , \"*/*\"];\n/**\n * Get the content of an attachment.\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: /v1/attachments/{attachmentRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _get = [0, \"/v1/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\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: /v1/attachments/{attachmentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,OAAO,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,EAAE,KAAK,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,MAAMC,YAAY,GAAG;IACjB,GAAGD,IAAI,CAAC,CAAC,CAAC;IACV,cAAc,EAAEA,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAIA,IAAI,CAAC,CAAC,CAAC,CAACE,IAAI;IACzD,gBAAgB,EAAEF,IAAI,CAAC,CAAC,CAAC,CAACG,IAAI,CAACC,QAAQ,CAAC;EAC5C,CAAC;EACD,OAAOR,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAEG,IAAI,CAAC,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAC,EAAEC,YAAY,CAAC;AAC/E;AACA,MAAMI,KAAK,GAAG,CAAC,CAAC,EAAE,6BAA6B,IAAM,KAAK,CAAC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,KAAK,EAAE,GAAGL,IAAI,CAAC;AACtD;AACA,MAAMO,IAAI,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,IAAI,EAAE,GAAGP,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
3
|
/**
|
|
4
4
|
* Lists the object types for the given Ontology.
|
|
@@ -14,13 +14,13 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
14
14
|
* Required Scopes: [api:ontologies-read]
|
|
15
15
|
* URL: /v1/ontologies/{ontologyRid}/objectTypes
|
|
16
16
|
*/
|
|
17
|
-
export declare function
|
|
18
|
-
ontologyRid: OntologyRid,
|
|
17
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
18
|
+
ontologyRid: _Core.OntologyRid,
|
|
19
19
|
$queryParams?: {
|
|
20
|
-
pageSize?: PageSize | undefined;
|
|
21
|
-
pageToken?: PageToken | undefined;
|
|
20
|
+
pageSize?: _Core.PageSize | undefined;
|
|
21
|
+
pageToken?: _Core.PageToken | undefined;
|
|
22
22
|
}
|
|
23
|
-
]): Promise<ListObjectTypesResponse>;
|
|
23
|
+
]): Promise<_Core.ListObjectTypesResponse>;
|
|
24
24
|
/**
|
|
25
25
|
* Gets a specific object type with the given API name.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare function listObjectTypes($ctx: $Client | $ClientContext, ...args:
|
|
|
31
31
|
* Required Scopes: [api:ontologies-read]
|
|
32
32
|
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}
|
|
33
33
|
*/
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [ontologyRid: _Core.OntologyRid, objectType: _Core.ObjectTypeApiName]): Promise<_Core.ObjectType>;
|
|
35
35
|
/**
|
|
36
36
|
* List the outgoing links for an object type.
|
|
37
37
|
*
|
|
@@ -44,13 +44,13 @@ export declare function getObjectType($ctx: $Client | $ClientContext, ...args: [
|
|
|
44
44
|
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes
|
|
45
45
|
*/
|
|
46
46
|
export declare function listOutgoingLinkTypes($ctx: $Client | $ClientContext, ...args: [
|
|
47
|
-
ontologyRid: OntologyRid,
|
|
48
|
-
objectType: ObjectTypeApiName,
|
|
47
|
+
ontologyRid: _Core.OntologyRid,
|
|
48
|
+
objectType: _Core.ObjectTypeApiName,
|
|
49
49
|
$queryParams?: {
|
|
50
|
-
pageSize?: PageSize | undefined;
|
|
51
|
-
pageToken?: PageToken | undefined;
|
|
50
|
+
pageSize?: _Core.PageSize | undefined;
|
|
51
|
+
pageToken?: _Core.PageToken | undefined;
|
|
52
52
|
}
|
|
53
|
-
]): Promise<ListOutgoingLinkTypesResponse>;
|
|
53
|
+
]): Promise<_Core.ListOutgoingLinkTypesResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Get an outgoing link for an object type.
|
|
56
56
|
*
|
|
@@ -63,8 +63,8 @@ export declare function listOutgoingLinkTypes($ctx: $Client | $ClientContext, ..
|
|
|
63
63
|
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
|
|
64
64
|
*/
|
|
65
65
|
export declare function getOutgoingLinkType($ctx: $Client | $ClientContext, ...args: [
|
|
66
|
-
ontologyRid: OntologyRid,
|
|
67
|
-
objectType: ObjectTypeApiName,
|
|
68
|
-
linkType: LinkTypeApiName
|
|
69
|
-
]): Promise<LinkTypeSide>;
|
|
66
|
+
ontologyRid: _Core.OntologyRid,
|
|
67
|
+
objectType: _Core.ObjectTypeApiName,
|
|
68
|
+
linkType: _Core.LinkTypeApiName
|
|
69
|
+
]): Promise<_Core.LinkTypeSide>;
|
|
70
70
|
//# sourceMappingURL=ObjectType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectType.d.ts","sourceRoot":"","sources":["../../../src/public/ObjectType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ObjectType.d.ts","sourceRoot":"","sources":["../../../src/public/ObjectType.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;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,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,uBAAuB,CAAC,CAExC;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAC7E,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B;AAaD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IAEnC,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,6BAA6B,CAAC,CAE9C;AAUD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,QAAQ,EAAE,KAAK,CAAC,eAAe;CAChC,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
|
|
@@ -1,4 +1,80 @@
|
|
|
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 _list = [0, "/v1/ontologies/{0}/objectTypes", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the object types for the given Ontology.
|
|
21
|
+
*
|
|
22
|
+
* Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are
|
|
23
|
+
* more results available, at least one result will be present in the
|
|
24
|
+
* response.
|
|
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: /v1/ontologies/{ontologyRid}/objectTypes
|
|
32
|
+
*/
|
|
33
|
+
export function list($ctx, ...args) {
|
|
34
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
35
|
+
}
|
|
36
|
+
const _get = [0, "/v1/ontologies/{0}/objectTypes/{1}"];
|
|
37
|
+
/**
|
|
38
|
+
* Gets a specific object type with the given API name.
|
|
39
|
+
*
|
|
40
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*
|
|
44
|
+
* Required Scopes: [api:ontologies-read]
|
|
45
|
+
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}
|
|
46
|
+
*/
|
|
47
|
+
export function get($ctx, ...args) {
|
|
48
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
49
|
+
}
|
|
50
|
+
const _listOutgoingLinkTypes = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
|
|
51
|
+
/**
|
|
52
|
+
* List the outgoing links for an object type.
|
|
53
|
+
*
|
|
54
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
55
|
+
* following operation scopes: `api:ontologies-read`.
|
|
56
|
+
*
|
|
57
|
+
* @public
|
|
58
|
+
*
|
|
59
|
+
* Required Scopes: [api:ontologies-read]
|
|
60
|
+
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes
|
|
61
|
+
*/
|
|
62
|
+
export function listOutgoingLinkTypes($ctx, ...args) {
|
|
63
|
+
return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
|
|
64
|
+
}
|
|
65
|
+
const _getOutgoingLinkType = [0, "/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
|
|
66
|
+
/**
|
|
67
|
+
* Get an outgoing link for an object type.
|
|
68
|
+
*
|
|
69
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
70
|
+
* following operation scopes: `api:ontologies-read`.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*
|
|
74
|
+
* Required Scopes: [api:ontologies-read]
|
|
75
|
+
* URL: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
|
|
76
|
+
*/
|
|
77
|
+
export function getOutgoingLinkType($ctx, ...args) {
|
|
78
|
+
return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
79
|
+
}
|
|
4
80
|
//# sourceMappingURL=ObjectType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"file":"ObjectType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get","_listOutgoingLinkTypes","listOutgoingLinkTypes","_getOutgoingLinkType","getOutgoingLinkType"],"sources":["ObjectType.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, \"/v1/ontologies/{0}/objectTypes\", 2];\n/**\n * Lists the object types for the given Ontology.\n *\n * Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are\n * more results available, at least one result will be present in the\n * 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: /v1/ontologies/{ontologyRid}/objectTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/objectTypes/{1}\"];\n/**\n * Gets a specific object 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: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _listOutgoingLinkTypes = [0, \"/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes\", 2];\n/**\n * List the outgoing links for an object type.\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: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);\n}\nconst _getOutgoingLinkType = [0, \"/v1/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}\"];\n/**\n * Get an outgoing link for an object type.\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: /v1/ontologies/{ontologyRid}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...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,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,CAAC;AACtD;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,sBAAsB,GAAG,CAAC,CAAC,EAAE,sDAAsD,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,sBAAsB,EAAE,GAAGH,IAAI,CAAC;AACvE;AACA,MAAMK,oBAAoB,GAAG,CAAC,CAAC,EAAE,0DAA0D,CAAC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,oBAAoB,EAAE,GAAGL,IAAI,CAAC;AACrE","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as _Core from "@osdk/internal.foundry.core";
|
|
2
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
3
3
|
/**
|
|
4
4
|
* Lists the Ontologies visible to the current user.
|
|
@@ -10,7 +10,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
|
|
|
10
10
|
* Required Scopes: [api:ontologies-read]
|
|
11
11
|
* URL: /v1/ontologies
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: []): Promise<_Core.ListOntologiesResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* Gets a specific ontology with the given Ontology RID.
|
|
16
16
|
*
|
|
@@ -21,5 +21,5 @@ export declare function listOntologies($ctx: $Client | $ClientContext, ...args:
|
|
|
21
21
|
* Required Scopes: [api:ontologies-read]
|
|
22
22
|
* URL: /v1/ontologies/{ontologyRid}
|
|
23
23
|
*/
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [ontologyRid: _Core.OntologyRid]): Promise<_Core.Ontology>;
|
|
25
25
|
//# sourceMappingURL=Ontology.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ontology.d.ts","sourceRoot":"","sources":["../../../src/public/Ontology.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Ontology.d.ts","sourceRoot":"","sources":["../../../src/public/Ontology.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,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,EAAE,GACV,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC;AAMD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,GACxC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAEzB"}
|
|
@@ -1,4 +1,46 @@
|
|
|
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 _list = [0, "/v1/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: /v1/ontologies
|
|
28
|
+
*/
|
|
29
|
+
export function list($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _get = [0, "/v1/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: /v1/ontologies/{ontologyRid}
|
|
42
|
+
*/
|
|
43
|
+
export function get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
|
+
}
|
|
4
46
|
//# sourceMappingURL=Ontology.js.map
|