@osdk/internal.foundry.ontologiesv2 0.2.0-beta.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/CHANGELOG.md +60 -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 +22 -22
  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 +10 -7
  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 +7 -7
  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 +33 -33
  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 +23 -23
  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 +26 -23
  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 +24 -24
  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 +21 -18
  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 +39 -39
  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 +8 -8
  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 +10 -7
  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 +8 -9
  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
@@ -1,4 +1,4 @@
1
- import type { ArtifactRepositoryRid, AttachmentMetadataResponse, AttachmentRid, AttachmentV2, ObjectTypeApiName, OntologyIdentifier, PropertyApiName, PropertyValueEscapedString, SdkPackageName } from "@osdk/internal.foundry.core";
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
3
  /**
4
4
  * Get the metadata of attachments parented to the given object.
@@ -11,16 +11,16 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
11
11
  * Required Scopes: [api:ontologies-read]
12
12
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
13
13
  */
14
- export declare function listPropertyAttachments($ctx: $Client | $ClientContext, ...args: [
15
- ontology: OntologyIdentifier,
16
- objectType: ObjectTypeApiName,
17
- primaryKey: PropertyValueEscapedString,
18
- property: PropertyApiName,
14
+ export declare function getAttachment($ctx: $Client | $ClientContext, ...args: [
15
+ ontology: _Core.OntologyIdentifier,
16
+ objectType: _Core.ObjectTypeApiName,
17
+ primaryKey: _Core.PropertyValueEscapedString,
18
+ property: _Core.PropertyApiName,
19
19
  $queryParams?: {
20
- artifactRepository?: ArtifactRepositoryRid | undefined;
21
- packageName?: SdkPackageName | undefined;
20
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
21
+ packageName?: _Core.SdkPackageName | undefined;
22
22
  }
23
- ]): Promise<AttachmentMetadataResponse>;
23
+ ]): Promise<_Core.AttachmentMetadataResponse>;
24
24
  /**
25
25
  * Get the metadata of a particular attachment in an attachment list.
26
26
  *
@@ -32,17 +32,17 @@ export declare function listPropertyAttachments($ctx: $Client | $ClientContext,
32
32
  * Required Scopes: [api:ontologies-read]
33
33
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
34
34
  */
35
- export declare function getAttachmentPropertyByRidV2($ctx: $Client | $ClientContext, ...args: [
36
- ontology: OntologyIdentifier,
37
- objectType: ObjectTypeApiName,
38
- primaryKey: PropertyValueEscapedString,
39
- property: PropertyApiName,
40
- attachmentRid: AttachmentRid,
35
+ export declare function getAttachmentByRid($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
41
  $queryParams?: {
42
- artifactRepository?: ArtifactRepositoryRid | undefined;
43
- packageName?: SdkPackageName | undefined;
42
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
43
+ packageName?: _Core.SdkPackageName | undefined;
44
44
  }
45
- ]): Promise<AttachmentV2>;
45
+ ]): Promise<_Core.AttachmentV2>;
46
46
  /**
47
47
  * Get the content of an attachment.
48
48
  *
@@ -54,14 +54,14 @@ export declare function getAttachmentPropertyByRidV2($ctx: $Client | $ClientCont
54
54
  * Required Scopes: [api:ontologies-read]
55
55
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
56
56
  */
57
- export declare function getAttachmentPropertyContentV2($ctx: $Client | $ClientContext, ...args: [
58
- ontology: OntologyIdentifier,
59
- objectType: ObjectTypeApiName,
60
- primaryKey: PropertyValueEscapedString,
61
- property: PropertyApiName,
57
+ export declare function readAttachment($ctx: $Client | $ClientContext, ...args: [
58
+ ontology: _Core.OntologyIdentifier,
59
+ objectType: _Core.ObjectTypeApiName,
60
+ primaryKey: _Core.PropertyValueEscapedString,
61
+ property: _Core.PropertyApiName,
62
62
  $queryParams?: {
63
- artifactRepository?: ArtifactRepositoryRid | undefined;
64
- packageName?: SdkPackageName | undefined;
63
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
64
+ packageName?: _Core.SdkPackageName | undefined;
65
65
  }
66
66
  ]): Promise<Blob>;
67
67
  /**
@@ -77,15 +77,15 @@ export declare function getAttachmentPropertyContentV2($ctx: $Client | $ClientCo
77
77
  * Required Scopes: [api:ontologies-read]
78
78
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
79
79
  */
80
- export declare function getAttachmentPropertyContentByRidV2($ctx: $Client | $ClientContext, ...args: [
81
- ontology: OntologyIdentifier,
82
- objectType: ObjectTypeApiName,
83
- primaryKey: PropertyValueEscapedString,
84
- property: PropertyApiName,
85
- attachmentRid: AttachmentRid,
80
+ export declare function readAttachmentByRid($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
86
  $queryParams?: {
87
- artifactRepository?: ArtifactRepositoryRid | undefined;
88
- packageName?: SdkPackageName | undefined;
87
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
88
+ packageName?: _Core.SdkPackageName | undefined;
89
89
  }
90
90
  ]): Promise<Blob>;
91
91
  //# sourceMappingURL=AttachmentPropertyV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentPropertyV2.d.ts","sourceRoot":"","sources":["../../../src/public/AttachmentPropertyV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACf,MAAM,6BAA6B,CAAC;AACrC,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,kBAAkB;IAC5B,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,0BAA0B;IACtC,QAAQ,EAAE,eAAe;IAEzB,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;QACvD,WAAW,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;KAC1C;CACF,GACA,OAAO,CAAC,0BAA0B,CAAC,CAErC;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,kBAAkB;IAC5B,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,0BAA0B;IACtC,QAAQ,EAAE,eAAe;IACzB,aAAa,EAAE,aAAa;IAE5B,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;QACvD,WAAW,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AAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAsBD;;;;;;;;;;;;GAYG;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;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,CAEf"}
@@ -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 _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
+ }
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","_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":[]}
@@ -1,4 +1,4 @@
1
- import type { ArtifactRepositoryRid, LinkTypeApiName, ListLinkedObjectsResponseV2, ObjectTypeApiName, OntologyIdentifier, OntologyObjectV2, OrderBy, PageSize, PageToken, PropertyValueEscapedString, SdkPackageName, SelectedPropertyApiName } from "@osdk/internal.foundry.core";
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
3
  /**
4
4
  * Lists the linked objects for a specific object and the given link type.
@@ -22,21 +22,21 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
22
22
  * Required Scopes: [api:ontologies-read]
23
23
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}
24
24
  */
25
- export declare function listLinkedObjectsV2($ctx: $Client | $ClientContext, ...args: [
26
- ontology: OntologyIdentifier,
27
- objectType: ObjectTypeApiName,
28
- primaryKey: PropertyValueEscapedString,
29
- linkType: LinkTypeApiName,
25
+ export declare function listLinkedObjects($ctx: $Client | $ClientContext, ...args: [
26
+ ontology: _Core.OntologyIdentifier,
27
+ objectType: _Core.ObjectTypeApiName,
28
+ primaryKey: _Core.PropertyValueEscapedString,
29
+ linkType: _Core.LinkTypeApiName,
30
30
  $queryParams: {
31
- pageSize?: PageSize | undefined;
32
- pageToken?: PageToken | undefined;
33
- select: Array<SelectedPropertyApiName>;
34
- orderBy?: OrderBy | undefined;
35
- artifactRepository?: ArtifactRepositoryRid | undefined;
36
- packageName?: SdkPackageName | undefined;
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
37
  excludeRid?: boolean | undefined;
38
38
  }
39
- ]): Promise<ListLinkedObjectsResponseV2>;
39
+ ]): Promise<_Core.ListLinkedObjectsResponseV2>;
40
40
  /**
41
41
  * Get a specific linked object that originates from another object.
42
42
  *
@@ -49,17 +49,17 @@ export declare function listLinkedObjectsV2($ctx: $Client | $ClientContext, ...a
49
49
  * Required Scopes: [api:ontologies-read]
50
50
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
51
51
  */
52
- export declare function getLinkedObjectV2($ctx: $Client | $ClientContext, ...args: [
53
- ontology: OntologyIdentifier,
54
- objectType: ObjectTypeApiName,
55
- primaryKey: PropertyValueEscapedString,
56
- linkType: LinkTypeApiName,
57
- linkedObjectPrimaryKey: PropertyValueEscapedString,
52
+ export declare function getLinkedObject($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
58
  $queryParams: {
59
- select: Array<SelectedPropertyApiName>;
60
- artifactRepository?: ArtifactRepositoryRid | undefined;
61
- packageName?: SdkPackageName | undefined;
59
+ select: Array<_Core.SelectedPropertyApiName>;
60
+ artifactRepository?: _Core.ArtifactRepositoryRid | undefined;
61
+ packageName?: _Core.SdkPackageName | undefined;
62
62
  excludeRid?: boolean | undefined;
63
63
  }
64
- ]): Promise<OntologyObjectV2>;
64
+ ]): Promise<_Core.OntologyObjectV2>;
65
65
  //# sourceMappingURL=LinkedObjectV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedObjectV2.d.ts","sourceRoot":"","sources":["../../../src/public/LinkedObjectV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,0BAA0B,EAC1B,cAAc,EACd,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAwB7B;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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 _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
+ }
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","_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":[]}
@@ -1,4 +1,4 @@
1
- import type { LinkTypeApiName, LinkTypeSideV2, ListObjectTypesV2Response, ListOutgoingLinkTypesResponseV2, ObjectTypeApiName, ObjectTypeFullMetadata, ObjectTypeV2, OntologyIdentifier, PageSize, PageToken, PreviewMode } from "@osdk/internal.foundry.core";
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
3
  /**
4
4
  * Lists the object types for the given Ontology.
@@ -14,13 +14,13 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
14
14
  * Required Scopes: [api:ontologies-read]
15
15
  * URL: /v2/ontologies/{ontology}/objectTypes
16
16
  */
17
- export declare function listObjectTypesV2($ctx: $Client | $ClientContext, ...args: [
18
- ontology: OntologyIdentifier,
17
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
18
+ ontology: _Core.OntologyIdentifier,
19
19
  $queryParams?: {
20
- pageSize?: PageSize | undefined;
21
- pageToken?: PageToken | undefined;
20
+ pageSize?: _Core.PageSize | undefined;
21
+ pageToken?: _Core.PageToken | undefined;
22
22
  }
23
- ]): Promise<ListObjectTypesV2Response>;
23
+ ]): Promise<_Core.ListObjectTypesV2Response>;
24
24
  /**
25
25
  * Gets a specific object type with the given API name.
26
26
  *
@@ -31,7 +31,10 @@ export declare function listObjectTypesV2($ctx: $Client | $ClientContext, ...arg
31
31
  * Required Scopes: [api:ontologies-read]
32
32
  * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}
33
33
  */
34
- export declare function getObjectTypeV2($ctx: $Client | $ClientContext, ...args: [ontology: OntologyIdentifier, objectType: ObjectTypeApiName]): Promise<ObjectTypeV2>;
34
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
35
+ ontology: _Core.OntologyIdentifier,
36
+ objectType: _Core.ObjectTypeApiName
37
+ ]): Promise<_Core.ObjectTypeV2>;
35
38
  /**
36
39
  * Gets the full metadata for a specific object type with the given API name.
37
40
  *
@@ -42,13 +45,13 @@ export declare function getObjectTypeV2($ctx: $Client | $ClientContext, ...args:
42
45
  * Required Scopes: [api:ontologies-read]
43
46
  * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata
44
47
  */
45
- export declare function getObjectTypeFullMetadata($ctx: $Client | $ClientContext, ...args: [
46
- ontology: OntologyIdentifier,
47
- objectType: ObjectTypeApiName,
48
+ export declare function getFullMetadata($ctx: $Client | $ClientContext, ...args: [
49
+ ontology: _Core.OntologyIdentifier,
50
+ objectType: _Core.ObjectTypeApiName,
48
51
  $queryParams?: {
49
- preview?: PreviewMode | undefined;
52
+ preview?: _Core.PreviewMode | undefined;
50
53
  }
51
- ]): Promise<ObjectTypeFullMetadata>;
54
+ ]): Promise<_Core.ObjectTypeFullMetadata>;
52
55
  /**
53
56
  * List the outgoing links for an object type.
54
57
  *
@@ -60,14 +63,14 @@ export declare function getObjectTypeFullMetadata($ctx: $Client | $ClientContext
60
63
  * Required Scopes: [api:ontologies-read]
61
64
  * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes
62
65
  */
63
- export declare function listOutgoingLinkTypesV2($ctx: $Client | $ClientContext, ...args: [
64
- ontology: OntologyIdentifier,
65
- objectType: ObjectTypeApiName,
66
+ export declare function listOutgoingLinkTypes($ctx: $Client | $ClientContext, ...args: [
67
+ ontology: _Core.OntologyIdentifier,
68
+ objectType: _Core.ObjectTypeApiName,
66
69
  $queryParams?: {
67
- pageSize?: PageSize | undefined;
68
- pageToken?: PageToken | undefined;
70
+ pageSize?: _Core.PageSize | undefined;
71
+ pageToken?: _Core.PageToken | undefined;
69
72
  }
70
- ]): Promise<ListOutgoingLinkTypesResponseV2>;
73
+ ]): Promise<_Core.ListOutgoingLinkTypesResponseV2>;
71
74
  /**
72
75
  * Get an outgoing link for an object type.
73
76
  *
@@ -79,9 +82,9 @@ export declare function listOutgoingLinkTypesV2($ctx: $Client | $ClientContext,
79
82
  * Required Scopes: [api:ontologies-read]
80
83
  * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}
81
84
  */
82
- export declare function getOutgoingLinkTypeV2($ctx: $Client | $ClientContext, ...args: [
83
- ontology: OntologyIdentifier,
84
- objectType: ObjectTypeApiName,
85
- linkType: LinkTypeApiName
86
- ]): Promise<LinkTypeSideV2>;
85
+ export declare function getOutgoingLinkType($ctx: $Client | $ClientContext, ...args: [
86
+ ontology: _Core.OntologyIdentifier,
87
+ objectType: _Core.ObjectTypeApiName,
88
+ linkType: _Core.LinkTypeApiName
89
+ ]): Promise<_Core.LinkTypeSideV2>;
87
90
  //# sourceMappingURL=ObjectTypeV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectTypeV2.d.ts","sourceRoot":"","sources":["../../../src/public/ObjectTypeV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,+BAA+B,EAC/B,iBA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AAG,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,qBAAqB,CACnC,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,mBAAmB,CACjC,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 _list = [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 list($ctx, ...args) {
34
+ return $foundryPlatformFetch($ctx, _list, ...args);
35
+ }
36
+ const _get = [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 get($ctx, ...args) {
48
+ return $foundryPlatformFetch($ctx, _get, ...args);
49
+ }
50
+ const _getFullMetadata = [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 getFullMetadata($ctx, ...args) {
62
+ return $foundryPlatformFetch($ctx, _getFullMetadata, ...args);
63
+ }
64
+ const _listOutgoingLinkTypes = [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 listOutgoingLinkTypes($ctx, ...args) {
77
+ return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);
78
+ }
79
+ const _getOutgoingLinkType = [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 getOutgoingLinkType($ctx, ...args) {
92
+ return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...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","_list","list","$ctx","args","_get","get","_getFullMetadata","getFullMetadata","_listOutgoingLinkTypes","listOutgoingLinkTypes","_getOutgoingLinkType","getOutgoingLinkType"],"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 _list = [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 list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [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 get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getFullMetadata = [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 getFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFullMetadata, ...args);\n}\nconst _listOutgoingLinkTypes = [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 listOutgoingLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);\n}\nconst _getOutgoingLinkType = [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 getOutgoingLinkType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,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