@indigina/dcm-api 0.0.11 → 0.0.13
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/api/api.d.ts +3 -1
- package/api/reports.service.d.ts +37 -0
- package/api/user.service.d.ts +23 -0
- package/esm2022/api/api.mjs +4 -2
- package/esm2022/api/reports.service.mjs +142 -0
- package/esm2022/api/user.service.mjs +54 -1
- package/esm2022/model/column.mjs +2 -0
- package/esm2022/model/commandStatusResult.mjs +13 -0
- package/esm2022/model/dashboardReportGroup.mjs +2 -0
- package/esm2022/model/dashboardReports.mjs +2 -0
- package/esm2022/model/embedReportInfoModel.mjs +2 -0
- package/esm2022/model/embedTokenDto.mjs +13 -0
- package/esm2022/model/models.mjs +9 -1
- package/esm2022/model/powerBiTenant.mjs +16 -0
- package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +13 -0
- package/fesm2022/indigina-dcm-api.mjs +240 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/column.d.ts +16 -0
- package/model/commandStatusResult.d.ts +14 -0
- package/model/dashboardReportGroup.d.ts +21 -0
- package/model/dashboardReports.d.ts +15 -0
- package/model/embedReportInfoModel.d.ts +30 -0
- package/model/embedTokenDto.d.ts +15 -0
- package/model/models.d.ts +8 -0
- package/model/powerBiTenant.d.ts +16 -0
- package/model/setNewFeaturesVisibilityCommand.d.ts +14 -0
- package/package.json +1 -1
|
@@ -551,6 +551,139 @@ 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
|
+
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 });
|
|
671
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ReportsService, providedIn: 'root' });
|
|
672
|
+
}
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ReportsService, decorators: [{
|
|
674
|
+
type: Injectable,
|
|
675
|
+
args: [{
|
|
676
|
+
providedIn: 'root'
|
|
677
|
+
}]
|
|
678
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
679
|
+
type: Optional
|
|
680
|
+
}, {
|
|
681
|
+
type: Inject,
|
|
682
|
+
args: [BASE_PATH]
|
|
683
|
+
}] }, { type: Configuration, decorators: [{
|
|
684
|
+
type: Optional
|
|
685
|
+
}] }] });
|
|
686
|
+
|
|
554
687
|
/**
|
|
555
688
|
* Dcm.API.Client
|
|
556
689
|
* DCM API Client for Angular applications
|
|
@@ -1040,6 +1173,59 @@ class UserService {
|
|
|
1040
1173
|
reportProgress: reportProgress
|
|
1041
1174
|
});
|
|
1042
1175
|
}
|
|
1176
|
+
setNewFeaturesVisibility(setNewFeaturesVisibilityCommand, observe = 'body', reportProgress = false, options) {
|
|
1177
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1178
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1179
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1180
|
+
// to determine the Accept header
|
|
1181
|
+
const httpHeaderAccepts = [
|
|
1182
|
+
'application/json'
|
|
1183
|
+
];
|
|
1184
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1185
|
+
}
|
|
1186
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1187
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1188
|
+
}
|
|
1189
|
+
let localVarHttpContext = options && options.context;
|
|
1190
|
+
if (localVarHttpContext === undefined) {
|
|
1191
|
+
localVarHttpContext = new HttpContext();
|
|
1192
|
+
}
|
|
1193
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1194
|
+
if (localVarTransferCache === undefined) {
|
|
1195
|
+
localVarTransferCache = true;
|
|
1196
|
+
}
|
|
1197
|
+
// to determine the Content-Type header
|
|
1198
|
+
const consumes = [
|
|
1199
|
+
'application/json'
|
|
1200
|
+
];
|
|
1201
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1202
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1203
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1204
|
+
}
|
|
1205
|
+
let responseType_ = 'json';
|
|
1206
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1207
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1208
|
+
responseType_ = 'text';
|
|
1209
|
+
}
|
|
1210
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1211
|
+
responseType_ = 'json';
|
|
1212
|
+
}
|
|
1213
|
+
else {
|
|
1214
|
+
responseType_ = 'blob';
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
let localVarPath = `/user/me/settings/newfeaturevisibility`;
|
|
1218
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1219
|
+
context: localVarHttpContext,
|
|
1220
|
+
body: setNewFeaturesVisibilityCommand,
|
|
1221
|
+
responseType: responseType_,
|
|
1222
|
+
withCredentials: this.configuration.withCredentials,
|
|
1223
|
+
headers: localVarHeaders,
|
|
1224
|
+
observe: observe,
|
|
1225
|
+
transferCache: localVarTransferCache,
|
|
1226
|
+
reportProgress: reportProgress
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1043
1229
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1044
1230
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
1045
1231
|
}
|
|
@@ -1057,7 +1243,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
|
|
|
1057
1243
|
type: Optional
|
|
1058
1244
|
}] }] });
|
|
1059
1245
|
|
|
1060
|
-
const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsService, UserService];
|
|
1246
|
+
const APIS = [ContainersService, HealthService, PermissionsService, ReportsService, ShipmentsService, UserService];
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Dcm.API.Client
|
|
1250
|
+
* DCM API Client for Angular applications
|
|
1251
|
+
*
|
|
1252
|
+
* The version of the OpenAPI document: v1
|
|
1253
|
+
*
|
|
1254
|
+
*
|
|
1255
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1256
|
+
* https://openapi-generator.tech
|
|
1257
|
+
* Do not edit the class manually.
|
|
1258
|
+
*/
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Dcm.API.Client
|
|
1262
|
+
* DCM API Client for Angular applications
|
|
1263
|
+
*
|
|
1264
|
+
* The version of the OpenAPI document: v1
|
|
1265
|
+
*
|
|
1266
|
+
*
|
|
1267
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1268
|
+
* https://openapi-generator.tech
|
|
1269
|
+
* Do not edit the class manually.
|
|
1270
|
+
*/
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Dcm.API.Client
|
|
1274
|
+
* DCM API Client for Angular applications
|
|
1275
|
+
*
|
|
1276
|
+
* The version of the OpenAPI document: v1
|
|
1277
|
+
*
|
|
1278
|
+
*
|
|
1279
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1280
|
+
* https://openapi-generator.tech
|
|
1281
|
+
* Do not edit the class manually.
|
|
1282
|
+
*/
|
|
1061
1283
|
|
|
1062
1284
|
/**
|
|
1063
1285
|
* Dcm.API.Client
|
|
@@ -1131,6 +1353,22 @@ const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsSer
|
|
|
1131
1353
|
* Do not edit the class manually.
|
|
1132
1354
|
*/
|
|
1133
1355
|
|
|
1356
|
+
/**
|
|
1357
|
+
* Dcm.API.Client
|
|
1358
|
+
* DCM API Client for Angular applications
|
|
1359
|
+
*
|
|
1360
|
+
* The version of the OpenAPI document: v1
|
|
1361
|
+
*
|
|
1362
|
+
*
|
|
1363
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1364
|
+
* https://openapi-generator.tech
|
|
1365
|
+
* Do not edit the class manually.
|
|
1366
|
+
*/
|
|
1367
|
+
const PowerBiTenant = {
|
|
1368
|
+
SekoBi360: 'SekoBi360',
|
|
1369
|
+
Others: 'Others'
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1134
1372
|
/**
|
|
1135
1373
|
* Dcm.API.Client
|
|
1136
1374
|
* DCM API Client for Angular applications
|
|
@@ -1323,5 +1561,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
|
|
|
1323
1561
|
* Generated bundle index. Do not edit.
|
|
1324
1562
|
*/
|
|
1325
1563
|
|
|
1326
|
-
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
|
|
1564
|
+
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, PowerBiTenant, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
|
|
1327
1565
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|