@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,174 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type DownstreamTradeflow,
|
|
18
|
+
DownstreamTradeflowFromJSON,
|
|
19
|
+
DownstreamTradeflowToJSON,
|
|
20
|
+
} from '../models/DownstreamTradeflow';
|
|
21
|
+
import {
|
|
22
|
+
type V3DownstreamPost202Response,
|
|
23
|
+
V3DownstreamPost202ResponseFromJSON,
|
|
24
|
+
V3DownstreamPost202ResponseToJSON,
|
|
25
|
+
} from '../models/V3DownstreamPost202Response';
|
|
26
|
+
|
|
27
|
+
export interface V3DownstreamDeleteRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
tradeflowReference: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
confirm?: string;
|
|
36
|
+
/**
|
|
37
|
+
* true deletes the tradeflow permanently. Default: it is deactivated.
|
|
38
|
+
*/
|
|
39
|
+
hard?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface V3DownstreamPostRequest {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
downstreamTradeflow: Array<DownstreamTradeflow>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export class V3DownstreamApi extends runtime.BaseAPI {
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Creates request options for v3DownstreamDelete without sending the request
|
|
56
|
+
*/
|
|
57
|
+
async v3DownstreamDeleteRequestOpts(requestParameters: V3DownstreamDeleteRequest): Promise<runtime.RequestOpts> {
|
|
58
|
+
if (requestParameters['tradeflowReference'] == null) {
|
|
59
|
+
throw new runtime.RequiredError(
|
|
60
|
+
'tradeflowReference',
|
|
61
|
+
'Required parameter "tradeflowReference" was null or undefined when calling v3DownstreamDelete().'
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const queryParameters: any = {};
|
|
66
|
+
|
|
67
|
+
if (requestParameters['confirm'] != null) {
|
|
68
|
+
queryParameters['confirm'] = requestParameters['confirm'];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (requestParameters['hard'] != null) {
|
|
72
|
+
queryParameters['hard'] = requestParameters['hard'];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
|
+
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("ApiKey", []);
|
|
80
|
+
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let urlPath = `/v3/downstream/tradeflows/{tradeflow_reference}`;
|
|
87
|
+
urlPath = urlPath.replace('{tradeflow_reference}', encodeURIComponent(String(requestParameters['tradeflowReference'])));
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'DELETE',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Delete a tradeflow
|
|
99
|
+
*/
|
|
100
|
+
async v3DownstreamDeleteRaw(requestParameters: V3DownstreamDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
101
|
+
const requestOptions = await this.v3DownstreamDeleteRequestOpts(requestParameters);
|
|
102
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
103
|
+
|
|
104
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
105
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
106
|
+
} else {
|
|
107
|
+
return new runtime.TextApiResponse(response) as any;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Delete a tradeflow
|
|
113
|
+
*/
|
|
114
|
+
async v3DownstreamDelete(requestParameters: V3DownstreamDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
115
|
+
const response = await this.v3DownstreamDeleteRaw(requestParameters, initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Creates request options for v3DownstreamPost without sending the request
|
|
121
|
+
*/
|
|
122
|
+
async v3DownstreamPostRequestOpts(requestParameters: V3DownstreamPostRequest): Promise<runtime.RequestOpts> {
|
|
123
|
+
if (requestParameters['downstreamTradeflow'] == null) {
|
|
124
|
+
throw new runtime.RequiredError(
|
|
125
|
+
'downstreamTradeflow',
|
|
126
|
+
'Required parameter "downstreamTradeflow" was null or undefined when calling v3DownstreamPost().'
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const queryParameters: any = {};
|
|
131
|
+
|
|
132
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
133
|
+
|
|
134
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
135
|
+
|
|
136
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
+
const token = this.configuration.accessToken;
|
|
138
|
+
const tokenString = await token("ApiKey", []);
|
|
139
|
+
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
let urlPath = `/v3/downstream/tradeflows`;
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
path: urlPath,
|
|
149
|
+
method: 'POST',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
body: requestParameters['downstreamTradeflow']!.map(DownstreamTradeflowToJSON),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Upsert tradeflows
|
|
158
|
+
*/
|
|
159
|
+
async v3DownstreamPostRaw(requestParameters: V3DownstreamPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V3DownstreamPost202Response>> {
|
|
160
|
+
const requestOptions = await this.v3DownstreamPostRequestOpts(requestParameters);
|
|
161
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
162
|
+
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V3DownstreamPost202ResponseFromJSON(jsonValue));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Upsert tradeflows
|
|
168
|
+
*/
|
|
169
|
+
async v3DownstreamPost(requestParameters: V3DownstreamPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V3DownstreamPost202Response> {
|
|
170
|
+
const response = await this.v3DownstreamPostRaw(requestParameters, initOverrides);
|
|
171
|
+
return await response.value();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type V3UpstreamGet200Response,
|
|
18
|
+
V3UpstreamGet200ResponseFromJSON,
|
|
19
|
+
V3UpstreamGet200ResponseToJSON,
|
|
20
|
+
} from '../models/V3UpstreamGet200Response';
|
|
21
|
+
import {
|
|
22
|
+
type V3UpstreamGet400Response,
|
|
23
|
+
V3UpstreamGet400ResponseFromJSON,
|
|
24
|
+
V3UpstreamGet400ResponseToJSON,
|
|
25
|
+
} from '../models/V3UpstreamGet400Response';
|
|
26
|
+
|
|
27
|
+
export interface V3UpstreamGetRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Only tradeflows changed after this ISO 8601 timestamp (exclusive), with an offset. Without since, cursor, tradeflow or container: the last 15 minutes.
|
|
30
|
+
*/
|
|
31
|
+
since?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Your tradeflow reference. Returns that tradeflow regardless of when it changed.
|
|
34
|
+
*/
|
|
35
|
+
tradeflow?: string;
|
|
36
|
+
/**
|
|
37
|
+
* A container number. Returns its tradeflows regardless of when they changed.
|
|
38
|
+
*/
|
|
39
|
+
container?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Keep only events of this category: MILESTONE, SHIPMENT or LOCATION.
|
|
42
|
+
*/
|
|
43
|
+
category?: string;
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
*/
|
|
47
|
+
code?: string;
|
|
48
|
+
/**
|
|
49
|
+
* next_cursor from the previous page. Keep since identical across the pages of one cycle.
|
|
50
|
+
*/
|
|
51
|
+
cursor?: string;
|
|
52
|
+
/**
|
|
53
|
+
* true (active only), false, or both. Default: active plus recently deactivated.
|
|
54
|
+
*/
|
|
55
|
+
active?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Comma-separated blocks: events, locations, containers, shipment, vessels. Default: all but vessels.
|
|
58
|
+
*/
|
|
59
|
+
fields?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Shape of `events`: `v3` (Dockflow milestones) or `dcsa-tnt-2.2` (DCSA Track & Trace 2.2). The rest of the record is identical.
|
|
62
|
+
*/
|
|
63
|
+
format?: V3UpstreamGetFormatEnum;
|
|
64
|
+
/**
|
|
65
|
+
* Tradeflows per page, 1 to 1000. Default 50.
|
|
66
|
+
*/
|
|
67
|
+
perPage?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Set to 1 and Dockflow keeps your position per API key and filter set, so repeated identical polls skip nothing.
|
|
70
|
+
*/
|
|
71
|
+
failsafe?: V3UpstreamGetFailsafeEnum;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export class V3UpstreamApi extends runtime.BaseAPI {
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for v3UpstreamGet without sending the request
|
|
81
|
+
*/
|
|
82
|
+
async v3UpstreamGetRequestOpts(requestParameters: V3UpstreamGetRequest): Promise<runtime.RequestOpts> {
|
|
83
|
+
const queryParameters: any = {};
|
|
84
|
+
|
|
85
|
+
if (requestParameters['since'] != null) {
|
|
86
|
+
queryParameters['since'] = requestParameters['since'];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (requestParameters['tradeflow'] != null) {
|
|
90
|
+
queryParameters['tradeflow'] = requestParameters['tradeflow'];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (requestParameters['container'] != null) {
|
|
94
|
+
queryParameters['container'] = requestParameters['container'];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (requestParameters['category'] != null) {
|
|
98
|
+
queryParameters['category'] = requestParameters['category'];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters['code'] != null) {
|
|
102
|
+
queryParameters['code'] = requestParameters['code'];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (requestParameters['cursor'] != null) {
|
|
106
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (requestParameters['active'] != null) {
|
|
110
|
+
queryParameters['active'] = requestParameters['active'];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (requestParameters['fields'] != null) {
|
|
114
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (requestParameters['format'] != null) {
|
|
118
|
+
queryParameters['format'] = requestParameters['format'];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (requestParameters['perPage'] != null) {
|
|
122
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (requestParameters['failsafe'] != null) {
|
|
126
|
+
queryParameters['failsafe'] = requestParameters['failsafe'];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
130
|
+
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = await token("ApiKey", []);
|
|
134
|
+
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
let urlPath = `/v3/upstream`;
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'GET',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Poll upstream events
|
|
152
|
+
*/
|
|
153
|
+
async v3UpstreamGetRaw(requestParameters: V3UpstreamGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V3UpstreamGet200Response>> {
|
|
154
|
+
const requestOptions = await this.v3UpstreamGetRequestOpts(requestParameters);
|
|
155
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
156
|
+
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V3UpstreamGet200ResponseFromJSON(jsonValue));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Poll upstream events
|
|
162
|
+
*/
|
|
163
|
+
async v3UpstreamGet(requestParameters: V3UpstreamGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V3UpstreamGet200Response> {
|
|
164
|
+
const response = await this.v3UpstreamGetRaw(requestParameters, initOverrides);
|
|
165
|
+
return await response.value();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @export
|
|
172
|
+
*/
|
|
173
|
+
export const V3UpstreamGetFormatEnum = {
|
|
174
|
+
V3: 'v3',
|
|
175
|
+
DcsaTnt22: 'dcsa-tnt-2.2',
|
|
176
|
+
} as const;
|
|
177
|
+
export type V3UpstreamGetFormatEnum = typeof V3UpstreamGetFormatEnum[keyof typeof V3UpstreamGetFormatEnum];
|
|
178
|
+
/**
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export const V3UpstreamGetFailsafeEnum = {
|
|
182
|
+
_0: '0',
|
|
183
|
+
_1: '1',
|
|
184
|
+
} as const;
|
|
185
|
+
export type V3UpstreamGetFailsafeEnum = typeof V3UpstreamGetFailsafeEnum[keyof typeof V3UpstreamGetFailsafeEnum];
|
|
@@ -0,0 +1,97 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type InlineObject,
|
|
18
|
+
InlineObjectFromJSON,
|
|
19
|
+
InlineObjectToJSON,
|
|
20
|
+
} from '../models/InlineObject';
|
|
21
|
+
import {
|
|
22
|
+
type WidgetSearchResult,
|
|
23
|
+
WidgetSearchResultFromJSON,
|
|
24
|
+
WidgetSearchResultToJSON,
|
|
25
|
+
} from '../models/WidgetSearchResult';
|
|
26
|
+
|
|
27
|
+
export interface SearchWidgetRequest {
|
|
28
|
+
/**
|
|
29
|
+
* Container number, booking or bill of lading reference.
|
|
30
|
+
*/
|
|
31
|
+
q: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export class WidgetApi extends runtime.BaseAPI {
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates request options for searchWidget without sending the request
|
|
41
|
+
*/
|
|
42
|
+
async searchWidgetRequestOpts(requestParameters: SearchWidgetRequest): Promise<runtime.RequestOpts> {
|
|
43
|
+
if (requestParameters['q'] == null) {
|
|
44
|
+
throw new runtime.RequiredError(
|
|
45
|
+
'q',
|
|
46
|
+
'Required parameter "q" was null or undefined when calling searchWidget().'
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const queryParameters: any = {};
|
|
51
|
+
|
|
52
|
+
if (requestParameters['q'] != null) {
|
|
53
|
+
queryParameters['q'] = requestParameters['q'];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
const token = this.configuration.accessToken;
|
|
60
|
+
const tokenString = await token("ApiKey", []);
|
|
61
|
+
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let urlPath = `/v3/widget/search`;
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
path: urlPath,
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Matches a container number, booking or bill of lading within the token\'s entity and returns the best match.
|
|
79
|
+
* Search a shipment for the embeddable tracking widget
|
|
80
|
+
*/
|
|
81
|
+
async searchWidgetRaw(requestParameters: SearchWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WidgetSearchResult>> {
|
|
82
|
+
const requestOptions = await this.searchWidgetRequestOpts(requestParameters);
|
|
83
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
84
|
+
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WidgetSearchResultFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Matches a container number, booking or bill of lading within the token\'s entity and returns the best match.
|
|
90
|
+
* Search a shipment for the embeddable tracking widget
|
|
91
|
+
*/
|
|
92
|
+
async searchWidget(requestParameters: SearchWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WidgetSearchResult> {
|
|
93
|
+
const response = await this.searchWidgetRaw(requestParameters, initOverrides);
|
|
94
|
+
return await response.value();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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 ContainerReference
|
|
20
|
+
*/
|
|
21
|
+
export interface ContainerReference {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
reference: string;
|
|
26
|
+
/**
|
|
27
|
+
* Free-form key-value pairs stored on the container.
|
|
28
|
+
*/
|
|
29
|
+
customProperties?: object;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ContainerReference interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfContainerReference(value: object): value is ContainerReference {
|
|
36
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ContainerReferenceFromJSON(json: any): ContainerReference {
|
|
41
|
+
return ContainerReferenceFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ContainerReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerReference {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'reference': json['reference'],
|
|
51
|
+
'customProperties': json['custom_properties'] == null ? undefined : json['custom_properties'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ContainerReferenceToJSON(json: any): ContainerReference {
|
|
56
|
+
return ContainerReferenceToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ContainerReferenceToJSONTyped(value?: ContainerReference | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'reference': value['reference'],
|
|
67
|
+
'custom_properties': value['customProperties'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* Only the fields sent are changed.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DocumentUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
documentFilename?: string;
|
|
26
|
+
/**
|
|
27
|
+
* A type name from GET /v3/downstream/documents/types. An unknown name leaves the type unchanged.
|
|
28
|
+
*/
|
|
29
|
+
documentType?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Links the document to this container; an unknown reference unlinks it.
|
|
32
|
+
*/
|
|
33
|
+
containerReference?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DocumentUpdate interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDocumentUpdate(value: object): value is DocumentUpdate {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function DocumentUpdateFromJSON(json: any): DocumentUpdate {
|
|
44
|
+
return DocumentUpdateFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DocumentUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentUpdate {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'documentFilename': json['document_filename'] == null ? undefined : json['document_filename'],
|
|
54
|
+
'documentType': json['document_type'] == null ? undefined : json['document_type'],
|
|
55
|
+
'containerReference': json['container_reference'] == null ? undefined : json['container_reference'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DocumentUpdateToJSON(json: any): DocumentUpdate {
|
|
60
|
+
return DocumentUpdateToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DocumentUpdateToJSONTyped(value?: DocumentUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'document_filename': value['documentFilename'],
|
|
71
|
+
'document_type': value['documentType'],
|
|
72
|
+
'container_reference': value['containerReference'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|