@ignos/api-client 20250625.0.11987-alpha → 20250627.0.11997

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.
@@ -390,8 +390,8 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
390
390
  protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto>;
391
391
  }
392
392
  export interface IUtilizationClient {
393
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
394
- getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
393
+ getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
394
+ getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
395
395
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
396
396
  getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
397
397
  getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
@@ -403,9 +403,9 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
403
403
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
404
404
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
405
405
  });
406
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
406
+ getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
407
407
  protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
408
- getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
408
+ getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
409
409
  protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
410
410
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
411
411
  protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
@@ -1717,6 +1717,22 @@ export declare class MoveMaterialsClient extends AuthorizedApiBase implements IM
1717
1717
  importMaterials(request: FileParameter | null | undefined): Promise<void>;
1718
1718
  protected processImportMaterials(response: Response): Promise<void>;
1719
1719
  }
1720
+ export interface IMoveNotificationsClient {
1721
+ getNotifications(): Promise<MoveSubscriptionDto>;
1722
+ updateNotifications(request: UpdateNotifications): Promise<MoveSubscriptionDto>;
1723
+ }
1724
+ export declare class MoveNotificationsClient extends AuthorizedApiBase implements IMoveNotificationsClient {
1725
+ private http;
1726
+ private baseUrl;
1727
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1728
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1729
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1730
+ });
1731
+ getNotifications(): Promise<MoveSubscriptionDto>;
1732
+ protected processGetNotifications(response: Response): Promise<MoveSubscriptionDto>;
1733
+ updateNotifications(request: UpdateNotifications): Promise<MoveSubscriptionDto>;
1734
+ protected processUpdateNotifications(response: Response): Promise<MoveSubscriptionDto>;
1735
+ }
1720
1736
  export interface IMoveParcelsClient {
1721
1737
  searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
1722
1738
  }
@@ -3713,13 +3729,11 @@ export interface IPulseSettingsDto {
3713
3729
  defaultUtilizationType: UtilizationTypeDto;
3714
3730
  utilizationTypeEnabling: UtilizationTypeEnablingDto;
3715
3731
  }
3716
- export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder" | "MachineCalendar" | "FactoryCalendar";
3732
+ export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
3717
3733
  export declare class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
3718
3734
  powerOnEnabled: boolean;
3719
3735
  twentyFourSevenEnabled: boolean;
3720
3736
  activeOrderEnabled: boolean;
3721
- machineCalendarEnabled: boolean;
3722
- factoryCalendarEnabled: boolean;
3723
3737
  constructor(data?: IUtilizationTypeEnablingDto);
3724
3738
  init(_data?: any): void;
3725
3739
  static fromJS(data: any): UtilizationTypeEnablingDto;
@@ -3729,8 +3743,6 @@ export interface IUtilizationTypeEnablingDto {
3729
3743
  powerOnEnabled: boolean;
3730
3744
  twentyFourSevenEnabled: boolean;
3731
3745
  activeOrderEnabled: boolean;
3732
- machineCalendarEnabled: boolean;
3733
- factoryCalendarEnabled: boolean;
3734
3746
  }
3735
3747
  export declare class UpdatePulseSettings implements IUpdatePulseSettings {
3736
3748
  defaultUtilizationType: UtilizationTypeDto;
@@ -3766,7 +3778,6 @@ export interface ICompanyUtilizationDto {
3766
3778
  }
3767
3779
  export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
3768
3780
  utilizationPercent?: number | null;
3769
- capacityInMilliseconds?: number;
3770
3781
  uptimeInSeconds?: number | null;
3771
3782
  downtimeInSeconds?: number | null;
3772
3783
  totalTimeInSeconds?: number | null;
@@ -3780,7 +3791,6 @@ export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto
3780
3791
  }
3781
3792
  export interface IUtilizationDetailsV2Dto {
3782
3793
  utilizationPercent?: number | null;
3783
- capacityInMilliseconds?: number;
3784
3794
  uptimeInSeconds?: number | null;
3785
3795
  downtimeInSeconds?: number | null;
3786
3796
  totalTimeInSeconds?: number | null;
@@ -9729,6 +9739,98 @@ export interface IMaterialUpdateDto {
9729
9739
  materialName: string;
9730
9740
  covered: MaterialCoveredDto;
9731
9741
  }
9742
+ export declare class MoveSubscriptionDto implements IMoveSubscriptionDto {
9743
+ enabledNotifications: boolean;
9744
+ zones: MoveSubscriptionZoneDto[];
9745
+ locations: MoveSubscriptionLocationDto[];
9746
+ constructor(data?: IMoveSubscriptionDto);
9747
+ init(_data?: any): void;
9748
+ static fromJS(data: any): MoveSubscriptionDto;
9749
+ toJSON(data?: any): any;
9750
+ }
9751
+ export interface IMoveSubscriptionDto {
9752
+ enabledNotifications: boolean;
9753
+ zones: MoveSubscriptionZoneDto[];
9754
+ locations: MoveSubscriptionLocationDto[];
9755
+ }
9756
+ export declare class MoveSubscriptionZoneDto implements IMoveSubscriptionZoneDto {
9757
+ zoneId: string;
9758
+ bookingFromLocation?: boolean;
9759
+ bookingToLocation?: boolean;
9760
+ locationChange?: boolean;
9761
+ constructor(data?: IMoveSubscriptionZoneDto);
9762
+ init(_data?: any): void;
9763
+ static fromJS(data: any): MoveSubscriptionZoneDto;
9764
+ toJSON(data?: any): any;
9765
+ }
9766
+ export interface IMoveSubscriptionZoneDto {
9767
+ zoneId: string;
9768
+ bookingFromLocation?: boolean;
9769
+ bookingToLocation?: boolean;
9770
+ locationChange?: boolean;
9771
+ }
9772
+ export declare class MoveSubscriptionLocationDto implements IMoveSubscriptionLocationDto {
9773
+ locationId: string;
9774
+ bookingFromLocation?: boolean;
9775
+ bookingToLocation?: boolean;
9776
+ locationChange?: boolean;
9777
+ constructor(data?: IMoveSubscriptionLocationDto);
9778
+ init(_data?: any): void;
9779
+ static fromJS(data: any): MoveSubscriptionLocationDto;
9780
+ toJSON(data?: any): any;
9781
+ }
9782
+ export interface IMoveSubscriptionLocationDto {
9783
+ locationId: string;
9784
+ bookingFromLocation?: boolean;
9785
+ bookingToLocation?: boolean;
9786
+ locationChange?: boolean;
9787
+ }
9788
+ export declare class UpdateNotifications implements IUpdateNotifications {
9789
+ enabledNotifications: boolean;
9790
+ zones: MoveSubscriptionZoneUpdateDto[];
9791
+ locations: MoveSubscriptionLocationUpdateDto[];
9792
+ constructor(data?: IUpdateNotifications);
9793
+ init(_data?: any): void;
9794
+ static fromJS(data: any): UpdateNotifications;
9795
+ toJSON(data?: any): any;
9796
+ }
9797
+ export interface IUpdateNotifications {
9798
+ enabledNotifications: boolean;
9799
+ zones: MoveSubscriptionZoneUpdateDto[];
9800
+ locations: MoveSubscriptionLocationUpdateDto[];
9801
+ }
9802
+ export declare class MoveSubscriptionZoneUpdateDto implements IMoveSubscriptionZoneUpdateDto {
9803
+ zoneId: string;
9804
+ bookingFromLocation?: boolean;
9805
+ bookingToLocation?: boolean;
9806
+ locationChange?: boolean;
9807
+ constructor(data?: IMoveSubscriptionZoneUpdateDto);
9808
+ init(_data?: any): void;
9809
+ static fromJS(data: any): MoveSubscriptionZoneUpdateDto;
9810
+ toJSON(data?: any): any;
9811
+ }
9812
+ export interface IMoveSubscriptionZoneUpdateDto {
9813
+ zoneId: string;
9814
+ bookingFromLocation?: boolean;
9815
+ bookingToLocation?: boolean;
9816
+ locationChange?: boolean;
9817
+ }
9818
+ export declare class MoveSubscriptionLocationUpdateDto implements IMoveSubscriptionLocationUpdateDto {
9819
+ locationId: string;
9820
+ bookingFromLocation?: boolean;
9821
+ bookingToLocation?: boolean;
9822
+ locationChange?: boolean;
9823
+ constructor(data?: IMoveSubscriptionLocationUpdateDto);
9824
+ init(_data?: any): void;
9825
+ static fromJS(data: any): MoveSubscriptionLocationUpdateDto;
9826
+ toJSON(data?: any): any;
9827
+ }
9828
+ export interface IMoveSubscriptionLocationUpdateDto {
9829
+ locationId: string;
9830
+ bookingFromLocation?: boolean;
9831
+ bookingToLocation?: boolean;
9832
+ locationChange?: boolean;
9833
+ }
9732
9834
  export declare class SearchParcelDto implements ISearchParcelDto {
9733
9835
  parcelId: string;
9734
9836
  parcelKind: ParcelKindDto;
@@ -2169,7 +2169,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2169
2169
  this.http = http ? http : window;
2170
2170
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
2171
2171
  }
2172
- getCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
2172
+ getCompanyUtilization(utilizationType, startTime, endTime) {
2173
2173
  let url_ = this.baseUrl + "/utilization?";
2174
2174
  if (utilizationType === null)
2175
2175
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2179,10 +2179,6 @@ export class UtilizationClient extends AuthorizedApiBase {
2179
2179
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2180
2180
  if (endTime !== undefined && endTime !== null)
2181
2181
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2182
- if (dataPointCount === null)
2183
- throw new Error("The parameter 'dataPointCount' cannot be null.");
2184
- else if (dataPointCount !== undefined)
2185
- url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2186
2182
  url_ = url_.replace(/[?&]$/, "");
2187
2183
  let options_ = {
2188
2184
  method: "GET",
@@ -2218,7 +2214,7 @@ export class UtilizationClient extends AuthorizedApiBase {
2218
2214
  }
2219
2215
  return Promise.resolve(null);
2220
2216
  }
2221
- getCrossCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
2217
+ getCrossCompanyUtilization(utilizationType, startTime, endTime) {
2222
2218
  let url_ = this.baseUrl + "/utilization/cross-company?";
2223
2219
  if (utilizationType === null)
2224
2220
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2228,10 +2224,6 @@ export class UtilizationClient extends AuthorizedApiBase {
2228
2224
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2229
2225
  if (endTime !== undefined && endTime !== null)
2230
2226
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2231
- if (dataPointCount === null)
2232
- throw new Error("The parameter 'dataPointCount' cannot be null.");
2233
- else if (dataPointCount !== undefined)
2234
- url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2235
2227
  url_ = url_.replace(/[?&]$/, "");
2236
2228
  let options_ = {
2237
2229
  method: "GET",
@@ -14467,6 +14459,91 @@ export class MoveMaterialsClient extends AuthorizedApiBase {
14467
14459
  return Promise.resolve(null);
14468
14460
  }
14469
14461
  }
14462
+ export class MoveNotificationsClient extends AuthorizedApiBase {
14463
+ constructor(configuration, baseUrl, http) {
14464
+ super(configuration);
14465
+ this.jsonParseReviver = undefined;
14466
+ this.http = http ? http : window;
14467
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
14468
+ }
14469
+ getNotifications() {
14470
+ let url_ = this.baseUrl + "/move/notifications";
14471
+ url_ = url_.replace(/[?&]$/, "");
14472
+ let options_ = {
14473
+ method: "GET",
14474
+ headers: {
14475
+ "Accept": "application/json"
14476
+ }
14477
+ };
14478
+ return this.transformOptions(options_).then(transformedOptions_ => {
14479
+ return this.http.fetch(url_, transformedOptions_);
14480
+ }).then((_response) => {
14481
+ return this.processGetNotifications(_response);
14482
+ });
14483
+ }
14484
+ processGetNotifications(response) {
14485
+ const status = response.status;
14486
+ let _headers = {};
14487
+ if (response.headers && response.headers.forEach) {
14488
+ response.headers.forEach((v, k) => _headers[k] = v);
14489
+ }
14490
+ ;
14491
+ if (status === 200) {
14492
+ return response.text().then((_responseText) => {
14493
+ let result200 = null;
14494
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14495
+ result200 = MoveSubscriptionDto.fromJS(resultData200);
14496
+ return result200;
14497
+ });
14498
+ }
14499
+ else if (status !== 200 && status !== 204) {
14500
+ return response.text().then((_responseText) => {
14501
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14502
+ });
14503
+ }
14504
+ return Promise.resolve(null);
14505
+ }
14506
+ updateNotifications(request) {
14507
+ let url_ = this.baseUrl + "/move/notifications";
14508
+ url_ = url_.replace(/[?&]$/, "");
14509
+ const content_ = JSON.stringify(request);
14510
+ let options_ = {
14511
+ body: content_,
14512
+ method: "POST",
14513
+ headers: {
14514
+ "Content-Type": "application/json",
14515
+ "Accept": "application/json"
14516
+ }
14517
+ };
14518
+ return this.transformOptions(options_).then(transformedOptions_ => {
14519
+ return this.http.fetch(url_, transformedOptions_);
14520
+ }).then((_response) => {
14521
+ return this.processUpdateNotifications(_response);
14522
+ });
14523
+ }
14524
+ processUpdateNotifications(response) {
14525
+ const status = response.status;
14526
+ let _headers = {};
14527
+ if (response.headers && response.headers.forEach) {
14528
+ response.headers.forEach((v, k) => _headers[k] = v);
14529
+ }
14530
+ ;
14531
+ if (status === 200) {
14532
+ return response.text().then((_responseText) => {
14533
+ let result200 = null;
14534
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14535
+ result200 = MoveSubscriptionDto.fromJS(resultData200);
14536
+ return result200;
14537
+ });
14538
+ }
14539
+ else if (status !== 200 && status !== 204) {
14540
+ return response.text().then((_responseText) => {
14541
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14542
+ });
14543
+ }
14544
+ return Promise.resolve(null);
14545
+ }
14546
+ }
14470
14547
  export class MoveParcelsClient extends AuthorizedApiBase {
14471
14548
  constructor(configuration, baseUrl, http) {
14472
14549
  super(configuration);
@@ -24629,8 +24706,6 @@ export class UtilizationTypeEnablingDto {
24629
24706
  this.powerOnEnabled = _data["powerOnEnabled"];
24630
24707
  this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
24631
24708
  this.activeOrderEnabled = _data["activeOrderEnabled"];
24632
- this.machineCalendarEnabled = _data["machineCalendarEnabled"];
24633
- this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
24634
24709
  }
24635
24710
  }
24636
24711
  static fromJS(data) {
@@ -24644,8 +24719,6 @@ export class UtilizationTypeEnablingDto {
24644
24719
  data["powerOnEnabled"] = this.powerOnEnabled;
24645
24720
  data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
24646
24721
  data["activeOrderEnabled"] = this.activeOrderEnabled;
24647
- data["machineCalendarEnabled"] = this.machineCalendarEnabled;
24648
- data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
24649
24722
  return data;
24650
24723
  }
24651
24724
  }
@@ -24746,7 +24819,6 @@ export class UtilizationDetailsV2Dto {
24746
24819
  init(_data) {
24747
24820
  if (_data) {
24748
24821
  this.utilizationPercent = _data["utilizationPercent"];
24749
- this.capacityInMilliseconds = _data["capacityInMilliseconds"];
24750
24822
  this.uptimeInSeconds = _data["uptimeInSeconds"];
24751
24823
  this.downtimeInSeconds = _data["downtimeInSeconds"];
24752
24824
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
@@ -24764,7 +24836,6 @@ export class UtilizationDetailsV2Dto {
24764
24836
  toJSON(data) {
24765
24837
  data = typeof data === 'object' ? data : {};
24766
24838
  data["utilizationPercent"] = this.utilizationPercent;
24767
- data["capacityInMilliseconds"] = this.capacityInMilliseconds;
24768
24839
  data["uptimeInSeconds"] = this.uptimeInSeconds;
24769
24840
  data["downtimeInSeconds"] = this.downtimeInSeconds;
24770
24841
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
@@ -36937,6 +37008,234 @@ export class MaterialUpdateDto {
36937
37008
  return data;
36938
37009
  }
36939
37010
  }
37011
+ export class MoveSubscriptionDto {
37012
+ constructor(data) {
37013
+ if (data) {
37014
+ for (var property in data) {
37015
+ if (data.hasOwnProperty(property))
37016
+ this[property] = data[property];
37017
+ }
37018
+ }
37019
+ if (!data) {
37020
+ this.zones = [];
37021
+ this.locations = [];
37022
+ }
37023
+ }
37024
+ init(_data) {
37025
+ if (_data) {
37026
+ this.enabledNotifications = _data["enabledNotifications"];
37027
+ if (Array.isArray(_data["zones"])) {
37028
+ this.zones = [];
37029
+ for (let item of _data["zones"])
37030
+ this.zones.push(MoveSubscriptionZoneDto.fromJS(item));
37031
+ }
37032
+ if (Array.isArray(_data["locations"])) {
37033
+ this.locations = [];
37034
+ for (let item of _data["locations"])
37035
+ this.locations.push(MoveSubscriptionLocationDto.fromJS(item));
37036
+ }
37037
+ }
37038
+ }
37039
+ static fromJS(data) {
37040
+ data = typeof data === 'object' ? data : {};
37041
+ let result = new MoveSubscriptionDto();
37042
+ result.init(data);
37043
+ return result;
37044
+ }
37045
+ toJSON(data) {
37046
+ data = typeof data === 'object' ? data : {};
37047
+ data["enabledNotifications"] = this.enabledNotifications;
37048
+ if (Array.isArray(this.zones)) {
37049
+ data["zones"] = [];
37050
+ for (let item of this.zones)
37051
+ data["zones"].push(item.toJSON());
37052
+ }
37053
+ if (Array.isArray(this.locations)) {
37054
+ data["locations"] = [];
37055
+ for (let item of this.locations)
37056
+ data["locations"].push(item.toJSON());
37057
+ }
37058
+ return data;
37059
+ }
37060
+ }
37061
+ export class MoveSubscriptionZoneDto {
37062
+ constructor(data) {
37063
+ if (data) {
37064
+ for (var property in data) {
37065
+ if (data.hasOwnProperty(property))
37066
+ this[property] = data[property];
37067
+ }
37068
+ }
37069
+ }
37070
+ init(_data) {
37071
+ if (_data) {
37072
+ this.zoneId = _data["zoneId"];
37073
+ this.bookingFromLocation = _data["bookingFromLocation"];
37074
+ this.bookingToLocation = _data["bookingToLocation"];
37075
+ this.locationChange = _data["locationChange"];
37076
+ }
37077
+ }
37078
+ static fromJS(data) {
37079
+ data = typeof data === 'object' ? data : {};
37080
+ let result = new MoveSubscriptionZoneDto();
37081
+ result.init(data);
37082
+ return result;
37083
+ }
37084
+ toJSON(data) {
37085
+ data = typeof data === 'object' ? data : {};
37086
+ data["zoneId"] = this.zoneId;
37087
+ data["bookingFromLocation"] = this.bookingFromLocation;
37088
+ data["bookingToLocation"] = this.bookingToLocation;
37089
+ data["locationChange"] = this.locationChange;
37090
+ return data;
37091
+ }
37092
+ }
37093
+ export class MoveSubscriptionLocationDto {
37094
+ constructor(data) {
37095
+ if (data) {
37096
+ for (var property in data) {
37097
+ if (data.hasOwnProperty(property))
37098
+ this[property] = data[property];
37099
+ }
37100
+ }
37101
+ }
37102
+ init(_data) {
37103
+ if (_data) {
37104
+ this.locationId = _data["locationId"];
37105
+ this.bookingFromLocation = _data["bookingFromLocation"];
37106
+ this.bookingToLocation = _data["bookingToLocation"];
37107
+ this.locationChange = _data["locationChange"];
37108
+ }
37109
+ }
37110
+ static fromJS(data) {
37111
+ data = typeof data === 'object' ? data : {};
37112
+ let result = new MoveSubscriptionLocationDto();
37113
+ result.init(data);
37114
+ return result;
37115
+ }
37116
+ toJSON(data) {
37117
+ data = typeof data === 'object' ? data : {};
37118
+ data["locationId"] = this.locationId;
37119
+ data["bookingFromLocation"] = this.bookingFromLocation;
37120
+ data["bookingToLocation"] = this.bookingToLocation;
37121
+ data["locationChange"] = this.locationChange;
37122
+ return data;
37123
+ }
37124
+ }
37125
+ export class UpdateNotifications {
37126
+ constructor(data) {
37127
+ if (data) {
37128
+ for (var property in data) {
37129
+ if (data.hasOwnProperty(property))
37130
+ this[property] = data[property];
37131
+ }
37132
+ }
37133
+ if (!data) {
37134
+ this.zones = [];
37135
+ this.locations = [];
37136
+ }
37137
+ }
37138
+ init(_data) {
37139
+ if (_data) {
37140
+ this.enabledNotifications = _data["enabledNotifications"];
37141
+ if (Array.isArray(_data["zones"])) {
37142
+ this.zones = [];
37143
+ for (let item of _data["zones"])
37144
+ this.zones.push(MoveSubscriptionZoneUpdateDto.fromJS(item));
37145
+ }
37146
+ if (Array.isArray(_data["locations"])) {
37147
+ this.locations = [];
37148
+ for (let item of _data["locations"])
37149
+ this.locations.push(MoveSubscriptionLocationUpdateDto.fromJS(item));
37150
+ }
37151
+ }
37152
+ }
37153
+ static fromJS(data) {
37154
+ data = typeof data === 'object' ? data : {};
37155
+ let result = new UpdateNotifications();
37156
+ result.init(data);
37157
+ return result;
37158
+ }
37159
+ toJSON(data) {
37160
+ data = typeof data === 'object' ? data : {};
37161
+ data["enabledNotifications"] = this.enabledNotifications;
37162
+ if (Array.isArray(this.zones)) {
37163
+ data["zones"] = [];
37164
+ for (let item of this.zones)
37165
+ data["zones"].push(item.toJSON());
37166
+ }
37167
+ if (Array.isArray(this.locations)) {
37168
+ data["locations"] = [];
37169
+ for (let item of this.locations)
37170
+ data["locations"].push(item.toJSON());
37171
+ }
37172
+ return data;
37173
+ }
37174
+ }
37175
+ export class MoveSubscriptionZoneUpdateDto {
37176
+ constructor(data) {
37177
+ if (data) {
37178
+ for (var property in data) {
37179
+ if (data.hasOwnProperty(property))
37180
+ this[property] = data[property];
37181
+ }
37182
+ }
37183
+ }
37184
+ init(_data) {
37185
+ if (_data) {
37186
+ this.zoneId = _data["zoneId"];
37187
+ this.bookingFromLocation = _data["bookingFromLocation"];
37188
+ this.bookingToLocation = _data["bookingToLocation"];
37189
+ this.locationChange = _data["locationChange"];
37190
+ }
37191
+ }
37192
+ static fromJS(data) {
37193
+ data = typeof data === 'object' ? data : {};
37194
+ let result = new MoveSubscriptionZoneUpdateDto();
37195
+ result.init(data);
37196
+ return result;
37197
+ }
37198
+ toJSON(data) {
37199
+ data = typeof data === 'object' ? data : {};
37200
+ data["zoneId"] = this.zoneId;
37201
+ data["bookingFromLocation"] = this.bookingFromLocation;
37202
+ data["bookingToLocation"] = this.bookingToLocation;
37203
+ data["locationChange"] = this.locationChange;
37204
+ return data;
37205
+ }
37206
+ }
37207
+ export class MoveSubscriptionLocationUpdateDto {
37208
+ constructor(data) {
37209
+ if (data) {
37210
+ for (var property in data) {
37211
+ if (data.hasOwnProperty(property))
37212
+ this[property] = data[property];
37213
+ }
37214
+ }
37215
+ }
37216
+ init(_data) {
37217
+ if (_data) {
37218
+ this.locationId = _data["locationId"];
37219
+ this.bookingFromLocation = _data["bookingFromLocation"];
37220
+ this.bookingToLocation = _data["bookingToLocation"];
37221
+ this.locationChange = _data["locationChange"];
37222
+ }
37223
+ }
37224
+ static fromJS(data) {
37225
+ data = typeof data === 'object' ? data : {};
37226
+ let result = new MoveSubscriptionLocationUpdateDto();
37227
+ result.init(data);
37228
+ return result;
37229
+ }
37230
+ toJSON(data) {
37231
+ data = typeof data === 'object' ? data : {};
37232
+ data["locationId"] = this.locationId;
37233
+ data["bookingFromLocation"] = this.bookingFromLocation;
37234
+ data["bookingToLocation"] = this.bookingToLocation;
37235
+ data["locationChange"] = this.locationChange;
37236
+ return data;
37237
+ }
37238
+ }
36940
37239
  export class SearchParcelDto {
36941
37240
  constructor(data) {
36942
37241
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250625.0.11987-alpha",
3
+ "version": "20250627.0.11997",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -2387,9 +2387,9 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
2387
2387
 
2388
2388
  export interface IUtilizationClient {
2389
2389
 
2390
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
2390
+ getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
2391
2391
 
2392
- getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
2392
+ getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
2393
2393
 
2394
2394
  getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
2395
2395
 
@@ -2409,7 +2409,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2409
2409
  this.baseUrl = baseUrl ?? "";
2410
2410
  }
2411
2411
 
2412
- getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto> {
2412
+ getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto> {
2413
2413
  let url_ = this.baseUrl + "/utilization?";
2414
2414
  if (utilizationType === null)
2415
2415
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2419,10 +2419,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2419
2419
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2420
2420
  if (endTime !== undefined && endTime !== null)
2421
2421
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2422
- if (dataPointCount === null)
2423
- throw new Error("The parameter 'dataPointCount' cannot be null.");
2424
- else if (dataPointCount !== undefined)
2425
- url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2426
2422
  url_ = url_.replace(/[?&]$/, "");
2427
2423
 
2428
2424
  let options_: RequestInit = {
@@ -2457,7 +2453,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2457
2453
  return Promise.resolve<CompanyUtilizationDto>(null as any);
2458
2454
  }
2459
2455
 
2460
- getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto> {
2456
+ getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto> {
2461
2457
  let url_ = this.baseUrl + "/utilization/cross-company?";
2462
2458
  if (utilizationType === null)
2463
2459
  throw new Error("The parameter 'utilizationType' cannot be null.");
@@ -2467,10 +2463,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
2467
2463
  url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
2468
2464
  if (endTime !== undefined && endTime !== null)
2469
2465
  url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
2470
- if (dataPointCount === null)
2471
- throw new Error("The parameter 'dataPointCount' cannot be null.");
2472
- else if (dataPointCount !== undefined)
2473
- url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
2474
2466
  url_ = url_.replace(/[?&]$/, "");
2475
2467
 
2476
2468
  let options_: RequestInit = {
@@ -15432,6 +15424,101 @@ export class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMater
15432
15424
  }
15433
15425
  }
15434
15426
 
15427
+ export interface IMoveNotificationsClient {
15428
+
15429
+ getNotifications(): Promise<MoveSubscriptionDto>;
15430
+
15431
+ updateNotifications(request: UpdateNotifications): Promise<MoveSubscriptionDto>;
15432
+ }
15433
+
15434
+ export class MoveNotificationsClient extends AuthorizedApiBase implements IMoveNotificationsClient {
15435
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
15436
+ private baseUrl: string;
15437
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
15438
+
15439
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
15440
+ super(configuration);
15441
+ this.http = http ? http : window as any;
15442
+ this.baseUrl = baseUrl ?? "";
15443
+ }
15444
+
15445
+ getNotifications(): Promise<MoveSubscriptionDto> {
15446
+ let url_ = this.baseUrl + "/move/notifications";
15447
+ url_ = url_.replace(/[?&]$/, "");
15448
+
15449
+ let options_: RequestInit = {
15450
+ method: "GET",
15451
+ headers: {
15452
+ "Accept": "application/json"
15453
+ }
15454
+ };
15455
+
15456
+ return this.transformOptions(options_).then(transformedOptions_ => {
15457
+ return this.http.fetch(url_, transformedOptions_);
15458
+ }).then((_response: Response) => {
15459
+ return this.processGetNotifications(_response);
15460
+ });
15461
+ }
15462
+
15463
+ protected processGetNotifications(response: Response): Promise<MoveSubscriptionDto> {
15464
+ const status = response.status;
15465
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
15466
+ if (status === 200) {
15467
+ return response.text().then((_responseText) => {
15468
+ let result200: any = null;
15469
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15470
+ result200 = MoveSubscriptionDto.fromJS(resultData200);
15471
+ return result200;
15472
+ });
15473
+ } else if (status !== 200 && status !== 204) {
15474
+ return response.text().then((_responseText) => {
15475
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15476
+ });
15477
+ }
15478
+ return Promise.resolve<MoveSubscriptionDto>(null as any);
15479
+ }
15480
+
15481
+ updateNotifications(request: UpdateNotifications): Promise<MoveSubscriptionDto> {
15482
+ let url_ = this.baseUrl + "/move/notifications";
15483
+ url_ = url_.replace(/[?&]$/, "");
15484
+
15485
+ const content_ = JSON.stringify(request);
15486
+
15487
+ let options_: RequestInit = {
15488
+ body: content_,
15489
+ method: "POST",
15490
+ headers: {
15491
+ "Content-Type": "application/json",
15492
+ "Accept": "application/json"
15493
+ }
15494
+ };
15495
+
15496
+ return this.transformOptions(options_).then(transformedOptions_ => {
15497
+ return this.http.fetch(url_, transformedOptions_);
15498
+ }).then((_response: Response) => {
15499
+ return this.processUpdateNotifications(_response);
15500
+ });
15501
+ }
15502
+
15503
+ protected processUpdateNotifications(response: Response): Promise<MoveSubscriptionDto> {
15504
+ const status = response.status;
15505
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
15506
+ if (status === 200) {
15507
+ return response.text().then((_responseText) => {
15508
+ let result200: any = null;
15509
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15510
+ result200 = MoveSubscriptionDto.fromJS(resultData200);
15511
+ return result200;
15512
+ });
15513
+ } else if (status !== 200 && status !== 204) {
15514
+ return response.text().then((_responseText) => {
15515
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15516
+ });
15517
+ }
15518
+ return Promise.resolve<MoveSubscriptionDto>(null as any);
15519
+ }
15520
+ }
15521
+
15435
15522
  export interface IMoveParcelsClient {
15436
15523
 
15437
15524
  searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
@@ -27136,14 +27223,12 @@ export interface IPulseSettingsDto {
27136
27223
  utilizationTypeEnabling: UtilizationTypeEnablingDto;
27137
27224
  }
27138
27225
 
27139
- export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder" | "MachineCalendar" | "FactoryCalendar";
27226
+ export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
27140
27227
 
27141
27228
  export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
27142
27229
  powerOnEnabled!: boolean;
27143
27230
  twentyFourSevenEnabled!: boolean;
27144
27231
  activeOrderEnabled!: boolean;
27145
- machineCalendarEnabled!: boolean;
27146
- factoryCalendarEnabled!: boolean;
27147
27232
 
27148
27233
  constructor(data?: IUtilizationTypeEnablingDto) {
27149
27234
  if (data) {
@@ -27159,8 +27244,6 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
27159
27244
  this.powerOnEnabled = _data["powerOnEnabled"];
27160
27245
  this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
27161
27246
  this.activeOrderEnabled = _data["activeOrderEnabled"];
27162
- this.machineCalendarEnabled = _data["machineCalendarEnabled"];
27163
- this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
27164
27247
  }
27165
27248
  }
27166
27249
 
@@ -27176,8 +27259,6 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
27176
27259
  data["powerOnEnabled"] = this.powerOnEnabled;
27177
27260
  data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
27178
27261
  data["activeOrderEnabled"] = this.activeOrderEnabled;
27179
- data["machineCalendarEnabled"] = this.machineCalendarEnabled;
27180
- data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
27181
27262
  return data;
27182
27263
  }
27183
27264
  }
@@ -27186,8 +27267,6 @@ export interface IUtilizationTypeEnablingDto {
27186
27267
  powerOnEnabled: boolean;
27187
27268
  twentyFourSevenEnabled: boolean;
27188
27269
  activeOrderEnabled: boolean;
27189
- machineCalendarEnabled: boolean;
27190
- factoryCalendarEnabled: boolean;
27191
27270
  }
27192
27271
 
27193
27272
  export class UpdatePulseSettings implements IUpdatePulseSettings {
@@ -27309,7 +27388,6 @@ export interface ICompanyUtilizationDto {
27309
27388
 
27310
27389
  export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
27311
27390
  utilizationPercent?: number | null;
27312
- capacityInMilliseconds?: number;
27313
27391
  uptimeInSeconds?: number | null;
27314
27392
  downtimeInSeconds?: number | null;
27315
27393
  totalTimeInSeconds?: number | null;
@@ -27329,7 +27407,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
27329
27407
  init(_data?: any) {
27330
27408
  if (_data) {
27331
27409
  this.utilizationPercent = _data["utilizationPercent"];
27332
- this.capacityInMilliseconds = _data["capacityInMilliseconds"];
27333
27410
  this.uptimeInSeconds = _data["uptimeInSeconds"];
27334
27411
  this.downtimeInSeconds = _data["downtimeInSeconds"];
27335
27412
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
@@ -27349,7 +27426,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
27349
27426
  toJSON(data?: any) {
27350
27427
  data = typeof data === 'object' ? data : {};
27351
27428
  data["utilizationPercent"] = this.utilizationPercent;
27352
- data["capacityInMilliseconds"] = this.capacityInMilliseconds;
27353
27429
  data["uptimeInSeconds"] = this.uptimeInSeconds;
27354
27430
  data["downtimeInSeconds"] = this.downtimeInSeconds;
27355
27431
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
@@ -27362,7 +27438,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
27362
27438
 
27363
27439
  export interface IUtilizationDetailsV2Dto {
27364
27440
  utilizationPercent?: number | null;
27365
- capacityInMilliseconds?: number;
27366
27441
  uptimeInSeconds?: number | null;
27367
27442
  downtimeInSeconds?: number | null;
27368
27443
  totalTimeInSeconds?: number | null;
@@ -45508,6 +45583,326 @@ export interface IMaterialUpdateDto {
45508
45583
  covered: MaterialCoveredDto;
45509
45584
  }
45510
45585
 
45586
+ export class MoveSubscriptionDto implements IMoveSubscriptionDto {
45587
+ enabledNotifications!: boolean;
45588
+ zones!: MoveSubscriptionZoneDto[];
45589
+ locations!: MoveSubscriptionLocationDto[];
45590
+
45591
+ constructor(data?: IMoveSubscriptionDto) {
45592
+ if (data) {
45593
+ for (var property in data) {
45594
+ if (data.hasOwnProperty(property))
45595
+ (<any>this)[property] = (<any>data)[property];
45596
+ }
45597
+ }
45598
+ if (!data) {
45599
+ this.zones = [];
45600
+ this.locations = [];
45601
+ }
45602
+ }
45603
+
45604
+ init(_data?: any) {
45605
+ if (_data) {
45606
+ this.enabledNotifications = _data["enabledNotifications"];
45607
+ if (Array.isArray(_data["zones"])) {
45608
+ this.zones = [] as any;
45609
+ for (let item of _data["zones"])
45610
+ this.zones!.push(MoveSubscriptionZoneDto.fromJS(item));
45611
+ }
45612
+ if (Array.isArray(_data["locations"])) {
45613
+ this.locations = [] as any;
45614
+ for (let item of _data["locations"])
45615
+ this.locations!.push(MoveSubscriptionLocationDto.fromJS(item));
45616
+ }
45617
+ }
45618
+ }
45619
+
45620
+ static fromJS(data: any): MoveSubscriptionDto {
45621
+ data = typeof data === 'object' ? data : {};
45622
+ let result = new MoveSubscriptionDto();
45623
+ result.init(data);
45624
+ return result;
45625
+ }
45626
+
45627
+ toJSON(data?: any) {
45628
+ data = typeof data === 'object' ? data : {};
45629
+ data["enabledNotifications"] = this.enabledNotifications;
45630
+ if (Array.isArray(this.zones)) {
45631
+ data["zones"] = [];
45632
+ for (let item of this.zones)
45633
+ data["zones"].push(item.toJSON());
45634
+ }
45635
+ if (Array.isArray(this.locations)) {
45636
+ data["locations"] = [];
45637
+ for (let item of this.locations)
45638
+ data["locations"].push(item.toJSON());
45639
+ }
45640
+ return data;
45641
+ }
45642
+ }
45643
+
45644
+ export interface IMoveSubscriptionDto {
45645
+ enabledNotifications: boolean;
45646
+ zones: MoveSubscriptionZoneDto[];
45647
+ locations: MoveSubscriptionLocationDto[];
45648
+ }
45649
+
45650
+ export class MoveSubscriptionZoneDto implements IMoveSubscriptionZoneDto {
45651
+ zoneId!: string;
45652
+ bookingFromLocation?: boolean;
45653
+ bookingToLocation?: boolean;
45654
+ locationChange?: boolean;
45655
+
45656
+ constructor(data?: IMoveSubscriptionZoneDto) {
45657
+ if (data) {
45658
+ for (var property in data) {
45659
+ if (data.hasOwnProperty(property))
45660
+ (<any>this)[property] = (<any>data)[property];
45661
+ }
45662
+ }
45663
+ }
45664
+
45665
+ init(_data?: any) {
45666
+ if (_data) {
45667
+ this.zoneId = _data["zoneId"];
45668
+ this.bookingFromLocation = _data["bookingFromLocation"];
45669
+ this.bookingToLocation = _data["bookingToLocation"];
45670
+ this.locationChange = _data["locationChange"];
45671
+ }
45672
+ }
45673
+
45674
+ static fromJS(data: any): MoveSubscriptionZoneDto {
45675
+ data = typeof data === 'object' ? data : {};
45676
+ let result = new MoveSubscriptionZoneDto();
45677
+ result.init(data);
45678
+ return result;
45679
+ }
45680
+
45681
+ toJSON(data?: any) {
45682
+ data = typeof data === 'object' ? data : {};
45683
+ data["zoneId"] = this.zoneId;
45684
+ data["bookingFromLocation"] = this.bookingFromLocation;
45685
+ data["bookingToLocation"] = this.bookingToLocation;
45686
+ data["locationChange"] = this.locationChange;
45687
+ return data;
45688
+ }
45689
+ }
45690
+
45691
+ export interface IMoveSubscriptionZoneDto {
45692
+ zoneId: string;
45693
+ bookingFromLocation?: boolean;
45694
+ bookingToLocation?: boolean;
45695
+ locationChange?: boolean;
45696
+ }
45697
+
45698
+ export class MoveSubscriptionLocationDto implements IMoveSubscriptionLocationDto {
45699
+ locationId!: string;
45700
+ bookingFromLocation?: boolean;
45701
+ bookingToLocation?: boolean;
45702
+ locationChange?: boolean;
45703
+
45704
+ constructor(data?: IMoveSubscriptionLocationDto) {
45705
+ if (data) {
45706
+ for (var property in data) {
45707
+ if (data.hasOwnProperty(property))
45708
+ (<any>this)[property] = (<any>data)[property];
45709
+ }
45710
+ }
45711
+ }
45712
+
45713
+ init(_data?: any) {
45714
+ if (_data) {
45715
+ this.locationId = _data["locationId"];
45716
+ this.bookingFromLocation = _data["bookingFromLocation"];
45717
+ this.bookingToLocation = _data["bookingToLocation"];
45718
+ this.locationChange = _data["locationChange"];
45719
+ }
45720
+ }
45721
+
45722
+ static fromJS(data: any): MoveSubscriptionLocationDto {
45723
+ data = typeof data === 'object' ? data : {};
45724
+ let result = new MoveSubscriptionLocationDto();
45725
+ result.init(data);
45726
+ return result;
45727
+ }
45728
+
45729
+ toJSON(data?: any) {
45730
+ data = typeof data === 'object' ? data : {};
45731
+ data["locationId"] = this.locationId;
45732
+ data["bookingFromLocation"] = this.bookingFromLocation;
45733
+ data["bookingToLocation"] = this.bookingToLocation;
45734
+ data["locationChange"] = this.locationChange;
45735
+ return data;
45736
+ }
45737
+ }
45738
+
45739
+ export interface IMoveSubscriptionLocationDto {
45740
+ locationId: string;
45741
+ bookingFromLocation?: boolean;
45742
+ bookingToLocation?: boolean;
45743
+ locationChange?: boolean;
45744
+ }
45745
+
45746
+ export class UpdateNotifications implements IUpdateNotifications {
45747
+ enabledNotifications!: boolean;
45748
+ zones!: MoveSubscriptionZoneUpdateDto[];
45749
+ locations!: MoveSubscriptionLocationUpdateDto[];
45750
+
45751
+ constructor(data?: IUpdateNotifications) {
45752
+ if (data) {
45753
+ for (var property in data) {
45754
+ if (data.hasOwnProperty(property))
45755
+ (<any>this)[property] = (<any>data)[property];
45756
+ }
45757
+ }
45758
+ if (!data) {
45759
+ this.zones = [];
45760
+ this.locations = [];
45761
+ }
45762
+ }
45763
+
45764
+ init(_data?: any) {
45765
+ if (_data) {
45766
+ this.enabledNotifications = _data["enabledNotifications"];
45767
+ if (Array.isArray(_data["zones"])) {
45768
+ this.zones = [] as any;
45769
+ for (let item of _data["zones"])
45770
+ this.zones!.push(MoveSubscriptionZoneUpdateDto.fromJS(item));
45771
+ }
45772
+ if (Array.isArray(_data["locations"])) {
45773
+ this.locations = [] as any;
45774
+ for (let item of _data["locations"])
45775
+ this.locations!.push(MoveSubscriptionLocationUpdateDto.fromJS(item));
45776
+ }
45777
+ }
45778
+ }
45779
+
45780
+ static fromJS(data: any): UpdateNotifications {
45781
+ data = typeof data === 'object' ? data : {};
45782
+ let result = new UpdateNotifications();
45783
+ result.init(data);
45784
+ return result;
45785
+ }
45786
+
45787
+ toJSON(data?: any) {
45788
+ data = typeof data === 'object' ? data : {};
45789
+ data["enabledNotifications"] = this.enabledNotifications;
45790
+ if (Array.isArray(this.zones)) {
45791
+ data["zones"] = [];
45792
+ for (let item of this.zones)
45793
+ data["zones"].push(item.toJSON());
45794
+ }
45795
+ if (Array.isArray(this.locations)) {
45796
+ data["locations"] = [];
45797
+ for (let item of this.locations)
45798
+ data["locations"].push(item.toJSON());
45799
+ }
45800
+ return data;
45801
+ }
45802
+ }
45803
+
45804
+ export interface IUpdateNotifications {
45805
+ enabledNotifications: boolean;
45806
+ zones: MoveSubscriptionZoneUpdateDto[];
45807
+ locations: MoveSubscriptionLocationUpdateDto[];
45808
+ }
45809
+
45810
+ export class MoveSubscriptionZoneUpdateDto implements IMoveSubscriptionZoneUpdateDto {
45811
+ zoneId!: string;
45812
+ bookingFromLocation?: boolean;
45813
+ bookingToLocation?: boolean;
45814
+ locationChange?: boolean;
45815
+
45816
+ constructor(data?: IMoveSubscriptionZoneUpdateDto) {
45817
+ if (data) {
45818
+ for (var property in data) {
45819
+ if (data.hasOwnProperty(property))
45820
+ (<any>this)[property] = (<any>data)[property];
45821
+ }
45822
+ }
45823
+ }
45824
+
45825
+ init(_data?: any) {
45826
+ if (_data) {
45827
+ this.zoneId = _data["zoneId"];
45828
+ this.bookingFromLocation = _data["bookingFromLocation"];
45829
+ this.bookingToLocation = _data["bookingToLocation"];
45830
+ this.locationChange = _data["locationChange"];
45831
+ }
45832
+ }
45833
+
45834
+ static fromJS(data: any): MoveSubscriptionZoneUpdateDto {
45835
+ data = typeof data === 'object' ? data : {};
45836
+ let result = new MoveSubscriptionZoneUpdateDto();
45837
+ result.init(data);
45838
+ return result;
45839
+ }
45840
+
45841
+ toJSON(data?: any) {
45842
+ data = typeof data === 'object' ? data : {};
45843
+ data["zoneId"] = this.zoneId;
45844
+ data["bookingFromLocation"] = this.bookingFromLocation;
45845
+ data["bookingToLocation"] = this.bookingToLocation;
45846
+ data["locationChange"] = this.locationChange;
45847
+ return data;
45848
+ }
45849
+ }
45850
+
45851
+ export interface IMoveSubscriptionZoneUpdateDto {
45852
+ zoneId: string;
45853
+ bookingFromLocation?: boolean;
45854
+ bookingToLocation?: boolean;
45855
+ locationChange?: boolean;
45856
+ }
45857
+
45858
+ export class MoveSubscriptionLocationUpdateDto implements IMoveSubscriptionLocationUpdateDto {
45859
+ locationId!: string;
45860
+ bookingFromLocation?: boolean;
45861
+ bookingToLocation?: boolean;
45862
+ locationChange?: boolean;
45863
+
45864
+ constructor(data?: IMoveSubscriptionLocationUpdateDto) {
45865
+ if (data) {
45866
+ for (var property in data) {
45867
+ if (data.hasOwnProperty(property))
45868
+ (<any>this)[property] = (<any>data)[property];
45869
+ }
45870
+ }
45871
+ }
45872
+
45873
+ init(_data?: any) {
45874
+ if (_data) {
45875
+ this.locationId = _data["locationId"];
45876
+ this.bookingFromLocation = _data["bookingFromLocation"];
45877
+ this.bookingToLocation = _data["bookingToLocation"];
45878
+ this.locationChange = _data["locationChange"];
45879
+ }
45880
+ }
45881
+
45882
+ static fromJS(data: any): MoveSubscriptionLocationUpdateDto {
45883
+ data = typeof data === 'object' ? data : {};
45884
+ let result = new MoveSubscriptionLocationUpdateDto();
45885
+ result.init(data);
45886
+ return result;
45887
+ }
45888
+
45889
+ toJSON(data?: any) {
45890
+ data = typeof data === 'object' ? data : {};
45891
+ data["locationId"] = this.locationId;
45892
+ data["bookingFromLocation"] = this.bookingFromLocation;
45893
+ data["bookingToLocation"] = this.bookingToLocation;
45894
+ data["locationChange"] = this.locationChange;
45895
+ return data;
45896
+ }
45897
+ }
45898
+
45899
+ export interface IMoveSubscriptionLocationUpdateDto {
45900
+ locationId: string;
45901
+ bookingFromLocation?: boolean;
45902
+ bookingToLocation?: boolean;
45903
+ locationChange?: boolean;
45904
+ }
45905
+
45511
45906
  export class SearchParcelDto implements ISearchParcelDto {
45512
45907
  parcelId!: string;
45513
45908
  parcelKind!: ParcelKindDto;