@ignos/api-client 20260715.186.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.
- package/lib/ignosportal-api.d.ts +222 -200
- package/lib/ignosportal-api.js +339 -293
- package/package.json +1 -1
- package/src/ignosportal-api.ts +563 -506
package/src/ignosportal-api.ts
CHANGED
|
@@ -4662,7 +4662,7 @@ export interface IKpiAdminResourceClient {
|
|
|
4662
4662
|
|
|
4663
4663
|
updateShiftSettingsPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
4664
4664
|
|
|
4665
|
-
copyShiftSettingsPeriod(
|
|
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(
|
|
5225
|
-
let url_ = this.baseUrl + "/kpiadminresource/shift-settings/{
|
|
5226
|
-
if (
|
|
5227
|
-
throw new globalThis.Error("The parameter '
|
|
5228
|
-
url_ = url_.replace("{
|
|
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,30 +21970,26 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21693
21970
|
}
|
|
21694
21971
|
}
|
|
21695
21972
|
|
|
21696
|
-
export interface
|
|
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
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
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>;
|
|
21711
21984
|
|
|
21712
|
-
|
|
21985
|
+
getAttachments(id: string): Promise<WorkOrderAttachmentDto[]>;
|
|
21713
21986
|
|
|
21714
|
-
|
|
21987
|
+
getAttachmentFile(id: string, attachmentId: number): Promise<FileResponse>;
|
|
21715
21988
|
|
|
21716
|
-
|
|
21989
|
+
deleteAttachment(id: string, attachmentId: number): Promise<FileResponse>;
|
|
21717
21990
|
}
|
|
21718
21991
|
|
|
21719
|
-
export class
|
|
21992
|
+
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implements IMesProductionOrderAttachmentClient {
|
|
21720
21993
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21721
21994
|
private baseUrl: string;
|
|
21722
21995
|
|
|
@@ -21726,218 +21999,81 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
|
|
|
21726
21999
|
this.baseUrl = baseUrl ?? "";
|
|
21727
22000
|
}
|
|
21728
22001
|
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
};
|
|
21743
|
-
|
|
21744
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21745
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21746
|
-
}).then((_response: Response) => {
|
|
21747
|
-
return this.processGetPlan(_response);
|
|
21748
|
-
});
|
|
21749
|
-
}
|
|
21750
|
-
|
|
21751
|
-
protected processGetPlan(response: Response): Promise<PlannerPlanDto> {
|
|
21752
|
-
const status = response.status;
|
|
21753
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21754
|
-
if (status === 200) {
|
|
21755
|
-
return response.text().then((_responseText) => {
|
|
21756
|
-
let result200: any = null;
|
|
21757
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21758
|
-
return result200;
|
|
21759
|
-
});
|
|
21760
|
-
} else if (status !== 200 && status !== 204) {
|
|
21761
|
-
return response.text().then((_responseText) => {
|
|
21762
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21763
|
-
});
|
|
21764
|
-
}
|
|
21765
|
-
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21766
|
-
}
|
|
21767
|
-
|
|
21768
|
-
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto> {
|
|
21769
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
|
|
21770
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
21771
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
21772
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
21773
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21774
|
-
|
|
21775
|
-
const content_ = JSON.stringify(request);
|
|
21776
|
-
|
|
21777
|
-
let options_: RequestInit = {
|
|
21778
|
-
body: content_,
|
|
21779
|
-
method: "POST",
|
|
21780
|
-
headers: {
|
|
21781
|
-
"Content-Type": "application/json",
|
|
21782
|
-
"Accept": "application/json"
|
|
21783
|
-
}
|
|
21784
|
-
};
|
|
21785
|
-
|
|
21786
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21787
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21788
|
-
}).then((_response: Response) => {
|
|
21789
|
-
return this.processPublish(_response);
|
|
21790
|
-
});
|
|
21791
|
-
}
|
|
21792
|
-
|
|
21793
|
-
protected processPublish(response: Response): Promise<PlannerPlanDto> {
|
|
21794
|
-
const status = response.status;
|
|
21795
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21796
|
-
if (status === 200) {
|
|
21797
|
-
return response.text().then((_responseText) => {
|
|
21798
|
-
let result200: any = null;
|
|
21799
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21800
|
-
return result200;
|
|
21801
|
-
});
|
|
21802
|
-
} else if (status !== 200 && status !== 204) {
|
|
21803
|
-
return response.text().then((_responseText) => {
|
|
21804
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21805
|
-
});
|
|
21806
|
-
}
|
|
21807
|
-
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21808
|
-
}
|
|
21809
|
-
|
|
21810
|
-
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
|
|
21811
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
|
|
21812
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
21813
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
21814
|
-
url_ = url_.replace("{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));
|
|
21815
22015
|
url_ = url_.replace(/[?&]$/, "");
|
|
21816
22016
|
|
|
21817
|
-
const content_ =
|
|
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());
|
|
21818
22030
|
|
|
21819
22031
|
let options_: RequestInit = {
|
|
21820
22032
|
body: content_,
|
|
21821
|
-
method: "PUT",
|
|
21822
|
-
headers: {
|
|
21823
|
-
"Content-Type": "application/json",
|
|
21824
|
-
"Accept": "application/json"
|
|
21825
|
-
}
|
|
21826
|
-
};
|
|
21827
|
-
|
|
21828
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21829
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21830
|
-
}).then((_response: Response) => {
|
|
21831
|
-
return this.processUpdateSequence(_response);
|
|
21832
|
-
});
|
|
21833
|
-
}
|
|
21834
|
-
|
|
21835
|
-
protected processUpdateSequence(response: Response): Promise<PlannerPlanDto> {
|
|
21836
|
-
const status = response.status;
|
|
21837
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21838
|
-
if (status === 200) {
|
|
21839
|
-
return response.text().then((_responseText) => {
|
|
21840
|
-
let result200: any = null;
|
|
21841
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21842
|
-
return result200;
|
|
21843
|
-
});
|
|
21844
|
-
} else if (status !== 200 && status !== 204) {
|
|
21845
|
-
return response.text().then((_responseText) => {
|
|
21846
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21847
|
-
});
|
|
21848
|
-
}
|
|
21849
|
-
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21850
|
-
}
|
|
21851
|
-
|
|
21852
|
-
reset(resourceGroupId: string): Promise<PlannerPlanDto> {
|
|
21853
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
|
|
21854
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
21855
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
21856
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
21857
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21858
|
-
|
|
21859
|
-
let options_: RequestInit = {
|
|
21860
22033
|
method: "POST",
|
|
21861
22034
|
headers: {
|
|
21862
|
-
"Accept": "application/
|
|
22035
|
+
"Accept": "application/octet-stream"
|
|
21863
22036
|
}
|
|
21864
22037
|
};
|
|
21865
22038
|
|
|
21866
22039
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21867
22040
|
return this.http.fetch(url_, transformedOptions_);
|
|
21868
22041
|
}).then((_response: Response) => {
|
|
21869
|
-
return this.
|
|
22042
|
+
return this.processUpload(_response);
|
|
21870
22043
|
});
|
|
21871
22044
|
}
|
|
21872
22045
|
|
|
21873
|
-
protected
|
|
22046
|
+
protected processUpload(response: Response): Promise<FileResponse> {
|
|
21874
22047
|
const status = response.status;
|
|
21875
22048
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21876
|
-
if (status === 200) {
|
|
21877
|
-
|
|
21878
|
-
let
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
});
|
|
21886
|
-
}
|
|
21887
|
-
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21888
|
-
}
|
|
21889
|
-
|
|
21890
|
-
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
|
|
21891
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
21892
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
21893
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
21894
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
21895
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21896
|
-
|
|
21897
|
-
const content_ = JSON.stringify(sequence);
|
|
21898
|
-
|
|
21899
|
-
let options_: RequestInit = {
|
|
21900
|
-
body: content_,
|
|
21901
|
-
method: "POST",
|
|
21902
|
-
headers: {
|
|
21903
|
-
"Content-Type": "application/json",
|
|
21904
|
-
"Accept": "application/json"
|
|
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;
|
|
21905
22058
|
}
|
|
21906
|
-
|
|
21907
|
-
|
|
21908
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21909
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21910
|
-
}).then((_response: Response) => {
|
|
21911
|
-
return this.processSaveDraft(_response);
|
|
21912
|
-
});
|
|
21913
|
-
}
|
|
21914
|
-
|
|
21915
|
-
protected processSaveDraft(response: Response): Promise<PlannerPlanDto> {
|
|
21916
|
-
const status = response.status;
|
|
21917
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21918
|
-
if (status === 200) {
|
|
21919
|
-
return response.text().then((_responseText) => {
|
|
21920
|
-
let result200: any = null;
|
|
21921
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21922
|
-
return result200;
|
|
21923
|
-
});
|
|
22059
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
21924
22060
|
} else if (status !== 200 && status !== 204) {
|
|
21925
22061
|
return response.text().then((_responseText) => {
|
|
21926
22062
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21927
22063
|
});
|
|
21928
22064
|
}
|
|
21929
|
-
return Promise.resolve<
|
|
22065
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
21930
22066
|
}
|
|
21931
22067
|
|
|
21932
|
-
|
|
21933
|
-
let url_ = this.baseUrl + "/mes/
|
|
21934
|
-
if (
|
|
21935
|
-
throw new globalThis.Error("The parameter '
|
|
21936
|
-
url_ = url_.replace("{
|
|
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));
|
|
21937
22073
|
url_ = url_.replace(/[?&]$/, "");
|
|
21938
22074
|
|
|
21939
22075
|
let options_: RequestInit = {
|
|
21940
|
-
method: "
|
|
22076
|
+
method: "GET",
|
|
21941
22077
|
headers: {
|
|
21942
22078
|
"Accept": "application/json"
|
|
21943
22079
|
}
|
|
@@ -21946,17 +22082,17 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
|
|
|
21946
22082
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21947
22083
|
return this.http.fetch(url_, transformedOptions_);
|
|
21948
22084
|
}).then((_response: Response) => {
|
|
21949
|
-
return this.
|
|
22085
|
+
return this.processGetAttachments(_response);
|
|
21950
22086
|
});
|
|
21951
22087
|
}
|
|
21952
22088
|
|
|
21953
|
-
protected
|
|
22089
|
+
protected processGetAttachments(response: Response): Promise<WorkOrderAttachmentDto[]> {
|
|
21954
22090
|
const status = response.status;
|
|
21955
22091
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21956
22092
|
if (status === 200) {
|
|
21957
22093
|
return response.text().then((_responseText) => {
|
|
21958
22094
|
let result200: any = null;
|
|
21959
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
22095
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as WorkOrderAttachmentDto[];
|
|
21960
22096
|
return result200;
|
|
21961
22097
|
});
|
|
21962
22098
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -21964,171 +22100,99 @@ export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerCl
|
|
|
21964
22100
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21965
22101
|
});
|
|
21966
22102
|
}
|
|
21967
|
-
return Promise.resolve<
|
|
22103
|
+
return Promise.resolve<WorkOrderAttachmentDto[]>(null as any);
|
|
21968
22104
|
}
|
|
21969
22105
|
|
|
21970
|
-
|
|
21971
|
-
let url_ = this.baseUrl + "/mes/
|
|
21972
|
-
if (
|
|
21973
|
-
throw new globalThis.Error("The parameter '
|
|
21974
|
-
url_ = url_.replace("{
|
|
21975
|
-
if (
|
|
21976
|
-
throw new globalThis.Error("The parameter '
|
|
21977
|
-
|
|
21978
|
-
url_ += "from=" + encodeURIComponent(from ? "" + from.toISOString() : "") + "&";
|
|
21979
|
-
if (to === null)
|
|
21980
|
-
throw new globalThis.Error("The parameter 'to' cannot be null.");
|
|
21981
|
-
else if (to !== undefined)
|
|
21982
|
-
url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
|
|
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));
|
|
21983
22114
|
url_ = url_.replace(/[?&]$/, "");
|
|
21984
22115
|
|
|
21985
22116
|
let options_: RequestInit = {
|
|
21986
22117
|
method: "GET",
|
|
21987
22118
|
headers: {
|
|
21988
|
-
"Accept": "application/
|
|
22119
|
+
"Accept": "application/octet-stream"
|
|
21989
22120
|
}
|
|
21990
22121
|
};
|
|
21991
22122
|
|
|
21992
22123
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21993
22124
|
return this.http.fetch(url_, transformedOptions_);
|
|
21994
22125
|
}).then((_response: Response) => {
|
|
21995
|
-
return this.
|
|
22126
|
+
return this.processGetAttachmentFile(_response);
|
|
21996
22127
|
});
|
|
21997
22128
|
}
|
|
21998
22129
|
|
|
21999
|
-
protected
|
|
22130
|
+
protected processGetAttachmentFile(response: Response): Promise<FileResponse> {
|
|
22000
22131
|
const status = response.status;
|
|
22001
22132
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22002
|
-
if (status === 200) {
|
|
22003
|
-
|
|
22004
|
-
let
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
});
|
|
22012
|
-
}
|
|
22013
|
-
return Promise.resolve<WeekCapacityDto[]>(null as any);
|
|
22014
|
-
}
|
|
22015
|
-
|
|
22016
|
-
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]> {
|
|
22017
|
-
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
|
|
22018
|
-
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22019
|
-
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22020
|
-
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22021
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22022
|
-
|
|
22023
|
-
let options_: RequestInit = {
|
|
22024
|
-
method: "GET",
|
|
22025
|
-
headers: {
|
|
22026
|
-
"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;
|
|
22027
22142
|
}
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22031
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22032
|
-
}).then((_response: Response) => {
|
|
22033
|
-
return this.processGetVersions(_response);
|
|
22034
|
-
});
|
|
22035
|
-
}
|
|
22036
|
-
|
|
22037
|
-
protected processGetVersions(response: Response): Promise<PlannerPlanEventDto[]> {
|
|
22038
|
-
const status = response.status;
|
|
22039
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22040
|
-
if (status === 200) {
|
|
22041
|
-
return response.text().then((_responseText) => {
|
|
22042
|
-
let result200: any = null;
|
|
22043
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanEventDto[];
|
|
22044
|
-
return result200;
|
|
22045
|
-
});
|
|
22143
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22046
22144
|
} else if (status !== 200 && status !== 204) {
|
|
22047
22145
|
return response.text().then((_responseText) => {
|
|
22048
22146
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22049
22147
|
});
|
|
22050
22148
|
}
|
|
22051
|
-
return Promise.resolve<
|
|
22149
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
22052
22150
|
}
|
|
22053
22151
|
|
|
22054
|
-
|
|
22055
|
-
let url_ = this.baseUrl + "/mes/
|
|
22056
|
-
if (
|
|
22057
|
-
throw new globalThis.Error("The parameter '
|
|
22058
|
-
url_ = url_.replace("{
|
|
22059
|
-
if (
|
|
22060
|
-
throw new globalThis.Error("The parameter '
|
|
22061
|
-
url_ = url_.replace("{
|
|
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));
|
|
22062
22160
|
url_ = url_.replace(/[?&]$/, "");
|
|
22063
22161
|
|
|
22064
22162
|
let options_: RequestInit = {
|
|
22065
|
-
method: "
|
|
22163
|
+
method: "DELETE",
|
|
22066
22164
|
headers: {
|
|
22067
|
-
"Accept": "application/
|
|
22165
|
+
"Accept": "application/octet-stream"
|
|
22068
22166
|
}
|
|
22069
22167
|
};
|
|
22070
22168
|
|
|
22071
22169
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22072
22170
|
return this.http.fetch(url_, transformedOptions_);
|
|
22073
22171
|
}).then((_response: Response) => {
|
|
22074
|
-
return this.
|
|
22172
|
+
return this.processDeleteAttachment(_response);
|
|
22075
22173
|
});
|
|
22076
22174
|
}
|
|
22077
22175
|
|
|
22078
|
-
protected
|
|
22176
|
+
protected processDeleteAttachment(response: Response): Promise<FileResponse> {
|
|
22079
22177
|
const status = response.status;
|
|
22080
22178
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22081
|
-
if (status === 200) {
|
|
22082
|
-
|
|
22083
|
-
let
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
});
|
|
22091
|
-
}
|
|
22092
|
-
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22093
|
-
}
|
|
22094
|
-
|
|
22095
|
-
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus> {
|
|
22096
|
-
let url_ = this.baseUrl + "/mes/planner/operations/program-status";
|
|
22097
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22098
|
-
|
|
22099
|
-
const content_ = JSON.stringify(command);
|
|
22100
|
-
|
|
22101
|
-
let options_: RequestInit = {
|
|
22102
|
-
body: content_,
|
|
22103
|
-
method: "PUT",
|
|
22104
|
-
headers: {
|
|
22105
|
-
"Content-Type": "application/json",
|
|
22106
|
-
"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;
|
|
22107
22188
|
}
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22111
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22112
|
-
}).then((_response: Response) => {
|
|
22113
|
-
return this.processSetProgramStatus(_response);
|
|
22114
|
-
});
|
|
22115
|
-
}
|
|
22116
|
-
|
|
22117
|
-
protected processSetProgramStatus(response: Response): Promise<ProgramStatus> {
|
|
22118
|
-
const status = response.status;
|
|
22119
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22120
|
-
if (status === 200) {
|
|
22121
|
-
return response.text().then((_responseText) => {
|
|
22122
|
-
let result200: any = null;
|
|
22123
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProgramStatus;
|
|
22124
|
-
return result200;
|
|
22125
|
-
});
|
|
22189
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22126
22190
|
} else if (status !== 200 && status !== 204) {
|
|
22127
22191
|
return response.text().then((_responseText) => {
|
|
22128
22192
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22129
22193
|
});
|
|
22130
22194
|
}
|
|
22131
|
-
return Promise.resolve<
|
|
22195
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
22132
22196
|
}
|
|
22133
22197
|
}
|
|
22134
22198
|
|
|
@@ -23825,7 +23889,7 @@ export interface IInspectMatchMaterialChecksAdminClient {
|
|
|
23825
23889
|
|
|
23826
23890
|
updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
|
|
23827
23891
|
|
|
23828
|
-
updateMaterialCheckStatus(id: string, status:
|
|
23892
|
+
updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatusDto | undefined): Promise<ImaMaterialCheckDto>;
|
|
23829
23893
|
|
|
23830
23894
|
updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
|
|
23831
23895
|
|
|
@@ -23884,7 +23948,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
|
|
|
23884
23948
|
return Promise.resolve<ImaMaterialCheckDto>(null as any);
|
|
23885
23949
|
}
|
|
23886
23950
|
|
|
23887
|
-
updateMaterialCheckStatus(id: string, status:
|
|
23951
|
+
updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatusDto | undefined): Promise<ImaMaterialCheckDto> {
|
|
23888
23952
|
let url_ = this.baseUrl + "/inspect/match/material-checks/status/{id}?";
|
|
23889
23953
|
if (id === undefined || id === null)
|
|
23890
23954
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -31593,7 +31657,7 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
31593
31657
|
|
|
31594
31658
|
export interface ShiftPlansDto {
|
|
31595
31659
|
active: ShiftPlanDto[];
|
|
31596
|
-
archived:
|
|
31660
|
+
archived: ArchivedShiftPlanDto[];
|
|
31597
31661
|
}
|
|
31598
31662
|
|
|
31599
31663
|
export interface ShiftPlanDto {
|
|
@@ -31605,6 +31669,28 @@ export interface ShiftPlanDto {
|
|
|
31605
31669
|
isArchived?: boolean;
|
|
31606
31670
|
}
|
|
31607
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
|
+
|
|
31608
31694
|
export interface CreateShiftPlan {
|
|
31609
31695
|
name: string;
|
|
31610
31696
|
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
@@ -31626,23 +31712,6 @@ export interface ShiftSettingsPeriodGroupDto {
|
|
|
31626
31712
|
resources: ShiftSettingPeriodsDto[];
|
|
31627
31713
|
}
|
|
31628
31714
|
|
|
31629
|
-
export interface ShiftSettingPeriodsDto {
|
|
31630
|
-
resourceExternalId: string;
|
|
31631
|
-
resourceName: string;
|
|
31632
|
-
periods: ShiftSettingsPeriodDto[];
|
|
31633
|
-
}
|
|
31634
|
-
|
|
31635
|
-
export interface ShiftSettingsPeriodDto {
|
|
31636
|
-
resourceExternalId: string;
|
|
31637
|
-
shiftPlanId: string;
|
|
31638
|
-
shiftPlanName: string;
|
|
31639
|
-
effectiveFrom: string;
|
|
31640
|
-
effectiveTo?: string | null;
|
|
31641
|
-
targetPercent: number;
|
|
31642
|
-
comment?: string | null;
|
|
31643
|
-
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
31644
|
-
}
|
|
31645
|
-
|
|
31646
31715
|
export interface AddShiftSettingPeriods {
|
|
31647
31716
|
resourceExternalIds: string[];
|
|
31648
31717
|
shiftPlanId: string;
|
|
@@ -31668,8 +31737,12 @@ export interface PeriodKey {
|
|
|
31668
31737
|
}
|
|
31669
31738
|
|
|
31670
31739
|
export interface CopyShiftSettingsPeriodRequest {
|
|
31671
|
-
|
|
31672
|
-
|
|
31740
|
+
sourceShiftSettingPeriods: SourceShiftSettingPeriod[];
|
|
31741
|
+
}
|
|
31742
|
+
|
|
31743
|
+
export interface SourceShiftSettingPeriod {
|
|
31744
|
+
sourceResourceExternalId: string;
|
|
31745
|
+
sourceEffectiveFrom: string;
|
|
31673
31746
|
}
|
|
31674
31747
|
|
|
31675
31748
|
export interface MigrationResultDto {
|
|
@@ -32442,6 +32515,7 @@ export interface MrbCompanySettingsDto {
|
|
|
32442
32515
|
detailedTransactionsMissingInErp: boolean;
|
|
32443
32516
|
allowMaterialReplacementOnConsumptions: boolean;
|
|
32444
32517
|
nonSplittableTraceUnits: string[];
|
|
32518
|
+
disableTraceEditing: boolean;
|
|
32445
32519
|
}
|
|
32446
32520
|
|
|
32447
32521
|
export interface UpsertMrbCompanySettings {
|
|
@@ -32460,6 +32534,7 @@ export interface UpsertMrbCompanySettings {
|
|
|
32460
32534
|
detailedTransactionsMissingInErp: boolean;
|
|
32461
32535
|
allowMaterialReplacementOnConsumptions: boolean;
|
|
32462
32536
|
nonSplittableTraceUnits: string[];
|
|
32537
|
+
disableTraceEditing: boolean;
|
|
32463
32538
|
}
|
|
32464
32539
|
|
|
32465
32540
|
export interface TraceDto {
|
|
@@ -33199,6 +33274,47 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
33199
33274
|
companies: MachineGroupUtilizationDto[];
|
|
33200
33275
|
}
|
|
33201
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
|
+
|
|
33202
33318
|
export interface LinkDto {
|
|
33203
33319
|
id: string;
|
|
33204
33320
|
uri: string;
|
|
@@ -33247,7 +33363,7 @@ export interface ImportDocument {
|
|
|
33247
33363
|
lots: string[];
|
|
33248
33364
|
frontPageDocumentId?: string | null;
|
|
33249
33365
|
documentSource: DocumentSource;
|
|
33250
|
-
uploadKey
|
|
33366
|
+
uploadKey?: string | null;
|
|
33251
33367
|
created?: Date | null;
|
|
33252
33368
|
createdBy?: string | null;
|
|
33253
33369
|
createdById?: string | null;
|
|
@@ -33283,7 +33399,8 @@ export interface ImportDocumentRevisionDto {
|
|
|
33283
33399
|
}
|
|
33284
33400
|
|
|
33285
33401
|
export interface ImportDocumentRevisionContentDto {
|
|
33286
|
-
uploadFilename
|
|
33402
|
+
uploadFilename?: string | null;
|
|
33403
|
+
sourceUrl?: string | null;
|
|
33287
33404
|
originalFilename: string;
|
|
33288
33405
|
extension: string;
|
|
33289
33406
|
}
|
|
@@ -35019,6 +35136,22 @@ export interface EngineeringChangeOrdersDto {
|
|
|
35019
35136
|
engineeringChangeOrders?: EngineeringChangeOrderDto[];
|
|
35020
35137
|
}
|
|
35021
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
|
+
|
|
35022
35155
|
export interface AddMesLink {
|
|
35023
35156
|
uri: string;
|
|
35024
35157
|
name: string;
|
|
@@ -35067,83 +35200,18 @@ export interface LabelId {
|
|
|
35067
35200
|
trackingId?: string | null;
|
|
35068
35201
|
}
|
|
35069
35202
|
|
|
35070
|
-
export
|
|
35071
|
-
resourceGroupId: string;
|
|
35072
|
-
sequence: PlannerOperationDto[];
|
|
35073
|
-
lockedCount: number;
|
|
35074
|
-
planSavedAt?: Date | null;
|
|
35075
|
-
isDraft: boolean;
|
|
35076
|
-
publishedETag?: string | null;
|
|
35077
|
-
}
|
|
35078
|
-
|
|
35079
|
-
export interface PlannerOperationDto {
|
|
35080
|
-
id: string;
|
|
35081
|
-
productionOrderNumber: string;
|
|
35082
|
-
operation: number;
|
|
35083
|
-
operationName: string;
|
|
35084
|
-
plannedStart: Date;
|
|
35085
|
-
plannedEnd?: Date | null;
|
|
35086
|
-
status: OperationStatusDto;
|
|
35087
|
-
resourceId: string;
|
|
35088
|
-
resourceName: string;
|
|
35089
|
-
resourceDepartmentNumber?: string | null;
|
|
35090
|
-
resourceDepartmentName?: string | null;
|
|
35091
|
-
partNumber: string;
|
|
35092
|
-
partName?: string | null;
|
|
35093
|
-
partMaterial?: string | null;
|
|
35094
|
-
quantity: number;
|
|
35095
|
-
producedQuantity: number;
|
|
35096
|
-
totalPlannedHours?: number;
|
|
35097
|
-
totalUsedHours?: number;
|
|
35098
|
-
customerName?: string | null;
|
|
35099
|
-
project?: WorkOrderProjectDto | null;
|
|
35100
|
-
sequenceNumber: number;
|
|
35101
|
-
isManuallyLocked: boolean;
|
|
35102
|
-
weekGroup: string;
|
|
35103
|
-
programStatus?: ProgramStatus | null;
|
|
35104
|
-
}
|
|
35105
|
-
|
|
35106
|
-
export type ProgramStatus = "Blank" | "NotOk" | "Ok";
|
|
35203
|
+
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
35107
35204
|
|
|
35108
|
-
export interface
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
-
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35115
|
-
|
|
35116
|
-
|
|
35117
|
-
|
|
35118
|
-
export interface PlannerSequenceInput {
|
|
35119
|
-
orderedOperationKeys: string[];
|
|
35120
|
-
lockedCount: number;
|
|
35121
|
-
weekGroups?: { [key: string]: string; } | null;
|
|
35122
|
-
}
|
|
35123
|
-
|
|
35124
|
-
export interface WeekCapacityDto {
|
|
35125
|
-
weekGroup: string;
|
|
35126
|
-
weekStart: Date;
|
|
35127
|
-
capacityHours: number;
|
|
35128
|
-
}
|
|
35129
|
-
|
|
35130
|
-
export interface PlannerPlanEventDto {
|
|
35131
|
-
id: string;
|
|
35132
|
-
eventType: PlannerEventType;
|
|
35133
|
-
occurredAt: Date;
|
|
35134
|
-
by?: string | null;
|
|
35135
|
-
comment?: string | null;
|
|
35136
|
-
operationCount: number;
|
|
35137
|
-
lockedCount: number;
|
|
35138
|
-
}
|
|
35139
|
-
|
|
35140
|
-
export type PlannerEventType = "Published" | "DraftSaved" | "ResetToErp" | "AutoRollover";
|
|
35141
|
-
|
|
35142
|
-
export interface SetProgramStatus {
|
|
35143
|
-
workOrderId?: string;
|
|
35144
|
-
operationNumber?: number;
|
|
35145
|
-
status?: ProgramStatus;
|
|
35146
|
-
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;
|
|
35147
35215
|
}
|
|
35148
35216
|
|
|
35149
35217
|
export interface ProductionOrderDto {
|
|
@@ -35206,16 +35274,6 @@ export interface ProductionOrderOperationDto {
|
|
|
35206
35274
|
setupStatus?: OperationStatusDto | null;
|
|
35207
35275
|
}
|
|
35208
35276
|
|
|
35209
|
-
export interface WorkOrderAttachmentDto {
|
|
35210
|
-
createdBy?: UserDto | null;
|
|
35211
|
-
created?: Date | null;
|
|
35212
|
-
modifiedBy?: UserDto | null;
|
|
35213
|
-
modified?: Date | null;
|
|
35214
|
-
name?: string | null;
|
|
35215
|
-
notes?: string | null;
|
|
35216
|
-
attachmentType?: string | null;
|
|
35217
|
-
}
|
|
35218
|
-
|
|
35219
35277
|
export interface DrawingDto {
|
|
35220
35278
|
drawingNumber: string;
|
|
35221
35279
|
revision: string;
|
|
@@ -35440,7 +35498,6 @@ export interface ProductionScheduleOperationDto {
|
|
|
35440
35498
|
materialPickStatus: MaterialPickStatus;
|
|
35441
35499
|
productionStatus: OperationStatusDto;
|
|
35442
35500
|
setupStatus?: OperationStatusDto | null;
|
|
35443
|
-
programStatus?: ProgramStatus | null;
|
|
35444
35501
|
}
|
|
35445
35502
|
|
|
35446
35503
|
export interface SurroundingOperationDto {
|
|
@@ -35779,26 +35836,22 @@ export interface WeldingIotConfigDto {
|
|
|
35779
35836
|
export interface CreateWeldingIotConfig {
|
|
35780
35837
|
}
|
|
35781
35838
|
|
|
35782
|
-
export interface
|
|
35783
|
-
}
|
|
35784
|
-
|
|
35785
|
-
export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
|
|
35786
|
-
companyId: string;
|
|
35839
|
+
export interface ImaCertificateTypeDto {
|
|
35787
35840
|
certificateTypeId: string;
|
|
35788
35841
|
version: number;
|
|
35789
35842
|
allVersions: ImaCertificateTypeVersionDto[];
|
|
35790
35843
|
name: string;
|
|
35791
35844
|
revision: string;
|
|
35792
|
-
status:
|
|
35845
|
+
status: ImaCertificateTypeStatusDto;
|
|
35793
35846
|
description?: string | null;
|
|
35794
35847
|
isStandardCertificateType: boolean;
|
|
35795
35848
|
created: Date;
|
|
35796
35849
|
createdBy: string;
|
|
35797
35850
|
createdById: string;
|
|
35798
|
-
createdByName
|
|
35851
|
+
createdByName?: string | null;
|
|
35799
35852
|
updatedBy: string;
|
|
35800
35853
|
updatedById: string;
|
|
35801
|
-
updatedByName
|
|
35854
|
+
updatedByName?: string | null;
|
|
35802
35855
|
updated: Date;
|
|
35803
35856
|
isDeleted: boolean;
|
|
35804
35857
|
requirements: ImaCertificateTypeRequirementsDto;
|
|
@@ -35806,10 +35859,10 @@ export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
|
|
|
35806
35859
|
|
|
35807
35860
|
export interface ImaCertificateTypeVersionDto {
|
|
35808
35861
|
version?: number;
|
|
35809
|
-
status?:
|
|
35862
|
+
status?: ImaCertificateTypeStatusDto;
|
|
35810
35863
|
}
|
|
35811
35864
|
|
|
35812
|
-
export type
|
|
35865
|
+
export type ImaCertificateTypeStatusDto = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
35813
35866
|
|
|
35814
35867
|
export interface ImaCertificateTypeRequirementsDto {
|
|
35815
35868
|
manufacturer: ImaCertificateTypeManufacturerRequirementsDto;
|
|
@@ -35822,6 +35875,9 @@ export interface ImaCertificateTypeRequirementsDto {
|
|
|
35822
35875
|
documentTypes: ImaCertificateTypeDocumentTypesRequirementsDto;
|
|
35823
35876
|
}
|
|
35824
35877
|
|
|
35878
|
+
export interface ImaCdfEntityReadBase {
|
|
35879
|
+
}
|
|
35880
|
+
|
|
35825
35881
|
export interface ImaCertificateTypeManufacturerRequirementsDto extends ImaCdfEntityReadBase {
|
|
35826
35882
|
manufacturer?: boolean;
|
|
35827
35883
|
address?: boolean;
|
|
@@ -35898,7 +35954,7 @@ export interface ImaCreateOrCopyCertificateTypeRequestDto {
|
|
|
35898
35954
|
export interface ImaUpdateImaCertificateTypeRequestDto {
|
|
35899
35955
|
name?: string | null;
|
|
35900
35956
|
revision?: string | null;
|
|
35901
|
-
status?:
|
|
35957
|
+
status?: ImaCertificateTypeStatusDto | null;
|
|
35902
35958
|
description?: string | null;
|
|
35903
35959
|
requirements?: ImaCertificateTypeRequirementsUpdateDto | null;
|
|
35904
35960
|
}
|
|
@@ -35981,21 +36037,21 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
35981
36037
|
radiologicalReport?: boolean | null;
|
|
35982
36038
|
}
|
|
35983
36039
|
|
|
35984
|
-
export interface ImaCertificateTypeLiteDto
|
|
36040
|
+
export interface ImaCertificateTypeLiteDto {
|
|
35985
36041
|
certificateTypeId: string;
|
|
35986
36042
|
version: number;
|
|
35987
36043
|
name: string;
|
|
35988
36044
|
revision: string;
|
|
35989
|
-
status:
|
|
36045
|
+
status: ImaCertificateTypeStatusDto;
|
|
35990
36046
|
description?: string | null;
|
|
35991
36047
|
isStandardCertificateType: boolean;
|
|
35992
36048
|
created: Date;
|
|
35993
36049
|
createdBy: string;
|
|
35994
36050
|
createdById: string;
|
|
35995
|
-
createdByName
|
|
36051
|
+
createdByName?: string | null;
|
|
35996
36052
|
updatedBy: string;
|
|
35997
36053
|
updatedById: string;
|
|
35998
|
-
updatedByName
|
|
36054
|
+
updatedByName?: string | null;
|
|
35999
36055
|
updated: Date;
|
|
36000
36056
|
isDeleted: boolean;
|
|
36001
36057
|
}
|
|
@@ -36012,27 +36068,29 @@ export interface ImaMaterialCheckDto {
|
|
|
36012
36068
|
certificateTypeVersion?: number | null;
|
|
36013
36069
|
certificateTypeName?: string | null;
|
|
36014
36070
|
certificateTypeRevision?: string | null;
|
|
36071
|
+
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36015
36072
|
specificationId: string;
|
|
36016
36073
|
specificationVersion: number;
|
|
36017
36074
|
specificationName: string;
|
|
36018
|
-
specificationRevision
|
|
36019
|
-
specificationStatus:
|
|
36020
|
-
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36075
|
+
specificationRevision?: string | null;
|
|
36076
|
+
specificationStatus: ImaSpecificationStatusDto;
|
|
36021
36077
|
purchaseOrder?: string | null;
|
|
36022
36078
|
purchaseOrderLine?: number | null;
|
|
36023
36079
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36024
36080
|
purchaseOrderPartName?: string | null;
|
|
36025
36081
|
purchaseOrderPartNumber?: string | null;
|
|
36082
|
+
purchaseOrderPartRevision?: string | null;
|
|
36026
36083
|
purchaseOrderDrawing?: string | null;
|
|
36084
|
+
purchaseOrderDrawingRevision?: string | null;
|
|
36027
36085
|
heatNumber?: string | null;
|
|
36028
|
-
status:
|
|
36086
|
+
status: ImaMaterialCheckStatusDto;
|
|
36029
36087
|
created: Date;
|
|
36030
36088
|
createdBy: string;
|
|
36031
36089
|
createdById: string;
|
|
36032
|
-
createdByName
|
|
36090
|
+
createdByName?: string | null;
|
|
36033
36091
|
updatedBy: string;
|
|
36034
36092
|
updatedById: string;
|
|
36035
|
-
updatedByName
|
|
36093
|
+
updatedByName?: string | null;
|
|
36036
36094
|
isDeleted: boolean;
|
|
36037
36095
|
reportCreatedBy?: string | null;
|
|
36038
36096
|
reportCreatedById?: string | null;
|
|
@@ -36042,9 +36100,9 @@ export interface ImaMaterialCheckDto {
|
|
|
36042
36100
|
specificationResults: ImaSpecificationResultsDto;
|
|
36043
36101
|
}
|
|
36044
36102
|
|
|
36045
|
-
export type
|
|
36103
|
+
export type ImaSpecificationStatusDto = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
36046
36104
|
|
|
36047
|
-
export type
|
|
36105
|
+
export type ImaMaterialCheckStatusDto = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
|
|
36048
36106
|
|
|
36049
36107
|
export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
|
|
36050
36108
|
manufacturer: ImaCertificateTypeManufacturerResultsDto;
|
|
@@ -36165,11 +36223,11 @@ export interface ImaSpecificationResultLineDto extends ImaCdfEntityReadBase {
|
|
|
36165
36223
|
specificationMin?: number | null;
|
|
36166
36224
|
specificationMax?: number | null;
|
|
36167
36225
|
readValue?: string | null;
|
|
36168
|
-
status:
|
|
36226
|
+
status: ImaSpecificationResultLineStatusDto;
|
|
36169
36227
|
override?: ImaResultLineOverrideDto | null;
|
|
36170
36228
|
}
|
|
36171
36229
|
|
|
36172
|
-
export type
|
|
36230
|
+
export type ImaSpecificationResultLineStatusDto = "NotFound" | "NotOk" | "Ok" | "NotSet";
|
|
36173
36231
|
|
|
36174
36232
|
export interface ImaSpecificationMechanicalResultsDto extends ImaCdfEntityReadBase {
|
|
36175
36233
|
yieldStrength?: ImaSpecificationResultLineDto | null;
|
|
@@ -36188,7 +36246,7 @@ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBa
|
|
|
36188
36246
|
specificationMin?: number | null;
|
|
36189
36247
|
specificationMax?: number | null;
|
|
36190
36248
|
readValue?: string | null;
|
|
36191
|
-
status:
|
|
36249
|
+
status: ImaSpecificationResultLineStatusDto;
|
|
36192
36250
|
override?: ImaResultLineOverrideDto | null;
|
|
36193
36251
|
measurementMethod?: string | null;
|
|
36194
36252
|
}
|
|
@@ -36357,27 +36415,29 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
36357
36415
|
certificateTypeVersion?: number | null;
|
|
36358
36416
|
certificateTypeName?: string | null;
|
|
36359
36417
|
certificateTypeRevision?: string | null;
|
|
36418
|
+
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36360
36419
|
specificationId: string;
|
|
36361
36420
|
specificationVersion: number;
|
|
36362
36421
|
specificationName: string;
|
|
36363
|
-
specificationRevision
|
|
36422
|
+
specificationRevision?: string | null;
|
|
36423
|
+
specificationStatus: ImaSpecificationStatusDto;
|
|
36364
36424
|
purchaseOrder?: string | null;
|
|
36365
36425
|
purchaseOrderLine?: number | null;
|
|
36366
36426
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36367
36427
|
purchaseOrderPartName?: string | null;
|
|
36368
36428
|
purchaseOrderPartNumber?: string | null;
|
|
36429
|
+
purchaseOrderPartRevision?: string | null;
|
|
36369
36430
|
purchaseOrderDrawing?: string | null;
|
|
36431
|
+
purchaseOrderDrawingRevision?: string | null;
|
|
36370
36432
|
heatNumber?: string | null;
|
|
36371
|
-
status:
|
|
36372
|
-
specificationStatus: ImaSpecificationStatus;
|
|
36373
|
-
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36433
|
+
status: ImaMaterialCheckStatusDto;
|
|
36374
36434
|
created: Date;
|
|
36375
36435
|
createdBy: string;
|
|
36376
36436
|
createdById: string;
|
|
36377
|
-
createdByName
|
|
36437
|
+
createdByName?: string | null;
|
|
36378
36438
|
updatedBy: string;
|
|
36379
36439
|
updatedById: string;
|
|
36380
|
-
updatedByName
|
|
36440
|
+
updatedByName?: string | null;
|
|
36381
36441
|
isDeleted?: boolean;
|
|
36382
36442
|
reportCreatedBy?: string | null;
|
|
36383
36443
|
reportCreatedById?: string | null;
|
|
@@ -36404,18 +36464,18 @@ export interface ImaMaterialChecksPageRequestDto {
|
|
|
36404
36464
|
purchaseOrderDrawingFilter?: string | null;
|
|
36405
36465
|
dateFromFilter?: Date | null;
|
|
36406
36466
|
dateToFilter?: Date | null;
|
|
36407
|
-
statusFilter?:
|
|
36467
|
+
statusFilter?: ImaMaterialCheckStatusDto[] | null;
|
|
36408
36468
|
continuationToken?: string | null;
|
|
36409
36469
|
}
|
|
36410
36470
|
|
|
36411
36471
|
export interface ImaMaterialChecksPageOrderRequestDto {
|
|
36412
|
-
column?:
|
|
36413
|
-
direction?:
|
|
36472
|
+
column?: ImaMaterialChecksOrderByColumnDto;
|
|
36473
|
+
direction?: ImaOrderDirectionDto;
|
|
36414
36474
|
}
|
|
36415
36475
|
|
|
36416
|
-
export type
|
|
36476
|
+
export type ImaMaterialChecksOrderByColumnDto = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
|
|
36417
36477
|
|
|
36418
|
-
export type
|
|
36478
|
+
export type ImaOrderDirectionDto = "Asc" | "Desc";
|
|
36419
36479
|
|
|
36420
36480
|
export interface ProcessMaterialCertificate {
|
|
36421
36481
|
files: UploadFileCdfDto[];
|
|
@@ -36535,7 +36595,7 @@ export interface ImaUpdateMatchSettingsColumnsDto {
|
|
|
36535
36595
|
status: boolean;
|
|
36536
36596
|
}
|
|
36537
36597
|
|
|
36538
|
-
export interface ImaSpecificationDto
|
|
36598
|
+
export interface ImaSpecificationDto {
|
|
36539
36599
|
specificationId: string;
|
|
36540
36600
|
version: number;
|
|
36541
36601
|
allVersions: ImaSpecificationVersionDto[];
|
|
@@ -36543,16 +36603,16 @@ export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
|
36543
36603
|
number: string;
|
|
36544
36604
|
revision: string;
|
|
36545
36605
|
date: Date;
|
|
36546
|
-
status:
|
|
36606
|
+
status: ImaSpecificationStatusDto;
|
|
36547
36607
|
summary?: string | null;
|
|
36548
36608
|
relatedStandards: string[];
|
|
36549
36609
|
created: Date;
|
|
36550
36610
|
createdBy: string;
|
|
36551
36611
|
createdById: string;
|
|
36552
|
-
createdByName
|
|
36612
|
+
createdByName?: string | null;
|
|
36553
36613
|
updatedBy: string;
|
|
36554
36614
|
updatedById: string;
|
|
36555
|
-
updatedByName
|
|
36615
|
+
updatedByName?: string | null;
|
|
36556
36616
|
updated: Date;
|
|
36557
36617
|
isDeleted: boolean;
|
|
36558
36618
|
chemistrySpecification: ImaChemistrySpecificationDto;
|
|
@@ -36563,10 +36623,10 @@ export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
|
36563
36623
|
|
|
36564
36624
|
export interface ImaSpecificationVersionDto {
|
|
36565
36625
|
version?: number;
|
|
36566
|
-
status?:
|
|
36626
|
+
status?: ImaSpecificationStatusDto;
|
|
36567
36627
|
}
|
|
36568
36628
|
|
|
36569
|
-
export interface ImaChemistrySpecificationDto
|
|
36629
|
+
export interface ImaChemistrySpecificationDto {
|
|
36570
36630
|
carbon?: ImaSpecificationLineDto | null;
|
|
36571
36631
|
manganese?: ImaSpecificationLineDto | null;
|
|
36572
36632
|
silicon?: ImaSpecificationLineDto | null;
|
|
@@ -36586,7 +36646,7 @@ export interface ImaSpecificationLineDto extends ImaCdfEntityReadBase {
|
|
|
36586
36646
|
max?: number | null;
|
|
36587
36647
|
}
|
|
36588
36648
|
|
|
36589
|
-
export interface ImaMechanicalSpecificationDto
|
|
36649
|
+
export interface ImaMechanicalSpecificationDto {
|
|
36590
36650
|
yieldStrength?: ImaSpecificationLineDto | null;
|
|
36591
36651
|
tensileStrength?: ImaSpecificationLineDto | null;
|
|
36592
36652
|
elongation?: ImaSpecificationLineDto | null;
|
|
@@ -36595,31 +36655,31 @@ export interface ImaMechanicalSpecificationDto extends ImaCdfEntityReadBase {
|
|
|
36595
36655
|
hardness?: ImaSpecificationLineDto | null;
|
|
36596
36656
|
}
|
|
36597
36657
|
|
|
36598
|
-
export interface ImaFerriteSpecificationDto
|
|
36658
|
+
export interface ImaFerriteSpecificationDto {
|
|
36599
36659
|
ferriteContent?: ImaSpecificationLineDto | null;
|
|
36600
36660
|
}
|
|
36601
36661
|
|
|
36602
|
-
export interface ImaHeatTreatmentSpecificationDto
|
|
36662
|
+
export interface ImaHeatTreatmentSpecificationDto {
|
|
36603
36663
|
step: number;
|
|
36604
36664
|
cooling?: ImaHeatTreatmentSpecificationCoolingDto | null;
|
|
36605
36665
|
heating?: ImaHeatTreatmentSpecificationHeatingDto | null;
|
|
36606
36666
|
}
|
|
36607
36667
|
|
|
36608
|
-
export interface ImaHeatTreatmentSpecificationCoolingDto
|
|
36609
|
-
coolingMethods:
|
|
36668
|
+
export interface ImaHeatTreatmentSpecificationCoolingDto {
|
|
36669
|
+
coolingMethods: ImaHeatTreatmentCoolingMethodDto[];
|
|
36610
36670
|
temperature?: ImaSpecificationLineDto | null;
|
|
36611
36671
|
duration?: ImaSpecificationLineDto | null;
|
|
36612
36672
|
}
|
|
36613
36673
|
|
|
36614
|
-
export type
|
|
36674
|
+
export type ImaHeatTreatmentCoolingMethodDto = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
|
|
36615
36675
|
|
|
36616
|
-
export interface ImaHeatTreatmentSpecificationHeatingDto
|
|
36617
|
-
heatingMethod:
|
|
36676
|
+
export interface ImaHeatTreatmentSpecificationHeatingDto {
|
|
36677
|
+
heatingMethod: ImaHeatTreatmentHeatingMethodDto;
|
|
36618
36678
|
temperature?: ImaSpecificationLineDto | null;
|
|
36619
36679
|
duration?: ImaSpecificationLineDto | null;
|
|
36620
36680
|
}
|
|
36621
36681
|
|
|
36622
|
-
export type
|
|
36682
|
+
export type ImaHeatTreatmentHeatingMethodDto = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
|
|
36623
36683
|
|
|
36624
36684
|
export interface ImaCreateSpecificationRequestDto {
|
|
36625
36685
|
name: string;
|
|
@@ -36639,7 +36699,7 @@ export interface ImaCopySpecificationRequestDto {
|
|
|
36639
36699
|
export interface ImaUpdateSpecificationDto {
|
|
36640
36700
|
name?: string | null;
|
|
36641
36701
|
number?: string | null;
|
|
36642
|
-
status?:
|
|
36702
|
+
status?: ImaSpecificationStatusDto | null;
|
|
36643
36703
|
summary?: string | null;
|
|
36644
36704
|
relatedStandards?: string[] | null;
|
|
36645
36705
|
chemistrySpecification?: ImaChemistrySpecificationDto | null;
|
|
@@ -36648,23 +36708,24 @@ export interface ImaUpdateSpecificationDto {
|
|
|
36648
36708
|
heatSpecifications?: ImaHeatTreatmentSpecificationDto[] | null;
|
|
36649
36709
|
}
|
|
36650
36710
|
|
|
36651
|
-
export interface ImaSpecificationLiteDto
|
|
36711
|
+
export interface ImaSpecificationLiteDto {
|
|
36652
36712
|
specificationId: string;
|
|
36653
36713
|
version: number;
|
|
36654
36714
|
name: string;
|
|
36655
36715
|
number: string;
|
|
36656
36716
|
revision: string;
|
|
36657
36717
|
date: Date;
|
|
36658
|
-
status:
|
|
36718
|
+
status: ImaSpecificationStatusDto;
|
|
36659
36719
|
summary?: string | null;
|
|
36660
36720
|
relatedStandards: string[];
|
|
36661
36721
|
created: Date;
|
|
36662
36722
|
createdBy: string;
|
|
36663
36723
|
createdById: string;
|
|
36664
|
-
createdByName
|
|
36724
|
+
createdByName?: string | null;
|
|
36665
36725
|
updatedBy: string;
|
|
36666
36726
|
updatedById: string;
|
|
36667
|
-
updatedByName
|
|
36727
|
+
updatedByName?: string | null;
|
|
36728
|
+
updated: Date;
|
|
36668
36729
|
isDeleted: boolean;
|
|
36669
36730
|
}
|
|
36670
36731
|
|
|
@@ -37867,7 +37928,6 @@ export interface WorkorderDiscussionMessageDto {
|
|
|
37867
37928
|
operationName?: string | null;
|
|
37868
37929
|
resourceId?: string | null;
|
|
37869
37930
|
created?: Date;
|
|
37870
|
-
visibility?: DiscussionVisibility;
|
|
37871
37931
|
}
|
|
37872
37932
|
|
|
37873
37933
|
export interface WorkOrderDiscussionContent {
|
|
@@ -37877,14 +37937,11 @@ export interface WorkOrderDiscussionContent {
|
|
|
37877
37937
|
|
|
37878
37938
|
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
37879
37939
|
|
|
37880
|
-
export type DiscussionVisibility = "Public" | "Planner";
|
|
37881
|
-
|
|
37882
37940
|
export interface AddDiscussionMessageRequest {
|
|
37883
37941
|
message: string;
|
|
37884
37942
|
operationId?: string | null;
|
|
37885
37943
|
operationName?: string | null;
|
|
37886
37944
|
resourceId?: string | null;
|
|
37887
|
-
visibility?: DiscussionVisibility;
|
|
37888
37945
|
}
|
|
37889
37946
|
|
|
37890
37947
|
export interface WorkorderDiscussionReadStatusDto {
|