@tiba-spark/client-shared-lib 10.3.0-917 → 10.3.0-919

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.
@@ -24047,6 +24047,108 @@ class GuestServiceProxy {
24047
24047
  }
24048
24048
  return of(null);
24049
24049
  }
24050
+ /**
24051
+ * @param parkId (optional)
24052
+ * @param searchValue (optional)
24053
+ * @param from (optional)
24054
+ * @param to (optional)
24055
+ * @param take (optional)
24056
+ * @param skip (optional)
24057
+ * @param dateValidity (optional)
24058
+ * @param hotelGuestSearchFieldSelector (optional)
24059
+ * @param body (optional)
24060
+ * @return Success
24061
+ */
24062
+ hotelGuests(parkId, searchValue, from, to, take, skip, dateValidity, hotelGuestSearchFieldSelector, guid, body) {
24063
+ let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/hotel-guests?";
24064
+ if (guid === undefined || guid === null)
24065
+ throw new Error("The parameter 'guid' must be defined.");
24066
+ url_ = url_.replace("{guid}", encodeURIComponent("" + guid));
24067
+ if (parkId === null)
24068
+ throw new Error("The parameter 'parkId' cannot be null.");
24069
+ else if (parkId !== undefined)
24070
+ url_ += "parkId=" + encodeURIComponent("" + parkId) + "&";
24071
+ if (searchValue !== undefined && searchValue !== null)
24072
+ url_ += "SearchValue=" + encodeURIComponent("" + searchValue) + "&";
24073
+ if (from !== undefined && from !== null)
24074
+ url_ += "From=" + encodeURIComponent("" + from) + "&";
24075
+ if (to !== undefined && to !== null)
24076
+ url_ += "To=" + encodeURIComponent("" + to) + "&";
24077
+ if (take === null)
24078
+ throw new Error("The parameter 'take' cannot be null.");
24079
+ else if (take !== undefined)
24080
+ url_ += "Take=" + encodeURIComponent("" + take) + "&";
24081
+ if (skip === null)
24082
+ throw new Error("The parameter 'skip' cannot be null.");
24083
+ else if (skip !== undefined)
24084
+ url_ += "Skip=" + encodeURIComponent("" + skip) + "&";
24085
+ if (dateValidity === null)
24086
+ throw new Error("The parameter 'dateValidity' cannot be null.");
24087
+ else if (dateValidity !== undefined)
24088
+ url_ += "dateValidity=" + encodeURIComponent("" + dateValidity) + "&";
24089
+ if (hotelGuestSearchFieldSelector === null)
24090
+ throw new Error("The parameter 'hotelGuestSearchFieldSelector' cannot be null.");
24091
+ else if (hotelGuestSearchFieldSelector !== undefined)
24092
+ url_ += "hotelGuestSearchFieldSelector=" + encodeURIComponent("" + hotelGuestSearchFieldSelector) + "&";
24093
+ url_ = url_.replace(/[?&]$/, "");
24094
+ const content_ = JSON.stringify(body);
24095
+ let options_ = {
24096
+ body: content_,
24097
+ observe: "response",
24098
+ responseType: "blob",
24099
+ headers: new HttpHeaders({
24100
+ "Content-Type": "application/json-patch+json",
24101
+ "Accept": "text/plain"
24102
+ })
24103
+ };
24104
+ return this.http.request("post", url_, options_).pipe(mergeMap((response_) => {
24105
+ return this.processHotelGuests(response_);
24106
+ })).pipe(catchError((response_) => {
24107
+ if (response_ instanceof HttpResponseBase) {
24108
+ try {
24109
+ return this.processHotelGuests(response_);
24110
+ }
24111
+ catch (e) {
24112
+ return throwError(e);
24113
+ }
24114
+ }
24115
+ else
24116
+ return throwError(response_);
24117
+ }));
24118
+ }
24119
+ processHotelGuests(response) {
24120
+ const status = response.status;
24121
+ const responseBlob = response instanceof HttpResponse ? response.body :
24122
+ response.error instanceof Blob ? response.error : undefined;
24123
+ let _headers = {};
24124
+ if (response.headers) {
24125
+ for (let key of response.headers.keys()) {
24126
+ _headers[key] = response.headers.get(key);
24127
+ }
24128
+ }
24129
+ if (status === 404) {
24130
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
24131
+ let result404 = null;
24132
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24133
+ result404 = ProblemDetails.fromJS(resultData404);
24134
+ return throwException$1("Not Found", status, _responseText, _headers, result404);
24135
+ }));
24136
+ }
24137
+ else if (status === 200) {
24138
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
24139
+ let result200 = null;
24140
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24141
+ result200 = HotelGuestDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
24142
+ return of(result200);
24143
+ }));
24144
+ }
24145
+ else if (status !== 200 && status !== 204) {
24146
+ return blobToText$1(responseBlob).pipe(mergeMap(_responseText => {
24147
+ return throwException$1("An unexpected server error occurred.", status, _responseText, _headers);
24148
+ }));
24149
+ }
24150
+ return of(null);
24151
+ }
24050
24152
  /**
24051
24153
  * @param hotelGuestSearchFieldSelector (optional)
24052
24154
  * @param dateValidity (optional)
@@ -24058,8 +24160,9 @@ class GuestServiceProxy {
24058
24160
  * @param take (optional)
24059
24161
  * @param skip (optional)
24060
24162
  * @return Success
24163
+ * @deprecated
24061
24164
  */
24062
- hotelGuests(hotelGuestSearchFieldSelector, dateValidity, companyIds, parkId, searchValue, from, to, take, skip, guid) {
24165
+ hotelGuestsDeprecated(hotelGuestSearchFieldSelector, dateValidity, companyIds, parkId, searchValue, from, to, take, skip, guid) {
24063
24166
  let url_ = this.baseUrl + "/api/services/sp/{guid}/guest/hotel-guests?";
24064
24167
  if (guid === undefined || guid === null)
24065
24168
  throw new Error("The parameter 'guid' must be defined.");
@@ -24101,11 +24204,11 @@ class GuestServiceProxy {
24101
24204
  })
24102
24205
  };
24103
24206
  return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
24104
- return this.processHotelGuests(response_);
24207
+ return this.processHotelGuestsDeprecated(response_);
24105
24208
  })).pipe(catchError((response_) => {
24106
24209
  if (response_ instanceof HttpResponseBase) {
24107
24210
  try {
24108
- return this.processHotelGuests(response_);
24211
+ return this.processHotelGuestsDeprecated(response_);
24109
24212
  }
24110
24213
  catch (e) {
24111
24214
  return throwError(e);
@@ -24115,7 +24218,7 @@ class GuestServiceProxy {
24115
24218
  return throwError(response_);
24116
24219
  }));
24117
24220
  }
24118
- processHotelGuests(response) {
24221
+ processHotelGuestsDeprecated(response) {
24119
24222
  const status = response.status;
24120
24223
  const responseBlob = response instanceof HttpResponse ? response.body :
24121
24224
  response.error instanceof Blob ? response.error : undefined;
@@ -58343,6 +58446,9 @@ class SubCompaniesWithPermissions {
58343
58446
  for (let item of _data["subCompanyIds"])
58344
58447
  this.subCompanyIds.push(item);
58345
58448
  }
58449
+ this.parkId = _data["parkId"];
58450
+ this.includeAccessProfile = _data["includeAccessProfile"];
58451
+ this.includeSubCompanies = _data["includeSubCompanies"];
58346
58452
  }
58347
58453
  }
58348
58454
  static fromJS(data) {
@@ -58363,6 +58469,9 @@ class SubCompaniesWithPermissions {
58363
58469
  for (let item of this.subCompanyIds)
58364
58470
  data["subCompanyIds"].push(item);
58365
58471
  }
58472
+ data["parkId"] = this.parkId;
58473
+ data["includeAccessProfile"] = this.includeAccessProfile;
58474
+ data["includeSubCompanies"] = this.includeSubCompanies;
58366
58475
  return data;
58367
58476
  }
58368
58477
  clone() {