@indigina/dcm-api 0.0.12 → 0.0.14

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.
@@ -551,6 +551,183 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
551
551
  type: Optional
552
552
  }] }] });
553
553
 
554
+ /**
555
+ * Dcm.API.Client
556
+ * DCM API Client for Angular applications
557
+ *
558
+ * The version of the OpenAPI document: v1
559
+ *
560
+ *
561
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
562
+ * https://openapi-generator.tech
563
+ * Do not edit the class manually.
564
+ */
565
+ /* tslint:disable:no-unused-variable member-ordering */
566
+ class ReportsService {
567
+ httpClient;
568
+ basePath = 'http://localhost';
569
+ defaultHeaders = new HttpHeaders();
570
+ configuration = new Configuration();
571
+ encoder;
572
+ constructor(httpClient, basePath, configuration) {
573
+ this.httpClient = httpClient;
574
+ if (configuration) {
575
+ this.configuration = configuration;
576
+ }
577
+ if (typeof this.configuration.basePath !== 'string') {
578
+ if (Array.isArray(basePath) && basePath.length > 0) {
579
+ basePath = basePath[0];
580
+ }
581
+ if (typeof basePath !== 'string') {
582
+ basePath = this.basePath;
583
+ }
584
+ this.configuration.basePath = basePath;
585
+ }
586
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
587
+ }
588
+ // @ts-ignore
589
+ addToHttpParams(httpParams, value, key) {
590
+ if (typeof value === "object" && value instanceof Date === false) {
591
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
592
+ }
593
+ else {
594
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
595
+ }
596
+ return httpParams;
597
+ }
598
+ addToHttpParamsRecursive(httpParams, value, key) {
599
+ if (value == null) {
600
+ return httpParams;
601
+ }
602
+ if (typeof value === "object") {
603
+ if (Array.isArray(value)) {
604
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
605
+ }
606
+ else if (value instanceof Date) {
607
+ if (key != null) {
608
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
609
+ }
610
+ else {
611
+ throw Error("key may not be null if value is Date");
612
+ }
613
+ }
614
+ else {
615
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
616
+ }
617
+ }
618
+ else if (key != null) {
619
+ httpParams = httpParams.append(key, value);
620
+ }
621
+ else {
622
+ throw Error("key may not be null if value is not object or array");
623
+ }
624
+ return httpParams;
625
+ }
626
+ getDcmReports(observe = 'body', reportProgress = false, options) {
627
+ let localVarHeaders = this.defaultHeaders;
628
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
629
+ if (localVarHttpHeaderAcceptSelected === undefined) {
630
+ // to determine the Accept header
631
+ const httpHeaderAccepts = [
632
+ 'application/json'
633
+ ];
634
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
635
+ }
636
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
637
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
638
+ }
639
+ let localVarHttpContext = options && options.context;
640
+ if (localVarHttpContext === undefined) {
641
+ localVarHttpContext = new HttpContext();
642
+ }
643
+ let localVarTransferCache = options && options.transferCache;
644
+ if (localVarTransferCache === undefined) {
645
+ localVarTransferCache = true;
646
+ }
647
+ let responseType_ = 'json';
648
+ if (localVarHttpHeaderAcceptSelected) {
649
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
650
+ responseType_ = 'text';
651
+ }
652
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
653
+ responseType_ = 'json';
654
+ }
655
+ else {
656
+ responseType_ = 'blob';
657
+ }
658
+ }
659
+ let localVarPath = `/reports/dashboard-dcm`;
660
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
661
+ context: localVarHttpContext,
662
+ responseType: responseType_,
663
+ withCredentials: this.configuration.withCredentials,
664
+ headers: localVarHeaders,
665
+ observe: observe,
666
+ transferCache: localVarTransferCache,
667
+ reportProgress: reportProgress
668
+ });
669
+ }
670
+ getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
671
+ let localVarHeaders = this.defaultHeaders;
672
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
673
+ if (localVarHttpHeaderAcceptSelected === undefined) {
674
+ // to determine the Accept header
675
+ const httpHeaderAccepts = [
676
+ 'application/json'
677
+ ];
678
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
679
+ }
680
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
681
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
682
+ }
683
+ let localVarHttpContext = options && options.context;
684
+ if (localVarHttpContext === undefined) {
685
+ localVarHttpContext = new HttpContext();
686
+ }
687
+ let localVarTransferCache = options && options.transferCache;
688
+ if (localVarTransferCache === undefined) {
689
+ localVarTransferCache = true;
690
+ }
691
+ let responseType_ = 'json';
692
+ if (localVarHttpHeaderAcceptSelected) {
693
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
694
+ responseType_ = 'text';
695
+ }
696
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
697
+ responseType_ = 'json';
698
+ }
699
+ else {
700
+ responseType_ = 'blob';
701
+ }
702
+ }
703
+ let localVarPath = `/reports/summary-dashboard`;
704
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
705
+ context: localVarHttpContext,
706
+ responseType: responseType_,
707
+ withCredentials: this.configuration.withCredentials,
708
+ headers: localVarHeaders,
709
+ observe: observe,
710
+ transferCache: localVarTransferCache,
711
+ reportProgress: reportProgress
712
+ });
713
+ }
714
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
715
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ReportsService, providedIn: 'root' });
716
+ }
717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ReportsService, decorators: [{
718
+ type: Injectable,
719
+ args: [{
720
+ providedIn: 'root'
721
+ }]
722
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
723
+ type: Optional
724
+ }, {
725
+ type: Inject,
726
+ args: [BASE_PATH]
727
+ }] }, { type: Configuration, decorators: [{
728
+ type: Optional
729
+ }] }] });
730
+
554
731
  /**
555
732
  * Dcm.API.Client
556
733
  * DCM API Client for Angular applications
@@ -1110,7 +1287,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
1110
1287
  type: Optional
1111
1288
  }] }] });
1112
1289
 
1113
- const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsService, UserService];
1290
+ const APIS = [ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
1291
+
1292
+ /**
1293
+ * Dcm.API.Client
1294
+ * DCM API Client for Angular applications
1295
+ *
1296
+ * The version of the OpenAPI document: v1
1297
+ *
1298
+ *
1299
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1300
+ * https://openapi-generator.tech
1301
+ * Do not edit the class manually.
1302
+ */
1303
+
1304
+ /**
1305
+ * Dcm.API.Client
1306
+ * DCM API Client for Angular applications
1307
+ *
1308
+ * The version of the OpenAPI document: v1
1309
+ *
1310
+ *
1311
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1312
+ * https://openapi-generator.tech
1313
+ * Do not edit the class manually.
1314
+ */
1114
1315
 
1115
1316
  /**
1116
1317
  * Dcm.API.Client
@@ -1207,6 +1408,10 @@ const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsSer
1207
1408
  * https://openapi-generator.tech
1208
1409
  * Do not edit the class manually.
1209
1410
  */
1411
+ const PowerBiTenant = {
1412
+ SekoBi360: 'SekoBi360',
1413
+ Others: 'Others'
1414
+ };
1210
1415
 
1211
1416
  /**
1212
1417
  * Dcm.API.Client
@@ -1400,5 +1605,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
1400
1605
  * Generated bundle index. Do not edit.
1401
1606
  */
1402
1607
 
1403
- export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
1608
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
1404
1609
  //# sourceMappingURL=indigina-dcm-api.mjs.map