@tiba-spark/client-shared-lib 10.3.0-282 → 10.3.0-292
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/enums/index.mjs +2 -1
- package/esm2022/libraries/enums/localization.enum.mjs +41 -1
- package/esm2022/libraries/enums/time-range-formats.enum.mjs +6 -0
- package/esm2022/libraries/pipes/index.mjs +2 -1
- package/esm2022/libraries/pipes/shared-pipes.module.mjs +6 -1
- package/esm2022/libraries/pipes/time-range.pipe.mjs +38 -0
- package/esm2022/libraries/service-proxy/cloud-service-proxies.mjs +3 -1
- package/esm2022/libraries/service-proxy/edge-service-proxies.mjs +1187 -150
- package/esm2022/libraries/utils/array.util.mjs +5 -0
- package/esm2022/libraries/utils/helper.util.mjs +2 -2
- package/esm2022/libraries/utils/index.mjs +2 -1
- package/fesm2022/tiba-spark-client-shared-lib.mjs +1302 -152
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/enums/index.d.ts +1 -0
- package/libraries/enums/index.d.ts.map +1 -1
- package/libraries/enums/localization.enum.d.ts +41 -1
- package/libraries/enums/localization.enum.d.ts.map +1 -1
- package/libraries/enums/time-range-formats.enum.d.ts +5 -0
- package/libraries/enums/time-range-formats.enum.d.ts.map +1 -0
- package/libraries/pipes/index.d.ts +1 -0
- package/libraries/pipes/index.d.ts.map +1 -1
- package/libraries/pipes/shared-pipes.module.d.ts +6 -5
- package/libraries/pipes/shared-pipes.module.d.ts.map +1 -1
- package/libraries/pipes/time-range.pipe.d.ts +14 -0
- package/libraries/pipes/time-range.pipe.d.ts.map +1 -0
- package/libraries/service-proxy/cloud-service-proxies.d.ts +4 -2
- package/libraries/service-proxy/cloud-service-proxies.d.ts.map +1 -1
- package/libraries/service-proxy/edge-service-proxies.d.ts +381 -5
- package/libraries/service-proxy/edge-service-proxies.d.ts.map +1 -1
- package/libraries/utils/array.util.d.ts +2 -0
- package/libraries/utils/array.util.d.ts.map +1 -0
- package/libraries/utils/index.d.ts +1 -0
- package/libraries/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { ofActionDispatched, ofActionCompleted, ofActionErrored, Action, Selecto
|
|
|
9
9
|
import { from, of, noop, Subject, throwError, Observable, delay, debounceTime, switchMap, map as map$1, Subscription, BehaviorSubject } from 'rxjs';
|
|
10
10
|
import { map, combineLatestAll, shareReplay, mergeMap, mergeAll, scan, first, takeUntil, catchError, tap, distinctUntilChanged } from 'rxjs/operators';
|
|
11
11
|
import * as _ from 'lodash';
|
|
12
|
-
import { cloneDeep } from 'lodash';
|
|
12
|
+
import ___default, { cloneDeep } from 'lodash';
|
|
13
13
|
import * as i1$2 from '@angular/common/http';
|
|
14
14
|
import { HttpHeaders, HttpResponseBase, HttpResponse, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
15
15
|
import moment from 'moment';
|
|
@@ -396,6 +396,10 @@ function TrackAction() {
|
|
|
396
396
|
|
|
397
397
|
// Services
|
|
398
398
|
|
|
399
|
+
function arraysAreDifferent(prev, curr) {
|
|
400
|
+
return !___default.isEqual(prev, curr);
|
|
401
|
+
}
|
|
402
|
+
|
|
399
403
|
/**
|
|
400
404
|
* Extract a touched changed observable from an abstract control
|
|
401
405
|
* @param control AbstractControl like object with markAsTouched method
|
|
@@ -9704,6 +9708,7 @@ var PermissionType$1;
|
|
|
9704
9708
|
PermissionType[PermissionType["ClosePaymentScreen"] = 97] = "ClosePaymentScreen";
|
|
9705
9709
|
PermissionType[PermissionType["ECommerceAdmin"] = 98] = "ECommerceAdmin";
|
|
9706
9710
|
PermissionType[PermissionType["ECommerceRegular"] = 99] = "ECommerceRegular";
|
|
9711
|
+
PermissionType[PermissionType["LotConfigurationAccessProfile"] = 100] = "LotConfigurationAccessProfile";
|
|
9707
9712
|
})(PermissionType$1 || (PermissionType$1 = {}));
|
|
9708
9713
|
class PermissionTypeIEnumerableHttpResponseData {
|
|
9709
9714
|
constructor(data) {
|
|
@@ -11711,6 +11716,7 @@ var SubModule$1;
|
|
|
11711
11716
|
SubModule[SubModule["Scheduler"] = 14] = "Scheduler";
|
|
11712
11717
|
SubModule[SubModule["ValidationProfiles"] = 15] = "ValidationProfiles";
|
|
11713
11718
|
SubModule[SubModule["HotelGuestsIO"] = 16] = "HotelGuestsIO";
|
|
11719
|
+
SubModule[SubModule["AccessProfiles"] = 17] = "AccessProfiles";
|
|
11714
11720
|
})(SubModule$1 || (SubModule$1 = {}));
|
|
11715
11721
|
class T {
|
|
11716
11722
|
constructor(data) {
|
|
@@ -14055,29 +14061,9 @@ class AccessProfileServiceProxy {
|
|
|
14055
14061
|
}
|
|
14056
14062
|
return of(null);
|
|
14057
14063
|
}
|
|
14058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14059
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy }); }
|
|
14060
|
-
}
|
|
14061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy, decorators: [{
|
|
14062
|
-
type: Injectable
|
|
14063
|
-
}], ctorParameters: function () { return [{ type: i1$2.HttpClient, decorators: [{
|
|
14064
|
-
type: Inject,
|
|
14065
|
-
args: [HttpClient]
|
|
14066
|
-
}] }, { type: undefined, decorators: [{
|
|
14067
|
-
type: Optional
|
|
14068
|
-
}, {
|
|
14069
|
-
type: Inject,
|
|
14070
|
-
args: [API_BASE_URL]
|
|
14071
|
-
}] }]; } });
|
|
14072
|
-
class AccountServiceProxy {
|
|
14073
|
-
constructor(http, baseUrl) {
|
|
14074
|
-
this.jsonParseReviver = undefined;
|
|
14075
|
-
this.http = http;
|
|
14076
|
-
this.baseUrl = baseUrl ?? "";
|
|
14077
|
-
}
|
|
14078
14064
|
/**
|
|
14079
14065
|
* @param parkId (optional)
|
|
14080
|
-
* @param
|
|
14066
|
+
* @param profileTypes (optional)
|
|
14081
14067
|
* @param orderBy_Column (optional)
|
|
14082
14068
|
* @param orderBy_OrderDirection (optional)
|
|
14083
14069
|
* @param searchValue (optional)
|
|
@@ -14087,8 +14073,8 @@ class AccountServiceProxy {
|
|
|
14087
14073
|
* @param skip (optional)
|
|
14088
14074
|
* @return Success
|
|
14089
14075
|
*/
|
|
14090
|
-
|
|
14091
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/
|
|
14076
|
+
getAccessProfilesMonthliesAndGuests(parkId, profileTypes, orderBy_Column, orderBy_OrderDirection, searchValue, from, to, take, skip, guid) {
|
|
14077
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/accessprofile/monthlies-and-guests?";
|
|
14092
14078
|
if (guid === undefined || guid === null)
|
|
14093
14079
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14094
14080
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -14096,10 +14082,8 @@ class AccountServiceProxy {
|
|
|
14096
14082
|
throw new Error("The parameter 'parkId' cannot be null.");
|
|
14097
14083
|
else if (parkId !== undefined)
|
|
14098
14084
|
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
14099
|
-
if (
|
|
14100
|
-
|
|
14101
|
-
else if (accountSearchFieldSelector !== undefined)
|
|
14102
|
-
url_ += "AccountSearchFieldSelector=" + encodeURIComponent("" + accountSearchFieldSelector) + "&";
|
|
14085
|
+
if (profileTypes !== undefined && profileTypes !== null)
|
|
14086
|
+
profileTypes && profileTypes.forEach(item => { url_ += "ProfileTypes=" + encodeURIComponent("" + item) + "&"; });
|
|
14103
14087
|
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
14104
14088
|
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
14105
14089
|
if (orderBy_OrderDirection === null)
|
|
@@ -14129,11 +14113,11 @@ class AccountServiceProxy {
|
|
|
14129
14113
|
})
|
|
14130
14114
|
};
|
|
14131
14115
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14132
|
-
return this.
|
|
14116
|
+
return this.processGetAccessProfilesMonthliesAndGuests(response_);
|
|
14133
14117
|
})).pipe(catchError((response_) => {
|
|
14134
14118
|
if (response_ instanceof HttpResponseBase) {
|
|
14135
14119
|
try {
|
|
14136
|
-
return this.
|
|
14120
|
+
return this.processGetAccessProfilesMonthliesAndGuests(response_);
|
|
14137
14121
|
}
|
|
14138
14122
|
catch (e) {
|
|
14139
14123
|
return throwError(e);
|
|
@@ -14143,7 +14127,7 @@ class AccountServiceProxy {
|
|
|
14143
14127
|
return throwError(response_);
|
|
14144
14128
|
}));
|
|
14145
14129
|
}
|
|
14146
|
-
|
|
14130
|
+
processGetAccessProfilesMonthliesAndGuests(response) {
|
|
14147
14131
|
const status = response.status;
|
|
14148
14132
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14149
14133
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14165,7 +14149,7 @@ class AccountServiceProxy {
|
|
|
14165
14149
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14166
14150
|
let result200 = null;
|
|
14167
14151
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14168
|
-
result200 =
|
|
14152
|
+
result200 = AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
14169
14153
|
return of(result200);
|
|
14170
14154
|
}));
|
|
14171
14155
|
}
|
|
@@ -14179,11 +14163,14 @@ class AccountServiceProxy {
|
|
|
14179
14163
|
/**
|
|
14180
14164
|
* @return Success
|
|
14181
14165
|
*/
|
|
14182
|
-
|
|
14183
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/
|
|
14184
|
-
if (
|
|
14185
|
-
throw new Error("The parameter '
|
|
14186
|
-
url_ = url_.replace("{
|
|
14166
|
+
accessProfileMonthlyAndGuestDeepSearch(parkId, entityId, guid) {
|
|
14167
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/accessprofile/monthlies-and-guests/facility/{parkId}/deep-search/{entityId}";
|
|
14168
|
+
if (parkId === undefined || parkId === null)
|
|
14169
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
14170
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
14171
|
+
if (entityId === undefined || entityId === null)
|
|
14172
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
14173
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
14187
14174
|
if (guid === undefined || guid === null)
|
|
14188
14175
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14189
14176
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -14196,11 +14183,11 @@ class AccountServiceProxy {
|
|
|
14196
14183
|
})
|
|
14197
14184
|
};
|
|
14198
14185
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14199
|
-
return this.
|
|
14186
|
+
return this.processAccessProfileMonthlyAndGuestDeepSearch(response_);
|
|
14200
14187
|
})).pipe(catchError((response_) => {
|
|
14201
14188
|
if (response_ instanceof HttpResponseBase) {
|
|
14202
14189
|
try {
|
|
14203
|
-
return this.
|
|
14190
|
+
return this.processAccessProfileMonthlyAndGuestDeepSearch(response_);
|
|
14204
14191
|
}
|
|
14205
14192
|
catch (e) {
|
|
14206
14193
|
return throwError(e);
|
|
@@ -14210,7 +14197,7 @@ class AccountServiceProxy {
|
|
|
14210
14197
|
return throwError(response_);
|
|
14211
14198
|
}));
|
|
14212
14199
|
}
|
|
14213
|
-
|
|
14200
|
+
processAccessProfileMonthlyAndGuestDeepSearch(response) {
|
|
14214
14201
|
const status = response.status;
|
|
14215
14202
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14216
14203
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14232,7 +14219,7 @@ class AccountServiceProxy {
|
|
|
14232
14219
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14233
14220
|
let result200 = null;
|
|
14234
14221
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14235
|
-
result200 =
|
|
14222
|
+
result200 = AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
14236
14223
|
return of(result200);
|
|
14237
14224
|
}));
|
|
14238
14225
|
}
|
|
@@ -14244,16 +14231,21 @@ class AccountServiceProxy {
|
|
|
14244
14231
|
return of(null);
|
|
14245
14232
|
}
|
|
14246
14233
|
/**
|
|
14234
|
+
* @param parkId (optional)
|
|
14247
14235
|
* @return Success
|
|
14248
14236
|
*/
|
|
14249
|
-
|
|
14250
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/
|
|
14237
|
+
deleteAccessProfileMonthlyAndGuest(id, parkId, guid) {
|
|
14238
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/accessprofile/monthlies-and-guests/{id}?";
|
|
14251
14239
|
if (id === undefined || id === null)
|
|
14252
14240
|
throw new Error("The parameter 'id' must be defined.");
|
|
14253
14241
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14254
14242
|
if (guid === undefined || guid === null)
|
|
14255
14243
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14256
14244
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14245
|
+
if (parkId === null)
|
|
14246
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
14247
|
+
else if (parkId !== undefined)
|
|
14248
|
+
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
14257
14249
|
url_ = url_.replace(/[?&]$/, "");
|
|
14258
14250
|
let options_ = {
|
|
14259
14251
|
observe: "response",
|
|
@@ -14262,12 +14254,12 @@ class AccountServiceProxy {
|
|
|
14262
14254
|
"Accept": "text/plain"
|
|
14263
14255
|
})
|
|
14264
14256
|
};
|
|
14265
|
-
return this.http.request("
|
|
14266
|
-
return this.
|
|
14257
|
+
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
14258
|
+
return this.processDeleteAccessProfileMonthlyAndGuest(response_);
|
|
14267
14259
|
})).pipe(catchError((response_) => {
|
|
14268
14260
|
if (response_ instanceof HttpResponseBase) {
|
|
14269
14261
|
try {
|
|
14270
|
-
return this.
|
|
14262
|
+
return this.processDeleteAccessProfileMonthlyAndGuest(response_);
|
|
14271
14263
|
}
|
|
14272
14264
|
catch (e) {
|
|
14273
14265
|
return throwError(e);
|
|
@@ -14277,7 +14269,7 @@ class AccountServiceProxy {
|
|
|
14277
14269
|
return throwError(response_);
|
|
14278
14270
|
}));
|
|
14279
14271
|
}
|
|
14280
|
-
|
|
14272
|
+
processDeleteAccessProfileMonthlyAndGuest(response) {
|
|
14281
14273
|
const status = response.status;
|
|
14282
14274
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14283
14275
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14299,28 +14291,84 @@ class AccountServiceProxy {
|
|
|
14299
14291
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14300
14292
|
let result200 = null;
|
|
14301
14293
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14302
|
-
result200 =
|
|
14294
|
+
result200 = UnitHttpResponseData.fromJS(resultData200);
|
|
14303
14295
|
return of(result200);
|
|
14304
14296
|
}));
|
|
14305
14297
|
}
|
|
14306
|
-
else
|
|
14298
|
+
else {
|
|
14307
14299
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14308
|
-
|
|
14300
|
+
let resultdefault = null;
|
|
14301
|
+
let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14302
|
+
resultdefault = ProblemDetails.fromJS(resultDatadefault);
|
|
14303
|
+
return throwException("Error", status, _responseText, _headers, resultdefault);
|
|
14309
14304
|
}));
|
|
14310
14305
|
}
|
|
14311
|
-
|
|
14306
|
+
}
|
|
14307
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14308
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy }); }
|
|
14309
|
+
}
|
|
14310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AccessProfileServiceProxy, decorators: [{
|
|
14311
|
+
type: Injectable
|
|
14312
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient, decorators: [{
|
|
14313
|
+
type: Inject,
|
|
14314
|
+
args: [HttpClient]
|
|
14315
|
+
}] }, { type: undefined, decorators: [{
|
|
14316
|
+
type: Optional
|
|
14317
|
+
}, {
|
|
14318
|
+
type: Inject,
|
|
14319
|
+
args: [API_BASE_URL]
|
|
14320
|
+
}] }]; } });
|
|
14321
|
+
class AccountServiceProxy {
|
|
14322
|
+
constructor(http, baseUrl) {
|
|
14323
|
+
this.jsonParseReviver = undefined;
|
|
14324
|
+
this.http = http;
|
|
14325
|
+
this.baseUrl = baseUrl ?? "";
|
|
14312
14326
|
}
|
|
14313
14327
|
/**
|
|
14328
|
+
* @param parkId (optional)
|
|
14329
|
+
* @param accountSearchFieldSelector (optional)
|
|
14330
|
+
* @param orderBy_Column (optional)
|
|
14331
|
+
* @param orderBy_OrderDirection (optional)
|
|
14332
|
+
* @param searchValue (optional)
|
|
14333
|
+
* @param from (optional)
|
|
14334
|
+
* @param to (optional)
|
|
14335
|
+
* @param take (optional)
|
|
14336
|
+
* @param skip (optional)
|
|
14314
14337
|
* @return Success
|
|
14315
14338
|
*/
|
|
14316
|
-
|
|
14317
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account
|
|
14318
|
-
if (id === undefined || id === null)
|
|
14319
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
14320
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14339
|
+
getAccounts(parkId, accountSearchFieldSelector, orderBy_Column, orderBy_OrderDirection, searchValue, from, to, take, skip, guid) {
|
|
14340
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account?";
|
|
14321
14341
|
if (guid === undefined || guid === null)
|
|
14322
14342
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14323
14343
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14344
|
+
if (parkId === null)
|
|
14345
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
14346
|
+
else if (parkId !== undefined)
|
|
14347
|
+
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
14348
|
+
if (accountSearchFieldSelector === null)
|
|
14349
|
+
throw new Error("The parameter 'accountSearchFieldSelector' cannot be null.");
|
|
14350
|
+
else if (accountSearchFieldSelector !== undefined)
|
|
14351
|
+
url_ += "AccountSearchFieldSelector=" + encodeURIComponent("" + accountSearchFieldSelector) + "&";
|
|
14352
|
+
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
14353
|
+
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
14354
|
+
if (orderBy_OrderDirection === null)
|
|
14355
|
+
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
14356
|
+
else if (orderBy_OrderDirection !== undefined)
|
|
14357
|
+
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
14358
|
+
if (searchValue !== undefined && searchValue !== null)
|
|
14359
|
+
url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
|
|
14360
|
+
if (from !== undefined && from !== null)
|
|
14361
|
+
url_ += "From=" + encodeURIComponent("" + from) + "&";
|
|
14362
|
+
if (to !== undefined && to !== null)
|
|
14363
|
+
url_ += "To=" + encodeURIComponent("" + to) + "&";
|
|
14364
|
+
if (take === null)
|
|
14365
|
+
throw new Error("The parameter 'take' cannot be null.");
|
|
14366
|
+
else if (take !== undefined)
|
|
14367
|
+
url_ += "Take=" + encodeURIComponent("" + take) + "&";
|
|
14368
|
+
if (skip === null)
|
|
14369
|
+
throw new Error("The parameter 'skip' cannot be null.");
|
|
14370
|
+
else if (skip !== undefined)
|
|
14371
|
+
url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
|
|
14324
14372
|
url_ = url_.replace(/[?&]$/, "");
|
|
14325
14373
|
let options_ = {
|
|
14326
14374
|
observe: "response",
|
|
@@ -14330,11 +14378,11 @@ class AccountServiceProxy {
|
|
|
14330
14378
|
})
|
|
14331
14379
|
};
|
|
14332
14380
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14333
|
-
return this.
|
|
14381
|
+
return this.processGetAccounts(response_);
|
|
14334
14382
|
})).pipe(catchError((response_) => {
|
|
14335
14383
|
if (response_ instanceof HttpResponseBase) {
|
|
14336
14384
|
try {
|
|
14337
|
-
return this.
|
|
14385
|
+
return this.processGetAccounts(response_);
|
|
14338
14386
|
}
|
|
14339
14387
|
catch (e) {
|
|
14340
14388
|
return throwError(e);
|
|
@@ -14344,7 +14392,7 @@ class AccountServiceProxy {
|
|
|
14344
14392
|
return throwError(response_);
|
|
14345
14393
|
}));
|
|
14346
14394
|
}
|
|
14347
|
-
|
|
14395
|
+
processGetAccounts(response) {
|
|
14348
14396
|
const status = response.status;
|
|
14349
14397
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14350
14398
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14366,7 +14414,7 @@ class AccountServiceProxy {
|
|
|
14366
14414
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14367
14415
|
let result200 = null;
|
|
14368
14416
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14369
|
-
result200 =
|
|
14417
|
+
result200 = AccountDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
14370
14418
|
return of(result200);
|
|
14371
14419
|
}));
|
|
14372
14420
|
}
|
|
@@ -14380,11 +14428,11 @@ class AccountServiceProxy {
|
|
|
14380
14428
|
/**
|
|
14381
14429
|
* @return Success
|
|
14382
14430
|
*/
|
|
14383
|
-
|
|
14384
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
14385
|
-
if (
|
|
14386
|
-
throw new Error("The parameter '
|
|
14387
|
-
url_ = url_.replace("{
|
|
14431
|
+
getAccount(id, guid) {
|
|
14432
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/{id}";
|
|
14433
|
+
if (id === undefined || id === null)
|
|
14434
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
14435
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14388
14436
|
if (guid === undefined || guid === null)
|
|
14389
14437
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14390
14438
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -14397,11 +14445,11 @@ class AccountServiceProxy {
|
|
|
14397
14445
|
})
|
|
14398
14446
|
};
|
|
14399
14447
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14400
|
-
return this.
|
|
14448
|
+
return this.processGetAccount(response_);
|
|
14401
14449
|
})).pipe(catchError((response_) => {
|
|
14402
14450
|
if (response_ instanceof HttpResponseBase) {
|
|
14403
14451
|
try {
|
|
14404
|
-
return this.
|
|
14452
|
+
return this.processGetAccount(response_);
|
|
14405
14453
|
}
|
|
14406
14454
|
catch (e) {
|
|
14407
14455
|
return throwError(e);
|
|
@@ -14411,7 +14459,7 @@ class AccountServiceProxy {
|
|
|
14411
14459
|
return throwError(response_);
|
|
14412
14460
|
}));
|
|
14413
14461
|
}
|
|
14414
|
-
|
|
14462
|
+
processGetAccount(response) {
|
|
14415
14463
|
const status = response.status;
|
|
14416
14464
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14417
14465
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14433,7 +14481,7 @@ class AccountServiceProxy {
|
|
|
14433
14481
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14434
14482
|
let result200 = null;
|
|
14435
14483
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14436
|
-
result200 =
|
|
14484
|
+
result200 = AccountDtoHttpResponseData.fromJS(resultData200);
|
|
14437
14485
|
return of(result200);
|
|
14438
14486
|
}));
|
|
14439
14487
|
}
|
|
@@ -14445,31 +14493,30 @@ class AccountServiceProxy {
|
|
|
14445
14493
|
return of(null);
|
|
14446
14494
|
}
|
|
14447
14495
|
/**
|
|
14448
|
-
* @param body (optional)
|
|
14449
14496
|
* @return Success
|
|
14450
14497
|
*/
|
|
14451
|
-
|
|
14452
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
14498
|
+
getAccountEntity(id, guid) {
|
|
14499
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/deep-search/{id}";
|
|
14500
|
+
if (id === undefined || id === null)
|
|
14501
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
14502
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14453
14503
|
if (guid === undefined || guid === null)
|
|
14454
14504
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14455
14505
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14456
14506
|
url_ = url_.replace(/[?&]$/, "");
|
|
14457
|
-
const content_ = JSON.stringify(body);
|
|
14458
14507
|
let options_ = {
|
|
14459
|
-
body: content_,
|
|
14460
14508
|
observe: "response",
|
|
14461
14509
|
responseType: "blob",
|
|
14462
14510
|
headers: new HttpHeaders({
|
|
14463
|
-
"Content-Type": "application/json-patch+json",
|
|
14464
14511
|
"Accept": "text/plain"
|
|
14465
14512
|
})
|
|
14466
14513
|
};
|
|
14467
|
-
return this.http.request("
|
|
14468
|
-
return this.
|
|
14514
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14515
|
+
return this.processGetAccountEntity(response_);
|
|
14469
14516
|
})).pipe(catchError((response_) => {
|
|
14470
14517
|
if (response_ instanceof HttpResponseBase) {
|
|
14471
14518
|
try {
|
|
14472
|
-
return this.
|
|
14519
|
+
return this.processGetAccountEntity(response_);
|
|
14473
14520
|
}
|
|
14474
14521
|
catch (e) {
|
|
14475
14522
|
return throwError(e);
|
|
@@ -14479,7 +14526,7 @@ class AccountServiceProxy {
|
|
|
14479
14526
|
return throwError(response_);
|
|
14480
14527
|
}));
|
|
14481
14528
|
}
|
|
14482
|
-
|
|
14529
|
+
processGetAccountEntity(response) {
|
|
14483
14530
|
const status = response.status;
|
|
14484
14531
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14485
14532
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -14489,71 +14536,19 @@ class AccountServiceProxy {
|
|
|
14489
14536
|
_headers[key] = response.headers.get(key);
|
|
14490
14537
|
}
|
|
14491
14538
|
}
|
|
14492
|
-
if (status ===
|
|
14493
|
-
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14494
|
-
let result200 = null;
|
|
14495
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14496
|
-
result200 = CreateAccountResponseHttpResponseData.fromJS(resultData200);
|
|
14497
|
-
return of(result200);
|
|
14498
|
-
}));
|
|
14499
|
-
}
|
|
14500
|
-
else if (status !== 200 && status !== 204) {
|
|
14539
|
+
if (status === 404) {
|
|
14501
14540
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14502
|
-
|
|
14541
|
+
let result404 = null;
|
|
14542
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14543
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
14544
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
14503
14545
|
}));
|
|
14504
14546
|
}
|
|
14505
|
-
|
|
14506
|
-
}
|
|
14507
|
-
/**
|
|
14508
|
-
* @param body (optional)
|
|
14509
|
-
* @return Success
|
|
14510
|
-
*/
|
|
14511
|
-
updateAccount(guid, body) {
|
|
14512
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/update";
|
|
14513
|
-
if (guid === undefined || guid === null)
|
|
14514
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
14515
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14516
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14517
|
-
const content_ = JSON.stringify(body);
|
|
14518
|
-
let options_ = {
|
|
14519
|
-
body: content_,
|
|
14520
|
-
observe: "response",
|
|
14521
|
-
responseType: "blob",
|
|
14522
|
-
headers: new HttpHeaders({
|
|
14523
|
-
"Content-Type": "application/json-patch+json",
|
|
14524
|
-
"Accept": "text/plain"
|
|
14525
|
-
})
|
|
14526
|
-
};
|
|
14527
|
-
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
14528
|
-
return this.processUpdateAccount(response_);
|
|
14529
|
-
})).pipe(catchError((response_) => {
|
|
14530
|
-
if (response_ instanceof HttpResponseBase) {
|
|
14531
|
-
try {
|
|
14532
|
-
return this.processUpdateAccount(response_);
|
|
14533
|
-
}
|
|
14534
|
-
catch (e) {
|
|
14535
|
-
return throwError(e);
|
|
14536
|
-
}
|
|
14537
|
-
}
|
|
14538
|
-
else
|
|
14539
|
-
return throwError(response_);
|
|
14540
|
-
}));
|
|
14541
|
-
}
|
|
14542
|
-
processUpdateAccount(response) {
|
|
14543
|
-
const status = response.status;
|
|
14544
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14545
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
14546
|
-
let _headers = {};
|
|
14547
|
-
if (response.headers) {
|
|
14548
|
-
for (let key of response.headers.keys()) {
|
|
14549
|
-
_headers[key] = response.headers.get(key);
|
|
14550
|
-
}
|
|
14551
|
-
}
|
|
14552
|
-
if (status === 200) {
|
|
14547
|
+
else if (status === 200) {
|
|
14553
14548
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14554
14549
|
let result200 = null;
|
|
14555
14550
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14556
|
-
result200 =
|
|
14551
|
+
result200 = AccountEntityDtoHttpResponseData.fromJS(resultData200);
|
|
14557
14552
|
return of(result200);
|
|
14558
14553
|
}));
|
|
14559
14554
|
}
|
|
@@ -14565,18 +14560,16 @@ class AccountServiceProxy {
|
|
|
14565
14560
|
return of(null);
|
|
14566
14561
|
}
|
|
14567
14562
|
/**
|
|
14568
|
-
* @param accountId (optional)
|
|
14569
14563
|
* @return Success
|
|
14570
14564
|
*/
|
|
14571
|
-
|
|
14572
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
14565
|
+
accountDeepSearch(id, guid) {
|
|
14566
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/deep-search/account/{id}";
|
|
14567
|
+
if (id === undefined || id === null)
|
|
14568
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
14569
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
14573
14570
|
if (guid === undefined || guid === null)
|
|
14574
14571
|
throw new Error("The parameter 'guid' must be defined.");
|
|
14575
14572
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14576
|
-
if (accountId === null)
|
|
14577
|
-
throw new Error("The parameter 'accountId' cannot be null.");
|
|
14578
|
-
else if (accountId !== undefined)
|
|
14579
|
-
url_ += "AccountId=" + encodeURIComponent("" + accountId) + "&";
|
|
14580
14573
|
url_ = url_.replace(/[?&]$/, "");
|
|
14581
14574
|
let options_ = {
|
|
14582
14575
|
observe: "response",
|
|
@@ -14586,11 +14579,11 @@ class AccountServiceProxy {
|
|
|
14586
14579
|
})
|
|
14587
14580
|
};
|
|
14588
14581
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14589
|
-
return this.
|
|
14582
|
+
return this.processAccountDeepSearch(response_);
|
|
14590
14583
|
})).pipe(catchError((response_) => {
|
|
14591
14584
|
if (response_ instanceof HttpResponseBase) {
|
|
14592
14585
|
try {
|
|
14593
|
-
return this.
|
|
14586
|
+
return this.processAccountDeepSearch(response_);
|
|
14594
14587
|
}
|
|
14595
14588
|
catch (e) {
|
|
14596
14589
|
return throwError(e);
|
|
@@ -14600,7 +14593,263 @@ class AccountServiceProxy {
|
|
|
14600
14593
|
return throwError(response_);
|
|
14601
14594
|
}));
|
|
14602
14595
|
}
|
|
14603
|
-
|
|
14596
|
+
processAccountDeepSearch(response) {
|
|
14597
|
+
const status = response.status;
|
|
14598
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14599
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
14600
|
+
let _headers = {};
|
|
14601
|
+
if (response.headers) {
|
|
14602
|
+
for (let key of response.headers.keys()) {
|
|
14603
|
+
_headers[key] = response.headers.get(key);
|
|
14604
|
+
}
|
|
14605
|
+
}
|
|
14606
|
+
if (status === 404) {
|
|
14607
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14608
|
+
let result404 = null;
|
|
14609
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14610
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
14611
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
14612
|
+
}));
|
|
14613
|
+
}
|
|
14614
|
+
else if (status === 200) {
|
|
14615
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14616
|
+
let result200 = null;
|
|
14617
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14618
|
+
result200 = AccountSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
14619
|
+
return of(result200);
|
|
14620
|
+
}));
|
|
14621
|
+
}
|
|
14622
|
+
else if (status !== 200 && status !== 204) {
|
|
14623
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14624
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14625
|
+
}));
|
|
14626
|
+
}
|
|
14627
|
+
return of(null);
|
|
14628
|
+
}
|
|
14629
|
+
/**
|
|
14630
|
+
* @return Success
|
|
14631
|
+
*/
|
|
14632
|
+
subAccountDeepSearch(entityId, guid) {
|
|
14633
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/sub-account/deep-search/{entityId}";
|
|
14634
|
+
if (entityId === undefined || entityId === null)
|
|
14635
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
14636
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
14637
|
+
if (guid === undefined || guid === null)
|
|
14638
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
14639
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14640
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14641
|
+
let options_ = {
|
|
14642
|
+
observe: "response",
|
|
14643
|
+
responseType: "blob",
|
|
14644
|
+
headers: new HttpHeaders({
|
|
14645
|
+
"Accept": "text/plain"
|
|
14646
|
+
})
|
|
14647
|
+
};
|
|
14648
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14649
|
+
return this.processSubAccountDeepSearch(response_);
|
|
14650
|
+
})).pipe(catchError((response_) => {
|
|
14651
|
+
if (response_ instanceof HttpResponseBase) {
|
|
14652
|
+
try {
|
|
14653
|
+
return this.processSubAccountDeepSearch(response_);
|
|
14654
|
+
}
|
|
14655
|
+
catch (e) {
|
|
14656
|
+
return throwError(e);
|
|
14657
|
+
}
|
|
14658
|
+
}
|
|
14659
|
+
else
|
|
14660
|
+
return throwError(response_);
|
|
14661
|
+
}));
|
|
14662
|
+
}
|
|
14663
|
+
processSubAccountDeepSearch(response) {
|
|
14664
|
+
const status = response.status;
|
|
14665
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14666
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
14667
|
+
let _headers = {};
|
|
14668
|
+
if (response.headers) {
|
|
14669
|
+
for (let key of response.headers.keys()) {
|
|
14670
|
+
_headers[key] = response.headers.get(key);
|
|
14671
|
+
}
|
|
14672
|
+
}
|
|
14673
|
+
if (status === 404) {
|
|
14674
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14675
|
+
let result404 = null;
|
|
14676
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14677
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
14678
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
14679
|
+
}));
|
|
14680
|
+
}
|
|
14681
|
+
else if (status === 200) {
|
|
14682
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14683
|
+
let result200 = null;
|
|
14684
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14685
|
+
result200 = SubAccountSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
14686
|
+
return of(result200);
|
|
14687
|
+
}));
|
|
14688
|
+
}
|
|
14689
|
+
else if (status !== 200 && status !== 204) {
|
|
14690
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14691
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14692
|
+
}));
|
|
14693
|
+
}
|
|
14694
|
+
return of(null);
|
|
14695
|
+
}
|
|
14696
|
+
/**
|
|
14697
|
+
* @param body (optional)
|
|
14698
|
+
* @return Success
|
|
14699
|
+
*/
|
|
14700
|
+
createAccount(guid, body) {
|
|
14701
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/create";
|
|
14702
|
+
if (guid === undefined || guid === null)
|
|
14703
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
14704
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14705
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14706
|
+
const content_ = JSON.stringify(body);
|
|
14707
|
+
let options_ = {
|
|
14708
|
+
body: content_,
|
|
14709
|
+
observe: "response",
|
|
14710
|
+
responseType: "blob",
|
|
14711
|
+
headers: new HttpHeaders({
|
|
14712
|
+
"Content-Type": "application/json-patch+json",
|
|
14713
|
+
"Accept": "text/plain"
|
|
14714
|
+
})
|
|
14715
|
+
};
|
|
14716
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
14717
|
+
return this.processCreateAccount(response_);
|
|
14718
|
+
})).pipe(catchError((response_) => {
|
|
14719
|
+
if (response_ instanceof HttpResponseBase) {
|
|
14720
|
+
try {
|
|
14721
|
+
return this.processCreateAccount(response_);
|
|
14722
|
+
}
|
|
14723
|
+
catch (e) {
|
|
14724
|
+
return throwError(e);
|
|
14725
|
+
}
|
|
14726
|
+
}
|
|
14727
|
+
else
|
|
14728
|
+
return throwError(response_);
|
|
14729
|
+
}));
|
|
14730
|
+
}
|
|
14731
|
+
processCreateAccount(response) {
|
|
14732
|
+
const status = response.status;
|
|
14733
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14734
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
14735
|
+
let _headers = {};
|
|
14736
|
+
if (response.headers) {
|
|
14737
|
+
for (let key of response.headers.keys()) {
|
|
14738
|
+
_headers[key] = response.headers.get(key);
|
|
14739
|
+
}
|
|
14740
|
+
}
|
|
14741
|
+
if (status === 200) {
|
|
14742
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14743
|
+
let result200 = null;
|
|
14744
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14745
|
+
result200 = CreateAccountResponseHttpResponseData.fromJS(resultData200);
|
|
14746
|
+
return of(result200);
|
|
14747
|
+
}));
|
|
14748
|
+
}
|
|
14749
|
+
else if (status !== 200 && status !== 204) {
|
|
14750
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14751
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14752
|
+
}));
|
|
14753
|
+
}
|
|
14754
|
+
return of(null);
|
|
14755
|
+
}
|
|
14756
|
+
/**
|
|
14757
|
+
* @param body (optional)
|
|
14758
|
+
* @return Success
|
|
14759
|
+
*/
|
|
14760
|
+
updateAccount(guid, body) {
|
|
14761
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/update";
|
|
14762
|
+
if (guid === undefined || guid === null)
|
|
14763
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
14764
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14765
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14766
|
+
const content_ = JSON.stringify(body);
|
|
14767
|
+
let options_ = {
|
|
14768
|
+
body: content_,
|
|
14769
|
+
observe: "response",
|
|
14770
|
+
responseType: "blob",
|
|
14771
|
+
headers: new HttpHeaders({
|
|
14772
|
+
"Content-Type": "application/json-patch+json",
|
|
14773
|
+
"Accept": "text/plain"
|
|
14774
|
+
})
|
|
14775
|
+
};
|
|
14776
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
14777
|
+
return this.processUpdateAccount(response_);
|
|
14778
|
+
})).pipe(catchError((response_) => {
|
|
14779
|
+
if (response_ instanceof HttpResponseBase) {
|
|
14780
|
+
try {
|
|
14781
|
+
return this.processUpdateAccount(response_);
|
|
14782
|
+
}
|
|
14783
|
+
catch (e) {
|
|
14784
|
+
return throwError(e);
|
|
14785
|
+
}
|
|
14786
|
+
}
|
|
14787
|
+
else
|
|
14788
|
+
return throwError(response_);
|
|
14789
|
+
}));
|
|
14790
|
+
}
|
|
14791
|
+
processUpdateAccount(response) {
|
|
14792
|
+
const status = response.status;
|
|
14793
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14794
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
14795
|
+
let _headers = {};
|
|
14796
|
+
if (response.headers) {
|
|
14797
|
+
for (let key of response.headers.keys()) {
|
|
14798
|
+
_headers[key] = response.headers.get(key);
|
|
14799
|
+
}
|
|
14800
|
+
}
|
|
14801
|
+
if (status === 200) {
|
|
14802
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14803
|
+
let result200 = null;
|
|
14804
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14805
|
+
result200 = AccountDtoHttpResponseData.fromJS(resultData200);
|
|
14806
|
+
return of(result200);
|
|
14807
|
+
}));
|
|
14808
|
+
}
|
|
14809
|
+
else if (status !== 200 && status !== 204) {
|
|
14810
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
14811
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14812
|
+
}));
|
|
14813
|
+
}
|
|
14814
|
+
return of(null);
|
|
14815
|
+
}
|
|
14816
|
+
/**
|
|
14817
|
+
* @param accountId (optional)
|
|
14818
|
+
* @return Success
|
|
14819
|
+
*/
|
|
14820
|
+
getSubAccounts(accountId, guid) {
|
|
14821
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/sub-accounts?";
|
|
14822
|
+
if (guid === undefined || guid === null)
|
|
14823
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
14824
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
14825
|
+
if (accountId === null)
|
|
14826
|
+
throw new Error("The parameter 'accountId' cannot be null.");
|
|
14827
|
+
else if (accountId !== undefined)
|
|
14828
|
+
url_ += "AccountId=" + encodeURIComponent("" + accountId) + "&";
|
|
14829
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14830
|
+
let options_ = {
|
|
14831
|
+
observe: "response",
|
|
14832
|
+
responseType: "blob",
|
|
14833
|
+
headers: new HttpHeaders({
|
|
14834
|
+
"Accept": "text/plain"
|
|
14835
|
+
})
|
|
14836
|
+
};
|
|
14837
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
14838
|
+
return this.processGetSubAccounts(response_);
|
|
14839
|
+
})).pipe(catchError((response_) => {
|
|
14840
|
+
if (response_ instanceof HttpResponseBase) {
|
|
14841
|
+
try {
|
|
14842
|
+
return this.processGetSubAccounts(response_);
|
|
14843
|
+
}
|
|
14844
|
+
catch (e) {
|
|
14845
|
+
return throwError(e);
|
|
14846
|
+
}
|
|
14847
|
+
}
|
|
14848
|
+
else
|
|
14849
|
+
return throwError(response_);
|
|
14850
|
+
}));
|
|
14851
|
+
}
|
|
14852
|
+
processGetSubAccounts(response) {
|
|
14604
14853
|
const status = response.status;
|
|
14605
14854
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
14606
14855
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -32809,11 +33058,681 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
32809
33058
|
type: Inject,
|
|
32810
33059
|
args: [API_BASE_URL]
|
|
32811
33060
|
}] }]; } });
|
|
33061
|
+
var AccessProfileChangeValidTypes;
|
|
33062
|
+
(function (AccessProfileChangeValidTypes) {
|
|
33063
|
+
AccessProfileChangeValidTypes[AccessProfileChangeValidTypes["VoucherTime"] = 1] = "VoucherTime";
|
|
33064
|
+
AccessProfileChangeValidTypes[AccessProfileChangeValidTypes["ReservationTime"] = 2] = "ReservationTime";
|
|
33065
|
+
AccessProfileChangeValidTypes[AccessProfileChangeValidTypes["DefinedValidTime"] = 3] = "DefinedValidTime";
|
|
33066
|
+
AccessProfileChangeValidTypes[AccessProfileChangeValidTypes["VoucherTimeRestricted"] = 4] = "VoucherTimeRestricted";
|
|
33067
|
+
AccessProfileChangeValidTypes[AccessProfileChangeValidTypes["DefinedValidTimeOfEntry"] = 5] = "DefinedValidTimeOfEntry";
|
|
33068
|
+
})(AccessProfileChangeValidTypes || (AccessProfileChangeValidTypes = {}));
|
|
33069
|
+
class AccessProfileDayRestrictionsDto {
|
|
33070
|
+
constructor(data) {
|
|
33071
|
+
if (data) {
|
|
33072
|
+
for (var property in data) {
|
|
33073
|
+
if (data.hasOwnProperty(property))
|
|
33074
|
+
this[property] = data[property];
|
|
33075
|
+
}
|
|
33076
|
+
}
|
|
33077
|
+
}
|
|
33078
|
+
init(_data) {
|
|
33079
|
+
if (_data) {
|
|
33080
|
+
this.dayType = _data["dayType"];
|
|
33081
|
+
if (Array.isArray(_data["timeRanges"])) {
|
|
33082
|
+
this.timeRanges = [];
|
|
33083
|
+
for (let item of _data["timeRanges"])
|
|
33084
|
+
this.timeRanges.push(TimeRangeDto.fromJS(item));
|
|
33085
|
+
}
|
|
33086
|
+
}
|
|
33087
|
+
}
|
|
33088
|
+
static fromJS(data) {
|
|
33089
|
+
data = typeof data === 'object' ? data : {};
|
|
33090
|
+
let result = new AccessProfileDayRestrictionsDto();
|
|
33091
|
+
result.init(data);
|
|
33092
|
+
return result;
|
|
33093
|
+
}
|
|
33094
|
+
toJSON(data) {
|
|
33095
|
+
data = typeof data === 'object' ? data : {};
|
|
33096
|
+
data["dayType"] = this.dayType;
|
|
33097
|
+
if (Array.isArray(this.timeRanges)) {
|
|
33098
|
+
data["timeRanges"] = [];
|
|
33099
|
+
for (let item of this.timeRanges)
|
|
33100
|
+
data["timeRanges"].push(item.toJSON());
|
|
33101
|
+
}
|
|
33102
|
+
return data;
|
|
33103
|
+
}
|
|
33104
|
+
clone() {
|
|
33105
|
+
const json = this.toJSON();
|
|
33106
|
+
let result = new AccessProfileDayRestrictionsDto();
|
|
33107
|
+
result.init(json);
|
|
33108
|
+
return result;
|
|
33109
|
+
}
|
|
33110
|
+
}
|
|
33111
|
+
var AccessProfileDayTypes;
|
|
33112
|
+
(function (AccessProfileDayTypes) {
|
|
33113
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Sunday"] = 1] = "Sunday";
|
|
33114
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Monday"] = 2] = "Monday";
|
|
33115
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Tuesday"] = 3] = "Tuesday";
|
|
33116
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Wednesday"] = 4] = "Wednesday";
|
|
33117
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Thursday"] = 5] = "Thursday";
|
|
33118
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Friday"] = 6] = "Friday";
|
|
33119
|
+
AccessProfileDayTypes[AccessProfileDayTypes["Saturday"] = 7] = "Saturday";
|
|
33120
|
+
AccessProfileDayTypes[AccessProfileDayTypes["SpecialDay1"] = 11] = "SpecialDay1";
|
|
33121
|
+
AccessProfileDayTypes[AccessProfileDayTypes["SpecialDay2"] = 12] = "SpecialDay2";
|
|
33122
|
+
AccessProfileDayTypes[AccessProfileDayTypes["SpecialDay3"] = 13] = "SpecialDay3";
|
|
33123
|
+
AccessProfileDayTypes[AccessProfileDayTypes["SpecialDay4"] = 14] = "SpecialDay4";
|
|
33124
|
+
AccessProfileDayTypes[AccessProfileDayTypes["SpecialDay5"] = 15] = "SpecialDay5";
|
|
33125
|
+
})(AccessProfileDayTypes || (AccessProfileDayTypes = {}));
|
|
33126
|
+
class AccessProfileDetailsDto {
|
|
33127
|
+
constructor(data) {
|
|
33128
|
+
if (data) {
|
|
33129
|
+
for (var property in data) {
|
|
33130
|
+
if (data.hasOwnProperty(property))
|
|
33131
|
+
this[property] = data[property];
|
|
33132
|
+
}
|
|
33133
|
+
}
|
|
33134
|
+
}
|
|
33135
|
+
init(_data) {
|
|
33136
|
+
if (_data) {
|
|
33137
|
+
this.id = _data["id"];
|
|
33138
|
+
this.name = _data["name"];
|
|
33139
|
+
this.description = _data["description"];
|
|
33140
|
+
this.profileNumber = _data["profileNumber"];
|
|
33141
|
+
this.profileType = _data["profileType"];
|
|
33142
|
+
}
|
|
33143
|
+
}
|
|
33144
|
+
static fromJS(data) {
|
|
33145
|
+
data = typeof data === 'object' ? data : {};
|
|
33146
|
+
let result = new AccessProfileDetailsDto();
|
|
33147
|
+
result.init(data);
|
|
33148
|
+
return result;
|
|
33149
|
+
}
|
|
33150
|
+
toJSON(data) {
|
|
33151
|
+
data = typeof data === 'object' ? data : {};
|
|
33152
|
+
data["id"] = this.id;
|
|
33153
|
+
data["name"] = this.name;
|
|
33154
|
+
data["description"] = this.description;
|
|
33155
|
+
data["profileNumber"] = this.profileNumber;
|
|
33156
|
+
data["profileType"] = this.profileType;
|
|
33157
|
+
return data;
|
|
33158
|
+
}
|
|
33159
|
+
clone() {
|
|
33160
|
+
const json = this.toJSON();
|
|
33161
|
+
let result = new AccessProfileDetailsDto();
|
|
33162
|
+
result.init(json);
|
|
33163
|
+
return result;
|
|
33164
|
+
}
|
|
33165
|
+
}
|
|
33166
|
+
class AccessProfileDeviceGroupRestrictionsDto {
|
|
33167
|
+
constructor(data) {
|
|
33168
|
+
if (data) {
|
|
33169
|
+
for (var property in data) {
|
|
33170
|
+
if (data.hasOwnProperty(property))
|
|
33171
|
+
this[property] = data[property];
|
|
33172
|
+
}
|
|
33173
|
+
}
|
|
33174
|
+
}
|
|
33175
|
+
init(_data) {
|
|
33176
|
+
if (_data) {
|
|
33177
|
+
if (Array.isArray(_data["parkDeviceRestrictions"])) {
|
|
33178
|
+
this.parkDeviceRestrictions = [];
|
|
33179
|
+
for (let item of _data["parkDeviceRestrictions"])
|
|
33180
|
+
this.parkDeviceRestrictions.push(AccessProfileParkDeviceRestrictionsDto.fromJS(item));
|
|
33181
|
+
}
|
|
33182
|
+
this.groupId = _data["groupId"];
|
|
33183
|
+
this.groupName = _data["groupName"];
|
|
33184
|
+
}
|
|
33185
|
+
}
|
|
33186
|
+
static fromJS(data) {
|
|
33187
|
+
data = typeof data === 'object' ? data : {};
|
|
33188
|
+
let result = new AccessProfileDeviceGroupRestrictionsDto();
|
|
33189
|
+
result.init(data);
|
|
33190
|
+
return result;
|
|
33191
|
+
}
|
|
33192
|
+
toJSON(data) {
|
|
33193
|
+
data = typeof data === 'object' ? data : {};
|
|
33194
|
+
if (Array.isArray(this.parkDeviceRestrictions)) {
|
|
33195
|
+
data["parkDeviceRestrictions"] = [];
|
|
33196
|
+
for (let item of this.parkDeviceRestrictions)
|
|
33197
|
+
data["parkDeviceRestrictions"].push(item.toJSON());
|
|
33198
|
+
}
|
|
33199
|
+
data["groupId"] = this.groupId;
|
|
33200
|
+
data["groupName"] = this.groupName;
|
|
33201
|
+
return data;
|
|
33202
|
+
}
|
|
33203
|
+
clone() {
|
|
33204
|
+
const json = this.toJSON();
|
|
33205
|
+
let result = new AccessProfileDeviceGroupRestrictionsDto();
|
|
33206
|
+
result.init(json);
|
|
33207
|
+
return result;
|
|
33208
|
+
}
|
|
33209
|
+
}
|
|
33210
|
+
class AccessProfileDeviceRestrictionsDto {
|
|
33211
|
+
constructor(data) {
|
|
33212
|
+
if (data) {
|
|
33213
|
+
for (var property in data) {
|
|
33214
|
+
if (data.hasOwnProperty(property))
|
|
33215
|
+
this[property] = data[property];
|
|
33216
|
+
}
|
|
33217
|
+
}
|
|
33218
|
+
}
|
|
33219
|
+
init(_data) {
|
|
33220
|
+
if (_data) {
|
|
33221
|
+
if (Array.isArray(_data["parkDeviceRestrictions"])) {
|
|
33222
|
+
this.parkDeviceRestrictions = [];
|
|
33223
|
+
for (let item of _data["parkDeviceRestrictions"])
|
|
33224
|
+
this.parkDeviceRestrictions.push(AccessProfileParkDeviceRestrictionsDto.fromJS(item));
|
|
33225
|
+
}
|
|
33226
|
+
}
|
|
33227
|
+
}
|
|
33228
|
+
static fromJS(data) {
|
|
33229
|
+
data = typeof data === 'object' ? data : {};
|
|
33230
|
+
let result = new AccessProfileDeviceRestrictionsDto();
|
|
33231
|
+
result.init(data);
|
|
33232
|
+
return result;
|
|
33233
|
+
}
|
|
33234
|
+
toJSON(data) {
|
|
33235
|
+
data = typeof data === 'object' ? data : {};
|
|
33236
|
+
if (Array.isArray(this.parkDeviceRestrictions)) {
|
|
33237
|
+
data["parkDeviceRestrictions"] = [];
|
|
33238
|
+
for (let item of this.parkDeviceRestrictions)
|
|
33239
|
+
data["parkDeviceRestrictions"].push(item.toJSON());
|
|
33240
|
+
}
|
|
33241
|
+
return data;
|
|
33242
|
+
}
|
|
33243
|
+
clone() {
|
|
33244
|
+
const json = this.toJSON();
|
|
33245
|
+
let result = new AccessProfileDeviceRestrictionsDto();
|
|
33246
|
+
result.init(json);
|
|
33247
|
+
return result;
|
|
33248
|
+
}
|
|
33249
|
+
}
|
|
32812
33250
|
var AccessProfileModeType;
|
|
32813
33251
|
(function (AccessProfileModeType) {
|
|
32814
33252
|
AccessProfileModeType[AccessProfileModeType["MonthliesAndGuests"] = 0] = "MonthliesAndGuests";
|
|
32815
33253
|
AccessProfileModeType[AccessProfileModeType["StickersAndCoupons"] = 1] = "StickersAndCoupons";
|
|
32816
33254
|
})(AccessProfileModeType || (AccessProfileModeType = {}));
|
|
33255
|
+
class AccessProfileMonthlyAndGuestDto {
|
|
33256
|
+
constructor(data) {
|
|
33257
|
+
if (data) {
|
|
33258
|
+
for (var property in data) {
|
|
33259
|
+
if (data.hasOwnProperty(property))
|
|
33260
|
+
this[property] = data[property];
|
|
33261
|
+
}
|
|
33262
|
+
}
|
|
33263
|
+
}
|
|
33264
|
+
init(_data) {
|
|
33265
|
+
if (_data) {
|
|
33266
|
+
this.id = _data["id"];
|
|
33267
|
+
this.parkId = _data["parkId"];
|
|
33268
|
+
this.name = _data["name"];
|
|
33269
|
+
this.description = _data["description"];
|
|
33270
|
+
this.number = _data["number"];
|
|
33271
|
+
this.profileType = _data["profileType"];
|
|
33272
|
+
if (Array.isArray(_data["monthlyRenewalSettings"])) {
|
|
33273
|
+
this.monthlyRenewalSettings = [];
|
|
33274
|
+
for (let item of _data["monthlyRenewalSettings"])
|
|
33275
|
+
this.monthlyRenewalSettings.push(MonthlyRenewalSettingsDto.fromJS(item));
|
|
33276
|
+
}
|
|
33277
|
+
this.restrictionType = _data["restrictionType"];
|
|
33278
|
+
if (Array.isArray(_data["deviceGroupRestrictions"])) {
|
|
33279
|
+
this.deviceGroupRestrictions = [];
|
|
33280
|
+
for (let item of _data["deviceGroupRestrictions"])
|
|
33281
|
+
this.deviceGroupRestrictions.push(AccessProfileDeviceGroupRestrictionsDto.fromJS(item));
|
|
33282
|
+
}
|
|
33283
|
+
}
|
|
33284
|
+
}
|
|
33285
|
+
static fromJS(data) {
|
|
33286
|
+
data = typeof data === 'object' ? data : {};
|
|
33287
|
+
let result = new AccessProfileMonthlyAndGuestDto();
|
|
33288
|
+
result.init(data);
|
|
33289
|
+
return result;
|
|
33290
|
+
}
|
|
33291
|
+
toJSON(data) {
|
|
33292
|
+
data = typeof data === 'object' ? data : {};
|
|
33293
|
+
data["id"] = this.id;
|
|
33294
|
+
data["parkId"] = this.parkId;
|
|
33295
|
+
data["name"] = this.name;
|
|
33296
|
+
data["description"] = this.description;
|
|
33297
|
+
data["number"] = this.number;
|
|
33298
|
+
data["profileType"] = this.profileType;
|
|
33299
|
+
if (Array.isArray(this.monthlyRenewalSettings)) {
|
|
33300
|
+
data["monthlyRenewalSettings"] = [];
|
|
33301
|
+
for (let item of this.monthlyRenewalSettings)
|
|
33302
|
+
data["monthlyRenewalSettings"].push(item.toJSON());
|
|
33303
|
+
}
|
|
33304
|
+
data["restrictionType"] = this.restrictionType;
|
|
33305
|
+
if (Array.isArray(this.deviceGroupRestrictions)) {
|
|
33306
|
+
data["deviceGroupRestrictions"] = [];
|
|
33307
|
+
for (let item of this.deviceGroupRestrictions)
|
|
33308
|
+
data["deviceGroupRestrictions"].push(item.toJSON());
|
|
33309
|
+
}
|
|
33310
|
+
return data;
|
|
33311
|
+
}
|
|
33312
|
+
clone() {
|
|
33313
|
+
const json = this.toJSON();
|
|
33314
|
+
let result = new AccessProfileMonthlyAndGuestDto();
|
|
33315
|
+
result.init(json);
|
|
33316
|
+
return result;
|
|
33317
|
+
}
|
|
33318
|
+
}
|
|
33319
|
+
class AccessProfileMonthlyAndGuestDtoEntityWrapperDto {
|
|
33320
|
+
constructor(data) {
|
|
33321
|
+
if (data) {
|
|
33322
|
+
for (var property in data) {
|
|
33323
|
+
if (data.hasOwnProperty(property))
|
|
33324
|
+
this[property] = data[property];
|
|
33325
|
+
}
|
|
33326
|
+
}
|
|
33327
|
+
}
|
|
33328
|
+
init(_data) {
|
|
33329
|
+
if (_data) {
|
|
33330
|
+
if (Array.isArray(_data["entities"])) {
|
|
33331
|
+
this.entities = [];
|
|
33332
|
+
for (let item of _data["entities"])
|
|
33333
|
+
this.entities.push(AccessProfileMonthlyAndGuestDto.fromJS(item));
|
|
33334
|
+
}
|
|
33335
|
+
this.counter = _data["counter"];
|
|
33336
|
+
this.subCounter = _data["subCounter"];
|
|
33337
|
+
}
|
|
33338
|
+
}
|
|
33339
|
+
static fromJS(data) {
|
|
33340
|
+
data = typeof data === 'object' ? data : {};
|
|
33341
|
+
let result = new AccessProfileMonthlyAndGuestDtoEntityWrapperDto();
|
|
33342
|
+
result.init(data);
|
|
33343
|
+
return result;
|
|
33344
|
+
}
|
|
33345
|
+
toJSON(data) {
|
|
33346
|
+
data = typeof data === 'object' ? data : {};
|
|
33347
|
+
if (Array.isArray(this.entities)) {
|
|
33348
|
+
data["entities"] = [];
|
|
33349
|
+
for (let item of this.entities)
|
|
33350
|
+
data["entities"].push(item.toJSON());
|
|
33351
|
+
}
|
|
33352
|
+
data["counter"] = this.counter;
|
|
33353
|
+
data["subCounter"] = this.subCounter;
|
|
33354
|
+
return data;
|
|
33355
|
+
}
|
|
33356
|
+
clone() {
|
|
33357
|
+
const json = this.toJSON();
|
|
33358
|
+
let result = new AccessProfileMonthlyAndGuestDtoEntityWrapperDto();
|
|
33359
|
+
result.init(json);
|
|
33360
|
+
return result;
|
|
33361
|
+
}
|
|
33362
|
+
}
|
|
33363
|
+
class AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData {
|
|
33364
|
+
constructor(data) {
|
|
33365
|
+
if (data) {
|
|
33366
|
+
for (var property in data) {
|
|
33367
|
+
if (data.hasOwnProperty(property))
|
|
33368
|
+
this[property] = data[property];
|
|
33369
|
+
}
|
|
33370
|
+
}
|
|
33371
|
+
}
|
|
33372
|
+
init(_data) {
|
|
33373
|
+
if (_data) {
|
|
33374
|
+
this.errorMessage = _data["errorMessage"];
|
|
33375
|
+
this.isSuccess = _data["isSuccess"];
|
|
33376
|
+
this.statusCode = _data["statusCode"];
|
|
33377
|
+
this.data = _data["data"] ? AccessProfileMonthlyAndGuestDtoEntityWrapperDto.fromJS(_data["data"]) : undefined;
|
|
33378
|
+
this.successMessage = _data["successMessage"];
|
|
33379
|
+
}
|
|
33380
|
+
}
|
|
33381
|
+
static fromJS(data) {
|
|
33382
|
+
data = typeof data === 'object' ? data : {};
|
|
33383
|
+
let result = new AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData();
|
|
33384
|
+
result.init(data);
|
|
33385
|
+
return result;
|
|
33386
|
+
}
|
|
33387
|
+
toJSON(data) {
|
|
33388
|
+
data = typeof data === 'object' ? data : {};
|
|
33389
|
+
data["errorMessage"] = this.errorMessage;
|
|
33390
|
+
data["isSuccess"] = this.isSuccess;
|
|
33391
|
+
data["statusCode"] = this.statusCode;
|
|
33392
|
+
data["data"] = this.data ? this.data.toJSON() : undefined;
|
|
33393
|
+
data["successMessage"] = this.successMessage;
|
|
33394
|
+
return data;
|
|
33395
|
+
}
|
|
33396
|
+
clone() {
|
|
33397
|
+
const json = this.toJSON();
|
|
33398
|
+
let result = new AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData();
|
|
33399
|
+
result.init(json);
|
|
33400
|
+
return result;
|
|
33401
|
+
}
|
|
33402
|
+
}
|
|
33403
|
+
class AccessProfileMonthlyAndGuestSectionsDto {
|
|
33404
|
+
constructor(data) {
|
|
33405
|
+
if (data) {
|
|
33406
|
+
for (var property in data) {
|
|
33407
|
+
if (data.hasOwnProperty(property))
|
|
33408
|
+
this[property] = data[property];
|
|
33409
|
+
}
|
|
33410
|
+
}
|
|
33411
|
+
}
|
|
33412
|
+
init(_data) {
|
|
33413
|
+
if (_data) {
|
|
33414
|
+
this.accessProfileDetails = _data["accessProfileDetails"] ? AccessProfileDetailsDto.fromJS(_data["accessProfileDetails"]) : undefined;
|
|
33415
|
+
this.accessProfileSettings = _data["accessProfileSettings"] ? AccessProfileSettingsDto.fromJS(_data["accessProfileSettings"]) : undefined;
|
|
33416
|
+
this.accessProfileMonthlyRenewalSettings = _data["accessProfileMonthlyRenewalSettings"] ? AccessProfileMonthlyRenewalSettingsDto.fromJS(_data["accessProfileMonthlyRenewalSettings"]) : undefined;
|
|
33417
|
+
this.accessProfileTimeAndDeviceRestrictions = _data["accessProfileTimeAndDeviceRestrictions"] ? AccessProfileTimeAndDeviceRestrictionsDto.fromJS(_data["accessProfileTimeAndDeviceRestrictions"]) : undefined;
|
|
33418
|
+
}
|
|
33419
|
+
}
|
|
33420
|
+
static fromJS(data) {
|
|
33421
|
+
data = typeof data === 'object' ? data : {};
|
|
33422
|
+
let result = new AccessProfileMonthlyAndGuestSectionsDto();
|
|
33423
|
+
result.init(data);
|
|
33424
|
+
return result;
|
|
33425
|
+
}
|
|
33426
|
+
toJSON(data) {
|
|
33427
|
+
data = typeof data === 'object' ? data : {};
|
|
33428
|
+
data["accessProfileDetails"] = this.accessProfileDetails ? this.accessProfileDetails.toJSON() : undefined;
|
|
33429
|
+
data["accessProfileSettings"] = this.accessProfileSettings ? this.accessProfileSettings.toJSON() : undefined;
|
|
33430
|
+
data["accessProfileMonthlyRenewalSettings"] = this.accessProfileMonthlyRenewalSettings ? this.accessProfileMonthlyRenewalSettings.toJSON() : undefined;
|
|
33431
|
+
data["accessProfileTimeAndDeviceRestrictions"] = this.accessProfileTimeAndDeviceRestrictions ? this.accessProfileTimeAndDeviceRestrictions.toJSON() : undefined;
|
|
33432
|
+
return data;
|
|
33433
|
+
}
|
|
33434
|
+
clone() {
|
|
33435
|
+
const json = this.toJSON();
|
|
33436
|
+
let result = new AccessProfileMonthlyAndGuestSectionsDto();
|
|
33437
|
+
result.init(json);
|
|
33438
|
+
return result;
|
|
33439
|
+
}
|
|
33440
|
+
}
|
|
33441
|
+
class AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData {
|
|
33442
|
+
constructor(data) {
|
|
33443
|
+
if (data) {
|
|
33444
|
+
for (var property in data) {
|
|
33445
|
+
if (data.hasOwnProperty(property))
|
|
33446
|
+
this[property] = data[property];
|
|
33447
|
+
}
|
|
33448
|
+
}
|
|
33449
|
+
}
|
|
33450
|
+
init(_data) {
|
|
33451
|
+
if (_data) {
|
|
33452
|
+
this.errorMessage = _data["errorMessage"];
|
|
33453
|
+
this.isSuccess = _data["isSuccess"];
|
|
33454
|
+
this.statusCode = _data["statusCode"];
|
|
33455
|
+
this.data = _data["data"] ? AccessProfileMonthlyAndGuestSectionsDto.fromJS(_data["data"]) : undefined;
|
|
33456
|
+
this.successMessage = _data["successMessage"];
|
|
33457
|
+
}
|
|
33458
|
+
}
|
|
33459
|
+
static fromJS(data) {
|
|
33460
|
+
data = typeof data === 'object' ? data : {};
|
|
33461
|
+
let result = new AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData();
|
|
33462
|
+
result.init(data);
|
|
33463
|
+
return result;
|
|
33464
|
+
}
|
|
33465
|
+
toJSON(data) {
|
|
33466
|
+
data = typeof data === 'object' ? data : {};
|
|
33467
|
+
data["errorMessage"] = this.errorMessage;
|
|
33468
|
+
data["isSuccess"] = this.isSuccess;
|
|
33469
|
+
data["statusCode"] = this.statusCode;
|
|
33470
|
+
data["data"] = this.data ? this.data.toJSON() : undefined;
|
|
33471
|
+
data["successMessage"] = this.successMessage;
|
|
33472
|
+
return data;
|
|
33473
|
+
}
|
|
33474
|
+
clone() {
|
|
33475
|
+
const json = this.toJSON();
|
|
33476
|
+
let result = new AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData();
|
|
33477
|
+
result.init(json);
|
|
33478
|
+
return result;
|
|
33479
|
+
}
|
|
33480
|
+
}
|
|
33481
|
+
class AccessProfileMonthlyRenewalSettingsDto {
|
|
33482
|
+
constructor(data) {
|
|
33483
|
+
if (data) {
|
|
33484
|
+
for (var property in data) {
|
|
33485
|
+
if (data.hasOwnProperty(property))
|
|
33486
|
+
this[property] = data[property];
|
|
33487
|
+
}
|
|
33488
|
+
}
|
|
33489
|
+
}
|
|
33490
|
+
init(_data) {
|
|
33491
|
+
if (_data) {
|
|
33492
|
+
this.isMonthlyRenewalEnabled = _data["isMonthlyRenewalEnabled"];
|
|
33493
|
+
this.monthlyRenewalSettings1 = _data["monthlyRenewalSettings1"] ? MonthlyRenewalSettingsDto.fromJS(_data["monthlyRenewalSettings1"]) : undefined;
|
|
33494
|
+
this.monthlyRenewalSettings2 = _data["monthlyRenewalSettings2"] ? MonthlyRenewalSettingsDto.fromJS(_data["monthlyRenewalSettings2"]) : undefined;
|
|
33495
|
+
this.monthlyRenewalSettings3 = _data["monthlyRenewalSettings3"] ? MonthlyRenewalSettingsDto.fromJS(_data["monthlyRenewalSettings3"]) : undefined;
|
|
33496
|
+
}
|
|
33497
|
+
}
|
|
33498
|
+
static fromJS(data) {
|
|
33499
|
+
data = typeof data === 'object' ? data : {};
|
|
33500
|
+
let result = new AccessProfileMonthlyRenewalSettingsDto();
|
|
33501
|
+
result.init(data);
|
|
33502
|
+
return result;
|
|
33503
|
+
}
|
|
33504
|
+
toJSON(data) {
|
|
33505
|
+
data = typeof data === 'object' ? data : {};
|
|
33506
|
+
data["isMonthlyRenewalEnabled"] = this.isMonthlyRenewalEnabled;
|
|
33507
|
+
data["monthlyRenewalSettings1"] = this.monthlyRenewalSettings1 ? this.monthlyRenewalSettings1.toJSON() : undefined;
|
|
33508
|
+
data["monthlyRenewalSettings2"] = this.monthlyRenewalSettings2 ? this.monthlyRenewalSettings2.toJSON() : undefined;
|
|
33509
|
+
data["monthlyRenewalSettings3"] = this.monthlyRenewalSettings3 ? this.monthlyRenewalSettings3.toJSON() : undefined;
|
|
33510
|
+
return data;
|
|
33511
|
+
}
|
|
33512
|
+
clone() {
|
|
33513
|
+
const json = this.toJSON();
|
|
33514
|
+
let result = new AccessProfileMonthlyRenewalSettingsDto();
|
|
33515
|
+
result.init(json);
|
|
33516
|
+
return result;
|
|
33517
|
+
}
|
|
33518
|
+
}
|
|
33519
|
+
class AccessProfileParkDeviceRestrictionsDto {
|
|
33520
|
+
constructor(data) {
|
|
33521
|
+
if (data) {
|
|
33522
|
+
for (var property in data) {
|
|
33523
|
+
if (data.hasOwnProperty(property))
|
|
33524
|
+
this[property] = data[property];
|
|
33525
|
+
}
|
|
33526
|
+
}
|
|
33527
|
+
}
|
|
33528
|
+
init(_data) {
|
|
33529
|
+
if (_data) {
|
|
33530
|
+
this.parkId = _data["parkId"];
|
|
33531
|
+
this.parkName = _data["parkName"];
|
|
33532
|
+
this.devicesCount = _data["devicesCount"];
|
|
33533
|
+
}
|
|
33534
|
+
}
|
|
33535
|
+
static fromJS(data) {
|
|
33536
|
+
data = typeof data === 'object' ? data : {};
|
|
33537
|
+
let result = new AccessProfileParkDeviceRestrictionsDto();
|
|
33538
|
+
result.init(data);
|
|
33539
|
+
return result;
|
|
33540
|
+
}
|
|
33541
|
+
toJSON(data) {
|
|
33542
|
+
data = typeof data === 'object' ? data : {};
|
|
33543
|
+
data["parkId"] = this.parkId;
|
|
33544
|
+
data["parkName"] = this.parkName;
|
|
33545
|
+
data["devicesCount"] = this.devicesCount;
|
|
33546
|
+
return data;
|
|
33547
|
+
}
|
|
33548
|
+
clone() {
|
|
33549
|
+
const json = this.toJSON();
|
|
33550
|
+
let result = new AccessProfileParkDeviceRestrictionsDto();
|
|
33551
|
+
result.init(json);
|
|
33552
|
+
return result;
|
|
33553
|
+
}
|
|
33554
|
+
}
|
|
33555
|
+
var AccessProfilePrintFieldTypes;
|
|
33556
|
+
(function (AccessProfilePrintFieldTypes) {
|
|
33557
|
+
AccessProfilePrintFieldTypes[AccessProfilePrintFieldTypes["ProfileName"] = 1] = "ProfileName";
|
|
33558
|
+
AccessProfilePrintFieldTypes[AccessProfilePrintFieldTypes["CompanyName"] = 2] = "CompanyName";
|
|
33559
|
+
AccessProfilePrintFieldTypes[AccessProfilePrintFieldTypes["GuestName"] = 4] = "GuestName";
|
|
33560
|
+
AccessProfilePrintFieldTypes[AccessProfilePrintFieldTypes["GuestValidity"] = 8] = "GuestValidity";
|
|
33561
|
+
AccessProfilePrintFieldTypes[AccessProfilePrintFieldTypes["Prepaid"] = 16] = "Prepaid";
|
|
33562
|
+
})(AccessProfilePrintFieldTypes || (AccessProfilePrintFieldTypes = {}));
|
|
33563
|
+
var AccessProfileRestrictionTypes;
|
|
33564
|
+
(function (AccessProfileRestrictionTypes) {
|
|
33565
|
+
AccessProfileRestrictionTypes[AccessProfileRestrictionTypes["NoRestrictions"] = 1] = "NoRestrictions";
|
|
33566
|
+
AccessProfileRestrictionTypes[AccessProfileRestrictionTypes["BasicRestrictions"] = 2] = "BasicRestrictions";
|
|
33567
|
+
AccessProfileRestrictionTypes[AccessProfileRestrictionTypes["AdvancedRestrictions"] = 3] = "AdvancedRestrictions";
|
|
33568
|
+
})(AccessProfileRestrictionTypes || (AccessProfileRestrictionTypes = {}));
|
|
33569
|
+
class AccessProfileSettingsDto {
|
|
33570
|
+
constructor(data) {
|
|
33571
|
+
if (data) {
|
|
33572
|
+
for (var property in data) {
|
|
33573
|
+
if (data.hasOwnProperty(property))
|
|
33574
|
+
this[property] = data[property];
|
|
33575
|
+
}
|
|
33576
|
+
}
|
|
33577
|
+
}
|
|
33578
|
+
init(_data) {
|
|
33579
|
+
if (_data) {
|
|
33580
|
+
this.isLprIdentificationAccessEnabled = _data["isLprIdentificationAccessEnabled"];
|
|
33581
|
+
this.ticketRateChangeNumber = _data["ticketRateChangeNumber"];
|
|
33582
|
+
this.ticketRateChangeName = _data["ticketRateChangeName"];
|
|
33583
|
+
this.timeBetweenTicketRateChange = _data["timeBetweenTicketRateChange"];
|
|
33584
|
+
if (Array.isArray(_data["ratesByZones"])) {
|
|
33585
|
+
this.ratesByZones = [];
|
|
33586
|
+
for (let item of _data["ratesByZones"])
|
|
33587
|
+
this.ratesByZones.push(RateByZoneDto.fromJS(item));
|
|
33588
|
+
}
|
|
33589
|
+
}
|
|
33590
|
+
}
|
|
33591
|
+
static fromJS(data) {
|
|
33592
|
+
data = typeof data === 'object' ? data : {};
|
|
33593
|
+
let result = new AccessProfileSettingsDto();
|
|
33594
|
+
result.init(data);
|
|
33595
|
+
return result;
|
|
33596
|
+
}
|
|
33597
|
+
toJSON(data) {
|
|
33598
|
+
data = typeof data === 'object' ? data : {};
|
|
33599
|
+
data["isLprIdentificationAccessEnabled"] = this.isLprIdentificationAccessEnabled;
|
|
33600
|
+
data["ticketRateChangeNumber"] = this.ticketRateChangeNumber;
|
|
33601
|
+
data["ticketRateChangeName"] = this.ticketRateChangeName;
|
|
33602
|
+
data["timeBetweenTicketRateChange"] = this.timeBetweenTicketRateChange;
|
|
33603
|
+
if (Array.isArray(this.ratesByZones)) {
|
|
33604
|
+
data["ratesByZones"] = [];
|
|
33605
|
+
for (let item of this.ratesByZones)
|
|
33606
|
+
data["ratesByZones"].push(item.toJSON());
|
|
33607
|
+
}
|
|
33608
|
+
return data;
|
|
33609
|
+
}
|
|
33610
|
+
clone() {
|
|
33611
|
+
const json = this.toJSON();
|
|
33612
|
+
let result = new AccessProfileSettingsDto();
|
|
33613
|
+
result.init(json);
|
|
33614
|
+
return result;
|
|
33615
|
+
}
|
|
33616
|
+
}
|
|
33617
|
+
class AccessProfileTimeAndDeviceRestrictionsDto {
|
|
33618
|
+
constructor(data) {
|
|
33619
|
+
if (data) {
|
|
33620
|
+
for (var property in data) {
|
|
33621
|
+
if (data.hasOwnProperty(property))
|
|
33622
|
+
this[property] = data[property];
|
|
33623
|
+
}
|
|
33624
|
+
}
|
|
33625
|
+
}
|
|
33626
|
+
init(_data) {
|
|
33627
|
+
if (_data) {
|
|
33628
|
+
this.restrictionType = _data["restrictionType"];
|
|
33629
|
+
this.isTimeRestrictionsOnEntriesEnabled = _data["isTimeRestrictionsOnEntriesEnabled"];
|
|
33630
|
+
this.isTimeRestrictionsOnExitsEnabled = _data["isTimeRestrictionsOnExitsEnabled"];
|
|
33631
|
+
this.isLaneRestrictionsEnabled = _data["isLaneRestrictionsEnabled"];
|
|
33632
|
+
this.isTimeRestrictionsBySpecialDaysEnabled = _data["isTimeRestrictionsBySpecialDaysEnabled"];
|
|
33633
|
+
this.isTimeRestrictionByDeviceGroupEnabled = _data["isTimeRestrictionByDeviceGroupEnabled"];
|
|
33634
|
+
this.violationChargeRateNumber = _data["violationChargeRateNumber"];
|
|
33635
|
+
this.violationChargeRateName = _data["violationChargeRateName"];
|
|
33636
|
+
this.timeRestrictions = _data["timeRestrictions"] ? AccessProfileTimeRestrictionsDto.fromJS(_data["timeRestrictions"]) : undefined;
|
|
33637
|
+
this.deviceRestrictions = _data["deviceRestrictions"] ? AccessProfileDeviceRestrictionsDto.fromJS(_data["deviceRestrictions"]) : undefined;
|
|
33638
|
+
if (Array.isArray(_data["deviceGroupRestrictions"])) {
|
|
33639
|
+
this.deviceGroupRestrictions = [];
|
|
33640
|
+
for (let item of _data["deviceGroupRestrictions"])
|
|
33641
|
+
this.deviceGroupRestrictions.push(AccessProfileDeviceGroupRestrictionsDto.fromJS(item));
|
|
33642
|
+
}
|
|
33643
|
+
}
|
|
33644
|
+
}
|
|
33645
|
+
static fromJS(data) {
|
|
33646
|
+
data = typeof data === 'object' ? data : {};
|
|
33647
|
+
let result = new AccessProfileTimeAndDeviceRestrictionsDto();
|
|
33648
|
+
result.init(data);
|
|
33649
|
+
return result;
|
|
33650
|
+
}
|
|
33651
|
+
toJSON(data) {
|
|
33652
|
+
data = typeof data === 'object' ? data : {};
|
|
33653
|
+
data["restrictionType"] = this.restrictionType;
|
|
33654
|
+
data["isTimeRestrictionsOnEntriesEnabled"] = this.isTimeRestrictionsOnEntriesEnabled;
|
|
33655
|
+
data["isTimeRestrictionsOnExitsEnabled"] = this.isTimeRestrictionsOnExitsEnabled;
|
|
33656
|
+
data["isLaneRestrictionsEnabled"] = this.isLaneRestrictionsEnabled;
|
|
33657
|
+
data["isTimeRestrictionsBySpecialDaysEnabled"] = this.isTimeRestrictionsBySpecialDaysEnabled;
|
|
33658
|
+
data["isTimeRestrictionByDeviceGroupEnabled"] = this.isTimeRestrictionByDeviceGroupEnabled;
|
|
33659
|
+
data["violationChargeRateNumber"] = this.violationChargeRateNumber;
|
|
33660
|
+
data["violationChargeRateName"] = this.violationChargeRateName;
|
|
33661
|
+
data["timeRestrictions"] = this.timeRestrictions ? this.timeRestrictions.toJSON() : undefined;
|
|
33662
|
+
data["deviceRestrictions"] = this.deviceRestrictions ? this.deviceRestrictions.toJSON() : undefined;
|
|
33663
|
+
if (Array.isArray(this.deviceGroupRestrictions)) {
|
|
33664
|
+
data["deviceGroupRestrictions"] = [];
|
|
33665
|
+
for (let item of this.deviceGroupRestrictions)
|
|
33666
|
+
data["deviceGroupRestrictions"].push(item.toJSON());
|
|
33667
|
+
}
|
|
33668
|
+
return data;
|
|
33669
|
+
}
|
|
33670
|
+
clone() {
|
|
33671
|
+
const json = this.toJSON();
|
|
33672
|
+
let result = new AccessProfileTimeAndDeviceRestrictionsDto();
|
|
33673
|
+
result.init(json);
|
|
33674
|
+
return result;
|
|
33675
|
+
}
|
|
33676
|
+
}
|
|
33677
|
+
class AccessProfileTimeRestrictionsDto {
|
|
33678
|
+
constructor(data) {
|
|
33679
|
+
if (data) {
|
|
33680
|
+
for (var property in data) {
|
|
33681
|
+
if (data.hasOwnProperty(property))
|
|
33682
|
+
this[property] = data[property];
|
|
33683
|
+
}
|
|
33684
|
+
}
|
|
33685
|
+
}
|
|
33686
|
+
init(_data) {
|
|
33687
|
+
if (_data) {
|
|
33688
|
+
if (Array.isArray(_data["weekDays"])) {
|
|
33689
|
+
this.weekDays = [];
|
|
33690
|
+
for (let item of _data["weekDays"])
|
|
33691
|
+
this.weekDays.push(AccessProfileDayRestrictionsDto.fromJS(item));
|
|
33692
|
+
}
|
|
33693
|
+
if (Array.isArray(_data["specialDays"])) {
|
|
33694
|
+
this.specialDays = [];
|
|
33695
|
+
for (let item of _data["specialDays"])
|
|
33696
|
+
this.specialDays.push(AccessProfileDayRestrictionsDto.fromJS(item));
|
|
33697
|
+
}
|
|
33698
|
+
}
|
|
33699
|
+
}
|
|
33700
|
+
static fromJS(data) {
|
|
33701
|
+
data = typeof data === 'object' ? data : {};
|
|
33702
|
+
let result = new AccessProfileTimeRestrictionsDto();
|
|
33703
|
+
result.init(data);
|
|
33704
|
+
return result;
|
|
33705
|
+
}
|
|
33706
|
+
toJSON(data) {
|
|
33707
|
+
data = typeof data === 'object' ? data : {};
|
|
33708
|
+
if (Array.isArray(this.weekDays)) {
|
|
33709
|
+
data["weekDays"] = [];
|
|
33710
|
+
for (let item of this.weekDays)
|
|
33711
|
+
data["weekDays"].push(item.toJSON());
|
|
33712
|
+
}
|
|
33713
|
+
if (Array.isArray(this.specialDays)) {
|
|
33714
|
+
data["specialDays"] = [];
|
|
33715
|
+
for (let item of this.specialDays)
|
|
33716
|
+
data["specialDays"].push(item.toJSON());
|
|
33717
|
+
}
|
|
33718
|
+
return data;
|
|
33719
|
+
}
|
|
33720
|
+
clone() {
|
|
33721
|
+
const json = this.toJSON();
|
|
33722
|
+
let result = new AccessProfileTimeRestrictionsDto();
|
|
33723
|
+
result.init(json);
|
|
33724
|
+
return result;
|
|
33725
|
+
}
|
|
33726
|
+
}
|
|
33727
|
+
var AccessProfileTypes;
|
|
33728
|
+
(function (AccessProfileTypes) {
|
|
33729
|
+
AccessProfileTypes[AccessProfileTypes["Standard"] = 1] = "Standard";
|
|
33730
|
+
AccessProfileTypes[AccessProfileTypes["MonthlyToTransient"] = 2] = "MonthlyToTransient";
|
|
33731
|
+
AccessProfileTypes[AccessProfileTypes["ElectronicWallet"] = 3] = "ElectronicWallet";
|
|
33732
|
+
AccessProfileTypes[AccessProfileTypes["ElectronicWalletMonthlyToTransient"] = 4] = "ElectronicWalletMonthlyToTransient";
|
|
33733
|
+
AccessProfileTypes[AccessProfileTypes["CompanyElectronicWallet"] = 5] = "CompanyElectronicWallet";
|
|
33734
|
+
AccessProfileTypes[AccessProfileTypes["PrepaidEvent"] = 6] = "PrepaidEvent";
|
|
33735
|
+
})(AccessProfileTypes || (AccessProfileTypes = {}));
|
|
32817
33736
|
class AccountContactDetails {
|
|
32818
33737
|
constructor(data) {
|
|
32819
33738
|
if (data) {
|
|
@@ -39670,6 +40589,7 @@ class DeviceDto {
|
|
|
39670
40589
|
this.laneType = _data["laneType"];
|
|
39671
40590
|
this.zoneID = _data["zoneID"];
|
|
39672
40591
|
this.name = _data["name"];
|
|
40592
|
+
this.description = _data["description"];
|
|
39673
40593
|
this.deviceStatus = _data["deviceStatus"] ? DeviceStatusDto.fromJS(_data["deviceStatus"]) : undefined;
|
|
39674
40594
|
this.zone = _data["zone"] ? ZoneDto.fromJS(_data["zone"]) : undefined;
|
|
39675
40595
|
this.active = _data["active"];
|
|
@@ -39693,6 +40613,7 @@ class DeviceDto {
|
|
|
39693
40613
|
data["laneType"] = this.laneType;
|
|
39694
40614
|
data["zoneID"] = this.zoneID;
|
|
39695
40615
|
data["name"] = this.name;
|
|
40616
|
+
data["description"] = this.description;
|
|
39696
40617
|
data["deviceStatus"] = this.deviceStatus ? this.deviceStatus.toJSON() : undefined;
|
|
39697
40618
|
data["zone"] = this.zone ? this.zone.toJSON() : undefined;
|
|
39698
40619
|
data["active"] = this.active;
|
|
@@ -45477,7 +46398,6 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
45477
46398
|
if (_data) {
|
|
45478
46399
|
this.id = _data["id"];
|
|
45479
46400
|
this.parkId = _data["parkId"];
|
|
45480
|
-
this.email = _data["email"];
|
|
45481
46401
|
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
45482
46402
|
}
|
|
45483
46403
|
}
|
|
@@ -45491,7 +46411,6 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
45491
46411
|
data = typeof data === 'object' ? data : {};
|
|
45492
46412
|
data["id"] = this.id;
|
|
45493
46413
|
data["parkId"] = this.parkId;
|
|
45494
|
-
data["email"] = this.email;
|
|
45495
46414
|
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
45496
46415
|
return data;
|
|
45497
46416
|
}
|
|
@@ -46524,6 +47443,52 @@ class MonthlyProfileDto {
|
|
|
46524
47443
|
return result;
|
|
46525
47444
|
}
|
|
46526
47445
|
}
|
|
47446
|
+
var MonthlyRenewalSettingsActionTypes;
|
|
47447
|
+
(function (MonthlyRenewalSettingsActionTypes) {
|
|
47448
|
+
MonthlyRenewalSettingsActionTypes[MonthlyRenewalSettingsActionTypes["None"] = 0] = "None";
|
|
47449
|
+
MonthlyRenewalSettingsActionTypes[MonthlyRenewalSettingsActionTypes["DaysExtend"] = 1] = "DaysExtend";
|
|
47450
|
+
MonthlyRenewalSettingsActionTypes[MonthlyRenewalSettingsActionTypes["MonthsExtend"] = 2] = "MonthsExtend";
|
|
47451
|
+
MonthlyRenewalSettingsActionTypes[MonthlyRenewalSettingsActionTypes["AddEntryUnits"] = 3] = "AddEntryUnits";
|
|
47452
|
+
MonthlyRenewalSettingsActionTypes[MonthlyRenewalSettingsActionTypes["AddWalletValue"] = 4] = "AddWalletValue";
|
|
47453
|
+
})(MonthlyRenewalSettingsActionTypes || (MonthlyRenewalSettingsActionTypes = {}));
|
|
47454
|
+
class MonthlyRenewalSettingsDto {
|
|
47455
|
+
constructor(data) {
|
|
47456
|
+
if (data) {
|
|
47457
|
+
for (var property in data) {
|
|
47458
|
+
if (data.hasOwnProperty(property))
|
|
47459
|
+
this[property] = data[property];
|
|
47460
|
+
}
|
|
47461
|
+
}
|
|
47462
|
+
}
|
|
47463
|
+
init(_data) {
|
|
47464
|
+
if (_data) {
|
|
47465
|
+
this.actionType = _data["actionType"];
|
|
47466
|
+
this.description = _data["description"];
|
|
47467
|
+
this.price = _data["price"];
|
|
47468
|
+
this.value = _data["value"];
|
|
47469
|
+
}
|
|
47470
|
+
}
|
|
47471
|
+
static fromJS(data) {
|
|
47472
|
+
data = typeof data === 'object' ? data : {};
|
|
47473
|
+
let result = new MonthlyRenewalSettingsDto();
|
|
47474
|
+
result.init(data);
|
|
47475
|
+
return result;
|
|
47476
|
+
}
|
|
47477
|
+
toJSON(data) {
|
|
47478
|
+
data = typeof data === 'object' ? data : {};
|
|
47479
|
+
data["actionType"] = this.actionType;
|
|
47480
|
+
data["description"] = this.description;
|
|
47481
|
+
data["price"] = this.price;
|
|
47482
|
+
data["value"] = this.value;
|
|
47483
|
+
return data;
|
|
47484
|
+
}
|
|
47485
|
+
clone() {
|
|
47486
|
+
const json = this.toJSON();
|
|
47487
|
+
let result = new MonthlyRenewalSettingsDto();
|
|
47488
|
+
result.init(json);
|
|
47489
|
+
return result;
|
|
47490
|
+
}
|
|
47491
|
+
}
|
|
46527
47492
|
var MonthlySearchFieldSelector;
|
|
46528
47493
|
(function (MonthlySearchFieldSelector) {
|
|
46529
47494
|
MonthlySearchFieldSelector[MonthlySearchFieldSelector["AllFields"] = 1] = "AllFields";
|
|
@@ -47254,6 +48219,7 @@ var ParkerTicketType;
|
|
|
47254
48219
|
ParkerTicketType[ParkerTicketType["Audit"] = 13] = "Audit";
|
|
47255
48220
|
ParkerTicketType[ParkerTicketType["Account"] = 14] = "Account";
|
|
47256
48221
|
ParkerTicketType[ParkerTicketType["SubAccount"] = 15] = "SubAccount";
|
|
48222
|
+
ParkerTicketType[ParkerTicketType["AccessProfileMonthlyAndGuest"] = 16] = "AccessProfileMonthlyAndGuest";
|
|
47257
48223
|
})(ParkerTicketType || (ParkerTicketType = {}));
|
|
47258
48224
|
var PasswordExpirationState;
|
|
47259
48225
|
(function (PasswordExpirationState) {
|
|
@@ -48217,6 +49183,7 @@ var PermissionType;
|
|
|
48217
49183
|
PermissionType[PermissionType["ClosePaymentScreen"] = 97] = "ClosePaymentScreen";
|
|
48218
49184
|
PermissionType[PermissionType["ECommerceAdmin"] = 98] = "ECommerceAdmin";
|
|
48219
49185
|
PermissionType[PermissionType["ECommerceRegular"] = 99] = "ECommerceRegular";
|
|
49186
|
+
PermissionType[PermissionType["LotConfigurationAccessProfile"] = 100] = "LotConfigurationAccessProfile";
|
|
48220
49187
|
})(PermissionType || (PermissionType = {}));
|
|
48221
49188
|
class PermittedCompaniesFilterDto {
|
|
48222
49189
|
constructor(data) {
|
|
@@ -48486,6 +49453,46 @@ class RTEventSubscriptionDto {
|
|
|
48486
49453
|
return result;
|
|
48487
49454
|
}
|
|
48488
49455
|
}
|
|
49456
|
+
class RateByZoneDto {
|
|
49457
|
+
constructor(data) {
|
|
49458
|
+
if (data) {
|
|
49459
|
+
for (var property in data) {
|
|
49460
|
+
if (data.hasOwnProperty(property))
|
|
49461
|
+
this[property] = data[property];
|
|
49462
|
+
}
|
|
49463
|
+
}
|
|
49464
|
+
}
|
|
49465
|
+
init(_data) {
|
|
49466
|
+
if (_data) {
|
|
49467
|
+
this.zoneId = _data["zoneId"];
|
|
49468
|
+
this.zoneName = _data["zoneName"];
|
|
49469
|
+
this.zoneNumber = _data["zoneNumber"];
|
|
49470
|
+
this.rateNumber = _data["rateNumber"];
|
|
49471
|
+
this.rateName = _data["rateName"];
|
|
49472
|
+
}
|
|
49473
|
+
}
|
|
49474
|
+
static fromJS(data) {
|
|
49475
|
+
data = typeof data === 'object' ? data : {};
|
|
49476
|
+
let result = new RateByZoneDto();
|
|
49477
|
+
result.init(data);
|
|
49478
|
+
return result;
|
|
49479
|
+
}
|
|
49480
|
+
toJSON(data) {
|
|
49481
|
+
data = typeof data === 'object' ? data : {};
|
|
49482
|
+
data["zoneId"] = this.zoneId;
|
|
49483
|
+
data["zoneName"] = this.zoneName;
|
|
49484
|
+
data["zoneNumber"] = this.zoneNumber;
|
|
49485
|
+
data["rateNumber"] = this.rateNumber;
|
|
49486
|
+
data["rateName"] = this.rateName;
|
|
49487
|
+
return data;
|
|
49488
|
+
}
|
|
49489
|
+
clone() {
|
|
49490
|
+
const json = this.toJSON();
|
|
49491
|
+
let result = new RateByZoneDto();
|
|
49492
|
+
result.init(json);
|
|
49493
|
+
return result;
|
|
49494
|
+
}
|
|
49495
|
+
}
|
|
48489
49496
|
class RateCalculatorDto {
|
|
48490
49497
|
constructor(data) {
|
|
48491
49498
|
if (data) {
|
|
@@ -51645,6 +52652,7 @@ var SpecialCouponRates;
|
|
|
51645
52652
|
(function (SpecialCouponRates) {
|
|
51646
52653
|
SpecialCouponRates[SpecialCouponRates["SystemCalculatedPrice"] = 0] = "SystemCalculatedPrice";
|
|
51647
52654
|
SpecialCouponRates[SpecialCouponRates["MaxPayment"] = -4] = "MaxPayment";
|
|
52655
|
+
SpecialCouponRates[SpecialCouponRates["ByMonthlySettings"] = -3] = "ByMonthlySettings";
|
|
51648
52656
|
SpecialCouponRates[SpecialCouponRates["ReducePriceByPercentage"] = -2] = "ReducePriceByPercentage";
|
|
51649
52657
|
SpecialCouponRates[SpecialCouponRates["FixedPrice"] = -1] = "FixedPrice";
|
|
51650
52658
|
})(SpecialCouponRates || (SpecialCouponRates = {}));
|
|
@@ -53492,6 +54500,7 @@ var SubModule;
|
|
|
53492
54500
|
SubModule[SubModule["Scheduler"] = 14] = "Scheduler";
|
|
53493
54501
|
SubModule[SubModule["ValidationProfiles"] = 15] = "ValidationProfiles";
|
|
53494
54502
|
SubModule[SubModule["HotelGuestsIO"] = 16] = "HotelGuestsIO";
|
|
54503
|
+
SubModule[SubModule["AccessProfiles"] = 17] = "AccessProfiles";
|
|
53495
54504
|
})(SubModule || (SubModule = {}));
|
|
53496
54505
|
class SwallowJammedTicketRemoteCommandData extends RemoteCommandBase {
|
|
53497
54506
|
constructor(data) {
|
|
@@ -53714,6 +54723,40 @@ var TimeInLotType;
|
|
|
53714
54723
|
TimeInLotType[TimeInLotType["UpTo"] = 0] = "UpTo";
|
|
53715
54724
|
TimeInLotType[TimeInLotType["MoreThen"] = 1] = "MoreThen";
|
|
53716
54725
|
})(TimeInLotType || (TimeInLotType = {}));
|
|
54726
|
+
class TimeRangeDto {
|
|
54727
|
+
constructor(data) {
|
|
54728
|
+
if (data) {
|
|
54729
|
+
for (var property in data) {
|
|
54730
|
+
if (data.hasOwnProperty(property))
|
|
54731
|
+
this[property] = data[property];
|
|
54732
|
+
}
|
|
54733
|
+
}
|
|
54734
|
+
}
|
|
54735
|
+
init(_data) {
|
|
54736
|
+
if (_data) {
|
|
54737
|
+
this.fromHour = _data["fromHour"];
|
|
54738
|
+
this.toHour = _data["toHour"];
|
|
54739
|
+
}
|
|
54740
|
+
}
|
|
54741
|
+
static fromJS(data) {
|
|
54742
|
+
data = typeof data === 'object' ? data : {};
|
|
54743
|
+
let result = new TimeRangeDto();
|
|
54744
|
+
result.init(data);
|
|
54745
|
+
return result;
|
|
54746
|
+
}
|
|
54747
|
+
toJSON(data) {
|
|
54748
|
+
data = typeof data === 'object' ? data : {};
|
|
54749
|
+
data["fromHour"] = this.fromHour;
|
|
54750
|
+
data["toHour"] = this.toHour;
|
|
54751
|
+
return data;
|
|
54752
|
+
}
|
|
54753
|
+
clone() {
|
|
54754
|
+
const json = this.toJSON();
|
|
54755
|
+
let result = new TimeRangeDto();
|
|
54756
|
+
result.init(json);
|
|
54757
|
+
return result;
|
|
54758
|
+
}
|
|
54759
|
+
}
|
|
53717
54760
|
class TransientECommerceDetailsDto {
|
|
53718
54761
|
constructor(data) {
|
|
53719
54762
|
if (data) {
|
|
@@ -58594,8 +59637,27 @@ function blobToText(blob) {
|
|
|
58594
59637
|
var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
58595
59638
|
__proto__: null,
|
|
58596
59639
|
API_BASE_URL: API_BASE_URL,
|
|
59640
|
+
get AccessProfileChangeValidTypes () { return AccessProfileChangeValidTypes; },
|
|
59641
|
+
AccessProfileDayRestrictionsDto: AccessProfileDayRestrictionsDto,
|
|
59642
|
+
get AccessProfileDayTypes () { return AccessProfileDayTypes; },
|
|
59643
|
+
AccessProfileDetailsDto: AccessProfileDetailsDto,
|
|
59644
|
+
AccessProfileDeviceGroupRestrictionsDto: AccessProfileDeviceGroupRestrictionsDto,
|
|
59645
|
+
AccessProfileDeviceRestrictionsDto: AccessProfileDeviceRestrictionsDto,
|
|
58597
59646
|
get AccessProfileModeType () { return AccessProfileModeType; },
|
|
59647
|
+
AccessProfileMonthlyAndGuestDto: AccessProfileMonthlyAndGuestDto,
|
|
59648
|
+
AccessProfileMonthlyAndGuestDtoEntityWrapperDto: AccessProfileMonthlyAndGuestDtoEntityWrapperDto,
|
|
59649
|
+
AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData: AccessProfileMonthlyAndGuestDtoEntityWrapperDtoHttpResponseData,
|
|
59650
|
+
AccessProfileMonthlyAndGuestSectionsDto: AccessProfileMonthlyAndGuestSectionsDto,
|
|
59651
|
+
AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData: AccessProfileMonthlyAndGuestSectionsDtoHttpResponseData,
|
|
59652
|
+
AccessProfileMonthlyRenewalSettingsDto: AccessProfileMonthlyRenewalSettingsDto,
|
|
59653
|
+
AccessProfileParkDeviceRestrictionsDto: AccessProfileParkDeviceRestrictionsDto,
|
|
59654
|
+
get AccessProfilePrintFieldTypes () { return AccessProfilePrintFieldTypes; },
|
|
59655
|
+
get AccessProfileRestrictionTypes () { return AccessProfileRestrictionTypes; },
|
|
58598
59656
|
AccessProfileServiceProxy: AccessProfileServiceProxy,
|
|
59657
|
+
AccessProfileSettingsDto: AccessProfileSettingsDto,
|
|
59658
|
+
AccessProfileTimeAndDeviceRestrictionsDto: AccessProfileTimeAndDeviceRestrictionsDto,
|
|
59659
|
+
AccessProfileTimeRestrictionsDto: AccessProfileTimeRestrictionsDto,
|
|
59660
|
+
get AccessProfileTypes () { return AccessProfileTypes; },
|
|
58599
59661
|
AccountContactDetails: AccountContactDetails,
|
|
58600
59662
|
AccountDefaultDetails: AccountDefaultDetails,
|
|
58601
59663
|
AccountDefaultMonthlyGuestAccessConfigurationDto: AccountDefaultMonthlyGuestAccessConfigurationDto,
|
|
@@ -58944,6 +60006,8 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
58944
60006
|
MonthlyPaymentDetailsDto: MonthlyPaymentDetailsDto,
|
|
58945
60007
|
MonthlyPersonalInfoDto: MonthlyPersonalInfoDto,
|
|
58946
60008
|
MonthlyProfileDto: MonthlyProfileDto,
|
|
60009
|
+
get MonthlyRenewalSettingsActionTypes () { return MonthlyRenewalSettingsActionTypes; },
|
|
60010
|
+
MonthlyRenewalSettingsDto: MonthlyRenewalSettingsDto,
|
|
58947
60011
|
get MonthlySearchFieldSelector () { return MonthlySearchFieldSelector; },
|
|
58948
60012
|
MonthlySectionsDto: MonthlySectionsDto,
|
|
58949
60013
|
MonthlySectionsDtoHttpResponseData: MonthlySectionsDtoHttpResponseData,
|
|
@@ -58997,6 +60061,7 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
58997
60061
|
ProblemDetailsHttpResponseData: ProblemDetailsHttpResponseData,
|
|
58998
60062
|
get ProfileType () { return ProfileType; },
|
|
58999
60063
|
RTEventSubscriptionDto: RTEventSubscriptionDto,
|
|
60064
|
+
RateByZoneDto: RateByZoneDto,
|
|
59000
60065
|
RateCalculatorDto: RateCalculatorDto,
|
|
59001
60066
|
RateCalculatorDtoHttpResponseData: RateCalculatorDtoHttpResponseData,
|
|
59002
60067
|
RateConditionDto: RateConditionDto,
|
|
@@ -59141,6 +60206,7 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
59141
60206
|
TfaSetupDto: TfaSetupDto,
|
|
59142
60207
|
TicketMatchingCurrentRecognitionDto: TicketMatchingCurrentRecognitionDto,
|
|
59143
60208
|
get TimeInLotType () { return TimeInLotType; },
|
|
60209
|
+
TimeRangeDto: TimeRangeDto,
|
|
59144
60210
|
TransientECommerceDetailsDto: TransientECommerceDetailsDto,
|
|
59145
60211
|
TransientExternalCredentialDetailsDto: TransientExternalCredentialDetailsDto,
|
|
59146
60212
|
TransientGuestDetailsDto: TransientGuestDetailsDto,
|
|
@@ -60430,6 +61496,7 @@ var Localization;
|
|
|
60430
61496
|
Localization["mobile"] = "mobile";
|
|
60431
61497
|
Localization["standard"] = "standard";
|
|
60432
61498
|
Localization["access_profile"] = "access_profile";
|
|
61499
|
+
Localization["access_profiles"] = "access_profiles";
|
|
60433
61500
|
Localization["profile_type"] = "profile_type";
|
|
60434
61501
|
Localization["anti_pass_back"] = "anti_pass_back";
|
|
60435
61502
|
Localization["loop_check"] = "loop_check";
|
|
@@ -62288,6 +63355,45 @@ var Localization;
|
|
|
62288
63355
|
Localization["entity_success_to_used"] = "entity_success_to_used";
|
|
62289
63356
|
Localization["mobile_scan_message_title"] = "mobile_scan_message_title";
|
|
62290
63357
|
Localization["permission_close_payment_screen"] = "permission_close_payment_screen";
|
|
63358
|
+
Localization["search_access_profile"] = "search_access_profile";
|
|
63359
|
+
Localization["profile_type_plural"] = "profile_type_plural";
|
|
63360
|
+
Localization["access_profile_standard"] = "access_profile_standard";
|
|
63361
|
+
Localization["access_profile_monthly_to_transient"] = "access_profile_monthly_to_transient";
|
|
63362
|
+
Localization["access_profile_electronic_wallet"] = "access_profile_electronic_wallet";
|
|
63363
|
+
Localization["access_profile_electronic_wallet_monthly_to_transient"] = "access_profile_electronic_wallet_monthly_to_transient";
|
|
63364
|
+
Localization["access_profile_company_electronic_wallet"] = "access_profile_company_electronic_wallet";
|
|
63365
|
+
Localization["access_profile_prepaid_event"] = "access_profile_prepaid_event";
|
|
63366
|
+
Localization["monthly_renewal_settings"] = "monthly_renewal_settings";
|
|
63367
|
+
Localization["restrictions_type"] = "restrictions_type";
|
|
63368
|
+
Localization["no_restrictions"] = "no_restrictions";
|
|
63369
|
+
Localization["basic_restrictions"] = "basic_restrictions";
|
|
63370
|
+
Localization["advanced_restrictions"] = "advanced_restrictions";
|
|
63371
|
+
Localization["profile_details"] = "profile_details";
|
|
63372
|
+
Localization["access_profile_name"] = "access_profile_name";
|
|
63373
|
+
Localization["profile_settings"] = "profile_settings";
|
|
63374
|
+
Localization["general"] = "general";
|
|
63375
|
+
Localization["restrict_lpr_identification_access"] = "restrict_lpr_identification_access";
|
|
63376
|
+
Localization["ticket_rate_change"] = "ticket_rate_change";
|
|
63377
|
+
Localization["time_between_ticket_rate_change"] = "time_between_ticket_rate_change";
|
|
63378
|
+
Localization["min"] = "min";
|
|
63379
|
+
Localization["rate_by_zone"] = "rate_by_zone";
|
|
63380
|
+
Localization["renewal_settings"] = "renewal_settings";
|
|
63381
|
+
Localization["enable_monthly_renewal"] = "enable_monthly_renewal";
|
|
63382
|
+
Localization["renewal_option_i"] = "renewal_option_i";
|
|
63383
|
+
Localization["days_extend"] = "days_extend";
|
|
63384
|
+
Localization["months_extend"] = "months_extend";
|
|
63385
|
+
Localization["add_entry_units"] = "add_entry_units";
|
|
63386
|
+
Localization["add_wallet_value"] = "add_wallet_value";
|
|
63387
|
+
Localization["time_and_device_restrictions"] = "time_and_device_restrictions";
|
|
63388
|
+
Localization["restriction_type"] = "restriction_type";
|
|
63389
|
+
Localization["validate_time"] = "validate_time";
|
|
63390
|
+
Localization["violation_rate_charge"] = "violation_rate_charge";
|
|
63391
|
+
Localization["time_restrictions"] = "time_restrictions";
|
|
63392
|
+
Localization["device_restrictions"] = "device_restrictions";
|
|
63393
|
+
Localization["on_entries"] = "on_entries";
|
|
63394
|
+
Localization["on_exits"] = "on_exits";
|
|
63395
|
+
Localization["restricted_devices"] = "restricted_devices";
|
|
63396
|
+
Localization["devices_defined_time_range"] = "devices_defined_time_range";
|
|
62291
63397
|
})(Localization || (Localization = {}));
|
|
62292
63398
|
|
|
62293
63399
|
const DISABLED_FOCUS_ELEMENT_TYPES = [
|
|
@@ -62479,6 +63585,12 @@ var TimeElapsedFormats;
|
|
|
62479
63585
|
TimeElapsedFormats["hhmm"] = "hh:mm";
|
|
62480
63586
|
})(TimeElapsedFormats || (TimeElapsedFormats = {}));
|
|
62481
63587
|
|
|
63588
|
+
var TimeRangeFormats;
|
|
63589
|
+
(function (TimeRangeFormats) {
|
|
63590
|
+
TimeRangeFormats[TimeRangeFormats["H12"] = 1] = "H12";
|
|
63591
|
+
TimeRangeFormats[TimeRangeFormats["H24"] = 2] = "H24";
|
|
63592
|
+
})(TimeRangeFormats || (TimeRangeFormats = {}));
|
|
63593
|
+
|
|
62482
63594
|
var TooltipPositions;
|
|
62483
63595
|
(function (TooltipPositions) {
|
|
62484
63596
|
TooltipPositions["above"] = "above";
|
|
@@ -63368,7 +64480,7 @@ const MainModuleToSubModulesPermissionTypeMap = {
|
|
|
63368
64480
|
PermissionType.ValidationCouponView, PermissionType.ValidationCouponCreate, PermissionType.ValidationCouponUpdate, PermissionType.ValidationCouponDelete
|
|
63369
64481
|
],
|
|
63370
64482
|
[PermissionType.ReportsMain]: [],
|
|
63371
|
-
[PermissionType.LotConfigurationMain]: [PermissionType.LotConfigurationRates, PermissionType.LotConfigurationScheduler, PermissionType.LotConfigurationValidationProfile],
|
|
64483
|
+
[PermissionType.LotConfigurationMain]: [PermissionType.LotConfigurationRates, PermissionType.LotConfigurationScheduler, PermissionType.LotConfigurationValidationProfile, PermissionType.LotConfigurationAccessProfile],
|
|
63372
64484
|
[PermissionType.TenantSettingsMain]: [PermissionType.ManagementAdmin],
|
|
63373
64485
|
[PermissionType.ECommerceBackofficeMain]: [PermissionType.ECommerceAdmin, PermissionType.ECommerceRegular]
|
|
63374
64486
|
};
|
|
@@ -64123,6 +65235,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
64123
65235
|
args: [{ name: 'timeElapsed', pure: true }]
|
|
64124
65236
|
}] });
|
|
64125
65237
|
|
|
65238
|
+
class TimeRangePipe {
|
|
65239
|
+
constructor(translateService) {
|
|
65240
|
+
this.translateService = translateService;
|
|
65241
|
+
}
|
|
65242
|
+
transform(timeRange, format = TimeRangeFormats.H24) {
|
|
65243
|
+
if (!timeRange) {
|
|
65244
|
+
return '-';
|
|
65245
|
+
}
|
|
65246
|
+
return `${this.convertMinutesToTime(timeRange.fromHour, format)} - ${this.convertMinutesToTime(timeRange.toHour, format)}`;
|
|
65247
|
+
}
|
|
65248
|
+
convertMinutesToTime(totalMinutes, format) {
|
|
65249
|
+
totalMinutes %= 1440;
|
|
65250
|
+
const minutes = totalMinutes % 60;
|
|
65251
|
+
const hours = (totalMinutes - minutes) / 60;
|
|
65252
|
+
if (hours > 23) {
|
|
65253
|
+
return 'N/A';
|
|
65254
|
+
}
|
|
65255
|
+
switch (format) {
|
|
65256
|
+
case TimeRangeFormats.H12:
|
|
65257
|
+
const meridiem = this.translateService.instant(hours < 12 ? Localization.time_period_am : Localization.time_period_pm);
|
|
65258
|
+
return `${(hours > 12 ? hours % 12 : hours).toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')} ${meridiem}`;
|
|
65259
|
+
case TimeRangeFormats.H24:
|
|
65260
|
+
default:
|
|
65261
|
+
return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`;
|
|
65262
|
+
}
|
|
65263
|
+
}
|
|
65264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeRangePipe, deps: [{ token: i1$3.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
65265
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TimeRangePipe, name: "timeRange" }); }
|
|
65266
|
+
}
|
|
65267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeRangePipe, decorators: [{
|
|
65268
|
+
type: Pipe,
|
|
65269
|
+
args: [{ name: 'timeRange', pure: true }]
|
|
65270
|
+
}], ctorParameters: function () { return [{ type: i1$3.TranslateService }]; } });
|
|
65271
|
+
|
|
64126
65272
|
class LocalizationService {
|
|
64127
65273
|
constructor() {
|
|
64128
65274
|
this.resourceLoaded = new Subject();
|
|
@@ -64263,6 +65409,7 @@ class SharedPipesModule {
|
|
|
64263
65409
|
StringItPipe,
|
|
64264
65410
|
TimeAgoPipe,
|
|
64265
65411
|
TimeElapsedPipe,
|
|
65412
|
+
TimeRangePipe,
|
|
64266
65413
|
TranslateLocalPipe,
|
|
64267
65414
|
TreeFilterKeysPipe,
|
|
64268
65415
|
WrapFnPipe,
|
|
@@ -64281,6 +65428,7 @@ class SharedPipesModule {
|
|
|
64281
65428
|
StringItPipe,
|
|
64282
65429
|
TimeAgoPipe,
|
|
64283
65430
|
TimeElapsedPipe,
|
|
65431
|
+
TimeRangePipe,
|
|
64284
65432
|
TranslateLocalPipe,
|
|
64285
65433
|
TreeFilterKeysPipe,
|
|
64286
65434
|
WrapFnPipe,
|
|
@@ -64306,6 +65454,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
64306
65454
|
StringItPipe,
|
|
64307
65455
|
TimeAgoPipe,
|
|
64308
65456
|
TimeElapsedPipe,
|
|
65457
|
+
TimeRangePipe,
|
|
64309
65458
|
TranslateLocalPipe,
|
|
64310
65459
|
TreeFilterKeysPipe,
|
|
64311
65460
|
WrapFnPipe,
|
|
@@ -64328,6 +65477,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
64328
65477
|
StringItPipe,
|
|
64329
65478
|
TimeAgoPipe,
|
|
64330
65479
|
TimeElapsedPipe,
|
|
65480
|
+
TimeRangePipe,
|
|
64331
65481
|
TranslateLocalPipe,
|
|
64332
65482
|
TreeFilterKeysPipe,
|
|
64333
65483
|
WrapFnPipe,
|
|
@@ -64923,5 +66073,5 @@ function slideUpDown() {
|
|
|
64923
66073
|
* Generated bundle index. Do not edit.
|
|
64924
66074
|
*/
|
|
64925
66075
|
|
|
64926
|
-
export { ALERT_NOTIFICATION_CONTAINER, ALLOWED_FILES_FORMATS, ALLOWED_FILES_MAX_SIZE_MB, ALLOWED_NUMBER_OF_DAYS, ALLOWED_UPLOAD_FILES_QUANTITY, ActionStatusService, AppModuleToMainPermissionTypeMap, AppSectionLabel, AppSectionModuleMenu, AppSectionRoute, AuditActionTypeText, AutofocusDirective, BOM_UNICODE, BaseComponent, CLogItPipe, COLORS, CREDIT_CARD_POSTFIX_LENGTH, CentToCoinPipe, cloudServiceProxies as Cloud, ContainerRefDirective, CurlyToBoldPipe, DATA_IMAGE_BASE64_PREFIX, DATA_IMAGE_BASE64_SVG_PREFIX, DEFAULT_MINUMIM_LENGTH, DEFAULT_SMART_PARK_DATE_TIME, DEVICE_EVENT_OPTIONS_KEY, DEVICE_NAVIGATE_KEY, DISABLED_FOCUS_ELEMENT_CLASSES, DISABLED_FOCUS_ELEMENT_TYPES, DataQaAttribute, DecimalToAmountPipe, DecimalToCurrencyPipe, DialogMode, DurationMessageBar, ENGLISH_LANGUAGE, ENVIRONMENT, EXPIRATION_MONTH_OPTIONS, edgeServiceProxies as Edge, EllipsisMultilineDirective, EnumsToArrayPipe, EnvironmentModeText, FieldLabelComponent, FieldValidationsComponent, FilterKeysPipe, FilterNumbersPipe, FilterPipe, FormValidationsComponent, GenerateSearchParamsDto, GetAllLocalizationsAction, HasActionErrored, HttpCancelBlackListUrls, INPUT_SEARCH_DEBOUNCE_TIME, INPUT_SEARCH_DEBOUNCE_TIME_LOW, INPUT_SEARCH_DEBOUNCE_TIME_MEDIUM, IconsHelper, IconsHelperText, InternetConnectionStatus, IsActionExecuting, IsEllipsisDirective, LOCAL_ENGLISH_LANGUAGE, LOGGED_TENANT_KEY, LanguageTypeKeys, LocalStorageMigrator, Localization, LocalizationModule, LocalizationService, LocalizationState, MAX_ALLOWED_BADGE_VALUE, MAX_ALLOWED_CURRENT_BALANCE, MAX_CARDS, MAX_CAR_PLATES, MAX_EXPORT_RECORDS, MAX_HOTEL_ROOM_NUMBER_LENGTH, MAX_INT16_VALUE, MAX_INTEGER_VALUE, MAX_LENGTH_DESCRIPTION, MAX_LENGTH_NAME, MAX_LENGTH_SERACH_TERM, MAX_MOBILE_LENGTH, MAX_PLATE_ID_LENGTH, MAX_PRICE_NO_TIME_LIMIT_VALUE, MAX_PRICE_PERIOD_VALUE, MAX_REPEAT_COUNT_VALUE, MAX_RESULTS, MAX_ROLE_NAME_LENGTH, MC_READER_ID, MINIMUM_LENGTH_OPTIONS, MINUTES_PER_HOUR, MOBILE_REFRESH_INFO, MULTIPLE, MainModuleToSubModulesPermissionTypeMap, MiddayPeriod, MobileAppSectionLabel, MslEventType, NONE_USER_ID, NO_RESULT, NativeElementInjectorDirective, ONE_DAY_IN_MINUTES_VALUE, ONE_SECOND_IN_MILLISECONDS, OffScreenDirective, Operator, OrderBy, OrderByPipe, OrderDirection, PARKER_SEARCH_AUTO_REDIRECT, PASSWORD_EXPIRED, PERIOD_TIME, PREVENT_CLICK_ELEMENT_CLASSES, REDIRECT_URL, RESET_PASSWORD_EMAIL, RowOperation, SESSION, STATUS_CODE_SERVER_VALIDATION, STRING_ZERO, SUPER_PARK_ROUTE_KEY, SUPPORTED_DEVICES_SCHEDULER, SYSTEM_ALERT_VALUE, ServiceProxyModule, SharedComponentsModule, SharedDirectivesModule, SharedModule, SharedPipesModule, SortPipe, SpinnerDiameterSize, StopPropagationDirective, StringItPipe, TBFormatPipe, TBNumberDirective, TENANT_KEY, TENS_MULTIPLIER, TibaValidators, TimeAgoPipe, TimeElapsedFormats, TimeElapsedPipe, TooltipPositions, TrackAction, TranslateLocalPipe, TreeFilterKeysPipe, TreeMode, UNSAVED_DATA, USER_IS_TEMPORARY_BLOCKED, VALID_TIME_MAX_LENGTH, VERSION_10_1_0, VERSION_10_2_0, VERSION_10_2_1, VERSION_10_3_0, VERSION_7_4_0, VERSION_7_4_1, VERSION_8_1_0, VERSION_8_2_0, VERSION_8_3_0, VERSION_8_4_0, VERSION_9_1_0, VERSION_9_2_0, VERSION_9_2_2, VERSION_9_3_0, VERSION_9_4_0, VarDirective, WrapFnPipe, ZerofyNegativePipe, accountModuleAnimation, adjustForTimezone, allowSpecialKeys, alphanumericRegex, appModuleAnimation, areDatesIdentical, areVersionsCompatible, arrayEquals, baseReduce, camelize, canceled, convertBinaryToDecimal, convertCentToWholeCoin, convertDecimalToBinary, convertFeaturePermissionsToDictionary, convertFormatWithoutTime, convertPermissionsToDictionary, convertWholeCoinToCent, createDescriptor, dateDiffInSeconds, decimalPositiveRegex, decimalRegex, delayCancellation, diffInMillis, dispatched, distinctObjectByProperties, distinctObjectByProperty, ensureObjectMetadata, errored, extractErrorsChanges, extractNumber, extractResetChanges, extractSetValueChanges, extractToggleStatusChanges, extractTouchedChanges, extractUpdateValueAndValidityChanges, filterKeyValueBaseReduce, findParentElement, findParentElementDimensions, flattenByKey, formatMinutesToTimeNumber, formatTimeToMinutes, formatTimeWithMidnight, formatTimeWithSeparator, formatTimeWithoutMidnight, formatTimeWithoutSeparator, formatTimeWithoutSeperatorAndWithMidnight, formatTimeWithoutSeperatorAndWithoutMidnight, getAddress, getCurrentLang, getDateTimeInSeconds, getDateWithoutTime, getMomenWithTime, getMomentNullable, getMomentWithoutTime, getObjectMetadata, getUserTimeZone, getUtcMomentNullable, hasValue, humanizeTimeElapsed, humanizeUtcTimeElapsed, identity, integerNumbersRegex, isBoolean, isCharacterLengthValid, isFalsy, isIOSDevice, isMaxDaysRangeValid, isNullOrEmpty, isNumber, isObjectEmpty, isSearchFieldChanged, isSingularOrPlural, isTrueInBinary, isTruthy, isVersionGreaterThanEqual, loadHTMLContent, lowerCase, lowerCaseFirstLetter, markEntitiesAsChanged, markEntityAsUnchanged, minutesToTime, mobileRegex, noEmojiRegex, notificationAnimation, numberWithLeadingZero, ofStatus, omitKeys, openCloseFiltersAnimation, parseApiErrorData, parseApiErrorMessage, parseDateTimeToSparkParkTime, parseSmartParkTime, passwordRegex, percentageRegex, positiveIntegerNumbersGreaterThanZeroRegex, positiveIntegerNumbersIncludeZeroRegex, positiveNumbersGreaterThanZeroRegex, positiveNumbersRegex, printStackTrace, readjustForTimezone, regexExp, replaceAll, searchBarPopupAnimation, setErrorMessage, sleep, slideFromBottom, slideFromRight, slideFromUp, slideUpDown, successful, timeToMinutes, toInt, toNumberMap, toStringMap, wrapConstructor };
|
|
66076
|
+
export { ALERT_NOTIFICATION_CONTAINER, ALLOWED_FILES_FORMATS, ALLOWED_FILES_MAX_SIZE_MB, ALLOWED_NUMBER_OF_DAYS, ALLOWED_UPLOAD_FILES_QUANTITY, ActionStatusService, AppModuleToMainPermissionTypeMap, AppSectionLabel, AppSectionModuleMenu, AppSectionRoute, AuditActionTypeText, AutofocusDirective, BOM_UNICODE, BaseComponent, CLogItPipe, COLORS, CREDIT_CARD_POSTFIX_LENGTH, CentToCoinPipe, cloudServiceProxies as Cloud, ContainerRefDirective, CurlyToBoldPipe, DATA_IMAGE_BASE64_PREFIX, DATA_IMAGE_BASE64_SVG_PREFIX, DEFAULT_MINUMIM_LENGTH, DEFAULT_SMART_PARK_DATE_TIME, DEVICE_EVENT_OPTIONS_KEY, DEVICE_NAVIGATE_KEY, DISABLED_FOCUS_ELEMENT_CLASSES, DISABLED_FOCUS_ELEMENT_TYPES, DataQaAttribute, DecimalToAmountPipe, DecimalToCurrencyPipe, DialogMode, DurationMessageBar, ENGLISH_LANGUAGE, ENVIRONMENT, EXPIRATION_MONTH_OPTIONS, edgeServiceProxies as Edge, EllipsisMultilineDirective, EnumsToArrayPipe, EnvironmentModeText, FieldLabelComponent, FieldValidationsComponent, FilterKeysPipe, FilterNumbersPipe, FilterPipe, FormValidationsComponent, GenerateSearchParamsDto, GetAllLocalizationsAction, HasActionErrored, HttpCancelBlackListUrls, INPUT_SEARCH_DEBOUNCE_TIME, INPUT_SEARCH_DEBOUNCE_TIME_LOW, INPUT_SEARCH_DEBOUNCE_TIME_MEDIUM, IconsHelper, IconsHelperText, InternetConnectionStatus, IsActionExecuting, IsEllipsisDirective, LOCAL_ENGLISH_LANGUAGE, LOGGED_TENANT_KEY, LanguageTypeKeys, LocalStorageMigrator, Localization, LocalizationModule, LocalizationService, LocalizationState, MAX_ALLOWED_BADGE_VALUE, MAX_ALLOWED_CURRENT_BALANCE, MAX_CARDS, MAX_CAR_PLATES, MAX_EXPORT_RECORDS, MAX_HOTEL_ROOM_NUMBER_LENGTH, MAX_INT16_VALUE, MAX_INTEGER_VALUE, MAX_LENGTH_DESCRIPTION, MAX_LENGTH_NAME, MAX_LENGTH_SERACH_TERM, MAX_MOBILE_LENGTH, MAX_PLATE_ID_LENGTH, MAX_PRICE_NO_TIME_LIMIT_VALUE, MAX_PRICE_PERIOD_VALUE, MAX_REPEAT_COUNT_VALUE, MAX_RESULTS, MAX_ROLE_NAME_LENGTH, MC_READER_ID, MINIMUM_LENGTH_OPTIONS, MINUTES_PER_HOUR, MOBILE_REFRESH_INFO, MULTIPLE, MainModuleToSubModulesPermissionTypeMap, MiddayPeriod, MobileAppSectionLabel, MslEventType, NONE_USER_ID, NO_RESULT, NativeElementInjectorDirective, ONE_DAY_IN_MINUTES_VALUE, ONE_SECOND_IN_MILLISECONDS, OffScreenDirective, Operator, OrderBy, OrderByPipe, OrderDirection, PARKER_SEARCH_AUTO_REDIRECT, PASSWORD_EXPIRED, PERIOD_TIME, PREVENT_CLICK_ELEMENT_CLASSES, REDIRECT_URL, RESET_PASSWORD_EMAIL, RowOperation, SESSION, STATUS_CODE_SERVER_VALIDATION, STRING_ZERO, SUPER_PARK_ROUTE_KEY, SUPPORTED_DEVICES_SCHEDULER, SYSTEM_ALERT_VALUE, ServiceProxyModule, SharedComponentsModule, SharedDirectivesModule, SharedModule, SharedPipesModule, SortPipe, SpinnerDiameterSize, StopPropagationDirective, StringItPipe, TBFormatPipe, TBNumberDirective, TENANT_KEY, TENS_MULTIPLIER, TibaValidators, TimeAgoPipe, TimeElapsedFormats, TimeElapsedPipe, TimeRangeFormats, TimeRangePipe, TooltipPositions, TrackAction, TranslateLocalPipe, TreeFilterKeysPipe, TreeMode, UNSAVED_DATA, USER_IS_TEMPORARY_BLOCKED, VALID_TIME_MAX_LENGTH, VERSION_10_1_0, VERSION_10_2_0, VERSION_10_2_1, VERSION_10_3_0, VERSION_7_4_0, VERSION_7_4_1, VERSION_8_1_0, VERSION_8_2_0, VERSION_8_3_0, VERSION_8_4_0, VERSION_9_1_0, VERSION_9_2_0, VERSION_9_2_2, VERSION_9_3_0, VERSION_9_4_0, VarDirective, WrapFnPipe, ZerofyNegativePipe, accountModuleAnimation, adjustForTimezone, allowSpecialKeys, alphanumericRegex, appModuleAnimation, areDatesIdentical, areVersionsCompatible, arrayEquals, arraysAreDifferent, baseReduce, camelize, canceled, convertBinaryToDecimal, convertCentToWholeCoin, convertDecimalToBinary, convertFeaturePermissionsToDictionary, convertFormatWithoutTime, convertPermissionsToDictionary, convertWholeCoinToCent, createDescriptor, dateDiffInSeconds, decimalPositiveRegex, decimalRegex, delayCancellation, diffInMillis, dispatched, distinctObjectByProperties, distinctObjectByProperty, ensureObjectMetadata, errored, extractErrorsChanges, extractNumber, extractResetChanges, extractSetValueChanges, extractToggleStatusChanges, extractTouchedChanges, extractUpdateValueAndValidityChanges, filterKeyValueBaseReduce, findParentElement, findParentElementDimensions, flattenByKey, formatMinutesToTimeNumber, formatTimeToMinutes, formatTimeWithMidnight, formatTimeWithSeparator, formatTimeWithoutMidnight, formatTimeWithoutSeparator, formatTimeWithoutSeperatorAndWithMidnight, formatTimeWithoutSeperatorAndWithoutMidnight, getAddress, getCurrentLang, getDateTimeInSeconds, getDateWithoutTime, getMomenWithTime, getMomentNullable, getMomentWithoutTime, getObjectMetadata, getUserTimeZone, getUtcMomentNullable, hasValue, humanizeTimeElapsed, humanizeUtcTimeElapsed, identity, integerNumbersRegex, isBoolean, isCharacterLengthValid, isFalsy, isIOSDevice, isMaxDaysRangeValid, isNullOrEmpty, isNumber, isObjectEmpty, isSearchFieldChanged, isSingularOrPlural, isTrueInBinary, isTruthy, isVersionGreaterThanEqual, loadHTMLContent, lowerCase, lowerCaseFirstLetter, markEntitiesAsChanged, markEntityAsUnchanged, minutesToTime, mobileRegex, noEmojiRegex, notificationAnimation, numberWithLeadingZero, ofStatus, omitKeys, openCloseFiltersAnimation, parseApiErrorData, parseApiErrorMessage, parseDateTimeToSparkParkTime, parseSmartParkTime, passwordRegex, percentageRegex, positiveIntegerNumbersGreaterThanZeroRegex, positiveIntegerNumbersIncludeZeroRegex, positiveNumbersGreaterThanZeroRegex, positiveNumbersRegex, printStackTrace, readjustForTimezone, regexExp, replaceAll, searchBarPopupAnimation, setErrorMessage, sleep, slideFromBottom, slideFromRight, slideFromUp, slideUpDown, successful, timeToMinutes, toInt, toNumberMap, toStringMap, wrapConstructor };
|
|
64927
66077
|
//# sourceMappingURL=tiba-spark-client-shared-lib.mjs.map
|