@ignos/api-client 20261110.362.1-alpha → 20261111.364.1-alpha

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.
@@ -2820,6 +2820,10 @@ export interface IUserAppSettingsClient {
2820
2820
  getEngageUserSettings(): Promise<EngageAppSettings>;
2821
2821
 
2822
2822
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
2823
+
2824
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
2825
+
2826
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
2823
2827
  }
2824
2828
 
2825
2829
  export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
@@ -3044,6 +3048,77 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
3044
3048
  }
3045
3049
  return Promise.resolve<void>(null as any);
3046
3050
  }
3051
+
3052
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
3053
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3054
+ url_ = url_.replace(/[?&]$/, "");
3055
+
3056
+ let options_: RequestInit = {
3057
+ method: "GET",
3058
+ headers: {
3059
+ "Accept": "application/json"
3060
+ }
3061
+ };
3062
+
3063
+ return this.transformOptions(options_).then(transformedOptions_ => {
3064
+ return this.http.fetch(url_, transformedOptions_);
3065
+ }).then((_response: Response) => {
3066
+ return this.processGetFavoriteRoutesUserSettings(_response);
3067
+ });
3068
+ }
3069
+
3070
+ protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
3071
+ const status = response.status;
3072
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3073
+ if (status === 200) {
3074
+ return response.text().then((_responseText) => {
3075
+ let result200: any = null;
3076
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
3077
+ return result200;
3078
+ });
3079
+ } else if (status !== 200 && status !== 204) {
3080
+ return response.text().then((_responseText) => {
3081
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3082
+ });
3083
+ }
3084
+ return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
3085
+ }
3086
+
3087
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
3088
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3089
+ url_ = url_.replace(/[?&]$/, "");
3090
+
3091
+ const content_ = JSON.stringify(settings);
3092
+
3093
+ let options_: RequestInit = {
3094
+ body: content_,
3095
+ method: "PUT",
3096
+ headers: {
3097
+ "Content-Type": "application/json",
3098
+ }
3099
+ };
3100
+
3101
+ return this.transformOptions(options_).then(transformedOptions_ => {
3102
+ return this.http.fetch(url_, transformedOptions_);
3103
+ }).then((_response: Response) => {
3104
+ return this.processSetFavoriteRoutesUserSettings(_response);
3105
+ });
3106
+ }
3107
+
3108
+ protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
3109
+ const status = response.status;
3110
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3111
+ if (status === 204) {
3112
+ return response.text().then((_responseText) => {
3113
+ return;
3114
+ });
3115
+ } else if (status !== 200 && status !== 204) {
3116
+ return response.text().then((_responseText) => {
3117
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3118
+ });
3119
+ }
3120
+ return Promise.resolve<void>(null as any);
3121
+ }
3047
3122
  }
3048
3123
 
3049
3124
  export interface IUploadClient {
@@ -3546,7 +3621,7 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
3546
3621
 
3547
3622
  export interface IMachineAlarmsClient {
3548
3623
 
3549
- listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
3624
+ listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
3550
3625
 
3551
3626
  listGroupedMachineIncidents(request: ListGroupedMachineIncidentsRequest): Promise<PagedResultOfGroupedMachineIncidentDto>;
3552
3627
 
@@ -3554,9 +3629,9 @@ export interface IMachineAlarmsClient {
3554
3629
 
3555
3630
  listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
3556
3631
 
3557
- countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto>;
3632
+ countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
3558
3633
 
3559
- getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto>;
3634
+ getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
3560
3635
  }
3561
3636
 
3562
3637
  export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
@@ -3569,11 +3644,13 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3569
3644
  this.baseUrl = baseUrl ?? "";
3570
3645
  }
3571
3646
 
3572
- listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, assetExternalId: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
3647
+ listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
3573
3648
  let url_ = this.baseUrl + "/machinealarms?";
3574
3649
  if (alarmType !== undefined && alarmType !== null)
3575
3650
  url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
3576
- if (assetId !== undefined && assetId !== null)
3651
+ if (assetId === null)
3652
+ throw new globalThis.Error("The parameter 'assetId' cannot be null.");
3653
+ else if (assetId !== undefined)
3577
3654
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
3578
3655
  if (startTime === null)
3579
3656
  throw new globalThis.Error("The parameter 'startTime' cannot be null.");
@@ -3601,8 +3678,6 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3601
3678
  url_ += "orderBy=" + encodeURIComponent("" + orderBy) + "&";
3602
3679
  if (sortDirection !== undefined && sortDirection !== null)
3603
3680
  url_ += "sortDirection=" + encodeURIComponent("" + sortDirection) + "&";
3604
- if (assetExternalId !== undefined && assetExternalId !== null)
3605
- url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
3606
3681
  url_ = url_.replace(/[?&]$/, "");
3607
3682
 
3608
3683
  let options_: RequestInit = {
@@ -3757,11 +3832,13 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3757
3832
  return Promise.resolve<MachineAlarmSeverityOccurenceDto[]>(null as any);
3758
3833
  }
3759
3834
 
3760
- countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | null | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, assetExternalId: string | null | undefined): Promise<MachineAlarmCountDto> {
3835
+ countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto> {
3761
3836
  let url_ = this.baseUrl + "/machinealarms/alarmcount?";
3762
3837
  if (alarmType !== undefined && alarmType !== null)
3763
3838
  url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
3764
- if (assetId !== undefined && assetId !== null)
3839
+ if (assetId === null)
3840
+ throw new globalThis.Error("The parameter 'assetId' cannot be null.");
3841
+ else if (assetId !== undefined)
3765
3842
  url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
3766
3843
  if (startTime === null)
3767
3844
  throw new globalThis.Error("The parameter 'startTime' cannot be null.");
@@ -3779,8 +3856,6 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3779
3856
  url_ += "name=" + encodeURIComponent("" + name) + "&";
3780
3857
  if (sequence !== undefined && sequence !== null)
3781
3858
  url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
3782
- if (assetExternalId !== undefined && assetExternalId !== null)
3783
- url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
3784
3859
  url_ = url_.replace(/[?&]$/, "");
3785
3860
 
3786
3861
  let options_: RequestInit = {
@@ -3814,7 +3889,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
3814
3889
  return Promise.resolve<MachineAlarmCountDto>(null as any);
3815
3890
  }
3816
3891
 
3817
- getMachineAlarmDetails(id: string): Promise<MachineAlarmDetailsDto> {
3892
+ getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto> {
3818
3893
  let url_ = this.baseUrl + "/machinealarms/alarms/{id}";
3819
3894
  if (id === undefined || id === null)
3820
3895
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -4226,15 +4301,15 @@ export interface IDowntimeReasonsResourceClient {
4226
4301
 
4227
4302
  createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
4228
4303
 
4229
- updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
4304
+ updateDowntimePeriodReason(id: number, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
4230
4305
 
4231
- deleteDowntimeReason(id: string): Promise<void>;
4306
+ deleteDowntimeReason(id: number): Promise<void>;
4232
4307
 
4233
- listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]>;
4308
+ listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonResourceDto[]>;
4234
4309
 
4235
- listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]>;
4310
+ listDowntimeReasonsHierarchyForMachine(id: number): Promise<ParentTopicResourceDto[]>;
4236
4311
 
4237
- listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
4312
+ listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
4238
4313
 
4239
4314
  listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
4240
4315
 
@@ -4294,7 +4369,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4294
4369
  return Promise.resolve<DowntimePeriodReasonDto>(null as any);
4295
4370
  }
4296
4371
 
4297
- updateDowntimePeriodReason(id: string, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
4372
+ updateDowntimePeriodReason(id: number, request: IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
4298
4373
  let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
4299
4374
  if (id === undefined || id === null)
4300
4375
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -4336,7 +4411,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4336
4411
  return Promise.resolve<DowntimePeriodReasonDto>(null as any);
4337
4412
  }
4338
4413
 
4339
- deleteDowntimeReason(id: string): Promise<void> {
4414
+ deleteDowntimeReason(id: number): Promise<void> {
4340
4415
  let url_ = this.baseUrl + "/downtimereasonsresource/{id}";
4341
4416
  if (id === undefined || id === null)
4342
4417
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -4371,7 +4446,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4371
4446
  return Promise.resolve<void>(null as any);
4372
4447
  }
4373
4448
 
4374
- listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonResourceDto[]> {
4449
+ listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonResourceDto[]> {
4375
4450
  let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasons";
4376
4451
  if (id === undefined || id === null)
4377
4452
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -4409,7 +4484,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4409
4484
  return Promise.resolve<DowntimeReasonResourceDto[]>(null as any);
4410
4485
  }
4411
4486
 
4412
- listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicResourceDto[]> {
4487
+ listDowntimeReasonsHierarchyForMachine(id: number): Promise<ParentTopicResourceDto[]> {
4413
4488
  let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/downtimereasonshierarchy";
4414
4489
  if (id === undefined || id === null)
4415
4490
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -4447,7 +4522,7 @@ export class DowntimeReasonsResourceClient extends AuthorizedApiBase implements
4447
4522
  return Promise.resolve<ParentTopicResourceDto[]>(null as any);
4448
4523
  }
4449
4524
 
4450
- listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
4525
+ listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]> {
4451
4526
  let url_ = this.baseUrl + "/downtimereasonsresource/machine/{id}/active";
4452
4527
  if (id === undefined || id === null)
4453
4528
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -6561,6 +6636,14 @@ export interface IPulseJournalClient {
6561
6636
 
6562
6637
  reorderNowLine(resourceId: string, lineId: string, request: ReorderPulseJournalLineRequest): Promise<PulseJournalNowLineMutationResultDto>;
6563
6638
 
6639
+ setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto>;
6640
+
6641
+ setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto>;
6642
+
6643
+ addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto>;
6644
+
6645
+ removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto>;
6646
+
6564
6647
  createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
6565
6648
 
6566
6649
  editAlwaysLine(resourceId: string, lineId: string, request: EditPulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto>;
@@ -6885,6 +6968,187 @@ export class PulseJournalClient extends AuthorizedApiBase implements IPulseJourn
6885
6968
  return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
6886
6969
  }
6887
6970
 
6971
+ setNowLinePinned(resourceId: string, lineId: string, request: SetPulseJournalLinePinnedRequest): Promise<PulseJournalNowLineMutationResultDto> {
6972
+ let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/pin";
6973
+ if (resourceId === undefined || resourceId === null)
6974
+ throw new globalThis.Error("The parameter 'resourceId' must be defined.");
6975
+ url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
6976
+ if (lineId === undefined || lineId === null)
6977
+ throw new globalThis.Error("The parameter 'lineId' must be defined.");
6978
+ url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
6979
+ url_ = url_.replace(/[?&]$/, "");
6980
+
6981
+ const content_ = JSON.stringify(request);
6982
+
6983
+ let options_: RequestInit = {
6984
+ body: content_,
6985
+ method: "POST",
6986
+ headers: {
6987
+ "Content-Type": "application/json",
6988
+ "Accept": "application/json"
6989
+ }
6990
+ };
6991
+
6992
+ return this.transformOptions(options_).then(transformedOptions_ => {
6993
+ return this.http.fetch(url_, transformedOptions_);
6994
+ }).then((_response: Response) => {
6995
+ return this.processSetNowLinePinned(_response);
6996
+ });
6997
+ }
6998
+
6999
+ protected processSetNowLinePinned(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
7000
+ const status = response.status;
7001
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
7002
+ if (status === 200) {
7003
+ return response.text().then((_responseText) => {
7004
+ let result200: any = null;
7005
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
7006
+ return result200;
7007
+ });
7008
+ } else if (status !== 200 && status !== 204) {
7009
+ return response.text().then((_responseText) => {
7010
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7011
+ });
7012
+ }
7013
+ return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
7014
+ }
7015
+
7016
+ setNowLineImportant(resourceId: string, lineId: string, request: SetPulseJournalLineImportantRequest): Promise<PulseJournalNowLineMutationResultDto> {
7017
+ let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/important";
7018
+ if (resourceId === undefined || resourceId === null)
7019
+ throw new globalThis.Error("The parameter 'resourceId' must be defined.");
7020
+ url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
7021
+ if (lineId === undefined || lineId === null)
7022
+ throw new globalThis.Error("The parameter 'lineId' must be defined.");
7023
+ url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
7024
+ url_ = url_.replace(/[?&]$/, "");
7025
+
7026
+ const content_ = JSON.stringify(request);
7027
+
7028
+ let options_: RequestInit = {
7029
+ body: content_,
7030
+ method: "POST",
7031
+ headers: {
7032
+ "Content-Type": "application/json",
7033
+ "Accept": "application/json"
7034
+ }
7035
+ };
7036
+
7037
+ return this.transformOptions(options_).then(transformedOptions_ => {
7038
+ return this.http.fetch(url_, transformedOptions_);
7039
+ }).then((_response: Response) => {
7040
+ return this.processSetNowLineImportant(_response);
7041
+ });
7042
+ }
7043
+
7044
+ protected processSetNowLineImportant(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
7045
+ const status = response.status;
7046
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
7047
+ if (status === 200) {
7048
+ return response.text().then((_responseText) => {
7049
+ let result200: any = null;
7050
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
7051
+ return result200;
7052
+ });
7053
+ } else if (status !== 200 && status !== 204) {
7054
+ return response.text().then((_responseText) => {
7055
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7056
+ });
7057
+ }
7058
+ return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
7059
+ }
7060
+
7061
+ addNowAttachment(resourceId: string, lineId: string, request: AddPulseJournalAttachmentRequest): Promise<PulseJournalNowLineMutationResultDto> {
7062
+ let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments";
7063
+ if (resourceId === undefined || resourceId === null)
7064
+ throw new globalThis.Error("The parameter 'resourceId' must be defined.");
7065
+ url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
7066
+ if (lineId === undefined || lineId === null)
7067
+ throw new globalThis.Error("The parameter 'lineId' must be defined.");
7068
+ url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
7069
+ url_ = url_.replace(/[?&]$/, "");
7070
+
7071
+ const content_ = JSON.stringify(request);
7072
+
7073
+ let options_: RequestInit = {
7074
+ body: content_,
7075
+ method: "POST",
7076
+ headers: {
7077
+ "Content-Type": "application/json",
7078
+ "Accept": "application/json"
7079
+ }
7080
+ };
7081
+
7082
+ return this.transformOptions(options_).then(transformedOptions_ => {
7083
+ return this.http.fetch(url_, transformedOptions_);
7084
+ }).then((_response: Response) => {
7085
+ return this.processAddNowAttachment(_response);
7086
+ });
7087
+ }
7088
+
7089
+ protected processAddNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
7090
+ const status = response.status;
7091
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
7092
+ if (status === 200) {
7093
+ return response.text().then((_responseText) => {
7094
+ let result200: any = null;
7095
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
7096
+ return result200;
7097
+ });
7098
+ } else if (status !== 200 && status !== 204) {
7099
+ return response.text().then((_responseText) => {
7100
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7101
+ });
7102
+ }
7103
+ return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
7104
+ }
7105
+
7106
+ removeNowAttachment(resourceId: string, lineId: string, attachmentId: string, eTag: string | null | undefined): Promise<PulseJournalNowLineMutationResultDto> {
7107
+ let url_ = this.baseUrl + "/pulsejournal/{resourceId}/now/lines/{lineId}/attachments/{attachmentId}?";
7108
+ if (resourceId === undefined || resourceId === null)
7109
+ throw new globalThis.Error("The parameter 'resourceId' must be defined.");
7110
+ url_ = url_.replace("{resourceId}", encodeURIComponent("" + resourceId));
7111
+ if (lineId === undefined || lineId === null)
7112
+ throw new globalThis.Error("The parameter 'lineId' must be defined.");
7113
+ url_ = url_.replace("{lineId}", encodeURIComponent("" + lineId));
7114
+ if (attachmentId === undefined || attachmentId === null)
7115
+ throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
7116
+ url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
7117
+ if (eTag !== undefined && eTag !== null)
7118
+ url_ += "eTag=" + encodeURIComponent("" + eTag) + "&";
7119
+ url_ = url_.replace(/[?&]$/, "");
7120
+
7121
+ let options_: RequestInit = {
7122
+ method: "DELETE",
7123
+ headers: {
7124
+ "Accept": "application/json"
7125
+ }
7126
+ };
7127
+
7128
+ return this.transformOptions(options_).then(transformedOptions_ => {
7129
+ return this.http.fetch(url_, transformedOptions_);
7130
+ }).then((_response: Response) => {
7131
+ return this.processRemoveNowAttachment(_response);
7132
+ });
7133
+ }
7134
+
7135
+ protected processRemoveNowAttachment(response: Response): Promise<PulseJournalNowLineMutationResultDto> {
7136
+ const status = response.status;
7137
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
7138
+ if (status === 200) {
7139
+ return response.text().then((_responseText) => {
7140
+ let result200: any = null;
7141
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PulseJournalNowLineMutationResultDto;
7142
+ return result200;
7143
+ });
7144
+ } else if (status !== 200 && status !== 204) {
7145
+ return response.text().then((_responseText) => {
7146
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7147
+ });
7148
+ }
7149
+ return Promise.resolve<PulseJournalNowLineMutationResultDto>(null as any);
7150
+ }
7151
+
6888
7152
  createAlwaysLine(resourceId: string, request: CreatePulseJournalLineRequest): Promise<PulseJournalAlwaysLineMutationResultDto> {
6889
7153
  let url_ = this.baseUrl + "/pulsejournal/{resourceId}/always/lines";
6890
7154
  if (resourceId === undefined || resourceId === null)
@@ -11721,15 +11985,15 @@ export interface IDowntimeReasonsClient {
11721
11985
 
11722
11986
  createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
11723
11987
 
11724
- updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
11988
+ updateDowntimePeriodReason(id: number, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
11725
11989
 
11726
- deleteDowntimeReason(id: string): Promise<void>;
11990
+ deleteDowntimeReason(id: number): Promise<void>;
11727
11991
 
11728
- listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]>;
11992
+ listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
11729
11993
 
11730
- listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]>;
11994
+ listDowntimeReasonsHierarchyForMachine(id: number): Promise<ParentTopicDto[]>;
11731
11995
 
11732
- listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]>;
11996
+ listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
11733
11997
 
11734
11998
  listTopDowntimeReasons(start: Date | null | undefined, end: Date | null | undefined): Promise<TopDowntimeReasonsDto>;
11735
11999
 
@@ -11789,7 +12053,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
11789
12053
  return Promise.resolve<DowntimePeriodReasonDto>(null as any);
11790
12054
  }
11791
12055
 
11792
- updateDowntimePeriodReason(id: string, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
12056
+ updateDowntimePeriodReason(id: number, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto> {
11793
12057
  let url_ = this.baseUrl + "/downtimereasons/{id}";
11794
12058
  if (id === undefined || id === null)
11795
12059
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -11831,7 +12095,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
11831
12095
  return Promise.resolve<DowntimePeriodReasonDto>(null as any);
11832
12096
  }
11833
12097
 
11834
- deleteDowntimeReason(id: string): Promise<void> {
12098
+ deleteDowntimeReason(id: number): Promise<void> {
11835
12099
  let url_ = this.baseUrl + "/downtimereasons/{id}";
11836
12100
  if (id === undefined || id === null)
11837
12101
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -11866,7 +12130,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
11866
12130
  return Promise.resolve<void>(null as any);
11867
12131
  }
11868
12132
 
11869
- listDowntimeReasonsForMachine(id: string): Promise<DowntimeReasonDto[]> {
12133
+ listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]> {
11870
12134
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasons";
11871
12135
  if (id === undefined || id === null)
11872
12136
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -11904,7 +12168,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
11904
12168
  return Promise.resolve<DowntimeReasonDto[]>(null as any);
11905
12169
  }
11906
12170
 
11907
- listDowntimeReasonsHierarchyForMachine(id: string): Promise<ParentTopicDto[]> {
12171
+ listDowntimeReasonsHierarchyForMachine(id: number): Promise<ParentTopicDto[]> {
11908
12172
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/downtimereasonshierarchy";
11909
12173
  if (id === undefined || id === null)
11910
12174
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -11942,7 +12206,7 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
11942
12206
  return Promise.resolve<ParentTopicDto[]>(null as any);
11943
12207
  }
11944
12208
 
11945
- listActiveDowntimeReasonsForMachine(id: string): Promise<DowntimePeriodReasonDto[]> {
12209
+ listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]> {
11946
12210
  let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
11947
12211
  if (id === undefined || id === null)
11948
12212
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -12589,7 +12853,7 @@ export interface IMachinesClient {
12589
12853
  * @param endTime (optional)
12590
12854
  * @deprecated
12591
12855
  */
12592
- getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
12856
+ getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
12593
12857
 
12594
12858
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
12595
12859
 
@@ -13090,7 +13354,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
13090
13354
  * @param endTime (optional)
13091
13355
  * @deprecated
13092
13356
  */
13093
- getWorkOrderTimeline(id: string, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
13357
+ getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
13094
13358
  let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
13095
13359
  if (id === undefined || id === null)
13096
13360
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -34101,7 +34365,6 @@ export interface MachineStateDatapoint {
34101
34365
 
34102
34366
  export interface DowntimePeriodReasonDto {
34103
34367
  id: number;
34104
- externalId: string;
34105
34368
  reason: string;
34106
34369
  parentReasonId?: string | null;
34107
34370
  categoryId?: string | null;
@@ -34111,7 +34374,6 @@ export interface DowntimePeriodReasonDto {
34111
34374
  startTime: Date;
34112
34375
  endTime?: Date | null;
34113
34376
  assetId: number;
34114
- assetExternalId?: string | null;
34115
34377
  comment: string | null;
34116
34378
  companyId: string | null;
34117
34379
  reasonId: string;
@@ -34310,6 +34572,15 @@ export interface EngageAppSettings {
34310
34572
 
34311
34573
  export type ScheduleViewMode = "Flat" | "Grouped";
34312
34574
 
34575
+ export interface FavoriteRoutesAppSettings {
34576
+ favorites?: FavoriteRoute[];
34577
+ }
34578
+
34579
+ export interface FavoriteRoute {
34580
+ appKey: string;
34581
+ route: string;
34582
+ }
34583
+
34313
34584
  export interface UploadInfoDto {
34314
34585
  baseUrl?: string | null;
34315
34586
  key?: string | null;
@@ -34318,7 +34589,6 @@ export interface UploadInfoDto {
34318
34589
 
34319
34590
  export interface UploadInfoCdfDto {
34320
34591
  id: number;
34321
- externalId: string;
34322
34592
  url: string;
34323
34593
  }
34324
34594
 
@@ -34468,7 +34738,6 @@ export interface PagedResultOfMachineAlarmDto {
34468
34738
  export interface MachineAlarmDto {
34469
34739
  alarmType: MachineAlarmType;
34470
34740
  id: number;
34471
- externalId: string;
34472
34741
  type: string;
34473
34742
  subType: string;
34474
34743
  description?: string | null;
@@ -34492,14 +34761,13 @@ export interface GroupedMachineIncidentDto extends MachineAlarmDto {
34492
34761
  }
34493
34762
 
34494
34763
  export interface ListGroupedMachineIncidentsRequest {
34495
- assetId?: number | null;
34764
+ assetId: number;
34496
34765
  startTime: Date;
34497
34766
  endTime?: Date | null;
34498
34767
  nativeCode?: string | null;
34499
34768
  alarmType?: MachineAlarmType | null;
34500
34769
  limit?: number | null;
34501
34770
  continuationToken?: string | null;
34502
- assetExternalId?: string | null;
34503
34771
  }
34504
34772
 
34505
34773
  export interface MachineAlarmSummaryDto {
@@ -34527,7 +34795,6 @@ export interface MachineAlarmCountDto {
34527
34795
 
34528
34796
  export interface MachineAlarmDetailsDto {
34529
34797
  id: number;
34530
- externalId: string;
34531
34798
  startTime: Date;
34532
34799
  endTime?: Date | null;
34533
34800
  nativeCode?: string | null;
@@ -34622,8 +34889,7 @@ export interface IgnosPortalControllersResourcesApiModelsUpdateParentTopicReques
34622
34889
 
34623
34890
  export interface CreateDowntimePeriodReason {
34624
34891
  reasonId: string;
34625
- assetId?: number | null;
34626
- assetExternalId?: string | null;
34892
+ assetId: number;
34627
34893
  startTime: Date;
34628
34894
  endTime?: Date | null;
34629
34895
  autoCompleteDowntime?: boolean | null;
@@ -34636,7 +34902,6 @@ export interface CreateDowntimePeriodReason {
34636
34902
  export interface IgnosPortalControllersResourcesApiModelsUpdateDowntimePeriodReasonRequest {
34637
34903
  reasonId?: string | null;
34638
34904
  assetId?: number | null;
34639
- assetExternalId?: string | null;
34640
34905
  startTime?: Date | null;
34641
34906
  endTime?: Date | null;
34642
34907
  autoCompleteDowntime?: boolean | null;
@@ -35082,7 +35347,6 @@ export interface ResourceGroupUtilizationDto {
35082
35347
 
35083
35348
  export interface ResourceUtilizationV2Dto {
35084
35349
  id?: number;
35085
- externalId: string;
35086
35350
  name: string;
35087
35351
  description?: string | null;
35088
35352
  utilization: UtilizationDto;
@@ -35210,7 +35474,7 @@ export interface PulseJournalBoardsDto {
35210
35474
  }
35211
35475
 
35212
35476
  export interface PulseJournalNowBoardDto {
35213
- lines: PulseJournalLineDto[];
35477
+ lines: PulseJournalNowLineDto[];
35214
35478
  eTag?: string | null;
35215
35479
  }
35216
35480
 
@@ -35224,14 +35488,10 @@ export interface PulseJournalLineDto {
35224
35488
  updatedBy?: string | null;
35225
35489
  }
35226
35490
 
35227
- export interface PulseJournalAlwaysBoardDto {
35228
- lines: PulseJournalAlwaysLineDto[];
35229
- eTag?: string | null;
35230
- }
35231
-
35232
- export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
35491
+ export interface PulseJournalNowLineDto extends PulseJournalLineDto {
35492
+ isPinned: boolean;
35493
+ isImportant: boolean;
35233
35494
  attachments: PulseJournalAttachmentDto[];
35234
- links: PulseJournalLinkDto[];
35235
35495
  }
35236
35496
 
35237
35497
  export interface PulseJournalAttachmentDto {
@@ -35242,6 +35502,16 @@ export interface PulseJournalAttachmentDto {
35242
35502
  createdBy?: string | null;
35243
35503
  }
35244
35504
 
35505
+ export interface PulseJournalAlwaysBoardDto {
35506
+ lines: PulseJournalAlwaysLineDto[];
35507
+ eTag?: string | null;
35508
+ }
35509
+
35510
+ export interface PulseJournalAlwaysLineDto extends PulseJournalLineDto {
35511
+ attachments: PulseJournalAttachmentDto[];
35512
+ links: PulseJournalLinkDto[];
35513
+ }
35514
+
35245
35515
  export interface PulseJournalLinkDto {
35246
35516
  id: string;
35247
35517
  url: string;
@@ -35268,14 +35538,14 @@ export interface PulseJournalEventDto {
35268
35538
 
35269
35539
  export type PulseJournalBoardTypeDto = "Now" | "Always" | "Unknown";
35270
35540
 
35271
- export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "Unknown";
35541
+ export type PulseJournalEventTypeDto = "LineAdded" | "LineEdited" | "LineMoved" | "LineRemoved" | "FixedInfoAdded" | "FixedInfoEdited" | "FixedInfoRemoved" | "AttachmentAdded" | "AttachmentRemoved" | "LinkAdded" | "LinkRemoved" | "LinePinned" | "LineUnpinned" | "LineMarkedImportant" | "LineUnmarkedImportant" | "Unknown";
35272
35542
 
35273
35543
  export interface UndoPulseJournalActionRequest {
35274
35544
  eventId: string;
35275
35545
  }
35276
35546
 
35277
35547
  export interface PulseJournalNowLineMutationResultDto {
35278
- line?: PulseJournalLineDto | null;
35548
+ line?: PulseJournalNowLineDto | null;
35279
35549
  boardETag: string;
35280
35550
  eventId?: string | null;
35281
35551
  }
@@ -35296,10 +35566,14 @@ export interface ReorderPulseJournalLineRequest {
35296
35566
  eTag?: string | null;
35297
35567
  }
35298
35568
 
35299
- export interface PulseJournalAlwaysLineMutationResultDto {
35300
- line?: PulseJournalAlwaysLineDto | null;
35301
- boardETag: string;
35302
- eventId?: string | null;
35569
+ export interface SetPulseJournalLinePinnedRequest {
35570
+ isPinned: boolean;
35571
+ eTag?: string | null;
35572
+ }
35573
+
35574
+ export interface SetPulseJournalLineImportantRequest {
35575
+ isImportant: boolean;
35576
+ eTag?: string | null;
35303
35577
  }
35304
35578
 
35305
35579
  export interface AddPulseJournalAttachmentRequest {
@@ -35308,6 +35582,12 @@ export interface AddPulseJournalAttachmentRequest {
35308
35582
  eTag?: string | null;
35309
35583
  }
35310
35584
 
35585
+ export interface PulseJournalAlwaysLineMutationResultDto {
35586
+ line?: PulseJournalAlwaysLineDto | null;
35587
+ boardETag: string;
35588
+ eventId?: string | null;
35589
+ }
35590
+
35311
35591
  export interface AddPulseJournalLinkRequest {
35312
35592
  url: string;
35313
35593
  eTag?: string | null;
@@ -35381,7 +35661,6 @@ export interface MachineGroupUtilizationV2Dto {
35381
35661
 
35382
35662
  export interface MachineUtilizationV3Dto {
35383
35663
  id?: number;
35384
- externalId: string;
35385
35664
  name: string;
35386
35665
  description?: string | null;
35387
35666
  utilization: UtilizationDetailsV2Dto;
@@ -36397,7 +36676,6 @@ export interface UpdateParentTopicRequest {
36397
36676
  export interface UpdateDowntimePeriodReasonRequest {
36398
36677
  reasonId?: string | null;
36399
36678
  assetId?: number | null;
36400
- assetExternalId?: string | null;
36401
36679
  startTime?: Date | null;
36402
36680
  endTime?: Date | null;
36403
36681
  autoCompleteDowntime?: boolean | null;
@@ -36569,7 +36847,6 @@ export interface MachineGroupUtilizationDto {
36569
36847
 
36570
36848
  export interface MachineUtilizationV2Dto {
36571
36849
  id?: number;
36572
- externalId: string;
36573
36850
  name: string;
36574
36851
  description?: string | null;
36575
36852
  utilization: UtilizationDto;
@@ -40204,8 +40481,7 @@ export interface ProcessMaterialCertificate {
40204
40481
  }
40205
40482
 
40206
40483
  export interface UploadFileCdfDto {
40207
- id?: number | null;
40208
- externalId?: string | null;
40484
+ id: number;
40209
40485
  }
40210
40486
 
40211
40487
  export interface ImaMaterialCheckReportDto {