@ignos/api-client 20240314.0.8927 → 20240315.0.8964
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 +35 -4
- package/lib/ignosportal-api.js +73 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +104 -4
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1943,6 +1943,10 @@ export interface IWorkordersClient {
|
|
|
1943
1943
|
* Creates a work order mapping between old id and new work order id.
|
|
1944
1944
|
*/
|
|
1945
1945
|
createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Deleteds existing work order mappings.
|
|
1948
|
+
*/
|
|
1949
|
+
deleteWorkOrderMappings(): Promise<void>;
|
|
1946
1950
|
}
|
|
1947
1951
|
export declare class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
1948
1952
|
private http;
|
|
@@ -2057,6 +2061,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
2057
2061
|
*/
|
|
2058
2062
|
createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
|
|
2059
2063
|
protected processCreateWorkOrderMapping(response: Response): Promise<void>;
|
|
2064
|
+
/**
|
|
2065
|
+
* Deleteds existing work order mappings.
|
|
2066
|
+
*/
|
|
2067
|
+
deleteWorkOrderMappings(): Promise<void>;
|
|
2068
|
+
protected processDeleteWorkOrderMappings(response: Response): Promise<void>;
|
|
2060
2069
|
}
|
|
2061
2070
|
export declare class AzureRegionDto implements IAzureRegionDto {
|
|
2062
2071
|
displayName: string;
|
|
@@ -7217,6 +7226,7 @@ export declare class ProductionOrderDto implements IProductionOrderDto {
|
|
|
7217
7226
|
planner?: UserDto | null;
|
|
7218
7227
|
projectLeader?: UserDto | null;
|
|
7219
7228
|
endLocation?: string | null;
|
|
7229
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7220
7230
|
project?: WorkOrderProjectDto | null;
|
|
7221
7231
|
startDate?: Date | null;
|
|
7222
7232
|
endDate?: Date | null;
|
|
@@ -7243,6 +7253,7 @@ export interface IProductionOrderDto {
|
|
|
7243
7253
|
planner?: UserDto | null;
|
|
7244
7254
|
projectLeader?: UserDto | null;
|
|
7245
7255
|
endLocation?: string | null;
|
|
7256
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7246
7257
|
project?: WorkOrderProjectDto | null;
|
|
7247
7258
|
startDate?: Date | null;
|
|
7248
7259
|
endDate?: Date | null;
|
|
@@ -7314,6 +7325,22 @@ export interface IProductionOrderOperationDto {
|
|
|
7314
7325
|
toolNumber?: string | null;
|
|
7315
7326
|
disableSetupRegistration: boolean;
|
|
7316
7327
|
}
|
|
7328
|
+
export declare class WarehouseLocationDto implements IWarehouseLocationDto {
|
|
7329
|
+
zone?: string | null;
|
|
7330
|
+
location: string;
|
|
7331
|
+
warehouse?: string | null;
|
|
7332
|
+
site?: string | null;
|
|
7333
|
+
constructor(data?: IWarehouseLocationDto);
|
|
7334
|
+
init(_data?: any): void;
|
|
7335
|
+
static fromJS(data: any): WarehouseLocationDto;
|
|
7336
|
+
toJSON(data?: any): any;
|
|
7337
|
+
}
|
|
7338
|
+
export interface IWarehouseLocationDto {
|
|
7339
|
+
zone?: string | null;
|
|
7340
|
+
location: string;
|
|
7341
|
+
warehouse?: string | null;
|
|
7342
|
+
site?: string | null;
|
|
7343
|
+
}
|
|
7317
7344
|
export declare class DrawingDto implements IDrawingDto {
|
|
7318
7345
|
drawingNumber: string;
|
|
7319
7346
|
revision?: string;
|
|
@@ -7557,7 +7584,7 @@ export declare class PickListMaterialLineDto implements IPickListMaterialLineDto
|
|
|
7557
7584
|
location: string;
|
|
7558
7585
|
end: boolean;
|
|
7559
7586
|
quantity: number;
|
|
7560
|
-
batch?: string;
|
|
7587
|
+
batch?: string | null;
|
|
7561
7588
|
constructor(data?: IPickListMaterialLineDto);
|
|
7562
7589
|
init(_data?: any): void;
|
|
7563
7590
|
static fromJS(data: any): PickListMaterialLineDto;
|
|
@@ -7570,7 +7597,7 @@ export interface IPickListMaterialLineDto {
|
|
|
7570
7597
|
location: string;
|
|
7571
7598
|
end: boolean;
|
|
7572
7599
|
quantity: number;
|
|
7573
|
-
batch?: string;
|
|
7600
|
+
batch?: string | null;
|
|
7574
7601
|
}
|
|
7575
7602
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
7576
7603
|
results: ProductionScheduleOperationDto[];
|
|
@@ -7625,6 +7652,7 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
7625
7652
|
toolNumber?: string | null;
|
|
7626
7653
|
prerequisites: OperationPrerequisitesDto;
|
|
7627
7654
|
endLocation?: string | null;
|
|
7655
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7628
7656
|
drawing?: DrawingDto | null;
|
|
7629
7657
|
drawingNumber?: string | null;
|
|
7630
7658
|
disableSetupRegistration: boolean;
|
|
@@ -7675,6 +7703,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
7675
7703
|
toolNumber?: string | null;
|
|
7676
7704
|
prerequisites: OperationPrerequisitesDto;
|
|
7677
7705
|
endLocation?: string | null;
|
|
7706
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
7678
7707
|
drawing?: DrawingDto | null;
|
|
7679
7708
|
drawingNumber?: string | null;
|
|
7680
7709
|
disableSetupRegistration: boolean;
|
|
@@ -7906,7 +7935,7 @@ export declare class WorkActivityDto implements IWorkActivityDto {
|
|
|
7906
7935
|
id: string;
|
|
7907
7936
|
startTime: Date;
|
|
7908
7937
|
endTime?: Date | null;
|
|
7909
|
-
user?: UserDto;
|
|
7938
|
+
user?: UserDto | null;
|
|
7910
7939
|
personnelNumber: string;
|
|
7911
7940
|
workType: WorkTypeDto;
|
|
7912
7941
|
startedQuantity?: number | null;
|
|
@@ -7919,7 +7948,7 @@ export interface IWorkActivityDto {
|
|
|
7919
7948
|
id: string;
|
|
7920
7949
|
startTime: Date;
|
|
7921
7950
|
endTime?: Date | null;
|
|
7922
|
-
user?: UserDto;
|
|
7951
|
+
user?: UserDto | null;
|
|
7923
7952
|
personnelNumber: string;
|
|
7924
7953
|
workType: WorkTypeDto;
|
|
7925
7954
|
startedQuantity?: number | null;
|
|
@@ -10558,6 +10587,7 @@ export declare class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
10558
10587
|
planner?: UserDto | null;
|
|
10559
10588
|
projectLeader?: UserDto | null;
|
|
10560
10589
|
endLocation?: string | null;
|
|
10590
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
10561
10591
|
project?: WorkOrderProjectDto | null;
|
|
10562
10592
|
startDate?: Date | null;
|
|
10563
10593
|
endDate?: Date | null;
|
|
@@ -10584,6 +10614,7 @@ export interface IUpsertWorkorderV2 {
|
|
|
10584
10614
|
planner?: UserDto | null;
|
|
10585
10615
|
projectLeader?: UserDto | null;
|
|
10586
10616
|
endLocation?: string | null;
|
|
10617
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
10587
10618
|
project?: WorkOrderProjectDto | null;
|
|
10588
10619
|
startDate?: Date | null;
|
|
10589
10620
|
endDate?: Date | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -16980,6 +16980,41 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
16980
16980
|
}
|
|
16981
16981
|
return Promise.resolve(null);
|
|
16982
16982
|
}
|
|
16983
|
+
/**
|
|
16984
|
+
* Deleteds existing work order mappings.
|
|
16985
|
+
*/
|
|
16986
|
+
deleteWorkOrderMappings() {
|
|
16987
|
+
let url_ = this.baseUrl + "/erp/workorders/mappings";
|
|
16988
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16989
|
+
let options_ = {
|
|
16990
|
+
method: "DELETE",
|
|
16991
|
+
headers: {}
|
|
16992
|
+
};
|
|
16993
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16994
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
16995
|
+
}).then((_response) => {
|
|
16996
|
+
return this.processDeleteWorkOrderMappings(_response);
|
|
16997
|
+
});
|
|
16998
|
+
}
|
|
16999
|
+
processDeleteWorkOrderMappings(response) {
|
|
17000
|
+
const status = response.status;
|
|
17001
|
+
let _headers = {};
|
|
17002
|
+
if (response.headers && response.headers.forEach) {
|
|
17003
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17004
|
+
}
|
|
17005
|
+
;
|
|
17006
|
+
if (status === 204) {
|
|
17007
|
+
return response.text().then((_responseText) => {
|
|
17008
|
+
return;
|
|
17009
|
+
});
|
|
17010
|
+
}
|
|
17011
|
+
else if (status !== 200 && status !== 204) {
|
|
17012
|
+
return response.text().then((_responseText) => {
|
|
17013
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17014
|
+
});
|
|
17015
|
+
}
|
|
17016
|
+
return Promise.resolve(null);
|
|
17017
|
+
}
|
|
16983
17018
|
}
|
|
16984
17019
|
export class AzureRegionDto {
|
|
16985
17020
|
constructor(data) {
|
|
@@ -27443,6 +27478,7 @@ export class ProductionOrderDto {
|
|
|
27443
27478
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
27444
27479
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
|
|
27445
27480
|
this.endLocation = _data["endLocation"];
|
|
27481
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
27446
27482
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
27447
27483
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
27448
27484
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
|
|
@@ -27477,6 +27513,7 @@ export class ProductionOrderDto {
|
|
|
27477
27513
|
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
27478
27514
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
|
|
27479
27515
|
data["endLocation"] = this.endLocation;
|
|
27516
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
27480
27517
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
27481
27518
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
|
|
27482
27519
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
|
|
@@ -27566,6 +27603,38 @@ export class ProductionOrderOperationDto {
|
|
|
27566
27603
|
return data;
|
|
27567
27604
|
}
|
|
27568
27605
|
}
|
|
27606
|
+
export class WarehouseLocationDto {
|
|
27607
|
+
constructor(data) {
|
|
27608
|
+
if (data) {
|
|
27609
|
+
for (var property in data) {
|
|
27610
|
+
if (data.hasOwnProperty(property))
|
|
27611
|
+
this[property] = data[property];
|
|
27612
|
+
}
|
|
27613
|
+
}
|
|
27614
|
+
}
|
|
27615
|
+
init(_data) {
|
|
27616
|
+
if (_data) {
|
|
27617
|
+
this.zone = _data["zone"];
|
|
27618
|
+
this.location = _data["location"];
|
|
27619
|
+
this.warehouse = _data["warehouse"];
|
|
27620
|
+
this.site = _data["site"];
|
|
27621
|
+
}
|
|
27622
|
+
}
|
|
27623
|
+
static fromJS(data) {
|
|
27624
|
+
data = typeof data === 'object' ? data : {};
|
|
27625
|
+
let result = new WarehouseLocationDto();
|
|
27626
|
+
result.init(data);
|
|
27627
|
+
return result;
|
|
27628
|
+
}
|
|
27629
|
+
toJSON(data) {
|
|
27630
|
+
data = typeof data === 'object' ? data : {};
|
|
27631
|
+
data["zone"] = this.zone;
|
|
27632
|
+
data["location"] = this.location;
|
|
27633
|
+
data["warehouse"] = this.warehouse;
|
|
27634
|
+
data["site"] = this.site;
|
|
27635
|
+
return data;
|
|
27636
|
+
}
|
|
27637
|
+
}
|
|
27569
27638
|
export class DrawingDto {
|
|
27570
27639
|
constructor(data) {
|
|
27571
27640
|
if (data) {
|
|
@@ -28156,6 +28225,7 @@ export class ProductionScheduleOperationDto {
|
|
|
28156
28225
|
this.toolNumber = _data["toolNumber"];
|
|
28157
28226
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
28158
28227
|
this.endLocation = _data["endLocation"];
|
|
28228
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
28159
28229
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
|
|
28160
28230
|
this.drawingNumber = _data["drawingNumber"];
|
|
28161
28231
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
@@ -28210,6 +28280,7 @@ export class ProductionScheduleOperationDto {
|
|
|
28210
28280
|
data["toolNumber"] = this.toolNumber;
|
|
28211
28281
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : undefined;
|
|
28212
28282
|
data["endLocation"] = this.endLocation;
|
|
28283
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
28213
28284
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
|
|
28214
28285
|
data["drawingNumber"] = this.drawingNumber;
|
|
28215
28286
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
@@ -34038,6 +34109,7 @@ export class UpsertWorkorderV2 {
|
|
|
34038
34109
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
|
|
34039
34110
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
|
|
34040
34111
|
this.endLocation = _data["endLocation"];
|
|
34112
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
|
|
34041
34113
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
34042
34114
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
|
|
34043
34115
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
|
|
@@ -34072,6 +34144,7 @@ export class UpsertWorkorderV2 {
|
|
|
34072
34144
|
data["planner"] = this.planner ? this.planner.toJSON() : undefined;
|
|
34073
34145
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
|
|
34074
34146
|
data["endLocation"] = this.endLocation;
|
|
34147
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
|
|
34075
34148
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
34076
34149
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
|
|
34077
34150
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -17147,6 +17147,11 @@ export interface IWorkordersClient {
|
|
|
17147
17147
|
* Creates a work order mapping between old id and new work order id.
|
|
17148
17148
|
*/
|
|
17149
17149
|
createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
|
|
17150
|
+
|
|
17151
|
+
/**
|
|
17152
|
+
* Deleteds existing work order mappings.
|
|
17153
|
+
*/
|
|
17154
|
+
deleteWorkOrderMappings(): Promise<void>;
|
|
17150
17155
|
}
|
|
17151
17156
|
|
|
17152
17157
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -18115,6 +18120,41 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
18115
18120
|
}
|
|
18116
18121
|
return Promise.resolve<void>(null as any);
|
|
18117
18122
|
}
|
|
18123
|
+
|
|
18124
|
+
/**
|
|
18125
|
+
* Deleteds existing work order mappings.
|
|
18126
|
+
*/
|
|
18127
|
+
deleteWorkOrderMappings(): Promise<void> {
|
|
18128
|
+
let url_ = this.baseUrl + "/erp/workorders/mappings";
|
|
18129
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18130
|
+
|
|
18131
|
+
let options_: RequestInit = {
|
|
18132
|
+
method: "DELETE",
|
|
18133
|
+
headers: {
|
|
18134
|
+
}
|
|
18135
|
+
};
|
|
18136
|
+
|
|
18137
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18138
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18139
|
+
}).then((_response: Response) => {
|
|
18140
|
+
return this.processDeleteWorkOrderMappings(_response);
|
|
18141
|
+
});
|
|
18142
|
+
}
|
|
18143
|
+
|
|
18144
|
+
protected processDeleteWorkOrderMappings(response: Response): Promise<void> {
|
|
18145
|
+
const status = response.status;
|
|
18146
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18147
|
+
if (status === 204) {
|
|
18148
|
+
return response.text().then((_responseText) => {
|
|
18149
|
+
return;
|
|
18150
|
+
});
|
|
18151
|
+
} else if (status !== 200 && status !== 204) {
|
|
18152
|
+
return response.text().then((_responseText) => {
|
|
18153
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18154
|
+
});
|
|
18155
|
+
}
|
|
18156
|
+
return Promise.resolve<void>(null as any);
|
|
18157
|
+
}
|
|
18118
18158
|
}
|
|
18119
18159
|
|
|
18120
18160
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -33725,6 +33765,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33725
33765
|
planner?: UserDto | null;
|
|
33726
33766
|
projectLeader?: UserDto | null;
|
|
33727
33767
|
endLocation?: string | null;
|
|
33768
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
33728
33769
|
project?: WorkOrderProjectDto | null;
|
|
33729
33770
|
startDate?: Date | null;
|
|
33730
33771
|
endDate?: Date | null;
|
|
@@ -33765,6 +33806,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33765
33806
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
33766
33807
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
|
|
33767
33808
|
this.endLocation = _data["endLocation"];
|
|
33809
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
33768
33810
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
33769
33811
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
|
|
33770
33812
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : <any>undefined;
|
|
@@ -33801,6 +33843,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
|
|
|
33801
33843
|
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
33802
33844
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
|
|
33803
33845
|
data["endLocation"] = this.endLocation;
|
|
33846
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
33804
33847
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
33805
33848
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
|
|
33806
33849
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : <any>undefined;
|
|
@@ -33826,6 +33869,7 @@ export interface IProductionOrderDto {
|
|
|
33826
33869
|
planner?: UserDto | null;
|
|
33827
33870
|
projectLeader?: UserDto | null;
|
|
33828
33871
|
endLocation?: string | null;
|
|
33872
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
33829
33873
|
project?: WorkOrderProjectDto | null;
|
|
33830
33874
|
startDate?: Date | null;
|
|
33831
33875
|
endDate?: Date | null;
|
|
@@ -33978,6 +34022,54 @@ export interface IProductionOrderOperationDto {
|
|
|
33978
34022
|
disableSetupRegistration: boolean;
|
|
33979
34023
|
}
|
|
33980
34024
|
|
|
34025
|
+
export class WarehouseLocationDto implements IWarehouseLocationDto {
|
|
34026
|
+
zone?: string | null;
|
|
34027
|
+
location!: string;
|
|
34028
|
+
warehouse?: string | null;
|
|
34029
|
+
site?: string | null;
|
|
34030
|
+
|
|
34031
|
+
constructor(data?: IWarehouseLocationDto) {
|
|
34032
|
+
if (data) {
|
|
34033
|
+
for (var property in data) {
|
|
34034
|
+
if (data.hasOwnProperty(property))
|
|
34035
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34036
|
+
}
|
|
34037
|
+
}
|
|
34038
|
+
}
|
|
34039
|
+
|
|
34040
|
+
init(_data?: any) {
|
|
34041
|
+
if (_data) {
|
|
34042
|
+
this.zone = _data["zone"];
|
|
34043
|
+
this.location = _data["location"];
|
|
34044
|
+
this.warehouse = _data["warehouse"];
|
|
34045
|
+
this.site = _data["site"];
|
|
34046
|
+
}
|
|
34047
|
+
}
|
|
34048
|
+
|
|
34049
|
+
static fromJS(data: any): WarehouseLocationDto {
|
|
34050
|
+
data = typeof data === 'object' ? data : {};
|
|
34051
|
+
let result = new WarehouseLocationDto();
|
|
34052
|
+
result.init(data);
|
|
34053
|
+
return result;
|
|
34054
|
+
}
|
|
34055
|
+
|
|
34056
|
+
toJSON(data?: any) {
|
|
34057
|
+
data = typeof data === 'object' ? data : {};
|
|
34058
|
+
data["zone"] = this.zone;
|
|
34059
|
+
data["location"] = this.location;
|
|
34060
|
+
data["warehouse"] = this.warehouse;
|
|
34061
|
+
data["site"] = this.site;
|
|
34062
|
+
return data;
|
|
34063
|
+
}
|
|
34064
|
+
}
|
|
34065
|
+
|
|
34066
|
+
export interface IWarehouseLocationDto {
|
|
34067
|
+
zone?: string | null;
|
|
34068
|
+
location: string;
|
|
34069
|
+
warehouse?: string | null;
|
|
34070
|
+
site?: string | null;
|
|
34071
|
+
}
|
|
34072
|
+
|
|
33981
34073
|
export class DrawingDto implements IDrawingDto {
|
|
33982
34074
|
drawingNumber!: string;
|
|
33983
34075
|
revision?: string;
|
|
@@ -34682,7 +34774,7 @@ export class PickListMaterialLineDto implements IPickListMaterialLineDto {
|
|
|
34682
34774
|
location!: string;
|
|
34683
34775
|
end!: boolean;
|
|
34684
34776
|
quantity!: number;
|
|
34685
|
-
batch?: string;
|
|
34777
|
+
batch?: string | null;
|
|
34686
34778
|
|
|
34687
34779
|
constructor(data?: IPickListMaterialLineDto) {
|
|
34688
34780
|
if (data) {
|
|
@@ -34732,7 +34824,7 @@ export interface IPickListMaterialLineDto {
|
|
|
34732
34824
|
location: string;
|
|
34733
34825
|
end: boolean;
|
|
34734
34826
|
quantity: number;
|
|
34735
|
-
batch?: string;
|
|
34827
|
+
batch?: string | null;
|
|
34736
34828
|
}
|
|
34737
34829
|
|
|
34738
34830
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
@@ -34827,6 +34919,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34827
34919
|
toolNumber?: string | null;
|
|
34828
34920
|
prerequisites!: OperationPrerequisitesDto;
|
|
34829
34921
|
endLocation?: string | null;
|
|
34922
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
34830
34923
|
drawing?: DrawingDto | null;
|
|
34831
34924
|
drawingNumber?: string | null;
|
|
34832
34925
|
disableSetupRegistration!: boolean;
|
|
@@ -34886,6 +34979,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34886
34979
|
this.toolNumber = _data["toolNumber"];
|
|
34887
34980
|
this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
|
|
34888
34981
|
this.endLocation = _data["endLocation"];
|
|
34982
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
34889
34983
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
|
|
34890
34984
|
this.drawingNumber = _data["drawingNumber"];
|
|
34891
34985
|
this.disableSetupRegistration = _data["disableSetupRegistration"];
|
|
@@ -34942,6 +35036,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
34942
35036
|
data["toolNumber"] = this.toolNumber;
|
|
34943
35037
|
data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : <any>undefined;
|
|
34944
35038
|
data["endLocation"] = this.endLocation;
|
|
35039
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
34945
35040
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
|
|
34946
35041
|
data["drawingNumber"] = this.drawingNumber;
|
|
34947
35042
|
data["disableSetupRegistration"] = this.disableSetupRegistration;
|
|
@@ -34991,6 +35086,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
34991
35086
|
toolNumber?: string | null;
|
|
34992
35087
|
prerequisites: OperationPrerequisitesDto;
|
|
34993
35088
|
endLocation?: string | null;
|
|
35089
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
34994
35090
|
drawing?: DrawingDto | null;
|
|
34995
35091
|
drawingNumber?: string | null;
|
|
34996
35092
|
disableSetupRegistration: boolean;
|
|
@@ -35785,7 +35881,7 @@ export class WorkActivityDto implements IWorkActivityDto {
|
|
|
35785
35881
|
id!: string;
|
|
35786
35882
|
startTime!: Date;
|
|
35787
35883
|
endTime?: Date | null;
|
|
35788
|
-
user?: UserDto;
|
|
35884
|
+
user?: UserDto | null;
|
|
35789
35885
|
personnelNumber!: string;
|
|
35790
35886
|
workType!: WorkTypeDto;
|
|
35791
35887
|
startedQuantity?: number | null;
|
|
@@ -35835,7 +35931,7 @@ export interface IWorkActivityDto {
|
|
|
35835
35931
|
id: string;
|
|
35836
35932
|
startTime: Date;
|
|
35837
35933
|
endTime?: Date | null;
|
|
35838
|
-
user?: UserDto;
|
|
35934
|
+
user?: UserDto | null;
|
|
35839
35935
|
personnelNumber: string;
|
|
35840
35936
|
workType: WorkTypeDto;
|
|
35841
35937
|
startedQuantity?: number | null;
|
|
@@ -43676,6 +43772,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43676
43772
|
planner?: UserDto | null;
|
|
43677
43773
|
projectLeader?: UserDto | null;
|
|
43678
43774
|
endLocation?: string | null;
|
|
43775
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
43679
43776
|
project?: WorkOrderProjectDto | null;
|
|
43680
43777
|
startDate?: Date | null;
|
|
43681
43778
|
endDate?: Date | null;
|
|
@@ -43716,6 +43813,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43716
43813
|
this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
|
|
43717
43814
|
this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
|
|
43718
43815
|
this.endLocation = _data["endLocation"];
|
|
43816
|
+
this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
|
|
43719
43817
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
43720
43818
|
this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
|
|
43721
43819
|
this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : <any>undefined;
|
|
@@ -43752,6 +43850,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
|
|
|
43752
43850
|
data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
|
|
43753
43851
|
data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
|
|
43754
43852
|
data["endLocation"] = this.endLocation;
|
|
43853
|
+
data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
|
|
43755
43854
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
43756
43855
|
data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
|
|
43757
43856
|
data["endDate"] = this.endDate ? this.endDate.toISOString() : <any>undefined;
|
|
@@ -43777,6 +43876,7 @@ export interface IUpsertWorkorderV2 {
|
|
|
43777
43876
|
planner?: UserDto | null;
|
|
43778
43877
|
projectLeader?: UserDto | null;
|
|
43779
43878
|
endLocation?: string | null;
|
|
43879
|
+
deliveryLocation?: WarehouseLocationDto | null;
|
|
43780
43880
|
project?: WorkOrderProjectDto | null;
|
|
43781
43881
|
startDate?: Date | null;
|
|
43782
43882
|
endDate?: Date | null;
|