@ignos/api-client 20240327.0.9055 → 20240404.0.9072
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 +35 -0
- package/lib/ignosportal-api.js +94 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +127 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1388,6 +1388,7 @@ export interface IMesProductionOrderClient {
|
|
|
1388
1388
|
checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
|
|
1389
1389
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
1390
1390
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1391
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1391
1392
|
}
|
|
1392
1393
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1393
1394
|
private http;
|
|
@@ -1408,6 +1409,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1408
1409
|
protected processGetProductionOrderOpenNonConformances(response: Response): Promise<NonConformanceDto[]>;
|
|
1409
1410
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1410
1411
|
protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
|
|
1412
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1413
|
+
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1411
1414
|
}
|
|
1412
1415
|
export interface IMesProductionScheduleClient {
|
|
1413
1416
|
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
@@ -7711,6 +7714,38 @@ export interface IPickListMaterialLineDto {
|
|
|
7711
7714
|
quantity: number;
|
|
7712
7715
|
batch?: string | null;
|
|
7713
7716
|
}
|
|
7717
|
+
export declare class ProductionOrderOperationActivityDto implements IProductionOrderOperationActivityDto {
|
|
7718
|
+
operation: number;
|
|
7719
|
+
operationId: string;
|
|
7720
|
+
description?: string | null;
|
|
7721
|
+
resource?: ResourceDto | null;
|
|
7722
|
+
user?: UserDto | null;
|
|
7723
|
+
startTime: Date;
|
|
7724
|
+
endTime?: Date | null;
|
|
7725
|
+
status: OperationStatusDto;
|
|
7726
|
+
active: boolean;
|
|
7727
|
+
startedQuantity?: number | null;
|
|
7728
|
+
producedQuantity?: number | null;
|
|
7729
|
+
scrappedQuantity?: number | null;
|
|
7730
|
+
constructor(data?: IProductionOrderOperationActivityDto);
|
|
7731
|
+
init(_data?: any): void;
|
|
7732
|
+
static fromJS(data: any): ProductionOrderOperationActivityDto;
|
|
7733
|
+
toJSON(data?: any): any;
|
|
7734
|
+
}
|
|
7735
|
+
export interface IProductionOrderOperationActivityDto {
|
|
7736
|
+
operation: number;
|
|
7737
|
+
operationId: string;
|
|
7738
|
+
description?: string | null;
|
|
7739
|
+
resource?: ResourceDto | null;
|
|
7740
|
+
user?: UserDto | null;
|
|
7741
|
+
startTime: Date;
|
|
7742
|
+
endTime?: Date | null;
|
|
7743
|
+
status: OperationStatusDto;
|
|
7744
|
+
active: boolean;
|
|
7745
|
+
startedQuantity?: number | null;
|
|
7746
|
+
producedQuantity?: number | null;
|
|
7747
|
+
scrappedQuantity?: number | null;
|
|
7748
|
+
}
|
|
7714
7749
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
7715
7750
|
results: ProductionScheduleOperationDto[];
|
|
7716
7751
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11533,6 +11533,52 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
11533
11533
|
}
|
|
11534
11534
|
return Promise.resolve(null);
|
|
11535
11535
|
}
|
|
11536
|
+
listProductionOrderActivities(id, operation) {
|
|
11537
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
11538
|
+
if (id === undefined || id === null)
|
|
11539
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
11540
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11541
|
+
if (operation !== undefined && operation !== null)
|
|
11542
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
11543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11544
|
+
let options_ = {
|
|
11545
|
+
method: "GET",
|
|
11546
|
+
headers: {
|
|
11547
|
+
"Accept": "application/json"
|
|
11548
|
+
}
|
|
11549
|
+
};
|
|
11550
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11551
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11552
|
+
}).then((_response) => {
|
|
11553
|
+
return this.processListProductionOrderActivities(_response);
|
|
11554
|
+
});
|
|
11555
|
+
}
|
|
11556
|
+
processListProductionOrderActivities(response) {
|
|
11557
|
+
const status = response.status;
|
|
11558
|
+
let _headers = {};
|
|
11559
|
+
if (response.headers && response.headers.forEach) {
|
|
11560
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11561
|
+
}
|
|
11562
|
+
;
|
|
11563
|
+
if (status === 200) {
|
|
11564
|
+
return response.text().then((_responseText) => {
|
|
11565
|
+
let result200 = null;
|
|
11566
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11567
|
+
if (Array.isArray(resultData200)) {
|
|
11568
|
+
result200 = [];
|
|
11569
|
+
for (let item of resultData200)
|
|
11570
|
+
result200.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
11571
|
+
}
|
|
11572
|
+
return result200;
|
|
11573
|
+
});
|
|
11574
|
+
}
|
|
11575
|
+
else if (status !== 200 && status !== 204) {
|
|
11576
|
+
return response.text().then((_responseText) => {
|
|
11577
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11578
|
+
});
|
|
11579
|
+
}
|
|
11580
|
+
return Promise.resolve(null);
|
|
11581
|
+
}
|
|
11536
11582
|
}
|
|
11537
11583
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
11538
11584
|
constructor(configuration, baseUrl, http) {
|
|
@@ -28528,6 +28574,54 @@ export class PickListMaterialLineDto {
|
|
|
28528
28574
|
return data;
|
|
28529
28575
|
}
|
|
28530
28576
|
}
|
|
28577
|
+
export class ProductionOrderOperationActivityDto {
|
|
28578
|
+
constructor(data) {
|
|
28579
|
+
if (data) {
|
|
28580
|
+
for (var property in data) {
|
|
28581
|
+
if (data.hasOwnProperty(property))
|
|
28582
|
+
this[property] = data[property];
|
|
28583
|
+
}
|
|
28584
|
+
}
|
|
28585
|
+
}
|
|
28586
|
+
init(_data) {
|
|
28587
|
+
if (_data) {
|
|
28588
|
+
this.operation = _data["operation"];
|
|
28589
|
+
this.operationId = _data["operationId"];
|
|
28590
|
+
this.description = _data["description"];
|
|
28591
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
28592
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
|
|
28593
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
28594
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
28595
|
+
this.status = _data["status"];
|
|
28596
|
+
this.active = _data["active"];
|
|
28597
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
28598
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
28599
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
28600
|
+
}
|
|
28601
|
+
}
|
|
28602
|
+
static fromJS(data) {
|
|
28603
|
+
data = typeof data === 'object' ? data : {};
|
|
28604
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
28605
|
+
result.init(data);
|
|
28606
|
+
return result;
|
|
28607
|
+
}
|
|
28608
|
+
toJSON(data) {
|
|
28609
|
+
data = typeof data === 'object' ? data : {};
|
|
28610
|
+
data["operation"] = this.operation;
|
|
28611
|
+
data["operationId"] = this.operationId;
|
|
28612
|
+
data["description"] = this.description;
|
|
28613
|
+
data["resource"] = this.resource ? this.resource.toJSON() : undefined;
|
|
28614
|
+
data["user"] = this.user ? this.user.toJSON() : undefined;
|
|
28615
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
28616
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
28617
|
+
data["status"] = this.status;
|
|
28618
|
+
data["active"] = this.active;
|
|
28619
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
28620
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
28621
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
28622
|
+
return data;
|
|
28623
|
+
}
|
|
28624
|
+
}
|
|
28531
28625
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
28532
28626
|
constructor(data) {
|
|
28533
28627
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -12043,6 +12043,8 @@ export interface IMesProductionOrderClient {
|
|
|
12043
12043
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
12044
12044
|
|
|
12045
12045
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
12046
|
+
|
|
12047
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
12046
12048
|
}
|
|
12047
12049
|
|
|
12048
12050
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -12319,6 +12321,51 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
12319
12321
|
}
|
|
12320
12322
|
return Promise.resolve<MaterialPickListResultDto>(null as any);
|
|
12321
12323
|
}
|
|
12324
|
+
|
|
12325
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12326
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
12327
|
+
if (id === undefined || id === null)
|
|
12328
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
12329
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12330
|
+
if (operation !== undefined && operation !== null)
|
|
12331
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
12332
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12333
|
+
|
|
12334
|
+
let options_: RequestInit = {
|
|
12335
|
+
method: "GET",
|
|
12336
|
+
headers: {
|
|
12337
|
+
"Accept": "application/json"
|
|
12338
|
+
}
|
|
12339
|
+
};
|
|
12340
|
+
|
|
12341
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12342
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12343
|
+
}).then((_response: Response) => {
|
|
12344
|
+
return this.processListProductionOrderActivities(_response);
|
|
12345
|
+
});
|
|
12346
|
+
}
|
|
12347
|
+
|
|
12348
|
+
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12349
|
+
const status = response.status;
|
|
12350
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12351
|
+
if (status === 200) {
|
|
12352
|
+
return response.text().then((_responseText) => {
|
|
12353
|
+
let result200: any = null;
|
|
12354
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12355
|
+
if (Array.isArray(resultData200)) {
|
|
12356
|
+
result200 = [] as any;
|
|
12357
|
+
for (let item of resultData200)
|
|
12358
|
+
result200!.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
12359
|
+
}
|
|
12360
|
+
return result200;
|
|
12361
|
+
});
|
|
12362
|
+
} else if (status !== 200 && status !== 204) {
|
|
12363
|
+
return response.text().then((_responseText) => {
|
|
12364
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12365
|
+
});
|
|
12366
|
+
}
|
|
12367
|
+
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
12368
|
+
}
|
|
12322
12369
|
}
|
|
12323
12370
|
|
|
12324
12371
|
export interface IMesProductionScheduleClient {
|
|
@@ -35329,6 +35376,86 @@ export interface IPickListMaterialLineDto {
|
|
|
35329
35376
|
batch?: string | null;
|
|
35330
35377
|
}
|
|
35331
35378
|
|
|
35379
|
+
export class ProductionOrderOperationActivityDto implements IProductionOrderOperationActivityDto {
|
|
35380
|
+
operation!: number;
|
|
35381
|
+
operationId!: string;
|
|
35382
|
+
description?: string | null;
|
|
35383
|
+
resource?: ResourceDto | null;
|
|
35384
|
+
user?: UserDto | null;
|
|
35385
|
+
startTime!: Date;
|
|
35386
|
+
endTime?: Date | null;
|
|
35387
|
+
status!: OperationStatusDto;
|
|
35388
|
+
active!: boolean;
|
|
35389
|
+
startedQuantity?: number | null;
|
|
35390
|
+
producedQuantity?: number | null;
|
|
35391
|
+
scrappedQuantity?: number | null;
|
|
35392
|
+
|
|
35393
|
+
constructor(data?: IProductionOrderOperationActivityDto) {
|
|
35394
|
+
if (data) {
|
|
35395
|
+
for (var property in data) {
|
|
35396
|
+
if (data.hasOwnProperty(property))
|
|
35397
|
+
(<any>this)[property] = (<any>data)[property];
|
|
35398
|
+
}
|
|
35399
|
+
}
|
|
35400
|
+
}
|
|
35401
|
+
|
|
35402
|
+
init(_data?: any) {
|
|
35403
|
+
if (_data) {
|
|
35404
|
+
this.operation = _data["operation"];
|
|
35405
|
+
this.operationId = _data["operationId"];
|
|
35406
|
+
this.description = _data["description"];
|
|
35407
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : <any>undefined;
|
|
35408
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : <any>undefined;
|
|
35409
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
35410
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
35411
|
+
this.status = _data["status"];
|
|
35412
|
+
this.active = _data["active"];
|
|
35413
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
35414
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
35415
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
35416
|
+
}
|
|
35417
|
+
}
|
|
35418
|
+
|
|
35419
|
+
static fromJS(data: any): ProductionOrderOperationActivityDto {
|
|
35420
|
+
data = typeof data === 'object' ? data : {};
|
|
35421
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
35422
|
+
result.init(data);
|
|
35423
|
+
return result;
|
|
35424
|
+
}
|
|
35425
|
+
|
|
35426
|
+
toJSON(data?: any) {
|
|
35427
|
+
data = typeof data === 'object' ? data : {};
|
|
35428
|
+
data["operation"] = this.operation;
|
|
35429
|
+
data["operationId"] = this.operationId;
|
|
35430
|
+
data["description"] = this.description;
|
|
35431
|
+
data["resource"] = this.resource ? this.resource.toJSON() : <any>undefined;
|
|
35432
|
+
data["user"] = this.user ? this.user.toJSON() : <any>undefined;
|
|
35433
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
35434
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
35435
|
+
data["status"] = this.status;
|
|
35436
|
+
data["active"] = this.active;
|
|
35437
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
35438
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
35439
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
35440
|
+
return data;
|
|
35441
|
+
}
|
|
35442
|
+
}
|
|
35443
|
+
|
|
35444
|
+
export interface IProductionOrderOperationActivityDto {
|
|
35445
|
+
operation: number;
|
|
35446
|
+
operationId: string;
|
|
35447
|
+
description?: string | null;
|
|
35448
|
+
resource?: ResourceDto | null;
|
|
35449
|
+
user?: UserDto | null;
|
|
35450
|
+
startTime: Date;
|
|
35451
|
+
endTime?: Date | null;
|
|
35452
|
+
status: OperationStatusDto;
|
|
35453
|
+
active: boolean;
|
|
35454
|
+
startedQuantity?: number | null;
|
|
35455
|
+
producedQuantity?: number | null;
|
|
35456
|
+
scrappedQuantity?: number | null;
|
|
35457
|
+
}
|
|
35458
|
+
|
|
35332
35459
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
35333
35460
|
results!: ProductionScheduleOperationDto[];
|
|
35334
35461
|
continuationToken?: string | null;
|