@tiba-spark/client-shared-lib 26.1.0-76 → 26.1.0-86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libraries/enums/localization.enum.mjs +3 -1
- package/esm2022/libraries/service-proxy/cloud-service-proxies.mjs +76 -2
- package/fesm2022/tiba-spark-client-shared-lib.mjs +77 -1
- package/fesm2022/tiba-spark-client-shared-lib.mjs.map +1 -1
- package/libraries/enums/localization.enum.d.ts +3 -1
- package/libraries/enums/localization.enum.d.ts.map +1 -1
- package/libraries/service-proxy/cloud-service-proxies.d.ts +7 -1
- package/libraries/service-proxy/cloud-service-proxies.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6077,14 +6077,19 @@ class LicenseCloudServiceProxy {
|
|
|
6077
6077
|
}
|
|
6078
6078
|
/**
|
|
6079
6079
|
* @param tenantId (optional)
|
|
6080
|
+
* @param scanToPaySupportedVersion (optional)
|
|
6080
6081
|
* @return Success
|
|
6081
6082
|
*/
|
|
6082
|
-
getSmartparksByTenantId(tenantId) {
|
|
6083
|
+
getSmartparksByTenantId(tenantId, scanToPaySupportedVersion) {
|
|
6083
6084
|
let url_ = this.baseUrl + "/api/services/license/smartparks-by-tenantid?";
|
|
6084
6085
|
if (tenantId === null)
|
|
6085
6086
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
6086
6087
|
else if (tenantId !== undefined)
|
|
6087
6088
|
url_ += "TenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
6089
|
+
if (scanToPaySupportedVersion === null)
|
|
6090
|
+
throw new Error("The parameter 'scanToPaySupportedVersion' cannot be null.");
|
|
6091
|
+
else if (scanToPaySupportedVersion !== undefined)
|
|
6092
|
+
url_ += "ScanToPaySupportedVersion=" + encodeURIComponent("" + scanToPaySupportedVersion) + "&";
|
|
6088
6093
|
url_ = url_.replace(/[?&]$/, "");
|
|
6089
6094
|
let options_ = {
|
|
6090
6095
|
observe: "response",
|
|
@@ -9192,6 +9197,75 @@ class SmartparkCloudServiceProxy {
|
|
|
9192
9197
|
}
|
|
9193
9198
|
return of(null);
|
|
9194
9199
|
}
|
|
9200
|
+
/**
|
|
9201
|
+
* @return Success
|
|
9202
|
+
*/
|
|
9203
|
+
getAllFacilitiesScanToPay() {
|
|
9204
|
+
let url_ = this.baseUrl + "/api/services/web/smartpark/all-facilities-scan-to-pay";
|
|
9205
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9206
|
+
let options_ = {
|
|
9207
|
+
observe: "response",
|
|
9208
|
+
responseType: "blob",
|
|
9209
|
+
headers: new HttpHeaders({
|
|
9210
|
+
"Accept": "text/plain"
|
|
9211
|
+
})
|
|
9212
|
+
};
|
|
9213
|
+
return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
|
|
9214
|
+
return this.processGetAllFacilitiesScanToPay(response_);
|
|
9215
|
+
})).pipe(catchError((response_) => {
|
|
9216
|
+
if (response_ instanceof HttpResponseBase) {
|
|
9217
|
+
try {
|
|
9218
|
+
return this.processGetAllFacilitiesScanToPay(response_);
|
|
9219
|
+
}
|
|
9220
|
+
catch (e) {
|
|
9221
|
+
return throwError(e);
|
|
9222
|
+
}
|
|
9223
|
+
}
|
|
9224
|
+
else
|
|
9225
|
+
return throwError(response_);
|
|
9226
|
+
}));
|
|
9227
|
+
}
|
|
9228
|
+
processGetAllFacilitiesScanToPay(response) {
|
|
9229
|
+
const status = response.status;
|
|
9230
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
9231
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
9232
|
+
let _headers = {};
|
|
9233
|
+
if (response.headers) {
|
|
9234
|
+
for (let key of response.headers.keys()) {
|
|
9235
|
+
_headers[key] = response.headers.get(key);
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
9238
|
+
if (status === 401) {
|
|
9239
|
+
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
9240
|
+
let result401 = null;
|
|
9241
|
+
let resultData401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9242
|
+
result401 = ProblemDetails$3.fromJS(resultData401);
|
|
9243
|
+
return throwException$3("Unauthorized", status, _responseText, _headers, result401);
|
|
9244
|
+
}));
|
|
9245
|
+
}
|
|
9246
|
+
else if (status === 403) {
|
|
9247
|
+
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
9248
|
+
let result403 = null;
|
|
9249
|
+
let resultData403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9250
|
+
result403 = ProblemDetails$3.fromJS(resultData403);
|
|
9251
|
+
return throwException$3("Forbidden", status, _responseText, _headers, result403);
|
|
9252
|
+
}));
|
|
9253
|
+
}
|
|
9254
|
+
else if (status === 200) {
|
|
9255
|
+
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
9256
|
+
let result200 = null;
|
|
9257
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9258
|
+
result200 = FacilityTreeDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
|
|
9259
|
+
return of(result200);
|
|
9260
|
+
}));
|
|
9261
|
+
}
|
|
9262
|
+
else if (status !== 200 && status !== 204) {
|
|
9263
|
+
return blobToText$3(responseBlob).pipe(mergeMap(_responseText => {
|
|
9264
|
+
return throwException$3("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9265
|
+
}));
|
|
9266
|
+
}
|
|
9267
|
+
return of(null);
|
|
9268
|
+
}
|
|
9195
9269
|
/**
|
|
9196
9270
|
* @param body (optional)
|
|
9197
9271
|
* @return Success
|
|
@@ -29525,6 +29599,8 @@ var Localization;
|
|
|
29525
29599
|
Localization["ecommerce_verify_website_active"] = "ecommerce_verify_website_active";
|
|
29526
29600
|
Localization["select_at_least_one_facility"] = "select_at_least_one_facility";
|
|
29527
29601
|
Localization["transmit_images_button"] = "transmit_images_button";
|
|
29602
|
+
Localization["scan2_pay_minimum_version_message"] = "scan2_pay_minimum_version_message";
|
|
29603
|
+
Localization["error_message_rabbit_connectivity_failed"] = "error_message_rabbit_connectivity_failed";
|
|
29528
29604
|
})(Localization || (Localization = {}));
|
|
29529
29605
|
|
|
29530
29606
|
class UpdateMobileMode {
|