@ignos/api-client 20240315.0.8969 → 20240318.0.8990
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 +13 -53
- package/lib/ignosportal-api.js +5 -89
- package/package.json +1 -1
- package/src/ignosportal-api.ts +22 -146
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;
|
|
@@ -7651,7 +7649,6 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
7651
7649
|
program?: string | null;
|
|
7652
7650
|
toolNumber?: string | null;
|
|
7653
7651
|
prerequisites: OperationPrerequisitesDto;
|
|
7654
|
-
endLocation?: string | null;
|
|
7655
7652
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7656
7653
|
drawing?: DrawingDto | null;
|
|
7657
7654
|
drawingNumber?: string | null;
|
|
@@ -7702,7 +7699,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
7702
7699
|
program?: string | null;
|
|
7703
7700
|
toolNumber?: string | null;
|
|
7704
7701
|
prerequisites: OperationPrerequisitesDto;
|
|
7705
|
-
endLocation?: string | null;
|
|
7706
7702
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
7707
7703
|
drawing?: DrawingDto | null;
|
|
7708
7704
|
drawingNumber?: string | null;
|
|
@@ -7920,49 +7916,14 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
7920
7916
|
before?: Date | null;
|
|
7921
7917
|
}
|
|
7922
7918
|
export declare class CurrentWorkActivityDto implements ICurrentWorkActivityDto {
|
|
7923
|
-
|
|
7924
|
-
|
|
7919
|
+
activeWork: ActiveWorkDto[];
|
|
7920
|
+
stoppedWork: StoppedWorkDto[];
|
|
7925
7921
|
constructor(data?: ICurrentWorkActivityDto);
|
|
7926
7922
|
init(_data?: any): void;
|
|
7927
7923
|
static fromJS(data: any): CurrentWorkActivityDto;
|
|
7928
7924
|
toJSON(data?: any): any;
|
|
7929
7925
|
}
|
|
7930
7926
|
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
7927
|
activeWork: ActiveWorkDto[];
|
|
7967
7928
|
stoppedWork: StoppedWorkDto[];
|
|
7968
7929
|
}
|
|
@@ -8002,6 +7963,7 @@ export interface ICurrentWorkDto {
|
|
|
8002
7963
|
startedQuantity?: number | null;
|
|
8003
7964
|
workType: WorkTypeDto;
|
|
8004
7965
|
}
|
|
7966
|
+
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
8005
7967
|
export declare class StoppedWorkDto implements IStoppedWorkDto {
|
|
8006
7968
|
operation: ProductionScheduleOperationDto;
|
|
8007
7969
|
lastWorkActivity: CurrentWorkDto;
|
|
@@ -10586,7 +10548,6 @@ export declare class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
10586
10548
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
10587
10549
|
planner?: UserDto | null;
|
|
10588
10550
|
projectLeader?: UserDto | null;
|
|
10589
|
-
endLocation?: string | null;
|
|
10590
10551
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
10591
10552
|
project?: WorkOrderProjectDto | null;
|
|
10592
10553
|
startDate?: Date | null;
|
|
@@ -10613,7 +10574,6 @@ export interface IUpsertWorkorderV2 {
|
|
|
10613
10574
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
10614
10575
|
planner?: UserDto | null;
|
|
10615
10576
|
projectLeader?: UserDto | null;
|
|
10616
|
-
endLocation?: string | null;
|
|
10617
10577
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
10618
10578
|
project?: WorkOrderProjectDto | null;
|
|
10619
10579
|
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;
|
|
@@ -28220,7 +28210,6 @@ export class ProductionScheduleOperationDto {
|
|
|
28220
28210
|
this.program = _data["program"];
|
|
28221
28211
|
this.toolNumber = _data["toolNumber"];
|
|
28222
28212
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
28223
|
-
this.endLocation = _data["endLocation"];
|
|
28224
28213
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
28225
28214
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
|
|
28226
28215
|
this.drawingNumber = _data["drawingNumber"];
|
|
@@ -28275,7 +28264,6 @@ export class ProductionScheduleOperationDto {
|
|
|
28275
28264
|
data["program"] = this.program;
|
|
28276
28265
|
data["toolNumber"] = this.toolNumber;
|
|
28277
28266
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : undefined;
|
|
28278
|
-
data["endLocation"] = this.endLocation;
|
|
28279
28267
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
28280
28268
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
|
|
28281
28269
|
data["drawingNumber"] = this.drawingNumber;
|
|
@@ -28813,76 +28801,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
28813
28801
|
}
|
|
28814
28802
|
}
|
|
28815
28803
|
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
28804
|
constructor(data) {
|
|
28887
28805
|
if (data) {
|
|
28888
28806
|
for (var property in data) {
|
|
@@ -28911,7 +28829,7 @@ export class CurrentWorkActivityV2Dto {
|
|
|
28911
28829
|
}
|
|
28912
28830
|
static fromJS(data) {
|
|
28913
28831
|
data = typeof data === 'object' ? data : {};
|
|
28914
|
-
let result = new
|
|
28832
|
+
let result = new CurrentWorkActivityDto();
|
|
28915
28833
|
result.init(data);
|
|
28916
28834
|
return result;
|
|
28917
28835
|
}
|
|
@@ -34104,7 +34022,6 @@ export class UpsertWorkorderV2 {
|
|
|
34104
34022
|
this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : undefined;
|
|
34105
34023
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
34106
34024
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
|
|
34107
|
-
this.endLocation = _data["endLocation"];
|
|
34108
34025
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
34109
34026
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
34110
34027
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
@@ -34139,7 +34056,6 @@ export class UpsertWorkorderV2 {
|
|
|
34139
34056
|
data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : undefined;
|
|
34140
34057
|
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
34141
34058
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
|
|
34142
|
-
data["endLocation"] = this.endLocation;
|
|
34143
34059
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
34144
34060
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
34145
34061
|
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;
|
|
@@ -34914,7 +34902,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34914
34902
|
program?: string | null;
|
|
34915
34903
|
toolNumber?: string | null;
|
|
34916
34904
|
prerequisites!: OperationPrerequisitesDto;
|
|
34917
|
-
endLocation?: string | null;
|
|
34918
34905
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
34919
34906
|
drawing?: DrawingDto | null;
|
|
34920
34907
|
drawingNumber?: string | null;
|
|
@@ -34974,7 +34961,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34974
34961
|
this.program = _data["program"];
|
|
34975
34962
|
this.toolNumber = _data["toolNumber"];
|
|
34976
34963
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
34977
|
-
this.endLocation = _data["endLocation"];
|
|
34978
34964
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
34979
34965
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
|
|
34980
34966
|
this.drawingNumber = _data["drawingNumber"];
|
|
@@ -35031,7 +35017,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
35031
35017
|
data["program"] = this.program;
|
|
35032
35018
|
data["toolNumber"] = this.toolNumber;
|
|
35033
35019
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : <any>undefined;
|
|
35034
|
-
data["endLocation"] = this.endLocation;
|
|
35035
35020
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
35036
35021
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
|
|
35037
35022
|
data["drawingNumber"] = this.drawingNumber;
|
|
@@ -35081,7 +35066,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
35081
35066
|
program?: string | null;
|
|
35082
35067
|
toolNumber?: string | null;
|
|
35083
35068
|
prerequisites: OperationPrerequisitesDto;
|
|
35084
|
-
endLocation?: string | null;
|
|
35085
35069
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
35086
35070
|
drawing?: DrawingDto | null;
|
|
35087
35071
|
drawingNumber?: string | null;
|
|
@@ -35830,116 +35814,10 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
35830
35814
|
}
|
|
35831
35815
|
|
|
35832
35816
|
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
35817
|
activeWork!: ActiveWorkDto[];
|
|
35940
35818
|
stoppedWork!: StoppedWorkDto[];
|
|
35941
35819
|
|
|
35942
|
-
constructor(data?:
|
|
35820
|
+
constructor(data?: ICurrentWorkActivityDto) {
|
|
35943
35821
|
if (data) {
|
|
35944
35822
|
for (var property in data) {
|
|
35945
35823
|
if (data.hasOwnProperty(property))
|
|
@@ -35967,9 +35845,9 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
|
35967
35845
|
}
|
|
35968
35846
|
}
|
|
35969
35847
|
|
|
35970
|
-
static fromJS(data: any):
|
|
35848
|
+
static fromJS(data: any): CurrentWorkActivityDto {
|
|
35971
35849
|
data = typeof data === 'object' ? data : {};
|
|
35972
|
-
let result = new
|
|
35850
|
+
let result = new CurrentWorkActivityDto();
|
|
35973
35851
|
result.init(data);
|
|
35974
35852
|
return result;
|
|
35975
35853
|
}
|
|
@@ -35990,7 +35868,7 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
|
|
|
35990
35868
|
}
|
|
35991
35869
|
}
|
|
35992
35870
|
|
|
35993
|
-
export interface
|
|
35871
|
+
export interface ICurrentWorkActivityDto {
|
|
35994
35872
|
activeWork: ActiveWorkDto[];
|
|
35995
35873
|
stoppedWork: StoppedWorkDto[];
|
|
35996
35874
|
}
|
|
@@ -36103,6 +35981,8 @@ export interface ICurrentWorkDto {
|
|
|
36103
35981
|
workType: WorkTypeDto;
|
|
36104
35982
|
}
|
|
36105
35983
|
|
|
35984
|
+
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
35985
|
+
|
|
36106
35986
|
export class StoppedWorkDto implements IStoppedWorkDto {
|
|
36107
35987
|
operation!: ProductionScheduleOperationDto;
|
|
36108
35988
|
lastWorkActivity!: CurrentWorkDto;
|
|
@@ -43767,7 +43647,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43767
43647
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
43768
43648
|
planner?: UserDto | null;
|
|
43769
43649
|
projectLeader?: UserDto | null;
|
|
43770
|
-
endLocation?: string | null;
|
|
43771
43650
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
43772
43651
|
project?: WorkOrderProjectDto | null;
|
|
43773
43652
|
startDate?: Date | null;
|
|
@@ -43808,7 +43687,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43808
43687
|
this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : <any>undefined;
|
|
43809
43688
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
43810
43689
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
|
|
43811
|
-
this.endLocation = _data["endLocation"];
|
|
43812
43690
|
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
43813
43691
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
43814
43692
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
|
|
@@ -43845,7 +43723,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43845
43723
|
data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : <any>undefined;
|
|
43846
43724
|
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
43847
43725
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
|
|
43848
|
-
data["endLocation"] = this.endLocation;
|
|
43849
43726
|
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
43850
43727
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
43851
43728
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
|
|
@@ -43871,7 +43748,6 @@ export interface IUpsertWorkorderV2 {
|
|
|
43871
43748
|
customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
|
|
43872
43749
|
planner?: UserDto | null;
|
|
43873
43750
|
projectLeader?: UserDto | null;
|
|
43874
|
-
endLocation?: string | null;
|
|
43875
43751
|
deliveryLocation?: WarehouseLocationDto | null;
|
|
43876
43752
|
project?: WorkOrderProjectDto | null;
|
|
43877
43753
|
startDate?: Date | null;
|