@tiba-spark/client-shared-lib 26.2.0-157 → 26.2.0-166
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/esm2022/libraries/guards/sub-module-guard.mjs +2 -2
- package/esm2022/libraries/modules/smartparks/smartpark.state.mjs +15 -12
- package/esm2022/libraries/service-proxy/identity-service-proxies.mjs +1592 -11
- package/esm2022/libraries/services/smartpark.service.mjs +65 -7
- package/fesm2022/tiba-spark-client-shared-lib.mjs +1973 -332
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/modules/smartparks/smartpark.state.d.ts +4 -3
- package/libraries/modules/smartparks/smartpark.state.d.ts.map +1 -1
- package/libraries/service-proxy/identity-service-proxies.d.ts +132 -3
- package/libraries/service-proxy/identity-service-proxies.d.ts.map +1 -1
- package/libraries/services/smartpark.service.d.ts +9 -2
- package/libraries/services/smartpark.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { DatePipe, CommonModule } from '@angular/common';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Directive, Injectable, HostListener, HostBinding, Input, Optional, InjectionToken, Inject, NgModule, forwardRef, Pipe, Component, ChangeDetectionStrategy, EventEmitter, Output, createComponent, signal, computed, inject, Injector, effect, input, ChangeDetectorRef, ViewChild } from '@angular/core';
|
|
5
5
|
import DOMPurify from 'dompurify';
|
|
6
|
-
import { Subject, merge, takeUntil, throwError, of, Observable, delay, debounceTime, switchMap, map, from, noop, BehaviorSubject, Subscription, combineLatest, distinctUntilChanged as distinctUntilChanged$1, filter as filter$1, take, tap as tap$1, first as first$1, catchError as catchError$1, fromEvent, timer,
|
|
6
|
+
import { Subject, merge, takeUntil, throwError, of, Observable, delay, debounceTime, switchMap, map, from, noop, BehaviorSubject, Subscription, combineLatest, distinctUntilChanged as distinctUntilChanged$1, filter as filter$1, take, tap as tap$1, first as first$1, EMPTY, catchError as catchError$1, fromEvent, timer, distinctUntilKeyChanged, firstValueFrom, finalize as finalize$1 } from 'rxjs';
|
|
7
7
|
import * as i1 from '@angular/forms';
|
|
8
8
|
import { NG_VALIDATORS, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
|
|
9
9
|
import { mergeMap, catchError, map as map$1, combineLatestAll, shareReplay, mergeAll, scan, first, takeUntil as takeUntil$1, tap, distinctUntilChanged, filter, delay as delay$1, switchMap as switchMap$1, startWith, finalize, take as take$1, skip } from 'rxjs/operators';
|
|
@@ -99862,15 +99862,10 @@ class FacilityIdentityServiceProxy {
|
|
|
99862
99862
|
this.baseUrl = baseUrl ?? "";
|
|
99863
99863
|
}
|
|
99864
99864
|
/**
|
|
99865
|
-
* @param appModule (optional)
|
|
99866
99865
|
* @return Success
|
|
99867
99866
|
*/
|
|
99868
|
-
|
|
99869
|
-
let url_ = this.baseUrl + "/api/services/web/facility/basic
|
|
99870
|
-
if (appModule === null)
|
|
99871
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
99872
|
-
else if (appModule !== undefined)
|
|
99873
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
99867
|
+
facilityAllCc() {
|
|
99868
|
+
let url_ = this.baseUrl + "/api/services/web/facility/cc/basic";
|
|
99874
99869
|
url_ = url_.replace(/[?&]$/, "");
|
|
99875
99870
|
let options_ = {
|
|
99876
99871
|
observe: "response",
|
|
@@ -99880,11 +99875,11 @@ class FacilityIdentityServiceProxy {
|
|
|
99880
99875
|
})
|
|
99881
99876
|
};
|
|
99882
99877
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
99883
|
-
return this.
|
|
99878
|
+
return this.processFacilityAllCc(response_);
|
|
99884
99879
|
})).pipe(catchError((response_) => {
|
|
99885
99880
|
if (response_ instanceof HttpResponseBase) {
|
|
99886
99881
|
try {
|
|
99887
|
-
return this.
|
|
99882
|
+
return this.processFacilityAllCc(response_);
|
|
99888
99883
|
}
|
|
99889
99884
|
catch (e) {
|
|
99890
99885
|
return throwError(e);
|
|
@@ -99894,7 +99889,7 @@ class FacilityIdentityServiceProxy {
|
|
|
99894
99889
|
return throwError(response_);
|
|
99895
99890
|
}));
|
|
99896
99891
|
}
|
|
99897
|
-
|
|
99892
|
+
processFacilityAllCc(response) {
|
|
99898
99893
|
const status = response.status;
|
|
99899
99894
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
99900
99895
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -99928,15 +99923,10 @@ class FacilityIdentityServiceProxy {
|
|
|
99928
99923
|
return of(null);
|
|
99929
99924
|
}
|
|
99930
99925
|
/**
|
|
99931
|
-
* @param appModule (optional)
|
|
99932
99926
|
* @return Success
|
|
99933
99927
|
*/
|
|
99934
|
-
|
|
99935
|
-
let url_ = this.baseUrl + "/api/services/web/facility/
|
|
99936
|
-
if (appModule === null)
|
|
99937
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
99938
|
-
else if (appModule !== undefined)
|
|
99939
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
99928
|
+
facilityAllReports() {
|
|
99929
|
+
let url_ = this.baseUrl + "/api/services/web/facility/reports/basic";
|
|
99940
99930
|
url_ = url_.replace(/[?&]$/, "");
|
|
99941
99931
|
let options_ = {
|
|
99942
99932
|
observe: "response",
|
|
@@ -99946,11 +99936,11 @@ class FacilityIdentityServiceProxy {
|
|
|
99946
99936
|
})
|
|
99947
99937
|
};
|
|
99948
99938
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
99949
|
-
return this.
|
|
99939
|
+
return this.processFacilityAllReports(response_);
|
|
99950
99940
|
})).pipe(catchError((response_) => {
|
|
99951
99941
|
if (response_ instanceof HttpResponseBase) {
|
|
99952
99942
|
try {
|
|
99953
|
-
return this.
|
|
99943
|
+
return this.processFacilityAllReports(response_);
|
|
99954
99944
|
}
|
|
99955
99945
|
catch (e) {
|
|
99956
99946
|
return throwError(e);
|
|
@@ -99960,7 +99950,7 @@ class FacilityIdentityServiceProxy {
|
|
|
99960
99950
|
return throwError(response_);
|
|
99961
99951
|
}));
|
|
99962
99952
|
}
|
|
99963
|
-
|
|
99953
|
+
processFacilityAllReports(response) {
|
|
99964
99954
|
const status = response.status;
|
|
99965
99955
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
99966
99956
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -99982,7 +99972,7 @@ class FacilityIdentityServiceProxy {
|
|
|
99982
99972
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
99983
99973
|
let result200 = null;
|
|
99984
99974
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
99985
|
-
result200 =
|
|
99975
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
99986
99976
|
return of(result200);
|
|
99987
99977
|
}));
|
|
99988
99978
|
}
|
|
@@ -99993,36 +99983,11 @@ class FacilityIdentityServiceProxy {
|
|
|
99993
99983
|
}
|
|
99994
99984
|
return of(null);
|
|
99995
99985
|
}
|
|
99996
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
99997
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy }); }
|
|
99998
|
-
}
|
|
99999
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy, decorators: [{
|
|
100000
|
-
type: Injectable
|
|
100001
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
100002
|
-
type: Inject,
|
|
100003
|
-
args: [HttpClient]
|
|
100004
|
-
}] }, { type: undefined, decorators: [{
|
|
100005
|
-
type: Optional
|
|
100006
|
-
}, {
|
|
100007
|
-
type: Inject,
|
|
100008
|
-
args: [API_BASE_URL]
|
|
100009
|
-
}] }] });
|
|
100010
|
-
class LocalizationIdentityServiceProxy {
|
|
100011
|
-
constructor(http, baseUrl) {
|
|
100012
|
-
this.jsonParseReviver = undefined;
|
|
100013
|
-
this.http = http;
|
|
100014
|
-
this.baseUrl = baseUrl ?? "";
|
|
100015
|
-
}
|
|
100016
99986
|
/**
|
|
100017
|
-
* @param keyName (optional)
|
|
100018
99987
|
* @return Success
|
|
100019
99988
|
*/
|
|
100020
|
-
|
|
100021
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100022
|
-
if (keyName === null)
|
|
100023
|
-
throw new Error("The parameter 'keyName' cannot be null.");
|
|
100024
|
-
else if (keyName !== undefined)
|
|
100025
|
-
url_ += "keyName=" + encodeURIComponent("" + keyName) + "&";
|
|
99989
|
+
facilityAllPi() {
|
|
99990
|
+
let url_ = this.baseUrl + "/api/services/web/facility/pi/basic";
|
|
100026
99991
|
url_ = url_.replace(/[?&]$/, "");
|
|
100027
99992
|
let options_ = {
|
|
100028
99993
|
observe: "response",
|
|
@@ -100032,11 +99997,11 @@ class LocalizationIdentityServiceProxy {
|
|
|
100032
99997
|
})
|
|
100033
99998
|
};
|
|
100034
99999
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100035
|
-
return this.
|
|
100000
|
+
return this.processFacilityAllPi(response_);
|
|
100036
100001
|
})).pipe(catchError((response_) => {
|
|
100037
100002
|
if (response_ instanceof HttpResponseBase) {
|
|
100038
100003
|
try {
|
|
100039
|
-
return this.
|
|
100004
|
+
return this.processFacilityAllPi(response_);
|
|
100040
100005
|
}
|
|
100041
100006
|
catch (e) {
|
|
100042
100007
|
return throwError(e);
|
|
@@ -100046,7 +100011,7 @@ class LocalizationIdentityServiceProxy {
|
|
|
100046
100011
|
return throwError(response_);
|
|
100047
100012
|
}));
|
|
100048
100013
|
}
|
|
100049
|
-
|
|
100014
|
+
processFacilityAllPi(response) {
|
|
100050
100015
|
const status = response.status;
|
|
100051
100016
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100052
100017
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100064,18 +100029,13 @@ class LocalizationIdentityServiceProxy {
|
|
|
100064
100029
|
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100065
100030
|
}));
|
|
100066
100031
|
}
|
|
100067
|
-
else if (status === 200
|
|
100068
|
-
|
|
100069
|
-
|
|
100070
|
-
|
|
100071
|
-
|
|
100072
|
-
|
|
100073
|
-
}
|
|
100074
|
-
else {
|
|
100075
|
-
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
100076
|
-
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
100077
|
-
}
|
|
100078
|
-
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
100032
|
+
else if (status === 200) {
|
|
100033
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100034
|
+
let result200 = null;
|
|
100035
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100036
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100037
|
+
return of(result200);
|
|
100038
|
+
}));
|
|
100079
100039
|
}
|
|
100080
100040
|
else if (status !== 200 && status !== 204) {
|
|
100081
100041
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
@@ -100084,31 +100044,11 @@ class LocalizationIdentityServiceProxy {
|
|
|
100084
100044
|
}
|
|
100085
100045
|
return of(null);
|
|
100086
100046
|
}
|
|
100087
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
100088
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy }); }
|
|
100089
|
-
}
|
|
100090
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy, decorators: [{
|
|
100091
|
-
type: Injectable
|
|
100092
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
100093
|
-
type: Inject,
|
|
100094
|
-
args: [HttpClient]
|
|
100095
|
-
}] }, { type: undefined, decorators: [{
|
|
100096
|
-
type: Optional
|
|
100097
|
-
}, {
|
|
100098
|
-
type: Inject,
|
|
100099
|
-
args: [API_BASE_URL]
|
|
100100
|
-
}] }] });
|
|
100101
|
-
class SmartparkIdentityServiceProxy {
|
|
100102
|
-
constructor(http, baseUrl) {
|
|
100103
|
-
this.jsonParseReviver = undefined;
|
|
100104
|
-
this.http = http;
|
|
100105
|
-
this.baseUrl = baseUrl ?? "";
|
|
100106
|
-
}
|
|
100107
100047
|
/**
|
|
100108
100048
|
* @return Success
|
|
100109
100049
|
*/
|
|
100110
|
-
|
|
100111
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100050
|
+
facilityAllValidationEValidation() {
|
|
100051
|
+
let url_ = this.baseUrl + "/api/services/web/facility/validation/e-validation/basic";
|
|
100112
100052
|
url_ = url_.replace(/[?&]$/, "");
|
|
100113
100053
|
let options_ = {
|
|
100114
100054
|
observe: "response",
|
|
@@ -100118,11 +100058,11 @@ class SmartparkIdentityServiceProxy {
|
|
|
100118
100058
|
})
|
|
100119
100059
|
};
|
|
100120
100060
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100121
|
-
return this.
|
|
100061
|
+
return this.processFacilityAllValidationEValidation(response_);
|
|
100122
100062
|
})).pipe(catchError((response_) => {
|
|
100123
100063
|
if (response_ instanceof HttpResponseBase) {
|
|
100124
100064
|
try {
|
|
100125
|
-
return this.
|
|
100065
|
+
return this.processFacilityAllValidationEValidation(response_);
|
|
100126
100066
|
}
|
|
100127
100067
|
catch (e) {
|
|
100128
100068
|
return throwError(e);
|
|
@@ -100132,7 +100072,7 @@ class SmartparkIdentityServiceProxy {
|
|
|
100132
100072
|
return throwError(response_);
|
|
100133
100073
|
}));
|
|
100134
100074
|
}
|
|
100135
|
-
|
|
100075
|
+
processFacilityAllValidationEValidation(response) {
|
|
100136
100076
|
const status = response.status;
|
|
100137
100077
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100138
100078
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100154,7 +100094,7 @@ class SmartparkIdentityServiceProxy {
|
|
|
100154
100094
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100155
100095
|
let result200 = null;
|
|
100156
100096
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100157
|
-
result200 =
|
|
100097
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100158
100098
|
return of(result200);
|
|
100159
100099
|
}));
|
|
100160
100100
|
}
|
|
@@ -100165,36 +100105,11 @@ class SmartparkIdentityServiceProxy {
|
|
|
100165
100105
|
}
|
|
100166
100106
|
return of(null);
|
|
100167
100107
|
}
|
|
100168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
100169
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy }); }
|
|
100170
|
-
}
|
|
100171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy, decorators: [{
|
|
100172
|
-
type: Injectable
|
|
100173
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
100174
|
-
type: Inject,
|
|
100175
|
-
args: [HttpClient]
|
|
100176
|
-
}] }, { type: undefined, decorators: [{
|
|
100177
|
-
type: Optional
|
|
100178
|
-
}, {
|
|
100179
|
-
type: Inject,
|
|
100180
|
-
args: [API_BASE_URL]
|
|
100181
|
-
}] }] });
|
|
100182
|
-
class TenantIdentityServiceProxy {
|
|
100183
|
-
constructor(http, baseUrl) {
|
|
100184
|
-
this.jsonParseReviver = undefined;
|
|
100185
|
-
this.http = http;
|
|
100186
|
-
this.baseUrl = baseUrl ?? "";
|
|
100187
|
-
}
|
|
100188
100108
|
/**
|
|
100189
|
-
* @param name (optional)
|
|
100190
100109
|
* @return Success
|
|
100191
100110
|
*/
|
|
100192
|
-
|
|
100193
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100194
|
-
if (name === null)
|
|
100195
|
-
throw new Error("The parameter 'name' cannot be null.");
|
|
100196
|
-
else if (name !== undefined)
|
|
100197
|
-
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
100111
|
+
facilityAllValidationSelfValidation() {
|
|
100112
|
+
let url_ = this.baseUrl + "/api/services/web/facility/validation/self-validation/basic";
|
|
100198
100113
|
url_ = url_.replace(/[?&]$/, "");
|
|
100199
100114
|
let options_ = {
|
|
100200
100115
|
observe: "response",
|
|
@@ -100204,11 +100119,11 @@ class TenantIdentityServiceProxy {
|
|
|
100204
100119
|
})
|
|
100205
100120
|
};
|
|
100206
100121
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100207
|
-
return this.
|
|
100122
|
+
return this.processFacilityAllValidationSelfValidation(response_);
|
|
100208
100123
|
})).pipe(catchError((response_) => {
|
|
100209
100124
|
if (response_ instanceof HttpResponseBase) {
|
|
100210
100125
|
try {
|
|
100211
|
-
return this.
|
|
100126
|
+
return this.processFacilityAllValidationSelfValidation(response_);
|
|
100212
100127
|
}
|
|
100213
100128
|
catch (e) {
|
|
100214
100129
|
return throwError(e);
|
|
@@ -100218,7 +100133,7 @@ class TenantIdentityServiceProxy {
|
|
|
100218
100133
|
return throwError(response_);
|
|
100219
100134
|
}));
|
|
100220
100135
|
}
|
|
100221
|
-
|
|
100136
|
+
processFacilityAllValidationSelfValidation(response) {
|
|
100222
100137
|
const status = response.status;
|
|
100223
100138
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100224
100139
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100240,7 +100155,7 @@ class TenantIdentityServiceProxy {
|
|
|
100240
100155
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100241
100156
|
let result200 = null;
|
|
100242
100157
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100243
|
-
result200 =
|
|
100158
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100244
100159
|
return of(result200);
|
|
100245
100160
|
}));
|
|
100246
100161
|
}
|
|
@@ -100251,31 +100166,11 @@ class TenantIdentityServiceProxy {
|
|
|
100251
100166
|
}
|
|
100252
100167
|
return of(null);
|
|
100253
100168
|
}
|
|
100254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
100255
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy }); }
|
|
100256
|
-
}
|
|
100257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy, decorators: [{
|
|
100258
|
-
type: Injectable
|
|
100259
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
100260
|
-
type: Inject,
|
|
100261
|
-
args: [HttpClient]
|
|
100262
|
-
}] }, { type: undefined, decorators: [{
|
|
100263
|
-
type: Optional
|
|
100264
|
-
}, {
|
|
100265
|
-
type: Inject,
|
|
100266
|
-
args: [API_BASE_URL]
|
|
100267
|
-
}] }] });
|
|
100268
|
-
class ThirdPartyIdentityServiceProxy {
|
|
100269
|
-
constructor(http, baseUrl) {
|
|
100270
|
-
this.jsonParseReviver = undefined;
|
|
100271
|
-
this.http = http;
|
|
100272
|
-
this.baseUrl = baseUrl ?? "";
|
|
100273
|
-
}
|
|
100274
100169
|
/**
|
|
100275
100170
|
* @return Success
|
|
100276
100171
|
*/
|
|
100277
|
-
|
|
100278
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100172
|
+
facilityAllValidationCoupons() {
|
|
100173
|
+
let url_ = this.baseUrl + "/api/services/web/facility/validation/coupons/basic";
|
|
100279
100174
|
url_ = url_.replace(/[?&]$/, "");
|
|
100280
100175
|
let options_ = {
|
|
100281
100176
|
observe: "response",
|
|
@@ -100285,11 +100180,11 @@ class ThirdPartyIdentityServiceProxy {
|
|
|
100285
100180
|
})
|
|
100286
100181
|
};
|
|
100287
100182
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100288
|
-
return this.
|
|
100183
|
+
return this.processFacilityAllValidationCoupons(response_);
|
|
100289
100184
|
})).pipe(catchError((response_) => {
|
|
100290
100185
|
if (response_ instanceof HttpResponseBase) {
|
|
100291
100186
|
try {
|
|
100292
|
-
return this.
|
|
100187
|
+
return this.processFacilityAllValidationCoupons(response_);
|
|
100293
100188
|
}
|
|
100294
100189
|
catch (e) {
|
|
100295
100190
|
return throwError(e);
|
|
@@ -100299,7 +100194,7 @@ class ThirdPartyIdentityServiceProxy {
|
|
|
100299
100194
|
return throwError(response_);
|
|
100300
100195
|
}));
|
|
100301
100196
|
}
|
|
100302
|
-
|
|
100197
|
+
processFacilityAllValidationCoupons(response) {
|
|
100303
100198
|
const status = response.status;
|
|
100304
100199
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100305
100200
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100321,7 +100216,7 @@ class ThirdPartyIdentityServiceProxy {
|
|
|
100321
100216
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100322
100217
|
let result200 = null;
|
|
100323
100218
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100324
|
-
result200 =
|
|
100219
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100325
100220
|
return of(result200);
|
|
100326
100221
|
}));
|
|
100327
100222
|
}
|
|
@@ -100332,49 +100227,25 @@ class ThirdPartyIdentityServiceProxy {
|
|
|
100332
100227
|
}
|
|
100333
100228
|
return of(null);
|
|
100334
100229
|
}
|
|
100335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
100336
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy }); }
|
|
100337
|
-
}
|
|
100338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy, decorators: [{
|
|
100339
|
-
type: Injectable
|
|
100340
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
100341
|
-
type: Inject,
|
|
100342
|
-
args: [HttpClient]
|
|
100343
|
-
}] }, { type: undefined, decorators: [{
|
|
100344
|
-
type: Optional
|
|
100345
|
-
}, {
|
|
100346
|
-
type: Inject,
|
|
100347
|
-
args: [API_BASE_URL]
|
|
100348
|
-
}] }] });
|
|
100349
|
-
class UsersIdentityServiceProxy {
|
|
100350
|
-
constructor(http, baseUrl) {
|
|
100351
|
-
this.jsonParseReviver = undefined;
|
|
100352
|
-
this.http = http;
|
|
100353
|
-
this.baseUrl = baseUrl ?? "";
|
|
100354
|
-
}
|
|
100355
100230
|
/**
|
|
100356
|
-
* @param body (optional)
|
|
100357
100231
|
* @return Success
|
|
100358
100232
|
*/
|
|
100359
|
-
|
|
100360
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100233
|
+
facilityAllValidationStickers() {
|
|
100234
|
+
let url_ = this.baseUrl + "/api/services/web/facility/validation/stickers/basic";
|
|
100361
100235
|
url_ = url_.replace(/[?&]$/, "");
|
|
100362
|
-
const content_ = JSON.stringify(body);
|
|
100363
100236
|
let options_ = {
|
|
100364
|
-
body: content_,
|
|
100365
100237
|
observe: "response",
|
|
100366
100238
|
responseType: "blob",
|
|
100367
100239
|
headers: new HttpHeaders({
|
|
100368
|
-
"Content-Type": "application/json-patch+json",
|
|
100369
100240
|
"Accept": "text/plain"
|
|
100370
100241
|
})
|
|
100371
100242
|
};
|
|
100372
|
-
return this.http.request("
|
|
100373
|
-
return this.
|
|
100243
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100244
|
+
return this.processFacilityAllValidationStickers(response_);
|
|
100374
100245
|
})).pipe(catchError((response_) => {
|
|
100375
100246
|
if (response_ instanceof HttpResponseBase) {
|
|
100376
100247
|
try {
|
|
100377
|
-
return this.
|
|
100248
|
+
return this.processFacilityAllValidationStickers(response_);
|
|
100378
100249
|
}
|
|
100379
100250
|
catch (e) {
|
|
100380
100251
|
return throwError(e);
|
|
@@ -100384,7 +100255,7 @@ class UsersIdentityServiceProxy {
|
|
|
100384
100255
|
return throwError(response_);
|
|
100385
100256
|
}));
|
|
100386
100257
|
}
|
|
100387
|
-
|
|
100258
|
+
processFacilityAllValidationStickers(response) {
|
|
100388
100259
|
const status = response.status;
|
|
100389
100260
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100390
100261
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100406,16 +100277,69 @@ class UsersIdentityServiceProxy {
|
|
|
100406
100277
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100407
100278
|
let result200 = null;
|
|
100408
100279
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100409
|
-
result200 =
|
|
100280
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100410
100281
|
return of(result200);
|
|
100411
100282
|
}));
|
|
100412
100283
|
}
|
|
100413
|
-
else if (status
|
|
100284
|
+
else if (status !== 200 && status !== 204) {
|
|
100414
100285
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100415
|
-
|
|
100416
|
-
|
|
100417
|
-
|
|
100418
|
-
|
|
100286
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100287
|
+
}));
|
|
100288
|
+
}
|
|
100289
|
+
return of(null);
|
|
100290
|
+
}
|
|
100291
|
+
/**
|
|
100292
|
+
* @return Success
|
|
100293
|
+
*/
|
|
100294
|
+
facilityAllMonthlies() {
|
|
100295
|
+
let url_ = this.baseUrl + "/api/services/web/facility/monthlies/basic";
|
|
100296
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100297
|
+
let options_ = {
|
|
100298
|
+
observe: "response",
|
|
100299
|
+
responseType: "blob",
|
|
100300
|
+
headers: new HttpHeaders({
|
|
100301
|
+
"Accept": "text/plain"
|
|
100302
|
+
})
|
|
100303
|
+
};
|
|
100304
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100305
|
+
return this.processFacilityAllMonthlies(response_);
|
|
100306
|
+
})).pipe(catchError((response_) => {
|
|
100307
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100308
|
+
try {
|
|
100309
|
+
return this.processFacilityAllMonthlies(response_);
|
|
100310
|
+
}
|
|
100311
|
+
catch (e) {
|
|
100312
|
+
return throwError(e);
|
|
100313
|
+
}
|
|
100314
|
+
}
|
|
100315
|
+
else
|
|
100316
|
+
return throwError(response_);
|
|
100317
|
+
}));
|
|
100318
|
+
}
|
|
100319
|
+
processFacilityAllMonthlies(response) {
|
|
100320
|
+
const status = response.status;
|
|
100321
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100322
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100323
|
+
let _headers = {};
|
|
100324
|
+
if (response.headers) {
|
|
100325
|
+
for (let key of response.headers.keys()) {
|
|
100326
|
+
_headers[key] = response.headers.get(key);
|
|
100327
|
+
}
|
|
100328
|
+
}
|
|
100329
|
+
if (status === 404) {
|
|
100330
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100331
|
+
let result404 = null;
|
|
100332
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100333
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100334
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100335
|
+
}));
|
|
100336
|
+
}
|
|
100337
|
+
else if (status === 200) {
|
|
100338
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100339
|
+
let result200 = null;
|
|
100340
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100341
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100342
|
+
return of(result200);
|
|
100419
100343
|
}));
|
|
100420
100344
|
}
|
|
100421
100345
|
else if (status !== 200 && status !== 204) {
|
|
@@ -100426,26 +100350,24 @@ class UsersIdentityServiceProxy {
|
|
|
100426
100350
|
return of(null);
|
|
100427
100351
|
}
|
|
100428
100352
|
/**
|
|
100429
|
-
* @param refreshToken (optional)
|
|
100430
100353
|
* @return Success
|
|
100431
100354
|
*/
|
|
100432
|
-
|
|
100433
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100355
|
+
facilityAllMonthliesImporterTool() {
|
|
100356
|
+
let url_ = this.baseUrl + "/api/services/web/facility/monthlies/importer-tool/basic";
|
|
100434
100357
|
url_ = url_.replace(/[?&]$/, "");
|
|
100435
100358
|
let options_ = {
|
|
100436
100359
|
observe: "response",
|
|
100437
100360
|
responseType: "blob",
|
|
100438
100361
|
headers: new HttpHeaders({
|
|
100439
|
-
"RefreshToken": refreshToken !== undefined && refreshToken !== null ? "" + refreshToken : "",
|
|
100440
100362
|
"Accept": "text/plain"
|
|
100441
100363
|
})
|
|
100442
100364
|
};
|
|
100443
|
-
return this.http.request("
|
|
100444
|
-
return this.
|
|
100365
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100366
|
+
return this.processFacilityAllMonthliesImporterTool(response_);
|
|
100445
100367
|
})).pipe(catchError((response_) => {
|
|
100446
100368
|
if (response_ instanceof HttpResponseBase) {
|
|
100447
100369
|
try {
|
|
100448
|
-
return this.
|
|
100370
|
+
return this.processFacilityAllMonthliesImporterTool(response_);
|
|
100449
100371
|
}
|
|
100450
100372
|
catch (e) {
|
|
100451
100373
|
return throwError(e);
|
|
@@ -100455,7 +100377,7 @@ class UsersIdentityServiceProxy {
|
|
|
100455
100377
|
return throwError(response_);
|
|
100456
100378
|
}));
|
|
100457
100379
|
}
|
|
100458
|
-
|
|
100380
|
+
processFacilityAllMonthliesImporterTool(response) {
|
|
100459
100381
|
const status = response.status;
|
|
100460
100382
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100461
100383
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -100477,7 +100399,7 @@ class UsersIdentityServiceProxy {
|
|
|
100477
100399
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100478
100400
|
let result200 = null;
|
|
100479
100401
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100480
|
-
result200 =
|
|
100402
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100481
100403
|
return of(result200);
|
|
100482
100404
|
}));
|
|
100483
100405
|
}
|
|
@@ -100489,31 +100411,24 @@ class UsersIdentityServiceProxy {
|
|
|
100489
100411
|
return of(null);
|
|
100490
100412
|
}
|
|
100491
100413
|
/**
|
|
100492
|
-
* @param activationToken (optional)
|
|
100493
|
-
* @param passwordChangeType (optional)
|
|
100494
100414
|
* @return Success
|
|
100495
100415
|
*/
|
|
100496
|
-
|
|
100497
|
-
let url_ = this.baseUrl + "/api/services/web/
|
|
100498
|
-
if (passwordChangeType === null)
|
|
100499
|
-
throw new Error("The parameter 'passwordChangeType' cannot be null.");
|
|
100500
|
-
else if (passwordChangeType !== undefined)
|
|
100501
|
-
url_ += "passwordChangeType=" + encodeURIComponent("" + passwordChangeType) + "&";
|
|
100416
|
+
facilityAllGuests() {
|
|
100417
|
+
let url_ = this.baseUrl + "/api/services/web/facility/guests/basic";
|
|
100502
100418
|
url_ = url_.replace(/[?&]$/, "");
|
|
100503
100419
|
let options_ = {
|
|
100504
100420
|
observe: "response",
|
|
100505
100421
|
responseType: "blob",
|
|
100506
100422
|
headers: new HttpHeaders({
|
|
100507
|
-
"ActivationToken": activationToken !== undefined && activationToken !== null ? "" + activationToken : "",
|
|
100508
100423
|
"Accept": "text/plain"
|
|
100509
100424
|
})
|
|
100510
100425
|
};
|
|
100511
|
-
return this.http.request("
|
|
100512
|
-
return this.
|
|
100426
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100427
|
+
return this.processFacilityAllGuests(response_);
|
|
100513
100428
|
})).pipe(catchError((response_) => {
|
|
100514
100429
|
if (response_ instanceof HttpResponseBase) {
|
|
100515
100430
|
try {
|
|
100516
|
-
return this.
|
|
100431
|
+
return this.processFacilityAllGuests(response_);
|
|
100517
100432
|
}
|
|
100518
100433
|
catch (e) {
|
|
100519
100434
|
return throwError(e);
|
|
@@ -100523,7 +100438,1673 @@ class UsersIdentityServiceProxy {
|
|
|
100523
100438
|
return throwError(response_);
|
|
100524
100439
|
}));
|
|
100525
100440
|
}
|
|
100526
|
-
|
|
100441
|
+
processFacilityAllGuests(response) {
|
|
100442
|
+
const status = response.status;
|
|
100443
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100444
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100445
|
+
let _headers = {};
|
|
100446
|
+
if (response.headers) {
|
|
100447
|
+
for (let key of response.headers.keys()) {
|
|
100448
|
+
_headers[key] = response.headers.get(key);
|
|
100449
|
+
}
|
|
100450
|
+
}
|
|
100451
|
+
if (status === 404) {
|
|
100452
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100453
|
+
let result404 = null;
|
|
100454
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100455
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100456
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100457
|
+
}));
|
|
100458
|
+
}
|
|
100459
|
+
else if (status === 200) {
|
|
100460
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100461
|
+
let result200 = null;
|
|
100462
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100463
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100464
|
+
return of(result200);
|
|
100465
|
+
}));
|
|
100466
|
+
}
|
|
100467
|
+
else if (status !== 200 && status !== 204) {
|
|
100468
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100469
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100470
|
+
}));
|
|
100471
|
+
}
|
|
100472
|
+
return of(null);
|
|
100473
|
+
}
|
|
100474
|
+
/**
|
|
100475
|
+
* @return Success
|
|
100476
|
+
*/
|
|
100477
|
+
facilityAllGuestsHotelGuests() {
|
|
100478
|
+
let url_ = this.baseUrl + "/api/services/web/facility/guests/hotel-guests/basic";
|
|
100479
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100480
|
+
let options_ = {
|
|
100481
|
+
observe: "response",
|
|
100482
|
+
responseType: "blob",
|
|
100483
|
+
headers: new HttpHeaders({
|
|
100484
|
+
"Accept": "text/plain"
|
|
100485
|
+
})
|
|
100486
|
+
};
|
|
100487
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100488
|
+
return this.processFacilityAllGuestsHotelGuests(response_);
|
|
100489
|
+
})).pipe(catchError((response_) => {
|
|
100490
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100491
|
+
try {
|
|
100492
|
+
return this.processFacilityAllGuestsHotelGuests(response_);
|
|
100493
|
+
}
|
|
100494
|
+
catch (e) {
|
|
100495
|
+
return throwError(e);
|
|
100496
|
+
}
|
|
100497
|
+
}
|
|
100498
|
+
else
|
|
100499
|
+
return throwError(response_);
|
|
100500
|
+
}));
|
|
100501
|
+
}
|
|
100502
|
+
processFacilityAllGuestsHotelGuests(response) {
|
|
100503
|
+
const status = response.status;
|
|
100504
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100505
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100506
|
+
let _headers = {};
|
|
100507
|
+
if (response.headers) {
|
|
100508
|
+
for (let key of response.headers.keys()) {
|
|
100509
|
+
_headers[key] = response.headers.get(key);
|
|
100510
|
+
}
|
|
100511
|
+
}
|
|
100512
|
+
if (status === 404) {
|
|
100513
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100514
|
+
let result404 = null;
|
|
100515
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100516
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100517
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100518
|
+
}));
|
|
100519
|
+
}
|
|
100520
|
+
else if (status === 200) {
|
|
100521
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100522
|
+
let result200 = null;
|
|
100523
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100524
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100525
|
+
return of(result200);
|
|
100526
|
+
}));
|
|
100527
|
+
}
|
|
100528
|
+
else if (status !== 200 && status !== 204) {
|
|
100529
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100530
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100531
|
+
}));
|
|
100532
|
+
}
|
|
100533
|
+
return of(null);
|
|
100534
|
+
}
|
|
100535
|
+
/**
|
|
100536
|
+
* @return Success
|
|
100537
|
+
*/
|
|
100538
|
+
facilityAllGuestsHotelGuestsIO() {
|
|
100539
|
+
let url_ = this.baseUrl + "/api/services/web/facility/guests/hotel-guests-io/basic";
|
|
100540
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100541
|
+
let options_ = {
|
|
100542
|
+
observe: "response",
|
|
100543
|
+
responseType: "blob",
|
|
100544
|
+
headers: new HttpHeaders({
|
|
100545
|
+
"Accept": "text/plain"
|
|
100546
|
+
})
|
|
100547
|
+
};
|
|
100548
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100549
|
+
return this.processFacilityAllGuestsHotelGuestsIO(response_);
|
|
100550
|
+
})).pipe(catchError((response_) => {
|
|
100551
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100552
|
+
try {
|
|
100553
|
+
return this.processFacilityAllGuestsHotelGuestsIO(response_);
|
|
100554
|
+
}
|
|
100555
|
+
catch (e) {
|
|
100556
|
+
return throwError(e);
|
|
100557
|
+
}
|
|
100558
|
+
}
|
|
100559
|
+
else
|
|
100560
|
+
return throwError(response_);
|
|
100561
|
+
}));
|
|
100562
|
+
}
|
|
100563
|
+
processFacilityAllGuestsHotelGuestsIO(response) {
|
|
100564
|
+
const status = response.status;
|
|
100565
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100566
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100567
|
+
let _headers = {};
|
|
100568
|
+
if (response.headers) {
|
|
100569
|
+
for (let key of response.headers.keys()) {
|
|
100570
|
+
_headers[key] = response.headers.get(key);
|
|
100571
|
+
}
|
|
100572
|
+
}
|
|
100573
|
+
if (status === 404) {
|
|
100574
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100575
|
+
let result404 = null;
|
|
100576
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100577
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100578
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100579
|
+
}));
|
|
100580
|
+
}
|
|
100581
|
+
else if (status === 200) {
|
|
100582
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100583
|
+
let result200 = null;
|
|
100584
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100585
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100586
|
+
return of(result200);
|
|
100587
|
+
}));
|
|
100588
|
+
}
|
|
100589
|
+
else if (status !== 200 && status !== 204) {
|
|
100590
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100591
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100592
|
+
}));
|
|
100593
|
+
}
|
|
100594
|
+
return of(null);
|
|
100595
|
+
}
|
|
100596
|
+
/**
|
|
100597
|
+
* @return Success
|
|
100598
|
+
*/
|
|
100599
|
+
facilityAllGuestsEVoucher() {
|
|
100600
|
+
let url_ = this.baseUrl + "/api/services/web/facility/guests/evoucher/basic";
|
|
100601
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100602
|
+
let options_ = {
|
|
100603
|
+
observe: "response",
|
|
100604
|
+
responseType: "blob",
|
|
100605
|
+
headers: new HttpHeaders({
|
|
100606
|
+
"Accept": "text/plain"
|
|
100607
|
+
})
|
|
100608
|
+
};
|
|
100609
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100610
|
+
return this.processFacilityAllGuestsEVoucher(response_);
|
|
100611
|
+
})).pipe(catchError((response_) => {
|
|
100612
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100613
|
+
try {
|
|
100614
|
+
return this.processFacilityAllGuestsEVoucher(response_);
|
|
100615
|
+
}
|
|
100616
|
+
catch (e) {
|
|
100617
|
+
return throwError(e);
|
|
100618
|
+
}
|
|
100619
|
+
}
|
|
100620
|
+
else
|
|
100621
|
+
return throwError(response_);
|
|
100622
|
+
}));
|
|
100623
|
+
}
|
|
100624
|
+
processFacilityAllGuestsEVoucher(response) {
|
|
100625
|
+
const status = response.status;
|
|
100626
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100627
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100628
|
+
let _headers = {};
|
|
100629
|
+
if (response.headers) {
|
|
100630
|
+
for (let key of response.headers.keys()) {
|
|
100631
|
+
_headers[key] = response.headers.get(key);
|
|
100632
|
+
}
|
|
100633
|
+
}
|
|
100634
|
+
if (status === 404) {
|
|
100635
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100636
|
+
let result404 = null;
|
|
100637
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100638
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100639
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100640
|
+
}));
|
|
100641
|
+
}
|
|
100642
|
+
else if (status === 200) {
|
|
100643
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100644
|
+
let result200 = null;
|
|
100645
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100646
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100647
|
+
return of(result200);
|
|
100648
|
+
}));
|
|
100649
|
+
}
|
|
100650
|
+
else if (status !== 200 && status !== 204) {
|
|
100651
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100652
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100653
|
+
}));
|
|
100654
|
+
}
|
|
100655
|
+
return of(null);
|
|
100656
|
+
}
|
|
100657
|
+
/**
|
|
100658
|
+
* @return Success
|
|
100659
|
+
*/
|
|
100660
|
+
facilityAllAccounts() {
|
|
100661
|
+
let url_ = this.baseUrl + "/api/services/web/facility/accounts/basic";
|
|
100662
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100663
|
+
let options_ = {
|
|
100664
|
+
observe: "response",
|
|
100665
|
+
responseType: "blob",
|
|
100666
|
+
headers: new HttpHeaders({
|
|
100667
|
+
"Accept": "text/plain"
|
|
100668
|
+
})
|
|
100669
|
+
};
|
|
100670
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100671
|
+
return this.processFacilityAllAccounts(response_);
|
|
100672
|
+
})).pipe(catchError((response_) => {
|
|
100673
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100674
|
+
try {
|
|
100675
|
+
return this.processFacilityAllAccounts(response_);
|
|
100676
|
+
}
|
|
100677
|
+
catch (e) {
|
|
100678
|
+
return throwError(e);
|
|
100679
|
+
}
|
|
100680
|
+
}
|
|
100681
|
+
else
|
|
100682
|
+
return throwError(response_);
|
|
100683
|
+
}));
|
|
100684
|
+
}
|
|
100685
|
+
processFacilityAllAccounts(response) {
|
|
100686
|
+
const status = response.status;
|
|
100687
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100688
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100689
|
+
let _headers = {};
|
|
100690
|
+
if (response.headers) {
|
|
100691
|
+
for (let key of response.headers.keys()) {
|
|
100692
|
+
_headers[key] = response.headers.get(key);
|
|
100693
|
+
}
|
|
100694
|
+
}
|
|
100695
|
+
if (status === 404) {
|
|
100696
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100697
|
+
let result404 = null;
|
|
100698
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100699
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100700
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100701
|
+
}));
|
|
100702
|
+
}
|
|
100703
|
+
else if (status === 200) {
|
|
100704
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100705
|
+
let result200 = null;
|
|
100706
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100707
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100708
|
+
return of(result200);
|
|
100709
|
+
}));
|
|
100710
|
+
}
|
|
100711
|
+
else if (status !== 200 && status !== 204) {
|
|
100712
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100713
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100714
|
+
}));
|
|
100715
|
+
}
|
|
100716
|
+
return of(null);
|
|
100717
|
+
}
|
|
100718
|
+
/**
|
|
100719
|
+
* @return Success
|
|
100720
|
+
*/
|
|
100721
|
+
facilityAllLotConfigurationRates() {
|
|
100722
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/rates/basic";
|
|
100723
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100724
|
+
let options_ = {
|
|
100725
|
+
observe: "response",
|
|
100726
|
+
responseType: "blob",
|
|
100727
|
+
headers: new HttpHeaders({
|
|
100728
|
+
"Accept": "text/plain"
|
|
100729
|
+
})
|
|
100730
|
+
};
|
|
100731
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100732
|
+
return this.processFacilityAllLotConfigurationRates(response_);
|
|
100733
|
+
})).pipe(catchError((response_) => {
|
|
100734
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100735
|
+
try {
|
|
100736
|
+
return this.processFacilityAllLotConfigurationRates(response_);
|
|
100737
|
+
}
|
|
100738
|
+
catch (e) {
|
|
100739
|
+
return throwError(e);
|
|
100740
|
+
}
|
|
100741
|
+
}
|
|
100742
|
+
else
|
|
100743
|
+
return throwError(response_);
|
|
100744
|
+
}));
|
|
100745
|
+
}
|
|
100746
|
+
processFacilityAllLotConfigurationRates(response) {
|
|
100747
|
+
const status = response.status;
|
|
100748
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100749
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100750
|
+
let _headers = {};
|
|
100751
|
+
if (response.headers) {
|
|
100752
|
+
for (let key of response.headers.keys()) {
|
|
100753
|
+
_headers[key] = response.headers.get(key);
|
|
100754
|
+
}
|
|
100755
|
+
}
|
|
100756
|
+
if (status === 404) {
|
|
100757
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100758
|
+
let result404 = null;
|
|
100759
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100760
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100761
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100762
|
+
}));
|
|
100763
|
+
}
|
|
100764
|
+
else if (status === 200) {
|
|
100765
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100766
|
+
let result200 = null;
|
|
100767
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100768
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100769
|
+
return of(result200);
|
|
100770
|
+
}));
|
|
100771
|
+
}
|
|
100772
|
+
else if (status !== 200 && status !== 204) {
|
|
100773
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100774
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100775
|
+
}));
|
|
100776
|
+
}
|
|
100777
|
+
return of(null);
|
|
100778
|
+
}
|
|
100779
|
+
/**
|
|
100780
|
+
* @return Success
|
|
100781
|
+
*/
|
|
100782
|
+
facilityAllLotConfigurationScheduler() {
|
|
100783
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/scheduler/basic";
|
|
100784
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100785
|
+
let options_ = {
|
|
100786
|
+
observe: "response",
|
|
100787
|
+
responseType: "blob",
|
|
100788
|
+
headers: new HttpHeaders({
|
|
100789
|
+
"Accept": "text/plain"
|
|
100790
|
+
})
|
|
100791
|
+
};
|
|
100792
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100793
|
+
return this.processFacilityAllLotConfigurationScheduler(response_);
|
|
100794
|
+
})).pipe(catchError((response_) => {
|
|
100795
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100796
|
+
try {
|
|
100797
|
+
return this.processFacilityAllLotConfigurationScheduler(response_);
|
|
100798
|
+
}
|
|
100799
|
+
catch (e) {
|
|
100800
|
+
return throwError(e);
|
|
100801
|
+
}
|
|
100802
|
+
}
|
|
100803
|
+
else
|
|
100804
|
+
return throwError(response_);
|
|
100805
|
+
}));
|
|
100806
|
+
}
|
|
100807
|
+
processFacilityAllLotConfigurationScheduler(response) {
|
|
100808
|
+
const status = response.status;
|
|
100809
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100810
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100811
|
+
let _headers = {};
|
|
100812
|
+
if (response.headers) {
|
|
100813
|
+
for (let key of response.headers.keys()) {
|
|
100814
|
+
_headers[key] = response.headers.get(key);
|
|
100815
|
+
}
|
|
100816
|
+
}
|
|
100817
|
+
if (status === 404) {
|
|
100818
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100819
|
+
let result404 = null;
|
|
100820
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100821
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100822
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100823
|
+
}));
|
|
100824
|
+
}
|
|
100825
|
+
else if (status === 200) {
|
|
100826
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100827
|
+
let result200 = null;
|
|
100828
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100829
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100830
|
+
return of(result200);
|
|
100831
|
+
}));
|
|
100832
|
+
}
|
|
100833
|
+
else if (status !== 200 && status !== 204) {
|
|
100834
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100835
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100836
|
+
}));
|
|
100837
|
+
}
|
|
100838
|
+
return of(null);
|
|
100839
|
+
}
|
|
100840
|
+
/**
|
|
100841
|
+
* @return Success
|
|
100842
|
+
*/
|
|
100843
|
+
facilityAllLotConfigurationDynamicPricing() {
|
|
100844
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/dynamic-pricing/basic";
|
|
100845
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100846
|
+
let options_ = {
|
|
100847
|
+
observe: "response",
|
|
100848
|
+
responseType: "blob",
|
|
100849
|
+
headers: new HttpHeaders({
|
|
100850
|
+
"Accept": "text/plain"
|
|
100851
|
+
})
|
|
100852
|
+
};
|
|
100853
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100854
|
+
return this.processFacilityAllLotConfigurationDynamicPricing(response_);
|
|
100855
|
+
})).pipe(catchError((response_) => {
|
|
100856
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100857
|
+
try {
|
|
100858
|
+
return this.processFacilityAllLotConfigurationDynamicPricing(response_);
|
|
100859
|
+
}
|
|
100860
|
+
catch (e) {
|
|
100861
|
+
return throwError(e);
|
|
100862
|
+
}
|
|
100863
|
+
}
|
|
100864
|
+
else
|
|
100865
|
+
return throwError(response_);
|
|
100866
|
+
}));
|
|
100867
|
+
}
|
|
100868
|
+
processFacilityAllLotConfigurationDynamicPricing(response) {
|
|
100869
|
+
const status = response.status;
|
|
100870
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100871
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100872
|
+
let _headers = {};
|
|
100873
|
+
if (response.headers) {
|
|
100874
|
+
for (let key of response.headers.keys()) {
|
|
100875
|
+
_headers[key] = response.headers.get(key);
|
|
100876
|
+
}
|
|
100877
|
+
}
|
|
100878
|
+
if (status === 404) {
|
|
100879
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100880
|
+
let result404 = null;
|
|
100881
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100882
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100883
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100884
|
+
}));
|
|
100885
|
+
}
|
|
100886
|
+
else if (status === 200) {
|
|
100887
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100888
|
+
let result200 = null;
|
|
100889
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100890
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100891
|
+
return of(result200);
|
|
100892
|
+
}));
|
|
100893
|
+
}
|
|
100894
|
+
else if (status !== 200 && status !== 204) {
|
|
100895
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100896
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100897
|
+
}));
|
|
100898
|
+
}
|
|
100899
|
+
return of(null);
|
|
100900
|
+
}
|
|
100901
|
+
/**
|
|
100902
|
+
* @return Success
|
|
100903
|
+
*/
|
|
100904
|
+
facilityAllLotConfigurationValidationProfiles() {
|
|
100905
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/validation-profiles/basic";
|
|
100906
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100907
|
+
let options_ = {
|
|
100908
|
+
observe: "response",
|
|
100909
|
+
responseType: "blob",
|
|
100910
|
+
headers: new HttpHeaders({
|
|
100911
|
+
"Accept": "text/plain"
|
|
100912
|
+
})
|
|
100913
|
+
};
|
|
100914
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100915
|
+
return this.processFacilityAllLotConfigurationValidationProfiles(response_);
|
|
100916
|
+
})).pipe(catchError((response_) => {
|
|
100917
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100918
|
+
try {
|
|
100919
|
+
return this.processFacilityAllLotConfigurationValidationProfiles(response_);
|
|
100920
|
+
}
|
|
100921
|
+
catch (e) {
|
|
100922
|
+
return throwError(e);
|
|
100923
|
+
}
|
|
100924
|
+
}
|
|
100925
|
+
else
|
|
100926
|
+
return throwError(response_);
|
|
100927
|
+
}));
|
|
100928
|
+
}
|
|
100929
|
+
processFacilityAllLotConfigurationValidationProfiles(response) {
|
|
100930
|
+
const status = response.status;
|
|
100931
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100932
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100933
|
+
let _headers = {};
|
|
100934
|
+
if (response.headers) {
|
|
100935
|
+
for (let key of response.headers.keys()) {
|
|
100936
|
+
_headers[key] = response.headers.get(key);
|
|
100937
|
+
}
|
|
100938
|
+
}
|
|
100939
|
+
if (status === 404) {
|
|
100940
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100941
|
+
let result404 = null;
|
|
100942
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100943
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
100944
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
100945
|
+
}));
|
|
100946
|
+
}
|
|
100947
|
+
else if (status === 200) {
|
|
100948
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100949
|
+
let result200 = null;
|
|
100950
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
100951
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
100952
|
+
return of(result200);
|
|
100953
|
+
}));
|
|
100954
|
+
}
|
|
100955
|
+
else if (status !== 200 && status !== 204) {
|
|
100956
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
100957
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
100958
|
+
}));
|
|
100959
|
+
}
|
|
100960
|
+
return of(null);
|
|
100961
|
+
}
|
|
100962
|
+
/**
|
|
100963
|
+
* @return Success
|
|
100964
|
+
*/
|
|
100965
|
+
facilityAllLotConfigurationAccessProfiles() {
|
|
100966
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/access-profiles/basic";
|
|
100967
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
100968
|
+
let options_ = {
|
|
100969
|
+
observe: "response",
|
|
100970
|
+
responseType: "blob",
|
|
100971
|
+
headers: new HttpHeaders({
|
|
100972
|
+
"Accept": "text/plain"
|
|
100973
|
+
})
|
|
100974
|
+
};
|
|
100975
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
100976
|
+
return this.processFacilityAllLotConfigurationAccessProfiles(response_);
|
|
100977
|
+
})).pipe(catchError((response_) => {
|
|
100978
|
+
if (response_ instanceof HttpResponseBase) {
|
|
100979
|
+
try {
|
|
100980
|
+
return this.processFacilityAllLotConfigurationAccessProfiles(response_);
|
|
100981
|
+
}
|
|
100982
|
+
catch (e) {
|
|
100983
|
+
return throwError(e);
|
|
100984
|
+
}
|
|
100985
|
+
}
|
|
100986
|
+
else
|
|
100987
|
+
return throwError(response_);
|
|
100988
|
+
}));
|
|
100989
|
+
}
|
|
100990
|
+
processFacilityAllLotConfigurationAccessProfiles(response) {
|
|
100991
|
+
const status = response.status;
|
|
100992
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100993
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
100994
|
+
let _headers = {};
|
|
100995
|
+
if (response.headers) {
|
|
100996
|
+
for (let key of response.headers.keys()) {
|
|
100997
|
+
_headers[key] = response.headers.get(key);
|
|
100998
|
+
}
|
|
100999
|
+
}
|
|
101000
|
+
if (status === 404) {
|
|
101001
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101002
|
+
let result404 = null;
|
|
101003
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101004
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101005
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101006
|
+
}));
|
|
101007
|
+
}
|
|
101008
|
+
else if (status === 200) {
|
|
101009
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101010
|
+
let result200 = null;
|
|
101011
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101012
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101013
|
+
return of(result200);
|
|
101014
|
+
}));
|
|
101015
|
+
}
|
|
101016
|
+
else if (status !== 200 && status !== 204) {
|
|
101017
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101018
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101019
|
+
}));
|
|
101020
|
+
}
|
|
101021
|
+
return of(null);
|
|
101022
|
+
}
|
|
101023
|
+
/**
|
|
101024
|
+
* @return Success
|
|
101025
|
+
*/
|
|
101026
|
+
facilityAllLotConfigurationCashiersManagement() {
|
|
101027
|
+
let url_ = this.baseUrl + "/api/services/web/facility/lot-configuration/cashiers-management/basic";
|
|
101028
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101029
|
+
let options_ = {
|
|
101030
|
+
observe: "response",
|
|
101031
|
+
responseType: "blob",
|
|
101032
|
+
headers: new HttpHeaders({
|
|
101033
|
+
"Accept": "text/plain"
|
|
101034
|
+
})
|
|
101035
|
+
};
|
|
101036
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101037
|
+
return this.processFacilityAllLotConfigurationCashiersManagement(response_);
|
|
101038
|
+
})).pipe(catchError((response_) => {
|
|
101039
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101040
|
+
try {
|
|
101041
|
+
return this.processFacilityAllLotConfigurationCashiersManagement(response_);
|
|
101042
|
+
}
|
|
101043
|
+
catch (e) {
|
|
101044
|
+
return throwError(e);
|
|
101045
|
+
}
|
|
101046
|
+
}
|
|
101047
|
+
else
|
|
101048
|
+
return throwError(response_);
|
|
101049
|
+
}));
|
|
101050
|
+
}
|
|
101051
|
+
processFacilityAllLotConfigurationCashiersManagement(response) {
|
|
101052
|
+
const status = response.status;
|
|
101053
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101054
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101055
|
+
let _headers = {};
|
|
101056
|
+
if (response.headers) {
|
|
101057
|
+
for (let key of response.headers.keys()) {
|
|
101058
|
+
_headers[key] = response.headers.get(key);
|
|
101059
|
+
}
|
|
101060
|
+
}
|
|
101061
|
+
if (status === 404) {
|
|
101062
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101063
|
+
let result404 = null;
|
|
101064
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101065
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101066
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101067
|
+
}));
|
|
101068
|
+
}
|
|
101069
|
+
else if (status === 200) {
|
|
101070
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101071
|
+
let result200 = null;
|
|
101072
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101073
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101074
|
+
return of(result200);
|
|
101075
|
+
}));
|
|
101076
|
+
}
|
|
101077
|
+
else if (status !== 200 && status !== 204) {
|
|
101078
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101079
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101080
|
+
}));
|
|
101081
|
+
}
|
|
101082
|
+
return of(null);
|
|
101083
|
+
}
|
|
101084
|
+
/**
|
|
101085
|
+
* @return Success
|
|
101086
|
+
*/
|
|
101087
|
+
facilityAllManagementUserManagement() {
|
|
101088
|
+
let url_ = this.baseUrl + "/api/services/web/facility/management/user-management/basic";
|
|
101089
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101090
|
+
let options_ = {
|
|
101091
|
+
observe: "response",
|
|
101092
|
+
responseType: "blob",
|
|
101093
|
+
headers: new HttpHeaders({
|
|
101094
|
+
"Accept": "text/plain"
|
|
101095
|
+
})
|
|
101096
|
+
};
|
|
101097
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101098
|
+
return this.processFacilityAllManagementUserManagement(response_);
|
|
101099
|
+
})).pipe(catchError((response_) => {
|
|
101100
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101101
|
+
try {
|
|
101102
|
+
return this.processFacilityAllManagementUserManagement(response_);
|
|
101103
|
+
}
|
|
101104
|
+
catch (e) {
|
|
101105
|
+
return throwError(e);
|
|
101106
|
+
}
|
|
101107
|
+
}
|
|
101108
|
+
else
|
|
101109
|
+
return throwError(response_);
|
|
101110
|
+
}));
|
|
101111
|
+
}
|
|
101112
|
+
processFacilityAllManagementUserManagement(response) {
|
|
101113
|
+
const status = response.status;
|
|
101114
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101115
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101116
|
+
let _headers = {};
|
|
101117
|
+
if (response.headers) {
|
|
101118
|
+
for (let key of response.headers.keys()) {
|
|
101119
|
+
_headers[key] = response.headers.get(key);
|
|
101120
|
+
}
|
|
101121
|
+
}
|
|
101122
|
+
if (status === 404) {
|
|
101123
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101124
|
+
let result404 = null;
|
|
101125
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101126
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101127
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101128
|
+
}));
|
|
101129
|
+
}
|
|
101130
|
+
else if (status === 200) {
|
|
101131
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101132
|
+
let result200 = null;
|
|
101133
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101134
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101135
|
+
return of(result200);
|
|
101136
|
+
}));
|
|
101137
|
+
}
|
|
101138
|
+
else if (status !== 200 && status !== 204) {
|
|
101139
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101140
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101141
|
+
}));
|
|
101142
|
+
}
|
|
101143
|
+
return of(null);
|
|
101144
|
+
}
|
|
101145
|
+
/**
|
|
101146
|
+
* @return Success
|
|
101147
|
+
*/
|
|
101148
|
+
facilityAllManagementAudit() {
|
|
101149
|
+
let url_ = this.baseUrl + "/api/services/web/facility/management/audit/basic";
|
|
101150
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101151
|
+
let options_ = {
|
|
101152
|
+
observe: "response",
|
|
101153
|
+
responseType: "blob",
|
|
101154
|
+
headers: new HttpHeaders({
|
|
101155
|
+
"Accept": "text/plain"
|
|
101156
|
+
})
|
|
101157
|
+
};
|
|
101158
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101159
|
+
return this.processFacilityAllManagementAudit(response_);
|
|
101160
|
+
})).pipe(catchError((response_) => {
|
|
101161
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101162
|
+
try {
|
|
101163
|
+
return this.processFacilityAllManagementAudit(response_);
|
|
101164
|
+
}
|
|
101165
|
+
catch (e) {
|
|
101166
|
+
return throwError(e);
|
|
101167
|
+
}
|
|
101168
|
+
}
|
|
101169
|
+
else
|
|
101170
|
+
return throwError(response_);
|
|
101171
|
+
}));
|
|
101172
|
+
}
|
|
101173
|
+
processFacilityAllManagementAudit(response) {
|
|
101174
|
+
const status = response.status;
|
|
101175
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101176
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101177
|
+
let _headers = {};
|
|
101178
|
+
if (response.headers) {
|
|
101179
|
+
for (let key of response.headers.keys()) {
|
|
101180
|
+
_headers[key] = response.headers.get(key);
|
|
101181
|
+
}
|
|
101182
|
+
}
|
|
101183
|
+
if (status === 404) {
|
|
101184
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101185
|
+
let result404 = null;
|
|
101186
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101187
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101188
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101189
|
+
}));
|
|
101190
|
+
}
|
|
101191
|
+
else if (status === 200) {
|
|
101192
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101193
|
+
let result200 = null;
|
|
101194
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101195
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101196
|
+
return of(result200);
|
|
101197
|
+
}));
|
|
101198
|
+
}
|
|
101199
|
+
else if (status !== 200 && status !== 204) {
|
|
101200
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101201
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101202
|
+
}));
|
|
101203
|
+
}
|
|
101204
|
+
return of(null);
|
|
101205
|
+
}
|
|
101206
|
+
/**
|
|
101207
|
+
* @return Success
|
|
101208
|
+
*/
|
|
101209
|
+
facilityAllManagementDigitalReceipt() {
|
|
101210
|
+
let url_ = this.baseUrl + "/api/services/web/facility/management/digital-receipt/basic";
|
|
101211
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101212
|
+
let options_ = {
|
|
101213
|
+
observe: "response",
|
|
101214
|
+
responseType: "blob",
|
|
101215
|
+
headers: new HttpHeaders({
|
|
101216
|
+
"Accept": "text/plain"
|
|
101217
|
+
})
|
|
101218
|
+
};
|
|
101219
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101220
|
+
return this.processFacilityAllManagementDigitalReceipt(response_);
|
|
101221
|
+
})).pipe(catchError((response_) => {
|
|
101222
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101223
|
+
try {
|
|
101224
|
+
return this.processFacilityAllManagementDigitalReceipt(response_);
|
|
101225
|
+
}
|
|
101226
|
+
catch (e) {
|
|
101227
|
+
return throwError(e);
|
|
101228
|
+
}
|
|
101229
|
+
}
|
|
101230
|
+
else
|
|
101231
|
+
return throwError(response_);
|
|
101232
|
+
}));
|
|
101233
|
+
}
|
|
101234
|
+
processFacilityAllManagementDigitalReceipt(response) {
|
|
101235
|
+
const status = response.status;
|
|
101236
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101237
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101238
|
+
let _headers = {};
|
|
101239
|
+
if (response.headers) {
|
|
101240
|
+
for (let key of response.headers.keys()) {
|
|
101241
|
+
_headers[key] = response.headers.get(key);
|
|
101242
|
+
}
|
|
101243
|
+
}
|
|
101244
|
+
if (status === 404) {
|
|
101245
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101246
|
+
let result404 = null;
|
|
101247
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101248
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101249
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101250
|
+
}));
|
|
101251
|
+
}
|
|
101252
|
+
else if (status === 200) {
|
|
101253
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101254
|
+
let result200 = null;
|
|
101255
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101256
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101257
|
+
return of(result200);
|
|
101258
|
+
}));
|
|
101259
|
+
}
|
|
101260
|
+
else if (status !== 200 && status !== 204) {
|
|
101261
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101262
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101263
|
+
}));
|
|
101264
|
+
}
|
|
101265
|
+
return of(null);
|
|
101266
|
+
}
|
|
101267
|
+
/**
|
|
101268
|
+
* @return Success
|
|
101269
|
+
*/
|
|
101270
|
+
facilityAllManagementEnforcementIntegration() {
|
|
101271
|
+
let url_ = this.baseUrl + "/api/services/web/facility/management/enforcement-integration/basic";
|
|
101272
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101273
|
+
let options_ = {
|
|
101274
|
+
observe: "response",
|
|
101275
|
+
responseType: "blob",
|
|
101276
|
+
headers: new HttpHeaders({
|
|
101277
|
+
"Accept": "text/plain"
|
|
101278
|
+
})
|
|
101279
|
+
};
|
|
101280
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101281
|
+
return this.processFacilityAllManagementEnforcementIntegration(response_);
|
|
101282
|
+
})).pipe(catchError((response_) => {
|
|
101283
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101284
|
+
try {
|
|
101285
|
+
return this.processFacilityAllManagementEnforcementIntegration(response_);
|
|
101286
|
+
}
|
|
101287
|
+
catch (e) {
|
|
101288
|
+
return throwError(e);
|
|
101289
|
+
}
|
|
101290
|
+
}
|
|
101291
|
+
else
|
|
101292
|
+
return throwError(response_);
|
|
101293
|
+
}));
|
|
101294
|
+
}
|
|
101295
|
+
processFacilityAllManagementEnforcementIntegration(response) {
|
|
101296
|
+
const status = response.status;
|
|
101297
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101298
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101299
|
+
let _headers = {};
|
|
101300
|
+
if (response.headers) {
|
|
101301
|
+
for (let key of response.headers.keys()) {
|
|
101302
|
+
_headers[key] = response.headers.get(key);
|
|
101303
|
+
}
|
|
101304
|
+
}
|
|
101305
|
+
if (status === 404) {
|
|
101306
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101307
|
+
let result404 = null;
|
|
101308
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101309
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101310
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101311
|
+
}));
|
|
101312
|
+
}
|
|
101313
|
+
else if (status === 200) {
|
|
101314
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101315
|
+
let result200 = null;
|
|
101316
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101317
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101318
|
+
return of(result200);
|
|
101319
|
+
}));
|
|
101320
|
+
}
|
|
101321
|
+
else if (status !== 200 && status !== 204) {
|
|
101322
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101323
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101324
|
+
}));
|
|
101325
|
+
}
|
|
101326
|
+
return of(null);
|
|
101327
|
+
}
|
|
101328
|
+
/**
|
|
101329
|
+
* @return Success
|
|
101330
|
+
*/
|
|
101331
|
+
facilityAllScan2Pay() {
|
|
101332
|
+
let url_ = this.baseUrl + "/api/services/web/facility/scan-2-pay/basic";
|
|
101333
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101334
|
+
let options_ = {
|
|
101335
|
+
observe: "response",
|
|
101336
|
+
responseType: "blob",
|
|
101337
|
+
headers: new HttpHeaders({
|
|
101338
|
+
"Accept": "text/plain"
|
|
101339
|
+
})
|
|
101340
|
+
};
|
|
101341
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101342
|
+
return this.processFacilityAllScan2Pay(response_);
|
|
101343
|
+
})).pipe(catchError((response_) => {
|
|
101344
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101345
|
+
try {
|
|
101346
|
+
return this.processFacilityAllScan2Pay(response_);
|
|
101347
|
+
}
|
|
101348
|
+
catch (e) {
|
|
101349
|
+
return throwError(e);
|
|
101350
|
+
}
|
|
101351
|
+
}
|
|
101352
|
+
else
|
|
101353
|
+
return throwError(response_);
|
|
101354
|
+
}));
|
|
101355
|
+
}
|
|
101356
|
+
processFacilityAllScan2Pay(response) {
|
|
101357
|
+
const status = response.status;
|
|
101358
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101359
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101360
|
+
let _headers = {};
|
|
101361
|
+
if (response.headers) {
|
|
101362
|
+
for (let key of response.headers.keys()) {
|
|
101363
|
+
_headers[key] = response.headers.get(key);
|
|
101364
|
+
}
|
|
101365
|
+
}
|
|
101366
|
+
if (status === 404) {
|
|
101367
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101368
|
+
let result404 = null;
|
|
101369
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101370
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101371
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101372
|
+
}));
|
|
101373
|
+
}
|
|
101374
|
+
else if (status === 200) {
|
|
101375
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101376
|
+
let result200 = null;
|
|
101377
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101378
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101379
|
+
return of(result200);
|
|
101380
|
+
}));
|
|
101381
|
+
}
|
|
101382
|
+
else if (status !== 200 && status !== 204) {
|
|
101383
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101384
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101385
|
+
}));
|
|
101386
|
+
}
|
|
101387
|
+
return of(null);
|
|
101388
|
+
}
|
|
101389
|
+
/**
|
|
101390
|
+
* @return Success
|
|
101391
|
+
*/
|
|
101392
|
+
facilityAllInsights() {
|
|
101393
|
+
let url_ = this.baseUrl + "/api/services/web/facility/insights/basic";
|
|
101394
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101395
|
+
let options_ = {
|
|
101396
|
+
observe: "response",
|
|
101397
|
+
responseType: "blob",
|
|
101398
|
+
headers: new HttpHeaders({
|
|
101399
|
+
"Accept": "text/plain"
|
|
101400
|
+
})
|
|
101401
|
+
};
|
|
101402
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101403
|
+
return this.processFacilityAllInsights(response_);
|
|
101404
|
+
})).pipe(catchError((response_) => {
|
|
101405
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101406
|
+
try {
|
|
101407
|
+
return this.processFacilityAllInsights(response_);
|
|
101408
|
+
}
|
|
101409
|
+
catch (e) {
|
|
101410
|
+
return throwError(e);
|
|
101411
|
+
}
|
|
101412
|
+
}
|
|
101413
|
+
else
|
|
101414
|
+
return throwError(response_);
|
|
101415
|
+
}));
|
|
101416
|
+
}
|
|
101417
|
+
processFacilityAllInsights(response) {
|
|
101418
|
+
const status = response.status;
|
|
101419
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101420
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101421
|
+
let _headers = {};
|
|
101422
|
+
if (response.headers) {
|
|
101423
|
+
for (let key of response.headers.keys()) {
|
|
101424
|
+
_headers[key] = response.headers.get(key);
|
|
101425
|
+
}
|
|
101426
|
+
}
|
|
101427
|
+
if (status === 404) {
|
|
101428
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101429
|
+
let result404 = null;
|
|
101430
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101431
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101432
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101433
|
+
}));
|
|
101434
|
+
}
|
|
101435
|
+
else if (status === 200) {
|
|
101436
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101437
|
+
let result200 = null;
|
|
101438
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101439
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101440
|
+
return of(result200);
|
|
101441
|
+
}));
|
|
101442
|
+
}
|
|
101443
|
+
else if (status !== 200 && status !== 204) {
|
|
101444
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101445
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101446
|
+
}));
|
|
101447
|
+
}
|
|
101448
|
+
return of(null);
|
|
101449
|
+
}
|
|
101450
|
+
/**
|
|
101451
|
+
* @return Success
|
|
101452
|
+
*/
|
|
101453
|
+
facilityAllECommerceConfiguration() {
|
|
101454
|
+
let url_ = this.baseUrl + "/api/services/web/facility/e-commerce/configuration/basic";
|
|
101455
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101456
|
+
let options_ = {
|
|
101457
|
+
observe: "response",
|
|
101458
|
+
responseType: "blob",
|
|
101459
|
+
headers: new HttpHeaders({
|
|
101460
|
+
"Accept": "text/plain"
|
|
101461
|
+
})
|
|
101462
|
+
};
|
|
101463
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101464
|
+
return this.processFacilityAllECommerceConfiguration(response_);
|
|
101465
|
+
})).pipe(catchError((response_) => {
|
|
101466
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101467
|
+
try {
|
|
101468
|
+
return this.processFacilityAllECommerceConfiguration(response_);
|
|
101469
|
+
}
|
|
101470
|
+
catch (e) {
|
|
101471
|
+
return throwError(e);
|
|
101472
|
+
}
|
|
101473
|
+
}
|
|
101474
|
+
else
|
|
101475
|
+
return throwError(response_);
|
|
101476
|
+
}));
|
|
101477
|
+
}
|
|
101478
|
+
processFacilityAllECommerceConfiguration(response) {
|
|
101479
|
+
const status = response.status;
|
|
101480
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101481
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101482
|
+
let _headers = {};
|
|
101483
|
+
if (response.headers) {
|
|
101484
|
+
for (let key of response.headers.keys()) {
|
|
101485
|
+
_headers[key] = response.headers.get(key);
|
|
101486
|
+
}
|
|
101487
|
+
}
|
|
101488
|
+
if (status === 404) {
|
|
101489
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101490
|
+
let result404 = null;
|
|
101491
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101492
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101493
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101494
|
+
}));
|
|
101495
|
+
}
|
|
101496
|
+
else if (status === 200) {
|
|
101497
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101498
|
+
let result200 = null;
|
|
101499
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101500
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
101501
|
+
return of(result200);
|
|
101502
|
+
}));
|
|
101503
|
+
}
|
|
101504
|
+
else if (status !== 200 && status !== 204) {
|
|
101505
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101506
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101507
|
+
}));
|
|
101508
|
+
}
|
|
101509
|
+
return of(null);
|
|
101510
|
+
}
|
|
101511
|
+
/**
|
|
101512
|
+
* @param appModule (optional)
|
|
101513
|
+
* @return Success
|
|
101514
|
+
*/
|
|
101515
|
+
getFacilityTree(appModule) {
|
|
101516
|
+
let url_ = this.baseUrl + "/api/services/web/facility/tree?";
|
|
101517
|
+
if (appModule === null)
|
|
101518
|
+
throw new Error("The parameter 'appModule' cannot be null.");
|
|
101519
|
+
else if (appModule !== undefined)
|
|
101520
|
+
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
101521
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101522
|
+
let options_ = {
|
|
101523
|
+
observe: "response",
|
|
101524
|
+
responseType: "blob",
|
|
101525
|
+
headers: new HttpHeaders({
|
|
101526
|
+
"Accept": "text/plain"
|
|
101527
|
+
})
|
|
101528
|
+
};
|
|
101529
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101530
|
+
return this.processGetFacilityTree(response_);
|
|
101531
|
+
})).pipe(catchError((response_) => {
|
|
101532
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101533
|
+
try {
|
|
101534
|
+
return this.processGetFacilityTree(response_);
|
|
101535
|
+
}
|
|
101536
|
+
catch (e) {
|
|
101537
|
+
return throwError(e);
|
|
101538
|
+
}
|
|
101539
|
+
}
|
|
101540
|
+
else
|
|
101541
|
+
return throwError(response_);
|
|
101542
|
+
}));
|
|
101543
|
+
}
|
|
101544
|
+
processGetFacilityTree(response) {
|
|
101545
|
+
const status = response.status;
|
|
101546
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101547
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101548
|
+
let _headers = {};
|
|
101549
|
+
if (response.headers) {
|
|
101550
|
+
for (let key of response.headers.keys()) {
|
|
101551
|
+
_headers[key] = response.headers.get(key);
|
|
101552
|
+
}
|
|
101553
|
+
}
|
|
101554
|
+
if (status === 404) {
|
|
101555
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101556
|
+
let result404 = null;
|
|
101557
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101558
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101559
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101560
|
+
}));
|
|
101561
|
+
}
|
|
101562
|
+
else if (status === 200) {
|
|
101563
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101564
|
+
let result200 = null;
|
|
101565
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101566
|
+
result200 = FacilityTreeDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
101567
|
+
return of(result200);
|
|
101568
|
+
}));
|
|
101569
|
+
}
|
|
101570
|
+
else if (status !== 200 && status !== 204) {
|
|
101571
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101572
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101573
|
+
}));
|
|
101574
|
+
}
|
|
101575
|
+
return of(null);
|
|
101576
|
+
}
|
|
101577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101578
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy }); }
|
|
101579
|
+
}
|
|
101580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FacilityIdentityServiceProxy, decorators: [{
|
|
101581
|
+
type: Injectable
|
|
101582
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
101583
|
+
type: Inject,
|
|
101584
|
+
args: [HttpClient]
|
|
101585
|
+
}] }, { type: undefined, decorators: [{
|
|
101586
|
+
type: Optional
|
|
101587
|
+
}, {
|
|
101588
|
+
type: Inject,
|
|
101589
|
+
args: [API_BASE_URL]
|
|
101590
|
+
}] }] });
|
|
101591
|
+
class LocalizationIdentityServiceProxy {
|
|
101592
|
+
constructor(http, baseUrl) {
|
|
101593
|
+
this.jsonParseReviver = undefined;
|
|
101594
|
+
this.http = http;
|
|
101595
|
+
this.baseUrl = baseUrl ?? "";
|
|
101596
|
+
}
|
|
101597
|
+
/**
|
|
101598
|
+
* @param keyName (optional)
|
|
101599
|
+
* @return Success
|
|
101600
|
+
*/
|
|
101601
|
+
getResource(keyName) {
|
|
101602
|
+
let url_ = this.baseUrl + "/api/services/web/localization/get-resource?";
|
|
101603
|
+
if (keyName === null)
|
|
101604
|
+
throw new Error("The parameter 'keyName' cannot be null.");
|
|
101605
|
+
else if (keyName !== undefined)
|
|
101606
|
+
url_ += "keyName=" + encodeURIComponent("" + keyName) + "&";
|
|
101607
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101608
|
+
let options_ = {
|
|
101609
|
+
observe: "response",
|
|
101610
|
+
responseType: "blob",
|
|
101611
|
+
headers: new HttpHeaders({
|
|
101612
|
+
"Accept": "text/plain"
|
|
101613
|
+
})
|
|
101614
|
+
};
|
|
101615
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101616
|
+
return this.processGetResource(response_);
|
|
101617
|
+
})).pipe(catchError((response_) => {
|
|
101618
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101619
|
+
try {
|
|
101620
|
+
return this.processGetResource(response_);
|
|
101621
|
+
}
|
|
101622
|
+
catch (e) {
|
|
101623
|
+
return throwError(e);
|
|
101624
|
+
}
|
|
101625
|
+
}
|
|
101626
|
+
else
|
|
101627
|
+
return throwError(response_);
|
|
101628
|
+
}));
|
|
101629
|
+
}
|
|
101630
|
+
processGetResource(response) {
|
|
101631
|
+
const status = response.status;
|
|
101632
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101633
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101634
|
+
let _headers = {};
|
|
101635
|
+
if (response.headers) {
|
|
101636
|
+
for (let key of response.headers.keys()) {
|
|
101637
|
+
_headers[key] = response.headers.get(key);
|
|
101638
|
+
}
|
|
101639
|
+
}
|
|
101640
|
+
if (status === 404) {
|
|
101641
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101642
|
+
let result404 = null;
|
|
101643
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101644
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101645
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101646
|
+
}));
|
|
101647
|
+
}
|
|
101648
|
+
else if (status === 200 || status === 206) {
|
|
101649
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
101650
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
101651
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
101652
|
+
if (fileName) {
|
|
101653
|
+
fileName = decodeURIComponent(fileName);
|
|
101654
|
+
}
|
|
101655
|
+
else {
|
|
101656
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
101657
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
101658
|
+
}
|
|
101659
|
+
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
101660
|
+
}
|
|
101661
|
+
else if (status !== 200 && status !== 204) {
|
|
101662
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101663
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101664
|
+
}));
|
|
101665
|
+
}
|
|
101666
|
+
return of(null);
|
|
101667
|
+
}
|
|
101668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101669
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy }); }
|
|
101670
|
+
}
|
|
101671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizationIdentityServiceProxy, decorators: [{
|
|
101672
|
+
type: Injectable
|
|
101673
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
101674
|
+
type: Inject,
|
|
101675
|
+
args: [HttpClient]
|
|
101676
|
+
}] }, { type: undefined, decorators: [{
|
|
101677
|
+
type: Optional
|
|
101678
|
+
}, {
|
|
101679
|
+
type: Inject,
|
|
101680
|
+
args: [API_BASE_URL]
|
|
101681
|
+
}] }] });
|
|
101682
|
+
class SmartparkIdentityServiceProxy {
|
|
101683
|
+
constructor(http, baseUrl) {
|
|
101684
|
+
this.jsonParseReviver = undefined;
|
|
101685
|
+
this.http = http;
|
|
101686
|
+
this.baseUrl = baseUrl ?? "";
|
|
101687
|
+
}
|
|
101688
|
+
/**
|
|
101689
|
+
* @return Success
|
|
101690
|
+
*/
|
|
101691
|
+
versions() {
|
|
101692
|
+
let url_ = this.baseUrl + "/api/services/web/smartpark/versions";
|
|
101693
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101694
|
+
let options_ = {
|
|
101695
|
+
observe: "response",
|
|
101696
|
+
responseType: "blob",
|
|
101697
|
+
headers: new HttpHeaders({
|
|
101698
|
+
"Accept": "text/plain"
|
|
101699
|
+
})
|
|
101700
|
+
};
|
|
101701
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101702
|
+
return this.processVersions(response_);
|
|
101703
|
+
})).pipe(catchError((response_) => {
|
|
101704
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101705
|
+
try {
|
|
101706
|
+
return this.processVersions(response_);
|
|
101707
|
+
}
|
|
101708
|
+
catch (e) {
|
|
101709
|
+
return throwError(e);
|
|
101710
|
+
}
|
|
101711
|
+
}
|
|
101712
|
+
else
|
|
101713
|
+
return throwError(response_);
|
|
101714
|
+
}));
|
|
101715
|
+
}
|
|
101716
|
+
processVersions(response) {
|
|
101717
|
+
const status = response.status;
|
|
101718
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101719
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101720
|
+
let _headers = {};
|
|
101721
|
+
if (response.headers) {
|
|
101722
|
+
for (let key of response.headers.keys()) {
|
|
101723
|
+
_headers[key] = response.headers.get(key);
|
|
101724
|
+
}
|
|
101725
|
+
}
|
|
101726
|
+
if (status === 404) {
|
|
101727
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101728
|
+
let result404 = null;
|
|
101729
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101730
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101731
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101732
|
+
}));
|
|
101733
|
+
}
|
|
101734
|
+
else if (status === 200) {
|
|
101735
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101736
|
+
let result200 = null;
|
|
101737
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101738
|
+
result200 = StringStringIDictionaryHttpResponseData.fromJS(resultData200);
|
|
101739
|
+
return of(result200);
|
|
101740
|
+
}));
|
|
101741
|
+
}
|
|
101742
|
+
else if (status !== 200 && status !== 204) {
|
|
101743
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101744
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101745
|
+
}));
|
|
101746
|
+
}
|
|
101747
|
+
return of(null);
|
|
101748
|
+
}
|
|
101749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101750
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy }); }
|
|
101751
|
+
}
|
|
101752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkIdentityServiceProxy, decorators: [{
|
|
101753
|
+
type: Injectable
|
|
101754
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
101755
|
+
type: Inject,
|
|
101756
|
+
args: [HttpClient]
|
|
101757
|
+
}] }, { type: undefined, decorators: [{
|
|
101758
|
+
type: Optional
|
|
101759
|
+
}, {
|
|
101760
|
+
type: Inject,
|
|
101761
|
+
args: [API_BASE_URL]
|
|
101762
|
+
}] }] });
|
|
101763
|
+
class TenantIdentityServiceProxy {
|
|
101764
|
+
constructor(http, baseUrl) {
|
|
101765
|
+
this.jsonParseReviver = undefined;
|
|
101766
|
+
this.http = http;
|
|
101767
|
+
this.baseUrl = baseUrl ?? "";
|
|
101768
|
+
}
|
|
101769
|
+
/**
|
|
101770
|
+
* @param name (optional)
|
|
101771
|
+
* @return Success
|
|
101772
|
+
*/
|
|
101773
|
+
getTenantDetails(name) {
|
|
101774
|
+
let url_ = this.baseUrl + "/api/services/web/tenant/details?";
|
|
101775
|
+
if (name === null)
|
|
101776
|
+
throw new Error("The parameter 'name' cannot be null.");
|
|
101777
|
+
else if (name !== undefined)
|
|
101778
|
+
url_ += "name=" + encodeURIComponent("" + name) + "&";
|
|
101779
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101780
|
+
let options_ = {
|
|
101781
|
+
observe: "response",
|
|
101782
|
+
responseType: "blob",
|
|
101783
|
+
headers: new HttpHeaders({
|
|
101784
|
+
"Accept": "text/plain"
|
|
101785
|
+
})
|
|
101786
|
+
};
|
|
101787
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101788
|
+
return this.processGetTenantDetails(response_);
|
|
101789
|
+
})).pipe(catchError((response_) => {
|
|
101790
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101791
|
+
try {
|
|
101792
|
+
return this.processGetTenantDetails(response_);
|
|
101793
|
+
}
|
|
101794
|
+
catch (e) {
|
|
101795
|
+
return throwError(e);
|
|
101796
|
+
}
|
|
101797
|
+
}
|
|
101798
|
+
else
|
|
101799
|
+
return throwError(response_);
|
|
101800
|
+
}));
|
|
101801
|
+
}
|
|
101802
|
+
processGetTenantDetails(response) {
|
|
101803
|
+
const status = response.status;
|
|
101804
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101805
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101806
|
+
let _headers = {};
|
|
101807
|
+
if (response.headers) {
|
|
101808
|
+
for (let key of response.headers.keys()) {
|
|
101809
|
+
_headers[key] = response.headers.get(key);
|
|
101810
|
+
}
|
|
101811
|
+
}
|
|
101812
|
+
if (status === 404) {
|
|
101813
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101814
|
+
let result404 = null;
|
|
101815
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101816
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101817
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101818
|
+
}));
|
|
101819
|
+
}
|
|
101820
|
+
else if (status === 200) {
|
|
101821
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101822
|
+
let result200 = null;
|
|
101823
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101824
|
+
result200 = TenantDetailsDtoHttpResponseData.fromJS(resultData200);
|
|
101825
|
+
return of(result200);
|
|
101826
|
+
}));
|
|
101827
|
+
}
|
|
101828
|
+
else if (status !== 200 && status !== 204) {
|
|
101829
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101830
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101831
|
+
}));
|
|
101832
|
+
}
|
|
101833
|
+
return of(null);
|
|
101834
|
+
}
|
|
101835
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101836
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy }); }
|
|
101837
|
+
}
|
|
101838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TenantIdentityServiceProxy, decorators: [{
|
|
101839
|
+
type: Injectable
|
|
101840
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
101841
|
+
type: Inject,
|
|
101842
|
+
args: [HttpClient]
|
|
101843
|
+
}] }, { type: undefined, decorators: [{
|
|
101844
|
+
type: Optional
|
|
101845
|
+
}, {
|
|
101846
|
+
type: Inject,
|
|
101847
|
+
args: [API_BASE_URL]
|
|
101848
|
+
}] }] });
|
|
101849
|
+
class ThirdPartyIdentityServiceProxy {
|
|
101850
|
+
constructor(http, baseUrl) {
|
|
101851
|
+
this.jsonParseReviver = undefined;
|
|
101852
|
+
this.http = http;
|
|
101853
|
+
this.baseUrl = baseUrl ?? "";
|
|
101854
|
+
}
|
|
101855
|
+
/**
|
|
101856
|
+
* @return Success
|
|
101857
|
+
*/
|
|
101858
|
+
me() {
|
|
101859
|
+
let url_ = this.baseUrl + "/api/services/web/thirdparty/me";
|
|
101860
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101861
|
+
let options_ = {
|
|
101862
|
+
observe: "response",
|
|
101863
|
+
responseType: "blob",
|
|
101864
|
+
headers: new HttpHeaders({
|
|
101865
|
+
"Accept": "text/plain"
|
|
101866
|
+
})
|
|
101867
|
+
};
|
|
101868
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
101869
|
+
return this.processMe(response_);
|
|
101870
|
+
})).pipe(catchError((response_) => {
|
|
101871
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101872
|
+
try {
|
|
101873
|
+
return this.processMe(response_);
|
|
101874
|
+
}
|
|
101875
|
+
catch (e) {
|
|
101876
|
+
return throwError(e);
|
|
101877
|
+
}
|
|
101878
|
+
}
|
|
101879
|
+
else
|
|
101880
|
+
return throwError(response_);
|
|
101881
|
+
}));
|
|
101882
|
+
}
|
|
101883
|
+
processMe(response) {
|
|
101884
|
+
const status = response.status;
|
|
101885
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101886
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101887
|
+
let _headers = {};
|
|
101888
|
+
if (response.headers) {
|
|
101889
|
+
for (let key of response.headers.keys()) {
|
|
101890
|
+
_headers[key] = response.headers.get(key);
|
|
101891
|
+
}
|
|
101892
|
+
}
|
|
101893
|
+
if (status === 404) {
|
|
101894
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101895
|
+
let result404 = null;
|
|
101896
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101897
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101898
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101899
|
+
}));
|
|
101900
|
+
}
|
|
101901
|
+
else if (status === 200) {
|
|
101902
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101903
|
+
let result200 = null;
|
|
101904
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101905
|
+
result200 = ThirdPartyVendorDtoHttpResponseData.fromJS(resultData200);
|
|
101906
|
+
return of(result200);
|
|
101907
|
+
}));
|
|
101908
|
+
}
|
|
101909
|
+
else if (status !== 200 && status !== 204) {
|
|
101910
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101911
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
101912
|
+
}));
|
|
101913
|
+
}
|
|
101914
|
+
return of(null);
|
|
101915
|
+
}
|
|
101916
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101917
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy }); }
|
|
101918
|
+
}
|
|
101919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ThirdPartyIdentityServiceProxy, decorators: [{
|
|
101920
|
+
type: Injectable
|
|
101921
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient, decorators: [{
|
|
101922
|
+
type: Inject,
|
|
101923
|
+
args: [HttpClient]
|
|
101924
|
+
}] }, { type: undefined, decorators: [{
|
|
101925
|
+
type: Optional
|
|
101926
|
+
}, {
|
|
101927
|
+
type: Inject,
|
|
101928
|
+
args: [API_BASE_URL]
|
|
101929
|
+
}] }] });
|
|
101930
|
+
class UsersIdentityServiceProxy {
|
|
101931
|
+
constructor(http, baseUrl) {
|
|
101932
|
+
this.jsonParseReviver = undefined;
|
|
101933
|
+
this.http = http;
|
|
101934
|
+
this.baseUrl = baseUrl ?? "";
|
|
101935
|
+
}
|
|
101936
|
+
/**
|
|
101937
|
+
* @param body (optional)
|
|
101938
|
+
* @return Success
|
|
101939
|
+
*/
|
|
101940
|
+
authenticate(body) {
|
|
101941
|
+
let url_ = this.baseUrl + "/api/services/web/users/authenticate";
|
|
101942
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
101943
|
+
const content_ = JSON.stringify(body);
|
|
101944
|
+
let options_ = {
|
|
101945
|
+
body: content_,
|
|
101946
|
+
observe: "response",
|
|
101947
|
+
responseType: "blob",
|
|
101948
|
+
headers: new HttpHeaders({
|
|
101949
|
+
"Content-Type": "application/json-patch+json",
|
|
101950
|
+
"Accept": "text/plain"
|
|
101951
|
+
})
|
|
101952
|
+
};
|
|
101953
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
101954
|
+
return this.processAuthenticate(response_);
|
|
101955
|
+
})).pipe(catchError((response_) => {
|
|
101956
|
+
if (response_ instanceof HttpResponseBase) {
|
|
101957
|
+
try {
|
|
101958
|
+
return this.processAuthenticate(response_);
|
|
101959
|
+
}
|
|
101960
|
+
catch (e) {
|
|
101961
|
+
return throwError(e);
|
|
101962
|
+
}
|
|
101963
|
+
}
|
|
101964
|
+
else
|
|
101965
|
+
return throwError(response_);
|
|
101966
|
+
}));
|
|
101967
|
+
}
|
|
101968
|
+
processAuthenticate(response) {
|
|
101969
|
+
const status = response.status;
|
|
101970
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
101971
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
101972
|
+
let _headers = {};
|
|
101973
|
+
if (response.headers) {
|
|
101974
|
+
for (let key of response.headers.keys()) {
|
|
101975
|
+
_headers[key] = response.headers.get(key);
|
|
101976
|
+
}
|
|
101977
|
+
}
|
|
101978
|
+
if (status === 404) {
|
|
101979
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101980
|
+
let result404 = null;
|
|
101981
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101982
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
101983
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
101984
|
+
}));
|
|
101985
|
+
}
|
|
101986
|
+
else if (status === 200) {
|
|
101987
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101988
|
+
let result200 = null;
|
|
101989
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101990
|
+
result200 = AuthenticateResponseDtoHttpResponseData.fromJS(resultData200);
|
|
101991
|
+
return of(result200);
|
|
101992
|
+
}));
|
|
101993
|
+
}
|
|
101994
|
+
else if (status === 401) {
|
|
101995
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
101996
|
+
let result401 = null;
|
|
101997
|
+
let resultData401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
101998
|
+
result401 = AuthenticateErrorResponseDtoHttpResponseData.fromJS(resultData401);
|
|
101999
|
+
return throwException("Unauthorized", status, _responseText, _headers, result401);
|
|
102000
|
+
}));
|
|
102001
|
+
}
|
|
102002
|
+
else if (status !== 200 && status !== 204) {
|
|
102003
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
102004
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
102005
|
+
}));
|
|
102006
|
+
}
|
|
102007
|
+
return of(null);
|
|
102008
|
+
}
|
|
102009
|
+
/**
|
|
102010
|
+
* @param refreshToken (optional)
|
|
102011
|
+
* @return Success
|
|
102012
|
+
*/
|
|
102013
|
+
refreshToken(refreshToken) {
|
|
102014
|
+
let url_ = this.baseUrl + "/api/services/web/users/refresh-token";
|
|
102015
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
102016
|
+
let options_ = {
|
|
102017
|
+
observe: "response",
|
|
102018
|
+
responseType: "blob",
|
|
102019
|
+
headers: new HttpHeaders({
|
|
102020
|
+
"RefreshToken": refreshToken !== undefined && refreshToken !== null ? "" + refreshToken : "",
|
|
102021
|
+
"Accept": "text/plain"
|
|
102022
|
+
})
|
|
102023
|
+
};
|
|
102024
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
102025
|
+
return this.processRefreshToken(response_);
|
|
102026
|
+
})).pipe(catchError((response_) => {
|
|
102027
|
+
if (response_ instanceof HttpResponseBase) {
|
|
102028
|
+
try {
|
|
102029
|
+
return this.processRefreshToken(response_);
|
|
102030
|
+
}
|
|
102031
|
+
catch (e) {
|
|
102032
|
+
return throwError(e);
|
|
102033
|
+
}
|
|
102034
|
+
}
|
|
102035
|
+
else
|
|
102036
|
+
return throwError(response_);
|
|
102037
|
+
}));
|
|
102038
|
+
}
|
|
102039
|
+
processRefreshToken(response) {
|
|
102040
|
+
const status = response.status;
|
|
102041
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
102042
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
102043
|
+
let _headers = {};
|
|
102044
|
+
if (response.headers) {
|
|
102045
|
+
for (let key of response.headers.keys()) {
|
|
102046
|
+
_headers[key] = response.headers.get(key);
|
|
102047
|
+
}
|
|
102048
|
+
}
|
|
102049
|
+
if (status === 404) {
|
|
102050
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
102051
|
+
let result404 = null;
|
|
102052
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
102053
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
102054
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
102055
|
+
}));
|
|
102056
|
+
}
|
|
102057
|
+
else if (status === 200) {
|
|
102058
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
102059
|
+
let result200 = null;
|
|
102060
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
102061
|
+
result200 = RefreshTokenDtoHttpResponseData.fromJS(resultData200);
|
|
102062
|
+
return of(result200);
|
|
102063
|
+
}));
|
|
102064
|
+
}
|
|
102065
|
+
else if (status !== 200 && status !== 204) {
|
|
102066
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
102067
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
102068
|
+
}));
|
|
102069
|
+
}
|
|
102070
|
+
return of(null);
|
|
102071
|
+
}
|
|
102072
|
+
/**
|
|
102073
|
+
* @param activationToken (optional)
|
|
102074
|
+
* @param passwordChangeType (optional)
|
|
102075
|
+
* @return Success
|
|
102076
|
+
*/
|
|
102077
|
+
validateActivation(activationToken, passwordChangeType) {
|
|
102078
|
+
let url_ = this.baseUrl + "/api/services/web/users/validate-activation?";
|
|
102079
|
+
if (passwordChangeType === null)
|
|
102080
|
+
throw new Error("The parameter 'passwordChangeType' cannot be null.");
|
|
102081
|
+
else if (passwordChangeType !== undefined)
|
|
102082
|
+
url_ += "passwordChangeType=" + encodeURIComponent("" + passwordChangeType) + "&";
|
|
102083
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
102084
|
+
let options_ = {
|
|
102085
|
+
observe: "response",
|
|
102086
|
+
responseType: "blob",
|
|
102087
|
+
headers: new HttpHeaders({
|
|
102088
|
+
"ActivationToken": activationToken !== undefined && activationToken !== null ? "" + activationToken : "",
|
|
102089
|
+
"Accept": "text/plain"
|
|
102090
|
+
})
|
|
102091
|
+
};
|
|
102092
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
102093
|
+
return this.processValidateActivation(response_);
|
|
102094
|
+
})).pipe(catchError((response_) => {
|
|
102095
|
+
if (response_ instanceof HttpResponseBase) {
|
|
102096
|
+
try {
|
|
102097
|
+
return this.processValidateActivation(response_);
|
|
102098
|
+
}
|
|
102099
|
+
catch (e) {
|
|
102100
|
+
return throwError(e);
|
|
102101
|
+
}
|
|
102102
|
+
}
|
|
102103
|
+
else
|
|
102104
|
+
return throwError(response_);
|
|
102105
|
+
}));
|
|
102106
|
+
}
|
|
102107
|
+
processValidateActivation(response) {
|
|
100527
102108
|
const status = response.status;
|
|
100528
102109
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
100529
102110
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -116761,6 +118342,184 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
116761
118342
|
type: Injectable
|
|
116762
118343
|
}], ctorParameters: () => [{ type: FacilityRpcServiceProxy }] });
|
|
116763
118344
|
|
|
118345
|
+
class RestartLinkComponent {
|
|
118346
|
+
constructor(translate, store, elementRef) {
|
|
118347
|
+
this.translate = translate;
|
|
118348
|
+
this.store = store;
|
|
118349
|
+
this.elementRef = elementRef;
|
|
118350
|
+
this.label = this.translate.instant(Localization.please_refresh_and_try_again);
|
|
118351
|
+
this.messageText = this.translate.instant(Localization.refresh_link_something_went_wrong_message);
|
|
118352
|
+
this.IconSettings = IconsHelper;
|
|
118353
|
+
}
|
|
118354
|
+
ngOnInit() {
|
|
118355
|
+
// Direction will be handled globally once RTL support is implemented
|
|
118356
|
+
const userSettings = this.store.selectSnapshot(SessionState.mappedUserSettings);
|
|
118357
|
+
const userLocalization = userSettings.get(SettingsCategory$2.Localization);
|
|
118358
|
+
const direction = RTL_LANGUAGES.includes(userLocalization.keyName) ? 'rtl' : 'ltr';
|
|
118359
|
+
this.elementRef.nativeElement.dir = direction;
|
|
118360
|
+
}
|
|
118361
|
+
onClick() {
|
|
118362
|
+
window.location.reload();
|
|
118363
|
+
}
|
|
118364
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RestartLinkComponent, deps: [{ token: i1$5.TranslateService }, { token: i1$2.Store }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118365
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RestartLinkComponent, selector: "tb-restart-link", inputs: { label: "label", messageText: "messageText" }, ngImport: i0, template: "<div class=\"restart-link-container\">\n <div class=\"text-content\">\n <span>\n {{ messageText }}\n </span>\n <span class=\"tb-text-link\" (click)=\"onClick()\">\n {{ label }}\n </span>\n </div>\n <tb-icon [settings]=\"IconSettings.refresh\" [setCursorPointer]=\"false\" class=\"tb-icon-30 tb-mt-2 icon-fixed\"></tb-icon>\n</div>\n", styles: [":host{display:inline-block;padding-left:4px;min-width:270px}:host[dir=rtl] .restart-link-container{flex-direction:row-reverse}:host[dir=rtl] .text-content{direction:rtl;text-align:right}:host[dir=ltr] .text-content{direction:ltr;text-align:left}.restart-link-container,.restart-link-container .text-content{display:flex;align-items:center;gap:.5em}.restart-link-container .tb-text-link{color:#0985eb;cursor:pointer;display:flex;align-items:center;text-decoration:none}.restart-link-container .tb-text-link:hover{opacity:.9}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "tb-icon", inputs: ["setCursorPointer", "facilityCommandIcon", "remoteCommandIcon", "settings"] }] }); }
|
|
118366
|
+
}
|
|
118367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RestartLinkComponent, decorators: [{
|
|
118368
|
+
type: Component,
|
|
118369
|
+
args: [{ selector: 'tb-restart-link', template: "<div class=\"restart-link-container\">\n <div class=\"text-content\">\n <span>\n {{ messageText }}\n </span>\n <span class=\"tb-text-link\" (click)=\"onClick()\">\n {{ label }}\n </span>\n </div>\n <tb-icon [settings]=\"IconSettings.refresh\" [setCursorPointer]=\"false\" class=\"tb-icon-30 tb-mt-2 icon-fixed\"></tb-icon>\n</div>\n", styles: [":host{display:inline-block;padding-left:4px;min-width:270px}:host[dir=rtl] .restart-link-container{flex-direction:row-reverse}:host[dir=rtl] .text-content{direction:rtl;text-align:right}:host[dir=ltr] .text-content{direction:ltr;text-align:left}.restart-link-container,.restart-link-container .text-content{display:flex;align-items:center;gap:.5em}.restart-link-container .tb-text-link{color:#0985eb;cursor:pointer;display:flex;align-items:center;text-decoration:none}.restart-link-container .tb-text-link:hover{opacity:.9}\n"] }]
|
|
118370
|
+
}], ctorParameters: () => [{ type: i1$5.TranslateService }, { type: i1$2.Store }, { type: i0.ElementRef }], propDecorators: { label: [{
|
|
118371
|
+
type: Input
|
|
118372
|
+
}], messageText: [{
|
|
118373
|
+
type: Input
|
|
118374
|
+
}] } });
|
|
118375
|
+
|
|
118376
|
+
class SmartparkService {
|
|
118377
|
+
get loading$() {
|
|
118378
|
+
return this.loading.asObservable();
|
|
118379
|
+
}
|
|
118380
|
+
get hasError$() {
|
|
118381
|
+
return this.hasError.asObservable();
|
|
118382
|
+
}
|
|
118383
|
+
constructor(store, appConfig, facilityIdentityServiceProxy, actionStatusService, messageBarService) {
|
|
118384
|
+
this.store = store;
|
|
118385
|
+
this.appConfig = appConfig;
|
|
118386
|
+
this.facilityIdentityServiceProxy = facilityIdentityServiceProxy;
|
|
118387
|
+
this.actionStatusService = actionStatusService;
|
|
118388
|
+
this.messageBarService = messageBarService;
|
|
118389
|
+
this.loading = new BehaviorSubject(false);
|
|
118390
|
+
this.hasError = new BehaviorSubject(false);
|
|
118391
|
+
this.facilitySubModuleFetchMethodsMapping = {
|
|
118392
|
+
[SubModule$2.EValidation]: this.facilityIdentityServiceProxy.facilityAllValidationEValidation,
|
|
118393
|
+
[SubModule$2.SelfValidation]: this.facilityIdentityServiceProxy.facilityAllValidationSelfValidation,
|
|
118394
|
+
[SubModule$2.Coupons]: this.facilityIdentityServiceProxy.facilityAllValidationCoupons,
|
|
118395
|
+
[SubModule$2.Stickers]: this.facilityIdentityServiceProxy.facilityAllValidationStickers,
|
|
118396
|
+
[SubModule$2.Monthlies]: this.facilityIdentityServiceProxy.facilityAllMonthlies,
|
|
118397
|
+
[SubModule$2.ImporterTool]: this.facilityIdentityServiceProxy.facilityAllMonthliesImporterTool,
|
|
118398
|
+
[SubModule$2.Guests]: this.facilityIdentityServiceProxy.facilityAllGuests,
|
|
118399
|
+
[SubModule$2.HotelGuests]: this.facilityIdentityServiceProxy.facilityAllGuestsHotelGuests,
|
|
118400
|
+
[SubModule$2.HotelGuestsIO]: this.facilityIdentityServiceProxy.facilityAllGuestsHotelGuestsIO,
|
|
118401
|
+
[SubModule$2.EVoucher]: this.facilityIdentityServiceProxy.facilityAllGuestsEVoucher,
|
|
118402
|
+
[SubModule$2.Accounts]: this.facilityIdentityServiceProxy.facilityAllAccounts,
|
|
118403
|
+
[SubModule$2.Rates]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationRates,
|
|
118404
|
+
[SubModule$2.Scheduler]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationScheduler,
|
|
118405
|
+
[SubModule$2.DynamicPricing]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationDynamicPricing,
|
|
118406
|
+
[SubModule$2.ValidationProfiles]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationValidationProfiles,
|
|
118407
|
+
[SubModule$2.AccessProfiles]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationAccessProfiles,
|
|
118408
|
+
[SubModule$2.CashiersManagement]: this.facilityIdentityServiceProxy.facilityAllLotConfigurationCashiersManagement,
|
|
118409
|
+
[SubModule$2.UserManagement]: this.facilityIdentityServiceProxy.facilityAllManagementUserManagement,
|
|
118410
|
+
[SubModule$2.Audit]: this.facilityIdentityServiceProxy.facilityAllManagementAudit,
|
|
118411
|
+
[SubModule$2.DigitalReceipt]: this.facilityIdentityServiceProxy.facilityAllManagementDigitalReceipt,
|
|
118412
|
+
[SubModule$2.EnforcementIntegration]: this.facilityIdentityServiceProxy.facilityAllManagementEnforcementIntegration,
|
|
118413
|
+
[SubModule$2.Scan2Pay]: this.facilityIdentityServiceProxy.facilityAllScan2Pay,
|
|
118414
|
+
[SubModule$2.Insights]: this.facilityIdentityServiceProxy.facilityAllInsights,
|
|
118415
|
+
[SubModule$2.FacilitiesAndSmartparks]: null,
|
|
118416
|
+
[SubModule$2.Logo]: null,
|
|
118417
|
+
[SubModule$2.SmtpSettings]: null,
|
|
118418
|
+
[SubModule$2.DefaultUserSettings]: null,
|
|
118419
|
+
[SubModule$2.ECommerceMySite]: null,
|
|
118420
|
+
[SubModule$2.ECommerceConfiguration]: null,
|
|
118421
|
+
};
|
|
118422
|
+
this.facilityAppModuleFetchMethodsMapping = {
|
|
118423
|
+
[AppModule$2.Cc]: this.facilityIdentityServiceProxy.facilityAllCc,
|
|
118424
|
+
[AppModule$2.Reports]: this.facilityIdentityServiceProxy.facilityAllReports,
|
|
118425
|
+
[AppModule$2.ECommerceBackoffice]: this.facilityIdentityServiceProxy.facilityAllECommerceConfiguration,
|
|
118426
|
+
[AppModule$2.Management]: null,
|
|
118427
|
+
[AppModule$2.Settings]: null,
|
|
118428
|
+
[AppModule$2.Validation]: null,
|
|
118429
|
+
[AppModule$2.Guests]: null,
|
|
118430
|
+
[AppModule$2.Monthlies]: null,
|
|
118431
|
+
[AppModule$2.Backoffice]: null,
|
|
118432
|
+
[AppModule$2.Pi]: this.facilityIdentityServiceProxy.facilityAllPi,
|
|
118433
|
+
[AppModule$2.Accounts]: null,
|
|
118434
|
+
[AppModule$2.LotConfiguration]: null,
|
|
118435
|
+
[AppModule$2.Scan2Pay]: null,
|
|
118436
|
+
[AppModule$2.Insights]: null,
|
|
118437
|
+
};
|
|
118438
|
+
}
|
|
118439
|
+
getSmartparkBasicAll(appModule, subModule, setSmartparkBasic = true) {
|
|
118440
|
+
this.hasError.next(false);
|
|
118441
|
+
this.loading.next(true);
|
|
118442
|
+
if (setSmartparkBasic) {
|
|
118443
|
+
this.store.dispatch(new SetSmartParkTableAction(null));
|
|
118444
|
+
this.store.dispatch(new ClearSmartparksBasicAction());
|
|
118445
|
+
this.store.dispatch(new ClearFacilityDictionaryAction());
|
|
118446
|
+
}
|
|
118447
|
+
const facilityAllFetchMethod = this.getFacilityAllFetchMethod(appModule, subModule);
|
|
118448
|
+
if (!facilityAllFetchMethod) {
|
|
118449
|
+
console.warn(`SmartparkService: no fetch method mapped for AppModule=${AppModule$2[appModule]} SubModule=${subModule != null ? SubModule$2[subModule] : 'none'} — skipping fetch`);
|
|
118450
|
+
this.loading.next(false);
|
|
118451
|
+
return EMPTY;
|
|
118452
|
+
}
|
|
118453
|
+
const response = facilityAllFetchMethod();
|
|
118454
|
+
return response.pipe(tap(smartparkBasic => {
|
|
118455
|
+
if (setSmartparkBasic) {
|
|
118456
|
+
this.store.dispatch(new SetSmartParkVersionsAction(this.extractSparkVersions(smartparkBasic.data.smartParks)));
|
|
118457
|
+
this.store.dispatch(new SetSmartparkBasicAllAction(smartparkBasic));
|
|
118458
|
+
}
|
|
118459
|
+
this.loading.next(false);
|
|
118460
|
+
}), catchError$1(e => {
|
|
118461
|
+
this.hasError.next(true);
|
|
118462
|
+
this.loading.next(false);
|
|
118463
|
+
const isMobileAppMode = this.appConfig.getConfig().appType === AppType.Mobile;
|
|
118464
|
+
if (e.status !== HttpStatusCode.RequestTimeout && !isMobileAppMode) {
|
|
118465
|
+
const messageInfo = {
|
|
118466
|
+
duration: ONE_SECOND_IN_MILLISECONDS * 15,
|
|
118467
|
+
action: {
|
|
118468
|
+
component: RestartLinkComponent
|
|
118469
|
+
},
|
|
118470
|
+
};
|
|
118471
|
+
this.messageBarService.warn("", messageInfo);
|
|
118472
|
+
}
|
|
118473
|
+
throw e;
|
|
118474
|
+
}));
|
|
118475
|
+
}
|
|
118476
|
+
getLoadingOverlayOptions(actions, noDataMessage = null) {
|
|
118477
|
+
const loading$ = this.getLoadingStream(actions);
|
|
118478
|
+
const hasError$ = this.getErrorStream(actions);
|
|
118479
|
+
return this.createLoadingOverlayOptions(loading$, hasError$, noDataMessage);
|
|
118480
|
+
}
|
|
118481
|
+
getLoadingStream(actions) {
|
|
118482
|
+
// Untyped state access to avoid a circular dependency with SmartparkState; keep in sync with the 'smartpark' state name/shape by hand.
|
|
118483
|
+
const smartparks = this.store.selectSnapshot((state) => state.smartpark?.smartparks);
|
|
118484
|
+
const isSmartparkDataLoaded = smartparks !== null && smartparks !== undefined;
|
|
118485
|
+
const response$ = isSmartparkDataLoaded ? this.actionStatusService.actionsExecuting$(actions) :
|
|
118486
|
+
(combineLatest([
|
|
118487
|
+
this.loading$.pipe(delay$1(ONE_SECOND_IN_MILLISECONDS)),
|
|
118488
|
+
this.actionStatusService.actionsExecuting$(actions)
|
|
118489
|
+
]).pipe(map$1(([smartparksLoading, actionLoading]) => smartparksLoading || actionLoading), startWith(true)));
|
|
118490
|
+
return response$;
|
|
118491
|
+
}
|
|
118492
|
+
getErrorStream(actions) {
|
|
118493
|
+
return this.actionStatusService.actionsErrored$(actions);
|
|
118494
|
+
}
|
|
118495
|
+
createLoadingOverlayOptions(loading$, hasError$, noDataMessage) {
|
|
118496
|
+
const loadingOverlayOptions = {
|
|
118497
|
+
loading$,
|
|
118498
|
+
hasError$,
|
|
118499
|
+
};
|
|
118500
|
+
if (noDataMessage) {
|
|
118501
|
+
loadingOverlayOptions.emptyResultsOptions = { noDataMessage };
|
|
118502
|
+
}
|
|
118503
|
+
return loadingOverlayOptions;
|
|
118504
|
+
}
|
|
118505
|
+
extractSparkVersions(smartparks) {
|
|
118506
|
+
const versions = {};
|
|
118507
|
+
for (const guid of Object.keys(smartparks)) {
|
|
118508
|
+
versions[guid] = smartparks[guid].sparkVersion;
|
|
118509
|
+
}
|
|
118510
|
+
return versions;
|
|
118511
|
+
}
|
|
118512
|
+
getFacilityAllFetchMethod(appModule, subModule) {
|
|
118513
|
+
const fetchMethod = this.facilitySubModuleFetchMethodsMapping[subModule] ?? this.facilityAppModuleFetchMethodsMapping[appModule];
|
|
118514
|
+
return fetchMethod ? fetchMethod.bind(this.facilityIdentityServiceProxy) : null;
|
|
118515
|
+
}
|
|
118516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService, deps: [{ token: i1$2.Store }, { token: AppConfigService }, { token: FacilityIdentityServiceProxy }, { token: ActionStatusService }, { token: MessageBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
118517
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService }); }
|
|
118518
|
+
}
|
|
118519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService, decorators: [{
|
|
118520
|
+
type: Injectable
|
|
118521
|
+
}], ctorParameters: () => [{ type: i1$2.Store }, { type: AppConfigService }, { type: FacilityIdentityServiceProxy }, { type: ActionStatusService }, { type: MessageBarService }] });
|
|
118522
|
+
|
|
116764
118523
|
;
|
|
116765
118524
|
|
|
116766
118525
|
class MessageBarModule {
|
|
@@ -117424,12 +119183,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
117424
119183
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
117425
119184
|
|
|
117426
119185
|
let SmartparkState = class SmartparkState {
|
|
117427
|
-
constructor(store, revenueService, smartparkCloudServiceProxy, facilityRpcServiceProxy,
|
|
119186
|
+
constructor(store, revenueService, smartparkService, smartparkCloudServiceProxy, facilityRpcServiceProxy, deviceRpcServiceProxy, messageBarService, routeService, translateService, exportFileService, backofficeCloudServiceProxy, licenseCloudServiceProxy) {
|
|
117428
119187
|
this.store = store;
|
|
117429
119188
|
this.revenueService = revenueService;
|
|
119189
|
+
this.smartparkService = smartparkService;
|
|
117430
119190
|
this.smartparkCloudServiceProxy = smartparkCloudServiceProxy;
|
|
117431
119191
|
this.facilityRpcServiceProxy = facilityRpcServiceProxy;
|
|
117432
|
-
this.facilityIdentityServiceProxy = facilityIdentityServiceProxy;
|
|
117433
119192
|
this.deviceRpcServiceProxy = deviceRpcServiceProxy;
|
|
117434
119193
|
this.messageBarService = messageBarService;
|
|
117435
119194
|
this.routeService = routeService;
|
|
@@ -117502,7 +119261,7 @@ let SmartparkState = class SmartparkState {
|
|
|
117502
119261
|
}
|
|
117503
119262
|
onLoadSmartparksBasicAction(ctx, action) {
|
|
117504
119263
|
ctx.dispatch(new MenuSubModuleLoadAction(action.subModule));
|
|
117505
|
-
const smartparks$ = this.
|
|
119264
|
+
const smartparks$ = this.smartparkService.getSmartparkBasicAll(action.appModule, action.subModule);
|
|
117506
119265
|
return smartparks$.pipe(switchMap$1(smartparkBasic => {
|
|
117507
119266
|
ctx.patchState({
|
|
117508
119267
|
smartParkWrapper: smartparkBasic.data,
|
|
@@ -117563,7 +119322,9 @@ let SmartparkState = class SmartparkState {
|
|
|
117563
119322
|
}
|
|
117564
119323
|
onLoadParksAction(ctx) {
|
|
117565
119324
|
ctx.patchState({ selectedParkDetails: null, selectedParkId: null });
|
|
117566
|
-
|
|
119325
|
+
const appModule = this.store.selectSnapshot(SidenavState.appModule);
|
|
119326
|
+
const subModule = this.store.selectSnapshot(SidenavState.subModule);
|
|
119327
|
+
return this.smartparkService.getSmartparkBasicAll(appModule, subModule).pipe(tap(smartparkMap => {
|
|
117567
119328
|
const { guid, type } = ctx.getState().selectedSmartPark;
|
|
117568
119329
|
if (smartparkMap) {
|
|
117569
119330
|
let selectedParkId;
|
|
@@ -117807,7 +119568,7 @@ let SmartparkState = class SmartparkState {
|
|
|
117807
119568
|
};
|
|
117808
119569
|
return createMessageText(messageBarPayload);
|
|
117809
119570
|
}
|
|
117810
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkState, deps: [{ token: i1$2.Store }, { token: RevenueService }, { token:
|
|
119571
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkState, deps: [{ token: i1$2.Store }, { token: RevenueService }, { token: SmartparkService }, { token: SmartparkCloudServiceProxy }, { token: FacilityRpcServiceProxy }, { token: DeviceRpcServiceProxy }, { token: MessageBarService }, { token: RouteService }, { token: i1$5.TranslateService }, { token: ExportFileService, optional: true }, { token: BackofficeCloudServiceProxy }, { token: LicenseCloudServiceProxy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
117811
119572
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkState }); }
|
|
117812
119573
|
};
|
|
117813
119574
|
__decorate([
|
|
@@ -117967,7 +119728,7 @@ SmartparkState = __decorate([
|
|
|
117967
119728
|
], SmartparkState);
|
|
117968
119729
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkState, decorators: [{
|
|
117969
119730
|
type: Injectable
|
|
117970
|
-
}], ctorParameters: () => [{ type: i1$2.Store }, { type: RevenueService }, { type:
|
|
119731
|
+
}], ctorParameters: () => [{ type: i1$2.Store }, { type: RevenueService }, { type: SmartparkService }, { type: SmartparkCloudServiceProxy }, { type: FacilityRpcServiceProxy }, { type: DeviceRpcServiceProxy }, { type: MessageBarService }, { type: RouteService }, { type: i1$5.TranslateService }, { type: ExportFileService, decorators: [{
|
|
117971
119732
|
type: Optional
|
|
117972
119733
|
}] }, { type: BackofficeCloudServiceProxy }, { type: LicenseCloudServiceProxy }], propDecorators: { onLoadSmartparksAction: [], onLoadSmartparksBasicAction: [], onClearSmartparksBasicAction: [], onLoadSmartparksTableAction: [], onLoadBackofficeSmartparksTableAction: [], onSetSmartParkTableAction: [], onSetSmartParksAction: [], onSelectSmartParkAction: [], onLoadParksAction: [], onLoadParkDevices: [], onSelectParkAction: [], onClearSelectedParkAction: [], onClearSelectedsmartparkAction: [], onSmartParkDeviceStatusChangedAction: [], onDisconnectSmartparkAction: [], onSetSmartParkVersionsAction: [], onLoadSpAndSparkVersionsAction: [], onLoadBackofficeSpAndSparkVersionsAction: [], onClearSpAndSparkVersionsAction: [], onLoadVarsAction: [], onLoadBackofficeVarsAction: [], onLoadBackofficeVarByIdAction: [], onSyncUsersAndRolesBySmartparkIdAction: [], onExportSmartparksAction: [], onExportPdfSmartparksTableAction: [], onLoadAllSmartparksAction: [], onUpdateSmartparkVarAction: [] } });
|
|
117973
119734
|
|
|
@@ -118771,126 +120532,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
118771
120532
|
type: Injectable
|
|
118772
120533
|
}], ctorParameters: () => [] });
|
|
118773
120534
|
|
|
118774
|
-
class RestartLinkComponent {
|
|
118775
|
-
constructor(translate, store, elementRef) {
|
|
118776
|
-
this.translate = translate;
|
|
118777
|
-
this.store = store;
|
|
118778
|
-
this.elementRef = elementRef;
|
|
118779
|
-
this.label = this.translate.instant(Localization.please_refresh_and_try_again);
|
|
118780
|
-
this.messageText = this.translate.instant(Localization.refresh_link_something_went_wrong_message);
|
|
118781
|
-
this.IconSettings = IconsHelper;
|
|
118782
|
-
}
|
|
118783
|
-
ngOnInit() {
|
|
118784
|
-
// Direction will be handled globally once RTL support is implemented
|
|
118785
|
-
const userSettings = this.store.selectSnapshot(SessionState.mappedUserSettings);
|
|
118786
|
-
const userLocalization = userSettings.get(SettingsCategory$2.Localization);
|
|
118787
|
-
const direction = RTL_LANGUAGES.includes(userLocalization.keyName) ? 'rtl' : 'ltr';
|
|
118788
|
-
this.elementRef.nativeElement.dir = direction;
|
|
118789
|
-
}
|
|
118790
|
-
onClick() {
|
|
118791
|
-
window.location.reload();
|
|
118792
|
-
}
|
|
118793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RestartLinkComponent, deps: [{ token: i1$5.TranslateService }, { token: i1$2.Store }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118794
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RestartLinkComponent, selector: "tb-restart-link", inputs: { label: "label", messageText: "messageText" }, ngImport: i0, template: "<div class=\"restart-link-container\">\n <div class=\"text-content\">\n <span>\n {{ messageText }}\n </span>\n <span class=\"tb-text-link\" (click)=\"onClick()\">\n {{ label }}\n </span>\n </div>\n <tb-icon [settings]=\"IconSettings.refresh\" [setCursorPointer]=\"false\" class=\"tb-icon-30 tb-mt-2 icon-fixed\"></tb-icon>\n</div>\n", styles: [":host{display:inline-block;padding-left:4px;min-width:270px}:host[dir=rtl] .restart-link-container{flex-direction:row-reverse}:host[dir=rtl] .text-content{direction:rtl;text-align:right}:host[dir=ltr] .text-content{direction:ltr;text-align:left}.restart-link-container,.restart-link-container .text-content{display:flex;align-items:center;gap:.5em}.restart-link-container .tb-text-link{color:#0985eb;cursor:pointer;display:flex;align-items:center;text-decoration:none}.restart-link-container .tb-text-link:hover{opacity:.9}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "tb-icon", inputs: ["setCursorPointer", "facilityCommandIcon", "remoteCommandIcon", "settings"] }] }); }
|
|
118795
|
-
}
|
|
118796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RestartLinkComponent, decorators: [{
|
|
118797
|
-
type: Component,
|
|
118798
|
-
args: [{ selector: 'tb-restart-link', template: "<div class=\"restart-link-container\">\n <div class=\"text-content\">\n <span>\n {{ messageText }}\n </span>\n <span class=\"tb-text-link\" (click)=\"onClick()\">\n {{ label }}\n </span>\n </div>\n <tb-icon [settings]=\"IconSettings.refresh\" [setCursorPointer]=\"false\" class=\"tb-icon-30 tb-mt-2 icon-fixed\"></tb-icon>\n</div>\n", styles: [":host{display:inline-block;padding-left:4px;min-width:270px}:host[dir=rtl] .restart-link-container{flex-direction:row-reverse}:host[dir=rtl] .text-content{direction:rtl;text-align:right}:host[dir=ltr] .text-content{direction:ltr;text-align:left}.restart-link-container,.restart-link-container .text-content{display:flex;align-items:center;gap:.5em}.restart-link-container .tb-text-link{color:#0985eb;cursor:pointer;display:flex;align-items:center;text-decoration:none}.restart-link-container .tb-text-link:hover{opacity:.9}\n"] }]
|
|
118799
|
-
}], ctorParameters: () => [{ type: i1$5.TranslateService }, { type: i1$2.Store }, { type: i0.ElementRef }], propDecorators: { label: [{
|
|
118800
|
-
type: Input
|
|
118801
|
-
}], messageText: [{
|
|
118802
|
-
type: Input
|
|
118803
|
-
}] } });
|
|
118804
|
-
|
|
118805
|
-
class SmartparkService {
|
|
118806
|
-
get loading$() {
|
|
118807
|
-
return this.loading.asObservable();
|
|
118808
|
-
}
|
|
118809
|
-
get hasError$() {
|
|
118810
|
-
return this.hasError.asObservable();
|
|
118811
|
-
}
|
|
118812
|
-
constructor(store, appConfig, facilityIdentityServiceProxy, actionStatusService, messageBarService) {
|
|
118813
|
-
this.store = store;
|
|
118814
|
-
this.appConfig = appConfig;
|
|
118815
|
-
this.facilityIdentityServiceProxy = facilityIdentityServiceProxy;
|
|
118816
|
-
this.actionStatusService = actionStatusService;
|
|
118817
|
-
this.messageBarService = messageBarService;
|
|
118818
|
-
this.loading = new BehaviorSubject(false);
|
|
118819
|
-
this.hasError = new BehaviorSubject(false);
|
|
118820
|
-
}
|
|
118821
|
-
getSmartparkBasicAll(appModule, setSmartparkBasic = true) {
|
|
118822
|
-
this.hasError.next(false);
|
|
118823
|
-
this.loading.next(true);
|
|
118824
|
-
if (setSmartparkBasic) {
|
|
118825
|
-
this.store.dispatch(new SetSmartParkTableAction(null));
|
|
118826
|
-
this.store.dispatch(new ClearSmartparksBasicAction());
|
|
118827
|
-
this.store.dispatch(new ClearFacilityDictionaryAction());
|
|
118828
|
-
}
|
|
118829
|
-
// the subModule sent in the header by the CloudAuthTokenInterceptor
|
|
118830
|
-
const response = this.facilityIdentityServiceProxy.facilityAll(appModule);
|
|
118831
|
-
return response.pipe(tap(smartparkBasic => {
|
|
118832
|
-
if (setSmartparkBasic) {
|
|
118833
|
-
this.store.dispatch(new SetSmartParkVersionsAction(this.extractSparkVersions(smartparkBasic.data.smartParks)));
|
|
118834
|
-
this.store.dispatch(new SetSmartparkBasicAllAction(smartparkBasic));
|
|
118835
|
-
}
|
|
118836
|
-
this.loading.next(false);
|
|
118837
|
-
}), catchError$1(e => {
|
|
118838
|
-
this.hasError.next(true);
|
|
118839
|
-
this.loading.next(false);
|
|
118840
|
-
const isMobileAppMode = this.appConfig.getConfig().appType === AppType.Mobile;
|
|
118841
|
-
if (e.status !== HttpStatusCode.RequestTimeout && !isMobileAppMode) {
|
|
118842
|
-
const messageInfo = {
|
|
118843
|
-
duration: ONE_SECOND_IN_MILLISECONDS * 15,
|
|
118844
|
-
action: {
|
|
118845
|
-
component: RestartLinkComponent
|
|
118846
|
-
},
|
|
118847
|
-
};
|
|
118848
|
-
this.messageBarService.warn("", messageInfo);
|
|
118849
|
-
}
|
|
118850
|
-
throw e;
|
|
118851
|
-
}));
|
|
118852
|
-
}
|
|
118853
|
-
getLoadingOverlayOptions(actions, noDataMessage = null) {
|
|
118854
|
-
const loading$ = this.getLoadingStream(actions);
|
|
118855
|
-
const hasError$ = this.getErrorStream(actions);
|
|
118856
|
-
return this.createLoadingOverlayOptions(loading$, hasError$, noDataMessage);
|
|
118857
|
-
}
|
|
118858
|
-
getLoadingStream(actions) {
|
|
118859
|
-
const isSmartparkDataLoaded = this.store.selectSnapshot(SmartparkState.smartparks) !== null;
|
|
118860
|
-
const response$ = isSmartparkDataLoaded ? this.actionStatusService.actionsExecuting$(actions) :
|
|
118861
|
-
(combineLatest([
|
|
118862
|
-
this.loading$.pipe(delay$1(ONE_SECOND_IN_MILLISECONDS)),
|
|
118863
|
-
this.actionStatusService.actionsExecuting$(actions)
|
|
118864
|
-
]).pipe(map$1(([smartparksLoading, actionLoading]) => smartparksLoading || actionLoading), startWith(true)));
|
|
118865
|
-
return response$;
|
|
118866
|
-
}
|
|
118867
|
-
getErrorStream(actions) {
|
|
118868
|
-
return this.actionStatusService.actionsErrored$(actions);
|
|
118869
|
-
}
|
|
118870
|
-
createLoadingOverlayOptions(loading$, hasError$, noDataMessage) {
|
|
118871
|
-
const loadingOverlayOptions = {
|
|
118872
|
-
loading$,
|
|
118873
|
-
hasError$,
|
|
118874
|
-
};
|
|
118875
|
-
if (noDataMessage) {
|
|
118876
|
-
loadingOverlayOptions.emptyResultsOptions = { noDataMessage };
|
|
118877
|
-
}
|
|
118878
|
-
return loadingOverlayOptions;
|
|
118879
|
-
}
|
|
118880
|
-
extractSparkVersions(smartparks) {
|
|
118881
|
-
const versions = {};
|
|
118882
|
-
for (const guid of Object.keys(smartparks)) {
|
|
118883
|
-
versions[guid] = smartparks[guid].sparkVersion;
|
|
118884
|
-
}
|
|
118885
|
-
return versions;
|
|
118886
|
-
}
|
|
118887
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService, deps: [{ token: i1$2.Store }, { token: AppConfigService }, { token: FacilityIdentityServiceProxy }, { token: ActionStatusService }, { token: MessageBarService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
118888
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService }); }
|
|
118889
|
-
}
|
|
118890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SmartparkService, decorators: [{
|
|
118891
|
-
type: Injectable
|
|
118892
|
-
}], ctorParameters: () => [{ type: i1$2.Store }, { type: AppConfigService }, { type: FacilityIdentityServiceProxy }, { type: ActionStatusService }, { type: MessageBarService }] });
|
|
118893
|
-
|
|
118894
120535
|
class AppModuleService {
|
|
118895
120536
|
constructor() {
|
|
118896
120537
|
}
|
|
@@ -128061,7 +129702,7 @@ class SubModuleGuard {
|
|
|
128061
129702
|
this.store.dispatch(new LoadSmartparksBasicAction(route.data.module, route.data.subModule));
|
|
128062
129703
|
}
|
|
128063
129704
|
else {
|
|
128064
|
-
this.smartparkService.getSmartparkBasicAll(route.data.module).subscribe();
|
|
129705
|
+
this.smartparkService.getSmartparkBasicAll(route.data.module, route.data.subModule).subscribe();
|
|
128065
129706
|
}
|
|
128066
129707
|
}
|
|
128067
129708
|
}
|