@ignos/api-client 20260727.193.1 → 20260727.194.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 +34 -6
- package/lib/ignosportal-api.js +39 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +76 -8
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2460,6 +2460,7 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
2460
2460
|
}
|
|
2461
2461
|
export interface IMesOrMoveClient {
|
|
2462
2462
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
2463
|
+
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2463
2464
|
}
|
|
2464
2465
|
export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
2465
2466
|
private http;
|
|
@@ -2469,6 +2470,8 @@ export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOr
|
|
|
2469
2470
|
});
|
|
2470
2471
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
2471
2472
|
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
2473
|
+
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2474
|
+
protected processPostListProductionOrders(response: Response): Promise<ProductionOrderListDto[]>;
|
|
2472
2475
|
}
|
|
2473
2476
|
export interface IMesProductionOrderAttachmentClient {
|
|
2474
2477
|
/**
|
|
@@ -7349,6 +7352,37 @@ export interface LabelId {
|
|
|
7349
7352
|
parcelId: string;
|
|
7350
7353
|
trackingId?: string | null;
|
|
7351
7354
|
}
|
|
7355
|
+
export interface ProductionOrderListDto {
|
|
7356
|
+
id: string;
|
|
7357
|
+
companyId?: string | null;
|
|
7358
|
+
part?: PartDto | null;
|
|
7359
|
+
quantity: number;
|
|
7360
|
+
unit?: string | null;
|
|
7361
|
+
status: WorkorderStatus;
|
|
7362
|
+
plannedStart?: Date | null;
|
|
7363
|
+
plannedEnd?: Date | null;
|
|
7364
|
+
producedQuantity: number;
|
|
7365
|
+
scrappedQuantity: number;
|
|
7366
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7367
|
+
project?: WorkOrderProjectDto | null;
|
|
7368
|
+
startDate?: Date | null;
|
|
7369
|
+
endDate?: Date | null;
|
|
7370
|
+
deliveryDate?: Date | null;
|
|
7371
|
+
bomPosition?: string | null;
|
|
7372
|
+
orderReference?: OrderReferenceDto | null;
|
|
7373
|
+
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
7374
|
+
}
|
|
7375
|
+
export interface OrderReferenceDto {
|
|
7376
|
+
orderReferenceType?: OrderReferenceTypeDto;
|
|
7377
|
+
orderNumber?: string;
|
|
7378
|
+
orderLineNumber?: number | null;
|
|
7379
|
+
}
|
|
7380
|
+
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
7381
|
+
export interface ListProductionOrdersRequest {
|
|
7382
|
+
search: string;
|
|
7383
|
+
searchType: SearchTypeDto;
|
|
7384
|
+
maxResults?: number | null;
|
|
7385
|
+
}
|
|
7352
7386
|
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
7353
7387
|
export interface WorkOrderAttachmentDto {
|
|
7354
7388
|
createdBy?: UserDto | null;
|
|
@@ -7430,12 +7464,6 @@ export interface DrawingFileDto {
|
|
|
7430
7464
|
name: string;
|
|
7431
7465
|
comment?: string;
|
|
7432
7466
|
}
|
|
7433
|
-
export interface OrderReferenceDto {
|
|
7434
|
-
orderReferenceType?: OrderReferenceTypeDto;
|
|
7435
|
-
orderNumber?: string;
|
|
7436
|
-
orderLineNumber?: number | null;
|
|
7437
|
-
}
|
|
7438
|
-
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
7439
7467
|
export interface ProductionOrderBomDto {
|
|
7440
7468
|
position: string;
|
|
7441
7469
|
lineNumber: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -20552,6 +20552,45 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20552
20552
|
}
|
|
20553
20553
|
return Promise.resolve(null);
|
|
20554
20554
|
}
|
|
20555
|
+
postListProductionOrders(request) {
|
|
20556
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
20557
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20558
|
+
const content_ = JSON.stringify(request);
|
|
20559
|
+
let options_ = {
|
|
20560
|
+
body: content_,
|
|
20561
|
+
method: "POST",
|
|
20562
|
+
headers: {
|
|
20563
|
+
"Content-Type": "application/json",
|
|
20564
|
+
"Accept": "application/json"
|
|
20565
|
+
}
|
|
20566
|
+
};
|
|
20567
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20568
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20569
|
+
}).then((_response) => {
|
|
20570
|
+
return this.processPostListProductionOrders(_response);
|
|
20571
|
+
});
|
|
20572
|
+
}
|
|
20573
|
+
processPostListProductionOrders(response) {
|
|
20574
|
+
const status = response.status;
|
|
20575
|
+
let _headers = {};
|
|
20576
|
+
if (response.headers && response.headers.forEach) {
|
|
20577
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20578
|
+
}
|
|
20579
|
+
;
|
|
20580
|
+
if (status === 200) {
|
|
20581
|
+
return response.text().then((_responseText) => {
|
|
20582
|
+
let result200 = null;
|
|
20583
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20584
|
+
return result200;
|
|
20585
|
+
});
|
|
20586
|
+
}
|
|
20587
|
+
else if (status !== 200 && status !== 204) {
|
|
20588
|
+
return response.text().then((_responseText) => {
|
|
20589
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20590
|
+
});
|
|
20591
|
+
}
|
|
20592
|
+
return Promise.resolve(null);
|
|
20593
|
+
}
|
|
20555
20594
|
}
|
|
20556
20595
|
export class MesProductionOrderAttachmentClient extends AuthorizedApiBase {
|
|
20557
20596
|
constructor(configuration, baseUrl, http) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -21918,6 +21918,8 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
21918
21918
|
export interface IMesOrMoveClient {
|
|
21919
21919
|
|
|
21920
21920
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
21921
|
+
|
|
21922
|
+
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
21921
21923
|
}
|
|
21922
21924
|
|
|
21923
21925
|
export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
@@ -21968,6 +21970,45 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21968
21970
|
}
|
|
21969
21971
|
return Promise.resolve<DownloadDto>(null as any);
|
|
21970
21972
|
}
|
|
21973
|
+
|
|
21974
|
+
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]> {
|
|
21975
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
21976
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21977
|
+
|
|
21978
|
+
const content_ = JSON.stringify(request);
|
|
21979
|
+
|
|
21980
|
+
let options_: RequestInit = {
|
|
21981
|
+
body: content_,
|
|
21982
|
+
method: "POST",
|
|
21983
|
+
headers: {
|
|
21984
|
+
"Content-Type": "application/json",
|
|
21985
|
+
"Accept": "application/json"
|
|
21986
|
+
}
|
|
21987
|
+
};
|
|
21988
|
+
|
|
21989
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21990
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21991
|
+
}).then((_response: Response) => {
|
|
21992
|
+
return this.processPostListProductionOrders(_response);
|
|
21993
|
+
});
|
|
21994
|
+
}
|
|
21995
|
+
|
|
21996
|
+
protected processPostListProductionOrders(response: Response): Promise<ProductionOrderListDto[]> {
|
|
21997
|
+
const status = response.status;
|
|
21998
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21999
|
+
if (status === 200) {
|
|
22000
|
+
return response.text().then((_responseText) => {
|
|
22001
|
+
let result200: any = null;
|
|
22002
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderListDto[];
|
|
22003
|
+
return result200;
|
|
22004
|
+
});
|
|
22005
|
+
} else if (status !== 200 && status !== 204) {
|
|
22006
|
+
return response.text().then((_responseText) => {
|
|
22007
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22008
|
+
});
|
|
22009
|
+
}
|
|
22010
|
+
return Promise.resolve<ProductionOrderListDto[]>(null as any);
|
|
22011
|
+
}
|
|
21971
22012
|
}
|
|
21972
22013
|
|
|
21973
22014
|
export interface IMesProductionOrderAttachmentClient {
|
|
@@ -35200,6 +35241,41 @@ export interface LabelId {
|
|
|
35200
35241
|
trackingId?: string | null;
|
|
35201
35242
|
}
|
|
35202
35243
|
|
|
35244
|
+
export interface ProductionOrderListDto {
|
|
35245
|
+
id: string;
|
|
35246
|
+
companyId?: string | null;
|
|
35247
|
+
part?: PartDto | null;
|
|
35248
|
+
quantity: number;
|
|
35249
|
+
unit?: string | null;
|
|
35250
|
+
status: WorkorderStatus;
|
|
35251
|
+
plannedStart?: Date | null;
|
|
35252
|
+
plannedEnd?: Date | null;
|
|
35253
|
+
producedQuantity: number;
|
|
35254
|
+
scrappedQuantity: number;
|
|
35255
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
35256
|
+
project?: WorkOrderProjectDto | null;
|
|
35257
|
+
startDate?: Date | null;
|
|
35258
|
+
endDate?: Date | null;
|
|
35259
|
+
deliveryDate?: Date | null;
|
|
35260
|
+
bomPosition?: string | null;
|
|
35261
|
+
orderReference?: OrderReferenceDto | null;
|
|
35262
|
+
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
35263
|
+
}
|
|
35264
|
+
|
|
35265
|
+
export interface OrderReferenceDto {
|
|
35266
|
+
orderReferenceType?: OrderReferenceTypeDto;
|
|
35267
|
+
orderNumber?: string;
|
|
35268
|
+
orderLineNumber?: number | null;
|
|
35269
|
+
}
|
|
35270
|
+
|
|
35271
|
+
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
35272
|
+
|
|
35273
|
+
export interface ListProductionOrdersRequest {
|
|
35274
|
+
search: string;
|
|
35275
|
+
searchType: SearchTypeDto;
|
|
35276
|
+
maxResults?: number | null;
|
|
35277
|
+
}
|
|
35278
|
+
|
|
35203
35279
|
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
35204
35280
|
|
|
35205
35281
|
export interface WorkOrderAttachmentDto {
|
|
@@ -35287,14 +35363,6 @@ export interface DrawingFileDto {
|
|
|
35287
35363
|
comment?: string;
|
|
35288
35364
|
}
|
|
35289
35365
|
|
|
35290
|
-
export interface OrderReferenceDto {
|
|
35291
|
-
orderReferenceType?: OrderReferenceTypeDto;
|
|
35292
|
-
orderNumber?: string;
|
|
35293
|
-
orderLineNumber?: number | null;
|
|
35294
|
-
}
|
|
35295
|
-
|
|
35296
|
-
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
35297
|
-
|
|
35298
35366
|
export interface ProductionOrderBomDto {
|
|
35299
35367
|
position: string;
|
|
35300
35368
|
lineNumber: number;
|