@tiba-spark/client-shared-lib 10.2.1-78 → 10.2.1-89

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.
@@ -1135,6 +1135,70 @@ class CloudManagementServiceProxy {
1135
1135
  this.http = http;
1136
1136
  this.baseUrl = baseUrl ?? "";
1137
1137
  }
1138
+ /**
1139
+ * @return Success
1140
+ */
1141
+ refreshCache(secret, syncUsersAndRoles) {
1142
+ let url_ = this.baseUrl + "/api/services/cloudmanagement/{secret}/refresh-cache/{syncUsersAndRoles}";
1143
+ if (secret === undefined || secret === null)
1144
+ throw new Error("The parameter 'secret' must be defined.");
1145
+ url_ = url_.replace("{secret}", encodeURIComponent("" + secret));
1146
+ if (syncUsersAndRoles === undefined || syncUsersAndRoles === null)
1147
+ throw new Error("The parameter 'syncUsersAndRoles' must be defined.");
1148
+ url_ = url_.replace("{syncUsersAndRoles}", encodeURIComponent("" + syncUsersAndRoles));
1149
+ url_ = url_.replace(/[?&]$/, "");
1150
+ let options_ = {
1151
+ observe: "response",
1152
+ responseType: "blob",
1153
+ headers: new HttpHeaders({
1154
+ "Accept": "text/plain"
1155
+ })
1156
+ };
1157
+ return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
1158
+ return this.processRefreshCache(response_);
1159
+ })).pipe(catchError((response_) => {
1160
+ if (response_ instanceof HttpResponseBase) {
1161
+ try {
1162
+ return this.processRefreshCache(response_);
1163
+ }
1164
+ catch (e) {
1165
+ return throwError(e);
1166
+ }
1167
+ }
1168
+ else
1169
+ return throwError(response_);
1170
+ }));
1171
+ }
1172
+ processRefreshCache(response) {
1173
+ const status = response.status;
1174
+ const responseBlob = response instanceof HttpResponse ? response.body :
1175
+ response.error instanceof Blob ? response.error : undefined;
1176
+ let _headers = {};
1177
+ if (response.headers) {
1178
+ for (let key of response.headers.keys()) {
1179
+ _headers[key] = response.headers.get(key);
1180
+ }
1181
+ }
1182
+ if (status === 404) {
1183
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
1184
+ return throwException$1("Not Found", status, _responseText, _headers);
1185
+ }));
1186
+ }
1187
+ else if (status === 200) {
1188
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
1189
+ let result200 = null;
1190
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1191
+ result200 = ObjectHttpResponseData$1.fromJS(resultData200);
1192
+ return of(result200);
1193
+ }));
1194
+ }
1195
+ else if (status !== 200 && status !== 204) {
1196
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
1197
+ return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
1198
+ }));
1199
+ }
1200
+ return of(null);
1201
+ }
1138
1202
  /**
1139
1203
  * @return Success
1140
1204
  */
@@ -6062,6 +6126,72 @@ let UsersServiceProxy$1 = class UsersServiceProxy {
6062
6126
  }
6063
6127
  return of(null);
6064
6128
  }
6129
+ /**
6130
+ * @param userId (optional)
6131
+ * @param tenantId (optional)
6132
+ * @return Success
6133
+ */
6134
+ auditLogout(userId, tenantId) {
6135
+ let url_ = this.baseUrl + "/api/services/users/audit-logout?";
6136
+ if (userId === null)
6137
+ throw new Error("The parameter 'userId' cannot be null.");
6138
+ else if (userId !== undefined)
6139
+ url_ += "userId=" + encodeURIComponent("" + userId) + "&";
6140
+ if (tenantId === null)
6141
+ throw new Error("The parameter 'tenantId' cannot be null.");
6142
+ else if (tenantId !== undefined)
6143
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6144
+ url_ = url_.replace(/[?&]$/, "");
6145
+ let options_ = {
6146
+ observe: "response",
6147
+ responseType: "blob",
6148
+ headers: new HttpHeaders({})
6149
+ };
6150
+ return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
6151
+ return this.processAuditLogout(response_);
6152
+ })).pipe(catchError((response_) => {
6153
+ if (response_ instanceof HttpResponseBase) {
6154
+ try {
6155
+ return this.processAuditLogout(response_);
6156
+ }
6157
+ catch (e) {
6158
+ return throwError(e);
6159
+ }
6160
+ }
6161
+ else
6162
+ return throwError(response_);
6163
+ }));
6164
+ }
6165
+ processAuditLogout(response) {
6166
+ const status = response.status;
6167
+ const responseBlob = response instanceof HttpResponse ? response.body :
6168
+ response.error instanceof Blob ? response.error : undefined;
6169
+ let _headers = {};
6170
+ if (response.headers) {
6171
+ for (let key of response.headers.keys()) {
6172
+ _headers[key] = response.headers.get(key);
6173
+ }
6174
+ }
6175
+ if (status === 200) {
6176
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
6177
+ return of(null);
6178
+ }));
6179
+ }
6180
+ else if (status === 401) {
6181
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
6182
+ let result401 = null;
6183
+ let resultData401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6184
+ result401 = ProblemDetails$1.fromJS(resultData401);
6185
+ return throwException$1("Unauthorized", status, _responseText, _headers, result401);
6186
+ }));
6187
+ }
6188
+ else if (status !== 200 && status !== 204) {
6189
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
6190
+ return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
6191
+ }));
6192
+ }
6193
+ return of(null);
6194
+ }
6065
6195
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UsersServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$1, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
6066
6196
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UsersServiceProxy }); }
6067
6197
  };
@@ -6162,6 +6292,7 @@ var ActionType;
6162
6292
  ActionType[ActionType["Print"] = 8] = "Print";
6163
6293
  ActionType[ActionType["FacilityRemoteCommand"] = 9] = "FacilityRemoteCommand";
6164
6294
  ActionType[ActionType["SetAsIO"] = 10] = "SetAsIO";
6295
+ ActionType[ActionType["AuditLogOut"] = 11] = "AuditLogOut";
6165
6296
  })(ActionType || (ActionType = {}));
6166
6297
  let ActivateResponseDto$1 = class ActivateResponseDto {
6167
6298
  constructor(data) {
@@ -11638,6 +11769,7 @@ class ThirdPartyVendorDto {
11638
11769
  for (let item of _data["permissionTypes"])
11639
11770
  this.permissionTypes.push(item);
11640
11771
  }
11772
+ this.parkCloudId = _data["parkCloudId"];
11641
11773
  }
11642
11774
  }
11643
11775
  static fromJS(data) {
@@ -11654,6 +11786,7 @@ class ThirdPartyVendorDto {
11654
11786
  for (let item of this.permissionTypes)
11655
11787
  data["permissionTypes"].push(item);
11656
11788
  }
11789
+ data["parkCloudId"] = this.parkCloudId;
11657
11790
  return data;
11658
11791
  }
11659
11792
  clone() {
@@ -55283,6 +55416,7 @@ class UpdateMonthliesCommand {
55283
55416
  }
55284
55417
  init(_data) {
55285
55418
  if (_data) {
55419
+ this.parkId = _data["parkId"];
55286
55420
  if (Array.isArray(_data["ids"])) {
55287
55421
  this.ids = [];
55288
55422
  for (let item of _data["ids"])
@@ -55312,6 +55446,7 @@ class UpdateMonthliesCommand {
55312
55446
  }
55313
55447
  toJSON(data) {
55314
55448
  data = typeof data === 'object' ? data : {};
55449
+ data["parkId"] = this.parkId;
55315
55450
  if (Array.isArray(this.ids)) {
55316
55451
  data["ids"] = [];
55317
55452
  for (let item of this.ids)
@@ -61442,6 +61577,7 @@ var Localization;
61442
61577
  Localization["rate_number_is_zero"] = "rate_number_is_zero";
61443
61578
  Localization["to_exit_date"] = "to_exit_date ";
61444
61579
  Localization["equal_password_error"] = "equal_password_error";
61580
+ Localization["actionType_11"] = "actionType_11";
61445
61581
  Localization["entry_date"] = "entry_date";
61446
61582
  Localization["exit_date"] = "exit_date";
61447
61583
  Localization["failed_while_trying_to_print_coupon"] = "failed_while_trying_to_print_coupon";
@@ -61659,6 +61795,7 @@ var AuditActionTypeText;
61659
61795
  AuditActionTypeText["Print"] = "print";
61660
61796
  AuditActionTypeText["Send"] = "send";
61661
61797
  AuditActionTypeText["SetAsIO"] = "set_as_io";
61798
+ AuditActionTypeText["AuditLogOut"] = "logout";
61662
61799
  })(AuditActionTypeText || (AuditActionTypeText = {}));
61663
61800
 
61664
61801
  // Enums