@dockflow/sdk 0.0.0-stage → 0.3.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 +162 -2
  5. package/dist/apis/DocumentsApi.d.ts +111 -0
  6. package/dist/apis/DocumentsApi.js +269 -0
  7. package/dist/apis/TradeflowsApi.d.ts +63 -0
  8. package/dist/apis/TradeflowsApi.js +138 -0
  9. package/dist/apis/UpstreamApi.d.ts +92 -0
  10. package/dist/apis/UpstreamApi.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/DocumentsApi.d.ts +111 -0
  16. package/dist/esm/apis/DocumentsApi.js +265 -0
  17. package/dist/esm/apis/TradeflowsApi.d.ts +63 -0
  18. package/dist/esm/apis/TradeflowsApi.js +134 -0
  19. package/dist/esm/apis/UpstreamApi.d.ts +92 -0
  20. package/dist/esm/apis/UpstreamApi.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/CreateTradeflows202Response.d.ts +42 -0
  30. package/dist/esm/models/CreateTradeflows202Response.js +56 -0
  31. package/dist/esm/models/CreateTradeflows202ResponseTradeflowsInner.d.ts +34 -0
  32. package/dist/esm/models/CreateTradeflows202ResponseTradeflowsInner.js +47 -0
  33. package/dist/esm/models/DocumentUpdate.d.ts +38 -0
  34. package/dist/esm/models/DocumentUpdate.js +45 -0
  35. package/dist/esm/models/DocumentUpload.d.ts +70 -0
  36. package/dist/esm/models/DocumentUpload.js +76 -0
  37. package/dist/esm/models/DownstreamTradeflow.d.ts +150 -0
  38. package/dist/esm/models/DownstreamTradeflow.js +108 -0
  39. package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
  40. package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.js +31 -0
  41. package/dist/esm/models/DownstreamTradeflowBookingReference.d.ts +26 -0
  42. package/dist/esm/models/DownstreamTradeflowBookingReference.js +31 -0
  43. package/dist/esm/models/DownstreamTradeflowEventsInner.d.ts +46 -0
  44. package/dist/esm/models/DownstreamTradeflowEventsInner.js +54 -0
  45. package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
  46. package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.js +59 -0
  47. package/dist/esm/models/DownstreamTradeflowMockTracking.d.ts +30 -0
  48. package/dist/esm/models/DownstreamTradeflowMockTracking.js +41 -0
  49. package/dist/esm/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
  50. package/dist/esm/models/DownstreamTradeflowPartnersInner.js +49 -0
  51. package/dist/esm/models/DownstreamTradeflowReferences.d.ts +38 -0
  52. package/dist/esm/models/DownstreamTradeflowReferences.js +45 -0
  53. package/dist/esm/models/GetDocument200Response.d.ts +39 -0
  54. package/dist/esm/models/GetDocument200Response.js +52 -0
  55. package/dist/esm/models/GetDocument200ResponseDataInner.d.ts +63 -0
  56. package/dist/esm/models/GetDocument200ResponseDataInner.js +76 -0
  57. package/dist/esm/models/GetDocument200ResponseDataInnerDocumentType.d.ts +34 -0
  58. package/dist/esm/models/GetDocument200ResponseDataInnerDocumentType.js +47 -0
  59. package/dist/esm/models/GetUpstream200Response.d.ts +35 -0
  60. package/dist/esm/models/GetUpstream200Response.js +48 -0
  61. package/dist/esm/models/GetUpstream400Response.d.ts +26 -0
  62. package/dist/esm/models/GetUpstream400Response.js +31 -0
  63. package/dist/esm/models/InlineObject.d.ts +36 -0
  64. package/dist/esm/models/InlineObject.js +47 -0
  65. package/dist/esm/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
  66. package/dist/esm/models/ListDocumentTypes200ResponseInner.js +47 -0
  67. package/dist/esm/models/UploadDocument202Response.d.ts +54 -0
  68. package/dist/esm/models/UploadDocument202Response.js +67 -0
  69. package/dist/esm/models/UploadDocument400Response.d.ts +26 -0
  70. package/dist/esm/models/UploadDocument400Response.js +31 -0
  71. package/dist/esm/models/UpstreamRecord.d.ts +77 -0
  72. package/dist/esm/models/UpstreamRecord.js +80 -0
  73. package/dist/esm/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
  74. package/dist/esm/models/UpstreamRecordAdditionalReferences.js +43 -0
  75. package/dist/esm/models/UpstreamRecordDataQuality.d.ts +46 -0
  76. package/dist/esm/models/UpstreamRecordDataQuality.js +49 -0
  77. package/dist/esm/models/UpstreamRecordMetadata.d.ts +42 -0
  78. package/dist/esm/models/UpstreamRecordMetadata.js +48 -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/CreateTradeflows202Response.d.ts +42 -0
  106. package/dist/models/CreateTradeflows202Response.js +64 -0
  107. package/dist/models/CreateTradeflows202ResponseTradeflowsInner.d.ts +34 -0
  108. package/dist/models/CreateTradeflows202ResponseTradeflowsInner.js +54 -0
  109. package/dist/models/DocumentUpdate.d.ts +38 -0
  110. package/dist/models/DocumentUpdate.js +52 -0
  111. package/dist/models/DocumentUpload.d.ts +70 -0
  112. package/dist/models/DocumentUpload.js +84 -0
  113. package/dist/models/DownstreamTradeflow.d.ts +150 -0
  114. package/dist/models/DownstreamTradeflow.js +115 -0
  115. package/dist/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
  116. package/dist/models/DownstreamTradeflowBillOfLadingReference.js +38 -0
  117. package/dist/models/DownstreamTradeflowBookingReference.d.ts +26 -0
  118. package/dist/models/DownstreamTradeflowBookingReference.js +38 -0
  119. package/dist/models/DownstreamTradeflowEventsInner.d.ts +46 -0
  120. package/dist/models/DownstreamTradeflowEventsInner.js +61 -0
  121. package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
  122. package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.js +67 -0
  123. package/dist/models/DownstreamTradeflowMockTracking.d.ts +30 -0
  124. package/dist/models/DownstreamTradeflowMockTracking.js +48 -0
  125. package/dist/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
  126. package/dist/models/DownstreamTradeflowPartnersInner.js +56 -0
  127. package/dist/models/DownstreamTradeflowReferences.d.ts +38 -0
  128. package/dist/models/DownstreamTradeflowReferences.js +52 -0
  129. package/dist/models/GetDocument200Response.d.ts +39 -0
  130. package/dist/models/GetDocument200Response.js +59 -0
  131. package/dist/models/GetDocument200ResponseDataInner.d.ts +63 -0
  132. package/dist/models/GetDocument200ResponseDataInner.js +83 -0
  133. package/dist/models/GetDocument200ResponseDataInnerDocumentType.d.ts +34 -0
  134. package/dist/models/GetDocument200ResponseDataInnerDocumentType.js +54 -0
  135. package/dist/models/GetUpstream200Response.d.ts +35 -0
  136. package/dist/models/GetUpstream200Response.js +55 -0
  137. package/dist/models/GetUpstream400Response.d.ts +26 -0
  138. package/dist/models/GetUpstream400Response.js +38 -0
  139. package/dist/models/InlineObject.d.ts +36 -0
  140. package/dist/models/InlineObject.js +54 -0
  141. package/dist/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
  142. package/dist/models/ListDocumentTypes200ResponseInner.js +54 -0
  143. package/dist/models/UploadDocument202Response.d.ts +54 -0
  144. package/dist/models/UploadDocument202Response.js +74 -0
  145. package/dist/models/UploadDocument400Response.d.ts +26 -0
  146. package/dist/models/UploadDocument400Response.js +38 -0
  147. package/dist/models/UpstreamRecord.d.ts +77 -0
  148. package/dist/models/UpstreamRecord.js +87 -0
  149. package/dist/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
  150. package/dist/models/UpstreamRecordAdditionalReferences.js +50 -0
  151. package/dist/models/UpstreamRecordDataQuality.d.ts +46 -0
  152. package/dist/models/UpstreamRecordDataQuality.js +56 -0
  153. package/dist/models/UpstreamRecordMetadata.d.ts +42 -0
  154. package/dist/models/UpstreamRecordMetadata.js +55 -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/CreateTradeflows202Response.md +36 -0
  179. package/docs/CreateTradeflows202ResponseTradeflowsInner.md +36 -0
  180. package/docs/DocumentUpdate.md +39 -0
  181. package/docs/DocumentUpload.md +44 -0
  182. package/docs/DocumentsApi.md +361 -0
  183. package/docs/DownstreamTradeflow.md +91 -0
  184. package/docs/DownstreamTradeflowBillOfLadingReference.md +33 -0
  185. package/docs/DownstreamTradeflowBookingReference.md +33 -0
  186. package/docs/DownstreamTradeflowEventsInner.md +42 -0
  187. package/docs/DownstreamTradeflowFreeTimeOverridesInner.md +40 -0
  188. package/docs/DownstreamTradeflowMockTracking.md +35 -0
  189. package/docs/DownstreamTradeflowPartnersInner.md +40 -0
  190. package/docs/DownstreamTradeflowReferences.md +38 -0
  191. package/docs/GetDocument200Response.md +38 -0
  192. package/docs/GetDocument200ResponseDataInner.md +50 -0
  193. package/docs/GetDocument200ResponseDataInnerDocumentType.md +36 -0
  194. package/docs/GetUpstream200Response.md +36 -0
  195. package/docs/GetUpstream400Response.md +32 -0
  196. package/docs/InlineObject.md +36 -0
  197. package/docs/ListDocumentTypes200ResponseInner.md +36 -0
  198. package/docs/TradeflowsApi.md +158 -0
  199. package/docs/UploadDocument202Response.md +46 -0
  200. package/docs/UploadDocument400Response.md +32 -0
  201. package/docs/UpstreamApi.md +109 -0
  202. package/docs/UpstreamRecord.md +57 -0
  203. package/docs/UpstreamRecordAdditionalReferences.md +36 -0
  204. package/docs/UpstreamRecordDataQuality.md +42 -0
  205. package/docs/UpstreamRecordMetadata.md +40 -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/DocumentsApi.ts +357 -0
  218. package/src/apis/TradeflowsApi.ts +174 -0
  219. package/src/apis/UpstreamApi.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/CreateTradeflows202Response.ts +91 -0
  225. package/src/models/CreateTradeflows202ResponseTradeflowsInner.ts +71 -0
  226. package/src/models/DocumentUpdate.ts +75 -0
  227. package/src/models/DocumentUpload.ts +119 -0
  228. package/src/models/DownstreamTradeflow.ts +289 -0
  229. package/src/models/DownstreamTradeflowBillOfLadingReference.ts +46 -0
  230. package/src/models/DownstreamTradeflowBookingReference.ts +46 -0
  231. package/src/models/DownstreamTradeflowEventsInner.ts +89 -0
  232. package/src/models/DownstreamTradeflowFreeTimeOverridesInner.ts +96 -0
  233. package/src/models/DownstreamTradeflowMockTracking.ts +63 -0
  234. package/src/models/DownstreamTradeflowPartnersInner.ts +82 -0
  235. package/src/models/DownstreamTradeflowReferences.ts +75 -0
  236. package/src/models/GetDocument200Response.ts +86 -0
  237. package/src/models/GetDocument200ResponseDataInner.ts +128 -0
  238. package/src/models/GetDocument200ResponseDataInnerDocumentType.ts +71 -0
  239. package/src/models/GetUpstream200Response.ts +79 -0
  240. package/src/models/GetUpstream400Response.ts +46 -0
  241. package/src/models/InlineObject.ts +71 -0
  242. package/src/models/ListDocumentTypes200ResponseInner.ts +71 -0
  243. package/src/models/UploadDocument202Response.ts +106 -0
  244. package/src/models/UploadDocument400Response.ts +46 -0
  245. package/src/models/UpstreamRecord.ts +158 -0
  246. package/src/models/UpstreamRecordAdditionalReferences.ts +69 -0
  247. package/src/models/UpstreamRecordDataQuality.ts +87 -0
  248. package/src/models/UpstreamRecordMetadata.ts +81 -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,57 @@
1
+
2
+ # UpstreamRecord
3
+
4
+ One record per shipment of a tradeflow. The locations, containers, vessels, shipment and events blocks are present when requested with fields.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `version` | string
11
+ `tradeflowReference` | string
12
+ `billOfLading` | string
13
+ `booking` | string
14
+ `additionalReferences` | [UpstreamRecordAdditionalReferences](UpstreamRecordAdditionalReferences.md)
15
+ `dataQuality` | [UpstreamRecordDataQuality](UpstreamRecordDataQuality.md)
16
+ `metadata` | [UpstreamRecordMetadata](UpstreamRecordMetadata.md)
17
+ `locations` | Array<object>
18
+ `containers` | Array<object>
19
+ `vessels` | Array<object>
20
+ `shipment` | object
21
+ `events` | Array<object>
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { UpstreamRecord } from '@dockflow/sdk'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "version": null,
31
+ "tradeflowReference": null,
32
+ "billOfLading": null,
33
+ "booking": null,
34
+ "additionalReferences": null,
35
+ "dataQuality": null,
36
+ "metadata": null,
37
+ "locations": null,
38
+ "containers": null,
39
+ "vessels": null,
40
+ "shipment": null,
41
+ "events": null,
42
+ } satisfies UpstreamRecord
43
+
44
+ console.log(example)
45
+
46
+ // Convert the instance to a JSON string
47
+ const exampleJSON: string = JSON.stringify(example)
48
+ console.log(exampleJSON)
49
+
50
+ // Parse the JSON string back to an object
51
+ const exampleParsed = JSON.parse(exampleJSON) as UpstreamRecord
52
+ console.log(exampleParsed)
53
+ ```
54
+
55
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
56
+
57
+
@@ -0,0 +1,36 @@
1
+
2
+ # UpstreamRecordAdditionalReferences
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `billOfLading` | Array<string>
10
+ `booking` | Array<string>
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { UpstreamRecordAdditionalReferences } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "billOfLading": null,
20
+ "booking": null,
21
+ } satisfies UpstreamRecordAdditionalReferences
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 UpstreamRecordAdditionalReferences
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,42 @@
1
+
2
+ # UpstreamRecordDataQuality
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `freshnessMin` | number
10
+ `anomalies` | number
11
+ `missedMilestones` | number
12
+ `hasLiveData` | boolean
13
+ `isSingularShipment` | boolean
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { UpstreamRecordDataQuality } from '@dockflow/sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "freshnessMin": null,
23
+ "anomalies": null,
24
+ "missedMilestones": null,
25
+ "hasLiveData": null,
26
+ "isSingularShipment": null,
27
+ } satisfies UpstreamRecordDataQuality
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 UpstreamRecordDataQuality
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
+ # UpstreamRecordMetadata
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `lastUpdated` | Date
10
+ `carrierName` | string
11
+ `carrierScac` | string
12
+ `isActive` | boolean
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { UpstreamRecordMetadata } from '@dockflow/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "lastUpdated": null,
22
+ "carrierName": null,
23
+ "carrierScac": null,
24
+ "isActive": null,
25
+ } satisfies UpstreamRecordMetadata
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 UpstreamRecordMetadata
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,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\'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
+
@@ -0,0 +1,36 @@
1
+
2
+ # WidgetPoint
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `lat` | number
10
+ `lng` | number
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WidgetPoint } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "lat": null,
20
+ "lng": null,
21
+ } satisfies WidgetPoint
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 WidgetPoint
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,50 @@
1
+
2
+ # WidgetSearchResult
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `references` | Array<string>
10
+ `carrier` | string
11
+ `bookingReference` | string
12
+ `billOfLadingReference` | string
13
+ `departure` | [WidgetLeg](WidgetLeg.md)
14
+ `arrival` | [WidgetLeg](WidgetLeg.md)
15
+ `containers` | [Array<WidgetContainer>](WidgetContainer.md)
16
+ `tracks` | [Array<WidgetTrack>](WidgetTrack.md)
17
+ `detailsUrl` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { WidgetSearchResult } from '@dockflow/sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "references": null,
27
+ "carrier": null,
28
+ "bookingReference": null,
29
+ "billOfLadingReference": null,
30
+ "departure": null,
31
+ "arrival": null,
32
+ "containers": null,
33
+ "tracks": null,
34
+ "detailsUrl": null,
35
+ } satisfies WidgetSearchResult
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 WidgetSearchResult
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
+ # WidgetTrack
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `deviceReference` | string
10
+ `readings` | [Array<WidgetTrackReading>](WidgetTrackReading.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WidgetTrack } from '@dockflow/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "deviceReference": null,
20
+ "readings": null,
21
+ } satisfies WidgetTrack
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 WidgetTrack
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,38 @@
1
+
2
+ # WidgetTrackReading
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `eventDate` | string
10
+ `lat` | number
11
+ `lng` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { WidgetTrackReading } from '@dockflow/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "eventDate": null,
21
+ "lat": null,
22
+ "lng": null,
23
+ } satisfies WidgetTrackReading
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 WidgetTrackReading
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
+
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "@dockflow/sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "description": "OpenAPI client for @dockflow/sdk",
5
+ "author": "OpenAPI-Generator",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Dockflow/dockflow-sdks.git"
9
+ },
10
+ "license": "MIT",
11
+ "main": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "module": "./dist/esm/index.js",
14
+ "sideEffects": false,
15
+ "scripts": {
16
+ "build": "tsc && tsc -p tsconfig.esm.json",
17
+ "prepare": "npm run build"
18
+ },
19
+ "devDependencies": {
20
+ "typescript": "^4.0 || ^5.0"
21
+ }
22
+ }