@ignos/api-client 20260811.216.1 → 20260811.217.1
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 +41 -34
- package/lib/ignosportal-api.js +79 -39
- package/package.json +1 -1
- package/src/ignosportal-api.ts +121 -76
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2289,6 +2289,7 @@ export declare class MoveNotificationsClient extends AuthorizedApiBase implement
|
|
|
2289
2289
|
}
|
|
2290
2290
|
export interface IMoveParcelsClient {
|
|
2291
2291
|
searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
2292
|
+
searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
2292
2293
|
}
|
|
2293
2294
|
export declare class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcelsClient {
|
|
2294
2295
|
private http;
|
|
@@ -2298,6 +2299,8 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
|
|
|
2298
2299
|
});
|
|
2299
2300
|
searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
2300
2301
|
protected processSearchParcels(response: Response): Promise<SearchParcelDto[]>;
|
|
2302
|
+
searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
2303
|
+
protected processSearchParcelsV2(response: Response): Promise<SearchParcelDto[]>;
|
|
2301
2304
|
}
|
|
2302
2305
|
export interface IMoveTrackingClient {
|
|
2303
2306
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
@@ -2460,7 +2463,6 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
2460
2463
|
}
|
|
2461
2464
|
export interface IMesOrMoveClient {
|
|
2462
2465
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
2463
|
-
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2464
2466
|
}
|
|
2465
2467
|
export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
2466
2468
|
private http;
|
|
@@ -2470,8 +2472,6 @@ export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOr
|
|
|
2470
2472
|
});
|
|
2471
2473
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
2472
2474
|
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
2473
|
-
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2474
|
-
protected processPostListProductionOrders(response: Response): Promise<ProductionOrderListDto[]>;
|
|
2475
2475
|
}
|
|
2476
2476
|
export interface IMesPlannerClient {
|
|
2477
2477
|
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
|
|
@@ -2559,6 +2559,7 @@ export declare class MesProductionOrderAttachmentClient extends AuthorizedApiBas
|
|
|
2559
2559
|
protected processDeleteAttachment(response: Response): Promise<void>;
|
|
2560
2560
|
}
|
|
2561
2561
|
export interface IMesProductionOrderClient {
|
|
2562
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2562
2563
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
2563
2564
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
2564
2565
|
getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
|
|
@@ -2575,6 +2576,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
2575
2576
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2576
2577
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2577
2578
|
});
|
|
2579
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2580
|
+
protected processListProductionOrders(response: Response): Promise<ProductionOrderListDto[]>;
|
|
2578
2581
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
2579
2582
|
protected processGetProductionOrder(response: Response): Promise<ProductionOrderDto>;
|
|
2580
2583
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -7209,6 +7212,10 @@ export interface SearchParcelDto {
|
|
|
7209
7212
|
items: SearchParcelItemDto[];
|
|
7210
7213
|
partName?: string | null;
|
|
7211
7214
|
partNumber?: string | null;
|
|
7215
|
+
status?: WorkorderStatus | null;
|
|
7216
|
+
startDate?: Date | null;
|
|
7217
|
+
endDate?: Date | null;
|
|
7218
|
+
deliveryDate?: Date | null;
|
|
7212
7219
|
}
|
|
7213
7220
|
export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
|
|
7214
7221
|
export interface SearchParcelItemDto {
|
|
@@ -7401,37 +7408,6 @@ export interface LabelId {
|
|
|
7401
7408
|
parcelId: string;
|
|
7402
7409
|
trackingId?: string | null;
|
|
7403
7410
|
}
|
|
7404
|
-
export interface ProductionOrderListDto {
|
|
7405
|
-
id: string;
|
|
7406
|
-
companyId?: string | null;
|
|
7407
|
-
part?: PartDto | null;
|
|
7408
|
-
quantity: number;
|
|
7409
|
-
unit?: string | null;
|
|
7410
|
-
status: WorkorderStatus;
|
|
7411
|
-
plannedStart?: Date | null;
|
|
7412
|
-
plannedEnd?: Date | null;
|
|
7413
|
-
producedQuantity: number;
|
|
7414
|
-
scrappedQuantity: number;
|
|
7415
|
-
deliveryLocation?: WarehouseLocationDto | null;
|
|
7416
|
-
project?: WorkOrderProjectDto | null;
|
|
7417
|
-
startDate?: Date | null;
|
|
7418
|
-
endDate?: Date | null;
|
|
7419
|
-
deliveryDate?: Date | null;
|
|
7420
|
-
bomPosition?: string | null;
|
|
7421
|
-
orderReference?: OrderReferenceDto | null;
|
|
7422
|
-
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
7423
|
-
}
|
|
7424
|
-
export interface OrderReferenceDto {
|
|
7425
|
-
orderReferenceType?: OrderReferenceTypeDto;
|
|
7426
|
-
orderNumber?: string;
|
|
7427
|
-
orderLineNumber?: number | null;
|
|
7428
|
-
}
|
|
7429
|
-
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
7430
|
-
export interface ListProductionOrdersRequest {
|
|
7431
|
-
search: string;
|
|
7432
|
-
searchType: SearchTypeDto;
|
|
7433
|
-
maxResults?: number | null;
|
|
7434
|
-
}
|
|
7435
7411
|
export interface PlannerPlanDto {
|
|
7436
7412
|
resourceGroupId: string;
|
|
7437
7413
|
sequence: PlannerOperationDto[];
|
|
@@ -7550,6 +7526,37 @@ export interface ProductionOrderAttachmentDto {
|
|
|
7550
7526
|
addedBy?: string | null;
|
|
7551
7527
|
canDelete: boolean;
|
|
7552
7528
|
}
|
|
7529
|
+
export interface ProductionOrderListDto {
|
|
7530
|
+
id: string;
|
|
7531
|
+
companyId?: string | null;
|
|
7532
|
+
part?: PartDto | null;
|
|
7533
|
+
quantity: number;
|
|
7534
|
+
unit?: string | null;
|
|
7535
|
+
status: WorkorderStatus;
|
|
7536
|
+
plannedStart?: Date | null;
|
|
7537
|
+
plannedEnd?: Date | null;
|
|
7538
|
+
producedQuantity: number;
|
|
7539
|
+
scrappedQuantity: number;
|
|
7540
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7541
|
+
project?: WorkOrderProjectDto | null;
|
|
7542
|
+
startDate?: Date | null;
|
|
7543
|
+
endDate?: Date | null;
|
|
7544
|
+
deliveryDate?: Date | null;
|
|
7545
|
+
bomPosition?: string | null;
|
|
7546
|
+
orderReference?: OrderReferenceDto | null;
|
|
7547
|
+
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
7548
|
+
}
|
|
7549
|
+
export interface OrderReferenceDto {
|
|
7550
|
+
orderReferenceType?: OrderReferenceTypeDto;
|
|
7551
|
+
orderNumber?: string;
|
|
7552
|
+
orderLineNumber?: number | null;
|
|
7553
|
+
}
|
|
7554
|
+
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
7555
|
+
export interface ListProductionOrdersRequest {
|
|
7556
|
+
search: string;
|
|
7557
|
+
searchType: SearchTypeDto;
|
|
7558
|
+
maxResults?: number | null;
|
|
7559
|
+
}
|
|
7553
7560
|
export interface ProductionOrderDto {
|
|
7554
7561
|
id: string;
|
|
7555
7562
|
companyId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -19318,6 +19318,46 @@ export class MoveParcelsClient extends AuthorizedApiBase {
|
|
|
19318
19318
|
}
|
|
19319
19319
|
return Promise.resolve(null);
|
|
19320
19320
|
}
|
|
19321
|
+
searchParcelsV2(input, pageSize) {
|
|
19322
|
+
let url_ = this.baseUrl + "/move/parcel/search/v2?";
|
|
19323
|
+
if (input !== undefined && input !== null)
|
|
19324
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
19325
|
+
if (pageSize !== undefined && pageSize !== null)
|
|
19326
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19327
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19328
|
+
let options_ = {
|
|
19329
|
+
method: "GET",
|
|
19330
|
+
headers: {
|
|
19331
|
+
"Accept": "application/json"
|
|
19332
|
+
}
|
|
19333
|
+
};
|
|
19334
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19335
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19336
|
+
}).then((_response) => {
|
|
19337
|
+
return this.processSearchParcelsV2(_response);
|
|
19338
|
+
});
|
|
19339
|
+
}
|
|
19340
|
+
processSearchParcelsV2(response) {
|
|
19341
|
+
const status = response.status;
|
|
19342
|
+
let _headers = {};
|
|
19343
|
+
if (response.headers && response.headers.forEach) {
|
|
19344
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19345
|
+
}
|
|
19346
|
+
;
|
|
19347
|
+
if (status === 200) {
|
|
19348
|
+
return response.text().then((_responseText) => {
|
|
19349
|
+
let result200 = null;
|
|
19350
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19351
|
+
return result200;
|
|
19352
|
+
});
|
|
19353
|
+
}
|
|
19354
|
+
else if (status !== 200 && status !== 204) {
|
|
19355
|
+
return response.text().then((_responseText) => {
|
|
19356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19357
|
+
});
|
|
19358
|
+
}
|
|
19359
|
+
return Promise.resolve(null);
|
|
19360
|
+
}
|
|
19321
19361
|
}
|
|
19322
19362
|
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
19323
19363
|
constructor(configuration, baseUrl, http) {
|
|
@@ -20552,45 +20592,6 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20552
20592
|
}
|
|
20553
20593
|
return Promise.resolve(null);
|
|
20554
20594
|
}
|
|
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
|
-
}
|
|
20594
20595
|
}
|
|
20595
20596
|
export class MesPlannerClient extends AuthorizedApiBase {
|
|
20596
20597
|
constructor(configuration, baseUrl, http) {
|
|
@@ -21250,6 +21251,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
21250
21251
|
this.http = http ? http : window;
|
|
21251
21252
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21252
21253
|
}
|
|
21254
|
+
listProductionOrders(request) {
|
|
21255
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
21256
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21257
|
+
const content_ = JSON.stringify(request);
|
|
21258
|
+
let options_ = {
|
|
21259
|
+
body: content_,
|
|
21260
|
+
method: "POST",
|
|
21261
|
+
headers: {
|
|
21262
|
+
"Content-Type": "application/json",
|
|
21263
|
+
"Accept": "application/json"
|
|
21264
|
+
}
|
|
21265
|
+
};
|
|
21266
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21267
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21268
|
+
}).then((_response) => {
|
|
21269
|
+
return this.processListProductionOrders(_response);
|
|
21270
|
+
});
|
|
21271
|
+
}
|
|
21272
|
+
processListProductionOrders(response) {
|
|
21273
|
+
const status = response.status;
|
|
21274
|
+
let _headers = {};
|
|
21275
|
+
if (response.headers && response.headers.forEach) {
|
|
21276
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21277
|
+
}
|
|
21278
|
+
;
|
|
21279
|
+
if (status === 200) {
|
|
21280
|
+
return response.text().then((_responseText) => {
|
|
21281
|
+
let result200 = null;
|
|
21282
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21283
|
+
return result200;
|
|
21284
|
+
});
|
|
21285
|
+
}
|
|
21286
|
+
else if (status !== 200 && status !== 204) {
|
|
21287
|
+
return response.text().then((_responseText) => {
|
|
21288
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21289
|
+
});
|
|
21290
|
+
}
|
|
21291
|
+
return Promise.resolve(null);
|
|
21292
|
+
}
|
|
21253
21293
|
getProductionOrder(id) {
|
|
21254
21294
|
let url_ = this.baseUrl + "/mes/productionorders/{id}";
|
|
21255
21295
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -20579,6 +20579,8 @@ export class MoveNotificationsClient extends AuthorizedApiBase implements IMoveN
|
|
|
20579
20579
|
export interface IMoveParcelsClient {
|
|
20580
20580
|
|
|
20581
20581
|
searchParcels(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
20582
|
+
|
|
20583
|
+
searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]>;
|
|
20582
20584
|
}
|
|
20583
20585
|
|
|
20584
20586
|
export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcelsClient {
|
|
@@ -20629,6 +20631,45 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
|
|
|
20629
20631
|
}
|
|
20630
20632
|
return Promise.resolve<SearchParcelDto[]>(null as any);
|
|
20631
20633
|
}
|
|
20634
|
+
|
|
20635
|
+
searchParcelsV2(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchParcelDto[]> {
|
|
20636
|
+
let url_ = this.baseUrl + "/move/parcel/search/v2?";
|
|
20637
|
+
if (input !== undefined && input !== null)
|
|
20638
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
20639
|
+
if (pageSize !== undefined && pageSize !== null)
|
|
20640
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
20641
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20642
|
+
|
|
20643
|
+
let options_: RequestInit = {
|
|
20644
|
+
method: "GET",
|
|
20645
|
+
headers: {
|
|
20646
|
+
"Accept": "application/json"
|
|
20647
|
+
}
|
|
20648
|
+
};
|
|
20649
|
+
|
|
20650
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20651
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20652
|
+
}).then((_response: Response) => {
|
|
20653
|
+
return this.processSearchParcelsV2(_response);
|
|
20654
|
+
});
|
|
20655
|
+
}
|
|
20656
|
+
|
|
20657
|
+
protected processSearchParcelsV2(response: Response): Promise<SearchParcelDto[]> {
|
|
20658
|
+
const status = response.status;
|
|
20659
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20660
|
+
if (status === 200) {
|
|
20661
|
+
return response.text().then((_responseText) => {
|
|
20662
|
+
let result200: any = null;
|
|
20663
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SearchParcelDto[];
|
|
20664
|
+
return result200;
|
|
20665
|
+
});
|
|
20666
|
+
} else if (status !== 200 && status !== 204) {
|
|
20667
|
+
return response.text().then((_responseText) => {
|
|
20668
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20669
|
+
});
|
|
20670
|
+
}
|
|
20671
|
+
return Promise.resolve<SearchParcelDto[]>(null as any);
|
|
20672
|
+
}
|
|
20632
20673
|
}
|
|
20633
20674
|
|
|
20634
20675
|
export interface IMoveTrackingClient {
|
|
@@ -21918,8 +21959,6 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
21918
21959
|
export interface IMesOrMoveClient {
|
|
21919
21960
|
|
|
21920
21961
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
21921
|
-
|
|
21922
|
-
postListProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
21923
21962
|
}
|
|
21924
21963
|
|
|
21925
21964
|
export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
@@ -21970,45 +22009,6 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21970
22009
|
}
|
|
21971
22010
|
return Promise.resolve<DownloadDto>(null as any);
|
|
21972
22011
|
}
|
|
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
|
-
}
|
|
22012
22012
|
}
|
|
22013
22013
|
|
|
22014
22014
|
export interface IMesPlannerClient {
|
|
@@ -22712,6 +22712,8 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22712
22712
|
|
|
22713
22713
|
export interface IMesProductionOrderClient {
|
|
22714
22714
|
|
|
22715
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
22716
|
+
|
|
22715
22717
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
22716
22718
|
|
|
22717
22719
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -22741,6 +22743,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
22741
22743
|
this.baseUrl = baseUrl ?? "";
|
|
22742
22744
|
}
|
|
22743
22745
|
|
|
22746
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]> {
|
|
22747
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
22748
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22749
|
+
|
|
22750
|
+
const content_ = JSON.stringify(request);
|
|
22751
|
+
|
|
22752
|
+
let options_: RequestInit = {
|
|
22753
|
+
body: content_,
|
|
22754
|
+
method: "POST",
|
|
22755
|
+
headers: {
|
|
22756
|
+
"Content-Type": "application/json",
|
|
22757
|
+
"Accept": "application/json"
|
|
22758
|
+
}
|
|
22759
|
+
};
|
|
22760
|
+
|
|
22761
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22762
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22763
|
+
}).then((_response: Response) => {
|
|
22764
|
+
return this.processListProductionOrders(_response);
|
|
22765
|
+
});
|
|
22766
|
+
}
|
|
22767
|
+
|
|
22768
|
+
protected processListProductionOrders(response: Response): Promise<ProductionOrderListDto[]> {
|
|
22769
|
+
const status = response.status;
|
|
22770
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22771
|
+
if (status === 200) {
|
|
22772
|
+
return response.text().then((_responseText) => {
|
|
22773
|
+
let result200: any = null;
|
|
22774
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderListDto[];
|
|
22775
|
+
return result200;
|
|
22776
|
+
});
|
|
22777
|
+
} else if (status !== 200 && status !== 204) {
|
|
22778
|
+
return response.text().then((_responseText) => {
|
|
22779
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22780
|
+
});
|
|
22781
|
+
}
|
|
22782
|
+
return Promise.resolve<ProductionOrderListDto[]>(null as any);
|
|
22783
|
+
}
|
|
22784
|
+
|
|
22744
22785
|
getProductionOrder(id: string): Promise<ProductionOrderDto> {
|
|
22745
22786
|
let url_ = this.baseUrl + "/mes/productionorders/{id}";
|
|
22746
22787
|
if (id === undefined || id === null)
|
|
@@ -35495,6 +35536,10 @@ export interface SearchParcelDto {
|
|
|
35495
35536
|
items: SearchParcelItemDto[];
|
|
35496
35537
|
partName?: string | null;
|
|
35497
35538
|
partNumber?: string | null;
|
|
35539
|
+
status?: WorkorderStatus | null;
|
|
35540
|
+
startDate?: Date | null;
|
|
35541
|
+
endDate?: Date | null;
|
|
35542
|
+
deliveryDate?: Date | null;
|
|
35498
35543
|
}
|
|
35499
35544
|
|
|
35500
35545
|
export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
|
|
@@ -35719,41 +35764,6 @@ export interface LabelId {
|
|
|
35719
35764
|
trackingId?: string | null;
|
|
35720
35765
|
}
|
|
35721
35766
|
|
|
35722
|
-
export interface ProductionOrderListDto {
|
|
35723
|
-
id: string;
|
|
35724
|
-
companyId?: string | null;
|
|
35725
|
-
part?: PartDto | null;
|
|
35726
|
-
quantity: number;
|
|
35727
|
-
unit?: string | null;
|
|
35728
|
-
status: WorkorderStatus;
|
|
35729
|
-
plannedStart?: Date | null;
|
|
35730
|
-
plannedEnd?: Date | null;
|
|
35731
|
-
producedQuantity: number;
|
|
35732
|
-
scrappedQuantity: number;
|
|
35733
|
-
deliveryLocation?: WarehouseLocationDto | null;
|
|
35734
|
-
project?: WorkOrderProjectDto | null;
|
|
35735
|
-
startDate?: Date | null;
|
|
35736
|
-
endDate?: Date | null;
|
|
35737
|
-
deliveryDate?: Date | null;
|
|
35738
|
-
bomPosition?: string | null;
|
|
35739
|
-
orderReference?: OrderReferenceDto | null;
|
|
35740
|
-
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
35741
|
-
}
|
|
35742
|
-
|
|
35743
|
-
export interface OrderReferenceDto {
|
|
35744
|
-
orderReferenceType?: OrderReferenceTypeDto;
|
|
35745
|
-
orderNumber?: string;
|
|
35746
|
-
orderLineNumber?: number | null;
|
|
35747
|
-
}
|
|
35748
|
-
|
|
35749
|
-
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
35750
|
-
|
|
35751
|
-
export interface ListProductionOrdersRequest {
|
|
35752
|
-
search: string;
|
|
35753
|
-
searchType: SearchTypeDto;
|
|
35754
|
-
maxResults?: number | null;
|
|
35755
|
-
}
|
|
35756
|
-
|
|
35757
35767
|
export interface PlannerPlanDto {
|
|
35758
35768
|
resourceGroupId: string;
|
|
35759
35769
|
sequence: PlannerOperationDto[];
|
|
@@ -35888,6 +35898,41 @@ export interface ProductionOrderAttachmentDto {
|
|
|
35888
35898
|
canDelete: boolean;
|
|
35889
35899
|
}
|
|
35890
35900
|
|
|
35901
|
+
export interface ProductionOrderListDto {
|
|
35902
|
+
id: string;
|
|
35903
|
+
companyId?: string | null;
|
|
35904
|
+
part?: PartDto | null;
|
|
35905
|
+
quantity: number;
|
|
35906
|
+
unit?: string | null;
|
|
35907
|
+
status: WorkorderStatus;
|
|
35908
|
+
plannedStart?: Date | null;
|
|
35909
|
+
plannedEnd?: Date | null;
|
|
35910
|
+
producedQuantity: number;
|
|
35911
|
+
scrappedQuantity: number;
|
|
35912
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
35913
|
+
project?: WorkOrderProjectDto | null;
|
|
35914
|
+
startDate?: Date | null;
|
|
35915
|
+
endDate?: Date | null;
|
|
35916
|
+
deliveryDate?: Date | null;
|
|
35917
|
+
bomPosition?: string | null;
|
|
35918
|
+
orderReference?: OrderReferenceDto | null;
|
|
35919
|
+
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
35920
|
+
}
|
|
35921
|
+
|
|
35922
|
+
export interface OrderReferenceDto {
|
|
35923
|
+
orderReferenceType?: OrderReferenceTypeDto;
|
|
35924
|
+
orderNumber?: string;
|
|
35925
|
+
orderLineNumber?: number | null;
|
|
35926
|
+
}
|
|
35927
|
+
|
|
35928
|
+
export type OrderReferenceTypeDto = "ProductionOrder" | "PurchaseOrder" | "SalesOrder";
|
|
35929
|
+
|
|
35930
|
+
export interface ListProductionOrdersRequest {
|
|
35931
|
+
search: string;
|
|
35932
|
+
searchType: SearchTypeDto;
|
|
35933
|
+
maxResults?: number | null;
|
|
35934
|
+
}
|
|
35935
|
+
|
|
35891
35936
|
export interface ProductionOrderDto {
|
|
35892
35937
|
id: string;
|
|
35893
35938
|
companyId: string;
|