@ignos/api-client 20260711.182.1-alpha → 20260714.184.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 +192 -328
- package/lib/ignosportal-api.js +265 -556
- package/package.json +1 -1
- package/src/ignosportal-api.ts +481 -890
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
|
-
|
|
21979
|
-
|
|
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>;
|
|
21701
|
+
|
|
21702
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21984
21703
|
|
|
21985
|
-
|
|
21704
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
21986
21705
|
|
|
21987
|
-
|
|
21706
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21988
21707
|
|
|
21989
|
-
|
|
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,101 @@ 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
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
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
|
+
});
|
|
21758
|
+
} else if (status !== 200 && status !== 204) {
|
|
21759
|
+
return response.text().then((_responseText) => {
|
|
21760
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21761
|
+
});
|
|
21762
|
+
}
|
|
21763
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21764
|
+
}
|
|
21765
|
+
|
|
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));
|
|
21771
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21772
|
+
|
|
21773
|
+
const content_ = JSON.stringify(request);
|
|
21774
|
+
|
|
21775
|
+
let options_: RequestInit = {
|
|
21776
|
+
body: content_,
|
|
21777
|
+
method: "POST",
|
|
21778
|
+
headers: {
|
|
21779
|
+
"Content-Type": "application/json",
|
|
21780
|
+
"Accept": "application/json"
|
|
22058
21781
|
}
|
|
22059
|
-
|
|
21782
|
+
};
|
|
21783
|
+
|
|
21784
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21785
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21786
|
+
}).then((_response: Response) => {
|
|
21787
|
+
return this.processPublish(_response);
|
|
21788
|
+
});
|
|
21789
|
+
}
|
|
21790
|
+
|
|
21791
|
+
protected processPublish(response: Response): Promise<PlannerPlanDto> {
|
|
21792
|
+
const status = response.status;
|
|
21793
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21794
|
+
if (status === 200) {
|
|
21795
|
+
return response.text().then((_responseText) => {
|
|
21796
|
+
let result200: any = null;
|
|
21797
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21798
|
+
return result200;
|
|
21799
|
+
});
|
|
22060
21800
|
} else if (status !== 200 && status !== 204) {
|
|
22061
21801
|
return response.text().then((_responseText) => {
|
|
22062
21802
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22063
21803
|
});
|
|
22064
21804
|
}
|
|
22065
|
-
return Promise.resolve<
|
|
21805
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22066
21806
|
}
|
|
22067
21807
|
|
|
22068
|
-
|
|
22069
|
-
let url_ = this.baseUrl + "/mes/
|
|
22070
|
-
if (
|
|
22071
|
-
throw new globalThis.Error("The parameter '
|
|
22072
|
-
url_ = url_.replace("{
|
|
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));
|
|
22073
21813
|
url_ = url_.replace(/[?&]$/, "");
|
|
22074
21814
|
|
|
21815
|
+
const content_ = JSON.stringify(sequence);
|
|
21816
|
+
|
|
22075
21817
|
let options_: RequestInit = {
|
|
22076
|
-
|
|
21818
|
+
body: content_,
|
|
21819
|
+
method: "PUT",
|
|
22077
21820
|
headers: {
|
|
21821
|
+
"Content-Type": "application/json",
|
|
22078
21822
|
"Accept": "application/json"
|
|
22079
21823
|
}
|
|
22080
21824
|
};
|
|
@@ -22082,17 +21826,17 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22082
21826
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22083
21827
|
return this.http.fetch(url_, transformedOptions_);
|
|
22084
21828
|
}).then((_response: Response) => {
|
|
22085
|
-
return this.
|
|
21829
|
+
return this.processUpdateSequence(_response);
|
|
22086
21830
|
});
|
|
22087
21831
|
}
|
|
22088
21832
|
|
|
22089
|
-
protected
|
|
21833
|
+
protected processUpdateSequence(response: Response): Promise<PlannerPlanDto> {
|
|
22090
21834
|
const status = response.status;
|
|
22091
21835
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22092
21836
|
if (status === 200) {
|
|
22093
21837
|
return response.text().then((_responseText) => {
|
|
22094
21838
|
let result200: any = null;
|
|
22095
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
21839
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22096
21840
|
return result200;
|
|
22097
21841
|
});
|
|
22098
21842
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -22100,99 +21844,243 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22100
21844
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22101
21845
|
});
|
|
22102
21846
|
}
|
|
22103
|
-
return Promise.resolve<
|
|
21847
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22104
21848
|
}
|
|
22105
21849
|
|
|
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));
|
|
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));
|
|
22114
21855
|
url_ = url_.replace(/[?&]$/, "");
|
|
22115
21856
|
|
|
22116
21857
|
let options_: RequestInit = {
|
|
22117
|
-
method: "
|
|
21858
|
+
method: "POST",
|
|
22118
21859
|
headers: {
|
|
22119
|
-
"Accept": "application/
|
|
21860
|
+
"Accept": "application/json"
|
|
22120
21861
|
}
|
|
22121
21862
|
};
|
|
22122
21863
|
|
|
22123
21864
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22124
21865
|
return this.http.fetch(url_, transformedOptions_);
|
|
22125
21866
|
}).then((_response: Response) => {
|
|
22126
|
-
return this.
|
|
21867
|
+
return this.processReset(_response);
|
|
22127
21868
|
});
|
|
22128
21869
|
}
|
|
22129
21870
|
|
|
22130
|
-
protected
|
|
21871
|
+
protected processReset(response: Response): Promise<PlannerPlanDto> {
|
|
22131
21872
|
const status = response.status;
|
|
22132
21873
|
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
|
-
|
|
21874
|
+
if (status === 200) {
|
|
21875
|
+
return response.text().then((_responseText) => {
|
|
21876
|
+
let result200: any = null;
|
|
21877
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
21878
|
+
return result200;
|
|
21879
|
+
});
|
|
21880
|
+
} else if (status !== 200 && status !== 204) {
|
|
21881
|
+
return response.text().then((_responseText) => {
|
|
21882
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21883
|
+
});
|
|
21884
|
+
}
|
|
21885
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
21886
|
+
}
|
|
21887
|
+
|
|
21888
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
|
|
21889
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
21890
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
21891
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
21892
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
21893
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21894
|
+
|
|
21895
|
+
const content_ = JSON.stringify(sequence);
|
|
21896
|
+
|
|
21897
|
+
let options_: RequestInit = {
|
|
21898
|
+
body: content_,
|
|
21899
|
+
method: "POST",
|
|
21900
|
+
headers: {
|
|
21901
|
+
"Content-Type": "application/json",
|
|
21902
|
+
"Accept": "application/json"
|
|
22142
21903
|
}
|
|
22143
|
-
|
|
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
|
+
});
|
|
22144
21922
|
} else if (status !== 200 && status !== 204) {
|
|
22145
21923
|
return response.text().then((_responseText) => {
|
|
22146
21924
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22147
21925
|
});
|
|
22148
21926
|
}
|
|
22149
|
-
return Promise.resolve<
|
|
21927
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22150
21928
|
}
|
|
22151
21929
|
|
|
22152
|
-
|
|
22153
|
-
let url_ = this.baseUrl + "/mes/
|
|
22154
|
-
if (
|
|
22155
|
-
throw new globalThis.Error("The parameter '
|
|
22156
|
-
url_ = url_.replace("{
|
|
22157
|
-
if (attachmentId === undefined || attachmentId === null)
|
|
22158
|
-
throw new globalThis.Error("The parameter 'attachmentId' must be defined.");
|
|
22159
|
-
url_ = url_.replace("{attachmentId}", encodeURIComponent("" + attachmentId));
|
|
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.");
|
|
@@ -24755,220 +24643,22 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
24755
24643
|
|
|
24756
24644
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
24757
24645
|
super(configuration);
|
|
24758
|
-
this.http = http ? http : window as any;
|
|
24759
|
-
this.baseUrl = baseUrl ?? "";
|
|
24760
|
-
}
|
|
24761
|
-
|
|
24762
|
-
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
|
|
24763
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
24764
|
-
if (id === undefined || id === null)
|
|
24765
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24766
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24767
|
-
if (version !== undefined && version !== null)
|
|
24768
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24769
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24770
|
-
|
|
24771
|
-
let options_: RequestInit = {
|
|
24772
|
-
method: "GET",
|
|
24773
|
-
headers: {
|
|
24774
|
-
"Accept": "application/json"
|
|
24775
|
-
}
|
|
24776
|
-
};
|
|
24777
|
-
|
|
24778
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24779
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24780
|
-
}).then((_response: Response) => {
|
|
24781
|
-
return this.processGetSpecification(_response);
|
|
24782
|
-
});
|
|
24783
|
-
}
|
|
24784
|
-
|
|
24785
|
-
protected processGetSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
24786
|
-
const status = response.status;
|
|
24787
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24788
|
-
if (status === 200) {
|
|
24789
|
-
return response.text().then((_responseText) => {
|
|
24790
|
-
let result200: any = null;
|
|
24791
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
|
|
24792
|
-
return result200;
|
|
24793
|
-
});
|
|
24794
|
-
} else if (status !== 200 && status !== 204) {
|
|
24795
|
-
return response.text().then((_responseText) => {
|
|
24796
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24797
|
-
});
|
|
24798
|
-
}
|
|
24799
|
-
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
24800
|
-
}
|
|
24801
|
-
|
|
24802
|
-
listSpecifications(): Promise<ImaSpecificationLiteDto[]> {
|
|
24803
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/list";
|
|
24804
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24805
|
-
|
|
24806
|
-
let options_: RequestInit = {
|
|
24807
|
-
method: "GET",
|
|
24808
|
-
headers: {
|
|
24809
|
-
"Accept": "application/json"
|
|
24810
|
-
}
|
|
24811
|
-
};
|
|
24812
|
-
|
|
24813
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24814
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24815
|
-
}).then((_response: Response) => {
|
|
24816
|
-
return this.processListSpecifications(_response);
|
|
24817
|
-
});
|
|
24818
|
-
}
|
|
24819
|
-
|
|
24820
|
-
protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]> {
|
|
24821
|
-
const status = response.status;
|
|
24822
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24823
|
-
if (status === 200) {
|
|
24824
|
-
return response.text().then((_responseText) => {
|
|
24825
|
-
let result200: any = null;
|
|
24826
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationLiteDto[];
|
|
24827
|
-
return result200;
|
|
24828
|
-
});
|
|
24829
|
-
} else if (status !== 200 && status !== 204) {
|
|
24830
|
-
return response.text().then((_responseText) => {
|
|
24831
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24832
|
-
});
|
|
24833
|
-
}
|
|
24834
|
-
return Promise.resolve<ImaSpecificationLiteDto[]>(null as any);
|
|
24835
|
-
}
|
|
24836
|
-
}
|
|
24837
|
-
|
|
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
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
24852
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
24853
|
-
* @param image (optional)
|
|
24854
|
-
*/
|
|
24855
|
-
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
|
|
24856
|
-
}
|
|
24857
|
-
|
|
24858
|
-
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
24859
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
24860
|
-
private baseUrl: string;
|
|
24861
|
-
|
|
24862
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
24863
|
-
super(configuration);
|
|
24864
|
-
this.http = http ? http : window as any;
|
|
24865
|
-
this.baseUrl = baseUrl ?? "";
|
|
24866
|
-
}
|
|
24867
|
-
|
|
24868
|
-
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
|
|
24869
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24870
|
-
if (id === undefined || id === null)
|
|
24871
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24872
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24873
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24874
|
-
|
|
24875
|
-
let options_: RequestInit = {
|
|
24876
|
-
method: "GET",
|
|
24877
|
-
headers: {
|
|
24878
|
-
"Accept": "application/json"
|
|
24879
|
-
}
|
|
24880
|
-
};
|
|
24881
|
-
|
|
24882
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24883
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24884
|
-
}).then((_response: Response) => {
|
|
24885
|
-
return this.processGetSchemaCreatorState(_response);
|
|
24886
|
-
});
|
|
24887
|
-
}
|
|
24888
|
-
|
|
24889
|
-
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24890
|
-
const status = response.status;
|
|
24891
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24892
|
-
if (status === 200) {
|
|
24893
|
-
return response.text().then((_responseText) => {
|
|
24894
|
-
let result200: any = null;
|
|
24895
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24896
|
-
return result200;
|
|
24897
|
-
});
|
|
24898
|
-
} else if (status !== 200 && status !== 204) {
|
|
24899
|
-
return response.text().then((_responseText) => {
|
|
24900
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24901
|
-
});
|
|
24902
|
-
}
|
|
24903
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24904
|
-
}
|
|
24905
|
-
|
|
24906
|
-
/**
|
|
24907
|
-
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24908
|
-
state already exists; the caller should re-fetch it instead of writing.
|
|
24909
|
-
*/
|
|
24910
|
-
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24911
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24912
|
-
if (id === undefined || id === null)
|
|
24913
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24914
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24915
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24916
|
-
|
|
24917
|
-
const content_ = JSON.stringify(state);
|
|
24918
|
-
|
|
24919
|
-
let options_: RequestInit = {
|
|
24920
|
-
body: content_,
|
|
24921
|
-
method: "POST",
|
|
24922
|
-
headers: {
|
|
24923
|
-
"Content-Type": "application/json",
|
|
24924
|
-
"Accept": "application/json"
|
|
24925
|
-
}
|
|
24926
|
-
};
|
|
24927
|
-
|
|
24928
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24929
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24930
|
-
}).then((_response: Response) => {
|
|
24931
|
-
return this.processCreateSchemaCreatorState(_response);
|
|
24932
|
-
});
|
|
24933
|
-
}
|
|
24934
|
-
|
|
24935
|
-
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24936
|
-
const status = response.status;
|
|
24937
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24938
|
-
if (status === 201) {
|
|
24939
|
-
return response.text().then((_responseText) => {
|
|
24940
|
-
let result201: any = null;
|
|
24941
|
-
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24942
|
-
return result201;
|
|
24943
|
-
});
|
|
24944
|
-
} else if (status === 409) {
|
|
24945
|
-
return response.text().then((_responseText) => {
|
|
24946
|
-
let result409: any = null;
|
|
24947
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
24948
|
-
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24949
|
-
});
|
|
24950
|
-
} else if (status !== 200 && status !== 204) {
|
|
24951
|
-
return response.text().then((_responseText) => {
|
|
24952
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24953
|
-
});
|
|
24954
|
-
}
|
|
24955
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24646
|
+
this.http = http ? http : window as any;
|
|
24647
|
+
this.baseUrl = baseUrl ?? "";
|
|
24956
24648
|
}
|
|
24957
24649
|
|
|
24958
|
-
|
|
24959
|
-
let url_ = this.baseUrl + "/
|
|
24650
|
+
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
|
|
24651
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
24960
24652
|
if (id === undefined || id === null)
|
|
24961
24653
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24962
24654
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24655
|
+
if (version !== undefined && version !== null)
|
|
24656
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
24963
24657
|
url_ = url_.replace(/[?&]$/, "");
|
|
24964
24658
|
|
|
24965
|
-
const content_ = JSON.stringify(state);
|
|
24966
|
-
|
|
24967
24659
|
let options_: RequestInit = {
|
|
24968
|
-
|
|
24969
|
-
method: "PUT",
|
|
24660
|
+
method: "GET",
|
|
24970
24661
|
headers: {
|
|
24971
|
-
"Content-Type": "application/json",
|
|
24972
24662
|
"Accept": "application/json"
|
|
24973
24663
|
}
|
|
24974
24664
|
};
|
|
@@ -24976,17 +24666,17 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24976
24666
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24977
24667
|
return this.http.fetch(url_, transformedOptions_);
|
|
24978
24668
|
}).then((_response: Response) => {
|
|
24979
|
-
return this.
|
|
24669
|
+
return this.processGetSpecification(_response);
|
|
24980
24670
|
});
|
|
24981
24671
|
}
|
|
24982
24672
|
|
|
24983
|
-
protected
|
|
24673
|
+
protected processGetSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
24984
24674
|
const status = response.status;
|
|
24985
24675
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24986
24676
|
if (status === 200) {
|
|
24987
24677
|
return response.text().then((_responseText) => {
|
|
24988
24678
|
let result200: any = null;
|
|
24989
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
24679
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
|
|
24990
24680
|
return result200;
|
|
24991
24681
|
});
|
|
24992
24682
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -24994,63 +24684,42 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24994
24684
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24995
24685
|
});
|
|
24996
24686
|
}
|
|
24997
|
-
return Promise.resolve<
|
|
24687
|
+
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
24998
24688
|
}
|
|
24999
24689
|
|
|
25000
|
-
|
|
25001
|
-
|
|
25002
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
25003
|
-
* @param image (optional)
|
|
25004
|
-
*/
|
|
25005
|
-
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse> {
|
|
25006
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/resolvesnip";
|
|
25007
|
-
if (id === undefined || id === null)
|
|
25008
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25009
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25010
|
-
if (elementId === undefined || elementId === null)
|
|
25011
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
25012
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24690
|
+
listSpecifications(): Promise<ImaSpecificationLiteDto[]> {
|
|
24691
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/list";
|
|
25013
24692
|
url_ = url_.replace(/[?&]$/, "");
|
|
25014
24693
|
|
|
25015
|
-
const content_ = new FormData();
|
|
25016
|
-
if (image !== null && image !== undefined)
|
|
25017
|
-
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25018
|
-
|
|
25019
24694
|
let options_: RequestInit = {
|
|
25020
|
-
|
|
25021
|
-
method: "POST",
|
|
24695
|
+
method: "GET",
|
|
25022
24696
|
headers: {
|
|
25023
|
-
"Accept": "application/
|
|
24697
|
+
"Accept": "application/json"
|
|
25024
24698
|
}
|
|
25025
24699
|
};
|
|
25026
24700
|
|
|
25027
24701
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25028
24702
|
return this.http.fetch(url_, transformedOptions_);
|
|
25029
24703
|
}).then((_response: Response) => {
|
|
25030
|
-
return this.
|
|
24704
|
+
return this.processListSpecifications(_response);
|
|
25031
24705
|
});
|
|
25032
24706
|
}
|
|
25033
24707
|
|
|
25034
|
-
protected
|
|
24708
|
+
protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]> {
|
|
25035
24709
|
const status = response.status;
|
|
25036
24710
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25037
|
-
if (status === 200
|
|
25038
|
-
|
|
25039
|
-
let
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
} else {
|
|
25044
|
-
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
25045
|
-
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
25046
|
-
}
|
|
25047
|
-
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24711
|
+
if (status === 200) {
|
|
24712
|
+
return response.text().then((_responseText) => {
|
|
24713
|
+
let result200: any = null;
|
|
24714
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationLiteDto[];
|
|
24715
|
+
return result200;
|
|
24716
|
+
});
|
|
25048
24717
|
} else if (status !== 200 && status !== 204) {
|
|
25049
24718
|
return response.text().then((_responseText) => {
|
|
25050
24719
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25051
24720
|
});
|
|
25052
24721
|
}
|
|
25053
|
-
return Promise.resolve<
|
|
24722
|
+
return Promise.resolve<ImaSpecificationLiteDto[]>(null as any);
|
|
25054
24723
|
}
|
|
25055
24724
|
}
|
|
25056
24725
|
|
|
@@ -31876,7 +31545,7 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
31876
31545
|
|
|
31877
31546
|
export interface ShiftPlansDto {
|
|
31878
31547
|
active: ShiftPlanDto[];
|
|
31879
|
-
archived:
|
|
31548
|
+
archived: ShiftPlanDto[];
|
|
31880
31549
|
}
|
|
31881
31550
|
|
|
31882
31551
|
export interface ShiftPlanDto {
|
|
@@ -31888,28 +31557,6 @@ export interface ShiftPlanDto {
|
|
|
31888
31557
|
isArchived?: boolean;
|
|
31889
31558
|
}
|
|
31890
31559
|
|
|
31891
|
-
export interface ArchivedShiftPlanDto extends ShiftPlanDto {
|
|
31892
|
-
usage: ShiftSettingPeriodsDto[];
|
|
31893
|
-
}
|
|
31894
|
-
|
|
31895
|
-
export interface ShiftSettingPeriodsDto {
|
|
31896
|
-
resourceExternalId: string;
|
|
31897
|
-
resourceName: string;
|
|
31898
|
-
resourceDescription?: string | null;
|
|
31899
|
-
periods: ShiftSettingsPeriodDto[];
|
|
31900
|
-
}
|
|
31901
|
-
|
|
31902
|
-
export interface ShiftSettingsPeriodDto {
|
|
31903
|
-
resourceExternalId: string;
|
|
31904
|
-
shiftPlanId: string;
|
|
31905
|
-
shiftPlanName: string;
|
|
31906
|
-
effectiveFrom: string;
|
|
31907
|
-
effectiveTo?: string | null;
|
|
31908
|
-
targetPercent: number;
|
|
31909
|
-
comment?: string | null;
|
|
31910
|
-
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
31911
|
-
}
|
|
31912
|
-
|
|
31913
31560
|
export interface CreateShiftPlan {
|
|
31914
31561
|
name: string;
|
|
31915
31562
|
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
@@ -31931,6 +31578,23 @@ export interface ShiftSettingsPeriodGroupDto {
|
|
|
31931
31578
|
resources: ShiftSettingPeriodsDto[];
|
|
31932
31579
|
}
|
|
31933
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
|
+
|
|
31934
31598
|
export interface AddShiftSettingPeriods {
|
|
31935
31599
|
resourceExternalIds: string[];
|
|
31936
31600
|
shiftPlanId: string;
|
|
@@ -31956,12 +31620,8 @@ export interface PeriodKey {
|
|
|
31956
31620
|
}
|
|
31957
31621
|
|
|
31958
31622
|
export interface CopyShiftSettingsPeriodRequest {
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
export interface SourceShiftSettingPeriod {
|
|
31963
|
-
sourceResourceExternalId: string;
|
|
31964
|
-
sourceEffectiveFrom: string;
|
|
31623
|
+
targetResourceExternalId: string;
|
|
31624
|
+
effectiveFrom: string;
|
|
31965
31625
|
}
|
|
31966
31626
|
|
|
31967
31627
|
export interface MigrationResultDto {
|
|
@@ -33491,47 +33151,6 @@ export interface CrossCompanyUtilizationSummaryDto {
|
|
|
33491
33151
|
companies: MachineGroupUtilizationDto[];
|
|
33492
33152
|
}
|
|
33493
33153
|
|
|
33494
|
-
export interface LiveMachineDataDto {
|
|
33495
|
-
assetId?: number;
|
|
33496
|
-
dataPoints?: LiveMachineDataPointDto[];
|
|
33497
|
-
}
|
|
33498
|
-
|
|
33499
|
-
export interface LiveMachineDataPointDto {
|
|
33500
|
-
externalId?: string;
|
|
33501
|
-
timestamp?: number | null;
|
|
33502
|
-
numericValue?: number | null;
|
|
33503
|
-
stringValue?: string | null;
|
|
33504
|
-
}
|
|
33505
|
-
|
|
33506
|
-
export interface TimeseriesGraphDto {
|
|
33507
|
-
assetId?: number;
|
|
33508
|
-
series?: TimeseriesGraphSeriesDto[];
|
|
33509
|
-
}
|
|
33510
|
-
|
|
33511
|
-
export interface TimeseriesGraphSeriesDto {
|
|
33512
|
-
externalId?: string;
|
|
33513
|
-
isString?: boolean;
|
|
33514
|
-
dataPoints?: TimeseriesGraphDataPointDto[];
|
|
33515
|
-
}
|
|
33516
|
-
|
|
33517
|
-
export interface TimeseriesGraphDataPointDto {
|
|
33518
|
-
timestamp?: number;
|
|
33519
|
-
numericValue?: number | null;
|
|
33520
|
-
stringValue?: string | null;
|
|
33521
|
-
}
|
|
33522
|
-
|
|
33523
|
-
export interface ExportTimeseriesGraphRequest {
|
|
33524
|
-
series?: TimeseriesExportSeries[];
|
|
33525
|
-
startTime?: Date;
|
|
33526
|
-
endTime?: Date;
|
|
33527
|
-
}
|
|
33528
|
-
|
|
33529
|
-
export interface TimeseriesExportSeries {
|
|
33530
|
-
externalId?: string;
|
|
33531
|
-
displayName?: string | null;
|
|
33532
|
-
unit?: string | null;
|
|
33533
|
-
}
|
|
33534
|
-
|
|
33535
33154
|
export interface LinkDto {
|
|
33536
33155
|
id: string;
|
|
33537
33156
|
uri: string;
|
|
@@ -33580,7 +33199,7 @@ export interface ImportDocument {
|
|
|
33580
33199
|
lots: string[];
|
|
33581
33200
|
frontPageDocumentId?: string | null;
|
|
33582
33201
|
documentSource: DocumentSource;
|
|
33583
|
-
uploadKey
|
|
33202
|
+
uploadKey: string;
|
|
33584
33203
|
created?: Date | null;
|
|
33585
33204
|
createdBy?: string | null;
|
|
33586
33205
|
createdById?: string | null;
|
|
@@ -33616,8 +33235,7 @@ export interface ImportDocumentRevisionDto {
|
|
|
33616
33235
|
}
|
|
33617
33236
|
|
|
33618
33237
|
export interface ImportDocumentRevisionContentDto {
|
|
33619
|
-
uploadFilename
|
|
33620
|
-
sourceUrl?: string | null;
|
|
33238
|
+
uploadFilename: string;
|
|
33621
33239
|
originalFilename: string;
|
|
33622
33240
|
extension: string;
|
|
33623
33241
|
}
|
|
@@ -35353,22 +34971,6 @@ export interface EngineeringChangeOrdersDto {
|
|
|
35353
34971
|
engineeringChangeOrders?: EngineeringChangeOrderDto[];
|
|
35354
34972
|
}
|
|
35355
34973
|
|
|
35356
|
-
export interface IndirectActivityDto {
|
|
35357
|
-
activityId: string;
|
|
35358
|
-
name: string;
|
|
35359
|
-
companyId: string;
|
|
35360
|
-
}
|
|
35361
|
-
|
|
35362
|
-
export interface CurrentIndirectActivityDto {
|
|
35363
|
-
activityId?: string | null;
|
|
35364
|
-
personnelNumber?: string | null;
|
|
35365
|
-
startTime?: Date | null;
|
|
35366
|
-
}
|
|
35367
|
-
|
|
35368
|
-
export interface StartIndirectActivity {
|
|
35369
|
-
activityId: string;
|
|
35370
|
-
}
|
|
35371
|
-
|
|
35372
34974
|
export interface AddMesLink {
|
|
35373
34975
|
uri: string;
|
|
35374
34976
|
name: string;
|
|
@@ -35417,18 +35019,77 @@ export interface LabelId {
|
|
|
35417
35019
|
trackingId?: string | null;
|
|
35418
35020
|
}
|
|
35419
35021
|
|
|
35420
|
-
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
|
+
}
|
|
35421
35030
|
|
|
35422
|
-
export interface
|
|
35423
|
-
|
|
35424
|
-
|
|
35425
|
-
|
|
35426
|
-
|
|
35427
|
-
|
|
35428
|
-
|
|
35429
|
-
|
|
35430
|
-
|
|
35431
|
-
|
|
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;
|
|
35432
35093
|
}
|
|
35433
35094
|
|
|
35434
35095
|
export interface ProductionOrderDto {
|
|
@@ -35491,6 +35152,16 @@ export interface ProductionOrderOperationDto {
|
|
|
35491
35152
|
setupStatus?: OperationStatusDto | null;
|
|
35492
35153
|
}
|
|
35493
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
|
+
|
|
35494
35165
|
export interface DrawingDto {
|
|
35495
35166
|
drawingNumber: string;
|
|
35496
35167
|
revision: string;
|
|
@@ -35715,6 +35386,7 @@ export interface ProductionScheduleOperationDto {
|
|
|
35715
35386
|
materialPickStatus: MaterialPickStatus;
|
|
35716
35387
|
productionStatus: OperationStatusDto;
|
|
35717
35388
|
setupStatus?: OperationStatusDto | null;
|
|
35389
|
+
programStatus?: ProgramStatus | null;
|
|
35718
35390
|
}
|
|
35719
35391
|
|
|
35720
35392
|
export interface SurroundingOperationDto {
|
|
@@ -36053,22 +35725,26 @@ export interface WeldingIotConfigDto {
|
|
|
36053
35725
|
export interface CreateWeldingIotConfig {
|
|
36054
35726
|
}
|
|
36055
35727
|
|
|
36056
|
-
export interface
|
|
35728
|
+
export interface ImaCdfEntityReadBase {
|
|
35729
|
+
}
|
|
35730
|
+
|
|
35731
|
+
export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
|
|
35732
|
+
companyId: string;
|
|
36057
35733
|
certificateTypeId: string;
|
|
36058
35734
|
version: number;
|
|
36059
35735
|
allVersions: ImaCertificateTypeVersionDto[];
|
|
36060
35736
|
name: string;
|
|
36061
35737
|
revision: string;
|
|
36062
|
-
status:
|
|
35738
|
+
status: ImaCertificateTypeStatus;
|
|
36063
35739
|
description?: string | null;
|
|
36064
35740
|
isStandardCertificateType: boolean;
|
|
36065
35741
|
created: Date;
|
|
36066
35742
|
createdBy: string;
|
|
36067
35743
|
createdById: string;
|
|
36068
|
-
createdByName
|
|
35744
|
+
createdByName: string;
|
|
36069
35745
|
updatedBy: string;
|
|
36070
35746
|
updatedById: string;
|
|
36071
|
-
updatedByName
|
|
35747
|
+
updatedByName: string;
|
|
36072
35748
|
updated: Date;
|
|
36073
35749
|
isDeleted: boolean;
|
|
36074
35750
|
requirements: ImaCertificateTypeRequirementsDto;
|
|
@@ -36076,10 +35752,10 @@ export interface ImaCertificateTypeDto {
|
|
|
36076
35752
|
|
|
36077
35753
|
export interface ImaCertificateTypeVersionDto {
|
|
36078
35754
|
version?: number;
|
|
36079
|
-
status?:
|
|
35755
|
+
status?: ImaCertificateTypeStatus;
|
|
36080
35756
|
}
|
|
36081
35757
|
|
|
36082
|
-
export type
|
|
35758
|
+
export type ImaCertificateTypeStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
36083
35759
|
|
|
36084
35760
|
export interface ImaCertificateTypeRequirementsDto {
|
|
36085
35761
|
manufacturer: ImaCertificateTypeManufacturerRequirementsDto;
|
|
@@ -36092,9 +35768,6 @@ export interface ImaCertificateTypeRequirementsDto {
|
|
|
36092
35768
|
documentTypes: ImaCertificateTypeDocumentTypesRequirementsDto;
|
|
36093
35769
|
}
|
|
36094
35770
|
|
|
36095
|
-
export interface ImaCdfEntityReadBase {
|
|
36096
|
-
}
|
|
36097
|
-
|
|
36098
35771
|
export interface ImaCertificateTypeManufacturerRequirementsDto extends ImaCdfEntityReadBase {
|
|
36099
35772
|
manufacturer?: boolean;
|
|
36100
35773
|
address?: boolean;
|
|
@@ -36171,7 +35844,7 @@ export interface ImaCreateOrCopyCertificateTypeRequestDto {
|
|
|
36171
35844
|
export interface ImaUpdateImaCertificateTypeRequestDto {
|
|
36172
35845
|
name?: string | null;
|
|
36173
35846
|
revision?: string | null;
|
|
36174
|
-
status?:
|
|
35847
|
+
status?: ImaCertificateTypeStatus | null;
|
|
36175
35848
|
description?: string | null;
|
|
36176
35849
|
requirements?: ImaCertificateTypeRequirementsUpdateDto | null;
|
|
36177
35850
|
}
|
|
@@ -36254,21 +35927,21 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
36254
35927
|
radiologicalReport?: boolean | null;
|
|
36255
35928
|
}
|
|
36256
35929
|
|
|
36257
|
-
export interface ImaCertificateTypeLiteDto {
|
|
35930
|
+
export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
|
|
36258
35931
|
certificateTypeId: string;
|
|
36259
35932
|
version: number;
|
|
36260
35933
|
name: string;
|
|
36261
35934
|
revision: string;
|
|
36262
|
-
status:
|
|
35935
|
+
status: ImaCertificateTypeStatus;
|
|
36263
35936
|
description?: string | null;
|
|
36264
35937
|
isStandardCertificateType: boolean;
|
|
36265
35938
|
created: Date;
|
|
36266
35939
|
createdBy: string;
|
|
36267
35940
|
createdById: string;
|
|
36268
|
-
createdByName
|
|
35941
|
+
createdByName: string;
|
|
36269
35942
|
updatedBy: string;
|
|
36270
35943
|
updatedById: string;
|
|
36271
|
-
updatedByName
|
|
35944
|
+
updatedByName: string;
|
|
36272
35945
|
updated: Date;
|
|
36273
35946
|
isDeleted: boolean;
|
|
36274
35947
|
}
|
|
@@ -36285,29 +35958,27 @@ export interface ImaMaterialCheckDto {
|
|
|
36285
35958
|
certificateTypeVersion?: number | null;
|
|
36286
35959
|
certificateTypeName?: string | null;
|
|
36287
35960
|
certificateTypeRevision?: string | null;
|
|
36288
|
-
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36289
35961
|
specificationId: string;
|
|
36290
35962
|
specificationVersion: number;
|
|
36291
35963
|
specificationName: string;
|
|
36292
|
-
specificationRevision
|
|
36293
|
-
specificationStatus:
|
|
35964
|
+
specificationRevision: string;
|
|
35965
|
+
specificationStatus: ImaSpecificationStatus;
|
|
35966
|
+
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36294
35967
|
purchaseOrder?: string | null;
|
|
36295
35968
|
purchaseOrderLine?: number | null;
|
|
36296
35969
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36297
35970
|
purchaseOrderPartName?: string | null;
|
|
36298
35971
|
purchaseOrderPartNumber?: string | null;
|
|
36299
|
-
purchaseOrderPartRevision?: string | null;
|
|
36300
35972
|
purchaseOrderDrawing?: string | null;
|
|
36301
|
-
purchaseOrderDrawingRevision?: string | null;
|
|
36302
35973
|
heatNumber?: string | null;
|
|
36303
|
-
status:
|
|
35974
|
+
status: ImaMaterialCheckStatus;
|
|
36304
35975
|
created: Date;
|
|
36305
35976
|
createdBy: string;
|
|
36306
35977
|
createdById: string;
|
|
36307
|
-
createdByName
|
|
35978
|
+
createdByName: string;
|
|
36308
35979
|
updatedBy: string;
|
|
36309
35980
|
updatedById: string;
|
|
36310
|
-
updatedByName
|
|
35981
|
+
updatedByName: string;
|
|
36311
35982
|
isDeleted: boolean;
|
|
36312
35983
|
reportCreatedBy?: string | null;
|
|
36313
35984
|
reportCreatedById?: string | null;
|
|
@@ -36317,9 +35988,9 @@ export interface ImaMaterialCheckDto {
|
|
|
36317
35988
|
specificationResults: ImaSpecificationResultsDto;
|
|
36318
35989
|
}
|
|
36319
35990
|
|
|
36320
|
-
export type
|
|
35991
|
+
export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
36321
35992
|
|
|
36322
|
-
export type
|
|
35993
|
+
export type ImaMaterialCheckStatus = "Processing" | "Draft" | "Approved" | "Rejected" | "Failed" | "NotSet";
|
|
36323
35994
|
|
|
36324
35995
|
export interface ImaCertificateTypeResultsDto extends ImaCdfEntityReadBase {
|
|
36325
35996
|
manufacturer: ImaCertificateTypeManufacturerResultsDto;
|
|
@@ -36440,11 +36111,11 @@ export interface ImaSpecificationResultLineDto extends ImaCdfEntityReadBase {
|
|
|
36440
36111
|
specificationMin?: number | null;
|
|
36441
36112
|
specificationMax?: number | null;
|
|
36442
36113
|
readValue?: string | null;
|
|
36443
|
-
status:
|
|
36114
|
+
status: ImaSpecificationResultLineStatus;
|
|
36444
36115
|
override?: ImaResultLineOverrideDto | null;
|
|
36445
36116
|
}
|
|
36446
36117
|
|
|
36447
|
-
export type
|
|
36118
|
+
export type ImaSpecificationResultLineStatus = "NotFound" | "NotOk" | "Ok" | "NotSet";
|
|
36448
36119
|
|
|
36449
36120
|
export interface ImaSpecificationMechanicalResultsDto extends ImaCdfEntityReadBase {
|
|
36450
36121
|
yieldStrength?: ImaSpecificationResultLineDto | null;
|
|
@@ -36463,7 +36134,7 @@ export interface ImaSpecificationFerriteResultLineDto extends ImaCdfEntityReadBa
|
|
|
36463
36134
|
specificationMin?: number | null;
|
|
36464
36135
|
specificationMax?: number | null;
|
|
36465
36136
|
readValue?: string | null;
|
|
36466
|
-
status:
|
|
36137
|
+
status: ImaSpecificationResultLineStatus;
|
|
36467
36138
|
override?: ImaResultLineOverrideDto | null;
|
|
36468
36139
|
measurementMethod?: string | null;
|
|
36469
36140
|
}
|
|
@@ -36632,29 +36303,27 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
36632
36303
|
certificateTypeVersion?: number | null;
|
|
36633
36304
|
certificateTypeName?: string | null;
|
|
36634
36305
|
certificateTypeRevision?: string | null;
|
|
36635
|
-
certificateTypeStatus: ImaCertificateTypeStatusDto;
|
|
36636
36306
|
specificationId: string;
|
|
36637
36307
|
specificationVersion: number;
|
|
36638
36308
|
specificationName: string;
|
|
36639
|
-
specificationRevision
|
|
36640
|
-
specificationStatus: ImaSpecificationStatusDto;
|
|
36309
|
+
specificationRevision: string;
|
|
36641
36310
|
purchaseOrder?: string | null;
|
|
36642
36311
|
purchaseOrderLine?: number | null;
|
|
36643
36312
|
purchaseOrderVendorBatches?: string[] | null;
|
|
36644
36313
|
purchaseOrderPartName?: string | null;
|
|
36645
36314
|
purchaseOrderPartNumber?: string | null;
|
|
36646
|
-
purchaseOrderPartRevision?: string | null;
|
|
36647
36315
|
purchaseOrderDrawing?: string | null;
|
|
36648
|
-
purchaseOrderDrawingRevision?: string | null;
|
|
36649
36316
|
heatNumber?: string | null;
|
|
36650
|
-
status:
|
|
36317
|
+
status: ImaMaterialCheckStatus;
|
|
36318
|
+
specificationStatus: ImaSpecificationStatus;
|
|
36319
|
+
certificateTypeStatus: ImaCertificateTypeStatus;
|
|
36651
36320
|
created: Date;
|
|
36652
36321
|
createdBy: string;
|
|
36653
36322
|
createdById: string;
|
|
36654
|
-
createdByName
|
|
36323
|
+
createdByName: string;
|
|
36655
36324
|
updatedBy: string;
|
|
36656
36325
|
updatedById: string;
|
|
36657
|
-
updatedByName
|
|
36326
|
+
updatedByName: string;
|
|
36658
36327
|
isDeleted?: boolean;
|
|
36659
36328
|
reportCreatedBy?: string | null;
|
|
36660
36329
|
reportCreatedById?: string | null;
|
|
@@ -36681,18 +36350,18 @@ export interface ImaMaterialChecksPageRequestDto {
|
|
|
36681
36350
|
purchaseOrderDrawingFilter?: string | null;
|
|
36682
36351
|
dateFromFilter?: Date | null;
|
|
36683
36352
|
dateToFilter?: Date | null;
|
|
36684
|
-
statusFilter?:
|
|
36353
|
+
statusFilter?: ImaMaterialCheckStatus[] | null;
|
|
36685
36354
|
continuationToken?: string | null;
|
|
36686
36355
|
}
|
|
36687
36356
|
|
|
36688
36357
|
export interface ImaMaterialChecksPageOrderRequestDto {
|
|
36689
|
-
column?:
|
|
36690
|
-
direction?:
|
|
36358
|
+
column?: ImaMaterialChecksOrderByColumn;
|
|
36359
|
+
direction?: ImaOrderDirection;
|
|
36691
36360
|
}
|
|
36692
36361
|
|
|
36693
|
-
export type
|
|
36362
|
+
export type ImaMaterialChecksOrderByColumn = "FileName" | "PurchaseOrder" | "Line" | "VendorBatch" | "Part" | "Drawing" | "Heat" | "CertificateType" | "Specification" | "GeneratedReport" | "Project" | "CustomerOrder" | "WorkOrder" | "Date" | "Status";
|
|
36694
36363
|
|
|
36695
|
-
export type
|
|
36364
|
+
export type ImaOrderDirection = "Asc" | "Desc";
|
|
36696
36365
|
|
|
36697
36366
|
export interface ProcessMaterialCertificate {
|
|
36698
36367
|
files: UploadFileCdfDto[];
|
|
@@ -36812,7 +36481,7 @@ export interface ImaUpdateMatchSettingsColumnsDto {
|
|
|
36812
36481
|
status: boolean;
|
|
36813
36482
|
}
|
|
36814
36483
|
|
|
36815
|
-
export interface ImaSpecificationDto {
|
|
36484
|
+
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
36816
36485
|
specificationId: string;
|
|
36817
36486
|
version: number;
|
|
36818
36487
|
allVersions: ImaSpecificationVersionDto[];
|
|
@@ -36820,16 +36489,16 @@ export interface ImaSpecificationDto {
|
|
|
36820
36489
|
number: string;
|
|
36821
36490
|
revision: string;
|
|
36822
36491
|
date: Date;
|
|
36823
|
-
status:
|
|
36492
|
+
status: ImaSpecificationStatus;
|
|
36824
36493
|
summary?: string | null;
|
|
36825
36494
|
relatedStandards: string[];
|
|
36826
36495
|
created: Date;
|
|
36827
36496
|
createdBy: string;
|
|
36828
36497
|
createdById: string;
|
|
36829
|
-
createdByName
|
|
36498
|
+
createdByName: string;
|
|
36830
36499
|
updatedBy: string;
|
|
36831
36500
|
updatedById: string;
|
|
36832
|
-
updatedByName
|
|
36501
|
+
updatedByName: string;
|
|
36833
36502
|
updated: Date;
|
|
36834
36503
|
isDeleted: boolean;
|
|
36835
36504
|
chemistrySpecification: ImaChemistrySpecificationDto;
|
|
@@ -36840,10 +36509,10 @@ export interface ImaSpecificationDto {
|
|
|
36840
36509
|
|
|
36841
36510
|
export interface ImaSpecificationVersionDto {
|
|
36842
36511
|
version?: number;
|
|
36843
|
-
status?:
|
|
36512
|
+
status?: ImaSpecificationStatus;
|
|
36844
36513
|
}
|
|
36845
36514
|
|
|
36846
|
-
export interface ImaChemistrySpecificationDto {
|
|
36515
|
+
export interface ImaChemistrySpecificationDto extends ImaCdfEntityReadBase {
|
|
36847
36516
|
carbon?: ImaSpecificationLineDto | null;
|
|
36848
36517
|
manganese?: ImaSpecificationLineDto | null;
|
|
36849
36518
|
silicon?: ImaSpecificationLineDto | null;
|
|
@@ -36863,7 +36532,7 @@ export interface ImaSpecificationLineDto extends ImaCdfEntityReadBase {
|
|
|
36863
36532
|
max?: number | null;
|
|
36864
36533
|
}
|
|
36865
36534
|
|
|
36866
|
-
export interface ImaMechanicalSpecificationDto {
|
|
36535
|
+
export interface ImaMechanicalSpecificationDto extends ImaCdfEntityReadBase {
|
|
36867
36536
|
yieldStrength?: ImaSpecificationLineDto | null;
|
|
36868
36537
|
tensileStrength?: ImaSpecificationLineDto | null;
|
|
36869
36538
|
elongation?: ImaSpecificationLineDto | null;
|
|
@@ -36872,31 +36541,31 @@ export interface ImaMechanicalSpecificationDto {
|
|
|
36872
36541
|
hardness?: ImaSpecificationLineDto | null;
|
|
36873
36542
|
}
|
|
36874
36543
|
|
|
36875
|
-
export interface ImaFerriteSpecificationDto {
|
|
36544
|
+
export interface ImaFerriteSpecificationDto extends ImaCdfEntityReadBase {
|
|
36876
36545
|
ferriteContent?: ImaSpecificationLineDto | null;
|
|
36877
36546
|
}
|
|
36878
36547
|
|
|
36879
|
-
export interface ImaHeatTreatmentSpecificationDto {
|
|
36548
|
+
export interface ImaHeatTreatmentSpecificationDto extends ImaCdfEntityReadBase {
|
|
36880
36549
|
step: number;
|
|
36881
36550
|
cooling?: ImaHeatTreatmentSpecificationCoolingDto | null;
|
|
36882
36551
|
heating?: ImaHeatTreatmentSpecificationHeatingDto | null;
|
|
36883
36552
|
}
|
|
36884
36553
|
|
|
36885
|
-
export interface ImaHeatTreatmentSpecificationCoolingDto {
|
|
36886
|
-
coolingMethods:
|
|
36554
|
+
export interface ImaHeatTreatmentSpecificationCoolingDto extends ImaCdfEntityReadBase {
|
|
36555
|
+
coolingMethods: ImaHeatTreatmentCoolingMethod[];
|
|
36887
36556
|
temperature?: ImaSpecificationLineDto | null;
|
|
36888
36557
|
duration?: ImaSpecificationLineDto | null;
|
|
36889
36558
|
}
|
|
36890
36559
|
|
|
36891
|
-
export type
|
|
36560
|
+
export type ImaHeatTreatmentCoolingMethod = "NoCoolingMethod" | "AirCooling" | "FurnaceCooling" | "OilQuenching" | "PolymerQuenching" | "WaterQuenching" | "NotSet";
|
|
36892
36561
|
|
|
36893
|
-
export interface ImaHeatTreatmentSpecificationHeatingDto {
|
|
36894
|
-
heatingMethod:
|
|
36562
|
+
export interface ImaHeatTreatmentSpecificationHeatingDto extends ImaCdfEntityReadBase {
|
|
36563
|
+
heatingMethod: ImaHeatTreatmentHeatingMethod;
|
|
36895
36564
|
temperature?: ImaSpecificationLineDto | null;
|
|
36896
36565
|
duration?: ImaSpecificationLineDto | null;
|
|
36897
36566
|
}
|
|
36898
36567
|
|
|
36899
|
-
export type
|
|
36568
|
+
export type ImaHeatTreatmentHeatingMethod = "Annealing" | "Austenitizing" | "Hardening" | "Normalizing" | "SolutionAnnealing" | "StressRelieving" | "Tempering" | "NotSet";
|
|
36900
36569
|
|
|
36901
36570
|
export interface ImaCreateSpecificationRequestDto {
|
|
36902
36571
|
name: string;
|
|
@@ -36916,7 +36585,7 @@ export interface ImaCopySpecificationRequestDto {
|
|
|
36916
36585
|
export interface ImaUpdateSpecificationDto {
|
|
36917
36586
|
name?: string | null;
|
|
36918
36587
|
number?: string | null;
|
|
36919
|
-
status?:
|
|
36588
|
+
status?: ImaSpecificationStatus | null;
|
|
36920
36589
|
summary?: string | null;
|
|
36921
36590
|
relatedStandards?: string[] | null;
|
|
36922
36591
|
chemistrySpecification?: ImaChemistrySpecificationDto | null;
|
|
@@ -36925,110 +36594,26 @@ export interface ImaUpdateSpecificationDto {
|
|
|
36925
36594
|
heatSpecifications?: ImaHeatTreatmentSpecificationDto[] | null;
|
|
36926
36595
|
}
|
|
36927
36596
|
|
|
36928
|
-
export interface ImaSpecificationLiteDto {
|
|
36597
|
+
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
36929
36598
|
specificationId: string;
|
|
36930
36599
|
version: number;
|
|
36931
36600
|
name: string;
|
|
36932
36601
|
number: string;
|
|
36933
36602
|
revision: string;
|
|
36934
36603
|
date: Date;
|
|
36935
|
-
status:
|
|
36604
|
+
status: ImaSpecificationStatus;
|
|
36936
36605
|
summary?: string | null;
|
|
36937
36606
|
relatedStandards: string[];
|
|
36938
36607
|
created: Date;
|
|
36939
36608
|
createdBy: string;
|
|
36940
36609
|
createdById: string;
|
|
36941
|
-
createdByName
|
|
36610
|
+
createdByName: string;
|
|
36942
36611
|
updatedBy: string;
|
|
36943
36612
|
updatedById: string;
|
|
36944
|
-
updatedByName
|
|
36945
|
-
updated: Date;
|
|
36613
|
+
updatedByName: string;
|
|
36946
36614
|
isDeleted: boolean;
|
|
36947
36615
|
}
|
|
36948
36616
|
|
|
36949
|
-
export interface SchemaCreatorStateDto {
|
|
36950
|
-
settings: SchemaCreatorSettingsDto;
|
|
36951
|
-
elements: SchemaCreatorElementDto[];
|
|
36952
|
-
}
|
|
36953
|
-
|
|
36954
|
-
export interface SchemaCreatorSettingsDto {
|
|
36955
|
-
unit?: UnitOfMeasureDto;
|
|
36956
|
-
tolerance?: GeneralToleranceDto;
|
|
36957
|
-
balloonSize?: number;
|
|
36958
|
-
}
|
|
36959
|
-
|
|
36960
|
-
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
36961
|
-
|
|
36962
|
-
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
36963
|
-
|
|
36964
|
-
export interface SchemaCreatorElementDto {
|
|
36965
|
-
id: string;
|
|
36966
|
-
kind: SchemaCreatorElementKindDto;
|
|
36967
|
-
drawings: SchemaCreatorElementDrawingsDto;
|
|
36968
|
-
isDirty?: boolean | null;
|
|
36969
|
-
values?: SchemaCreatorElementValuesDto | null;
|
|
36970
|
-
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
36971
|
-
}
|
|
36972
|
-
|
|
36973
|
-
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
36974
|
-
|
|
36975
|
-
export interface SchemaCreatorElementDrawingsDto {
|
|
36976
|
-
square: SchemaCreatorDrawingDto;
|
|
36977
|
-
circle: SchemaCreatorDrawingDto;
|
|
36978
|
-
textId: string;
|
|
36979
|
-
}
|
|
36980
|
-
|
|
36981
|
-
export interface SchemaCreatorDrawingDto {
|
|
36982
|
-
rect: SchemaCreatorRectDto;
|
|
36983
|
-
pageIndex: number;
|
|
36984
|
-
annotationId: string;
|
|
36985
|
-
rotation?: number | null;
|
|
36986
|
-
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
36987
|
-
}
|
|
36988
|
-
|
|
36989
|
-
export interface SchemaCreatorRectDto {
|
|
36990
|
-
origin: SchemaCreatorPointDto;
|
|
36991
|
-
size: SchemaCreatorSizeDto;
|
|
36992
|
-
}
|
|
36993
|
-
|
|
36994
|
-
export interface SchemaCreatorPointDto {
|
|
36995
|
-
x: number;
|
|
36996
|
-
y: number;
|
|
36997
|
-
}
|
|
36998
|
-
|
|
36999
|
-
export interface SchemaCreatorSizeDto {
|
|
37000
|
-
width: number;
|
|
37001
|
-
height: number;
|
|
37002
|
-
}
|
|
37003
|
-
|
|
37004
|
-
export interface SchemaCreatorElementValuesDto {
|
|
37005
|
-
reference: number;
|
|
37006
|
-
nominal?: number | null;
|
|
37007
|
-
nominalText?: string | null;
|
|
37008
|
-
plusTolerance?: number | null;
|
|
37009
|
-
minusTolerance?: number | null;
|
|
37010
|
-
coatingThickness?: number | null;
|
|
37011
|
-
measurementFrequency: MeasurementFrequency;
|
|
37012
|
-
measurementFrequencyParameter?: number | null;
|
|
37013
|
-
type?: string | null;
|
|
37014
|
-
count?: number | null;
|
|
37015
|
-
comment?: string | null;
|
|
37016
|
-
canCopy: boolean;
|
|
37017
|
-
visibleToCustomer: boolean;
|
|
37018
|
-
isDocumentedExternally: boolean;
|
|
37019
|
-
}
|
|
37020
|
-
|
|
37021
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
37022
|
-
|
|
37023
|
-
export interface SchemaCreatorSnipResultDto {
|
|
37024
|
-
nominal?: number | null;
|
|
37025
|
-
nominalText?: string | null;
|
|
37026
|
-
plusTolerance?: number | null;
|
|
37027
|
-
minusTolerance?: number | null;
|
|
37028
|
-
coatingThickness?: number | null;
|
|
37029
|
-
count?: number | null;
|
|
37030
|
-
}
|
|
37031
|
-
|
|
37032
36617
|
export interface MeasurementFormSchemaDto {
|
|
37033
36618
|
id: string;
|
|
37034
36619
|
versionId: number;
|
|
@@ -37063,8 +36648,12 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
|
37063
36648
|
|
|
37064
36649
|
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
37065
36650
|
|
|
36651
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
36652
|
+
|
|
37066
36653
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
37067
36654
|
|
|
36655
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
36656
|
+
|
|
37068
36657
|
export interface MeasurementFormSchemaAttachmentDto {
|
|
37069
36658
|
url: string;
|
|
37070
36659
|
title: string;
|
|
@@ -37115,6 +36704,8 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
37115
36704
|
validationErrorMessage?: string | null;
|
|
37116
36705
|
}
|
|
37117
36706
|
|
|
36707
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
36708
|
+
|
|
37118
36709
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
37119
36710
|
|
|
37120
36711
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|