@indigina/dcm-api 0.0.129 → 0.0.130
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/README.md +2 -2
- package/fesm2022/indigina-dcm-api.mjs +107 -1
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/indigina-dcm-api.d.ts +293 -116
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.130
|
|
2
2
|
|
|
3
3
|
DCM API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/dcm-api@0.0.
|
|
27
|
+
npm install @indigina/dcm-api@0.0.130 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1087,6 +1087,88 @@ class BookingsService extends BaseService {
|
|
|
1087
1087
|
super(basePath, configuration);
|
|
1088
1088
|
this.httpClient = httpClient;
|
|
1089
1089
|
}
|
|
1090
|
+
getBookings($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1091
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1092
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1093
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1094
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1095
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1096
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$search', $search, QueryParamStyle.Form, true);
|
|
1097
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1098
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1099
|
+
'application/json'
|
|
1100
|
+
]);
|
|
1101
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1102
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1103
|
+
}
|
|
1104
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1105
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1106
|
+
let responseType_ = 'json';
|
|
1107
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1108
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1109
|
+
responseType_ = 'text';
|
|
1110
|
+
}
|
|
1111
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1112
|
+
responseType_ = 'json';
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
responseType_ = 'blob';
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
let localVarPath = `/bookings/list`;
|
|
1119
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1120
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1121
|
+
context: localVarHttpContext,
|
|
1122
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1123
|
+
responseType: responseType_,
|
|
1124
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1125
|
+
headers: localVarHeaders,
|
|
1126
|
+
observe: observe,
|
|
1127
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1128
|
+
reportProgress: reportProgress
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
getBookingsFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
1132
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1133
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1134
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1135
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1136
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1137
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
|
|
1138
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1139
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1140
|
+
'application/json'
|
|
1141
|
+
]);
|
|
1142
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1143
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1144
|
+
}
|
|
1145
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1146
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1147
|
+
let responseType_ = 'json';
|
|
1148
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1149
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1150
|
+
responseType_ = 'text';
|
|
1151
|
+
}
|
|
1152
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1153
|
+
responseType_ = 'json';
|
|
1154
|
+
}
|
|
1155
|
+
else {
|
|
1156
|
+
responseType_ = 'blob';
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
let localVarPath = `/bookings/search`;
|
|
1160
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1161
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1162
|
+
context: localVarHttpContext,
|
|
1163
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1164
|
+
responseType: responseType_,
|
|
1165
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1166
|
+
headers: localVarHeaders,
|
|
1167
|
+
observe: observe,
|
|
1168
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1169
|
+
reportProgress: reportProgress
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1090
1172
|
getVendorDraftBookingsCount(observe = 'body', reportProgress = false, options) {
|
|
1091
1173
|
let localVarHeaders = this.defaultHeaders;
|
|
1092
1174
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
@@ -5355,6 +5437,20 @@ const ApprovalTypes = {
|
|
|
5355
5437
|
Rejected: 'Rejected'
|
|
5356
5438
|
};
|
|
5357
5439
|
|
|
5440
|
+
/**
|
|
5441
|
+
* Dcm.API.Client
|
|
5442
|
+
*
|
|
5443
|
+
*
|
|
5444
|
+
*
|
|
5445
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5446
|
+
* https://openapi-generator.tech
|
|
5447
|
+
* Do not edit the class manually.
|
|
5448
|
+
*/
|
|
5449
|
+
const BookingCollectionDelivery = {
|
|
5450
|
+
VendorDelivers: 'VendorDelivers',
|
|
5451
|
+
AgentCollects: 'AgentCollects'
|
|
5452
|
+
};
|
|
5453
|
+
|
|
5358
5454
|
/**
|
|
5359
5455
|
* Dcm.API.Client
|
|
5360
5456
|
*
|
|
@@ -5427,6 +5523,16 @@ const BookingTypes = {
|
|
|
5427
5523
|
* Do not edit the class manually.
|
|
5428
5524
|
*/
|
|
5429
5525
|
|
|
5526
|
+
/**
|
|
5527
|
+
* Dcm.API.Client
|
|
5528
|
+
*
|
|
5529
|
+
*
|
|
5530
|
+
*
|
|
5531
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5532
|
+
* https://openapi-generator.tech
|
|
5533
|
+
* Do not edit the class manually.
|
|
5534
|
+
*/
|
|
5535
|
+
|
|
5430
5536
|
/**
|
|
5431
5537
|
* Dcm.API.Client
|
|
5432
5538
|
*
|
|
@@ -6296,5 +6402,5 @@ function provideApi(configOrBasePath) {
|
|
|
6296
6402
|
* Generated bundle index. Do not edit.
|
|
6297
6403
|
*/
|
|
6298
6404
|
|
|
6299
|
-
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6405
|
+
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingCollectionDelivery, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6300
6406
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|