@ignos/api-client 20240315.0.8969 → 20240318.0.8996
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 +19 -57
- package/lib/ignosportal-api.js +7 -89
- package/package.json +1 -1
- package/src/ignosportal-api.ts +30 -150
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -679,10 +679,10 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
679
679
|
protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
|
|
680
680
|
}
|
|
681
681
|
export interface ILinksClient {
|
|
682
|
-
getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
|
|
682
|
+
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
683
683
|
createLink(request: CreateLinkRequest): Promise<LinkDto>;
|
|
684
684
|
getAllLinkScopes(): Promise<string[]>;
|
|
685
|
-
deleteLink(id: string, scope: string | undefined): Promise<void>;
|
|
685
|
+
deleteLink(id: string, scope: string | null | undefined): Promise<void>;
|
|
686
686
|
}
|
|
687
687
|
export declare class LinksClient extends AuthorizedApiBase implements ILinksClient {
|
|
688
688
|
private http;
|
|
@@ -691,13 +691,13 @@ export declare class LinksClient extends AuthorizedApiBase implements ILinksClie
|
|
|
691
691
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
692
692
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
693
693
|
});
|
|
694
|
-
getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
|
|
694
|
+
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
695
695
|
protected processGetAllLinks(response: Response): Promise<LinkDto[]>;
|
|
696
696
|
createLink(request: CreateLinkRequest): Promise<LinkDto>;
|
|
697
697
|
protected processCreateLink(response: Response): Promise<LinkDto>;
|
|
698
698
|
getAllLinkScopes(): Promise<string[]>;
|
|
699
699
|
protected processGetAllLinkScopes(response: Response): Promise<string[]>;
|
|
700
|
-
deleteLink(id: string, scope: string | undefined): Promise<void>;
|
|
700
|
+
deleteLink(id: string, scope: string | null | undefined): Promise<void>;
|
|
701
701
|
protected processDeleteLink(response: Response): Promise<void>;
|
|
702
702
|
}
|
|
703
703
|
export interface IExternalServicesClient {
|
|
@@ -1395,8 +1395,8 @@ export interface IMesProductionScheduleClient {
|
|
|
1395
1395
|
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1396
1396
|
postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1397
1397
|
getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
|
|
1398
|
-
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto
|
|
1399
|
-
listMyCurrentWorkActivitiesV2(): Promise<
|
|
1398
|
+
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
1399
|
+
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
1400
1400
|
startOperations(request: StartOperations): Promise<void>;
|
|
1401
1401
|
reportOperationProgress(request: ReportOperationProgress): Promise<void>;
|
|
1402
1402
|
getScheduledWorkSummary(resourceGroup: string | null | undefined, resourceId: string | null | undefined): Promise<ScheduledWorkSummaryDto>;
|
|
@@ -1414,10 +1414,10 @@ export declare class MesProductionScheduleClient extends AuthorizedApiBase imple
|
|
|
1414
1414
|
protected processPostListProductionScheduleOperations(response: Response): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1415
1415
|
getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
|
|
1416
1416
|
protected processGetAvailableProductionScheduleFilters(response: Response): Promise<ProductionScheduleFiltersDto>;
|
|
1417
|
-
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto
|
|
1418
|
-
protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto
|
|
1419
|
-
listMyCurrentWorkActivitiesV2(): Promise<
|
|
1420
|
-
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<
|
|
1417
|
+
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
1418
|
+
protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto>;
|
|
1419
|
+
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
1420
|
+
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto>;
|
|
1421
1421
|
startOperations(request: StartOperations): Promise<void>;
|
|
1422
1422
|
protected processStartOperations(response: Response): Promise<void>;
|
|
1423
1423
|
reportOperationProgress(request: ReportOperationProgress): Promise<void>;
|
|
@@ -7225,7 +7225,6 @@ export declare class ProductionOrderDto implements IProductionOrderDto {
|
|
|
7225
7225
|
scrappedQuantity: number;
|
|
7226
7226
|
planner?: UserDto | null;
|
|
7227
7227
|
projectLeader?: UserDto | null;
|
|
7228
|
-
endLocation?: string | null;
|
|
7229
7228
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7230
7229
|
project?: WorkOrderProjectDto | null;
|
|
7231
7230
|
startDate?: Date | null;
|
|
@@ -7252,7 +7251,6 @@ export interface IProductionOrderDto {
|
|
|
7252
7251
|
scrappedQuantity: number;
|
|
7253
7252
|
planner?: UserDto | null;
|
|
7254
7253
|
projectLeader?: UserDto | null;
|
|
7255
|
-
endLocation?: string | null;
|
|
7256
7254
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7257
7255
|
project?: WorkOrderProjectDto | null;
|
|
7258
7256
|
startDate?: Date | null;
|
|
@@ -7262,9 +7260,9 @@ export interface IProductionOrderDto {
|
|
|
7262
7260
|
orderReference?: OrderReferenceDto | null;
|
|
7263
7261
|
}
|
|
7264
7262
|
export declare class ProductionOrderOperationDto implements IProductionOrderOperationDto {
|
|
7265
|
-
operation
|
|
7263
|
+
operation: number;
|
|
7266
7264
|
nextOperation?: number | null;
|
|
7267
|
-
operationId
|
|
7265
|
+
operationId: string;
|
|
7268
7266
|
description?: string;
|
|
7269
7267
|
totalPlannedHours?: number;
|
|
7270
7268
|
totalUsedHours?: number;
|
|
@@ -7284,6 +7282,7 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
7284
7282
|
quantity: number;
|
|
7285
7283
|
startedQuantity?: number | null;
|
|
7286
7284
|
ongoingQuantity?: number | null;
|
|
7285
|
+
availableToStartQuantity: number;
|
|
7287
7286
|
workInstructions?: string | null;
|
|
7288
7287
|
note?: string | null;
|
|
7289
7288
|
fixture?: string | null;
|
|
@@ -7296,9 +7295,9 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
7296
7295
|
toJSON(data?: any): any;
|
|
7297
7296
|
}
|
|
7298
7297
|
export interface IProductionOrderOperationDto {
|
|
7299
|
-
operation
|
|
7298
|
+
operation: number;
|
|
7300
7299
|
nextOperation?: number | null;
|
|
7301
|
-
operationId
|
|
7300
|
+
operationId: string;
|
|
7302
7301
|
description?: string;
|
|
7303
7302
|
totalPlannedHours?: number;
|
|
7304
7303
|
totalUsedHours?: number;
|
|
@@ -7318,6 +7317,7 @@ export interface IProductionOrderOperationDto {
|
|
|
7318
7317
|
quantity: number;
|
|
7319
7318
|
startedQuantity?: number | null;
|
|
7320
7319
|
ongoingQuantity?: number | null;
|
|
7320
|
+
availableToStartQuantity: number;
|
|
7321
7321
|
workInstructions?: string | null;
|
|
7322
7322
|
note?: string | null;
|
|
7323
7323
|
fixture?: string | null;
|
|
@@ -7651,7 +7651,6 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
7651
7651
|
program?: string | null;
|
|
7652
7652
|
toolNumber?: string | null;
|
|
7653
7653
|
prerequisites: OperationPrerequisitesDto;
|
|
7654
|
-
endLocation?: string | null;
|
|
7655
7654
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7656
7655
|
drawing?: DrawingDto | null;
|
|
7657
7656
|
drawingNumber?: string | null;
|
|
@@ -7702,7 +7701,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
7702
7701
|
program?: string | null;
|
|
7703
7702
|
toolNumber?: string | null;
|
|
7704
7703
|
prerequisites: OperationPrerequisitesDto;
|
|
7705
|
-
endLocation?: string | null;
|
|
7706
7704
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7707
7705
|
drawing?: DrawingDto | null;
|
|
7708
7706
|
drawingNumber?: string | null;
|
|
@@ -7920,49 +7918,14 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
7920
7918
|
before?: Date | null;
|
|
7921
7919
|
}
|
|
7922
7920
|
export declare class CurrentWorkActivityDto implements ICurrentWorkActivityDto {
|
|
7923
|
-
|
|
7924
|
-
|
|
7921
|
+
activeWork: ActiveWorkDto[];
|
|
7922
|
+
stoppedWork: StoppedWorkDto[];
|
|
7925
7923
|
constructor(data?: ICurrentWorkActivityDto);
|
|
7926
7924
|
init(_data?: any): void;
|
|
7927
7925
|
static fromJS(data: any): CurrentWorkActivityDto;
|
|
7928
7926
|
toJSON(data?: any): any;
|
|
7929
7927
|
}
|
|
7930
7928
|
export interface ICurrentWorkActivityDto {
|
|
7931
|
-
workActivity: WorkActivityDto;
|
|
7932
|
-
operation: ProductionScheduleOperationDto;
|
|
7933
|
-
}
|
|
7934
|
-
export declare class WorkActivityDto implements IWorkActivityDto {
|
|
7935
|
-
id: string;
|
|
7936
|
-
startTime: Date;
|
|
7937
|
-
endTime?: Date | null;
|
|
7938
|
-
user?: UserDto | null;
|
|
7939
|
-
personnelNumber: string;
|
|
7940
|
-
workType: WorkTypeDto;
|
|
7941
|
-
startedQuantity?: number | null;
|
|
7942
|
-
constructor(data?: IWorkActivityDto);
|
|
7943
|
-
init(_data?: any): void;
|
|
7944
|
-
static fromJS(data: any): WorkActivityDto;
|
|
7945
|
-
toJSON(data?: any): any;
|
|
7946
|
-
}
|
|
7947
|
-
export interface IWorkActivityDto {
|
|
7948
|
-
id: string;
|
|
7949
|
-
startTime: Date;
|
|
7950
|
-
endTime?: Date | null;
|
|
7951
|
-
user?: UserDto | null;
|
|
7952
|
-
personnelNumber: string;
|
|
7953
|
-
workType: WorkTypeDto;
|
|
7954
|
-
startedQuantity?: number | null;
|
|
7955
|
-
}
|
|
7956
|
-
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
7957
|
-
export declare class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
7958
|
-
activeWork: ActiveWorkDto[];
|
|
7959
|
-
stoppedWork: StoppedWorkDto[];
|
|
7960
|
-
constructor(data?: ICurrentWorkActivityV2Dto);
|
|
7961
|
-
init(_data?: any): void;
|
|
7962
|
-
static fromJS(data: any): CurrentWorkActivityV2Dto;
|
|
7963
|
-
toJSON(data?: any): any;
|
|
7964
|
-
}
|
|
7965
|
-
export interface ICurrentWorkActivityV2Dto {
|
|
7966
7929
|
activeWork: ActiveWorkDto[];
|
|
7967
7930
|
stoppedWork: StoppedWorkDto[];
|
|
7968
7931
|
}
|
|
@@ -8002,6 +7965,7 @@ export interface ICurrentWorkDto {
|
|
|
8002
7965
|
startedQuantity?: number | null;
|
|
8003
7966
|
workType: WorkTypeDto;
|
|
8004
7967
|
}
|
|
7968
|
+
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
8005
7969
|
export declare class StoppedWorkDto implements IStoppedWorkDto {
|
|
8006
7970
|
operation: ProductionScheduleOperationDto;
|
|
8007
7971
|
lastWorkActivity: CurrentWorkDto;
|
|
@@ -10586,7 +10550,6 @@ export declare class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
10586
10550
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
10587
10551
|
planner?: UserDto | null;
|
|
10588
10552
|
projectLeader?: UserDto | null;
|
|
10589
|
-
endLocation?: string | null;
|
|
10590
10553
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
10591
10554
|
project?: WorkOrderProjectDto | null;
|
|
10592
10555
|
startDate?: Date | null;
|
|
@@ -10613,7 +10576,6 @@ export interface IUpsertWorkorderV2 {
|
|
|
10613
10576
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
10614
10577
|
planner?: UserDto | null;
|
|
10615
10578
|
projectLeader?: UserDto | null;
|
|
10616
|
-
endLocation?: string | null;
|
|
10617
10579
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
10618
10580
|
project?: WorkOrderProjectDto | null;
|
|
10619
10581
|
startDate?: Date | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -5260,9 +5260,7 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
getAllLinks(scope) {
|
|
5262
5262
|
let url_ = this.baseUrl + "/links?";
|
|
5263
|
-
if (scope
|
|
5264
|
-
throw new Error("The parameter 'scope' cannot be null.");
|
|
5265
|
-
else if (scope !== undefined)
|
|
5263
|
+
if (scope !== undefined && scope !== null)
|
|
5266
5264
|
url_ += "scope=" + encodeURIComponent("" + scope) + "&";
|
|
5267
5265
|
url_ = url_.replace(/[?&]$/, "");
|
|
5268
5266
|
let options_ = {
|
|
@@ -5389,9 +5387,7 @@ export class LinksClient extends AuthorizedApiBase {
|
|
|
5389
5387
|
if (id === undefined || id === null)
|
|
5390
5388
|
throw new Error("The parameter 'id' must be defined.");
|
|
5391
5389
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5392
|
-
if (scope
|
|
5393
|
-
throw new Error("The parameter 'scope' cannot be null.");
|
|
5394
|
-
else if (scope !== undefined)
|
|
5390
|
+
if (scope !== undefined && scope !== null)
|
|
5395
5391
|
url_ += "scope=" + encodeURIComponent("" + scope) + "&";
|
|
5396
5392
|
url_ = url_.replace(/[?&]$/, "");
|
|
5397
5393
|
let options_ = {
|
|
@@ -11469,11 +11465,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
11469
11465
|
return response.text().then((_responseText) => {
|
|
11470
11466
|
let result200 = null;
|
|
11471
11467
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11472
|
-
|
|
11473
|
-
result200 = [];
|
|
11474
|
-
for (let item of resultData200)
|
|
11475
|
-
result200.push(CurrentWorkActivityDto.fromJS(item));
|
|
11476
|
-
}
|
|
11468
|
+
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
11477
11469
|
return result200;
|
|
11478
11470
|
});
|
|
11479
11471
|
}
|
|
@@ -11510,7 +11502,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
11510
11502
|
return response.text().then((_responseText) => {
|
|
11511
11503
|
let result200 = null;
|
|
11512
11504
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11513
|
-
result200 =
|
|
11505
|
+
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
11514
11506
|
return result200;
|
|
11515
11507
|
});
|
|
11516
11508
|
}
|
|
@@ -27473,7 +27465,6 @@ export class ProductionOrderDto {
|
|
|
27473
27465
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
27474
27466
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
27475
27467
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
|
|
27476
|
-
this.endLocation = _data["endLocation"];
|
|
27477
27468
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
27478
27469
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
27479
27470
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
@@ -27508,7 +27499,6 @@ export class ProductionOrderDto {
|
|
|
27508
27499
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
27509
27500
|
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
27510
27501
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
|
|
27511
|
-
data["endLocation"] = this.endLocation;
|
|
27512
27502
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
27513
27503
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
27514
27504
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
|
|
@@ -27552,6 +27542,7 @@ export class ProductionOrderOperationDto {
|
|
|
27552
27542
|
this.quantity = _data["quantity"];
|
|
27553
27543
|
this.startedQuantity = _data["startedQuantity"];
|
|
27554
27544
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
27545
|
+
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
27555
27546
|
this.workInstructions = _data["workInstructions"];
|
|
27556
27547
|
this.note = _data["note"];
|
|
27557
27548
|
this.fixture = _data["fixture"];
|
|
@@ -27590,6 +27581,7 @@ export class ProductionOrderOperationDto {
|
|
|
27590
27581
|
data["quantity"] = this.quantity;
|
|
27591
27582
|
data["startedQuantity"] = this.startedQuantity;
|
|
27592
27583
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
27584
|
+
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
27593
27585
|
data["workInstructions"] = this.workInstructions;
|
|
27594
27586
|
data["note"] = this.note;
|
|
27595
27587
|
data["fixture"] = this.fixture;
|
|
@@ -28220,7 +28212,6 @@ export class ProductionScheduleOperationDto {
|
|
|
28220
28212
|
this.program = _data["program"];
|
|
28221
28213
|
this.toolNumber = _data["toolNumber"];
|
|
28222
28214
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
28223
|
-
this.endLocation = _data["endLocation"];
|
|
28224
28215
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
28225
28216
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
|
|
28226
28217
|
this.drawingNumber = _data["drawingNumber"];
|
|
@@ -28275,7 +28266,6 @@ export class ProductionScheduleOperationDto {
|
|
|
28275
28266
|
data["program"] = this.program;
|
|
28276
28267
|
data["toolNumber"] = this.toolNumber;
|
|
28277
28268
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : undefined;
|
|
28278
|
-
data["endLocation"] = this.endLocation;
|
|
28279
28269
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
28280
28270
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
|
|
28281
28271
|
data["drawingNumber"] = this.drawingNumber;
|
|
@@ -28813,76 +28803,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
28813
28803
|
}
|
|
28814
28804
|
}
|
|
28815
28805
|
export class CurrentWorkActivityDto {
|
|
28816
|
-
constructor(data) {
|
|
28817
|
-
if (data) {
|
|
28818
|
-
for (var property in data) {
|
|
28819
|
-
if (data.hasOwnProperty(property))
|
|
28820
|
-
this[property] = data[property];
|
|
28821
|
-
}
|
|
28822
|
-
}
|
|
28823
|
-
if (!data) {
|
|
28824
|
-
this.workActivity = new WorkActivityDto();
|
|
28825
|
-
this.operation = new ProductionScheduleOperationDto();
|
|
28826
|
-
}
|
|
28827
|
-
}
|
|
28828
|
-
init(_data) {
|
|
28829
|
-
if (_data) {
|
|
28830
|
-
this.workActivity = _data["workActivity"] ? WorkActivityDto.fromJS(_data["workActivity"]) : new WorkActivityDto();
|
|
28831
|
-
this.operation = _data["operation"] ? ProductionScheduleOperationDto.fromJS(_data["operation"]) : new ProductionScheduleOperationDto();
|
|
28832
|
-
}
|
|
28833
|
-
}
|
|
28834
|
-
static fromJS(data) {
|
|
28835
|
-
data = typeof data === 'object' ? data : {};
|
|
28836
|
-
let result = new CurrentWorkActivityDto();
|
|
28837
|
-
result.init(data);
|
|
28838
|
-
return result;
|
|
28839
|
-
}
|
|
28840
|
-
toJSON(data) {
|
|
28841
|
-
data = typeof data === 'object' ? data : {};
|
|
28842
|
-
data["workActivity"] = this.workActivity ? this.workActivity.toJSON() : undefined;
|
|
28843
|
-
data["operation"] = this.operation ? this.operation.toJSON() : undefined;
|
|
28844
|
-
return data;
|
|
28845
|
-
}
|
|
28846
|
-
}
|
|
28847
|
-
export class WorkActivityDto {
|
|
28848
|
-
constructor(data) {
|
|
28849
|
-
if (data) {
|
|
28850
|
-
for (var property in data) {
|
|
28851
|
-
if (data.hasOwnProperty(property))
|
|
28852
|
-
this[property] = data[property];
|
|
28853
|
-
}
|
|
28854
|
-
}
|
|
28855
|
-
}
|
|
28856
|
-
init(_data) {
|
|
28857
|
-
if (_data) {
|
|
28858
|
-
this.id = _data["id"];
|
|
28859
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
28860
|
-
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
28861
|
-
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
|
|
28862
|
-
this.personnelNumber = _data["personnelNumber"];
|
|
28863
|
-
this.workType = _data["workType"];
|
|
28864
|
-
this.startedQuantity = _data["startedQuantity"];
|
|
28865
|
-
}
|
|
28866
|
-
}
|
|
28867
|
-
static fromJS(data) {
|
|
28868
|
-
data = typeof data === 'object' ? data : {};
|
|
28869
|
-
let result = new WorkActivityDto();
|
|
28870
|
-
result.init(data);
|
|
28871
|
-
return result;
|
|
28872
|
-
}
|
|
28873
|
-
toJSON(data) {
|
|
28874
|
-
data = typeof data === 'object' ? data : {};
|
|
28875
|
-
data["id"] = this.id;
|
|
28876
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
28877
|
-
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
28878
|
-
data["user"] = this.user ? this.user.toJSON() : undefined;
|
|
28879
|
-
data["personnelNumber"] = this.personnelNumber;
|
|
28880
|
-
data["workType"] = this.workType;
|
|
28881
|
-
data["startedQuantity"] = this.startedQuantity;
|
|
28882
|
-
return data;
|
|
28883
|
-
}
|
|
28884
|
-
}
|
|
28885
|
-
export class CurrentWorkActivityV2Dto {
|
|
28886
28806
|
constructor(data) {
|
|
28887
28807
|
if (data) {
|
|
28888
28808
|
for (var property in data) {
|
|
@@ -28911,7 +28831,7 @@ export class CurrentWorkActivityV2Dto {
|
|
|
28911
28831
|
}
|
|
28912
28832
|
static fromJS(data) {
|
|
28913
28833
|
data = typeof data === 'object' ? data : {};
|
|
28914
|
-
let result = new
|
|
28834
|
+
let result = new CurrentWorkActivityDto();
|
|
28915
28835
|
result.init(data);
|
|
28916
28836
|
return result;
|
|
28917
28837
|
}
|
|
@@ -34104,7 +34024,6 @@ export class UpsertWorkorderV2 {
|
|
|
34104
34024
|
this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : undefined;
|
|
34105
34025
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
34106
34026
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
|
|
34107
|
-
this.endLocation = _data["endLocation"];
|
|
34108
34027
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
34109
34028
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
34110
34029
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
@@ -34139,7 +34058,6 @@ export class UpsertWorkorderV2 {
|
|
|
34139
34058
|
data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : undefined;
|
|
34140
34059
|
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
34141
34060
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
|
|
34142
|
-
data["endLocation"] = this.endLocation;
|
|
34143
34061
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
34144
34062
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
34145
34063
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -5621,13 +5621,13 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
5621
5621
|
|
|
5622
5622
|
export interface ILinksClient {
|
|
5623
5623
|
|
|
5624
|
-
getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
|
|
5624
|
+
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
5625
5625
|
|
|
5626
5626
|
createLink(request: CreateLinkRequest): Promise<LinkDto>;
|
|
5627
5627
|
|
|
5628
5628
|
getAllLinkScopes(): Promise<string[]>;
|
|
5629
5629
|
|
|
5630
|
-
deleteLink(id: string, scope: string | undefined): Promise<void>;
|
|
5630
|
+
deleteLink(id: string, scope: string | null | undefined): Promise<void>;
|
|
5631
5631
|
}
|
|
5632
5632
|
|
|
5633
5633
|
export class LinksClient extends AuthorizedApiBase implements ILinksClient {
|
|
@@ -5641,11 +5641,9 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
|
|
|
5641
5641
|
this.baseUrl = baseUrl ?? "";
|
|
5642
5642
|
}
|
|
5643
5643
|
|
|
5644
|
-
getAllLinks(scope: string | undefined): Promise<LinkDto[]> {
|
|
5644
|
+
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]> {
|
|
5645
5645
|
let url_ = this.baseUrl + "/links?";
|
|
5646
|
-
if (scope
|
|
5647
|
-
throw new Error("The parameter 'scope' cannot be null.");
|
|
5648
|
-
else if (scope !== undefined)
|
|
5646
|
+
if (scope !== undefined && scope !== null)
|
|
5649
5647
|
url_ += "scope=" + encodeURIComponent("" + scope) + "&";
|
|
5650
5648
|
url_ = url_.replace(/[?&]$/, "");
|
|
5651
5649
|
|
|
@@ -5765,14 +5763,12 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
|
|
|
5765
5763
|
return Promise.resolve<string[]>(null as any);
|
|
5766
5764
|
}
|
|
5767
5765
|
|
|
5768
|
-
deleteLink(id: string, scope: string | undefined): Promise<void> {
|
|
5766
|
+
deleteLink(id: string, scope: string | null | undefined): Promise<void> {
|
|
5769
5767
|
let url_ = this.baseUrl + "/links/{id}?";
|
|
5770
5768
|
if (id === undefined || id === null)
|
|
5771
5769
|
throw new Error("The parameter 'id' must be defined.");
|
|
5772
5770
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
5773
|
-
if (scope
|
|
5774
|
-
throw new Error("The parameter 'scope' cannot be null.");
|
|
5775
|
-
else if (scope !== undefined)
|
|
5771
|
+
if (scope !== undefined && scope !== null)
|
|
5776
5772
|
url_ += "scope=" + encodeURIComponent("" + scope) + "&";
|
|
5777
5773
|
url_ = url_.replace(/[?&]$/, "");
|
|
5778
5774
|
|
|
@@ -12082,9 +12078,9 @@ export interface IMesProductionScheduleClient {
|
|
|
12082
12078
|
|
|
12083
12079
|
getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
|
|
12084
12080
|
|
|
12085
|
-
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto
|
|
12081
|
+
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
12086
12082
|
|
|
12087
|
-
listMyCurrentWorkActivitiesV2(): Promise<
|
|
12083
|
+
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
|
|
12088
12084
|
|
|
12089
12085
|
startOperations(request: StartOperations): Promise<void>;
|
|
12090
12086
|
|
|
@@ -12240,7 +12236,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
12240
12236
|
return Promise.resolve<ProductionScheduleFiltersDto>(null as any);
|
|
12241
12237
|
}
|
|
12242
12238
|
|
|
12243
|
-
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto
|
|
12239
|
+
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto> {
|
|
12244
12240
|
let url_ = this.baseUrl + "/mes/myactivework";
|
|
12245
12241
|
url_ = url_.replace(/[?&]$/, "");
|
|
12246
12242
|
|
|
@@ -12258,18 +12254,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
12258
12254
|
});
|
|
12259
12255
|
}
|
|
12260
12256
|
|
|
12261
|
-
protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto
|
|
12257
|
+
protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto> {
|
|
12262
12258
|
const status = response.status;
|
|
12263
12259
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12264
12260
|
if (status === 200) {
|
|
12265
12261
|
return response.text().then((_responseText) => {
|
|
12266
12262
|
let result200: any = null;
|
|
12267
12263
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12268
|
-
|
|
12269
|
-
result200 = [] as any;
|
|
12270
|
-
for (let item of resultData200)
|
|
12271
|
-
result200!.push(CurrentWorkActivityDto.fromJS(item));
|
|
12272
|
-
}
|
|
12264
|
+
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
12273
12265
|
return result200;
|
|
12274
12266
|
});
|
|
12275
12267
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12277,10 +12269,10 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
12277
12269
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12278
12270
|
});
|
|
12279
12271
|
}
|
|
12280
|
-
return Promise.resolve<CurrentWorkActivityDto
|
|
12272
|
+
return Promise.resolve<CurrentWorkActivityDto>(null as any);
|
|
12281
12273
|
}
|
|
12282
12274
|
|
|
12283
|
-
listMyCurrentWorkActivitiesV2(): Promise<
|
|
12275
|
+
listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto> {
|
|
12284
12276
|
let url_ = this.baseUrl + "/mes/myactivework/v2";
|
|
12285
12277
|
url_ = url_.replace(/[?&]$/, "");
|
|
12286
12278
|
|
|
@@ -12298,14 +12290,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
12298
12290
|
});
|
|
12299
12291
|
}
|
|
12300
12292
|
|
|
12301
|
-
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<
|
|
12293
|
+
protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto> {
|
|
12302
12294
|
const status = response.status;
|
|
12303
12295
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12304
12296
|
if (status === 200) {
|
|
12305
12297
|
return response.text().then((_responseText) => {
|
|
12306
12298
|
let result200: any = null;
|
|
12307
12299
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12308
|
-
result200 =
|
|
12300
|
+
result200 = CurrentWorkActivityDto.fromJS(resultData200);
|
|
12309
12301
|
return result200;
|
|
12310
12302
|
});
|
|
12311
12303
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12313,7 +12305,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
12313
12305
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12314
12306
|
});
|
|
12315
12307
|
}
|
|
12316
|
-
return Promise.resolve<
|
|
12308
|
+
return Promise.resolve<CurrentWorkActivityDto>(null as any);
|
|
12317
12309
|
}
|
|
12318
12310
|
|
|
12319
12311
|
startOperations(request: StartOperations): Promise<void> {
|
|
@@ -33760,7 +33752,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33760
33752
|
scrappedQuantity!: number;
|
|
33761
33753
|
planner?: UserDto | null;
|
|
33762
33754
|
projectLeader?: UserDto | null;
|
|
33763
|
-
endLocation?: string | null;
|
|
33764
33755
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
33765
33756
|
project?: WorkOrderProjectDto | null;
|
|
33766
33757
|
startDate?: Date | null;
|
|
@@ -33801,7 +33792,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33801
33792
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
33802
33793
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
33803
33794
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
|
|
33804
|
-
this.endLocation = _data["endLocation"];
|
|
33805
33795
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
33806
33796
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
33807
33797
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
|
|
@@ -33838,7 +33828,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33838
33828
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
33839
33829
|
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
33840
33830
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
|
|
33841
|
-
data["endLocation"] = this.endLocation;
|
|
33842
33831
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
33843
33832
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
33844
33833
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
|
|
@@ -33864,7 +33853,6 @@ export interface IProductionOrderDto {
|
|
|
33864
33853
|
scrappedQuantity: number;
|
|
33865
33854
|
planner?: UserDto | null;
|
|
33866
33855
|
projectLeader?: UserDto | null;
|
|
33867
|
-
endLocation?: string | null;
|
|
33868
33856
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
33869
33857
|
project?: WorkOrderProjectDto | null;
|
|
33870
33858
|
startDate?: Date | null;
|
|
@@ -33875,9 +33863,9 @@ export interface IProductionOrderDto {
|
|
|
33875
33863
|
}
|
|
33876
33864
|
|
|
33877
33865
|
export class ProductionOrderOperationDto implements IProductionOrderOperationDto {
|
|
33878
|
-
operation
|
|
33866
|
+
operation!: number;
|
|
33879
33867
|
nextOperation?: number | null;
|
|
33880
|
-
operationId
|
|
33868
|
+
operationId!: string;
|
|
33881
33869
|
description?: string;
|
|
33882
33870
|
totalPlannedHours?: number;
|
|
33883
33871
|
totalUsedHours?: number;
|
|
@@ -33897,6 +33885,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
33897
33885
|
quantity!: number;
|
|
33898
33886
|
startedQuantity?: number | null;
|
|
33899
33887
|
ongoingQuantity?: number | null;
|
|
33888
|
+
availableToStartQuantity!: number;
|
|
33900
33889
|
workInstructions?: string | null;
|
|
33901
33890
|
note?: string | null;
|
|
33902
33891
|
fixture?: string | null;
|
|
@@ -33937,6 +33926,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
33937
33926
|
this.quantity = _data["quantity"];
|
|
33938
33927
|
this.startedQuantity = _data["startedQuantity"];
|
|
33939
33928
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
33929
|
+
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
33940
33930
|
this.workInstructions = _data["workInstructions"];
|
|
33941
33931
|
this.note = _data["note"];
|
|
33942
33932
|
this.fixture = _data["fixture"];
|
|
@@ -33977,6 +33967,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
33977
33967
|
data["quantity"] = this.quantity;
|
|
33978
33968
|
data["startedQuantity"] = this.startedQuantity;
|
|
33979
33969
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
33970
|
+
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
33980
33971
|
data["workInstructions"] = this.workInstructions;
|
|
33981
33972
|
data["note"] = this.note;
|
|
33982
33973
|
data["fixture"] = this.fixture;
|
|
@@ -33988,9 +33979,9 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
33988
33979
|
}
|
|
33989
33980
|
|
|
33990
33981
|
export interface IProductionOrderOperationDto {
|
|
33991
|
-
operation
|
|
33982
|
+
operation: number;
|
|
33992
33983
|
nextOperation?: number | null;
|
|
33993
|
-
operationId
|
|
33984
|
+
operationId: string;
|
|
33994
33985
|
description?: string;
|
|
33995
33986
|
totalPlannedHours?: number;
|
|
33996
33987
|
totalUsedHours?: number;
|
|
@@ -34010,6 +34001,7 @@ export interface IProductionOrderOperationDto {
|
|
|
34010
34001
|
quantity: number;
|
|
34011
34002
|
startedQuantity?: number | null;
|
|
34012
34003
|
ongoingQuantity?: number | null;
|
|
34004
|
+
availableToStartQuantity: number;
|
|
34013
34005
|
workInstructions?: string | null;
|
|
34014
34006
|
note?: string | null;
|
|
34015
34007
|
fixture?: string | null;
|
|
@@ -34914,7 +34906,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34914
34906
|
program?: string | null;
|
|
34915
34907
|
toolNumber?: string | null;
|
|
34916
34908
|
prerequisites!: OperationPrerequisitesDto;
|
|
34917
|
-
endLocation?: string | null;
|
|
34918
34909
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
34919
34910
|
drawing?: DrawingDto | null;
|
|
34920
34911
|
drawingNumber?: string | null;
|
|
@@ -34974,7 +34965,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34974
34965
|
this.program = _data["program"];
|
|
34975
34966
|
this.toolNumber = _data["toolNumber"];
|
|
34976
34967
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
34977
|
-
this.endLocation = _data["endLocation"];
|
|
34978
34968
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
34979
34969
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
|
|
34980
34970
|
this.drawingNumber = _data["drawingNumber"];
|
|
@@ -35031,7 +35021,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
35031
35021
|
data["program"] = this.program;
|
|
35032
35022
|
data["toolNumber"] = this.toolNumber;
|
|
35033
35023
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : <any>undefined;
|
|
35034
|
-
data["endLocation"] = this.endLocation;
|
|
35035
35024
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
35036
35025
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
|
|
35037
35026
|
data["drawingNumber"] = this.drawingNumber;
|
|
@@ -35081,7 +35070,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
35081
35070
|
program?: string | null;
|
|
35082
35071
|
toolNumber?: string | null;
|
|
35083
35072
|
prerequisites: OperationPrerequisitesDto;
|
|
35084
|
-
endLocation?: string | null;
|
|
35085
35073
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
35086
35074
|
drawing?: DrawingDto | null;
|
|
35087
35075
|
drawingNumber?: string | null;
|
|
@@ -35830,116 +35818,10 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
35830
35818
|
}
|
|
35831
35819
|
|
|
35832
35820
|
export class CurrentWorkActivityDto implements ICurrentWorkActivityDto {
|
|
35833
|
-
workActivity!: WorkActivityDto;
|
|
35834
|
-
operation!: ProductionScheduleOperationDto;
|
|
35835
|
-
|
|
35836
|
-
constructor(data?: ICurrentWorkActivityDto) {
|
|
35837
|
-
if (data) {
|
|
35838
|
-
for (var property in data) {
|
|
35839
|
-
if (data.hasOwnProperty(property))
|
|
35840
|
-
(<any>this)[property] = (<any>data)[property];
|
|
35841
|
-
}
|
|
35842
|
-
}
|
|
35843
|
-
if (!data) {
|
|
35844
|
-
this.workActivity = new WorkActivityDto();
|
|
35845
|
-
this.operation = new ProductionScheduleOperationDto();
|
|
35846
|
-
}
|
|
35847
|
-
}
|
|
35848
|
-
|
|
35849
|
-
init(_data?: any) {
|
|
35850
|
-
if (_data) {
|
|
35851
|
-
this.workActivity = _data["workActivity"] ? WorkActivityDto.fromJS(_data["workActivity"]) : new WorkActivityDto();
|
|
35852
|
-
this.operation = _data["operation"] ? ProductionScheduleOperationDto.fromJS(_data["operation"]) : new ProductionScheduleOperationDto();
|
|
35853
|
-
}
|
|
35854
|
-
}
|
|
35855
|
-
|
|
35856
|
-
static fromJS(data: any): CurrentWorkActivityDto {
|
|
35857
|
-
data = typeof data === 'object' ? data : {};
|
|
35858
|
-
let result = new CurrentWorkActivityDto();
|
|
35859
|
-
result.init(data);
|
|
35860
|
-
return result;
|
|
35861
|
-
}
|
|
35862
|
-
|
|
35863
|
-
toJSON(data?: any) {
|
|
35864
|
-
data = typeof data === 'object' ? data : {};
|
|
35865
|
-
data["workActivity"] = this.workActivity ? this.workActivity.toJSON() : <any>undefined;
|
|
35866
|
-
data["operation"] = this.operation ? this.operation.toJSON() : <any>undefined;
|
|
35867
|
-
return data;
|
|
35868
|
-
}
|
|
35869
|
-
}
|
|
35870
|
-
|
|
35871
|
-
export interface ICurrentWorkActivityDto {
|
|
35872
|
-
workActivity: WorkActivityDto;
|
|
35873
|
-
operation: ProductionScheduleOperationDto;
|
|
35874
|
-
}
|
|
35875
|
-
|
|
35876
|
-
export class WorkActivityDto implements IWorkActivityDto {
|
|
35877
|
-
id!: string;
|
|
35878
|
-
startTime!: Date;
|
|
35879
|
-
endTime?: Date | null;
|
|
35880
|
-
user?: UserDto | null;
|
|
35881
|
-
personnelNumber!: string;
|
|
35882
|
-
workType!: WorkTypeDto;
|
|
35883
|
-
startedQuantity?: number | null;
|
|
35884
|
-
|
|
35885
|
-
constructor(data?: IWorkActivityDto) {
|
|
35886
|
-
if (data) {
|
|
35887
|
-
for (var property in data) {
|
|
35888
|
-
if (data.hasOwnProperty(property))
|
|
35889
|
-
(<any>this)[property] = (<any>data)[property];
|
|
35890
|
-
}
|
|
35891
|
-
}
|
|
35892
|
-
}
|
|
35893
|
-
|
|
35894
|
-
init(_data?: any) {
|
|
35895
|
-
if (_data) {
|
|
35896
|
-
this.id = _data["id"];
|
|
35897
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
35898
|
-
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
35899
|
-
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : <any>undefined;
|
|
35900
|
-
this.personnelNumber = _data["personnelNumber"];
|
|
35901
|
-
this.workType = _data["workType"];
|
|
35902
|
-
this.startedQuantity = _data["startedQuantity"];
|
|
35903
|
-
}
|
|
35904
|
-
}
|
|
35905
|
-
|
|
35906
|
-
static fromJS(data: any): WorkActivityDto {
|
|
35907
|
-
data = typeof data === 'object' ? data : {};
|
|
35908
|
-
let result = new WorkActivityDto();
|
|
35909
|
-
result.init(data);
|
|
35910
|
-
return result;
|
|
35911
|
-
}
|
|
35912
|
-
|
|
35913
|
-
toJSON(data?: any) {
|
|
35914
|
-
data = typeof data === 'object' ? data : {};
|
|
35915
|
-
data["id"] = this.id;
|
|
35916
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
35917
|
-
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
35918
|
-
data["user"] = this.user ? this.user.toJSON() : <any>undefined;
|
|
35919
|
-
data["personnelNumber"] = this.personnelNumber;
|
|
35920
|
-
data["workType"] = this.workType;
|
|
35921
|
-
data["startedQuantity"] = this.startedQuantity;
|
|
35922
|
-
return data;
|
|
35923
|
-
}
|
|
35924
|
-
}
|
|
35925
|
-
|
|
35926
|
-
export interface IWorkActivityDto {
|
|
35927
|
-
id: string;
|
|
35928
|
-
startTime: Date;
|
|
35929
|
-
endTime?: Date | null;
|
|
35930
|
-
user?: UserDto | null;
|
|
35931
|
-
personnelNumber: string;
|
|
35932
|
-
workType: WorkTypeDto;
|
|
35933
|
-
startedQuantity?: number | null;
|
|
35934
|
-
}
|
|
35935
|
-
|
|
35936
|
-
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
35937
|
-
|
|
35938
|
-
export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
35939
35821
|
activeWork!: ActiveWorkDto[];
|
|
35940
35822
|
stoppedWork!: StoppedWorkDto[];
|
|
35941
35823
|
|
|
35942
|
-
constructor(data?:
|
|
35824
|
+
constructor(data?: ICurrentWorkActivityDto) {
|
|
35943
35825
|
if (data) {
|
|
35944
35826
|
for (var property in data) {
|
|
35945
35827
|
if (data.hasOwnProperty(property))
|
|
@@ -35967,9 +35849,9 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
|
35967
35849
|
}
|
|
35968
35850
|
}
|
|
35969
35851
|
|
|
35970
|
-
static fromJS(data: any):
|
|
35852
|
+
static fromJS(data: any): CurrentWorkActivityDto {
|
|
35971
35853
|
data = typeof data === 'object' ? data : {};
|
|
35972
|
-
let result = new
|
|
35854
|
+
let result = new CurrentWorkActivityDto();
|
|
35973
35855
|
result.init(data);
|
|
35974
35856
|
return result;
|
|
35975
35857
|
}
|
|
@@ -35990,7 +35872,7 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
|
35990
35872
|
}
|
|
35991
35873
|
}
|
|
35992
35874
|
|
|
35993
|
-
export interface
|
|
35875
|
+
export interface ICurrentWorkActivityDto {
|
|
35994
35876
|
activeWork: ActiveWorkDto[];
|
|
35995
35877
|
stoppedWork: StoppedWorkDto[];
|
|
35996
35878
|
}
|
|
@@ -36103,6 +35985,8 @@ export interface ICurrentWorkDto {
|
|
|
36103
35985
|
workType: WorkTypeDto;
|
|
36104
35986
|
}
|
|
36105
35987
|
|
|
35988
|
+
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
35989
|
+
|
|
36106
35990
|
export class StoppedWorkDto implements IStoppedWorkDto {
|
|
36107
35991
|
operation!: ProductionScheduleOperationDto;
|
|
36108
35992
|
lastWorkActivity!: CurrentWorkDto;
|
|
@@ -43767,7 +43651,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43767
43651
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
43768
43652
|
planner?: UserDto | null;
|
|
43769
43653
|
projectLeader?: UserDto | null;
|
|
43770
|
-
endLocation?: string | null;
|
|
43771
43654
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
43772
43655
|
project?: WorkOrderProjectDto | null;
|
|
43773
43656
|
startDate?: Date | null;
|
|
@@ -43808,7 +43691,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43808
43691
|
this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : <any>undefined;
|
|
43809
43692
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
43810
43693
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
|
|
43811
|
-
this.endLocation = _data["endLocation"];
|
|
43812
43694
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
43813
43695
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
43814
43696
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
|
|
@@ -43845,7 +43727,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43845
43727
|
data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : <any>undefined;
|
|
43846
43728
|
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
43847
43729
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
|
|
43848
|
-
data["endLocation"] = this.endLocation;
|
|
43849
43730
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
43850
43731
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
43851
43732
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
|
|
@@ -43871,7 +43752,6 @@ export interface IUpsertWorkorderV2 {
|
|
|
43871
43752
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
43872
43753
|
planner?: UserDto | null;
|
|
43873
43754
|
projectLeader?: UserDto | null;
|
|
43874
|
-
endLocation?: string | null;
|
|
43875
43755
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
43876
43756
|
project?: WorkOrderProjectDto | null;
|
|
43877
43757
|
startDate?: Date | null;
|