@ignos/api-client 20251229.0.13632-alpha → 20251229.0.13636-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +43 -43
- package/lib/ignosportal-api.js +21 -21
- package/package.json +1 -1
- package/src/ignosportal-api.ts +62 -62
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -398,8 +398,8 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
398
398
|
protected processGetMachineAlarmDetails(response: Response): Promise<MachineAlarmDetailsDto>;
|
|
399
399
|
}
|
|
400
400
|
export interface IResourcesClient {
|
|
401
|
-
listResources(onlyConnectedResources: boolean | undefined): Promise<
|
|
402
|
-
listResourceGroups(): Promise<
|
|
401
|
+
listResources(onlyConnectedResources: boolean | undefined): Promise<ApplicationResourcesResourceDto[]>;
|
|
402
|
+
listResourceGroups(): Promise<ApplicationResourcesResourceGroupDto[]>;
|
|
403
403
|
createResourceGroup(request: CreateResourceGroup): Promise<CreateResourceGroupResponse>;
|
|
404
404
|
updateResourceGroup(id: string, request: UpdateResourceGroup): Promise<void>;
|
|
405
405
|
deleteResourceGroup(id: string): Promise<void>;
|
|
@@ -427,10 +427,10 @@ export declare class ResourcesClient extends AuthorizedApiBase implements IResou
|
|
|
427
427
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
428
428
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
429
429
|
});
|
|
430
|
-
listResources(onlyConnectedResources: boolean | undefined): Promise<
|
|
431
|
-
protected processListResources(response: Response): Promise<
|
|
432
|
-
listResourceGroups(): Promise<
|
|
433
|
-
protected processListResourceGroups(response: Response): Promise<
|
|
430
|
+
listResources(onlyConnectedResources: boolean | undefined): Promise<ApplicationResourcesResourceDto[]>;
|
|
431
|
+
protected processListResources(response: Response): Promise<ApplicationResourcesResourceDto[]>;
|
|
432
|
+
listResourceGroups(): Promise<ApplicationResourcesResourceGroupDto[]>;
|
|
433
|
+
protected processListResourceGroups(response: Response): Promise<ApplicationResourcesResourceGroupDto[]>;
|
|
434
434
|
createResourceGroup(request: CreateResourceGroup): Promise<CreateResourceGroupResponse>;
|
|
435
435
|
protected processCreateResourceGroup(response: Response): Promise<CreateResourceGroupResponse>;
|
|
436
436
|
updateResourceGroup(id: string, request: UpdateResourceGroup): Promise<void>;
|
|
@@ -2148,7 +2148,7 @@ export declare class MesPurchaseOrderClient extends AuthorizedApiBase implements
|
|
|
2148
2148
|
protected processGetPurchaseOrderDetails(response: Response): Promise<PurchaseOrderDetailsDto>;
|
|
2149
2149
|
}
|
|
2150
2150
|
export interface IMesResourceClient {
|
|
2151
|
-
listResourceGroups(includeResources: boolean | undefined): Promise<
|
|
2151
|
+
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
|
|
2152
2152
|
listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
|
|
2153
2153
|
listDepartments(): Promise<DepartmentDto[]>;
|
|
2154
2154
|
}
|
|
@@ -2159,8 +2159,8 @@ export declare class MesResourceClient extends AuthorizedApiBase implements IMes
|
|
|
2159
2159
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
2160
2160
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2161
2161
|
});
|
|
2162
|
-
listResourceGroups(includeResources: boolean | undefined): Promise<
|
|
2163
|
-
protected processListResourceGroups(response: Response): Promise<
|
|
2162
|
+
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
|
|
2163
|
+
protected processListResourceGroups(response: Response): Promise<ResourceGroupDto[]>;
|
|
2164
2164
|
listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
|
|
2165
2165
|
protected processListResourceGroupResources(response: Response): Promise<ProductionResourceDto[]>;
|
|
2166
2166
|
listDepartments(): Promise<DepartmentDto[]>;
|
|
@@ -4037,7 +4037,7 @@ export interface ICncProgramInfoDto {
|
|
|
4037
4037
|
sequence?: string | null;
|
|
4038
4038
|
line?: string | null;
|
|
4039
4039
|
}
|
|
4040
|
-
export declare class
|
|
4040
|
+
export declare class ApplicationResourcesResourceDto implements IApplicationResourcesResourceDto {
|
|
4041
4041
|
id: number;
|
|
4042
4042
|
externalId: string;
|
|
4043
4043
|
name: string;
|
|
@@ -4047,12 +4047,12 @@ export declare class ResourceDto implements IResourceDto {
|
|
|
4047
4047
|
hasLiveMachineState: boolean;
|
|
4048
4048
|
companyId?: string | null;
|
|
4049
4049
|
resourceId: string;
|
|
4050
|
-
constructor(data?:
|
|
4050
|
+
constructor(data?: IApplicationResourcesResourceDto);
|
|
4051
4051
|
init(_data?: any): void;
|
|
4052
|
-
static fromJS(data: any):
|
|
4052
|
+
static fromJS(data: any): ApplicationResourcesResourceDto;
|
|
4053
4053
|
toJSON(data?: any): any;
|
|
4054
4054
|
}
|
|
4055
|
-
export interface
|
|
4055
|
+
export interface IApplicationResourcesResourceDto {
|
|
4056
4056
|
id: number;
|
|
4057
4057
|
externalId: string;
|
|
4058
4058
|
name: string;
|
|
@@ -4063,17 +4063,17 @@ export interface IResourceDto {
|
|
|
4063
4063
|
companyId?: string | null;
|
|
4064
4064
|
resourceId: string;
|
|
4065
4065
|
}
|
|
4066
|
-
export declare class
|
|
4066
|
+
export declare class ApplicationResourcesResourceGroupDto implements IApplicationResourcesResourceGroupDto {
|
|
4067
4067
|
id: string;
|
|
4068
4068
|
name: string;
|
|
4069
4069
|
companyId?: string | null;
|
|
4070
4070
|
resources: ResourceGroupMemberDto[];
|
|
4071
|
-
constructor(data?:
|
|
4071
|
+
constructor(data?: IApplicationResourcesResourceGroupDto);
|
|
4072
4072
|
init(_data?: any): void;
|
|
4073
|
-
static fromJS(data: any):
|
|
4073
|
+
static fromJS(data: any): ApplicationResourcesResourceGroupDto;
|
|
4074
4074
|
toJSON(data?: any): any;
|
|
4075
4075
|
}
|
|
4076
|
-
export interface
|
|
4076
|
+
export interface IApplicationResourcesResourceGroupDto {
|
|
4077
4077
|
id: string;
|
|
4078
4078
|
name: string;
|
|
4079
4079
|
companyId?: string | null;
|
|
@@ -4197,25 +4197,25 @@ export interface IDowntimeResourceStateDto {
|
|
|
4197
4197
|
endTime: Date;
|
|
4198
4198
|
}
|
|
4199
4199
|
export declare class ResourceStatesSummaryDto implements IResourceStatesSummaryDto {
|
|
4200
|
-
states:
|
|
4200
|
+
states: ApplicationResourceStatesStateDto[];
|
|
4201
4201
|
constructor(data?: IResourceStatesSummaryDto);
|
|
4202
4202
|
init(_data?: any): void;
|
|
4203
4203
|
static fromJS(data: any): ResourceStatesSummaryDto;
|
|
4204
4204
|
toJSON(data?: any): any;
|
|
4205
4205
|
}
|
|
4206
4206
|
export interface IResourceStatesSummaryDto {
|
|
4207
|
-
states:
|
|
4207
|
+
states: ApplicationResourceStatesStateDto[];
|
|
4208
4208
|
}
|
|
4209
|
-
export declare class
|
|
4209
|
+
export declare class ApplicationResourceStatesStateDto implements IApplicationResourceStatesStateDto {
|
|
4210
4210
|
state: string;
|
|
4211
4211
|
resourceState: ResourceState;
|
|
4212
4212
|
seconds: number;
|
|
4213
|
-
constructor(data?:
|
|
4213
|
+
constructor(data?: IApplicationResourceStatesStateDto);
|
|
4214
4214
|
init(_data?: any): void;
|
|
4215
|
-
static fromJS(data: any):
|
|
4215
|
+
static fromJS(data: any): ApplicationResourceStatesStateDto;
|
|
4216
4216
|
toJSON(data?: any): any;
|
|
4217
4217
|
}
|
|
4218
|
-
export interface
|
|
4218
|
+
export interface IApplicationResourceStatesStateDto {
|
|
4219
4219
|
state: string;
|
|
4220
4220
|
resourceState: ResourceState;
|
|
4221
4221
|
seconds: number;
|
|
@@ -5625,7 +5625,7 @@ export type TraceIncludeStatus = "None" | "ForceInclude" | "Exclude";
|
|
|
5625
5625
|
export declare class WorkOrderTraceOperationDto implements IWorkOrderTraceOperationDto {
|
|
5626
5626
|
operation: number;
|
|
5627
5627
|
description: string;
|
|
5628
|
-
resource:
|
|
5628
|
+
resource: ResourceDto;
|
|
5629
5629
|
plannedStart?: Date | null;
|
|
5630
5630
|
plannedEnd?: Date | null;
|
|
5631
5631
|
status: OperationStatusDto;
|
|
@@ -5640,7 +5640,7 @@ export declare class WorkOrderTraceOperationDto implements IWorkOrderTraceOperat
|
|
|
5640
5640
|
export interface IWorkOrderTraceOperationDto {
|
|
5641
5641
|
operation: number;
|
|
5642
5642
|
description: string;
|
|
5643
|
-
resource:
|
|
5643
|
+
resource: ResourceDto;
|
|
5644
5644
|
plannedStart?: Date | null;
|
|
5645
5645
|
plannedEnd?: Date | null;
|
|
5646
5646
|
status: OperationStatusDto;
|
|
@@ -5648,7 +5648,7 @@ export interface IWorkOrderTraceOperationDto {
|
|
|
5648
5648
|
scrappedQuantity: number;
|
|
5649
5649
|
materials: WorkOrderTraceMaterialDto[];
|
|
5650
5650
|
}
|
|
5651
|
-
export declare class
|
|
5651
|
+
export declare class ResourceDto implements IResourceDto {
|
|
5652
5652
|
id: string;
|
|
5653
5653
|
name?: string | null;
|
|
5654
5654
|
external: boolean;
|
|
@@ -5656,12 +5656,12 @@ export declare class ResourceDto2 implements IResourceDto2 {
|
|
|
5656
5656
|
resourceType?: string | null;
|
|
5657
5657
|
resourceGroupId?: string | null;
|
|
5658
5658
|
department?: DepartmentDto | null;
|
|
5659
|
-
constructor(data?:
|
|
5659
|
+
constructor(data?: IResourceDto);
|
|
5660
5660
|
init(_data?: any): void;
|
|
5661
|
-
static fromJS(data: any):
|
|
5661
|
+
static fromJS(data: any): ResourceDto;
|
|
5662
5662
|
toJSON(data?: any): any;
|
|
5663
5663
|
}
|
|
5664
|
-
export interface
|
|
5664
|
+
export interface IResourceDto {
|
|
5665
5665
|
id: string;
|
|
5666
5666
|
name?: string | null;
|
|
5667
5667
|
external: boolean;
|
|
@@ -11165,7 +11165,7 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
11165
11165
|
usedSetupHours?: number | null;
|
|
11166
11166
|
usedProductionHours?: number;
|
|
11167
11167
|
fixedTime?: boolean | null;
|
|
11168
|
-
resource?:
|
|
11168
|
+
resource?: ResourceDto | null;
|
|
11169
11169
|
plannedStart?: Date | null;
|
|
11170
11170
|
plannedEnd?: Date | null;
|
|
11171
11171
|
actualStart?: Date | null;
|
|
@@ -11203,7 +11203,7 @@ export interface IProductionOrderOperationDto {
|
|
|
11203
11203
|
usedSetupHours?: number | null;
|
|
11204
11204
|
usedProductionHours?: number;
|
|
11205
11205
|
fixedTime?: boolean | null;
|
|
11206
|
-
resource?:
|
|
11206
|
+
resource?: ResourceDto | null;
|
|
11207
11207
|
plannedStart?: Date | null;
|
|
11208
11208
|
plannedEnd?: Date | null;
|
|
11209
11209
|
actualStart?: Date | null;
|
|
@@ -11436,7 +11436,7 @@ export declare class NonConformanceDto implements INonConformanceDto {
|
|
|
11436
11436
|
nonConformanceId: string;
|
|
11437
11437
|
companyId?: string | null;
|
|
11438
11438
|
part?: PartDto | null;
|
|
11439
|
-
resource?:
|
|
11439
|
+
resource?: ResourceDto | null;
|
|
11440
11440
|
type: NonConformanceType;
|
|
11441
11441
|
workOrder?: string | null;
|
|
11442
11442
|
title?: string | null;
|
|
@@ -11461,7 +11461,7 @@ export interface INonConformanceDto {
|
|
|
11461
11461
|
nonConformanceId: string;
|
|
11462
11462
|
companyId?: string | null;
|
|
11463
11463
|
part?: PartDto | null;
|
|
11464
|
-
resource?:
|
|
11464
|
+
resource?: ResourceDto | null;
|
|
11465
11465
|
type: NonConformanceType;
|
|
11466
11466
|
workOrder?: string | null;
|
|
11467
11467
|
title?: string | null;
|
|
@@ -11575,7 +11575,7 @@ export declare class ProductionOrderOperationActivityDto implements IProductionO
|
|
|
11575
11575
|
operation: number;
|
|
11576
11576
|
operationId: string;
|
|
11577
11577
|
description?: string | null;
|
|
11578
|
-
resource?:
|
|
11578
|
+
resource?: ResourceDto | null;
|
|
11579
11579
|
user?: UserDto | null;
|
|
11580
11580
|
startTime: Date;
|
|
11581
11581
|
endTime?: Date | null;
|
|
@@ -11594,7 +11594,7 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
11594
11594
|
operation: number;
|
|
11595
11595
|
operationId: string;
|
|
11596
11596
|
description?: string | null;
|
|
11597
|
-
resource?:
|
|
11597
|
+
resource?: ResourceDto | null;
|
|
11598
11598
|
user?: UserDto | null;
|
|
11599
11599
|
startTime: Date;
|
|
11600
11600
|
endTime?: Date | null;
|
|
@@ -12201,7 +12201,7 @@ export declare class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
12201
12201
|
plannedProductionTimePerPart: number;
|
|
12202
12202
|
plannedProductionTime: number;
|
|
12203
12203
|
fixedTime?: boolean | null;
|
|
12204
|
-
resource?:
|
|
12204
|
+
resource?: ResourceDto | null;
|
|
12205
12205
|
plannedStart?: Date | null;
|
|
12206
12206
|
plannedEnd?: Date | null;
|
|
12207
12207
|
actualStart?: Date | null;
|
|
@@ -12226,7 +12226,7 @@ export interface IWorkorderOperationDto {
|
|
|
12226
12226
|
plannedProductionTimePerPart: number;
|
|
12227
12227
|
plannedProductionTime: number;
|
|
12228
12228
|
fixedTime?: boolean | null;
|
|
12229
|
-
resource?:
|
|
12229
|
+
resource?: ResourceDto | null;
|
|
12230
12230
|
plannedStart?: Date | null;
|
|
12231
12231
|
plannedEnd?: Date | null;
|
|
12232
12232
|
actualStart?: Date | null;
|
|
@@ -12338,17 +12338,17 @@ export interface IErpUserDto {
|
|
|
12338
12338
|
badgeId?: string | null;
|
|
12339
12339
|
email?: string | null;
|
|
12340
12340
|
}
|
|
12341
|
-
export declare class
|
|
12341
|
+
export declare class ResourceGroupDto implements IResourceGroupDto {
|
|
12342
12342
|
id: string;
|
|
12343
12343
|
name?: string | null;
|
|
12344
12344
|
resources: ProductionResourceDto[];
|
|
12345
12345
|
department?: DepartmentDto | null;
|
|
12346
|
-
constructor(data?:
|
|
12346
|
+
constructor(data?: IResourceGroupDto);
|
|
12347
12347
|
init(_data?: any): void;
|
|
12348
|
-
static fromJS(data: any):
|
|
12348
|
+
static fromJS(data: any): ResourceGroupDto;
|
|
12349
12349
|
toJSON(data?: any): any;
|
|
12350
12350
|
}
|
|
12351
|
-
export interface
|
|
12351
|
+
export interface IResourceGroupDto {
|
|
12352
12352
|
id: string;
|
|
12353
12353
|
name?: string | null;
|
|
12354
12354
|
resources: ProductionResourceDto[];
|
|
@@ -13536,7 +13536,7 @@ export declare class MeasurementFormInstanceDto implements IMeasurementFormInsta
|
|
|
13536
13536
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
13537
13537
|
progress: MeasurementFormProgressDto;
|
|
13538
13538
|
approvedReportUrl?: string | null;
|
|
13539
|
-
currentResource?:
|
|
13539
|
+
currentResource?: ResourceDto | null;
|
|
13540
13540
|
constructor(data?: IMeasurementFormInstanceDto);
|
|
13541
13541
|
init(_data?: any): void;
|
|
13542
13542
|
static fromJS(data: any): MeasurementFormInstanceDto;
|
|
@@ -13561,7 +13561,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
13561
13561
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
13562
13562
|
progress: MeasurementFormProgressDto;
|
|
13563
13563
|
approvedReportUrl?: string | null;
|
|
13564
|
-
currentResource?:
|
|
13564
|
+
currentResource?: ResourceDto | null;
|
|
13565
13565
|
}
|
|
13566
13566
|
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
13567
13567
|
export declare class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkorderSchemaDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2437,7 +2437,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
2437
2437
|
if (Array.isArray(resultData200)) {
|
|
2438
2438
|
result200 = [];
|
|
2439
2439
|
for (let item of resultData200)
|
|
2440
|
-
result200.push(
|
|
2440
|
+
result200.push(ApplicationResourcesResourceDto.fromJS(item));
|
|
2441
2441
|
}
|
|
2442
2442
|
return result200;
|
|
2443
2443
|
});
|
|
@@ -2478,7 +2478,7 @@ export class ResourcesClient extends AuthorizedApiBase {
|
|
|
2478
2478
|
if (Array.isArray(resultData200)) {
|
|
2479
2479
|
result200 = [];
|
|
2480
2480
|
for (let item of resultData200)
|
|
2481
|
-
result200.push(
|
|
2481
|
+
result200.push(ApplicationResourcesResourceGroupDto.fromJS(item));
|
|
2482
2482
|
}
|
|
2483
2483
|
return result200;
|
|
2484
2484
|
});
|
|
@@ -18336,7 +18336,7 @@ export class MesResourceClient extends AuthorizedApiBase {
|
|
|
18336
18336
|
if (Array.isArray(resultData200)) {
|
|
18337
18337
|
result200 = [];
|
|
18338
18338
|
for (let item of resultData200)
|
|
18339
|
-
result200.push(
|
|
18339
|
+
result200.push(ResourceGroupDto.fromJS(item));
|
|
18340
18340
|
}
|
|
18341
18341
|
return result200;
|
|
18342
18342
|
});
|
|
@@ -26956,7 +26956,7 @@ export class CncProgramInfoDto {
|
|
|
26956
26956
|
return data;
|
|
26957
26957
|
}
|
|
26958
26958
|
}
|
|
26959
|
-
export class
|
|
26959
|
+
export class ApplicationResourcesResourceDto {
|
|
26960
26960
|
constructor(data) {
|
|
26961
26961
|
if (data) {
|
|
26962
26962
|
for (var property in data) {
|
|
@@ -26984,7 +26984,7 @@ export class ResourceDto {
|
|
|
26984
26984
|
}
|
|
26985
26985
|
static fromJS(data) {
|
|
26986
26986
|
data = typeof data === 'object' ? data : {};
|
|
26987
|
-
let result = new
|
|
26987
|
+
let result = new ApplicationResourcesResourceDto();
|
|
26988
26988
|
result.init(data);
|
|
26989
26989
|
return result;
|
|
26990
26990
|
}
|
|
@@ -27006,7 +27006,7 @@ export class ResourceDto {
|
|
|
27006
27006
|
return data;
|
|
27007
27007
|
}
|
|
27008
27008
|
}
|
|
27009
|
-
export class
|
|
27009
|
+
export class ApplicationResourcesResourceGroupDto {
|
|
27010
27010
|
constructor(data) {
|
|
27011
27011
|
if (data) {
|
|
27012
27012
|
for (var property in data) {
|
|
@@ -27032,7 +27032,7 @@ export class ResourceGroupDto {
|
|
|
27032
27032
|
}
|
|
27033
27033
|
static fromJS(data) {
|
|
27034
27034
|
data = typeof data === 'object' ? data : {};
|
|
27035
|
-
let result = new
|
|
27035
|
+
let result = new ApplicationResourcesResourceGroupDto();
|
|
27036
27036
|
result.init(data);
|
|
27037
27037
|
return result;
|
|
27038
27038
|
}
|
|
@@ -27348,7 +27348,7 @@ export class ResourceStatesSummaryDto {
|
|
|
27348
27348
|
if (Array.isArray(_data["states"])) {
|
|
27349
27349
|
this.states = [];
|
|
27350
27350
|
for (let item of _data["states"])
|
|
27351
|
-
this.states.push(
|
|
27351
|
+
this.states.push(ApplicationResourceStatesStateDto.fromJS(item));
|
|
27352
27352
|
}
|
|
27353
27353
|
}
|
|
27354
27354
|
}
|
|
@@ -27368,7 +27368,7 @@ export class ResourceStatesSummaryDto {
|
|
|
27368
27368
|
return data;
|
|
27369
27369
|
}
|
|
27370
27370
|
}
|
|
27371
|
-
export class
|
|
27371
|
+
export class ApplicationResourceStatesStateDto {
|
|
27372
27372
|
constructor(data) {
|
|
27373
27373
|
if (data) {
|
|
27374
27374
|
for (var property in data) {
|
|
@@ -27386,7 +27386,7 @@ export class StateDto2 {
|
|
|
27386
27386
|
}
|
|
27387
27387
|
static fromJS(data) {
|
|
27388
27388
|
data = typeof data === 'object' ? data : {};
|
|
27389
|
-
let result = new
|
|
27389
|
+
let result = new ApplicationResourceStatesStateDto();
|
|
27390
27390
|
result.init(data);
|
|
27391
27391
|
return result;
|
|
27392
27392
|
}
|
|
@@ -30384,7 +30384,7 @@ export class WorkOrderTraceOperationDto {
|
|
|
30384
30384
|
}
|
|
30385
30385
|
}
|
|
30386
30386
|
if (!data) {
|
|
30387
|
-
this.resource = new
|
|
30387
|
+
this.resource = new ResourceDto();
|
|
30388
30388
|
this.materials = [];
|
|
30389
30389
|
}
|
|
30390
30390
|
}
|
|
@@ -30392,7 +30392,7 @@ export class WorkOrderTraceOperationDto {
|
|
|
30392
30392
|
if (_data) {
|
|
30393
30393
|
this.operation = _data["operation"];
|
|
30394
30394
|
this.description = _data["description"];
|
|
30395
|
-
this.resource = _data["resource"] ?
|
|
30395
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : new ResourceDto();
|
|
30396
30396
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
|
|
30397
30397
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
|
|
30398
30398
|
this.status = _data["status"];
|
|
@@ -30429,7 +30429,7 @@ export class WorkOrderTraceOperationDto {
|
|
|
30429
30429
|
return data;
|
|
30430
30430
|
}
|
|
30431
30431
|
}
|
|
30432
|
-
export class
|
|
30432
|
+
export class ResourceDto {
|
|
30433
30433
|
constructor(data) {
|
|
30434
30434
|
if (data) {
|
|
30435
30435
|
for (var property in data) {
|
|
@@ -30451,7 +30451,7 @@ export class ResourceDto2 {
|
|
|
30451
30451
|
}
|
|
30452
30452
|
static fromJS(data) {
|
|
30453
30453
|
data = typeof data === 'object' ? data : {};
|
|
30454
|
-
let result = new
|
|
30454
|
+
let result = new ResourceDto();
|
|
30455
30455
|
result.init(data);
|
|
30456
30456
|
return result;
|
|
30457
30457
|
}
|
|
@@ -41694,7 +41694,7 @@ export class ProductionOrderOperationDto {
|
|
|
41694
41694
|
this.usedSetupHours = _data["usedSetupHours"];
|
|
41695
41695
|
this.usedProductionHours = _data["usedProductionHours"];
|
|
41696
41696
|
this.fixedTime = _data["fixedTime"];
|
|
41697
|
-
this.resource = _data["resource"] ?
|
|
41697
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
41698
41698
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
|
|
41699
41699
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
|
|
41700
41700
|
this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
|
|
@@ -42171,7 +42171,7 @@ export class NonConformanceDto {
|
|
|
42171
42171
|
this.nonConformanceId = _data["nonConformanceId"];
|
|
42172
42172
|
this.companyId = _data["companyId"];
|
|
42173
42173
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
42174
|
-
this.resource = _data["resource"] ?
|
|
42174
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
42175
42175
|
this.type = _data["type"];
|
|
42176
42176
|
this.workOrder = _data["workOrder"];
|
|
42177
42177
|
this.title = _data["title"];
|
|
@@ -42443,7 +42443,7 @@ export class ProductionOrderOperationActivityDto {
|
|
|
42443
42443
|
this.operation = _data["operation"];
|
|
42444
42444
|
this.operationId = _data["operationId"];
|
|
42445
42445
|
this.description = _data["description"];
|
|
42446
|
-
this.resource = _data["resource"] ?
|
|
42446
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
42447
42447
|
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
|
|
42448
42448
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
42449
42449
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
@@ -43838,7 +43838,7 @@ export class WorkorderOperationDto {
|
|
|
43838
43838
|
this.plannedProductionTimePerPart = _data["plannedProductionTimePerPart"];
|
|
43839
43839
|
this.plannedProductionTime = _data["plannedProductionTime"];
|
|
43840
43840
|
this.fixedTime = _data["fixedTime"];
|
|
43841
|
-
this.resource = _data["resource"] ?
|
|
43841
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
43842
43842
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
|
|
43843
43843
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
|
|
43844
43844
|
this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
|
|
@@ -44054,7 +44054,7 @@ export class ErpUserDto {
|
|
|
44054
44054
|
return data;
|
|
44055
44055
|
}
|
|
44056
44056
|
}
|
|
44057
|
-
export class
|
|
44057
|
+
export class ResourceGroupDto {
|
|
44058
44058
|
constructor(data) {
|
|
44059
44059
|
if (data) {
|
|
44060
44060
|
for (var property in data) {
|
|
@@ -44080,7 +44080,7 @@ export class ResourceGroupDto2 {
|
|
|
44080
44080
|
}
|
|
44081
44081
|
static fromJS(data) {
|
|
44082
44082
|
data = typeof data === 'object' ? data : {};
|
|
44083
|
-
let result = new
|
|
44083
|
+
let result = new ResourceGroupDto();
|
|
44084
44084
|
result.init(data);
|
|
44085
44085
|
return result;
|
|
44086
44086
|
}
|
|
@@ -46378,7 +46378,7 @@ export class MeasurementFormInstanceDto {
|
|
|
46378
46378
|
}
|
|
46379
46379
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
46380
46380
|
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
46381
|
-
this.currentResource = _data["currentResource"] ?
|
|
46381
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined;
|
|
46382
46382
|
}
|
|
46383
46383
|
}
|
|
46384
46384
|
static fromJS(data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2625,9 +2625,9 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2625
2625
|
|
|
2626
2626
|
export interface IResourcesClient {
|
|
2627
2627
|
|
|
2628
|
-
listResources(onlyConnectedResources: boolean | undefined): Promise<
|
|
2628
|
+
listResources(onlyConnectedResources: boolean | undefined): Promise<ApplicationResourcesResourceDto[]>;
|
|
2629
2629
|
|
|
2630
|
-
listResourceGroups(): Promise<
|
|
2630
|
+
listResourceGroups(): Promise<ApplicationResourcesResourceGroupDto[]>;
|
|
2631
2631
|
|
|
2632
2632
|
createResourceGroup(request: CreateResourceGroup): Promise<CreateResourceGroupResponse>;
|
|
2633
2633
|
|
|
@@ -2679,7 +2679,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2679
2679
|
this.baseUrl = baseUrl ?? "";
|
|
2680
2680
|
}
|
|
2681
2681
|
|
|
2682
|
-
listResources(onlyConnectedResources: boolean | undefined): Promise<
|
|
2682
|
+
listResources(onlyConnectedResources: boolean | undefined): Promise<ApplicationResourcesResourceDto[]> {
|
|
2683
2683
|
let url_ = this.baseUrl + "/resources?";
|
|
2684
2684
|
if (onlyConnectedResources === null)
|
|
2685
2685
|
throw new globalThis.Error("The parameter 'onlyConnectedResources' cannot be null.");
|
|
@@ -2701,7 +2701,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2701
2701
|
});
|
|
2702
2702
|
}
|
|
2703
2703
|
|
|
2704
|
-
protected processListResources(response: Response): Promise<
|
|
2704
|
+
protected processListResources(response: Response): Promise<ApplicationResourcesResourceDto[]> {
|
|
2705
2705
|
const status = response.status;
|
|
2706
2706
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2707
2707
|
if (status === 200) {
|
|
@@ -2711,7 +2711,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2711
2711
|
if (Array.isArray(resultData200)) {
|
|
2712
2712
|
result200 = [] as any;
|
|
2713
2713
|
for (let item of resultData200)
|
|
2714
|
-
result200!.push(
|
|
2714
|
+
result200!.push(ApplicationResourcesResourceDto.fromJS(item));
|
|
2715
2715
|
}
|
|
2716
2716
|
return result200;
|
|
2717
2717
|
});
|
|
@@ -2720,10 +2720,10 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2720
2720
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2721
2721
|
});
|
|
2722
2722
|
}
|
|
2723
|
-
return Promise.resolve<
|
|
2723
|
+
return Promise.resolve<ApplicationResourcesResourceDto[]>(null as any);
|
|
2724
2724
|
}
|
|
2725
2725
|
|
|
2726
|
-
listResourceGroups(): Promise<
|
|
2726
|
+
listResourceGroups(): Promise<ApplicationResourcesResourceGroupDto[]> {
|
|
2727
2727
|
let url_ = this.baseUrl + "/resources/groups";
|
|
2728
2728
|
url_ = url_.replace(/[?&]$/, "");
|
|
2729
2729
|
|
|
@@ -2741,7 +2741,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2741
2741
|
});
|
|
2742
2742
|
}
|
|
2743
2743
|
|
|
2744
|
-
protected processListResourceGroups(response: Response): Promise<
|
|
2744
|
+
protected processListResourceGroups(response: Response): Promise<ApplicationResourcesResourceGroupDto[]> {
|
|
2745
2745
|
const status = response.status;
|
|
2746
2746
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2747
2747
|
if (status === 200) {
|
|
@@ -2751,7 +2751,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2751
2751
|
if (Array.isArray(resultData200)) {
|
|
2752
2752
|
result200 = [] as any;
|
|
2753
2753
|
for (let item of resultData200)
|
|
2754
|
-
result200!.push(
|
|
2754
|
+
result200!.push(ApplicationResourcesResourceGroupDto.fromJS(item));
|
|
2755
2755
|
}
|
|
2756
2756
|
return result200;
|
|
2757
2757
|
});
|
|
@@ -2760,7 +2760,7 @@ export class ResourcesClient extends AuthorizedApiBase implements IResourcesClie
|
|
|
2760
2760
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
|
-
return Promise.resolve<
|
|
2763
|
+
return Promise.resolve<ApplicationResourcesResourceGroupDto[]>(null as any);
|
|
2764
2764
|
}
|
|
2765
2765
|
|
|
2766
2766
|
createResourceGroup(request: CreateResourceGroup): Promise<CreateResourceGroupResponse> {
|
|
@@ -19504,7 +19504,7 @@ export class MesPurchaseOrderClient extends AuthorizedApiBase implements IMesPur
|
|
|
19504
19504
|
|
|
19505
19505
|
export interface IMesResourceClient {
|
|
19506
19506
|
|
|
19507
|
-
listResourceGroups(includeResources: boolean | undefined): Promise<
|
|
19507
|
+
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]>;
|
|
19508
19508
|
|
|
19509
19509
|
listResourceGroupResources(id: string): Promise<ProductionResourceDto[]>;
|
|
19510
19510
|
|
|
@@ -19522,7 +19522,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
19522
19522
|
this.baseUrl = baseUrl ?? "";
|
|
19523
19523
|
}
|
|
19524
19524
|
|
|
19525
|
-
listResourceGroups(includeResources: boolean | undefined): Promise<
|
|
19525
|
+
listResourceGroups(includeResources: boolean | undefined): Promise<ResourceGroupDto[]> {
|
|
19526
19526
|
let url_ = this.baseUrl + "/mes/resourcegroups?";
|
|
19527
19527
|
if (includeResources === null)
|
|
19528
19528
|
throw new globalThis.Error("The parameter 'includeResources' cannot be null.");
|
|
@@ -19544,7 +19544,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
19544
19544
|
});
|
|
19545
19545
|
}
|
|
19546
19546
|
|
|
19547
|
-
protected processListResourceGroups(response: Response): Promise<
|
|
19547
|
+
protected processListResourceGroups(response: Response): Promise<ResourceGroupDto[]> {
|
|
19548
19548
|
const status = response.status;
|
|
19549
19549
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19550
19550
|
if (status === 200) {
|
|
@@ -19554,7 +19554,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
19554
19554
|
if (Array.isArray(resultData200)) {
|
|
19555
19555
|
result200 = [] as any;
|
|
19556
19556
|
for (let item of resultData200)
|
|
19557
|
-
result200!.push(
|
|
19557
|
+
result200!.push(ResourceGroupDto.fromJS(item));
|
|
19558
19558
|
}
|
|
19559
19559
|
return result200;
|
|
19560
19560
|
});
|
|
@@ -19563,7 +19563,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
19563
19563
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19564
19564
|
});
|
|
19565
19565
|
}
|
|
19566
|
-
return Promise.resolve<
|
|
19566
|
+
return Promise.resolve<ResourceGroupDto[]>(null as any);
|
|
19567
19567
|
}
|
|
19568
19568
|
|
|
19569
19569
|
listResourceGroupResources(id: string): Promise<ProductionResourceDto[]> {
|
|
@@ -29700,7 +29700,7 @@ export interface ICncProgramInfoDto {
|
|
|
29700
29700
|
line?: string | null;
|
|
29701
29701
|
}
|
|
29702
29702
|
|
|
29703
|
-
export class
|
|
29703
|
+
export class ApplicationResourcesResourceDto implements IApplicationResourcesResourceDto {
|
|
29704
29704
|
id!: number;
|
|
29705
29705
|
externalId!: string;
|
|
29706
29706
|
name!: string;
|
|
@@ -29711,7 +29711,7 @@ export class ResourceDto implements IResourceDto {
|
|
|
29711
29711
|
companyId?: string | null;
|
|
29712
29712
|
resourceId!: string;
|
|
29713
29713
|
|
|
29714
|
-
constructor(data?:
|
|
29714
|
+
constructor(data?: IApplicationResourcesResourceDto) {
|
|
29715
29715
|
if (data) {
|
|
29716
29716
|
for (var property in data) {
|
|
29717
29717
|
if (data.hasOwnProperty(property))
|
|
@@ -29738,9 +29738,9 @@ export class ResourceDto implements IResourceDto {
|
|
|
29738
29738
|
}
|
|
29739
29739
|
}
|
|
29740
29740
|
|
|
29741
|
-
static fromJS(data: any):
|
|
29741
|
+
static fromJS(data: any): ApplicationResourcesResourceDto {
|
|
29742
29742
|
data = typeof data === 'object' ? data : {};
|
|
29743
|
-
let result = new
|
|
29743
|
+
let result = new ApplicationResourcesResourceDto();
|
|
29744
29744
|
result.init(data);
|
|
29745
29745
|
return result;
|
|
29746
29746
|
}
|
|
@@ -29764,7 +29764,7 @@ export class ResourceDto implements IResourceDto {
|
|
|
29764
29764
|
}
|
|
29765
29765
|
}
|
|
29766
29766
|
|
|
29767
|
-
export interface
|
|
29767
|
+
export interface IApplicationResourcesResourceDto {
|
|
29768
29768
|
id: number;
|
|
29769
29769
|
externalId: string;
|
|
29770
29770
|
name: string;
|
|
@@ -29776,13 +29776,13 @@ export interface IResourceDto {
|
|
|
29776
29776
|
resourceId: string;
|
|
29777
29777
|
}
|
|
29778
29778
|
|
|
29779
|
-
export class
|
|
29779
|
+
export class ApplicationResourcesResourceGroupDto implements IApplicationResourcesResourceGroupDto {
|
|
29780
29780
|
id!: string;
|
|
29781
29781
|
name!: string;
|
|
29782
29782
|
companyId?: string | null;
|
|
29783
29783
|
resources!: ResourceGroupMemberDto[];
|
|
29784
29784
|
|
|
29785
|
-
constructor(data?:
|
|
29785
|
+
constructor(data?: IApplicationResourcesResourceGroupDto) {
|
|
29786
29786
|
if (data) {
|
|
29787
29787
|
for (var property in data) {
|
|
29788
29788
|
if (data.hasOwnProperty(property))
|
|
@@ -29807,9 +29807,9 @@ export class ResourceGroupDto implements IResourceGroupDto {
|
|
|
29807
29807
|
}
|
|
29808
29808
|
}
|
|
29809
29809
|
|
|
29810
|
-
static fromJS(data: any):
|
|
29810
|
+
static fromJS(data: any): ApplicationResourcesResourceGroupDto {
|
|
29811
29811
|
data = typeof data === 'object' ? data : {};
|
|
29812
|
-
let result = new
|
|
29812
|
+
let result = new ApplicationResourcesResourceGroupDto();
|
|
29813
29813
|
result.init(data);
|
|
29814
29814
|
return result;
|
|
29815
29815
|
}
|
|
@@ -29828,7 +29828,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
|
|
|
29828
29828
|
}
|
|
29829
29829
|
}
|
|
29830
29830
|
|
|
29831
|
-
export interface
|
|
29831
|
+
export interface IApplicationResourcesResourceGroupDto {
|
|
29832
29832
|
id: string;
|
|
29833
29833
|
name: string;
|
|
29834
29834
|
companyId?: string | null;
|
|
@@ -30236,7 +30236,7 @@ export interface IDowntimeResourceStateDto {
|
|
|
30236
30236
|
}
|
|
30237
30237
|
|
|
30238
30238
|
export class ResourceStatesSummaryDto implements IResourceStatesSummaryDto {
|
|
30239
|
-
states!:
|
|
30239
|
+
states!: ApplicationResourceStatesStateDto[];
|
|
30240
30240
|
|
|
30241
30241
|
constructor(data?: IResourceStatesSummaryDto) {
|
|
30242
30242
|
if (data) {
|
|
@@ -30255,7 +30255,7 @@ export class ResourceStatesSummaryDto implements IResourceStatesSummaryDto {
|
|
|
30255
30255
|
if (Array.isArray(_data["states"])) {
|
|
30256
30256
|
this.states = [] as any;
|
|
30257
30257
|
for (let item of _data["states"])
|
|
30258
|
-
this.states!.push(
|
|
30258
|
+
this.states!.push(ApplicationResourceStatesStateDto.fromJS(item));
|
|
30259
30259
|
}
|
|
30260
30260
|
}
|
|
30261
30261
|
}
|
|
@@ -30279,15 +30279,15 @@ export class ResourceStatesSummaryDto implements IResourceStatesSummaryDto {
|
|
|
30279
30279
|
}
|
|
30280
30280
|
|
|
30281
30281
|
export interface IResourceStatesSummaryDto {
|
|
30282
|
-
states:
|
|
30282
|
+
states: ApplicationResourceStatesStateDto[];
|
|
30283
30283
|
}
|
|
30284
30284
|
|
|
30285
|
-
export class
|
|
30285
|
+
export class ApplicationResourceStatesStateDto implements IApplicationResourceStatesStateDto {
|
|
30286
30286
|
state!: string;
|
|
30287
30287
|
resourceState!: ResourceState;
|
|
30288
30288
|
seconds!: number;
|
|
30289
30289
|
|
|
30290
|
-
constructor(data?:
|
|
30290
|
+
constructor(data?: IApplicationResourceStatesStateDto) {
|
|
30291
30291
|
if (data) {
|
|
30292
30292
|
for (var property in data) {
|
|
30293
30293
|
if (data.hasOwnProperty(property))
|
|
@@ -30304,9 +30304,9 @@ export class StateDto2 implements IStateDto2 {
|
|
|
30304
30304
|
}
|
|
30305
30305
|
}
|
|
30306
30306
|
|
|
30307
|
-
static fromJS(data: any):
|
|
30307
|
+
static fromJS(data: any): ApplicationResourceStatesStateDto {
|
|
30308
30308
|
data = typeof data === 'object' ? data : {};
|
|
30309
|
-
let result = new
|
|
30309
|
+
let result = new ApplicationResourceStatesStateDto();
|
|
30310
30310
|
result.init(data);
|
|
30311
30311
|
return result;
|
|
30312
30312
|
}
|
|
@@ -30320,7 +30320,7 @@ export class StateDto2 implements IStateDto2 {
|
|
|
30320
30320
|
}
|
|
30321
30321
|
}
|
|
30322
30322
|
|
|
30323
|
-
export interface
|
|
30323
|
+
export interface IApplicationResourceStatesStateDto {
|
|
30324
30324
|
state: string;
|
|
30325
30325
|
resourceState: ResourceState;
|
|
30326
30326
|
seconds: number;
|
|
@@ -34716,7 +34716,7 @@ export type TraceIncludeStatus = "None" | "ForceInclude" | "Exclude";
|
|
|
34716
34716
|
export class WorkOrderTraceOperationDto implements IWorkOrderTraceOperationDto {
|
|
34717
34717
|
operation!: number;
|
|
34718
34718
|
description!: string;
|
|
34719
|
-
resource!:
|
|
34719
|
+
resource!: ResourceDto;
|
|
34720
34720
|
plannedStart?: Date | null;
|
|
34721
34721
|
plannedEnd?: Date | null;
|
|
34722
34722
|
status!: OperationStatusDto;
|
|
@@ -34732,7 +34732,7 @@ export class WorkOrderTraceOperationDto implements IWorkOrderTraceOperationDto {
|
|
|
34732
34732
|
}
|
|
34733
34733
|
}
|
|
34734
34734
|
if (!data) {
|
|
34735
|
-
this.resource = new
|
|
34735
|
+
this.resource = new ResourceDto();
|
|
34736
34736
|
this.materials = [];
|
|
34737
34737
|
}
|
|
34738
34738
|
}
|
|
@@ -34741,7 +34741,7 @@ export class WorkOrderTraceOperationDto implements IWorkOrderTraceOperationDto {
|
|
|
34741
34741
|
if (_data) {
|
|
34742
34742
|
this.operation = _data["operation"];
|
|
34743
34743
|
this.description = _data["description"];
|
|
34744
|
-
this.resource = _data["resource"] ?
|
|
34744
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : new ResourceDto();
|
|
34745
34745
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined as any;
|
|
34746
34746
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined as any;
|
|
34747
34747
|
this.status = _data["status"];
|
|
@@ -34784,7 +34784,7 @@ export class WorkOrderTraceOperationDto implements IWorkOrderTraceOperationDto {
|
|
|
34784
34784
|
export interface IWorkOrderTraceOperationDto {
|
|
34785
34785
|
operation: number;
|
|
34786
34786
|
description: string;
|
|
34787
|
-
resource:
|
|
34787
|
+
resource: ResourceDto;
|
|
34788
34788
|
plannedStart?: Date | null;
|
|
34789
34789
|
plannedEnd?: Date | null;
|
|
34790
34790
|
status: OperationStatusDto;
|
|
@@ -34793,7 +34793,7 @@ export interface IWorkOrderTraceOperationDto {
|
|
|
34793
34793
|
materials: WorkOrderTraceMaterialDto[];
|
|
34794
34794
|
}
|
|
34795
34795
|
|
|
34796
|
-
export class
|
|
34796
|
+
export class ResourceDto implements IResourceDto {
|
|
34797
34797
|
id!: string;
|
|
34798
34798
|
name?: string | null;
|
|
34799
34799
|
external!: boolean;
|
|
@@ -34802,7 +34802,7 @@ export class ResourceDto2 implements IResourceDto2 {
|
|
|
34802
34802
|
resourceGroupId?: string | null;
|
|
34803
34803
|
department?: DepartmentDto | null;
|
|
34804
34804
|
|
|
34805
|
-
constructor(data?:
|
|
34805
|
+
constructor(data?: IResourceDto) {
|
|
34806
34806
|
if (data) {
|
|
34807
34807
|
for (var property in data) {
|
|
34808
34808
|
if (data.hasOwnProperty(property))
|
|
@@ -34823,9 +34823,9 @@ export class ResourceDto2 implements IResourceDto2 {
|
|
|
34823
34823
|
}
|
|
34824
34824
|
}
|
|
34825
34825
|
|
|
34826
|
-
static fromJS(data: any):
|
|
34826
|
+
static fromJS(data: any): ResourceDto {
|
|
34827
34827
|
data = typeof data === 'object' ? data : {};
|
|
34828
|
-
let result = new
|
|
34828
|
+
let result = new ResourceDto();
|
|
34829
34829
|
result.init(data);
|
|
34830
34830
|
return result;
|
|
34831
34831
|
}
|
|
@@ -34843,7 +34843,7 @@ export class ResourceDto2 implements IResourceDto2 {
|
|
|
34843
34843
|
}
|
|
34844
34844
|
}
|
|
34845
34845
|
|
|
34846
|
-
export interface
|
|
34846
|
+
export interface IResourceDto {
|
|
34847
34847
|
id: string;
|
|
34848
34848
|
name?: string | null;
|
|
34849
34849
|
external: boolean;
|
|
@@ -51574,7 +51574,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
51574
51574
|
usedSetupHours?: number | null;
|
|
51575
51575
|
usedProductionHours?: number;
|
|
51576
51576
|
fixedTime?: boolean | null;
|
|
51577
|
-
resource?:
|
|
51577
|
+
resource?: ResourceDto | null;
|
|
51578
51578
|
plannedStart?: Date | null;
|
|
51579
51579
|
plannedEnd?: Date | null;
|
|
51580
51580
|
actualStart?: Date | null;
|
|
@@ -51618,7 +51618,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
51618
51618
|
this.usedSetupHours = _data["usedSetupHours"];
|
|
51619
51619
|
this.usedProductionHours = _data["usedProductionHours"];
|
|
51620
51620
|
this.fixedTime = _data["fixedTime"];
|
|
51621
|
-
this.resource = _data["resource"] ?
|
|
51621
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined as any;
|
|
51622
51622
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined as any;
|
|
51623
51623
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined as any;
|
|
51624
51624
|
this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined as any;
|
|
@@ -51699,7 +51699,7 @@ export interface IProductionOrderOperationDto {
|
|
|
51699
51699
|
usedSetupHours?: number | null;
|
|
51700
51700
|
usedProductionHours?: number;
|
|
51701
51701
|
fixedTime?: boolean | null;
|
|
51702
|
-
resource?:
|
|
51702
|
+
resource?: ResourceDto | null;
|
|
51703
51703
|
plannedStart?: Date | null;
|
|
51704
51704
|
plannedEnd?: Date | null;
|
|
51705
51705
|
actualStart?: Date | null;
|
|
@@ -52331,7 +52331,7 @@ export class NonConformanceDto implements INonConformanceDto {
|
|
|
52331
52331
|
nonConformanceId!: string;
|
|
52332
52332
|
companyId?: string | null;
|
|
52333
52333
|
part?: PartDto | null;
|
|
52334
|
-
resource?:
|
|
52334
|
+
resource?: ResourceDto | null;
|
|
52335
52335
|
type!: NonConformanceType;
|
|
52336
52336
|
workOrder?: string | null;
|
|
52337
52337
|
title?: string | null;
|
|
@@ -52362,7 +52362,7 @@ export class NonConformanceDto implements INonConformanceDto {
|
|
|
52362
52362
|
this.nonConformanceId = _data["nonConformanceId"];
|
|
52363
52363
|
this.companyId = _data["companyId"];
|
|
52364
52364
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
52365
|
-
this.resource = _data["resource"] ?
|
|
52365
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined as any;
|
|
52366
52366
|
this.type = _data["type"];
|
|
52367
52367
|
this.workOrder = _data["workOrder"];
|
|
52368
52368
|
this.title = _data["title"];
|
|
@@ -52417,7 +52417,7 @@ export interface INonConformanceDto {
|
|
|
52417
52417
|
nonConformanceId: string;
|
|
52418
52418
|
companyId?: string | null;
|
|
52419
52419
|
part?: PartDto | null;
|
|
52420
|
-
resource?:
|
|
52420
|
+
resource?: ResourceDto | null;
|
|
52421
52421
|
type: NonConformanceType;
|
|
52422
52422
|
workOrder?: string | null;
|
|
52423
52423
|
title?: string | null;
|
|
@@ -52743,7 +52743,7 @@ export class ProductionOrderOperationActivityDto implements IProductionOrderOper
|
|
|
52743
52743
|
operation!: number;
|
|
52744
52744
|
operationId!: string;
|
|
52745
52745
|
description?: string | null;
|
|
52746
|
-
resource?:
|
|
52746
|
+
resource?: ResourceDto | null;
|
|
52747
52747
|
user?: UserDto | null;
|
|
52748
52748
|
startTime!: Date;
|
|
52749
52749
|
endTime?: Date | null;
|
|
@@ -52768,7 +52768,7 @@ export class ProductionOrderOperationActivityDto implements IProductionOrderOper
|
|
|
52768
52768
|
this.operation = _data["operation"];
|
|
52769
52769
|
this.operationId = _data["operationId"];
|
|
52770
52770
|
this.description = _data["description"];
|
|
52771
|
-
this.resource = _data["resource"] ?
|
|
52771
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined as any;
|
|
52772
52772
|
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined as any;
|
|
52773
52773
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
52774
52774
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
|
|
@@ -52811,7 +52811,7 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
52811
52811
|
operation: number;
|
|
52812
52812
|
operationId: string;
|
|
52813
52813
|
description?: string | null;
|
|
52814
|
-
resource?:
|
|
52814
|
+
resource?: ResourceDto | null;
|
|
52815
52815
|
user?: UserDto | null;
|
|
52816
52816
|
startTime: Date;
|
|
52817
52817
|
endTime?: Date | null;
|
|
@@ -54763,7 +54763,7 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
54763
54763
|
plannedProductionTimePerPart!: number;
|
|
54764
54764
|
plannedProductionTime!: number;
|
|
54765
54765
|
fixedTime?: boolean | null;
|
|
54766
|
-
resource?:
|
|
54766
|
+
resource?: ResourceDto | null;
|
|
54767
54767
|
plannedStart?: Date | null;
|
|
54768
54768
|
plannedEnd?: Date | null;
|
|
54769
54769
|
actualStart?: Date | null;
|
|
@@ -54797,7 +54797,7 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
|
|
|
54797
54797
|
this.plannedProductionTimePerPart = _data["plannedProductionTimePerPart"];
|
|
54798
54798
|
this.plannedProductionTime = _data["plannedProductionTime"];
|
|
54799
54799
|
this.fixedTime = _data["fixedTime"];
|
|
54800
|
-
this.resource = _data["resource"] ?
|
|
54800
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined as any;
|
|
54801
54801
|
this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined as any;
|
|
54802
54802
|
this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined as any;
|
|
54803
54803
|
this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined as any;
|
|
@@ -54860,7 +54860,7 @@ export interface IWorkorderOperationDto {
|
|
|
54860
54860
|
plannedProductionTimePerPart: number;
|
|
54861
54861
|
plannedProductionTime: number;
|
|
54862
54862
|
fixedTime?: boolean | null;
|
|
54863
|
-
resource?:
|
|
54863
|
+
resource?: ResourceDto | null;
|
|
54864
54864
|
plannedStart?: Date | null;
|
|
54865
54865
|
plannedEnd?: Date | null;
|
|
54866
54866
|
actualStart?: Date | null;
|
|
@@ -55138,13 +55138,13 @@ export interface IErpUserDto {
|
|
|
55138
55138
|
email?: string | null;
|
|
55139
55139
|
}
|
|
55140
55140
|
|
|
55141
|
-
export class
|
|
55141
|
+
export class ResourceGroupDto implements IResourceGroupDto {
|
|
55142
55142
|
id!: string;
|
|
55143
55143
|
name?: string | null;
|
|
55144
55144
|
resources!: ProductionResourceDto[];
|
|
55145
55145
|
department?: DepartmentDto | null;
|
|
55146
55146
|
|
|
55147
|
-
constructor(data?:
|
|
55147
|
+
constructor(data?: IResourceGroupDto) {
|
|
55148
55148
|
if (data) {
|
|
55149
55149
|
for (var property in data) {
|
|
55150
55150
|
if (data.hasOwnProperty(property))
|
|
@@ -55169,9 +55169,9 @@ export class ResourceGroupDto2 implements IResourceGroupDto2 {
|
|
|
55169
55169
|
}
|
|
55170
55170
|
}
|
|
55171
55171
|
|
|
55172
|
-
static fromJS(data: any):
|
|
55172
|
+
static fromJS(data: any): ResourceGroupDto {
|
|
55173
55173
|
data = typeof data === 'object' ? data : {};
|
|
55174
|
-
let result = new
|
|
55174
|
+
let result = new ResourceGroupDto();
|
|
55175
55175
|
result.init(data);
|
|
55176
55176
|
return result;
|
|
55177
55177
|
}
|
|
@@ -55190,7 +55190,7 @@ export class ResourceGroupDto2 implements IResourceGroupDto2 {
|
|
|
55190
55190
|
}
|
|
55191
55191
|
}
|
|
55192
55192
|
|
|
55193
|
-
export interface
|
|
55193
|
+
export interface IResourceGroupDto {
|
|
55194
55194
|
id: string;
|
|
55195
55195
|
name?: string | null;
|
|
55196
55196
|
resources: ProductionResourceDto[];
|
|
@@ -58618,7 +58618,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
58618
58618
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
58619
58619
|
progress!: MeasurementFormProgressDto;
|
|
58620
58620
|
approvedReportUrl?: string | null;
|
|
58621
|
-
currentResource?:
|
|
58621
|
+
currentResource?: ResourceDto | null;
|
|
58622
58622
|
|
|
58623
58623
|
constructor(data?: IMeasurementFormInstanceDto) {
|
|
58624
58624
|
if (data) {
|
|
@@ -58671,7 +58671,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
58671
58671
|
}
|
|
58672
58672
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
58673
58673
|
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
58674
|
-
this.currentResource = _data["currentResource"] ?
|
|
58674
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined as any;
|
|
58675
58675
|
}
|
|
58676
58676
|
}
|
|
58677
58677
|
|
|
@@ -58742,7 +58742,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
58742
58742
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
58743
58743
|
progress: MeasurementFormProgressDto;
|
|
58744
58744
|
approvedReportUrl?: string | null;
|
|
58745
|
-
currentResource?:
|
|
58745
|
+
currentResource?: ResourceDto | null;
|
|
58746
58746
|
}
|
|
58747
58747
|
|
|
58748
58748
|
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|