@saritasa/renewaire-frontend-sdk 0.1.10 → 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/README.md +2 -2
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs +2060 -45
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs.map +1 -1
- package/index.d.ts +2334 -238
- package/package.json +2 -2
|
@@ -368,10 +368,10 @@ class AuthApiService extends BaseService {
|
|
|
368
368
|
reportProgress: reportProgress,
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
372
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: AuthApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
372
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: AuthApiService, providedIn: "root" });
|
|
373
373
|
}
|
|
374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: AuthApiService, decorators: [{
|
|
375
375
|
type: Injectable,
|
|
376
376
|
args: [{
|
|
377
377
|
providedIn: "root",
|
|
@@ -395,14 +395,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
395
395
|
* Do not edit the class manually.
|
|
396
396
|
*/
|
|
397
397
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
398
|
-
class
|
|
398
|
+
class PermissionBundlesApiService extends BaseService {
|
|
399
399
|
httpClient;
|
|
400
400
|
constructor(httpClient, basePath, configuration) {
|
|
401
401
|
super(basePath, configuration);
|
|
402
402
|
this.httpClient = httpClient;
|
|
403
403
|
}
|
|
404
|
-
|
|
404
|
+
permissionBundlesCreatePermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
405
|
+
const savePermissionBundleDto = requestParameters?.savePermissionBundleDto;
|
|
405
406
|
let localVarHeaders = this.defaultHeaders;
|
|
407
|
+
// authentication (Bearer) required
|
|
408
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
406
409
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
407
410
|
this.configuration.selectHeaderAccept([
|
|
408
411
|
"text/plain",
|
|
@@ -414,6 +417,16 @@ class PermissionsApiService extends BaseService {
|
|
|
414
417
|
}
|
|
415
418
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
416
419
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
420
|
+
// to determine the Content-Type header
|
|
421
|
+
const consumes = [
|
|
422
|
+
"application/json",
|
|
423
|
+
"text/json",
|
|
424
|
+
"application/*+json",
|
|
425
|
+
];
|
|
426
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
427
|
+
if (httpContentTypeSelected !== undefined) {
|
|
428
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
429
|
+
}
|
|
417
430
|
let responseType_ = "json";
|
|
418
431
|
if (localVarHttpHeaderAcceptSelected) {
|
|
419
432
|
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
@@ -426,10 +439,229 @@ class PermissionsApiService extends BaseService {
|
|
|
426
439
|
responseType_ = "blob";
|
|
427
440
|
}
|
|
428
441
|
}
|
|
429
|
-
let localVarPath = `/api/
|
|
442
|
+
let localVarPath = `/api/permission-bundles`;
|
|
443
|
+
const { basePath, withCredentials } = this.configuration;
|
|
444
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
445
|
+
context: localVarHttpContext,
|
|
446
|
+
body: savePermissionBundleDto,
|
|
447
|
+
responseType: responseType_,
|
|
448
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
449
|
+
headers: localVarHeaders,
|
|
450
|
+
observe: observe,
|
|
451
|
+
transferCache: localVarTransferCache,
|
|
452
|
+
reportProgress: reportProgress,
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
permissionBundlesGetPermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
456
|
+
const permissionBundleId = requestParameters?.permissionBundleId;
|
|
457
|
+
if (permissionBundleId === null || permissionBundleId === undefined) {
|
|
458
|
+
throw new Error("Required parameter permissionBundleId was null or undefined when calling permissionBundlesGetPermissionBundle.");
|
|
459
|
+
}
|
|
460
|
+
let localVarHeaders = this.defaultHeaders;
|
|
461
|
+
// authentication (Bearer) required
|
|
462
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
463
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
464
|
+
this.configuration.selectHeaderAccept([
|
|
465
|
+
"text/plain",
|
|
466
|
+
"application/json",
|
|
467
|
+
"text/json",
|
|
468
|
+
]);
|
|
469
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
470
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
471
|
+
}
|
|
472
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
473
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
474
|
+
let responseType_ = "json";
|
|
475
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
476
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
477
|
+
responseType_ = "text";
|
|
478
|
+
}
|
|
479
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
480
|
+
responseType_ = "json";
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
responseType_ = "blob";
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
487
|
+
const { basePath, withCredentials } = this.configuration;
|
|
488
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
489
|
+
context: localVarHttpContext,
|
|
490
|
+
responseType: responseType_,
|
|
491
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
492
|
+
headers: localVarHeaders,
|
|
493
|
+
observe: observe,
|
|
494
|
+
transferCache: localVarTransferCache,
|
|
495
|
+
reportProgress: reportProgress,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
permissionBundlesRemovePermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
499
|
+
const permissionBundleId = requestParameters?.permissionBundleId;
|
|
500
|
+
if (permissionBundleId === null || permissionBundleId === undefined) {
|
|
501
|
+
throw new Error("Required parameter permissionBundleId was null or undefined when calling permissionBundlesRemovePermissionBundle.");
|
|
502
|
+
}
|
|
503
|
+
let localVarHeaders = this.defaultHeaders;
|
|
504
|
+
// authentication (Bearer) required
|
|
505
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
506
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
507
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
508
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
509
|
+
}
|
|
510
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
511
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
512
|
+
let responseType_ = "json";
|
|
513
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
514
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
515
|
+
responseType_ = "text";
|
|
516
|
+
}
|
|
517
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
518
|
+
responseType_ = "json";
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
responseType_ = "blob";
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
525
|
+
const { basePath, withCredentials } = this.configuration;
|
|
526
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
527
|
+
context: localVarHttpContext,
|
|
528
|
+
responseType: responseType_,
|
|
529
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
530
|
+
headers: localVarHeaders,
|
|
531
|
+
observe: observe,
|
|
532
|
+
transferCache: localVarTransferCache,
|
|
533
|
+
reportProgress: reportProgress,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
permissionBundlesRestorePermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
537
|
+
const permissionBundleId = requestParameters?.permissionBundleId;
|
|
538
|
+
if (permissionBundleId === null || permissionBundleId === undefined) {
|
|
539
|
+
throw new Error("Required parameter permissionBundleId was null or undefined when calling permissionBundlesRestorePermissionBundle.");
|
|
540
|
+
}
|
|
541
|
+
let localVarHeaders = this.defaultHeaders;
|
|
542
|
+
// authentication (Bearer) required
|
|
543
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
544
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
545
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
546
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
547
|
+
}
|
|
548
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
549
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
550
|
+
let responseType_ = "json";
|
|
551
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
552
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
553
|
+
responseType_ = "text";
|
|
554
|
+
}
|
|
555
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
556
|
+
responseType_ = "json";
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
responseType_ = "blob";
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/restore`;
|
|
563
|
+
const { basePath, withCredentials } = this.configuration;
|
|
564
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
565
|
+
context: localVarHttpContext,
|
|
566
|
+
responseType: responseType_,
|
|
567
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
568
|
+
headers: localVarHeaders,
|
|
569
|
+
observe: observe,
|
|
570
|
+
transferCache: localVarTransferCache,
|
|
571
|
+
reportProgress: reportProgress,
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
permissionBundlesSearchPermissionBundles(requestParameters, observe = "body", reportProgress = false, options) {
|
|
575
|
+
const name = requestParameters?.name;
|
|
576
|
+
const orderBy = requestParameters?.orderBy;
|
|
577
|
+
const page = requestParameters?.page;
|
|
578
|
+
const pageSize = requestParameters?.pageSize;
|
|
579
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
580
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
581
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
582
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
583
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
584
|
+
let localVarHeaders = this.defaultHeaders;
|
|
585
|
+
// authentication (Bearer) required
|
|
586
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
587
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
588
|
+
this.configuration.selectHeaderAccept([
|
|
589
|
+
"text/plain",
|
|
590
|
+
"application/json",
|
|
591
|
+
"text/json",
|
|
592
|
+
]);
|
|
593
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
594
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
595
|
+
}
|
|
596
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
597
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
598
|
+
let responseType_ = "json";
|
|
599
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
600
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
601
|
+
responseType_ = "text";
|
|
602
|
+
}
|
|
603
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
604
|
+
responseType_ = "json";
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
responseType_ = "blob";
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
let localVarPath = `/api/permission-bundles`;
|
|
430
611
|
const { basePath, withCredentials } = this.configuration;
|
|
431
612
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
432
613
|
context: localVarHttpContext,
|
|
614
|
+
params: localVarQueryParameters,
|
|
615
|
+
responseType: responseType_,
|
|
616
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
617
|
+
headers: localVarHeaders,
|
|
618
|
+
observe: observe,
|
|
619
|
+
transferCache: localVarTransferCache,
|
|
620
|
+
reportProgress: reportProgress,
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
permissionBundlesUpdatePermissionBundle(requestParameters, observe = "body", reportProgress = false, options) {
|
|
624
|
+
const permissionBundleId = requestParameters?.permissionBundleId;
|
|
625
|
+
if (permissionBundleId === null || permissionBundleId === undefined) {
|
|
626
|
+
throw new Error("Required parameter permissionBundleId was null or undefined when calling permissionBundlesUpdatePermissionBundle.");
|
|
627
|
+
}
|
|
628
|
+
const savePermissionBundleDto = requestParameters?.savePermissionBundleDto;
|
|
629
|
+
let localVarHeaders = this.defaultHeaders;
|
|
630
|
+
// authentication (Bearer) required
|
|
631
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
632
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
633
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
634
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
635
|
+
}
|
|
636
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
637
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
638
|
+
// to determine the Content-Type header
|
|
639
|
+
const consumes = [
|
|
640
|
+
"application/json",
|
|
641
|
+
"text/json",
|
|
642
|
+
"application/*+json",
|
|
643
|
+
];
|
|
644
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
645
|
+
if (httpContentTypeSelected !== undefined) {
|
|
646
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
647
|
+
}
|
|
648
|
+
let responseType_ = "json";
|
|
649
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
650
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
651
|
+
responseType_ = "text";
|
|
652
|
+
}
|
|
653
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
654
|
+
responseType_ = "json";
|
|
655
|
+
}
|
|
656
|
+
else {
|
|
657
|
+
responseType_ = "blob";
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
let localVarPath = `/api/permission-bundles/${this.configuration.encodeParam({ name: "permissionBundleId", value: permissionBundleId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
661
|
+
const { basePath, withCredentials } = this.configuration;
|
|
662
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
663
|
+
context: localVarHttpContext,
|
|
664
|
+
body: savePermissionBundleDto,
|
|
433
665
|
responseType: responseType_,
|
|
434
666
|
...(withCredentials ? { withCredentials } : {}),
|
|
435
667
|
headers: localVarHeaders,
|
|
@@ -438,10 +670,10 @@ class PermissionsApiService extends BaseService {
|
|
|
438
670
|
reportProgress: reportProgress,
|
|
439
671
|
});
|
|
440
672
|
}
|
|
441
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
442
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
673
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionBundlesApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
674
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionBundlesApiService, providedIn: "root" });
|
|
443
675
|
}
|
|
444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionBundlesApiService, decorators: [{
|
|
445
677
|
type: Injectable,
|
|
446
678
|
args: [{
|
|
447
679
|
providedIn: "root",
|
|
@@ -465,26 +697,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
465
697
|
* Do not edit the class manually.
|
|
466
698
|
*/
|
|
467
699
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
468
|
-
class
|
|
700
|
+
class PermissionsApiService extends BaseService {
|
|
469
701
|
httpClient;
|
|
470
702
|
constructor(httpClient, basePath, configuration) {
|
|
471
703
|
super(basePath, configuration);
|
|
472
704
|
this.httpClient = httpClient;
|
|
473
705
|
}
|
|
474
|
-
|
|
475
|
-
const name = requestParameters?.name;
|
|
476
|
-
const code = requestParameters?.code;
|
|
477
|
-
const level = requestParameters?.level;
|
|
478
|
-
const orderBy = requestParameters?.orderBy;
|
|
479
|
-
const page = requestParameters?.page;
|
|
480
|
-
const pageSize = requestParameters?.pageSize;
|
|
481
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
482
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
483
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, code, "Code");
|
|
484
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, level, "Level");
|
|
485
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
486
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
487
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
706
|
+
permissionsGetPermissions(observe = "body", reportProgress = false, options) {
|
|
488
707
|
let localVarHeaders = this.defaultHeaders;
|
|
489
708
|
// authentication (Bearer) required
|
|
490
709
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -511,11 +730,10 @@ class RegionsApiService extends BaseService {
|
|
|
511
730
|
responseType_ = "blob";
|
|
512
731
|
}
|
|
513
732
|
}
|
|
514
|
-
let localVarPath = `/api/
|
|
733
|
+
let localVarPath = `/api/permissions`;
|
|
515
734
|
const { basePath, withCredentials } = this.configuration;
|
|
516
735
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
517
736
|
context: localVarHttpContext,
|
|
518
|
-
params: localVarQueryParameters,
|
|
519
737
|
responseType: responseType_,
|
|
520
738
|
...(withCredentials ? { withCredentials } : {}),
|
|
521
739
|
headers: localVarHeaders,
|
|
@@ -524,10 +742,10 @@ class RegionsApiService extends BaseService {
|
|
|
524
742
|
reportProgress: reportProgress,
|
|
525
743
|
});
|
|
526
744
|
}
|
|
527
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
528
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
|
745
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
746
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionsApiService, providedIn: "root" });
|
|
529
747
|
}
|
|
530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: PermissionsApiService, decorators: [{
|
|
531
749
|
type: Injectable,
|
|
532
750
|
args: [{
|
|
533
751
|
providedIn: "root",
|
|
@@ -551,14 +769,1496 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
551
769
|
* Do not edit the class manually.
|
|
552
770
|
*/
|
|
553
771
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
554
|
-
class
|
|
772
|
+
class RegionsApiService extends BaseService {
|
|
555
773
|
httpClient;
|
|
556
774
|
constructor(httpClient, basePath, configuration) {
|
|
557
775
|
super(basePath, configuration);
|
|
558
776
|
this.httpClient = httpClient;
|
|
559
777
|
}
|
|
560
|
-
|
|
561
|
-
const
|
|
778
|
+
regionsSearchRegions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
779
|
+
const name = requestParameters?.name;
|
|
780
|
+
const code = requestParameters?.code;
|
|
781
|
+
const level = requestParameters?.level;
|
|
782
|
+
const orderBy = requestParameters?.orderBy;
|
|
783
|
+
const page = requestParameters?.page;
|
|
784
|
+
const pageSize = requestParameters?.pageSize;
|
|
785
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
786
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
787
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, code, "Code");
|
|
788
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, level, "Level");
|
|
789
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
790
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
791
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
792
|
+
let localVarHeaders = this.defaultHeaders;
|
|
793
|
+
// authentication (Bearer) required
|
|
794
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
795
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
796
|
+
this.configuration.selectHeaderAccept([
|
|
797
|
+
"text/plain",
|
|
798
|
+
"application/json",
|
|
799
|
+
"text/json",
|
|
800
|
+
]);
|
|
801
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
802
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
803
|
+
}
|
|
804
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
805
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
806
|
+
let responseType_ = "json";
|
|
807
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
808
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
809
|
+
responseType_ = "text";
|
|
810
|
+
}
|
|
811
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
812
|
+
responseType_ = "json";
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
responseType_ = "blob";
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
let localVarPath = `/api/regions`;
|
|
819
|
+
const { basePath, withCredentials } = this.configuration;
|
|
820
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
821
|
+
context: localVarHttpContext,
|
|
822
|
+
params: localVarQueryParameters,
|
|
823
|
+
responseType: responseType_,
|
|
824
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
825
|
+
headers: localVarHeaders,
|
|
826
|
+
observe: observe,
|
|
827
|
+
transferCache: localVarTransferCache,
|
|
828
|
+
reportProgress: reportProgress,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RegionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
832
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RegionsApiService, providedIn: "root" });
|
|
833
|
+
}
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RegionsApiService, decorators: [{
|
|
835
|
+
type: Injectable,
|
|
836
|
+
args: [{
|
|
837
|
+
providedIn: "root",
|
|
838
|
+
}]
|
|
839
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
840
|
+
type: Optional
|
|
841
|
+
}, {
|
|
842
|
+
type: Inject,
|
|
843
|
+
args: [BASE_PATH]
|
|
844
|
+
}] }, { type: Configuration, decorators: [{
|
|
845
|
+
type: Optional
|
|
846
|
+
}] }] });
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* RenewAire CORES API
|
|
850
|
+
*
|
|
851
|
+
* Contact: renewaire@saritasa.com
|
|
852
|
+
*
|
|
853
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
854
|
+
* https://openapi-generator.tech
|
|
855
|
+
* Do not edit the class manually.
|
|
856
|
+
*/
|
|
857
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
858
|
+
class RepContactsApiService extends BaseService {
|
|
859
|
+
httpClient;
|
|
860
|
+
constructor(httpClient, basePath, configuration) {
|
|
861
|
+
super(basePath, configuration);
|
|
862
|
+
this.httpClient = httpClient;
|
|
863
|
+
}
|
|
864
|
+
repContactsGetRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
865
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
866
|
+
if (repTerritoryRepContactId === null ||
|
|
867
|
+
repTerritoryRepContactId === undefined) {
|
|
868
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsGetRepTerritoryRepContact.");
|
|
869
|
+
}
|
|
870
|
+
let localVarHeaders = this.defaultHeaders;
|
|
871
|
+
// authentication (Bearer) required
|
|
872
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
873
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
874
|
+
this.configuration.selectHeaderAccept([
|
|
875
|
+
"text/plain",
|
|
876
|
+
"application/json",
|
|
877
|
+
"text/json",
|
|
878
|
+
]);
|
|
879
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
880
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
881
|
+
}
|
|
882
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
883
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
884
|
+
let responseType_ = "json";
|
|
885
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
886
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
887
|
+
responseType_ = "text";
|
|
888
|
+
}
|
|
889
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
890
|
+
responseType_ = "json";
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
responseType_ = "blob";
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
897
|
+
const { basePath, withCredentials } = this.configuration;
|
|
898
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
899
|
+
context: localVarHttpContext,
|
|
900
|
+
responseType: responseType_,
|
|
901
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
902
|
+
headers: localVarHeaders,
|
|
903
|
+
observe: observe,
|
|
904
|
+
transferCache: localVarTransferCache,
|
|
905
|
+
reportProgress: reportProgress,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
repContactsRemoveRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
909
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
910
|
+
if (repTerritoryRepContactId === null ||
|
|
911
|
+
repTerritoryRepContactId === undefined) {
|
|
912
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsRemoveRepTerritoryRepContact.");
|
|
913
|
+
}
|
|
914
|
+
let localVarHeaders = this.defaultHeaders;
|
|
915
|
+
// authentication (Bearer) required
|
|
916
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
917
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
918
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
919
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
920
|
+
}
|
|
921
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
922
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
923
|
+
let responseType_ = "json";
|
|
924
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
925
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
926
|
+
responseType_ = "text";
|
|
927
|
+
}
|
|
928
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
929
|
+
responseType_ = "json";
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
responseType_ = "blob";
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
936
|
+
const { basePath, withCredentials } = this.configuration;
|
|
937
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
938
|
+
context: localVarHttpContext,
|
|
939
|
+
responseType: responseType_,
|
|
940
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
941
|
+
headers: localVarHeaders,
|
|
942
|
+
observe: observe,
|
|
943
|
+
transferCache: localVarTransferCache,
|
|
944
|
+
reportProgress: reportProgress,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
repContactsUpdateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
948
|
+
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
949
|
+
if (repTerritoryRepContactId === null ||
|
|
950
|
+
repTerritoryRepContactId === undefined) {
|
|
951
|
+
throw new Error("Required parameter repTerritoryRepContactId was null or undefined when calling repContactsUpdateRepTerritoryRepContact.");
|
|
952
|
+
}
|
|
953
|
+
const saveRepTerritoryRepContactDto = requestParameters?.saveRepTerritoryRepContactDto;
|
|
954
|
+
let localVarHeaders = this.defaultHeaders;
|
|
955
|
+
// authentication (Bearer) required
|
|
956
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
957
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
958
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
959
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
960
|
+
}
|
|
961
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
962
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
963
|
+
// to determine the Content-Type header
|
|
964
|
+
const consumes = [
|
|
965
|
+
"application/json",
|
|
966
|
+
"text/json",
|
|
967
|
+
"application/*+json",
|
|
968
|
+
];
|
|
969
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
970
|
+
if (httpContentTypeSelected !== undefined) {
|
|
971
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
972
|
+
}
|
|
973
|
+
let responseType_ = "json";
|
|
974
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
975
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
976
|
+
responseType_ = "text";
|
|
977
|
+
}
|
|
978
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
979
|
+
responseType_ = "json";
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
responseType_ = "blob";
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
let localVarPath = `/api/rep-contacts/${this.configuration.encodeParam({ name: "repTerritoryRepContactId", value: repTerritoryRepContactId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
986
|
+
const { basePath, withCredentials } = this.configuration;
|
|
987
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
988
|
+
context: localVarHttpContext,
|
|
989
|
+
body: saveRepTerritoryRepContactDto,
|
|
990
|
+
responseType: responseType_,
|
|
991
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
992
|
+
headers: localVarHeaders,
|
|
993
|
+
observe: observe,
|
|
994
|
+
transferCache: localVarTransferCache,
|
|
995
|
+
reportProgress: reportProgress,
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepContactsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
999
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepContactsApiService, providedIn: "root" });
|
|
1000
|
+
}
|
|
1001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepContactsApiService, decorators: [{
|
|
1002
|
+
type: Injectable,
|
|
1003
|
+
args: [{
|
|
1004
|
+
providedIn: "root",
|
|
1005
|
+
}]
|
|
1006
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1007
|
+
type: Optional
|
|
1008
|
+
}, {
|
|
1009
|
+
type: Inject,
|
|
1010
|
+
args: [BASE_PATH]
|
|
1011
|
+
}] }, { type: Configuration, decorators: [{
|
|
1012
|
+
type: Optional
|
|
1013
|
+
}] }] });
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* RenewAire CORES API
|
|
1017
|
+
*
|
|
1018
|
+
* Contact: renewaire@saritasa.com
|
|
1019
|
+
*
|
|
1020
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1021
|
+
* https://openapi-generator.tech
|
|
1022
|
+
* Do not edit the class manually.
|
|
1023
|
+
*/
|
|
1024
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1025
|
+
class RepTerritoriesApiService extends BaseService {
|
|
1026
|
+
httpClient;
|
|
1027
|
+
constructor(httpClient, basePath, configuration) {
|
|
1028
|
+
super(basePath, configuration);
|
|
1029
|
+
this.httpClient = httpClient;
|
|
1030
|
+
}
|
|
1031
|
+
repTerritoriesCreateRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1032
|
+
const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
|
|
1033
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1034
|
+
// authentication (Bearer) required
|
|
1035
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1036
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1037
|
+
this.configuration.selectHeaderAccept([
|
|
1038
|
+
"text/plain",
|
|
1039
|
+
"application/json",
|
|
1040
|
+
"text/json",
|
|
1041
|
+
]);
|
|
1042
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1043
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1044
|
+
}
|
|
1045
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1046
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1047
|
+
// to determine the Content-Type header
|
|
1048
|
+
const consumes = [
|
|
1049
|
+
"application/json",
|
|
1050
|
+
"text/json",
|
|
1051
|
+
"application/*+json",
|
|
1052
|
+
];
|
|
1053
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1054
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1055
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1056
|
+
}
|
|
1057
|
+
let responseType_ = "json";
|
|
1058
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1059
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1060
|
+
responseType_ = "text";
|
|
1061
|
+
}
|
|
1062
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1063
|
+
responseType_ = "json";
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
responseType_ = "blob";
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
let localVarPath = `/api/rep-territories`;
|
|
1070
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1071
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1072
|
+
context: localVarHttpContext,
|
|
1073
|
+
body: saveRepTerritoryDto,
|
|
1074
|
+
responseType: responseType_,
|
|
1075
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1076
|
+
headers: localVarHeaders,
|
|
1077
|
+
observe: observe,
|
|
1078
|
+
transferCache: localVarTransferCache,
|
|
1079
|
+
reportProgress: reportProgress,
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
repTerritoriesCreateRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1083
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1084
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1085
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesCreateRepTerritoryLocation.");
|
|
1086
|
+
}
|
|
1087
|
+
const saveRepTerritoryLocationDto = requestParameters?.saveRepTerritoryLocationDto;
|
|
1088
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1089
|
+
// authentication (Bearer) required
|
|
1090
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1091
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1092
|
+
this.configuration.selectHeaderAccept([
|
|
1093
|
+
"text/plain",
|
|
1094
|
+
"application/json",
|
|
1095
|
+
"text/json",
|
|
1096
|
+
]);
|
|
1097
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1098
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1099
|
+
}
|
|
1100
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1101
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1102
|
+
// to determine the Content-Type header
|
|
1103
|
+
const consumes = [
|
|
1104
|
+
"application/json",
|
|
1105
|
+
"text/json",
|
|
1106
|
+
"application/*+json",
|
|
1107
|
+
];
|
|
1108
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1109
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1110
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1111
|
+
}
|
|
1112
|
+
let responseType_ = "json";
|
|
1113
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1114
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1115
|
+
responseType_ = "text";
|
|
1116
|
+
}
|
|
1117
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1118
|
+
responseType_ = "json";
|
|
1119
|
+
}
|
|
1120
|
+
else {
|
|
1121
|
+
responseType_ = "blob";
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/locations`;
|
|
1125
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1126
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1127
|
+
context: localVarHttpContext,
|
|
1128
|
+
body: saveRepTerritoryLocationDto,
|
|
1129
|
+
responseType: responseType_,
|
|
1130
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1131
|
+
headers: localVarHeaders,
|
|
1132
|
+
observe: observe,
|
|
1133
|
+
transferCache: localVarTransferCache,
|
|
1134
|
+
reportProgress: reportProgress,
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
repTerritoriesCreateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1138
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1139
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1140
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesCreateRepTerritoryRepContact.");
|
|
1141
|
+
}
|
|
1142
|
+
const saveRepTerritoryRepContactDto = requestParameters?.saveRepTerritoryRepContactDto;
|
|
1143
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1144
|
+
// authentication (Bearer) required
|
|
1145
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1146
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1147
|
+
this.configuration.selectHeaderAccept([
|
|
1148
|
+
"text/plain",
|
|
1149
|
+
"application/json",
|
|
1150
|
+
"text/json",
|
|
1151
|
+
]);
|
|
1152
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1153
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1154
|
+
}
|
|
1155
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1156
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1157
|
+
// to determine the Content-Type header
|
|
1158
|
+
const consumes = [
|
|
1159
|
+
"application/json",
|
|
1160
|
+
"text/json",
|
|
1161
|
+
"application/*+json",
|
|
1162
|
+
];
|
|
1163
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1164
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1165
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1166
|
+
}
|
|
1167
|
+
let responseType_ = "json";
|
|
1168
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1169
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1170
|
+
responseType_ = "text";
|
|
1171
|
+
}
|
|
1172
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1173
|
+
responseType_ = "json";
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
responseType_ = "blob";
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
|
|
1180
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1181
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1182
|
+
context: localVarHttpContext,
|
|
1183
|
+
body: saveRepTerritoryRepContactDto,
|
|
1184
|
+
responseType: responseType_,
|
|
1185
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1186
|
+
headers: localVarHeaders,
|
|
1187
|
+
observe: observe,
|
|
1188
|
+
transferCache: localVarTransferCache,
|
|
1189
|
+
reportProgress: reportProgress,
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1193
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1194
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1195
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetRepTerritory.");
|
|
1196
|
+
}
|
|
1197
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1198
|
+
// authentication (Bearer) required
|
|
1199
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1200
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1201
|
+
this.configuration.selectHeaderAccept([
|
|
1202
|
+
"text/plain",
|
|
1203
|
+
"application/json",
|
|
1204
|
+
"text/json",
|
|
1205
|
+
]);
|
|
1206
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1207
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1208
|
+
}
|
|
1209
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1210
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1211
|
+
let responseType_ = "json";
|
|
1212
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1213
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1214
|
+
responseType_ = "text";
|
|
1215
|
+
}
|
|
1216
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1217
|
+
responseType_ = "json";
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
responseType_ = "blob";
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1224
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1225
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1226
|
+
context: localVarHttpContext,
|
|
1227
|
+
responseType: responseType_,
|
|
1228
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1229
|
+
headers: localVarHeaders,
|
|
1230
|
+
observe: observe,
|
|
1231
|
+
transferCache: localVarTransferCache,
|
|
1232
|
+
reportProgress: reportProgress,
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
repTerritoriesRemoveRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1236
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1237
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1238
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesRemoveRepTerritory.");
|
|
1239
|
+
}
|
|
1240
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1241
|
+
// authentication (Bearer) required
|
|
1242
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1243
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1244
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1245
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1246
|
+
}
|
|
1247
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1248
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1249
|
+
let responseType_ = "json";
|
|
1250
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1251
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1252
|
+
responseType_ = "text";
|
|
1253
|
+
}
|
|
1254
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1255
|
+
responseType_ = "json";
|
|
1256
|
+
}
|
|
1257
|
+
else {
|
|
1258
|
+
responseType_ = "blob";
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1262
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1263
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1264
|
+
context: localVarHttpContext,
|
|
1265
|
+
responseType: responseType_,
|
|
1266
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1267
|
+
headers: localVarHeaders,
|
|
1268
|
+
observe: observe,
|
|
1269
|
+
transferCache: localVarTransferCache,
|
|
1270
|
+
reportProgress: reportProgress,
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
repTerritoriesSearchRepTerritories(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1274
|
+
const repName = requestParameters?.repName;
|
|
1275
|
+
const repCode = requestParameters?.repCode;
|
|
1276
|
+
const rsdRegionName = requestParameters?.rsdRegionName;
|
|
1277
|
+
const orderBy = requestParameters?.orderBy;
|
|
1278
|
+
const page = requestParameters?.page;
|
|
1279
|
+
const pageSize = requestParameters?.pageSize;
|
|
1280
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1281
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repName, "RepName");
|
|
1282
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repCode, "RepCode");
|
|
1283
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, rsdRegionName, "RsdRegionName");
|
|
1284
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
1285
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
1286
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
1287
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1288
|
+
// authentication (Bearer) required
|
|
1289
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1290
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1291
|
+
this.configuration.selectHeaderAccept([
|
|
1292
|
+
"text/plain",
|
|
1293
|
+
"application/json",
|
|
1294
|
+
"text/json",
|
|
1295
|
+
]);
|
|
1296
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1297
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1298
|
+
}
|
|
1299
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1300
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1301
|
+
let responseType_ = "json";
|
|
1302
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1303
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1304
|
+
responseType_ = "text";
|
|
1305
|
+
}
|
|
1306
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1307
|
+
responseType_ = "json";
|
|
1308
|
+
}
|
|
1309
|
+
else {
|
|
1310
|
+
responseType_ = "blob";
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
let localVarPath = `/api/rep-territories`;
|
|
1314
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1315
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1316
|
+
context: localVarHttpContext,
|
|
1317
|
+
params: localVarQueryParameters,
|
|
1318
|
+
responseType: responseType_,
|
|
1319
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1320
|
+
headers: localVarHeaders,
|
|
1321
|
+
observe: observe,
|
|
1322
|
+
transferCache: localVarTransferCache,
|
|
1323
|
+
reportProgress: reportProgress,
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
repTerritoriesUpdateRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1327
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1328
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
1329
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesUpdateRepTerritory.");
|
|
1330
|
+
}
|
|
1331
|
+
const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
|
|
1332
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1333
|
+
// authentication (Bearer) required
|
|
1334
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1335
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1336
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1337
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1338
|
+
}
|
|
1339
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1340
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1341
|
+
// to determine the Content-Type header
|
|
1342
|
+
const consumes = [
|
|
1343
|
+
"application/json",
|
|
1344
|
+
"text/json",
|
|
1345
|
+
"application/*+json",
|
|
1346
|
+
];
|
|
1347
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1348
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1349
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1350
|
+
}
|
|
1351
|
+
let responseType_ = "json";
|
|
1352
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1353
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1354
|
+
responseType_ = "text";
|
|
1355
|
+
}
|
|
1356
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1357
|
+
responseType_ = "json";
|
|
1358
|
+
}
|
|
1359
|
+
else {
|
|
1360
|
+
responseType_ = "blob";
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1364
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1365
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
1366
|
+
context: localVarHttpContext,
|
|
1367
|
+
body: saveRepTerritoryDto,
|
|
1368
|
+
responseType: responseType_,
|
|
1369
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1370
|
+
headers: localVarHeaders,
|
|
1371
|
+
observe: observe,
|
|
1372
|
+
transferCache: localVarTransferCache,
|
|
1373
|
+
reportProgress: reportProgress,
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoriesApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1377
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoriesApiService, providedIn: "root" });
|
|
1378
|
+
}
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoriesApiService, decorators: [{
|
|
1380
|
+
type: Injectable,
|
|
1381
|
+
args: [{
|
|
1382
|
+
providedIn: "root",
|
|
1383
|
+
}]
|
|
1384
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1385
|
+
type: Optional
|
|
1386
|
+
}, {
|
|
1387
|
+
type: Inject,
|
|
1388
|
+
args: [BASE_PATH]
|
|
1389
|
+
}] }, { type: Configuration, decorators: [{
|
|
1390
|
+
type: Optional
|
|
1391
|
+
}] }] });
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* RenewAire CORES API
|
|
1395
|
+
*
|
|
1396
|
+
* Contact: renewaire@saritasa.com
|
|
1397
|
+
*
|
|
1398
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1399
|
+
* https://openapi-generator.tech
|
|
1400
|
+
* Do not edit the class manually.
|
|
1401
|
+
*/
|
|
1402
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1403
|
+
class RepTerritoryLocationsApiService extends BaseService {
|
|
1404
|
+
httpClient;
|
|
1405
|
+
constructor(httpClient, basePath, configuration) {
|
|
1406
|
+
super(basePath, configuration);
|
|
1407
|
+
this.httpClient = httpClient;
|
|
1408
|
+
}
|
|
1409
|
+
repTerritoryLocationsGetRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1410
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1411
|
+
if (repTerritoryLocationId === null ||
|
|
1412
|
+
repTerritoryLocationId === undefined) {
|
|
1413
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsGetRepTerritoryLocation.");
|
|
1414
|
+
}
|
|
1415
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1416
|
+
// authentication (Bearer) required
|
|
1417
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1418
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1419
|
+
this.configuration.selectHeaderAccept([
|
|
1420
|
+
"text/plain",
|
|
1421
|
+
"application/json",
|
|
1422
|
+
"text/json",
|
|
1423
|
+
]);
|
|
1424
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1425
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1426
|
+
}
|
|
1427
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1428
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1429
|
+
let responseType_ = "json";
|
|
1430
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1431
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1432
|
+
responseType_ = "text";
|
|
1433
|
+
}
|
|
1434
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1435
|
+
responseType_ = "json";
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
responseType_ = "blob";
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1442
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1443
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1444
|
+
context: localVarHttpContext,
|
|
1445
|
+
responseType: responseType_,
|
|
1446
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1447
|
+
headers: localVarHeaders,
|
|
1448
|
+
observe: observe,
|
|
1449
|
+
transferCache: localVarTransferCache,
|
|
1450
|
+
reportProgress: reportProgress,
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
repTerritoryLocationsRemoveRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1454
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1455
|
+
if (repTerritoryLocationId === null ||
|
|
1456
|
+
repTerritoryLocationId === undefined) {
|
|
1457
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsRemoveRepTerritoryLocation.");
|
|
1458
|
+
}
|
|
1459
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1460
|
+
// authentication (Bearer) required
|
|
1461
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1462
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1463
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1464
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1465
|
+
}
|
|
1466
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1467
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1468
|
+
let responseType_ = "json";
|
|
1469
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1470
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1471
|
+
responseType_ = "text";
|
|
1472
|
+
}
|
|
1473
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1474
|
+
responseType_ = "json";
|
|
1475
|
+
}
|
|
1476
|
+
else {
|
|
1477
|
+
responseType_ = "blob";
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1481
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1482
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1483
|
+
context: localVarHttpContext,
|
|
1484
|
+
responseType: responseType_,
|
|
1485
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1486
|
+
headers: localVarHeaders,
|
|
1487
|
+
observe: observe,
|
|
1488
|
+
transferCache: localVarTransferCache,
|
|
1489
|
+
reportProgress: reportProgress,
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
repTerritoryLocationsSearchRepTerritoryLocations(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1493
|
+
const name = requestParameters?.name;
|
|
1494
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
1495
|
+
const repName = requestParameters?.repName;
|
|
1496
|
+
const allCounties = requestParameters?.allCounties;
|
|
1497
|
+
const orderBy = requestParameters?.orderBy;
|
|
1498
|
+
const page = requestParameters?.page;
|
|
1499
|
+
const pageSize = requestParameters?.pageSize;
|
|
1500
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1501
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
1502
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repTerritoryId, "RepTerritoryId");
|
|
1503
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repName, "RepName");
|
|
1504
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, allCounties, "AllCounties");
|
|
1505
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
1506
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
1507
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
1508
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1509
|
+
// authentication (Bearer) required
|
|
1510
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1511
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1512
|
+
this.configuration.selectHeaderAccept([
|
|
1513
|
+
"text/plain",
|
|
1514
|
+
"application/json",
|
|
1515
|
+
"text/json",
|
|
1516
|
+
]);
|
|
1517
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1518
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1519
|
+
}
|
|
1520
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1521
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1522
|
+
let responseType_ = "json";
|
|
1523
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1524
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1525
|
+
responseType_ = "text";
|
|
1526
|
+
}
|
|
1527
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1528
|
+
responseType_ = "json";
|
|
1529
|
+
}
|
|
1530
|
+
else {
|
|
1531
|
+
responseType_ = "blob";
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
let localVarPath = `/api/rep-territory-locations`;
|
|
1535
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1536
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1537
|
+
context: localVarHttpContext,
|
|
1538
|
+
params: localVarQueryParameters,
|
|
1539
|
+
responseType: responseType_,
|
|
1540
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1541
|
+
headers: localVarHeaders,
|
|
1542
|
+
observe: observe,
|
|
1543
|
+
transferCache: localVarTransferCache,
|
|
1544
|
+
reportProgress: reportProgress,
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
repTerritoryLocationsUpdateRepTerritoryLocation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1548
|
+
const repTerritoryLocationId = requestParameters?.repTerritoryLocationId;
|
|
1549
|
+
if (repTerritoryLocationId === null ||
|
|
1550
|
+
repTerritoryLocationId === undefined) {
|
|
1551
|
+
throw new Error("Required parameter repTerritoryLocationId was null or undefined when calling repTerritoryLocationsUpdateRepTerritoryLocation.");
|
|
1552
|
+
}
|
|
1553
|
+
const saveRepTerritoryLocationDto = requestParameters?.saveRepTerritoryLocationDto;
|
|
1554
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1555
|
+
// authentication (Bearer) required
|
|
1556
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1557
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1558
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1559
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1560
|
+
}
|
|
1561
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1562
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1563
|
+
// to determine the Content-Type header
|
|
1564
|
+
const consumes = [
|
|
1565
|
+
"application/json",
|
|
1566
|
+
"text/json",
|
|
1567
|
+
"application/*+json",
|
|
1568
|
+
];
|
|
1569
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1570
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1571
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1572
|
+
}
|
|
1573
|
+
let responseType_ = "json";
|
|
1574
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1575
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1576
|
+
responseType_ = "text";
|
|
1577
|
+
}
|
|
1578
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1579
|
+
responseType_ = "json";
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
responseType_ = "blob";
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
let localVarPath = `/api/rep-territory-locations/${this.configuration.encodeParam({ name: "repTerritoryLocationId", value: repTerritoryLocationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1586
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1587
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
1588
|
+
context: localVarHttpContext,
|
|
1589
|
+
body: saveRepTerritoryLocationDto,
|
|
1590
|
+
responseType: responseType_,
|
|
1591
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1592
|
+
headers: localVarHeaders,
|
|
1593
|
+
observe: observe,
|
|
1594
|
+
transferCache: localVarTransferCache,
|
|
1595
|
+
reportProgress: reportProgress,
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoryLocationsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1599
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoryLocationsApiService, providedIn: "root" });
|
|
1600
|
+
}
|
|
1601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RepTerritoryLocationsApiService, decorators: [{
|
|
1602
|
+
type: Injectable,
|
|
1603
|
+
args: [{
|
|
1604
|
+
providedIn: "root",
|
|
1605
|
+
}]
|
|
1606
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1607
|
+
type: Optional
|
|
1608
|
+
}, {
|
|
1609
|
+
type: Inject,
|
|
1610
|
+
args: [BASE_PATH]
|
|
1611
|
+
}] }, { type: Configuration, decorators: [{
|
|
1612
|
+
type: Optional
|
|
1613
|
+
}] }] });
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* RenewAire CORES API
|
|
1617
|
+
*
|
|
1618
|
+
* Contact: renewaire@saritasa.com
|
|
1619
|
+
*
|
|
1620
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1621
|
+
* https://openapi-generator.tech
|
|
1622
|
+
* Do not edit the class manually.
|
|
1623
|
+
*/
|
|
1624
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1625
|
+
class RsdRegionsApiService extends BaseService {
|
|
1626
|
+
httpClient;
|
|
1627
|
+
constructor(httpClient, basePath, configuration) {
|
|
1628
|
+
super(basePath, configuration);
|
|
1629
|
+
this.httpClient = httpClient;
|
|
1630
|
+
}
|
|
1631
|
+
rsdRegionsCreateDocumentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1632
|
+
const rsdRegionId = requestParameters?.rsdRegionId;
|
|
1633
|
+
if (rsdRegionId === null || rsdRegionId === undefined) {
|
|
1634
|
+
throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsCreateDocumentDownloadUrl.");
|
|
1635
|
+
}
|
|
1636
|
+
const documentId = requestParameters?.documentId;
|
|
1637
|
+
if (documentId === null || documentId === undefined) {
|
|
1638
|
+
throw new Error("Required parameter documentId was null or undefined when calling rsdRegionsCreateDocumentDownloadUrl.");
|
|
1639
|
+
}
|
|
1640
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1641
|
+
// authentication (Bearer) required
|
|
1642
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1643
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1644
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1645
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1646
|
+
}
|
|
1647
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1648
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1649
|
+
let responseType_ = "json";
|
|
1650
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1651
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1652
|
+
responseType_ = "text";
|
|
1653
|
+
}
|
|
1654
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1655
|
+
responseType_ = "json";
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
responseType_ = "blob";
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/documents/${this.configuration.encodeParam({ name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/download-url`;
|
|
1662
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1663
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1664
|
+
context: localVarHttpContext,
|
|
1665
|
+
responseType: responseType_,
|
|
1666
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1667
|
+
headers: localVarHeaders,
|
|
1668
|
+
observe: observe,
|
|
1669
|
+
transferCache: localVarTransferCache,
|
|
1670
|
+
reportProgress: reportProgress,
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
rsdRegionsCreateDocumentUploadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1674
|
+
const createUploadUrlCommand = requestParameters?.createUploadUrlCommand;
|
|
1675
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1676
|
+
// authentication (Bearer) required
|
|
1677
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1678
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1679
|
+
this.configuration.selectHeaderAccept([
|
|
1680
|
+
"text/plain",
|
|
1681
|
+
"application/json",
|
|
1682
|
+
"text/json",
|
|
1683
|
+
]);
|
|
1684
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1685
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1686
|
+
}
|
|
1687
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1688
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1689
|
+
// to determine the Content-Type header
|
|
1690
|
+
const consumes = [
|
|
1691
|
+
"application/json",
|
|
1692
|
+
"text/json",
|
|
1693
|
+
"application/*+json",
|
|
1694
|
+
];
|
|
1695
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1696
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1697
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1698
|
+
}
|
|
1699
|
+
let responseType_ = "json";
|
|
1700
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1701
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1702
|
+
responseType_ = "text";
|
|
1703
|
+
}
|
|
1704
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1705
|
+
responseType_ = "json";
|
|
1706
|
+
}
|
|
1707
|
+
else {
|
|
1708
|
+
responseType_ = "blob";
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
let localVarPath = `/api/rsd-regions/documents/upload-url`;
|
|
1712
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1713
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1714
|
+
context: localVarHttpContext,
|
|
1715
|
+
body: createUploadUrlCommand,
|
|
1716
|
+
responseType: responseType_,
|
|
1717
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1718
|
+
headers: localVarHeaders,
|
|
1719
|
+
observe: observe,
|
|
1720
|
+
transferCache: localVarTransferCache,
|
|
1721
|
+
reportProgress: reportProgress,
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
rsdRegionsCreateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1725
|
+
const createRsdRegionDto = requestParameters?.createRsdRegionDto;
|
|
1726
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1727
|
+
// authentication (Bearer) required
|
|
1728
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1729
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1730
|
+
this.configuration.selectHeaderAccept([
|
|
1731
|
+
"text/plain",
|
|
1732
|
+
"application/json",
|
|
1733
|
+
"text/json",
|
|
1734
|
+
]);
|
|
1735
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1736
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1737
|
+
}
|
|
1738
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1739
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1740
|
+
// to determine the Content-Type header
|
|
1741
|
+
const consumes = [
|
|
1742
|
+
"application/json",
|
|
1743
|
+
"text/json",
|
|
1744
|
+
"application/*+json",
|
|
1745
|
+
];
|
|
1746
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1747
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1748
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1749
|
+
}
|
|
1750
|
+
let responseType_ = "json";
|
|
1751
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1752
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1753
|
+
responseType_ = "text";
|
|
1754
|
+
}
|
|
1755
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1756
|
+
responseType_ = "json";
|
|
1757
|
+
}
|
|
1758
|
+
else {
|
|
1759
|
+
responseType_ = "blob";
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
let localVarPath = `/api/rsd-regions`;
|
|
1763
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1764
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1765
|
+
context: localVarHttpContext,
|
|
1766
|
+
body: createRsdRegionDto,
|
|
1767
|
+
responseType: responseType_,
|
|
1768
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1769
|
+
headers: localVarHeaders,
|
|
1770
|
+
observe: observe,
|
|
1771
|
+
transferCache: localVarTransferCache,
|
|
1772
|
+
reportProgress: reportProgress,
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
rsdRegionsCreateRsdRegionDocuments(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1776
|
+
const id = requestParameters?.id;
|
|
1777
|
+
if (id === null || id === undefined) {
|
|
1778
|
+
throw new Error("Required parameter id was null or undefined when calling rsdRegionsCreateRsdRegionDocuments.");
|
|
1779
|
+
}
|
|
1780
|
+
const createDocumentsDto = requestParameters?.createDocumentsDto;
|
|
1781
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1782
|
+
// authentication (Bearer) required
|
|
1783
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1784
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1785
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1786
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1787
|
+
}
|
|
1788
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1789
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1790
|
+
// to determine the Content-Type header
|
|
1791
|
+
const consumes = [
|
|
1792
|
+
"application/json",
|
|
1793
|
+
"text/json",
|
|
1794
|
+
"application/*+json",
|
|
1795
|
+
];
|
|
1796
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1797
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1798
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1799
|
+
}
|
|
1800
|
+
let responseType_ = "json";
|
|
1801
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1802
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1803
|
+
responseType_ = "text";
|
|
1804
|
+
}
|
|
1805
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1806
|
+
responseType_ = "json";
|
|
1807
|
+
}
|
|
1808
|
+
else {
|
|
1809
|
+
responseType_ = "blob";
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/documents`;
|
|
1813
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1814
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
1815
|
+
context: localVarHttpContext,
|
|
1816
|
+
body: createDocumentsDto,
|
|
1817
|
+
responseType: responseType_,
|
|
1818
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1819
|
+
headers: localVarHeaders,
|
|
1820
|
+
observe: observe,
|
|
1821
|
+
transferCache: localVarTransferCache,
|
|
1822
|
+
reportProgress: reportProgress,
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1825
|
+
rsdRegionsGetRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1826
|
+
const id = requestParameters?.id;
|
|
1827
|
+
if (id === null || id === undefined) {
|
|
1828
|
+
throw new Error("Required parameter id was null or undefined when calling rsdRegionsGetRsdRegion.");
|
|
1829
|
+
}
|
|
1830
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1831
|
+
// authentication (Bearer) required
|
|
1832
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1833
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1834
|
+
this.configuration.selectHeaderAccept([
|
|
1835
|
+
"text/plain",
|
|
1836
|
+
"application/json",
|
|
1837
|
+
"text/json",
|
|
1838
|
+
]);
|
|
1839
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1840
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1841
|
+
}
|
|
1842
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1843
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1844
|
+
let responseType_ = "json";
|
|
1845
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1846
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1847
|
+
responseType_ = "text";
|
|
1848
|
+
}
|
|
1849
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1850
|
+
responseType_ = "json";
|
|
1851
|
+
}
|
|
1852
|
+
else {
|
|
1853
|
+
responseType_ = "blob";
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1857
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1858
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1859
|
+
context: localVarHttpContext,
|
|
1860
|
+
responseType: responseType_,
|
|
1861
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1862
|
+
headers: localVarHeaders,
|
|
1863
|
+
observe: observe,
|
|
1864
|
+
transferCache: localVarTransferCache,
|
|
1865
|
+
reportProgress: reportProgress,
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
rsdRegionsRemoveRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1869
|
+
const id = requestParameters?.id;
|
|
1870
|
+
if (id === null || id === undefined) {
|
|
1871
|
+
throw new Error("Required parameter id was null or undefined when calling rsdRegionsRemoveRsdRegion.");
|
|
1872
|
+
}
|
|
1873
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1874
|
+
// authentication (Bearer) required
|
|
1875
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1876
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1877
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1878
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1879
|
+
}
|
|
1880
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1881
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1882
|
+
let responseType_ = "json";
|
|
1883
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1884
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1885
|
+
responseType_ = "text";
|
|
1886
|
+
}
|
|
1887
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1888
|
+
responseType_ = "json";
|
|
1889
|
+
}
|
|
1890
|
+
else {
|
|
1891
|
+
responseType_ = "blob";
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
1895
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1896
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1897
|
+
context: localVarHttpContext,
|
|
1898
|
+
responseType: responseType_,
|
|
1899
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1900
|
+
headers: localVarHeaders,
|
|
1901
|
+
observe: observe,
|
|
1902
|
+
transferCache: localVarTransferCache,
|
|
1903
|
+
reportProgress: reportProgress,
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
rsdRegionsRemoveRsdRegionDocuments(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1907
|
+
const removeDocumentsCommand = requestParameters?.removeDocumentsCommand;
|
|
1908
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1909
|
+
// authentication (Bearer) required
|
|
1910
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1911
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1912
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1913
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1914
|
+
}
|
|
1915
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1916
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1917
|
+
// to determine the Content-Type header
|
|
1918
|
+
const consumes = [
|
|
1919
|
+
"application/json",
|
|
1920
|
+
"text/json",
|
|
1921
|
+
"application/*+json",
|
|
1922
|
+
];
|
|
1923
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1924
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1925
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
1926
|
+
}
|
|
1927
|
+
let responseType_ = "json";
|
|
1928
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1929
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1930
|
+
responseType_ = "text";
|
|
1931
|
+
}
|
|
1932
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1933
|
+
responseType_ = "json";
|
|
1934
|
+
}
|
|
1935
|
+
else {
|
|
1936
|
+
responseType_ = "blob";
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
let localVarPath = `/api/rsd-regions/documents`;
|
|
1940
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1941
|
+
return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
|
|
1942
|
+
context: localVarHttpContext,
|
|
1943
|
+
body: removeDocumentsCommand,
|
|
1944
|
+
responseType: responseType_,
|
|
1945
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1946
|
+
headers: localVarHeaders,
|
|
1947
|
+
observe: observe,
|
|
1948
|
+
transferCache: localVarTransferCache,
|
|
1949
|
+
reportProgress: reportProgress,
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
rsdRegionsSearchRsdRegions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1953
|
+
const name = requestParameters?.name;
|
|
1954
|
+
const isActive = requestParameters?.isActive;
|
|
1955
|
+
const rsdUserIds = requestParameters?.rsdUserIds;
|
|
1956
|
+
const repTerritoryIds = requestParameters?.repTerritoryIds;
|
|
1957
|
+
const orderBy = requestParameters?.orderBy;
|
|
1958
|
+
const page = requestParameters?.page;
|
|
1959
|
+
const pageSize = requestParameters?.pageSize;
|
|
1960
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1961
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
1962
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "IsActive");
|
|
1963
|
+
if (rsdUserIds) {
|
|
1964
|
+
rsdUserIds.forEach((element) => {
|
|
1965
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "RsdUserIds");
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
if (repTerritoryIds) {
|
|
1969
|
+
repTerritoryIds.forEach((element) => {
|
|
1970
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "RepTerritoryIds");
|
|
1971
|
+
});
|
|
1972
|
+
}
|
|
1973
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
1974
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
1975
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
1976
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1977
|
+
// authentication (Bearer) required
|
|
1978
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1979
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1980
|
+
this.configuration.selectHeaderAccept([
|
|
1981
|
+
"text/plain",
|
|
1982
|
+
"application/json",
|
|
1983
|
+
"text/json",
|
|
1984
|
+
]);
|
|
1985
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1986
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1987
|
+
}
|
|
1988
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1989
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1990
|
+
let responseType_ = "json";
|
|
1991
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1992
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1993
|
+
responseType_ = "text";
|
|
1994
|
+
}
|
|
1995
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1996
|
+
responseType_ = "json";
|
|
1997
|
+
}
|
|
1998
|
+
else {
|
|
1999
|
+
responseType_ = "blob";
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
let localVarPath = `/api/rsd-regions`;
|
|
2003
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2004
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2005
|
+
context: localVarHttpContext,
|
|
2006
|
+
params: localVarQueryParameters,
|
|
2007
|
+
responseType: responseType_,
|
|
2008
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2009
|
+
headers: localVarHeaders,
|
|
2010
|
+
observe: observe,
|
|
2011
|
+
transferCache: localVarTransferCache,
|
|
2012
|
+
reportProgress: reportProgress,
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
rsdRegionsUpdateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2016
|
+
const updateRsdRegionDto = requestParameters?.updateRsdRegionDto;
|
|
2017
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2018
|
+
// authentication (Bearer) required
|
|
2019
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2020
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2021
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2022
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2023
|
+
}
|
|
2024
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2025
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2026
|
+
// to determine the Content-Type header
|
|
2027
|
+
const consumes = [
|
|
2028
|
+
"application/json",
|
|
2029
|
+
"text/json",
|
|
2030
|
+
"application/*+json",
|
|
2031
|
+
];
|
|
2032
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2033
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2034
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2035
|
+
}
|
|
2036
|
+
let responseType_ = "json";
|
|
2037
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2038
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2039
|
+
responseType_ = "text";
|
|
2040
|
+
}
|
|
2041
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2042
|
+
responseType_ = "json";
|
|
2043
|
+
}
|
|
2044
|
+
else {
|
|
2045
|
+
responseType_ = "blob";
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
let localVarPath = `/api/rsd-regions`;
|
|
2049
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2050
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2051
|
+
context: localVarHttpContext,
|
|
2052
|
+
body: updateRsdRegionDto,
|
|
2053
|
+
responseType: responseType_,
|
|
2054
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2055
|
+
headers: localVarHeaders,
|
|
2056
|
+
observe: observe,
|
|
2057
|
+
transferCache: localVarTransferCache,
|
|
2058
|
+
reportProgress: reportProgress,
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RsdRegionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2062
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RsdRegionsApiService, providedIn: "root" });
|
|
2063
|
+
}
|
|
2064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: RsdRegionsApiService, decorators: [{
|
|
2065
|
+
type: Injectable,
|
|
2066
|
+
args: [{
|
|
2067
|
+
providedIn: "root",
|
|
2068
|
+
}]
|
|
2069
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2070
|
+
type: Optional
|
|
2071
|
+
}, {
|
|
2072
|
+
type: Inject,
|
|
2073
|
+
args: [BASE_PATH]
|
|
2074
|
+
}] }, { type: Configuration, decorators: [{
|
|
2075
|
+
type: Optional
|
|
2076
|
+
}] }] });
|
|
2077
|
+
|
|
2078
|
+
/**
|
|
2079
|
+
* RenewAire CORES API
|
|
2080
|
+
*
|
|
2081
|
+
* Contact: renewaire@saritasa.com
|
|
2082
|
+
*
|
|
2083
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2084
|
+
* https://openapi-generator.tech
|
|
2085
|
+
* Do not edit the class manually.
|
|
2086
|
+
*/
|
|
2087
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2088
|
+
class UserDesignConditionsApiService extends BaseService {
|
|
2089
|
+
httpClient;
|
|
2090
|
+
constructor(httpClient, basePath, configuration) {
|
|
2091
|
+
super(basePath, configuration);
|
|
2092
|
+
this.httpClient = httpClient;
|
|
2093
|
+
}
|
|
2094
|
+
userDesignConditionsGetProjectDesignConditions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2095
|
+
const userId = requestParameters?.userId;
|
|
2096
|
+
if (userId === null || userId === undefined) {
|
|
2097
|
+
throw new Error("Required parameter userId was null or undefined when calling userDesignConditionsGetProjectDesignConditions.");
|
|
2098
|
+
}
|
|
2099
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2100
|
+
// authentication (Bearer) required
|
|
2101
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2102
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
2103
|
+
this.configuration.selectHeaderAccept([
|
|
2104
|
+
"text/plain",
|
|
2105
|
+
"application/json",
|
|
2106
|
+
"text/json",
|
|
2107
|
+
]);
|
|
2108
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2109
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2110
|
+
}
|
|
2111
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2112
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2113
|
+
let responseType_ = "json";
|
|
2114
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2115
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2116
|
+
responseType_ = "text";
|
|
2117
|
+
}
|
|
2118
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2119
|
+
responseType_ = "json";
|
|
2120
|
+
}
|
|
2121
|
+
else {
|
|
2122
|
+
responseType_ = "blob";
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
let localVarPath = `/api/users/design-conditions/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
2126
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2127
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2128
|
+
context: localVarHttpContext,
|
|
2129
|
+
responseType: responseType_,
|
|
2130
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2131
|
+
headers: localVarHeaders,
|
|
2132
|
+
observe: observe,
|
|
2133
|
+
transferCache: localVarTransferCache,
|
|
2134
|
+
reportProgress: reportProgress,
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
userDesignConditionsSaveProjectDesignConditions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2138
|
+
const saveUserDesignConditionsDto = requestParameters?.saveUserDesignConditionsDto;
|
|
2139
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2140
|
+
// authentication (Bearer) required
|
|
2141
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2142
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2143
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2144
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2145
|
+
}
|
|
2146
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2147
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2148
|
+
// to determine the Content-Type header
|
|
2149
|
+
const consumes = [
|
|
2150
|
+
"application/json",
|
|
2151
|
+
"text/json",
|
|
2152
|
+
"application/*+json",
|
|
2153
|
+
];
|
|
2154
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2155
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2156
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2157
|
+
}
|
|
2158
|
+
let responseType_ = "json";
|
|
2159
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2160
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2161
|
+
responseType_ = "text";
|
|
2162
|
+
}
|
|
2163
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2164
|
+
responseType_ = "json";
|
|
2165
|
+
}
|
|
2166
|
+
else {
|
|
2167
|
+
responseType_ = "blob";
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
let localVarPath = `/api/users/design-conditions`;
|
|
2171
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2172
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2173
|
+
context: localVarHttpContext,
|
|
2174
|
+
body: saveUserDesignConditionsDto,
|
|
2175
|
+
responseType: responseType_,
|
|
2176
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2177
|
+
headers: localVarHeaders,
|
|
2178
|
+
observe: observe,
|
|
2179
|
+
transferCache: localVarTransferCache,
|
|
2180
|
+
reportProgress: reportProgress,
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UserDesignConditionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2184
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UserDesignConditionsApiService, providedIn: "root" });
|
|
2185
|
+
}
|
|
2186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UserDesignConditionsApiService, decorators: [{
|
|
2187
|
+
type: Injectable,
|
|
2188
|
+
args: [{
|
|
2189
|
+
providedIn: "root",
|
|
2190
|
+
}]
|
|
2191
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2192
|
+
type: Optional
|
|
2193
|
+
}, {
|
|
2194
|
+
type: Inject,
|
|
2195
|
+
args: [BASE_PATH]
|
|
2196
|
+
}] }, { type: Configuration, decorators: [{
|
|
2197
|
+
type: Optional
|
|
2198
|
+
}] }] });
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* RenewAire CORES API
|
|
2202
|
+
*
|
|
2203
|
+
* Contact: renewaire@saritasa.com
|
|
2204
|
+
*
|
|
2205
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2206
|
+
* https://openapi-generator.tech
|
|
2207
|
+
* Do not edit the class manually.
|
|
2208
|
+
*/
|
|
2209
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2210
|
+
class UsersApiService extends BaseService {
|
|
2211
|
+
httpClient;
|
|
2212
|
+
constructor(httpClient, basePath, configuration) {
|
|
2213
|
+
super(basePath, configuration);
|
|
2214
|
+
this.httpClient = httpClient;
|
|
2215
|
+
}
|
|
2216
|
+
usersConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2217
|
+
const emailConfirmationTokenDto = requestParameters?.emailConfirmationTokenDto;
|
|
2218
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2219
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2220
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2221
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2222
|
+
}
|
|
2223
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2224
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2225
|
+
// to determine the Content-Type header
|
|
2226
|
+
const consumes = [
|
|
2227
|
+
"application/json",
|
|
2228
|
+
"text/json",
|
|
2229
|
+
"application/*+json",
|
|
2230
|
+
];
|
|
2231
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2232
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2233
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2234
|
+
}
|
|
2235
|
+
let responseType_ = "json";
|
|
2236
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2237
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2238
|
+
responseType_ = "text";
|
|
2239
|
+
}
|
|
2240
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2241
|
+
responseType_ = "json";
|
|
2242
|
+
}
|
|
2243
|
+
else {
|
|
2244
|
+
responseType_ = "blob";
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
let localVarPath = `/api/users/confirm-email`;
|
|
2248
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2249
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2250
|
+
context: localVarHttpContext,
|
|
2251
|
+
body: emailConfirmationTokenDto,
|
|
2252
|
+
responseType: responseType_,
|
|
2253
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2254
|
+
headers: localVarHeaders,
|
|
2255
|
+
observe: observe,
|
|
2256
|
+
transferCache: localVarTransferCache,
|
|
2257
|
+
reportProgress: reportProgress,
|
|
2258
|
+
});
|
|
2259
|
+
}
|
|
2260
|
+
usersForgotPassword(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2261
|
+
const forgotPasswordCommand = requestParameters?.forgotPasswordCommand;
|
|
562
2262
|
let localVarHeaders = this.defaultHeaders;
|
|
563
2263
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
564
2264
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -588,11 +2288,11 @@ class UsersApiService extends BaseService {
|
|
|
588
2288
|
responseType_ = "blob";
|
|
589
2289
|
}
|
|
590
2290
|
}
|
|
591
|
-
let localVarPath = `/api/users/
|
|
2291
|
+
let localVarPath = `/api/users/forgot-password`;
|
|
592
2292
|
const { basePath, withCredentials } = this.configuration;
|
|
593
2293
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
594
2294
|
context: localVarHttpContext,
|
|
595
|
-
body:
|
|
2295
|
+
body: forgotPasswordCommand,
|
|
596
2296
|
responseType: responseType_,
|
|
597
2297
|
...(withCredentials ? { withCredentials } : {}),
|
|
598
2298
|
headers: localVarHeaders,
|
|
@@ -601,7 +2301,7 @@ class UsersApiService extends BaseService {
|
|
|
601
2301
|
reportProgress: reportProgress,
|
|
602
2302
|
});
|
|
603
2303
|
}
|
|
604
|
-
|
|
2304
|
+
usersGetCurrentRepContacts(observe = "body", reportProgress = false, options) {
|
|
605
2305
|
let localVarHeaders = this.defaultHeaders;
|
|
606
2306
|
// authentication (Bearer) required
|
|
607
2307
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -640,10 +2340,10 @@ class UsersApiService extends BaseService {
|
|
|
640
2340
|
reportProgress: reportProgress,
|
|
641
2341
|
});
|
|
642
2342
|
}
|
|
643
|
-
|
|
2343
|
+
usersGetRepContacts(requestParameters, observe = "body", reportProgress = false, options) {
|
|
644
2344
|
const userId = requestParameters?.userId;
|
|
645
2345
|
if (userId === null || userId === undefined) {
|
|
646
|
-
throw new Error("Required parameter userId was null or undefined when calling
|
|
2346
|
+
throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts.");
|
|
647
2347
|
}
|
|
648
2348
|
let localVarHeaders = this.defaultHeaders;
|
|
649
2349
|
// authentication (Bearer) required
|
|
@@ -776,10 +2476,54 @@ class UsersApiService extends BaseService {
|
|
|
776
2476
|
reportProgress: reportProgress,
|
|
777
2477
|
});
|
|
778
2478
|
}
|
|
779
|
-
|
|
780
|
-
|
|
2479
|
+
usersResetPassword(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2480
|
+
const resetPasswordCommand = requestParameters?.resetPasswordCommand;
|
|
2481
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2482
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2483
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2484
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2485
|
+
}
|
|
2486
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2487
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2488
|
+
// to determine the Content-Type header
|
|
2489
|
+
const consumes = [
|
|
2490
|
+
"application/json",
|
|
2491
|
+
"text/json",
|
|
2492
|
+
"application/*+json",
|
|
2493
|
+
];
|
|
2494
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2495
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2496
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2497
|
+
}
|
|
2498
|
+
let responseType_ = "json";
|
|
2499
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2500
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2501
|
+
responseType_ = "text";
|
|
2502
|
+
}
|
|
2503
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2504
|
+
responseType_ = "json";
|
|
2505
|
+
}
|
|
2506
|
+
else {
|
|
2507
|
+
responseType_ = "blob";
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
let localVarPath = `/api/users/reset-password`;
|
|
2511
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2512
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2513
|
+
context: localVarHttpContext,
|
|
2514
|
+
body: resetPasswordCommand,
|
|
2515
|
+
responseType: responseType_,
|
|
2516
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2517
|
+
headers: localVarHeaders,
|
|
2518
|
+
observe: observe,
|
|
2519
|
+
transferCache: localVarTransferCache,
|
|
2520
|
+
reportProgress: reportProgress,
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UsersApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2524
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UsersApiService, providedIn: "root" });
|
|
781
2525
|
}
|
|
782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
2526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: UsersApiService, decorators: [{
|
|
783
2527
|
type: Injectable,
|
|
784
2528
|
args: [{
|
|
785
2529
|
providedIn: "root",
|
|
@@ -795,11 +2539,160 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
795
2539
|
|
|
796
2540
|
const APIS = [
|
|
797
2541
|
AuthApiService,
|
|
2542
|
+
PermissionBundlesApiService,
|
|
798
2543
|
PermissionsApiService,
|
|
799
2544
|
RegionsApiService,
|
|
2545
|
+
RepContactsApiService,
|
|
2546
|
+
RepTerritoriesApiService,
|
|
2547
|
+
RepTerritoryLocationsApiService,
|
|
2548
|
+
RsdRegionsApiService,
|
|
2549
|
+
UserDesignConditionsApiService,
|
|
800
2550
|
UsersApiService,
|
|
801
2551
|
];
|
|
802
2552
|
|
|
2553
|
+
/**
|
|
2554
|
+
* RenewAire CORES API
|
|
2555
|
+
*
|
|
2556
|
+
* Contact: renewaire@saritasa.com
|
|
2557
|
+
*
|
|
2558
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2559
|
+
* https://openapi-generator.tech
|
|
2560
|
+
* Do not edit the class manually.
|
|
2561
|
+
*/
|
|
2562
|
+
/**
|
|
2563
|
+
* AddressCountry<br />0 = Unknown<br />1 = UnitedStates<br />2 = Canada<br />3 = Mexico
|
|
2564
|
+
*/
|
|
2565
|
+
var AddressCountry;
|
|
2566
|
+
(function (AddressCountry) {
|
|
2567
|
+
AddressCountry["Unknown"] = "Unknown";
|
|
2568
|
+
AddressCountry["UnitedStates"] = "UnitedStates";
|
|
2569
|
+
AddressCountry["Canada"] = "Canada";
|
|
2570
|
+
AddressCountry["Mexico"] = "Mexico";
|
|
2571
|
+
})(AddressCountry || (AddressCountry = {}));
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* RenewAire CORES API
|
|
2575
|
+
*
|
|
2576
|
+
* Contact: renewaire@saritasa.com
|
|
2577
|
+
*
|
|
2578
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2579
|
+
* https://openapi-generator.tech
|
|
2580
|
+
* Do not edit the class manually.
|
|
2581
|
+
*/
|
|
2582
|
+
var AddressDtoCountryEnum;
|
|
2583
|
+
(function (AddressDtoCountryEnum) {
|
|
2584
|
+
AddressDtoCountryEnum["Unknown"] = "Unknown";
|
|
2585
|
+
AddressDtoCountryEnum["UnitedStates"] = "UnitedStates";
|
|
2586
|
+
AddressDtoCountryEnum["Canada"] = "Canada";
|
|
2587
|
+
AddressDtoCountryEnum["Mexico"] = "Mexico";
|
|
2588
|
+
})(AddressDtoCountryEnum || (AddressDtoCountryEnum = {}));
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* RenewAire CORES API
|
|
2592
|
+
*
|
|
2593
|
+
* Contact: renewaire@saritasa.com
|
|
2594
|
+
*
|
|
2595
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2596
|
+
* https://openapi-generator.tech
|
|
2597
|
+
* Do not edit the class manually.
|
|
2598
|
+
*/
|
|
2599
|
+
/**
|
|
2600
|
+
* CoolingDesignBasis<br />0 = Cooling<br />1 = Dehumidification
|
|
2601
|
+
*/
|
|
2602
|
+
var CoolingDesignBasis;
|
|
2603
|
+
(function (CoolingDesignBasis) {
|
|
2604
|
+
CoolingDesignBasis["Cooling"] = "Cooling";
|
|
2605
|
+
CoolingDesignBasis["Dehumidification"] = "Dehumidification";
|
|
2606
|
+
})(CoolingDesignBasis || (CoolingDesignBasis = {}));
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* RenewAire CORES API
|
|
2610
|
+
*
|
|
2611
|
+
* Contact: renewaire@saritasa.com
|
|
2612
|
+
*
|
|
2613
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2614
|
+
* https://openapi-generator.tech
|
|
2615
|
+
* Do not edit the class manually.
|
|
2616
|
+
*/
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* RenewAire CORES API
|
|
2620
|
+
*
|
|
2621
|
+
* Contact: renewaire@saritasa.com
|
|
2622
|
+
*
|
|
2623
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2624
|
+
* https://openapi-generator.tech
|
|
2625
|
+
* Do not edit the class manually.
|
|
2626
|
+
*/
|
|
2627
|
+
|
|
2628
|
+
/**
|
|
2629
|
+
* RenewAire CORES API
|
|
2630
|
+
*
|
|
2631
|
+
* Contact: renewaire@saritasa.com
|
|
2632
|
+
*
|
|
2633
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2634
|
+
* https://openapi-generator.tech
|
|
2635
|
+
* Do not edit the class manually.
|
|
2636
|
+
*/
|
|
2637
|
+
/**
|
|
2638
|
+
* DesignWeatherMode<br />0 = RelativeHumidity<br />1 = WetBulb
|
|
2639
|
+
*/
|
|
2640
|
+
var DesignWeatherMode;
|
|
2641
|
+
(function (DesignWeatherMode) {
|
|
2642
|
+
DesignWeatherMode["RelativeHumidity"] = "RelativeHumidity";
|
|
2643
|
+
DesignWeatherMode["WetBulb"] = "WetBulb";
|
|
2644
|
+
})(DesignWeatherMode || (DesignWeatherMode = {}));
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* RenewAire CORES API
|
|
2648
|
+
*
|
|
2649
|
+
* Contact: renewaire@saritasa.com
|
|
2650
|
+
*
|
|
2651
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2652
|
+
* https://openapi-generator.tech
|
|
2653
|
+
* Do not edit the class manually.
|
|
2654
|
+
*/
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* RenewAire CORES API
|
|
2658
|
+
*
|
|
2659
|
+
* Contact: renewaire@saritasa.com
|
|
2660
|
+
*
|
|
2661
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2662
|
+
* https://openapi-generator.tech
|
|
2663
|
+
* Do not edit the class manually.
|
|
2664
|
+
*/
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* RenewAire CORES API
|
|
2668
|
+
*
|
|
2669
|
+
* Contact: renewaire@saritasa.com
|
|
2670
|
+
*
|
|
2671
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2672
|
+
* https://openapi-generator.tech
|
|
2673
|
+
* Do not edit the class manually.
|
|
2674
|
+
*/
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* RenewAire CORES API
|
|
2678
|
+
*
|
|
2679
|
+
* Contact: renewaire@saritasa.com
|
|
2680
|
+
*
|
|
2681
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2682
|
+
* https://openapi-generator.tech
|
|
2683
|
+
* Do not edit the class manually.
|
|
2684
|
+
*/
|
|
2685
|
+
|
|
2686
|
+
/**
|
|
2687
|
+
* RenewAire CORES API
|
|
2688
|
+
*
|
|
2689
|
+
* Contact: renewaire@saritasa.com
|
|
2690
|
+
*
|
|
2691
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2692
|
+
* https://openapi-generator.tech
|
|
2693
|
+
* Do not edit the class manually.
|
|
2694
|
+
*/
|
|
2695
|
+
|
|
803
2696
|
/**
|
|
804
2697
|
* RenewAire CORES API
|
|
805
2698
|
*
|
|
@@ -839,6 +2732,14 @@ const APIS = [
|
|
|
839
2732
|
* https://openapi-generator.tech
|
|
840
2733
|
* Do not edit the class manually.
|
|
841
2734
|
*/
|
|
2735
|
+
/**
|
|
2736
|
+
* Permission<br />0 = SystemAdmin<br />1 = UserAdministration
|
|
2737
|
+
*/
|
|
2738
|
+
var Permission;
|
|
2739
|
+
(function (Permission) {
|
|
2740
|
+
Permission["SystemAdmin"] = "SystemAdmin";
|
|
2741
|
+
Permission["UserAdministration"] = "UserAdministration";
|
|
2742
|
+
})(Permission || (Permission = {}));
|
|
842
2743
|
|
|
843
2744
|
/**
|
|
844
2745
|
* RenewAire CORES API
|
|
@@ -889,6 +2790,12 @@ const APIS = [
|
|
|
889
2790
|
* https://openapi-generator.tech
|
|
890
2791
|
* Do not edit the class manually.
|
|
891
2792
|
*/
|
|
2793
|
+
var RegionDtoLevelEnum;
|
|
2794
|
+
(function (RegionDtoLevelEnum) {
|
|
2795
|
+
RegionDtoLevelEnum["Country"] = "Country";
|
|
2796
|
+
RegionDtoLevelEnum["State"] = "State";
|
|
2797
|
+
RegionDtoLevelEnum["County"] = "County";
|
|
2798
|
+
})(RegionDtoLevelEnum || (RegionDtoLevelEnum = {}));
|
|
892
2799
|
|
|
893
2800
|
/**
|
|
894
2801
|
* RenewAire CORES API
|
|
@@ -909,6 +2816,72 @@ var RegionLevel;
|
|
|
909
2816
|
RegionLevel["County"] = "County";
|
|
910
2817
|
})(RegionLevel || (RegionLevel = {}));
|
|
911
2818
|
|
|
2819
|
+
/**
|
|
2820
|
+
* RenewAire CORES API
|
|
2821
|
+
*
|
|
2822
|
+
* Contact: renewaire@saritasa.com
|
|
2823
|
+
*
|
|
2824
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2825
|
+
* https://openapi-generator.tech
|
|
2826
|
+
* Do not edit the class manually.
|
|
2827
|
+
*/
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* RenewAire CORES API
|
|
2831
|
+
*
|
|
2832
|
+
* Contact: renewaire@saritasa.com
|
|
2833
|
+
*
|
|
2834
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2835
|
+
* https://openapi-generator.tech
|
|
2836
|
+
* Do not edit the class manually.
|
|
2837
|
+
*/
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* RenewAire CORES API
|
|
2841
|
+
*
|
|
2842
|
+
* Contact: renewaire@saritasa.com
|
|
2843
|
+
*
|
|
2844
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2845
|
+
* https://openapi-generator.tech
|
|
2846
|
+
* Do not edit the class manually.
|
|
2847
|
+
*/
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* RenewAire CORES API
|
|
2851
|
+
*
|
|
2852
|
+
* Contact: renewaire@saritasa.com
|
|
2853
|
+
*
|
|
2854
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2855
|
+
* https://openapi-generator.tech
|
|
2856
|
+
* Do not edit the class manually.
|
|
2857
|
+
*/
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* RenewAire CORES API
|
|
2861
|
+
*
|
|
2862
|
+
* Contact: renewaire@saritasa.com
|
|
2863
|
+
*
|
|
2864
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2865
|
+
* https://openapi-generator.tech
|
|
2866
|
+
* Do not edit the class manually.
|
|
2867
|
+
*/
|
|
2868
|
+
|
|
2869
|
+
var SaveUserDesignConditionsDtoCoolingDesignBasisEnum;
|
|
2870
|
+
(function (SaveUserDesignConditionsDtoCoolingDesignBasisEnum) {
|
|
2871
|
+
SaveUserDesignConditionsDtoCoolingDesignBasisEnum["Cooling"] = "Cooling";
|
|
2872
|
+
SaveUserDesignConditionsDtoCoolingDesignBasisEnum["Dehumidification"] = "Dehumidification";
|
|
2873
|
+
})(SaveUserDesignConditionsDtoCoolingDesignBasisEnum || (SaveUserDesignConditionsDtoCoolingDesignBasisEnum = {}));
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* RenewAire CORES API
|
|
2877
|
+
*
|
|
2878
|
+
* Contact: renewaire@saritasa.com
|
|
2879
|
+
*
|
|
2880
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2881
|
+
* https://openapi-generator.tech
|
|
2882
|
+
* Do not edit the class manually.
|
|
2883
|
+
*/
|
|
2884
|
+
|
|
912
2885
|
/**
|
|
913
2886
|
* RenewAire CORES API
|
|
914
2887
|
*
|
|
@@ -945,6 +2918,48 @@ var SearchRegionDtoLevelEnum;
|
|
|
945
2918
|
* Do not edit the class manually.
|
|
946
2919
|
*/
|
|
947
2920
|
|
|
2921
|
+
/**
|
|
2922
|
+
* RenewAire CORES API
|
|
2923
|
+
*
|
|
2924
|
+
* Contact: renewaire@saritasa.com
|
|
2925
|
+
*
|
|
2926
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2927
|
+
* https://openapi-generator.tech
|
|
2928
|
+
* Do not edit the class manually.
|
|
2929
|
+
*/
|
|
2930
|
+
|
|
2931
|
+
/**
|
|
2932
|
+
* RenewAire CORES API
|
|
2933
|
+
*
|
|
2934
|
+
* Contact: renewaire@saritasa.com
|
|
2935
|
+
*
|
|
2936
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2937
|
+
* https://openapi-generator.tech
|
|
2938
|
+
* Do not edit the class manually.
|
|
2939
|
+
*/
|
|
2940
|
+
|
|
2941
|
+
/**
|
|
2942
|
+
* RenewAire CORES API
|
|
2943
|
+
*
|
|
2944
|
+
* Contact: renewaire@saritasa.com
|
|
2945
|
+
*
|
|
2946
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2947
|
+
* https://openapi-generator.tech
|
|
2948
|
+
* Do not edit the class manually.
|
|
2949
|
+
*/
|
|
2950
|
+
|
|
2951
|
+
var UserDesignConditionsDtoCoolingDesignBasisEnum;
|
|
2952
|
+
(function (UserDesignConditionsDtoCoolingDesignBasisEnum) {
|
|
2953
|
+
UserDesignConditionsDtoCoolingDesignBasisEnum["Cooling"] = "Cooling";
|
|
2954
|
+
UserDesignConditionsDtoCoolingDesignBasisEnum["Dehumidification"] = "Dehumidification";
|
|
2955
|
+
})(UserDesignConditionsDtoCoolingDesignBasisEnum || (UserDesignConditionsDtoCoolingDesignBasisEnum = {}));
|
|
2956
|
+
|
|
2957
|
+
var UserDesignWeatherConditionDtoDesignWeatherModeEnum;
|
|
2958
|
+
(function (UserDesignWeatherConditionDtoDesignWeatherModeEnum) {
|
|
2959
|
+
UserDesignWeatherConditionDtoDesignWeatherModeEnum["RelativeHumidity"] = "RelativeHumidity";
|
|
2960
|
+
UserDesignWeatherConditionDtoDesignWeatherModeEnum["WetBulb"] = "WetBulb";
|
|
2961
|
+
})(UserDesignWeatherConditionDtoDesignWeatherModeEnum || (UserDesignWeatherConditionDtoDesignWeatherModeEnum = {}));
|
|
2962
|
+
|
|
948
2963
|
/**
|
|
949
2964
|
* RenewAire CORES API
|
|
950
2965
|
*
|
|
@@ -991,11 +3006,11 @@ class ApiModule {
|
|
|
991
3006
|
"See also https://github.com/angular/angular/issues/20575");
|
|
992
3007
|
}
|
|
993
3008
|
}
|
|
994
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
|
995
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.
|
|
996
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.
|
|
3009
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3010
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.5", ngImport: i0, type: ApiModule });
|
|
3011
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: ApiModule });
|
|
997
3012
|
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
|
3013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.5", ngImport: i0, type: ApiModule, decorators: [{
|
|
999
3014
|
type: NgModule,
|
|
1000
3015
|
args: [{
|
|
1001
3016
|
imports: [],
|
|
@@ -1027,5 +3042,5 @@ function provideApi(configOrBasePath) {
|
|
|
1027
3042
|
* Generated bundle index. Do not edit.
|
|
1028
3043
|
*/
|
|
1029
3044
|
|
|
1030
|
-
export { APIS, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, PermissionsApiService, RegionLevel, RegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
|
|
3045
|
+
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, DesignWeatherMode, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UsersApiService, provideApi };
|
|
1031
3046
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|