@tiba-spark/client-shared-lib 10.3.0-849 → 10.3.0-851
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/service-proxy/edge-service-proxies.mjs +1146 -1760
- package/fesm2022/tiba-spark-client-shared-lib.mjs +1146 -1761
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/service-proxy/edge-service-proxies.d.ts +176 -273
- package/libraries/service-proxy/edge-service-proxies.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -16494,31 +16494,45 @@ class AccountServiceProxy {
|
|
|
16494
16494
|
return of(null);
|
|
16495
16495
|
}
|
|
16496
16496
|
/**
|
|
16497
|
-
* @param
|
|
16497
|
+
* @param companyId (optional)
|
|
16498
|
+
* @param parkId (optional)
|
|
16499
|
+
* @param appModule (optional)
|
|
16500
|
+
* @param subCompanyId (optional)
|
|
16498
16501
|
* @return Success
|
|
16499
16502
|
*/
|
|
16500
|
-
|
|
16501
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
16503
|
+
getCounters(companyId, parkId, appModule, subCompanyId, guid) {
|
|
16504
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/counters?";
|
|
16502
16505
|
if (guid === undefined || guid === null)
|
|
16503
16506
|
throw new Error("The parameter 'guid' must be defined.");
|
|
16504
16507
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
16508
|
+
if (companyId === null)
|
|
16509
|
+
throw new Error("The parameter 'companyId' cannot be null.");
|
|
16510
|
+
else if (companyId !== undefined)
|
|
16511
|
+
url_ += "CompanyId=" + encodeURIComponent("" + companyId) + "&";
|
|
16512
|
+
if (parkId === null)
|
|
16513
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
16514
|
+
else if (parkId !== undefined)
|
|
16515
|
+
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
16516
|
+
if (appModule === null)
|
|
16517
|
+
throw new Error("The parameter 'appModule' cannot be null.");
|
|
16518
|
+
else if (appModule !== undefined)
|
|
16519
|
+
url_ += "AppModule=" + encodeURIComponent("" + appModule) + "&";
|
|
16520
|
+
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
16521
|
+
url_ += "SubCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
16505
16522
|
url_ = url_.replace(/[?&]$/, "");
|
|
16506
|
-
const content_ = JSON.stringify(body);
|
|
16507
16523
|
let options_ = {
|
|
16508
|
-
body: content_,
|
|
16509
16524
|
observe: "response",
|
|
16510
16525
|
responseType: "blob",
|
|
16511
16526
|
headers: new HttpHeaders({
|
|
16512
|
-
"Content-Type": "application/json-patch+json",
|
|
16513
16527
|
"Accept": "text/plain"
|
|
16514
16528
|
})
|
|
16515
16529
|
};
|
|
16516
|
-
return this.http.request("
|
|
16517
|
-
return this.
|
|
16530
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
16531
|
+
return this.processGetCounters(response_);
|
|
16518
16532
|
})).pipe(catchError((response_) => {
|
|
16519
16533
|
if (response_ instanceof HttpResponseBase) {
|
|
16520
16534
|
try {
|
|
16521
|
-
return this.
|
|
16535
|
+
return this.processGetCounters(response_);
|
|
16522
16536
|
}
|
|
16523
16537
|
catch (e) {
|
|
16524
16538
|
return throwError(e);
|
|
@@ -16528,7 +16542,7 @@ class AccountServiceProxy {
|
|
|
16528
16542
|
return throwError(response_);
|
|
16529
16543
|
}));
|
|
16530
16544
|
}
|
|
16531
|
-
|
|
16545
|
+
processGetCounters(response) {
|
|
16532
16546
|
const status = response.status;
|
|
16533
16547
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
16534
16548
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -16542,7 +16556,7 @@ class AccountServiceProxy {
|
|
|
16542
16556
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
16543
16557
|
let result200 = null;
|
|
16544
16558
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16545
|
-
result200 =
|
|
16559
|
+
result200 = CountersDtoHttpResponseData.fromJS(resultData200);
|
|
16546
16560
|
return of(result200);
|
|
16547
16561
|
}));
|
|
16548
16562
|
}
|
|
@@ -16554,61 +16568,31 @@ class AccountServiceProxy {
|
|
|
16554
16568
|
return of(null);
|
|
16555
16569
|
}
|
|
16556
16570
|
/**
|
|
16557
|
-
* @param
|
|
16558
|
-
* @param parkId (optional)
|
|
16559
|
-
* @param appModule (optional)
|
|
16560
|
-
* @param subCompanyId (optional)
|
|
16561
|
-
* @param permittedCompaniesFilterDto_PermittedCompanyIds (optional)
|
|
16562
|
-
* @param permittedCompaniesFilterDto_PermittedSubCompanyIds (optional)
|
|
16563
|
-
* @param permittedCompaniesFilterDto_AllPermitted (optional)
|
|
16564
|
-
* @param permittedCompaniesFilterDto_AllSubCompaniesPermitted (optional)
|
|
16571
|
+
* @param body (optional)
|
|
16565
16572
|
* @return Success
|
|
16566
16573
|
*/
|
|
16567
|
-
|
|
16568
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
16574
|
+
updateParkingNowCounter(guid, body) {
|
|
16575
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/parking-now-counter";
|
|
16569
16576
|
if (guid === undefined || guid === null)
|
|
16570
16577
|
throw new Error("The parameter 'guid' must be defined.");
|
|
16571
16578
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
16572
|
-
if (companyId === null)
|
|
16573
|
-
throw new Error("The parameter 'companyId' cannot be null.");
|
|
16574
|
-
else if (companyId !== undefined)
|
|
16575
|
-
url_ += "CompanyId=" + encodeURIComponent("" + companyId) + "&";
|
|
16576
|
-
if (parkId === null)
|
|
16577
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
16578
|
-
else if (parkId !== undefined)
|
|
16579
|
-
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
16580
|
-
if (appModule === null)
|
|
16581
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
16582
|
-
else if (appModule !== undefined)
|
|
16583
|
-
url_ += "AppModule=" + encodeURIComponent("" + appModule) + "&";
|
|
16584
|
-
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
16585
|
-
url_ += "SubCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
16586
|
-
if (permittedCompaniesFilterDto_PermittedCompanyIds !== undefined && permittedCompaniesFilterDto_PermittedCompanyIds !== null)
|
|
16587
|
-
permittedCompaniesFilterDto_PermittedCompanyIds && permittedCompaniesFilterDto_PermittedCompanyIds.forEach(item => { url_ += "PermittedCompaniesFilterDto.PermittedCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
16588
|
-
if (permittedCompaniesFilterDto_PermittedSubCompanyIds !== undefined && permittedCompaniesFilterDto_PermittedSubCompanyIds !== null)
|
|
16589
|
-
permittedCompaniesFilterDto_PermittedSubCompanyIds && permittedCompaniesFilterDto_PermittedSubCompanyIds.forEach(item => { url_ += "PermittedCompaniesFilterDto.PermittedSubCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
16590
|
-
if (permittedCompaniesFilterDto_AllPermitted === null)
|
|
16591
|
-
throw new Error("The parameter 'permittedCompaniesFilterDto_AllPermitted' cannot be null.");
|
|
16592
|
-
else if (permittedCompaniesFilterDto_AllPermitted !== undefined)
|
|
16593
|
-
url_ += "PermittedCompaniesFilterDto.AllPermitted=" + encodeURIComponent("" + permittedCompaniesFilterDto_AllPermitted) + "&";
|
|
16594
|
-
if (permittedCompaniesFilterDto_AllSubCompaniesPermitted === null)
|
|
16595
|
-
throw new Error("The parameter 'permittedCompaniesFilterDto_AllSubCompaniesPermitted' cannot be null.");
|
|
16596
|
-
else if (permittedCompaniesFilterDto_AllSubCompaniesPermitted !== undefined)
|
|
16597
|
-
url_ += "PermittedCompaniesFilterDto.AllSubCompaniesPermitted=" + encodeURIComponent("" + permittedCompaniesFilterDto_AllSubCompaniesPermitted) + "&";
|
|
16598
16579
|
url_ = url_.replace(/[?&]$/, "");
|
|
16580
|
+
const content_ = JSON.stringify(body);
|
|
16599
16581
|
let options_ = {
|
|
16582
|
+
body: content_,
|
|
16600
16583
|
observe: "response",
|
|
16601
16584
|
responseType: "blob",
|
|
16602
16585
|
headers: new HttpHeaders({
|
|
16586
|
+
"Content-Type": "application/json-patch+json",
|
|
16603
16587
|
"Accept": "text/plain"
|
|
16604
16588
|
})
|
|
16605
16589
|
};
|
|
16606
|
-
return this.http.request("
|
|
16607
|
-
return this.
|
|
16590
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
16591
|
+
return this.processUpdateParkingNowCounter(response_);
|
|
16608
16592
|
})).pipe(catchError((response_) => {
|
|
16609
16593
|
if (response_ instanceof HttpResponseBase) {
|
|
16610
16594
|
try {
|
|
16611
|
-
return this.
|
|
16595
|
+
return this.processUpdateParkingNowCounter(response_);
|
|
16612
16596
|
}
|
|
16613
16597
|
catch (e) {
|
|
16614
16598
|
return throwError(e);
|
|
@@ -16618,7 +16602,7 @@ class AccountServiceProxy {
|
|
|
16618
16602
|
return throwError(response_);
|
|
16619
16603
|
}));
|
|
16620
16604
|
}
|
|
16621
|
-
|
|
16605
|
+
processUpdateParkingNowCounter(response) {
|
|
16622
16606
|
const status = response.status;
|
|
16623
16607
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
16624
16608
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -16632,7 +16616,7 @@ class AccountServiceProxy {
|
|
|
16632
16616
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
16633
16617
|
let result200 = null;
|
|
16634
16618
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16635
|
-
result200 =
|
|
16619
|
+
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
16636
16620
|
return of(result200);
|
|
16637
16621
|
}));
|
|
16638
16622
|
}
|
|
@@ -17221,11 +17205,16 @@ class ChaserTicketServiceProxy {
|
|
|
17221
17205
|
}
|
|
17222
17206
|
/**
|
|
17223
17207
|
* @param dateValidity (optional)
|
|
17224
|
-
* @param body (optional)
|
|
17225
17208
|
* @return Success
|
|
17226
17209
|
*/
|
|
17227
|
-
|
|
17228
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17210
|
+
couponsByBatchId(batchId, parkId, dateValidity, guid) {
|
|
17211
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/{batchId}/facility/{parkId}?";
|
|
17212
|
+
if (batchId === undefined || batchId === null)
|
|
17213
|
+
throw new Error("The parameter 'batchId' must be defined.");
|
|
17214
|
+
url_ = url_.replace("{batchId}", encodeURIComponent("" + batchId));
|
|
17215
|
+
if (parkId === undefined || parkId === null)
|
|
17216
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
17217
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17229
17218
|
if (guid === undefined || guid === null)
|
|
17230
17219
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17231
17220
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17234,22 +17223,19 @@ class ChaserTicketServiceProxy {
|
|
|
17234
17223
|
else if (dateValidity !== undefined)
|
|
17235
17224
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17236
17225
|
url_ = url_.replace(/[?&]$/, "");
|
|
17237
|
-
const content_ = JSON.stringify(body);
|
|
17238
17226
|
let options_ = {
|
|
17239
|
-
body: content_,
|
|
17240
17227
|
observe: "response",
|
|
17241
17228
|
responseType: "blob",
|
|
17242
17229
|
headers: new HttpHeaders({
|
|
17243
|
-
"Content-Type": "application/json-patch+json",
|
|
17244
17230
|
"Accept": "text/plain"
|
|
17245
17231
|
})
|
|
17246
17232
|
};
|
|
17247
|
-
return this.http.request("
|
|
17248
|
-
return this.
|
|
17233
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17234
|
+
return this.processCouponsByBatchId(response_);
|
|
17249
17235
|
})).pipe(catchError((response_) => {
|
|
17250
17236
|
if (response_ instanceof HttpResponseBase) {
|
|
17251
17237
|
try {
|
|
17252
|
-
return this.
|
|
17238
|
+
return this.processCouponsByBatchId(response_);
|
|
17253
17239
|
}
|
|
17254
17240
|
catch (e) {
|
|
17255
17241
|
return throwError(e);
|
|
@@ -17259,7 +17245,7 @@ class ChaserTicketServiceProxy {
|
|
|
17259
17245
|
return throwError(response_);
|
|
17260
17246
|
}));
|
|
17261
17247
|
}
|
|
17262
|
-
|
|
17248
|
+
processCouponsByBatchId(response) {
|
|
17263
17249
|
const status = response.status;
|
|
17264
17250
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17265
17251
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17273,7 +17259,7 @@ class ChaserTicketServiceProxy {
|
|
|
17273
17259
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17274
17260
|
let result200 = null;
|
|
17275
17261
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17276
|
-
result200 =
|
|
17262
|
+
result200 = CouponDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
17277
17263
|
return of(result200);
|
|
17278
17264
|
}));
|
|
17279
17265
|
}
|
|
@@ -17285,36 +17271,31 @@ class ChaserTicketServiceProxy {
|
|
|
17285
17271
|
return of(null);
|
|
17286
17272
|
}
|
|
17287
17273
|
/**
|
|
17288
|
-
* @param dateValidity (optional)
|
|
17289
|
-
* @param body (optional)
|
|
17290
17274
|
* @return Success
|
|
17275
|
+
* @deprecated
|
|
17291
17276
|
*/
|
|
17292
|
-
|
|
17293
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17277
|
+
couponBatchDeepSearchDeprecated(entityId, guid) {
|
|
17278
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/batch/deep-search/{entityId}";
|
|
17279
|
+
if (entityId === undefined || entityId === null)
|
|
17280
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
17281
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17294
17282
|
if (guid === undefined || guid === null)
|
|
17295
17283
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17296
17284
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17297
|
-
if (dateValidity === null)
|
|
17298
|
-
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17299
|
-
else if (dateValidity !== undefined)
|
|
17300
|
-
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17301
17285
|
url_ = url_.replace(/[?&]$/, "");
|
|
17302
|
-
const content_ = JSON.stringify(body);
|
|
17303
17286
|
let options_ = {
|
|
17304
|
-
body: content_,
|
|
17305
17287
|
observe: "response",
|
|
17306
17288
|
responseType: "blob",
|
|
17307
17289
|
headers: new HttpHeaders({
|
|
17308
|
-
"Content-Type": "application/json-patch+json",
|
|
17309
17290
|
"Accept": "text/plain"
|
|
17310
17291
|
})
|
|
17311
17292
|
};
|
|
17312
|
-
return this.http.request("
|
|
17313
|
-
return this.
|
|
17293
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17294
|
+
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
17314
17295
|
})).pipe(catchError((response_) => {
|
|
17315
17296
|
if (response_ instanceof HttpResponseBase) {
|
|
17316
17297
|
try {
|
|
17317
|
-
return this.
|
|
17298
|
+
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
17318
17299
|
}
|
|
17319
17300
|
catch (e) {
|
|
17320
17301
|
return throwError(e);
|
|
@@ -17324,7 +17305,7 @@ class ChaserTicketServiceProxy {
|
|
|
17324
17305
|
return throwError(response_);
|
|
17325
17306
|
}));
|
|
17326
17307
|
}
|
|
17327
|
-
|
|
17308
|
+
processCouponBatchDeepSearchDeprecated(response) {
|
|
17328
17309
|
const status = response.status;
|
|
17329
17310
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17330
17311
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17338,7 +17319,7 @@ class ChaserTicketServiceProxy {
|
|
|
17338
17319
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17339
17320
|
let result200 = null;
|
|
17340
17321
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17341
|
-
result200 =
|
|
17322
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
17342
17323
|
return of(result200);
|
|
17343
17324
|
}));
|
|
17344
17325
|
}
|
|
@@ -17350,36 +17331,33 @@ class ChaserTicketServiceProxy {
|
|
|
17350
17331
|
return of(null);
|
|
17351
17332
|
}
|
|
17352
17333
|
/**
|
|
17353
|
-
* @param dateValidity (optional)
|
|
17354
|
-
* @param body (optional)
|
|
17355
17334
|
* @return Success
|
|
17356
17335
|
*/
|
|
17357
|
-
|
|
17358
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon
|
|
17336
|
+
couponBatchDeepSearch(parkId, entityId, guid) {
|
|
17337
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/batch/facility/{parkId}/deep-search/{entityId}";
|
|
17338
|
+
if (parkId === undefined || parkId === null)
|
|
17339
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
17340
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17341
|
+
if (entityId === undefined || entityId === null)
|
|
17342
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
17343
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17359
17344
|
if (guid === undefined || guid === null)
|
|
17360
17345
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17361
17346
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17362
|
-
if (dateValidity === null)
|
|
17363
|
-
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17364
|
-
else if (dateValidity !== undefined)
|
|
17365
|
-
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17366
17347
|
url_ = url_.replace(/[?&]$/, "");
|
|
17367
|
-
const content_ = JSON.stringify(body);
|
|
17368
17348
|
let options_ = {
|
|
17369
|
-
body: content_,
|
|
17370
17349
|
observe: "response",
|
|
17371
17350
|
responseType: "blob",
|
|
17372
17351
|
headers: new HttpHeaders({
|
|
17373
|
-
"Content-Type": "application/json-patch+json",
|
|
17374
17352
|
"Accept": "text/plain"
|
|
17375
17353
|
})
|
|
17376
17354
|
};
|
|
17377
|
-
return this.http.request("
|
|
17378
|
-
return this.
|
|
17355
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17356
|
+
return this.processCouponBatchDeepSearch(response_);
|
|
17379
17357
|
})).pipe(catchError((response_) => {
|
|
17380
17358
|
if (response_ instanceof HttpResponseBase) {
|
|
17381
17359
|
try {
|
|
17382
|
-
return this.
|
|
17360
|
+
return this.processCouponBatchDeepSearch(response_);
|
|
17383
17361
|
}
|
|
17384
17362
|
catch (e) {
|
|
17385
17363
|
return throwError(e);
|
|
@@ -17389,7 +17367,7 @@ class ChaserTicketServiceProxy {
|
|
|
17389
17367
|
return throwError(response_);
|
|
17390
17368
|
}));
|
|
17391
17369
|
}
|
|
17392
|
-
|
|
17370
|
+
processCouponBatchDeepSearch(response) {
|
|
17393
17371
|
const status = response.status;
|
|
17394
17372
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17395
17373
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17403,7 +17381,129 @@ class ChaserTicketServiceProxy {
|
|
|
17403
17381
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17404
17382
|
let result200 = null;
|
|
17405
17383
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17406
|
-
result200 =
|
|
17384
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
17385
|
+
return of(result200);
|
|
17386
|
+
}));
|
|
17387
|
+
}
|
|
17388
|
+
else if (status !== 200 && status !== 204) {
|
|
17389
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17390
|
+
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17391
|
+
}));
|
|
17392
|
+
}
|
|
17393
|
+
return of(null);
|
|
17394
|
+
}
|
|
17395
|
+
/**
|
|
17396
|
+
* @return Success
|
|
17397
|
+
* @deprecated
|
|
17398
|
+
*/
|
|
17399
|
+
singleCouponDeepSearchDeprecated(entityId, guid) {
|
|
17400
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/deep-search/{entityId}";
|
|
17401
|
+
if (entityId === undefined || entityId === null)
|
|
17402
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
17403
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17404
|
+
if (guid === undefined || guid === null)
|
|
17405
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
17406
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17407
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17408
|
+
let options_ = {
|
|
17409
|
+
observe: "response",
|
|
17410
|
+
responseType: "blob",
|
|
17411
|
+
headers: new HttpHeaders({
|
|
17412
|
+
"Accept": "text/plain"
|
|
17413
|
+
})
|
|
17414
|
+
};
|
|
17415
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17416
|
+
return this.processSingleCouponDeepSearchDeprecated(response_);
|
|
17417
|
+
})).pipe(catchError((response_) => {
|
|
17418
|
+
if (response_ instanceof HttpResponseBase) {
|
|
17419
|
+
try {
|
|
17420
|
+
return this.processSingleCouponDeepSearchDeprecated(response_);
|
|
17421
|
+
}
|
|
17422
|
+
catch (e) {
|
|
17423
|
+
return throwError(e);
|
|
17424
|
+
}
|
|
17425
|
+
}
|
|
17426
|
+
else
|
|
17427
|
+
return throwError(response_);
|
|
17428
|
+
}));
|
|
17429
|
+
}
|
|
17430
|
+
processSingleCouponDeepSearchDeprecated(response) {
|
|
17431
|
+
const status = response.status;
|
|
17432
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17433
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
17434
|
+
let _headers = {};
|
|
17435
|
+
if (response.headers) {
|
|
17436
|
+
for (let key of response.headers.keys()) {
|
|
17437
|
+
_headers[key] = response.headers.get(key);
|
|
17438
|
+
}
|
|
17439
|
+
}
|
|
17440
|
+
if (status === 200) {
|
|
17441
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17442
|
+
let result200 = null;
|
|
17443
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17444
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
17445
|
+
return of(result200);
|
|
17446
|
+
}));
|
|
17447
|
+
}
|
|
17448
|
+
else if (status !== 200 && status !== 204) {
|
|
17449
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17450
|
+
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17451
|
+
}));
|
|
17452
|
+
}
|
|
17453
|
+
return of(null);
|
|
17454
|
+
}
|
|
17455
|
+
/**
|
|
17456
|
+
* @return Success
|
|
17457
|
+
*/
|
|
17458
|
+
singleCouponDeepSearch(parkId, entityId, guid) {
|
|
17459
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/facility/{parkId}/deep-search/{entityId}";
|
|
17460
|
+
if (parkId === undefined || parkId === null)
|
|
17461
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
17462
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17463
|
+
if (entityId === undefined || entityId === null)
|
|
17464
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
17465
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17466
|
+
if (guid === undefined || guid === null)
|
|
17467
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
17468
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17469
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17470
|
+
let options_ = {
|
|
17471
|
+
observe: "response",
|
|
17472
|
+
responseType: "blob",
|
|
17473
|
+
headers: new HttpHeaders({
|
|
17474
|
+
"Accept": "text/plain"
|
|
17475
|
+
})
|
|
17476
|
+
};
|
|
17477
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17478
|
+
return this.processSingleCouponDeepSearch(response_);
|
|
17479
|
+
})).pipe(catchError((response_) => {
|
|
17480
|
+
if (response_ instanceof HttpResponseBase) {
|
|
17481
|
+
try {
|
|
17482
|
+
return this.processSingleCouponDeepSearch(response_);
|
|
17483
|
+
}
|
|
17484
|
+
catch (e) {
|
|
17485
|
+
return throwError(e);
|
|
17486
|
+
}
|
|
17487
|
+
}
|
|
17488
|
+
else
|
|
17489
|
+
return throwError(response_);
|
|
17490
|
+
}));
|
|
17491
|
+
}
|
|
17492
|
+
processSingleCouponDeepSearch(response) {
|
|
17493
|
+
const status = response.status;
|
|
17494
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17495
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
17496
|
+
let _headers = {};
|
|
17497
|
+
if (response.headers) {
|
|
17498
|
+
for (let key of response.headers.keys()) {
|
|
17499
|
+
_headers[key] = response.headers.get(key);
|
|
17500
|
+
}
|
|
17501
|
+
}
|
|
17502
|
+
if (status === 200) {
|
|
17503
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17504
|
+
let result200 = null;
|
|
17505
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17506
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
17407
17507
|
return of(result200);
|
|
17408
17508
|
}));
|
|
17409
17509
|
}
|
|
@@ -17419,8 +17519,8 @@ class ChaserTicketServiceProxy {
|
|
|
17419
17519
|
* @param body (optional)
|
|
17420
17520
|
* @return Success
|
|
17421
17521
|
*/
|
|
17422
|
-
|
|
17423
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17522
|
+
createCouponBatch(dateValidity, guid, body) {
|
|
17523
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/create?";
|
|
17424
17524
|
if (guid === undefined || guid === null)
|
|
17425
17525
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17426
17526
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17439,12 +17539,12 @@ class ChaserTicketServiceProxy {
|
|
|
17439
17539
|
"Accept": "text/plain"
|
|
17440
17540
|
})
|
|
17441
17541
|
};
|
|
17442
|
-
return this.http.request("
|
|
17443
|
-
return this.
|
|
17542
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17543
|
+
return this.processCreateCouponBatch(response_);
|
|
17444
17544
|
})).pipe(catchError((response_) => {
|
|
17445
17545
|
if (response_ instanceof HttpResponseBase) {
|
|
17446
17546
|
try {
|
|
17447
|
-
return this.
|
|
17547
|
+
return this.processCreateCouponBatch(response_);
|
|
17448
17548
|
}
|
|
17449
17549
|
catch (e) {
|
|
17450
17550
|
return throwError(e);
|
|
@@ -17454,7 +17554,7 @@ class ChaserTicketServiceProxy {
|
|
|
17454
17554
|
return throwError(response_);
|
|
17455
17555
|
}));
|
|
17456
17556
|
}
|
|
17457
|
-
|
|
17557
|
+
processCreateCouponBatch(response) {
|
|
17458
17558
|
const status = response.status;
|
|
17459
17559
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17460
17560
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17484,8 +17584,8 @@ class ChaserTicketServiceProxy {
|
|
|
17484
17584
|
* @param body (optional)
|
|
17485
17585
|
* @return Success
|
|
17486
17586
|
*/
|
|
17487
|
-
|
|
17488
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17587
|
+
createBasicCouponBatch(dateValidity, guid, body) {
|
|
17588
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/create-basic?";
|
|
17489
17589
|
if (guid === undefined || guid === null)
|
|
17490
17590
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17491
17591
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17504,12 +17604,12 @@ class ChaserTicketServiceProxy {
|
|
|
17504
17604
|
"Accept": "text/plain"
|
|
17505
17605
|
})
|
|
17506
17606
|
};
|
|
17507
|
-
return this.http.request("
|
|
17508
|
-
return this.
|
|
17607
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17608
|
+
return this.processCreateBasicCouponBatch(response_);
|
|
17509
17609
|
})).pipe(catchError((response_) => {
|
|
17510
17610
|
if (response_ instanceof HttpResponseBase) {
|
|
17511
17611
|
try {
|
|
17512
|
-
return this.
|
|
17612
|
+
return this.processCreateBasicCouponBatch(response_);
|
|
17513
17613
|
}
|
|
17514
17614
|
catch (e) {
|
|
17515
17615
|
return throwError(e);
|
|
@@ -17519,7 +17619,7 @@ class ChaserTicketServiceProxy {
|
|
|
17519
17619
|
return throwError(response_);
|
|
17520
17620
|
}));
|
|
17521
17621
|
}
|
|
17522
|
-
|
|
17622
|
+
processCreateBasicCouponBatch(response) {
|
|
17523
17623
|
const status = response.status;
|
|
17524
17624
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17525
17625
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17533,7 +17633,7 @@ class ChaserTicketServiceProxy {
|
|
|
17533
17633
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17534
17634
|
let result200 = null;
|
|
17535
17635
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17536
|
-
result200 =
|
|
17636
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17537
17637
|
return of(result200);
|
|
17538
17638
|
}));
|
|
17539
17639
|
}
|
|
@@ -17545,56 +17645,19 @@ class ChaserTicketServiceProxy {
|
|
|
17545
17645
|
return of(null);
|
|
17546
17646
|
}
|
|
17547
17647
|
/**
|
|
17548
|
-
* @param startDate (optional)
|
|
17549
|
-
* @param endDate (optional)
|
|
17550
|
-
* @param searchValue (optional)
|
|
17551
|
-
* @param companyId (optional)
|
|
17552
|
-
* @param subCompanyId (optional)
|
|
17553
|
-
* @param take (optional)
|
|
17554
|
-
* @param skip (optional)
|
|
17555
|
-
* @param orderBy_Column (optional)
|
|
17556
|
-
* @param orderBy_OrderDirection (optional)
|
|
17557
17648
|
* @param dateValidity (optional)
|
|
17558
|
-
* @param chaserTicketSearchFieldSelector (optional)
|
|
17559
17649
|
* @param body (optional)
|
|
17560
17650
|
* @return Success
|
|
17561
17651
|
*/
|
|
17562
|
-
|
|
17563
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17564
|
-
if (parkId === undefined || parkId === null)
|
|
17565
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
17566
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17652
|
+
updateCouponBatch(dateValidity, guid, body) {
|
|
17653
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon?";
|
|
17567
17654
|
if (guid === undefined || guid === null)
|
|
17568
17655
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17569
17656
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17570
|
-
if (startDate !== undefined && startDate !== null)
|
|
17571
|
-
url_ += "StartDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
|
|
17572
|
-
if (endDate !== undefined && endDate !== null)
|
|
17573
|
-
url_ += "EndDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
|
|
17574
|
-
if (searchValue !== undefined && searchValue !== null)
|
|
17575
|
-
url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
|
|
17576
|
-
if (companyId !== undefined && companyId !== null)
|
|
17577
|
-
url_ += "CompanyId=" + encodeURIComponent("" + companyId) + "&";
|
|
17578
|
-
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
17579
|
-
url_ += "SubCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
17580
|
-
if (take !== undefined && take !== null)
|
|
17581
|
-
url_ += "Take=" + encodeURIComponent("" + take) + "&";
|
|
17582
|
-
if (skip !== undefined && skip !== null)
|
|
17583
|
-
url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
|
|
17584
|
-
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
17585
|
-
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
17586
|
-
if (orderBy_OrderDirection === null)
|
|
17587
|
-
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
17588
|
-
else if (orderBy_OrderDirection !== undefined)
|
|
17589
|
-
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
17590
17657
|
if (dateValidity === null)
|
|
17591
17658
|
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17592
17659
|
else if (dateValidity !== undefined)
|
|
17593
17660
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17594
|
-
if (chaserTicketSearchFieldSelector === null)
|
|
17595
|
-
throw new Error("The parameter 'chaserTicketSearchFieldSelector' cannot be null.");
|
|
17596
|
-
else if (chaserTicketSearchFieldSelector !== undefined)
|
|
17597
|
-
url_ += "chaserTicketSearchFieldSelector=" + encodeURIComponent("" + chaserTicketSearchFieldSelector) + "&";
|
|
17598
17661
|
url_ = url_.replace(/[?&]$/, "");
|
|
17599
17662
|
const content_ = JSON.stringify(body);
|
|
17600
17663
|
let options_ = {
|
|
@@ -17606,12 +17669,12 @@ class ChaserTicketServiceProxy {
|
|
|
17606
17669
|
"Accept": "text/plain"
|
|
17607
17670
|
})
|
|
17608
17671
|
};
|
|
17609
|
-
return this.http.request("
|
|
17610
|
-
return this.
|
|
17672
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17673
|
+
return this.processUpdateCouponBatch(response_);
|
|
17611
17674
|
})).pipe(catchError((response_) => {
|
|
17612
17675
|
if (response_ instanceof HttpResponseBase) {
|
|
17613
17676
|
try {
|
|
17614
|
-
return this.
|
|
17677
|
+
return this.processUpdateCouponBatch(response_);
|
|
17615
17678
|
}
|
|
17616
17679
|
catch (e) {
|
|
17617
17680
|
return throwError(e);
|
|
@@ -17621,7 +17684,7 @@ class ChaserTicketServiceProxy {
|
|
|
17621
17684
|
return throwError(response_);
|
|
17622
17685
|
}));
|
|
17623
17686
|
}
|
|
17624
|
-
|
|
17687
|
+
processUpdateCouponBatch(response) {
|
|
17625
17688
|
const status = response.status;
|
|
17626
17689
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17627
17690
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17635,7 +17698,7 @@ class ChaserTicketServiceProxy {
|
|
|
17635
17698
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17636
17699
|
let result200 = null;
|
|
17637
17700
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17638
|
-
result200 =
|
|
17701
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17639
17702
|
return of(result200);
|
|
17640
17703
|
}));
|
|
17641
17704
|
}
|
|
@@ -17651,8 +17714,8 @@ class ChaserTicketServiceProxy {
|
|
|
17651
17714
|
* @param body (optional)
|
|
17652
17715
|
* @return Success
|
|
17653
17716
|
*/
|
|
17654
|
-
|
|
17655
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17717
|
+
markCouponBatchAsSent(dateValidity, guid, body) {
|
|
17718
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/mark-batch-as-sent?";
|
|
17656
17719
|
if (guid === undefined || guid === null)
|
|
17657
17720
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17658
17721
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17671,12 +17734,12 @@ class ChaserTicketServiceProxy {
|
|
|
17671
17734
|
"Accept": "text/plain"
|
|
17672
17735
|
})
|
|
17673
17736
|
};
|
|
17674
|
-
return this.http.request("
|
|
17675
|
-
return this.
|
|
17737
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17738
|
+
return this.processMarkCouponBatchAsSent(response_);
|
|
17676
17739
|
})).pipe(catchError((response_) => {
|
|
17677
17740
|
if (response_ instanceof HttpResponseBase) {
|
|
17678
17741
|
try {
|
|
17679
|
-
return this.
|
|
17742
|
+
return this.processMarkCouponBatchAsSent(response_);
|
|
17680
17743
|
}
|
|
17681
17744
|
catch (e) {
|
|
17682
17745
|
return throwError(e);
|
|
@@ -17686,7 +17749,7 @@ class ChaserTicketServiceProxy {
|
|
|
17686
17749
|
return throwError(response_);
|
|
17687
17750
|
}));
|
|
17688
17751
|
}
|
|
17689
|
-
|
|
17752
|
+
processMarkCouponBatchAsSent(response) {
|
|
17690
17753
|
const status = response.status;
|
|
17691
17754
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17692
17755
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17700,7 +17763,7 @@ class ChaserTicketServiceProxy {
|
|
|
17700
17763
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17701
17764
|
let result200 = null;
|
|
17702
17765
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17703
|
-
result200 =
|
|
17766
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17704
17767
|
return of(result200);
|
|
17705
17768
|
}));
|
|
17706
17769
|
}
|
|
@@ -17716,8 +17779,8 @@ class ChaserTicketServiceProxy {
|
|
|
17716
17779
|
* @param body (optional)
|
|
17717
17780
|
* @return Success
|
|
17718
17781
|
*/
|
|
17719
|
-
|
|
17720
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17782
|
+
markSingleCouponAsSent(dateValidity, guid, body) {
|
|
17783
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/mark-as-sent?";
|
|
17721
17784
|
if (guid === undefined || guid === null)
|
|
17722
17785
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17723
17786
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17736,12 +17799,12 @@ class ChaserTicketServiceProxy {
|
|
|
17736
17799
|
"Accept": "text/plain"
|
|
17737
17800
|
})
|
|
17738
17801
|
};
|
|
17739
|
-
return this.http.request("
|
|
17740
|
-
return this.
|
|
17802
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17803
|
+
return this.processMarkSingleCouponAsSent(response_);
|
|
17741
17804
|
})).pipe(catchError((response_) => {
|
|
17742
17805
|
if (response_ instanceof HttpResponseBase) {
|
|
17743
17806
|
try {
|
|
17744
|
-
return this.
|
|
17807
|
+
return this.processMarkSingleCouponAsSent(response_);
|
|
17745
17808
|
}
|
|
17746
17809
|
catch (e) {
|
|
17747
17810
|
return throwError(e);
|
|
@@ -17751,7 +17814,7 @@ class ChaserTicketServiceProxy {
|
|
|
17751
17814
|
return throwError(response_);
|
|
17752
17815
|
}));
|
|
17753
17816
|
}
|
|
17754
|
-
|
|
17817
|
+
processMarkSingleCouponAsSent(response) {
|
|
17755
17818
|
const status = response.status;
|
|
17756
17819
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17757
17820
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17765,7 +17828,7 @@ class ChaserTicketServiceProxy {
|
|
|
17765
17828
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17766
17829
|
let result200 = null;
|
|
17767
17830
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17768
|
-
result200 =
|
|
17831
|
+
result200 = CouponDtoHttpResponseData.fromJS(resultData200);
|
|
17769
17832
|
return of(result200);
|
|
17770
17833
|
}));
|
|
17771
17834
|
}
|
|
@@ -17777,36 +17840,35 @@ class ChaserTicketServiceProxy {
|
|
|
17777
17840
|
return of(null);
|
|
17778
17841
|
}
|
|
17779
17842
|
/**
|
|
17780
|
-
* @param
|
|
17781
|
-
* @param body (optional)
|
|
17843
|
+
* @param parkId (optional)
|
|
17782
17844
|
* @return Success
|
|
17783
17845
|
*/
|
|
17784
|
-
|
|
17785
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17846
|
+
deleteCouponBatch(id, parkId, guid) {
|
|
17847
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/{id}?";
|
|
17848
|
+
if (id === undefined || id === null)
|
|
17849
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
17850
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17786
17851
|
if (guid === undefined || guid === null)
|
|
17787
17852
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17788
17853
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17789
|
-
if (
|
|
17790
|
-
throw new Error("The parameter '
|
|
17791
|
-
else if (
|
|
17792
|
-
url_ += "
|
|
17854
|
+
if (parkId === null)
|
|
17855
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
17856
|
+
else if (parkId !== undefined)
|
|
17857
|
+
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
17793
17858
|
url_ = url_.replace(/[?&]$/, "");
|
|
17794
|
-
const content_ = JSON.stringify(body);
|
|
17795
17859
|
let options_ = {
|
|
17796
|
-
body: content_,
|
|
17797
17860
|
observe: "response",
|
|
17798
17861
|
responseType: "blob",
|
|
17799
17862
|
headers: new HttpHeaders({
|
|
17800
|
-
"Content-Type": "application/json-patch+json",
|
|
17801
17863
|
"Accept": "text/plain"
|
|
17802
17864
|
})
|
|
17803
17865
|
};
|
|
17804
|
-
return this.http.request("
|
|
17805
|
-
return this.
|
|
17866
|
+
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
17867
|
+
return this.processDeleteCouponBatch(response_);
|
|
17806
17868
|
})).pipe(catchError((response_) => {
|
|
17807
17869
|
if (response_ instanceof HttpResponseBase) {
|
|
17808
17870
|
try {
|
|
17809
|
-
return this.
|
|
17871
|
+
return this.processDeleteCouponBatch(response_);
|
|
17810
17872
|
}
|
|
17811
17873
|
catch (e) {
|
|
17812
17874
|
return throwError(e);
|
|
@@ -17816,7 +17878,7 @@ class ChaserTicketServiceProxy {
|
|
|
17816
17878
|
return throwError(response_);
|
|
17817
17879
|
}));
|
|
17818
17880
|
}
|
|
17819
|
-
|
|
17881
|
+
processDeleteCouponBatch(response) {
|
|
17820
17882
|
const status = response.status;
|
|
17821
17883
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17822
17884
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17830,7 +17892,7 @@ class ChaserTicketServiceProxy {
|
|
|
17830
17892
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17831
17893
|
let result200 = null;
|
|
17832
17894
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17833
|
-
result200 =
|
|
17895
|
+
result200 = UnitHttpResponseData.fromJS(resultData200);
|
|
17834
17896
|
return of(result200);
|
|
17835
17897
|
}));
|
|
17836
17898
|
}
|
|
@@ -17842,19 +17904,56 @@ class ChaserTicketServiceProxy {
|
|
|
17842
17904
|
return of(null);
|
|
17843
17905
|
}
|
|
17844
17906
|
/**
|
|
17907
|
+
* @param startDate (optional)
|
|
17908
|
+
* @param endDate (optional)
|
|
17909
|
+
* @param searchValue (optional)
|
|
17910
|
+
* @param companyId (optional)
|
|
17911
|
+
* @param subCompanyId (optional)
|
|
17912
|
+
* @param take (optional)
|
|
17913
|
+
* @param skip (optional)
|
|
17914
|
+
* @param orderBy_Column (optional)
|
|
17915
|
+
* @param orderBy_OrderDirection (optional)
|
|
17845
17916
|
* @param dateValidity (optional)
|
|
17917
|
+
* @param chaserTicketSearchFieldSelector (optional)
|
|
17846
17918
|
* @param body (optional)
|
|
17847
17919
|
* @return Success
|
|
17848
17920
|
*/
|
|
17849
|
-
|
|
17850
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/
|
|
17921
|
+
stickersBatches(parkId, startDate, endDate, searchValue, companyId, subCompanyId, take, skip, orderBy_Column, orderBy_OrderDirection, dateValidity, chaserTicketSearchFieldSelector, guid, body) {
|
|
17922
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}?";
|
|
17923
|
+
if (parkId === undefined || parkId === null)
|
|
17924
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
17925
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17851
17926
|
if (guid === undefined || guid === null)
|
|
17852
17927
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17853
17928
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17929
|
+
if (startDate !== undefined && startDate !== null)
|
|
17930
|
+
url_ += "StartDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
|
|
17931
|
+
if (endDate !== undefined && endDate !== null)
|
|
17932
|
+
url_ += "EndDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
|
|
17933
|
+
if (searchValue !== undefined && searchValue !== null)
|
|
17934
|
+
url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
|
|
17935
|
+
if (companyId !== undefined && companyId !== null)
|
|
17936
|
+
url_ += "CompanyId=" + encodeURIComponent("" + companyId) + "&";
|
|
17937
|
+
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
17938
|
+
url_ += "SubCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
17939
|
+
if (take !== undefined && take !== null)
|
|
17940
|
+
url_ += "Take=" + encodeURIComponent("" + take) + "&";
|
|
17941
|
+
if (skip !== undefined && skip !== null)
|
|
17942
|
+
url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
|
|
17943
|
+
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
17944
|
+
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
17945
|
+
if (orderBy_OrderDirection === null)
|
|
17946
|
+
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
17947
|
+
else if (orderBy_OrderDirection !== undefined)
|
|
17948
|
+
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
17854
17949
|
if (dateValidity === null)
|
|
17855
17950
|
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17856
17951
|
else if (dateValidity !== undefined)
|
|
17857
17952
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17953
|
+
if (chaserTicketSearchFieldSelector === null)
|
|
17954
|
+
throw new Error("The parameter 'chaserTicketSearchFieldSelector' cannot be null.");
|
|
17955
|
+
else if (chaserTicketSearchFieldSelector !== undefined)
|
|
17956
|
+
url_ += "chaserTicketSearchFieldSelector=" + encodeURIComponent("" + chaserTicketSearchFieldSelector) + "&";
|
|
17858
17957
|
url_ = url_.replace(/[?&]$/, "");
|
|
17859
17958
|
const content_ = JSON.stringify(body);
|
|
17860
17959
|
let options_ = {
|
|
@@ -17866,12 +17965,12 @@ class ChaserTicketServiceProxy {
|
|
|
17866
17965
|
"Accept": "text/plain"
|
|
17867
17966
|
})
|
|
17868
17967
|
};
|
|
17869
|
-
return this.http.request("
|
|
17870
|
-
return this.
|
|
17968
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17969
|
+
return this.processStickersBatches(response_);
|
|
17871
17970
|
})).pipe(catchError((response_) => {
|
|
17872
17971
|
if (response_ instanceof HttpResponseBase) {
|
|
17873
17972
|
try {
|
|
17874
|
-
return this.
|
|
17973
|
+
return this.processStickersBatches(response_);
|
|
17875
17974
|
}
|
|
17876
17975
|
catch (e) {
|
|
17877
17976
|
return throwError(e);
|
|
@@ -17881,7 +17980,7 @@ class ChaserTicketServiceProxy {
|
|
|
17881
17980
|
return throwError(response_);
|
|
17882
17981
|
}));
|
|
17883
17982
|
}
|
|
17884
|
-
|
|
17983
|
+
processStickersBatches(response) {
|
|
17885
17984
|
const status = response.status;
|
|
17886
17985
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17887
17986
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17895,7 +17994,7 @@ class ChaserTicketServiceProxy {
|
|
|
17895
17994
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17896
17995
|
let result200 = null;
|
|
17897
17996
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17898
|
-
result200 =
|
|
17997
|
+
result200 = StickerBatchDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
17899
17998
|
return of(result200);
|
|
17900
17999
|
}));
|
|
17901
18000
|
}
|
|
@@ -17907,31 +18006,38 @@ class ChaserTicketServiceProxy {
|
|
|
17907
18006
|
return of(null);
|
|
17908
18007
|
}
|
|
17909
18008
|
/**
|
|
17910
|
-
* @param
|
|
18009
|
+
* @param dateValidity (optional)
|
|
17911
18010
|
* @return Success
|
|
17912
18011
|
*/
|
|
17913
|
-
|
|
17914
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18012
|
+
stickersByBatchId(batchId, parkId, dateValidity, guid) {
|
|
18013
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/{batchId}/facility/{parkId}?";
|
|
18014
|
+
if (batchId === undefined || batchId === null)
|
|
18015
|
+
throw new Error("The parameter 'batchId' must be defined.");
|
|
18016
|
+
url_ = url_.replace("{batchId}", encodeURIComponent("" + batchId));
|
|
18017
|
+
if (parkId === undefined || parkId === null)
|
|
18018
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
18019
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17915
18020
|
if (guid === undefined || guid === null)
|
|
17916
18021
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17917
18022
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18023
|
+
if (dateValidity === null)
|
|
18024
|
+
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
18025
|
+
else if (dateValidity !== undefined)
|
|
18026
|
+
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17918
18027
|
url_ = url_.replace(/[?&]$/, "");
|
|
17919
|
-
const content_ = JSON.stringify(body);
|
|
17920
18028
|
let options_ = {
|
|
17921
|
-
body: content_,
|
|
17922
18029
|
observe: "response",
|
|
17923
18030
|
responseType: "blob",
|
|
17924
18031
|
headers: new HttpHeaders({
|
|
17925
|
-
"Content-Type": "application/json-patch+json",
|
|
17926
18032
|
"Accept": "text/plain"
|
|
17927
18033
|
})
|
|
17928
18034
|
};
|
|
17929
|
-
return this.http.request("
|
|
17930
|
-
return this.
|
|
18035
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18036
|
+
return this.processStickersByBatchId(response_);
|
|
17931
18037
|
})).pipe(catchError((response_) => {
|
|
17932
18038
|
if (response_ instanceof HttpResponseBase) {
|
|
17933
18039
|
try {
|
|
17934
|
-
return this.
|
|
18040
|
+
return this.processStickersByBatchId(response_);
|
|
17935
18041
|
}
|
|
17936
18042
|
catch (e) {
|
|
17937
18043
|
return throwError(e);
|
|
@@ -17941,7 +18047,7 @@ class ChaserTicketServiceProxy {
|
|
|
17941
18047
|
return throwError(response_);
|
|
17942
18048
|
}));
|
|
17943
18049
|
}
|
|
17944
|
-
|
|
18050
|
+
processStickersByBatchId(response) {
|
|
17945
18051
|
const status = response.status;
|
|
17946
18052
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17947
18053
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17955,7 +18061,7 @@ class ChaserTicketServiceProxy {
|
|
|
17955
18061
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17956
18062
|
let result200 = null;
|
|
17957
18063
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17958
|
-
result200 =
|
|
18064
|
+
result200 = StickerDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
17959
18065
|
return of(result200);
|
|
17960
18066
|
}));
|
|
17961
18067
|
}
|
|
@@ -17967,31 +18073,31 @@ class ChaserTicketServiceProxy {
|
|
|
17967
18073
|
return of(null);
|
|
17968
18074
|
}
|
|
17969
18075
|
/**
|
|
17970
|
-
* @param body (optional)
|
|
17971
18076
|
* @return Success
|
|
18077
|
+
* @deprecated
|
|
17972
18078
|
*/
|
|
17973
|
-
|
|
17974
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18079
|
+
stickerBatchDeepSearchDeprecated(entityId, guid) {
|
|
18080
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/batch/deep-search/{entityId}";
|
|
18081
|
+
if (entityId === undefined || entityId === null)
|
|
18082
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18083
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17975
18084
|
if (guid === undefined || guid === null)
|
|
17976
18085
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17977
18086
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17978
18087
|
url_ = url_.replace(/[?&]$/, "");
|
|
17979
|
-
const content_ = JSON.stringify(body);
|
|
17980
18088
|
let options_ = {
|
|
17981
|
-
body: content_,
|
|
17982
18089
|
observe: "response",
|
|
17983
18090
|
responseType: "blob",
|
|
17984
18091
|
headers: new HttpHeaders({
|
|
17985
|
-
"Content-Type": "application/json-patch+json",
|
|
17986
18092
|
"Accept": "text/plain"
|
|
17987
18093
|
})
|
|
17988
18094
|
};
|
|
17989
|
-
return this.http.request("
|
|
17990
|
-
return this.
|
|
18095
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18096
|
+
return this.processStickerBatchDeepSearchDeprecated(response_);
|
|
17991
18097
|
})).pipe(catchError((response_) => {
|
|
17992
18098
|
if (response_ instanceof HttpResponseBase) {
|
|
17993
18099
|
try {
|
|
17994
|
-
return this.
|
|
18100
|
+
return this.processStickerBatchDeepSearchDeprecated(response_);
|
|
17995
18101
|
}
|
|
17996
18102
|
catch (e) {
|
|
17997
18103
|
return throwError(e);
|
|
@@ -18001,7 +18107,7 @@ class ChaserTicketServiceProxy {
|
|
|
18001
18107
|
return throwError(response_);
|
|
18002
18108
|
}));
|
|
18003
18109
|
}
|
|
18004
|
-
|
|
18110
|
+
processStickerBatchDeepSearchDeprecated(response) {
|
|
18005
18111
|
const status = response.status;
|
|
18006
18112
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18007
18113
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18015,7 +18121,7 @@ class ChaserTicketServiceProxy {
|
|
|
18015
18121
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18016
18122
|
let result200 = null;
|
|
18017
18123
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18018
|
-
result200 =
|
|
18124
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18019
18125
|
return of(result200);
|
|
18020
18126
|
}));
|
|
18021
18127
|
}
|
|
@@ -18027,31 +18133,33 @@ class ChaserTicketServiceProxy {
|
|
|
18027
18133
|
return of(null);
|
|
18028
18134
|
}
|
|
18029
18135
|
/**
|
|
18030
|
-
* @param body (optional)
|
|
18031
18136
|
* @return Success
|
|
18032
18137
|
*/
|
|
18033
|
-
|
|
18034
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18138
|
+
stickerBatchDeepSearch(parkId, entityId, guid) {
|
|
18139
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/batch/deep-search/{entityId}";
|
|
18140
|
+
if (parkId === undefined || parkId === null)
|
|
18141
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
18142
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18143
|
+
if (entityId === undefined || entityId === null)
|
|
18144
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18145
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18035
18146
|
if (guid === undefined || guid === null)
|
|
18036
18147
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18037
18148
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18038
18149
|
url_ = url_.replace(/[?&]$/, "");
|
|
18039
|
-
const content_ = JSON.stringify(body);
|
|
18040
18150
|
let options_ = {
|
|
18041
|
-
body: content_,
|
|
18042
18151
|
observe: "response",
|
|
18043
18152
|
responseType: "blob",
|
|
18044
18153
|
headers: new HttpHeaders({
|
|
18045
|
-
"Content-Type": "application/json-patch+json",
|
|
18046
18154
|
"Accept": "text/plain"
|
|
18047
18155
|
})
|
|
18048
18156
|
};
|
|
18049
|
-
return this.http.request("
|
|
18050
|
-
return this.
|
|
18157
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18158
|
+
return this.processStickerBatchDeepSearch(response_);
|
|
18051
18159
|
})).pipe(catchError((response_) => {
|
|
18052
18160
|
if (response_ instanceof HttpResponseBase) {
|
|
18053
18161
|
try {
|
|
18054
|
-
return this.
|
|
18162
|
+
return this.processStickerBatchDeepSearch(response_);
|
|
18055
18163
|
}
|
|
18056
18164
|
catch (e) {
|
|
18057
18165
|
return throwError(e);
|
|
@@ -18061,7 +18169,7 @@ class ChaserTicketServiceProxy {
|
|
|
18061
18169
|
return throwError(response_);
|
|
18062
18170
|
}));
|
|
18063
18171
|
}
|
|
18064
|
-
|
|
18172
|
+
processStickerBatchDeepSearch(response) {
|
|
18065
18173
|
const status = response.status;
|
|
18066
18174
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18067
18175
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18075,7 +18183,7 @@ class ChaserTicketServiceProxy {
|
|
|
18075
18183
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18076
18184
|
let result200 = null;
|
|
18077
18185
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18078
|
-
result200 =
|
|
18186
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18079
18187
|
return of(result200);
|
|
18080
18188
|
}));
|
|
18081
18189
|
}
|
|
@@ -18087,24 +18195,17 @@ class ChaserTicketServiceProxy {
|
|
|
18087
18195
|
return of(null);
|
|
18088
18196
|
}
|
|
18089
18197
|
/**
|
|
18090
|
-
* @param dateValidity (optional)
|
|
18091
18198
|
* @return Success
|
|
18199
|
+
* @deprecated
|
|
18092
18200
|
*/
|
|
18093
|
-
|
|
18094
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18095
|
-
if (
|
|
18096
|
-
throw new Error("The parameter '
|
|
18097
|
-
url_ = url_.replace("{
|
|
18098
|
-
if (parkId === undefined || parkId === null)
|
|
18099
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18100
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18201
|
+
singleStickerDeepSearchDeprecated(entityId, guid) {
|
|
18202
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/deep-search/{entityId}";
|
|
18203
|
+
if (entityId === undefined || entityId === null)
|
|
18204
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18205
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18101
18206
|
if (guid === undefined || guid === null)
|
|
18102
18207
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18103
18208
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18104
|
-
if (dateValidity === null)
|
|
18105
|
-
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
18106
|
-
else if (dateValidity !== undefined)
|
|
18107
|
-
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18108
18209
|
url_ = url_.replace(/[?&]$/, "");
|
|
18109
18210
|
let options_ = {
|
|
18110
18211
|
observe: "response",
|
|
@@ -18114,11 +18215,11 @@ class ChaserTicketServiceProxy {
|
|
|
18114
18215
|
})
|
|
18115
18216
|
};
|
|
18116
18217
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18117
|
-
return this.
|
|
18218
|
+
return this.processSingleStickerDeepSearchDeprecated(response_);
|
|
18118
18219
|
})).pipe(catchError((response_) => {
|
|
18119
18220
|
if (response_ instanceof HttpResponseBase) {
|
|
18120
18221
|
try {
|
|
18121
|
-
return this.
|
|
18222
|
+
return this.processSingleStickerDeepSearchDeprecated(response_);
|
|
18122
18223
|
}
|
|
18123
18224
|
catch (e) {
|
|
18124
18225
|
return throwError(e);
|
|
@@ -18128,7 +18229,7 @@ class ChaserTicketServiceProxy {
|
|
|
18128
18229
|
return throwError(response_);
|
|
18129
18230
|
}));
|
|
18130
18231
|
}
|
|
18131
|
-
|
|
18232
|
+
processSingleStickerDeepSearchDeprecated(response) {
|
|
18132
18233
|
const status = response.status;
|
|
18133
18234
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18134
18235
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18142,7 +18243,7 @@ class ChaserTicketServiceProxy {
|
|
|
18142
18243
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18143
18244
|
let result200 = null;
|
|
18144
18245
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18145
|
-
result200 =
|
|
18246
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18146
18247
|
return of(result200);
|
|
18147
18248
|
}));
|
|
18148
18249
|
}
|
|
@@ -18155,10 +18256,12 @@ class ChaserTicketServiceProxy {
|
|
|
18155
18256
|
}
|
|
18156
18257
|
/**
|
|
18157
18258
|
* @return Success
|
|
18158
|
-
* @deprecated
|
|
18159
18259
|
*/
|
|
18160
|
-
|
|
18161
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18260
|
+
singleStickerDeepSearch(parkId, entityId, guid) {
|
|
18261
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/deep-search/{entityId}";
|
|
18262
|
+
if (parkId === undefined || parkId === null)
|
|
18263
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
18264
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18162
18265
|
if (entityId === undefined || entityId === null)
|
|
18163
18266
|
throw new Error("The parameter 'entityId' must be defined.");
|
|
18164
18267
|
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
@@ -18174,11 +18277,11 @@ class ChaserTicketServiceProxy {
|
|
|
18174
18277
|
})
|
|
18175
18278
|
};
|
|
18176
18279
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18177
|
-
return this.
|
|
18280
|
+
return this.processSingleStickerDeepSearch(response_);
|
|
18178
18281
|
})).pipe(catchError((response_) => {
|
|
18179
18282
|
if (response_ instanceof HttpResponseBase) {
|
|
18180
18283
|
try {
|
|
18181
|
-
return this.
|
|
18284
|
+
return this.processSingleStickerDeepSearch(response_);
|
|
18182
18285
|
}
|
|
18183
18286
|
catch (e) {
|
|
18184
18287
|
return throwError(e);
|
|
@@ -18188,7 +18291,7 @@ class ChaserTicketServiceProxy {
|
|
|
18188
18291
|
return throwError(response_);
|
|
18189
18292
|
}));
|
|
18190
18293
|
}
|
|
18191
|
-
|
|
18294
|
+
processSingleStickerDeepSearch(response) {
|
|
18192
18295
|
const status = response.status;
|
|
18193
18296
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18194
18297
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18202,7 +18305,7 @@ class ChaserTicketServiceProxy {
|
|
|
18202
18305
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18203
18306
|
let result200 = null;
|
|
18204
18307
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18205
|
-
result200 =
|
|
18308
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18206
18309
|
return of(result200);
|
|
18207
18310
|
}));
|
|
18208
18311
|
}
|
|
@@ -18214,33 +18317,36 @@ class ChaserTicketServiceProxy {
|
|
|
18214
18317
|
return of(null);
|
|
18215
18318
|
}
|
|
18216
18319
|
/**
|
|
18320
|
+
* @param dateValidity (optional)
|
|
18321
|
+
* @param body (optional)
|
|
18217
18322
|
* @return Success
|
|
18218
18323
|
*/
|
|
18219
|
-
|
|
18220
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18221
|
-
if (parkId === undefined || parkId === null)
|
|
18222
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18223
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18224
|
-
if (entityId === undefined || entityId === null)
|
|
18225
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18226
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18324
|
+
createStickerBatch(dateValidity, guid, body) {
|
|
18325
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/create?";
|
|
18227
18326
|
if (guid === undefined || guid === null)
|
|
18228
18327
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18229
18328
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18329
|
+
if (dateValidity === null)
|
|
18330
|
+
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
18331
|
+
else if (dateValidity !== undefined)
|
|
18332
|
+
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18230
18333
|
url_ = url_.replace(/[?&]$/, "");
|
|
18334
|
+
const content_ = JSON.stringify(body);
|
|
18231
18335
|
let options_ = {
|
|
18336
|
+
body: content_,
|
|
18232
18337
|
observe: "response",
|
|
18233
18338
|
responseType: "blob",
|
|
18234
18339
|
headers: new HttpHeaders({
|
|
18340
|
+
"Content-Type": "application/json-patch+json",
|
|
18235
18341
|
"Accept": "text/plain"
|
|
18236
18342
|
})
|
|
18237
18343
|
};
|
|
18238
|
-
return this.http.request("
|
|
18239
|
-
return this.
|
|
18344
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18345
|
+
return this.processCreateStickerBatch(response_);
|
|
18240
18346
|
})).pipe(catchError((response_) => {
|
|
18241
18347
|
if (response_ instanceof HttpResponseBase) {
|
|
18242
18348
|
try {
|
|
18243
|
-
return this.
|
|
18349
|
+
return this.processCreateStickerBatch(response_);
|
|
18244
18350
|
}
|
|
18245
18351
|
catch (e) {
|
|
18246
18352
|
return throwError(e);
|
|
@@ -18250,7 +18356,7 @@ class ChaserTicketServiceProxy {
|
|
|
18250
18356
|
return throwError(response_);
|
|
18251
18357
|
}));
|
|
18252
18358
|
}
|
|
18253
|
-
|
|
18359
|
+
processCreateStickerBatch(response) {
|
|
18254
18360
|
const status = response.status;
|
|
18255
18361
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18256
18362
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18264,7 +18370,7 @@ class ChaserTicketServiceProxy {
|
|
|
18264
18370
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18265
18371
|
let result200 = null;
|
|
18266
18372
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18267
|
-
result200 =
|
|
18373
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
18268
18374
|
return of(result200);
|
|
18269
18375
|
}));
|
|
18270
18376
|
}
|
|
@@ -18276,31 +18382,36 @@ class ChaserTicketServiceProxy {
|
|
|
18276
18382
|
return of(null);
|
|
18277
18383
|
}
|
|
18278
18384
|
/**
|
|
18385
|
+
* @param dateValidity (optional)
|
|
18386
|
+
* @param body (optional)
|
|
18279
18387
|
* @return Success
|
|
18280
|
-
* @deprecated
|
|
18281
18388
|
*/
|
|
18282
|
-
|
|
18283
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18284
|
-
if (entityId === undefined || entityId === null)
|
|
18285
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18286
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18389
|
+
createBasicStickerBatch(dateValidity, guid, body) {
|
|
18390
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/create-basic?";
|
|
18287
18391
|
if (guid === undefined || guid === null)
|
|
18288
18392
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18289
18393
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18394
|
+
if (dateValidity === null)
|
|
18395
|
+
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
18396
|
+
else if (dateValidity !== undefined)
|
|
18397
|
+
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18290
18398
|
url_ = url_.replace(/[?&]$/, "");
|
|
18399
|
+
const content_ = JSON.stringify(body);
|
|
18291
18400
|
let options_ = {
|
|
18401
|
+
body: content_,
|
|
18292
18402
|
observe: "response",
|
|
18293
18403
|
responseType: "blob",
|
|
18294
18404
|
headers: new HttpHeaders({
|
|
18405
|
+
"Content-Type": "application/json-patch+json",
|
|
18295
18406
|
"Accept": "text/plain"
|
|
18296
18407
|
})
|
|
18297
18408
|
};
|
|
18298
|
-
return this.http.request("
|
|
18299
|
-
return this.
|
|
18409
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18410
|
+
return this.processCreateBasicStickerBatch(response_);
|
|
18300
18411
|
})).pipe(catchError((response_) => {
|
|
18301
18412
|
if (response_ instanceof HttpResponseBase) {
|
|
18302
18413
|
try {
|
|
18303
|
-
return this.
|
|
18414
|
+
return this.processCreateBasicStickerBatch(response_);
|
|
18304
18415
|
}
|
|
18305
18416
|
catch (e) {
|
|
18306
18417
|
return throwError(e);
|
|
@@ -18310,7 +18421,7 @@ class ChaserTicketServiceProxy {
|
|
|
18310
18421
|
return throwError(response_);
|
|
18311
18422
|
}));
|
|
18312
18423
|
}
|
|
18313
|
-
|
|
18424
|
+
processCreateBasicStickerBatch(response) {
|
|
18314
18425
|
const status = response.status;
|
|
18315
18426
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18316
18427
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18324,7 +18435,7 @@ class ChaserTicketServiceProxy {
|
|
|
18324
18435
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18325
18436
|
let result200 = null;
|
|
18326
18437
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18327
|
-
result200 =
|
|
18438
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
18328
18439
|
return of(result200);
|
|
18329
18440
|
}));
|
|
18330
18441
|
}
|
|
@@ -18336,33 +18447,36 @@ class ChaserTicketServiceProxy {
|
|
|
18336
18447
|
return of(null);
|
|
18337
18448
|
}
|
|
18338
18449
|
/**
|
|
18450
|
+
* @param dateValidity (optional)
|
|
18451
|
+
* @param body (optional)
|
|
18339
18452
|
* @return Success
|
|
18340
18453
|
*/
|
|
18341
|
-
|
|
18342
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18343
|
-
if (parkId === undefined || parkId === null)
|
|
18344
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18345
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18346
|
-
if (entityId === undefined || entityId === null)
|
|
18347
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18348
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18454
|
+
updateStickerBatch(dateValidity, guid, body) {
|
|
18455
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker?";
|
|
18349
18456
|
if (guid === undefined || guid === null)
|
|
18350
18457
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18351
18458
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18459
|
+
if (dateValidity === null)
|
|
18460
|
+
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
18461
|
+
else if (dateValidity !== undefined)
|
|
18462
|
+
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18352
18463
|
url_ = url_.replace(/[?&]$/, "");
|
|
18464
|
+
const content_ = JSON.stringify(body);
|
|
18353
18465
|
let options_ = {
|
|
18466
|
+
body: content_,
|
|
18354
18467
|
observe: "response",
|
|
18355
18468
|
responseType: "blob",
|
|
18356
18469
|
headers: new HttpHeaders({
|
|
18470
|
+
"Content-Type": "application/json-patch+json",
|
|
18357
18471
|
"Accept": "text/plain"
|
|
18358
18472
|
})
|
|
18359
18473
|
};
|
|
18360
|
-
return this.http.request("
|
|
18361
|
-
return this.
|
|
18474
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18475
|
+
return this.processUpdateStickerBatch(response_);
|
|
18362
18476
|
})).pipe(catchError((response_) => {
|
|
18363
18477
|
if (response_ instanceof HttpResponseBase) {
|
|
18364
18478
|
try {
|
|
18365
|
-
return this.
|
|
18479
|
+
return this.processUpdateStickerBatch(response_);
|
|
18366
18480
|
}
|
|
18367
18481
|
catch (e) {
|
|
18368
18482
|
return throwError(e);
|
|
@@ -18372,7 +18486,7 @@ class ChaserTicketServiceProxy {
|
|
|
18372
18486
|
return throwError(response_);
|
|
18373
18487
|
}));
|
|
18374
18488
|
}
|
|
18375
|
-
|
|
18489
|
+
processUpdateStickerBatch(response) {
|
|
18376
18490
|
const status = response.status;
|
|
18377
18491
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18378
18492
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18386,7 +18500,7 @@ class ChaserTicketServiceProxy {
|
|
|
18386
18500
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18387
18501
|
let result200 = null;
|
|
18388
18502
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18389
|
-
result200 =
|
|
18503
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
18390
18504
|
return of(result200);
|
|
18391
18505
|
}));
|
|
18392
18506
|
}
|
|
@@ -18401,8 +18515,8 @@ class ChaserTicketServiceProxy {
|
|
|
18401
18515
|
* @param parkId (optional)
|
|
18402
18516
|
* @return Success
|
|
18403
18517
|
*/
|
|
18404
|
-
|
|
18405
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18518
|
+
deleteStickerBatch(id, parkId, guid) {
|
|
18519
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/{id}?";
|
|
18406
18520
|
if (id === undefined || id === null)
|
|
18407
18521
|
throw new Error("The parameter 'id' must be defined.");
|
|
18408
18522
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -18422,11 +18536,11 @@ class ChaserTicketServiceProxy {
|
|
|
18422
18536
|
})
|
|
18423
18537
|
};
|
|
18424
18538
|
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
18425
|
-
return this.
|
|
18539
|
+
return this.processDeleteStickerBatch(response_);
|
|
18426
18540
|
})).pipe(catchError((response_) => {
|
|
18427
18541
|
if (response_ instanceof HttpResponseBase) {
|
|
18428
18542
|
try {
|
|
18429
|
-
return this.
|
|
18543
|
+
return this.processDeleteStickerBatch(response_);
|
|
18430
18544
|
}
|
|
18431
18545
|
catch (e) {
|
|
18432
18546
|
return throwError(e);
|
|
@@ -18436,7 +18550,7 @@ class ChaserTicketServiceProxy {
|
|
|
18436
18550
|
return throwError(response_);
|
|
18437
18551
|
}));
|
|
18438
18552
|
}
|
|
18439
|
-
|
|
18553
|
+
processDeleteStickerBatch(response) {
|
|
18440
18554
|
const status = response.status;
|
|
18441
18555
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18442
18556
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18450,7 +18564,7 @@ class ChaserTicketServiceProxy {
|
|
|
18450
18564
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18451
18565
|
let result200 = null;
|
|
18452
18566
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18453
|
-
result200 =
|
|
18567
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18454
18568
|
return of(result200);
|
|
18455
18569
|
}));
|
|
18456
18570
|
}
|
|
@@ -18463,16 +18577,11 @@ class ChaserTicketServiceProxy {
|
|
|
18463
18577
|
}
|
|
18464
18578
|
/**
|
|
18465
18579
|
* @param dateValidity (optional)
|
|
18580
|
+
* @param body (optional)
|
|
18466
18581
|
* @return Success
|
|
18467
18582
|
*/
|
|
18468
|
-
|
|
18469
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/
|
|
18470
|
-
if (batchId === undefined || batchId === null)
|
|
18471
|
-
throw new Error("The parameter 'batchId' must be defined.");
|
|
18472
|
-
url_ = url_.replace("{batchId}", encodeURIComponent("" + batchId));
|
|
18473
|
-
if (parkId === undefined || parkId === null)
|
|
18474
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18475
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18583
|
+
markStickerBatchAsSent(dateValidity, guid, body) {
|
|
18584
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/mark-batch-as-sent?";
|
|
18476
18585
|
if (guid === undefined || guid === null)
|
|
18477
18586
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18478
18587
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -18481,19 +18590,22 @@ class ChaserTicketServiceProxy {
|
|
|
18481
18590
|
else if (dateValidity !== undefined)
|
|
18482
18591
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18483
18592
|
url_ = url_.replace(/[?&]$/, "");
|
|
18593
|
+
const content_ = JSON.stringify(body);
|
|
18484
18594
|
let options_ = {
|
|
18595
|
+
body: content_,
|
|
18485
18596
|
observe: "response",
|
|
18486
18597
|
responseType: "blob",
|
|
18487
18598
|
headers: new HttpHeaders({
|
|
18599
|
+
"Content-Type": "application/json-patch+json",
|
|
18488
18600
|
"Accept": "text/plain"
|
|
18489
18601
|
})
|
|
18490
18602
|
};
|
|
18491
|
-
return this.http.request("
|
|
18492
|
-
return this.
|
|
18603
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18604
|
+
return this.processMarkStickerBatchAsSent(response_);
|
|
18493
18605
|
})).pipe(catchError((response_) => {
|
|
18494
18606
|
if (response_ instanceof HttpResponseBase) {
|
|
18495
18607
|
try {
|
|
18496
|
-
return this.
|
|
18608
|
+
return this.processMarkStickerBatchAsSent(response_);
|
|
18497
18609
|
}
|
|
18498
18610
|
catch (e) {
|
|
18499
18611
|
return throwError(e);
|
|
@@ -18503,7 +18615,7 @@ class ChaserTicketServiceProxy {
|
|
|
18503
18615
|
return throwError(response_);
|
|
18504
18616
|
}));
|
|
18505
18617
|
}
|
|
18506
|
-
|
|
18618
|
+
processMarkStickerBatchAsSent(response) {
|
|
18507
18619
|
const status = response.status;
|
|
18508
18620
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18509
18621
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18517,7 +18629,7 @@ class ChaserTicketServiceProxy {
|
|
|
18517
18629
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18518
18630
|
let result200 = null;
|
|
18519
18631
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18520
|
-
result200 =
|
|
18632
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18521
18633
|
return of(result200);
|
|
18522
18634
|
}));
|
|
18523
18635
|
}
|
|
@@ -18529,31 +18641,32 @@ class ChaserTicketServiceProxy {
|
|
|
18529
18641
|
return of(null);
|
|
18530
18642
|
}
|
|
18531
18643
|
/**
|
|
18644
|
+
* @param body (optional)
|
|
18532
18645
|
* @return Success
|
|
18533
18646
|
* @deprecated
|
|
18534
18647
|
*/
|
|
18535
|
-
|
|
18536
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/batch
|
|
18537
|
-
if (entityId === undefined || entityId === null)
|
|
18538
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18539
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18648
|
+
markStickerBatchAsPrintedDeprecated(guid, body) {
|
|
18649
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/mark-batch-as-printed";
|
|
18540
18650
|
if (guid === undefined || guid === null)
|
|
18541
18651
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18542
18652
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18543
18653
|
url_ = url_.replace(/[?&]$/, "");
|
|
18654
|
+
const content_ = JSON.stringify(body);
|
|
18544
18655
|
let options_ = {
|
|
18656
|
+
body: content_,
|
|
18545
18657
|
observe: "response",
|
|
18546
18658
|
responseType: "blob",
|
|
18547
18659
|
headers: new HttpHeaders({
|
|
18660
|
+
"Content-Type": "application/json-patch+json",
|
|
18548
18661
|
"Accept": "text/plain"
|
|
18549
18662
|
})
|
|
18550
18663
|
};
|
|
18551
|
-
return this.http.request("
|
|
18552
|
-
return this.
|
|
18664
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18665
|
+
return this.processMarkStickerBatchAsPrintedDeprecated(response_);
|
|
18553
18666
|
})).pipe(catchError((response_) => {
|
|
18554
18667
|
if (response_ instanceof HttpResponseBase) {
|
|
18555
18668
|
try {
|
|
18556
|
-
return this.
|
|
18669
|
+
return this.processMarkStickerBatchAsPrintedDeprecated(response_);
|
|
18557
18670
|
}
|
|
18558
18671
|
catch (e) {
|
|
18559
18672
|
return throwError(e);
|
|
@@ -18563,7 +18676,7 @@ class ChaserTicketServiceProxy {
|
|
|
18563
18676
|
return throwError(response_);
|
|
18564
18677
|
}));
|
|
18565
18678
|
}
|
|
18566
|
-
|
|
18679
|
+
processMarkStickerBatchAsPrintedDeprecated(response) {
|
|
18567
18680
|
const status = response.status;
|
|
18568
18681
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18569
18682
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18577,7 +18690,7 @@ class ChaserTicketServiceProxy {
|
|
|
18577
18690
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18578
18691
|
let result200 = null;
|
|
18579
18692
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18580
|
-
result200 =
|
|
18693
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18581
18694
|
return of(result200);
|
|
18582
18695
|
}));
|
|
18583
18696
|
}
|
|
@@ -18589,33 +18702,34 @@ class ChaserTicketServiceProxy {
|
|
|
18589
18702
|
return of(null);
|
|
18590
18703
|
}
|
|
18591
18704
|
/**
|
|
18705
|
+
* @param body (optional)
|
|
18592
18706
|
* @return Success
|
|
18593
18707
|
*/
|
|
18594
|
-
|
|
18595
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/batch
|
|
18708
|
+
markStickerBatchAsPrinted(parkId, guid, body) {
|
|
18709
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/mark-batch-as-printed";
|
|
18596
18710
|
if (parkId === undefined || parkId === null)
|
|
18597
18711
|
throw new Error("The parameter 'parkId' must be defined.");
|
|
18598
18712
|
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18599
|
-
if (entityId === undefined || entityId === null)
|
|
18600
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18601
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18602
18713
|
if (guid === undefined || guid === null)
|
|
18603
18714
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18604
18715
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18605
18716
|
url_ = url_.replace(/[?&]$/, "");
|
|
18717
|
+
const content_ = JSON.stringify(body);
|
|
18606
18718
|
let options_ = {
|
|
18719
|
+
body: content_,
|
|
18607
18720
|
observe: "response",
|
|
18608
18721
|
responseType: "blob",
|
|
18609
18722
|
headers: new HttpHeaders({
|
|
18723
|
+
"Content-Type": "application/json-patch+json",
|
|
18610
18724
|
"Accept": "text/plain"
|
|
18611
18725
|
})
|
|
18612
18726
|
};
|
|
18613
|
-
return this.http.request("
|
|
18614
|
-
return this.
|
|
18727
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18728
|
+
return this.processMarkStickerBatchAsPrinted(response_);
|
|
18615
18729
|
})).pipe(catchError((response_) => {
|
|
18616
18730
|
if (response_ instanceof HttpResponseBase) {
|
|
18617
18731
|
try {
|
|
18618
|
-
return this.
|
|
18732
|
+
return this.processMarkStickerBatchAsPrinted(response_);
|
|
18619
18733
|
}
|
|
18620
18734
|
catch (e) {
|
|
18621
18735
|
return throwError(e);
|
|
@@ -18625,7 +18739,7 @@ class ChaserTicketServiceProxy {
|
|
|
18625
18739
|
return throwError(response_);
|
|
18626
18740
|
}));
|
|
18627
18741
|
}
|
|
18628
|
-
|
|
18742
|
+
processMarkStickerBatchAsPrinted(response) {
|
|
18629
18743
|
const status = response.status;
|
|
18630
18744
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18631
18745
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18639,7 +18753,7 @@ class ChaserTicketServiceProxy {
|
|
|
18639
18753
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18640
18754
|
let result200 = null;
|
|
18641
18755
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18642
|
-
result200 =
|
|
18756
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18643
18757
|
return of(result200);
|
|
18644
18758
|
}));
|
|
18645
18759
|
}
|
|
@@ -18651,31 +18765,31 @@ class ChaserTicketServiceProxy {
|
|
|
18651
18765
|
return of(null);
|
|
18652
18766
|
}
|
|
18653
18767
|
/**
|
|
18768
|
+
* @param body (optional)
|
|
18654
18769
|
* @return Success
|
|
18655
|
-
* @deprecated
|
|
18656
18770
|
*/
|
|
18657
|
-
|
|
18658
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18659
|
-
if (entityId === undefined || entityId === null)
|
|
18660
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18661
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18771
|
+
sendCouponsByEmail(guid, body) {
|
|
18772
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/send-coupons-by-email";
|
|
18662
18773
|
if (guid === undefined || guid === null)
|
|
18663
18774
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18664
18775
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18665
18776
|
url_ = url_.replace(/[?&]$/, "");
|
|
18777
|
+
const content_ = JSON.stringify(body);
|
|
18666
18778
|
let options_ = {
|
|
18779
|
+
body: content_,
|
|
18667
18780
|
observe: "response",
|
|
18668
18781
|
responseType: "blob",
|
|
18669
18782
|
headers: new HttpHeaders({
|
|
18783
|
+
"Content-Type": "application/json-patch+json",
|
|
18670
18784
|
"Accept": "text/plain"
|
|
18671
18785
|
})
|
|
18672
18786
|
};
|
|
18673
|
-
return this.http.request("
|
|
18674
|
-
return this.
|
|
18787
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18788
|
+
return this.processSendCouponsByEmail(response_);
|
|
18675
18789
|
})).pipe(catchError((response_) => {
|
|
18676
18790
|
if (response_ instanceof HttpResponseBase) {
|
|
18677
18791
|
try {
|
|
18678
|
-
return this.
|
|
18792
|
+
return this.processSendCouponsByEmail(response_);
|
|
18679
18793
|
}
|
|
18680
18794
|
catch (e) {
|
|
18681
18795
|
return throwError(e);
|
|
@@ -18685,7 +18799,7 @@ class ChaserTicketServiceProxy {
|
|
|
18685
18799
|
return throwError(response_);
|
|
18686
18800
|
}));
|
|
18687
18801
|
}
|
|
18688
|
-
|
|
18802
|
+
processSendCouponsByEmail(response) {
|
|
18689
18803
|
const status = response.status;
|
|
18690
18804
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18691
18805
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18699,7 +18813,7 @@ class ChaserTicketServiceProxy {
|
|
|
18699
18813
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18700
18814
|
let result200 = null;
|
|
18701
18815
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18702
|
-
result200 =
|
|
18816
|
+
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
18703
18817
|
return of(result200);
|
|
18704
18818
|
}));
|
|
18705
18819
|
}
|
|
@@ -18711,33 +18825,31 @@ class ChaserTicketServiceProxy {
|
|
|
18711
18825
|
return of(null);
|
|
18712
18826
|
}
|
|
18713
18827
|
/**
|
|
18828
|
+
* @param body (optional)
|
|
18714
18829
|
* @return Success
|
|
18715
18830
|
*/
|
|
18716
|
-
|
|
18717
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18718
|
-
if (parkId === undefined || parkId === null)
|
|
18719
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18720
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18721
|
-
if (entityId === undefined || entityId === null)
|
|
18722
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18723
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18831
|
+
markCouponAsUsed(guid, body) {
|
|
18832
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/mark-coupon-as-used";
|
|
18724
18833
|
if (guid === undefined || guid === null)
|
|
18725
18834
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18726
18835
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18727
18836
|
url_ = url_.replace(/[?&]$/, "");
|
|
18837
|
+
const content_ = JSON.stringify(body);
|
|
18728
18838
|
let options_ = {
|
|
18839
|
+
body: content_,
|
|
18729
18840
|
observe: "response",
|
|
18730
18841
|
responseType: "blob",
|
|
18731
18842
|
headers: new HttpHeaders({
|
|
18843
|
+
"Content-Type": "application/json-patch+json",
|
|
18732
18844
|
"Accept": "text/plain"
|
|
18733
18845
|
})
|
|
18734
18846
|
};
|
|
18735
|
-
return this.http.request("
|
|
18736
|
-
return this.
|
|
18847
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18848
|
+
return this.processMarkCouponAsUsed(response_);
|
|
18737
18849
|
})).pipe(catchError((response_) => {
|
|
18738
18850
|
if (response_ instanceof HttpResponseBase) {
|
|
18739
18851
|
try {
|
|
18740
|
-
return this.
|
|
18852
|
+
return this.processMarkCouponAsUsed(response_);
|
|
18741
18853
|
}
|
|
18742
18854
|
catch (e) {
|
|
18743
18855
|
return throwError(e);
|
|
@@ -18747,7 +18859,7 @@ class ChaserTicketServiceProxy {
|
|
|
18747
18859
|
return throwError(response_);
|
|
18748
18860
|
}));
|
|
18749
18861
|
}
|
|
18750
|
-
|
|
18862
|
+
processMarkCouponAsUsed(response) {
|
|
18751
18863
|
const status = response.status;
|
|
18752
18864
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18753
18865
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18761,7 +18873,7 @@ class ChaserTicketServiceProxy {
|
|
|
18761
18873
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18762
18874
|
let result200 = null;
|
|
18763
18875
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18764
|
-
result200 =
|
|
18876
|
+
result200 = CouponDtoHttpResponseData.fromJS(resultData200);
|
|
18765
18877
|
return of(result200);
|
|
18766
18878
|
}));
|
|
18767
18879
|
}
|
|
@@ -18773,76 +18885,11 @@ class ChaserTicketServiceProxy {
|
|
|
18773
18885
|
return of(null);
|
|
18774
18886
|
}
|
|
18775
18887
|
/**
|
|
18776
|
-
* @param
|
|
18888
|
+
* @param body (optional)
|
|
18777
18889
|
* @return Success
|
|
18778
18890
|
*/
|
|
18779
|
-
|
|
18780
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker
|
|
18781
|
-
if (id === undefined || id === null)
|
|
18782
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
18783
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18784
|
-
if (guid === undefined || guid === null)
|
|
18785
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
18786
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18787
|
-
if (parkId === null)
|
|
18788
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
18789
|
-
else if (parkId !== undefined)
|
|
18790
|
-
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
18791
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18792
|
-
let options_ = {
|
|
18793
|
-
observe: "response",
|
|
18794
|
-
responseType: "blob",
|
|
18795
|
-
headers: new HttpHeaders({
|
|
18796
|
-
"Accept": "text/plain"
|
|
18797
|
-
})
|
|
18798
|
-
};
|
|
18799
|
-
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
18800
|
-
return this.processDeleteStickerBatch(response_);
|
|
18801
|
-
})).pipe(catchError((response_) => {
|
|
18802
|
-
if (response_ instanceof HttpResponseBase) {
|
|
18803
|
-
try {
|
|
18804
|
-
return this.processDeleteStickerBatch(response_);
|
|
18805
|
-
}
|
|
18806
|
-
catch (e) {
|
|
18807
|
-
return throwError(e);
|
|
18808
|
-
}
|
|
18809
|
-
}
|
|
18810
|
-
else
|
|
18811
|
-
return throwError(response_);
|
|
18812
|
-
}));
|
|
18813
|
-
}
|
|
18814
|
-
processDeleteStickerBatch(response) {
|
|
18815
|
-
const status = response.status;
|
|
18816
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18817
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
18818
|
-
let _headers = {};
|
|
18819
|
-
if (response.headers) {
|
|
18820
|
-
for (let key of response.headers.keys()) {
|
|
18821
|
-
_headers[key] = response.headers.get(key);
|
|
18822
|
-
}
|
|
18823
|
-
}
|
|
18824
|
-
if (status === 200) {
|
|
18825
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18826
|
-
let result200 = null;
|
|
18827
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18828
|
-
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18829
|
-
return of(result200);
|
|
18830
|
-
}));
|
|
18831
|
-
}
|
|
18832
|
-
else if (status !== 200 && status !== 204) {
|
|
18833
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18834
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18835
|
-
}));
|
|
18836
|
-
}
|
|
18837
|
-
return of(null);
|
|
18838
|
-
}
|
|
18839
|
-
/**
|
|
18840
|
-
* @param body (optional)
|
|
18841
|
-
* @return Success
|
|
18842
|
-
* @deprecated
|
|
18843
|
-
*/
|
|
18844
|
-
markStickerBatchAsPrintedDeprecated(guid, body) {
|
|
18845
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/mark-batch-as-printed";
|
|
18891
|
+
markStickerAsUsed(guid, body) {
|
|
18892
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/mark-sticker-as-used";
|
|
18846
18893
|
if (guid === undefined || guid === null)
|
|
18847
18894
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18848
18895
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -18857,140 +18904,12 @@ class ChaserTicketServiceProxy {
|
|
|
18857
18904
|
"Accept": "text/plain"
|
|
18858
18905
|
})
|
|
18859
18906
|
};
|
|
18860
|
-
return this.http.request("
|
|
18861
|
-
return this.
|
|
18862
|
-
})).pipe(catchError((response_) => {
|
|
18863
|
-
if (response_ instanceof HttpResponseBase) {
|
|
18864
|
-
try {
|
|
18865
|
-
return this.processMarkStickerBatchAsPrintedDeprecated(response_);
|
|
18866
|
-
}
|
|
18867
|
-
catch (e) {
|
|
18868
|
-
return throwError(e);
|
|
18869
|
-
}
|
|
18870
|
-
}
|
|
18871
|
-
else
|
|
18872
|
-
return throwError(response_);
|
|
18873
|
-
}));
|
|
18874
|
-
}
|
|
18875
|
-
processMarkStickerBatchAsPrintedDeprecated(response) {
|
|
18876
|
-
const status = response.status;
|
|
18877
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18878
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
18879
|
-
let _headers = {};
|
|
18880
|
-
if (response.headers) {
|
|
18881
|
-
for (let key of response.headers.keys()) {
|
|
18882
|
-
_headers[key] = response.headers.get(key);
|
|
18883
|
-
}
|
|
18884
|
-
}
|
|
18885
|
-
if (status === 200) {
|
|
18886
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18887
|
-
let result200 = null;
|
|
18888
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18889
|
-
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18890
|
-
return of(result200);
|
|
18891
|
-
}));
|
|
18892
|
-
}
|
|
18893
|
-
else if (status !== 200 && status !== 204) {
|
|
18894
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18895
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18896
|
-
}));
|
|
18897
|
-
}
|
|
18898
|
-
return of(null);
|
|
18899
|
-
}
|
|
18900
|
-
/**
|
|
18901
|
-
* @param body (optional)
|
|
18902
|
-
* @return Success
|
|
18903
|
-
* @deprecated
|
|
18904
|
-
*/
|
|
18905
|
-
markStickerBatchAsPrintedDeprecated2(parkId, guid, body) {
|
|
18906
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/mark-batch-as-printed";
|
|
18907
|
-
if (parkId === undefined || parkId === null)
|
|
18908
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18909
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18910
|
-
if (guid === undefined || guid === null)
|
|
18911
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
18912
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18913
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18914
|
-
const content_ = JSON.stringify(body);
|
|
18915
|
-
let options_ = {
|
|
18916
|
-
body: content_,
|
|
18917
|
-
observe: "response",
|
|
18918
|
-
responseType: "blob",
|
|
18919
|
-
headers: new HttpHeaders({
|
|
18920
|
-
"Content-Type": "application/json-patch+json",
|
|
18921
|
-
"Accept": "text/plain"
|
|
18922
|
-
})
|
|
18923
|
-
};
|
|
18924
|
-
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18925
|
-
return this.processMarkStickerBatchAsPrintedDeprecated2(response_);
|
|
18926
|
-
})).pipe(catchError((response_) => {
|
|
18927
|
-
if (response_ instanceof HttpResponseBase) {
|
|
18928
|
-
try {
|
|
18929
|
-
return this.processMarkStickerBatchAsPrintedDeprecated2(response_);
|
|
18930
|
-
}
|
|
18931
|
-
catch (e) {
|
|
18932
|
-
return throwError(e);
|
|
18933
|
-
}
|
|
18934
|
-
}
|
|
18935
|
-
else
|
|
18936
|
-
return throwError(response_);
|
|
18937
|
-
}));
|
|
18938
|
-
}
|
|
18939
|
-
processMarkStickerBatchAsPrintedDeprecated2(response) {
|
|
18940
|
-
const status = response.status;
|
|
18941
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18942
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
18943
|
-
let _headers = {};
|
|
18944
|
-
if (response.headers) {
|
|
18945
|
-
for (let key of response.headers.keys()) {
|
|
18946
|
-
_headers[key] = response.headers.get(key);
|
|
18947
|
-
}
|
|
18948
|
-
}
|
|
18949
|
-
if (status === 200) {
|
|
18950
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18951
|
-
let result200 = null;
|
|
18952
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18953
|
-
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18954
|
-
return of(result200);
|
|
18955
|
-
}));
|
|
18956
|
-
}
|
|
18957
|
-
else if (status !== 200 && status !== 204) {
|
|
18958
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18959
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18960
|
-
}));
|
|
18961
|
-
}
|
|
18962
|
-
return of(null);
|
|
18963
|
-
}
|
|
18964
|
-
/**
|
|
18965
|
-
* @param stickerBatchId (optional)
|
|
18966
|
-
* @return Success
|
|
18967
|
-
*/
|
|
18968
|
-
markStickerBatchAsPrinted(parkId, stickerBatchId, guid) {
|
|
18969
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/facility/{parkId}/sticker/mark-batch-as-printed?";
|
|
18970
|
-
if (parkId === undefined || parkId === null)
|
|
18971
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18972
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18973
|
-
if (guid === undefined || guid === null)
|
|
18974
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
18975
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18976
|
-
if (stickerBatchId === null)
|
|
18977
|
-
throw new Error("The parameter 'stickerBatchId' cannot be null.");
|
|
18978
|
-
else if (stickerBatchId !== undefined)
|
|
18979
|
-
url_ += "stickerBatchId=" + encodeURIComponent("" + stickerBatchId) + "&";
|
|
18980
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
18981
|
-
let options_ = {
|
|
18982
|
-
observe: "response",
|
|
18983
|
-
responseType: "blob",
|
|
18984
|
-
headers: new HttpHeaders({
|
|
18985
|
-
"Accept": "text/plain"
|
|
18986
|
-
})
|
|
18987
|
-
};
|
|
18988
|
-
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18989
|
-
return this.processMarkStickerBatchAsPrinted(response_);
|
|
18907
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18908
|
+
return this.processMarkStickerAsUsed(response_);
|
|
18990
18909
|
})).pipe(catchError((response_) => {
|
|
18991
18910
|
if (response_ instanceof HttpResponseBase) {
|
|
18992
18911
|
try {
|
|
18993
|
-
return this.
|
|
18912
|
+
return this.processMarkStickerAsUsed(response_);
|
|
18994
18913
|
}
|
|
18995
18914
|
catch (e) {
|
|
18996
18915
|
return throwError(e);
|
|
@@ -19000,7 +18919,7 @@ class ChaserTicketServiceProxy {
|
|
|
19000
18919
|
return throwError(response_);
|
|
19001
18920
|
}));
|
|
19002
18921
|
}
|
|
19003
|
-
|
|
18922
|
+
processMarkStickerAsUsed(response) {
|
|
19004
18923
|
const status = response.status;
|
|
19005
18924
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19006
18925
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -19014,7 +18933,7 @@ class ChaserTicketServiceProxy {
|
|
|
19014
18933
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19015
18934
|
let result200 = null;
|
|
19016
18935
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19017
|
-
result200 =
|
|
18936
|
+
result200 = StickerDtoHttpResponseData.fromJS(resultData200);
|
|
19018
18937
|
return of(result200);
|
|
19019
18938
|
}));
|
|
19020
18939
|
}
|
|
@@ -19045,98 +18964,6 @@ class CompanyServiceProxy {
|
|
|
19045
18964
|
this.http = http;
|
|
19046
18965
|
this.baseUrl = baseUrl ?? "";
|
|
19047
18966
|
}
|
|
19048
|
-
/**
|
|
19049
|
-
* @param appModule (optional)
|
|
19050
|
-
* @param entityType (optional)
|
|
19051
|
-
* @param maxResults (optional)
|
|
19052
|
-
* @param searchTerm (optional)
|
|
19053
|
-
* @param orderBy_Column (optional)
|
|
19054
|
-
* @param orderBy_OrderDirection (optional)
|
|
19055
|
-
* @param body (optional)
|
|
19056
|
-
* @return Success
|
|
19057
|
-
*/
|
|
19058
|
-
getCompanies(appModule, entityType, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid, body) {
|
|
19059
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/company?";
|
|
19060
|
-
if (guid === undefined || guid === null)
|
|
19061
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
19062
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
19063
|
-
if (appModule === null)
|
|
19064
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
19065
|
-
else if (appModule !== undefined)
|
|
19066
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
19067
|
-
if (entityType === null)
|
|
19068
|
-
throw new Error("The parameter 'entityType' cannot be null.");
|
|
19069
|
-
else if (entityType !== undefined)
|
|
19070
|
-
url_ += "entityType=" + encodeURIComponent("" + entityType) + "&";
|
|
19071
|
-
if (maxResults !== undefined && maxResults !== null)
|
|
19072
|
-
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
19073
|
-
if (searchTerm !== undefined && searchTerm !== null)
|
|
19074
|
-
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
19075
|
-
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
19076
|
-
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
19077
|
-
if (orderBy_OrderDirection === null)
|
|
19078
|
-
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
19079
|
-
else if (orderBy_OrderDirection !== undefined)
|
|
19080
|
-
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
19081
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19082
|
-
const content_ = JSON.stringify(body);
|
|
19083
|
-
let options_ = {
|
|
19084
|
-
body: content_,
|
|
19085
|
-
observe: "response",
|
|
19086
|
-
responseType: "blob",
|
|
19087
|
-
headers: new HttpHeaders({
|
|
19088
|
-
"Content-Type": "application/json-patch+json",
|
|
19089
|
-
"Accept": "text/plain"
|
|
19090
|
-
})
|
|
19091
|
-
};
|
|
19092
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
19093
|
-
return this.processGetCompanies(response_);
|
|
19094
|
-
})).pipe(catchError((response_) => {
|
|
19095
|
-
if (response_ instanceof HttpResponseBase) {
|
|
19096
|
-
try {
|
|
19097
|
-
return this.processGetCompanies(response_);
|
|
19098
|
-
}
|
|
19099
|
-
catch (e) {
|
|
19100
|
-
return throwError(e);
|
|
19101
|
-
}
|
|
19102
|
-
}
|
|
19103
|
-
else
|
|
19104
|
-
return throwError(response_);
|
|
19105
|
-
}));
|
|
19106
|
-
}
|
|
19107
|
-
processGetCompanies(response) {
|
|
19108
|
-
const status = response.status;
|
|
19109
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19110
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
19111
|
-
let _headers = {};
|
|
19112
|
-
if (response.headers) {
|
|
19113
|
-
for (let key of response.headers.keys()) {
|
|
19114
|
-
_headers[key] = response.headers.get(key);
|
|
19115
|
-
}
|
|
19116
|
-
}
|
|
19117
|
-
if (status === 404) {
|
|
19118
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19119
|
-
let result404 = null;
|
|
19120
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19121
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
19122
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
19123
|
-
}));
|
|
19124
|
-
}
|
|
19125
|
-
else if (status === 200) {
|
|
19126
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19127
|
-
let result200 = null;
|
|
19128
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19129
|
-
result200 = CompanyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
19130
|
-
return of(result200);
|
|
19131
|
-
}));
|
|
19132
|
-
}
|
|
19133
|
-
else if (status !== 200 && status !== 204) {
|
|
19134
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19135
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19136
|
-
}));
|
|
19137
|
-
}
|
|
19138
|
-
return of(null);
|
|
19139
|
-
}
|
|
19140
18967
|
/**
|
|
19141
18968
|
* @param appModule (optional)
|
|
19142
18969
|
* @param companyIds (optional)
|
|
@@ -19150,9 +18977,8 @@ class CompanyServiceProxy {
|
|
|
19150
18977
|
* @param orderBy_Column (optional)
|
|
19151
18978
|
* @param orderBy_OrderDirection (optional)
|
|
19152
18979
|
* @return Success
|
|
19153
|
-
* @deprecated
|
|
19154
18980
|
*/
|
|
19155
|
-
|
|
18981
|
+
getCompanies(appModule, companyIds, subCompanyIds, includeAccessProfile, includeSubCompanies, parkId, entityType, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
19156
18982
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/company?";
|
|
19157
18983
|
if (guid === undefined || guid === null)
|
|
19158
18984
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -19200,11 +19026,11 @@ class CompanyServiceProxy {
|
|
|
19200
19026
|
})
|
|
19201
19027
|
};
|
|
19202
19028
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
19203
|
-
return this.
|
|
19029
|
+
return this.processGetCompanies(response_);
|
|
19204
19030
|
})).pipe(catchError((response_) => {
|
|
19205
19031
|
if (response_ instanceof HttpResponseBase) {
|
|
19206
19032
|
try {
|
|
19207
|
-
return this.
|
|
19033
|
+
return this.processGetCompanies(response_);
|
|
19208
19034
|
}
|
|
19209
19035
|
catch (e) {
|
|
19210
19036
|
return throwError(e);
|
|
@@ -19214,7 +19040,7 @@ class CompanyServiceProxy {
|
|
|
19214
19040
|
return throwError(response_);
|
|
19215
19041
|
}));
|
|
19216
19042
|
}
|
|
19217
|
-
|
|
19043
|
+
processGetCompanies(response) {
|
|
19218
19044
|
const status = response.status;
|
|
19219
19045
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19220
19046
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -19247,88 +19073,14 @@ class CompanyServiceProxy {
|
|
|
19247
19073
|
}
|
|
19248
19074
|
return of(null);
|
|
19249
19075
|
}
|
|
19250
|
-
/**
|
|
19251
|
-
* @param appModule (optional)
|
|
19252
|
-
* @param body (optional)
|
|
19253
|
-
* @return Success
|
|
19254
|
-
*/
|
|
19255
|
-
getSubCompanies(appModule, guid, body) {
|
|
19256
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/company/subcompanies?";
|
|
19257
|
-
if (guid === undefined || guid === null)
|
|
19258
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
19259
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
19260
|
-
if (appModule === null)
|
|
19261
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
19262
|
-
else if (appModule !== undefined)
|
|
19263
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
19264
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19265
|
-
const content_ = JSON.stringify(body);
|
|
19266
|
-
let options_ = {
|
|
19267
|
-
body: content_,
|
|
19268
|
-
observe: "response",
|
|
19269
|
-
responseType: "blob",
|
|
19270
|
-
headers: new HttpHeaders({
|
|
19271
|
-
"Content-Type": "application/json-patch+json",
|
|
19272
|
-
"Accept": "text/plain"
|
|
19273
|
-
})
|
|
19274
|
-
};
|
|
19275
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
19276
|
-
return this.processGetSubCompanies(response_);
|
|
19277
|
-
})).pipe(catchError((response_) => {
|
|
19278
|
-
if (response_ instanceof HttpResponseBase) {
|
|
19279
|
-
try {
|
|
19280
|
-
return this.processGetSubCompanies(response_);
|
|
19281
|
-
}
|
|
19282
|
-
catch (e) {
|
|
19283
|
-
return throwError(e);
|
|
19284
|
-
}
|
|
19285
|
-
}
|
|
19286
|
-
else
|
|
19287
|
-
return throwError(response_);
|
|
19288
|
-
}));
|
|
19289
|
-
}
|
|
19290
|
-
processGetSubCompanies(response) {
|
|
19291
|
-
const status = response.status;
|
|
19292
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19293
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
19294
|
-
let _headers = {};
|
|
19295
|
-
if (response.headers) {
|
|
19296
|
-
for (let key of response.headers.keys()) {
|
|
19297
|
-
_headers[key] = response.headers.get(key);
|
|
19298
|
-
}
|
|
19299
|
-
}
|
|
19300
|
-
if (status === 404) {
|
|
19301
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19302
|
-
let result404 = null;
|
|
19303
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19304
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
19305
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
19306
|
-
}));
|
|
19307
|
-
}
|
|
19308
|
-
else if (status === 200) {
|
|
19309
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19310
|
-
let result200 = null;
|
|
19311
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19312
|
-
result200 = SubCompanyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
19313
|
-
return of(result200);
|
|
19314
|
-
}));
|
|
19315
|
-
}
|
|
19316
|
-
else if (status !== 200 && status !== 204) {
|
|
19317
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19318
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19319
|
-
}));
|
|
19320
|
-
}
|
|
19321
|
-
return of(null);
|
|
19322
|
-
}
|
|
19323
19076
|
/**
|
|
19324
19077
|
* @param appModule (optional)
|
|
19325
19078
|
* @param companyIds (optional)
|
|
19326
19079
|
* @param subCompanyIds (optional)
|
|
19327
19080
|
* @param parkId (optional)
|
|
19328
19081
|
* @return Success
|
|
19329
|
-
* @deprecated
|
|
19330
19082
|
*/
|
|
19331
|
-
|
|
19083
|
+
getSubCompanies(appModule, companyIds, subCompanyIds, parkId, guid) {
|
|
19332
19084
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/company/subcompanies?";
|
|
19333
19085
|
if (guid === undefined || guid === null)
|
|
19334
19086
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -19354,11 +19106,11 @@ class CompanyServiceProxy {
|
|
|
19354
19106
|
})
|
|
19355
19107
|
};
|
|
19356
19108
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
19357
|
-
return this.
|
|
19109
|
+
return this.processGetSubCompanies(response_);
|
|
19358
19110
|
})).pipe(catchError((response_) => {
|
|
19359
19111
|
if (response_ instanceof HttpResponseBase) {
|
|
19360
19112
|
try {
|
|
19361
|
-
return this.
|
|
19113
|
+
return this.processGetSubCompanies(response_);
|
|
19362
19114
|
}
|
|
19363
19115
|
catch (e) {
|
|
19364
19116
|
return throwError(e);
|
|
@@ -19368,7 +19120,7 @@ class CompanyServiceProxy {
|
|
|
19368
19120
|
return throwError(response_);
|
|
19369
19121
|
}));
|
|
19370
19122
|
}
|
|
19371
|
-
|
|
19123
|
+
processGetSubCompanies(response) {
|
|
19372
19124
|
const status = response.status;
|
|
19373
19125
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19374
19126
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -21165,6 +20917,72 @@ class FacilityServiceProxy {
|
|
|
21165
20917
|
this.http = http;
|
|
21166
20918
|
this.baseUrl = baseUrl ?? "";
|
|
21167
20919
|
}
|
|
20920
|
+
/**
|
|
20921
|
+
* @param appModule (optional)
|
|
20922
|
+
* @return Success
|
|
20923
|
+
*/
|
|
20924
|
+
getSmartparkBasicAll(appModule) {
|
|
20925
|
+
let url_ = this.baseUrl + "/api/services/facility/basic?";
|
|
20926
|
+
if (appModule === null)
|
|
20927
|
+
throw new Error("The parameter 'appModule' cannot be null.");
|
|
20928
|
+
else if (appModule !== undefined)
|
|
20929
|
+
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
20930
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20931
|
+
let options_ = {
|
|
20932
|
+
observe: "response",
|
|
20933
|
+
responseType: "blob",
|
|
20934
|
+
headers: new HttpHeaders({
|
|
20935
|
+
"Accept": "text/plain"
|
|
20936
|
+
})
|
|
20937
|
+
};
|
|
20938
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
20939
|
+
return this.processGetSmartparkBasicAll(response_);
|
|
20940
|
+
})).pipe(catchError((response_) => {
|
|
20941
|
+
if (response_ instanceof HttpResponseBase) {
|
|
20942
|
+
try {
|
|
20943
|
+
return this.processGetSmartparkBasicAll(response_);
|
|
20944
|
+
}
|
|
20945
|
+
catch (e) {
|
|
20946
|
+
return throwError(e);
|
|
20947
|
+
}
|
|
20948
|
+
}
|
|
20949
|
+
else
|
|
20950
|
+
return throwError(response_);
|
|
20951
|
+
}));
|
|
20952
|
+
}
|
|
20953
|
+
processGetSmartparkBasicAll(response) {
|
|
20954
|
+
const status = response.status;
|
|
20955
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
20956
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
20957
|
+
let _headers = {};
|
|
20958
|
+
if (response.headers) {
|
|
20959
|
+
for (let key of response.headers.keys()) {
|
|
20960
|
+
_headers[key] = response.headers.get(key);
|
|
20961
|
+
}
|
|
20962
|
+
}
|
|
20963
|
+
if (status === 404) {
|
|
20964
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
20965
|
+
let result404 = null;
|
|
20966
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20967
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
20968
|
+
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
20969
|
+
}));
|
|
20970
|
+
}
|
|
20971
|
+
else if (status === 200) {
|
|
20972
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
20973
|
+
let result200 = null;
|
|
20974
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20975
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
20976
|
+
return of(result200);
|
|
20977
|
+
}));
|
|
20978
|
+
}
|
|
20979
|
+
else if (status !== 200 && status !== 204) {
|
|
20980
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
20981
|
+
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20982
|
+
}));
|
|
20983
|
+
}
|
|
20984
|
+
return of(null);
|
|
20985
|
+
}
|
|
21168
20986
|
/**
|
|
21169
20987
|
* @return Success
|
|
21170
20988
|
*/
|
|
@@ -22237,15 +22055,43 @@ class FacilityServiceProxy {
|
|
|
22237
22055
|
return of(null);
|
|
22238
22056
|
}
|
|
22239
22057
|
/**
|
|
22240
|
-
* @param
|
|
22058
|
+
* @param companyId (optional)
|
|
22059
|
+
* @param subCompanyId (optional)
|
|
22060
|
+
* @param validationType (optional)
|
|
22061
|
+
* @param maxResults (optional)
|
|
22062
|
+
* @param searchTerm (optional)
|
|
22063
|
+
* @param orderBy_Column (optional)
|
|
22064
|
+
* @param orderBy_OrderDirection (optional)
|
|
22241
22065
|
* @return Success
|
|
22242
22066
|
*/
|
|
22243
|
-
|
|
22244
|
-
let url_ = this.baseUrl + "/api/services/facility/
|
|
22245
|
-
if (
|
|
22246
|
-
throw new Error("The parameter '
|
|
22247
|
-
|
|
22248
|
-
|
|
22067
|
+
getValidationType(parkId, companyId, subCompanyId, validationType, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
22068
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/facility/{parkId}/validation-type?";
|
|
22069
|
+
if (parkId === undefined || parkId === null)
|
|
22070
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
22071
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
22072
|
+
if (guid === undefined || guid === null)
|
|
22073
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
22074
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
22075
|
+
if (companyId === null)
|
|
22076
|
+
throw new Error("The parameter 'companyId' cannot be null.");
|
|
22077
|
+
else if (companyId !== undefined)
|
|
22078
|
+
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
22079
|
+
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
22080
|
+
url_ += "subCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
22081
|
+
if (validationType === null)
|
|
22082
|
+
throw new Error("The parameter 'validationType' cannot be null.");
|
|
22083
|
+
else if (validationType !== undefined)
|
|
22084
|
+
url_ += "validationType=" + encodeURIComponent("" + validationType) + "&";
|
|
22085
|
+
if (maxResults !== undefined && maxResults !== null)
|
|
22086
|
+
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
22087
|
+
if (searchTerm !== undefined && searchTerm !== null)
|
|
22088
|
+
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
22089
|
+
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
22090
|
+
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
22091
|
+
if (orderBy_OrderDirection === null)
|
|
22092
|
+
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
22093
|
+
else if (orderBy_OrderDirection !== undefined)
|
|
22094
|
+
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
22249
22095
|
url_ = url_.replace(/[?&]$/, "");
|
|
22250
22096
|
let options_ = {
|
|
22251
22097
|
observe: "response",
|
|
@@ -22255,11 +22101,11 @@ class FacilityServiceProxy {
|
|
|
22255
22101
|
})
|
|
22256
22102
|
};
|
|
22257
22103
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22258
|
-
return this.
|
|
22104
|
+
return this.processGetValidationType(response_);
|
|
22259
22105
|
})).pipe(catchError((response_) => {
|
|
22260
22106
|
if (response_ instanceof HttpResponseBase) {
|
|
22261
22107
|
try {
|
|
22262
|
-
return this.
|
|
22108
|
+
return this.processGetValidationType(response_);
|
|
22263
22109
|
}
|
|
22264
22110
|
catch (e) {
|
|
22265
22111
|
return throwError(e);
|
|
@@ -22269,7 +22115,7 @@ class FacilityServiceProxy {
|
|
|
22269
22115
|
return throwError(response_);
|
|
22270
22116
|
}));
|
|
22271
22117
|
}
|
|
22272
|
-
|
|
22118
|
+
processGetValidationType(response) {
|
|
22273
22119
|
const status = response.status;
|
|
22274
22120
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22275
22121
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22279,11 +22125,19 @@ class FacilityServiceProxy {
|
|
|
22279
22125
|
_headers[key] = response.headers.get(key);
|
|
22280
22126
|
}
|
|
22281
22127
|
}
|
|
22282
|
-
if (status ===
|
|
22128
|
+
if (status === 404) {
|
|
22129
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22130
|
+
let result404 = null;
|
|
22131
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22132
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
22133
|
+
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
22134
|
+
}));
|
|
22135
|
+
}
|
|
22136
|
+
else if (status === 200) {
|
|
22283
22137
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22284
22138
|
let result200 = null;
|
|
22285
22139
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22286
|
-
result200 =
|
|
22140
|
+
result200 = ValidationTypeDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
22287
22141
|
return of(result200);
|
|
22288
22142
|
}));
|
|
22289
22143
|
}
|
|
@@ -22295,10 +22149,15 @@ class FacilityServiceProxy {
|
|
|
22295
22149
|
return of(null);
|
|
22296
22150
|
}
|
|
22297
22151
|
/**
|
|
22152
|
+
* @param appModule (optional)
|
|
22298
22153
|
* @return Success
|
|
22299
22154
|
*/
|
|
22300
|
-
|
|
22301
|
-
let url_ = this.baseUrl + "/api/services/facility/
|
|
22155
|
+
facilityTree(appModule) {
|
|
22156
|
+
let url_ = this.baseUrl + "/api/services/facility/tree?";
|
|
22157
|
+
if (appModule === null)
|
|
22158
|
+
throw new Error("The parameter 'appModule' cannot be null.");
|
|
22159
|
+
else if (appModule !== undefined)
|
|
22160
|
+
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
22302
22161
|
url_ = url_.replace(/[?&]$/, "");
|
|
22303
22162
|
let options_ = {
|
|
22304
22163
|
observe: "response",
|
|
@@ -22308,11 +22167,11 @@ class FacilityServiceProxy {
|
|
|
22308
22167
|
})
|
|
22309
22168
|
};
|
|
22310
22169
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22311
|
-
return this.
|
|
22170
|
+
return this.processFacilityTree(response_);
|
|
22312
22171
|
})).pipe(catchError((response_) => {
|
|
22313
22172
|
if (response_ instanceof HttpResponseBase) {
|
|
22314
22173
|
try {
|
|
22315
|
-
return this.
|
|
22174
|
+
return this.processFacilityTree(response_);
|
|
22316
22175
|
}
|
|
22317
22176
|
catch (e) {
|
|
22318
22177
|
return throwError(e);
|
|
@@ -22322,7 +22181,7 @@ class FacilityServiceProxy {
|
|
|
22322
22181
|
return throwError(response_);
|
|
22323
22182
|
}));
|
|
22324
22183
|
}
|
|
22325
|
-
|
|
22184
|
+
processFacilityTree(response) {
|
|
22326
22185
|
const status = response.status;
|
|
22327
22186
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22328
22187
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22336,7 +22195,7 @@ class FacilityServiceProxy {
|
|
|
22336
22195
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22337
22196
|
let result200 = null;
|
|
22338
22197
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22339
|
-
result200 =
|
|
22198
|
+
result200 = FacilityTreeDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
22340
22199
|
return of(result200);
|
|
22341
22200
|
}));
|
|
22342
22201
|
}
|
|
@@ -22348,15 +22207,10 @@ class FacilityServiceProxy {
|
|
|
22348
22207
|
return of(null);
|
|
22349
22208
|
}
|
|
22350
22209
|
/**
|
|
22351
|
-
* @param appModule (optional)
|
|
22352
22210
|
* @return Success
|
|
22353
22211
|
*/
|
|
22354
|
-
|
|
22355
|
-
let url_ = this.baseUrl + "/api/services/facility/basic
|
|
22356
|
-
if (appModule === null)
|
|
22357
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
22358
|
-
else if (appModule !== undefined)
|
|
22359
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
22212
|
+
facilityAllBackoffice() {
|
|
22213
|
+
let url_ = this.baseUrl + "/api/services/facility/basic-backoffice";
|
|
22360
22214
|
url_ = url_.replace(/[?&]$/, "");
|
|
22361
22215
|
let options_ = {
|
|
22362
22216
|
observe: "response",
|
|
@@ -22366,11 +22220,11 @@ class FacilityServiceProxy {
|
|
|
22366
22220
|
})
|
|
22367
22221
|
};
|
|
22368
22222
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22369
|
-
return this.
|
|
22223
|
+
return this.processFacilityAllBackoffice(response_);
|
|
22370
22224
|
})).pipe(catchError((response_) => {
|
|
22371
22225
|
if (response_ instanceof HttpResponseBase) {
|
|
22372
22226
|
try {
|
|
22373
|
-
return this.
|
|
22227
|
+
return this.processFacilityAllBackoffice(response_);
|
|
22374
22228
|
}
|
|
22375
22229
|
catch (e) {
|
|
22376
22230
|
return throwError(e);
|
|
@@ -22380,7 +22234,7 @@ class FacilityServiceProxy {
|
|
|
22380
22234
|
return throwError(response_);
|
|
22381
22235
|
}));
|
|
22382
22236
|
}
|
|
22383
|
-
|
|
22237
|
+
processFacilityAllBackoffice(response) {
|
|
22384
22238
|
const status = response.status;
|
|
22385
22239
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22386
22240
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22390,15 +22244,7 @@ class FacilityServiceProxy {
|
|
|
22390
22244
|
_headers[key] = response.headers.get(key);
|
|
22391
22245
|
}
|
|
22392
22246
|
}
|
|
22393
|
-
if (status ===
|
|
22394
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22395
|
-
let result404 = null;
|
|
22396
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22397
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
22398
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
22399
|
-
}));
|
|
22400
|
-
}
|
|
22401
|
-
else if (status === 200) {
|
|
22247
|
+
if (status === 200) {
|
|
22402
22248
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22403
22249
|
let result200 = null;
|
|
22404
22250
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -22413,44 +22259,48 @@ class FacilityServiceProxy {
|
|
|
22413
22259
|
}
|
|
22414
22260
|
return of(null);
|
|
22415
22261
|
}
|
|
22262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22263
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy }); }
|
|
22264
|
+
}
|
|
22265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy, decorators: [{
|
|
22266
|
+
type: Injectable
|
|
22267
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient, decorators: [{
|
|
22268
|
+
type: Inject,
|
|
22269
|
+
args: [HttpClient]
|
|
22270
|
+
}] }, { type: undefined, decorators: [{
|
|
22271
|
+
type: Optional
|
|
22272
|
+
}, {
|
|
22273
|
+
type: Inject,
|
|
22274
|
+
args: [API_BASE_URL$1]
|
|
22275
|
+
}] }]; } });
|
|
22276
|
+
class FileServiceProxy {
|
|
22277
|
+
constructor(http, baseUrl) {
|
|
22278
|
+
this.jsonParseReviver = undefined;
|
|
22279
|
+
this.http = http;
|
|
22280
|
+
this.baseUrl = baseUrl ?? "";
|
|
22281
|
+
}
|
|
22416
22282
|
/**
|
|
22417
|
-
* @param
|
|
22418
|
-
* @param
|
|
22419
|
-
* @param
|
|
22420
|
-
* @param
|
|
22421
|
-
* @param searchTerm (optional)
|
|
22422
|
-
* @param orderBy_Column (optional)
|
|
22423
|
-
* @param orderBy_OrderDirection (optional)
|
|
22283
|
+
* @param entityName (optional)
|
|
22284
|
+
* @param entityId (optional)
|
|
22285
|
+
* @param command (optional)
|
|
22286
|
+
* @param parkId (optional)
|
|
22424
22287
|
* @return Success
|
|
22425
22288
|
*/
|
|
22426
|
-
|
|
22427
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/
|
|
22428
|
-
if (parkId === undefined || parkId === null)
|
|
22429
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
22430
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
22289
|
+
createReceipt(entityName, entityId, command, parkId, guid) {
|
|
22290
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-receipt?";
|
|
22431
22291
|
if (guid === undefined || guid === null)
|
|
22432
22292
|
throw new Error("The parameter 'guid' must be defined.");
|
|
22433
22293
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
22434
|
-
if (
|
|
22435
|
-
|
|
22436
|
-
|
|
22437
|
-
url_ += "
|
|
22438
|
-
if (
|
|
22439
|
-
url_ += "
|
|
22440
|
-
if (
|
|
22441
|
-
throw new Error("The parameter '
|
|
22442
|
-
else if (
|
|
22443
|
-
url_ += "
|
|
22444
|
-
if (maxResults !== undefined && maxResults !== null)
|
|
22445
|
-
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
22446
|
-
if (searchTerm !== undefined && searchTerm !== null)
|
|
22447
|
-
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
22448
|
-
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
22449
|
-
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
22450
|
-
if (orderBy_OrderDirection === null)
|
|
22451
|
-
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
22452
|
-
else if (orderBy_OrderDirection !== undefined)
|
|
22453
|
-
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
22294
|
+
if (entityName !== undefined && entityName !== null)
|
|
22295
|
+
url_ += "EntityName=" + encodeURIComponent("" + entityName) + "&";
|
|
22296
|
+
if (entityId !== undefined && entityId !== null)
|
|
22297
|
+
url_ += "EntityId=" + encodeURIComponent("" + entityId) + "&";
|
|
22298
|
+
if (command !== undefined && command !== null)
|
|
22299
|
+
url_ += "Command=" + encodeURIComponent("" + command) + "&";
|
|
22300
|
+
if (parkId === null)
|
|
22301
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
22302
|
+
else if (parkId !== undefined)
|
|
22303
|
+
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
22454
22304
|
url_ = url_.replace(/[?&]$/, "");
|
|
22455
22305
|
let options_ = {
|
|
22456
22306
|
observe: "response",
|
|
@@ -22460,11 +22310,11 @@ class FacilityServiceProxy {
|
|
|
22460
22310
|
})
|
|
22461
22311
|
};
|
|
22462
22312
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22463
|
-
return this.
|
|
22313
|
+
return this.processCreateReceipt(response_);
|
|
22464
22314
|
})).pipe(catchError((response_) => {
|
|
22465
22315
|
if (response_ instanceof HttpResponseBase) {
|
|
22466
22316
|
try {
|
|
22467
|
-
return this.
|
|
22317
|
+
return this.processCreateReceipt(response_);
|
|
22468
22318
|
}
|
|
22469
22319
|
catch (e) {
|
|
22470
22320
|
return throwError(e);
|
|
@@ -22474,7 +22324,7 @@ class FacilityServiceProxy {
|
|
|
22474
22324
|
return throwError(response_);
|
|
22475
22325
|
}));
|
|
22476
22326
|
}
|
|
22477
|
-
|
|
22327
|
+
processCreateReceipt(response) {
|
|
22478
22328
|
const status = response.status;
|
|
22479
22329
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22480
22330
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22484,19 +22334,11 @@ class FacilityServiceProxy {
|
|
|
22484
22334
|
_headers[key] = response.headers.get(key);
|
|
22485
22335
|
}
|
|
22486
22336
|
}
|
|
22487
|
-
if (status ===
|
|
22488
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22489
|
-
let result404 = null;
|
|
22490
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22491
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
22492
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
22493
|
-
}));
|
|
22494
|
-
}
|
|
22495
|
-
else if (status === 200) {
|
|
22337
|
+
if (status === 200) {
|
|
22496
22338
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22497
22339
|
let result200 = null;
|
|
22498
22340
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22499
|
-
result200 =
|
|
22341
|
+
result200 = GenerateFileResponseDtoHttpResponseData.fromJS(resultData200);
|
|
22500
22342
|
return of(result200);
|
|
22501
22343
|
}));
|
|
22502
22344
|
}
|
|
@@ -22507,26 +22349,6 @@ class FacilityServiceProxy {
|
|
|
22507
22349
|
}
|
|
22508
22350
|
return of(null);
|
|
22509
22351
|
}
|
|
22510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22511
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy }); }
|
|
22512
|
-
}
|
|
22513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FacilityServiceProxy, decorators: [{
|
|
22514
|
-
type: Injectable
|
|
22515
|
-
}], ctorParameters: function () { return [{ type: i1$2.HttpClient, decorators: [{
|
|
22516
|
-
type: Inject,
|
|
22517
|
-
args: [HttpClient]
|
|
22518
|
-
}] }, { type: undefined, decorators: [{
|
|
22519
|
-
type: Optional
|
|
22520
|
-
}, {
|
|
22521
|
-
type: Inject,
|
|
22522
|
-
args: [API_BASE_URL$1]
|
|
22523
|
-
}] }]; } });
|
|
22524
|
-
class FileServiceProxy {
|
|
22525
|
-
constructor(http, baseUrl) {
|
|
22526
|
-
this.jsonParseReviver = undefined;
|
|
22527
|
-
this.http = http;
|
|
22528
|
-
this.baseUrl = baseUrl ?? "";
|
|
22529
|
-
}
|
|
22530
22352
|
/**
|
|
22531
22353
|
* @param entityName (optional)
|
|
22532
22354
|
* @param entityId (optional)
|
|
@@ -22534,78 +22356,8 @@ class FileServiceProxy {
|
|
|
22534
22356
|
* @param parkId (optional)
|
|
22535
22357
|
* @return Success
|
|
22536
22358
|
*/
|
|
22537
|
-
|
|
22538
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-
|
|
22539
|
-
if (guid === undefined || guid === null)
|
|
22540
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
22541
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
22542
|
-
if (entityName !== undefined && entityName !== null)
|
|
22543
|
-
url_ += "EntityName=" + encodeURIComponent("" + entityName) + "&";
|
|
22544
|
-
if (entityId !== undefined && entityId !== null)
|
|
22545
|
-
url_ += "EntityId=" + encodeURIComponent("" + entityId) + "&";
|
|
22546
|
-
if (command !== undefined && command !== null)
|
|
22547
|
-
url_ += "Command=" + encodeURIComponent("" + command) + "&";
|
|
22548
|
-
if (parkId === null)
|
|
22549
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
22550
|
-
else if (parkId !== undefined)
|
|
22551
|
-
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
22552
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22553
|
-
let options_ = {
|
|
22554
|
-
observe: "response",
|
|
22555
|
-
responseType: "blob",
|
|
22556
|
-
headers: new HttpHeaders({
|
|
22557
|
-
"Accept": "text/plain"
|
|
22558
|
-
})
|
|
22559
|
-
};
|
|
22560
|
-
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22561
|
-
return this.processCreateReceipt(response_);
|
|
22562
|
-
})).pipe(catchError((response_) => {
|
|
22563
|
-
if (response_ instanceof HttpResponseBase) {
|
|
22564
|
-
try {
|
|
22565
|
-
return this.processCreateReceipt(response_);
|
|
22566
|
-
}
|
|
22567
|
-
catch (e) {
|
|
22568
|
-
return throwError(e);
|
|
22569
|
-
}
|
|
22570
|
-
}
|
|
22571
|
-
else
|
|
22572
|
-
return throwError(response_);
|
|
22573
|
-
}));
|
|
22574
|
-
}
|
|
22575
|
-
processCreateReceipt(response) {
|
|
22576
|
-
const status = response.status;
|
|
22577
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22578
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
22579
|
-
let _headers = {};
|
|
22580
|
-
if (response.headers) {
|
|
22581
|
-
for (let key of response.headers.keys()) {
|
|
22582
|
-
_headers[key] = response.headers.get(key);
|
|
22583
|
-
}
|
|
22584
|
-
}
|
|
22585
|
-
if (status === 200) {
|
|
22586
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22587
|
-
let result200 = null;
|
|
22588
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22589
|
-
result200 = GenerateFileResponseDtoHttpResponseData.fromJS(resultData200);
|
|
22590
|
-
return of(result200);
|
|
22591
|
-
}));
|
|
22592
|
-
}
|
|
22593
|
-
else if (status !== 200 && status !== 204) {
|
|
22594
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22595
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22596
|
-
}));
|
|
22597
|
-
}
|
|
22598
|
-
return of(null);
|
|
22599
|
-
}
|
|
22600
|
-
/**
|
|
22601
|
-
* @param entityName (optional)
|
|
22602
|
-
* @param entityId (optional)
|
|
22603
|
-
* @param command (optional)
|
|
22604
|
-
* @param parkId (optional)
|
|
22605
|
-
* @return Success
|
|
22606
|
-
*/
|
|
22607
|
-
createReport(entityName, entityId, command, parkId, guid) {
|
|
22608
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-report?";
|
|
22359
|
+
createReport(entityName, entityId, command, parkId, guid) {
|
|
22360
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-report?";
|
|
22609
22361
|
if (guid === undefined || guid === null)
|
|
22610
22362
|
throw new Error("The parameter 'guid' must be defined.");
|
|
22611
22363
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -23807,21 +23559,16 @@ class GuestServiceProxy {
|
|
|
23807
23559
|
}
|
|
23808
23560
|
}
|
|
23809
23561
|
/**
|
|
23810
|
-
* @param parkId (optional)
|
|
23811
23562
|
* @return Success
|
|
23812
23563
|
*/
|
|
23813
|
-
|
|
23814
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}
|
|
23564
|
+
deleteGuest(id, guid) {
|
|
23565
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}";
|
|
23815
23566
|
if (id === undefined || id === null)
|
|
23816
23567
|
throw new Error("The parameter 'id' must be defined.");
|
|
23817
23568
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23818
23569
|
if (guid === undefined || guid === null)
|
|
23819
23570
|
throw new Error("The parameter 'guid' must be defined.");
|
|
23820
23571
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
23821
|
-
if (parkId === null)
|
|
23822
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
23823
|
-
else if (parkId !== undefined)
|
|
23824
|
-
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
23825
23572
|
url_ = url_.replace(/[?&]$/, "");
|
|
23826
23573
|
let options_ = {
|
|
23827
23574
|
observe: "response",
|
|
@@ -23830,12 +23577,12 @@ class GuestServiceProxy {
|
|
|
23830
23577
|
"Accept": "text/plain"
|
|
23831
23578
|
})
|
|
23832
23579
|
};
|
|
23833
|
-
return this.http.request("
|
|
23834
|
-
return this.
|
|
23580
|
+
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
23581
|
+
return this.processDeleteGuest(response_);
|
|
23835
23582
|
})).pipe(catchError((response_) => {
|
|
23836
23583
|
if (response_ instanceof HttpResponseBase) {
|
|
23837
23584
|
try {
|
|
23838
|
-
return this.
|
|
23585
|
+
return this.processDeleteGuest(response_);
|
|
23839
23586
|
}
|
|
23840
23587
|
catch (e) {
|
|
23841
23588
|
return throwError(e);
|
|
@@ -23845,7 +23592,7 @@ class GuestServiceProxy {
|
|
|
23845
23592
|
return throwError(response_);
|
|
23846
23593
|
}));
|
|
23847
23594
|
}
|
|
23848
|
-
|
|
23595
|
+
processDeleteGuest(response) {
|
|
23849
23596
|
const status = response.status;
|
|
23850
23597
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
23851
23598
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -23855,7 +23602,12 @@ class GuestServiceProxy {
|
|
|
23855
23602
|
_headers[key] = response.headers.get(key);
|
|
23856
23603
|
}
|
|
23857
23604
|
}
|
|
23858
|
-
if (status ===
|
|
23605
|
+
if (status === 204) {
|
|
23606
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23607
|
+
return throwException$1("No Content", status, _responseText, _headers);
|
|
23608
|
+
}));
|
|
23609
|
+
}
|
|
23610
|
+
else if (status === 404) {
|
|
23859
23611
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23860
23612
|
let result404 = null;
|
|
23861
23613
|
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -23867,7 +23619,7 @@ class GuestServiceProxy {
|
|
|
23867
23619
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23868
23620
|
let result200 = null;
|
|
23869
23621
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23870
|
-
result200 =
|
|
23622
|
+
result200 = Unit.fromJS(resultData200);
|
|
23871
23623
|
return of(result200);
|
|
23872
23624
|
}));
|
|
23873
23625
|
}
|
|
@@ -23881,21 +23633,16 @@ class GuestServiceProxy {
|
|
|
23881
23633
|
}
|
|
23882
23634
|
}
|
|
23883
23635
|
/**
|
|
23884
|
-
* @param parkId (optional)
|
|
23885
23636
|
* @return Success
|
|
23886
23637
|
*/
|
|
23887
|
-
|
|
23888
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}
|
|
23638
|
+
getGuestById(id, guid) {
|
|
23639
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}";
|
|
23889
23640
|
if (id === undefined || id === null)
|
|
23890
23641
|
throw new Error("The parameter 'id' must be defined.");
|
|
23891
23642
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23892
23643
|
if (guid === undefined || guid === null)
|
|
23893
23644
|
throw new Error("The parameter 'guid' must be defined.");
|
|
23894
23645
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
23895
|
-
if (parkId === null)
|
|
23896
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
23897
|
-
else if (parkId !== undefined)
|
|
23898
|
-
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
23899
23646
|
url_ = url_.replace(/[?&]$/, "");
|
|
23900
23647
|
let options_ = {
|
|
23901
23648
|
observe: "response",
|
|
@@ -23904,12 +23651,12 @@ class GuestServiceProxy {
|
|
|
23904
23651
|
"Accept": "text/plain"
|
|
23905
23652
|
})
|
|
23906
23653
|
};
|
|
23907
|
-
return this.http.request("
|
|
23908
|
-
return this.
|
|
23654
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
23655
|
+
return this.processGetGuestById(response_);
|
|
23909
23656
|
})).pipe(catchError((response_) => {
|
|
23910
23657
|
if (response_ instanceof HttpResponseBase) {
|
|
23911
23658
|
try {
|
|
23912
|
-
return this.
|
|
23659
|
+
return this.processGetGuestById(response_);
|
|
23913
23660
|
}
|
|
23914
23661
|
catch (e) {
|
|
23915
23662
|
return throwError(e);
|
|
@@ -23919,7 +23666,7 @@ class GuestServiceProxy {
|
|
|
23919
23666
|
return throwError(response_);
|
|
23920
23667
|
}));
|
|
23921
23668
|
}
|
|
23922
|
-
|
|
23669
|
+
processGetGuestById(response) {
|
|
23923
23670
|
const status = response.status;
|
|
23924
23671
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
23925
23672
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -23929,12 +23676,7 @@ class GuestServiceProxy {
|
|
|
23929
23676
|
_headers[key] = response.headers.get(key);
|
|
23930
23677
|
}
|
|
23931
23678
|
}
|
|
23932
|
-
if (status ===
|
|
23933
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23934
|
-
return throwException$1("No Content", status, _responseText, _headers);
|
|
23935
|
-
}));
|
|
23936
|
-
}
|
|
23937
|
-
else if (status === 404) {
|
|
23679
|
+
if (status === 404) {
|
|
23938
23680
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23939
23681
|
let result404 = null;
|
|
23940
23682
|
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -23946,7 +23688,7 @@ class GuestServiceProxy {
|
|
|
23946
23688
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23947
23689
|
let result200 = null;
|
|
23948
23690
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23949
|
-
result200 =
|
|
23691
|
+
result200 = VGuestWithBatchDtoHttpResponseData.fromJS(resultData200);
|
|
23950
23692
|
return of(result200);
|
|
23951
23693
|
}));
|
|
23952
23694
|
}
|
|
@@ -24360,7 +24102,6 @@ class GuestServiceProxy {
|
|
|
24360
24102
|
* @param take (optional)
|
|
24361
24103
|
* @param skip (optional)
|
|
24362
24104
|
* @return Success
|
|
24363
|
-
* @deprecated
|
|
24364
24105
|
*/
|
|
24365
24106
|
guestsTraffic(parkId, guestTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
24366
24107
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/guests-traffic?";
|
|
@@ -24467,74 +24208,6 @@ class GuestServiceProxy {
|
|
|
24467
24208
|
}
|
|
24468
24209
|
return of(null);
|
|
24469
24210
|
}
|
|
24470
|
-
/**
|
|
24471
|
-
* @param body (optional)
|
|
24472
|
-
* @return Success
|
|
24473
|
-
*/
|
|
24474
|
-
guestsTrafficHistory(guid, body) {
|
|
24475
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/guests-traffic-history";
|
|
24476
|
-
if (guid === undefined || guid === null)
|
|
24477
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
24478
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
24479
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24480
|
-
const content_ = JSON.stringify(body);
|
|
24481
|
-
let options_ = {
|
|
24482
|
-
body: content_,
|
|
24483
|
-
observe: "response",
|
|
24484
|
-
responseType: "blob",
|
|
24485
|
-
headers: new HttpHeaders({
|
|
24486
|
-
"Content-Type": "application/json-patch+json",
|
|
24487
|
-
"Accept": "text/plain"
|
|
24488
|
-
})
|
|
24489
|
-
};
|
|
24490
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
24491
|
-
return this.processGuestsTrafficHistory(response_);
|
|
24492
|
-
})).pipe(catchError((response_) => {
|
|
24493
|
-
if (response_ instanceof HttpResponseBase) {
|
|
24494
|
-
try {
|
|
24495
|
-
return this.processGuestsTrafficHistory(response_);
|
|
24496
|
-
}
|
|
24497
|
-
catch (e) {
|
|
24498
|
-
return throwError(e);
|
|
24499
|
-
}
|
|
24500
|
-
}
|
|
24501
|
-
else
|
|
24502
|
-
return throwError(response_);
|
|
24503
|
-
}));
|
|
24504
|
-
}
|
|
24505
|
-
processGuestsTrafficHistory(response) {
|
|
24506
|
-
const status = response.status;
|
|
24507
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
24508
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
24509
|
-
let _headers = {};
|
|
24510
|
-
if (response.headers) {
|
|
24511
|
-
for (let key of response.headers.keys()) {
|
|
24512
|
-
_headers[key] = response.headers.get(key);
|
|
24513
|
-
}
|
|
24514
|
-
}
|
|
24515
|
-
if (status === 404) {
|
|
24516
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
24517
|
-
let result404 = null;
|
|
24518
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24519
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
24520
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
24521
|
-
}));
|
|
24522
|
-
}
|
|
24523
|
-
else if (status === 200) {
|
|
24524
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
24525
|
-
let result200 = null;
|
|
24526
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24527
|
-
result200 = GuestTrafficDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
24528
|
-
return of(result200);
|
|
24529
|
-
}));
|
|
24530
|
-
}
|
|
24531
|
-
else if (status !== 200 && status !== 204) {
|
|
24532
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
24533
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24534
|
-
}));
|
|
24535
|
-
}
|
|
24536
|
-
return of(null);
|
|
24537
|
-
}
|
|
24538
24211
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GuestServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24539
24212
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GuestServiceProxy }); }
|
|
24540
24213
|
}
|
|
@@ -25227,21 +24900,16 @@ class KeyOptionServiceProxy {
|
|
|
25227
24900
|
return of(null);
|
|
25228
24901
|
}
|
|
25229
24902
|
/**
|
|
25230
|
-
* @param parkId (optional)
|
|
25231
24903
|
* @return Success
|
|
25232
24904
|
*/
|
|
25233
|
-
deleteKeyOption(id,
|
|
25234
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/keyoption/{id}
|
|
24905
|
+
deleteKeyOption(id, guid) {
|
|
24906
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/keyoption/{id}";
|
|
25235
24907
|
if (id === undefined || id === null)
|
|
25236
24908
|
throw new Error("The parameter 'id' must be defined.");
|
|
25237
24909
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25238
24910
|
if (guid === undefined || guid === null)
|
|
25239
24911
|
throw new Error("The parameter 'guid' must be defined.");
|
|
25240
24912
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
25241
|
-
if (parkId === null)
|
|
25242
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
25243
|
-
else if (parkId !== undefined)
|
|
25244
|
-
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
25245
24913
|
url_ = url_.replace(/[?&]$/, "");
|
|
25246
24914
|
let options_ = {
|
|
25247
24915
|
observe: "response",
|
|
@@ -25995,11 +25663,8 @@ class MonthlyServiceProxy {
|
|
|
25995
25663
|
* @param body (optional)
|
|
25996
25664
|
* @return Success
|
|
25997
25665
|
*/
|
|
25998
|
-
getMonthlies(
|
|
25999
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly
|
|
26000
|
-
if (parkId === undefined || parkId === null)
|
|
26001
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
26002
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
25666
|
+
getMonthlies(guid, body) {
|
|
25667
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly";
|
|
26003
25668
|
if (guid === undefined || guid === null)
|
|
26004
25669
|
throw new Error("The parameter 'guid' must be defined.");
|
|
26005
25670
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -26062,6 +25727,105 @@ class MonthlyServiceProxy {
|
|
|
26062
25727
|
}
|
|
26063
25728
|
return of(null);
|
|
26064
25729
|
}
|
|
25730
|
+
/**
|
|
25731
|
+
* @param companyIds (optional)
|
|
25732
|
+
* @param subCompanyIds (optional)
|
|
25733
|
+
* @param includeAccessProfile (optional)
|
|
25734
|
+
* @param includeSubCompanies (optional)
|
|
25735
|
+
* @param parkId (optional)
|
|
25736
|
+
* @param maxResults (optional)
|
|
25737
|
+
* @param searchTerm (optional)
|
|
25738
|
+
* @param orderBy_Column (optional)
|
|
25739
|
+
* @param orderBy_OrderDirection (optional)
|
|
25740
|
+
* @return Success
|
|
25741
|
+
*/
|
|
25742
|
+
get(companyIds, subCompanyIds, includeAccessProfile, includeSubCompanies, parkId, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
25743
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly?";
|
|
25744
|
+
if (guid === undefined || guid === null)
|
|
25745
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
25746
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
25747
|
+
if (companyIds !== undefined && companyIds !== null)
|
|
25748
|
+
companyIds && companyIds.forEach(item => { url_ += "CompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
25749
|
+
if (subCompanyIds !== undefined && subCompanyIds !== null)
|
|
25750
|
+
subCompanyIds && subCompanyIds.forEach(item => { url_ += "SubCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
25751
|
+
if (includeAccessProfile === null)
|
|
25752
|
+
throw new Error("The parameter 'includeAccessProfile' cannot be null.");
|
|
25753
|
+
else if (includeAccessProfile !== undefined)
|
|
25754
|
+
url_ += "IncludeAccessProfile=" + encodeURIComponent("" + includeAccessProfile) + "&";
|
|
25755
|
+
if (includeSubCompanies === null)
|
|
25756
|
+
throw new Error("The parameter 'includeSubCompanies' cannot be null.");
|
|
25757
|
+
else if (includeSubCompanies !== undefined)
|
|
25758
|
+
url_ += "IncludeSubCompanies=" + encodeURIComponent("" + includeSubCompanies) + "&";
|
|
25759
|
+
if (parkId === null)
|
|
25760
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
25761
|
+
else if (parkId !== undefined)
|
|
25762
|
+
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
25763
|
+
if (maxResults !== undefined && maxResults !== null)
|
|
25764
|
+
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
25765
|
+
if (searchTerm !== undefined && searchTerm !== null)
|
|
25766
|
+
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
25767
|
+
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
25768
|
+
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
25769
|
+
if (orderBy_OrderDirection === null)
|
|
25770
|
+
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
25771
|
+
else if (orderBy_OrderDirection !== undefined)
|
|
25772
|
+
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
25773
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25774
|
+
let options_ = {
|
|
25775
|
+
observe: "response",
|
|
25776
|
+
responseType: "blob",
|
|
25777
|
+
headers: new HttpHeaders({
|
|
25778
|
+
"Accept": "text/plain"
|
|
25779
|
+
})
|
|
25780
|
+
};
|
|
25781
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
25782
|
+
return this.processGet(response_);
|
|
25783
|
+
})).pipe(catchError((response_) => {
|
|
25784
|
+
if (response_ instanceof HttpResponseBase) {
|
|
25785
|
+
try {
|
|
25786
|
+
return this.processGet(response_);
|
|
25787
|
+
}
|
|
25788
|
+
catch (e) {
|
|
25789
|
+
return throwError(e);
|
|
25790
|
+
}
|
|
25791
|
+
}
|
|
25792
|
+
else
|
|
25793
|
+
return throwError(response_);
|
|
25794
|
+
}));
|
|
25795
|
+
}
|
|
25796
|
+
processGet(response) {
|
|
25797
|
+
const status = response.status;
|
|
25798
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
25799
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
25800
|
+
let _headers = {};
|
|
25801
|
+
if (response.headers) {
|
|
25802
|
+
for (let key of response.headers.keys()) {
|
|
25803
|
+
_headers[key] = response.headers.get(key);
|
|
25804
|
+
}
|
|
25805
|
+
}
|
|
25806
|
+
if (status === 404) {
|
|
25807
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
25808
|
+
let result404 = null;
|
|
25809
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25810
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
25811
|
+
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
25812
|
+
}));
|
|
25813
|
+
}
|
|
25814
|
+
else if (status === 200) {
|
|
25815
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
25816
|
+
let result200 = null;
|
|
25817
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25818
|
+
result200 = MonthlyBaseDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
25819
|
+
return of(result200);
|
|
25820
|
+
}));
|
|
25821
|
+
}
|
|
25822
|
+
else if (status !== 200 && status !== 204) {
|
|
25823
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
25824
|
+
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25825
|
+
}));
|
|
25826
|
+
}
|
|
25827
|
+
return of(null);
|
|
25828
|
+
}
|
|
26065
25829
|
/**
|
|
26066
25830
|
* @return Success
|
|
26067
25831
|
*/
|
|
@@ -26130,21 +25894,16 @@ class MonthlyServiceProxy {
|
|
|
26130
25894
|
return of(null);
|
|
26131
25895
|
}
|
|
26132
25896
|
/**
|
|
26133
|
-
* @param parkId (optional)
|
|
26134
25897
|
* @return Success
|
|
26135
25898
|
*/
|
|
26136
|
-
deleteMonthly(id,
|
|
26137
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/{id}
|
|
25899
|
+
deleteMonthly(id, guid) {
|
|
25900
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/{id}";
|
|
26138
25901
|
if (id === undefined || id === null)
|
|
26139
25902
|
throw new Error("The parameter 'id' must be defined.");
|
|
26140
25903
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26141
25904
|
if (guid === undefined || guid === null)
|
|
26142
25905
|
throw new Error("The parameter 'guid' must be defined.");
|
|
26143
25906
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
26144
|
-
if (parkId === null)
|
|
26145
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
26146
|
-
else if (parkId !== undefined)
|
|
26147
|
-
url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
|
|
26148
25907
|
url_ = url_.replace(/[?&]$/, "");
|
|
26149
25908
|
let options_ = {
|
|
26150
25909
|
observe: "response",
|
|
@@ -26827,88 +26586,6 @@ class MonthlyServiceProxy {
|
|
|
26827
26586
|
}
|
|
26828
26587
|
return of(null);
|
|
26829
26588
|
}
|
|
26830
|
-
/**
|
|
26831
|
-
* @param maxResults (optional)
|
|
26832
|
-
* @param searchTerm (optional)
|
|
26833
|
-
* @param orderBy_Column (optional)
|
|
26834
|
-
* @param orderBy_OrderDirection (optional)
|
|
26835
|
-
* @param body (optional)
|
|
26836
|
-
* @return Success
|
|
26837
|
-
*/
|
|
26838
|
-
getBase(maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid, body) {
|
|
26839
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/base?";
|
|
26840
|
-
if (guid === undefined || guid === null)
|
|
26841
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
26842
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
26843
|
-
if (maxResults !== undefined && maxResults !== null)
|
|
26844
|
-
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
26845
|
-
if (searchTerm !== undefined && searchTerm !== null)
|
|
26846
|
-
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
26847
|
-
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
26848
|
-
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
26849
|
-
if (orderBy_OrderDirection === null)
|
|
26850
|
-
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
26851
|
-
else if (orderBy_OrderDirection !== undefined)
|
|
26852
|
-
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
26853
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26854
|
-
const content_ = JSON.stringify(body);
|
|
26855
|
-
let options_ = {
|
|
26856
|
-
body: content_,
|
|
26857
|
-
observe: "response",
|
|
26858
|
-
responseType: "blob",
|
|
26859
|
-
headers: new HttpHeaders({
|
|
26860
|
-
"Content-Type": "application/json-patch+json",
|
|
26861
|
-
"Accept": "text/plain"
|
|
26862
|
-
})
|
|
26863
|
-
};
|
|
26864
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
26865
|
-
return this.processGetBase(response_);
|
|
26866
|
-
})).pipe(catchError((response_) => {
|
|
26867
|
-
if (response_ instanceof HttpResponseBase) {
|
|
26868
|
-
try {
|
|
26869
|
-
return this.processGetBase(response_);
|
|
26870
|
-
}
|
|
26871
|
-
catch (e) {
|
|
26872
|
-
return throwError(e);
|
|
26873
|
-
}
|
|
26874
|
-
}
|
|
26875
|
-
else
|
|
26876
|
-
return throwError(response_);
|
|
26877
|
-
}));
|
|
26878
|
-
}
|
|
26879
|
-
processGetBase(response) {
|
|
26880
|
-
const status = response.status;
|
|
26881
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
26882
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
26883
|
-
let _headers = {};
|
|
26884
|
-
if (response.headers) {
|
|
26885
|
-
for (let key of response.headers.keys()) {
|
|
26886
|
-
_headers[key] = response.headers.get(key);
|
|
26887
|
-
}
|
|
26888
|
-
}
|
|
26889
|
-
if (status === 404) {
|
|
26890
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26891
|
-
let result404 = null;
|
|
26892
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26893
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
26894
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
26895
|
-
}));
|
|
26896
|
-
}
|
|
26897
|
-
else if (status === 200) {
|
|
26898
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26899
|
-
let result200 = null;
|
|
26900
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26901
|
-
result200 = MonthlyBaseDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
26902
|
-
return of(result200);
|
|
26903
|
-
}));
|
|
26904
|
-
}
|
|
26905
|
-
else if (status !== 200 && status !== 204) {
|
|
26906
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26907
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26908
|
-
}));
|
|
26909
|
-
}
|
|
26910
|
-
return of(null);
|
|
26911
|
-
}
|
|
26912
26589
|
/**
|
|
26913
26590
|
* @param entityId (optional)
|
|
26914
26591
|
* @param startDate (optional)
|
|
@@ -27011,147 +26688,72 @@ class MonthlyServiceProxy {
|
|
|
27011
26688
|
return of(null);
|
|
27012
26689
|
}
|
|
27013
26690
|
/**
|
|
27014
|
-
* @param
|
|
27015
|
-
* @
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
|
|
27022
|
-
|
|
27023
|
-
|
|
27024
|
-
|
|
27025
|
-
|
|
27026
|
-
|
|
27027
|
-
|
|
27028
|
-
body: content_,
|
|
27029
|
-
observe: "response",
|
|
27030
|
-
responseType: "blob",
|
|
27031
|
-
headers: new HttpHeaders({
|
|
27032
|
-
"Content-Type": "application/json-patch+json",
|
|
27033
|
-
"Accept": "text/plain"
|
|
27034
|
-
})
|
|
27035
|
-
};
|
|
27036
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27037
|
-
return this.processMonthliesTraffic(response_);
|
|
27038
|
-
})).pipe(catchError((response_) => {
|
|
27039
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27040
|
-
try {
|
|
27041
|
-
return this.processMonthliesTraffic(response_);
|
|
27042
|
-
}
|
|
27043
|
-
catch (e) {
|
|
27044
|
-
return throwError(e);
|
|
27045
|
-
}
|
|
27046
|
-
}
|
|
27047
|
-
else
|
|
27048
|
-
return throwError(response_);
|
|
27049
|
-
}));
|
|
27050
|
-
}
|
|
27051
|
-
processMonthliesTraffic(response) {
|
|
27052
|
-
const status = response.status;
|
|
27053
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27054
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27055
|
-
let _headers = {};
|
|
27056
|
-
if (response.headers) {
|
|
27057
|
-
for (let key of response.headers.keys()) {
|
|
27058
|
-
_headers[key] = response.headers.get(key);
|
|
27059
|
-
}
|
|
27060
|
-
}
|
|
27061
|
-
if (status === 404) {
|
|
27062
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27063
|
-
let result404 = null;
|
|
27064
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27065
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
27066
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27067
|
-
}));
|
|
27068
|
-
}
|
|
27069
|
-
else if (status === 200) {
|
|
27070
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27071
|
-
let result200 = null;
|
|
27072
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27073
|
-
result200 = MonthlyTrafficDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27074
|
-
return of(result200);
|
|
27075
|
-
}));
|
|
27076
|
-
}
|
|
27077
|
-
else if (status !== 200 && status !== 204) {
|
|
27078
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27079
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27080
|
-
}));
|
|
27081
|
-
}
|
|
27082
|
-
return of(null);
|
|
27083
|
-
}
|
|
27084
|
-
/**
|
|
27085
|
-
* @param body (optional)
|
|
27086
|
-
* @return Success
|
|
27087
|
-
*/
|
|
27088
|
-
sendMonthlyEmail(guid, body) {
|
|
27089
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/send-monthly-email";
|
|
27090
|
-
if (guid === undefined || guid === null)
|
|
27091
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
27092
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27093
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27094
|
-
const content_ = JSON.stringify(body);
|
|
27095
|
-
let options_ = {
|
|
27096
|
-
body: content_,
|
|
27097
|
-
observe: "response",
|
|
27098
|
-
responseType: "blob",
|
|
27099
|
-
headers: new HttpHeaders({
|
|
27100
|
-
"Content-Type": "application/json-patch+json",
|
|
27101
|
-
"Accept": "text/plain"
|
|
27102
|
-
})
|
|
27103
|
-
};
|
|
27104
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27105
|
-
return this.processSendMonthlyEmail(response_);
|
|
27106
|
-
})).pipe(catchError((response_) => {
|
|
27107
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27108
|
-
try {
|
|
27109
|
-
return this.processSendMonthlyEmail(response_);
|
|
27110
|
-
}
|
|
27111
|
-
catch (e) {
|
|
27112
|
-
return throwError(e);
|
|
27113
|
-
}
|
|
27114
|
-
}
|
|
27115
|
-
else
|
|
27116
|
-
return throwError(response_);
|
|
27117
|
-
}));
|
|
27118
|
-
}
|
|
27119
|
-
processSendMonthlyEmail(response) {
|
|
27120
|
-
const status = response.status;
|
|
27121
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27122
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27123
|
-
let _headers = {};
|
|
27124
|
-
if (response.headers) {
|
|
27125
|
-
for (let key of response.headers.keys()) {
|
|
27126
|
-
_headers[key] = response.headers.get(key);
|
|
27127
|
-
}
|
|
27128
|
-
}
|
|
27129
|
-
if (status === 200) {
|
|
27130
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27131
|
-
let result200 = null;
|
|
27132
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27133
|
-
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
27134
|
-
return of(result200);
|
|
27135
|
-
}));
|
|
27136
|
-
}
|
|
27137
|
-
else if (status !== 200 && status !== 204) {
|
|
27138
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27139
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27140
|
-
}));
|
|
27141
|
-
}
|
|
27142
|
-
return of(null);
|
|
27143
|
-
}
|
|
27144
|
-
/**
|
|
26691
|
+
* @param parkId (optional)
|
|
26692
|
+
* @param monthlyTrafficSearchFieldSelector (optional)
|
|
26693
|
+
* @param credentialMediaType (optional)
|
|
26694
|
+
* @param deviceIds (optional)
|
|
26695
|
+
* @param companiesFilterDto_CompanyIds (optional)
|
|
26696
|
+
* @param companiesFilterDto_SubCompanyIds (optional)
|
|
26697
|
+
* @param companiesFilterDto_IncludeAccessProfile (optional)
|
|
26698
|
+
* @param companiesFilterDto_IncludeSubCompanies (optional)
|
|
26699
|
+
* @param companiesFilterDto_ParkId (optional)
|
|
26700
|
+
* @param searchValue (optional)
|
|
26701
|
+
* @param from (optional)
|
|
26702
|
+
* @param to (optional)
|
|
26703
|
+
* @param take (optional)
|
|
26704
|
+
* @param skip (optional)
|
|
27145
26705
|
* @return Success
|
|
26706
|
+
* @deprecated
|
|
27146
26707
|
*/
|
|
27147
|
-
|
|
27148
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/
|
|
27149
|
-
if (accountId === undefined || accountId === null)
|
|
27150
|
-
throw new Error("The parameter 'accountId' must be defined.");
|
|
27151
|
-
url_ = url_.replace("{accountId}", encodeURIComponent("" + accountId));
|
|
26708
|
+
getMonthliesTraffic(parkId, monthlyTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
26709
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/monthlies-traffic?";
|
|
27152
26710
|
if (guid === undefined || guid === null)
|
|
27153
26711
|
throw new Error("The parameter 'guid' must be defined.");
|
|
27154
26712
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
26713
|
+
if (parkId === null)
|
|
26714
|
+
throw new Error("The parameter 'parkId' cannot be null.");
|
|
26715
|
+
else if (parkId !== undefined)
|
|
26716
|
+
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
26717
|
+
if (monthlyTrafficSearchFieldSelector === null)
|
|
26718
|
+
throw new Error("The parameter 'monthlyTrafficSearchFieldSelector' cannot be null.");
|
|
26719
|
+
else if (monthlyTrafficSearchFieldSelector !== undefined)
|
|
26720
|
+
url_ += "MonthlyTrafficSearchFieldSelector=" + encodeURIComponent("" + monthlyTrafficSearchFieldSelector) + "&";
|
|
26721
|
+
if (credentialMediaType === null)
|
|
26722
|
+
throw new Error("The parameter 'credentialMediaType' cannot be null.");
|
|
26723
|
+
else if (credentialMediaType !== undefined)
|
|
26724
|
+
url_ += "CredentialMediaType=" + encodeURIComponent("" + credentialMediaType) + "&";
|
|
26725
|
+
if (deviceIds !== undefined && deviceIds !== null)
|
|
26726
|
+
deviceIds && deviceIds.forEach(item => { url_ += "DeviceIds=" + encodeURIComponent("" + item) + "&"; });
|
|
26727
|
+
if (companiesFilterDto_CompanyIds !== undefined && companiesFilterDto_CompanyIds !== null)
|
|
26728
|
+
companiesFilterDto_CompanyIds && companiesFilterDto_CompanyIds.forEach(item => { url_ += "CompaniesFilterDto.CompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
26729
|
+
if (companiesFilterDto_SubCompanyIds !== undefined && companiesFilterDto_SubCompanyIds !== null)
|
|
26730
|
+
companiesFilterDto_SubCompanyIds && companiesFilterDto_SubCompanyIds.forEach(item => { url_ += "CompaniesFilterDto.SubCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
26731
|
+
if (companiesFilterDto_IncludeAccessProfile === null)
|
|
26732
|
+
throw new Error("The parameter 'companiesFilterDto_IncludeAccessProfile' cannot be null.");
|
|
26733
|
+
else if (companiesFilterDto_IncludeAccessProfile !== undefined)
|
|
26734
|
+
url_ += "CompaniesFilterDto.IncludeAccessProfile=" + encodeURIComponent("" + companiesFilterDto_IncludeAccessProfile) + "&";
|
|
26735
|
+
if (companiesFilterDto_IncludeSubCompanies === null)
|
|
26736
|
+
throw new Error("The parameter 'companiesFilterDto_IncludeSubCompanies' cannot be null.");
|
|
26737
|
+
else if (companiesFilterDto_IncludeSubCompanies !== undefined)
|
|
26738
|
+
url_ += "CompaniesFilterDto.IncludeSubCompanies=" + encodeURIComponent("" + companiesFilterDto_IncludeSubCompanies) + "&";
|
|
26739
|
+
if (companiesFilterDto_ParkId === null)
|
|
26740
|
+
throw new Error("The parameter 'companiesFilterDto_ParkId' cannot be null.");
|
|
26741
|
+
else if (companiesFilterDto_ParkId !== undefined)
|
|
26742
|
+
url_ += "CompaniesFilterDto.ParkId=" + encodeURIComponent("" + companiesFilterDto_ParkId) + "&";
|
|
26743
|
+
if (searchValue !== undefined && searchValue !== null)
|
|
26744
|
+
url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
|
|
26745
|
+
if (from !== undefined && from !== null)
|
|
26746
|
+
url_ += "From=" + encodeURIComponent("" + from) + "&";
|
|
26747
|
+
if (to !== undefined && to !== null)
|
|
26748
|
+
url_ += "To=" + encodeURIComponent("" + to) + "&";
|
|
26749
|
+
if (take === null)
|
|
26750
|
+
throw new Error("The parameter 'take' cannot be null.");
|
|
26751
|
+
else if (take !== undefined)
|
|
26752
|
+
url_ += "Take=" + encodeURIComponent("" + take) + "&";
|
|
26753
|
+
if (skip === null)
|
|
26754
|
+
throw new Error("The parameter 'skip' cannot be null.");
|
|
26755
|
+
else if (skip !== undefined)
|
|
26756
|
+
url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
|
|
27155
26757
|
url_ = url_.replace(/[?&]$/, "");
|
|
27156
26758
|
let options_ = {
|
|
27157
26759
|
observe: "response",
|
|
@@ -27161,11 +26763,11 @@ class MonthlyServiceProxy {
|
|
|
27161
26763
|
})
|
|
27162
26764
|
};
|
|
27163
26765
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
27164
|
-
return this.
|
|
26766
|
+
return this.processGetMonthliesTraffic(response_);
|
|
27165
26767
|
})).pipe(catchError((response_) => {
|
|
27166
26768
|
if (response_ instanceof HttpResponseBase) {
|
|
27167
26769
|
try {
|
|
27168
|
-
return this.
|
|
26770
|
+
return this.processGetMonthliesTraffic(response_);
|
|
27169
26771
|
}
|
|
27170
26772
|
catch (e) {
|
|
27171
26773
|
return throwError(e);
|
|
@@ -27175,7 +26777,7 @@ class MonthlyServiceProxy {
|
|
|
27175
26777
|
return throwError(response_);
|
|
27176
26778
|
}));
|
|
27177
26779
|
}
|
|
27178
|
-
|
|
26780
|
+
processGetMonthliesTraffic(response) {
|
|
27179
26781
|
const status = response.status;
|
|
27180
26782
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27181
26783
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -27197,341 +26799,7 @@ class MonthlyServiceProxy {
|
|
|
27197
26799
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27198
26800
|
let result200 = null;
|
|
27199
26801
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27200
|
-
result200 =
|
|
27201
|
-
return of(result200);
|
|
27202
|
-
}));
|
|
27203
|
-
}
|
|
27204
|
-
else if (status !== 200 && status !== 204) {
|
|
27205
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27206
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27207
|
-
}));
|
|
27208
|
-
}
|
|
27209
|
-
return of(null);
|
|
27210
|
-
}
|
|
27211
|
-
/**
|
|
27212
|
-
* @param body (optional)
|
|
27213
|
-
* @return Success
|
|
27214
|
-
*/
|
|
27215
|
-
createBasicMonthlySeries(guid, body) {
|
|
27216
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/create-basic-monthly-series";
|
|
27217
|
-
if (guid === undefined || guid === null)
|
|
27218
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
27219
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27220
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27221
|
-
const content_ = JSON.stringify(body);
|
|
27222
|
-
let options_ = {
|
|
27223
|
-
body: content_,
|
|
27224
|
-
observe: "response",
|
|
27225
|
-
responseType: "blob",
|
|
27226
|
-
headers: new HttpHeaders({
|
|
27227
|
-
"Content-Type": "application/json-patch+json",
|
|
27228
|
-
"Accept": "text/plain"
|
|
27229
|
-
})
|
|
27230
|
-
};
|
|
27231
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27232
|
-
return this.processCreateBasicMonthlySeries(response_);
|
|
27233
|
-
})).pipe(catchError((response_) => {
|
|
27234
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27235
|
-
try {
|
|
27236
|
-
return this.processCreateBasicMonthlySeries(response_);
|
|
27237
|
-
}
|
|
27238
|
-
catch (e) {
|
|
27239
|
-
return throwError(e);
|
|
27240
|
-
}
|
|
27241
|
-
}
|
|
27242
|
-
else
|
|
27243
|
-
return throwError(response_);
|
|
27244
|
-
}));
|
|
27245
|
-
}
|
|
27246
|
-
processCreateBasicMonthlySeries(response) {
|
|
27247
|
-
const status = response.status;
|
|
27248
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27249
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27250
|
-
let _headers = {};
|
|
27251
|
-
if (response.headers) {
|
|
27252
|
-
for (let key of response.headers.keys()) {
|
|
27253
|
-
_headers[key] = response.headers.get(key);
|
|
27254
|
-
}
|
|
27255
|
-
}
|
|
27256
|
-
if (status === 200) {
|
|
27257
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27258
|
-
let result200 = null;
|
|
27259
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27260
|
-
result200 = MonthlyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27261
|
-
return of(result200);
|
|
27262
|
-
}));
|
|
27263
|
-
}
|
|
27264
|
-
else if (status === 500) {
|
|
27265
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27266
|
-
let result500 = null;
|
|
27267
|
-
let resultData500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27268
|
-
result500 = ProblemDetailsHttpResponseData.fromJS(resultData500);
|
|
27269
|
-
return throwException$1("Server Error", status, _responseText, _headers, result500);
|
|
27270
|
-
}));
|
|
27271
|
-
}
|
|
27272
|
-
else if (status === 204) {
|
|
27273
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27274
|
-
return throwException$1("No Content", status, _responseText, _headers);
|
|
27275
|
-
}));
|
|
27276
|
-
}
|
|
27277
|
-
else if (status === 404) {
|
|
27278
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27279
|
-
let result404 = null;
|
|
27280
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27281
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
27282
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27283
|
-
}));
|
|
27284
|
-
}
|
|
27285
|
-
else {
|
|
27286
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27287
|
-
let resultdefault = null;
|
|
27288
|
-
let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27289
|
-
resultdefault = ProblemDetails.fromJS(resultDatadefault);
|
|
27290
|
-
return throwException$1("Error", status, _responseText, _headers, resultdefault);
|
|
27291
|
-
}));
|
|
27292
|
-
}
|
|
27293
|
-
}
|
|
27294
|
-
/**
|
|
27295
|
-
* @param body (optional)
|
|
27296
|
-
* @return Success
|
|
27297
|
-
*/
|
|
27298
|
-
createMonthlySeries(guid, body) {
|
|
27299
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/create-monthly-series";
|
|
27300
|
-
if (guid === undefined || guid === null)
|
|
27301
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
27302
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27303
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27304
|
-
const content_ = JSON.stringify(body);
|
|
27305
|
-
let options_ = {
|
|
27306
|
-
body: content_,
|
|
27307
|
-
observe: "response",
|
|
27308
|
-
responseType: "blob",
|
|
27309
|
-
headers: new HttpHeaders({
|
|
27310
|
-
"Content-Type": "application/json-patch+json",
|
|
27311
|
-
"Accept": "text/plain"
|
|
27312
|
-
})
|
|
27313
|
-
};
|
|
27314
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27315
|
-
return this.processCreateMonthlySeries(response_);
|
|
27316
|
-
})).pipe(catchError((response_) => {
|
|
27317
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27318
|
-
try {
|
|
27319
|
-
return this.processCreateMonthlySeries(response_);
|
|
27320
|
-
}
|
|
27321
|
-
catch (e) {
|
|
27322
|
-
return throwError(e);
|
|
27323
|
-
}
|
|
27324
|
-
}
|
|
27325
|
-
else
|
|
27326
|
-
return throwError(response_);
|
|
27327
|
-
}));
|
|
27328
|
-
}
|
|
27329
|
-
processCreateMonthlySeries(response) {
|
|
27330
|
-
const status = response.status;
|
|
27331
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27332
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27333
|
-
let _headers = {};
|
|
27334
|
-
if (response.headers) {
|
|
27335
|
-
for (let key of response.headers.keys()) {
|
|
27336
|
-
_headers[key] = response.headers.get(key);
|
|
27337
|
-
}
|
|
27338
|
-
}
|
|
27339
|
-
if (status === 500) {
|
|
27340
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27341
|
-
let result500 = null;
|
|
27342
|
-
let resultData500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27343
|
-
result500 = ProblemDetailsHttpResponseData.fromJS(resultData500);
|
|
27344
|
-
return throwException$1("Server Error", status, _responseText, _headers, result500);
|
|
27345
|
-
}));
|
|
27346
|
-
}
|
|
27347
|
-
else if (status === 204) {
|
|
27348
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27349
|
-
return throwException$1("No Content", status, _responseText, _headers);
|
|
27350
|
-
}));
|
|
27351
|
-
}
|
|
27352
|
-
else if (status === 404) {
|
|
27353
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27354
|
-
let result404 = null;
|
|
27355
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27356
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
27357
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27358
|
-
}));
|
|
27359
|
-
}
|
|
27360
|
-
else if (status === 200) {
|
|
27361
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27362
|
-
let result200 = null;
|
|
27363
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27364
|
-
result200 = MonthlyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27365
|
-
return of(result200);
|
|
27366
|
-
}));
|
|
27367
|
-
}
|
|
27368
|
-
else {
|
|
27369
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27370
|
-
let resultdefault = null;
|
|
27371
|
-
let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27372
|
-
resultdefault = ProblemDetails.fromJS(resultDatadefault);
|
|
27373
|
-
return throwException$1("Error", status, _responseText, _headers, resultdefault);
|
|
27374
|
-
}));
|
|
27375
|
-
}
|
|
27376
|
-
}
|
|
27377
|
-
/**
|
|
27378
|
-
* @param body (optional)
|
|
27379
|
-
* @return Success
|
|
27380
|
-
* @deprecated
|
|
27381
|
-
*/
|
|
27382
|
-
getMonthliesFromQuery(guid, body) {
|
|
27383
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly";
|
|
27384
|
-
if (guid === undefined || guid === null)
|
|
27385
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
27386
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27387
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27388
|
-
const content_ = JSON.stringify(body);
|
|
27389
|
-
let options_ = {
|
|
27390
|
-
body: content_,
|
|
27391
|
-
observe: "response",
|
|
27392
|
-
responseType: "blob",
|
|
27393
|
-
headers: new HttpHeaders({
|
|
27394
|
-
"Content-Type": "application/json-patch+json",
|
|
27395
|
-
"Accept": "text/plain"
|
|
27396
|
-
})
|
|
27397
|
-
};
|
|
27398
|
-
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27399
|
-
return this.processGetMonthliesFromQuery(response_);
|
|
27400
|
-
})).pipe(catchError((response_) => {
|
|
27401
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27402
|
-
try {
|
|
27403
|
-
return this.processGetMonthliesFromQuery(response_);
|
|
27404
|
-
}
|
|
27405
|
-
catch (e) {
|
|
27406
|
-
return throwError(e);
|
|
27407
|
-
}
|
|
27408
|
-
}
|
|
27409
|
-
else
|
|
27410
|
-
return throwError(response_);
|
|
27411
|
-
}));
|
|
27412
|
-
}
|
|
27413
|
-
processGetMonthliesFromQuery(response) {
|
|
27414
|
-
const status = response.status;
|
|
27415
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27416
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27417
|
-
let _headers = {};
|
|
27418
|
-
if (response.headers) {
|
|
27419
|
-
for (let key of response.headers.keys()) {
|
|
27420
|
-
_headers[key] = response.headers.get(key);
|
|
27421
|
-
}
|
|
27422
|
-
}
|
|
27423
|
-
if (status === 404) {
|
|
27424
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27425
|
-
let result404 = null;
|
|
27426
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27427
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
27428
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27429
|
-
}));
|
|
27430
|
-
}
|
|
27431
|
-
else if (status === 200) {
|
|
27432
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27433
|
-
let result200 = null;
|
|
27434
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27435
|
-
result200 = MonthlyDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
27436
|
-
return of(result200);
|
|
27437
|
-
}));
|
|
27438
|
-
}
|
|
27439
|
-
else if (status !== 200 && status !== 204) {
|
|
27440
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27441
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27442
|
-
}));
|
|
27443
|
-
}
|
|
27444
|
-
return of(null);
|
|
27445
|
-
}
|
|
27446
|
-
/**
|
|
27447
|
-
* @param companyIds (optional)
|
|
27448
|
-
* @param subCompanyIds (optional)
|
|
27449
|
-
* @param includeAccessProfile (optional)
|
|
27450
|
-
* @param includeSubCompanies (optional)
|
|
27451
|
-
* @param parkId (optional)
|
|
27452
|
-
* @param maxResults (optional)
|
|
27453
|
-
* @param searchTerm (optional)
|
|
27454
|
-
* @param orderBy_Column (optional)
|
|
27455
|
-
* @param orderBy_OrderDirection (optional)
|
|
27456
|
-
* @return Success
|
|
27457
|
-
*/
|
|
27458
|
-
get(companyIds, subCompanyIds, includeAccessProfile, includeSubCompanies, parkId, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
27459
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly?";
|
|
27460
|
-
if (guid === undefined || guid === null)
|
|
27461
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
27462
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27463
|
-
if (companyIds !== undefined && companyIds !== null)
|
|
27464
|
-
companyIds && companyIds.forEach(item => { url_ += "CompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
27465
|
-
if (subCompanyIds !== undefined && subCompanyIds !== null)
|
|
27466
|
-
subCompanyIds && subCompanyIds.forEach(item => { url_ += "SubCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
27467
|
-
if (includeAccessProfile === null)
|
|
27468
|
-
throw new Error("The parameter 'includeAccessProfile' cannot be null.");
|
|
27469
|
-
else if (includeAccessProfile !== undefined)
|
|
27470
|
-
url_ += "IncludeAccessProfile=" + encodeURIComponent("" + includeAccessProfile) + "&";
|
|
27471
|
-
if (includeSubCompanies === null)
|
|
27472
|
-
throw new Error("The parameter 'includeSubCompanies' cannot be null.");
|
|
27473
|
-
else if (includeSubCompanies !== undefined)
|
|
27474
|
-
url_ += "IncludeSubCompanies=" + encodeURIComponent("" + includeSubCompanies) + "&";
|
|
27475
|
-
if (parkId === null)
|
|
27476
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
27477
|
-
else if (parkId !== undefined)
|
|
27478
|
-
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
27479
|
-
if (maxResults !== undefined && maxResults !== null)
|
|
27480
|
-
url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
|
|
27481
|
-
if (searchTerm !== undefined && searchTerm !== null)
|
|
27482
|
-
url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
|
|
27483
|
-
if (orderBy_Column !== undefined && orderBy_Column !== null)
|
|
27484
|
-
url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
|
|
27485
|
-
if (orderBy_OrderDirection === null)
|
|
27486
|
-
throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
|
|
27487
|
-
else if (orderBy_OrderDirection !== undefined)
|
|
27488
|
-
url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
|
|
27489
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27490
|
-
let options_ = {
|
|
27491
|
-
observe: "response",
|
|
27492
|
-
responseType: "blob",
|
|
27493
|
-
headers: new HttpHeaders({
|
|
27494
|
-
"Accept": "text/plain"
|
|
27495
|
-
})
|
|
27496
|
-
};
|
|
27497
|
-
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
27498
|
-
return this.processGet(response_);
|
|
27499
|
-
})).pipe(catchError((response_) => {
|
|
27500
|
-
if (response_ instanceof HttpResponseBase) {
|
|
27501
|
-
try {
|
|
27502
|
-
return this.processGet(response_);
|
|
27503
|
-
}
|
|
27504
|
-
catch (e) {
|
|
27505
|
-
return throwError(e);
|
|
27506
|
-
}
|
|
27507
|
-
}
|
|
27508
|
-
else
|
|
27509
|
-
return throwError(response_);
|
|
27510
|
-
}));
|
|
27511
|
-
}
|
|
27512
|
-
processGet(response) {
|
|
27513
|
-
const status = response.status;
|
|
27514
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27515
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
27516
|
-
let _headers = {};
|
|
27517
|
-
if (response.headers) {
|
|
27518
|
-
for (let key of response.headers.keys()) {
|
|
27519
|
-
_headers[key] = response.headers.get(key);
|
|
27520
|
-
}
|
|
27521
|
-
}
|
|
27522
|
-
if (status === 404) {
|
|
27523
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27524
|
-
let result404 = null;
|
|
27525
|
-
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27526
|
-
result404 = ProblemDetails.fromJS(resultData404);
|
|
27527
|
-
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27528
|
-
}));
|
|
27529
|
-
}
|
|
27530
|
-
else if (status === 200) {
|
|
27531
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27532
|
-
let result200 = null;
|
|
27533
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27534
|
-
result200 = MonthlyBaseDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
26802
|
+
result200 = MonthlyTrafficDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27535
26803
|
return of(result200);
|
|
27536
26804
|
}));
|
|
27537
26805
|
}
|
|
@@ -27558,9 +26826,8 @@ class MonthlyServiceProxy {
|
|
|
27558
26826
|
* @param take (optional)
|
|
27559
26827
|
* @param skip (optional)
|
|
27560
26828
|
* @return Success
|
|
27561
|
-
* @deprecated
|
|
27562
26829
|
*/
|
|
27563
|
-
|
|
26830
|
+
monthliesTraffic(parkId, monthlyTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
27564
26831
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/monthlies-traffic?";
|
|
27565
26832
|
if (guid === undefined || guid === null)
|
|
27566
26833
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -27617,12 +26884,12 @@ class MonthlyServiceProxy {
|
|
|
27617
26884
|
"Accept": "text/plain"
|
|
27618
26885
|
})
|
|
27619
26886
|
};
|
|
27620
|
-
return this.http.request("
|
|
27621
|
-
return this.
|
|
26887
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
26888
|
+
return this.processMonthliesTraffic(response_);
|
|
27622
26889
|
})).pipe(catchError((response_) => {
|
|
27623
26890
|
if (response_ instanceof HttpResponseBase) {
|
|
27624
26891
|
try {
|
|
27625
|
-
return this.
|
|
26892
|
+
return this.processMonthliesTraffic(response_);
|
|
27626
26893
|
}
|
|
27627
26894
|
catch (e) {
|
|
27628
26895
|
return throwError(e);
|
|
@@ -27632,7 +26899,7 @@ class MonthlyServiceProxy {
|
|
|
27632
26899
|
return throwError(response_);
|
|
27633
26900
|
}));
|
|
27634
26901
|
}
|
|
27635
|
-
|
|
26902
|
+
processMonthliesTraffic(response) {
|
|
27636
26903
|
const status = response.status;
|
|
27637
26904
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27638
26905
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -27666,85 +26933,31 @@ class MonthlyServiceProxy {
|
|
|
27666
26933
|
return of(null);
|
|
27667
26934
|
}
|
|
27668
26935
|
/**
|
|
27669
|
-
* @param
|
|
27670
|
-
* @param monthlyTrafficSearchFieldSelector (optional)
|
|
27671
|
-
* @param credentialMediaType (optional)
|
|
27672
|
-
* @param deviceIds (optional)
|
|
27673
|
-
* @param companiesFilterDto_CompanyIds (optional)
|
|
27674
|
-
* @param companiesFilterDto_SubCompanyIds (optional)
|
|
27675
|
-
* @param companiesFilterDto_IncludeAccessProfile (optional)
|
|
27676
|
-
* @param companiesFilterDto_IncludeSubCompanies (optional)
|
|
27677
|
-
* @param companiesFilterDto_ParkId (optional)
|
|
27678
|
-
* @param searchValue (optional)
|
|
27679
|
-
* @param from (optional)
|
|
27680
|
-
* @param to (optional)
|
|
27681
|
-
* @param take (optional)
|
|
27682
|
-
* @param skip (optional)
|
|
26936
|
+
* @param body (optional)
|
|
27683
26937
|
* @return Success
|
|
27684
26938
|
*/
|
|
27685
|
-
|
|
27686
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/
|
|
26939
|
+
sendMonthlyEmail(guid, body) {
|
|
26940
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/send-monthly-email";
|
|
27687
26941
|
if (guid === undefined || guid === null)
|
|
27688
26942
|
throw new Error("The parameter 'guid' must be defined.");
|
|
27689
26943
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27690
|
-
if (parkId === null)
|
|
27691
|
-
throw new Error("The parameter 'parkId' cannot be null.");
|
|
27692
|
-
else if (parkId !== undefined)
|
|
27693
|
-
url_ += "ParkId=" + encodeURIComponent("" + parkId) + "&";
|
|
27694
|
-
if (monthlyTrafficSearchFieldSelector === null)
|
|
27695
|
-
throw new Error("The parameter 'monthlyTrafficSearchFieldSelector' cannot be null.");
|
|
27696
|
-
else if (monthlyTrafficSearchFieldSelector !== undefined)
|
|
27697
|
-
url_ += "MonthlyTrafficSearchFieldSelector=" + encodeURIComponent("" + monthlyTrafficSearchFieldSelector) + "&";
|
|
27698
|
-
if (credentialMediaType === null)
|
|
27699
|
-
throw new Error("The parameter 'credentialMediaType' cannot be null.");
|
|
27700
|
-
else if (credentialMediaType !== undefined)
|
|
27701
|
-
url_ += "CredentialMediaType=" + encodeURIComponent("" + credentialMediaType) + "&";
|
|
27702
|
-
if (deviceIds !== undefined && deviceIds !== null)
|
|
27703
|
-
deviceIds && deviceIds.forEach(item => { url_ += "DeviceIds=" + encodeURIComponent("" + item) + "&"; });
|
|
27704
|
-
if (companiesFilterDto_CompanyIds !== undefined && companiesFilterDto_CompanyIds !== null)
|
|
27705
|
-
companiesFilterDto_CompanyIds && companiesFilterDto_CompanyIds.forEach(item => { url_ += "CompaniesFilterDto.CompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
27706
|
-
if (companiesFilterDto_SubCompanyIds !== undefined && companiesFilterDto_SubCompanyIds !== null)
|
|
27707
|
-
companiesFilterDto_SubCompanyIds && companiesFilterDto_SubCompanyIds.forEach(item => { url_ += "CompaniesFilterDto.SubCompanyIds=" + encodeURIComponent("" + item) + "&"; });
|
|
27708
|
-
if (companiesFilterDto_IncludeAccessProfile === null)
|
|
27709
|
-
throw new Error("The parameter 'companiesFilterDto_IncludeAccessProfile' cannot be null.");
|
|
27710
|
-
else if (companiesFilterDto_IncludeAccessProfile !== undefined)
|
|
27711
|
-
url_ += "CompaniesFilterDto.IncludeAccessProfile=" + encodeURIComponent("" + companiesFilterDto_IncludeAccessProfile) + "&";
|
|
27712
|
-
if (companiesFilterDto_IncludeSubCompanies === null)
|
|
27713
|
-
throw new Error("The parameter 'companiesFilterDto_IncludeSubCompanies' cannot be null.");
|
|
27714
|
-
else if (companiesFilterDto_IncludeSubCompanies !== undefined)
|
|
27715
|
-
url_ += "CompaniesFilterDto.IncludeSubCompanies=" + encodeURIComponent("" + companiesFilterDto_IncludeSubCompanies) + "&";
|
|
27716
|
-
if (companiesFilterDto_ParkId === null)
|
|
27717
|
-
throw new Error("The parameter 'companiesFilterDto_ParkId' cannot be null.");
|
|
27718
|
-
else if (companiesFilterDto_ParkId !== undefined)
|
|
27719
|
-
url_ += "CompaniesFilterDto.ParkId=" + encodeURIComponent("" + companiesFilterDto_ParkId) + "&";
|
|
27720
|
-
if (searchValue !== undefined && searchValue !== null)
|
|
27721
|
-
url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
|
|
27722
|
-
if (from !== undefined && from !== null)
|
|
27723
|
-
url_ += "From=" + encodeURIComponent("" + from) + "&";
|
|
27724
|
-
if (to !== undefined && to !== null)
|
|
27725
|
-
url_ += "To=" + encodeURIComponent("" + to) + "&";
|
|
27726
|
-
if (take === null)
|
|
27727
|
-
throw new Error("The parameter 'take' cannot be null.");
|
|
27728
|
-
else if (take !== undefined)
|
|
27729
|
-
url_ += "Take=" + encodeURIComponent("" + take) + "&";
|
|
27730
|
-
if (skip === null)
|
|
27731
|
-
throw new Error("The parameter 'skip' cannot be null.");
|
|
27732
|
-
else if (skip !== undefined)
|
|
27733
|
-
url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
|
|
27734
26944
|
url_ = url_.replace(/[?&]$/, "");
|
|
26945
|
+
const content_ = JSON.stringify(body);
|
|
27735
26946
|
let options_ = {
|
|
26947
|
+
body: content_,
|
|
27736
26948
|
observe: "response",
|
|
27737
26949
|
responseType: "blob",
|
|
27738
26950
|
headers: new HttpHeaders({
|
|
26951
|
+
"Content-Type": "application/json-patch+json",
|
|
27739
26952
|
"Accept": "text/plain"
|
|
27740
26953
|
})
|
|
27741
26954
|
};
|
|
27742
26955
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27743
|
-
return this.
|
|
26956
|
+
return this.processSendMonthlyEmail(response_);
|
|
27744
26957
|
})).pipe(catchError((response_) => {
|
|
27745
26958
|
if (response_ instanceof HttpResponseBase) {
|
|
27746
26959
|
try {
|
|
27747
|
-
return this.
|
|
26960
|
+
return this.processSendMonthlyEmail(response_);
|
|
27748
26961
|
}
|
|
27749
26962
|
catch (e) {
|
|
27750
26963
|
return throwError(e);
|
|
@@ -27754,7 +26967,66 @@ class MonthlyServiceProxy {
|
|
|
27754
26967
|
return throwError(response_);
|
|
27755
26968
|
}));
|
|
27756
26969
|
}
|
|
27757
|
-
|
|
26970
|
+
processSendMonthlyEmail(response) {
|
|
26971
|
+
const status = response.status;
|
|
26972
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
26973
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
26974
|
+
let _headers = {};
|
|
26975
|
+
if (response.headers) {
|
|
26976
|
+
for (let key of response.headers.keys()) {
|
|
26977
|
+
_headers[key] = response.headers.get(key);
|
|
26978
|
+
}
|
|
26979
|
+
}
|
|
26980
|
+
if (status === 200) {
|
|
26981
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26982
|
+
let result200 = null;
|
|
26983
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26984
|
+
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
26985
|
+
return of(result200);
|
|
26986
|
+
}));
|
|
26987
|
+
}
|
|
26988
|
+
else if (status !== 200 && status !== 204) {
|
|
26989
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26990
|
+
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26991
|
+
}));
|
|
26992
|
+
}
|
|
26993
|
+
return of(null);
|
|
26994
|
+
}
|
|
26995
|
+
/**
|
|
26996
|
+
* @return Success
|
|
26997
|
+
*/
|
|
26998
|
+
getMonthliesAccountLimits(accountId, guid) {
|
|
26999
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/account/{accountId}/limits";
|
|
27000
|
+
if (accountId === undefined || accountId === null)
|
|
27001
|
+
throw new Error("The parameter 'accountId' must be defined.");
|
|
27002
|
+
url_ = url_.replace("{accountId}", encodeURIComponent("" + accountId));
|
|
27003
|
+
if (guid === undefined || guid === null)
|
|
27004
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
27005
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27006
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27007
|
+
let options_ = {
|
|
27008
|
+
observe: "response",
|
|
27009
|
+
responseType: "blob",
|
|
27010
|
+
headers: new HttpHeaders({
|
|
27011
|
+
"Accept": "text/plain"
|
|
27012
|
+
})
|
|
27013
|
+
};
|
|
27014
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
27015
|
+
return this.processGetMonthliesAccountLimits(response_);
|
|
27016
|
+
})).pipe(catchError((response_) => {
|
|
27017
|
+
if (response_ instanceof HttpResponseBase) {
|
|
27018
|
+
try {
|
|
27019
|
+
return this.processGetMonthliesAccountLimits(response_);
|
|
27020
|
+
}
|
|
27021
|
+
catch (e) {
|
|
27022
|
+
return throwError(e);
|
|
27023
|
+
}
|
|
27024
|
+
}
|
|
27025
|
+
else
|
|
27026
|
+
return throwError(response_);
|
|
27027
|
+
}));
|
|
27028
|
+
}
|
|
27029
|
+
processGetMonthliesAccountLimits(response) {
|
|
27758
27030
|
const status = response.status;
|
|
27759
27031
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27760
27032
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -27776,7 +27048,7 @@ class MonthlyServiceProxy {
|
|
|
27776
27048
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27777
27049
|
let result200 = null;
|
|
27778
27050
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27779
|
-
result200 =
|
|
27051
|
+
result200 = AccountLimitDtoHttpResponseData.fromJS(resultData200);
|
|
27780
27052
|
return of(result200);
|
|
27781
27053
|
}));
|
|
27782
27054
|
}
|
|
@@ -27787,6 +27059,172 @@ class MonthlyServiceProxy {
|
|
|
27787
27059
|
}
|
|
27788
27060
|
return of(null);
|
|
27789
27061
|
}
|
|
27062
|
+
/**
|
|
27063
|
+
* @param body (optional)
|
|
27064
|
+
* @return Success
|
|
27065
|
+
*/
|
|
27066
|
+
createBasicMonthlySeries(guid, body) {
|
|
27067
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/create-basic-monthly-series";
|
|
27068
|
+
if (guid === undefined || guid === null)
|
|
27069
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
27070
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27071
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27072
|
+
const content_ = JSON.stringify(body);
|
|
27073
|
+
let options_ = {
|
|
27074
|
+
body: content_,
|
|
27075
|
+
observe: "response",
|
|
27076
|
+
responseType: "blob",
|
|
27077
|
+
headers: new HttpHeaders({
|
|
27078
|
+
"Content-Type": "application/json-patch+json",
|
|
27079
|
+
"Accept": "text/plain"
|
|
27080
|
+
})
|
|
27081
|
+
};
|
|
27082
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27083
|
+
return this.processCreateBasicMonthlySeries(response_);
|
|
27084
|
+
})).pipe(catchError((response_) => {
|
|
27085
|
+
if (response_ instanceof HttpResponseBase) {
|
|
27086
|
+
try {
|
|
27087
|
+
return this.processCreateBasicMonthlySeries(response_);
|
|
27088
|
+
}
|
|
27089
|
+
catch (e) {
|
|
27090
|
+
return throwError(e);
|
|
27091
|
+
}
|
|
27092
|
+
}
|
|
27093
|
+
else
|
|
27094
|
+
return throwError(response_);
|
|
27095
|
+
}));
|
|
27096
|
+
}
|
|
27097
|
+
processCreateBasicMonthlySeries(response) {
|
|
27098
|
+
const status = response.status;
|
|
27099
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27100
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
27101
|
+
let _headers = {};
|
|
27102
|
+
if (response.headers) {
|
|
27103
|
+
for (let key of response.headers.keys()) {
|
|
27104
|
+
_headers[key] = response.headers.get(key);
|
|
27105
|
+
}
|
|
27106
|
+
}
|
|
27107
|
+
if (status === 200) {
|
|
27108
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27109
|
+
let result200 = null;
|
|
27110
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27111
|
+
result200 = MonthlyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27112
|
+
return of(result200);
|
|
27113
|
+
}));
|
|
27114
|
+
}
|
|
27115
|
+
else if (status === 500) {
|
|
27116
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27117
|
+
let result500 = null;
|
|
27118
|
+
let resultData500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27119
|
+
result500 = ProblemDetailsHttpResponseData.fromJS(resultData500);
|
|
27120
|
+
return throwException$1("Server Error", status, _responseText, _headers, result500);
|
|
27121
|
+
}));
|
|
27122
|
+
}
|
|
27123
|
+
else if (status === 204) {
|
|
27124
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27125
|
+
return throwException$1("No Content", status, _responseText, _headers);
|
|
27126
|
+
}));
|
|
27127
|
+
}
|
|
27128
|
+
else if (status === 404) {
|
|
27129
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27130
|
+
let result404 = null;
|
|
27131
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27132
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
27133
|
+
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27134
|
+
}));
|
|
27135
|
+
}
|
|
27136
|
+
else {
|
|
27137
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27138
|
+
let resultdefault = null;
|
|
27139
|
+
let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27140
|
+
resultdefault = ProblemDetails.fromJS(resultDatadefault);
|
|
27141
|
+
return throwException$1("Error", status, _responseText, _headers, resultdefault);
|
|
27142
|
+
}));
|
|
27143
|
+
}
|
|
27144
|
+
}
|
|
27145
|
+
/**
|
|
27146
|
+
* @param body (optional)
|
|
27147
|
+
* @return Success
|
|
27148
|
+
*/
|
|
27149
|
+
createMonthlySeries(guid, body) {
|
|
27150
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/create-monthly-series";
|
|
27151
|
+
if (guid === undefined || guid === null)
|
|
27152
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
27153
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27154
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27155
|
+
const content_ = JSON.stringify(body);
|
|
27156
|
+
let options_ = {
|
|
27157
|
+
body: content_,
|
|
27158
|
+
observe: "response",
|
|
27159
|
+
responseType: "blob",
|
|
27160
|
+
headers: new HttpHeaders({
|
|
27161
|
+
"Content-Type": "application/json-patch+json",
|
|
27162
|
+
"Accept": "text/plain"
|
|
27163
|
+
})
|
|
27164
|
+
};
|
|
27165
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
27166
|
+
return this.processCreateMonthlySeries(response_);
|
|
27167
|
+
})).pipe(catchError((response_) => {
|
|
27168
|
+
if (response_ instanceof HttpResponseBase) {
|
|
27169
|
+
try {
|
|
27170
|
+
return this.processCreateMonthlySeries(response_);
|
|
27171
|
+
}
|
|
27172
|
+
catch (e) {
|
|
27173
|
+
return throwError(e);
|
|
27174
|
+
}
|
|
27175
|
+
}
|
|
27176
|
+
else
|
|
27177
|
+
return throwError(response_);
|
|
27178
|
+
}));
|
|
27179
|
+
}
|
|
27180
|
+
processCreateMonthlySeries(response) {
|
|
27181
|
+
const status = response.status;
|
|
27182
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27183
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
27184
|
+
let _headers = {};
|
|
27185
|
+
if (response.headers) {
|
|
27186
|
+
for (let key of response.headers.keys()) {
|
|
27187
|
+
_headers[key] = response.headers.get(key);
|
|
27188
|
+
}
|
|
27189
|
+
}
|
|
27190
|
+
if (status === 500) {
|
|
27191
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27192
|
+
let result500 = null;
|
|
27193
|
+
let resultData500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27194
|
+
result500 = ProblemDetailsHttpResponseData.fromJS(resultData500);
|
|
27195
|
+
return throwException$1("Server Error", status, _responseText, _headers, result500);
|
|
27196
|
+
}));
|
|
27197
|
+
}
|
|
27198
|
+
else if (status === 204) {
|
|
27199
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27200
|
+
return throwException$1("No Content", status, _responseText, _headers);
|
|
27201
|
+
}));
|
|
27202
|
+
}
|
|
27203
|
+
else if (status === 404) {
|
|
27204
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27205
|
+
let result404 = null;
|
|
27206
|
+
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27207
|
+
result404 = ProblemDetails.fromJS(resultData404);
|
|
27208
|
+
return throwException$1("Not Found", status, _responseText, _headers, result404);
|
|
27209
|
+
}));
|
|
27210
|
+
}
|
|
27211
|
+
else if (status === 200) {
|
|
27212
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27213
|
+
let result200 = null;
|
|
27214
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27215
|
+
result200 = MonthlyDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27216
|
+
return of(result200);
|
|
27217
|
+
}));
|
|
27218
|
+
}
|
|
27219
|
+
else {
|
|
27220
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27221
|
+
let resultdefault = null;
|
|
27222
|
+
let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27223
|
+
resultdefault = ProblemDetails.fromJS(resultDatadefault);
|
|
27224
|
+
return throwException$1("Error", status, _responseText, _headers, resultdefault);
|
|
27225
|
+
}));
|
|
27226
|
+
}
|
|
27227
|
+
}
|
|
27790
27228
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthlyServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27791
27229
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthlyServiceProxy }); }
|
|
27792
27230
|
}
|
|
@@ -43452,7 +42890,6 @@ class DeleteMonthliesCommand {
|
|
|
43452
42890
|
for (let item of _data["ids"])
|
|
43453
42891
|
this.ids.push(item);
|
|
43454
42892
|
}
|
|
43455
|
-
this.parkId = _data["parkId"];
|
|
43456
42893
|
}
|
|
43457
42894
|
}
|
|
43458
42895
|
static fromJS(data) {
|
|
@@ -43468,7 +42905,6 @@ class DeleteMonthliesCommand {
|
|
|
43468
42905
|
for (let item of this.ids)
|
|
43469
42906
|
data["ids"].push(item);
|
|
43470
42907
|
}
|
|
43471
|
-
data["parkId"] = this.parkId;
|
|
43472
42908
|
return data;
|
|
43473
42909
|
}
|
|
43474
42910
|
clone() {
|
|
@@ -46532,122 +45968,6 @@ class GenerateReportResponseDtoHttpResponseData {
|
|
|
46532
45968
|
return result;
|
|
46533
45969
|
}
|
|
46534
45970
|
}
|
|
46535
|
-
class GetGuestsTrafficQuery {
|
|
46536
|
-
constructor(data) {
|
|
46537
|
-
if (data) {
|
|
46538
|
-
for (var property in data) {
|
|
46539
|
-
if (data.hasOwnProperty(property))
|
|
46540
|
-
this[property] = data[property];
|
|
46541
|
-
}
|
|
46542
|
-
}
|
|
46543
|
-
}
|
|
46544
|
-
init(_data) {
|
|
46545
|
-
if (_data) {
|
|
46546
|
-
this.searchValue = _data["searchValue"];
|
|
46547
|
-
this.from = _data["from"];
|
|
46548
|
-
this.to = _data["to"];
|
|
46549
|
-
this.take = _data["take"];
|
|
46550
|
-
this.skip = _data["skip"];
|
|
46551
|
-
this.parkId = _data["parkId"];
|
|
46552
|
-
this.guestTrafficSearchFieldSelector = _data["guestTrafficSearchFieldSelector"];
|
|
46553
|
-
this.credentialMediaType = _data["credentialMediaType"];
|
|
46554
|
-
if (Array.isArray(_data["deviceIds"])) {
|
|
46555
|
-
this.deviceIds = [];
|
|
46556
|
-
for (let item of _data["deviceIds"])
|
|
46557
|
-
this.deviceIds.push(item);
|
|
46558
|
-
}
|
|
46559
|
-
this.companiesFilterDto = _data["companiesFilterDto"] ? CompaniesFilterDto.fromJS(_data["companiesFilterDto"]) : undefined;
|
|
46560
|
-
}
|
|
46561
|
-
}
|
|
46562
|
-
static fromJS(data) {
|
|
46563
|
-
data = typeof data === 'object' ? data : {};
|
|
46564
|
-
let result = new GetGuestsTrafficQuery();
|
|
46565
|
-
result.init(data);
|
|
46566
|
-
return result;
|
|
46567
|
-
}
|
|
46568
|
-
toJSON(data) {
|
|
46569
|
-
data = typeof data === 'object' ? data : {};
|
|
46570
|
-
data["searchValue"] = this.searchValue;
|
|
46571
|
-
data["from"] = this.from;
|
|
46572
|
-
data["to"] = this.to;
|
|
46573
|
-
data["take"] = this.take;
|
|
46574
|
-
data["skip"] = this.skip;
|
|
46575
|
-
data["parkId"] = this.parkId;
|
|
46576
|
-
data["guestTrafficSearchFieldSelector"] = this.guestTrafficSearchFieldSelector;
|
|
46577
|
-
data["credentialMediaType"] = this.credentialMediaType;
|
|
46578
|
-
if (Array.isArray(this.deviceIds)) {
|
|
46579
|
-
data["deviceIds"] = [];
|
|
46580
|
-
for (let item of this.deviceIds)
|
|
46581
|
-
data["deviceIds"].push(item);
|
|
46582
|
-
}
|
|
46583
|
-
data["companiesFilterDto"] = this.companiesFilterDto ? this.companiesFilterDto.toJSON() : undefined;
|
|
46584
|
-
return data;
|
|
46585
|
-
}
|
|
46586
|
-
clone() {
|
|
46587
|
-
const json = this.toJSON();
|
|
46588
|
-
let result = new GetGuestsTrafficQuery();
|
|
46589
|
-
result.init(json);
|
|
46590
|
-
return result;
|
|
46591
|
-
}
|
|
46592
|
-
}
|
|
46593
|
-
class GetMonthliesTrafficQuery {
|
|
46594
|
-
constructor(data) {
|
|
46595
|
-
if (data) {
|
|
46596
|
-
for (var property in data) {
|
|
46597
|
-
if (data.hasOwnProperty(property))
|
|
46598
|
-
this[property] = data[property];
|
|
46599
|
-
}
|
|
46600
|
-
}
|
|
46601
|
-
}
|
|
46602
|
-
init(_data) {
|
|
46603
|
-
if (_data) {
|
|
46604
|
-
this.searchValue = _data["searchValue"];
|
|
46605
|
-
this.from = _data["from"];
|
|
46606
|
-
this.to = _data["to"];
|
|
46607
|
-
this.take = _data["take"];
|
|
46608
|
-
this.skip = _data["skip"];
|
|
46609
|
-
this.parkId = _data["parkId"];
|
|
46610
|
-
this.monthlyTrafficSearchFieldSelector = _data["monthlyTrafficSearchFieldSelector"];
|
|
46611
|
-
this.credentialMediaType = _data["credentialMediaType"];
|
|
46612
|
-
if (Array.isArray(_data["deviceIds"])) {
|
|
46613
|
-
this.deviceIds = [];
|
|
46614
|
-
for (let item of _data["deviceIds"])
|
|
46615
|
-
this.deviceIds.push(item);
|
|
46616
|
-
}
|
|
46617
|
-
this.companiesFilterDto = _data["companiesFilterDto"] ? CompaniesFilterDto.fromJS(_data["companiesFilterDto"]) : undefined;
|
|
46618
|
-
}
|
|
46619
|
-
}
|
|
46620
|
-
static fromJS(data) {
|
|
46621
|
-
data = typeof data === 'object' ? data : {};
|
|
46622
|
-
let result = new GetMonthliesTrafficQuery();
|
|
46623
|
-
result.init(data);
|
|
46624
|
-
return result;
|
|
46625
|
-
}
|
|
46626
|
-
toJSON(data) {
|
|
46627
|
-
data = typeof data === 'object' ? data : {};
|
|
46628
|
-
data["searchValue"] = this.searchValue;
|
|
46629
|
-
data["from"] = this.from;
|
|
46630
|
-
data["to"] = this.to;
|
|
46631
|
-
data["take"] = this.take;
|
|
46632
|
-
data["skip"] = this.skip;
|
|
46633
|
-
data["parkId"] = this.parkId;
|
|
46634
|
-
data["monthlyTrafficSearchFieldSelector"] = this.monthlyTrafficSearchFieldSelector;
|
|
46635
|
-
data["credentialMediaType"] = this.credentialMediaType;
|
|
46636
|
-
if (Array.isArray(this.deviceIds)) {
|
|
46637
|
-
data["deviceIds"] = [];
|
|
46638
|
-
for (let item of this.deviceIds)
|
|
46639
|
-
data["deviceIds"].push(item);
|
|
46640
|
-
}
|
|
46641
|
-
data["companiesFilterDto"] = this.companiesFilterDto ? this.companiesFilterDto.toJSON() : undefined;
|
|
46642
|
-
return data;
|
|
46643
|
-
}
|
|
46644
|
-
clone() {
|
|
46645
|
-
const json = this.toJSON();
|
|
46646
|
-
let result = new GetMonthliesTrafficQuery();
|
|
46647
|
-
result.init(json);
|
|
46648
|
-
return result;
|
|
46649
|
-
}
|
|
46650
|
-
}
|
|
46651
45971
|
class GetMonthlyQuery {
|
|
46652
45972
|
constructor(data) {
|
|
46653
45973
|
if (data) {
|
|
@@ -46660,6 +45980,7 @@ class GetMonthlyQuery {
|
|
|
46660
45980
|
init(_data) {
|
|
46661
45981
|
if (_data) {
|
|
46662
45982
|
this.parkId = _data["parkId"];
|
|
45983
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
46663
45984
|
this.companiesFilter = _data["companiesFilter"] ? CompaniesFilterDto.fromJS(_data["companiesFilter"]) : undefined;
|
|
46664
45985
|
this.filter = _data["filter"] ? FilterDto.fromJS(_data["filter"]) : undefined;
|
|
46665
45986
|
this.monthlySearchFieldSelector = _data["monthlySearchFieldSelector"];
|
|
@@ -46676,6 +45997,7 @@ class GetMonthlyQuery {
|
|
|
46676
45997
|
toJSON(data) {
|
|
46677
45998
|
data = typeof data === 'object' ? data : {};
|
|
46678
45999
|
data["parkId"] = this.parkId;
|
|
46000
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
46679
46001
|
data["companiesFilter"] = this.companiesFilter ? this.companiesFilter.toJSON() : undefined;
|
|
46680
46002
|
data["filter"] = this.filter ? this.filter.toJSON() : undefined;
|
|
46681
46003
|
data["monthlySearchFieldSelector"] = this.monthlySearchFieldSelector;
|
|
@@ -49986,6 +49308,7 @@ class MarkCouponBatchAsSentCommand {
|
|
|
49986
49308
|
this.id = _data["id"];
|
|
49987
49309
|
this.parkId = _data["parkId"];
|
|
49988
49310
|
this.email = _data["email"];
|
|
49311
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49989
49312
|
}
|
|
49990
49313
|
}
|
|
49991
49314
|
static fromJS(data) {
|
|
@@ -49999,6 +49322,7 @@ class MarkCouponBatchAsSentCommand {
|
|
|
49999
49322
|
data["id"] = this.id;
|
|
50000
49323
|
data["parkId"] = this.parkId;
|
|
50001
49324
|
data["email"] = this.email;
|
|
49325
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
50002
49326
|
return data;
|
|
50003
49327
|
}
|
|
50004
49328
|
clone() {
|
|
@@ -50022,6 +49346,7 @@ class MarkSingleCouponAsSentCommand {
|
|
|
50022
49346
|
this.id = _data["id"];
|
|
50023
49347
|
this.parkId = _data["parkId"];
|
|
50024
49348
|
this.email = _data["email"];
|
|
49349
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
50025
49350
|
}
|
|
50026
49351
|
}
|
|
50027
49352
|
static fromJS(data) {
|
|
@@ -50035,6 +49360,7 @@ class MarkSingleCouponAsSentCommand {
|
|
|
50035
49360
|
data["id"] = this.id;
|
|
50036
49361
|
data["parkId"] = this.parkId;
|
|
50037
49362
|
data["email"] = this.email;
|
|
49363
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
50038
49364
|
return data;
|
|
50039
49365
|
}
|
|
50040
49366
|
clone() {
|
|
@@ -50057,6 +49383,7 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
50057
49383
|
if (_data) {
|
|
50058
49384
|
this.id = _data["id"];
|
|
50059
49385
|
this.parkId = _data["parkId"];
|
|
49386
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
50060
49387
|
}
|
|
50061
49388
|
}
|
|
50062
49389
|
static fromJS(data) {
|
|
@@ -50069,6 +49396,7 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
50069
49396
|
data = typeof data === 'object' ? data : {};
|
|
50070
49397
|
data["id"] = this.id;
|
|
50071
49398
|
data["parkId"] = this.parkId;
|
|
49399
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
50072
49400
|
return data;
|
|
50073
49401
|
}
|
|
50074
49402
|
clone() {
|
|
@@ -50091,6 +49419,7 @@ class MarkSingleStickerAsUsedCommand {
|
|
|
50091
49419
|
if (_data) {
|
|
50092
49420
|
this.id = _data["id"];
|
|
50093
49421
|
this.parkId = _data["parkId"];
|
|
49422
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
50094
49423
|
}
|
|
50095
49424
|
}
|
|
50096
49425
|
static fromJS(data) {
|
|
@@ -50103,6 +49432,7 @@ class MarkSingleStickerAsUsedCommand {
|
|
|
50103
49432
|
data = typeof data === 'object' ? data : {};
|
|
50104
49433
|
data["id"] = this.id;
|
|
50105
49434
|
data["parkId"] = this.parkId;
|
|
49435
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
50106
49436
|
return data;
|
|
50107
49437
|
}
|
|
50108
49438
|
clone() {
|
|
@@ -50126,6 +49456,7 @@ class MarkStickerBatchAsSentCommand {
|
|
|
50126
49456
|
this.id = _data["id"];
|
|
50127
49457
|
this.email = _data["email"];
|
|
50128
49458
|
this.parkId = _data["parkId"];
|
|
49459
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
50129
49460
|
}
|
|
50130
49461
|
}
|
|
50131
49462
|
static fromJS(data) {
|
|
@@ -50139,6 +49470,7 @@ class MarkStickerBatchAsSentCommand {
|
|
|
50139
49470
|
data["id"] = this.id;
|
|
50140
49471
|
data["email"] = this.email;
|
|
50141
49472
|
data["parkId"] = this.parkId;
|
|
49473
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
50142
49474
|
return data;
|
|
50143
49475
|
}
|
|
50144
49476
|
clone() {
|
|
@@ -52807,6 +52139,58 @@ var PermissionType$1;
|
|
|
52807
52139
|
PermissionType[PermissionType["LotConfigurationAccessProfile"] = 100] = "LotConfigurationAccessProfile";
|
|
52808
52140
|
PermissionType[PermissionType["CancelReceipt"] = 101] = "CancelReceipt";
|
|
52809
52141
|
})(PermissionType$1 || (PermissionType$1 = {}));
|
|
52142
|
+
class PermittedCompaniesFilterDto {
|
|
52143
|
+
constructor(data) {
|
|
52144
|
+
if (data) {
|
|
52145
|
+
for (var property in data) {
|
|
52146
|
+
if (data.hasOwnProperty(property))
|
|
52147
|
+
this[property] = data[property];
|
|
52148
|
+
}
|
|
52149
|
+
}
|
|
52150
|
+
}
|
|
52151
|
+
init(_data) {
|
|
52152
|
+
if (_data) {
|
|
52153
|
+
if (Array.isArray(_data["permittedCompanyIds"])) {
|
|
52154
|
+
this.permittedCompanyIds = [];
|
|
52155
|
+
for (let item of _data["permittedCompanyIds"])
|
|
52156
|
+
this.permittedCompanyIds.push(item);
|
|
52157
|
+
}
|
|
52158
|
+
if (Array.isArray(_data["permittedSubCompanyIds"])) {
|
|
52159
|
+
this.permittedSubCompanyIds = [];
|
|
52160
|
+
for (let item of _data["permittedSubCompanyIds"])
|
|
52161
|
+
this.permittedSubCompanyIds.push(item);
|
|
52162
|
+
}
|
|
52163
|
+
this.allPermitted = _data["allPermitted"];
|
|
52164
|
+
}
|
|
52165
|
+
}
|
|
52166
|
+
static fromJS(data) {
|
|
52167
|
+
data = typeof data === 'object' ? data : {};
|
|
52168
|
+
let result = new PermittedCompaniesFilterDto();
|
|
52169
|
+
result.init(data);
|
|
52170
|
+
return result;
|
|
52171
|
+
}
|
|
52172
|
+
toJSON(data) {
|
|
52173
|
+
data = typeof data === 'object' ? data : {};
|
|
52174
|
+
if (Array.isArray(this.permittedCompanyIds)) {
|
|
52175
|
+
data["permittedCompanyIds"] = [];
|
|
52176
|
+
for (let item of this.permittedCompanyIds)
|
|
52177
|
+
data["permittedCompanyIds"].push(item);
|
|
52178
|
+
}
|
|
52179
|
+
if (Array.isArray(this.permittedSubCompanyIds)) {
|
|
52180
|
+
data["permittedSubCompanyIds"] = [];
|
|
52181
|
+
for (let item of this.permittedSubCompanyIds)
|
|
52182
|
+
data["permittedSubCompanyIds"].push(item);
|
|
52183
|
+
}
|
|
52184
|
+
data["allPermitted"] = this.allPermitted;
|
|
52185
|
+
return data;
|
|
52186
|
+
}
|
|
52187
|
+
clone() {
|
|
52188
|
+
const json = this.toJSON();
|
|
52189
|
+
let result = new PermittedCompaniesFilterDto();
|
|
52190
|
+
result.init(json);
|
|
52191
|
+
return result;
|
|
52192
|
+
}
|
|
52193
|
+
}
|
|
52810
52194
|
class PrintTicketRemoteCommandData extends RemoteCommandBase {
|
|
52811
52195
|
constructor(data) {
|
|
52812
52196
|
super(data);
|
|
@@ -55659,6 +55043,7 @@ class SendCouponByEmailCommand {
|
|
|
55659
55043
|
this.entityId = _data["entityId"];
|
|
55660
55044
|
this.email = _data["email"];
|
|
55661
55045
|
this.parkId = _data["parkId"];
|
|
55046
|
+
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
55662
55047
|
}
|
|
55663
55048
|
}
|
|
55664
55049
|
static fromJS(data) {
|
|
@@ -55677,6 +55062,7 @@ class SendCouponByEmailCommand {
|
|
|
55677
55062
|
data["entityId"] = this.entityId;
|
|
55678
55063
|
data["email"] = this.email;
|
|
55679
55064
|
data["parkId"] = this.parkId;
|
|
55065
|
+
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
55680
55066
|
return data;
|
|
55681
55067
|
}
|
|
55682
55068
|
clone() {
|
|
@@ -64287,8 +63673,6 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
64287
63673
|
GenerateReportNotificationDto: GenerateReportNotificationDto,
|
|
64288
63674
|
GenerateReportResponseDto: GenerateReportResponseDto,
|
|
64289
63675
|
GenerateReportResponseDtoHttpResponseData: GenerateReportResponseDtoHttpResponseData,
|
|
64290
|
-
GetGuestsTrafficQuery: GetGuestsTrafficQuery,
|
|
64291
|
-
GetMonthliesTrafficQuery: GetMonthliesTrafficQuery,
|
|
64292
63676
|
GetMonthlyQuery: GetMonthlyQuery,
|
|
64293
63677
|
GetTicketFeeRemoteCommand: GetTicketFeeRemoteCommand,
|
|
64294
63678
|
GroupDto: GroupDto,
|
|
@@ -64454,6 +63838,7 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
64454
63838
|
get PermissionGroup () { return PermissionGroup; },
|
|
64455
63839
|
get PermissionService () { return PermissionService; },
|
|
64456
63840
|
get PermissionType () { return PermissionType$1; },
|
|
63841
|
+
PermittedCompaniesFilterDto: PermittedCompaniesFilterDto,
|
|
64457
63842
|
PrintTicketRemoteCommandData: PrintTicketRemoteCommandData,
|
|
64458
63843
|
PrinterDto: PrinterDto,
|
|
64459
63844
|
ProblemDetails: ProblemDetails,
|