@ignos/api-client 20260715.185.1-alpha → 20260715.187.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.
@@ -4662,7 +4662,7 @@ export interface IKpiAdminResourceClient {
4662
4662
 
4663
4663
  updateShiftSettingsPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
4664
4664
 
4665
- copyShiftSettingsPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
4665
+ copyShiftSettingsPeriod(resourceExternalId: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto[]>;
4666
4666
 
4667
4667
  migrateCapacityToSettings(): Promise<MigrationResultDto>;
4668
4668
  }
@@ -5221,14 +5221,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
5221
5221
  return Promise.resolve<ShiftSettingsPeriodDto>(null as any);
5222
5222
  }
5223
5223
 
5224
- copyShiftSettingsPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto> {
5225
- let url_ = this.baseUrl + "/kpiadminresource/shift-settings/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
5226
- if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
5227
- throw new globalThis.Error("The parameter 'sourceResourceExternalId' must be defined.");
5228
- url_ = url_.replace("{sourceResourceExternalId}", encodeURIComponent("" + sourceResourceExternalId));
5229
- if (sourceEffectiveFrom === undefined || sourceEffectiveFrom === null)
5230
- throw new globalThis.Error("The parameter 'sourceEffectiveFrom' must be defined.");
5231
- url_ = url_.replace("{sourceEffectiveFrom}", encodeURIComponent("" + sourceEffectiveFrom));
5224
+ copyShiftSettingsPeriod(resourceExternalId: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto[]> {
5225
+ let url_ = this.baseUrl + "/kpiadminresource/shift-settings/{resourceExternalId}/copy";
5226
+ if (resourceExternalId === undefined || resourceExternalId === null)
5227
+ throw new globalThis.Error("The parameter 'resourceExternalId' must be defined.");
5228
+ url_ = url_.replace("{resourceExternalId}", encodeURIComponent("" + resourceExternalId));
5232
5229
  url_ = url_.replace(/[?&]$/, "");
5233
5230
 
5234
5231
  const content_ = JSON.stringify(request);
@@ -5249,13 +5246,13 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
5249
5246
  });
5250
5247
  }
5251
5248
 
5252
- protected processCopyShiftSettingsPeriod(response: Response): Promise<ShiftSettingsPeriodDto> {
5249
+ protected processCopyShiftSettingsPeriod(response: Response): Promise<ShiftSettingsPeriodDto[]> {
5253
5250
  const status = response.status;
5254
5251
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5255
5252
  if (status === 200) {
5256
5253
  return response.text().then((_responseText) => {
5257
5254
  let result200: any = null;
5258
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ShiftSettingsPeriodDto;
5255
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ShiftSettingsPeriodDto[];
5259
5256
  return result200;
5260
5257
  });
5261
5258
  } else if (status !== 200 && status !== 204) {
@@ -5263,7 +5260,7 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
5263
5260
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5264
5261
  });
5265
5262
  }
5266
- return Promise.resolve<ShiftSettingsPeriodDto>(null as any);
5263
+ return Promise.resolve<ShiftSettingsPeriodDto[]>(null as any);
5267
5264
  }
5268
5265
 
5269
5266
  migrateCapacityToSettings(): Promise<MigrationResultDto> {
@@ -12292,6 +12289,160 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
12292
12289
  }
12293
12290
  }
12294
12291
 
12292
+ export interface IMachineDataClient {
12293
+
12294
+ getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto>;
12295
+
12296
+ getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto>;
12297
+
12298
+ exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto>;
12299
+ }
12300
+
12301
+ export class MachineDataClient extends AuthorizedApiBase implements IMachineDataClient {
12302
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
12303
+ private baseUrl: string;
12304
+
12305
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
12306
+ super(configuration);
12307
+ this.http = http ? http : window as any;
12308
+ this.baseUrl = baseUrl ?? "";
12309
+ }
12310
+
12311
+ getLiveMachineData(assetId: number, externalIds: string[] | undefined): Promise<LiveMachineDataDto> {
12312
+ let url_ = this.baseUrl + "/machinedata/{assetId}/live-machinedata?";
12313
+ if (assetId === undefined || assetId === null)
12314
+ throw new globalThis.Error("The parameter 'assetId' must be defined.");
12315
+ url_ = url_.replace("{assetId}", encodeURIComponent("" + assetId));
12316
+ if (externalIds === null)
12317
+ throw new globalThis.Error("The parameter 'externalIds' cannot be null.");
12318
+ else if (externalIds !== undefined)
12319
+ externalIds && externalIds.forEach(item => { url_ += "externalIds=" + encodeURIComponent("" + item) + "&"; });
12320
+ url_ = url_.replace(/[?&]$/, "");
12321
+
12322
+ let options_: RequestInit = {
12323
+ method: "GET",
12324
+ headers: {
12325
+ "Accept": "application/json"
12326
+ }
12327
+ };
12328
+
12329
+ return this.transformOptions(options_).then(transformedOptions_ => {
12330
+ return this.http.fetch(url_, transformedOptions_);
12331
+ }).then((_response: Response) => {
12332
+ return this.processGetLiveMachineData(_response);
12333
+ });
12334
+ }
12335
+
12336
+ protected processGetLiveMachineData(response: Response): Promise<LiveMachineDataDto> {
12337
+ const status = response.status;
12338
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12339
+ if (status === 200) {
12340
+ return response.text().then((_responseText) => {
12341
+ let result200: any = null;
12342
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as LiveMachineDataDto;
12343
+ return result200;
12344
+ });
12345
+ } else if (status !== 200 && status !== 204) {
12346
+ return response.text().then((_responseText) => {
12347
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12348
+ });
12349
+ }
12350
+ return Promise.resolve<LiveMachineDataDto>(null as any);
12351
+ }
12352
+
12353
+ getTimeseriesGraph(assetId: number, externalIds: string[] | undefined, startTime: Date | undefined, endTime: Date | undefined): Promise<TimeseriesGraphDto> {
12354
+ let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph?";
12355
+ if (assetId === undefined || assetId === null)
12356
+ throw new globalThis.Error("The parameter 'assetId' must be defined.");
12357
+ url_ = url_.replace("{assetId}", encodeURIComponent("" + assetId));
12358
+ if (externalIds === null)
12359
+ throw new globalThis.Error("The parameter 'externalIds' cannot be null.");
12360
+ else if (externalIds !== undefined)
12361
+ externalIds && externalIds.forEach(item => { url_ += "externalIds=" + encodeURIComponent("" + item) + "&"; });
12362
+ if (startTime === null)
12363
+ throw new globalThis.Error("The parameter 'startTime' cannot be null.");
12364
+ else if (startTime !== undefined)
12365
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
12366
+ if (endTime === null)
12367
+ throw new globalThis.Error("The parameter 'endTime' cannot be null.");
12368
+ else if (endTime !== undefined)
12369
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
12370
+ url_ = url_.replace(/[?&]$/, "");
12371
+
12372
+ let options_: RequestInit = {
12373
+ method: "GET",
12374
+ headers: {
12375
+ "Accept": "application/json"
12376
+ }
12377
+ };
12378
+
12379
+ return this.transformOptions(options_).then(transformedOptions_ => {
12380
+ return this.http.fetch(url_, transformedOptions_);
12381
+ }).then((_response: Response) => {
12382
+ return this.processGetTimeseriesGraph(_response);
12383
+ });
12384
+ }
12385
+
12386
+ protected processGetTimeseriesGraph(response: Response): Promise<TimeseriesGraphDto> {
12387
+ const status = response.status;
12388
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12389
+ if (status === 200) {
12390
+ return response.text().then((_responseText) => {
12391
+ let result200: any = null;
12392
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as TimeseriesGraphDto;
12393
+ return result200;
12394
+ });
12395
+ } else if (status !== 200 && status !== 204) {
12396
+ return response.text().then((_responseText) => {
12397
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12398
+ });
12399
+ }
12400
+ return Promise.resolve<TimeseriesGraphDto>(null as any);
12401
+ }
12402
+
12403
+ exportTimeseriesGraph(assetId: number, request: ExportTimeseriesGraphRequest): Promise<DownloadDto> {
12404
+ let url_ = this.baseUrl + "/machinedata/{assetId}/timeseries-graph/export-csv";
12405
+ if (assetId === undefined || assetId === null)
12406
+ throw new globalThis.Error("The parameter 'assetId' must be defined.");
12407
+ url_ = url_.replace("{assetId}", encodeURIComponent("" + assetId));
12408
+ url_ = url_.replace(/[?&]$/, "");
12409
+
12410
+ const content_ = JSON.stringify(request);
12411
+
12412
+ let options_: RequestInit = {
12413
+ body: content_,
12414
+ method: "POST",
12415
+ headers: {
12416
+ "Content-Type": "application/json",
12417
+ "Accept": "application/json"
12418
+ }
12419
+ };
12420
+
12421
+ return this.transformOptions(options_).then(transformedOptions_ => {
12422
+ return this.http.fetch(url_, transformedOptions_);
12423
+ }).then((_response: Response) => {
12424
+ return this.processExportTimeseriesGraph(_response);
12425
+ });
12426
+ }
12427
+
12428
+ protected processExportTimeseriesGraph(response: Response): Promise<DownloadDto> {
12429
+ const status = response.status;
12430
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12431
+ if (status === 200) {
12432
+ return response.text().then((_responseText) => {
12433
+ let result200: any = null;
12434
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
12435
+ return result200;
12436
+ });
12437
+ } else if (status !== 200 && status !== 204) {
12438
+ return response.text().then((_responseText) => {
12439
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12440
+ });
12441
+ }
12442
+ return Promise.resolve<DownloadDto>(null as any);
12443
+ }
12444
+ }
12445
+
12295
12446
  export interface ILinksClient {
12296
12447
 
12297
12448
  getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
@@ -21383,6 +21534,132 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase implemen
21383
21534
  }
21384
21535
  }
21385
21536
 
21537
+ export interface IMesIndirectActivitiesClient {
21538
+
21539
+ listIndirectActivities(): Promise<IndirectActivityDto[]>;
21540
+
21541
+ getMyActiveIndirectActivity(): Promise<CurrentIndirectActivityDto>;
21542
+
21543
+ startIndirectActivity(request: StartIndirectActivity): Promise<void>;
21544
+ }
21545
+
21546
+ export class MesIndirectActivitiesClient extends AuthorizedApiBase implements IMesIndirectActivitiesClient {
21547
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21548
+ private baseUrl: string;
21549
+
21550
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21551
+ super(configuration);
21552
+ this.http = http ? http : window as any;
21553
+ this.baseUrl = baseUrl ?? "";
21554
+ }
21555
+
21556
+ listIndirectActivities(): Promise<IndirectActivityDto[]> {
21557
+ let url_ = this.baseUrl + "/mes/indirect-activities";
21558
+ url_ = url_.replace(/[?&]$/, "");
21559
+
21560
+ let options_: RequestInit = {
21561
+ method: "GET",
21562
+ headers: {
21563
+ "Accept": "application/json"
21564
+ }
21565
+ };
21566
+
21567
+ return this.transformOptions(options_).then(transformedOptions_ => {
21568
+ return this.http.fetch(url_, transformedOptions_);
21569
+ }).then((_response: Response) => {
21570
+ return this.processListIndirectActivities(_response);
21571
+ });
21572
+ }
21573
+
21574
+ protected processListIndirectActivities(response: Response): Promise<IndirectActivityDto[]> {
21575
+ const status = response.status;
21576
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21577
+ if (status === 200) {
21578
+ return response.text().then((_responseText) => {
21579
+ let result200: any = null;
21580
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as IndirectActivityDto[];
21581
+ return result200;
21582
+ });
21583
+ } else if (status !== 200 && status !== 204) {
21584
+ return response.text().then((_responseText) => {
21585
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21586
+ });
21587
+ }
21588
+ return Promise.resolve<IndirectActivityDto[]>(null as any);
21589
+ }
21590
+
21591
+ getMyActiveIndirectActivity(): Promise<CurrentIndirectActivityDto> {
21592
+ let url_ = this.baseUrl + "/mes/myactiveindirectactivity";
21593
+ url_ = url_.replace(/[?&]$/, "");
21594
+
21595
+ let options_: RequestInit = {
21596
+ method: "GET",
21597
+ headers: {
21598
+ "Accept": "application/json"
21599
+ }
21600
+ };
21601
+
21602
+ return this.transformOptions(options_).then(transformedOptions_ => {
21603
+ return this.http.fetch(url_, transformedOptions_);
21604
+ }).then((_response: Response) => {
21605
+ return this.processGetMyActiveIndirectActivity(_response);
21606
+ });
21607
+ }
21608
+
21609
+ protected processGetMyActiveIndirectActivity(response: Response): Promise<CurrentIndirectActivityDto> {
21610
+ const status = response.status;
21611
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21612
+ if (status === 200) {
21613
+ return response.text().then((_responseText) => {
21614
+ let result200: any = null;
21615
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CurrentIndirectActivityDto;
21616
+ return result200;
21617
+ });
21618
+ } else if (status !== 200 && status !== 204) {
21619
+ return response.text().then((_responseText) => {
21620
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21621
+ });
21622
+ }
21623
+ return Promise.resolve<CurrentIndirectActivityDto>(null as any);
21624
+ }
21625
+
21626
+ startIndirectActivity(request: StartIndirectActivity): Promise<void> {
21627
+ let url_ = this.baseUrl + "/mes/start-indirect-activity";
21628
+ url_ = url_.replace(/[?&]$/, "");
21629
+
21630
+ const content_ = JSON.stringify(request);
21631
+
21632
+ let options_: RequestInit = {
21633
+ body: content_,
21634
+ method: "POST",
21635
+ headers: {
21636
+ "Content-Type": "application/json",
21637
+ }
21638
+ };
21639
+
21640
+ return this.transformOptions(options_).then(transformedOptions_ => {
21641
+ return this.http.fetch(url_, transformedOptions_);
21642
+ }).then((_response: Response) => {
21643
+ return this.processStartIndirectActivity(_response);
21644
+ });
21645
+ }
21646
+
21647
+ protected processStartIndirectActivity(response: Response): Promise<void> {
21648
+ const status = response.status;
21649
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21650
+ if (status === 204) {
21651
+ return response.text().then((_responseText) => {
21652
+ return;
21653
+ });
21654
+ } else if (status !== 200 && status !== 204) {
21655
+ return response.text().then((_responseText) => {
21656
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21657
+ });
21658
+ }
21659
+ return Promise.resolve<void>(null as any);
21660
+ }
21661
+ }
21662
+
21386
21663
  export interface IMesLinksClient {
21387
21664
 
21388
21665
  addMesLink(request: AddMesLink): Promise<void>;
@@ -21693,28 +21970,26 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
21693
21970
  }
21694
21971
  }
21695
21972
 
21696
- export interface IMesPlannerClient {
21697
-
21698
- getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
21699
-
21700
- publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto>;
21701
-
21702
- updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
21973
+ export interface IMesProductionOrderAttachmentClient {
21703
21974
 
21704
- reset(resourceGroupId: string): Promise<PlannerPlanDto>;
21705
-
21706
- saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
21707
-
21708
- discardDraft(resourceGroupId: string): Promise<PlannerPlanDto>;
21975
+ /**
21976
+ * Upload a new attachment (with or without a file)
21977
+ * @param type (optional)
21978
+ * @param description (optional)
21979
+ * @param file (optional)
21980
+ * @param notes (optional)
21981
+ * @param url (optional)
21982
+ */
21983
+ upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<FileResponse>;
21709
21984
 
21710
- getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]>;
21985
+ getAttachments(id: string): Promise<WorkOrderAttachmentDto[]>;
21711
21986
 
21712
- getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto>;
21987
+ getAttachmentFile(id: string, attachmentId: number): Promise<FileResponse>;
21713
21988
 
21714
- setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus>;
21989
+ deleteAttachment(id: string, attachmentId: number): Promise<FileResponse>;
21715
21990
  }
21716
21991
 
21717
- export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerClient {
21992
+ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implements IMesProductionOrderAttachmentClient {
21718
21993
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21719
21994
  private baseUrl: string;
21720
21995
 
@@ -21724,59 +21999,82 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
21724
21999
  this.baseUrl = baseUrl ?? "";
21725
22000
  }
21726
22001
 
21727
- getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto> {
21728
- let url_ = this.baseUrl + "/mes/planner/plan?";
21729
- if (resourceGroupId === null)
21730
- throw new globalThis.Error("The parameter 'resourceGroupId' cannot be null.");
21731
- else if (resourceGroupId !== undefined)
21732
- url_ += "resourceGroupId=" + encodeURIComponent("" + resourceGroupId) + "&";
22002
+ /**
22003
+ * Upload a new attachment (with or without a file)
22004
+ * @param type (optional)
22005
+ * @param description (optional)
22006
+ * @param file (optional)
22007
+ * @param notes (optional)
22008
+ * @param url (optional)
22009
+ */
22010
+ upload(id: string, type: ProductionOrderAttachmentType | undefined, description: string | null | undefined, file: FileParameter | null | undefined, notes: string | null | undefined, url: string | null | undefined): Promise<FileResponse> {
22011
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments";
22012
+ if (id === undefined || id === null)
22013
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22014
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
21733
22015
  url_ = url_.replace(/[?&]$/, "");
21734
22016
 
22017
+ const content_ = new FormData();
22018
+ if (type === null || type === undefined)
22019
+ throw new globalThis.Error("The parameter 'type' cannot be null.");
22020
+ else
22021
+ content_.append("type", type.toString());
22022
+ if (description !== null && description !== undefined)
22023
+ content_.append("description", description.toString());
22024
+ if (file !== null && file !== undefined)
22025
+ content_.append("file", file.data, file.fileName ? file.fileName : "file");
22026
+ if (notes !== null && notes !== undefined)
22027
+ content_.append("notes", notes.toString());
22028
+ if (url !== null && url !== undefined)
22029
+ content_.append("url", url.toString());
22030
+
21735
22031
  let options_: RequestInit = {
21736
- method: "GET",
22032
+ body: content_,
22033
+ method: "POST",
21737
22034
  headers: {
21738
- "Accept": "application/json"
22035
+ "Accept": "application/octet-stream"
21739
22036
  }
21740
22037
  };
21741
22038
 
21742
22039
  return this.transformOptions(options_).then(transformedOptions_ => {
21743
22040
  return this.http.fetch(url_, transformedOptions_);
21744
22041
  }).then((_response: Response) => {
21745
- return this.processGetPlan(_response);
22042
+ return this.processUpload(_response);
21746
22043
  });
21747
22044
  }
21748
22045
 
21749
- protected processGetPlan(response: Response): Promise<PlannerPlanDto> {
22046
+ protected processUpload(response: Response): Promise<FileResponse> {
21750
22047
  const status = response.status;
21751
22048
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21752
- if (status === 200) {
21753
- return response.text().then((_responseText) => {
21754
- let result200: any = null;
21755
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
21756
- return result200;
21757
- });
22049
+ if (status === 200 || status === 206) {
22050
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22051
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22052
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22053
+ if (fileName) {
22054
+ fileName = decodeURIComponent(fileName);
22055
+ } else {
22056
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22057
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22058
+ }
22059
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
21758
22060
  } else if (status !== 200 && status !== 204) {
21759
22061
  return response.text().then((_responseText) => {
21760
22062
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21761
22063
  });
21762
22064
  }
21763
- return Promise.resolve<PlannerPlanDto>(null as any);
22065
+ return Promise.resolve<FileResponse>(null as any);
21764
22066
  }
21765
22067
 
21766
- publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto> {
21767
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
21768
- if (resourceGroupId === undefined || resourceGroupId === null)
21769
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21770
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
22068
+ getAttachments(id: string): Promise<WorkOrderAttachmentDto[]> {
22069
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments";
22070
+ if (id === undefined || id === null)
22071
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22072
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
21771
22073
  url_ = url_.replace(/[?&]$/, "");
21772
22074
 
21773
- const content_ = JSON.stringify(request);
21774
-
21775
22075
  let options_: RequestInit = {
21776
- body: content_,
21777
- method: "POST",
22076
+ method: "GET",
21778
22077
  headers: {
21779
- "Content-Type": "application/json",
21780
22078
  "Accept": "application/json"
21781
22079
  }
21782
22080
  };
@@ -21784,17 +22082,17 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
21784
22082
  return this.transformOptions(options_).then(transformedOptions_ => {
21785
22083
  return this.http.fetch(url_, transformedOptions_);
21786
22084
  }).then((_response: Response) => {
21787
- return this.processPublish(_response);
22085
+ return this.processGetAttachments(_response);
21788
22086
  });
21789
22087
  }
21790
22088
 
21791
- protected processPublish(response: Response): Promise<PlannerPlanDto> {
22089
+ protected processGetAttachments(response: Response): Promise<WorkOrderAttachmentDto[]> {
21792
22090
  const status = response.status;
21793
22091
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21794
22092
  if (status === 200) {
21795
22093
  return response.text().then((_responseText) => {
21796
22094
  let result200: any = null;
21797
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
22095
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as WorkOrderAttachmentDto[];
21798
22096
  return result200;
21799
22097
  });
21800
22098
  } else if (status !== 200 && status !== 204) {
@@ -21802,285 +22100,99 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
21802
22100
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21803
22101
  });
21804
22102
  }
21805
- return Promise.resolve<PlannerPlanDto>(null as any);
22103
+ return Promise.resolve<WorkOrderAttachmentDto[]>(null as any);
21806
22104
  }
21807
22105
 
21808
- updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
21809
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
21810
- if (resourceGroupId === undefined || resourceGroupId === null)
21811
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21812
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
21813
- url_ = url_.replace(/[?&]$/, "");
21814
-
21815
- const content_ = JSON.stringify(sequence);
21816
-
21817
- let options_: RequestInit = {
21818
- body: content_,
21819
- method: "PUT",
21820
- headers: {
21821
- "Content-Type": "application/json",
21822
- "Accept": "application/json"
21823
- }
21824
- };
21825
-
21826
- return this.transformOptions(options_).then(transformedOptions_ => {
21827
- return this.http.fetch(url_, transformedOptions_);
21828
- }).then((_response: Response) => {
21829
- return this.processUpdateSequence(_response);
21830
- });
21831
- }
21832
-
21833
- protected processUpdateSequence(response: Response): Promise<PlannerPlanDto> {
21834
- const status = response.status;
21835
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21836
- if (status === 200) {
21837
- return response.text().then((_responseText) => {
21838
- let result200: any = null;
21839
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
21840
- return result200;
21841
- });
21842
- } else if (status !== 200 && status !== 204) {
21843
- return response.text().then((_responseText) => {
21844
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21845
- });
21846
- }
21847
- return Promise.resolve<PlannerPlanDto>(null as any);
21848
- }
21849
-
21850
- reset(resourceGroupId: string): Promise<PlannerPlanDto> {
21851
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
21852
- if (resourceGroupId === undefined || resourceGroupId === null)
21853
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21854
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
22106
+ getAttachmentFile(id: string, attachmentId: number): Promise<FileResponse> {
22107
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments/{attachmentId}";
22108
+ if (id === undefined || id === null)
22109
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22110
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22111
+ if (attachmentId === undefined || attachmentId === null)
22112
+ throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
22113
+ url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
21855
22114
  url_ = url_.replace(/[?&]$/, "");
21856
22115
 
21857
22116
  let options_: RequestInit = {
21858
- method: "POST",
22117
+ method: "GET",
21859
22118
  headers: {
21860
- "Accept": "application/json"
22119
+ "Accept": "application/octet-stream"
21861
22120
  }
21862
22121
  };
21863
22122
 
21864
22123
  return this.transformOptions(options_).then(transformedOptions_ => {
21865
22124
  return this.http.fetch(url_, transformedOptions_);
21866
22125
  }).then((_response: Response) => {
21867
- return this.processReset(_response);
22126
+ return this.processGetAttachmentFile(_response);
21868
22127
  });
21869
22128
  }
21870
22129
 
21871
- protected processReset(response: Response): Promise<PlannerPlanDto> {
22130
+ protected processGetAttachmentFile(response: Response): Promise<FileResponse> {
21872
22131
  const status = response.status;
21873
22132
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21874
- if (status === 200) {
21875
- return response.text().then((_responseText) => {
21876
- let result200: any = null;
21877
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
21878
- return result200;
21879
- });
21880
- } else if (status !== 200 && status !== 204) {
21881
- return response.text().then((_responseText) => {
21882
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21883
- });
21884
- }
21885
- return Promise.resolve<PlannerPlanDto>(null as any);
21886
- }
21887
-
21888
- saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
21889
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
21890
- if (resourceGroupId === undefined || resourceGroupId === null)
21891
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21892
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
21893
- url_ = url_.replace(/[?&]$/, "");
21894
-
21895
- const content_ = JSON.stringify(sequence);
21896
-
21897
- let options_: RequestInit = {
21898
- body: content_,
21899
- method: "POST",
21900
- headers: {
21901
- "Content-Type": "application/json",
21902
- "Accept": "application/json"
22133
+ if (status === 200 || status === 206) {
22134
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22135
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22136
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22137
+ if (fileName) {
22138
+ fileName = decodeURIComponent(fileName);
22139
+ } else {
22140
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22141
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
21903
22142
  }
21904
- };
21905
-
21906
- return this.transformOptions(options_).then(transformedOptions_ => {
21907
- return this.http.fetch(url_, transformedOptions_);
21908
- }).then((_response: Response) => {
21909
- return this.processSaveDraft(_response);
21910
- });
21911
- }
21912
-
21913
- protected processSaveDraft(response: Response): Promise<PlannerPlanDto> {
21914
- const status = response.status;
21915
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21916
- if (status === 200) {
21917
- return response.text().then((_responseText) => {
21918
- let result200: any = null;
21919
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
21920
- return result200;
21921
- });
22143
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
21922
22144
  } else if (status !== 200 && status !== 204) {
21923
22145
  return response.text().then((_responseText) => {
21924
22146
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21925
22147
  });
21926
22148
  }
21927
- return Promise.resolve<PlannerPlanDto>(null as any);
22149
+ return Promise.resolve<FileResponse>(null as any);
21928
22150
  }
21929
22151
 
21930
- discardDraft(resourceGroupId: string): Promise<PlannerPlanDto> {
21931
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
21932
- if (resourceGroupId === undefined || resourceGroupId === null)
21933
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21934
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
22152
+ deleteAttachment(id: string, attachmentId: number): Promise<FileResponse> {
22153
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/attachments/{attachmentId}";
22154
+ if (id === undefined || id === null)
22155
+ throw new globalThis.Error("The parameter 'id' must be defined.");
22156
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22157
+ if (attachmentId === undefined || attachmentId === null)
22158
+ throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
22159
+ url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
21935
22160
  url_ = url_.replace(/[?&]$/, "");
21936
22161
 
21937
22162
  let options_: RequestInit = {
21938
22163
  method: "DELETE",
21939
22164
  headers: {
21940
- "Accept": "application/json"
21941
- }
21942
- };
21943
-
21944
- return this.transformOptions(options_).then(transformedOptions_ => {
21945
- return this.http.fetch(url_, transformedOptions_);
21946
- }).then((_response: Response) => {
21947
- return this.processDiscardDraft(_response);
21948
- });
21949
- }
21950
-
21951
- protected processDiscardDraft(response: Response): Promise<PlannerPlanDto> {
21952
- const status = response.status;
21953
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21954
- if (status === 200) {
21955
- return response.text().then((_responseText) => {
21956
- let result200: any = null;
21957
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
21958
- return result200;
21959
- });
21960
- } else if (status !== 200 && status !== 204) {
21961
- return response.text().then((_responseText) => {
21962
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21963
- });
21964
- }
21965
- return Promise.resolve<PlannerPlanDto>(null as any);
21966
- }
21967
-
21968
- getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]> {
21969
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
21970
- if (resourceGroupId === undefined || resourceGroupId === null)
21971
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
21972
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
21973
- url_ = url_.replace(/[?&]$/, "");
21974
-
21975
- let options_: RequestInit = {
21976
- method: "GET",
21977
- headers: {
21978
- "Accept": "application/json"
21979
- }
21980
- };
21981
-
21982
- return this.transformOptions(options_).then(transformedOptions_ => {
21983
- return this.http.fetch(url_, transformedOptions_);
21984
- }).then((_response: Response) => {
21985
- return this.processGetVersions(_response);
21986
- });
21987
- }
21988
-
21989
- protected processGetVersions(response: Response): Promise<PlannerPlanEventDto[]> {
21990
- const status = response.status;
21991
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21992
- if (status === 200) {
21993
- return response.text().then((_responseText) => {
21994
- let result200: any = null;
21995
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanEventDto[];
21996
- return result200;
21997
- });
21998
- } else if (status !== 200 && status !== 204) {
21999
- return response.text().then((_responseText) => {
22000
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22001
- });
22002
- }
22003
- return Promise.resolve<PlannerPlanEventDto[]>(null as any);
22004
- }
22005
-
22006
- getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto> {
22007
- let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions/{eventId}";
22008
- if (resourceGroupId === undefined || resourceGroupId === null)
22009
- throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
22010
- url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
22011
- if (eventId === undefined || eventId === null)
22012
- throw new globalThis.Error("The parameter 'eventId' must be defined.");
22013
- url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
22014
- url_ = url_.replace(/[?&]$/, "");
22015
-
22016
- let options_: RequestInit = {
22017
- method: "GET",
22018
- headers: {
22019
- "Accept": "application/json"
22165
+ "Accept": "application/octet-stream"
22020
22166
  }
22021
22167
  };
22022
22168
 
22023
22169
  return this.transformOptions(options_).then(transformedOptions_ => {
22024
22170
  return this.http.fetch(url_, transformedOptions_);
22025
22171
  }).then((_response: Response) => {
22026
- return this.processGetVersion(_response);
22172
+ return this.processDeleteAttachment(_response);
22027
22173
  });
22028
22174
  }
22029
22175
 
22030
- protected processGetVersion(response: Response): Promise<PlannerPlanDto> {
22176
+ protected processDeleteAttachment(response: Response): Promise<FileResponse> {
22031
22177
  const status = response.status;
22032
22178
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22033
- if (status === 200) {
22034
- return response.text().then((_responseText) => {
22035
- let result200: any = null;
22036
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
22037
- return result200;
22038
- });
22039
- } else if (status !== 200 && status !== 204) {
22040
- return response.text().then((_responseText) => {
22041
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22042
- });
22043
- }
22044
- return Promise.resolve<PlannerPlanDto>(null as any);
22045
- }
22046
-
22047
- setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus> {
22048
- let url_ = this.baseUrl + "/mes/planner/operations/program-status";
22049
- url_ = url_.replace(/[?&]$/, "");
22050
-
22051
- const content_ = JSON.stringify(command);
22052
-
22053
- let options_: RequestInit = {
22054
- body: content_,
22055
- method: "PUT",
22056
- headers: {
22057
- "Content-Type": "application/json",
22058
- "Accept": "application/json"
22179
+ if (status === 200 || status === 206) {
22180
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
22181
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
22182
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
22183
+ if (fileName) {
22184
+ fileName = decodeURIComponent(fileName);
22185
+ } else {
22186
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
22187
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
22059
22188
  }
22060
- };
22061
-
22062
- return this.transformOptions(options_).then(transformedOptions_ => {
22063
- return this.http.fetch(url_, transformedOptions_);
22064
- }).then((_response: Response) => {
22065
- return this.processSetProgramStatus(_response);
22066
- });
22067
- }
22068
-
22069
- protected processSetProgramStatus(response: Response): Promise<ProgramStatus> {
22070
- const status = response.status;
22071
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22072
- if (status === 200) {
22073
- return response.text().then((_responseText) => {
22074
- let result200: any = null;
22075
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProgramStatus;
22076
- return result200;
22077
- });
22189
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
22078
22190
  } else if (status !== 200 && status !== 204) {
22079
22191
  return response.text().then((_responseText) => {
22080
22192
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22081
22193
  });
22082
22194
  }
22083
- return Promise.resolve<ProgramStatus>(null as any);
22195
+ return Promise.resolve<FileResponse>(null as any);
22084
22196
  }
22085
22197
  }
22086
22198
 
@@ -23777,7 +23889,7 @@ export interface IInspectMatchMaterialChecksAdminClient {
23777
23889
 
23778
23890
  updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
23779
23891
 
23780
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
23892
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatusDto | undefined): Promise<ImaMaterialCheckDto>;
23781
23893
 
23782
23894
  updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
23783
23895
 
@@ -23836,7 +23948,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
23836
23948
  return Promise.resolve<ImaMaterialCheckDto>(null as any);
23837
23949
  }
23838
23950
 
23839
- updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto> {
23951
+ updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatusDto | undefined): Promise<ImaMaterialCheckDto> {
23840
23952
  let url_ = this.baseUrl + "/inspect/match/material-checks/status/{id}?";
23841
23953
  if (id === undefined || id === null)
23842
23954
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -31545,7 +31657,7 @@ export interface UpdateCalendarSettingsCommand {
31545
31657
 
31546
31658
  export interface ShiftPlansDto {
31547
31659
  active: ShiftPlanDto[];
31548
- archived: ShiftPlanDto[];
31660
+ archived: ArchivedShiftPlanDto[];
31549
31661
  }
31550
31662
 
31551
31663
  export interface ShiftPlanDto {
@@ -31557,6 +31669,28 @@ export interface ShiftPlanDto {
31557
31669
  isArchived?: boolean;
31558
31670
  }
31559
31671
 
31672
+ export interface ArchivedShiftPlanDto extends ShiftPlanDto {
31673
+ usage: ShiftSettingPeriodsDto[];
31674
+ }
31675
+
31676
+ export interface ShiftSettingPeriodsDto {
31677
+ resourceExternalId: string;
31678
+ resourceName: string;
31679
+ resourceDescription?: string | null;
31680
+ periods: ShiftSettingsPeriodDto[];
31681
+ }
31682
+
31683
+ export interface ShiftSettingsPeriodDto {
31684
+ resourceExternalId: string;
31685
+ shiftPlanId: string;
31686
+ shiftPlanName: string;
31687
+ effectiveFrom: string;
31688
+ effectiveTo?: string | null;
31689
+ targetPercent: number;
31690
+ comment?: string | null;
31691
+ hoursPerWeekday: { [key in DayOfWeek]?: number; };
31692
+ }
31693
+
31560
31694
  export interface CreateShiftPlan {
31561
31695
  name: string;
31562
31696
  hoursPerWeekday: { [key in DayOfWeek]?: number; };
@@ -31578,23 +31712,6 @@ export interface ShiftSettingsPeriodGroupDto {
31578
31712
  resources: ShiftSettingPeriodsDto[];
31579
31713
  }
31580
31714
 
31581
- export interface ShiftSettingPeriodsDto {
31582
- resourceExternalId: string;
31583
- resourceName: string;
31584
- periods: ShiftSettingsPeriodDto[];
31585
- }
31586
-
31587
- export interface ShiftSettingsPeriodDto {
31588
- resourceExternalId: string;
31589
- shiftPlanId: string;
31590
- shiftPlanName: string;
31591
- effectiveFrom: string;
31592
- effectiveTo?: string | null;
31593
- targetPercent: number;
31594
- comment?: string | null;
31595
- hoursPerWeekday: { [key in DayOfWeek]?: number; };
31596
- }
31597
-
31598
31715
  export interface AddShiftSettingPeriods {
31599
31716
  resourceExternalIds: string[];
31600
31717
  shiftPlanId: string;
@@ -31620,8 +31737,12 @@ export interface PeriodKey {
31620
31737
  }
31621
31738
 
31622
31739
  export interface CopyShiftSettingsPeriodRequest {
31623
- targetResourceExternalId: string;
31624
- effectiveFrom: string;
31740
+ sourceShiftSettingPeriods: SourceShiftSettingPeriod[];
31741
+ }
31742
+
31743
+ export interface SourceShiftSettingPeriod {
31744
+ sourceResourceExternalId: string;
31745
+ sourceEffectiveFrom: string;
31625
31746
  }
31626
31747
 
31627
31748
  export interface MigrationResultDto {
@@ -32394,6 +32515,7 @@ export interface MrbCompanySettingsDto {
32394
32515
  detailedTransactionsMissingInErp: boolean;
32395
32516
  allowMaterialReplacementOnConsumptions: boolean;
32396
32517
  nonSplittableTraceUnits: string[];
32518
+ disableTraceEditing: boolean;
32397
32519
  }
32398
32520
 
32399
32521
  export interface UpsertMrbCompanySettings {
@@ -32412,6 +32534,7 @@ export interface UpsertMrbCompanySettings {
32412
32534
  detailedTransactionsMissingInErp: boolean;
32413
32535
  allowMaterialReplacementOnConsumptions: boolean;
32414
32536
  nonSplittableTraceUnits: string[];
32537
+ disableTraceEditing: boolean;
32415
32538
  }
32416
32539
 
32417
32540
  export interface TraceDto {
@@ -33151,6 +33274,47 @@ export interface CrossCompanyUtilizationSummaryDto {
33151
33274
  companies: MachineGroupUtilizationDto[];
33152
33275
  }
33153
33276
 
33277
+ export interface LiveMachineDataDto {
33278
+ assetId?: number;
33279
+ dataPoints?: LiveMachineDataPointDto[];
33280
+ }
33281
+
33282
+ export interface LiveMachineDataPointDto {
33283
+ externalId?: string;
33284
+ timestamp?: number | null;
33285
+ numericValue?: number | null;
33286
+ stringValue?: string | null;
33287
+ }
33288
+
33289
+ export interface TimeseriesGraphDto {
33290
+ assetId?: number;
33291
+ series?: TimeseriesGraphSeriesDto[];
33292
+ }
33293
+
33294
+ export interface TimeseriesGraphSeriesDto {
33295
+ externalId?: string;
33296
+ isString?: boolean;
33297
+ dataPoints?: TimeseriesGraphDataPointDto[];
33298
+ }
33299
+
33300
+ export interface TimeseriesGraphDataPointDto {
33301
+ timestamp?: number;
33302
+ numericValue?: number | null;
33303
+ stringValue?: string | null;
33304
+ }
33305
+
33306
+ export interface ExportTimeseriesGraphRequest {
33307
+ series?: TimeseriesExportSeries[];
33308
+ startTime?: Date;
33309
+ endTime?: Date;
33310
+ }
33311
+
33312
+ export interface TimeseriesExportSeries {
33313
+ externalId?: string;
33314
+ displayName?: string | null;
33315
+ unit?: string | null;
33316
+ }
33317
+
33154
33318
  export interface LinkDto {
33155
33319
  id: string;
33156
33320
  uri: string;
@@ -33199,7 +33363,7 @@ export interface ImportDocument {
33199
33363
  lots: string[];
33200
33364
  frontPageDocumentId?: string | null;
33201
33365
  documentSource: DocumentSource;
33202
- uploadKey: string;
33366
+ uploadKey?: string | null;
33203
33367
  created?: Date | null;
33204
33368
  createdBy?: string | null;
33205
33369
  createdById?: string | null;
@@ -33235,7 +33399,8 @@ export interface ImportDocumentRevisionDto {
33235
33399
  }
33236
33400
 
33237
33401
  export interface ImportDocumentRevisionContentDto {
33238
- uploadFilename: string;
33402
+ uploadFilename?: string | null;
33403
+ sourceUrl?: string | null;
33239
33404
  originalFilename: string;
33240
33405
  extension: string;
33241
33406
  }
@@ -34971,6 +35136,22 @@ export interface EngineeringChangeOrdersDto {
34971
35136
  engineeringChangeOrders?: EngineeringChangeOrderDto[];
34972
35137
  }
34973
35138
 
35139
+ export interface IndirectActivityDto {
35140
+ activityId: string;
35141
+ name: string;
35142
+ companyId: string;
35143
+ }
35144
+
35145
+ export interface CurrentIndirectActivityDto {
35146
+ activityId?: string | null;
35147
+ personnelNumber?: string | null;
35148
+ startTime?: Date | null;
35149
+ }
35150
+
35151
+ export interface StartIndirectActivity {
35152
+ activityId: string;
35153
+ }
35154
+
34974
35155
  export interface AddMesLink {
34975
35156
  uri: string;
34976
35157
  name: string;
@@ -35019,77 +35200,18 @@ export interface LabelId {
35019
35200
  trackingId?: string | null;
35020
35201
  }
35021
35202
 
35022
- export interface PlannerPlanDto {
35023
- resourceGroupId: string;
35024
- sequence: PlannerOperationDto[];
35025
- lockedCount: number;
35026
- planSavedAt?: Date | null;
35027
- isDraft: boolean;
35028
- publishedETag?: string | null;
35029
- }
35030
-
35031
- export interface PlannerOperationDto {
35032
- id: string;
35033
- productionOrderNumber: string;
35034
- operation: number;
35035
- operationName: string;
35036
- plannedStart: Date;
35037
- plannedEnd?: Date | null;
35038
- status: OperationStatusDto;
35039
- resourceId: string;
35040
- resourceName: string;
35041
- resourceDepartmentNumber?: string | null;
35042
- resourceDepartmentName?: string | null;
35043
- partNumber: string;
35044
- partName?: string | null;
35045
- partMaterial?: string | null;
35046
- quantity: number;
35047
- producedQuantity: number;
35048
- totalPlannedHours?: number;
35049
- totalUsedHours?: number;
35050
- customerName?: string | null;
35051
- project?: WorkOrderProjectDto | null;
35052
- sequenceNumber: number;
35053
- isManuallyLocked: boolean;
35054
- weekGroup: string;
35055
- programStatus?: ProgramStatus | null;
35056
- }
35057
-
35058
- export type ProgramStatus = "Blank" | "NotOk" | "Ok";
35203
+ export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
35059
35204
 
35060
- export interface PublishPlanRequest {
35061
- /** ETag of the published plan the caller last read, used for optimistic
35062
- concurrency. Null if the caller never observed a published plan. */
35063
- publishedETag?: string | null;
35064
- comment?: string | null;
35065
- /** The caller's unsaved working sequence to publish. When null, the
35066
- persisted active plan (draft, else published) is published instead. */
35067
- sequence?: PlannerSequenceInput | null;
35068
- }
35069
-
35070
- export interface PlannerSequenceInput {
35071
- orderedOperationKeys: string[];
35072
- lockedCount: number;
35073
- weekGroups?: { [key: string]: string; } | null;
35074
- }
35075
-
35076
- export interface PlannerPlanEventDto {
35077
- id: string;
35078
- eventType: PlannerEventType;
35079
- occurredAt: Date;
35080
- by?: string | null;
35081
- comment?: string | null;
35082
- operationCount: number;
35083
- lockedCount: number;
35084
- }
35085
-
35086
- export type PlannerEventType = "Published" | "DraftSaved" | "ResetToErp" | "AutoRollover";
35087
-
35088
- export interface SetProgramStatus {
35089
- workOrderId?: string;
35090
- operationNumber?: number;
35091
- status?: ProgramStatus;
35092
- resourceId?: string;
35205
+ export interface WorkOrderAttachmentDto {
35206
+ createdBy?: UserDto | null;
35207
+ created?: Date | null;
35208
+ modifiedBy?: UserDto | null;
35209
+ modified?: Date | null;
35210
+ attachmentId?: number | null;
35211
+ name?: string | null;
35212
+ fileName?: string | null;
35213
+ notes?: string | null;
35214
+ attachmentType?: string | null;
35093
35215
  }
35094
35216
 
35095
35217
  export interface ProductionOrderDto {
@@ -35152,16 +35274,6 @@ export interface ProductionOrderOperationDto {
35152
35274
  setupStatus?: OperationStatusDto | null;
35153
35275
  }
35154
35276
 
35155
- export interface WorkOrderAttachmentDto {
35156
- createdBy?: UserDto | null;
35157
- created?: Date | null;
35158
- modifiedBy?: UserDto | null;
35159
- modified?: Date | null;
35160
- name?: string | null;
35161
- notes?: string | null;
35162
- attachmentType?: string | null;
35163
- }
35164
-
35165
35277
  export interface DrawingDto {
35166
35278
  drawingNumber: string;
35167
35279
  revision: string;
@@ -35386,7 +35498,6 @@ export interface ProductionScheduleOperationDto {
35386
35498
  materialPickStatus: MaterialPickStatus;
35387
35499
  productionStatus: OperationStatusDto;
35388
35500
  setupStatus?: OperationStatusDto | null;
35389
- programStatus?: ProgramStatus | null;
35390
35501
  }
35391
35502
 
35392
35503
  export interface SurroundingOperationDto {
@@ -35725,26 +35836,22 @@ export interface WeldingIotConfigDto {
35725
35836
  export interface CreateWeldingIotConfig {
35726
35837
  }
35727
35838
 
35728
- export interface ImaCdfEntityReadBase {
35729
- }
35730
-
35731
- export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
35732
- companyId: string;
35839
+ export interface ImaCertificateTypeDto {
35733
35840
  certificateTypeId: string;
35734
35841
  version: number;
35735
35842
  allVersions: ImaCertificateTypeVersionDto[];
35736
35843
  name: string;
35737
35844
  revision: string;
35738
- status: ImaCertificateTypeStatus;
35845
+ status: ImaCertificateTypeStatusDto;
35739
35846
  description?: string | null;
35740
35847
  isStandardCertificateType: boolean;
35741
35848
  created: Date;
35742
35849
  createdBy: string;
35743
35850
  createdById: string;
35744
- createdByName: string;
35851
+ createdByName?: string | null;
35745
35852
  updatedBy: string;
35746
35853
  updatedById: string;
35747
- updatedByName: string;
35854
+ updatedByName?: string | null;
35748
35855
  updated: Date;
35749
35856
  isDeleted: boolean;
35750
35857
  requirements: ImaCertificateTypeRequirementsDto;
@@ -35752,10 +35859,10 @@ export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
35752
35859
 
35753
35860
  export interface ImaCertificateTypeVersionDto {
35754
35861
  version?: number;
35755
- status?: ImaCertificateTypeStatus;
35862
+ status?: ImaCertificateTypeStatusDto;
35756
35863
  }
35757
35864
 
35758
- export type ImaCertificateTypeStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
35865
+ export type ImaCertificateTypeStatusDto = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
35759
35866
 
35760
35867
  export interface ImaCertificateTypeRequirementsDto {
35761
35868
  manufacturer: ImaCertificateTypeManufacturerRequirementsDto;
@@ -35768,6 +35875,9 @@ export interface ImaCertificateTypeRequirementsDto {
35768
35875
  documentTypes: ImaCertificateTypeDocumentTypesRequirementsDto;
35769
35876
  }
35770
35877
 
35878
+ export interface ImaCdfEntityReadBase {
35879
+ }
35880
+
35771
35881
  export interface ImaCertificateTypeManufacturerRequirementsDto extends ImaCdfEntityReadBase {
35772
35882
  manufacturer?: boolean;
35773
35883
  address?: boolean;
@@ -35844,7 +35954,7 @@ export interface ImaCreateOrCopyCertificateTypeRequestDto {
35844
35954
  export interface ImaUpdateImaCertificateTypeRequestDto {
35845
35955
  name?: string | null;
35846
35956
  revision?: string | null;
35847
- status?: ImaCertificateTypeStatus | null;
35957
+ status?: ImaCertificateTypeStatusDto | null;
35848
35958
  description?: string | null;
35849
35959
  requirements?: ImaCertificateTypeRequirementsUpdateDto | null;
35850
35960
  }
@@ -35927,21 +36037,21 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
35927
36037
  radiologicalReport?: boolean | null;
35928
36038
  }
35929
36039
 
35930
- export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
36040
+ export interface ImaCertificateTypeLiteDto {
35931
36041
  certificateTypeId: string;
35932
36042
  version: number;
35933
36043
  name: string;
35934
36044
  revision: string;
35935
- status: ImaCertificateTypeStatus;
36045
+ status: ImaCertificateTypeStatusDto;
35936
36046
  description?: string | null;
35937
36047
  isStandardCertificateType: boolean;
35938
36048
  created: Date;
35939
36049
  createdBy: string;
35940
36050
  createdById: string;
35941
- createdByName: string;
36051
+ createdByName?: string | null;
35942
36052
  updatedBy: string;
35943
36053
  updatedById: string;
35944
- updatedByName: string;
36054
+ updatedByName?: string | null;
35945
36055
  updated: Date;
35946
36056
  isDeleted: boolean;
35947
36057
  }
@@ -35958,27 +36068,29 @@ export interface ImaMaterialCheckDto {
35958
36068
  certificateTypeVersion?: number | null;
35959
36069
  certificateTypeName?: string | null;
35960
36070
  certificateTypeRevision?: string | null;
36071
+ certificateTypeStatus: ImaCertificateTypeStatusDto;
35961
36072
  specificationId: string;
35962
36073
  specificationVersion: number;
35963
36074
  specificationName: string;
35964
- specificationRevision: string;
35965
- specificationStatus: ImaSpecificationStatus;
35966
- certificateTypeStatus: ImaCertificateTypeStatus;
36075
+ specificationRevision?: string | null;
36076
+ specificationStatus: ImaSpecificationStatusDto;
35967
36077
  purchaseOrder?: string | null;
35968
36078
  purchaseOrderLine?: number | null;
35969
36079
  purchaseOrderVendorBatches?: string[] | null;
35970
36080
  purchaseOrderPartName?: string | null;
35971
36081
  purchaseOrderPartNumber?: string | null;
36082
+ purchaseOrderPartRevision?: string | null;
35972
36083
  purchaseOrderDrawing?: string | null;
36084
+ purchaseOrderDrawingRevision?: string | null;
35973
36085
  heatNumber?: string | null;
35974
- status: ImaMaterialCheckStatus;
36086
+ status: ImaMaterialCheckStatusDto;
35975
36087
  created: Date;
35976
36088
  createdBy: string;
35977
36089
  createdById: string;
35978
- createdByName: string;
36090
+ createdByName?: string | null;
35979
36091
  updatedBy: string;
35980
36092
  updatedById: string;
35981
- updatedByName: string;
36093
+ updatedByName?: string | null;
35982
36094
  isDeleted: boolean;
35983
36095
  reportCreatedBy?: string | null;
35984
36096
  reportCreatedById?: string | null;
@@ -35988,9 +36100,9 @@ export interface ImaMaterialCheckDto {
35988
36100
  specificationResults: ImaSpecificationResultsDto;
35989
36101
  }
35990
36102
 
35991
- export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
36103
+ export type ImaSpecificationStatusDto = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
35992
36104
 
35993
- export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
36105
+ export type ImaMaterialCheckStatusDto = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
35994
36106
 
35995
36107
  export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
35996
36108
  manufacturer: ImaCertificateTypeManufacturerResultsDto;
@@ -36111,11 +36223,11 @@ export interface ImaSpecificationResultLineDto extends ImaCdfEntityReadBase {
36111
36223
  specificationMin?: number | null;
36112
36224
  specificationMax?: number | null;
36113
36225
  readValue?: string | null;
36114
- status: ImaSpecificationResultLineStatus;
36226
+ status: ImaSpecificationResultLineStatusDto;
36115
36227
  override?: ImaResultLineOverrideDto | null;
36116
36228
  }
36117
36229
 
36118
- export type ImaSpecificationResultLineStatus = "NotFound" | "NotOk" | "Ok" | "NotSet";
36230
+ export type ImaSpecificationResultLineStatusDto = "NotFound" | "NotOk" | "Ok" | "NotSet";
36119
36231
 
36120
36232
  export interface ImaSpecificationMechanicalResultsDto extends ImaCdfEntityReadBase {
36121
36233
  yieldStrength?: ImaSpecificationResultLineDto | null;
@@ -36134,7 +36246,7 @@ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBa
36134
36246
  specificationMin?: number | null;
36135
36247
  specificationMax?: number | null;
36136
36248
  readValue?: string | null;
36137
- status: ImaSpecificationResultLineStatus;
36249
+ status: ImaSpecificationResultLineStatusDto;
36138
36250
  override?: ImaResultLineOverrideDto | null;
36139
36251
  measurementMethod?: string | null;
36140
36252
  }
@@ -36303,27 +36415,29 @@ export interface ImaMaterialCheckLiteDto {
36303
36415
  certificateTypeVersion?: number | null;
36304
36416
  certificateTypeName?: string | null;
36305
36417
  certificateTypeRevision?: string | null;
36418
+ certificateTypeStatus: ImaCertificateTypeStatusDto;
36306
36419
  specificationId: string;
36307
36420
  specificationVersion: number;
36308
36421
  specificationName: string;
36309
- specificationRevision: string;
36422
+ specificationRevision?: string | null;
36423
+ specificationStatus: ImaSpecificationStatusDto;
36310
36424
  purchaseOrder?: string | null;
36311
36425
  purchaseOrderLine?: number | null;
36312
36426
  purchaseOrderVendorBatches?: string[] | null;
36313
36427
  purchaseOrderPartName?: string | null;
36314
36428
  purchaseOrderPartNumber?: string | null;
36429
+ purchaseOrderPartRevision?: string | null;
36315
36430
  purchaseOrderDrawing?: string | null;
36431
+ purchaseOrderDrawingRevision?: string | null;
36316
36432
  heatNumber?: string | null;
36317
- status: ImaMaterialCheckStatus;
36318
- specificationStatus: ImaSpecificationStatus;
36319
- certificateTypeStatus: ImaCertificateTypeStatus;
36433
+ status: ImaMaterialCheckStatusDto;
36320
36434
  created: Date;
36321
36435
  createdBy: string;
36322
36436
  createdById: string;
36323
- createdByName: string;
36437
+ createdByName?: string | null;
36324
36438
  updatedBy: string;
36325
36439
  updatedById: string;
36326
- updatedByName: string;
36440
+ updatedByName?: string | null;
36327
36441
  isDeleted?: boolean;
36328
36442
  reportCreatedBy?: string | null;
36329
36443
  reportCreatedById?: string | null;
@@ -36350,18 +36464,18 @@ export interface ImaMaterialChecksPageRequestDto {
36350
36464
  purchaseOrderDrawingFilter?: string | null;
36351
36465
  dateFromFilter?: Date | null;
36352
36466
  dateToFilter?: Date | null;
36353
- statusFilter?: ImaMaterialCheckStatus[] | null;
36467
+ statusFilter?: ImaMaterialCheckStatusDto[] | null;
36354
36468
  continuationToken?: string | null;
36355
36469
  }
36356
36470
 
36357
36471
  export interface ImaMaterialChecksPageOrderRequestDto {
36358
- column?: ImaMaterialChecksOrderByColumn;
36359
- direction?: ImaOrderDirection;
36472
+ column?: ImaMaterialChecksOrderByColumnDto;
36473
+ direction?: ImaOrderDirectionDto;
36360
36474
  }
36361
36475
 
36362
- export type ImaMaterialChecksOrderByColumn = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
36476
+ export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
36363
36477
 
36364
- export type ImaOrderDirection = "Asc" | "Desc";
36478
+ export type ImaOrderDirectionDto = "Asc" | "Desc";
36365
36479
 
36366
36480
  export interface ProcessMaterialCertificate {
36367
36481
  files: UploadFileCdfDto[];
@@ -36481,7 +36595,7 @@ export interface ImaUpdateMatchSettingsColumnsDto {
36481
36595
  status: boolean;
36482
36596
  }
36483
36597
 
36484
- export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
36598
+ export interface ImaSpecificationDto {
36485
36599
  specificationId: string;
36486
36600
  version: number;
36487
36601
  allVersions: ImaSpecificationVersionDto[];
@@ -36489,16 +36603,16 @@ export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
36489
36603
  number: string;
36490
36604
  revision: string;
36491
36605
  date: Date;
36492
- status: ImaSpecificationStatus;
36606
+ status: ImaSpecificationStatusDto;
36493
36607
  summary?: string | null;
36494
36608
  relatedStandards: string[];
36495
36609
  created: Date;
36496
36610
  createdBy: string;
36497
36611
  createdById: string;
36498
- createdByName: string;
36612
+ createdByName?: string | null;
36499
36613
  updatedBy: string;
36500
36614
  updatedById: string;
36501
- updatedByName: string;
36615
+ updatedByName?: string | null;
36502
36616
  updated: Date;
36503
36617
  isDeleted: boolean;
36504
36618
  chemistrySpecification: ImaChemistrySpecificationDto;
@@ -36509,10 +36623,10 @@ export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
36509
36623
 
36510
36624
  export interface ImaSpecificationVersionDto {
36511
36625
  version?: number;
36512
- status?: ImaSpecificationStatus;
36626
+ status?: ImaSpecificationStatusDto;
36513
36627
  }
36514
36628
 
36515
- export interface ImaChemistrySpecificationDto extends ImaCdfEntityReadBase {
36629
+ export interface ImaChemistrySpecificationDto {
36516
36630
  carbon?: ImaSpecificationLineDto | null;
36517
36631
  manganese?: ImaSpecificationLineDto | null;
36518
36632
  silicon?: ImaSpecificationLineDto | null;
@@ -36532,7 +36646,7 @@ export interface ImaSpecificationLineDto extends ImaCdfEntityReadBase {
36532
36646
  max?: number | null;
36533
36647
  }
36534
36648
 
36535
- export interface ImaMechanicalSpecificationDto extends ImaCdfEntityReadBase {
36649
+ export interface ImaMechanicalSpecificationDto {
36536
36650
  yieldStrength?: ImaSpecificationLineDto | null;
36537
36651
  tensileStrength?: ImaSpecificationLineDto | null;
36538
36652
  elongation?: ImaSpecificationLineDto | null;
@@ -36541,31 +36655,31 @@ export interface ImaMechanicalSpecificationDto extends ImaCdfEntityReadBase {
36541
36655
  hardness?: ImaSpecificationLineDto | null;
36542
36656
  }
36543
36657
 
36544
- export interface ImaFerriteSpecificationDto extends ImaCdfEntityReadBase {
36658
+ export interface ImaFerriteSpecificationDto {
36545
36659
  ferriteContent?: ImaSpecificationLineDto | null;
36546
36660
  }
36547
36661
 
36548
- export interface ImaHeatTreatmentSpecificationDto extends ImaCdfEntityReadBase {
36662
+ export interface ImaHeatTreatmentSpecificationDto {
36549
36663
  step: number;
36550
36664
  cooling?: ImaHeatTreatmentSpecificationCoolingDto | null;
36551
36665
  heating?: ImaHeatTreatmentSpecificationHeatingDto | null;
36552
36666
  }
36553
36667
 
36554
- export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityReadBase {
36555
- coolingMethods: ImaHeatTreatmentCoolingMethod[];
36668
+ export interface ImaHeatTreatmentSpecificationCoolingDto {
36669
+ coolingMethods: ImaHeatTreatmentCoolingMethodDto[];
36556
36670
  temperature?: ImaSpecificationLineDto | null;
36557
36671
  duration?: ImaSpecificationLineDto | null;
36558
36672
  }
36559
36673
 
36560
- export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
36674
+ export type ImaHeatTreatmentCoolingMethodDto = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
36561
36675
 
36562
- export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
36563
- heatingMethod: ImaHeatTreatmentHeatingMethod;
36676
+ export interface ImaHeatTreatmentSpecificationHeatingDto {
36677
+ heatingMethod: ImaHeatTreatmentHeatingMethodDto;
36564
36678
  temperature?: ImaSpecificationLineDto | null;
36565
36679
  duration?: ImaSpecificationLineDto | null;
36566
36680
  }
36567
36681
 
36568
- export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
36682
+ export type ImaHeatTreatmentHeatingMethodDto = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
36569
36683
 
36570
36684
  export interface ImaCreateSpecificationRequestDto {
36571
36685
  name: string;
@@ -36585,7 +36699,7 @@ export interface ImaCopySpecificationRequestDto {
36585
36699
  export interface ImaUpdateSpecificationDto {
36586
36700
  name?: string | null;
36587
36701
  number?: string | null;
36588
- status?: ImaSpecificationStatus | null;
36702
+ status?: ImaSpecificationStatusDto | null;
36589
36703
  summary?: string | null;
36590
36704
  relatedStandards?: string[] | null;
36591
36705
  chemistrySpecification?: ImaChemistrySpecificationDto | null;
@@ -36594,23 +36708,24 @@ export interface ImaUpdateSpecificationDto {
36594
36708
  heatSpecifications?: ImaHeatTreatmentSpecificationDto[] | null;
36595
36709
  }
36596
36710
 
36597
- export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
36711
+ export interface ImaSpecificationLiteDto {
36598
36712
  specificationId: string;
36599
36713
  version: number;
36600
36714
  name: string;
36601
36715
  number: string;
36602
36716
  revision: string;
36603
36717
  date: Date;
36604
- status: ImaSpecificationStatus;
36718
+ status: ImaSpecificationStatusDto;
36605
36719
  summary?: string | null;
36606
36720
  relatedStandards: string[];
36607
36721
  created: Date;
36608
36722
  createdBy: string;
36609
36723
  createdById: string;
36610
- createdByName: string;
36724
+ createdByName?: string | null;
36611
36725
  updatedBy: string;
36612
36726
  updatedById: string;
36613
- updatedByName: string;
36727
+ updatedByName?: string | null;
36728
+ updated: Date;
36614
36729
  isDeleted: boolean;
36615
36730
  }
36616
36731
 
@@ -37813,7 +37928,6 @@ export interface WorkorderDiscussionMessageDto {
37813
37928
  operationName?: string | null;
37814
37929
  resourceId?: string | null;
37815
37930
  created?: Date;
37816
- visibility?: DiscussionVisibility;
37817
37931
  }
37818
37932
 
37819
37933
  export interface WorkOrderDiscussionContent {
@@ -37823,14 +37937,11 @@ export interface WorkOrderDiscussionContent {
37823
37937
 
37824
37938
  export type WorkOrderDiscussionContentType = 0 | 1;
37825
37939
 
37826
- export type DiscussionVisibility = "Public" | "Planner";
37827
-
37828
37940
  export interface AddDiscussionMessageRequest {
37829
37941
  message: string;
37830
37942
  operationId?: string | null;
37831
37943
  operationName?: string | null;
37832
37944
  resourceId?: string | null;
37833
- visibility?: DiscussionVisibility;
37834
37945
  }
37835
37946
 
37836
37947
  export interface WorkorderDiscussionReadStatusDto {