@ignos/api-client 20260727.196.1 → 20260728.198.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 +130 -15
- package/lib/ignosportal-api.js +422 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +545 -22
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2460,7 +2460,6 @@ 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[]>;
|
|
2464
2463
|
}
|
|
2465
2464
|
export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
2466
2465
|
private http;
|
|
@@ -2470,8 +2469,45 @@ export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOr
|
|
|
2470
2469
|
});
|
|
2471
2470
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
2472
2471
|
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
2473
|
-
|
|
2474
|
-
|
|
2472
|
+
}
|
|
2473
|
+
export interface IMesPlannerClient {
|
|
2474
|
+
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
|
|
2475
|
+
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto>;
|
|
2476
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
2477
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
2478
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
2479
|
+
discardDraft(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
2480
|
+
getCapacity(resourceGroupId: string, from: Date | undefined, to: Date | undefined): Promise<WeekCapacityDto[]>;
|
|
2481
|
+
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]>;
|
|
2482
|
+
getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto>;
|
|
2483
|
+
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus>;
|
|
2484
|
+
}
|
|
2485
|
+
export declare class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerClient {
|
|
2486
|
+
private http;
|
|
2487
|
+
private baseUrl;
|
|
2488
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2489
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2490
|
+
});
|
|
2491
|
+
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
|
|
2492
|
+
protected processGetPlan(response: Response): Promise<PlannerPlanDto>;
|
|
2493
|
+
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto>;
|
|
2494
|
+
protected processPublish(response: Response): Promise<PlannerPlanDto>;
|
|
2495
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
2496
|
+
protected processUpdateSequence(response: Response): Promise<PlannerPlanDto>;
|
|
2497
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
2498
|
+
protected processReset(response: Response): Promise<PlannerPlanDto>;
|
|
2499
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
2500
|
+
protected processSaveDraft(response: Response): Promise<PlannerPlanDto>;
|
|
2501
|
+
discardDraft(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
2502
|
+
protected processDiscardDraft(response: Response): Promise<PlannerPlanDto>;
|
|
2503
|
+
getCapacity(resourceGroupId: string, from: Date | undefined, to: Date | undefined): Promise<WeekCapacityDto[]>;
|
|
2504
|
+
protected processGetCapacity(response: Response): Promise<WeekCapacityDto[]>;
|
|
2505
|
+
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]>;
|
|
2506
|
+
protected processGetVersions(response: Response): Promise<PlannerPlanEventDto[]>;
|
|
2507
|
+
getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto>;
|
|
2508
|
+
protected processGetVersion(response: Response): Promise<PlannerPlanDto>;
|
|
2509
|
+
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus>;
|
|
2510
|
+
protected processSetProgramStatus(response: Response): Promise<ProgramStatus>;
|
|
2475
2511
|
}
|
|
2476
2512
|
export interface IMesProductionOrderAttachmentClient {
|
|
2477
2513
|
/**
|
|
@@ -2511,6 +2547,7 @@ export declare class MesProductionOrderAttachmentClient extends AuthorizedApiBas
|
|
|
2511
2547
|
protected processDeleteAttachment(response: Response): Promise<FileResponse>;
|
|
2512
2548
|
}
|
|
2513
2549
|
export interface IMesProductionOrderClient {
|
|
2550
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2514
2551
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
2515
2552
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
2516
2553
|
getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
|
|
@@ -2527,6 +2564,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
2527
2564
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2528
2565
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2529
2566
|
});
|
|
2567
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
2568
|
+
protected processListProductionOrders(response: Response): Promise<ProductionOrderListDto[]>;
|
|
2530
2569
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
2531
2570
|
protected processGetProductionOrder(response: Response): Promise<ProductionOrderDto>;
|
|
2532
2571
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -7352,6 +7391,90 @@ export interface LabelId {
|
|
|
7352
7391
|
parcelId: string;
|
|
7353
7392
|
trackingId?: string | null;
|
|
7354
7393
|
}
|
|
7394
|
+
export interface PlannerPlanDto {
|
|
7395
|
+
resourceGroupId: string;
|
|
7396
|
+
sequence: PlannerOperationDto[];
|
|
7397
|
+
lockedCount: number;
|
|
7398
|
+
planSavedAt?: Date | null;
|
|
7399
|
+
isDraft: boolean;
|
|
7400
|
+
publishedETag?: string | null;
|
|
7401
|
+
weeklyCapacities: WeekCapacityDto[];
|
|
7402
|
+
}
|
|
7403
|
+
export interface PlannerOperationDto {
|
|
7404
|
+
id: string;
|
|
7405
|
+
productionOrderNumber: string;
|
|
7406
|
+
operation: number;
|
|
7407
|
+
operationName: string;
|
|
7408
|
+
plannedStart: Date;
|
|
7409
|
+
plannedEnd?: Date | null;
|
|
7410
|
+
status: OperationStatusDto;
|
|
7411
|
+
resourceId: string;
|
|
7412
|
+
resourceName: string;
|
|
7413
|
+
resourceDepartmentNumber?: string | null;
|
|
7414
|
+
resourceDepartmentName?: string | null;
|
|
7415
|
+
partNumber: string;
|
|
7416
|
+
partName?: string | null;
|
|
7417
|
+
partMaterial?: string | null;
|
|
7418
|
+
quantity: number;
|
|
7419
|
+
producedQuantity: number;
|
|
7420
|
+
totalPlannedHours?: number;
|
|
7421
|
+
totalUsedHours?: number;
|
|
7422
|
+
customerName?: string | null;
|
|
7423
|
+
project?: WorkOrderProjectDto | null;
|
|
7424
|
+
sequenceNumber: number;
|
|
7425
|
+
isManuallyLocked: boolean;
|
|
7426
|
+
weekGroup: string;
|
|
7427
|
+
programStatus?: ProgramStatus | null;
|
|
7428
|
+
}
|
|
7429
|
+
export type ProgramStatus = "Blank" | "NotOk" | "Ok";
|
|
7430
|
+
export interface WeekCapacityDto {
|
|
7431
|
+
weekGroup: string;
|
|
7432
|
+
weekStart: Date;
|
|
7433
|
+
capacityHours: number;
|
|
7434
|
+
}
|
|
7435
|
+
export interface PublishPlanRequest {
|
|
7436
|
+
/** ETag of the published plan the caller last read, used for optimistic
|
|
7437
|
+
concurrency. Null if the caller never observed a published plan. */
|
|
7438
|
+
publishedETag?: string | null;
|
|
7439
|
+
comment?: string | null;
|
|
7440
|
+
/** The caller's unsaved working sequence to publish. When null, the
|
|
7441
|
+
persisted active plan (draft, else published) is published instead. */
|
|
7442
|
+
sequence?: PlannerSequenceInput | null;
|
|
7443
|
+
}
|
|
7444
|
+
export interface PlannerSequenceInput {
|
|
7445
|
+
orderedOperationKeys: string[];
|
|
7446
|
+
lockedCount: number;
|
|
7447
|
+
weekGroups?: {
|
|
7448
|
+
[key: string]: string;
|
|
7449
|
+
} | null;
|
|
7450
|
+
}
|
|
7451
|
+
export interface PlannerPlanEventDto {
|
|
7452
|
+
id: string;
|
|
7453
|
+
eventType: PlannerEventType;
|
|
7454
|
+
occurredAt: Date;
|
|
7455
|
+
by?: string | null;
|
|
7456
|
+
comment?: string | null;
|
|
7457
|
+
operationCount: number;
|
|
7458
|
+
lockedCount: number;
|
|
7459
|
+
}
|
|
7460
|
+
export type PlannerEventType = "Published" | "DraftSaved" | "ResetToErp";
|
|
7461
|
+
export interface SetProgramStatus {
|
|
7462
|
+
workOrderId?: string;
|
|
7463
|
+
operationNumber?: number;
|
|
7464
|
+
status?: ProgramStatus;
|
|
7465
|
+
}
|
|
7466
|
+
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
7467
|
+
export interface WorkOrderAttachmentDto {
|
|
7468
|
+
createdBy?: UserDto | null;
|
|
7469
|
+
created?: Date | null;
|
|
7470
|
+
modifiedBy?: UserDto | null;
|
|
7471
|
+
modified?: Date | null;
|
|
7472
|
+
attachmentId?: number | null;
|
|
7473
|
+
name?: string | null;
|
|
7474
|
+
fileName?: string | null;
|
|
7475
|
+
notes?: string | null;
|
|
7476
|
+
attachmentType?: string | null;
|
|
7477
|
+
}
|
|
7355
7478
|
export interface ProductionOrderListDto {
|
|
7356
7479
|
id: string;
|
|
7357
7480
|
companyId?: string | null;
|
|
@@ -7383,18 +7506,6 @@ export interface ListProductionOrdersRequest {
|
|
|
7383
7506
|
searchType: SearchTypeDto;
|
|
7384
7507
|
maxResults?: number | null;
|
|
7385
7508
|
}
|
|
7386
|
-
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
7387
|
-
export interface WorkOrderAttachmentDto {
|
|
7388
|
-
createdBy?: UserDto | null;
|
|
7389
|
-
created?: Date | null;
|
|
7390
|
-
modifiedBy?: UserDto | null;
|
|
7391
|
-
modified?: Date | null;
|
|
7392
|
-
attachmentId?: number | null;
|
|
7393
|
-
name?: string | null;
|
|
7394
|
-
fileName?: string | null;
|
|
7395
|
-
notes?: string | null;
|
|
7396
|
-
attachmentType?: string | null;
|
|
7397
|
-
}
|
|
7398
7509
|
export interface ProductionOrderDto {
|
|
7399
7510
|
id: string;
|
|
7400
7511
|
companyId: string;
|
|
@@ -7652,6 +7763,7 @@ export interface ProductionScheduleOperationDto {
|
|
|
7652
7763
|
materialPickStatus: MaterialPickStatus;
|
|
7653
7764
|
productionStatus: OperationStatusDto;
|
|
7654
7765
|
setupStatus?: OperationStatusDto | null;
|
|
7766
|
+
programStatus?: ProgramStatus | null;
|
|
7655
7767
|
}
|
|
7656
7768
|
export interface SurroundingOperationDto {
|
|
7657
7769
|
id: string;
|
|
@@ -9865,17 +9977,20 @@ export interface WorkorderDiscussionMessageDto {
|
|
|
9865
9977
|
operationName?: string | null;
|
|
9866
9978
|
resourceId?: string | null;
|
|
9867
9979
|
created?: Date;
|
|
9980
|
+
messageType?: DiscussionMessageType;
|
|
9868
9981
|
}
|
|
9869
9982
|
export interface WorkOrderDiscussionContent {
|
|
9870
9983
|
type?: WorkOrderDiscussionContentType;
|
|
9871
9984
|
value?: string;
|
|
9872
9985
|
}
|
|
9873
9986
|
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
9987
|
+
export type DiscussionMessageType = "Public" | "Planner";
|
|
9874
9988
|
export interface AddDiscussionMessageRequest {
|
|
9875
9989
|
message: string;
|
|
9876
9990
|
operationId?: string | null;
|
|
9877
9991
|
operationName?: string | null;
|
|
9878
9992
|
resourceId?: string | null;
|
|
9993
|
+
messageType?: DiscussionMessageType;
|
|
9879
9994
|
}
|
|
9880
9995
|
export interface WorkorderDiscussionReadStatusDto {
|
|
9881
9996
|
workorderId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -20552,8 +20552,58 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20552
20552
|
}
|
|
20553
20553
|
return Promise.resolve(null);
|
|
20554
20554
|
}
|
|
20555
|
-
|
|
20556
|
-
|
|
20555
|
+
}
|
|
20556
|
+
export class MesPlannerClient extends AuthorizedApiBase {
|
|
20557
|
+
constructor(configuration, baseUrl, http) {
|
|
20558
|
+
super(configuration);
|
|
20559
|
+
this.http = http ? http : window;
|
|
20560
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20561
|
+
}
|
|
20562
|
+
getPlan(resourceGroupId) {
|
|
20563
|
+
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
20564
|
+
if (resourceGroupId === null)
|
|
20565
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' cannot be null.");
|
|
20566
|
+
else if (resourceGroupId !== undefined)
|
|
20567
|
+
url_ += "resourceGroupId=" + encodeURIComponent("" + resourceGroupId) + "&";
|
|
20568
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20569
|
+
let options_ = {
|
|
20570
|
+
method: "GET",
|
|
20571
|
+
headers: {
|
|
20572
|
+
"Accept": "application/json"
|
|
20573
|
+
}
|
|
20574
|
+
};
|
|
20575
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20576
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20577
|
+
}).then((_response) => {
|
|
20578
|
+
return this.processGetPlan(_response);
|
|
20579
|
+
});
|
|
20580
|
+
}
|
|
20581
|
+
processGetPlan(response) {
|
|
20582
|
+
const status = response.status;
|
|
20583
|
+
let _headers = {};
|
|
20584
|
+
if (response.headers && response.headers.forEach) {
|
|
20585
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20586
|
+
}
|
|
20587
|
+
;
|
|
20588
|
+
if (status === 200) {
|
|
20589
|
+
return response.text().then((_responseText) => {
|
|
20590
|
+
let result200 = null;
|
|
20591
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20592
|
+
return result200;
|
|
20593
|
+
});
|
|
20594
|
+
}
|
|
20595
|
+
else if (status !== 200 && status !== 204) {
|
|
20596
|
+
return response.text().then((_responseText) => {
|
|
20597
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20598
|
+
});
|
|
20599
|
+
}
|
|
20600
|
+
return Promise.resolve(null);
|
|
20601
|
+
}
|
|
20602
|
+
publish(resourceGroupId, request) {
|
|
20603
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
|
|
20604
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20605
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20606
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20557
20607
|
url_ = url_.replace(/[?&]$/, "");
|
|
20558
20608
|
const content_ = JSON.stringify(request);
|
|
20559
20609
|
let options_ = {
|
|
@@ -20567,10 +20617,339 @@ export class MesOrMoveClient extends AuthorizedApiBase {
|
|
|
20567
20617
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20568
20618
|
return this.http.fetch(url_, transformedOptions_);
|
|
20569
20619
|
}).then((_response) => {
|
|
20570
|
-
return this.
|
|
20620
|
+
return this.processPublish(_response);
|
|
20621
|
+
});
|
|
20622
|
+
}
|
|
20623
|
+
processPublish(response) {
|
|
20624
|
+
const status = response.status;
|
|
20625
|
+
let _headers = {};
|
|
20626
|
+
if (response.headers && response.headers.forEach) {
|
|
20627
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20628
|
+
}
|
|
20629
|
+
;
|
|
20630
|
+
if (status === 200) {
|
|
20631
|
+
return response.text().then((_responseText) => {
|
|
20632
|
+
let result200 = null;
|
|
20633
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20634
|
+
return result200;
|
|
20635
|
+
});
|
|
20636
|
+
}
|
|
20637
|
+
else if (status !== 200 && status !== 204) {
|
|
20638
|
+
return response.text().then((_responseText) => {
|
|
20639
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20640
|
+
});
|
|
20641
|
+
}
|
|
20642
|
+
return Promise.resolve(null);
|
|
20643
|
+
}
|
|
20644
|
+
updateSequence(resourceGroupId, sequence) {
|
|
20645
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
|
|
20646
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20647
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20648
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20649
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20650
|
+
const content_ = JSON.stringify(sequence);
|
|
20651
|
+
let options_ = {
|
|
20652
|
+
body: content_,
|
|
20653
|
+
method: "PUT",
|
|
20654
|
+
headers: {
|
|
20655
|
+
"Content-Type": "application/json",
|
|
20656
|
+
"Accept": "application/json"
|
|
20657
|
+
}
|
|
20658
|
+
};
|
|
20659
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20660
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20661
|
+
}).then((_response) => {
|
|
20662
|
+
return this.processUpdateSequence(_response);
|
|
20663
|
+
});
|
|
20664
|
+
}
|
|
20665
|
+
processUpdateSequence(response) {
|
|
20666
|
+
const status = response.status;
|
|
20667
|
+
let _headers = {};
|
|
20668
|
+
if (response.headers && response.headers.forEach) {
|
|
20669
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20670
|
+
}
|
|
20671
|
+
;
|
|
20672
|
+
if (status === 200) {
|
|
20673
|
+
return response.text().then((_responseText) => {
|
|
20674
|
+
let result200 = null;
|
|
20675
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20676
|
+
return result200;
|
|
20677
|
+
});
|
|
20678
|
+
}
|
|
20679
|
+
else if (status !== 200 && status !== 204) {
|
|
20680
|
+
return response.text().then((_responseText) => {
|
|
20681
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20682
|
+
});
|
|
20683
|
+
}
|
|
20684
|
+
return Promise.resolve(null);
|
|
20685
|
+
}
|
|
20686
|
+
reset(resourceGroupId) {
|
|
20687
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
|
|
20688
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20689
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20690
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20691
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20692
|
+
let options_ = {
|
|
20693
|
+
method: "POST",
|
|
20694
|
+
headers: {
|
|
20695
|
+
"Accept": "application/json"
|
|
20696
|
+
}
|
|
20697
|
+
};
|
|
20698
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20699
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20700
|
+
}).then((_response) => {
|
|
20701
|
+
return this.processReset(_response);
|
|
20702
|
+
});
|
|
20703
|
+
}
|
|
20704
|
+
processReset(response) {
|
|
20705
|
+
const status = response.status;
|
|
20706
|
+
let _headers = {};
|
|
20707
|
+
if (response.headers && response.headers.forEach) {
|
|
20708
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20709
|
+
}
|
|
20710
|
+
;
|
|
20711
|
+
if (status === 200) {
|
|
20712
|
+
return response.text().then((_responseText) => {
|
|
20713
|
+
let result200 = null;
|
|
20714
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20715
|
+
return result200;
|
|
20716
|
+
});
|
|
20717
|
+
}
|
|
20718
|
+
else if (status !== 200 && status !== 204) {
|
|
20719
|
+
return response.text().then((_responseText) => {
|
|
20720
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20721
|
+
});
|
|
20722
|
+
}
|
|
20723
|
+
return Promise.resolve(null);
|
|
20724
|
+
}
|
|
20725
|
+
saveDraft(resourceGroupId, sequence) {
|
|
20726
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
20727
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20728
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20729
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20730
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20731
|
+
const content_ = JSON.stringify(sequence);
|
|
20732
|
+
let options_ = {
|
|
20733
|
+
body: content_,
|
|
20734
|
+
method: "POST",
|
|
20735
|
+
headers: {
|
|
20736
|
+
"Content-Type": "application/json",
|
|
20737
|
+
"Accept": "application/json"
|
|
20738
|
+
}
|
|
20739
|
+
};
|
|
20740
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20741
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20742
|
+
}).then((_response) => {
|
|
20743
|
+
return this.processSaveDraft(_response);
|
|
20744
|
+
});
|
|
20745
|
+
}
|
|
20746
|
+
processSaveDraft(response) {
|
|
20747
|
+
const status = response.status;
|
|
20748
|
+
let _headers = {};
|
|
20749
|
+
if (response.headers && response.headers.forEach) {
|
|
20750
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20751
|
+
}
|
|
20752
|
+
;
|
|
20753
|
+
if (status === 200) {
|
|
20754
|
+
return response.text().then((_responseText) => {
|
|
20755
|
+
let result200 = null;
|
|
20756
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20757
|
+
return result200;
|
|
20758
|
+
});
|
|
20759
|
+
}
|
|
20760
|
+
else if (status !== 200 && status !== 204) {
|
|
20761
|
+
return response.text().then((_responseText) => {
|
|
20762
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20763
|
+
});
|
|
20764
|
+
}
|
|
20765
|
+
return Promise.resolve(null);
|
|
20766
|
+
}
|
|
20767
|
+
discardDraft(resourceGroupId) {
|
|
20768
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
20769
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20770
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20771
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20772
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20773
|
+
let options_ = {
|
|
20774
|
+
method: "DELETE",
|
|
20775
|
+
headers: {
|
|
20776
|
+
"Accept": "application/json"
|
|
20777
|
+
}
|
|
20778
|
+
};
|
|
20779
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20780
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20781
|
+
}).then((_response) => {
|
|
20782
|
+
return this.processDiscardDraft(_response);
|
|
20571
20783
|
});
|
|
20572
20784
|
}
|
|
20573
|
-
|
|
20785
|
+
processDiscardDraft(response) {
|
|
20786
|
+
const status = response.status;
|
|
20787
|
+
let _headers = {};
|
|
20788
|
+
if (response.headers && response.headers.forEach) {
|
|
20789
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20790
|
+
}
|
|
20791
|
+
;
|
|
20792
|
+
if (status === 200) {
|
|
20793
|
+
return response.text().then((_responseText) => {
|
|
20794
|
+
let result200 = null;
|
|
20795
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20796
|
+
return result200;
|
|
20797
|
+
});
|
|
20798
|
+
}
|
|
20799
|
+
else if (status !== 200 && status !== 204) {
|
|
20800
|
+
return response.text().then((_responseText) => {
|
|
20801
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20802
|
+
});
|
|
20803
|
+
}
|
|
20804
|
+
return Promise.resolve(null);
|
|
20805
|
+
}
|
|
20806
|
+
getCapacity(resourceGroupId, from, to) {
|
|
20807
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/capacity?";
|
|
20808
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20809
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20810
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20811
|
+
if (from === null)
|
|
20812
|
+
throw new globalThis.Error("The parameter 'from' cannot be null.");
|
|
20813
|
+
else if (from !== undefined)
|
|
20814
|
+
url_ += "from=" + encodeURIComponent(from ? "" + from.toISOString() : "") + "&";
|
|
20815
|
+
if (to === null)
|
|
20816
|
+
throw new globalThis.Error("The parameter 'to' cannot be null.");
|
|
20817
|
+
else if (to !== undefined)
|
|
20818
|
+
url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
|
|
20819
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20820
|
+
let options_ = {
|
|
20821
|
+
method: "GET",
|
|
20822
|
+
headers: {
|
|
20823
|
+
"Accept": "application/json"
|
|
20824
|
+
}
|
|
20825
|
+
};
|
|
20826
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20827
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20828
|
+
}).then((_response) => {
|
|
20829
|
+
return this.processGetCapacity(_response);
|
|
20830
|
+
});
|
|
20831
|
+
}
|
|
20832
|
+
processGetCapacity(response) {
|
|
20833
|
+
const status = response.status;
|
|
20834
|
+
let _headers = {};
|
|
20835
|
+
if (response.headers && response.headers.forEach) {
|
|
20836
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20837
|
+
}
|
|
20838
|
+
;
|
|
20839
|
+
if (status === 200) {
|
|
20840
|
+
return response.text().then((_responseText) => {
|
|
20841
|
+
let result200 = null;
|
|
20842
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20843
|
+
return result200;
|
|
20844
|
+
});
|
|
20845
|
+
}
|
|
20846
|
+
else if (status !== 200 && status !== 204) {
|
|
20847
|
+
return response.text().then((_responseText) => {
|
|
20848
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20849
|
+
});
|
|
20850
|
+
}
|
|
20851
|
+
return Promise.resolve(null);
|
|
20852
|
+
}
|
|
20853
|
+
getVersions(resourceGroupId) {
|
|
20854
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
|
|
20855
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20856
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20857
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20858
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20859
|
+
let options_ = {
|
|
20860
|
+
method: "GET",
|
|
20861
|
+
headers: {
|
|
20862
|
+
"Accept": "application/json"
|
|
20863
|
+
}
|
|
20864
|
+
};
|
|
20865
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20866
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20867
|
+
}).then((_response) => {
|
|
20868
|
+
return this.processGetVersions(_response);
|
|
20869
|
+
});
|
|
20870
|
+
}
|
|
20871
|
+
processGetVersions(response) {
|
|
20872
|
+
const status = response.status;
|
|
20873
|
+
let _headers = {};
|
|
20874
|
+
if (response.headers && response.headers.forEach) {
|
|
20875
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20876
|
+
}
|
|
20877
|
+
;
|
|
20878
|
+
if (status === 200) {
|
|
20879
|
+
return response.text().then((_responseText) => {
|
|
20880
|
+
let result200 = null;
|
|
20881
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20882
|
+
return result200;
|
|
20883
|
+
});
|
|
20884
|
+
}
|
|
20885
|
+
else if (status !== 200 && status !== 204) {
|
|
20886
|
+
return response.text().then((_responseText) => {
|
|
20887
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20888
|
+
});
|
|
20889
|
+
}
|
|
20890
|
+
return Promise.resolve(null);
|
|
20891
|
+
}
|
|
20892
|
+
getVersion(resourceGroupId, eventId) {
|
|
20893
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions/{eventId}";
|
|
20894
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
20895
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
20896
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
20897
|
+
if (eventId === undefined || eventId === null)
|
|
20898
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
20899
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
20900
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20901
|
+
let options_ = {
|
|
20902
|
+
method: "GET",
|
|
20903
|
+
headers: {
|
|
20904
|
+
"Accept": "application/json"
|
|
20905
|
+
}
|
|
20906
|
+
};
|
|
20907
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20908
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20909
|
+
}).then((_response) => {
|
|
20910
|
+
return this.processGetVersion(_response);
|
|
20911
|
+
});
|
|
20912
|
+
}
|
|
20913
|
+
processGetVersion(response) {
|
|
20914
|
+
const status = response.status;
|
|
20915
|
+
let _headers = {};
|
|
20916
|
+
if (response.headers && response.headers.forEach) {
|
|
20917
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20918
|
+
}
|
|
20919
|
+
;
|
|
20920
|
+
if (status === 200) {
|
|
20921
|
+
return response.text().then((_responseText) => {
|
|
20922
|
+
let result200 = null;
|
|
20923
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20924
|
+
return result200;
|
|
20925
|
+
});
|
|
20926
|
+
}
|
|
20927
|
+
else if (status !== 200 && status !== 204) {
|
|
20928
|
+
return response.text().then((_responseText) => {
|
|
20929
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20930
|
+
});
|
|
20931
|
+
}
|
|
20932
|
+
return Promise.resolve(null);
|
|
20933
|
+
}
|
|
20934
|
+
setProgramStatus(command) {
|
|
20935
|
+
let url_ = this.baseUrl + "/mes/planner/operations/program-status";
|
|
20936
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20937
|
+
const content_ = JSON.stringify(command);
|
|
20938
|
+
let options_ = {
|
|
20939
|
+
body: content_,
|
|
20940
|
+
method: "PUT",
|
|
20941
|
+
headers: {
|
|
20942
|
+
"Content-Type": "application/json",
|
|
20943
|
+
"Accept": "application/json"
|
|
20944
|
+
}
|
|
20945
|
+
};
|
|
20946
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20947
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20948
|
+
}).then((_response) => {
|
|
20949
|
+
return this.processSetProgramStatus(_response);
|
|
20950
|
+
});
|
|
20951
|
+
}
|
|
20952
|
+
processSetProgramStatus(response) {
|
|
20574
20953
|
const status = response.status;
|
|
20575
20954
|
let _headers = {};
|
|
20576
20955
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20807,6 +21186,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
20807
21186
|
this.http = http ? http : window;
|
|
20808
21187
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
20809
21188
|
}
|
|
21189
|
+
listProductionOrders(request) {
|
|
21190
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
21191
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21192
|
+
const content_ = JSON.stringify(request);
|
|
21193
|
+
let options_ = {
|
|
21194
|
+
body: content_,
|
|
21195
|
+
method: "POST",
|
|
21196
|
+
headers: {
|
|
21197
|
+
"Content-Type": "application/json",
|
|
21198
|
+
"Accept": "application/json"
|
|
21199
|
+
}
|
|
21200
|
+
};
|
|
21201
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21202
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21203
|
+
}).then((_response) => {
|
|
21204
|
+
return this.processListProductionOrders(_response);
|
|
21205
|
+
});
|
|
21206
|
+
}
|
|
21207
|
+
processListProductionOrders(response) {
|
|
21208
|
+
const status = response.status;
|
|
21209
|
+
let _headers = {};
|
|
21210
|
+
if (response.headers && response.headers.forEach) {
|
|
21211
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21212
|
+
}
|
|
21213
|
+
;
|
|
21214
|
+
if (status === 200) {
|
|
21215
|
+
return response.text().then((_responseText) => {
|
|
21216
|
+
let result200 = null;
|
|
21217
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21218
|
+
return result200;
|
|
21219
|
+
});
|
|
21220
|
+
}
|
|
21221
|
+
else if (status !== 200 && status !== 204) {
|
|
21222
|
+
return response.text().then((_responseText) => {
|
|
21223
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21224
|
+
});
|
|
21225
|
+
}
|
|
21226
|
+
return Promise.resolve(null);
|
|
21227
|
+
}
|
|
20810
21228
|
getProductionOrder(id) {
|
|
20811
21229
|
let url_ = this.baseUrl + "/mes/productionorders/{id}";
|
|
20812
21230
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -21918,8 +21918,6 @@ 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[]>;
|
|
21923
21921
|
}
|
|
21924
21922
|
|
|
21925
21923
|
export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
@@ -21970,9 +21968,85 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21970
21968
|
}
|
|
21971
21969
|
return Promise.resolve<DownloadDto>(null as any);
|
|
21972
21970
|
}
|
|
21971
|
+
}
|
|
21973
21972
|
|
|
21974
|
-
|
|
21975
|
-
|
|
21973
|
+
export interface IMesPlannerClient {
|
|
21974
|
+
|
|
21975
|
+
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto>;
|
|
21976
|
+
|
|
21977
|
+
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto>;
|
|
21978
|
+
|
|
21979
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21980
|
+
|
|
21981
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
21982
|
+
|
|
21983
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto>;
|
|
21984
|
+
|
|
21985
|
+
discardDraft(resourceGroupId: string): Promise<PlannerPlanDto>;
|
|
21986
|
+
|
|
21987
|
+
getCapacity(resourceGroupId: string, from: Date | undefined, to: Date | undefined): Promise<WeekCapacityDto[]>;
|
|
21988
|
+
|
|
21989
|
+
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]>;
|
|
21990
|
+
|
|
21991
|
+
getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto>;
|
|
21992
|
+
|
|
21993
|
+
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus>;
|
|
21994
|
+
}
|
|
21995
|
+
|
|
21996
|
+
export class MesPlannerClient extends AuthorizedApiBase implements IMesPlannerClient {
|
|
21997
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21998
|
+
private baseUrl: string;
|
|
21999
|
+
|
|
22000
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22001
|
+
super(configuration);
|
|
22002
|
+
this.http = http ? http : window as any;
|
|
22003
|
+
this.baseUrl = baseUrl ?? "";
|
|
22004
|
+
}
|
|
22005
|
+
|
|
22006
|
+
getPlan(resourceGroupId: string | undefined): Promise<PlannerPlanDto> {
|
|
22007
|
+
let url_ = this.baseUrl + "/mes/planner/plan?";
|
|
22008
|
+
if (resourceGroupId === null)
|
|
22009
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' cannot be null.");
|
|
22010
|
+
else if (resourceGroupId !== undefined)
|
|
22011
|
+
url_ += "resourceGroupId=" + encodeURIComponent("" + resourceGroupId) + "&";
|
|
22012
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22013
|
+
|
|
22014
|
+
let options_: RequestInit = {
|
|
22015
|
+
method: "GET",
|
|
22016
|
+
headers: {
|
|
22017
|
+
"Accept": "application/json"
|
|
22018
|
+
}
|
|
22019
|
+
};
|
|
22020
|
+
|
|
22021
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22022
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22023
|
+
}).then((_response: Response) => {
|
|
22024
|
+
return this.processGetPlan(_response);
|
|
22025
|
+
});
|
|
22026
|
+
}
|
|
22027
|
+
|
|
22028
|
+
protected processGetPlan(response: Response): Promise<PlannerPlanDto> {
|
|
22029
|
+
const status = response.status;
|
|
22030
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22031
|
+
if (status === 200) {
|
|
22032
|
+
return response.text().then((_responseText) => {
|
|
22033
|
+
let result200: any = null;
|
|
22034
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22035
|
+
return result200;
|
|
22036
|
+
});
|
|
22037
|
+
} else if (status !== 200 && status !== 204) {
|
|
22038
|
+
return response.text().then((_responseText) => {
|
|
22039
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22040
|
+
});
|
|
22041
|
+
}
|
|
22042
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22043
|
+
}
|
|
22044
|
+
|
|
22045
|
+
publish(resourceGroupId: string, request: PublishPlanRequest): Promise<PlannerPlanDto> {
|
|
22046
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/publish";
|
|
22047
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22048
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22049
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
21976
22050
|
url_ = url_.replace(/[?&]$/, "");
|
|
21977
22051
|
|
|
21978
22052
|
const content_ = JSON.stringify(request);
|
|
@@ -21989,17 +22063,17 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
21989
22063
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21990
22064
|
return this.http.fetch(url_, transformedOptions_);
|
|
21991
22065
|
}).then((_response: Response) => {
|
|
21992
|
-
return this.
|
|
22066
|
+
return this.processPublish(_response);
|
|
21993
22067
|
});
|
|
21994
22068
|
}
|
|
21995
22069
|
|
|
21996
|
-
protected
|
|
22070
|
+
protected processPublish(response: Response): Promise<PlannerPlanDto> {
|
|
21997
22071
|
const status = response.status;
|
|
21998
22072
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21999
22073
|
if (status === 200) {
|
|
22000
22074
|
return response.text().then((_responseText) => {
|
|
22001
22075
|
let result200: any = null;
|
|
22002
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
22076
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22003
22077
|
return result200;
|
|
22004
22078
|
});
|
|
22005
22079
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -22007,7 +22081,331 @@ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClie
|
|
|
22007
22081
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22008
22082
|
});
|
|
22009
22083
|
}
|
|
22010
|
-
return Promise.resolve<
|
|
22084
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22085
|
+
}
|
|
22086
|
+
|
|
22087
|
+
updateSequence(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
|
|
22088
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/sequence";
|
|
22089
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22090
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22091
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22092
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22093
|
+
|
|
22094
|
+
const content_ = JSON.stringify(sequence);
|
|
22095
|
+
|
|
22096
|
+
let options_: RequestInit = {
|
|
22097
|
+
body: content_,
|
|
22098
|
+
method: "PUT",
|
|
22099
|
+
headers: {
|
|
22100
|
+
"Content-Type": "application/json",
|
|
22101
|
+
"Accept": "application/json"
|
|
22102
|
+
}
|
|
22103
|
+
};
|
|
22104
|
+
|
|
22105
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22106
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22107
|
+
}).then((_response: Response) => {
|
|
22108
|
+
return this.processUpdateSequence(_response);
|
|
22109
|
+
});
|
|
22110
|
+
}
|
|
22111
|
+
|
|
22112
|
+
protected processUpdateSequence(response: Response): Promise<PlannerPlanDto> {
|
|
22113
|
+
const status = response.status;
|
|
22114
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22115
|
+
if (status === 200) {
|
|
22116
|
+
return response.text().then((_responseText) => {
|
|
22117
|
+
let result200: any = null;
|
|
22118
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22119
|
+
return result200;
|
|
22120
|
+
});
|
|
22121
|
+
} else if (status !== 200 && status !== 204) {
|
|
22122
|
+
return response.text().then((_responseText) => {
|
|
22123
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22124
|
+
});
|
|
22125
|
+
}
|
|
22126
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22127
|
+
}
|
|
22128
|
+
|
|
22129
|
+
reset(resourceGroupId: string): Promise<PlannerPlanDto> {
|
|
22130
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/reset";
|
|
22131
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22132
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22133
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22134
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22135
|
+
|
|
22136
|
+
let options_: RequestInit = {
|
|
22137
|
+
method: "POST",
|
|
22138
|
+
headers: {
|
|
22139
|
+
"Accept": "application/json"
|
|
22140
|
+
}
|
|
22141
|
+
};
|
|
22142
|
+
|
|
22143
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22144
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22145
|
+
}).then((_response: Response) => {
|
|
22146
|
+
return this.processReset(_response);
|
|
22147
|
+
});
|
|
22148
|
+
}
|
|
22149
|
+
|
|
22150
|
+
protected processReset(response: Response): Promise<PlannerPlanDto> {
|
|
22151
|
+
const status = response.status;
|
|
22152
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22153
|
+
if (status === 200) {
|
|
22154
|
+
return response.text().then((_responseText) => {
|
|
22155
|
+
let result200: any = null;
|
|
22156
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22157
|
+
return result200;
|
|
22158
|
+
});
|
|
22159
|
+
} else if (status !== 200 && status !== 204) {
|
|
22160
|
+
return response.text().then((_responseText) => {
|
|
22161
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22162
|
+
});
|
|
22163
|
+
}
|
|
22164
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22165
|
+
}
|
|
22166
|
+
|
|
22167
|
+
saveDraft(resourceGroupId: string, sequence: PlannerSequenceInput): Promise<PlannerPlanDto> {
|
|
22168
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
22169
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22170
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22171
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22172
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22173
|
+
|
|
22174
|
+
const content_ = JSON.stringify(sequence);
|
|
22175
|
+
|
|
22176
|
+
let options_: RequestInit = {
|
|
22177
|
+
body: content_,
|
|
22178
|
+
method: "POST",
|
|
22179
|
+
headers: {
|
|
22180
|
+
"Content-Type": "application/json",
|
|
22181
|
+
"Accept": "application/json"
|
|
22182
|
+
}
|
|
22183
|
+
};
|
|
22184
|
+
|
|
22185
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22186
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22187
|
+
}).then((_response: Response) => {
|
|
22188
|
+
return this.processSaveDraft(_response);
|
|
22189
|
+
});
|
|
22190
|
+
}
|
|
22191
|
+
|
|
22192
|
+
protected processSaveDraft(response: Response): Promise<PlannerPlanDto> {
|
|
22193
|
+
const status = response.status;
|
|
22194
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22195
|
+
if (status === 200) {
|
|
22196
|
+
return response.text().then((_responseText) => {
|
|
22197
|
+
let result200: any = null;
|
|
22198
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22199
|
+
return result200;
|
|
22200
|
+
});
|
|
22201
|
+
} else if (status !== 200 && status !== 204) {
|
|
22202
|
+
return response.text().then((_responseText) => {
|
|
22203
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22204
|
+
});
|
|
22205
|
+
}
|
|
22206
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22207
|
+
}
|
|
22208
|
+
|
|
22209
|
+
discardDraft(resourceGroupId: string): Promise<PlannerPlanDto> {
|
|
22210
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/draft";
|
|
22211
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22212
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22213
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22214
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22215
|
+
|
|
22216
|
+
let options_: RequestInit = {
|
|
22217
|
+
method: "DELETE",
|
|
22218
|
+
headers: {
|
|
22219
|
+
"Accept": "application/json"
|
|
22220
|
+
}
|
|
22221
|
+
};
|
|
22222
|
+
|
|
22223
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22224
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22225
|
+
}).then((_response: Response) => {
|
|
22226
|
+
return this.processDiscardDraft(_response);
|
|
22227
|
+
});
|
|
22228
|
+
}
|
|
22229
|
+
|
|
22230
|
+
protected processDiscardDraft(response: Response): Promise<PlannerPlanDto> {
|
|
22231
|
+
const status = response.status;
|
|
22232
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22233
|
+
if (status === 200) {
|
|
22234
|
+
return response.text().then((_responseText) => {
|
|
22235
|
+
let result200: any = null;
|
|
22236
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22237
|
+
return result200;
|
|
22238
|
+
});
|
|
22239
|
+
} else if (status !== 200 && status !== 204) {
|
|
22240
|
+
return response.text().then((_responseText) => {
|
|
22241
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22242
|
+
});
|
|
22243
|
+
}
|
|
22244
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22245
|
+
}
|
|
22246
|
+
|
|
22247
|
+
getCapacity(resourceGroupId: string, from: Date | undefined, to: Date | undefined): Promise<WeekCapacityDto[]> {
|
|
22248
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/capacity?";
|
|
22249
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22250
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22251
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22252
|
+
if (from === null)
|
|
22253
|
+
throw new globalThis.Error("The parameter 'from' cannot be null.");
|
|
22254
|
+
else if (from !== undefined)
|
|
22255
|
+
url_ += "from=" + encodeURIComponent(from ? "" + from.toISOString() : "") + "&";
|
|
22256
|
+
if (to === null)
|
|
22257
|
+
throw new globalThis.Error("The parameter 'to' cannot be null.");
|
|
22258
|
+
else if (to !== undefined)
|
|
22259
|
+
url_ += "to=" + encodeURIComponent(to ? "" + to.toISOString() : "") + "&";
|
|
22260
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22261
|
+
|
|
22262
|
+
let options_: RequestInit = {
|
|
22263
|
+
method: "GET",
|
|
22264
|
+
headers: {
|
|
22265
|
+
"Accept": "application/json"
|
|
22266
|
+
}
|
|
22267
|
+
};
|
|
22268
|
+
|
|
22269
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22270
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22271
|
+
}).then((_response: Response) => {
|
|
22272
|
+
return this.processGetCapacity(_response);
|
|
22273
|
+
});
|
|
22274
|
+
}
|
|
22275
|
+
|
|
22276
|
+
protected processGetCapacity(response: Response): Promise<WeekCapacityDto[]> {
|
|
22277
|
+
const status = response.status;
|
|
22278
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22279
|
+
if (status === 200) {
|
|
22280
|
+
return response.text().then((_responseText) => {
|
|
22281
|
+
let result200: any = null;
|
|
22282
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as WeekCapacityDto[];
|
|
22283
|
+
return result200;
|
|
22284
|
+
});
|
|
22285
|
+
} else if (status !== 200 && status !== 204) {
|
|
22286
|
+
return response.text().then((_responseText) => {
|
|
22287
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22288
|
+
});
|
|
22289
|
+
}
|
|
22290
|
+
return Promise.resolve<WeekCapacityDto[]>(null as any);
|
|
22291
|
+
}
|
|
22292
|
+
|
|
22293
|
+
getVersions(resourceGroupId: string): Promise<PlannerPlanEventDto[]> {
|
|
22294
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions";
|
|
22295
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22296
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22297
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22298
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22299
|
+
|
|
22300
|
+
let options_: RequestInit = {
|
|
22301
|
+
method: "GET",
|
|
22302
|
+
headers: {
|
|
22303
|
+
"Accept": "application/json"
|
|
22304
|
+
}
|
|
22305
|
+
};
|
|
22306
|
+
|
|
22307
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22308
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22309
|
+
}).then((_response: Response) => {
|
|
22310
|
+
return this.processGetVersions(_response);
|
|
22311
|
+
});
|
|
22312
|
+
}
|
|
22313
|
+
|
|
22314
|
+
protected processGetVersions(response: Response): Promise<PlannerPlanEventDto[]> {
|
|
22315
|
+
const status = response.status;
|
|
22316
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22317
|
+
if (status === 200) {
|
|
22318
|
+
return response.text().then((_responseText) => {
|
|
22319
|
+
let result200: any = null;
|
|
22320
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanEventDto[];
|
|
22321
|
+
return result200;
|
|
22322
|
+
});
|
|
22323
|
+
} else if (status !== 200 && status !== 204) {
|
|
22324
|
+
return response.text().then((_responseText) => {
|
|
22325
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22326
|
+
});
|
|
22327
|
+
}
|
|
22328
|
+
return Promise.resolve<PlannerPlanEventDto[]>(null as any);
|
|
22329
|
+
}
|
|
22330
|
+
|
|
22331
|
+
getVersion(resourceGroupId: string, eventId: string): Promise<PlannerPlanDto> {
|
|
22332
|
+
let url_ = this.baseUrl + "/mes/planner/plan/{resourceGroupId}/versions/{eventId}";
|
|
22333
|
+
if (resourceGroupId === undefined || resourceGroupId === null)
|
|
22334
|
+
throw new globalThis.Error("The parameter 'resourceGroupId' must be defined.");
|
|
22335
|
+
url_ = url_.replace("{resourceGroupId}", encodeURIComponent("" + resourceGroupId));
|
|
22336
|
+
if (eventId === undefined || eventId === null)
|
|
22337
|
+
throw new globalThis.Error("The parameter 'eventId' must be defined.");
|
|
22338
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
22339
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22340
|
+
|
|
22341
|
+
let options_: RequestInit = {
|
|
22342
|
+
method: "GET",
|
|
22343
|
+
headers: {
|
|
22344
|
+
"Accept": "application/json"
|
|
22345
|
+
}
|
|
22346
|
+
};
|
|
22347
|
+
|
|
22348
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22349
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22350
|
+
}).then((_response: Response) => {
|
|
22351
|
+
return this.processGetVersion(_response);
|
|
22352
|
+
});
|
|
22353
|
+
}
|
|
22354
|
+
|
|
22355
|
+
protected processGetVersion(response: Response): Promise<PlannerPlanDto> {
|
|
22356
|
+
const status = response.status;
|
|
22357
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22358
|
+
if (status === 200) {
|
|
22359
|
+
return response.text().then((_responseText) => {
|
|
22360
|
+
let result200: any = null;
|
|
22361
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PlannerPlanDto;
|
|
22362
|
+
return result200;
|
|
22363
|
+
});
|
|
22364
|
+
} else if (status !== 200 && status !== 204) {
|
|
22365
|
+
return response.text().then((_responseText) => {
|
|
22366
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22367
|
+
});
|
|
22368
|
+
}
|
|
22369
|
+
return Promise.resolve<PlannerPlanDto>(null as any);
|
|
22370
|
+
}
|
|
22371
|
+
|
|
22372
|
+
setProgramStatus(command: SetProgramStatus): Promise<ProgramStatus> {
|
|
22373
|
+
let url_ = this.baseUrl + "/mes/planner/operations/program-status";
|
|
22374
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22375
|
+
|
|
22376
|
+
const content_ = JSON.stringify(command);
|
|
22377
|
+
|
|
22378
|
+
let options_: RequestInit = {
|
|
22379
|
+
body: content_,
|
|
22380
|
+
method: "PUT",
|
|
22381
|
+
headers: {
|
|
22382
|
+
"Content-Type": "application/json",
|
|
22383
|
+
"Accept": "application/json"
|
|
22384
|
+
}
|
|
22385
|
+
};
|
|
22386
|
+
|
|
22387
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22388
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22389
|
+
}).then((_response: Response) => {
|
|
22390
|
+
return this.processSetProgramStatus(_response);
|
|
22391
|
+
});
|
|
22392
|
+
}
|
|
22393
|
+
|
|
22394
|
+
protected processSetProgramStatus(response: Response): Promise<ProgramStatus> {
|
|
22395
|
+
const status = response.status;
|
|
22396
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22397
|
+
if (status === 200) {
|
|
22398
|
+
return response.text().then((_responseText) => {
|
|
22399
|
+
let result200: any = null;
|
|
22400
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProgramStatus;
|
|
22401
|
+
return result200;
|
|
22402
|
+
});
|
|
22403
|
+
} else if (status !== 200 && status !== 204) {
|
|
22404
|
+
return response.text().then((_responseText) => {
|
|
22405
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22406
|
+
});
|
|
22407
|
+
}
|
|
22408
|
+
return Promise.resolve<ProgramStatus>(null as any);
|
|
22011
22409
|
}
|
|
22012
22410
|
}
|
|
22013
22411
|
|
|
@@ -22239,6 +22637,8 @@ export class MesProductionOrderAttachmentClient extends AuthorizedApiBase implem
|
|
|
22239
22637
|
|
|
22240
22638
|
export interface IMesProductionOrderClient {
|
|
22241
22639
|
|
|
22640
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]>;
|
|
22641
|
+
|
|
22242
22642
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
22243
22643
|
|
|
22244
22644
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -22268,6 +22668,45 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
22268
22668
|
this.baseUrl = baseUrl ?? "";
|
|
22269
22669
|
}
|
|
22270
22670
|
|
|
22671
|
+
listProductionOrders(request: ListProductionOrdersRequest): Promise<ProductionOrderListDto[]> {
|
|
22672
|
+
let url_ = this.baseUrl + "/mes/productionorders/list";
|
|
22673
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22674
|
+
|
|
22675
|
+
const content_ = JSON.stringify(request);
|
|
22676
|
+
|
|
22677
|
+
let options_: RequestInit = {
|
|
22678
|
+
body: content_,
|
|
22679
|
+
method: "POST",
|
|
22680
|
+
headers: {
|
|
22681
|
+
"Content-Type": "application/json",
|
|
22682
|
+
"Accept": "application/json"
|
|
22683
|
+
}
|
|
22684
|
+
};
|
|
22685
|
+
|
|
22686
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22687
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22688
|
+
}).then((_response: Response) => {
|
|
22689
|
+
return this.processListProductionOrders(_response);
|
|
22690
|
+
});
|
|
22691
|
+
}
|
|
22692
|
+
|
|
22693
|
+
protected processListProductionOrders(response: Response): Promise<ProductionOrderListDto[]> {
|
|
22694
|
+
const status = response.status;
|
|
22695
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22696
|
+
if (status === 200) {
|
|
22697
|
+
return response.text().then((_responseText) => {
|
|
22698
|
+
let result200: any = null;
|
|
22699
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProductionOrderListDto[];
|
|
22700
|
+
return result200;
|
|
22701
|
+
});
|
|
22702
|
+
} else if (status !== 200 && status !== 204) {
|
|
22703
|
+
return response.text().then((_responseText) => {
|
|
22704
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22705
|
+
});
|
|
22706
|
+
}
|
|
22707
|
+
return Promise.resolve<ProductionOrderListDto[]>(null as any);
|
|
22708
|
+
}
|
|
22709
|
+
|
|
22271
22710
|
getProductionOrder(id: string): Promise<ProductionOrderDto> {
|
|
22272
22711
|
let url_ = this.baseUrl + "/mes/productionorders/{id}";
|
|
22273
22712
|
if (id === undefined || id === null)
|
|
@@ -35241,6 +35680,99 @@ export interface LabelId {
|
|
|
35241
35680
|
trackingId?: string | null;
|
|
35242
35681
|
}
|
|
35243
35682
|
|
|
35683
|
+
export interface PlannerPlanDto {
|
|
35684
|
+
resourceGroupId: string;
|
|
35685
|
+
sequence: PlannerOperationDto[];
|
|
35686
|
+
lockedCount: number;
|
|
35687
|
+
planSavedAt?: Date | null;
|
|
35688
|
+
isDraft: boolean;
|
|
35689
|
+
publishedETag?: string | null;
|
|
35690
|
+
weeklyCapacities: WeekCapacityDto[];
|
|
35691
|
+
}
|
|
35692
|
+
|
|
35693
|
+
export interface PlannerOperationDto {
|
|
35694
|
+
id: string;
|
|
35695
|
+
productionOrderNumber: string;
|
|
35696
|
+
operation: number;
|
|
35697
|
+
operationName: string;
|
|
35698
|
+
plannedStart: Date;
|
|
35699
|
+
plannedEnd?: Date | null;
|
|
35700
|
+
status: OperationStatusDto;
|
|
35701
|
+
resourceId: string;
|
|
35702
|
+
resourceName: string;
|
|
35703
|
+
resourceDepartmentNumber?: string | null;
|
|
35704
|
+
resourceDepartmentName?: string | null;
|
|
35705
|
+
partNumber: string;
|
|
35706
|
+
partName?: string | null;
|
|
35707
|
+
partMaterial?: string | null;
|
|
35708
|
+
quantity: number;
|
|
35709
|
+
producedQuantity: number;
|
|
35710
|
+
totalPlannedHours?: number;
|
|
35711
|
+
totalUsedHours?: number;
|
|
35712
|
+
customerName?: string | null;
|
|
35713
|
+
project?: WorkOrderProjectDto | null;
|
|
35714
|
+
sequenceNumber: number;
|
|
35715
|
+
isManuallyLocked: boolean;
|
|
35716
|
+
weekGroup: string;
|
|
35717
|
+
programStatus?: ProgramStatus | null;
|
|
35718
|
+
}
|
|
35719
|
+
|
|
35720
|
+
export type ProgramStatus = "Blank" | "NotOk" | "Ok";
|
|
35721
|
+
|
|
35722
|
+
export interface WeekCapacityDto {
|
|
35723
|
+
weekGroup: string;
|
|
35724
|
+
weekStart: Date;
|
|
35725
|
+
capacityHours: number;
|
|
35726
|
+
}
|
|
35727
|
+
|
|
35728
|
+
export interface PublishPlanRequest {
|
|
35729
|
+
/** ETag of the published plan the caller last read, used for optimistic
|
|
35730
|
+
concurrency. Null if the caller never observed a published plan. */
|
|
35731
|
+
publishedETag?: string | null;
|
|
35732
|
+
comment?: string | null;
|
|
35733
|
+
/** The caller's unsaved working sequence to publish. When null, the
|
|
35734
|
+
persisted active plan (draft, else published) is published instead. */
|
|
35735
|
+
sequence?: PlannerSequenceInput | null;
|
|
35736
|
+
}
|
|
35737
|
+
|
|
35738
|
+
export interface PlannerSequenceInput {
|
|
35739
|
+
orderedOperationKeys: string[];
|
|
35740
|
+
lockedCount: number;
|
|
35741
|
+
weekGroups?: { [key: string]: string; } | null;
|
|
35742
|
+
}
|
|
35743
|
+
|
|
35744
|
+
export interface PlannerPlanEventDto {
|
|
35745
|
+
id: string;
|
|
35746
|
+
eventType: PlannerEventType;
|
|
35747
|
+
occurredAt: Date;
|
|
35748
|
+
by?: string | null;
|
|
35749
|
+
comment?: string | null;
|
|
35750
|
+
operationCount: number;
|
|
35751
|
+
lockedCount: number;
|
|
35752
|
+
}
|
|
35753
|
+
|
|
35754
|
+
export type PlannerEventType = "Published" | "DraftSaved" | "ResetToErp";
|
|
35755
|
+
|
|
35756
|
+
export interface SetProgramStatus {
|
|
35757
|
+
workOrderId?: string;
|
|
35758
|
+
operationNumber?: number;
|
|
35759
|
+
status?: ProgramStatus;
|
|
35760
|
+
}
|
|
35761
|
+
|
|
35762
|
+
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
35763
|
+
|
|
35764
|
+
export interface WorkOrderAttachmentDto {
|
|
35765
|
+
createdBy?: UserDto | null;
|
|
35766
|
+
created?: Date | null;
|
|
35767
|
+
modifiedBy?: UserDto | null;
|
|
35768
|
+
modified?: Date | null;
|
|
35769
|
+
attachmentId?: number | null;
|
|
35770
|
+
name?: string | null;
|
|
35771
|
+
fileName?: string | null;
|
|
35772
|
+
notes?: string | null;
|
|
35773
|
+
attachmentType?: string | null;
|
|
35774
|
+
}
|
|
35775
|
+
|
|
35244
35776
|
export interface ProductionOrderListDto {
|
|
35245
35777
|
id: string;
|
|
35246
35778
|
companyId?: string | null;
|
|
@@ -35276,20 +35808,6 @@ export interface ListProductionOrdersRequest {
|
|
|
35276
35808
|
maxResults?: number | null;
|
|
35277
35809
|
}
|
|
35278
35810
|
|
|
35279
|
-
export type ProductionOrderAttachmentType = "Url" | "Note" | "Image" | "File";
|
|
35280
|
-
|
|
35281
|
-
export interface WorkOrderAttachmentDto {
|
|
35282
|
-
createdBy?: UserDto | null;
|
|
35283
|
-
created?: Date | null;
|
|
35284
|
-
modifiedBy?: UserDto | null;
|
|
35285
|
-
modified?: Date | null;
|
|
35286
|
-
attachmentId?: number | null;
|
|
35287
|
-
name?: string | null;
|
|
35288
|
-
fileName?: string | null;
|
|
35289
|
-
notes?: string | null;
|
|
35290
|
-
attachmentType?: string | null;
|
|
35291
|
-
}
|
|
35292
|
-
|
|
35293
35811
|
export interface ProductionOrderDto {
|
|
35294
35812
|
id: string;
|
|
35295
35813
|
companyId: string;
|
|
@@ -35566,6 +36084,7 @@ export interface ProductionScheduleOperationDto {
|
|
|
35566
36084
|
materialPickStatus: MaterialPickStatus;
|
|
35567
36085
|
productionStatus: OperationStatusDto;
|
|
35568
36086
|
setupStatus?: OperationStatusDto | null;
|
|
36087
|
+
programStatus?: ProgramStatus | null;
|
|
35569
36088
|
}
|
|
35570
36089
|
|
|
35571
36090
|
export interface SurroundingOperationDto {
|
|
@@ -38059,6 +38578,7 @@ export interface WorkorderDiscussionMessageDto {
|
|
|
38059
38578
|
operationName?: string | null;
|
|
38060
38579
|
resourceId?: string | null;
|
|
38061
38580
|
created?: Date;
|
|
38581
|
+
messageType?: DiscussionMessageType;
|
|
38062
38582
|
}
|
|
38063
38583
|
|
|
38064
38584
|
export interface WorkOrderDiscussionContent {
|
|
@@ -38068,11 +38588,14 @@ export interface WorkOrderDiscussionContent {
|
|
|
38068
38588
|
|
|
38069
38589
|
export type WorkOrderDiscussionContentType = 0 | 1;
|
|
38070
38590
|
|
|
38591
|
+
export type DiscussionMessageType = "Public" | "Planner";
|
|
38592
|
+
|
|
38071
38593
|
export interface AddDiscussionMessageRequest {
|
|
38072
38594
|
message: string;
|
|
38073
38595
|
operationId?: string | null;
|
|
38074
38596
|
operationName?: string | null;
|
|
38075
38597
|
resourceId?: string | null;
|
|
38598
|
+
messageType?: DiscussionMessageType;
|
|
38076
38599
|
}
|
|
38077
38600
|
|
|
38078
38601
|
export interface WorkorderDiscussionReadStatusDto {
|