@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 @@
|
|
|
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, \"/v2/ontologies/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: /v2/ontologies/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, \"/v2/ontologies/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: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _get = [0, \"/v2/ontologies/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: /v2/ontologies/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,mCAAmC,EAAE,CAAC,EAAE,KAAK,CAAC;AAClE;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,wCAAwC,IAAM,KAAK,CAAC;AACtE;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,gCAAgC,CAAC;AAClD;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":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* Get the metadata of attachments parented to the given object.
|
|
6
|
+
*
|
|
7
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
8
|
+
* following operation scopes: `api:ontologies-read`.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* Required Scopes: [api:ontologies-read]
|
|
13
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
|
|
14
|
+
*/
|
|
15
|
+
export declare function getAttachment($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
16
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
17
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
18
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
19
|
+
property: _Ontologies.PropertyApiName,
|
|
20
|
+
$queryParams?: {
|
|
21
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
22
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
23
|
+
}
|
|
24
|
+
]): Promise<_Ontologies.AttachmentMetadataResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the metadata of a particular attachment in an attachment list.
|
|
27
|
+
*
|
|
28
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
29
|
+
* following operation scopes: `api:ontologies-read`.
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*
|
|
33
|
+
* Required Scopes: [api:ontologies-read]
|
|
34
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
|
|
35
|
+
*/
|
|
36
|
+
export declare function getAttachmentByRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
37
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
38
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
39
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
40
|
+
property: _Ontologies.PropertyApiName,
|
|
41
|
+
attachmentRid: _Ontologies.AttachmentRid,
|
|
42
|
+
$queryParams?: {
|
|
43
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
44
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
45
|
+
}
|
|
46
|
+
]): Promise<_Ontologies.AttachmentV2>;
|
|
47
|
+
/**
|
|
48
|
+
* Get the content of an attachment.
|
|
49
|
+
*
|
|
50
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
51
|
+
* following operation scopes: `api:ontologies-read`.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:ontologies-read]
|
|
56
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
|
|
57
|
+
*/
|
|
58
|
+
export declare function readAttachment($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
59
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
60
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
61
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
62
|
+
property: _Ontologies.PropertyApiName,
|
|
63
|
+
$queryParams?: {
|
|
64
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
65
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
66
|
+
}
|
|
67
|
+
]): Promise<Response>;
|
|
68
|
+
/**
|
|
69
|
+
* Get the content of an attachment by its RID.
|
|
70
|
+
*
|
|
71
|
+
* The RID must exist in the attachment array of the property.
|
|
72
|
+
*
|
|
73
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
74
|
+
* following operation scopes: `api:ontologies-read`.
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*
|
|
78
|
+
* Required Scopes: [api:ontologies-read]
|
|
79
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
|
|
80
|
+
*/
|
|
81
|
+
export declare function readAttachmentByRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
82
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
83
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
84
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
85
|
+
property: _Ontologies.PropertyApiName,
|
|
86
|
+
attachmentRid: _Ontologies.AttachmentRid,
|
|
87
|
+
$queryParams?: {
|
|
88
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
89
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
90
|
+
}
|
|
91
|
+
]): Promise<Response>;
|
|
92
|
+
//# sourceMappingURL=AttachmentPropertyV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentPropertyV2.d.ts","sourceRoot":"","sources":["../../../src/public/AttachmentPropertyV2.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;AAiBtD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IAErC,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;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IACrC,aAAa,EAAE,WAAW,CAAC,aAAa;IAExC,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,YAAY,CAAC,CAEnC;AAqBD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IAErC,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,QAAQ,CAAC,CAEnB;AAsBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IACrC,aAAa,EAAE,WAAW,CAAC,aAAa;IAExC,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,QAAQ,CAAC,CAEnB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 _getAttachment = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Get the metadata of attachments parented to the given object.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
23
|
+
* following operation scopes: `api:ontologies-read`.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*
|
|
27
|
+
* Required Scopes: [api:ontologies-read]
|
|
28
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
|
|
29
|
+
*/
|
|
30
|
+
export function getAttachment($ctx, ...args) {
|
|
31
|
+
return $foundryPlatformFetch($ctx, _getAttachment, ...args);
|
|
32
|
+
}
|
|
33
|
+
const _getAttachmentByRid = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
|
|
34
|
+
/**
|
|
35
|
+
* Get the metadata of a particular attachment in an attachment list.
|
|
36
|
+
*
|
|
37
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
38
|
+
* following operation scopes: `api:ontologies-read`.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*
|
|
42
|
+
* Required Scopes: [api:ontologies-read]
|
|
43
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
|
|
44
|
+
*/
|
|
45
|
+
export function getAttachmentByRid($ctx, ...args) {
|
|
46
|
+
return $foundryPlatformFetch($ctx, _getAttachmentByRid, ...args);
|
|
47
|
+
}
|
|
48
|
+
const _readAttachment = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2,, "*/*"];
|
|
49
|
+
/**
|
|
50
|
+
* Get the content of an attachment.
|
|
51
|
+
*
|
|
52
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
53
|
+
* following operation scopes: `api:ontologies-read`.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*
|
|
57
|
+
* Required Scopes: [api:ontologies-read]
|
|
58
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
|
|
59
|
+
*/
|
|
60
|
+
export function readAttachment($ctx, ...args) {
|
|
61
|
+
return $foundryPlatformFetch($ctx, _readAttachment, ...args);
|
|
62
|
+
}
|
|
63
|
+
const _readAttachmentByRid = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2,, "*/*"];
|
|
64
|
+
/**
|
|
65
|
+
* Get the content of an attachment by its RID.
|
|
66
|
+
*
|
|
67
|
+
* The RID must exist in the attachment array of the property.
|
|
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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
|
|
76
|
+
*/
|
|
77
|
+
export function readAttachmentByRid($ctx, ...args) {
|
|
78
|
+
return $foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=AttachmentPropertyV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentPropertyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getAttachment","getAttachment","$ctx","args","_getAttachmentByRid","getAttachmentByRid","_readAttachment","readAttachment","_readAttachmentByRid","readAttachmentByRid"],"sources":["AttachmentPropertyV2.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 _getAttachment = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}\", 2];\n/**\n * Get the metadata of attachments parented to the given object.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}\nconst _getAttachmentByRid = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}\", 2];\n/**\n * Get the metadata of a particular attachment in an attachment list.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}\n */\nexport function getAttachmentByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentByRid, ...args);\n}\nconst _readAttachment = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content\",\n 2,\n ,\n \"*/*\",\n];\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content\n */\nexport function readAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readAttachment, ...args);\n}\nconst _readAttachmentByRid = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content\",\n 2,\n ,\n \"*/*\",\n];\n/**\n * Get the content of an attachment by its RID.\n *\n * The RID must exist in the attachment array of the property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content\n */\nexport function readAttachmentByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,cAAc,GAAG,CAAC,CAAC,EAAE,oDAAoD,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,cAAc,EAAE,GAAGG,IAAI,CAAC;AAC/D;AACA,MAAMC,mBAAmB,GAAG,CAAC,CAAC,EAAE,wDAAwD,EAAE,CAAC,CAAC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,mBAAmB,EAAE,GAAGD,IAAI,CAAC;AACpE;AACA,MAAMG,eAAe,GAAG,CACpB,CAAC,EACD,4DAA4D,EAC5D,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,eAAe,EAAE,GAAGH,IAAI,CAAC;AAChE;AACA,MAAMK,oBAAoB,GAAG,CACzB,CAAC,EACD,gEAAgE,EAChE,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;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":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 linked objects for a specific object and the given link 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}/{primaryKey}/links/{linkType}
|
|
26
|
+
*/
|
|
27
|
+
export declare function listLinkedObjects($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
28
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
29
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
30
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
31
|
+
linkType: _Ontologies.LinkTypeApiName,
|
|
32
|
+
$queryParams: {
|
|
33
|
+
pageSize?: _Core.PageSize | undefined;
|
|
34
|
+
pageToken?: _Core.PageToken | undefined;
|
|
35
|
+
select: Array<_Ontologies.SelectedPropertyApiName>;
|
|
36
|
+
orderBy?: _Ontologies.OrderBy | undefined;
|
|
37
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
38
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
39
|
+
excludeRid?: boolean | undefined;
|
|
40
|
+
}
|
|
41
|
+
]): Promise<_Ontologies.ListLinkedObjectsResponseV2>;
|
|
42
|
+
/**
|
|
43
|
+
* Get a specific linked object that originates from another object.
|
|
44
|
+
*
|
|
45
|
+
* If there is no link between the two objects, `LinkedObjectNotFound` is thrown.
|
|
46
|
+
*
|
|
47
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*
|
|
51
|
+
* Required Scopes: [api:ontologies-read]
|
|
52
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
|
|
53
|
+
*/
|
|
54
|
+
export declare function getLinkedObject($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
55
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
56
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
57
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
58
|
+
linkType: _Ontologies.LinkTypeApiName,
|
|
59
|
+
linkedObjectPrimaryKey: _Ontologies.PropertyValueEscapedString,
|
|
60
|
+
$queryParams: {
|
|
61
|
+
select: Array<_Ontologies.SelectedPropertyApiName>;
|
|
62
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
63
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
64
|
+
excludeRid?: boolean | undefined;
|
|
65
|
+
}
|
|
66
|
+
]): Promise<_Ontologies.OntologyObjectV2>;
|
|
67
|
+
//# sourceMappingURL=LinkedObjectV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkedObjectV2.d.ts","sourceRoot":"","sources":["../../../src/public/LinkedObjectV2.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;AAsBtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAC/B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IAErC,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,2BAA2B,CAAC,CAElD;AAkBD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAC7B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IACrC,sBAAsB,EAAE,WAAW,CAAC,0BAA0B;IAE9D,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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 _listLinkedObjects = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Lists the linked objects for a specific object and the given link 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}/{primaryKey}/links/{linkType}
|
|
40
|
+
*/
|
|
41
|
+
export function listLinkedObjects($ctx, ...args) {
|
|
42
|
+
return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);
|
|
43
|
+
}
|
|
44
|
+
const _getLinkedObject = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
|
|
45
|
+
/**
|
|
46
|
+
* Get a specific linked object that originates from another object.
|
|
47
|
+
*
|
|
48
|
+
* If there is no link between the two objects, `LinkedObjectNotFound` is thrown.
|
|
49
|
+
*
|
|
50
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
*
|
|
54
|
+
* Required Scopes: [api:ontologies-read]
|
|
55
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
|
|
56
|
+
*/
|
|
57
|
+
export function getLinkedObject($ctx, ...args) {
|
|
58
|
+
return $foundryPlatformFetch($ctx, _getLinkedObject, ...args);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=LinkedObjectV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkedObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listLinkedObjects","listLinkedObjects","$ctx","args","_getLinkedObject","getLinkedObject"],"sources":["LinkedObjectV2.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 _listLinkedObjects = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link 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}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);\n}\nconst _getLinkedObject = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object.\n *\n * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.\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}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObject($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObject, ...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,kBAAkB,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,kBAAkB,EAAE,GAAGG,IAAI,CAAC;AACnE;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,kDAAkD,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,gBAAgB,EAAE,GAAGD,IAAI,CAAC;AACjE","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Gets the content of a media item referenced by this property.
|
|
7
|
+
*
|
|
8
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.
|
|
9
|
+
*
|
|
10
|
+
* @beta
|
|
11
|
+
*
|
|
12
|
+
* Required Scopes: [api:ontologies-read]
|
|
13
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
|
|
14
|
+
*/
|
|
15
|
+
export declare function getMediaContent($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
16
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
17
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
18
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
19
|
+
property: _Ontologies.PropertyApiName,
|
|
20
|
+
$queryParams?: {
|
|
21
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
22
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
23
|
+
preview?: _Core.PreviewMode | undefined;
|
|
24
|
+
}
|
|
25
|
+
]): Promise<Response>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets metadata about the media item referenced by this property.
|
|
28
|
+
*
|
|
29
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.
|
|
30
|
+
*
|
|
31
|
+
* @alpha
|
|
32
|
+
*
|
|
33
|
+
* Required Scopes: [api:ontologies-read]
|
|
34
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
|
|
35
|
+
*/
|
|
36
|
+
export declare function getMediaMetadata($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
37
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
38
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
39
|
+
primaryKey: _Ontologies.PropertyValueEscapedString,
|
|
40
|
+
property: _Ontologies.PropertyApiName,
|
|
41
|
+
$queryParams?: {
|
|
42
|
+
artifactRepository?: _Ontologies.ArtifactRepositoryRid | undefined;
|
|
43
|
+
packageName?: _Ontologies.SdkPackageName | undefined;
|
|
44
|
+
preview?: _Core.PreviewMode | undefined;
|
|
45
|
+
}
|
|
46
|
+
]): Promise<_Ontologies.MediaMetadata>;
|
|
47
|
+
/**
|
|
48
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
49
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
50
|
+
*
|
|
51
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
52
|
+
*
|
|
53
|
+
* @beta
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
56
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
57
|
+
*/
|
|
58
|
+
export declare function upload($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
59
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
60
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
61
|
+
property: _Ontologies.PropertyApiName,
|
|
62
|
+
$body: Blob,
|
|
63
|
+
$queryParams?: {
|
|
64
|
+
mediaItemPath?: _Core.MediaItemPath | undefined;
|
|
65
|
+
preview?: _Core.PreviewMode | undefined;
|
|
66
|
+
}
|
|
67
|
+
]): Promise<_Core.MediaReference>;
|
|
68
|
+
//# sourceMappingURL=MediaReferenceProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperty.d.ts","sourceRoot":"","sources":["../../../src/public/MediaReferenceProperty.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;AAkBtD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IAErC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;QACrD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAgBD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,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;IAClD,QAAQ,EAAE,WAAW,CAAC,eAAe;IAErC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,WAAW,CAAC,qBAAqB,GAAG,SAAS,CAAC;QACnE,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,SAAS,CAAC;QACrD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAEpC;AAeD;;;;;;;;;;GAUG;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,QAAQ,EAAE,WAAW,CAAC,eAAe;IACrC,KAAK,EAAE,IAAI;IACX,YAAY,CAAC,EAAE;QACb,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;QAChD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAE/B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2,, "*/*"];
|
|
19
|
+
/**
|
|
20
|
+
* Gets the content of a media item referenced by this property.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.
|
|
23
|
+
*
|
|
24
|
+
* @beta
|
|
25
|
+
*
|
|
26
|
+
* Required Scopes: [api:ontologies-read]
|
|
27
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content
|
|
28
|
+
*/
|
|
29
|
+
export function getMediaContent($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _getMediaContent, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _getMediaMetadata = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata", 2];
|
|
33
|
+
/**
|
|
34
|
+
* Gets metadata about the media item referenced by this property.
|
|
35
|
+
*
|
|
36
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.
|
|
37
|
+
*
|
|
38
|
+
* @alpha
|
|
39
|
+
*
|
|
40
|
+
* Required Scopes: [api:ontologies-read]
|
|
41
|
+
* URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata
|
|
42
|
+
*/
|
|
43
|
+
export function getMediaMetadata($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);
|
|
45
|
+
}
|
|
46
|
+
const _upload = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/*"];
|
|
47
|
+
/**
|
|
48
|
+
* Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.
|
|
49
|
+
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
50
|
+
*
|
|
51
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:ontologies-write`.
|
|
52
|
+
*
|
|
53
|
+
* @beta
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:ontologies-read, api:ontologies-write]
|
|
56
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload
|
|
57
|
+
*/
|
|
58
|
+
export function upload($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=MediaReferenceProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaReferenceProperty.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getMediaContent","getMediaContent","$ctx","args","_getMediaMetadata","getMediaMetadata","_upload","upload"],"sources":["MediaReferenceProperty.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 _getMediaContent = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content\n */\nexport function getMediaContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaContent, ...args);\n}\nconst _getMediaMetadata = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata\", 2];\n/**\n * Gets metadata about the media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata\n */\nexport function getMediaMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);\n}\nconst _upload = [1, \"/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload\", 3, \"*/*\"];\n/**\n * Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.\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 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}/objectTypes/{objectType}/media/{property}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...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,sDAAsD,EAAE,CAAC,GAAI,KAAK,CAAC;AAChG;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,iBAAiB,GAAG,CAAC,CAAC,EAAE,uDAAuD,EAAE,CAAC,CAAC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,iBAAiB,EAAE,GAAGD,IAAI,CAAC;AAClE;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,EAAE,KAAK,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD","ignoreList":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 object types for the given Ontology.
|
|
7
|
+
*
|
|
8
|
+
* Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are
|
|
9
|
+
* more results available, at least one result will be present in the
|
|
10
|
+
* response.
|
|
11
|
+
*
|
|
12
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* Required Scopes: [api:ontologies-read]
|
|
17
|
+
* URL: /v2/ontologies/{ontology}/objectTypes
|
|
18
|
+
*/
|
|
19
|
+
export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
20
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
21
|
+
$queryParams?: {
|
|
22
|
+
pageSize?: _Core.PageSize | undefined;
|
|
23
|
+
pageToken?: _Core.PageToken | undefined;
|
|
24
|
+
}
|
|
25
|
+
]): Promise<_Ontologies.ListObjectTypesV2Response>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets a specific object type with the given API name.
|
|
28
|
+
*
|
|
29
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*
|
|
33
|
+
* Required Scopes: [api:ontologies-read]
|
|
34
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}
|
|
35
|
+
*/
|
|
36
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
37
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
38
|
+
objectType: _Ontologies.ObjectTypeApiName
|
|
39
|
+
]): Promise<_Ontologies.ObjectTypeV2>;
|
|
40
|
+
/**
|
|
41
|
+
* Gets the full metadata for a specific object type with the given API name.
|
|
42
|
+
*
|
|
43
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
|
|
44
|
+
*
|
|
45
|
+
* @alpha
|
|
46
|
+
*
|
|
47
|
+
* Required Scopes: [api:ontologies-read]
|
|
48
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata
|
|
49
|
+
*/
|
|
50
|
+
export declare function getFullMetadata($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
51
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
52
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
53
|
+
$queryParams?: {
|
|
54
|
+
preview?: _Core.PreviewMode | undefined;
|
|
55
|
+
}
|
|
56
|
+
]): Promise<_Ontologies.ObjectTypeFullMetadata>;
|
|
57
|
+
/**
|
|
58
|
+
* List the outgoing links for an object type.
|
|
59
|
+
*
|
|
60
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
61
|
+
* following operation scopes: `api:ontologies-read`.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*
|
|
65
|
+
* Required Scopes: [api:ontologies-read]
|
|
66
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes
|
|
67
|
+
*/
|
|
68
|
+
export declare function listOutgoingLinkTypes($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
69
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
70
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
71
|
+
$queryParams?: {
|
|
72
|
+
pageSize?: _Core.PageSize | undefined;
|
|
73
|
+
pageToken?: _Core.PageToken | undefined;
|
|
74
|
+
}
|
|
75
|
+
]): Promise<_Ontologies.ListOutgoingLinkTypesResponseV2>;
|
|
76
|
+
/**
|
|
77
|
+
* Get an outgoing link for an object type.
|
|
78
|
+
*
|
|
79
|
+
* Third-party applications using this endpoint via OAuth2 must request the
|
|
80
|
+
* following operation scopes: `api:ontologies-read`.
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*
|
|
84
|
+
* Required Scopes: [api:ontologies-read]
|
|
85
|
+
* URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
|
|
86
|
+
*/
|
|
87
|
+
export declare function getOutgoingLinkType($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
88
|
+
ontology: _Ontologies.OntologyIdentifier,
|
|
89
|
+
objectType: _Ontologies.ObjectTypeApiName,
|
|
90
|
+
linkType: _Ontologies.LinkTypeApiName
|
|
91
|
+
]): Promise<_Ontologies.LinkTypeSideV2>;
|
|
92
|
+
//# sourceMappingURL=ObjectTypeV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectTypeV2.d.ts","sourceRoot":"","sources":["../../../src/public/ObjectTypeV2.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;AActD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IAExC,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,WAAW,CAAC,yBAAyB,CAAC,CAEhD;AASD;;;;;;;;;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;CAC1C,GACA,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAEnC;AAUD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,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;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAE7C;AAaD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,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,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAEtD;AAUD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,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,QAAQ,EAAE,WAAW,CAAC,eAAe;CACtC,GACA,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAErC"}
|