@tiba-spark/client-shared-lib 25.3.0-794 → 25.3.0-797

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.
@@ -5358,7 +5358,7 @@ class LicenseServiceProxy {
5358
5358
  return blobToText$2(responseBlob).pipe(mergeMap(_responseText => {
5359
5359
  let result200 = null;
5360
5360
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5361
- result200 = FacilityTreeDtoEntityWrapperDtoHttpResponseData.fromJS(resultData200);
5361
+ result200 = SmartparkFilterOptionDtoIEnumerableHttpResponseData.fromJS(resultData200);
5362
5362
  return of(result200);
5363
5363
  }));
5364
5364
  }
@@ -5435,6 +5435,87 @@ class LicenseServiceProxy {
5435
5435
  }
5436
5436
  return of(null);
5437
5437
  }
5438
+ /**
5439
+ * @param maxResults (optional)
5440
+ * @param searchTerm (optional)
5441
+ * @param orderBy_Column (optional)
5442
+ * @param orderBy_OrderDirection (optional)
5443
+ * @return Success
5444
+ */
5445
+ getFacilityFilterOption(maxResults, searchTerm, orderBy_Column, orderBy_OrderDirection) {
5446
+ let url_ = this.baseUrl + "/api/services/license/facilities?";
5447
+ if (maxResults === null)
5448
+ throw new Error("The parameter 'maxResults' cannot be null.");
5449
+ else if (maxResults !== undefined)
5450
+ url_ += "MaxResults=" + encodeURIComponent("" + maxResults) + "&";
5451
+ if (searchTerm === null)
5452
+ throw new Error("The parameter 'searchTerm' cannot be null.");
5453
+ else if (searchTerm !== undefined)
5454
+ url_ += "SearchTerm=" + encodeURIComponent("" + searchTerm) + "&";
5455
+ if (orderBy_Column === null)
5456
+ throw new Error("The parameter 'orderBy_Column' cannot be null.");
5457
+ else if (orderBy_Column !== undefined)
5458
+ url_ += "OrderBy.Column=" + encodeURIComponent("" + orderBy_Column) + "&";
5459
+ if (orderBy_OrderDirection === null)
5460
+ throw new Error("The parameter 'orderBy_OrderDirection' cannot be null.");
5461
+ else if (orderBy_OrderDirection !== undefined)
5462
+ url_ += "OrderBy.OrderDirection=" + encodeURIComponent("" + orderBy_OrderDirection) + "&";
5463
+ url_ = url_.replace(/[?&]$/, "");
5464
+ let options_ = {
5465
+ observe: "response",
5466
+ responseType: "blob",
5467
+ headers: new HttpHeaders({
5468
+ "Accept": "text/plain"
5469
+ })
5470
+ };
5471
+ return this.http.request("get", url_, options_).pipe(mergeMap((response_) => {
5472
+ return this.processGetFacilityFilterOption(response_);
5473
+ })).pipe(catchError((response_) => {
5474
+ if (response_ instanceof HttpResponseBase) {
5475
+ try {
5476
+ return this.processGetFacilityFilterOption(response_);
5477
+ }
5478
+ catch (e) {
5479
+ return throwError(e);
5480
+ }
5481
+ }
5482
+ else
5483
+ return throwError(response_);
5484
+ }));
5485
+ }
5486
+ processGetFacilityFilterOption(response) {
5487
+ const status = response.status;
5488
+ const responseBlob = response instanceof HttpResponse ? response.body :
5489
+ response.error instanceof Blob ? response.error : undefined;
5490
+ let _headers = {};
5491
+ if (response.headers) {
5492
+ for (let key of response.headers.keys()) {
5493
+ _headers[key] = response.headers.get(key);
5494
+ }
5495
+ }
5496
+ if (status === 404) {
5497
+ return blobToText$2(responseBlob).pipe(mergeMap(_responseText => {
5498
+ let result404 = null;
5499
+ let resultData404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5500
+ result404 = ProblemDetails$1.fromJS(resultData404);
5501
+ return throwException$2("Not Found", status, _responseText, _headers, result404);
5502
+ }));
5503
+ }
5504
+ else if (status === 200) {
5505
+ return blobToText$2(responseBlob).pipe(mergeMap(_responseText => {
5506
+ let result200 = null;
5507
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5508
+ result200 = FacilityFilterOptionDtoIEnumerableHttpResponseData.fromJS(resultData200);
5509
+ return of(result200);
5510
+ }));
5511
+ }
5512
+ else if (status !== 200 && status !== 204) {
5513
+ return blobToText$2(responseBlob).pipe(mergeMap(_responseText => {
5514
+ return throwException$2("An unexpected server error occurred.", status, _responseText, _headers);
5515
+ }));
5516
+ }
5517
+ return of(null);
5518
+ }
5438
5519
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LicenseServiceProxy, deps: [{ token: HttpClient }, { token: API_BASE_URL$2, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
5439
5520
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LicenseServiceProxy }); }
5440
5521
  }
@@ -15077,6 +15158,90 @@ let FacilityBasicDto$2 = class FacilityBasicDto {
15077
15158
  return result;
15078
15159
  }
15079
15160
  };
15161
+ class FacilityFilterOptionDto {
15162
+ constructor(data) {
15163
+ if (data) {
15164
+ for (var property in data) {
15165
+ if (data.hasOwnProperty(property))
15166
+ this[property] = data[property];
15167
+ }
15168
+ }
15169
+ }
15170
+ init(_data) {
15171
+ if (_data) {
15172
+ this.id = _data["id"];
15173
+ this.name = _data["name"];
15174
+ this.active = _data["active"];
15175
+ }
15176
+ }
15177
+ static fromJS(data) {
15178
+ data = typeof data === 'object' ? data : {};
15179
+ let result = new FacilityFilterOptionDto();
15180
+ result.init(data);
15181
+ return result;
15182
+ }
15183
+ toJSON(data) {
15184
+ data = typeof data === 'object' ? data : {};
15185
+ data["id"] = this.id;
15186
+ data["name"] = this.name;
15187
+ data["active"] = this.active;
15188
+ return data;
15189
+ }
15190
+ clone() {
15191
+ const json = this.toJSON();
15192
+ let result = new FacilityFilterOptionDto();
15193
+ result.init(json);
15194
+ return result;
15195
+ }
15196
+ }
15197
+ class FacilityFilterOptionDtoIEnumerableHttpResponseData {
15198
+ constructor(data) {
15199
+ if (data) {
15200
+ for (var property in data) {
15201
+ if (data.hasOwnProperty(property))
15202
+ this[property] = data[property];
15203
+ }
15204
+ }
15205
+ }
15206
+ init(_data) {
15207
+ if (_data) {
15208
+ this.errorMessage = _data["errorMessage"];
15209
+ this.isSuccess = _data["isSuccess"];
15210
+ this.statusCode = _data["statusCode"];
15211
+ if (Array.isArray(_data["data"])) {
15212
+ this.data = [];
15213
+ for (let item of _data["data"])
15214
+ this.data.push(FacilityFilterOptionDto.fromJS(item));
15215
+ }
15216
+ this.successMessage = _data["successMessage"];
15217
+ }
15218
+ }
15219
+ static fromJS(data) {
15220
+ data = typeof data === 'object' ? data : {};
15221
+ let result = new FacilityFilterOptionDtoIEnumerableHttpResponseData();
15222
+ result.init(data);
15223
+ return result;
15224
+ }
15225
+ toJSON(data) {
15226
+ data = typeof data === 'object' ? data : {};
15227
+ data["errorMessage"] = this.errorMessage;
15228
+ data["isSuccess"] = this.isSuccess;
15229
+ data["statusCode"] = this.statusCode;
15230
+ if (Array.isArray(this.data)) {
15231
+ data["data"] = [];
15232
+ for (let item of this.data)
15233
+ data["data"].push(item ? item.toJSON() : undefined);
15234
+ }
15235
+ data["successMessage"] = this.successMessage;
15236
+ return data;
15237
+ }
15238
+ clone() {
15239
+ const json = this.toJSON();
15240
+ let result = new FacilityFilterOptionDtoIEnumerableHttpResponseData();
15241
+ result.init(json);
15242
+ return result;
15243
+ }
15244
+ }
15080
15245
  var FacilityRemoteCommandTypes$2;
15081
15246
  (function (FacilityRemoteCommandTypes) {
15082
15247
  FacilityRemoteCommandTypes[FacilityRemoteCommandTypes["ManuallyRunZ"] = 1] = "ManuallyRunZ";
@@ -19500,6 +19665,94 @@ class SmartparkFilter {
19500
19665
  return result;
19501
19666
  }
19502
19667
  }
19668
+ class SmartparkFilterOptionDto {
19669
+ constructor(data) {
19670
+ if (data) {
19671
+ for (var property in data) {
19672
+ if (data.hasOwnProperty(property))
19673
+ this[property] = data[property];
19674
+ }
19675
+ }
19676
+ }
19677
+ init(_data) {
19678
+ if (_data) {
19679
+ this.id = _data["id"];
19680
+ this.cloudId = _data["cloudId"];
19681
+ this.name = _data["name"];
19682
+ this.localId = _data["localId"];
19683
+ this.status = _data["status"];
19684
+ }
19685
+ }
19686
+ static fromJS(data) {
19687
+ data = typeof data === 'object' ? data : {};
19688
+ let result = new SmartparkFilterOptionDto();
19689
+ result.init(data);
19690
+ return result;
19691
+ }
19692
+ toJSON(data) {
19693
+ data = typeof data === 'object' ? data : {};
19694
+ data["id"] = this.id;
19695
+ data["cloudId"] = this.cloudId;
19696
+ data["name"] = this.name;
19697
+ data["localId"] = this.localId;
19698
+ data["status"] = this.status;
19699
+ return data;
19700
+ }
19701
+ clone() {
19702
+ const json = this.toJSON();
19703
+ let result = new SmartparkFilterOptionDto();
19704
+ result.init(json);
19705
+ return result;
19706
+ }
19707
+ }
19708
+ class SmartparkFilterOptionDtoIEnumerableHttpResponseData {
19709
+ constructor(data) {
19710
+ if (data) {
19711
+ for (var property in data) {
19712
+ if (data.hasOwnProperty(property))
19713
+ this[property] = data[property];
19714
+ }
19715
+ }
19716
+ }
19717
+ init(_data) {
19718
+ if (_data) {
19719
+ this.errorMessage = _data["errorMessage"];
19720
+ this.isSuccess = _data["isSuccess"];
19721
+ this.statusCode = _data["statusCode"];
19722
+ if (Array.isArray(_data["data"])) {
19723
+ this.data = [];
19724
+ for (let item of _data["data"])
19725
+ this.data.push(SmartparkFilterOptionDto.fromJS(item));
19726
+ }
19727
+ this.successMessage = _data["successMessage"];
19728
+ }
19729
+ }
19730
+ static fromJS(data) {
19731
+ data = typeof data === 'object' ? data : {};
19732
+ let result = new SmartparkFilterOptionDtoIEnumerableHttpResponseData();
19733
+ result.init(data);
19734
+ return result;
19735
+ }
19736
+ toJSON(data) {
19737
+ data = typeof data === 'object' ? data : {};
19738
+ data["errorMessage"] = this.errorMessage;
19739
+ data["isSuccess"] = this.isSuccess;
19740
+ data["statusCode"] = this.statusCode;
19741
+ if (Array.isArray(this.data)) {
19742
+ data["data"] = [];
19743
+ for (let item of this.data)
19744
+ data["data"].push(item ? item.toJSON() : undefined);
19745
+ }
19746
+ data["successMessage"] = this.successMessage;
19747
+ return data;
19748
+ }
19749
+ clone() {
19750
+ const json = this.toJSON();
19751
+ let result = new SmartparkFilterOptionDtoIEnumerableHttpResponseData();
19752
+ result.init(json);
19753
+ return result;
19754
+ }
19755
+ }
19503
19756
  class SmartparkResponseDto {
19504
19757
  constructor(data) {
19505
19758
  if (data) {
@@ -23093,6 +23346,8 @@ var cloudServiceProxies = /*#__PURE__*/Object.freeze({
23093
23346
  get EventActionType () { return EventActionType; },
23094
23347
  get EventNotificationTypes () { return EventNotificationTypes; },
23095
23348
  FacilityBasicDto: FacilityBasicDto$2,
23349
+ FacilityFilterOptionDto: FacilityFilterOptionDto,
23350
+ FacilityFilterOptionDtoIEnumerableHttpResponseData: FacilityFilterOptionDtoIEnumerableHttpResponseData,
23096
23351
  get FacilityRemoteCommandTypes () { return FacilityRemoteCommandTypes$2; },
23097
23352
  FacilityTreeDto: FacilityTreeDto$1,
23098
23353
  FacilityTreeDtoEntityWrapperDto: FacilityTreeDtoEntityWrapperDto,
@@ -23217,6 +23472,8 @@ var cloudServiceProxies = /*#__PURE__*/Object.freeze({
23217
23472
  SmartparkDtoHttpResponseData: SmartparkDtoHttpResponseData,
23218
23473
  SmartparkDtoIEnumerableHttpResponseData: SmartparkDtoIEnumerableHttpResponseData,
23219
23474
  SmartparkFilter: SmartparkFilter,
23475
+ SmartparkFilterOptionDto: SmartparkFilterOptionDto,
23476
+ SmartparkFilterOptionDtoIEnumerableHttpResponseData: SmartparkFilterOptionDtoIEnumerableHttpResponseData,
23220
23477
  SmartparkResponseDto: SmartparkResponseDto,
23221
23478
  SmartparkResponseDtoHttpResponseData: SmartparkResponseDtoHttpResponseData,
23222
23479
  SmartparkServiceProxy: SmartparkServiceProxy,
@@ -107040,7 +107297,7 @@ let SmartparkState = class SmartparkState {
107040
107297
  const smartparks$ = this.licenseServiceProxy.baseSmartparks(action.searchParamsDto.maxResults, action.searchParamsDto.searchTerm, action.searchParamsDto.orderBy.column, action.searchParamsDto.orderBy.orderDirection);
107041
107298
  return smartparks$.pipe(tap(facilityTreeDto => {
107042
107299
  ctx.patchState({
107043
- facilityTree: facilityTreeDto.data.entities,
107300
+ facilityTree: facilityTreeDto.data,
107044
107301
  });
107045
107302
  }));
107046
107303
  }