@tiba-spark/client-shared-lib 25.4.1-27 → 25.4.1-33

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.
@@ -11714,6 +11714,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
11714
11714
  type: Inject,
11715
11715
  args: [API_BASE_URL$3]
11716
11716
  }] }] });
11717
+ class AccountEntry {
11718
+ constructor(data) {
11719
+ if (data) {
11720
+ for (var property in data) {
11721
+ if (data.hasOwnProperty(property))
11722
+ this[property] = data[property];
11723
+ }
11724
+ }
11725
+ }
11726
+ init(_data) {
11727
+ if (_data) {
11728
+ this.name = _data["name"];
11729
+ if (Array.isArray(_data["subAccounts"])) {
11730
+ this.subAccounts = [];
11731
+ for (let item of _data["subAccounts"])
11732
+ this.subAccounts.push(SubAccountEntry.fromJS(item));
11733
+ }
11734
+ }
11735
+ }
11736
+ static fromJS(data) {
11737
+ data = typeof data === 'object' ? data : {};
11738
+ let result = new AccountEntry();
11739
+ result.init(data);
11740
+ return result;
11741
+ }
11742
+ toJSON(data) {
11743
+ data = typeof data === 'object' ? data : {};
11744
+ data["name"] = this.name;
11745
+ if (Array.isArray(this.subAccounts)) {
11746
+ data["subAccounts"] = [];
11747
+ for (let item of this.subAccounts)
11748
+ data["subAccounts"].push(item ? item.toJSON() : undefined);
11749
+ }
11750
+ return data;
11751
+ }
11752
+ clone() {
11753
+ const json = this.toJSON();
11754
+ let result = new AccountEntry();
11755
+ result.init(json);
11756
+ return result;
11757
+ }
11758
+ }
11717
11759
  var ActionType;
11718
11760
  (function (ActionType) {
11719
11761
  ActionType[ActionType["None"] = 0] = "None";
@@ -15669,13 +15711,13 @@ class FacilityAssignment {
15669
15711
  this.accounts = {};
15670
15712
  for (let key in _data["accounts"]) {
15671
15713
  if (_data["accounts"].hasOwnProperty(key))
15672
- this.accounts[key] = _data["accounts"][key];
15714
+ this.accounts[key] = _data["accounts"][key] ? AccountEntry.fromJS(_data["accounts"][key]) : new AccountEntry();
15673
15715
  }
15674
15716
  }
15675
15717
  if (Array.isArray(_data["validations"])) {
15676
15718
  this.validations = [];
15677
15719
  for (let item of _data["validations"])
15678
- this.validations.push(item);
15720
+ this.validations.push(ValidationEntry.fromJS(item));
15679
15721
  }
15680
15722
  if (Array.isArray(_data["eCommerceAccounts"])) {
15681
15723
  this.eCommerceAccounts = [];
@@ -15704,13 +15746,13 @@ class FacilityAssignment {
15704
15746
  data["accounts"] = {};
15705
15747
  for (let key in this.accounts) {
15706
15748
  if (this.accounts.hasOwnProperty(key))
15707
- data["accounts"][key] = this.accounts[key];
15749
+ data["accounts"][key] = this.accounts[key] ? this.accounts[key].toJSON() : undefined;
15708
15750
  }
15709
15751
  }
15710
15752
  if (Array.isArray(this.validations)) {
15711
15753
  data["validations"] = [];
15712
15754
  for (let item of this.validations)
15713
- data["validations"].push(item);
15755
+ data["validations"].push(item ? item.toJSON() : undefined);
15714
15756
  }
15715
15757
  if (Array.isArray(this.eCommerceAccounts)) {
15716
15758
  data["eCommerceAccounts"] = [];
@@ -21076,6 +21118,40 @@ let StringStringIDictionaryHttpResponseData$1 = class StringStringIDictionaryHtt
21076
21118
  return result;
21077
21119
  }
21078
21120
  };
21121
+ class SubAccountEntry {
21122
+ constructor(data) {
21123
+ if (data) {
21124
+ for (var property in data) {
21125
+ if (data.hasOwnProperty(property))
21126
+ this[property] = data[property];
21127
+ }
21128
+ }
21129
+ }
21130
+ init(_data) {
21131
+ if (_data) {
21132
+ this.id = _data["id"];
21133
+ this.name = _data["name"];
21134
+ }
21135
+ }
21136
+ static fromJS(data) {
21137
+ data = typeof data === 'object' ? data : {};
21138
+ let result = new SubAccountEntry();
21139
+ result.init(data);
21140
+ return result;
21141
+ }
21142
+ toJSON(data) {
21143
+ data = typeof data === 'object' ? data : {};
21144
+ data["id"] = this.id;
21145
+ data["name"] = this.name;
21146
+ return data;
21147
+ }
21148
+ clone() {
21149
+ const json = this.toJSON();
21150
+ let result = new SubAccountEntry();
21151
+ result.init(json);
21152
+ return result;
21153
+ }
21154
+ }
21079
21155
  var SubModule$3;
21080
21156
  (function (SubModule) {
21081
21157
  SubModule[SubModule["EValidation"] = 0] = "EValidation";
@@ -22322,6 +22398,11 @@ class UpdateRoleCommand {
22322
22398
  this.facilityAssignments.push(FacilityAssignment.fromJS(item));
22323
22399
  }
22324
22400
  this.id = _data["id"];
22401
+ if (Array.isArray(_data["removedFacilityAssignments"])) {
22402
+ this.removedFacilityAssignments = [];
22403
+ for (let item of _data["removedFacilityAssignments"])
22404
+ this.removedFacilityAssignments.push(FacilityAssignment.fromJS(item));
22405
+ }
22325
22406
  }
22326
22407
  }
22327
22408
  static fromJS(data) {
@@ -22346,6 +22427,11 @@ class UpdateRoleCommand {
22346
22427
  data["facilityAssignments"].push(item ? item.toJSON() : undefined);
22347
22428
  }
22348
22429
  data["id"] = this.id;
22430
+ if (Array.isArray(this.removedFacilityAssignments)) {
22431
+ data["removedFacilityAssignments"] = [];
22432
+ for (let item of this.removedFacilityAssignments)
22433
+ data["removedFacilityAssignments"].push(item ? item.toJSON() : undefined);
22434
+ }
22349
22435
  return data;
22350
22436
  }
22351
22437
  clone() {
@@ -23347,6 +23433,40 @@ let ValidateActivationUserDtoHttpResponseData$1 = class ValidateActivationUserDt
23347
23433
  return result;
23348
23434
  }
23349
23435
  };
23436
+ class ValidationEntry {
23437
+ constructor(data) {
23438
+ if (data) {
23439
+ for (var property in data) {
23440
+ if (data.hasOwnProperty(property))
23441
+ this[property] = data[property];
23442
+ }
23443
+ }
23444
+ }
23445
+ init(_data) {
23446
+ if (_data) {
23447
+ this.id = _data["id"];
23448
+ this.name = _data["name"];
23449
+ }
23450
+ }
23451
+ static fromJS(data) {
23452
+ data = typeof data === 'object' ? data : {};
23453
+ let result = new ValidationEntry();
23454
+ result.init(data);
23455
+ return result;
23456
+ }
23457
+ toJSON(data) {
23458
+ data = typeof data === 'object' ? data : {};
23459
+ data["id"] = this.id;
23460
+ data["name"] = this.name;
23461
+ return data;
23462
+ }
23463
+ clone() {
23464
+ const json = this.toJSON();
23465
+ let result = new ValidationEntry();
23466
+ result.init(json);
23467
+ return result;
23468
+ }
23469
+ }
23350
23470
  class VarDto {
23351
23471
  constructor(data) {
23352
23472
  if (data) {
@@ -24330,6 +24450,7 @@ function blobToText$3(blob) {
24330
24450
  var cloudServiceProxies = /*#__PURE__*/Object.freeze({
24331
24451
  __proto__: null,
24332
24452
  API_BASE_URL: API_BASE_URL$3,
24453
+ AccountEntry: AccountEntry,
24333
24454
  get ActionType () { return ActionType; },
24334
24455
  ActivateResponseDto: ActivateResponseDto$2,
24335
24456
  ActivateResponseDtoHttpResponseData: ActivateResponseDtoHttpResponseData,
@@ -24592,6 +24713,7 @@ var cloudServiceProxies = /*#__PURE__*/Object.freeze({
24592
24713
  StringHttpResponseData: StringHttpResponseData,
24593
24714
  StringNotificationDtoIEnumerableDictionaryHttpResponseData: StringNotificationDtoIEnumerableDictionaryHttpResponseData,
24594
24715
  StringStringIDictionaryHttpResponseData: StringStringIDictionaryHttpResponseData$1,
24716
+ SubAccountEntry: SubAccountEntry,
24595
24717
  get SubModule () { return SubModule$3; },
24596
24718
  SwallowUnitDto: SwallowUnitDto$1,
24597
24719
  get SwallowUnitStatus () { return SwallowUnitStatus$1; },
@@ -24651,6 +24773,7 @@ var cloudServiceProxies = /*#__PURE__*/Object.freeze({
24651
24773
  UsersCloudServiceProxy: UsersCloudServiceProxy,
24652
24774
  ValidateActivationUserDto: ValidateActivationUserDto$1,
24653
24775
  ValidateActivationUserDtoHttpResponseData: ValidateActivationUserDtoHttpResponseData$1,
24776
+ ValidationEntry: ValidationEntry,
24654
24777
  VarDto: VarDto,
24655
24778
  VarDtoHttpResponseData: VarDtoHttpResponseData,
24656
24779
  VarDtoIEnumerableHttpResponseData: VarDtoIEnumerableHttpResponseData,