@ignos/api-client 20250901.0.12482 → 20250910.0.12568

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.
@@ -6065,6 +6065,14 @@ export interface IDowntimeReasonsAdminClient {
6065
6065
  deleteDowntimeReason(id: string): Promise<void>;
6066
6066
 
6067
6067
  listMachineTypes(): Promise<MachineTypeDto[]>;
6068
+
6069
+ listParentTopics(): Promise<ParentTopicDto[]>;
6070
+
6071
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
6072
+
6073
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
6074
+
6075
+ deleteParentTopic(id: string): Promise<void>;
6068
6076
  }
6069
6077
 
6070
6078
  export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
@@ -6275,6 +6283,164 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDo
6275
6283
  }
6276
6284
  return Promise.resolve<MachineTypeDto[]>(null as any);
6277
6285
  }
6286
+
6287
+ listParentTopics(): Promise<ParentTopicDto[]> {
6288
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6289
+ url_ = url_.replace(/[?&]$/, "");
6290
+
6291
+ let options_: RequestInit = {
6292
+ method: "GET",
6293
+ headers: {
6294
+ "Accept": "application/json"
6295
+ }
6296
+ };
6297
+
6298
+ return this.transformOptions(options_).then(transformedOptions_ => {
6299
+ return this.http.fetch(url_, transformedOptions_);
6300
+ }).then((_response: Response) => {
6301
+ return this.processListParentTopics(_response);
6302
+ });
6303
+ }
6304
+
6305
+ protected processListParentTopics(response: Response): Promise<ParentTopicDto[]> {
6306
+ const status = response.status;
6307
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6308
+ if (status === 200) {
6309
+ return response.text().then((_responseText) => {
6310
+ let result200: any = null;
6311
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6312
+ if (Array.isArray(resultData200)) {
6313
+ result200 = [] as any;
6314
+ for (let item of resultData200)
6315
+ result200!.push(ParentTopicDto.fromJS(item));
6316
+ }
6317
+ return result200;
6318
+ });
6319
+ } else if (status !== 200 && status !== 204) {
6320
+ return response.text().then((_responseText) => {
6321
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6322
+ });
6323
+ }
6324
+ return Promise.resolve<ParentTopicDto[]>(null as any);
6325
+ }
6326
+
6327
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto> {
6328
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6329
+ url_ = url_.replace(/[?&]$/, "");
6330
+
6331
+ const content_ = JSON.stringify(request);
6332
+
6333
+ let options_: RequestInit = {
6334
+ body: content_,
6335
+ method: "POST",
6336
+ headers: {
6337
+ "Content-Type": "application/json",
6338
+ "Accept": "application/json"
6339
+ }
6340
+ };
6341
+
6342
+ return this.transformOptions(options_).then(transformedOptions_ => {
6343
+ return this.http.fetch(url_, transformedOptions_);
6344
+ }).then((_response: Response) => {
6345
+ return this.processCreateParentTopic(_response);
6346
+ });
6347
+ }
6348
+
6349
+ protected processCreateParentTopic(response: Response): Promise<ParentTopicDto> {
6350
+ const status = response.status;
6351
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6352
+ if (status === 200) {
6353
+ return response.text().then((_responseText) => {
6354
+ let result200: any = null;
6355
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6356
+ result200 = ParentTopicDto.fromJS(resultData200);
6357
+ return result200;
6358
+ });
6359
+ } else if (status !== 200 && status !== 204) {
6360
+ return response.text().then((_responseText) => {
6361
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6362
+ });
6363
+ }
6364
+ return Promise.resolve<ParentTopicDto>(null as any);
6365
+ }
6366
+
6367
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto> {
6368
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6369
+ if (id === undefined || id === null)
6370
+ throw new Error("The parameter 'id' must be defined.");
6371
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6372
+ url_ = url_.replace(/[?&]$/, "");
6373
+
6374
+ const content_ = JSON.stringify(request);
6375
+
6376
+ let options_: RequestInit = {
6377
+ body: content_,
6378
+ method: "PUT",
6379
+ headers: {
6380
+ "Content-Type": "application/json",
6381
+ "Accept": "application/json"
6382
+ }
6383
+ };
6384
+
6385
+ return this.transformOptions(options_).then(transformedOptions_ => {
6386
+ return this.http.fetch(url_, transformedOptions_);
6387
+ }).then((_response: Response) => {
6388
+ return this.processUpdateParentTopic(_response);
6389
+ });
6390
+ }
6391
+
6392
+ protected processUpdateParentTopic(response: Response): Promise<ParentTopicDto> {
6393
+ const status = response.status;
6394
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6395
+ if (status === 200) {
6396
+ return response.text().then((_responseText) => {
6397
+ let result200: any = null;
6398
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6399
+ result200 = ParentTopicDto.fromJS(resultData200);
6400
+ return result200;
6401
+ });
6402
+ } else if (status !== 200 && status !== 204) {
6403
+ return response.text().then((_responseText) => {
6404
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6405
+ });
6406
+ }
6407
+ return Promise.resolve<ParentTopicDto>(null as any);
6408
+ }
6409
+
6410
+ deleteParentTopic(id: string): Promise<void> {
6411
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6412
+ if (id === undefined || id === null)
6413
+ throw new Error("The parameter 'id' must be defined.");
6414
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6415
+ url_ = url_.replace(/[?&]$/, "");
6416
+
6417
+ let options_: RequestInit = {
6418
+ method: "DELETE",
6419
+ headers: {
6420
+ }
6421
+ };
6422
+
6423
+ return this.transformOptions(options_).then(transformedOptions_ => {
6424
+ return this.http.fetch(url_, transformedOptions_);
6425
+ }).then((_response: Response) => {
6426
+ return this.processDeleteParentTopic(_response);
6427
+ });
6428
+ }
6429
+
6430
+ protected processDeleteParentTopic(response: Response): Promise<void> {
6431
+ const status = response.status;
6432
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6433
+ if (status === 204) {
6434
+ return response.text().then((_responseText) => {
6435
+ return;
6436
+ });
6437
+ } else if (status !== 200 && status !== 204) {
6438
+ return response.text().then((_responseText) => {
6439
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6440
+ });
6441
+ }
6442
+ return Promise.resolve<void>(null as any);
6443
+ }
6278
6444
  }
6279
6445
 
6280
6446
  export interface IDowntimeReasonsClient {
@@ -12378,9 +12544,9 @@ export interface ICncSetupFixturesClient {
12378
12544
 
12379
12545
  updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
12380
12546
 
12381
- getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
12547
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | null | undefined): Promise<FixtureSuggestionDto[]>;
12382
12548
 
12383
- getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
12549
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | null | undefined): Promise<FixtureSuggestionDto[]>;
12384
12550
 
12385
12551
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
12386
12552
 
@@ -12609,15 +12775,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12609
12775
  return Promise.resolve<FixtureDto[]>(null as any);
12610
12776
  }
12611
12777
 
12612
- getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]> {
12778
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | null | undefined): Promise<FixtureSuggestionDto[]> {
12613
12779
  let url_ = this.baseUrl + "/fixtures/suggestion/interface?";
12614
12780
  if (input === null)
12615
12781
  throw new Error("The parameter 'input' cannot be null.");
12616
12782
  else if (input !== undefined)
12617
12783
  url_ += "input=" + encodeURIComponent("" + input) + "&";
12618
- if (fixtureType === null)
12619
- throw new Error("The parameter 'fixtureType' cannot be null.");
12620
- else if (fixtureType !== undefined)
12784
+ if (fixtureType !== undefined && fixtureType !== null)
12621
12785
  url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
12622
12786
  url_ = url_.replace(/[?&]$/, "");
12623
12787
 
@@ -12657,15 +12821,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12657
12821
  return Promise.resolve<FixtureSuggestionDto[]>(null as any);
12658
12822
  }
12659
12823
 
12660
- getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]> {
12824
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | null | undefined): Promise<FixtureSuggestionDto[]> {
12661
12825
  let url_ = this.baseUrl + "/fixtures/suggestion/location?";
12662
12826
  if (input === null)
12663
12827
  throw new Error("The parameter 'input' cannot be null.");
12664
12828
  else if (input !== undefined)
12665
12829
  url_ += "input=" + encodeURIComponent("" + input) + "&";
12666
- if (fixtureType === null)
12667
- throw new Error("The parameter 'fixtureType' cannot be null.");
12668
- else if (fixtureType !== undefined)
12830
+ if (fixtureType !== undefined && fixtureType !== null)
12669
12831
  url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
12670
12832
  url_ = url_.replace(/[?&]$/, "");
12671
12833
 
@@ -21189,10 +21351,6 @@ export interface IMeasurementFormsInstancesClient {
21189
21351
 
21190
21352
  exportDimensionReportValues(id: string): Promise<DownloadDto>;
21191
21353
 
21192
- updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
21193
-
21194
- getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
21195
-
21196
21354
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
21197
21355
  }
21198
21356
 
@@ -22446,94 +22604,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22446
22604
  return Promise.resolve<DownloadDto>(null as any);
22447
22605
  }
22448
22606
 
22449
- updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void> {
22450
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
22451
- if (id === undefined || id === null)
22452
- throw new Error("The parameter 'id' must be defined.");
22453
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22454
- if (schemaId === undefined || schemaId === null)
22455
- throw new Error("The parameter 'schemaId' must be defined.");
22456
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
22457
- url_ = url_.replace(/[?&]$/, "");
22458
-
22459
- const content_ = JSON.stringify(request);
22460
-
22461
- let options_: RequestInit = {
22462
- body: content_,
22463
- method: "PUT",
22464
- headers: {
22465
- "Content-Type": "application/json",
22466
- }
22467
- };
22468
-
22469
- return this.transformOptions(options_).then(transformedOptions_ => {
22470
- return this.http.fetch(url_, transformedOptions_);
22471
- }).then((_response: Response) => {
22472
- return this.processUpdateSchemaInstanceElements(_response);
22473
- });
22474
- }
22475
-
22476
- protected processUpdateSchemaInstanceElements(response: Response): Promise<void> {
22477
- const status = response.status;
22478
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22479
- if (status === 200) {
22480
- return response.text().then((_responseText) => {
22481
- return;
22482
- });
22483
- } else if (status !== 200 && status !== 204) {
22484
- return response.text().then((_responseText) => {
22485
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22486
- });
22487
- }
22488
- return Promise.resolve<void>(null as any);
22489
- }
22490
-
22491
- getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]> {
22492
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
22493
- if (id === undefined || id === null)
22494
- throw new Error("The parameter 'id' must be defined.");
22495
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22496
- if (schemaId === undefined || schemaId === null)
22497
- throw new Error("The parameter 'schemaId' must be defined.");
22498
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
22499
- url_ = url_.replace(/[?&]$/, "");
22500
-
22501
- let options_: RequestInit = {
22502
- method: "GET",
22503
- headers: {
22504
- "Accept": "application/json"
22505
- }
22506
- };
22507
-
22508
- return this.transformOptions(options_).then(transformedOptions_ => {
22509
- return this.http.fetch(url_, transformedOptions_);
22510
- }).then((_response: Response) => {
22511
- return this.processGetSchemaInstanceElements(_response);
22512
- });
22513
- }
22514
-
22515
- protected processGetSchemaInstanceElements(response: Response): Promise<SchemaInstanceElementDto[]> {
22516
- const status = response.status;
22517
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22518
- if (status === 200) {
22519
- return response.text().then((_responseText) => {
22520
- let result200: any = null;
22521
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22522
- if (Array.isArray(resultData200)) {
22523
- result200 = [] as any;
22524
- for (let item of resultData200)
22525
- result200!.push(SchemaInstanceElementDto.fromJS(item));
22526
- }
22527
- return result200;
22528
- });
22529
- } else if (status !== 200 && status !== 204) {
22530
- return response.text().then((_responseText) => {
22531
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22532
- });
22533
- }
22534
- return Promise.resolve<SchemaInstanceElementDto[]>(null as any);
22535
- }
22536
-
22537
22607
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void> {
22538
22608
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
22539
22609
  if (id === undefined || id === null)
@@ -25649,6 +25719,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25649
25719
  subType?: string | null;
25650
25720
  startTime!: number;
25651
25721
  endTime?: number | null;
25722
+ partName?: string | null;
25723
+ partNumber?: string | null;
25652
25724
  metaData?: { [key: string]: string; } | null;
25653
25725
 
25654
25726
  constructor(data?: IWorkOrderDatapoint) {
@@ -25668,6 +25740,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25668
25740
  this.subType = _data["subType"];
25669
25741
  this.startTime = _data["startTime"];
25670
25742
  this.endTime = _data["endTime"];
25743
+ this.partName = _data["partName"];
25744
+ this.partNumber = _data["partNumber"];
25671
25745
  if (_data["metaData"]) {
25672
25746
  this.metaData = {} as any;
25673
25747
  for (let key in _data["metaData"]) {
@@ -25693,6 +25767,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25693
25767
  data["subType"] = this.subType;
25694
25768
  data["startTime"] = this.startTime;
25695
25769
  data["endTime"] = this.endTime;
25770
+ data["partName"] = this.partName;
25771
+ data["partNumber"] = this.partNumber;
25696
25772
  if (this.metaData) {
25697
25773
  data["metaData"] = {};
25698
25774
  for (let key in this.metaData) {
@@ -25711,6 +25787,8 @@ export interface IWorkOrderDatapoint {
25711
25787
  subType?: string | null;
25712
25788
  startTime: number;
25713
25789
  endTime?: number | null;
25790
+ partName?: string | null;
25791
+ partNumber?: string | null;
25714
25792
  metaData?: { [key: string]: string; } | null;
25715
25793
  }
25716
25794
 
@@ -33942,8 +34020,11 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33942
34020
  id!: string;
33943
34021
  reason!: string;
33944
34022
  machineTypes!: string[];
34023
+ machineGroups!: string[];
33945
34024
  reasonType!: DowntimeReasonTypeDto;
33946
34025
  description?: string | null;
34026
+ parentId?: string | null;
34027
+ displayOrder?: number | null;
33947
34028
 
33948
34029
  constructor(data?: IDowntimeReasonDto) {
33949
34030
  if (data) {
@@ -33954,6 +34035,7 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33954
34035
  }
33955
34036
  if (!data) {
33956
34037
  this.machineTypes = [];
34038
+ this.machineGroups = [];
33957
34039
  }
33958
34040
  }
33959
34041
 
@@ -33966,8 +34048,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33966
34048
  for (let item of _data["machineTypes"])
33967
34049
  this.machineTypes!.push(item);
33968
34050
  }
34051
+ if (Array.isArray(_data["machineGroups"])) {
34052
+ this.machineGroups = [] as any;
34053
+ for (let item of _data["machineGroups"])
34054
+ this.machineGroups!.push(item);
34055
+ }
33969
34056
  this.reasonType = _data["reasonType"];
33970
34057
  this.description = _data["description"];
34058
+ this.parentId = _data["parentId"];
34059
+ this.displayOrder = _data["displayOrder"];
33971
34060
  }
33972
34061
  }
33973
34062
 
@@ -33987,8 +34076,15 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33987
34076
  for (let item of this.machineTypes)
33988
34077
  data["machineTypes"].push(item);
33989
34078
  }
34079
+ if (Array.isArray(this.machineGroups)) {
34080
+ data["machineGroups"] = [];
34081
+ for (let item of this.machineGroups)
34082
+ data["machineGroups"].push(item);
34083
+ }
33990
34084
  data["reasonType"] = this.reasonType;
33991
34085
  data["description"] = this.description;
34086
+ data["parentId"] = this.parentId;
34087
+ data["displayOrder"] = this.displayOrder;
33992
34088
  return data;
33993
34089
  }
33994
34090
  }
@@ -33997,15 +34093,21 @@ export interface IDowntimeReasonDto {
33997
34093
  id: string;
33998
34094
  reason: string;
33999
34095
  machineTypes: string[];
34096
+ machineGroups: string[];
34000
34097
  reasonType: DowntimeReasonTypeDto;
34001
34098
  description?: string | null;
34099
+ parentId?: string | null;
34100
+ displayOrder?: number | null;
34002
34101
  }
34003
34102
 
34004
34103
  export class CreateDowntimeReason implements ICreateDowntimeReason {
34005
34104
  reason!: string;
34006
34105
  machineTypes!: string[];
34106
+ machineGroups?: string[] | null;
34007
34107
  reasonType!: DowntimeReasonTypeDto;
34008
34108
  description?: string | null;
34109
+ parentId?: string | null;
34110
+ displayOrder?: number | null;
34009
34111
 
34010
34112
  constructor(data?: ICreateDowntimeReason) {
34011
34113
  if (data) {
@@ -34027,8 +34129,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
34027
34129
  for (let item of _data["machineTypes"])
34028
34130
  this.machineTypes!.push(item);
34029
34131
  }
34132
+ if (Array.isArray(_data["machineGroups"])) {
34133
+ this.machineGroups = [] as any;
34134
+ for (let item of _data["machineGroups"])
34135
+ this.machineGroups!.push(item);
34136
+ }
34030
34137
  this.reasonType = _data["reasonType"];
34031
34138
  this.description = _data["description"];
34139
+ this.parentId = _data["parentId"];
34140
+ this.displayOrder = _data["displayOrder"];
34032
34141
  }
34033
34142
  }
34034
34143
 
@@ -34047,8 +34156,15 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
34047
34156
  for (let item of this.machineTypes)
34048
34157
  data["machineTypes"].push(item);
34049
34158
  }
34159
+ if (Array.isArray(this.machineGroups)) {
34160
+ data["machineGroups"] = [];
34161
+ for (let item of this.machineGroups)
34162
+ data["machineGroups"].push(item);
34163
+ }
34050
34164
  data["reasonType"] = this.reasonType;
34051
34165
  data["description"] = this.description;
34166
+ data["parentId"] = this.parentId;
34167
+ data["displayOrder"] = this.displayOrder;
34052
34168
  return data;
34053
34169
  }
34054
34170
  }
@@ -34056,15 +34172,21 @@ export class CreateDowntimeReason implements ICreateDowntimeReason {
34056
34172
  export interface ICreateDowntimeReason {
34057
34173
  reason: string;
34058
34174
  machineTypes: string[];
34175
+ machineGroups?: string[] | null;
34059
34176
  reasonType: DowntimeReasonTypeDto;
34060
34177
  description?: string | null;
34178
+ parentId?: string | null;
34179
+ displayOrder?: number | null;
34061
34180
  }
34062
34181
 
34063
34182
  export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest {
34064
34183
  reason!: string;
34065
34184
  machineTypes!: string[];
34185
+ machineGroups?: string[] | null;
34066
34186
  reasonType!: DowntimeReasonTypeDto;
34067
34187
  description?: string | null;
34188
+ parentId?: string | null;
34189
+ displayOrder?: number | null;
34068
34190
 
34069
34191
  constructor(data?: IUpdateDowntimeReasonRequest) {
34070
34192
  if (data) {
@@ -34086,8 +34208,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
34086
34208
  for (let item of _data["machineTypes"])
34087
34209
  this.machineTypes!.push(item);
34088
34210
  }
34211
+ if (Array.isArray(_data["machineGroups"])) {
34212
+ this.machineGroups = [] as any;
34213
+ for (let item of _data["machineGroups"])
34214
+ this.machineGroups!.push(item);
34215
+ }
34089
34216
  this.reasonType = _data["reasonType"];
34090
34217
  this.description = _data["description"];
34218
+ this.parentId = _data["parentId"];
34219
+ this.displayOrder = _data["displayOrder"];
34091
34220
  }
34092
34221
  }
34093
34222
 
@@ -34106,8 +34235,15 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
34106
34235
  for (let item of this.machineTypes)
34107
34236
  data["machineTypes"].push(item);
34108
34237
  }
34238
+ if (Array.isArray(this.machineGroups)) {
34239
+ data["machineGroups"] = [];
34240
+ for (let item of this.machineGroups)
34241
+ data["machineGroups"].push(item);
34242
+ }
34109
34243
  data["reasonType"] = this.reasonType;
34110
34244
  data["description"] = this.description;
34245
+ data["parentId"] = this.parentId;
34246
+ data["displayOrder"] = this.displayOrder;
34111
34247
  return data;
34112
34248
  }
34113
34249
  }
@@ -34115,8 +34251,11 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
34115
34251
  export interface IUpdateDowntimeReasonRequest {
34116
34252
  reason: string;
34117
34253
  machineTypes: string[];
34254
+ machineGroups?: string[] | null;
34118
34255
  reasonType: DowntimeReasonTypeDto;
34119
34256
  description?: string | null;
34257
+ parentId?: string | null;
34258
+ displayOrder?: number | null;
34120
34259
  }
34121
34260
 
34122
34261
  export class MachineTypeDto implements IMachineTypeDto {
@@ -34155,6 +34294,154 @@ export interface IMachineTypeDto {
34155
34294
  machineType: string;
34156
34295
  }
34157
34296
 
34297
+ export class ParentTopicDto implements IParentTopicDto {
34298
+ id!: string;
34299
+ name!: string;
34300
+ description?: string | null;
34301
+ displayOrder?: number;
34302
+ subReasons?: DowntimeReasonDto[];
34303
+
34304
+ constructor(data?: IParentTopicDto) {
34305
+ if (data) {
34306
+ for (var property in data) {
34307
+ if (data.hasOwnProperty(property))
34308
+ (<any>this)[property] = (<any>data)[property];
34309
+ }
34310
+ }
34311
+ }
34312
+
34313
+ init(_data?: any) {
34314
+ if (_data) {
34315
+ this.id = _data["id"];
34316
+ this.name = _data["name"];
34317
+ this.description = _data["description"];
34318
+ this.displayOrder = _data["displayOrder"];
34319
+ if (Array.isArray(_data["subReasons"])) {
34320
+ this.subReasons = [] as any;
34321
+ for (let item of _data["subReasons"])
34322
+ this.subReasons!.push(DowntimeReasonDto.fromJS(item));
34323
+ }
34324
+ }
34325
+ }
34326
+
34327
+ static fromJS(data: any): ParentTopicDto {
34328
+ data = typeof data === 'object' ? data : {};
34329
+ let result = new ParentTopicDto();
34330
+ result.init(data);
34331
+ return result;
34332
+ }
34333
+
34334
+ toJSON(data?: any) {
34335
+ data = typeof data === 'object' ? data : {};
34336
+ data["id"] = this.id;
34337
+ data["name"] = this.name;
34338
+ data["description"] = this.description;
34339
+ data["displayOrder"] = this.displayOrder;
34340
+ if (Array.isArray(this.subReasons)) {
34341
+ data["subReasons"] = [];
34342
+ for (let item of this.subReasons)
34343
+ data["subReasons"].push(item.toJSON());
34344
+ }
34345
+ return data;
34346
+ }
34347
+ }
34348
+
34349
+ export interface IParentTopicDto {
34350
+ id: string;
34351
+ name: string;
34352
+ description?: string | null;
34353
+ displayOrder?: number;
34354
+ subReasons?: DowntimeReasonDto[];
34355
+ }
34356
+
34357
+ export class CreateParentTopicRequest implements ICreateParentTopicRequest {
34358
+ name!: string;
34359
+ description?: string | null;
34360
+ displayOrder?: number | null;
34361
+
34362
+ constructor(data?: ICreateParentTopicRequest) {
34363
+ if (data) {
34364
+ for (var property in data) {
34365
+ if (data.hasOwnProperty(property))
34366
+ (<any>this)[property] = (<any>data)[property];
34367
+ }
34368
+ }
34369
+ }
34370
+
34371
+ init(_data?: any) {
34372
+ if (_data) {
34373
+ this.name = _data["name"];
34374
+ this.description = _data["description"];
34375
+ this.displayOrder = _data["displayOrder"];
34376
+ }
34377
+ }
34378
+
34379
+ static fromJS(data: any): CreateParentTopicRequest {
34380
+ data = typeof data === 'object' ? data : {};
34381
+ let result = new CreateParentTopicRequest();
34382
+ result.init(data);
34383
+ return result;
34384
+ }
34385
+
34386
+ toJSON(data?: any) {
34387
+ data = typeof data === 'object' ? data : {};
34388
+ data["name"] = this.name;
34389
+ data["description"] = this.description;
34390
+ data["displayOrder"] = this.displayOrder;
34391
+ return data;
34392
+ }
34393
+ }
34394
+
34395
+ export interface ICreateParentTopicRequest {
34396
+ name: string;
34397
+ description?: string | null;
34398
+ displayOrder?: number | null;
34399
+ }
34400
+
34401
+ export class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
34402
+ name!: string;
34403
+ description?: string | null;
34404
+ displayOrder?: number | null;
34405
+
34406
+ constructor(data?: IUpdateParentTopicRequest) {
34407
+ if (data) {
34408
+ for (var property in data) {
34409
+ if (data.hasOwnProperty(property))
34410
+ (<any>this)[property] = (<any>data)[property];
34411
+ }
34412
+ }
34413
+ }
34414
+
34415
+ init(_data?: any) {
34416
+ if (_data) {
34417
+ this.name = _data["name"];
34418
+ this.description = _data["description"];
34419
+ this.displayOrder = _data["displayOrder"];
34420
+ }
34421
+ }
34422
+
34423
+ static fromJS(data: any): UpdateParentTopicRequest {
34424
+ data = typeof data === 'object' ? data : {};
34425
+ let result = new UpdateParentTopicRequest();
34426
+ result.init(data);
34427
+ return result;
34428
+ }
34429
+
34430
+ toJSON(data?: any) {
34431
+ data = typeof data === 'object' ? data : {};
34432
+ data["name"] = this.name;
34433
+ data["description"] = this.description;
34434
+ data["displayOrder"] = this.displayOrder;
34435
+ return data;
34436
+ }
34437
+ }
34438
+
34439
+ export interface IUpdateParentTopicRequest {
34440
+ name: string;
34441
+ description?: string | null;
34442
+ displayOrder?: number | null;
34443
+ }
34444
+
34158
34445
  export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
34159
34446
  reasonId!: string;
34160
34447
  assetId!: number;
@@ -43045,6 +43332,7 @@ export interface IFixtureUpdateDto {
43045
43332
 
43046
43333
  export class FixtureSuggestionDto implements IFixtureSuggestionDto {
43047
43334
  suggestion!: string;
43335
+ fixtureTypes!: FixtureTypeDto[];
43048
43336
 
43049
43337
  constructor(data?: IFixtureSuggestionDto) {
43050
43338
  if (data) {
@@ -43053,11 +43341,19 @@ export class FixtureSuggestionDto implements IFixtureSuggestionDto {
43053
43341
  (<any>this)[property] = (<any>data)[property];
43054
43342
  }
43055
43343
  }
43344
+ if (!data) {
43345
+ this.fixtureTypes = [];
43346
+ }
43056
43347
  }
43057
43348
 
43058
43349
  init(_data?: any) {
43059
43350
  if (_data) {
43060
43351
  this.suggestion = _data["suggestion"];
43352
+ if (Array.isArray(_data["fixtureTypes"])) {
43353
+ this.fixtureTypes = [] as any;
43354
+ for (let item of _data["fixtureTypes"])
43355
+ this.fixtureTypes!.push(item);
43356
+ }
43061
43357
  }
43062
43358
  }
43063
43359
 
@@ -43071,12 +43367,18 @@ export class FixtureSuggestionDto implements IFixtureSuggestionDto {
43071
43367
  toJSON(data?: any) {
43072
43368
  data = typeof data === 'object' ? data : {};
43073
43369
  data["suggestion"] = this.suggestion;
43370
+ if (Array.isArray(this.fixtureTypes)) {
43371
+ data["fixtureTypes"] = [];
43372
+ for (let item of this.fixtureTypes)
43373
+ data["fixtureTypes"].push(item);
43374
+ }
43074
43375
  return data;
43075
43376
  }
43076
43377
  }
43077
43378
 
43078
43379
  export interface IFixtureSuggestionDto {
43079
43380
  suggestion: string;
43381
+ fixtureTypes: FixtureTypeDto[];
43080
43382
  }
43081
43383
 
43082
43384
  export class UploadFixtureAttachmentDto implements IUploadFixtureAttachmentDto {
@@ -53551,8 +53853,8 @@ export interface IUpdateSchemaGroupedElementDto {
53551
53853
  }
53552
53854
 
53553
53855
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
53554
- id?: string;
53555
- balloonId?: string;
53856
+ id?: string | null;
53857
+ balloonId?: string | null;
53556
53858
  oldReference!: number;
53557
53859
  newReference!: number;
53558
53860
  section?: string | null;
@@ -53643,8 +53945,8 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
53643
53945
  }
53644
53946
 
53645
53947
  export interface IUpdateSchemaGroupedElementRowDto {
53646
- id?: string;
53647
- balloonId?: string;
53948
+ id?: string | null;
53949
+ balloonId?: string | null;
53648
53950
  oldReference: number;
53649
53951
  newReference: number;
53650
53952
  section?: string | null;
@@ -53725,7 +54027,7 @@ export interface IDeleteSchemaGroupedElementRowsDto {
53725
54027
  export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
53726
54028
  uploadKey!: string;
53727
54029
  filename!: string;
53728
- ballonId?: string;
54030
+ ballonId?: string | null;
53729
54031
  reference!: number;
53730
54032
 
53731
54033
  constructor(data?: IUploadMeasurementImageRequest) {
@@ -53766,7 +54068,7 @@ export class UploadMeasurementImageRequest implements IUploadMeasurementImageReq
53766
54068
  export interface IUploadMeasurementImageRequest {
53767
54069
  uploadKey: string;
53768
54070
  filename: string;
53769
- ballonId?: string;
54071
+ ballonId?: string | null;
53770
54072
  reference: number;
53771
54073
  }
53772
54074
 
@@ -56520,7 +56822,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56520
56822
  customerId?: string | null;
56521
56823
  customerName?: string | null;
56522
56824
  purchaseOrder?: string | null;
56523
- sequences!: CreateMeasurementFormInstanceRequestSequence[];
56825
+ sequences?: CreateMeasurementFormInstanceRequestSequence[];
56524
56826
  serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
56525
56827
 
56526
56828
  constructor(data?: ICreateMeasurementFormInstanceRequest) {
@@ -56531,7 +56833,6 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56531
56833
  }
56532
56834
  }
56533
56835
  if (!data) {
56534
- this.sequences = [];
56535
56836
  this.serialNumbers = [];
56536
56837
  }
56537
56838
  }
@@ -56587,7 +56888,7 @@ export interface ICreateMeasurementFormInstanceRequest {
56587
56888
  customerId?: string | null;
56588
56889
  customerName?: string | null;
56589
56890
  purchaseOrder?: string | null;
56590
- sequences: CreateMeasurementFormInstanceRequestSequence[];
56891
+ sequences?: CreateMeasurementFormInstanceRequestSequence[];
56591
56892
  serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
56592
56893
  }
56593
56894
 
@@ -58040,98 +58341,6 @@ export interface IExportDimensionReportRequest {
58040
58341
  comment?: string | null;
58041
58342
  }
58042
58343
 
58043
- export class UpdateSchemaInstanceElementsRequest implements IUpdateSchemaInstanceElementsRequest {
58044
- elements?: SchemaInstanceElementDto[] | null;
58045
-
58046
- constructor(data?: IUpdateSchemaInstanceElementsRequest) {
58047
- if (data) {
58048
- for (var property in data) {
58049
- if (data.hasOwnProperty(property))
58050
- (<any>this)[property] = (<any>data)[property];
58051
- }
58052
- }
58053
- }
58054
-
58055
- init(_data?: any) {
58056
- if (_data) {
58057
- if (Array.isArray(_data["elements"])) {
58058
- this.elements = [] as any;
58059
- for (let item of _data["elements"])
58060
- this.elements!.push(SchemaInstanceElementDto.fromJS(item));
58061
- }
58062
- }
58063
- }
58064
-
58065
- static fromJS(data: any): UpdateSchemaInstanceElementsRequest {
58066
- data = typeof data === 'object' ? data : {};
58067
- let result = new UpdateSchemaInstanceElementsRequest();
58068
- result.init(data);
58069
- return result;
58070
- }
58071
-
58072
- toJSON(data?: any) {
58073
- data = typeof data === 'object' ? data : {};
58074
- if (Array.isArray(this.elements)) {
58075
- data["elements"] = [];
58076
- for (let item of this.elements)
58077
- data["elements"].push(item.toJSON());
58078
- }
58079
- return data;
58080
- }
58081
- }
58082
-
58083
- export interface IUpdateSchemaInstanceElementsRequest {
58084
- elements?: SchemaInstanceElementDto[] | null;
58085
- }
58086
-
58087
- export class SchemaInstanceElementDto implements ISchemaInstanceElementDto {
58088
- elementId!: string;
58089
- balloonId?: string | null;
58090
- reference!: number;
58091
- disabled!: boolean;
58092
-
58093
- constructor(data?: ISchemaInstanceElementDto) {
58094
- if (data) {
58095
- for (var property in data) {
58096
- if (data.hasOwnProperty(property))
58097
- (<any>this)[property] = (<any>data)[property];
58098
- }
58099
- }
58100
- }
58101
-
58102
- init(_data?: any) {
58103
- if (_data) {
58104
- this.elementId = _data["elementId"];
58105
- this.balloonId = _data["balloonId"];
58106
- this.reference = _data["reference"];
58107
- this.disabled = _data["disabled"];
58108
- }
58109
- }
58110
-
58111
- static fromJS(data: any): SchemaInstanceElementDto {
58112
- data = typeof data === 'object' ? data : {};
58113
- let result = new SchemaInstanceElementDto();
58114
- result.init(data);
58115
- return result;
58116
- }
58117
-
58118
- toJSON(data?: any) {
58119
- data = typeof data === 'object' ? data : {};
58120
- data["elementId"] = this.elementId;
58121
- data["balloonId"] = this.balloonId;
58122
- data["reference"] = this.reference;
58123
- data["disabled"] = this.disabled;
58124
- return data;
58125
- }
58126
- }
58127
-
58128
- export interface ISchemaInstanceElementDto {
58129
- elementId: string;
58130
- balloonId?: string | null;
58131
- reference: number;
58132
- disabled: boolean;
58133
- }
58134
-
58135
58344
  export class ProductionCompanyDto implements IProductionCompanyDto {
58136
58345
  id!: string;
58137
58346
  name!: string;