@osdk/internal.foundry.ontologiesv2 0.2.0-beta.7 → 0.2.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/browser/_components.d.ts +4 -0
  3. package/build/browser/_components.d.ts.map +1 -0
  4. package/build/browser/_components.js +17 -0
  5. package/build/browser/_components.js.map +1 -0
  6. package/build/browser/_errors.d.ts +4 -0
  7. package/build/browser/_errors.d.ts.map +1 -0
  8. package/build/browser/_errors.js +17 -0
  9. package/build/browser/_errors.js.map +1 -0
  10. package/build/browser/index.d.ts +17 -0
  11. package/build/browser/index.d.ts.map +1 -0
  12. package/build/browser/index.js +29 -15
  13. package/build/browser/index.js.map +1 -1
  14. package/build/browser/public/Action.d.ts +79 -0
  15. package/build/browser/public/Action.d.ts.map +1 -0
  16. package/build/browser/public/Action.js +78 -3
  17. package/build/browser/public/Action.js.map +1 -1
  18. package/build/browser/public/ActionTypeV2.d.ts +37 -0
  19. package/build/browser/public/ActionTypeV2.d.ts.map +1 -0
  20. package/build/browser/public/ActionTypeV2.js +48 -3
  21. package/build/browser/public/ActionTypeV2.js.map +1 -1
  22. package/build/browser/public/Attachment.d.ts +51 -0
  23. package/build/browser/public/Attachment.d.ts.map +1 -0
  24. package/build/browser/public/Attachment.js +71 -3
  25. package/build/browser/public/Attachment.js.map +1 -1
  26. package/build/browser/public/AttachmentPropertyV2.d.ts +91 -0
  27. package/build/browser/public/AttachmentPropertyV2.d.ts.map +1 -0
  28. package/build/browser/public/AttachmentPropertyV2.js +79 -3
  29. package/build/browser/public/AttachmentPropertyV2.js.map +1 -1
  30. package/build/browser/public/LinkedObjectV2.d.ts +65 -0
  31. package/build/browser/public/LinkedObjectV2.d.ts.map +1 -0
  32. package/build/browser/public/LinkedObjectV2.js +59 -3
  33. package/build/browser/public/LinkedObjectV2.js.map +1 -1
  34. package/build/browser/public/ObjectTypeV2.d.ts +90 -0
  35. package/build/browser/public/ObjectTypeV2.d.ts.map +1 -0
  36. package/build/browser/public/ObjectTypeV2.js +93 -3
  37. package/build/browser/public/ObjectTypeV2.js.map +1 -1
  38. package/build/browser/public/OntologyInterface.d.ts +119 -0
  39. package/build/browser/public/OntologyInterface.d.ts.map +1 -0
  40. package/build/browser/public/OntologyInterface.js +118 -3
  41. package/build/browser/public/OntologyInterface.js.map +1 -1
  42. package/build/browser/public/OntologyObjectSet.d.ts +73 -0
  43. package/build/browser/public/OntologyObjectSet.d.ts.map +1 -0
  44. package/build/browser/public/OntologyObjectSet.js +79 -3
  45. package/build/browser/public/OntologyObjectSet.js.map +1 -1
  46. package/build/browser/public/OntologyObjectV2.d.ts +134 -0
  47. package/build/browser/public/OntologyObjectV2.d.ts.map +1 -0
  48. package/build/browser/public/OntologyObjectV2.js +118 -3
  49. package/build/browser/public/OntologyObjectV2.js.map +1 -1
  50. package/build/browser/public/OntologyV2.d.ts +34 -0
  51. package/build/browser/public/OntologyV2.d.ts.map +1 -0
  52. package/build/browser/public/OntologyV2.js +57 -3
  53. package/build/browser/public/OntologyV2.js.map +1 -1
  54. package/build/browser/public/Query.d.ts +25 -0
  55. package/build/browser/public/Query.d.ts.map +1 -0
  56. package/build/browser/public/Query.js +34 -3
  57. package/build/browser/public/Query.js.map +1 -1
  58. package/build/browser/public/QueryType.d.ts +37 -0
  59. package/build/browser/public/QueryType.d.ts.map +1 -0
  60. package/build/browser/public/QueryType.js +48 -3
  61. package/build/browser/public/QueryType.js.map +1 -1
  62. package/build/browser/public/TimeSeriesPropertyV2.d.ts +67 -0
  63. package/build/browser/public/TimeSeriesPropertyV2.d.ts.map +1 -0
  64. package/build/browser/public/TimeSeriesPropertyV2.js +62 -3
  65. package/build/browser/public/TimeSeriesPropertyV2.js.map +1 -1
  66. package/build/browser/public/TimeSeriesValueBankProperty.d.ts +24 -0
  67. package/build/browser/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
  68. package/build/browser/public/TimeSeriesValueBankProperty.js +33 -0
  69. package/build/browser/public/TimeSeriesValueBankProperty.js.map +1 -0
  70. package/build/esm/_components.js +17 -0
  71. package/build/esm/_components.js.map +1 -0
  72. package/build/esm/_errors.js +17 -0
  73. package/build/esm/_errors.js.map +1 -0
  74. package/build/esm/index.d.ts +1 -0
  75. package/build/esm/index.d.ts.map +1 -1
  76. package/build/esm/index.js +29 -15
  77. package/build/esm/index.js.map +1 -1
  78. package/build/esm/public/Action.d.ts +19 -19
  79. package/build/esm/public/Action.d.ts.map +1 -1
  80. package/build/esm/public/Action.js +78 -3
  81. package/build/esm/public/Action.js.map +1 -1
  82. package/build/esm/public/ActionTypeV2.d.ts +9 -6
  83. package/build/esm/public/ActionTypeV2.d.ts.map +1 -1
  84. package/build/esm/public/ActionTypeV2.js +48 -3
  85. package/build/esm/public/ActionTypeV2.js.map +1 -1
  86. package/build/esm/public/Attachment.d.ts +6 -6
  87. package/build/esm/public/Attachment.d.ts.map +1 -1
  88. package/build/esm/public/Attachment.js +71 -3
  89. package/build/esm/public/Attachment.js.map +1 -1
  90. package/build/esm/public/AttachmentPropertyV2.d.ts +29 -29
  91. package/build/esm/public/AttachmentPropertyV2.d.ts.map +1 -1
  92. package/build/esm/public/AttachmentPropertyV2.js +79 -3
  93. package/build/esm/public/AttachmentPropertyV2.js.map +1 -1
  94. package/build/esm/public/LinkedObjectV2.d.ts +21 -21
  95. package/build/esm/public/LinkedObjectV2.d.ts.map +1 -1
  96. package/build/esm/public/LinkedObjectV2.js +59 -3
  97. package/build/esm/public/LinkedObjectV2.js.map +1 -1
  98. package/build/esm/public/ObjectTypeV2.d.ts +22 -19
  99. package/build/esm/public/ObjectTypeV2.d.ts.map +1 -1
  100. package/build/esm/public/ObjectTypeV2.js +93 -3
  101. package/build/esm/public/ObjectTypeV2.js.map +1 -1
  102. package/build/esm/public/OntologyInterface.d.ts +20 -20
  103. package/build/esm/public/OntologyInterface.d.ts.map +1 -1
  104. package/build/esm/public/OntologyInterface.js +118 -3
  105. package/build/esm/public/OntologyInterface.js.map +1 -1
  106. package/build/esm/public/OntologyObjectSet.d.ts +18 -15
  107. package/build/esm/public/OntologyObjectSet.d.ts.map +1 -1
  108. package/build/esm/public/OntologyObjectSet.js +79 -3
  109. package/build/esm/public/OntologyObjectSet.js.map +1 -1
  110. package/build/esm/public/OntologyObjectV2.d.ts +34 -34
  111. package/build/esm/public/OntologyObjectV2.d.ts.map +1 -1
  112. package/build/esm/public/OntologyObjectV2.js +118 -3
  113. package/build/esm/public/OntologyObjectV2.js.map +1 -1
  114. package/build/esm/public/OntologyV2.d.ts +4 -4
  115. package/build/esm/public/OntologyV2.d.ts.map +1 -1
  116. package/build/esm/public/OntologyV2.js +57 -3
  117. package/build/esm/public/OntologyV2.js.map +1 -1
  118. package/build/esm/public/Query.d.ts +7 -7
  119. package/build/esm/public/Query.d.ts.map +1 -1
  120. package/build/esm/public/Query.js +34 -3
  121. package/build/esm/public/Query.js.map +1 -1
  122. package/build/esm/public/QueryType.d.ts +9 -6
  123. package/build/esm/public/QueryType.d.ts.map +1 -1
  124. package/build/esm/public/QueryType.js +48 -3
  125. package/build/esm/public/QueryType.js.map +1 -1
  126. package/build/esm/public/TimeSeriesPropertyV2.d.ts +22 -22
  127. package/build/esm/public/TimeSeriesPropertyV2.d.ts.map +1 -1
  128. package/build/esm/public/TimeSeriesPropertyV2.js +62 -3
  129. package/build/esm/public/TimeSeriesPropertyV2.js.map +1 -1
  130. package/build/esm/public/TimeSeriesValueBankProperty.d.ts +24 -0
  131. package/build/esm/public/TimeSeriesValueBankProperty.d.ts.map +1 -0
  132. package/build/esm/public/TimeSeriesValueBankProperty.js +33 -0
  133. package/build/esm/public/TimeSeriesValueBankProperty.js.map +1 -0
  134. package/package.json +6 -7
  135. package/build/browser/chunk-35VM6XLH.js +0 -26
  136. package/build/browser/chunk-35VM6XLH.js.map +0 -1
  137. package/build/browser/chunk-3H3SHEFA.js +0 -31
  138. package/build/browser/chunk-3H3SHEFA.js.map +0 -1
  139. package/build/browser/chunk-4TOWICL3.js +0 -21
  140. package/build/browser/chunk-4TOWICL3.js.map +0 -1
  141. package/build/browser/chunk-A2ZEBCGI.js +0 -26
  142. package/build/browser/chunk-A2ZEBCGI.js.map +0 -1
  143. package/build/browser/chunk-CTA4DXZF.js +0 -31
  144. package/build/browser/chunk-CTA4DXZF.js.map +0 -1
  145. package/build/browser/chunk-EFVOGNPX.js +0 -31
  146. package/build/browser/chunk-EFVOGNPX.js.map +0 -1
  147. package/build/browser/chunk-GWYI4RKT.js +0 -21
  148. package/build/browser/chunk-GWYI4RKT.js.map +0 -1
  149. package/build/browser/chunk-KQNF55S5.js +0 -26
  150. package/build/browser/chunk-KQNF55S5.js.map +0 -1
  151. package/build/browser/chunk-OBKC7XBM.js +0 -31
  152. package/build/browser/chunk-OBKC7XBM.js.map +0 -1
  153. package/build/browser/chunk-PZ5AY32C.js +0 -9
  154. package/build/browser/chunk-PZ5AY32C.js.map +0 -1
  155. package/build/browser/chunk-U76D6BOW.js +0 -36
  156. package/build/browser/chunk-U76D6BOW.js.map +0 -1
  157. package/build/browser/chunk-UFJTKRQC.js +0 -16
  158. package/build/browser/chunk-UFJTKRQC.js.map +0 -1
  159. package/build/browser/chunk-VCCTOHYG.js +0 -21
  160. package/build/browser/chunk-VCCTOHYG.js.map +0 -1
  161. package/build/browser/chunk-ZNHKEV4X.js +0 -36
  162. package/build/browser/chunk-ZNHKEV4X.js.map +0 -1
  163. package/build/esm/chunk-35VM6XLH.js +0 -26
  164. package/build/esm/chunk-35VM6XLH.js.map +0 -1
  165. package/build/esm/chunk-3H3SHEFA.js +0 -31
  166. package/build/esm/chunk-3H3SHEFA.js.map +0 -1
  167. package/build/esm/chunk-4TOWICL3.js +0 -21
  168. package/build/esm/chunk-4TOWICL3.js.map +0 -1
  169. package/build/esm/chunk-A2ZEBCGI.js +0 -26
  170. package/build/esm/chunk-A2ZEBCGI.js.map +0 -1
  171. package/build/esm/chunk-CTA4DXZF.js +0 -31
  172. package/build/esm/chunk-CTA4DXZF.js.map +0 -1
  173. package/build/esm/chunk-EFVOGNPX.js +0 -31
  174. package/build/esm/chunk-EFVOGNPX.js.map +0 -1
  175. package/build/esm/chunk-GWYI4RKT.js +0 -21
  176. package/build/esm/chunk-GWYI4RKT.js.map +0 -1
  177. package/build/esm/chunk-KQNF55S5.js +0 -26
  178. package/build/esm/chunk-KQNF55S5.js.map +0 -1
  179. package/build/esm/chunk-OBKC7XBM.js +0 -31
  180. package/build/esm/chunk-OBKC7XBM.js.map +0 -1
  181. package/build/esm/chunk-PZ5AY32C.js +0 -9
  182. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
  183. package/build/esm/chunk-U76D6BOW.js +0 -36
  184. package/build/esm/chunk-U76D6BOW.js.map +0 -1
  185. package/build/esm/chunk-UFJTKRQC.js +0 -16
  186. package/build/esm/chunk-UFJTKRQC.js.map +0 -1
  187. package/build/esm/chunk-VCCTOHYG.js +0 -21
  188. package/build/esm/chunk-VCCTOHYG.js.map +0 -1
  189. package/build/esm/chunk-ZNHKEV4X.js +0 -36
  190. package/build/esm/chunk-ZNHKEV4X.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Get the metadata of attachments parented to the given object.
5
+ *
6
+ * Third-party applications using this endpoint via OAuth2 must request the
7
+ * following operation scopes: `api:ontologies-read`.
8
+ *
9
+ * @public
10
+ *
11
+ * Required Scopes: [api:ontologies-read]
12
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
13
+ */
14
+ export declare function listPropertyAttachments($ctx: $Client | $ClientContext, ...args: [
15
+ ontology: _Core.OntologyIdentifier,
16
+ objectType: _Core.ObjectTypeApiName,
17
+ primaryKey: _Core.PropertyValueEscapedString,
18
+ property: _Core.PropertyApiName,
19
+ $queryParams?: {
20
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
21
+ packageName?: _Core.SdkPackageName | undefined;
22
+ }
23
+ ]): Promise<_Core.AttachmentMetadataResponse>;
24
+ /**
25
+ * Get the metadata of a particular attachment in an attachment list.
26
+ *
27
+ * Third-party applications using this endpoint via OAuth2 must request the
28
+ * following operation scopes: `api:ontologies-read`.
29
+ *
30
+ * @public
31
+ *
32
+ * Required Scopes: [api:ontologies-read]
33
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
34
+ */
35
+ export declare function getAttachmentPropertyByRidV2($ctx: $Client | $ClientContext, ...args: [
36
+ ontology: _Core.OntologyIdentifier,
37
+ objectType: _Core.ObjectTypeApiName,
38
+ primaryKey: _Core.PropertyValueEscapedString,
39
+ property: _Core.PropertyApiName,
40
+ attachmentRid: _Core.AttachmentRid,
41
+ $queryParams?: {
42
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
43
+ packageName?: _Core.SdkPackageName | undefined;
44
+ }
45
+ ]): Promise<_Core.AttachmentV2>;
46
+ /**
47
+ * Get the content of an attachment.
48
+ *
49
+ * Third-party applications using this endpoint via OAuth2 must request the
50
+ * following operation scopes: `api:ontologies-read`.
51
+ *
52
+ * @public
53
+ *
54
+ * Required Scopes: [api:ontologies-read]
55
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
56
+ */
57
+ export declare function getAttachmentPropertyContentV2($ctx: $Client | $ClientContext, ...args: [
58
+ ontology: _Core.OntologyIdentifier,
59
+ objectType: _Core.ObjectTypeApiName,
60
+ primaryKey: _Core.PropertyValueEscapedString,
61
+ property: _Core.PropertyApiName,
62
+ $queryParams?: {
63
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
64
+ packageName?: _Core.SdkPackageName | undefined;
65
+ }
66
+ ]): Promise<Blob>;
67
+ /**
68
+ * Get the content of an attachment by its RID.
69
+ *
70
+ * The RID must exist in the attachment array of the property.
71
+ *
72
+ * Third-party applications using this endpoint via OAuth2 must request the
73
+ * following operation scopes: `api:ontologies-read`.
74
+ *
75
+ * @public
76
+ *
77
+ * Required Scopes: [api:ontologies-read]
78
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
79
+ */
80
+ export declare function getAttachmentPropertyContentByRidV2($ctx: $Client | $ClientContext, ...args: [
81
+ ontology: _Core.OntologyIdentifier,
82
+ objectType: _Core.ObjectTypeApiName,
83
+ primaryKey: _Core.PropertyValueEscapedString,
84
+ property: _Core.PropertyApiName,
85
+ attachmentRid: _Core.AttachmentRid,
86
+ $queryParams?: {
87
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
88
+ packageName?: _Core.SdkPackageName | undefined;
89
+ }
90
+ ]): Promise<Blob>;
91
+ //# 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,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAE3C;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;IAElC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B;AAqBD;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAsBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,mCAAmC,CACjD,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;IAElC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAMf"}
@@ -1,4 +1,80 @@
1
- export { getAttachmentPropertyByRidV2, getAttachmentPropertyContentByRidV2, getAttachmentPropertyContentV2, listPropertyAttachments } from '../chunk-3H3SHEFA.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=AttachmentPropertyV2.js.map
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 _listPropertyAttachments = [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 listPropertyAttachments($ctx, ...args) {
31
+ return $foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);
32
+ }
33
+ const _getAttachmentPropertyByRidV2 = [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 getAttachmentPropertyByRidV2($ctx, ...args) {
46
+ return $foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);
47
+ }
48
+ const _getAttachmentPropertyContentV2 = [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 getAttachmentPropertyContentV2($ctx, ...args) {
61
+ return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);
62
+ }
63
+ const _getAttachmentPropertyContentByRidV2 = [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 getAttachmentPropertyContentByRidV2($ctx, ...args) {
78
+ return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...args);
79
+ }
4
80
  //# sourceMappingURL=AttachmentPropertyV2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"AttachmentPropertyV2.js"}
1
+ {"version":3,"file":"AttachmentPropertyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listPropertyAttachments","listPropertyAttachments","$ctx","args","_getAttachmentPropertyByRidV2","getAttachmentPropertyByRidV2","_getAttachmentPropertyContentV2","getAttachmentPropertyContentV2","_getAttachmentPropertyContentByRidV2","getAttachmentPropertyContentByRidV2"],"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 _listPropertyAttachments = [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 listPropertyAttachments($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);\n}\nconst _getAttachmentPropertyByRidV2 = [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 getAttachmentPropertyByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);\n}\nconst _getAttachmentPropertyContentV2 = [\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 getAttachmentPropertyContentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);\n}\nconst _getAttachmentPropertyContentByRidV2 = [\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 getAttachmentPropertyContentByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...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,wBAAwB,GAAG,CAAC,CAAC,EAAE,oDAAoD,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,wBAAwB,EAAE,GAAGG,IAAI,CAAC;AACzE;AACA,MAAMC,6BAA6B,GAAG,CAAC,CAAC,EAAE,wDAAwD,EAAE,CAAC,CAAC;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,4BAA4BA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,6BAA6B,EAAE,GAAGD,IAAI,CAAC;AAC9E;AACA,MAAMG,+BAA+B,GAAG,CACpC,CAAC,EACD,4DAA4D,EAC5D,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,8BAA8BA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1D,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,+BAA+B,EAAE,GAAGH,IAAI,CAAC;AAChF;AACA,MAAMK,oCAAoC,GAAG,CACzC,CAAC,EACD,gEAAgE,EAChE,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mCAAmCA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/D,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,oCAAoC,EAAE,GAAGL,IAAI,CAAC;AACrF","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Lists the linked objects for a specific object and the given link type.
5
+ *
6
+ * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or
7
+ * repeated objects in the response pages.
8
+ *
9
+ * 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
10
+ * 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.
11
+ *
12
+ * Each page may be smaller or larger than the requested page size. However, it
13
+ * is guaranteed that if there are more results available, at least one result will be present
14
+ * in the response.
15
+ *
16
+ * Note that null value properties will not be returned.
17
+ *
18
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
19
+ *
20
+ * @public
21
+ *
22
+ * Required Scopes: [api:ontologies-read]
23
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}
24
+ */
25
+ export declare function listLinkedObjectsV2($ctx: $Client | $ClientContext, ...args: [
26
+ ontology: _Core.OntologyIdentifier,
27
+ objectType: _Core.ObjectTypeApiName,
28
+ primaryKey: _Core.PropertyValueEscapedString,
29
+ linkType: _Core.LinkTypeApiName,
30
+ $queryParams: {
31
+ pageSize?: _Core.PageSize | undefined;
32
+ pageToken?: _Core.PageToken | undefined;
33
+ select: Array<_Core.SelectedPropertyApiName>;
34
+ orderBy?: _Core.OrderBy | undefined;
35
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
36
+ packageName?: _Core.SdkPackageName | undefined;
37
+ excludeRid?: boolean | undefined;
38
+ }
39
+ ]): Promise<_Core.ListLinkedObjectsResponseV2>;
40
+ /**
41
+ * Get a specific linked object that originates from another object.
42
+ *
43
+ * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.
44
+ *
45
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
46
+ *
47
+ * @public
48
+ *
49
+ * Required Scopes: [api:ontologies-read]
50
+ * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
51
+ */
52
+ export declare function getLinkedObjectV2($ctx: $Client | $ClientContext, ...args: [
53
+ ontology: _Core.OntologyIdentifier,
54
+ objectType: _Core.ObjectTypeApiName,
55
+ primaryKey: _Core.PropertyValueEscapedString,
56
+ linkType: _Core.LinkTypeApiName,
57
+ linkedObjectPrimaryKey: _Core.PropertyValueEscapedString,
58
+ $queryParams: {
59
+ select: Array<_Core.SelectedPropertyApiName>;
60
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
61
+ packageName?: _Core.SdkPackageName | undefined;
62
+ excludeRid?: boolean | undefined;
63
+ }
64
+ ]): Promise<_Core.OntologyObjectV2>;
65
+ //# 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,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAwB7B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,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,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;QACpC,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;QAC/C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAE5C;AAkBD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,sBAAsB,EAAE,KAAK,CAAC,0BAA0B;IAExD,YAAY,EAAE;QACZ,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;QAC/C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAEjC"}
@@ -1,4 +1,60 @@
1
- export { getLinkedObjectV2, listLinkedObjectsV2 } from '../chunk-4TOWICL3.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=LinkedObjectV2.js.map
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 _listLinkedObjectsV2 = [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 listLinkedObjectsV2($ctx, ...args) {
42
+ return $foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);
43
+ }
44
+ const _getLinkedObjectV2 = [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 getLinkedObjectV2($ctx, ...args) {
58
+ return $foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
59
+ }
4
60
  //# sourceMappingURL=LinkedObjectV2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"LinkedObjectV2.js"}
1
+ {"version":3,"file":"LinkedObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listLinkedObjectsV2","listLinkedObjectsV2","$ctx","args","_getLinkedObjectV2","getLinkedObjectV2"],"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 _listLinkedObjectsV2 = [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 listLinkedObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);\n}\nconst _getLinkedObjectV2 = [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 getLinkedObjectV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObjectV2, ...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,oBAAoB,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,oBAAoB,EAAE,GAAGG,IAAI,CAAC;AACrE;AACA,MAAMC,kBAAkB,GAAG,CAAC,CAAC,EAAE,kDAAkD,EAAE,CAAC,CAAC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,kBAAkB,EAAE,GAAGD,IAAI,CAAC;AACnE","ignoreList":[]}
@@ -0,0 +1,90 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Lists the object types for the given Ontology.
5
+ *
6
+ * Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are
7
+ * more results available, at least one result will be present in the
8
+ * response.
9
+ *
10
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
11
+ *
12
+ * @public
13
+ *
14
+ * Required Scopes: [api:ontologies-read]
15
+ * URL: /v2/ontologies/{ontology}/objectTypes
16
+ */
17
+ export declare function listObjectTypesV2($ctx: $Client | $ClientContext, ...args: [
18
+ ontology: _Core.OntologyIdentifier,
19
+ $queryParams?: {
20
+ pageSize?: _Core.PageSize | undefined;
21
+ pageToken?: _Core.PageToken | undefined;
22
+ }
23
+ ]): Promise<_Core.ListObjectTypesV2Response>;
24
+ /**
25
+ * Gets a specific object type with the given API name.
26
+ *
27
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
28
+ *
29
+ * @public
30
+ *
31
+ * Required Scopes: [api:ontologies-read]
32
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}
33
+ */
34
+ export declare function getObjectTypeV2($ctx: $Client | $ClientContext, ...args: [
35
+ ontology: _Core.OntologyIdentifier,
36
+ objectType: _Core.ObjectTypeApiName
37
+ ]): Promise<_Core.ObjectTypeV2>;
38
+ /**
39
+ * Gets the full metadata for a specific object type with the given API name.
40
+ *
41
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
42
+ *
43
+ * @alpha
44
+ *
45
+ * Required Scopes: [api:ontologies-read]
46
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata
47
+ */
48
+ export declare function getObjectTypeFullMetadata($ctx: $Client | $ClientContext, ...args: [
49
+ ontology: _Core.OntologyIdentifier,
50
+ objectType: _Core.ObjectTypeApiName,
51
+ $queryParams?: {
52
+ preview?: _Core.PreviewMode | undefined;
53
+ }
54
+ ]): Promise<_Core.ObjectTypeFullMetadata>;
55
+ /**
56
+ * List the outgoing links for an object type.
57
+ *
58
+ * Third-party applications using this endpoint via OAuth2 must request the
59
+ * following operation scopes: `api:ontologies-read`.
60
+ *
61
+ * @public
62
+ *
63
+ * Required Scopes: [api:ontologies-read]
64
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes
65
+ */
66
+ export declare function listOutgoingLinkTypesV2($ctx: $Client | $ClientContext, ...args: [
67
+ ontology: _Core.OntologyIdentifier,
68
+ objectType: _Core.ObjectTypeApiName,
69
+ $queryParams?: {
70
+ pageSize?: _Core.PageSize | undefined;
71
+ pageToken?: _Core.PageToken | undefined;
72
+ }
73
+ ]): Promise<_Core.ListOutgoingLinkTypesResponseV2>;
74
+ /**
75
+ * Get an outgoing link for an object type.
76
+ *
77
+ * Third-party applications using this endpoint via OAuth2 must request the
78
+ * following operation scopes: `api:ontologies-read`.
79
+ *
80
+ * @public
81
+ *
82
+ * Required Scopes: [api:ontologies-read]
83
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
84
+ */
85
+ export declare function getOutgoingLinkTypeV2($ctx: $Client | $ClientContext, ...args: [
86
+ ontology: _Core.OntologyIdentifier,
87
+ objectType: _Core.ObjectTypeApiName,
88
+ linkType: _Core.LinkTypeApiName
89
+ ]): Promise<_Core.LinkTypeSideV2>;
90
+ //# 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,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAElC,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAE1C;AASD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;CACpC,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B;AAUD;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IAEnC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC;AAaD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,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,+BAA+B,CAAC,CAEhD;AAUD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,QAAQ,EAAE,KAAK,CAAC,eAAe;CAChC,GACA,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAE/B"}
@@ -1,4 +1,94 @@
1
- export { getObjectTypeFullMetadata, getObjectTypeV2, getOutgoingLinkTypeV2, listObjectTypesV2, listOutgoingLinkTypesV2 } from '../chunk-ZNHKEV4X.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=ObjectTypeV2.js.map
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 _listObjectTypesV2 = [0, "/v2/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: /v2/ontologies/{ontology}/objectTypes
32
+ */
33
+ export function listObjectTypesV2($ctx, ...args) {
34
+ return $foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);
35
+ }
36
+ const _getObjectTypeV2 = [0, "/v2/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: /v2/ontologies/{ontology}/objectTypes/{objectType}
46
+ */
47
+ export function getObjectTypeV2($ctx, ...args) {
48
+ return $foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);
49
+ }
50
+ const _getObjectTypeFullMetadata = [0, "/v2/ontologies/{0}/objectTypes/{1}/fullMetadata", 2];
51
+ /**
52
+ * Gets the full metadata for a specific object type with the given API name.
53
+ *
54
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
55
+ *
56
+ * @alpha
57
+ *
58
+ * Required Scopes: [api:ontologies-read]
59
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata
60
+ */
61
+ export function getObjectTypeFullMetadata($ctx, ...args) {
62
+ return $foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);
63
+ }
64
+ const _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
65
+ /**
66
+ * List the outgoing links for an object type.
67
+ *
68
+ * Third-party applications using this endpoint via OAuth2 must request the
69
+ * following operation scopes: `api:ontologies-read`.
70
+ *
71
+ * @public
72
+ *
73
+ * Required Scopes: [api:ontologies-read]
74
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes
75
+ */
76
+ export function listOutgoingLinkTypesV2($ctx, ...args) {
77
+ return $foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);
78
+ }
79
+ const _getOutgoingLinkTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
80
+ /**
81
+ * Get an outgoing link for an object type.
82
+ *
83
+ * Third-party applications using this endpoint via OAuth2 must request the
84
+ * following operation scopes: `api:ontologies-read`.
85
+ *
86
+ * @public
87
+ *
88
+ * Required Scopes: [api:ontologies-read]
89
+ * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
90
+ */
91
+ export function getOutgoingLinkTypeV2($ctx, ...args) {
92
+ return $foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...args);
93
+ }
4
94
  //# sourceMappingURL=ObjectTypeV2.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ObjectTypeV2.js"}
1
+ {"version":3,"file":"ObjectTypeV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listObjectTypesV2","listObjectTypesV2","$ctx","args","_getObjectTypeV2","getObjectTypeV2","_getObjectTypeFullMetadata","getObjectTypeFullMetadata","_listOutgoingLinkTypesV2","listOutgoingLinkTypesV2","_getOutgoingLinkTypeV2","getOutgoingLinkTypeV2"],"sources":["ObjectTypeV2.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 _listObjectTypesV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/objectTypes\n */\nexport function listObjectTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listObjectTypesV2, ...args);\n}\nconst _getObjectTypeV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/objectTypes/{objectType}\n */\nexport function getObjectTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectTypeV2, ...args);\n}\nconst _getObjectTypeFullMetadata = [0, \"/v2/ontologies/{0}/objectTypes/{1}/fullMetadata\", 2];\n/**\n * Gets the full metadata for 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 * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata\n */\nexport function getObjectTypeFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getObjectTypeFullMetadata, ...args);\n}\nconst _listOutgoingLinkTypesV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypesV2, ...args);\n}\nconst _getOutgoingLinkTypeV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkTypeV2, ...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,gCAAgC,EAAE,CAAC,CAAC;AACnE;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,oCAAoC,CAAC;AAClE;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;AACA,MAAMG,0BAA0B,GAAG,CAAC,CAAC,EAAE,iDAAiD,EAAE,CAAC,CAAC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,yBAAyBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,0BAA0B,EAAE,GAAGH,IAAI,CAAC;AAC3E;AACA,MAAMK,wBAAwB,GAAG,CAAC,CAAC,EAAE,sDAAsD,EAAE,CAAC,CAAC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,wBAAwB,EAAE,GAAGL,IAAI,CAAC;AACzE;AACA,MAAMO,sBAAsB,GAAG,CAAC,CAAC,EAAE,0DAA0D,CAAC;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,sBAAsB,EAAE,GAAGP,IAAI,CAAC;AACvE","ignoreList":[]}