@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,158 @@
1
+ # V3DownstreamApi
2
+
3
+ All URIs are relative to *https://api.dockflow.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v3DownstreamDelete**](V3DownstreamApi.md#v3downstreamdelete) | **DELETE** /v3/downstream/tradeflows/{tradeflow_reference} | Delete a tradeflow |
8
+ | [**v3DownstreamPost**](V3DownstreamApi.md#v3downstreampost) | **POST** /v3/downstream/tradeflows | Upsert tradeflows |
9
+
10
+
11
+
12
+ ## v3DownstreamDelete
13
+
14
+ > string v3DownstreamDelete(tradeflowReference, confirm, hard)
15
+
16
+ Delete a tradeflow
17
+
18
+ ### Example
19
+
20
+ ```ts
21
+ import {
22
+ Configuration,
23
+ V3DownstreamApi,
24
+ } from '@dockflow/sdk';
25
+ import type { V3DownstreamDeleteRequest } from '@dockflow/sdk';
26
+
27
+ async function example() {
28
+ console.log("🚀 Testing @dockflow/sdk SDK...");
29
+ const config = new Configuration({
30
+ // Configure HTTP bearer authorization: ApiKey
31
+ accessToken: "YOUR BEARER TOKEN",
32
+ });
33
+ const api = new V3DownstreamApi(config);
34
+
35
+ const body = {
36
+ // string
37
+ tradeflowReference: tradeflowReference_example,
38
+ // string (optional)
39
+ confirm: confirm_example,
40
+ // boolean | true deletes the tradeflow permanently. Default: it is deactivated. (optional)
41
+ hard: true,
42
+ } satisfies V3DownstreamDeleteRequest;
43
+
44
+ try {
45
+ const data = await api.v3DownstreamDelete(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **tradeflowReference** | `string` | | [Defaults to `undefined`] |
62
+ | **confirm** | `string` | | [Optional] [Defaults to `undefined`] |
63
+ | **hard** | `boolean` | true deletes the tradeflow permanently. Default: it is deactivated. | [Optional] [Defaults to `undefined`] |
64
+
65
+ ### Return type
66
+
67
+ **string**
68
+
69
+ ### Authorization
70
+
71
+ [ApiKey](../README.md#ApiKey)
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: Not defined
76
+ - **Accept**: `application/json`
77
+
78
+
79
+ ### HTTP response details
80
+ | Status code | Description | Response headers |
81
+ |-------------|-------------|------------------|
82
+ | **500** | | - |
83
+ | **204** | The tradeflow was deactivated, or deleted with `hard=true`. The reference `*` targets every tradeflow and needs `confirm=PRODUCTION` on production. | - |
84
+ | **404** | No tradeflow with this reference belongs to the token\'s entity. | - |
85
+ | **400** | | - |
86
+
87
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
+
89
+
90
+ ## v3DownstreamPost
91
+
92
+ > V3DownstreamPost202Response v3DownstreamPost(downstreamTradeflow)
93
+
94
+ Upsert tradeflows
95
+
96
+ ### Example
97
+
98
+ ```ts
99
+ import {
100
+ Configuration,
101
+ V3DownstreamApi,
102
+ } from '@dockflow/sdk';
103
+ import type { V3DownstreamPostRequest } from '@dockflow/sdk';
104
+
105
+ async function example() {
106
+ console.log("🚀 Testing @dockflow/sdk SDK...");
107
+ const config = new Configuration({
108
+ // Configure HTTP bearer authorization: ApiKey
109
+ accessToken: "YOUR BEARER TOKEN",
110
+ });
111
+ const api = new V3DownstreamApi(config);
112
+
113
+ const body = {
114
+ // Array<DownstreamTradeflow>
115
+ downstreamTradeflow: ...,
116
+ } satisfies V3DownstreamPostRequest;
117
+
118
+ try {
119
+ const data = await api.v3DownstreamPost(body);
120
+ console.log(data);
121
+ } catch (error) {
122
+ console.error(error);
123
+ }
124
+ }
125
+
126
+ // Run the test
127
+ example().catch(console.error);
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+
133
+ | Name | Type | Description | Notes |
134
+ |------------- | ------------- | ------------- | -------------|
135
+ | **downstreamTradeflow** | `Array<DownstreamTradeflow>` | | |
136
+
137
+ ### Return type
138
+
139
+ [**V3DownstreamPost202Response**](V3DownstreamPost202Response.md)
140
+
141
+ ### Authorization
142
+
143
+ [ApiKey](../README.md#ApiKey)
144
+
145
+ ### HTTP request headers
146
+
147
+ - **Content-Type**: `application/json`
148
+ - **Accept**: `application/json`
149
+
150
+
151
+ ### HTTP response details
152
+ | Status code | Description | Response headers |
153
+ |-------------|-------------|------------------|
154
+ | **202** | The tradeflows passed validation and are queued for import. | - |
155
+ | **400** | | - |
156
+
157
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
158
+
@@ -0,0 +1,36 @@
1
+
2
+ # V3DownstreamPost202Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `status` | string
10
+ `tradeflows` | [Array&lt;V3DownstreamPost202ResponseTradeflowsInner&gt;](V3DownstreamPost202ResponseTradeflowsInner.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { V3DownstreamPost202Response } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "status": null,
20
+ "tradeflows": null,
21
+ } satisfies V3DownstreamPost202Response
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 V3DownstreamPost202Response
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,36 @@
1
+
2
+ # V3DownstreamPost202ResponseTradeflowsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `tradeflowReference` | string
10
+ `warnings` | Array&lt;string&gt;
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { V3DownstreamPost202ResponseTradeflowsInner } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "tradeflowReference": null,
20
+ "warnings": null,
21
+ } satisfies V3DownstreamPost202ResponseTradeflowsInner
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 V3DownstreamPost202ResponseTradeflowsInner
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,109 @@
1
+ # V3UpstreamApi
2
+
3
+ All URIs are relative to *https://api.dockflow.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v3UpstreamGet**](V3UpstreamApi.md#v3upstreamget) | **GET** /v3/upstream | Poll upstream events |
8
+
9
+
10
+
11
+ ## v3UpstreamGet
12
+
13
+ > V3UpstreamGet200Response v3UpstreamGet(since, tradeflow, container, category, code, cursor, active, fields, format, perPage, failsafe)
14
+
15
+ Poll upstream events
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ V3UpstreamApi,
23
+ } from '@dockflow/sdk';
24
+ import type { V3UpstreamGetRequest } from '@dockflow/sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @dockflow/sdk SDK...");
28
+ const config = new Configuration({
29
+ // Configure HTTP bearer authorization: ApiKey
30
+ accessToken: "YOUR BEARER TOKEN",
31
+ });
32
+ const api = new V3UpstreamApi(config);
33
+
34
+ const body = {
35
+ // string | Only tradeflows changed after this ISO 8601 timestamp (exclusive), with an offset. Without since, cursor, tradeflow or container: the last 15 minutes. (optional)
36
+ since: since_example,
37
+ // string | Your tradeflow reference. Returns that tradeflow regardless of when it changed. (optional)
38
+ tradeflow: tradeflow_example,
39
+ // string | A container number. Returns its tradeflows regardless of when they changed. (optional)
40
+ container: container_example,
41
+ // string | Keep only events of this category: MILESTONE, SHIPMENT or LOCATION. (optional)
42
+ category: category_example,
43
+ // string | Keep only events whose code starts with this value. One of: GE, GN, AE, VD, VA, UV, GT, GD, GR, POS, A-BKD, A-RCS, A-DEP, A-ARR, A-RCF, A-NFD, A-DLV. Any other value returns 400. (optional)
44
+ code: code_example,
45
+ // string | next_cursor from the previous page. Keep since identical across the pages of one cycle. (optional)
46
+ cursor: cursor_example,
47
+ // string | true (active only), false, or both. Default: active plus recently deactivated. (optional)
48
+ active: active_example,
49
+ // string | Comma-separated blocks: events, locations, containers, shipment, vessels. Default: all but vessels. (optional)
50
+ fields: fields_example,
51
+ // 'v3' | 'dcsa-tnt-2.2' | Shape of `events`: `v3` (Dockflow milestones) or `dcsa-tnt-2.2` (DCSA Track & Trace 2.2). The rest of the record is identical. (optional)
52
+ format: format_example,
53
+ // number | Tradeflows per page, 1 to 1000. Default 50. (optional)
54
+ perPage: 56,
55
+ // '0' | '1' | Set to 1 and Dockflow keeps your position per API key and filter set, so repeated identical polls skip nothing. (optional)
56
+ failsafe: failsafe_example,
57
+ } satisfies V3UpstreamGetRequest;
58
+
59
+ try {
60
+ const data = await api.v3UpstreamGet(body);
61
+ console.log(data);
62
+ } catch (error) {
63
+ console.error(error);
64
+ }
65
+ }
66
+
67
+ // Run the test
68
+ example().catch(console.error);
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+
74
+ | Name | Type | Description | Notes |
75
+ |------------- | ------------- | ------------- | -------------|
76
+ | **since** | `string` | Only tradeflows changed after this ISO 8601 timestamp (exclusive), with an offset. Without since, cursor, tradeflow or container: the last 15 minutes. | [Optional] [Defaults to `undefined`] |
77
+ | **tradeflow** | `string` | Your tradeflow reference. Returns that tradeflow regardless of when it changed. | [Optional] [Defaults to `undefined`] |
78
+ | **container** | `string` | A container number. Returns its tradeflows regardless of when they changed. | [Optional] [Defaults to `undefined`] |
79
+ | **category** | `string` | Keep only events of this category: MILESTONE, SHIPMENT or LOCATION. | [Optional] [Defaults to `undefined`] |
80
+ | **code** | `string` | Keep only events whose code starts with this value. One of: GE, GN, AE, VD, VA, UV, GT, GD, GR, POS, A-BKD, A-RCS, A-DEP, A-ARR, A-RCF, A-NFD, A-DLV. Any other value returns 400. | [Optional] [Defaults to `undefined`] |
81
+ | **cursor** | `string` | next_cursor from the previous page. Keep since identical across the pages of one cycle. | [Optional] [Defaults to `undefined`] |
82
+ | **active** | `string` | true (active only), false, or both. Default: active plus recently deactivated. | [Optional] [Defaults to `undefined`] |
83
+ | **fields** | `string` | Comma-separated blocks: events, locations, containers, shipment, vessels. Default: all but vessels. | [Optional] [Defaults to `&#39;&#39;`] |
84
+ | **format** | `v3`, `dcsa-tnt-2.2` | Shape of &#x60;events&#x60;: &#x60;v3&#x60; (Dockflow milestones) or &#x60;dcsa-tnt-2.2&#x60; (DCSA Track &amp; Trace 2.2). The rest of the record is identical. | [Optional] [Defaults to `&#39;v3&#39;`] [Enum: v3, dcsa-tnt-2.2] |
85
+ | **perPage** | `number` | Tradeflows per page, 1 to 1000. Default 50. | [Optional] [Defaults to `undefined`] |
86
+ | **failsafe** | `0`, `1` | Set to 1 and Dockflow keeps your position per API key and filter set, so repeated identical polls skip nothing. | [Optional] [Defaults to `undefined`] [Enum: 0, 1] |
87
+
88
+ ### Return type
89
+
90
+ [**V3UpstreamGet200Response**](V3UpstreamGet200Response.md)
91
+
92
+ ### Authorization
93
+
94
+ [ApiKey](../README.md#ApiKey)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: `application/json`
100
+
101
+
102
+ ### HTTP response details
103
+ | Status code | Description | Response headers |
104
+ |-------------|-------------|------------------|
105
+ | **200** | A page of tradeflows matching the filters. Pass &#x60;next_cursor&#x60; back to read the next page; it is null on the last one. | - |
106
+ | **400** | | - |
107
+
108
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
109
+
@@ -0,0 +1,36 @@
1
+
2
+ # V3UpstreamGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;UpstreamRecord&gt;](UpstreamRecord.md)
10
+ `nextCursor` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { V3UpstreamGet200Response } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "nextCursor": null,
21
+ } satisfies V3UpstreamGet200Response
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 V3UpstreamGet200Response
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,32 @@
1
+
2
+ # V3UpstreamGet400Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { V3UpstreamGet400Response } from '@dockflow/sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies V3UpstreamGet400Response
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 V3UpstreamGet400Response
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
+
@@ -0,0 +1,81 @@
1
+ # WidgetApi
2
+
3
+ All URIs are relative to *https://api.dockflow.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**searchWidget**](WidgetApi.md#searchwidget) | **GET** /v3/widget/search | Search a shipment for the embeddable tracking widget |
8
+
9
+
10
+
11
+ ## searchWidget
12
+
13
+ > WidgetSearchResult searchWidget(q)
14
+
15
+ Search a shipment for the embeddable tracking widget
16
+
17
+ Matches a container number, booking or bill of lading within the token\&#39;s entity and returns the best match.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ WidgetApi,
25
+ } from '@dockflow/sdk';
26
+ import type { SearchWidgetRequest } from '@dockflow/sdk';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @dockflow/sdk SDK...");
30
+ const config = new Configuration({
31
+ // Configure HTTP bearer authorization: ApiKey
32
+ accessToken: "YOUR BEARER TOKEN",
33
+ });
34
+ const api = new WidgetApi(config);
35
+
36
+ const body = {
37
+ // string | Container number, booking or bill of lading reference.
38
+ q: q_example,
39
+ } satisfies SearchWidgetRequest;
40
+
41
+ try {
42
+ const data = await api.searchWidget(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **q** | `string` | Container number, booking or bill of lading reference. | [Defaults to `undefined`] |
59
+
60
+ ### Return type
61
+
62
+ [**WidgetSearchResult**](WidgetSearchResult.md)
63
+
64
+ ### Authorization
65
+
66
+ [ApiKey](../README.md#ApiKey)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: `application/json`
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ | **200** | The best match. Every field is null or empty when nothing matches. | - |
78
+ | **422** | Validation error | - |
79
+
80
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
81
+
@@ -0,0 +1,42 @@
1
+
2
+ # WidgetContainer
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `reference` | string
10
+ `typeCode` | string
11
+ `typeGroup` | string
12
+ `length` | string
13
+ `latestActualMilestone` | [WidgetMilestone](WidgetMilestone.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { WidgetContainer } from '@dockflow/sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "reference": null,
23
+ "typeCode": null,
24
+ "typeGroup": null,
25
+ "length": null,
26
+ "latestActualMilestone": null,
27
+ } satisfies WidgetContainer
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as WidgetContainer
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,36 @@
1
+
2
+ # WidgetCountry
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `isoA2` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WidgetCountry } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": null,
20
+ "isoA2": null,
21
+ } satisfies WidgetCountry
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 WidgetCountry
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,40 @@
1
+
2
+ # WidgetLeg
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `vesselName` | string
10
+ `eventDate` | string
11
+ `actual` | boolean
12
+ `location` | [WidgetLocation](WidgetLocation.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { WidgetLeg } from '@dockflow/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "vesselName": null,
22
+ "eventDate": null,
23
+ "actual": null,
24
+ "location": null,
25
+ } satisfies WidgetLeg
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as WidgetLeg
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,42 @@
1
+
2
+ # WidgetLocation
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `unlocode` | string
11
+ `timezone` | string
12
+ `country` | [WidgetCountry](WidgetCountry.md)
13
+ `point` | [WidgetPoint](WidgetPoint.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { WidgetLocation } from '@dockflow/sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "name": null,
23
+ "unlocode": null,
24
+ "timezone": null,
25
+ "country": null,
26
+ "point": null,
27
+ } satisfies WidgetLocation
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as WidgetLocation
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,40 @@
1
+
2
+ # WidgetMilestone
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `status` | string
10
+ `eventDate` | string
11
+ `vesselName` | string
12
+ `location` | [WidgetLocation](WidgetLocation.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { WidgetMilestone } from '@dockflow/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "status": null,
22
+ "eventDate": null,
23
+ "vesselName": null,
24
+ "location": null,
25
+ } satisfies WidgetMilestone
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as WidgetMilestone
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+