@indigina/dcm-api 0.0.74 → 0.0.76

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/dcm-api@0.0.74
1
+ # @indigina/dcm-api@0.0.76
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.74 --save
27
+ npm install @indigina/dcm-api@0.0.76 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -562,16 +562,11 @@ class ContainersService extends BaseService {
562
562
  reportProgress: reportProgress
563
563
  });
564
564
  }
565
- getContainerDeliveryItems(containerIds, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
565
+ getContainerDeliveryItems(containerIds, observe = 'body', reportProgress = false, options) {
566
566
  if (containerIds === null || containerIds === undefined) {
567
567
  throw new Error('Required parameter containerIds was null or undefined when calling getContainerDeliveryItems.');
568
568
  }
569
569
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
570
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
571
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
572
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
573
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
574
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
575
570
  if (containerIds) {
576
571
  containerIds.forEach((element) => {
577
572
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'containerIds');
@@ -611,6 +606,50 @@ class ContainersService extends BaseService {
611
606
  reportProgress: reportProgress
612
607
  });
613
608
  }
609
+ getContainerDeliverySummary(containerIds, observe = 'body', reportProgress = false, options) {
610
+ if (containerIds === null || containerIds === undefined) {
611
+ throw new Error('Required parameter containerIds was null or undefined when calling getContainerDeliverySummary.');
612
+ }
613
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
614
+ if (containerIds) {
615
+ containerIds.forEach((element) => {
616
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'containerIds');
617
+ });
618
+ }
619
+ let localVarHeaders = this.defaultHeaders;
620
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
621
+ 'application/json'
622
+ ]);
623
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
624
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
625
+ }
626
+ const localVarHttpContext = options?.context ?? new HttpContext();
627
+ const localVarTransferCache = options?.transferCache ?? true;
628
+ let responseType_ = 'json';
629
+ if (localVarHttpHeaderAcceptSelected) {
630
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
631
+ responseType_ = 'text';
632
+ }
633
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
634
+ responseType_ = 'json';
635
+ }
636
+ else {
637
+ responseType_ = 'blob';
638
+ }
639
+ }
640
+ let localVarPath = `/containers/delivery/summary`;
641
+ const { basePath, withCredentials } = this.configuration;
642
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
643
+ context: localVarHttpContext,
644
+ params: localVarQueryParameters,
645
+ responseType: responseType_,
646
+ ...(withCredentials ? { withCredentials } : {}),
647
+ headers: localVarHeaders,
648
+ observe: observe,
649
+ transferCache: localVarTransferCache,
650
+ reportProgress: reportProgress
651
+ });
652
+ }
614
653
  getContainerItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
615
654
  if (id === null || id === undefined) {
616
655
  throw new Error('Required parameter id was null or undefined when calling getContainerItems.');
@@ -1118,6 +1157,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
1118
1157
  type: Optional
1119
1158
  }] }] });
1120
1159
 
1160
+ /**
1161
+ * Dcm.API.Client
1162
+ *
1163
+ *
1164
+ *
1165
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1166
+ * https://openapi-generator.tech
1167
+ * Do not edit the class manually.
1168
+ */
1169
+ /* tslint:disable:no-unused-variable member-ordering */
1170
+ class DcsService extends BaseService {
1171
+ httpClient;
1172
+ constructor(httpClient, basePath, configuration) {
1173
+ super(basePath, configuration);
1174
+ this.httpClient = httpClient;
1175
+ }
1176
+ getDc(id, observe = 'body', reportProgress = false, options) {
1177
+ if (id === null || id === undefined) {
1178
+ throw new Error('Required parameter id was null or undefined when calling getDc.');
1179
+ }
1180
+ let localVarHeaders = this.defaultHeaders;
1181
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1182
+ 'application/json'
1183
+ ]);
1184
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1185
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1186
+ }
1187
+ const localVarHttpContext = options?.context ?? new HttpContext();
1188
+ const localVarTransferCache = options?.transferCache ?? true;
1189
+ let responseType_ = 'json';
1190
+ if (localVarHttpHeaderAcceptSelected) {
1191
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1192
+ responseType_ = 'text';
1193
+ }
1194
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1195
+ responseType_ = 'json';
1196
+ }
1197
+ else {
1198
+ responseType_ = 'blob';
1199
+ }
1200
+ }
1201
+ let localVarPath = `/dcs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1202
+ const { basePath, withCredentials } = this.configuration;
1203
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1204
+ context: localVarHttpContext,
1205
+ responseType: responseType_,
1206
+ ...(withCredentials ? { withCredentials } : {}),
1207
+ headers: localVarHeaders,
1208
+ observe: observe,
1209
+ transferCache: localVarTransferCache,
1210
+ reportProgress: reportProgress
1211
+ });
1212
+ }
1213
+ getDcs($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1214
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1215
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1216
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1217
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1218
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1219
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1220
+ let localVarHeaders = this.defaultHeaders;
1221
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1222
+ 'application/json'
1223
+ ]);
1224
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1225
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1226
+ }
1227
+ const localVarHttpContext = options?.context ?? new HttpContext();
1228
+ const localVarTransferCache = options?.transferCache ?? true;
1229
+ let responseType_ = 'json';
1230
+ if (localVarHttpHeaderAcceptSelected) {
1231
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1232
+ responseType_ = 'text';
1233
+ }
1234
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1235
+ responseType_ = 'json';
1236
+ }
1237
+ else {
1238
+ responseType_ = 'blob';
1239
+ }
1240
+ }
1241
+ let localVarPath = `/dcs`;
1242
+ const { basePath, withCredentials } = this.configuration;
1243
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1244
+ context: localVarHttpContext,
1245
+ params: localVarQueryParameters,
1246
+ responseType: responseType_,
1247
+ ...(withCredentials ? { withCredentials } : {}),
1248
+ headers: localVarHeaders,
1249
+ observe: observe,
1250
+ transferCache: localVarTransferCache,
1251
+ reportProgress: reportProgress
1252
+ });
1253
+ }
1254
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1255
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, providedIn: 'root' });
1256
+ }
1257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DcsService, decorators: [{
1258
+ type: Injectable,
1259
+ args: [{
1260
+ providedIn: 'root'
1261
+ }]
1262
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1263
+ type: Optional
1264
+ }, {
1265
+ type: Inject,
1266
+ args: [BASE_PATH]
1267
+ }] }, { type: Configuration, decorators: [{
1268
+ type: Optional
1269
+ }] }] });
1270
+
1121
1271
  /**
1122
1272
  * Dcm.API.Client
1123
1273
  *
@@ -1134,6 +1284,43 @@ class DeliveryBookingsService extends BaseService {
1134
1284
  super(basePath, configuration);
1135
1285
  this.httpClient = httpClient;
1136
1286
  }
1287
+ getDeliveryBooking(id, observe = 'body', reportProgress = false, options) {
1288
+ if (id === null || id === undefined) {
1289
+ throw new Error('Required parameter id was null or undefined when calling getDeliveryBooking.');
1290
+ }
1291
+ let localVarHeaders = this.defaultHeaders;
1292
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1293
+ 'application/json'
1294
+ ]);
1295
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1296
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1297
+ }
1298
+ const localVarHttpContext = options?.context ?? new HttpContext();
1299
+ const localVarTransferCache = options?.transferCache ?? true;
1300
+ let responseType_ = 'json';
1301
+ if (localVarHttpHeaderAcceptSelected) {
1302
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1303
+ responseType_ = 'text';
1304
+ }
1305
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1306
+ responseType_ = 'json';
1307
+ }
1308
+ else {
1309
+ responseType_ = 'blob';
1310
+ }
1311
+ }
1312
+ let localVarPath = `/deliveryBookings/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1313
+ const { basePath, withCredentials } = this.configuration;
1314
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1315
+ context: localVarHttpContext,
1316
+ responseType: responseType_,
1317
+ ...(withCredentials ? { withCredentials } : {}),
1318
+ headers: localVarHeaders,
1319
+ observe: observe,
1320
+ transferCache: localVarTransferCache,
1321
+ reportProgress: reportProgress
1322
+ });
1323
+ }
1137
1324
  getDeliveryBookings($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1138
1325
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1139
1326
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -3283,7 +3470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
3283
3470
  type: Optional
3284
3471
  }] }] });
3285
3472
 
3286
- const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3473
+ const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
3287
3474
 
3288
3475
  /**
3289
3476
  * Dcm.API.Client
@@ -3498,6 +3685,16 @@ const ContainerType = {
3498
3685
  * Do not edit the class manually.
3499
3686
  */
3500
3687
 
3688
+ /**
3689
+ * Dcm.API.Client
3690
+ *
3691
+ *
3692
+ *
3693
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3694
+ * https://openapi-generator.tech
3695
+ * Do not edit the class manually.
3696
+ */
3697
+
3501
3698
  /**
3502
3699
  * Dcm.API.Client
3503
3700
  *
@@ -3547,7 +3744,9 @@ const DocumentType = {
3547
3744
  SparePartPackingList: 'SparePartPackingList',
3548
3745
  FumigationCertificate: 'FumigationCertificate',
3549
3746
  Msds: 'MSDS',
3550
- ConsolidatedInvoice: 'ConsolidatedInvoice'
3747
+ ConsolidatedInvoice: 'ConsolidatedInvoice',
3748
+ ContainerLoadingImage: 'ContainerLoadingImage',
3749
+ CertificateOfOriginCoo: 'CertificateOfOriginCOO'
3551
3750
  };
3552
3751
 
3553
3752
  /**
@@ -4113,5 +4312,5 @@ function provideApi(configOrBasePath) {
4113
4312
  * Generated bundle index. Do not edit.
4114
4313
  */
4115
4314
 
4116
- export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts, provideApi };
4315
+ export { APIS, AmendConfirmationTypes, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, WorkflowArtifacts, provideApi };
4117
4316
  //# sourceMappingURL=indigina-dcm-api.mjs.map