@dockflow/sdk 0.0.0-stage → 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 (261) hide show
  1. package/.openapi-generator/FILES +89 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +157 -2
  5. package/dist/apis/V3DocumentApi.d.ts +111 -0
  6. package/dist/apis/V3DocumentApi.js +269 -0
  7. package/dist/apis/V3DownstreamApi.d.ts +63 -0
  8. package/dist/apis/V3DownstreamApi.js +138 -0
  9. package/dist/apis/V3UpstreamApi.d.ts +92 -0
  10. package/dist/apis/V3UpstreamApi.js +122 -0
  11. package/dist/apis/WidgetApi.d.ts +38 -0
  12. package/dist/apis/WidgetApi.js +83 -0
  13. package/dist/apis/index.d.ts +4 -0
  14. package/dist/apis/index.js +22 -0
  15. package/dist/esm/apis/V3DocumentApi.d.ts +111 -0
  16. package/dist/esm/apis/V3DocumentApi.js +265 -0
  17. package/dist/esm/apis/V3DownstreamApi.d.ts +63 -0
  18. package/dist/esm/apis/V3DownstreamApi.js +134 -0
  19. package/dist/esm/apis/V3UpstreamApi.d.ts +92 -0
  20. package/dist/esm/apis/V3UpstreamApi.js +118 -0
  21. package/dist/esm/apis/WidgetApi.d.ts +38 -0
  22. package/dist/esm/apis/WidgetApi.js +79 -0
  23. package/dist/esm/apis/index.d.ts +4 -0
  24. package/dist/esm/apis/index.js +6 -0
  25. package/dist/esm/index.d.ts +3 -0
  26. package/dist/esm/index.js +5 -0
  27. package/dist/esm/models/ContainerReference.d.ts +34 -0
  28. package/dist/esm/models/ContainerReference.js +45 -0
  29. package/dist/esm/models/DocumentUpdate.d.ts +38 -0
  30. package/dist/esm/models/DocumentUpdate.js +45 -0
  31. package/dist/esm/models/DocumentUpload.d.ts +70 -0
  32. package/dist/esm/models/DocumentUpload.js +76 -0
  33. package/dist/esm/models/DownstreamTradeflow.d.ts +150 -0
  34. package/dist/esm/models/DownstreamTradeflow.js +108 -0
  35. package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
  36. package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.js +31 -0
  37. package/dist/esm/models/DownstreamTradeflowBookingReference.d.ts +26 -0
  38. package/dist/esm/models/DownstreamTradeflowBookingReference.js +31 -0
  39. package/dist/esm/models/DownstreamTradeflowEventsInner.d.ts +46 -0
  40. package/dist/esm/models/DownstreamTradeflowEventsInner.js +54 -0
  41. package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
  42. package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.js +59 -0
  43. package/dist/esm/models/DownstreamTradeflowMockTracking.d.ts +30 -0
  44. package/dist/esm/models/DownstreamTradeflowMockTracking.js +41 -0
  45. package/dist/esm/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
  46. package/dist/esm/models/DownstreamTradeflowPartnersInner.js +49 -0
  47. package/dist/esm/models/DownstreamTradeflowReferences.d.ts +38 -0
  48. package/dist/esm/models/DownstreamTradeflowReferences.js +45 -0
  49. package/dist/esm/models/InlineObject.d.ts +36 -0
  50. package/dist/esm/models/InlineObject.js +47 -0
  51. package/dist/esm/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
  52. package/dist/esm/models/ListDocumentTypes200ResponseInner.js +47 -0
  53. package/dist/esm/models/UpstreamRecord.d.ts +77 -0
  54. package/dist/esm/models/UpstreamRecord.js +80 -0
  55. package/dist/esm/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
  56. package/dist/esm/models/UpstreamRecordAdditionalReferences.js +43 -0
  57. package/dist/esm/models/UpstreamRecordDataQuality.d.ts +46 -0
  58. package/dist/esm/models/UpstreamRecordDataQuality.js +49 -0
  59. package/dist/esm/models/UpstreamRecordMetadata.d.ts +42 -0
  60. package/dist/esm/models/UpstreamRecordMetadata.js +48 -0
  61. package/dist/esm/models/V3DocumentGet200Response.d.ts +39 -0
  62. package/dist/esm/models/V3DocumentGet200Response.js +52 -0
  63. package/dist/esm/models/V3DocumentGet200ResponseDataInner.d.ts +63 -0
  64. package/dist/esm/models/V3DocumentGet200ResponseDataInner.js +76 -0
  65. package/dist/esm/models/V3DocumentGet200ResponseDataInnerDocumentType.d.ts +34 -0
  66. package/dist/esm/models/V3DocumentGet200ResponseDataInnerDocumentType.js +47 -0
  67. package/dist/esm/models/V3DocumentPost202Response.d.ts +54 -0
  68. package/dist/esm/models/V3DocumentPost202Response.js +67 -0
  69. package/dist/esm/models/V3DocumentPost400Response.d.ts +26 -0
  70. package/dist/esm/models/V3DocumentPost400Response.js +31 -0
  71. package/dist/esm/models/V3DownstreamPost202Response.d.ts +42 -0
  72. package/dist/esm/models/V3DownstreamPost202Response.js +56 -0
  73. package/dist/esm/models/V3DownstreamPost202ResponseTradeflowsInner.d.ts +34 -0
  74. package/dist/esm/models/V3DownstreamPost202ResponseTradeflowsInner.js +47 -0
  75. package/dist/esm/models/V3UpstreamGet200Response.d.ts +35 -0
  76. package/dist/esm/models/V3UpstreamGet200Response.js +48 -0
  77. package/dist/esm/models/V3UpstreamGet400Response.d.ts +26 -0
  78. package/dist/esm/models/V3UpstreamGet400Response.js +31 -0
  79. package/dist/esm/models/WidgetContainer.d.ts +47 -0
  80. package/dist/esm/models/WidgetContainer.js +60 -0
  81. package/dist/esm/models/WidgetCountry.d.ts +34 -0
  82. package/dist/esm/models/WidgetCountry.js +47 -0
  83. package/dist/esm/models/WidgetLeg.d.ts +43 -0
  84. package/dist/esm/models/WidgetLeg.js +56 -0
  85. package/dist/esm/models/WidgetLocation.d.ts +48 -0
  86. package/dist/esm/models/WidgetLocation.js +61 -0
  87. package/dist/esm/models/WidgetMilestone.d.ts +43 -0
  88. package/dist/esm/models/WidgetMilestone.js +56 -0
  89. package/dist/esm/models/WidgetPoint.d.ts +34 -0
  90. package/dist/esm/models/WidgetPoint.js +47 -0
  91. package/dist/esm/models/WidgetSearchResult.d.ts +65 -0
  92. package/dist/esm/models/WidgetSearchResult.js +78 -0
  93. package/dist/esm/models/WidgetTrack.d.ts +35 -0
  94. package/dist/esm/models/WidgetTrack.js +48 -0
  95. package/dist/esm/models/WidgetTrackReading.d.ts +38 -0
  96. package/dist/esm/models/WidgetTrackReading.js +51 -0
  97. package/dist/esm/models/index.d.ts +35 -0
  98. package/dist/esm/models/index.js +37 -0
  99. package/dist/esm/runtime.d.ts +217 -0
  100. package/dist/esm/runtime.js +460 -0
  101. package/dist/index.d.ts +3 -0
  102. package/dist/index.js +21 -0
  103. package/dist/models/ContainerReference.d.ts +34 -0
  104. package/dist/models/ContainerReference.js +52 -0
  105. package/dist/models/DocumentUpdate.d.ts +38 -0
  106. package/dist/models/DocumentUpdate.js +52 -0
  107. package/dist/models/DocumentUpload.d.ts +70 -0
  108. package/dist/models/DocumentUpload.js +84 -0
  109. package/dist/models/DownstreamTradeflow.d.ts +150 -0
  110. package/dist/models/DownstreamTradeflow.js +115 -0
  111. package/dist/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
  112. package/dist/models/DownstreamTradeflowBillOfLadingReference.js +38 -0
  113. package/dist/models/DownstreamTradeflowBookingReference.d.ts +26 -0
  114. package/dist/models/DownstreamTradeflowBookingReference.js +38 -0
  115. package/dist/models/DownstreamTradeflowEventsInner.d.ts +46 -0
  116. package/dist/models/DownstreamTradeflowEventsInner.js +61 -0
  117. package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
  118. package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.js +67 -0
  119. package/dist/models/DownstreamTradeflowMockTracking.d.ts +30 -0
  120. package/dist/models/DownstreamTradeflowMockTracking.js +48 -0
  121. package/dist/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
  122. package/dist/models/DownstreamTradeflowPartnersInner.js +56 -0
  123. package/dist/models/DownstreamTradeflowReferences.d.ts +38 -0
  124. package/dist/models/DownstreamTradeflowReferences.js +52 -0
  125. package/dist/models/InlineObject.d.ts +36 -0
  126. package/dist/models/InlineObject.js +54 -0
  127. package/dist/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
  128. package/dist/models/ListDocumentTypes200ResponseInner.js +54 -0
  129. package/dist/models/UpstreamRecord.d.ts +77 -0
  130. package/dist/models/UpstreamRecord.js +87 -0
  131. package/dist/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
  132. package/dist/models/UpstreamRecordAdditionalReferences.js +50 -0
  133. package/dist/models/UpstreamRecordDataQuality.d.ts +46 -0
  134. package/dist/models/UpstreamRecordDataQuality.js +56 -0
  135. package/dist/models/UpstreamRecordMetadata.d.ts +42 -0
  136. package/dist/models/UpstreamRecordMetadata.js +55 -0
  137. package/dist/models/V3DocumentGet200Response.d.ts +39 -0
  138. package/dist/models/V3DocumentGet200Response.js +59 -0
  139. package/dist/models/V3DocumentGet200ResponseDataInner.d.ts +63 -0
  140. package/dist/models/V3DocumentGet200ResponseDataInner.js +83 -0
  141. package/dist/models/V3DocumentGet200ResponseDataInnerDocumentType.d.ts +34 -0
  142. package/dist/models/V3DocumentGet200ResponseDataInnerDocumentType.js +54 -0
  143. package/dist/models/V3DocumentPost202Response.d.ts +54 -0
  144. package/dist/models/V3DocumentPost202Response.js +74 -0
  145. package/dist/models/V3DocumentPost400Response.d.ts +26 -0
  146. package/dist/models/V3DocumentPost400Response.js +38 -0
  147. package/dist/models/V3DownstreamPost202Response.d.ts +42 -0
  148. package/dist/models/V3DownstreamPost202Response.js +64 -0
  149. package/dist/models/V3DownstreamPost202ResponseTradeflowsInner.d.ts +34 -0
  150. package/dist/models/V3DownstreamPost202ResponseTradeflowsInner.js +54 -0
  151. package/dist/models/V3UpstreamGet200Response.d.ts +35 -0
  152. package/dist/models/V3UpstreamGet200Response.js +55 -0
  153. package/dist/models/V3UpstreamGet400Response.d.ts +26 -0
  154. package/dist/models/V3UpstreamGet400Response.js +38 -0
  155. package/dist/models/WidgetContainer.d.ts +47 -0
  156. package/dist/models/WidgetContainer.js +67 -0
  157. package/dist/models/WidgetCountry.d.ts +34 -0
  158. package/dist/models/WidgetCountry.js +54 -0
  159. package/dist/models/WidgetLeg.d.ts +43 -0
  160. package/dist/models/WidgetLeg.js +63 -0
  161. package/dist/models/WidgetLocation.d.ts +48 -0
  162. package/dist/models/WidgetLocation.js +68 -0
  163. package/dist/models/WidgetMilestone.d.ts +43 -0
  164. package/dist/models/WidgetMilestone.js +63 -0
  165. package/dist/models/WidgetPoint.d.ts +34 -0
  166. package/dist/models/WidgetPoint.js +54 -0
  167. package/dist/models/WidgetSearchResult.d.ts +65 -0
  168. package/dist/models/WidgetSearchResult.js +85 -0
  169. package/dist/models/WidgetTrack.d.ts +35 -0
  170. package/dist/models/WidgetTrack.js +55 -0
  171. package/dist/models/WidgetTrackReading.d.ts +38 -0
  172. package/dist/models/WidgetTrackReading.js +58 -0
  173. package/dist/models/index.d.ts +35 -0
  174. package/dist/models/index.js +53 -0
  175. package/dist/runtime.d.ts +217 -0
  176. package/dist/runtime.js +482 -0
  177. package/docs/ContainerReference.md +36 -0
  178. package/docs/DocumentUpdate.md +39 -0
  179. package/docs/DocumentUpload.md +44 -0
  180. package/docs/DownstreamTradeflow.md +91 -0
  181. package/docs/DownstreamTradeflowBillOfLadingReference.md +33 -0
  182. package/docs/DownstreamTradeflowBookingReference.md +33 -0
  183. package/docs/DownstreamTradeflowEventsInner.md +42 -0
  184. package/docs/DownstreamTradeflowFreeTimeOverridesInner.md +40 -0
  185. package/docs/DownstreamTradeflowMockTracking.md +35 -0
  186. package/docs/DownstreamTradeflowPartnersInner.md +40 -0
  187. package/docs/DownstreamTradeflowReferences.md +38 -0
  188. package/docs/InlineObject.md +36 -0
  189. package/docs/ListDocumentTypes200ResponseInner.md +36 -0
  190. package/docs/UpstreamRecord.md +57 -0
  191. package/docs/UpstreamRecordAdditionalReferences.md +36 -0
  192. package/docs/UpstreamRecordDataQuality.md +42 -0
  193. package/docs/UpstreamRecordMetadata.md +40 -0
  194. package/docs/V3DocumentApi.md +361 -0
  195. package/docs/V3DocumentGet200Response.md +38 -0
  196. package/docs/V3DocumentGet200ResponseDataInner.md +50 -0
  197. package/docs/V3DocumentGet200ResponseDataInnerDocumentType.md +36 -0
  198. package/docs/V3DocumentPost202Response.md +46 -0
  199. package/docs/V3DocumentPost400Response.md +32 -0
  200. package/docs/V3DownstreamApi.md +158 -0
  201. package/docs/V3DownstreamPost202Response.md +36 -0
  202. package/docs/V3DownstreamPost202ResponseTradeflowsInner.md +36 -0
  203. package/docs/V3UpstreamApi.md +109 -0
  204. package/docs/V3UpstreamGet200Response.md +36 -0
  205. package/docs/V3UpstreamGet400Response.md +32 -0
  206. package/docs/WidgetApi.md +81 -0
  207. package/docs/WidgetContainer.md +42 -0
  208. package/docs/WidgetCountry.md +36 -0
  209. package/docs/WidgetLeg.md +40 -0
  210. package/docs/WidgetLocation.md +42 -0
  211. package/docs/WidgetMilestone.md +40 -0
  212. package/docs/WidgetPoint.md +36 -0
  213. package/docs/WidgetSearchResult.md +50 -0
  214. package/docs/WidgetTrack.md +36 -0
  215. package/docs/WidgetTrackReading.md +38 -0
  216. package/package.json +20 -4
  217. package/src/apis/V3DocumentApi.ts +357 -0
  218. package/src/apis/V3DownstreamApi.ts +174 -0
  219. package/src/apis/V3UpstreamApi.ts +185 -0
  220. package/src/apis/WidgetApi.ts +97 -0
  221. package/src/apis/index.ts +6 -0
  222. package/src/index.ts +5 -0
  223. package/src/models/ContainerReference.ts +70 -0
  224. package/src/models/DocumentUpdate.ts +75 -0
  225. package/src/models/DocumentUpload.ts +119 -0
  226. package/src/models/DownstreamTradeflow.ts +289 -0
  227. package/src/models/DownstreamTradeflowBillOfLadingReference.ts +46 -0
  228. package/src/models/DownstreamTradeflowBookingReference.ts +46 -0
  229. package/src/models/DownstreamTradeflowEventsInner.ts +89 -0
  230. package/src/models/DownstreamTradeflowFreeTimeOverridesInner.ts +96 -0
  231. package/src/models/DownstreamTradeflowMockTracking.ts +63 -0
  232. package/src/models/DownstreamTradeflowPartnersInner.ts +82 -0
  233. package/src/models/DownstreamTradeflowReferences.ts +75 -0
  234. package/src/models/InlineObject.ts +71 -0
  235. package/src/models/ListDocumentTypes200ResponseInner.ts +71 -0
  236. package/src/models/UpstreamRecord.ts +158 -0
  237. package/src/models/UpstreamRecordAdditionalReferences.ts +69 -0
  238. package/src/models/UpstreamRecordDataQuality.ts +87 -0
  239. package/src/models/UpstreamRecordMetadata.ts +81 -0
  240. package/src/models/V3DocumentGet200Response.ts +86 -0
  241. package/src/models/V3DocumentGet200ResponseDataInner.ts +128 -0
  242. package/src/models/V3DocumentGet200ResponseDataInnerDocumentType.ts +71 -0
  243. package/src/models/V3DocumentPost202Response.ts +106 -0
  244. package/src/models/V3DocumentPost400Response.ts +46 -0
  245. package/src/models/V3DownstreamPost202Response.ts +91 -0
  246. package/src/models/V3DownstreamPost202ResponseTradeflowsInner.ts +71 -0
  247. package/src/models/V3UpstreamGet200Response.ts +79 -0
  248. package/src/models/V3UpstreamGet400Response.ts +46 -0
  249. package/src/models/WidgetContainer.ts +100 -0
  250. package/src/models/WidgetCountry.ts +71 -0
  251. package/src/models/WidgetLeg.ts +93 -0
  252. package/src/models/WidgetLocation.ts +107 -0
  253. package/src/models/WidgetMilestone.ts +93 -0
  254. package/src/models/WidgetPoint.ts +71 -0
  255. package/src/models/WidgetSearchResult.ts +142 -0
  256. package/src/models/WidgetTrack.ts +79 -0
  257. package/src/models/WidgetTrackReading.ts +78 -0
  258. package/src/models/index.ts +37 -0
  259. package/src/runtime.ts +572 -0
  260. package/tsconfig.esm.json +7 -0
  261. package/tsconfig.json +16 -0
@@ -0,0 +1,361 @@
1
+ # V3DocumentApi
2
+
3
+ All URIs are relative to *https://api.dockflow.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**listDocumentTypes**](V3DocumentApi.md#listdocumenttypes) | **GET** /v3/downstream/documents/types | List document types |
8
+ | [**v3DocumentDelete**](V3DocumentApi.md#v3documentdelete) | **DELETE** /v3/downstream/documents/{reference} | Delete a document |
9
+ | [**v3DocumentGet**](V3DocumentApi.md#v3documentget) | **GET** /v3/downstream/documents/{reference} | List the documents of a tradeflow |
10
+ | [**v3DocumentPatch**](V3DocumentApi.md#v3documentpatch) | **PATCH** /v3/downstream/documents/{reference} | Update a document |
11
+ | [**v3DocumentPost**](V3DocumentApi.md#v3documentpost) | **POST** /v3/downstream/documents | Upload a document to a tradeflow |
12
+
13
+
14
+
15
+ ## listDocumentTypes
16
+
17
+ > Array<ListDocumentTypes200ResponseInner> listDocumentTypes()
18
+
19
+ List document types
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ V3DocumentApi,
27
+ } from '@dockflow/sdk';
28
+ import type { ListDocumentTypesRequest } from '@dockflow/sdk';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing @dockflow/sdk SDK...");
32
+ const config = new Configuration({
33
+ // Configure HTTP bearer authorization: ApiKey
34
+ accessToken: "YOUR BEARER TOKEN",
35
+ });
36
+ const api = new V3DocumentApi(config);
37
+
38
+ try {
39
+ const data = await api.listDocumentTypes();
40
+ console.log(data);
41
+ } catch (error) {
42
+ console.error(error);
43
+ }
44
+ }
45
+
46
+ // Run the test
47
+ example().catch(console.error);
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ This endpoint does not need any parameter.
53
+
54
+ ### Return type
55
+
56
+ [**Array<ListDocumentTypes200ResponseInner>**](ListDocumentTypes200ResponseInner.md)
57
+
58
+ ### Authorization
59
+
60
+ [ApiKey](../README.md#ApiKey)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **200** | The document types a document can be uploaded as. | - |
72
+
73
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
+
75
+
76
+ ## v3DocumentDelete
77
+
78
+ > v3DocumentDelete(reference)
79
+
80
+ Delete a document
81
+
82
+ ### Example
83
+
84
+ ```ts
85
+ import {
86
+ Configuration,
87
+ V3DocumentApi,
88
+ } from '@dockflow/sdk';
89
+ import type { V3DocumentDeleteRequest } from '@dockflow/sdk';
90
+
91
+ async function example() {
92
+ console.log("🚀 Testing @dockflow/sdk SDK...");
93
+ const config = new Configuration({
94
+ // Configure HTTP bearer authorization: ApiKey
95
+ accessToken: "YOUR BEARER TOKEN",
96
+ });
97
+ const api = new V3DocumentApi(config);
98
+
99
+ const body = {
100
+ // string
101
+ reference: reference_example,
102
+ } satisfies V3DocumentDeleteRequest;
103
+
104
+ try {
105
+ const data = await api.v3DocumentDelete(body);
106
+ console.log(data);
107
+ } catch (error) {
108
+ console.error(error);
109
+ }
110
+ }
111
+
112
+ // Run the test
113
+ example().catch(console.error);
114
+ ```
115
+
116
+ ### Parameters
117
+
118
+
119
+ | Name | Type | Description | Notes |
120
+ |------------- | ------------- | ------------- | -------------|
121
+ | **reference** | `string` | | [Defaults to `undefined`] |
122
+
123
+ ### Return type
124
+
125
+ `void` (Empty response body)
126
+
127
+ ### Authorization
128
+
129
+ [ApiKey](../README.md#ApiKey)
130
+
131
+ ### HTTP request headers
132
+
133
+ - **Content-Type**: Not defined
134
+ - **Accept**: `application/json`
135
+
136
+
137
+ ### HTTP response details
138
+ | Status code | Description | Response headers |
139
+ |-------------|-------------|------------------|
140
+ | **500** | | - |
141
+ | **204** | The document was deleted. | - |
142
+ | **404** | No document with this id is visible to the token\'s entity. | - |
143
+
144
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
145
+
146
+
147
+ ## v3DocumentGet
148
+
149
+ > V3DocumentGet200Response v3DocumentGet(reference)
150
+
151
+ List the documents of a tradeflow
152
+
153
+ ### Example
154
+
155
+ ```ts
156
+ import {
157
+ Configuration,
158
+ V3DocumentApi,
159
+ } from '@dockflow/sdk';
160
+ import type { V3DocumentGetRequest } from '@dockflow/sdk';
161
+
162
+ async function example() {
163
+ console.log("🚀 Testing @dockflow/sdk SDK...");
164
+ const config = new Configuration({
165
+ // Configure HTTP bearer authorization: ApiKey
166
+ accessToken: "YOUR BEARER TOKEN",
167
+ });
168
+ const api = new V3DocumentApi(config);
169
+
170
+ const body = {
171
+ // string
172
+ reference: reference_example,
173
+ } satisfies V3DocumentGetRequest;
174
+
175
+ try {
176
+ const data = await api.v3DocumentGet(body);
177
+ console.log(data);
178
+ } catch (error) {
179
+ console.error(error);
180
+ }
181
+ }
182
+
183
+ // Run the test
184
+ example().catch(console.error);
185
+ ```
186
+
187
+ ### Parameters
188
+
189
+
190
+ | Name | Type | Description | Notes |
191
+ |------------- | ------------- | ------------- | -------------|
192
+ | **reference** | `string` | | [Defaults to `undefined`] |
193
+
194
+ ### Return type
195
+
196
+ [**V3DocumentGet200Response**](V3DocumentGet200Response.md)
197
+
198
+ ### Authorization
199
+
200
+ [ApiKey](../README.md#ApiKey)
201
+
202
+ ### HTTP request headers
203
+
204
+ - **Content-Type**: Not defined
205
+ - **Accept**: `application/json`
206
+
207
+
208
+ ### HTTP response details
209
+ | Status code | Description | Response headers |
210
+ |-------------|-------------|------------------|
211
+ | **200** | The documents attached to the tradeflow. | - |
212
+ | **404** | No tradeflow with this reference belongs to the token\'s entity. | - |
213
+
214
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
215
+
216
+
217
+ ## v3DocumentPatch
218
+
219
+ > V3DocumentGet200ResponseDataInner v3DocumentPatch(reference, documentUpdate)
220
+
221
+ Update a document
222
+
223
+ ### Example
224
+
225
+ ```ts
226
+ import {
227
+ Configuration,
228
+ V3DocumentApi,
229
+ } from '@dockflow/sdk';
230
+ import type { V3DocumentPatchRequest } from '@dockflow/sdk';
231
+
232
+ async function example() {
233
+ console.log("🚀 Testing @dockflow/sdk SDK...");
234
+ const config = new Configuration({
235
+ // Configure HTTP bearer authorization: ApiKey
236
+ accessToken: "YOUR BEARER TOKEN",
237
+ });
238
+ const api = new V3DocumentApi(config);
239
+
240
+ const body = {
241
+ // string
242
+ reference: reference_example,
243
+ // DocumentUpdate
244
+ documentUpdate: ...,
245
+ } satisfies V3DocumentPatchRequest;
246
+
247
+ try {
248
+ const data = await api.v3DocumentPatch(body);
249
+ console.log(data);
250
+ } catch (error) {
251
+ console.error(error);
252
+ }
253
+ }
254
+
255
+ // Run the test
256
+ example().catch(console.error);
257
+ ```
258
+
259
+ ### Parameters
260
+
261
+
262
+ | Name | Type | Description | Notes |
263
+ |------------- | ------------- | ------------- | -------------|
264
+ | **reference** | `string` | | [Defaults to `undefined`] |
265
+ | **documentUpdate** | [DocumentUpdate](DocumentUpdate.md) | | |
266
+
267
+ ### Return type
268
+
269
+ [**V3DocumentGet200ResponseDataInner**](V3DocumentGet200ResponseDataInner.md)
270
+
271
+ ### Authorization
272
+
273
+ [ApiKey](../README.md#ApiKey)
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: `application/json`
278
+ - **Accept**: `application/json`
279
+
280
+
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ | **500** | | - |
285
+ | **200** | The updated document. | - |
286
+ | **400** | | - |
287
+ | **404** | No document with this id is visible to the token\'s entity. | - |
288
+
289
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
290
+
291
+
292
+ ## v3DocumentPost
293
+
294
+ > V3DocumentPost202Response v3DocumentPost(documentUpload)
295
+
296
+ Upload a document to a tradeflow
297
+
298
+ ### Example
299
+
300
+ ```ts
301
+ import {
302
+ Configuration,
303
+ V3DocumentApi,
304
+ } from '@dockflow/sdk';
305
+ import type { V3DocumentPostRequest } from '@dockflow/sdk';
306
+
307
+ async function example() {
308
+ console.log("🚀 Testing @dockflow/sdk SDK...");
309
+ const config = new Configuration({
310
+ // Configure HTTP bearer authorization: ApiKey
311
+ accessToken: "YOUR BEARER TOKEN",
312
+ });
313
+ const api = new V3DocumentApi(config);
314
+
315
+ const body = {
316
+ // DocumentUpload
317
+ documentUpload: ...,
318
+ } satisfies V3DocumentPostRequest;
319
+
320
+ try {
321
+ const data = await api.v3DocumentPost(body);
322
+ console.log(data);
323
+ } catch (error) {
324
+ console.error(error);
325
+ }
326
+ }
327
+
328
+ // Run the test
329
+ example().catch(console.error);
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+
335
+ | Name | Type | Description | Notes |
336
+ |------------- | ------------- | ------------- | -------------|
337
+ | **documentUpload** | [DocumentUpload](DocumentUpload.md) | | |
338
+
339
+ ### Return type
340
+
341
+ [**V3DocumentPost202Response**](V3DocumentPost202Response.md)
342
+
343
+ ### Authorization
344
+
345
+ [ApiKey](../README.md#ApiKey)
346
+
347
+ ### HTTP request headers
348
+
349
+ - **Content-Type**: `application/json`
350
+ - **Accept**: `application/json`
351
+
352
+
353
+ ### HTTP response details
354
+ | Status code | Description | Response headers |
355
+ |-------------|-------------|------------------|
356
+ | **202** | The document was stored on the tradeflow. | - |
357
+ | **500** | | - |
358
+ | **400** | | - |
359
+
360
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
361
+
@@ -0,0 +1,38 @@
1
+
2
+ # V3DocumentGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<V3DocumentGet200ResponseDataInner>](V3DocumentGet200ResponseDataInner.md)
10
+ `tradeflowReference` | string
11
+ `count` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { V3DocumentGet200Response } from '@dockflow/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "data": null,
21
+ "tradeflowReference": null,
22
+ "count": null,
23
+ } satisfies V3DocumentGet200Response
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as V3DocumentGet200Response
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,50 @@
1
+
2
+ # V3DocumentGet200ResponseDataInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `filetype` | string
12
+ `inputName` | string
13
+ `version` | number
14
+ `documentType` | [V3DocumentGet200ResponseDataInnerDocumentType](V3DocumentGet200ResponseDataInnerDocumentType.md)
15
+ `metadata` | object
16
+ `createdAt` | string
17
+ `updatedAt` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { V3DocumentGet200ResponseDataInner } from '@dockflow/sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "name": null,
28
+ "filetype": null,
29
+ "inputName": null,
30
+ "version": null,
31
+ "documentType": null,
32
+ "metadata": null,
33
+ "createdAt": null,
34
+ "updatedAt": null,
35
+ } satisfies V3DocumentGet200ResponseDataInner
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as V3DocumentGet200ResponseDataInner
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,36 @@
1
+
2
+ # V3DocumentGet200ResponseDataInnerDocumentType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `description` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { V3DocumentGet200ResponseDataInnerDocumentType } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "description": null,
21
+ } satisfies V3DocumentGet200ResponseDataInnerDocumentType
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as V3DocumentGet200ResponseDataInnerDocumentType
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,46 @@
1
+
2
+ # V3DocumentPost202Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `tradeflowReference` | string
11
+ `documentType` | string
12
+ `filename` | string
13
+ `filetype` | string
14
+ `containerReference` | string
15
+ `createdAt` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { V3DocumentPost202Response } from '@dockflow/sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "tradeflowReference": null,
26
+ "documentType": null,
27
+ "filename": null,
28
+ "filetype": null,
29
+ "containerReference": null,
30
+ "createdAt": null,
31
+ } satisfies V3DocumentPost202Response
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as V3DocumentPost202Response
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,32 @@
1
+
2
+ # V3DocumentPost400Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { V3DocumentPost400Response } from '@dockflow/sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies V3DocumentPost400Response
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as V3DocumentPost400Response
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+