@ignos/api-client 20260711.183.1-alpha → 20260715.185.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 +195 -339
- package/lib/ignosportal-api.js +265 -599
- package/package.json +1 -1
- package/src/ignosportal-api.ts +462 -915
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(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
4666
4666
|
|
|
4667
4667
|
migrateCapacityToSettings(): Promise<MigrationResultDto>;
|
|
4668
4668
|
}
|
|
@@ -5221,11 +5221,14 @@ 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("{
|
|
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));
|
|
5229
5232
|
url_ = url_.replace(/[?&]$/, "");
|
|
5230
5233
|
|
|
5231
5234
|
const content_ = JSON.stringify(request);
|
|
@@ -5246,13 +5249,13 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5246
5249
|
});
|
|
5247
5250
|
}
|
|
5248
5251
|
|
|
5249
|
-
protected processCopyShiftSettingsPeriod(response: Response): Promise<ShiftSettingsPeriodDto
|
|
5252
|
+
protected processCopyShiftSettingsPeriod(response: Response): Promise<ShiftSettingsPeriodDto> {
|
|
5250
5253
|
const status = response.status;
|
|
5251
5254
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5252
5255
|
if (status === 200) {
|
|
5253
5256
|
return response.text().then((_responseText) => {
|
|
5254
5257
|
let result200: any = null;
|
|
5255
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ShiftSettingsPeriodDto
|
|
5258
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ShiftSettingsPeriodDto;
|
|
5256
5259
|
return result200;
|
|
5257
5260
|
});
|
|
5258
5261
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5260,7 +5263,7 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5260
5263
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5261
5264
|
});
|
|
5262
5265
|
}
|
|
5263
|
-
return Promise.resolve<ShiftSettingsPeriodDto
|
|
5266
|
+
return Promise.resolve<ShiftSettingsPeriodDto>(null as any);
|
|
5264
5267
|
}
|
|
5265
5268
|
|
|
5266
5269
|
migrateCapacityToSettings(): Promise<MigrationResultDto> {
|
|
@@ -12289,160 +12292,6 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
12289
12292
|
}
|
|
12290
12293
|
}
|
|
12291
12294
|
|
|
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
|
-
|
|
12446
12295
|
export interface ILinksClient {
|
|
12447
12296
|
|
|
12448
12297
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -21534,132 +21383,6 @@ export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase implemen
|
|
|
21534
21383
|
}
|
|
21535
21384
|
}
|
|
21536
21385
|
|
|
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
|
-
|
|
21663
21386
|
export interface IMesLinksClient {
|
|
21664
21387
|
|
|
21665
21388
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
@@ -21970,26 +21693,28 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21970
21693
|
}
|
|
21971
21694
|
}
|
|
21972
21695
|
|
|
21973
|
-
export interface
|
|
21696
|
+
export interface IMesPlannerClient {
|
|
21974
21697
|
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
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>;
|
|
21698
|
+
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
|
|
21699
|
+
|
|
21700
|
+
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto>;
|
|
21984
21701
|
|
|
21985
|
-
|
|
21702
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21986
21703
|
|
|
21987
|
-
|
|
21704
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
21988
21705
|
|
|
21989
|
-
|
|
21706
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21707
|
+
|
|
21708
|
+
discardDraft(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
21709
|
+
|
|
21710
|
+
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]>;
|
|
21711
|
+
|
|
21712
|
+
getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto>;
|
|
21713
|
+
|
|
21714
|
+
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus>;
|
|
21990
21715
|
}
|
|
21991
21716
|
|
|
21992
|
-
export class
|
|
21717
|
+
export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerClient {
|
|
21993
21718
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21994
21719
|
private baseUrl: string;
|
|
21995
21720
|
|
|
@@ -21999,82 +21724,59 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
21999
21724
|
this.baseUrl = baseUrl ?? "";
|
|
22000
21725
|
}
|
|
22001
21726
|
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
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));
|
|
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) + "&";
|
|
22015
21733
|
url_ = url_.replace(/[?&]$/, "");
|
|
22016
21734
|
|
|
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
|
-
|
|
22031
21735
|
let options_: RequestInit = {
|
|
22032
|
-
|
|
22033
|
-
method: "POST",
|
|
21736
|
+
method: "GET",
|
|
22034
21737
|
headers: {
|
|
22035
|
-
"Accept": "application/
|
|
21738
|
+
"Accept": "application/json"
|
|
22036
21739
|
}
|
|
22037
21740
|
};
|
|
22038
21741
|
|
|
22039
21742
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22040
21743
|
return this.http.fetch(url_, transformedOptions_);
|
|
22041
21744
|
}).then((_response: Response) => {
|
|
22042
|
-
return this.
|
|
21745
|
+
return this.processGetPlan(_response);
|
|
22043
21746
|
});
|
|
22044
21747
|
}
|
|
22045
21748
|
|
|
22046
|
-
protected
|
|
21749
|
+
protected processGetPlan(response: Response): Promise<PlannerPlanDto> {
|
|
22047
21750
|
const status = response.status;
|
|
22048
21751
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22049
|
-
if (status === 200
|
|
22050
|
-
|
|
22051
|
-
let
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
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 }; });
|
|
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
|
+
});
|
|
22060
21758
|
} else if (status !== 200 && status !== 204) {
|
|
22061
21759
|
return response.text().then((_responseText) => {
|
|
22062
21760
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22063
21761
|
});
|
|
22064
21762
|
}
|
|
22065
|
-
return Promise.resolve<
|
|
21763
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22066
21764
|
}
|
|
22067
21765
|
|
|
22068
|
-
|
|
22069
|
-
let url_ = this.baseUrl + "/mes/
|
|
22070
|
-
if (
|
|
22071
|
-
throw new globalThis.Error("The parameter '
|
|
22072
|
-
url_ = url_.replace("{
|
|
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));
|
|
22073
21771
|
url_ = url_.replace(/[?&]$/, "");
|
|
22074
21772
|
|
|
21773
|
+
const content_ = JSON.stringify(request);
|
|
21774
|
+
|
|
22075
21775
|
let options_: RequestInit = {
|
|
22076
|
-
|
|
21776
|
+
body: content_,
|
|
21777
|
+
method: "POST",
|
|
22077
21778
|
headers: {
|
|
21779
|
+
"Content-Type": "application/json",
|
|
22078
21780
|
"Accept": "application/json"
|
|
22079
21781
|
}
|
|
22080
21782
|
};
|
|
@@ -22082,17 +21784,17 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22082
21784
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22083
21785
|
return this.http.fetch(url_, transformedOptions_);
|
|
22084
21786
|
}).then((_response: Response) => {
|
|
22085
|
-
return this.
|
|
21787
|
+
return this.processPublish(_response);
|
|
22086
21788
|
});
|
|
22087
21789
|
}
|
|
22088
21790
|
|
|
22089
|
-
protected
|
|
21791
|
+
protected processPublish(response: Response): Promise<PlannerPlanDto> {
|
|
22090
21792
|
const status = response.status;
|
|
22091
21793
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22092
21794
|
if (status === 200) {
|
|
22093
21795
|
return response.text().then((_responseText) => {
|
|
22094
21796
|
let result200: any = null;
|
|
22095
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
21797
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22096
21798
|
return result200;
|
|
22097
21799
|
});
|
|
22098
21800
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -22100,99 +21802,285 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22100
21802
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22101
21803
|
});
|
|
22102
21804
|
}
|
|
22103
|
-
return Promise.resolve<
|
|
21805
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22104
21806
|
}
|
|
22105
21807
|
|
|
22106
|
-
|
|
22107
|
-
let url_ = this.baseUrl + "/mes/
|
|
22108
|
-
if (
|
|
22109
|
-
throw new globalThis.Error("The parameter '
|
|
22110
|
-
url_ = url_.replace("{
|
|
22111
|
-
if (attachmentId === undefined || attachmentId === null)
|
|
22112
|
-
throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
|
|
22113
|
-
url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
|
|
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));
|
|
22114
21813
|
url_ = url_.replace(/[?&]$/, "");
|
|
22115
21814
|
|
|
21815
|
+
const content_ = JSON.stringify(sequence);
|
|
21816
|
+
|
|
22116
21817
|
let options_: RequestInit = {
|
|
22117
|
-
|
|
21818
|
+
body: content_,
|
|
21819
|
+
method: "PUT",
|
|
22118
21820
|
headers: {
|
|
22119
|
-
"
|
|
21821
|
+
"Content-Type": "application/json",
|
|
21822
|
+
"Accept": "application/json"
|
|
22120
21823
|
}
|
|
22121
21824
|
};
|
|
22122
21825
|
|
|
22123
21826
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22124
21827
|
return this.http.fetch(url_, transformedOptions_);
|
|
22125
21828
|
}).then((_response: Response) => {
|
|
22126
|
-
return this.
|
|
21829
|
+
return this.processUpdateSequence(_response);
|
|
22127
21830
|
});
|
|
22128
21831
|
}
|
|
22129
21832
|
|
|
22130
|
-
protected
|
|
21833
|
+
protected processUpdateSequence(response: Response): Promise<PlannerPlanDto> {
|
|
22131
21834
|
const status = response.status;
|
|
22132
21835
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22133
|
-
if (status === 200
|
|
22134
|
-
|
|
22135
|
-
let
|
|
22136
|
-
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
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));
|
|
21855
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21856
|
+
|
|
21857
|
+
let options_: RequestInit = {
|
|
21858
|
+
method: "POST",
|
|
21859
|
+
headers: {
|
|
21860
|
+
"Accept": "application/json"
|
|
22142
21861
|
}
|
|
22143
|
-
|
|
21862
|
+
};
|
|
21863
|
+
|
|
21864
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21865
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21866
|
+
}).then((_response: Response) => {
|
|
21867
|
+
return this.processReset(_response);
|
|
21868
|
+
});
|
|
21869
|
+
}
|
|
21870
|
+
|
|
21871
|
+
protected processReset(response: Response): Promise<PlannerPlanDto> {
|
|
21872
|
+
const status = response.status;
|
|
21873
|
+
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
|
+
});
|
|
22144
21880
|
} else if (status !== 200 && status !== 204) {
|
|
22145
21881
|
return response.text().then((_responseText) => {
|
|
22146
21882
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22147
21883
|
});
|
|
22148
21884
|
}
|
|
22149
|
-
return Promise.resolve<
|
|
21885
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22150
21886
|
}
|
|
22151
21887
|
|
|
22152
|
-
|
|
22153
|
-
let url_ = this.baseUrl + "/mes/
|
|
22154
|
-
if (
|
|
22155
|
-
throw new globalThis.Error("The parameter '
|
|
22156
|
-
url_ = url_.replace("{
|
|
22157
|
-
|
|
22158
|
-
|
|
22159
|
-
|
|
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"
|
|
21903
|
+
}
|
|
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
|
+
});
|
|
21922
|
+
} else if (status !== 200 && status !== 204) {
|
|
21923
|
+
return response.text().then((_responseText) => {
|
|
21924
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21925
|
+
});
|
|
21926
|
+
}
|
|
21927
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21928
|
+
}
|
|
21929
|
+
|
|
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));
|
|
22160
21935
|
url_ = url_.replace(/[?&]$/, "");
|
|
22161
21936
|
|
|
22162
21937
|
let options_: RequestInit = {
|
|
22163
21938
|
method: "DELETE",
|
|
22164
21939
|
headers: {
|
|
22165
|
-
"Accept": "application/
|
|
21940
|
+
"Accept": "application/json"
|
|
22166
21941
|
}
|
|
22167
21942
|
};
|
|
22168
21943
|
|
|
22169
21944
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22170
21945
|
return this.http.fetch(url_, transformedOptions_);
|
|
22171
21946
|
}).then((_response: Response) => {
|
|
22172
|
-
return this.
|
|
21947
|
+
return this.processDiscardDraft(_response);
|
|
22173
21948
|
});
|
|
22174
21949
|
}
|
|
22175
21950
|
|
|
22176
|
-
protected
|
|
21951
|
+
protected processDiscardDraft(response: Response): Promise<PlannerPlanDto> {
|
|
22177
21952
|
const status = response.status;
|
|
22178
21953
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22179
|
-
if (status === 200
|
|
22180
|
-
|
|
22181
|
-
let
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
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"
|
|
22188
21979
|
}
|
|
22189
|
-
|
|
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
|
+
});
|
|
22190
21998
|
} else if (status !== 200 && status !== 204) {
|
|
22191
21999
|
return response.text().then((_responseText) => {
|
|
22192
22000
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22193
22001
|
});
|
|
22194
22002
|
}
|
|
22195
|
-
return Promise.resolve<
|
|
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"
|
|
22020
|
+
}
|
|
22021
|
+
};
|
|
22022
|
+
|
|
22023
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22024
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22025
|
+
}).then((_response: Response) => {
|
|
22026
|
+
return this.processGetVersion(_response);
|
|
22027
|
+
});
|
|
22028
|
+
}
|
|
22029
|
+
|
|
22030
|
+
protected processGetVersion(response: Response): Promise<PlannerPlanDto> {
|
|
22031
|
+
const status = response.status;
|
|
22032
|
+
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"
|
|
22059
|
+
}
|
|
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
|
+
});
|
|
22078
|
+
} else if (status !== 200 && status !== 204) {
|
|
22079
|
+
return response.text().then((_responseText) => {
|
|
22080
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22081
|
+
});
|
|
22082
|
+
}
|
|
22083
|
+
return Promise.resolve<ProgramStatus>(null as any);
|
|
22196
22084
|
}
|
|
22197
22085
|
}
|
|
22198
22086
|
|
|
@@ -23889,7 +23777,7 @@ export interface IInspectMatchMaterialChecksAdminClient {
|
|
|
23889
23777
|
|
|
23890
23778
|
updateMaterialCheckOverrides(id: string, request: ImaOverrideMaterialCheckRequestDto): Promise<ImaMaterialCheckDto>;
|
|
23891
23779
|
|
|
23892
|
-
updateMaterialCheckStatus(id: string, status:
|
|
23780
|
+
updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto>;
|
|
23893
23781
|
|
|
23894
23782
|
updateMaterialCheckMetadata(id: string, metadataRequest: ImaUpdateMaterialCheckMetadataRequestDto): Promise<ImaMaterialCheckDto>;
|
|
23895
23783
|
|
|
@@ -23948,7 +23836,7 @@ export class InspectMatchMaterialChecksAdminClient extends AuthorizedApiBase imp
|
|
|
23948
23836
|
return Promise.resolve<ImaMaterialCheckDto>(null as any);
|
|
23949
23837
|
}
|
|
23950
23838
|
|
|
23951
|
-
updateMaterialCheckStatus(id: string, status:
|
|
23839
|
+
updateMaterialCheckStatus(id: string, status: ImaMaterialCheckStatus | undefined): Promise<ImaMaterialCheckDto> {
|
|
23952
23840
|
let url_ = this.baseUrl + "/inspect/match/material-checks/status/{id}?";
|
|
23953
23841
|
if (id === undefined || id === null)
|
|
23954
23842
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -24835,273 +24723,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
24835
24723
|
}
|
|
24836
24724
|
}
|
|
24837
24725
|
|
|
24838
|
-
export interface IInspectSchemaCreatorClient {
|
|
24839
|
-
|
|
24840
|
-
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
24841
|
-
|
|
24842
|
-
/**
|
|
24843
|
-
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24844
|
-
state already exists; the caller should re-fetch it instead of writing.
|
|
24845
|
-
*/
|
|
24846
|
-
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24847
|
-
|
|
24848
|
-
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24849
|
-
|
|
24850
|
-
/**
|
|
24851
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24852
|
-
returns a temporary download link.
|
|
24853
|
-
*/
|
|
24854
|
-
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
24855
|
-
|
|
24856
|
-
/**
|
|
24857
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
24858
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
24859
|
-
* @param image (optional)
|
|
24860
|
-
*/
|
|
24861
|
-
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
|
|
24862
|
-
}
|
|
24863
|
-
|
|
24864
|
-
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
24865
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
24866
|
-
private baseUrl: string;
|
|
24867
|
-
|
|
24868
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
24869
|
-
super(configuration);
|
|
24870
|
-
this.http = http ? http : window as any;
|
|
24871
|
-
this.baseUrl = baseUrl ?? "";
|
|
24872
|
-
}
|
|
24873
|
-
|
|
24874
|
-
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
|
|
24875
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24876
|
-
if (id === undefined || id === null)
|
|
24877
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24878
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24879
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24880
|
-
|
|
24881
|
-
let options_: RequestInit = {
|
|
24882
|
-
method: "GET",
|
|
24883
|
-
headers: {
|
|
24884
|
-
"Accept": "application/json"
|
|
24885
|
-
}
|
|
24886
|
-
};
|
|
24887
|
-
|
|
24888
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24889
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24890
|
-
}).then((_response: Response) => {
|
|
24891
|
-
return this.processGetSchemaCreatorState(_response);
|
|
24892
|
-
});
|
|
24893
|
-
}
|
|
24894
|
-
|
|
24895
|
-
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24896
|
-
const status = response.status;
|
|
24897
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24898
|
-
if (status === 200) {
|
|
24899
|
-
return response.text().then((_responseText) => {
|
|
24900
|
-
let result200: any = null;
|
|
24901
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24902
|
-
return result200;
|
|
24903
|
-
});
|
|
24904
|
-
} else if (status !== 200 && status !== 204) {
|
|
24905
|
-
return response.text().then((_responseText) => {
|
|
24906
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24907
|
-
});
|
|
24908
|
-
}
|
|
24909
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24910
|
-
}
|
|
24911
|
-
|
|
24912
|
-
/**
|
|
24913
|
-
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24914
|
-
state already exists; the caller should re-fetch it instead of writing.
|
|
24915
|
-
*/
|
|
24916
|
-
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24917
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24918
|
-
if (id === undefined || id === null)
|
|
24919
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24920
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24921
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24922
|
-
|
|
24923
|
-
const content_ = JSON.stringify(state);
|
|
24924
|
-
|
|
24925
|
-
let options_: RequestInit = {
|
|
24926
|
-
body: content_,
|
|
24927
|
-
method: "POST",
|
|
24928
|
-
headers: {
|
|
24929
|
-
"Content-Type": "application/json",
|
|
24930
|
-
"Accept": "application/json"
|
|
24931
|
-
}
|
|
24932
|
-
};
|
|
24933
|
-
|
|
24934
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24935
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24936
|
-
}).then((_response: Response) => {
|
|
24937
|
-
return this.processCreateSchemaCreatorState(_response);
|
|
24938
|
-
});
|
|
24939
|
-
}
|
|
24940
|
-
|
|
24941
|
-
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24942
|
-
const status = response.status;
|
|
24943
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24944
|
-
if (status === 201) {
|
|
24945
|
-
return response.text().then((_responseText) => {
|
|
24946
|
-
let result201: any = null;
|
|
24947
|
-
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24948
|
-
return result201;
|
|
24949
|
-
});
|
|
24950
|
-
} else if (status === 409) {
|
|
24951
|
-
return response.text().then((_responseText) => {
|
|
24952
|
-
let result409: any = null;
|
|
24953
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
24954
|
-
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24955
|
-
});
|
|
24956
|
-
} else if (status !== 200 && status !== 204) {
|
|
24957
|
-
return response.text().then((_responseText) => {
|
|
24958
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24959
|
-
});
|
|
24960
|
-
}
|
|
24961
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24962
|
-
}
|
|
24963
|
-
|
|
24964
|
-
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24965
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24966
|
-
if (id === undefined || id === null)
|
|
24967
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24968
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24969
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24970
|
-
|
|
24971
|
-
const content_ = JSON.stringify(state);
|
|
24972
|
-
|
|
24973
|
-
let options_: RequestInit = {
|
|
24974
|
-
body: content_,
|
|
24975
|
-
method: "PUT",
|
|
24976
|
-
headers: {
|
|
24977
|
-
"Content-Type": "application/json",
|
|
24978
|
-
"Accept": "application/json"
|
|
24979
|
-
}
|
|
24980
|
-
};
|
|
24981
|
-
|
|
24982
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24983
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24984
|
-
}).then((_response: Response) => {
|
|
24985
|
-
return this.processUpdateSchemaCreatorState(_response);
|
|
24986
|
-
});
|
|
24987
|
-
}
|
|
24988
|
-
|
|
24989
|
-
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24990
|
-
const status = response.status;
|
|
24991
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24992
|
-
if (status === 200) {
|
|
24993
|
-
return response.text().then((_responseText) => {
|
|
24994
|
-
let result200: any = null;
|
|
24995
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24996
|
-
return result200;
|
|
24997
|
-
});
|
|
24998
|
-
} else if (status !== 200 && status !== 204) {
|
|
24999
|
-
return response.text().then((_responseText) => {
|
|
25000
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25001
|
-
});
|
|
25002
|
-
}
|
|
25003
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
25004
|
-
}
|
|
25005
|
-
|
|
25006
|
-
/**
|
|
25007
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
25008
|
-
returns a temporary download link.
|
|
25009
|
-
*/
|
|
25010
|
-
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
|
|
25011
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
25012
|
-
if (id === undefined || id === null)
|
|
25013
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25014
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25015
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
25016
|
-
|
|
25017
|
-
let options_: RequestInit = {
|
|
25018
|
-
method: "POST",
|
|
25019
|
-
headers: {
|
|
25020
|
-
"Accept": "application/json"
|
|
25021
|
-
}
|
|
25022
|
-
};
|
|
25023
|
-
|
|
25024
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25025
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
25026
|
-
}).then((_response: Response) => {
|
|
25027
|
-
return this.processExportSchemaCreatorDrawing(_response);
|
|
25028
|
-
});
|
|
25029
|
-
}
|
|
25030
|
-
|
|
25031
|
-
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
|
|
25032
|
-
const status = response.status;
|
|
25033
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25034
|
-
if (status === 200) {
|
|
25035
|
-
return response.text().then((_responseText) => {
|
|
25036
|
-
let result200: any = null;
|
|
25037
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
|
|
25038
|
-
return result200;
|
|
25039
|
-
});
|
|
25040
|
-
} else if (status !== 200 && status !== 204) {
|
|
25041
|
-
return response.text().then((_responseText) => {
|
|
25042
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25043
|
-
});
|
|
25044
|
-
}
|
|
25045
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
25046
|
-
}
|
|
25047
|
-
|
|
25048
|
-
/**
|
|
25049
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
25050
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
25051
|
-
* @param image (optional)
|
|
25052
|
-
*/
|
|
25053
|
-
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse> {
|
|
25054
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/resolvesnip";
|
|
25055
|
-
if (id === undefined || id === null)
|
|
25056
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25057
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25058
|
-
if (elementId === undefined || elementId === null)
|
|
25059
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
25060
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
25061
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
25062
|
-
|
|
25063
|
-
const content_ = new FormData();
|
|
25064
|
-
if (image !== null && image !== undefined)
|
|
25065
|
-
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25066
|
-
|
|
25067
|
-
let options_: RequestInit = {
|
|
25068
|
-
body: content_,
|
|
25069
|
-
method: "POST",
|
|
25070
|
-
headers: {
|
|
25071
|
-
"Accept": "application/octet-stream"
|
|
25072
|
-
}
|
|
25073
|
-
};
|
|
25074
|
-
|
|
25075
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25076
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
25077
|
-
}).then((_response: Response) => {
|
|
25078
|
-
return this.processResolveSchemaCreatorSnip(_response);
|
|
25079
|
-
});
|
|
25080
|
-
}
|
|
25081
|
-
|
|
25082
|
-
protected processResolveSchemaCreatorSnip(response: Response): Promise<FileResponse> {
|
|
25083
|
-
const status = response.status;
|
|
25084
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25085
|
-
if (status === 200 || status === 206) {
|
|
25086
|
-
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
25087
|
-
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
25088
|
-
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
25089
|
-
if (fileName) {
|
|
25090
|
-
fileName = decodeURIComponent(fileName);
|
|
25091
|
-
} else {
|
|
25092
|
-
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
25093
|
-
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
25094
|
-
}
|
|
25095
|
-
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
25096
|
-
} else if (status !== 200 && status !== 204) {
|
|
25097
|
-
return response.text().then((_responseText) => {
|
|
25098
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25099
|
-
});
|
|
25100
|
-
}
|
|
25101
|
-
return Promise.resolve<FileResponse>(null as any);
|
|
25102
|
-
}
|
|
25103
|
-
}
|
|
25104
|
-
|
|
25105
24726
|
export interface IMeasurementFormSchemasAdminClient {
|
|
25106
24727
|
|
|
25107
24728
|
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
@@ -31924,7 +31545,7 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
31924
31545
|
|
|
31925
31546
|
export interface ShiftPlansDto {
|
|
31926
31547
|
active: ShiftPlanDto[];
|
|
31927
|
-
archived:
|
|
31548
|
+
archived: ShiftPlanDto[];
|
|
31928
31549
|
}
|
|
31929
31550
|
|
|
31930
31551
|
export interface ShiftPlanDto {
|
|
@@ -31936,28 +31557,6 @@ export interface ShiftPlanDto {
|
|
|
31936
31557
|
isArchived?: boolean;
|
|
31937
31558
|
}
|
|
31938
31559
|
|
|
31939
|
-
export interface ArchivedShiftPlanDto extends ShiftPlanDto {
|
|
31940
|
-
usage: ShiftSettingPeriodsDto[];
|
|
31941
|
-
}
|
|
31942
|
-
|
|
31943
|
-
export interface ShiftSettingPeriodsDto {
|
|
31944
|
-
resourceExternalId: string;
|
|
31945
|
-
resourceName: string;
|
|
31946
|
-
resourceDescription?: string | null;
|
|
31947
|
-
periods: ShiftSettingsPeriodDto[];
|
|
31948
|
-
}
|
|
31949
|
-
|
|
31950
|
-
export interface ShiftSettingsPeriodDto {
|
|
31951
|
-
resourceExternalId: string;
|
|
31952
|
-
shiftPlanId: string;
|
|
31953
|
-
shiftPlanName: string;
|
|
31954
|
-
effectiveFrom: string;
|
|
31955
|
-
effectiveTo?: string | null;
|
|
31956
|
-
targetPercent: number;
|
|
31957
|
-
comment?: string | null;
|
|
31958
|
-
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
31959
|
-
}
|
|
31960
|
-
|
|
31961
31560
|
export interface CreateShiftPlan {
|
|
31962
31561
|
name: string;
|
|
31963
31562
|
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
@@ -31979,6 +31578,23 @@ export interface ShiftSettingsPeriodGroupDto {
|
|
|
31979
31578
|
resources: ShiftSettingPeriodsDto[];
|
|
31980
31579
|
}
|
|
31981
31580
|
|
|
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
|
+
|
|
31982
31598
|
export interface AddShiftSettingPeriods {
|
|
31983
31599
|
resourceExternalIds: string[];
|
|
31984
31600
|
shiftPlanId: string;
|
|
@@ -32004,12 +31620,8 @@ export interface PeriodKey {
|
|
|
32004
31620
|
}
|
|
32005
31621
|
|
|
32006
31622
|
export interface CopyShiftSettingsPeriodRequest {
|
|
32007
|
-
|
|
32008
|
-
|
|
32009
|
-
|
|
32010
|
-
export interface SourceShiftSettingPeriod {
|
|
32011
|
-
sourceResourceExternalId: string;
|
|
32012
|
-
sourceEffectiveFrom: string;
|
|
31623
|
+
targetResourceExternalId: string;
|
|
31624
|
+
effectiveFrom: string;
|
|
32013
31625
|
}
|
|
32014
31626
|
|
|
32015
31627
|
export interface MigrationResultDto {
|
|
@@ -33539,47 +33151,6 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
33539
33151
|
companies: MachineGroupUtilizationDto[];
|
|
33540
33152
|
}
|
|
33541
33153
|
|
|
33542
|
-
export interface LiveMachineDataDto {
|
|
33543
|
-
assetId?: number;
|
|
33544
|
-
dataPoints?: LiveMachineDataPointDto[];
|
|
33545
|
-
}
|
|
33546
|
-
|
|
33547
|
-
export interface LiveMachineDataPointDto {
|
|
33548
|
-
externalId?: string;
|
|
33549
|
-
timestamp?: number | null;
|
|
33550
|
-
numericValue?: number | null;
|
|
33551
|
-
stringValue?: string | null;
|
|
33552
|
-
}
|
|
33553
|
-
|
|
33554
|
-
export interface TimeseriesGraphDto {
|
|
33555
|
-
assetId?: number;
|
|
33556
|
-
series?: TimeseriesGraphSeriesDto[];
|
|
33557
|
-
}
|
|
33558
|
-
|
|
33559
|
-
export interface TimeseriesGraphSeriesDto {
|
|
33560
|
-
externalId?: string;
|
|
33561
|
-
isString?: boolean;
|
|
33562
|
-
dataPoints?: TimeseriesGraphDataPointDto[];
|
|
33563
|
-
}
|
|
33564
|
-
|
|
33565
|
-
export interface TimeseriesGraphDataPointDto {
|
|
33566
|
-
timestamp?: number;
|
|
33567
|
-
numericValue?: number | null;
|
|
33568
|
-
stringValue?: string | null;
|
|
33569
|
-
}
|
|
33570
|
-
|
|
33571
|
-
export interface ExportTimeseriesGraphRequest {
|
|
33572
|
-
series?: TimeseriesExportSeries[];
|
|
33573
|
-
startTime?: Date;
|
|
33574
|
-
endTime?: Date;
|
|
33575
|
-
}
|
|
33576
|
-
|
|
33577
|
-
export interface TimeseriesExportSeries {
|
|
33578
|
-
externalId?: string;
|
|
33579
|
-
displayName?: string | null;
|
|
33580
|
-
unit?: string | null;
|
|
33581
|
-
}
|
|
33582
|
-
|
|
33583
33154
|
export interface LinkDto {
|
|
33584
33155
|
id: string;
|
|
33585
33156
|
uri: string;
|
|
@@ -33628,7 +33199,7 @@ export interface ImportDocument {
|
|
|
33628
33199
|
lots: string[];
|
|
33629
33200
|
frontPageDocumentId?: string | null;
|
|
33630
33201
|
documentSource: DocumentSource;
|
|
33631
|
-
uploadKey
|
|
33202
|
+
uploadKey: string;
|
|
33632
33203
|
created?: Date | null;
|
|
33633
33204
|
createdBy?: string | null;
|
|
33634
33205
|
createdById?: string | null;
|
|
@@ -33664,8 +33235,7 @@ export interface ImportDocumentRevisionDto {
|
|
|
33664
33235
|
}
|
|
33665
33236
|
|
|
33666
33237
|
export interface ImportDocumentRevisionContentDto {
|
|
33667
|
-
uploadFilename
|
|
33668
|
-
sourceUrl?: string | null;
|
|
33238
|
+
uploadFilename: string;
|
|
33669
33239
|
originalFilename: string;
|
|
33670
33240
|
extension: string;
|
|
33671
33241
|
}
|
|
@@ -35401,22 +34971,6 @@ export interface EngineeringChangeOrdersDto {
|
|
|
35401
34971
|
engineeringChangeOrders?: EngineeringChangeOrderDto[];
|
|
35402
34972
|
}
|
|
35403
34973
|
|
|
35404
|
-
export interface IndirectActivityDto {
|
|
35405
|
-
activityId: string;
|
|
35406
|
-
name: string;
|
|
35407
|
-
companyId: string;
|
|
35408
|
-
}
|
|
35409
|
-
|
|
35410
|
-
export interface CurrentIndirectActivityDto {
|
|
35411
|
-
activityId?: string | null;
|
|
35412
|
-
personnelNumber?: string | null;
|
|
35413
|
-
startTime?: Date | null;
|
|
35414
|
-
}
|
|
35415
|
-
|
|
35416
|
-
export interface StartIndirectActivity {
|
|
35417
|
-
activityId: string;
|
|
35418
|
-
}
|
|
35419
|
-
|
|
35420
34974
|
export interface AddMesLink {
|
|
35421
34975
|
uri: string;
|
|
35422
34976
|
name: string;
|
|
@@ -35465,18 +35019,77 @@ export interface LabelId {
|
|
|
35465
35019
|
trackingId?: string | null;
|
|
35466
35020
|
}
|
|
35467
35021
|
|
|
35468
|
-
export
|
|
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
|
+
}
|
|
35469
35030
|
|
|
35470
|
-
export interface
|
|
35471
|
-
|
|
35472
|
-
|
|
35473
|
-
|
|
35474
|
-
|
|
35475
|
-
|
|
35476
|
-
|
|
35477
|
-
|
|
35478
|
-
|
|
35479
|
-
|
|
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";
|
|
35059
|
+
|
|
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;
|
|
35480
35093
|
}
|
|
35481
35094
|
|
|
35482
35095
|
export interface ProductionOrderDto {
|
|
@@ -35539,6 +35152,16 @@ export interface ProductionOrderOperationDto {
|
|
|
35539
35152
|
setupStatus?: OperationStatusDto | null;
|
|
35540
35153
|
}
|
|
35541
35154
|
|
|
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
|
+
|
|
35542
35165
|
export interface DrawingDto {
|
|
35543
35166
|
drawingNumber: string;
|
|
35544
35167
|
revision: string;
|
|
@@ -35763,6 +35386,7 @@ export interface ProductionScheduleOperationDto {
|
|
|
35763
35386
|
materialPickStatus: MaterialPickStatus;
|
|
35764
35387
|
productionStatus: OperationStatusDto;
|
|
35765
35388
|
setupStatus?: OperationStatusDto | null;
|
|
35389
|
+
programStatus?: ProgramStatus | null;
|
|
35766
35390
|
}
|
|
35767
35391
|
|
|
35768
35392
|
export interface SurroundingOperationDto {
|
|
@@ -36101,22 +35725,26 @@ export interface WeldingIotConfigDto {
|
|
|
36101
35725
|
export interface CreateWeldingIotConfig {
|
|
36102
35726
|
}
|
|
36103
35727
|
|
|
36104
|
-
export interface
|
|
35728
|
+
export interface ImaCdfEntityReadBase {
|
|
35729
|
+
}
|
|
35730
|
+
|
|
35731
|
+
export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
|
|
35732
|
+
companyId: string;
|
|
36105
35733
|
certificateTypeId: string;
|
|
36106
35734
|
version: number;
|
|
36107
35735
|
allVersions: ImaCertificateTypeVersionDto[];
|
|
36108
35736
|
name: string;
|
|
36109
35737
|
revision: string;
|
|
36110
|
-
status:
|
|
35738
|
+
status: ImaCertificateTypeStatus;
|
|
36111
35739
|
description?: string | null;
|
|
36112
35740
|
isStandardCertificateType: boolean;
|
|
36113
35741
|
created: Date;
|
|
36114
35742
|
createdBy: string;
|
|
36115
35743
|
createdById: string;
|
|
36116
|
-
createdByName
|
|
35744
|
+
createdByName: string;
|
|
36117
35745
|
updatedBy: string;
|
|
36118
35746
|
updatedById: string;
|
|
36119
|
-
updatedByName
|
|
35747
|
+
updatedByName: string;
|
|
36120
35748
|
updated: Date;
|
|
36121
35749
|
isDeleted: boolean;
|
|
36122
35750
|
requirements: ImaCertificateTypeRequirementsDto;
|
|
@@ -36124,10 +35752,10 @@ export interface ImaCertificateTypeDto {
|
|
|
36124
35752
|
|
|
36125
35753
|
export interface ImaCertificateTypeVersionDto {
|
|
36126
35754
|
version?: number;
|
|
36127
|
-
status?:
|
|
35755
|
+
status?: ImaCertificateTypeStatus;
|
|
36128
35756
|
}
|
|
36129
35757
|
|
|
36130
|
-
export type
|
|
35758
|
+
export type ImaCertificateTypeStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
36131
35759
|
|
|
36132
35760
|
export interface ImaCertificateTypeRequirementsDto {
|
|
36133
35761
|
manufacturer: ImaCertificateTypeManufacturerRequirementsDto;
|
|
@@ -36140,9 +35768,6 @@ export interface ImaCertificateTypeRequirementsDto {
|
|
|
36140
35768
|
documentTypes: ImaCertificateTypeDocumentTypesRequirementsDto;
|
|
36141
35769
|
}
|
|
36142
35770
|
|
|
36143
|
-
export interface ImaCdfEntityReadBase {
|
|
36144
|
-
}
|
|
36145
|
-
|
|
36146
35771
|
export interface ImaCertificateTypeManufacturerRequirementsDto extends ImaCdfEntityReadBase {
|
|
36147
35772
|
manufacturer?: boolean;
|
|
36148
35773
|
address?: boolean;
|
|
@@ -36219,7 +35844,7 @@ export interface ImaCreateOrCopyCertificateTypeRequestDto {
|
|
|
36219
35844
|
export interface ImaUpdateImaCertificateTypeRequestDto {
|
|
36220
35845
|
name?: string | null;
|
|
36221
35846
|
revision?: string | null;
|
|
36222
|
-
status?:
|
|
35847
|
+
status?: ImaCertificateTypeStatus | null;
|
|
36223
35848
|
description?: string | null;
|
|
36224
35849
|
requirements?: ImaCertificateTypeRequirementsUpdateDto | null;
|
|
36225
35850
|
}
|
|
@@ -36302,21 +35927,21 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
36302
35927
|
radiologicalReport?: boolean | null;
|
|
36303
35928
|
}
|
|
36304
35929
|
|
|
36305
|
-
export interface ImaCertificateTypeLiteDto {
|
|
35930
|
+
export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
|
|
36306
35931
|
certificateTypeId: string;
|
|
36307
35932
|
version: number;
|
|
36308
35933
|
name: string;
|
|
36309
35934
|
revision: string;
|
|
36310
|
-
status:
|
|
35935
|
+
status: ImaCertificateTypeStatus;
|
|
36311
35936
|
description?: string | null;
|
|
36312
35937
|
isStandardCertificateType: boolean;
|
|
36313
35938
|
created: Date;
|
|
36314
35939
|
createdBy: string;
|
|
36315
35940
|
createdById: string;
|
|
36316
|
-
createdByName
|
|
35941
|
+
createdByName: string;
|
|
36317
35942
|
updatedBy: string;
|
|
36318
35943
|
updatedById: string;
|
|
36319
|
-
updatedByName
|
|
35944
|
+
updatedByName: string;
|
|
36320
35945
|
updated: Date;
|
|
36321
35946
|
isDeleted: boolean;
|
|
36322
35947
|
}
|
|
@@ -36333,29 +35958,27 @@ export interface ImaMaterialCheckDto {
|
|
|
36333
35958
|
certificateTypeVersion?: number | null;
|
|
36334
35959
|
certificateTypeName?: string | null;
|
|
36335
35960
|
certificateTypeRevision?: string | null;
|
|
36336
|
-
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36337
35961
|
specificationId: string;
|
|
36338
35962
|
specificationVersion: number;
|
|
36339
35963
|
specificationName: string;
|
|
36340
|
-
specificationRevision
|
|
36341
|
-
specificationStatus:
|
|
35964
|
+
specificationRevision: string;
|
|
35965
|
+
specificationStatus: ImaSpecificationStatus;
|
|
35966
|
+
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36342
35967
|
purchaseOrder?: string | null;
|
|
36343
35968
|
purchaseOrderLine?: number | null;
|
|
36344
35969
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36345
35970
|
purchaseOrderPartName?: string | null;
|
|
36346
35971
|
purchaseOrderPartNumber?: string | null;
|
|
36347
|
-
purchaseOrderPartRevision?: string | null;
|
|
36348
35972
|
purchaseOrderDrawing?: string | null;
|
|
36349
|
-
purchaseOrderDrawingRevision?: string | null;
|
|
36350
35973
|
heatNumber?: string | null;
|
|
36351
|
-
status:
|
|
35974
|
+
status: ImaMaterialCheckStatus;
|
|
36352
35975
|
created: Date;
|
|
36353
35976
|
createdBy: string;
|
|
36354
35977
|
createdById: string;
|
|
36355
|
-
createdByName
|
|
35978
|
+
createdByName: string;
|
|
36356
35979
|
updatedBy: string;
|
|
36357
35980
|
updatedById: string;
|
|
36358
|
-
updatedByName
|
|
35981
|
+
updatedByName: string;
|
|
36359
35982
|
isDeleted: boolean;
|
|
36360
35983
|
reportCreatedBy?: string | null;
|
|
36361
35984
|
reportCreatedById?: string | null;
|
|
@@ -36365,9 +35988,9 @@ export interface ImaMaterialCheckDto {
|
|
|
36365
35988
|
specificationResults: ImaSpecificationResultsDto;
|
|
36366
35989
|
}
|
|
36367
35990
|
|
|
36368
|
-
export type
|
|
35991
|
+
export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
36369
35992
|
|
|
36370
|
-
export type
|
|
35993
|
+
export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
|
|
36371
35994
|
|
|
36372
35995
|
export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
|
|
36373
35996
|
manufacturer: ImaCertificateTypeManufacturerResultsDto;
|
|
@@ -36488,11 +36111,11 @@ export interface ImaSpecificationResultLineDto extends ImaCdfEntityReadBase {
|
|
|
36488
36111
|
specificationMin?: number | null;
|
|
36489
36112
|
specificationMax?: number | null;
|
|
36490
36113
|
readValue?: string | null;
|
|
36491
|
-
status:
|
|
36114
|
+
status: ImaSpecificationResultLineStatus;
|
|
36492
36115
|
override?: ImaResultLineOverrideDto | null;
|
|
36493
36116
|
}
|
|
36494
36117
|
|
|
36495
|
-
export type
|
|
36118
|
+
export type ImaSpecificationResultLineStatus = "NotFound" | "NotOk" | "Ok" | "NotSet";
|
|
36496
36119
|
|
|
36497
36120
|
export interface ImaSpecificationMechanicalResultsDto extends ImaCdfEntityReadBase {
|
|
36498
36121
|
yieldStrength?: ImaSpecificationResultLineDto | null;
|
|
@@ -36511,7 +36134,7 @@ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBa
|
|
|
36511
36134
|
specificationMin?: number | null;
|
|
36512
36135
|
specificationMax?: number | null;
|
|
36513
36136
|
readValue?: string | null;
|
|
36514
|
-
status:
|
|
36137
|
+
status: ImaSpecificationResultLineStatus;
|
|
36515
36138
|
override?: ImaResultLineOverrideDto | null;
|
|
36516
36139
|
measurementMethod?: string | null;
|
|
36517
36140
|
}
|
|
@@ -36680,29 +36303,27 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
36680
36303
|
certificateTypeVersion?: number | null;
|
|
36681
36304
|
certificateTypeName?: string | null;
|
|
36682
36305
|
certificateTypeRevision?: string | null;
|
|
36683
|
-
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36684
36306
|
specificationId: string;
|
|
36685
36307
|
specificationVersion: number;
|
|
36686
36308
|
specificationName: string;
|
|
36687
|
-
specificationRevision
|
|
36688
|
-
specificationStatus: ImaSpecificationStatusDto;
|
|
36309
|
+
specificationRevision: string;
|
|
36689
36310
|
purchaseOrder?: string | null;
|
|
36690
36311
|
purchaseOrderLine?: number | null;
|
|
36691
36312
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36692
36313
|
purchaseOrderPartName?: string | null;
|
|
36693
36314
|
purchaseOrderPartNumber?: string | null;
|
|
36694
|
-
purchaseOrderPartRevision?: string | null;
|
|
36695
36315
|
purchaseOrderDrawing?: string | null;
|
|
36696
|
-
purchaseOrderDrawingRevision?: string | null;
|
|
36697
36316
|
heatNumber?: string | null;
|
|
36698
|
-
status:
|
|
36317
|
+
status: ImaMaterialCheckStatus;
|
|
36318
|
+
specificationStatus: ImaSpecificationStatus;
|
|
36319
|
+
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36699
36320
|
created: Date;
|
|
36700
36321
|
createdBy: string;
|
|
36701
36322
|
createdById: string;
|
|
36702
|
-
createdByName
|
|
36323
|
+
createdByName: string;
|
|
36703
36324
|
updatedBy: string;
|
|
36704
36325
|
updatedById: string;
|
|
36705
|
-
updatedByName
|
|
36326
|
+
updatedByName: string;
|
|
36706
36327
|
isDeleted?: boolean;
|
|
36707
36328
|
reportCreatedBy?: string | null;
|
|
36708
36329
|
reportCreatedById?: string | null;
|
|
@@ -36729,18 +36350,18 @@ export interface ImaMaterialChecksPageRequestDto {
|
|
|
36729
36350
|
purchaseOrderDrawingFilter?: string | null;
|
|
36730
36351
|
dateFromFilter?: Date | null;
|
|
36731
36352
|
dateToFilter?: Date | null;
|
|
36732
|
-
statusFilter?:
|
|
36353
|
+
statusFilter?: ImaMaterialCheckStatus[] | null;
|
|
36733
36354
|
continuationToken?: string | null;
|
|
36734
36355
|
}
|
|
36735
36356
|
|
|
36736
36357
|
export interface ImaMaterialChecksPageOrderRequestDto {
|
|
36737
|
-
column?:
|
|
36738
|
-
direction?:
|
|
36358
|
+
column?: ImaMaterialChecksOrderByColumn;
|
|
36359
|
+
direction?: ImaOrderDirection;
|
|
36739
36360
|
}
|
|
36740
36361
|
|
|
36741
|
-
export type
|
|
36362
|
+
export type ImaMaterialChecksOrderByColumn = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
|
|
36742
36363
|
|
|
36743
|
-
export type
|
|
36364
|
+
export type ImaOrderDirection = "Asc" | "Desc";
|
|
36744
36365
|
|
|
36745
36366
|
export interface ProcessMaterialCertificate {
|
|
36746
36367
|
files: UploadFileCdfDto[];
|
|
@@ -36860,7 +36481,7 @@ export interface ImaUpdateMatchSettingsColumnsDto {
|
|
|
36860
36481
|
status: boolean;
|
|
36861
36482
|
}
|
|
36862
36483
|
|
|
36863
|
-
export interface ImaSpecificationDto {
|
|
36484
|
+
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
36864
36485
|
specificationId: string;
|
|
36865
36486
|
version: number;
|
|
36866
36487
|
allVersions: ImaSpecificationVersionDto[];
|
|
@@ -36868,16 +36489,16 @@ export interface ImaSpecificationDto {
|
|
|
36868
36489
|
number: string;
|
|
36869
36490
|
revision: string;
|
|
36870
36491
|
date: Date;
|
|
36871
|
-
status:
|
|
36492
|
+
status: ImaSpecificationStatus;
|
|
36872
36493
|
summary?: string | null;
|
|
36873
36494
|
relatedStandards: string[];
|
|
36874
36495
|
created: Date;
|
|
36875
36496
|
createdBy: string;
|
|
36876
36497
|
createdById: string;
|
|
36877
|
-
createdByName
|
|
36498
|
+
createdByName: string;
|
|
36878
36499
|
updatedBy: string;
|
|
36879
36500
|
updatedById: string;
|
|
36880
|
-
updatedByName
|
|
36501
|
+
updatedByName: string;
|
|
36881
36502
|
updated: Date;
|
|
36882
36503
|
isDeleted: boolean;
|
|
36883
36504
|
chemistrySpecification: ImaChemistrySpecificationDto;
|
|
@@ -36888,10 +36509,10 @@ export interface ImaSpecificationDto {
|
|
|
36888
36509
|
|
|
36889
36510
|
export interface ImaSpecificationVersionDto {
|
|
36890
36511
|
version?: number;
|
|
36891
|
-
status?:
|
|
36512
|
+
status?: ImaSpecificationStatus;
|
|
36892
36513
|
}
|
|
36893
36514
|
|
|
36894
|
-
export interface ImaChemistrySpecificationDto {
|
|
36515
|
+
export interface ImaChemistrySpecificationDto extends ImaCdfEntityReadBase {
|
|
36895
36516
|
carbon?: ImaSpecificationLineDto | null;
|
|
36896
36517
|
manganese?: ImaSpecificationLineDto | null;
|
|
36897
36518
|
silicon?: ImaSpecificationLineDto | null;
|
|
@@ -36911,7 +36532,7 @@ export interface ImaSpecificationLineDto extends ImaCdfEntityReadBase {
|
|
|
36911
36532
|
max?: number | null;
|
|
36912
36533
|
}
|
|
36913
36534
|
|
|
36914
|
-
export interface ImaMechanicalSpecificationDto {
|
|
36535
|
+
export interface ImaMechanicalSpecificationDto extends ImaCdfEntityReadBase {
|
|
36915
36536
|
yieldStrength?: ImaSpecificationLineDto | null;
|
|
36916
36537
|
tensileStrength?: ImaSpecificationLineDto | null;
|
|
36917
36538
|
elongation?: ImaSpecificationLineDto | null;
|
|
@@ -36920,31 +36541,31 @@ export interface ImaMechanicalSpecificationDto {
|
|
|
36920
36541
|
hardness?: ImaSpecificationLineDto | null;
|
|
36921
36542
|
}
|
|
36922
36543
|
|
|
36923
|
-
export interface ImaFerriteSpecificationDto {
|
|
36544
|
+
export interface ImaFerriteSpecificationDto extends ImaCdfEntityReadBase {
|
|
36924
36545
|
ferriteContent?: ImaSpecificationLineDto | null;
|
|
36925
36546
|
}
|
|
36926
36547
|
|
|
36927
|
-
export interface ImaHeatTreatmentSpecificationDto {
|
|
36548
|
+
export interface ImaHeatTreatmentSpecificationDto extends ImaCdfEntityReadBase {
|
|
36928
36549
|
step: number;
|
|
36929
36550
|
cooling?: ImaHeatTreatmentSpecificationCoolingDto | null;
|
|
36930
36551
|
heating?: ImaHeatTreatmentSpecificationHeatingDto | null;
|
|
36931
36552
|
}
|
|
36932
36553
|
|
|
36933
|
-
export interface ImaHeatTreatmentSpecificationCoolingDto {
|
|
36934
|
-
coolingMethods:
|
|
36554
|
+
export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityReadBase {
|
|
36555
|
+
coolingMethods: ImaHeatTreatmentCoolingMethod[];
|
|
36935
36556
|
temperature?: ImaSpecificationLineDto | null;
|
|
36936
36557
|
duration?: ImaSpecificationLineDto | null;
|
|
36937
36558
|
}
|
|
36938
36559
|
|
|
36939
|
-
export type
|
|
36560
|
+
export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
|
|
36940
36561
|
|
|
36941
|
-
export interface ImaHeatTreatmentSpecificationHeatingDto {
|
|
36942
|
-
heatingMethod:
|
|
36562
|
+
export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
|
|
36563
|
+
heatingMethod: ImaHeatTreatmentHeatingMethod;
|
|
36943
36564
|
temperature?: ImaSpecificationLineDto | null;
|
|
36944
36565
|
duration?: ImaSpecificationLineDto | null;
|
|
36945
36566
|
}
|
|
36946
36567
|
|
|
36947
|
-
export type
|
|
36568
|
+
export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
|
|
36948
36569
|
|
|
36949
36570
|
export interface ImaCreateSpecificationRequestDto {
|
|
36950
36571
|
name: string;
|
|
@@ -36964,7 +36585,7 @@ export interface ImaCopySpecificationRequestDto {
|
|
|
36964
36585
|
export interface ImaUpdateSpecificationDto {
|
|
36965
36586
|
name?: string | null;
|
|
36966
36587
|
number?: string | null;
|
|
36967
|
-
status?:
|
|
36588
|
+
status?: ImaSpecificationStatus | null;
|
|
36968
36589
|
summary?: string | null;
|
|
36969
36590
|
relatedStandards?: string[] | null;
|
|
36970
36591
|
chemistrySpecification?: ImaChemistrySpecificationDto | null;
|
|
@@ -36973,110 +36594,26 @@ export interface ImaUpdateSpecificationDto {
|
|
|
36973
36594
|
heatSpecifications?: ImaHeatTreatmentSpecificationDto[] | null;
|
|
36974
36595
|
}
|
|
36975
36596
|
|
|
36976
|
-
export interface ImaSpecificationLiteDto {
|
|
36597
|
+
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
36977
36598
|
specificationId: string;
|
|
36978
36599
|
version: number;
|
|
36979
36600
|
name: string;
|
|
36980
36601
|
number: string;
|
|
36981
36602
|
revision: string;
|
|
36982
36603
|
date: Date;
|
|
36983
|
-
status:
|
|
36604
|
+
status: ImaSpecificationStatus;
|
|
36984
36605
|
summary?: string | null;
|
|
36985
36606
|
relatedStandards: string[];
|
|
36986
36607
|
created: Date;
|
|
36987
36608
|
createdBy: string;
|
|
36988
36609
|
createdById: string;
|
|
36989
|
-
createdByName
|
|
36610
|
+
createdByName: string;
|
|
36990
36611
|
updatedBy: string;
|
|
36991
36612
|
updatedById: string;
|
|
36992
|
-
updatedByName
|
|
36993
|
-
updated: Date;
|
|
36613
|
+
updatedByName: string;
|
|
36994
36614
|
isDeleted: boolean;
|
|
36995
36615
|
}
|
|
36996
36616
|
|
|
36997
|
-
export interface SchemaCreatorStateDto {
|
|
36998
|
-
settings: SchemaCreatorSettingsDto;
|
|
36999
|
-
elements: SchemaCreatorElementDto[];
|
|
37000
|
-
}
|
|
37001
|
-
|
|
37002
|
-
export interface SchemaCreatorSettingsDto {
|
|
37003
|
-
unit?: UnitOfMeasureDto;
|
|
37004
|
-
tolerance?: GeneralToleranceDto;
|
|
37005
|
-
balloonSize?: number;
|
|
37006
|
-
}
|
|
37007
|
-
|
|
37008
|
-
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
37009
|
-
|
|
37010
|
-
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
37011
|
-
|
|
37012
|
-
export interface SchemaCreatorElementDto {
|
|
37013
|
-
id: string;
|
|
37014
|
-
kind: SchemaCreatorElementKindDto;
|
|
37015
|
-
drawings: SchemaCreatorElementDrawingsDto;
|
|
37016
|
-
isDirty?: boolean | null;
|
|
37017
|
-
values?: SchemaCreatorElementValuesDto | null;
|
|
37018
|
-
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
37019
|
-
}
|
|
37020
|
-
|
|
37021
|
-
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
37022
|
-
|
|
37023
|
-
export interface SchemaCreatorElementDrawingsDto {
|
|
37024
|
-
square: SchemaCreatorDrawingDto;
|
|
37025
|
-
circle: SchemaCreatorDrawingDto;
|
|
37026
|
-
textId: string;
|
|
37027
|
-
}
|
|
37028
|
-
|
|
37029
|
-
export interface SchemaCreatorDrawingDto {
|
|
37030
|
-
rect: SchemaCreatorRectDto;
|
|
37031
|
-
pageIndex: number;
|
|
37032
|
-
annotationId: string;
|
|
37033
|
-
rotation?: number | null;
|
|
37034
|
-
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
37035
|
-
}
|
|
37036
|
-
|
|
37037
|
-
export interface SchemaCreatorRectDto {
|
|
37038
|
-
origin: SchemaCreatorPointDto;
|
|
37039
|
-
size: SchemaCreatorSizeDto;
|
|
37040
|
-
}
|
|
37041
|
-
|
|
37042
|
-
export interface SchemaCreatorPointDto {
|
|
37043
|
-
x: number;
|
|
37044
|
-
y: number;
|
|
37045
|
-
}
|
|
37046
|
-
|
|
37047
|
-
export interface SchemaCreatorSizeDto {
|
|
37048
|
-
width: number;
|
|
37049
|
-
height: number;
|
|
37050
|
-
}
|
|
37051
|
-
|
|
37052
|
-
export interface SchemaCreatorElementValuesDto {
|
|
37053
|
-
reference: number;
|
|
37054
|
-
nominal?: number | null;
|
|
37055
|
-
nominalText?: string | null;
|
|
37056
|
-
plusTolerance?: number | null;
|
|
37057
|
-
minusTolerance?: number | null;
|
|
37058
|
-
coatingThickness?: number | null;
|
|
37059
|
-
measurementFrequency: MeasurementFrequency;
|
|
37060
|
-
measurementFrequencyParameter?: number | null;
|
|
37061
|
-
type?: string | null;
|
|
37062
|
-
count?: number | null;
|
|
37063
|
-
comment?: string | null;
|
|
37064
|
-
canCopy: boolean;
|
|
37065
|
-
visibleToCustomer: boolean;
|
|
37066
|
-
isDocumentedExternally: boolean;
|
|
37067
|
-
}
|
|
37068
|
-
|
|
37069
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
37070
|
-
|
|
37071
|
-
export interface SchemaCreatorSnipResultDto {
|
|
37072
|
-
nominal?: number | null;
|
|
37073
|
-
nominalText?: string | null;
|
|
37074
|
-
plusTolerance?: number | null;
|
|
37075
|
-
minusTolerance?: number | null;
|
|
37076
|
-
coatingThickness?: number | null;
|
|
37077
|
-
count?: number | null;
|
|
37078
|
-
}
|
|
37079
|
-
|
|
37080
36617
|
export interface MeasurementFormSchemaDto {
|
|
37081
36618
|
id: string;
|
|
37082
36619
|
versionId: number;
|
|
@@ -37111,8 +36648,12 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
|
37111
36648
|
|
|
37112
36649
|
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
37113
36650
|
|
|
36651
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
36652
|
+
|
|
37114
36653
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
37115
36654
|
|
|
36655
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
36656
|
+
|
|
37116
36657
|
export interface MeasurementFormSchemaAttachmentDto {
|
|
37117
36658
|
url: string;
|
|
37118
36659
|
title: string;
|
|
@@ -37163,6 +36704,8 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
37163
36704
|
validationErrorMessage?: string | null;
|
|
37164
36705
|
}
|
|
37165
36706
|
|
|
36707
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
36708
|
+
|
|
37166
36709
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
37167
36710
|
|
|
37168
36711
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|
|
@@ -38270,6 +37813,7 @@ export interface WorkorderDiscussionMessageDto {
|
|
|
38270
37813
|
operationName?: string | null;
|
|
38271
37814
|
resourceId?: string | null;
|
|
38272
37815
|
created?: Date;
|
|
37816
|
+
visibility?: DiscussionVisibility;
|
|
38273
37817
|
}
|
|
38274
37818
|
|
|
38275
37819
|
export interface WorkOrderDiscussionContent {
|
|
@@ -38279,11 +37823,14 @@ export interface WorkOrderDiscussionContent {
|
|
|
38279
37823
|
|
|
38280
37824
|
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
38281
37825
|
|
|
37826
|
+
export type DiscussionVisibility = "Public" | "Planner";
|
|
37827
|
+
|
|
38282
37828
|
export interface AddDiscussionMessageRequest {
|
|
38283
37829
|
message: string;
|
|
38284
37830
|
operationId?: string | null;
|
|
38285
37831
|
operationName?: string | null;
|
|
38286
37832
|
resourceId?: string | null;
|
|
37833
|
+
visibility?: DiscussionVisibility;
|
|
38287
37834
|
}
|
|
38288
37835
|
|
|
38289
37836
|
export interface WorkorderDiscussionReadStatusDto {
|