@ignos/api-client 20241004.0.10507 → 20241022.0.10597
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 +23 -0
- package/lib/ignosportal-api.js +59 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +77 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -422,6 +422,11 @@ export interface IMrbClient {
|
|
|
422
422
|
* @return HTTP 204 No Content
|
|
423
423
|
*/
|
|
424
424
|
deleteMrbTemplate(request: DeleteMrbTemplateRequest): Promise<void>;
|
|
425
|
+
/**
|
|
426
|
+
* Copy a MRB template
|
|
427
|
+
* @return MRB template
|
|
428
|
+
*/
|
|
429
|
+
copyMrbTemplate(templateId: string, request: CreateMrbTemplateRequest): Promise<MrbTemplateDto>;
|
|
425
430
|
getMrbCompanySettings(): Promise<MrbCompanySettingsDto>;
|
|
426
431
|
upsertMrbCompanySettings(request: UpsertMrbCompanySettings): Promise<MrbCompanySettingsDto>;
|
|
427
432
|
}
|
|
@@ -506,6 +511,12 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
506
511
|
*/
|
|
507
512
|
deleteMrbTemplate(request: DeleteMrbTemplateRequest): Promise<void>;
|
|
508
513
|
protected processDeleteMrbTemplate(response: Response): Promise<void>;
|
|
514
|
+
/**
|
|
515
|
+
* Copy a MRB template
|
|
516
|
+
* @return MRB template
|
|
517
|
+
*/
|
|
518
|
+
copyMrbTemplate(templateId: string, request: CreateMrbTemplateRequest): Promise<MrbTemplateDto>;
|
|
519
|
+
protected processCopyMrbTemplate(response: Response): Promise<MrbTemplateDto>;
|
|
509
520
|
getMrbCompanySettings(): Promise<MrbCompanySettingsDto>;
|
|
510
521
|
protected processGetMrbCompanySettings(response: Response): Promise<MrbCompanySettingsDto>;
|
|
511
522
|
upsertMrbCompanySettings(request: UpsertMrbCompanySettings): Promise<MrbCompanySettingsDto>;
|
|
@@ -8720,6 +8731,8 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
8720
8731
|
program?: string | null;
|
|
8721
8732
|
toolNumber?: string | null;
|
|
8722
8733
|
disableSetupRegistration: boolean;
|
|
8734
|
+
productionStatus: OperationStatusDto;
|
|
8735
|
+
setupStatus?: OperationStatusDto | null;
|
|
8723
8736
|
constructor(data?: IProductionOrderOperationDto);
|
|
8724
8737
|
init(_data?: any): void;
|
|
8725
8738
|
static fromJS(data: any): ProductionOrderOperationDto;
|
|
@@ -8755,6 +8768,8 @@ export interface IProductionOrderOperationDto {
|
|
|
8755
8768
|
program?: string | null;
|
|
8756
8769
|
toolNumber?: string | null;
|
|
8757
8770
|
disableSetupRegistration: boolean;
|
|
8771
|
+
productionStatus: OperationStatusDto;
|
|
8772
|
+
setupStatus?: OperationStatusDto | null;
|
|
8758
8773
|
}
|
|
8759
8774
|
export declare class WarehouseLocationDto implements IWarehouseLocationDto {
|
|
8760
8775
|
zone?: string | null;
|
|
@@ -9193,6 +9208,8 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
9193
9208
|
drawingNumber?: string | null;
|
|
9194
9209
|
disableSetupRegistration: boolean;
|
|
9195
9210
|
materialPickStatus: MaterialPickStatus;
|
|
9211
|
+
productionStatus: OperationStatusDto;
|
|
9212
|
+
setupStatus?: OperationStatusDto | null;
|
|
9196
9213
|
constructor(data?: IProductionScheduleOperationDto);
|
|
9197
9214
|
init(_data?: any): void;
|
|
9198
9215
|
static fromJS(data: any): ProductionScheduleOperationDto;
|
|
@@ -9245,6 +9262,8 @@ export interface IProductionScheduleOperationDto {
|
|
|
9245
9262
|
drawingNumber?: string | null;
|
|
9246
9263
|
disableSetupRegistration: boolean;
|
|
9247
9264
|
materialPickStatus: MaterialPickStatus;
|
|
9265
|
+
productionStatus: OperationStatusDto;
|
|
9266
|
+
setupStatus?: OperationStatusDto | null;
|
|
9248
9267
|
}
|
|
9249
9268
|
export declare class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
9250
9269
|
id: string;
|
|
@@ -9721,6 +9740,8 @@ export declare class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
9721
9740
|
usedProductionTime: number;
|
|
9722
9741
|
usedSetupTime: number;
|
|
9723
9742
|
materials: WorkorderMaterialDto[];
|
|
9743
|
+
productionStatus: OperationStatusDto;
|
|
9744
|
+
setupStatus?: OperationStatusDto | null;
|
|
9724
9745
|
constructor(data?: IWorkorderOperationDto);
|
|
9725
9746
|
init(_data?: any): void;
|
|
9726
9747
|
static fromJS(data: any): WorkorderOperationDto;
|
|
@@ -9744,6 +9765,8 @@ export interface IWorkorderOperationDto {
|
|
|
9744
9765
|
usedProductionTime: number;
|
|
9745
9766
|
usedSetupTime: number;
|
|
9746
9767
|
materials: WorkorderMaterialDto[];
|
|
9768
|
+
productionStatus: OperationStatusDto;
|
|
9769
|
+
setupStatus?: OperationStatusDto | null;
|
|
9747
9770
|
}
|
|
9748
9771
|
export declare class WorkorderMaterialDto implements IWorkorderMaterialDto {
|
|
9749
9772
|
materialLine: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3180,6 +3180,53 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
3180
3180
|
}
|
|
3181
3181
|
return Promise.resolve(null);
|
|
3182
3182
|
}
|
|
3183
|
+
/**
|
|
3184
|
+
* Copy a MRB template
|
|
3185
|
+
* @return MRB template
|
|
3186
|
+
*/
|
|
3187
|
+
copyMrbTemplate(templateId, request) {
|
|
3188
|
+
let url_ = this.baseUrl + "/mrb/templates/{templateId}/copy";
|
|
3189
|
+
if (templateId === undefined || templateId === null)
|
|
3190
|
+
throw new Error("The parameter 'templateId' must be defined.");
|
|
3191
|
+
url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
|
|
3192
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3193
|
+
const content_ = JSON.stringify(request);
|
|
3194
|
+
let options_ = {
|
|
3195
|
+
body: content_,
|
|
3196
|
+
method: "POST",
|
|
3197
|
+
headers: {
|
|
3198
|
+
"Content-Type": "application/json",
|
|
3199
|
+
"Accept": "application/json"
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3203
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3204
|
+
}).then((_response) => {
|
|
3205
|
+
return this.processCopyMrbTemplate(_response);
|
|
3206
|
+
});
|
|
3207
|
+
}
|
|
3208
|
+
processCopyMrbTemplate(response) {
|
|
3209
|
+
const status = response.status;
|
|
3210
|
+
let _headers = {};
|
|
3211
|
+
if (response.headers && response.headers.forEach) {
|
|
3212
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3213
|
+
}
|
|
3214
|
+
;
|
|
3215
|
+
if (status === 200) {
|
|
3216
|
+
return response.text().then((_responseText) => {
|
|
3217
|
+
let result200 = null;
|
|
3218
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3219
|
+
result200 = MrbTemplateDto.fromJS(resultData200);
|
|
3220
|
+
return result200;
|
|
3221
|
+
});
|
|
3222
|
+
}
|
|
3223
|
+
else if (status !== 200 && status !== 204) {
|
|
3224
|
+
return response.text().then((_responseText) => {
|
|
3225
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
return Promise.resolve(null);
|
|
3229
|
+
}
|
|
3183
3230
|
getMrbCompanySettings() {
|
|
3184
3231
|
let url_ = this.baseUrl + "/mrb/settings";
|
|
3185
3232
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -32565,6 +32612,8 @@ export class ProductionOrderOperationDto {
|
|
|
32565
32612
|
this.program = _data["program"];
|
|
32566
32613
|
this.toolNumber = _data["toolNumber"];
|
|
32567
32614
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
32615
|
+
this.productionStatus = _data["productionStatus"];
|
|
32616
|
+
this.setupStatus = _data["setupStatus"];
|
|
32568
32617
|
}
|
|
32569
32618
|
}
|
|
32570
32619
|
static fromJS(data) {
|
|
@@ -32604,6 +32653,8 @@ export class ProductionOrderOperationDto {
|
|
|
32604
32653
|
data["program"] = this.program;
|
|
32605
32654
|
data["toolNumber"] = this.toolNumber;
|
|
32606
32655
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
32656
|
+
data["productionStatus"] = this.productionStatus;
|
|
32657
|
+
data["setupStatus"] = this.setupStatus;
|
|
32607
32658
|
return data;
|
|
32608
32659
|
}
|
|
32609
32660
|
}
|
|
@@ -33439,6 +33490,8 @@ export class ProductionScheduleOperationDto {
|
|
|
33439
33490
|
this.drawingNumber = _data["drawingNumber"];
|
|
33440
33491
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
33441
33492
|
this.materialPickStatus = _data["materialPickStatus"];
|
|
33493
|
+
this.productionStatus = _data["productionStatus"];
|
|
33494
|
+
this.setupStatus = _data["setupStatus"];
|
|
33442
33495
|
}
|
|
33443
33496
|
}
|
|
33444
33497
|
static fromJS(data) {
|
|
@@ -33495,6 +33548,8 @@ export class ProductionScheduleOperationDto {
|
|
|
33495
33548
|
data["drawingNumber"] = this.drawingNumber;
|
|
33496
33549
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
33497
33550
|
data["materialPickStatus"] = this.materialPickStatus;
|
|
33551
|
+
data["productionStatus"] = this.productionStatus;
|
|
33552
|
+
data["setupStatus"] = this.setupStatus;
|
|
33498
33553
|
return data;
|
|
33499
33554
|
}
|
|
33500
33555
|
}
|
|
@@ -34670,6 +34725,8 @@ export class WorkorderOperationDto {
|
|
|
34670
34725
|
for (let item of _data["materials"])
|
|
34671
34726
|
this.materials.push(WorkorderMaterialDto.fromJS(item));
|
|
34672
34727
|
}
|
|
34728
|
+
this.productionStatus = _data["productionStatus"];
|
|
34729
|
+
this.setupStatus = _data["setupStatus"];
|
|
34673
34730
|
}
|
|
34674
34731
|
}
|
|
34675
34732
|
static fromJS(data) {
|
|
@@ -34701,6 +34758,8 @@ export class WorkorderOperationDto {
|
|
|
34701
34758
|
for (let item of this.materials)
|
|
34702
34759
|
data["materials"].push(item.toJSON());
|
|
34703
34760
|
}
|
|
34761
|
+
data["productionStatus"] = this.productionStatus;
|
|
34762
|
+
data["setupStatus"] = this.setupStatus;
|
|
34704
34763
|
return data;
|
|
34705
34764
|
}
|
|
34706
34765
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2370,6 +2370,12 @@ export interface IMrbClient {
|
|
|
2370
2370
|
*/
|
|
2371
2371
|
deleteMrbTemplate(request: DeleteMrbTemplateRequest): Promise<void>;
|
|
2372
2372
|
|
|
2373
|
+
/**
|
|
2374
|
+
* Copy a MRB template
|
|
2375
|
+
* @return MRB template
|
|
2376
|
+
*/
|
|
2377
|
+
copyMrbTemplate(templateId: string, request: CreateMrbTemplateRequest): Promise<MrbTemplateDto>;
|
|
2378
|
+
|
|
2373
2379
|
getMrbCompanySettings(): Promise<MrbCompanySettingsDto>;
|
|
2374
2380
|
|
|
2375
2381
|
upsertMrbCompanySettings(request: UpsertMrbCompanySettings): Promise<MrbCompanySettingsDto>;
|
|
@@ -3465,6 +3471,53 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
3465
3471
|
return Promise.resolve<void>(null as any);
|
|
3466
3472
|
}
|
|
3467
3473
|
|
|
3474
|
+
/**
|
|
3475
|
+
* Copy a MRB template
|
|
3476
|
+
* @return MRB template
|
|
3477
|
+
*/
|
|
3478
|
+
copyMrbTemplate(templateId: string, request: CreateMrbTemplateRequest): Promise<MrbTemplateDto> {
|
|
3479
|
+
let url_ = this.baseUrl + "/mrb/templates/{templateId}/copy";
|
|
3480
|
+
if (templateId === undefined || templateId === null)
|
|
3481
|
+
throw new Error("The parameter 'templateId' must be defined.");
|
|
3482
|
+
url_ = url_.replace("{templateId}", encodeURIComponent("" + templateId));
|
|
3483
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3484
|
+
|
|
3485
|
+
const content_ = JSON.stringify(request);
|
|
3486
|
+
|
|
3487
|
+
let options_: RequestInit = {
|
|
3488
|
+
body: content_,
|
|
3489
|
+
method: "POST",
|
|
3490
|
+
headers: {
|
|
3491
|
+
"Content-Type": "application/json",
|
|
3492
|
+
"Accept": "application/json"
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3497
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3498
|
+
}).then((_response: Response) => {
|
|
3499
|
+
return this.processCopyMrbTemplate(_response);
|
|
3500
|
+
});
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
protected processCopyMrbTemplate(response: Response): Promise<MrbTemplateDto> {
|
|
3504
|
+
const status = response.status;
|
|
3505
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3506
|
+
if (status === 200) {
|
|
3507
|
+
return response.text().then((_responseText) => {
|
|
3508
|
+
let result200: any = null;
|
|
3509
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3510
|
+
result200 = MrbTemplateDto.fromJS(resultData200);
|
|
3511
|
+
return result200;
|
|
3512
|
+
});
|
|
3513
|
+
} else if (status !== 200 && status !== 204) {
|
|
3514
|
+
return response.text().then((_responseText) => {
|
|
3515
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3516
|
+
});
|
|
3517
|
+
}
|
|
3518
|
+
return Promise.resolve<MrbTemplateDto>(null as any);
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3468
3521
|
getMrbCompanySettings(): Promise<MrbCompanySettingsDto> {
|
|
3469
3522
|
let url_ = this.baseUrl + "/mrb/settings";
|
|
3470
3523
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -40220,6 +40273,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
40220
40273
|
program?: string | null;
|
|
40221
40274
|
toolNumber?: string | null;
|
|
40222
40275
|
disableSetupRegistration!: boolean;
|
|
40276
|
+
productionStatus!: OperationStatusDto;
|
|
40277
|
+
setupStatus?: OperationStatusDto | null;
|
|
40223
40278
|
|
|
40224
40279
|
constructor(data?: IProductionOrderOperationDto) {
|
|
40225
40280
|
if (data) {
|
|
@@ -40261,6 +40316,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
40261
40316
|
this.program = _data["program"];
|
|
40262
40317
|
this.toolNumber = _data["toolNumber"];
|
|
40263
40318
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
40319
|
+
this.productionStatus = _data["productionStatus"];
|
|
40320
|
+
this.setupStatus = _data["setupStatus"];
|
|
40264
40321
|
}
|
|
40265
40322
|
}
|
|
40266
40323
|
|
|
@@ -40302,6 +40359,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
40302
40359
|
data["program"] = this.program;
|
|
40303
40360
|
data["toolNumber"] = this.toolNumber;
|
|
40304
40361
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
40362
|
+
data["productionStatus"] = this.productionStatus;
|
|
40363
|
+
data["setupStatus"] = this.setupStatus;
|
|
40305
40364
|
return data;
|
|
40306
40365
|
}
|
|
40307
40366
|
}
|
|
@@ -40336,6 +40395,8 @@ export interface IProductionOrderOperationDto {
|
|
|
40336
40395
|
program?: string | null;
|
|
40337
40396
|
toolNumber?: string | null;
|
|
40338
40397
|
disableSetupRegistration: boolean;
|
|
40398
|
+
productionStatus: OperationStatusDto;
|
|
40399
|
+
setupStatus?: OperationStatusDto | null;
|
|
40339
40400
|
}
|
|
40340
40401
|
|
|
40341
40402
|
export class WarehouseLocationDto implements IWarehouseLocationDto {
|
|
@@ -41549,6 +41610,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
41549
41610
|
drawingNumber?: string | null;
|
|
41550
41611
|
disableSetupRegistration!: boolean;
|
|
41551
41612
|
materialPickStatus!: MaterialPickStatus;
|
|
41613
|
+
productionStatus!: OperationStatusDto;
|
|
41614
|
+
setupStatus?: OperationStatusDto | null;
|
|
41552
41615
|
|
|
41553
41616
|
constructor(data?: IProductionScheduleOperationDto) {
|
|
41554
41617
|
if (data) {
|
|
@@ -41610,6 +41673,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
41610
41673
|
this.drawingNumber = _data["drawingNumber"];
|
|
41611
41674
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
41612
41675
|
this.materialPickStatus = _data["materialPickStatus"];
|
|
41676
|
+
this.productionStatus = _data["productionStatus"];
|
|
41677
|
+
this.setupStatus = _data["setupStatus"];
|
|
41613
41678
|
}
|
|
41614
41679
|
}
|
|
41615
41680
|
|
|
@@ -41668,6 +41733,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
41668
41733
|
data["drawingNumber"] = this.drawingNumber;
|
|
41669
41734
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
41670
41735
|
data["materialPickStatus"] = this.materialPickStatus;
|
|
41736
|
+
data["productionStatus"] = this.productionStatus;
|
|
41737
|
+
data["setupStatus"] = this.setupStatus;
|
|
41671
41738
|
return data;
|
|
41672
41739
|
}
|
|
41673
41740
|
}
|
|
@@ -41719,6 +41786,8 @@ export interface IProductionScheduleOperationDto {
|
|
|
41719
41786
|
drawingNumber?: string | null;
|
|
41720
41787
|
disableSetupRegistration: boolean;
|
|
41721
41788
|
materialPickStatus: MaterialPickStatus;
|
|
41789
|
+
productionStatus: OperationStatusDto;
|
|
41790
|
+
setupStatus?: OperationStatusDto | null;
|
|
41722
41791
|
}
|
|
41723
41792
|
|
|
41724
41793
|
export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
@@ -43338,6 +43407,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
43338
43407
|
usedProductionTime!: number;
|
|
43339
43408
|
usedSetupTime!: number;
|
|
43340
43409
|
materials!: WorkorderMaterialDto[];
|
|
43410
|
+
productionStatus!: OperationStatusDto;
|
|
43411
|
+
setupStatus?: OperationStatusDto | null;
|
|
43341
43412
|
|
|
43342
43413
|
constructor(data?: IWorkorderOperationDto) {
|
|
43343
43414
|
if (data) {
|
|
@@ -43374,6 +43445,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
43374
43445
|
for (let item of _data["materials"])
|
|
43375
43446
|
this.materials!.push(WorkorderMaterialDto.fromJS(item));
|
|
43376
43447
|
}
|
|
43448
|
+
this.productionStatus = _data["productionStatus"];
|
|
43449
|
+
this.setupStatus = _data["setupStatus"];
|
|
43377
43450
|
}
|
|
43378
43451
|
}
|
|
43379
43452
|
|
|
@@ -43407,6 +43480,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
43407
43480
|
for (let item of this.materials)
|
|
43408
43481
|
data["materials"].push(item.toJSON());
|
|
43409
43482
|
}
|
|
43483
|
+
data["productionStatus"] = this.productionStatus;
|
|
43484
|
+
data["setupStatus"] = this.setupStatus;
|
|
43410
43485
|
return data;
|
|
43411
43486
|
}
|
|
43412
43487
|
}
|
|
@@ -43429,6 +43504,8 @@ export interface IWorkorderOperationDto {
|
|
|
43429
43504
|
usedProductionTime: number;
|
|
43430
43505
|
usedSetupTime: number;
|
|
43431
43506
|
materials: WorkorderMaterialDto[];
|
|
43507
|
+
productionStatus: OperationStatusDto;
|
|
43508
|
+
setupStatus?: OperationStatusDto | null;
|
|
43432
43509
|
}
|
|
43433
43510
|
|
|
43434
43511
|
export class WorkorderMaterialDto implements IWorkorderMaterialDto {
|