@tiba-spark/client-shared-lib 10.3.0-848 → 10.3.0-849
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 +1762 -1148
- package/fesm2022/tiba-spark-client-shared-lib.mjs +1763 -1148
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/service-proxy/edge-service-proxies.d.ts +273 -176
- package/libraries/service-proxy/edge-service-proxies.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -16494,45 +16494,31 @@ class AccountServiceProxy {
|
|
|
16494
16494
|
return of(null);
|
|
16495
16495
|
}
|
|
16496
16496
|
/**
|
|
16497
|
-
* @param
|
|
16498
|
-
* @param parkId (optional)
|
|
16499
|
-
* @param appModule (optional)
|
|
16500
|
-
* @param subCompanyId (optional)
|
|
16497
|
+
* @param body (optional)
|
|
16501
16498
|
* @return Success
|
|
16502
16499
|
*/
|
|
16503
|
-
|
|
16504
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
16500
|
+
updateParkingNowCounter(guid, body) {
|
|
16501
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/parking-now-counter";
|
|
16505
16502
|
if (guid === undefined || guid === null)
|
|
16506
16503
|
throw new Error("The parameter 'guid' must be defined.");
|
|
16507
16504
|
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) + "&";
|
|
16522
16505
|
url_ = url_.replace(/[?&]$/, "");
|
|
16506
|
+
const content_ = JSON.stringify(body);
|
|
16523
16507
|
let options_ = {
|
|
16508
|
+
body: content_,
|
|
16524
16509
|
observe: "response",
|
|
16525
16510
|
responseType: "blob",
|
|
16526
16511
|
headers: new HttpHeaders({
|
|
16512
|
+
"Content-Type": "application/json-patch+json",
|
|
16527
16513
|
"Accept": "text/plain"
|
|
16528
16514
|
})
|
|
16529
16515
|
};
|
|
16530
|
-
return this.http.request("
|
|
16531
|
-
return this.
|
|
16516
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
16517
|
+
return this.processUpdateParkingNowCounter(response_);
|
|
16532
16518
|
})).pipe(catchError((response_) => {
|
|
16533
16519
|
if (response_ instanceof HttpResponseBase) {
|
|
16534
16520
|
try {
|
|
16535
|
-
return this.
|
|
16521
|
+
return this.processUpdateParkingNowCounter(response_);
|
|
16536
16522
|
}
|
|
16537
16523
|
catch (e) {
|
|
16538
16524
|
return throwError(e);
|
|
@@ -16542,7 +16528,7 @@ class AccountServiceProxy {
|
|
|
16542
16528
|
return throwError(response_);
|
|
16543
16529
|
}));
|
|
16544
16530
|
}
|
|
16545
|
-
|
|
16531
|
+
processUpdateParkingNowCounter(response) {
|
|
16546
16532
|
const status = response.status;
|
|
16547
16533
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
16548
16534
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -16556,7 +16542,7 @@ class AccountServiceProxy {
|
|
|
16556
16542
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
16557
16543
|
let result200 = null;
|
|
16558
16544
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16559
|
-
result200 =
|
|
16545
|
+
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
16560
16546
|
return of(result200);
|
|
16561
16547
|
}));
|
|
16562
16548
|
}
|
|
@@ -16568,31 +16554,61 @@ class AccountServiceProxy {
|
|
|
16568
16554
|
return of(null);
|
|
16569
16555
|
}
|
|
16570
16556
|
/**
|
|
16571
|
-
* @param
|
|
16557
|
+
* @param companyId (optional)
|
|
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)
|
|
16572
16565
|
* @return Success
|
|
16573
16566
|
*/
|
|
16574
|
-
|
|
16575
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/
|
|
16567
|
+
getCounters(companyId, parkId, appModule, subCompanyId, permittedCompaniesFilterDto_PermittedCompanyIds, permittedCompaniesFilterDto_PermittedSubCompanyIds, permittedCompaniesFilterDto_AllPermitted, permittedCompaniesFilterDto_AllSubCompaniesPermitted, guid) {
|
|
16568
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/account/counters?";
|
|
16576
16569
|
if (guid === undefined || guid === null)
|
|
16577
16570
|
throw new Error("The parameter 'guid' must be defined.");
|
|
16578
16571
|
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) + "&";
|
|
16579
16598
|
url_ = url_.replace(/[?&]$/, "");
|
|
16580
|
-
const content_ = JSON.stringify(body);
|
|
16581
16599
|
let options_ = {
|
|
16582
|
-
body: content_,
|
|
16583
16600
|
observe: "response",
|
|
16584
16601
|
responseType: "blob",
|
|
16585
16602
|
headers: new HttpHeaders({
|
|
16586
|
-
"Content-Type": "application/json-patch+json",
|
|
16587
16603
|
"Accept": "text/plain"
|
|
16588
16604
|
})
|
|
16589
16605
|
};
|
|
16590
|
-
return this.http.request("
|
|
16591
|
-
return this.
|
|
16606
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
16607
|
+
return this.processGetCounters(response_);
|
|
16592
16608
|
})).pipe(catchError((response_) => {
|
|
16593
16609
|
if (response_ instanceof HttpResponseBase) {
|
|
16594
16610
|
try {
|
|
16595
|
-
return this.
|
|
16611
|
+
return this.processGetCounters(response_);
|
|
16596
16612
|
}
|
|
16597
16613
|
catch (e) {
|
|
16598
16614
|
return throwError(e);
|
|
@@ -16602,7 +16618,7 @@ class AccountServiceProxy {
|
|
|
16602
16618
|
return throwError(response_);
|
|
16603
16619
|
}));
|
|
16604
16620
|
}
|
|
16605
|
-
|
|
16621
|
+
processGetCounters(response) {
|
|
16606
16622
|
const status = response.status;
|
|
16607
16623
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
16608
16624
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -16616,7 +16632,7 @@ class AccountServiceProxy {
|
|
|
16616
16632
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
16617
16633
|
let result200 = null;
|
|
16618
16634
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16619
|
-
result200 =
|
|
16635
|
+
result200 = CountersDtoHttpResponseData.fromJS(resultData200);
|
|
16620
16636
|
return of(result200);
|
|
16621
16637
|
}));
|
|
16622
16638
|
}
|
|
@@ -17205,16 +17221,11 @@ class ChaserTicketServiceProxy {
|
|
|
17205
17221
|
}
|
|
17206
17222
|
/**
|
|
17207
17223
|
* @param dateValidity (optional)
|
|
17224
|
+
* @param body (optional)
|
|
17208
17225
|
* @return Success
|
|
17209
17226
|
*/
|
|
17210
|
-
|
|
17211
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
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));
|
|
17227
|
+
createCouponBatch(dateValidity, guid, body) {
|
|
17228
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/create?";
|
|
17218
17229
|
if (guid === undefined || guid === null)
|
|
17219
17230
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17220
17231
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17223,141 +17234,22 @@ class ChaserTicketServiceProxy {
|
|
|
17223
17234
|
else if (dateValidity !== undefined)
|
|
17224
17235
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17225
17236
|
url_ = url_.replace(/[?&]$/, "");
|
|
17237
|
+
const content_ = JSON.stringify(body);
|
|
17226
17238
|
let options_ = {
|
|
17239
|
+
body: content_,
|
|
17227
17240
|
observe: "response",
|
|
17228
17241
|
responseType: "blob",
|
|
17229
17242
|
headers: new HttpHeaders({
|
|
17243
|
+
"Content-Type": "application/json-patch+json",
|
|
17230
17244
|
"Accept": "text/plain"
|
|
17231
17245
|
})
|
|
17232
17246
|
};
|
|
17233
|
-
return this.http.request("
|
|
17234
|
-
return this.
|
|
17235
|
-
})).pipe(catchError((response_) => {
|
|
17236
|
-
if (response_ instanceof HttpResponseBase) {
|
|
17237
|
-
try {
|
|
17238
|
-
return this.processCouponsByBatchId(response_);
|
|
17239
|
-
}
|
|
17240
|
-
catch (e) {
|
|
17241
|
-
return throwError(e);
|
|
17242
|
-
}
|
|
17243
|
-
}
|
|
17244
|
-
else
|
|
17245
|
-
return throwError(response_);
|
|
17246
|
-
}));
|
|
17247
|
-
}
|
|
17248
|
-
processCouponsByBatchId(response) {
|
|
17249
|
-
const status = response.status;
|
|
17250
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17251
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
17252
|
-
let _headers = {};
|
|
17253
|
-
if (response.headers) {
|
|
17254
|
-
for (let key of response.headers.keys()) {
|
|
17255
|
-
_headers[key] = response.headers.get(key);
|
|
17256
|
-
}
|
|
17257
|
-
}
|
|
17258
|
-
if (status === 200) {
|
|
17259
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17260
|
-
let result200 = null;
|
|
17261
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17262
|
-
result200 = CouponDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
17263
|
-
return of(result200);
|
|
17264
|
-
}));
|
|
17265
|
-
}
|
|
17266
|
-
else if (status !== 200 && status !== 204) {
|
|
17267
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17268
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17269
|
-
}));
|
|
17270
|
-
}
|
|
17271
|
-
return of(null);
|
|
17272
|
-
}
|
|
17273
|
-
/**
|
|
17274
|
-
* @return Success
|
|
17275
|
-
* @deprecated
|
|
17276
|
-
*/
|
|
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));
|
|
17282
|
-
if (guid === undefined || guid === null)
|
|
17283
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
17284
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17285
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17286
|
-
let options_ = {
|
|
17287
|
-
observe: "response",
|
|
17288
|
-
responseType: "blob",
|
|
17289
|
-
headers: new HttpHeaders({
|
|
17290
|
-
"Accept": "text/plain"
|
|
17291
|
-
})
|
|
17292
|
-
};
|
|
17293
|
-
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17294
|
-
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
17295
|
-
})).pipe(catchError((response_) => {
|
|
17296
|
-
if (response_ instanceof HttpResponseBase) {
|
|
17297
|
-
try {
|
|
17298
|
-
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
17299
|
-
}
|
|
17300
|
-
catch (e) {
|
|
17301
|
-
return throwError(e);
|
|
17302
|
-
}
|
|
17303
|
-
}
|
|
17304
|
-
else
|
|
17305
|
-
return throwError(response_);
|
|
17306
|
-
}));
|
|
17307
|
-
}
|
|
17308
|
-
processCouponBatchDeepSearchDeprecated(response) {
|
|
17309
|
-
const status = response.status;
|
|
17310
|
-
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17311
|
-
response.error instanceof Blob ? response.error : undefined;
|
|
17312
|
-
let _headers = {};
|
|
17313
|
-
if (response.headers) {
|
|
17314
|
-
for (let key of response.headers.keys()) {
|
|
17315
|
-
_headers[key] = response.headers.get(key);
|
|
17316
|
-
}
|
|
17317
|
-
}
|
|
17318
|
-
if (status === 200) {
|
|
17319
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17320
|
-
let result200 = null;
|
|
17321
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17322
|
-
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
17323
|
-
return of(result200);
|
|
17324
|
-
}));
|
|
17325
|
-
}
|
|
17326
|
-
else if (status !== 200 && status !== 204) {
|
|
17327
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17328
|
-
return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17329
|
-
}));
|
|
17330
|
-
}
|
|
17331
|
-
return of(null);
|
|
17332
|
-
}
|
|
17333
|
-
/**
|
|
17334
|
-
* @return Success
|
|
17335
|
-
*/
|
|
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));
|
|
17344
|
-
if (guid === undefined || guid === null)
|
|
17345
|
-
throw new Error("The parameter 'guid' must be defined.");
|
|
17346
|
-
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17347
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
17348
|
-
let options_ = {
|
|
17349
|
-
observe: "response",
|
|
17350
|
-
responseType: "blob",
|
|
17351
|
-
headers: new HttpHeaders({
|
|
17352
|
-
"Accept": "text/plain"
|
|
17353
|
-
})
|
|
17354
|
-
};
|
|
17355
|
-
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
17356
|
-
return this.processCouponBatchDeepSearch(response_);
|
|
17247
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17248
|
+
return this.processCreateCouponBatch(response_);
|
|
17357
17249
|
})).pipe(catchError((response_) => {
|
|
17358
17250
|
if (response_ instanceof HttpResponseBase) {
|
|
17359
17251
|
try {
|
|
17360
|
-
return this.
|
|
17252
|
+
return this.processCreateCouponBatch(response_);
|
|
17361
17253
|
}
|
|
17362
17254
|
catch (e) {
|
|
17363
17255
|
return throwError(e);
|
|
@@ -17367,7 +17259,7 @@ class ChaserTicketServiceProxy {
|
|
|
17367
17259
|
return throwError(response_);
|
|
17368
17260
|
}));
|
|
17369
17261
|
}
|
|
17370
|
-
|
|
17262
|
+
processCreateCouponBatch(response) {
|
|
17371
17263
|
const status = response.status;
|
|
17372
17264
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17373
17265
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17381,7 +17273,7 @@ class ChaserTicketServiceProxy {
|
|
|
17381
17273
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17382
17274
|
let result200 = null;
|
|
17383
17275
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17384
|
-
result200 =
|
|
17276
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17385
17277
|
return of(result200);
|
|
17386
17278
|
}));
|
|
17387
17279
|
}
|
|
@@ -17393,31 +17285,36 @@ class ChaserTicketServiceProxy {
|
|
|
17393
17285
|
return of(null);
|
|
17394
17286
|
}
|
|
17395
17287
|
/**
|
|
17288
|
+
* @param dateValidity (optional)
|
|
17289
|
+
* @param body (optional)
|
|
17396
17290
|
* @return Success
|
|
17397
|
-
* @deprecated
|
|
17398
17291
|
*/
|
|
17399
|
-
|
|
17400
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17401
|
-
if (entityId === undefined || entityId === null)
|
|
17402
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
17403
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17292
|
+
createBasicCouponBatch(dateValidity, guid, body) {
|
|
17293
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/create-basic?";
|
|
17404
17294
|
if (guid === undefined || guid === null)
|
|
17405
17295
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17406
17296
|
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) + "&";
|
|
17407
17301
|
url_ = url_.replace(/[?&]$/, "");
|
|
17302
|
+
const content_ = JSON.stringify(body);
|
|
17408
17303
|
let options_ = {
|
|
17304
|
+
body: content_,
|
|
17409
17305
|
observe: "response",
|
|
17410
17306
|
responseType: "blob",
|
|
17411
17307
|
headers: new HttpHeaders({
|
|
17308
|
+
"Content-Type": "application/json-patch+json",
|
|
17412
17309
|
"Accept": "text/plain"
|
|
17413
17310
|
})
|
|
17414
17311
|
};
|
|
17415
|
-
return this.http.request("
|
|
17416
|
-
return this.
|
|
17312
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17313
|
+
return this.processCreateBasicCouponBatch(response_);
|
|
17417
17314
|
})).pipe(catchError((response_) => {
|
|
17418
17315
|
if (response_ instanceof HttpResponseBase) {
|
|
17419
17316
|
try {
|
|
17420
|
-
return this.
|
|
17317
|
+
return this.processCreateBasicCouponBatch(response_);
|
|
17421
17318
|
}
|
|
17422
17319
|
catch (e) {
|
|
17423
17320
|
return throwError(e);
|
|
@@ -17427,7 +17324,7 @@ class ChaserTicketServiceProxy {
|
|
|
17427
17324
|
return throwError(response_);
|
|
17428
17325
|
}));
|
|
17429
17326
|
}
|
|
17430
|
-
|
|
17327
|
+
processCreateBasicCouponBatch(response) {
|
|
17431
17328
|
const status = response.status;
|
|
17432
17329
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17433
17330
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17441,7 +17338,7 @@ class ChaserTicketServiceProxy {
|
|
|
17441
17338
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17442
17339
|
let result200 = null;
|
|
17443
17340
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17444
|
-
result200 =
|
|
17341
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17445
17342
|
return of(result200);
|
|
17446
17343
|
}));
|
|
17447
17344
|
}
|
|
@@ -17453,33 +17350,36 @@ class ChaserTicketServiceProxy {
|
|
|
17453
17350
|
return of(null);
|
|
17454
17351
|
}
|
|
17455
17352
|
/**
|
|
17353
|
+
* @param dateValidity (optional)
|
|
17354
|
+
* @param body (optional)
|
|
17456
17355
|
* @return Success
|
|
17457
17356
|
*/
|
|
17458
|
-
|
|
17459
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon
|
|
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));
|
|
17357
|
+
updateCouponBatch(dateValidity, guid, body) {
|
|
17358
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon?";
|
|
17466
17359
|
if (guid === undefined || guid === null)
|
|
17467
17360
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17468
17361
|
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) + "&";
|
|
17469
17366
|
url_ = url_.replace(/[?&]$/, "");
|
|
17367
|
+
const content_ = JSON.stringify(body);
|
|
17470
17368
|
let options_ = {
|
|
17369
|
+
body: content_,
|
|
17471
17370
|
observe: "response",
|
|
17472
17371
|
responseType: "blob",
|
|
17473
17372
|
headers: new HttpHeaders({
|
|
17373
|
+
"Content-Type": "application/json-patch+json",
|
|
17474
17374
|
"Accept": "text/plain"
|
|
17475
17375
|
})
|
|
17476
17376
|
};
|
|
17477
|
-
return this.http.request("
|
|
17478
|
-
return this.
|
|
17377
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17378
|
+
return this.processUpdateCouponBatch(response_);
|
|
17479
17379
|
})).pipe(catchError((response_) => {
|
|
17480
17380
|
if (response_ instanceof HttpResponseBase) {
|
|
17481
17381
|
try {
|
|
17482
|
-
return this.
|
|
17382
|
+
return this.processUpdateCouponBatch(response_);
|
|
17483
17383
|
}
|
|
17484
17384
|
catch (e) {
|
|
17485
17385
|
return throwError(e);
|
|
@@ -17489,7 +17389,7 @@ class ChaserTicketServiceProxy {
|
|
|
17489
17389
|
return throwError(response_);
|
|
17490
17390
|
}));
|
|
17491
17391
|
}
|
|
17492
|
-
|
|
17392
|
+
processUpdateCouponBatch(response) {
|
|
17493
17393
|
const status = response.status;
|
|
17494
17394
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17495
17395
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17503,7 +17403,7 @@ class ChaserTicketServiceProxy {
|
|
|
17503
17403
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17504
17404
|
let result200 = null;
|
|
17505
17405
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17506
|
-
result200 =
|
|
17406
|
+
result200 = CouponBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17507
17407
|
return of(result200);
|
|
17508
17408
|
}));
|
|
17509
17409
|
}
|
|
@@ -17519,8 +17419,8 @@ class ChaserTicketServiceProxy {
|
|
|
17519
17419
|
* @param body (optional)
|
|
17520
17420
|
* @return Success
|
|
17521
17421
|
*/
|
|
17522
|
-
|
|
17523
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17422
|
+
markCouponBatchAsSent(dateValidity, guid, body) {
|
|
17423
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/mark-batch-as-sent?";
|
|
17524
17424
|
if (guid === undefined || guid === null)
|
|
17525
17425
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17526
17426
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17539,12 +17439,12 @@ class ChaserTicketServiceProxy {
|
|
|
17539
17439
|
"Accept": "text/plain"
|
|
17540
17440
|
})
|
|
17541
17441
|
};
|
|
17542
|
-
return this.http.request("
|
|
17543
|
-
return this.
|
|
17442
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17443
|
+
return this.processMarkCouponBatchAsSent(response_);
|
|
17544
17444
|
})).pipe(catchError((response_) => {
|
|
17545
17445
|
if (response_ instanceof HttpResponseBase) {
|
|
17546
17446
|
try {
|
|
17547
|
-
return this.
|
|
17447
|
+
return this.processMarkCouponBatchAsSent(response_);
|
|
17548
17448
|
}
|
|
17549
17449
|
catch (e) {
|
|
17550
17450
|
return throwError(e);
|
|
@@ -17554,7 +17454,7 @@ class ChaserTicketServiceProxy {
|
|
|
17554
17454
|
return throwError(response_);
|
|
17555
17455
|
}));
|
|
17556
17456
|
}
|
|
17557
|
-
|
|
17457
|
+
processMarkCouponBatchAsSent(response) {
|
|
17558
17458
|
const status = response.status;
|
|
17559
17459
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17560
17460
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17584,8 +17484,8 @@ class ChaserTicketServiceProxy {
|
|
|
17584
17484
|
* @param body (optional)
|
|
17585
17485
|
* @return Success
|
|
17586
17486
|
*/
|
|
17587
|
-
|
|
17588
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/
|
|
17487
|
+
markSingleCouponAsSent(dateValidity, guid, body) {
|
|
17488
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/mark-as-sent?";
|
|
17589
17489
|
if (guid === undefined || guid === null)
|
|
17590
17490
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17591
17491
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17604,12 +17504,12 @@ class ChaserTicketServiceProxy {
|
|
|
17604
17504
|
"Accept": "text/plain"
|
|
17605
17505
|
})
|
|
17606
17506
|
};
|
|
17607
|
-
return this.http.request("
|
|
17608
|
-
return this.
|
|
17507
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17508
|
+
return this.processMarkSingleCouponAsSent(response_);
|
|
17609
17509
|
})).pipe(catchError((response_) => {
|
|
17610
17510
|
if (response_ instanceof HttpResponseBase) {
|
|
17611
17511
|
try {
|
|
17612
|
-
return this.
|
|
17512
|
+
return this.processMarkSingleCouponAsSent(response_);
|
|
17613
17513
|
}
|
|
17614
17514
|
catch (e) {
|
|
17615
17515
|
return throwError(e);
|
|
@@ -17619,7 +17519,7 @@ class ChaserTicketServiceProxy {
|
|
|
17619
17519
|
return throwError(response_);
|
|
17620
17520
|
}));
|
|
17621
17521
|
}
|
|
17622
|
-
|
|
17522
|
+
processMarkSingleCouponAsSent(response) {
|
|
17623
17523
|
const status = response.status;
|
|
17624
17524
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17625
17525
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17633,7 +17533,7 @@ class ChaserTicketServiceProxy {
|
|
|
17633
17533
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17634
17534
|
let result200 = null;
|
|
17635
17535
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17636
|
-
result200 =
|
|
17536
|
+
result200 = CouponDtoHttpResponseData.fromJS(resultData200);
|
|
17637
17537
|
return of(result200);
|
|
17638
17538
|
}));
|
|
17639
17539
|
}
|
|
@@ -17645,19 +17545,56 @@ class ChaserTicketServiceProxy {
|
|
|
17645
17545
|
return of(null);
|
|
17646
17546
|
}
|
|
17647
17547
|
/**
|
|
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)
|
|
17648
17557
|
* @param dateValidity (optional)
|
|
17558
|
+
* @param chaserTicketSearchFieldSelector (optional)
|
|
17649
17559
|
* @param body (optional)
|
|
17650
17560
|
* @return Success
|
|
17651
17561
|
*/
|
|
17652
|
-
|
|
17653
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17562
|
+
stickersBatches(parkId, startDate, endDate, searchValue, companyId, subCompanyId, take, skip, orderBy_Column, orderBy_OrderDirection, dateValidity, chaserTicketSearchFieldSelector, guid, body) {
|
|
17563
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}?";
|
|
17564
|
+
if (parkId === undefined || parkId === null)
|
|
17565
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
17566
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17654
17567
|
if (guid === undefined || guid === null)
|
|
17655
17568
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17656
17569
|
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) + "&";
|
|
17657
17590
|
if (dateValidity === null)
|
|
17658
17591
|
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17659
17592
|
else if (dateValidity !== undefined)
|
|
17660
17593
|
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) + "&";
|
|
17661
17598
|
url_ = url_.replace(/[?&]$/, "");
|
|
17662
17599
|
const content_ = JSON.stringify(body);
|
|
17663
17600
|
let options_ = {
|
|
@@ -17669,12 +17606,12 @@ class ChaserTicketServiceProxy {
|
|
|
17669
17606
|
"Accept": "text/plain"
|
|
17670
17607
|
})
|
|
17671
17608
|
};
|
|
17672
|
-
return this.http.request("
|
|
17673
|
-
return this.
|
|
17609
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17610
|
+
return this.processStickersBatches(response_);
|
|
17674
17611
|
})).pipe(catchError((response_) => {
|
|
17675
17612
|
if (response_ instanceof HttpResponseBase) {
|
|
17676
17613
|
try {
|
|
17677
|
-
return this.
|
|
17614
|
+
return this.processStickersBatches(response_);
|
|
17678
17615
|
}
|
|
17679
17616
|
catch (e) {
|
|
17680
17617
|
return throwError(e);
|
|
@@ -17684,7 +17621,7 @@ class ChaserTicketServiceProxy {
|
|
|
17684
17621
|
return throwError(response_);
|
|
17685
17622
|
}));
|
|
17686
17623
|
}
|
|
17687
|
-
|
|
17624
|
+
processStickersBatches(response) {
|
|
17688
17625
|
const status = response.status;
|
|
17689
17626
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17690
17627
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17698,7 +17635,7 @@ class ChaserTicketServiceProxy {
|
|
|
17698
17635
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17699
17636
|
let result200 = null;
|
|
17700
17637
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17701
|
-
result200 =
|
|
17638
|
+
result200 = StickerBatchDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
17702
17639
|
return of(result200);
|
|
17703
17640
|
}));
|
|
17704
17641
|
}
|
|
@@ -17714,8 +17651,8 @@ class ChaserTicketServiceProxy {
|
|
|
17714
17651
|
* @param body (optional)
|
|
17715
17652
|
* @return Success
|
|
17716
17653
|
*/
|
|
17717
|
-
|
|
17718
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17654
|
+
createStickerBatch(dateValidity, guid, body) {
|
|
17655
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/create?";
|
|
17719
17656
|
if (guid === undefined || guid === null)
|
|
17720
17657
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17721
17658
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17734,12 +17671,12 @@ class ChaserTicketServiceProxy {
|
|
|
17734
17671
|
"Accept": "text/plain"
|
|
17735
17672
|
})
|
|
17736
17673
|
};
|
|
17737
|
-
return this.http.request("
|
|
17738
|
-
return this.
|
|
17674
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17675
|
+
return this.processCreateStickerBatch(response_);
|
|
17739
17676
|
})).pipe(catchError((response_) => {
|
|
17740
17677
|
if (response_ instanceof HttpResponseBase) {
|
|
17741
17678
|
try {
|
|
17742
|
-
return this.
|
|
17679
|
+
return this.processCreateStickerBatch(response_);
|
|
17743
17680
|
}
|
|
17744
17681
|
catch (e) {
|
|
17745
17682
|
return throwError(e);
|
|
@@ -17749,7 +17686,7 @@ class ChaserTicketServiceProxy {
|
|
|
17749
17686
|
return throwError(response_);
|
|
17750
17687
|
}));
|
|
17751
17688
|
}
|
|
17752
|
-
|
|
17689
|
+
processCreateStickerBatch(response) {
|
|
17753
17690
|
const status = response.status;
|
|
17754
17691
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17755
17692
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17763,7 +17700,7 @@ class ChaserTicketServiceProxy {
|
|
|
17763
17700
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17764
17701
|
let result200 = null;
|
|
17765
17702
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17766
|
-
result200 =
|
|
17703
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17767
17704
|
return of(result200);
|
|
17768
17705
|
}));
|
|
17769
17706
|
}
|
|
@@ -17779,8 +17716,8 @@ class ChaserTicketServiceProxy {
|
|
|
17779
17716
|
* @param body (optional)
|
|
17780
17717
|
* @return Success
|
|
17781
17718
|
*/
|
|
17782
|
-
|
|
17783
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17719
|
+
createBasicStickerBatch(dateValidity, guid, body) {
|
|
17720
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/create-basic?";
|
|
17784
17721
|
if (guid === undefined || guid === null)
|
|
17785
17722
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17786
17723
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -17799,12 +17736,12 @@ class ChaserTicketServiceProxy {
|
|
|
17799
17736
|
"Accept": "text/plain"
|
|
17800
17737
|
})
|
|
17801
17738
|
};
|
|
17802
|
-
return this.http.request("
|
|
17803
|
-
return this.
|
|
17739
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17740
|
+
return this.processCreateBasicStickerBatch(response_);
|
|
17804
17741
|
})).pipe(catchError((response_) => {
|
|
17805
17742
|
if (response_ instanceof HttpResponseBase) {
|
|
17806
17743
|
try {
|
|
17807
|
-
return this.
|
|
17744
|
+
return this.processCreateBasicStickerBatch(response_);
|
|
17808
17745
|
}
|
|
17809
17746
|
catch (e) {
|
|
17810
17747
|
return throwError(e);
|
|
@@ -17814,7 +17751,7 @@ class ChaserTicketServiceProxy {
|
|
|
17814
17751
|
return throwError(response_);
|
|
17815
17752
|
}));
|
|
17816
17753
|
}
|
|
17817
|
-
|
|
17754
|
+
processCreateBasicStickerBatch(response) {
|
|
17818
17755
|
const status = response.status;
|
|
17819
17756
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17820
17757
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17828,7 +17765,7 @@ class ChaserTicketServiceProxy {
|
|
|
17828
17765
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17829
17766
|
let result200 = null;
|
|
17830
17767
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17831
|
-
result200 =
|
|
17768
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17832
17769
|
return of(result200);
|
|
17833
17770
|
}));
|
|
17834
17771
|
}
|
|
@@ -17840,35 +17777,36 @@ class ChaserTicketServiceProxy {
|
|
|
17840
17777
|
return of(null);
|
|
17841
17778
|
}
|
|
17842
17779
|
/**
|
|
17843
|
-
* @param
|
|
17780
|
+
* @param dateValidity (optional)
|
|
17781
|
+
* @param body (optional)
|
|
17844
17782
|
* @return Success
|
|
17845
17783
|
*/
|
|
17846
|
-
|
|
17847
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
17848
|
-
if (id === undefined || id === null)
|
|
17849
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
17850
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17784
|
+
updateStickerBatch(dateValidity, guid, body) {
|
|
17785
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker?";
|
|
17851
17786
|
if (guid === undefined || guid === null)
|
|
17852
17787
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17853
17788
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
17854
|
-
if (
|
|
17855
|
-
throw new Error("The parameter '
|
|
17856
|
-
else if (
|
|
17857
|
-
url_ += "
|
|
17789
|
+
if (dateValidity === null)
|
|
17790
|
+
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17791
|
+
else if (dateValidity !== undefined)
|
|
17792
|
+
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
17858
17793
|
url_ = url_.replace(/[?&]$/, "");
|
|
17794
|
+
const content_ = JSON.stringify(body);
|
|
17859
17795
|
let options_ = {
|
|
17796
|
+
body: content_,
|
|
17860
17797
|
observe: "response",
|
|
17861
17798
|
responseType: "blob",
|
|
17862
17799
|
headers: new HttpHeaders({
|
|
17800
|
+
"Content-Type": "application/json-patch+json",
|
|
17863
17801
|
"Accept": "text/plain"
|
|
17864
17802
|
})
|
|
17865
17803
|
};
|
|
17866
|
-
return this.http.request("
|
|
17867
|
-
return this.
|
|
17804
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17805
|
+
return this.processUpdateStickerBatch(response_);
|
|
17868
17806
|
})).pipe(catchError((response_) => {
|
|
17869
17807
|
if (response_ instanceof HttpResponseBase) {
|
|
17870
17808
|
try {
|
|
17871
|
-
return this.
|
|
17809
|
+
return this.processUpdateStickerBatch(response_);
|
|
17872
17810
|
}
|
|
17873
17811
|
catch (e) {
|
|
17874
17812
|
return throwError(e);
|
|
@@ -17878,7 +17816,7 @@ class ChaserTicketServiceProxy {
|
|
|
17878
17816
|
return throwError(response_);
|
|
17879
17817
|
}));
|
|
17880
17818
|
}
|
|
17881
|
-
|
|
17819
|
+
processUpdateStickerBatch(response) {
|
|
17882
17820
|
const status = response.status;
|
|
17883
17821
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17884
17822
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17892,7 +17830,7 @@ class ChaserTicketServiceProxy {
|
|
|
17892
17830
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17893
17831
|
let result200 = null;
|
|
17894
17832
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17895
|
-
result200 =
|
|
17833
|
+
result200 = StickerBatchDtoHttpResponseData.fromJS(resultData200);
|
|
17896
17834
|
return of(result200);
|
|
17897
17835
|
}));
|
|
17898
17836
|
}
|
|
@@ -17904,56 +17842,19 @@ class ChaserTicketServiceProxy {
|
|
|
17904
17842
|
return of(null);
|
|
17905
17843
|
}
|
|
17906
17844
|
/**
|
|
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)
|
|
17916
17845
|
* @param dateValidity (optional)
|
|
17917
|
-
* @param chaserTicketSearchFieldSelector (optional)
|
|
17918
17846
|
* @param body (optional)
|
|
17919
17847
|
* @return Success
|
|
17920
17848
|
*/
|
|
17921
|
-
|
|
17922
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/
|
|
17923
|
-
if (parkId === undefined || parkId === null)
|
|
17924
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
17925
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
17849
|
+
markStickerBatchAsSent(dateValidity, guid, body) {
|
|
17850
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/mark-batch-as-sent?";
|
|
17926
17851
|
if (guid === undefined || guid === null)
|
|
17927
17852
|
throw new Error("The parameter 'guid' must be defined.");
|
|
17928
17853
|
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) + "&";
|
|
17949
17854
|
if (dateValidity === null)
|
|
17950
17855
|
throw new Error("The parameter 'dateValidity' cannot be null.");
|
|
17951
17856
|
else if (dateValidity !== undefined)
|
|
17952
17857
|
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) + "&";
|
|
17957
17858
|
url_ = url_.replace(/[?&]$/, "");
|
|
17958
17859
|
const content_ = JSON.stringify(body);
|
|
17959
17860
|
let options_ = {
|
|
@@ -17965,12 +17866,12 @@ class ChaserTicketServiceProxy {
|
|
|
17965
17866
|
"Accept": "text/plain"
|
|
17966
17867
|
})
|
|
17967
17868
|
};
|
|
17968
|
-
return this.http.request("
|
|
17969
|
-
return this.
|
|
17869
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
17870
|
+
return this.processMarkStickerBatchAsSent(response_);
|
|
17970
17871
|
})).pipe(catchError((response_) => {
|
|
17971
17872
|
if (response_ instanceof HttpResponseBase) {
|
|
17972
17873
|
try {
|
|
17973
|
-
return this.
|
|
17874
|
+
return this.processMarkStickerBatchAsSent(response_);
|
|
17974
17875
|
}
|
|
17975
17876
|
catch (e) {
|
|
17976
17877
|
return throwError(e);
|
|
@@ -17980,7 +17881,7 @@ class ChaserTicketServiceProxy {
|
|
|
17980
17881
|
return throwError(response_);
|
|
17981
17882
|
}));
|
|
17982
17883
|
}
|
|
17983
|
-
|
|
17884
|
+
processMarkStickerBatchAsSent(response) {
|
|
17984
17885
|
const status = response.status;
|
|
17985
17886
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
17986
17887
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -17994,7 +17895,7 @@ class ChaserTicketServiceProxy {
|
|
|
17994
17895
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
17995
17896
|
let result200 = null;
|
|
17996
17897
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17997
|
-
result200 =
|
|
17898
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
17998
17899
|
return of(result200);
|
|
17999
17900
|
}));
|
|
18000
17901
|
}
|
|
@@ -18006,38 +17907,31 @@ class ChaserTicketServiceProxy {
|
|
|
18006
17907
|
return of(null);
|
|
18007
17908
|
}
|
|
18008
17909
|
/**
|
|
18009
|
-
* @param
|
|
17910
|
+
* @param body (optional)
|
|
18010
17911
|
* @return Success
|
|
18011
17912
|
*/
|
|
18012
|
-
|
|
18013
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
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));
|
|
17913
|
+
sendCouponsByEmail(guid, body) {
|
|
17914
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/send-coupons-by-email";
|
|
18020
17915
|
if (guid === undefined || guid === null)
|
|
18021
17916
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18022
17917
|
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) + "&";
|
|
18027
17918
|
url_ = url_.replace(/[?&]$/, "");
|
|
17919
|
+
const content_ = JSON.stringify(body);
|
|
18028
17920
|
let options_ = {
|
|
17921
|
+
body: content_,
|
|
18029
17922
|
observe: "response",
|
|
18030
17923
|
responseType: "blob",
|
|
18031
17924
|
headers: new HttpHeaders({
|
|
17925
|
+
"Content-Type": "application/json-patch+json",
|
|
18032
17926
|
"Accept": "text/plain"
|
|
18033
17927
|
})
|
|
18034
17928
|
};
|
|
18035
|
-
return this.http.request("
|
|
18036
|
-
return this.
|
|
17929
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17930
|
+
return this.processSendCouponsByEmail(response_);
|
|
18037
17931
|
})).pipe(catchError((response_) => {
|
|
18038
17932
|
if (response_ instanceof HttpResponseBase) {
|
|
18039
17933
|
try {
|
|
18040
|
-
return this.
|
|
17934
|
+
return this.processSendCouponsByEmail(response_);
|
|
18041
17935
|
}
|
|
18042
17936
|
catch (e) {
|
|
18043
17937
|
return throwError(e);
|
|
@@ -18047,7 +17941,7 @@ class ChaserTicketServiceProxy {
|
|
|
18047
17941
|
return throwError(response_);
|
|
18048
17942
|
}));
|
|
18049
17943
|
}
|
|
18050
|
-
|
|
17944
|
+
processSendCouponsByEmail(response) {
|
|
18051
17945
|
const status = response.status;
|
|
18052
17946
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18053
17947
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18061,7 +17955,7 @@ class ChaserTicketServiceProxy {
|
|
|
18061
17955
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18062
17956
|
let result200 = null;
|
|
18063
17957
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18064
|
-
result200 =
|
|
17958
|
+
result200 = Int32HttpResponseData.fromJS(resultData200);
|
|
18065
17959
|
return of(result200);
|
|
18066
17960
|
}));
|
|
18067
17961
|
}
|
|
@@ -18073,31 +17967,31 @@ class ChaserTicketServiceProxy {
|
|
|
18073
17967
|
return of(null);
|
|
18074
17968
|
}
|
|
18075
17969
|
/**
|
|
17970
|
+
* @param body (optional)
|
|
18076
17971
|
* @return Success
|
|
18077
|
-
* @deprecated
|
|
18078
17972
|
*/
|
|
18079
|
-
|
|
18080
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18081
|
-
if (entityId === undefined || entityId === null)
|
|
18082
|
-
throw new Error("The parameter 'entityId' must be defined.");
|
|
18083
|
-
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
17973
|
+
markCouponAsUsed(guid, body) {
|
|
17974
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/mark-coupon-as-used";
|
|
18084
17975
|
if (guid === undefined || guid === null)
|
|
18085
17976
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18086
17977
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18087
17978
|
url_ = url_.replace(/[?&]$/, "");
|
|
17979
|
+
const content_ = JSON.stringify(body);
|
|
18088
17980
|
let options_ = {
|
|
17981
|
+
body: content_,
|
|
18089
17982
|
observe: "response",
|
|
18090
17983
|
responseType: "blob",
|
|
18091
17984
|
headers: new HttpHeaders({
|
|
17985
|
+
"Content-Type": "application/json-patch+json",
|
|
18092
17986
|
"Accept": "text/plain"
|
|
18093
17987
|
})
|
|
18094
17988
|
};
|
|
18095
|
-
return this.http.request("
|
|
18096
|
-
return this.
|
|
17989
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
17990
|
+
return this.processMarkCouponAsUsed(response_);
|
|
18097
17991
|
})).pipe(catchError((response_) => {
|
|
18098
17992
|
if (response_ instanceof HttpResponseBase) {
|
|
18099
17993
|
try {
|
|
18100
|
-
return this.
|
|
17994
|
+
return this.processMarkCouponAsUsed(response_);
|
|
18101
17995
|
}
|
|
18102
17996
|
catch (e) {
|
|
18103
17997
|
return throwError(e);
|
|
@@ -18107,7 +18001,7 @@ class ChaserTicketServiceProxy {
|
|
|
18107
18001
|
return throwError(response_);
|
|
18108
18002
|
}));
|
|
18109
18003
|
}
|
|
18110
|
-
|
|
18004
|
+
processMarkCouponAsUsed(response) {
|
|
18111
18005
|
const status = response.status;
|
|
18112
18006
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18113
18007
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18121,7 +18015,7 @@ class ChaserTicketServiceProxy {
|
|
|
18121
18015
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18122
18016
|
let result200 = null;
|
|
18123
18017
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18124
|
-
result200 =
|
|
18018
|
+
result200 = CouponDtoHttpResponseData.fromJS(resultData200);
|
|
18125
18019
|
return of(result200);
|
|
18126
18020
|
}));
|
|
18127
18021
|
}
|
|
@@ -18133,33 +18027,31 @@ class ChaserTicketServiceProxy {
|
|
|
18133
18027
|
return of(null);
|
|
18134
18028
|
}
|
|
18135
18029
|
/**
|
|
18030
|
+
* @param body (optional)
|
|
18136
18031
|
* @return Success
|
|
18137
18032
|
*/
|
|
18138
|
-
|
|
18139
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker
|
|
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));
|
|
18033
|
+
markStickerAsUsed(guid, body) {
|
|
18034
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/mark-sticker-as-used";
|
|
18146
18035
|
if (guid === undefined || guid === null)
|
|
18147
18036
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18148
18037
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18149
18038
|
url_ = url_.replace(/[?&]$/, "");
|
|
18039
|
+
const content_ = JSON.stringify(body);
|
|
18150
18040
|
let options_ = {
|
|
18041
|
+
body: content_,
|
|
18151
18042
|
observe: "response",
|
|
18152
18043
|
responseType: "blob",
|
|
18153
18044
|
headers: new HttpHeaders({
|
|
18045
|
+
"Content-Type": "application/json-patch+json",
|
|
18154
18046
|
"Accept": "text/plain"
|
|
18155
18047
|
})
|
|
18156
18048
|
};
|
|
18157
|
-
return this.http.request("
|
|
18158
|
-
return this.
|
|
18049
|
+
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
18050
|
+
return this.processMarkStickerAsUsed(response_);
|
|
18159
18051
|
})).pipe(catchError((response_) => {
|
|
18160
18052
|
if (response_ instanceof HttpResponseBase) {
|
|
18161
18053
|
try {
|
|
18162
|
-
return this.
|
|
18054
|
+
return this.processMarkStickerAsUsed(response_);
|
|
18163
18055
|
}
|
|
18164
18056
|
catch (e) {
|
|
18165
18057
|
return throwError(e);
|
|
@@ -18169,7 +18061,7 @@ class ChaserTicketServiceProxy {
|
|
|
18169
18061
|
return throwError(response_);
|
|
18170
18062
|
}));
|
|
18171
18063
|
}
|
|
18172
|
-
|
|
18064
|
+
processMarkStickerAsUsed(response) {
|
|
18173
18065
|
const status = response.status;
|
|
18174
18066
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18175
18067
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18183,7 +18075,7 @@ class ChaserTicketServiceProxy {
|
|
|
18183
18075
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18184
18076
|
let result200 = null;
|
|
18185
18077
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18186
|
-
result200 =
|
|
18078
|
+
result200 = StickerDtoHttpResponseData.fromJS(resultData200);
|
|
18187
18079
|
return of(result200);
|
|
18188
18080
|
}));
|
|
18189
18081
|
}
|
|
@@ -18195,17 +18087,24 @@ class ChaserTicketServiceProxy {
|
|
|
18195
18087
|
return of(null);
|
|
18196
18088
|
}
|
|
18197
18089
|
/**
|
|
18090
|
+
* @param dateValidity (optional)
|
|
18198
18091
|
* @return Success
|
|
18199
|
-
* @deprecated
|
|
18200
18092
|
*/
|
|
18201
|
-
|
|
18202
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18203
|
-
if (
|
|
18204
|
-
throw new Error("The parameter '
|
|
18205
|
-
url_ = url_.replace("{
|
|
18093
|
+
couponsByBatchId(batchId, parkId, dateValidity, guid) {
|
|
18094
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/{batchId}/facility/{parkId}?";
|
|
18095
|
+
if (batchId === undefined || batchId === null)
|
|
18096
|
+
throw new Error("The parameter 'batchId' must be defined.");
|
|
18097
|
+
url_ = url_.replace("{batchId}", encodeURIComponent("" + batchId));
|
|
18098
|
+
if (parkId === undefined || parkId === null)
|
|
18099
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
18100
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18206
18101
|
if (guid === undefined || guid === null)
|
|
18207
18102
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18208
18103
|
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) + "&";
|
|
18209
18108
|
url_ = url_.replace(/[?&]$/, "");
|
|
18210
18109
|
let options_ = {
|
|
18211
18110
|
observe: "response",
|
|
@@ -18215,11 +18114,11 @@ class ChaserTicketServiceProxy {
|
|
|
18215
18114
|
})
|
|
18216
18115
|
};
|
|
18217
18116
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18218
|
-
return this.
|
|
18117
|
+
return this.processCouponsByBatchId(response_);
|
|
18219
18118
|
})).pipe(catchError((response_) => {
|
|
18220
18119
|
if (response_ instanceof HttpResponseBase) {
|
|
18221
18120
|
try {
|
|
18222
|
-
return this.
|
|
18121
|
+
return this.processCouponsByBatchId(response_);
|
|
18223
18122
|
}
|
|
18224
18123
|
catch (e) {
|
|
18225
18124
|
return throwError(e);
|
|
@@ -18229,7 +18128,7 @@ class ChaserTicketServiceProxy {
|
|
|
18229
18128
|
return throwError(response_);
|
|
18230
18129
|
}));
|
|
18231
18130
|
}
|
|
18232
|
-
|
|
18131
|
+
processCouponsByBatchId(response) {
|
|
18233
18132
|
const status = response.status;
|
|
18234
18133
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18235
18134
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18243,7 +18142,7 @@ class ChaserTicketServiceProxy {
|
|
|
18243
18142
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18244
18143
|
let result200 = null;
|
|
18245
18144
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18246
|
-
result200 =
|
|
18145
|
+
result200 = CouponDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
18247
18146
|
return of(result200);
|
|
18248
18147
|
}));
|
|
18249
18148
|
}
|
|
@@ -18256,12 +18155,10 @@ class ChaserTicketServiceProxy {
|
|
|
18256
18155
|
}
|
|
18257
18156
|
/**
|
|
18258
18157
|
* @return Success
|
|
18158
|
+
* @deprecated
|
|
18259
18159
|
*/
|
|
18260
|
-
|
|
18261
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18262
|
-
if (parkId === undefined || parkId === null)
|
|
18263
|
-
throw new Error("The parameter 'parkId' must be defined.");
|
|
18264
|
-
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
18160
|
+
couponBatchDeepSearchDeprecated(entityId, guid) {
|
|
18161
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/batch/deep-search/{entityId}";
|
|
18265
18162
|
if (entityId === undefined || entityId === null)
|
|
18266
18163
|
throw new Error("The parameter 'entityId' must be defined.");
|
|
18267
18164
|
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
@@ -18277,11 +18174,11 @@ class ChaserTicketServiceProxy {
|
|
|
18277
18174
|
})
|
|
18278
18175
|
};
|
|
18279
18176
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18280
|
-
return this.
|
|
18177
|
+
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
18281
18178
|
})).pipe(catchError((response_) => {
|
|
18282
18179
|
if (response_ instanceof HttpResponseBase) {
|
|
18283
18180
|
try {
|
|
18284
|
-
return this.
|
|
18181
|
+
return this.processCouponBatchDeepSearchDeprecated(response_);
|
|
18285
18182
|
}
|
|
18286
18183
|
catch (e) {
|
|
18287
18184
|
return throwError(e);
|
|
@@ -18291,7 +18188,7 @@ class ChaserTicketServiceProxy {
|
|
|
18291
18188
|
return throwError(response_);
|
|
18292
18189
|
}));
|
|
18293
18190
|
}
|
|
18294
|
-
|
|
18191
|
+
processCouponBatchDeepSearchDeprecated(response) {
|
|
18295
18192
|
const status = response.status;
|
|
18296
18193
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18297
18194
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18305,7 +18202,7 @@ class ChaserTicketServiceProxy {
|
|
|
18305
18202
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18306
18203
|
let result200 = null;
|
|
18307
18204
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18308
|
-
result200 =
|
|
18205
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18309
18206
|
return of(result200);
|
|
18310
18207
|
}));
|
|
18311
18208
|
}
|
|
@@ -18317,36 +18214,33 @@ class ChaserTicketServiceProxy {
|
|
|
18317
18214
|
return of(null);
|
|
18318
18215
|
}
|
|
18319
18216
|
/**
|
|
18320
|
-
* @param dateValidity (optional)
|
|
18321
|
-
* @param body (optional)
|
|
18322
18217
|
* @return Success
|
|
18323
18218
|
*/
|
|
18324
|
-
|
|
18325
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18219
|
+
couponBatchDeepSearch(parkId, entityId, guid) {
|
|
18220
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/batch/facility/{parkId}/deep-search/{entityId}";
|
|
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));
|
|
18326
18227
|
if (guid === undefined || guid === null)
|
|
18327
18228
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18328
18229
|
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) + "&";
|
|
18333
18230
|
url_ = url_.replace(/[?&]$/, "");
|
|
18334
|
-
const content_ = JSON.stringify(body);
|
|
18335
18231
|
let options_ = {
|
|
18336
|
-
body: content_,
|
|
18337
18232
|
observe: "response",
|
|
18338
18233
|
responseType: "blob",
|
|
18339
18234
|
headers: new HttpHeaders({
|
|
18340
|
-
"Content-Type": "application/json-patch+json",
|
|
18341
18235
|
"Accept": "text/plain"
|
|
18342
18236
|
})
|
|
18343
18237
|
};
|
|
18344
|
-
return this.http.request("
|
|
18345
|
-
return this.
|
|
18238
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18239
|
+
return this.processCouponBatchDeepSearch(response_);
|
|
18346
18240
|
})).pipe(catchError((response_) => {
|
|
18347
18241
|
if (response_ instanceof HttpResponseBase) {
|
|
18348
18242
|
try {
|
|
18349
|
-
return this.
|
|
18243
|
+
return this.processCouponBatchDeepSearch(response_);
|
|
18350
18244
|
}
|
|
18351
18245
|
catch (e) {
|
|
18352
18246
|
return throwError(e);
|
|
@@ -18356,7 +18250,7 @@ class ChaserTicketServiceProxy {
|
|
|
18356
18250
|
return throwError(response_);
|
|
18357
18251
|
}));
|
|
18358
18252
|
}
|
|
18359
|
-
|
|
18253
|
+
processCouponBatchDeepSearch(response) {
|
|
18360
18254
|
const status = response.status;
|
|
18361
18255
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18362
18256
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18370,7 +18264,7 @@ class ChaserTicketServiceProxy {
|
|
|
18370
18264
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18371
18265
|
let result200 = null;
|
|
18372
18266
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18373
|
-
result200 =
|
|
18267
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18374
18268
|
return of(result200);
|
|
18375
18269
|
}));
|
|
18376
18270
|
}
|
|
@@ -18382,36 +18276,31 @@ class ChaserTicketServiceProxy {
|
|
|
18382
18276
|
return of(null);
|
|
18383
18277
|
}
|
|
18384
18278
|
/**
|
|
18385
|
-
* @param dateValidity (optional)
|
|
18386
|
-
* @param body (optional)
|
|
18387
18279
|
* @return Success
|
|
18280
|
+
* @deprecated
|
|
18388
18281
|
*/
|
|
18389
|
-
|
|
18390
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18282
|
+
singleCouponDeepSearchDeprecated(entityId, guid) {
|
|
18283
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/deep-search/{entityId}";
|
|
18284
|
+
if (entityId === undefined || entityId === null)
|
|
18285
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18286
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18391
18287
|
if (guid === undefined || guid === null)
|
|
18392
18288
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18393
18289
|
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) + "&";
|
|
18398
18290
|
url_ = url_.replace(/[?&]$/, "");
|
|
18399
|
-
const content_ = JSON.stringify(body);
|
|
18400
18291
|
let options_ = {
|
|
18401
|
-
body: content_,
|
|
18402
18292
|
observe: "response",
|
|
18403
18293
|
responseType: "blob",
|
|
18404
18294
|
headers: new HttpHeaders({
|
|
18405
|
-
"Content-Type": "application/json-patch+json",
|
|
18406
18295
|
"Accept": "text/plain"
|
|
18407
18296
|
})
|
|
18408
18297
|
};
|
|
18409
|
-
return this.http.request("
|
|
18410
|
-
return this.
|
|
18298
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18299
|
+
return this.processSingleCouponDeepSearchDeprecated(response_);
|
|
18411
18300
|
})).pipe(catchError((response_) => {
|
|
18412
18301
|
if (response_ instanceof HttpResponseBase) {
|
|
18413
18302
|
try {
|
|
18414
|
-
return this.
|
|
18303
|
+
return this.processSingleCouponDeepSearchDeprecated(response_);
|
|
18415
18304
|
}
|
|
18416
18305
|
catch (e) {
|
|
18417
18306
|
return throwError(e);
|
|
@@ -18421,7 +18310,7 @@ class ChaserTicketServiceProxy {
|
|
|
18421
18310
|
return throwError(response_);
|
|
18422
18311
|
}));
|
|
18423
18312
|
}
|
|
18424
|
-
|
|
18313
|
+
processSingleCouponDeepSearchDeprecated(response) {
|
|
18425
18314
|
const status = response.status;
|
|
18426
18315
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18427
18316
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18435,7 +18324,7 @@ class ChaserTicketServiceProxy {
|
|
|
18435
18324
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18436
18325
|
let result200 = null;
|
|
18437
18326
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18438
|
-
result200 =
|
|
18327
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18439
18328
|
return of(result200);
|
|
18440
18329
|
}));
|
|
18441
18330
|
}
|
|
@@ -18447,36 +18336,33 @@ class ChaserTicketServiceProxy {
|
|
|
18447
18336
|
return of(null);
|
|
18448
18337
|
}
|
|
18449
18338
|
/**
|
|
18450
|
-
* @param dateValidity (optional)
|
|
18451
|
-
* @param body (optional)
|
|
18452
18339
|
* @return Success
|
|
18453
18340
|
*/
|
|
18454
|
-
|
|
18455
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18341
|
+
singleCouponDeepSearch(parkId, entityId, guid) {
|
|
18342
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/facility/{parkId}/deep-search/{entityId}";
|
|
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));
|
|
18456
18349
|
if (guid === undefined || guid === null)
|
|
18457
18350
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18458
18351
|
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) + "&";
|
|
18463
18352
|
url_ = url_.replace(/[?&]$/, "");
|
|
18464
|
-
const content_ = JSON.stringify(body);
|
|
18465
18353
|
let options_ = {
|
|
18466
|
-
body: content_,
|
|
18467
18354
|
observe: "response",
|
|
18468
18355
|
responseType: "blob",
|
|
18469
18356
|
headers: new HttpHeaders({
|
|
18470
|
-
"Content-Type": "application/json-patch+json",
|
|
18471
18357
|
"Accept": "text/plain"
|
|
18472
18358
|
})
|
|
18473
18359
|
};
|
|
18474
|
-
return this.http.request("
|
|
18475
|
-
return this.
|
|
18360
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18361
|
+
return this.processSingleCouponDeepSearch(response_);
|
|
18476
18362
|
})).pipe(catchError((response_) => {
|
|
18477
18363
|
if (response_ instanceof HttpResponseBase) {
|
|
18478
18364
|
try {
|
|
18479
|
-
return this.
|
|
18365
|
+
return this.processSingleCouponDeepSearch(response_);
|
|
18480
18366
|
}
|
|
18481
18367
|
catch (e) {
|
|
18482
18368
|
return throwError(e);
|
|
@@ -18486,7 +18372,7 @@ class ChaserTicketServiceProxy {
|
|
|
18486
18372
|
return throwError(response_);
|
|
18487
18373
|
}));
|
|
18488
18374
|
}
|
|
18489
|
-
|
|
18375
|
+
processSingleCouponDeepSearch(response) {
|
|
18490
18376
|
const status = response.status;
|
|
18491
18377
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18492
18378
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18500,7 +18386,7 @@ class ChaserTicketServiceProxy {
|
|
|
18500
18386
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18501
18387
|
let result200 = null;
|
|
18502
18388
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18503
|
-
result200 =
|
|
18389
|
+
result200 = CouponSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18504
18390
|
return of(result200);
|
|
18505
18391
|
}));
|
|
18506
18392
|
}
|
|
@@ -18515,8 +18401,8 @@ class ChaserTicketServiceProxy {
|
|
|
18515
18401
|
* @param parkId (optional)
|
|
18516
18402
|
* @return Success
|
|
18517
18403
|
*/
|
|
18518
|
-
|
|
18519
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18404
|
+
deleteCouponBatch(id, parkId, guid) {
|
|
18405
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/coupon/{id}?";
|
|
18520
18406
|
if (id === undefined || id === null)
|
|
18521
18407
|
throw new Error("The parameter 'id' must be defined.");
|
|
18522
18408
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -18536,11 +18422,11 @@ class ChaserTicketServiceProxy {
|
|
|
18536
18422
|
})
|
|
18537
18423
|
};
|
|
18538
18424
|
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
18539
|
-
return this.
|
|
18425
|
+
return this.processDeleteCouponBatch(response_);
|
|
18540
18426
|
})).pipe(catchError((response_) => {
|
|
18541
18427
|
if (response_ instanceof HttpResponseBase) {
|
|
18542
18428
|
try {
|
|
18543
|
-
return this.
|
|
18429
|
+
return this.processDeleteCouponBatch(response_);
|
|
18544
18430
|
}
|
|
18545
18431
|
catch (e) {
|
|
18546
18432
|
return throwError(e);
|
|
@@ -18550,7 +18436,7 @@ class ChaserTicketServiceProxy {
|
|
|
18550
18436
|
return throwError(response_);
|
|
18551
18437
|
}));
|
|
18552
18438
|
}
|
|
18553
|
-
|
|
18439
|
+
processDeleteCouponBatch(response) {
|
|
18554
18440
|
const status = response.status;
|
|
18555
18441
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18556
18442
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18564,7 +18450,7 @@ class ChaserTicketServiceProxy {
|
|
|
18564
18450
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18565
18451
|
let result200 = null;
|
|
18566
18452
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18567
|
-
result200 =
|
|
18453
|
+
result200 = UnitHttpResponseData.fromJS(resultData200);
|
|
18568
18454
|
return of(result200);
|
|
18569
18455
|
}));
|
|
18570
18456
|
}
|
|
@@ -18577,11 +18463,16 @@ class ChaserTicketServiceProxy {
|
|
|
18577
18463
|
}
|
|
18578
18464
|
/**
|
|
18579
18465
|
* @param dateValidity (optional)
|
|
18580
|
-
* @param body (optional)
|
|
18581
18466
|
* @return Success
|
|
18582
18467
|
*/
|
|
18583
|
-
|
|
18584
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/
|
|
18468
|
+
stickersByBatchId(batchId, parkId, dateValidity, guid) {
|
|
18469
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/{batchId}/facility/{parkId}?";
|
|
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));
|
|
18585
18476
|
if (guid === undefined || guid === null)
|
|
18586
18477
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18587
18478
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -18590,22 +18481,19 @@ class ChaserTicketServiceProxy {
|
|
|
18590
18481
|
else if (dateValidity !== undefined)
|
|
18591
18482
|
url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
|
|
18592
18483
|
url_ = url_.replace(/[?&]$/, "");
|
|
18593
|
-
const content_ = JSON.stringify(body);
|
|
18594
18484
|
let options_ = {
|
|
18595
|
-
body: content_,
|
|
18596
18485
|
observe: "response",
|
|
18597
18486
|
responseType: "blob",
|
|
18598
18487
|
headers: new HttpHeaders({
|
|
18599
|
-
"Content-Type": "application/json-patch+json",
|
|
18600
18488
|
"Accept": "text/plain"
|
|
18601
18489
|
})
|
|
18602
18490
|
};
|
|
18603
|
-
return this.http.request("
|
|
18604
|
-
return this.
|
|
18491
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18492
|
+
return this.processStickersByBatchId(response_);
|
|
18605
18493
|
})).pipe(catchError((response_) => {
|
|
18606
18494
|
if (response_ instanceof HttpResponseBase) {
|
|
18607
18495
|
try {
|
|
18608
|
-
return this.
|
|
18496
|
+
return this.processStickersByBatchId(response_);
|
|
18609
18497
|
}
|
|
18610
18498
|
catch (e) {
|
|
18611
18499
|
return throwError(e);
|
|
@@ -18615,7 +18503,7 @@ class ChaserTicketServiceProxy {
|
|
|
18615
18503
|
return throwError(response_);
|
|
18616
18504
|
}));
|
|
18617
18505
|
}
|
|
18618
|
-
|
|
18506
|
+
processStickersByBatchId(response) {
|
|
18619
18507
|
const status = response.status;
|
|
18620
18508
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18621
18509
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18629,7 +18517,7 @@ class ChaserTicketServiceProxy {
|
|
|
18629
18517
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18630
18518
|
let result200 = null;
|
|
18631
18519
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18632
|
-
result200 =
|
|
18520
|
+
result200 = StickerDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
18633
18521
|
return of(result200);
|
|
18634
18522
|
}));
|
|
18635
18523
|
}
|
|
@@ -18641,32 +18529,31 @@ class ChaserTicketServiceProxy {
|
|
|
18641
18529
|
return of(null);
|
|
18642
18530
|
}
|
|
18643
18531
|
/**
|
|
18644
|
-
* @param body (optional)
|
|
18645
18532
|
* @return Success
|
|
18646
18533
|
* @deprecated
|
|
18647
18534
|
*/
|
|
18648
|
-
|
|
18649
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/
|
|
18535
|
+
stickerBatchDeepSearchDeprecated(entityId, guid) {
|
|
18536
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/batch/deep-search/{entityId}";
|
|
18537
|
+
if (entityId === undefined || entityId === null)
|
|
18538
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18539
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18650
18540
|
if (guid === undefined || guid === null)
|
|
18651
18541
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18652
18542
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18653
18543
|
url_ = url_.replace(/[?&]$/, "");
|
|
18654
|
-
const content_ = JSON.stringify(body);
|
|
18655
18544
|
let options_ = {
|
|
18656
|
-
body: content_,
|
|
18657
18545
|
observe: "response",
|
|
18658
18546
|
responseType: "blob",
|
|
18659
18547
|
headers: new HttpHeaders({
|
|
18660
|
-
"Content-Type": "application/json-patch+json",
|
|
18661
18548
|
"Accept": "text/plain"
|
|
18662
18549
|
})
|
|
18663
18550
|
};
|
|
18664
|
-
return this.http.request("
|
|
18665
|
-
return this.
|
|
18551
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18552
|
+
return this.processStickerBatchDeepSearchDeprecated(response_);
|
|
18666
18553
|
})).pipe(catchError((response_) => {
|
|
18667
18554
|
if (response_ instanceof HttpResponseBase) {
|
|
18668
18555
|
try {
|
|
18669
|
-
return this.
|
|
18556
|
+
return this.processStickerBatchDeepSearchDeprecated(response_);
|
|
18670
18557
|
}
|
|
18671
18558
|
catch (e) {
|
|
18672
18559
|
return throwError(e);
|
|
@@ -18676,7 +18563,7 @@ class ChaserTicketServiceProxy {
|
|
|
18676
18563
|
return throwError(response_);
|
|
18677
18564
|
}));
|
|
18678
18565
|
}
|
|
18679
|
-
|
|
18566
|
+
processStickerBatchDeepSearchDeprecated(response) {
|
|
18680
18567
|
const status = response.status;
|
|
18681
18568
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18682
18569
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18690,7 +18577,7 @@ class ChaserTicketServiceProxy {
|
|
|
18690
18577
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18691
18578
|
let result200 = null;
|
|
18692
18579
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18693
|
-
result200 =
|
|
18580
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18694
18581
|
return of(result200);
|
|
18695
18582
|
}));
|
|
18696
18583
|
}
|
|
@@ -18702,34 +18589,33 @@ class ChaserTicketServiceProxy {
|
|
|
18702
18589
|
return of(null);
|
|
18703
18590
|
}
|
|
18704
18591
|
/**
|
|
18705
|
-
* @param body (optional)
|
|
18706
18592
|
* @return Success
|
|
18707
18593
|
*/
|
|
18708
|
-
|
|
18709
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/
|
|
18594
|
+
stickerBatchDeepSearch(parkId, entityId, guid) {
|
|
18595
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/batch/deep-search/{entityId}";
|
|
18710
18596
|
if (parkId === undefined || parkId === null)
|
|
18711
18597
|
throw new Error("The parameter 'parkId' must be defined.");
|
|
18712
18598
|
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));
|
|
18713
18602
|
if (guid === undefined || guid === null)
|
|
18714
18603
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18715
18604
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18716
18605
|
url_ = url_.replace(/[?&]$/, "");
|
|
18717
|
-
const content_ = JSON.stringify(body);
|
|
18718
18606
|
let options_ = {
|
|
18719
|
-
body: content_,
|
|
18720
18607
|
observe: "response",
|
|
18721
18608
|
responseType: "blob",
|
|
18722
18609
|
headers: new HttpHeaders({
|
|
18723
|
-
"Content-Type": "application/json-patch+json",
|
|
18724
18610
|
"Accept": "text/plain"
|
|
18725
18611
|
})
|
|
18726
18612
|
};
|
|
18727
|
-
return this.http.request("
|
|
18728
|
-
return this.
|
|
18613
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18614
|
+
return this.processStickerBatchDeepSearch(response_);
|
|
18729
18615
|
})).pipe(catchError((response_) => {
|
|
18730
18616
|
if (response_ instanceof HttpResponseBase) {
|
|
18731
18617
|
try {
|
|
18732
|
-
return this.
|
|
18618
|
+
return this.processStickerBatchDeepSearch(response_);
|
|
18733
18619
|
}
|
|
18734
18620
|
catch (e) {
|
|
18735
18621
|
return throwError(e);
|
|
@@ -18739,7 +18625,7 @@ class ChaserTicketServiceProxy {
|
|
|
18739
18625
|
return throwError(response_);
|
|
18740
18626
|
}));
|
|
18741
18627
|
}
|
|
18742
|
-
|
|
18628
|
+
processStickerBatchDeepSearch(response) {
|
|
18743
18629
|
const status = response.status;
|
|
18744
18630
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18745
18631
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18753,7 +18639,7 @@ class ChaserTicketServiceProxy {
|
|
|
18753
18639
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18754
18640
|
let result200 = null;
|
|
18755
18641
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18756
|
-
result200 =
|
|
18642
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18757
18643
|
return of(result200);
|
|
18758
18644
|
}));
|
|
18759
18645
|
}
|
|
@@ -18765,31 +18651,31 @@ class ChaserTicketServiceProxy {
|
|
|
18765
18651
|
return of(null);
|
|
18766
18652
|
}
|
|
18767
18653
|
/**
|
|
18768
|
-
* @param body (optional)
|
|
18769
18654
|
* @return Success
|
|
18655
|
+
* @deprecated
|
|
18770
18656
|
*/
|
|
18771
|
-
|
|
18772
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18657
|
+
singleStickerDeepSearchDeprecated(entityId, guid) {
|
|
18658
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/deep-search/{entityId}";
|
|
18659
|
+
if (entityId === undefined || entityId === null)
|
|
18660
|
+
throw new Error("The parameter 'entityId' must be defined.");
|
|
18661
|
+
url_ = url_.replace("{entityId}", encodeURIComponent("" + entityId));
|
|
18773
18662
|
if (guid === undefined || guid === null)
|
|
18774
18663
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18775
18664
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18776
18665
|
url_ = url_.replace(/[?&]$/, "");
|
|
18777
|
-
const content_ = JSON.stringify(body);
|
|
18778
18666
|
let options_ = {
|
|
18779
|
-
body: content_,
|
|
18780
18667
|
observe: "response",
|
|
18781
18668
|
responseType: "blob",
|
|
18782
18669
|
headers: new HttpHeaders({
|
|
18783
|
-
"Content-Type": "application/json-patch+json",
|
|
18784
18670
|
"Accept": "text/plain"
|
|
18785
18671
|
})
|
|
18786
18672
|
};
|
|
18787
|
-
return this.http.request("
|
|
18788
|
-
return this.
|
|
18673
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18674
|
+
return this.processSingleStickerDeepSearchDeprecated(response_);
|
|
18789
18675
|
})).pipe(catchError((response_) => {
|
|
18790
18676
|
if (response_ instanceof HttpResponseBase) {
|
|
18791
18677
|
try {
|
|
18792
|
-
return this.
|
|
18678
|
+
return this.processSingleStickerDeepSearchDeprecated(response_);
|
|
18793
18679
|
}
|
|
18794
18680
|
catch (e) {
|
|
18795
18681
|
return throwError(e);
|
|
@@ -18799,7 +18685,7 @@ class ChaserTicketServiceProxy {
|
|
|
18799
18685
|
return throwError(response_);
|
|
18800
18686
|
}));
|
|
18801
18687
|
}
|
|
18802
|
-
|
|
18688
|
+
processSingleStickerDeepSearchDeprecated(response) {
|
|
18803
18689
|
const status = response.status;
|
|
18804
18690
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18805
18691
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18813,7 +18699,7 @@ class ChaserTicketServiceProxy {
|
|
|
18813
18699
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18814
18700
|
let result200 = null;
|
|
18815
18701
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18816
|
-
result200 =
|
|
18702
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18817
18703
|
return of(result200);
|
|
18818
18704
|
}));
|
|
18819
18705
|
}
|
|
@@ -18825,31 +18711,33 @@ class ChaserTicketServiceProxy {
|
|
|
18825
18711
|
return of(null);
|
|
18826
18712
|
}
|
|
18827
18713
|
/**
|
|
18828
|
-
* @param body (optional)
|
|
18829
18714
|
* @return Success
|
|
18830
18715
|
*/
|
|
18831
|
-
|
|
18832
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18716
|
+
singleStickerDeepSearch(parkId, entityId, guid) {
|
|
18717
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/facility/{parkId}/deep-search/{entityId}";
|
|
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));
|
|
18833
18724
|
if (guid === undefined || guid === null)
|
|
18834
18725
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18835
18726
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18836
18727
|
url_ = url_.replace(/[?&]$/, "");
|
|
18837
|
-
const content_ = JSON.stringify(body);
|
|
18838
18728
|
let options_ = {
|
|
18839
|
-
body: content_,
|
|
18840
18729
|
observe: "response",
|
|
18841
18730
|
responseType: "blob",
|
|
18842
18731
|
headers: new HttpHeaders({
|
|
18843
|
-
"Content-Type": "application/json-patch+json",
|
|
18844
18732
|
"Accept": "text/plain"
|
|
18845
18733
|
})
|
|
18846
18734
|
};
|
|
18847
|
-
return this.http.request("
|
|
18848
|
-
return this.
|
|
18735
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
18736
|
+
return this.processSingleStickerDeepSearch(response_);
|
|
18849
18737
|
})).pipe(catchError((response_) => {
|
|
18850
18738
|
if (response_ instanceof HttpResponseBase) {
|
|
18851
18739
|
try {
|
|
18852
|
-
return this.
|
|
18740
|
+
return this.processSingleStickerDeepSearch(response_);
|
|
18853
18741
|
}
|
|
18854
18742
|
catch (e) {
|
|
18855
18743
|
return throwError(e);
|
|
@@ -18859,7 +18747,7 @@ class ChaserTicketServiceProxy {
|
|
|
18859
18747
|
return throwError(response_);
|
|
18860
18748
|
}));
|
|
18861
18749
|
}
|
|
18862
|
-
|
|
18750
|
+
processSingleStickerDeepSearch(response) {
|
|
18863
18751
|
const status = response.status;
|
|
18864
18752
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18865
18753
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18873,7 +18761,7 @@ class ChaserTicketServiceProxy {
|
|
|
18873
18761
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18874
18762
|
let result200 = null;
|
|
18875
18763
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18876
|
-
result200 =
|
|
18764
|
+
result200 = StickerSectionsDtoHttpResponseData.fromJS(resultData200);
|
|
18877
18765
|
return of(result200);
|
|
18878
18766
|
}));
|
|
18879
18767
|
}
|
|
@@ -18885,16 +18773,81 @@ class ChaserTicketServiceProxy {
|
|
|
18885
18773
|
return of(null);
|
|
18886
18774
|
}
|
|
18887
18775
|
/**
|
|
18888
|
-
* @param
|
|
18776
|
+
* @param parkId (optional)
|
|
18889
18777
|
* @return Success
|
|
18890
18778
|
*/
|
|
18891
|
-
|
|
18892
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/
|
|
18779
|
+
deleteStickerBatch(id, parkId, guid) {
|
|
18780
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/chaserticket/sticker/{id}?";
|
|
18781
|
+
if (id === undefined || id === null)
|
|
18782
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
18783
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18893
18784
|
if (guid === undefined || guid === null)
|
|
18894
18785
|
throw new Error("The parameter 'guid' must be defined.");
|
|
18895
18786
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18896
|
-
|
|
18897
|
-
|
|
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";
|
|
18846
|
+
if (guid === undefined || guid === null)
|
|
18847
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
18848
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
18849
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18850
|
+
const content_ = JSON.stringify(body);
|
|
18898
18851
|
let options_ = {
|
|
18899
18852
|
body: content_,
|
|
18900
18853
|
observe: "response",
|
|
@@ -18904,12 +18857,12 @@ class ChaserTicketServiceProxy {
|
|
|
18904
18857
|
"Accept": "text/plain"
|
|
18905
18858
|
})
|
|
18906
18859
|
};
|
|
18907
|
-
return this.http.request("
|
|
18908
|
-
return this.
|
|
18860
|
+
return this.http.request("put", url_, options_).pipe(mergeMap((response_) => {
|
|
18861
|
+
return this.processMarkStickerBatchAsPrintedDeprecated(response_);
|
|
18909
18862
|
})).pipe(catchError((response_) => {
|
|
18910
18863
|
if (response_ instanceof HttpResponseBase) {
|
|
18911
18864
|
try {
|
|
18912
|
-
return this.
|
|
18865
|
+
return this.processMarkStickerBatchAsPrintedDeprecated(response_);
|
|
18913
18866
|
}
|
|
18914
18867
|
catch (e) {
|
|
18915
18868
|
return throwError(e);
|
|
@@ -18919,7 +18872,7 @@ class ChaserTicketServiceProxy {
|
|
|
18919
18872
|
return throwError(response_);
|
|
18920
18873
|
}));
|
|
18921
18874
|
}
|
|
18922
|
-
|
|
18875
|
+
processMarkStickerBatchAsPrintedDeprecated(response) {
|
|
18923
18876
|
const status = response.status;
|
|
18924
18877
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
18925
18878
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -18933,7 +18886,135 @@ class ChaserTicketServiceProxy {
|
|
|
18933
18886
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
18934
18887
|
let result200 = null;
|
|
18935
18888
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18936
|
-
result200 =
|
|
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_);
|
|
18990
|
+
})).pipe(catchError((response_) => {
|
|
18991
|
+
if (response_ instanceof HttpResponseBase) {
|
|
18992
|
+
try {
|
|
18993
|
+
return this.processMarkStickerBatchAsPrinted(response_);
|
|
18994
|
+
}
|
|
18995
|
+
catch (e) {
|
|
18996
|
+
return throwError(e);
|
|
18997
|
+
}
|
|
18998
|
+
}
|
|
18999
|
+
else
|
|
19000
|
+
return throwError(response_);
|
|
19001
|
+
}));
|
|
19002
|
+
}
|
|
19003
|
+
processMarkStickerBatchAsPrinted(response) {
|
|
19004
|
+
const status = response.status;
|
|
19005
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19006
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
19007
|
+
let _headers = {};
|
|
19008
|
+
if (response.headers) {
|
|
19009
|
+
for (let key of response.headers.keys()) {
|
|
19010
|
+
_headers[key] = response.headers.get(key);
|
|
19011
|
+
}
|
|
19012
|
+
}
|
|
19013
|
+
if (status === 200) {
|
|
19014
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
19015
|
+
let result200 = null;
|
|
19016
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19017
|
+
result200 = BooleanHttpResponseData.fromJS(resultData200);
|
|
18937
19018
|
return of(result200);
|
|
18938
19019
|
}));
|
|
18939
19020
|
}
|
|
@@ -18964,6 +19045,98 @@ class CompanyServiceProxy {
|
|
|
18964
19045
|
this.http = http;
|
|
18965
19046
|
this.baseUrl = baseUrl ?? "";
|
|
18966
19047
|
}
|
|
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
|
+
}
|
|
18967
19140
|
/**
|
|
18968
19141
|
* @param appModule (optional)
|
|
18969
19142
|
* @param companyIds (optional)
|
|
@@ -18977,8 +19150,9 @@ class CompanyServiceProxy {
|
|
|
18977
19150
|
* @param orderBy_Column (optional)
|
|
18978
19151
|
* @param orderBy_OrderDirection (optional)
|
|
18979
19152
|
* @return Success
|
|
19153
|
+
* @deprecated
|
|
18980
19154
|
*/
|
|
18981
|
-
|
|
19155
|
+
getCompaniesDeprecated(appModule, companyIds, subCompanyIds, includeAccessProfile, includeSubCompanies, parkId, entityType, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
18982
19156
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/company?";
|
|
18983
19157
|
if (guid === undefined || guid === null)
|
|
18984
19158
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -19026,11 +19200,11 @@ class CompanyServiceProxy {
|
|
|
19026
19200
|
})
|
|
19027
19201
|
};
|
|
19028
19202
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
19029
|
-
return this.
|
|
19203
|
+
return this.processGetCompaniesDeprecated(response_);
|
|
19030
19204
|
})).pipe(catchError((response_) => {
|
|
19031
19205
|
if (response_ instanceof HttpResponseBase) {
|
|
19032
19206
|
try {
|
|
19033
|
-
return this.
|
|
19207
|
+
return this.processGetCompaniesDeprecated(response_);
|
|
19034
19208
|
}
|
|
19035
19209
|
catch (e) {
|
|
19036
19210
|
return throwError(e);
|
|
@@ -19040,7 +19214,7 @@ class CompanyServiceProxy {
|
|
|
19040
19214
|
return throwError(response_);
|
|
19041
19215
|
}));
|
|
19042
19216
|
}
|
|
19043
|
-
|
|
19217
|
+
processGetCompaniesDeprecated(response) {
|
|
19044
19218
|
const status = response.status;
|
|
19045
19219
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19046
19220
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -19073,14 +19247,88 @@ class CompanyServiceProxy {
|
|
|
19073
19247
|
}
|
|
19074
19248
|
return of(null);
|
|
19075
19249
|
}
|
|
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
|
+
}
|
|
19076
19323
|
/**
|
|
19077
19324
|
* @param appModule (optional)
|
|
19078
19325
|
* @param companyIds (optional)
|
|
19079
19326
|
* @param subCompanyIds (optional)
|
|
19080
19327
|
* @param parkId (optional)
|
|
19081
19328
|
* @return Success
|
|
19329
|
+
* @deprecated
|
|
19082
19330
|
*/
|
|
19083
|
-
|
|
19331
|
+
getSubCompaniesDeprecated(appModule, companyIds, subCompanyIds, parkId, guid) {
|
|
19084
19332
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/company/subcompanies?";
|
|
19085
19333
|
if (guid === undefined || guid === null)
|
|
19086
19334
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -19106,11 +19354,11 @@ class CompanyServiceProxy {
|
|
|
19106
19354
|
})
|
|
19107
19355
|
};
|
|
19108
19356
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
19109
|
-
return this.
|
|
19357
|
+
return this.processGetSubCompaniesDeprecated(response_);
|
|
19110
19358
|
})).pipe(catchError((response_) => {
|
|
19111
19359
|
if (response_ instanceof HttpResponseBase) {
|
|
19112
19360
|
try {
|
|
19113
|
-
return this.
|
|
19361
|
+
return this.processGetSubCompaniesDeprecated(response_);
|
|
19114
19362
|
}
|
|
19115
19363
|
catch (e) {
|
|
19116
19364
|
return throwError(e);
|
|
@@ -19120,7 +19368,7 @@ class CompanyServiceProxy {
|
|
|
19120
19368
|
return throwError(response_);
|
|
19121
19369
|
}));
|
|
19122
19370
|
}
|
|
19123
|
-
|
|
19371
|
+
processGetSubCompaniesDeprecated(response) {
|
|
19124
19372
|
const status = response.status;
|
|
19125
19373
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
19126
19374
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -20917,72 +21165,6 @@ class FacilityServiceProxy {
|
|
|
20917
21165
|
this.http = http;
|
|
20918
21166
|
this.baseUrl = baseUrl ?? "";
|
|
20919
21167
|
}
|
|
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
|
-
}
|
|
20986
21168
|
/**
|
|
20987
21169
|
* @return Success
|
|
20988
21170
|
*/
|
|
@@ -22055,43 +22237,15 @@ class FacilityServiceProxy {
|
|
|
22055
22237
|
return of(null);
|
|
22056
22238
|
}
|
|
22057
22239
|
/**
|
|
22058
|
-
* @param
|
|
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)
|
|
22240
|
+
* @param appModule (optional)
|
|
22065
22241
|
* @return Success
|
|
22066
22242
|
*/
|
|
22067
|
-
|
|
22068
|
-
let url_ = this.baseUrl + "/api/services/
|
|
22069
|
-
if (
|
|
22070
|
-
throw new Error("The parameter '
|
|
22071
|
-
|
|
22072
|
-
|
|
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) + "&";
|
|
22243
|
+
facilityTree(appModule) {
|
|
22244
|
+
let url_ = this.baseUrl + "/api/services/facility/tree?";
|
|
22245
|
+
if (appModule === null)
|
|
22246
|
+
throw new Error("The parameter 'appModule' cannot be null.");
|
|
22247
|
+
else if (appModule !== undefined)
|
|
22248
|
+
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
22095
22249
|
url_ = url_.replace(/[?&]$/, "");
|
|
22096
22250
|
let options_ = {
|
|
22097
22251
|
observe: "response",
|
|
@@ -22101,11 +22255,11 @@ class FacilityServiceProxy {
|
|
|
22101
22255
|
})
|
|
22102
22256
|
};
|
|
22103
22257
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22104
|
-
return this.
|
|
22258
|
+
return this.processFacilityTree(response_);
|
|
22105
22259
|
})).pipe(catchError((response_) => {
|
|
22106
22260
|
if (response_ instanceof HttpResponseBase) {
|
|
22107
22261
|
try {
|
|
22108
|
-
return this.
|
|
22262
|
+
return this.processFacilityTree(response_);
|
|
22109
22263
|
}
|
|
22110
22264
|
catch (e) {
|
|
22111
22265
|
return throwError(e);
|
|
@@ -22115,7 +22269,7 @@ class FacilityServiceProxy {
|
|
|
22115
22269
|
return throwError(response_);
|
|
22116
22270
|
}));
|
|
22117
22271
|
}
|
|
22118
|
-
|
|
22272
|
+
processFacilityTree(response) {
|
|
22119
22273
|
const status = response.status;
|
|
22120
22274
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22121
22275
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22125,19 +22279,11 @@ class FacilityServiceProxy {
|
|
|
22125
22279
|
_headers[key] = response.headers.get(key);
|
|
22126
22280
|
}
|
|
22127
22281
|
}
|
|
22128
|
-
if (status ===
|
|
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) {
|
|
22282
|
+
if (status === 200) {
|
|
22137
22283
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22138
22284
|
let result200 = null;
|
|
22139
22285
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22140
|
-
result200 =
|
|
22286
|
+
result200 = FacilityTreeDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
22141
22287
|
return of(result200);
|
|
22142
22288
|
}));
|
|
22143
22289
|
}
|
|
@@ -22149,15 +22295,10 @@ class FacilityServiceProxy {
|
|
|
22149
22295
|
return of(null);
|
|
22150
22296
|
}
|
|
22151
22297
|
/**
|
|
22152
|
-
* @param appModule (optional)
|
|
22153
22298
|
* @return Success
|
|
22154
22299
|
*/
|
|
22155
|
-
|
|
22156
|
-
let url_ = this.baseUrl + "/api/services/facility/
|
|
22157
|
-
if (appModule === null)
|
|
22158
|
-
throw new Error("The parameter 'appModule' cannot be null.");
|
|
22159
|
-
else if (appModule !== undefined)
|
|
22160
|
-
url_ += "appModule=" + encodeURIComponent("" + appModule) + "&";
|
|
22300
|
+
facilityAllBackoffice() {
|
|
22301
|
+
let url_ = this.baseUrl + "/api/services/facility/basic-backoffice";
|
|
22161
22302
|
url_ = url_.replace(/[?&]$/, "");
|
|
22162
22303
|
let options_ = {
|
|
22163
22304
|
observe: "response",
|
|
@@ -22167,11 +22308,11 @@ class FacilityServiceProxy {
|
|
|
22167
22308
|
})
|
|
22168
22309
|
};
|
|
22169
22310
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22170
|
-
return this.
|
|
22311
|
+
return this.processFacilityAllBackoffice(response_);
|
|
22171
22312
|
})).pipe(catchError((response_) => {
|
|
22172
22313
|
if (response_ instanceof HttpResponseBase) {
|
|
22173
22314
|
try {
|
|
22174
|
-
return this.
|
|
22315
|
+
return this.processFacilityAllBackoffice(response_);
|
|
22175
22316
|
}
|
|
22176
22317
|
catch (e) {
|
|
22177
22318
|
return throwError(e);
|
|
@@ -22181,7 +22322,7 @@ class FacilityServiceProxy {
|
|
|
22181
22322
|
return throwError(response_);
|
|
22182
22323
|
}));
|
|
22183
22324
|
}
|
|
22184
|
-
|
|
22325
|
+
processFacilityAllBackoffice(response) {
|
|
22185
22326
|
const status = response.status;
|
|
22186
22327
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22187
22328
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22195,7 +22336,7 @@ class FacilityServiceProxy {
|
|
|
22195
22336
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22196
22337
|
let result200 = null;
|
|
22197
22338
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22198
|
-
result200 =
|
|
22339
|
+
result200 = SmartParkWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
22199
22340
|
return of(result200);
|
|
22200
22341
|
}));
|
|
22201
22342
|
}
|
|
@@ -22207,10 +22348,15 @@ class FacilityServiceProxy {
|
|
|
22207
22348
|
return of(null);
|
|
22208
22349
|
}
|
|
22209
22350
|
/**
|
|
22351
|
+
* @param appModule (optional)
|
|
22210
22352
|
* @return Success
|
|
22211
22353
|
*/
|
|
22212
|
-
|
|
22213
|
-
let url_ = this.baseUrl + "/api/services/facility/basic
|
|
22354
|
+
getSmartparkBasicAll(appModule) {
|
|
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) + "&";
|
|
22214
22360
|
url_ = url_.replace(/[?&]$/, "");
|
|
22215
22361
|
let options_ = {
|
|
22216
22362
|
observe: "response",
|
|
@@ -22220,11 +22366,11 @@ class FacilityServiceProxy {
|
|
|
22220
22366
|
})
|
|
22221
22367
|
};
|
|
22222
22368
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22223
|
-
return this.
|
|
22369
|
+
return this.processGetSmartparkBasicAll(response_);
|
|
22224
22370
|
})).pipe(catchError((response_) => {
|
|
22225
22371
|
if (response_ instanceof HttpResponseBase) {
|
|
22226
22372
|
try {
|
|
22227
|
-
return this.
|
|
22373
|
+
return this.processGetSmartparkBasicAll(response_);
|
|
22228
22374
|
}
|
|
22229
22375
|
catch (e) {
|
|
22230
22376
|
return throwError(e);
|
|
@@ -22234,7 +22380,7 @@ class FacilityServiceProxy {
|
|
|
22234
22380
|
return throwError(response_);
|
|
22235
22381
|
}));
|
|
22236
22382
|
}
|
|
22237
|
-
|
|
22383
|
+
processGetSmartparkBasicAll(response) {
|
|
22238
22384
|
const status = response.status;
|
|
22239
22385
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22240
22386
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22244,7 +22390,15 @@ class FacilityServiceProxy {
|
|
|
22244
22390
|
_headers[key] = response.headers.get(key);
|
|
22245
22391
|
}
|
|
22246
22392
|
}
|
|
22247
|
-
if (status ===
|
|
22393
|
+
if (status === 404) {
|
|
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) {
|
|
22248
22402
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22249
22403
|
let result200 = null;
|
|
22250
22404
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -22259,48 +22413,44 @@ class FacilityServiceProxy {
|
|
|
22259
22413
|
}
|
|
22260
22414
|
return of(null);
|
|
22261
22415
|
}
|
|
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
|
-
}
|
|
22282
22416
|
/**
|
|
22283
|
-
* @param
|
|
22284
|
-
* @param
|
|
22285
|
-
* @param
|
|
22286
|
-
* @param
|
|
22417
|
+
* @param companyId (optional)
|
|
22418
|
+
* @param subCompanyId (optional)
|
|
22419
|
+
* @param validationType (optional)
|
|
22420
|
+
* @param maxResults (optional)
|
|
22421
|
+
* @param searchTerm (optional)
|
|
22422
|
+
* @param orderBy_Column (optional)
|
|
22423
|
+
* @param orderBy_OrderDirection (optional)
|
|
22287
22424
|
* @return Success
|
|
22288
22425
|
*/
|
|
22289
|
-
|
|
22290
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/
|
|
22426
|
+
getValidationType(parkId, companyId, subCompanyId, validationType, maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection, guid) {
|
|
22427
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/facility/{parkId}/validation-type?";
|
|
22428
|
+
if (parkId === undefined || parkId === null)
|
|
22429
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
22430
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
22291
22431
|
if (guid === undefined || guid === null)
|
|
22292
22432
|
throw new Error("The parameter 'guid' must be defined.");
|
|
22293
22433
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
22294
|
-
if (
|
|
22295
|
-
|
|
22296
|
-
if (
|
|
22297
|
-
url_ += "
|
|
22298
|
-
if (
|
|
22299
|
-
url_ += "
|
|
22300
|
-
if (
|
|
22301
|
-
throw new Error("The parameter '
|
|
22302
|
-
else if (
|
|
22303
|
-
url_ += "
|
|
22434
|
+
if (companyId === null)
|
|
22435
|
+
throw new Error("The parameter 'companyId' cannot be null.");
|
|
22436
|
+
else if (companyId !== undefined)
|
|
22437
|
+
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
22438
|
+
if (subCompanyId !== undefined && subCompanyId !== null)
|
|
22439
|
+
url_ += "subCompanyId=" + encodeURIComponent("" + subCompanyId) + "&";
|
|
22440
|
+
if (validationType === null)
|
|
22441
|
+
throw new Error("The parameter 'validationType' cannot be null.");
|
|
22442
|
+
else if (validationType !== undefined)
|
|
22443
|
+
url_ += "validationType=" + encodeURIComponent("" + validationType) + "&";
|
|
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) + "&";
|
|
22304
22454
|
url_ = url_.replace(/[?&]$/, "");
|
|
22305
22455
|
let options_ = {
|
|
22306
22456
|
observe: "response",
|
|
@@ -22310,11 +22460,11 @@ class FileServiceProxy {
|
|
|
22310
22460
|
})
|
|
22311
22461
|
};
|
|
22312
22462
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
22313
|
-
return this.
|
|
22463
|
+
return this.processGetValidationType(response_);
|
|
22314
22464
|
})).pipe(catchError((response_) => {
|
|
22315
22465
|
if (response_ instanceof HttpResponseBase) {
|
|
22316
22466
|
try {
|
|
22317
|
-
return this.
|
|
22467
|
+
return this.processGetValidationType(response_);
|
|
22318
22468
|
}
|
|
22319
22469
|
catch (e) {
|
|
22320
22470
|
return throwError(e);
|
|
@@ -22324,7 +22474,7 @@ class FileServiceProxy {
|
|
|
22324
22474
|
return throwError(response_);
|
|
22325
22475
|
}));
|
|
22326
22476
|
}
|
|
22327
|
-
|
|
22477
|
+
processGetValidationType(response) {
|
|
22328
22478
|
const status = response.status;
|
|
22329
22479
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
22330
22480
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -22334,11 +22484,19 @@ class FileServiceProxy {
|
|
|
22334
22484
|
_headers[key] = response.headers.get(key);
|
|
22335
22485
|
}
|
|
22336
22486
|
}
|
|
22337
|
-
if (status ===
|
|
22487
|
+
if (status === 404) {
|
|
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) {
|
|
22338
22496
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
22339
22497
|
let result200 = null;
|
|
22340
22498
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22341
|
-
result200 =
|
|
22499
|
+
result200 = ValidationTypeDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
22342
22500
|
return of(result200);
|
|
22343
22501
|
}));
|
|
22344
22502
|
}
|
|
@@ -22349,6 +22507,26 @@ class FileServiceProxy {
|
|
|
22349
22507
|
}
|
|
22350
22508
|
return of(null);
|
|
22351
22509
|
}
|
|
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
|
+
}
|
|
22352
22530
|
/**
|
|
22353
22531
|
* @param entityName (optional)
|
|
22354
22532
|
* @param entityId (optional)
|
|
@@ -22356,8 +22534,78 @@ class FileServiceProxy {
|
|
|
22356
22534
|
* @param parkId (optional)
|
|
22357
22535
|
* @return Success
|
|
22358
22536
|
*/
|
|
22359
|
-
|
|
22360
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-
|
|
22537
|
+
createReceipt(entityName, entityId, command, parkId, guid) {
|
|
22538
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/file/create-receipt?";
|
|
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?";
|
|
22361
22609
|
if (guid === undefined || guid === null)
|
|
22362
22610
|
throw new Error("The parameter 'guid' must be defined.");
|
|
22363
22611
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -23559,16 +23807,21 @@ class GuestServiceProxy {
|
|
|
23559
23807
|
}
|
|
23560
23808
|
}
|
|
23561
23809
|
/**
|
|
23810
|
+
* @param parkId (optional)
|
|
23562
23811
|
* @return Success
|
|
23563
23812
|
*/
|
|
23564
|
-
|
|
23565
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}";
|
|
23813
|
+
getGuestById(id, parkId, guid) {
|
|
23814
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}?";
|
|
23566
23815
|
if (id === undefined || id === null)
|
|
23567
23816
|
throw new Error("The parameter 'id' must be defined.");
|
|
23568
23817
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23569
23818
|
if (guid === undefined || guid === null)
|
|
23570
23819
|
throw new Error("The parameter 'guid' must be defined.");
|
|
23571
23820
|
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) + "&";
|
|
23572
23825
|
url_ = url_.replace(/[?&]$/, "");
|
|
23573
23826
|
let options_ = {
|
|
23574
23827
|
observe: "response",
|
|
@@ -23577,12 +23830,12 @@ class GuestServiceProxy {
|
|
|
23577
23830
|
"Accept": "text/plain"
|
|
23578
23831
|
})
|
|
23579
23832
|
};
|
|
23580
|
-
return this.http.request("
|
|
23581
|
-
return this.
|
|
23833
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
23834
|
+
return this.processGetGuestById(response_);
|
|
23582
23835
|
})).pipe(catchError((response_) => {
|
|
23583
23836
|
if (response_ instanceof HttpResponseBase) {
|
|
23584
23837
|
try {
|
|
23585
|
-
return this.
|
|
23838
|
+
return this.processGetGuestById(response_);
|
|
23586
23839
|
}
|
|
23587
23840
|
catch (e) {
|
|
23588
23841
|
return throwError(e);
|
|
@@ -23592,7 +23845,7 @@ class GuestServiceProxy {
|
|
|
23592
23845
|
return throwError(response_);
|
|
23593
23846
|
}));
|
|
23594
23847
|
}
|
|
23595
|
-
|
|
23848
|
+
processGetGuestById(response) {
|
|
23596
23849
|
const status = response.status;
|
|
23597
23850
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
23598
23851
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -23602,12 +23855,7 @@ class GuestServiceProxy {
|
|
|
23602
23855
|
_headers[key] = response.headers.get(key);
|
|
23603
23856
|
}
|
|
23604
23857
|
}
|
|
23605
|
-
if (status ===
|
|
23606
|
-
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23607
|
-
return throwException$1("No Content", status, _responseText, _headers);
|
|
23608
|
-
}));
|
|
23609
|
-
}
|
|
23610
|
-
else if (status === 404) {
|
|
23858
|
+
if (status === 404) {
|
|
23611
23859
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23612
23860
|
let result404 = null;
|
|
23613
23861
|
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -23619,7 +23867,7 @@ class GuestServiceProxy {
|
|
|
23619
23867
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23620
23868
|
let result200 = null;
|
|
23621
23869
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23622
|
-
result200 =
|
|
23870
|
+
result200 = VGuestWithBatchDtoHttpResponseData.fromJS(resultData200);
|
|
23623
23871
|
return of(result200);
|
|
23624
23872
|
}));
|
|
23625
23873
|
}
|
|
@@ -23633,16 +23881,21 @@ class GuestServiceProxy {
|
|
|
23633
23881
|
}
|
|
23634
23882
|
}
|
|
23635
23883
|
/**
|
|
23884
|
+
* @param parkId (optional)
|
|
23636
23885
|
* @return Success
|
|
23637
23886
|
*/
|
|
23638
|
-
|
|
23639
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}";
|
|
23887
|
+
deleteGuest(id, parkId, guid) {
|
|
23888
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/{id}?";
|
|
23640
23889
|
if (id === undefined || id === null)
|
|
23641
23890
|
throw new Error("The parameter 'id' must be defined.");
|
|
23642
23891
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23643
23892
|
if (guid === undefined || guid === null)
|
|
23644
23893
|
throw new Error("The parameter 'guid' must be defined.");
|
|
23645
23894
|
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) + "&";
|
|
23646
23899
|
url_ = url_.replace(/[?&]$/, "");
|
|
23647
23900
|
let options_ = {
|
|
23648
23901
|
observe: "response",
|
|
@@ -23651,12 +23904,12 @@ class GuestServiceProxy {
|
|
|
23651
23904
|
"Accept": "text/plain"
|
|
23652
23905
|
})
|
|
23653
23906
|
};
|
|
23654
|
-
return this.http.request("
|
|
23655
|
-
return this.
|
|
23907
|
+
return this.http.request("delete", url_, options_).pipe(mergeMap((response_) => {
|
|
23908
|
+
return this.processDeleteGuest(response_);
|
|
23656
23909
|
})).pipe(catchError((response_) => {
|
|
23657
23910
|
if (response_ instanceof HttpResponseBase) {
|
|
23658
23911
|
try {
|
|
23659
|
-
return this.
|
|
23912
|
+
return this.processDeleteGuest(response_);
|
|
23660
23913
|
}
|
|
23661
23914
|
catch (e) {
|
|
23662
23915
|
return throwError(e);
|
|
@@ -23666,7 +23919,7 @@ class GuestServiceProxy {
|
|
|
23666
23919
|
return throwError(response_);
|
|
23667
23920
|
}));
|
|
23668
23921
|
}
|
|
23669
|
-
|
|
23922
|
+
processDeleteGuest(response) {
|
|
23670
23923
|
const status = response.status;
|
|
23671
23924
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
23672
23925
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -23676,7 +23929,12 @@ class GuestServiceProxy {
|
|
|
23676
23929
|
_headers[key] = response.headers.get(key);
|
|
23677
23930
|
}
|
|
23678
23931
|
}
|
|
23679
|
-
if (status ===
|
|
23932
|
+
if (status === 204) {
|
|
23933
|
+
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23934
|
+
return throwException$1("No Content", status, _responseText, _headers);
|
|
23935
|
+
}));
|
|
23936
|
+
}
|
|
23937
|
+
else if (status === 404) {
|
|
23680
23938
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23681
23939
|
let result404 = null;
|
|
23682
23940
|
let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
@@ -23688,7 +23946,7 @@ class GuestServiceProxy {
|
|
|
23688
23946
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
23689
23947
|
let result200 = null;
|
|
23690
23948
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23691
|
-
result200 =
|
|
23949
|
+
result200 = Unit.fromJS(resultData200);
|
|
23692
23950
|
return of(result200);
|
|
23693
23951
|
}));
|
|
23694
23952
|
}
|
|
@@ -24102,6 +24360,7 @@ class GuestServiceProxy {
|
|
|
24102
24360
|
* @param take (optional)
|
|
24103
24361
|
* @param skip (optional)
|
|
24104
24362
|
* @return Success
|
|
24363
|
+
* @deprecated
|
|
24105
24364
|
*/
|
|
24106
24365
|
guestsTraffic(parkId, guestTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
24107
24366
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/guests-traffic?";
|
|
@@ -24208,6 +24467,74 @@ class GuestServiceProxy {
|
|
|
24208
24467
|
}
|
|
24209
24468
|
return of(null);
|
|
24210
24469
|
}
|
|
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
|
+
}
|
|
24211
24538
|
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 }); }
|
|
24212
24539
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GuestServiceProxy }); }
|
|
24213
24540
|
}
|
|
@@ -24900,16 +25227,21 @@ class KeyOptionServiceProxy {
|
|
|
24900
25227
|
return of(null);
|
|
24901
25228
|
}
|
|
24902
25229
|
/**
|
|
25230
|
+
* @param parkId (optional)
|
|
24903
25231
|
* @return Success
|
|
24904
25232
|
*/
|
|
24905
|
-
deleteKeyOption(id, guid) {
|
|
24906
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/keyoption/{id}";
|
|
25233
|
+
deleteKeyOption(id, parkId, guid) {
|
|
25234
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/keyoption/{id}?";
|
|
24907
25235
|
if (id === undefined || id === null)
|
|
24908
25236
|
throw new Error("The parameter 'id' must be defined.");
|
|
24909
25237
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24910
25238
|
if (guid === undefined || guid === null)
|
|
24911
25239
|
throw new Error("The parameter 'guid' must be defined.");
|
|
24912
25240
|
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) + "&";
|
|
24913
25245
|
url_ = url_.replace(/[?&]$/, "");
|
|
24914
25246
|
let options_ = {
|
|
24915
25247
|
observe: "response",
|
|
@@ -25663,8 +25995,11 @@ class MonthlyServiceProxy {
|
|
|
25663
25995
|
* @param body (optional)
|
|
25664
25996
|
* @return Success
|
|
25665
25997
|
*/
|
|
25666
|
-
getMonthlies(guid, body) {
|
|
25667
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly";
|
|
25998
|
+
getMonthlies(parkId, guid, body) {
|
|
25999
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/facility/{parkId}";
|
|
26000
|
+
if (parkId === undefined || parkId === null)
|
|
26001
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
26002
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
25668
26003
|
if (guid === undefined || guid === null)
|
|
25669
26004
|
throw new Error("The parameter 'guid' must be defined.");
|
|
25670
26005
|
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
@@ -25727,105 +26062,6 @@ class MonthlyServiceProxy {
|
|
|
25727
26062
|
}
|
|
25728
26063
|
return of(null);
|
|
25729
26064
|
}
|
|
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
|
-
}
|
|
25829
26065
|
/**
|
|
25830
26066
|
* @return Success
|
|
25831
26067
|
*/
|
|
@@ -25894,16 +26130,21 @@ class MonthlyServiceProxy {
|
|
|
25894
26130
|
return of(null);
|
|
25895
26131
|
}
|
|
25896
26132
|
/**
|
|
26133
|
+
* @param parkId (optional)
|
|
25897
26134
|
* @return Success
|
|
25898
26135
|
*/
|
|
25899
|
-
deleteMonthly(id, guid) {
|
|
25900
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/{id}";
|
|
26136
|
+
deleteMonthly(id, parkId, guid) {
|
|
26137
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/{id}?";
|
|
25901
26138
|
if (id === undefined || id === null)
|
|
25902
26139
|
throw new Error("The parameter 'id' must be defined.");
|
|
25903
26140
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25904
26141
|
if (guid === undefined || guid === null)
|
|
25905
26142
|
throw new Error("The parameter 'guid' must be defined.");
|
|
25906
26143
|
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) + "&";
|
|
25907
26148
|
url_ = url_.replace(/[?&]$/, "");
|
|
25908
26149
|
let options_ = {
|
|
25909
26150
|
observe: "response",
|
|
@@ -26586,6 +26827,88 @@ class MonthlyServiceProxy {
|
|
|
26586
26827
|
}
|
|
26587
26828
|
return of(null);
|
|
26588
26829
|
}
|
|
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
|
+
}
|
|
26589
26912
|
/**
|
|
26590
26913
|
* @param entityId (optional)
|
|
26591
26914
|
* @param startDate (optional)
|
|
@@ -26688,72 +27011,147 @@ class MonthlyServiceProxy {
|
|
|
26688
27011
|
return of(null);
|
|
26689
27012
|
}
|
|
26690
27013
|
/**
|
|
26691
|
-
* @param
|
|
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)
|
|
27014
|
+
* @param body (optional)
|
|
26705
27015
|
* @return Success
|
|
26706
|
-
* @deprecated
|
|
26707
27016
|
*/
|
|
26708
|
-
|
|
26709
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/monthlies-traffic
|
|
27017
|
+
monthliesTraffic(parkId, guid, body) {
|
|
27018
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/facility/{parkId}/monthlies-traffic";
|
|
27019
|
+
if (parkId === undefined || parkId === null)
|
|
27020
|
+
throw new Error("The parameter 'parkId' must be defined.");
|
|
27021
|
+
url_ = url_.replace("{parkId}", encodeURIComponent("" + parkId));
|
|
27022
|
+
if (guid === undefined || guid === null)
|
|
27023
|
+
throw new Error("The parameter 'guid' must be defined.");
|
|
27024
|
+
url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
|
|
27025
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27026
|
+
const content_ = JSON.stringify(body);
|
|
27027
|
+
let options_ = {
|
|
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
|
+
/**
|
|
27145
|
+
* @return Success
|
|
27146
|
+
*/
|
|
27147
|
+
getMonthliesAccountLimits(accountId, guid) {
|
|
27148
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/account/{accountId}/limits";
|
|
27149
|
+
if (accountId === undefined || accountId === null)
|
|
27150
|
+
throw new Error("The parameter 'accountId' must be defined.");
|
|
27151
|
+
url_ = url_.replace("{accountId}", encodeURIComponent("" + accountId));
|
|
26710
27152
|
if (guid === undefined || guid === null)
|
|
26711
27153
|
throw new Error("The parameter 'guid' must be defined.");
|
|
26712
27154
|
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) + "&";
|
|
26757
27155
|
url_ = url_.replace(/[?&]$/, "");
|
|
26758
27156
|
let options_ = {
|
|
26759
27157
|
observe: "response",
|
|
@@ -26763,11 +27161,11 @@ class MonthlyServiceProxy {
|
|
|
26763
27161
|
})
|
|
26764
27162
|
};
|
|
26765
27163
|
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
26766
|
-
return this.
|
|
27164
|
+
return this.processGetMonthliesAccountLimits(response_);
|
|
26767
27165
|
})).pipe(catchError((response_) => {
|
|
26768
27166
|
if (response_ instanceof HttpResponseBase) {
|
|
26769
27167
|
try {
|
|
26770
|
-
return this.
|
|
27168
|
+
return this.processGetMonthliesAccountLimits(response_);
|
|
26771
27169
|
}
|
|
26772
27170
|
catch (e) {
|
|
26773
27171
|
return throwError(e);
|
|
@@ -26777,7 +27175,7 @@ class MonthlyServiceProxy {
|
|
|
26777
27175
|
return throwError(response_);
|
|
26778
27176
|
}));
|
|
26779
27177
|
}
|
|
26780
|
-
|
|
27178
|
+
processGetMonthliesAccountLimits(response) {
|
|
26781
27179
|
const status = response.status;
|
|
26782
27180
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
26783
27181
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -26799,7 +27197,341 @@ class MonthlyServiceProxy {
|
|
|
26799
27197
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
26800
27198
|
let result200 = null;
|
|
26801
27199
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26802
|
-
result200 =
|
|
27200
|
+
result200 = AccountLimitDtoHttpResponseData.fromJS(resultData200);
|
|
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);
|
|
26803
27535
|
return of(result200);
|
|
26804
27536
|
}));
|
|
26805
27537
|
}
|
|
@@ -26826,8 +27558,9 @@ class MonthlyServiceProxy {
|
|
|
26826
27558
|
* @param take (optional)
|
|
26827
27559
|
* @param skip (optional)
|
|
26828
27560
|
* @return Success
|
|
27561
|
+
* @deprecated
|
|
26829
27562
|
*/
|
|
26830
|
-
|
|
27563
|
+
getMonthliesTraffic(parkId, monthlyTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
26831
27564
|
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/monthlies-traffic?";
|
|
26832
27565
|
if (guid === undefined || guid === null)
|
|
26833
27566
|
throw new Error("The parameter 'guid' must be defined.");
|
|
@@ -26884,12 +27617,12 @@ class MonthlyServiceProxy {
|
|
|
26884
27617
|
"Accept": "text/plain"
|
|
26885
27618
|
})
|
|
26886
27619
|
};
|
|
26887
|
-
return this.http.request("
|
|
26888
|
-
return this.
|
|
27620
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
27621
|
+
return this.processGetMonthliesTraffic(response_);
|
|
26889
27622
|
})).pipe(catchError((response_) => {
|
|
26890
27623
|
if (response_ instanceof HttpResponseBase) {
|
|
26891
27624
|
try {
|
|
26892
|
-
return this.
|
|
27625
|
+
return this.processGetMonthliesTraffic(response_);
|
|
26893
27626
|
}
|
|
26894
27627
|
catch (e) {
|
|
26895
27628
|
return throwError(e);
|
|
@@ -26899,7 +27632,7 @@ class MonthlyServiceProxy {
|
|
|
26899
27632
|
return throwError(response_);
|
|
26900
27633
|
}));
|
|
26901
27634
|
}
|
|
26902
|
-
|
|
27635
|
+
processGetMonthliesTraffic(response) {
|
|
26903
27636
|
const status = response.status;
|
|
26904
27637
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
26905
27638
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -26933,31 +27666,85 @@ class MonthlyServiceProxy {
|
|
|
26933
27666
|
return of(null);
|
|
26934
27667
|
}
|
|
26935
27668
|
/**
|
|
26936
|
-
* @param
|
|
27669
|
+
* @param parkId (optional)
|
|
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)
|
|
26937
27683
|
* @return Success
|
|
26938
27684
|
*/
|
|
26939
|
-
|
|
26940
|
-
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/
|
|
27685
|
+
monthliesTrafficFromQuery(parkId, monthlyTrafficSearchFieldSelector, credentialMediaType, deviceIds, companiesFilterDto_CompanyIds, companiesFilterDto_SubCompanyIds, companiesFilterDto_IncludeAccessProfile, companiesFilterDto_IncludeSubCompanies, companiesFilterDto_ParkId, searchValue, from, to, take, skip, guid) {
|
|
27686
|
+
let url_ = this.baseUrl + "/api/services/sp/{guid}/monthly/monthlies-traffic?";
|
|
26941
27687
|
if (guid === undefined || guid === null)
|
|
26942
27688
|
throw new Error("The parameter 'guid' must be defined.");
|
|
26943
27689
|
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) + "&";
|
|
26944
27734
|
url_ = url_.replace(/[?&]$/, "");
|
|
26945
|
-
const content_ = JSON.stringify(body);
|
|
26946
27735
|
let options_ = {
|
|
26947
|
-
body: content_,
|
|
26948
27736
|
observe: "response",
|
|
26949
27737
|
responseType: "blob",
|
|
26950
27738
|
headers: new HttpHeaders({
|
|
26951
|
-
"Content-Type": "application/json-patch+json",
|
|
26952
27739
|
"Accept": "text/plain"
|
|
26953
27740
|
})
|
|
26954
27741
|
};
|
|
26955
27742
|
return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
|
|
26956
|
-
return this.
|
|
27743
|
+
return this.processMonthliesTrafficFromQuery(response_);
|
|
26957
27744
|
})).pipe(catchError((response_) => {
|
|
26958
27745
|
if (response_ instanceof HttpResponseBase) {
|
|
26959
27746
|
try {
|
|
26960
|
-
return this.
|
|
27747
|
+
return this.processMonthliesTrafficFromQuery(response_);
|
|
26961
27748
|
}
|
|
26962
27749
|
catch (e) {
|
|
26963
27750
|
return throwError(e);
|
|
@@ -26967,66 +27754,7 @@ class MonthlyServiceProxy {
|
|
|
26967
27754
|
return throwError(response_);
|
|
26968
27755
|
}));
|
|
26969
27756
|
}
|
|
26970
|
-
|
|
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) {
|
|
27757
|
+
processMonthliesTrafficFromQuery(response) {
|
|
27030
27758
|
const status = response.status;
|
|
27031
27759
|
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
27032
27760
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -27048,7 +27776,7 @@ class MonthlyServiceProxy {
|
|
|
27048
27776
|
return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
|
|
27049
27777
|
let result200 = null;
|
|
27050
27778
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27051
|
-
result200 =
|
|
27779
|
+
result200 = MonthlyTrafficDtoIEnumerableHttpResponseData.fromJS(resultData200);
|
|
27052
27780
|
return of(result200);
|
|
27053
27781
|
}));
|
|
27054
27782
|
}
|
|
@@ -27059,172 +27787,6 @@ class MonthlyServiceProxy {
|
|
|
27059
27787
|
}
|
|
27060
27788
|
return of(null);
|
|
27061
27789
|
}
|
|
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
|
-
}
|
|
27228
27790
|
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 }); }
|
|
27229
27791
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthlyServiceProxy }); }
|
|
27230
27792
|
}
|
|
@@ -42890,6 +43452,7 @@ class DeleteMonthliesCommand {
|
|
|
42890
43452
|
for (let item of _data["ids"])
|
|
42891
43453
|
this.ids.push(item);
|
|
42892
43454
|
}
|
|
43455
|
+
this.parkId = _data["parkId"];
|
|
42893
43456
|
}
|
|
42894
43457
|
}
|
|
42895
43458
|
static fromJS(data) {
|
|
@@ -42905,6 +43468,7 @@ class DeleteMonthliesCommand {
|
|
|
42905
43468
|
for (let item of this.ids)
|
|
42906
43469
|
data["ids"].push(item);
|
|
42907
43470
|
}
|
|
43471
|
+
data["parkId"] = this.parkId;
|
|
42908
43472
|
return data;
|
|
42909
43473
|
}
|
|
42910
43474
|
clone() {
|
|
@@ -45968,6 +46532,122 @@ class GenerateReportResponseDtoHttpResponseData {
|
|
|
45968
46532
|
return result;
|
|
45969
46533
|
}
|
|
45970
46534
|
}
|
|
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
|
+
}
|
|
45971
46651
|
class GetMonthlyQuery {
|
|
45972
46652
|
constructor(data) {
|
|
45973
46653
|
if (data) {
|
|
@@ -45980,7 +46660,6 @@ class GetMonthlyQuery {
|
|
|
45980
46660
|
init(_data) {
|
|
45981
46661
|
if (_data) {
|
|
45982
46662
|
this.parkId = _data["parkId"];
|
|
45983
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
45984
46663
|
this.companiesFilter = _data["companiesFilter"] ? CompaniesFilterDto.fromJS(_data["companiesFilter"]) : undefined;
|
|
45985
46664
|
this.filter = _data["filter"] ? FilterDto.fromJS(_data["filter"]) : undefined;
|
|
45986
46665
|
this.monthlySearchFieldSelector = _data["monthlySearchFieldSelector"];
|
|
@@ -45997,7 +46676,6 @@ class GetMonthlyQuery {
|
|
|
45997
46676
|
toJSON(data) {
|
|
45998
46677
|
data = typeof data === 'object' ? data : {};
|
|
45999
46678
|
data["parkId"] = this.parkId;
|
|
46000
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
46001
46679
|
data["companiesFilter"] = this.companiesFilter ? this.companiesFilter.toJSON() : undefined;
|
|
46002
46680
|
data["filter"] = this.filter ? this.filter.toJSON() : undefined;
|
|
46003
46681
|
data["monthlySearchFieldSelector"] = this.monthlySearchFieldSelector;
|
|
@@ -49308,7 +49986,6 @@ class MarkCouponBatchAsSentCommand {
|
|
|
49308
49986
|
this.id = _data["id"];
|
|
49309
49987
|
this.parkId = _data["parkId"];
|
|
49310
49988
|
this.email = _data["email"];
|
|
49311
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49312
49989
|
}
|
|
49313
49990
|
}
|
|
49314
49991
|
static fromJS(data) {
|
|
@@ -49322,7 +49999,6 @@ class MarkCouponBatchAsSentCommand {
|
|
|
49322
49999
|
data["id"] = this.id;
|
|
49323
50000
|
data["parkId"] = this.parkId;
|
|
49324
50001
|
data["email"] = this.email;
|
|
49325
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
49326
50002
|
return data;
|
|
49327
50003
|
}
|
|
49328
50004
|
clone() {
|
|
@@ -49346,7 +50022,6 @@ class MarkSingleCouponAsSentCommand {
|
|
|
49346
50022
|
this.id = _data["id"];
|
|
49347
50023
|
this.parkId = _data["parkId"];
|
|
49348
50024
|
this.email = _data["email"];
|
|
49349
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49350
50025
|
}
|
|
49351
50026
|
}
|
|
49352
50027
|
static fromJS(data) {
|
|
@@ -49360,7 +50035,6 @@ class MarkSingleCouponAsSentCommand {
|
|
|
49360
50035
|
data["id"] = this.id;
|
|
49361
50036
|
data["parkId"] = this.parkId;
|
|
49362
50037
|
data["email"] = this.email;
|
|
49363
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
49364
50038
|
return data;
|
|
49365
50039
|
}
|
|
49366
50040
|
clone() {
|
|
@@ -49383,7 +50057,6 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
49383
50057
|
if (_data) {
|
|
49384
50058
|
this.id = _data["id"];
|
|
49385
50059
|
this.parkId = _data["parkId"];
|
|
49386
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49387
50060
|
}
|
|
49388
50061
|
}
|
|
49389
50062
|
static fromJS(data) {
|
|
@@ -49396,7 +50069,6 @@ class MarkSingleCouponAsUsedCommand {
|
|
|
49396
50069
|
data = typeof data === 'object' ? data : {};
|
|
49397
50070
|
data["id"] = this.id;
|
|
49398
50071
|
data["parkId"] = this.parkId;
|
|
49399
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
49400
50072
|
return data;
|
|
49401
50073
|
}
|
|
49402
50074
|
clone() {
|
|
@@ -49419,7 +50091,6 @@ class MarkSingleStickerAsUsedCommand {
|
|
|
49419
50091
|
if (_data) {
|
|
49420
50092
|
this.id = _data["id"];
|
|
49421
50093
|
this.parkId = _data["parkId"];
|
|
49422
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49423
50094
|
}
|
|
49424
50095
|
}
|
|
49425
50096
|
static fromJS(data) {
|
|
@@ -49432,7 +50103,6 @@ class MarkSingleStickerAsUsedCommand {
|
|
|
49432
50103
|
data = typeof data === 'object' ? data : {};
|
|
49433
50104
|
data["id"] = this.id;
|
|
49434
50105
|
data["parkId"] = this.parkId;
|
|
49435
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
49436
50106
|
return data;
|
|
49437
50107
|
}
|
|
49438
50108
|
clone() {
|
|
@@ -49456,7 +50126,6 @@ class MarkStickerBatchAsSentCommand {
|
|
|
49456
50126
|
this.id = _data["id"];
|
|
49457
50127
|
this.email = _data["email"];
|
|
49458
50128
|
this.parkId = _data["parkId"];
|
|
49459
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
49460
50129
|
}
|
|
49461
50130
|
}
|
|
49462
50131
|
static fromJS(data) {
|
|
@@ -49470,7 +50139,6 @@ class MarkStickerBatchAsSentCommand {
|
|
|
49470
50139
|
data["id"] = this.id;
|
|
49471
50140
|
data["email"] = this.email;
|
|
49472
50141
|
data["parkId"] = this.parkId;
|
|
49473
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
49474
50142
|
return data;
|
|
49475
50143
|
}
|
|
49476
50144
|
clone() {
|
|
@@ -52139,58 +52807,6 @@ var PermissionType$1;
|
|
|
52139
52807
|
PermissionType[PermissionType["LotConfigurationAccessProfile"] = 100] = "LotConfigurationAccessProfile";
|
|
52140
52808
|
PermissionType[PermissionType["CancelReceipt"] = 101] = "CancelReceipt";
|
|
52141
52809
|
})(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
|
-
}
|
|
52194
52810
|
class PrintTicketRemoteCommandData extends RemoteCommandBase {
|
|
52195
52811
|
constructor(data) {
|
|
52196
52812
|
super(data);
|
|
@@ -55043,7 +55659,6 @@ class SendCouponByEmailCommand {
|
|
|
55043
55659
|
this.entityId = _data["entityId"];
|
|
55044
55660
|
this.email = _data["email"];
|
|
55045
55661
|
this.parkId = _data["parkId"];
|
|
55046
|
-
this.permittedCompaniesFilter = _data["permittedCompaniesFilter"] ? PermittedCompaniesFilterDto.fromJS(_data["permittedCompaniesFilter"]) : undefined;
|
|
55047
55662
|
}
|
|
55048
55663
|
}
|
|
55049
55664
|
static fromJS(data) {
|
|
@@ -55062,7 +55677,6 @@ class SendCouponByEmailCommand {
|
|
|
55062
55677
|
data["entityId"] = this.entityId;
|
|
55063
55678
|
data["email"] = this.email;
|
|
55064
55679
|
data["parkId"] = this.parkId;
|
|
55065
|
-
data["permittedCompaniesFilter"] = this.permittedCompaniesFilter ? this.permittedCompaniesFilter.toJSON() : undefined;
|
|
55066
55680
|
return data;
|
|
55067
55681
|
}
|
|
55068
55682
|
clone() {
|
|
@@ -63673,6 +64287,8 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
63673
64287
|
GenerateReportNotificationDto: GenerateReportNotificationDto,
|
|
63674
64288
|
GenerateReportResponseDto: GenerateReportResponseDto,
|
|
63675
64289
|
GenerateReportResponseDtoHttpResponseData: GenerateReportResponseDtoHttpResponseData,
|
|
64290
|
+
GetGuestsTrafficQuery: GetGuestsTrafficQuery,
|
|
64291
|
+
GetMonthliesTrafficQuery: GetMonthliesTrafficQuery,
|
|
63676
64292
|
GetMonthlyQuery: GetMonthlyQuery,
|
|
63677
64293
|
GetTicketFeeRemoteCommand: GetTicketFeeRemoteCommand,
|
|
63678
64294
|
GroupDto: GroupDto,
|
|
@@ -63838,7 +64454,6 @@ var edgeServiceProxies = /*#__PURE__*/Object.freeze({
|
|
|
63838
64454
|
get PermissionGroup () { return PermissionGroup; },
|
|
63839
64455
|
get PermissionService () { return PermissionService; },
|
|
63840
64456
|
get PermissionType () { return PermissionType$1; },
|
|
63841
|
-
PermittedCompaniesFilterDto: PermittedCompaniesFilterDto,
|
|
63842
64457
|
PrintTicketRemoteCommandData: PrintTicketRemoteCommandData,
|
|
63843
64458
|
PrinterDto: PrinterDto,
|
|
63844
64459
|
ProblemDetails: ProblemDetails,
|