@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.
- package/.openapi-generator/FILES +89 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +162 -2
- package/dist/apis/DocumentsApi.d.ts +111 -0
- package/dist/apis/DocumentsApi.js +269 -0
- package/dist/apis/TradeflowsApi.d.ts +63 -0
- package/dist/apis/TradeflowsApi.js +138 -0
- package/dist/apis/UpstreamApi.d.ts +92 -0
- package/dist/apis/UpstreamApi.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/DocumentsApi.d.ts +111 -0
- package/dist/esm/apis/DocumentsApi.js +265 -0
- package/dist/esm/apis/TradeflowsApi.d.ts +63 -0
- package/dist/esm/apis/TradeflowsApi.js +134 -0
- package/dist/esm/apis/UpstreamApi.d.ts +92 -0
- package/dist/esm/apis/UpstreamApi.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/CreateTradeflows202Response.d.ts +42 -0
- package/dist/esm/models/CreateTradeflows202Response.js +56 -0
- package/dist/esm/models/CreateTradeflows202ResponseTradeflowsInner.d.ts +34 -0
- package/dist/esm/models/CreateTradeflows202ResponseTradeflowsInner.js +47 -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/GetDocument200Response.d.ts +39 -0
- package/dist/esm/models/GetDocument200Response.js +52 -0
- package/dist/esm/models/GetDocument200ResponseDataInner.d.ts +63 -0
- package/dist/esm/models/GetDocument200ResponseDataInner.js +76 -0
- package/dist/esm/models/GetDocument200ResponseDataInnerDocumentType.d.ts +34 -0
- package/dist/esm/models/GetDocument200ResponseDataInnerDocumentType.js +47 -0
- package/dist/esm/models/GetUpstream200Response.d.ts +35 -0
- package/dist/esm/models/GetUpstream200Response.js +48 -0
- package/dist/esm/models/GetUpstream400Response.d.ts +26 -0
- package/dist/esm/models/GetUpstream400Response.js +31 -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/UploadDocument202Response.d.ts +54 -0
- package/dist/esm/models/UploadDocument202Response.js +67 -0
- package/dist/esm/models/UploadDocument400Response.d.ts +26 -0
- package/dist/esm/models/UploadDocument400Response.js +31 -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/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/CreateTradeflows202Response.d.ts +42 -0
- package/dist/models/CreateTradeflows202Response.js +64 -0
- package/dist/models/CreateTradeflows202ResponseTradeflowsInner.d.ts +34 -0
- package/dist/models/CreateTradeflows202ResponseTradeflowsInner.js +54 -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/GetDocument200Response.d.ts +39 -0
- package/dist/models/GetDocument200Response.js +59 -0
- package/dist/models/GetDocument200ResponseDataInner.d.ts +63 -0
- package/dist/models/GetDocument200ResponseDataInner.js +83 -0
- package/dist/models/GetDocument200ResponseDataInnerDocumentType.d.ts +34 -0
- package/dist/models/GetDocument200ResponseDataInnerDocumentType.js +54 -0
- package/dist/models/GetUpstream200Response.d.ts +35 -0
- package/dist/models/GetUpstream200Response.js +55 -0
- package/dist/models/GetUpstream400Response.d.ts +26 -0
- package/dist/models/GetUpstream400Response.js +38 -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/UploadDocument202Response.d.ts +54 -0
- package/dist/models/UploadDocument202Response.js +74 -0
- package/dist/models/UploadDocument400Response.d.ts +26 -0
- package/dist/models/UploadDocument400Response.js +38 -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/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/CreateTradeflows202Response.md +36 -0
- package/docs/CreateTradeflows202ResponseTradeflowsInner.md +36 -0
- package/docs/DocumentUpdate.md +39 -0
- package/docs/DocumentUpload.md +44 -0
- package/docs/DocumentsApi.md +361 -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/GetDocument200Response.md +38 -0
- package/docs/GetDocument200ResponseDataInner.md +50 -0
- package/docs/GetDocument200ResponseDataInnerDocumentType.md +36 -0
- package/docs/GetUpstream200Response.md +36 -0
- package/docs/GetUpstream400Response.md +32 -0
- package/docs/InlineObject.md +36 -0
- package/docs/ListDocumentTypes200ResponseInner.md +36 -0
- package/docs/TradeflowsApi.md +158 -0
- package/docs/UploadDocument202Response.md +46 -0
- package/docs/UploadDocument400Response.md +32 -0
- package/docs/UpstreamApi.md +109 -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/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/DocumentsApi.ts +357 -0
- package/src/apis/TradeflowsApi.ts +174 -0
- package/src/apis/UpstreamApi.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/CreateTradeflows202Response.ts +91 -0
- package/src/models/CreateTradeflows202ResponseTradeflowsInner.ts +71 -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/GetDocument200Response.ts +86 -0
- package/src/models/GetDocument200ResponseDataInner.ts +128 -0
- package/src/models/GetDocument200ResponseDataInnerDocumentType.ts +71 -0
- package/src/models/GetUpstream200Response.ts +79 -0
- package/src/models/GetUpstream400Response.ts +46 -0
- package/src/models/InlineObject.ts +71 -0
- package/src/models/ListDocumentTypes200ResponseInner.ts +71 -0
- package/src/models/UploadDocument202Response.ts +106 -0
- package/src/models/UploadDocument400Response.ts +46 -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/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,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpstreamRecordMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface UpstreamRecordMetadata {
|
|
22
|
+
/**
|
|
23
|
+
* Keep since unchanged while following next_cursor; after the last page, use the highest value as the next since.
|
|
24
|
+
*/
|
|
25
|
+
lastUpdated?: Date;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
carrierName?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
carrierScac?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
isActive?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the UpstreamRecordMetadata interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfUpstreamRecordMetadata(value: object): value is UpstreamRecordMetadata {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpstreamRecordMetadataFromJSON(json: any): UpstreamRecordMetadata {
|
|
48
|
+
return UpstreamRecordMetadataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpstreamRecordMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpstreamRecordMetadata {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'lastUpdated': json['last_updated'] == null ? undefined : (parseDateTime(json['last_updated'])),
|
|
58
|
+
'carrierName': json['carrier_name'] === undefined ? undefined : json['carrier_name'] === null ? null : json['carrier_name'],
|
|
59
|
+
'carrierScac': json['carrier_scac'] === undefined ? undefined : json['carrier_scac'] === null ? null : json['carrier_scac'],
|
|
60
|
+
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpstreamRecordMetadataToJSON(json: any): UpstreamRecordMetadata {
|
|
65
|
+
return UpstreamRecordMetadataToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UpstreamRecordMetadataToJSONTyped(value?: UpstreamRecordMetadata | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'last_updated': value['lastUpdated'] == null ? value['lastUpdated'] : serializeDateTime(value['lastUpdated']),
|
|
76
|
+
'carrier_name': value['carrierName'],
|
|
77
|
+
'carrier_scac': value['carrierScac'],
|
|
78
|
+
'is_active': value['isActive'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WidgetMilestone } from './WidgetMilestone';
|
|
17
|
+
import {
|
|
18
|
+
WidgetMilestoneFromJSON,
|
|
19
|
+
WidgetMilestoneFromJSONTyped,
|
|
20
|
+
WidgetMilestoneToJSON,
|
|
21
|
+
WidgetMilestoneToJSONTyped,
|
|
22
|
+
} from './WidgetMilestone';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WidgetContainer
|
|
28
|
+
*/
|
|
29
|
+
export interface WidgetContainer {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
reference: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
typeCode: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
typeGroup: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
length: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
latestActualMilestone: WidgetMilestone | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the WidgetContainer interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfWidgetContainer(value: object): value is WidgetContainer {
|
|
56
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
57
|
+
if ((!('typeCode' in (value as Record<string, any>)) && !('type_code' in (value as Record<string, any>))) || ((value as Record<string, any>)['typeCode'] === undefined && (value as Record<string, any>)['type_code'] === undefined)) return false;
|
|
58
|
+
if ((!('typeGroup' in (value as Record<string, any>)) && !('type_group' in (value as Record<string, any>))) || ((value as Record<string, any>)['typeGroup'] === undefined && (value as Record<string, any>)['type_group'] === undefined)) return false;
|
|
59
|
+
if (!('length' in value) || value['length'] === undefined) return false;
|
|
60
|
+
if ((!('latestActualMilestone' in (value as Record<string, any>)) && !('latest_actual_milestone' in (value as Record<string, any>))) || ((value as Record<string, any>)['latestActualMilestone'] === undefined && (value as Record<string, any>)['latest_actual_milestone'] === undefined)) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function WidgetContainerFromJSON(json: any): WidgetContainer {
|
|
65
|
+
return WidgetContainerFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function WidgetContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetContainer {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'reference': json['reference'],
|
|
75
|
+
'typeCode': json['type_code'],
|
|
76
|
+
'typeGroup': json['type_group'],
|
|
77
|
+
'length': json['length'],
|
|
78
|
+
'latestActualMilestone': WidgetMilestoneFromJSON(json['latest_actual_milestone']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function WidgetContainerToJSON(json: any): WidgetContainer {
|
|
83
|
+
return WidgetContainerToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function WidgetContainerToJSONTyped(value?: WidgetContainer | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'reference': value['reference'],
|
|
94
|
+
'type_code': value['typeCode'],
|
|
95
|
+
'type_group': value['typeGroup'],
|
|
96
|
+
'length': value['length'],
|
|
97
|
+
'latest_actual_milestone': WidgetMilestoneToJSON(value['latestActualMilestone']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WidgetCountry
|
|
20
|
+
*/
|
|
21
|
+
export interface WidgetCountry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
name: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
isoA2: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the WidgetCountry interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfWidgetCountry(value: object): value is WidgetCountry {
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
37
|
+
if ((!('isoA2' in (value as Record<string, any>)) && !('iso_a2' in (value as Record<string, any>))) || ((value as Record<string, any>)['isoA2'] === undefined && (value as Record<string, any>)['iso_a2'] === undefined)) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function WidgetCountryFromJSON(json: any): WidgetCountry {
|
|
42
|
+
return WidgetCountryFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WidgetCountryFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCountry {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'isoA2': json['iso_a2'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WidgetCountryToJSON(json: any): WidgetCountry {
|
|
57
|
+
return WidgetCountryToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function WidgetCountryToJSONTyped(value?: WidgetCountry | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'iso_a2': value['isoA2'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WidgetLocation } from './WidgetLocation';
|
|
17
|
+
import {
|
|
18
|
+
WidgetLocationFromJSON,
|
|
19
|
+
WidgetLocationFromJSONTyped,
|
|
20
|
+
WidgetLocationToJSON,
|
|
21
|
+
WidgetLocationToJSONTyped,
|
|
22
|
+
} from './WidgetLocation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WidgetLeg
|
|
28
|
+
*/
|
|
29
|
+
export interface WidgetLeg {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
vesselName: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
eventDate: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
actual: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
location: WidgetLocation | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the WidgetLeg interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfWidgetLeg(value: object): value is WidgetLeg {
|
|
52
|
+
if ((!('vesselName' in (value as Record<string, any>)) && !('vessel_name' in (value as Record<string, any>))) || ((value as Record<string, any>)['vesselName'] === undefined && (value as Record<string, any>)['vessel_name'] === undefined)) return false;
|
|
53
|
+
if ((!('eventDate' in (value as Record<string, any>)) && !('event_date' in (value as Record<string, any>))) || ((value as Record<string, any>)['eventDate'] === undefined && (value as Record<string, any>)['event_date'] === undefined)) return false;
|
|
54
|
+
if (!('actual' in value) || value['actual'] === undefined) return false;
|
|
55
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function WidgetLegFromJSON(json: any): WidgetLeg {
|
|
60
|
+
return WidgetLegFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function WidgetLegFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetLeg {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'vesselName': json['vessel_name'],
|
|
70
|
+
'eventDate': json['event_date'],
|
|
71
|
+
'actual': json['actual'],
|
|
72
|
+
'location': WidgetLocationFromJSON(json['location']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function WidgetLegToJSON(json: any): WidgetLeg {
|
|
77
|
+
return WidgetLegToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function WidgetLegToJSONTyped(value?: WidgetLeg | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'vessel_name': value['vesselName'],
|
|
88
|
+
'event_date': value['eventDate'],
|
|
89
|
+
'actual': value['actual'],
|
|
90
|
+
'location': WidgetLocationToJSON(value['location']),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WidgetPoint } from './WidgetPoint';
|
|
17
|
+
import {
|
|
18
|
+
WidgetPointFromJSON,
|
|
19
|
+
WidgetPointFromJSONTyped,
|
|
20
|
+
WidgetPointToJSON,
|
|
21
|
+
WidgetPointToJSONTyped,
|
|
22
|
+
} from './WidgetPoint';
|
|
23
|
+
import type { WidgetCountry } from './WidgetCountry';
|
|
24
|
+
import {
|
|
25
|
+
WidgetCountryFromJSON,
|
|
26
|
+
WidgetCountryFromJSONTyped,
|
|
27
|
+
WidgetCountryToJSON,
|
|
28
|
+
WidgetCountryToJSONTyped,
|
|
29
|
+
} from './WidgetCountry';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface WidgetLocation
|
|
35
|
+
*/
|
|
36
|
+
export interface WidgetLocation {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
name: string | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
unlocode: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
timezone: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
country: WidgetCountry | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
point: WidgetPoint | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the WidgetLocation interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfWidgetLocation(value: object): value is WidgetLocation {
|
|
63
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
64
|
+
if (!('unlocode' in value) || value['unlocode'] === undefined) return false;
|
|
65
|
+
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
66
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
67
|
+
if (!('point' in value) || value['point'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function WidgetLocationFromJSON(json: any): WidgetLocation {
|
|
72
|
+
return WidgetLocationFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function WidgetLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetLocation {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': json['name'],
|
|
82
|
+
'unlocode': json['unlocode'],
|
|
83
|
+
'timezone': json['timezone'],
|
|
84
|
+
'country': WidgetCountryFromJSON(json['country']),
|
|
85
|
+
'point': WidgetPointFromJSON(json['point']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function WidgetLocationToJSON(json: any): WidgetLocation {
|
|
90
|
+
return WidgetLocationToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function WidgetLocationToJSONTyped(value?: WidgetLocation | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'name': value['name'],
|
|
101
|
+
'unlocode': value['unlocode'],
|
|
102
|
+
'timezone': value['timezone'],
|
|
103
|
+
'country': WidgetCountryToJSON(value['country']),
|
|
104
|
+
'point': WidgetPointToJSON(value['point']),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WidgetLocation } from './WidgetLocation';
|
|
17
|
+
import {
|
|
18
|
+
WidgetLocationFromJSON,
|
|
19
|
+
WidgetLocationFromJSONTyped,
|
|
20
|
+
WidgetLocationToJSON,
|
|
21
|
+
WidgetLocationToJSONTyped,
|
|
22
|
+
} from './WidgetLocation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface WidgetMilestone
|
|
28
|
+
*/
|
|
29
|
+
export interface WidgetMilestone {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
status: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
eventDate: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
vesselName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
location: WidgetLocation | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the WidgetMilestone interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfWidgetMilestone(value: object): value is WidgetMilestone {
|
|
52
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
53
|
+
if ((!('eventDate' in (value as Record<string, any>)) && !('event_date' in (value as Record<string, any>))) || ((value as Record<string, any>)['eventDate'] === undefined && (value as Record<string, any>)['event_date'] === undefined)) return false;
|
|
54
|
+
if ((!('vesselName' in (value as Record<string, any>)) && !('vessel_name' in (value as Record<string, any>))) || ((value as Record<string, any>)['vesselName'] === undefined && (value as Record<string, any>)['vessel_name'] === undefined)) return false;
|
|
55
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function WidgetMilestoneFromJSON(json: any): WidgetMilestone {
|
|
60
|
+
return WidgetMilestoneFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function WidgetMilestoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetMilestone {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
'eventDate': json['event_date'],
|
|
71
|
+
'vesselName': json['vessel_name'],
|
|
72
|
+
'location': WidgetLocationFromJSON(json['location']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function WidgetMilestoneToJSON(json: any): WidgetMilestone {
|
|
77
|
+
return WidgetMilestoneToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function WidgetMilestoneToJSONTyped(value?: WidgetMilestone | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'event_date': value['eventDate'],
|
|
89
|
+
'vessel_name': value['vesselName'],
|
|
90
|
+
'location': WidgetLocationToJSON(value['location']),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dockflow v3 API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WidgetPoint
|
|
20
|
+
*/
|
|
21
|
+
export interface WidgetPoint {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
lat: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
lng: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the WidgetPoint interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfWidgetPoint(value: object): value is WidgetPoint {
|
|
36
|
+
if (!('lat' in value) || value['lat'] === undefined) return false;
|
|
37
|
+
if (!('lng' in value) || value['lng'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function WidgetPointFromJSON(json: any): WidgetPoint {
|
|
42
|
+
return WidgetPointFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WidgetPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetPoint {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'lat': json['lat'],
|
|
52
|
+
'lng': json['lng'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WidgetPointToJSON(json: any): WidgetPoint {
|
|
57
|
+
return WidgetPointToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function WidgetPointToJSONTyped(value?: WidgetPoint | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'lat': value['lat'],
|
|
68
|
+
'lng': value['lng'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|