@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.
- package/.openapi-generator/FILES +89 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +157 -2
- package/dist/apis/V3DocumentApi.d.ts +111 -0
- package/dist/apis/V3DocumentApi.js +269 -0
- package/dist/apis/V3DownstreamApi.d.ts +63 -0
- package/dist/apis/V3DownstreamApi.js +138 -0
- package/dist/apis/V3UpstreamApi.d.ts +92 -0
- package/dist/apis/V3UpstreamApi.js +122 -0
- package/dist/apis/WidgetApi.d.ts +38 -0
- package/dist/apis/WidgetApi.js +83 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +22 -0
- package/dist/esm/apis/V3DocumentApi.d.ts +111 -0
- package/dist/esm/apis/V3DocumentApi.js +265 -0
- package/dist/esm/apis/V3DownstreamApi.d.ts +63 -0
- package/dist/esm/apis/V3DownstreamApi.js +134 -0
- package/dist/esm/apis/V3UpstreamApi.d.ts +92 -0
- package/dist/esm/apis/V3UpstreamApi.js +118 -0
- package/dist/esm/apis/WidgetApi.d.ts +38 -0
- package/dist/esm/apis/WidgetApi.js +79 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +6 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ContainerReference.d.ts +34 -0
- package/dist/esm/models/ContainerReference.js +45 -0
- package/dist/esm/models/DocumentUpdate.d.ts +38 -0
- package/dist/esm/models/DocumentUpdate.js +45 -0
- package/dist/esm/models/DocumentUpload.d.ts +70 -0
- package/dist/esm/models/DocumentUpload.js +76 -0
- package/dist/esm/models/DownstreamTradeflow.d.ts +150 -0
- package/dist/esm/models/DownstreamTradeflow.js +108 -0
- package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
- package/dist/esm/models/DownstreamTradeflowBillOfLadingReference.js +31 -0
- package/dist/esm/models/DownstreamTradeflowBookingReference.d.ts +26 -0
- package/dist/esm/models/DownstreamTradeflowBookingReference.js +31 -0
- package/dist/esm/models/DownstreamTradeflowEventsInner.d.ts +46 -0
- package/dist/esm/models/DownstreamTradeflowEventsInner.js +54 -0
- package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
- package/dist/esm/models/DownstreamTradeflowFreeTimeOverridesInner.js +59 -0
- package/dist/esm/models/DownstreamTradeflowMockTracking.d.ts +30 -0
- package/dist/esm/models/DownstreamTradeflowMockTracking.js +41 -0
- package/dist/esm/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
- package/dist/esm/models/DownstreamTradeflowPartnersInner.js +49 -0
- package/dist/esm/models/DownstreamTradeflowReferences.d.ts +38 -0
- package/dist/esm/models/DownstreamTradeflowReferences.js +45 -0
- package/dist/esm/models/InlineObject.d.ts +36 -0
- package/dist/esm/models/InlineObject.js +47 -0
- package/dist/esm/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
- package/dist/esm/models/ListDocumentTypes200ResponseInner.js +47 -0
- package/dist/esm/models/UpstreamRecord.d.ts +77 -0
- package/dist/esm/models/UpstreamRecord.js +80 -0
- package/dist/esm/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
- package/dist/esm/models/UpstreamRecordAdditionalReferences.js +43 -0
- package/dist/esm/models/UpstreamRecordDataQuality.d.ts +46 -0
- package/dist/esm/models/UpstreamRecordDataQuality.js +49 -0
- package/dist/esm/models/UpstreamRecordMetadata.d.ts +42 -0
- package/dist/esm/models/UpstreamRecordMetadata.js +48 -0
- package/dist/esm/models/V3DocumentGet200Response.d.ts +39 -0
- package/dist/esm/models/V3DocumentGet200Response.js +52 -0
- package/dist/esm/models/V3DocumentGet200ResponseDataInner.d.ts +63 -0
- package/dist/esm/models/V3DocumentGet200ResponseDataInner.js +76 -0
- package/dist/esm/models/V3DocumentGet200ResponseDataInnerDocumentType.d.ts +34 -0
- package/dist/esm/models/V3DocumentGet200ResponseDataInnerDocumentType.js +47 -0
- package/dist/esm/models/V3DocumentPost202Response.d.ts +54 -0
- package/dist/esm/models/V3DocumentPost202Response.js +67 -0
- package/dist/esm/models/V3DocumentPost400Response.d.ts +26 -0
- package/dist/esm/models/V3DocumentPost400Response.js +31 -0
- package/dist/esm/models/V3DownstreamPost202Response.d.ts +42 -0
- package/dist/esm/models/V3DownstreamPost202Response.js +56 -0
- package/dist/esm/models/V3DownstreamPost202ResponseTradeflowsInner.d.ts +34 -0
- package/dist/esm/models/V3DownstreamPost202ResponseTradeflowsInner.js +47 -0
- package/dist/esm/models/V3UpstreamGet200Response.d.ts +35 -0
- package/dist/esm/models/V3UpstreamGet200Response.js +48 -0
- package/dist/esm/models/V3UpstreamGet400Response.d.ts +26 -0
- package/dist/esm/models/V3UpstreamGet400Response.js +31 -0
- package/dist/esm/models/WidgetContainer.d.ts +47 -0
- package/dist/esm/models/WidgetContainer.js +60 -0
- package/dist/esm/models/WidgetCountry.d.ts +34 -0
- package/dist/esm/models/WidgetCountry.js +47 -0
- package/dist/esm/models/WidgetLeg.d.ts +43 -0
- package/dist/esm/models/WidgetLeg.js +56 -0
- package/dist/esm/models/WidgetLocation.d.ts +48 -0
- package/dist/esm/models/WidgetLocation.js +61 -0
- package/dist/esm/models/WidgetMilestone.d.ts +43 -0
- package/dist/esm/models/WidgetMilestone.js +56 -0
- package/dist/esm/models/WidgetPoint.d.ts +34 -0
- package/dist/esm/models/WidgetPoint.js +47 -0
- package/dist/esm/models/WidgetSearchResult.d.ts +65 -0
- package/dist/esm/models/WidgetSearchResult.js +78 -0
- package/dist/esm/models/WidgetTrack.d.ts +35 -0
- package/dist/esm/models/WidgetTrack.js +48 -0
- package/dist/esm/models/WidgetTrackReading.d.ts +38 -0
- package/dist/esm/models/WidgetTrackReading.js +51 -0
- package/dist/esm/models/index.d.ts +35 -0
- package/dist/esm/models/index.js +37 -0
- package/dist/esm/runtime.d.ts +217 -0
- package/dist/esm/runtime.js +460 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ContainerReference.d.ts +34 -0
- package/dist/models/ContainerReference.js +52 -0
- package/dist/models/DocumentUpdate.d.ts +38 -0
- package/dist/models/DocumentUpdate.js +52 -0
- package/dist/models/DocumentUpload.d.ts +70 -0
- package/dist/models/DocumentUpload.js +84 -0
- package/dist/models/DownstreamTradeflow.d.ts +150 -0
- package/dist/models/DownstreamTradeflow.js +115 -0
- package/dist/models/DownstreamTradeflowBillOfLadingReference.d.ts +26 -0
- package/dist/models/DownstreamTradeflowBillOfLadingReference.js +38 -0
- package/dist/models/DownstreamTradeflowBookingReference.d.ts +26 -0
- package/dist/models/DownstreamTradeflowBookingReference.js +38 -0
- package/dist/models/DownstreamTradeflowEventsInner.d.ts +46 -0
- package/dist/models/DownstreamTradeflowEventsInner.js +61 -0
- package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.d.ts +53 -0
- package/dist/models/DownstreamTradeflowFreeTimeOverridesInner.js +67 -0
- package/dist/models/DownstreamTradeflowMockTracking.d.ts +30 -0
- package/dist/models/DownstreamTradeflowMockTracking.js +48 -0
- package/dist/models/DownstreamTradeflowPartnersInner.d.ts +42 -0
- package/dist/models/DownstreamTradeflowPartnersInner.js +56 -0
- package/dist/models/DownstreamTradeflowReferences.d.ts +38 -0
- package/dist/models/DownstreamTradeflowReferences.js +52 -0
- package/dist/models/InlineObject.d.ts +36 -0
- package/dist/models/InlineObject.js +54 -0
- package/dist/models/ListDocumentTypes200ResponseInner.d.ts +34 -0
- package/dist/models/ListDocumentTypes200ResponseInner.js +54 -0
- package/dist/models/UpstreamRecord.d.ts +77 -0
- package/dist/models/UpstreamRecord.js +87 -0
- package/dist/models/UpstreamRecordAdditionalReferences.d.ts +34 -0
- package/dist/models/UpstreamRecordAdditionalReferences.js +50 -0
- package/dist/models/UpstreamRecordDataQuality.d.ts +46 -0
- package/dist/models/UpstreamRecordDataQuality.js +56 -0
- package/dist/models/UpstreamRecordMetadata.d.ts +42 -0
- package/dist/models/UpstreamRecordMetadata.js +55 -0
- package/dist/models/V3DocumentGet200Response.d.ts +39 -0
- package/dist/models/V3DocumentGet200Response.js +59 -0
- package/dist/models/V3DocumentGet200ResponseDataInner.d.ts +63 -0
- package/dist/models/V3DocumentGet200ResponseDataInner.js +83 -0
- package/dist/models/V3DocumentGet200ResponseDataInnerDocumentType.d.ts +34 -0
- package/dist/models/V3DocumentGet200ResponseDataInnerDocumentType.js +54 -0
- package/dist/models/V3DocumentPost202Response.d.ts +54 -0
- package/dist/models/V3DocumentPost202Response.js +74 -0
- package/dist/models/V3DocumentPost400Response.d.ts +26 -0
- package/dist/models/V3DocumentPost400Response.js +38 -0
- package/dist/models/V3DownstreamPost202Response.d.ts +42 -0
- package/dist/models/V3DownstreamPost202Response.js +64 -0
- package/dist/models/V3DownstreamPost202ResponseTradeflowsInner.d.ts +34 -0
- package/dist/models/V3DownstreamPost202ResponseTradeflowsInner.js +54 -0
- package/dist/models/V3UpstreamGet200Response.d.ts +35 -0
- package/dist/models/V3UpstreamGet200Response.js +55 -0
- package/dist/models/V3UpstreamGet400Response.d.ts +26 -0
- package/dist/models/V3UpstreamGet400Response.js +38 -0
- package/dist/models/WidgetContainer.d.ts +47 -0
- package/dist/models/WidgetContainer.js +67 -0
- package/dist/models/WidgetCountry.d.ts +34 -0
- package/dist/models/WidgetCountry.js +54 -0
- package/dist/models/WidgetLeg.d.ts +43 -0
- package/dist/models/WidgetLeg.js +63 -0
- package/dist/models/WidgetLocation.d.ts +48 -0
- package/dist/models/WidgetLocation.js +68 -0
- package/dist/models/WidgetMilestone.d.ts +43 -0
- package/dist/models/WidgetMilestone.js +63 -0
- package/dist/models/WidgetPoint.d.ts +34 -0
- package/dist/models/WidgetPoint.js +54 -0
- package/dist/models/WidgetSearchResult.d.ts +65 -0
- package/dist/models/WidgetSearchResult.js +85 -0
- package/dist/models/WidgetTrack.d.ts +35 -0
- package/dist/models/WidgetTrack.js +55 -0
- package/dist/models/WidgetTrackReading.d.ts +38 -0
- package/dist/models/WidgetTrackReading.js +58 -0
- package/dist/models/index.d.ts +35 -0
- package/dist/models/index.js +53 -0
- package/dist/runtime.d.ts +217 -0
- package/dist/runtime.js +482 -0
- package/docs/ContainerReference.md +36 -0
- package/docs/DocumentUpdate.md +39 -0
- package/docs/DocumentUpload.md +44 -0
- package/docs/DownstreamTradeflow.md +91 -0
- package/docs/DownstreamTradeflowBillOfLadingReference.md +33 -0
- package/docs/DownstreamTradeflowBookingReference.md +33 -0
- package/docs/DownstreamTradeflowEventsInner.md +42 -0
- package/docs/DownstreamTradeflowFreeTimeOverridesInner.md +40 -0
- package/docs/DownstreamTradeflowMockTracking.md +35 -0
- package/docs/DownstreamTradeflowPartnersInner.md +40 -0
- package/docs/DownstreamTradeflowReferences.md +38 -0
- package/docs/InlineObject.md +36 -0
- package/docs/ListDocumentTypes200ResponseInner.md +36 -0
- package/docs/UpstreamRecord.md +57 -0
- package/docs/UpstreamRecordAdditionalReferences.md +36 -0
- package/docs/UpstreamRecordDataQuality.md +42 -0
- package/docs/UpstreamRecordMetadata.md +40 -0
- package/docs/V3DocumentApi.md +361 -0
- package/docs/V3DocumentGet200Response.md +38 -0
- package/docs/V3DocumentGet200ResponseDataInner.md +50 -0
- package/docs/V3DocumentGet200ResponseDataInnerDocumentType.md +36 -0
- package/docs/V3DocumentPost202Response.md +46 -0
- package/docs/V3DocumentPost400Response.md +32 -0
- package/docs/V3DownstreamApi.md +158 -0
- package/docs/V3DownstreamPost202Response.md +36 -0
- package/docs/V3DownstreamPost202ResponseTradeflowsInner.md +36 -0
- package/docs/V3UpstreamApi.md +109 -0
- package/docs/V3UpstreamGet200Response.md +36 -0
- package/docs/V3UpstreamGet400Response.md +32 -0
- package/docs/WidgetApi.md +81 -0
- package/docs/WidgetContainer.md +42 -0
- package/docs/WidgetCountry.md +36 -0
- package/docs/WidgetLeg.md +40 -0
- package/docs/WidgetLocation.md +42 -0
- package/docs/WidgetMilestone.md +40 -0
- package/docs/WidgetPoint.md +36 -0
- package/docs/WidgetSearchResult.md +50 -0
- package/docs/WidgetTrack.md +36 -0
- package/docs/WidgetTrackReading.md +38 -0
- package/package.json +20 -4
- package/src/apis/V3DocumentApi.ts +357 -0
- package/src/apis/V3DownstreamApi.ts +174 -0
- package/src/apis/V3UpstreamApi.ts +185 -0
- package/src/apis/WidgetApi.ts +97 -0
- package/src/apis/index.ts +6 -0
- package/src/index.ts +5 -0
- package/src/models/ContainerReference.ts +70 -0
- package/src/models/DocumentUpdate.ts +75 -0
- package/src/models/DocumentUpload.ts +119 -0
- package/src/models/DownstreamTradeflow.ts +289 -0
- package/src/models/DownstreamTradeflowBillOfLadingReference.ts +46 -0
- package/src/models/DownstreamTradeflowBookingReference.ts +46 -0
- package/src/models/DownstreamTradeflowEventsInner.ts +89 -0
- package/src/models/DownstreamTradeflowFreeTimeOverridesInner.ts +96 -0
- package/src/models/DownstreamTradeflowMockTracking.ts +63 -0
- package/src/models/DownstreamTradeflowPartnersInner.ts +82 -0
- package/src/models/DownstreamTradeflowReferences.ts +75 -0
- package/src/models/InlineObject.ts +71 -0
- package/src/models/ListDocumentTypes200ResponseInner.ts +71 -0
- package/src/models/UpstreamRecord.ts +158 -0
- package/src/models/UpstreamRecordAdditionalReferences.ts +69 -0
- package/src/models/UpstreamRecordDataQuality.ts +87 -0
- package/src/models/UpstreamRecordMetadata.ts +81 -0
- package/src/models/V3DocumentGet200Response.ts +86 -0
- package/src/models/V3DocumentGet200ResponseDataInner.ts +128 -0
- package/src/models/V3DocumentGet200ResponseDataInnerDocumentType.ts +71 -0
- package/src/models/V3DocumentPost202Response.ts +106 -0
- package/src/models/V3DocumentPost400Response.ts +46 -0
- package/src/models/V3DownstreamPost202Response.ts +91 -0
- package/src/models/V3DownstreamPost202ResponseTradeflowsInner.ts +71 -0
- package/src/models/V3UpstreamGet200Response.ts +79 -0
- package/src/models/V3UpstreamGet400Response.ts +46 -0
- package/src/models/WidgetContainer.ts +100 -0
- package/src/models/WidgetCountry.ts +71 -0
- package/src/models/WidgetLeg.ts +93 -0
- package/src/models/WidgetLocation.ts +107 -0
- package/src/models/WidgetMilestone.ts +93 -0
- package/src/models/WidgetPoint.ts +71 -0
- package/src/models/WidgetSearchResult.ts +142 -0
- package/src/models/WidgetTrack.ts +79 -0
- package/src/models/WidgetTrackReading.ts +78 -0
- package/src/models/index.ts +37 -0
- package/src/runtime.ts +572 -0
- package/tsconfig.esm.json +7 -0
- 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<V3DownstreamPost202ResponseTradeflowsInner>](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<string>
|
|
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 `''`] |
|
|
84
|
+
| **format** | `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] [Defaults to `'v3'`] [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 `next_cursor` 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<UpstreamRecord>](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\'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
|
+
|