@ignos/api-client 20250710.0.12165-alpha → 20250711.0.12190-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 +26 -101
- package/lib/ignosportal-api.js +25 -217
- package/package.json +1 -1
- package/src/ignosportal-api.ts +49 -315
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2268,9 +2268,9 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2268
2268
|
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2269
2269
|
disapproveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2270
2270
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2271
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string,
|
|
2271
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2272
2272
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
2273
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined,
|
|
2273
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
2274
2274
|
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
2275
2275
|
saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
|
|
2276
2276
|
saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
|
|
@@ -2286,7 +2286,6 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2286
2286
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
2287
2287
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
2288
2288
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2289
|
-
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2290
2289
|
}
|
|
2291
2290
|
export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
|
|
2292
2291
|
private http;
|
|
@@ -2323,11 +2322,11 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2323
2322
|
protected processDisapproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2324
2323
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2325
2324
|
protected processCancelMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2326
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string,
|
|
2325
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2327
2326
|
protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2328
2327
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
2329
2328
|
protected processGetWorkorderMeasurementFormProgress(response: Response): Promise<MeasurementFormInstanceProgressDto>;
|
|
2330
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined,
|
|
2329
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
2331
2330
|
protected processGetAuditLog(response: Response): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
2332
2331
|
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
2333
2332
|
protected processGetValidationRules(response: Response): Promise<ValidationRuleDto[]>;
|
|
@@ -2359,8 +2358,6 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2359
2358
|
protected processGetSchemaInstanceElements(response: Response): Promise<SchemaInstanceElementDto[]>;
|
|
2360
2359
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2361
2360
|
protected processToggleSchemaInstanceElementDocumentedExternallyOverride(response: Response): Promise<void>;
|
|
2362
|
-
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2363
|
-
protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2364
2361
|
}
|
|
2365
2362
|
export interface IElectricalClient {
|
|
2366
2363
|
listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
|
|
@@ -13155,8 +13152,8 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
|
13155
13152
|
serialNumber?: string | null;
|
|
13156
13153
|
}
|
|
13157
13154
|
export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
13158
|
-
sequences
|
|
13159
|
-
serialNumbers
|
|
13155
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
13156
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
13160
13157
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
13161
13158
|
constructor(data?: IUpdateMeasurementFormInstanceRequest);
|
|
13162
13159
|
init(_data?: any): void;
|
|
@@ -13164,8 +13161,8 @@ export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeas
|
|
|
13164
13161
|
toJSON(data?: any): any;
|
|
13165
13162
|
}
|
|
13166
13163
|
export interface IUpdateMeasurementFormInstanceRequest {
|
|
13167
|
-
sequences
|
|
13168
|
-
serialNumbers
|
|
13164
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
13165
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
13169
13166
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
13170
13167
|
}
|
|
13171
13168
|
export declare class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
|
|
@@ -13289,7 +13286,8 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
13289
13286
|
export declare class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
|
|
13290
13287
|
bonus?: string | null;
|
|
13291
13288
|
completed: boolean;
|
|
13292
|
-
sequence
|
|
13289
|
+
sequence?: string | null;
|
|
13290
|
+
serialNumber: string;
|
|
13293
13291
|
value?: string | null;
|
|
13294
13292
|
updatedByUser: string;
|
|
13295
13293
|
updatedDate: Date;
|
|
@@ -13305,7 +13303,8 @@ export declare class MeasurementFormElementValueDto implements IMeasurementFormE
|
|
|
13305
13303
|
export interface IMeasurementFormElementValueDto {
|
|
13306
13304
|
bonus?: string | null;
|
|
13307
13305
|
completed: boolean;
|
|
13308
|
-
sequence
|
|
13306
|
+
sequence?: string | null;
|
|
13307
|
+
serialNumber: string;
|
|
13309
13308
|
value?: string | null;
|
|
13310
13309
|
updatedByUser: string;
|
|
13311
13310
|
updatedDate: Date;
|
|
@@ -13405,7 +13404,8 @@ export declare class SaveValueRequest implements ISaveValueRequest {
|
|
|
13405
13404
|
resourceName?: string | null;
|
|
13406
13405
|
schemaId: string;
|
|
13407
13406
|
elementId: string;
|
|
13408
|
-
sequence
|
|
13407
|
+
sequence?: string | null;
|
|
13408
|
+
serialNumber: string;
|
|
13409
13409
|
value?: string | null;
|
|
13410
13410
|
bonus?: string | null;
|
|
13411
13411
|
constructor(data?: ISaveValueRequest);
|
|
@@ -13418,14 +13418,16 @@ export interface ISaveValueRequest {
|
|
|
13418
13418
|
resourceName?: string | null;
|
|
13419
13419
|
schemaId: string;
|
|
13420
13420
|
elementId: string;
|
|
13421
|
-
sequence
|
|
13421
|
+
sequence?: string | null;
|
|
13422
|
+
serialNumber: string;
|
|
13422
13423
|
value?: string | null;
|
|
13423
13424
|
bonus?: string | null;
|
|
13424
13425
|
}
|
|
13425
13426
|
export declare class SaveToolRequest implements ISaveToolRequest {
|
|
13426
13427
|
schemaId: string;
|
|
13427
13428
|
elementId: string;
|
|
13428
|
-
sequence
|
|
13429
|
+
sequence?: string | null;
|
|
13430
|
+
serialNumber: string;
|
|
13429
13431
|
tools?: string[] | null;
|
|
13430
13432
|
force?: boolean;
|
|
13431
13433
|
constructor(data?: ISaveToolRequest);
|
|
@@ -13436,14 +13438,16 @@ export declare class SaveToolRequest implements ISaveToolRequest {
|
|
|
13436
13438
|
export interface ISaveToolRequest {
|
|
13437
13439
|
schemaId: string;
|
|
13438
13440
|
elementId: string;
|
|
13439
|
-
sequence
|
|
13441
|
+
sequence?: string | null;
|
|
13442
|
+
serialNumber: string;
|
|
13440
13443
|
tools?: string[] | null;
|
|
13441
13444
|
force?: boolean;
|
|
13442
13445
|
}
|
|
13443
13446
|
export declare class SaveCommentRequest implements ISaveCommentRequest {
|
|
13444
13447
|
schemaId: string;
|
|
13445
13448
|
elementId: string;
|
|
13446
|
-
sequence
|
|
13449
|
+
sequence?: string | null;
|
|
13450
|
+
serialNumber: string;
|
|
13447
13451
|
comment?: string | null;
|
|
13448
13452
|
constructor(data?: ISaveCommentRequest);
|
|
13449
13453
|
init(_data?: any): void;
|
|
@@ -13453,7 +13457,8 @@ export declare class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
13453
13457
|
export interface ISaveCommentRequest {
|
|
13454
13458
|
schemaId: string;
|
|
13455
13459
|
elementId: string;
|
|
13456
|
-
sequence
|
|
13460
|
+
sequence?: string | null;
|
|
13461
|
+
serialNumber: string;
|
|
13457
13462
|
comment?: string | null;
|
|
13458
13463
|
}
|
|
13459
13464
|
export declare class BatchInsertValuesResponseDto implements IBatchInsertValuesResponseDto {
|
|
@@ -13584,6 +13589,7 @@ export declare class ExportDimensionReportRequest implements IExportDimensionRep
|
|
|
13584
13589
|
includeAllSchemasAndElements?: boolean | null;
|
|
13585
13590
|
createBlankReport?: boolean | null;
|
|
13586
13591
|
sequences?: string[] | null;
|
|
13592
|
+
serialNumbers?: string[] | null;
|
|
13587
13593
|
customerPO?: string | null;
|
|
13588
13594
|
workOrder?: string | null;
|
|
13589
13595
|
comment?: string | null;
|
|
@@ -13598,6 +13604,7 @@ export interface IExportDimensionReportRequest {
|
|
|
13598
13604
|
includeAllSchemasAndElements?: boolean | null;
|
|
13599
13605
|
createBlankReport?: boolean | null;
|
|
13600
13606
|
sequences?: string[] | null;
|
|
13607
|
+
serialNumbers?: string[] | null;
|
|
13601
13608
|
customerPO?: string | null;
|
|
13602
13609
|
workOrder?: string | null;
|
|
13603
13610
|
comment?: string | null;
|
|
@@ -13626,88 +13633,6 @@ export interface ISchemaInstanceElementDto {
|
|
|
13626
13633
|
balloonId: string;
|
|
13627
13634
|
disabled: boolean;
|
|
13628
13635
|
}
|
|
13629
|
-
export declare class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
|
|
13630
|
-
partInfo: ImportMeasurementFormPartDto;
|
|
13631
|
-
customerId?: string | null;
|
|
13632
|
-
customerGroupId?: string | null;
|
|
13633
|
-
customerName?: string | null;
|
|
13634
|
-
externalOrderNumber?: string | null;
|
|
13635
|
-
quantity: number;
|
|
13636
|
-
sequences: WorkorderImportTraceItemDto[];
|
|
13637
|
-
status: MeasurementFormInstanceStatus;
|
|
13638
|
-
statusChangedBy?: string | null;
|
|
13639
|
-
statusChangedDate?: Date | null;
|
|
13640
|
-
created: Date;
|
|
13641
|
-
createdBy?: string | null;
|
|
13642
|
-
updatedBy?: string | null;
|
|
13643
|
-
schemas: ImportMeasurementSchemaInstanceDto[];
|
|
13644
|
-
constructor(data?: IImportMeasurementFormInstanceRequest);
|
|
13645
|
-
init(_data?: any): void;
|
|
13646
|
-
static fromJS(data: any): ImportMeasurementFormInstanceRequest;
|
|
13647
|
-
toJSON(data?: any): any;
|
|
13648
|
-
}
|
|
13649
|
-
export interface IImportMeasurementFormInstanceRequest {
|
|
13650
|
-
partInfo: ImportMeasurementFormPartDto;
|
|
13651
|
-
customerId?: string | null;
|
|
13652
|
-
customerGroupId?: string | null;
|
|
13653
|
-
customerName?: string | null;
|
|
13654
|
-
externalOrderNumber?: string | null;
|
|
13655
|
-
quantity: number;
|
|
13656
|
-
sequences: WorkorderImportTraceItemDto[];
|
|
13657
|
-
status: MeasurementFormInstanceStatus;
|
|
13658
|
-
statusChangedBy?: string | null;
|
|
13659
|
-
statusChangedDate?: Date | null;
|
|
13660
|
-
created: Date;
|
|
13661
|
-
createdBy?: string | null;
|
|
13662
|
-
updatedBy?: string | null;
|
|
13663
|
-
schemas: ImportMeasurementSchemaInstanceDto[];
|
|
13664
|
-
}
|
|
13665
|
-
export declare class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
|
|
13666
|
-
partNumber?: string | null;
|
|
13667
|
-
partName?: string | null;
|
|
13668
|
-
partRevision?: string | null;
|
|
13669
|
-
drawing: string;
|
|
13670
|
-
drawingRevision?: string | null;
|
|
13671
|
-
constructor(data?: IImportMeasurementFormPartDto);
|
|
13672
|
-
init(_data?: any): void;
|
|
13673
|
-
static fromJS(data: any): ImportMeasurementFormPartDto;
|
|
13674
|
-
toJSON(data?: any): any;
|
|
13675
|
-
}
|
|
13676
|
-
export interface IImportMeasurementFormPartDto {
|
|
13677
|
-
partNumber?: string | null;
|
|
13678
|
-
partName?: string | null;
|
|
13679
|
-
partRevision?: string | null;
|
|
13680
|
-
drawing: string;
|
|
13681
|
-
drawingRevision?: string | null;
|
|
13682
|
-
}
|
|
13683
|
-
export declare class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
|
|
13684
|
-
sequence: string;
|
|
13685
|
-
serialNumber?: string | null;
|
|
13686
|
-
lot?: string | null;
|
|
13687
|
-
active: boolean;
|
|
13688
|
-
constructor(data?: IWorkorderImportTraceItemDto);
|
|
13689
|
-
init(_data?: any): void;
|
|
13690
|
-
static fromJS(data: any): WorkorderImportTraceItemDto;
|
|
13691
|
-
toJSON(data?: any): any;
|
|
13692
|
-
}
|
|
13693
|
-
export interface IWorkorderImportTraceItemDto {
|
|
13694
|
-
sequence: string;
|
|
13695
|
-
serialNumber?: string | null;
|
|
13696
|
-
lot?: string | null;
|
|
13697
|
-
active: boolean;
|
|
13698
|
-
}
|
|
13699
|
-
export declare class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
|
|
13700
|
-
id: string;
|
|
13701
|
-
version: number;
|
|
13702
|
-
constructor(data?: IImportMeasurementSchemaInstanceDto);
|
|
13703
|
-
init(_data?: any): void;
|
|
13704
|
-
static fromJS(data: any): ImportMeasurementSchemaInstanceDto;
|
|
13705
|
-
toJSON(data?: any): any;
|
|
13706
|
-
}
|
|
13707
|
-
export interface IImportMeasurementSchemaInstanceDto {
|
|
13708
|
-
id: string;
|
|
13709
|
-
version: number;
|
|
13710
|
-
}
|
|
13711
13636
|
export declare class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
13712
13637
|
id: string;
|
|
13713
13638
|
name: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -19918,7 +19918,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
19918
19918
|
}
|
|
19919
19919
|
return Promise.resolve(null);
|
|
19920
19920
|
}
|
|
19921
|
-
getMeasurementFormInstanceSchema(id, schemaId,
|
|
19921
|
+
getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
|
|
19922
19922
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
19923
19923
|
if (id === undefined || id === null)
|
|
19924
19924
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -19926,8 +19926,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
19926
19926
|
if (schemaId === undefined || schemaId === null)
|
|
19927
19927
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
19928
19928
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
19929
|
-
if (
|
|
19930
|
-
url_ += "
|
|
19929
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
19930
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
19931
19931
|
if (tenantId !== undefined && tenantId !== null)
|
|
19932
19932
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
19933
19933
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20007,7 +20007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20007
20007
|
}
|
|
20008
20008
|
return Promise.resolve(null);
|
|
20009
20009
|
}
|
|
20010
|
-
getAuditLog(id, tenantId, schemaId,
|
|
20010
|
+
getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
|
|
20011
20011
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
20012
20012
|
if (id === undefined || id === null)
|
|
20013
20013
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -20016,8 +20016,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20016
20016
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20017
20017
|
if (schemaId !== undefined && schemaId !== null)
|
|
20018
20018
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
20019
|
-
if (
|
|
20020
|
-
url_ += "
|
|
20019
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
20020
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
20021
20021
|
if (elementId !== undefined && elementId !== null)
|
|
20022
20022
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
20023
20023
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20707,49 +20707,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
20707
20707
|
}
|
|
20708
20708
|
return Promise.resolve(null);
|
|
20709
20709
|
}
|
|
20710
|
-
importMeasurementFormInstance(id, request) {
|
|
20711
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
20712
|
-
if (id === undefined || id === null)
|
|
20713
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
20714
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20715
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
20716
|
-
const content_ = JSON.stringify(request);
|
|
20717
|
-
let options_ = {
|
|
20718
|
-
body: content_,
|
|
20719
|
-
method: "POST",
|
|
20720
|
-
headers: {
|
|
20721
|
-
"Content-Type": "application/json",
|
|
20722
|
-
"Accept": "application/json"
|
|
20723
|
-
}
|
|
20724
|
-
};
|
|
20725
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20726
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
20727
|
-
}).then((_response) => {
|
|
20728
|
-
return this.processImportMeasurementFormInstance(_response);
|
|
20729
|
-
});
|
|
20730
|
-
}
|
|
20731
|
-
processImportMeasurementFormInstance(response) {
|
|
20732
|
-
const status = response.status;
|
|
20733
|
-
let _headers = {};
|
|
20734
|
-
if (response.headers && response.headers.forEach) {
|
|
20735
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
20736
|
-
}
|
|
20737
|
-
;
|
|
20738
|
-
if (status === 200) {
|
|
20739
|
-
return response.text().then((_responseText) => {
|
|
20740
|
-
let result200 = null;
|
|
20741
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
20742
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
20743
|
-
return result200;
|
|
20744
|
-
});
|
|
20745
|
-
}
|
|
20746
|
-
else if (status !== 200 && status !== 204) {
|
|
20747
|
-
return response.text().then((_responseText) => {
|
|
20748
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20749
|
-
});
|
|
20750
|
-
}
|
|
20751
|
-
return Promise.resolve(null);
|
|
20752
|
-
}
|
|
20753
20710
|
}
|
|
20754
20711
|
export class ElectricalClient extends AuthorizedApiBase {
|
|
20755
20712
|
constructor(configuration, baseUrl, http) {
|
|
@@ -44050,7 +44007,7 @@ export class UpdateMeasurementFormInstanceRequest {
|
|
|
44050
44007
|
}
|
|
44051
44008
|
}
|
|
44052
44009
|
if (!data) {
|
|
44053
|
-
this.
|
|
44010
|
+
this.serialNumbers = [];
|
|
44054
44011
|
this.suppliers = [];
|
|
44055
44012
|
}
|
|
44056
44013
|
}
|
|
@@ -44304,6 +44261,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44304
44261
|
this.bonus = _data["bonus"];
|
|
44305
44262
|
this.completed = _data["completed"];
|
|
44306
44263
|
this.sequence = _data["sequence"];
|
|
44264
|
+
this.serialNumber = _data["serialNumber"];
|
|
44307
44265
|
this.value = _data["value"];
|
|
44308
44266
|
this.updatedByUser = _data["updatedByUser"];
|
|
44309
44267
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : undefined;
|
|
@@ -44328,6 +44286,7 @@ export class MeasurementFormElementValueDto {
|
|
|
44328
44286
|
data["bonus"] = this.bonus;
|
|
44329
44287
|
data["completed"] = this.completed;
|
|
44330
44288
|
data["sequence"] = this.sequence;
|
|
44289
|
+
data["serialNumber"] = this.serialNumber;
|
|
44331
44290
|
data["value"] = this.value;
|
|
44332
44291
|
data["updatedByUser"] = this.updatedByUser;
|
|
44333
44292
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : undefined;
|
|
@@ -44554,6 +44513,7 @@ export class SaveValueRequest {
|
|
|
44554
44513
|
this.schemaId = _data["schemaId"];
|
|
44555
44514
|
this.elementId = _data["elementId"];
|
|
44556
44515
|
this.sequence = _data["sequence"];
|
|
44516
|
+
this.serialNumber = _data["serialNumber"];
|
|
44557
44517
|
this.value = _data["value"];
|
|
44558
44518
|
this.bonus = _data["bonus"];
|
|
44559
44519
|
}
|
|
@@ -44571,6 +44531,7 @@ export class SaveValueRequest {
|
|
|
44571
44531
|
data["schemaId"] = this.schemaId;
|
|
44572
44532
|
data["elementId"] = this.elementId;
|
|
44573
44533
|
data["sequence"] = this.sequence;
|
|
44534
|
+
data["serialNumber"] = this.serialNumber;
|
|
44574
44535
|
data["value"] = this.value;
|
|
44575
44536
|
data["bonus"] = this.bonus;
|
|
44576
44537
|
return data;
|
|
@@ -44590,6 +44551,7 @@ export class SaveToolRequest {
|
|
|
44590
44551
|
this.schemaId = _data["schemaId"];
|
|
44591
44552
|
this.elementId = _data["elementId"];
|
|
44592
44553
|
this.sequence = _data["sequence"];
|
|
44554
|
+
this.serialNumber = _data["serialNumber"];
|
|
44593
44555
|
if (Array.isArray(_data["tools"])) {
|
|
44594
44556
|
this.tools = [];
|
|
44595
44557
|
for (let item of _data["tools"])
|
|
@@ -44609,6 +44571,7 @@ export class SaveToolRequest {
|
|
|
44609
44571
|
data["schemaId"] = this.schemaId;
|
|
44610
44572
|
data["elementId"] = this.elementId;
|
|
44611
44573
|
data["sequence"] = this.sequence;
|
|
44574
|
+
data["serialNumber"] = this.serialNumber;
|
|
44612
44575
|
if (Array.isArray(this.tools)) {
|
|
44613
44576
|
data["tools"] = [];
|
|
44614
44577
|
for (let item of this.tools)
|
|
@@ -44632,6 +44595,7 @@ export class SaveCommentRequest {
|
|
|
44632
44595
|
this.schemaId = _data["schemaId"];
|
|
44633
44596
|
this.elementId = _data["elementId"];
|
|
44634
44597
|
this.sequence = _data["sequence"];
|
|
44598
|
+
this.serialNumber = _data["serialNumber"];
|
|
44635
44599
|
this.comment = _data["comment"];
|
|
44636
44600
|
}
|
|
44637
44601
|
}
|
|
@@ -44646,6 +44610,7 @@ export class SaveCommentRequest {
|
|
|
44646
44610
|
data["schemaId"] = this.schemaId;
|
|
44647
44611
|
data["elementId"] = this.elementId;
|
|
44648
44612
|
data["sequence"] = this.sequence;
|
|
44613
|
+
data["serialNumber"] = this.serialNumber;
|
|
44649
44614
|
data["comment"] = this.comment;
|
|
44650
44615
|
return data;
|
|
44651
44616
|
}
|
|
@@ -44926,6 +44891,11 @@ export class ExportDimensionReportRequest {
|
|
|
44926
44891
|
for (let item of _data["sequences"])
|
|
44927
44892
|
this.sequences.push(item);
|
|
44928
44893
|
}
|
|
44894
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
44895
|
+
this.serialNumbers = [];
|
|
44896
|
+
for (let item of _data["serialNumbers"])
|
|
44897
|
+
this.serialNumbers.push(item);
|
|
44898
|
+
}
|
|
44929
44899
|
this.customerPO = _data["customerPO"];
|
|
44930
44900
|
this.workOrder = _data["workOrder"];
|
|
44931
44901
|
this.comment = _data["comment"];
|
|
@@ -44948,6 +44918,11 @@ export class ExportDimensionReportRequest {
|
|
|
44948
44918
|
for (let item of this.sequences)
|
|
44949
44919
|
data["sequences"].push(item);
|
|
44950
44920
|
}
|
|
44921
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
44922
|
+
data["serialNumbers"] = [];
|
|
44923
|
+
for (let item of this.serialNumbers)
|
|
44924
|
+
data["serialNumbers"].push(item);
|
|
44925
|
+
}
|
|
44951
44926
|
data["customerPO"] = this.customerPO;
|
|
44952
44927
|
data["workOrder"] = this.workOrder;
|
|
44953
44928
|
data["comment"] = this.comment;
|
|
@@ -45018,173 +44993,6 @@ export class SchemaInstanceElementDto {
|
|
|
45018
44993
|
return data;
|
|
45019
44994
|
}
|
|
45020
44995
|
}
|
|
45021
|
-
export class ImportMeasurementFormInstanceRequest {
|
|
45022
|
-
constructor(data) {
|
|
45023
|
-
if (data) {
|
|
45024
|
-
for (var property in data) {
|
|
45025
|
-
if (data.hasOwnProperty(property))
|
|
45026
|
-
this[property] = data[property];
|
|
45027
|
-
}
|
|
45028
|
-
}
|
|
45029
|
-
if (!data) {
|
|
45030
|
-
this.partInfo = new ImportMeasurementFormPartDto();
|
|
45031
|
-
this.sequences = [];
|
|
45032
|
-
this.schemas = [];
|
|
45033
|
-
}
|
|
45034
|
-
}
|
|
45035
|
-
init(_data) {
|
|
45036
|
-
if (_data) {
|
|
45037
|
-
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
45038
|
-
this.customerId = _data["customerId"];
|
|
45039
|
-
this.customerGroupId = _data["customerGroupId"];
|
|
45040
|
-
this.customerName = _data["customerName"];
|
|
45041
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
45042
|
-
this.quantity = _data["quantity"];
|
|
45043
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45044
|
-
this.sequences = [];
|
|
45045
|
-
for (let item of _data["sequences"])
|
|
45046
|
-
this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
45047
|
-
}
|
|
45048
|
-
this.status = _data["status"];
|
|
45049
|
-
this.statusChangedBy = _data["statusChangedBy"];
|
|
45050
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
|
|
45051
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
45052
|
-
this.createdBy = _data["createdBy"];
|
|
45053
|
-
this.updatedBy = _data["updatedBy"];
|
|
45054
|
-
if (Array.isArray(_data["schemas"])) {
|
|
45055
|
-
this.schemas = [];
|
|
45056
|
-
for (let item of _data["schemas"])
|
|
45057
|
-
this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
45058
|
-
}
|
|
45059
|
-
}
|
|
45060
|
-
}
|
|
45061
|
-
static fromJS(data) {
|
|
45062
|
-
data = typeof data === 'object' ? data : {};
|
|
45063
|
-
let result = new ImportMeasurementFormInstanceRequest();
|
|
45064
|
-
result.init(data);
|
|
45065
|
-
return result;
|
|
45066
|
-
}
|
|
45067
|
-
toJSON(data) {
|
|
45068
|
-
data = typeof data === 'object' ? data : {};
|
|
45069
|
-
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
|
|
45070
|
-
data["customerId"] = this.customerId;
|
|
45071
|
-
data["customerGroupId"] = this.customerGroupId;
|
|
45072
|
-
data["customerName"] = this.customerName;
|
|
45073
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
45074
|
-
data["quantity"] = this.quantity;
|
|
45075
|
-
if (Array.isArray(this.sequences)) {
|
|
45076
|
-
data["sequences"] = [];
|
|
45077
|
-
for (let item of this.sequences)
|
|
45078
|
-
data["sequences"].push(item.toJSON());
|
|
45079
|
-
}
|
|
45080
|
-
data["status"] = this.status;
|
|
45081
|
-
data["statusChangedBy"] = this.statusChangedBy;
|
|
45082
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
|
|
45083
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
45084
|
-
data["createdBy"] = this.createdBy;
|
|
45085
|
-
data["updatedBy"] = this.updatedBy;
|
|
45086
|
-
if (Array.isArray(this.schemas)) {
|
|
45087
|
-
data["schemas"] = [];
|
|
45088
|
-
for (let item of this.schemas)
|
|
45089
|
-
data["schemas"].push(item.toJSON());
|
|
45090
|
-
}
|
|
45091
|
-
return data;
|
|
45092
|
-
}
|
|
45093
|
-
}
|
|
45094
|
-
export class ImportMeasurementFormPartDto {
|
|
45095
|
-
constructor(data) {
|
|
45096
|
-
if (data) {
|
|
45097
|
-
for (var property in data) {
|
|
45098
|
-
if (data.hasOwnProperty(property))
|
|
45099
|
-
this[property] = data[property];
|
|
45100
|
-
}
|
|
45101
|
-
}
|
|
45102
|
-
}
|
|
45103
|
-
init(_data) {
|
|
45104
|
-
if (_data) {
|
|
45105
|
-
this.partNumber = _data["partNumber"];
|
|
45106
|
-
this.partName = _data["partName"];
|
|
45107
|
-
this.partRevision = _data["partRevision"];
|
|
45108
|
-
this.drawing = _data["drawing"];
|
|
45109
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
45110
|
-
}
|
|
45111
|
-
}
|
|
45112
|
-
static fromJS(data) {
|
|
45113
|
-
data = typeof data === 'object' ? data : {};
|
|
45114
|
-
let result = new ImportMeasurementFormPartDto();
|
|
45115
|
-
result.init(data);
|
|
45116
|
-
return result;
|
|
45117
|
-
}
|
|
45118
|
-
toJSON(data) {
|
|
45119
|
-
data = typeof data === 'object' ? data : {};
|
|
45120
|
-
data["partNumber"] = this.partNumber;
|
|
45121
|
-
data["partName"] = this.partName;
|
|
45122
|
-
data["partRevision"] = this.partRevision;
|
|
45123
|
-
data["drawing"] = this.drawing;
|
|
45124
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
45125
|
-
return data;
|
|
45126
|
-
}
|
|
45127
|
-
}
|
|
45128
|
-
export class WorkorderImportTraceItemDto {
|
|
45129
|
-
constructor(data) {
|
|
45130
|
-
if (data) {
|
|
45131
|
-
for (var property in data) {
|
|
45132
|
-
if (data.hasOwnProperty(property))
|
|
45133
|
-
this[property] = data[property];
|
|
45134
|
-
}
|
|
45135
|
-
}
|
|
45136
|
-
}
|
|
45137
|
-
init(_data) {
|
|
45138
|
-
if (_data) {
|
|
45139
|
-
this.sequence = _data["sequence"];
|
|
45140
|
-
this.serialNumber = _data["serialNumber"];
|
|
45141
|
-
this.lot = _data["lot"];
|
|
45142
|
-
this.active = _data["active"];
|
|
45143
|
-
}
|
|
45144
|
-
}
|
|
45145
|
-
static fromJS(data) {
|
|
45146
|
-
data = typeof data === 'object' ? data : {};
|
|
45147
|
-
let result = new WorkorderImportTraceItemDto();
|
|
45148
|
-
result.init(data);
|
|
45149
|
-
return result;
|
|
45150
|
-
}
|
|
45151
|
-
toJSON(data) {
|
|
45152
|
-
data = typeof data === 'object' ? data : {};
|
|
45153
|
-
data["sequence"] = this.sequence;
|
|
45154
|
-
data["serialNumber"] = this.serialNumber;
|
|
45155
|
-
data["lot"] = this.lot;
|
|
45156
|
-
data["active"] = this.active;
|
|
45157
|
-
return data;
|
|
45158
|
-
}
|
|
45159
|
-
}
|
|
45160
|
-
export class ImportMeasurementSchemaInstanceDto {
|
|
45161
|
-
constructor(data) {
|
|
45162
|
-
if (data) {
|
|
45163
|
-
for (var property in data) {
|
|
45164
|
-
if (data.hasOwnProperty(property))
|
|
45165
|
-
this[property] = data[property];
|
|
45166
|
-
}
|
|
45167
|
-
}
|
|
45168
|
-
}
|
|
45169
|
-
init(_data) {
|
|
45170
|
-
if (_data) {
|
|
45171
|
-
this.id = _data["id"];
|
|
45172
|
-
this.version = _data["version"];
|
|
45173
|
-
}
|
|
45174
|
-
}
|
|
45175
|
-
static fromJS(data) {
|
|
45176
|
-
data = typeof data === 'object' ? data : {};
|
|
45177
|
-
let result = new ImportMeasurementSchemaInstanceDto();
|
|
45178
|
-
result.init(data);
|
|
45179
|
-
return result;
|
|
45180
|
-
}
|
|
45181
|
-
toJSON(data) {
|
|
45182
|
-
data = typeof data === 'object' ? data : {};
|
|
45183
|
-
data["id"] = this.id;
|
|
45184
|
-
data["version"] = this.version;
|
|
45185
|
-
return data;
|
|
45186
|
-
}
|
|
45187
|
-
}
|
|
45188
44996
|
export class IotTypeSourceDto {
|
|
45189
44997
|
constructor(data) {
|
|
45190
44998
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -20611,11 +20611,11 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
20611
20611
|
|
|
20612
20612
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
20613
20613
|
|
|
20614
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string,
|
|
20614
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
20615
20615
|
|
|
20616
20616
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
20617
20617
|
|
|
20618
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined,
|
|
20618
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
20619
20619
|
|
|
20620
20620
|
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
20621
20621
|
|
|
@@ -20646,8 +20646,6 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
20646
20646
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
20647
20647
|
|
|
20648
20648
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
20649
|
-
|
|
20650
|
-
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
20651
20649
|
}
|
|
20652
20650
|
|
|
20653
20651
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
|
|
@@ -21249,7 +21247,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21249
21247
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
21250
21248
|
}
|
|
21251
21249
|
|
|
21252
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string,
|
|
21250
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
|
|
21253
21251
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
21254
21252
|
if (id === undefined || id === null)
|
|
21255
21253
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -21257,8 +21255,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21257
21255
|
if (schemaId === undefined || schemaId === null)
|
|
21258
21256
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21259
21257
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21260
|
-
if (
|
|
21261
|
-
url_ += "
|
|
21258
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
21259
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
21262
21260
|
if (tenantId !== undefined && tenantId !== null)
|
|
21263
21261
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21264
21262
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -21336,7 +21334,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21336
21334
|
return Promise.resolve<MeasurementFormInstanceProgressDto>(null as any);
|
|
21337
21335
|
}
|
|
21338
21336
|
|
|
21339
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined,
|
|
21337
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
|
|
21340
21338
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
21341
21339
|
if (id === undefined || id === null)
|
|
21342
21340
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -21345,8 +21343,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21345
21343
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21346
21344
|
if (schemaId !== undefined && schemaId !== null)
|
|
21347
21345
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
21348
|
-
if (
|
|
21349
|
-
url_ += "
|
|
21346
|
+
if (serialNumber !== undefined && serialNumber !== null)
|
|
21347
|
+
url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
|
|
21350
21348
|
if (elementId !== undefined && elementId !== null)
|
|
21351
21349
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
21352
21350
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22030,49 +22028,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22030
22028
|
}
|
|
22031
22029
|
return Promise.resolve<void>(null as any);
|
|
22032
22030
|
}
|
|
22033
|
-
|
|
22034
|
-
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
22035
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
22036
|
-
if (id === undefined || id === null)
|
|
22037
|
-
throw new Error("The parameter 'id' must be defined.");
|
|
22038
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22039
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22040
|
-
|
|
22041
|
-
const content_ = JSON.stringify(request);
|
|
22042
|
-
|
|
22043
|
-
let options_: RequestInit = {
|
|
22044
|
-
body: content_,
|
|
22045
|
-
method: "POST",
|
|
22046
|
-
headers: {
|
|
22047
|
-
"Content-Type": "application/json",
|
|
22048
|
-
"Accept": "application/json"
|
|
22049
|
-
}
|
|
22050
|
-
};
|
|
22051
|
-
|
|
22052
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22053
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22054
|
-
}).then((_response: Response) => {
|
|
22055
|
-
return this.processImportMeasurementFormInstance(_response);
|
|
22056
|
-
});
|
|
22057
|
-
}
|
|
22058
|
-
|
|
22059
|
-
protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22060
|
-
const status = response.status;
|
|
22061
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22062
|
-
if (status === 200) {
|
|
22063
|
-
return response.text().then((_responseText) => {
|
|
22064
|
-
let result200: any = null;
|
|
22065
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22066
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22067
|
-
return result200;
|
|
22068
|
-
});
|
|
22069
|
-
} else if (status !== 200 && status !== 204) {
|
|
22070
|
-
return response.text().then((_responseText) => {
|
|
22071
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22072
|
-
});
|
|
22073
|
-
}
|
|
22074
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22075
|
-
}
|
|
22076
22031
|
}
|
|
22077
22032
|
|
|
22078
22033
|
export interface IElectricalClient {
|
|
@@ -56033,8 +55988,8 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
|
56033
55988
|
}
|
|
56034
55989
|
|
|
56035
55990
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
56036
|
-
sequences
|
|
56037
|
-
serialNumbers
|
|
55991
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
55992
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
56038
55993
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
56039
55994
|
|
|
56040
55995
|
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
@@ -56045,7 +56000,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56045
56000
|
}
|
|
56046
56001
|
}
|
|
56047
56002
|
if (!data) {
|
|
56048
|
-
this.
|
|
56003
|
+
this.serialNumbers = [];
|
|
56049
56004
|
this.suppliers = [];
|
|
56050
56005
|
}
|
|
56051
56006
|
}
|
|
@@ -56099,8 +56054,8 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56099
56054
|
}
|
|
56100
56055
|
|
|
56101
56056
|
export interface IUpdateMeasurementFormInstanceRequest {
|
|
56102
|
-
sequences
|
|
56103
|
-
serialNumbers
|
|
56057
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
56058
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
56104
56059
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
56105
56060
|
}
|
|
56106
56061
|
|
|
@@ -56413,7 +56368,8 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56413
56368
|
export class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
|
|
56414
56369
|
bonus?: string | null;
|
|
56415
56370
|
completed!: boolean;
|
|
56416
|
-
sequence
|
|
56371
|
+
sequence?: string | null;
|
|
56372
|
+
serialNumber!: string;
|
|
56417
56373
|
value?: string | null;
|
|
56418
56374
|
updatedByUser!: string;
|
|
56419
56375
|
updatedDate!: Date;
|
|
@@ -56439,6 +56395,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56439
56395
|
this.bonus = _data["bonus"];
|
|
56440
56396
|
this.completed = _data["completed"];
|
|
56441
56397
|
this.sequence = _data["sequence"];
|
|
56398
|
+
this.serialNumber = _data["serialNumber"];
|
|
56442
56399
|
this.value = _data["value"];
|
|
56443
56400
|
this.updatedByUser = _data["updatedByUser"];
|
|
56444
56401
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
|
|
@@ -56465,6 +56422,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56465
56422
|
data["bonus"] = this.bonus;
|
|
56466
56423
|
data["completed"] = this.completed;
|
|
56467
56424
|
data["sequence"] = this.sequence;
|
|
56425
|
+
data["serialNumber"] = this.serialNumber;
|
|
56468
56426
|
data["value"] = this.value;
|
|
56469
56427
|
data["updatedByUser"] = this.updatedByUser;
|
|
56470
56428
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
|
|
@@ -56483,7 +56441,8 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56483
56441
|
export interface IMeasurementFormElementValueDto {
|
|
56484
56442
|
bonus?: string | null;
|
|
56485
56443
|
completed: boolean;
|
|
56486
|
-
sequence
|
|
56444
|
+
sequence?: string | null;
|
|
56445
|
+
serialNumber: string;
|
|
56487
56446
|
value?: string | null;
|
|
56488
56447
|
updatedByUser: string;
|
|
56489
56448
|
updatedDate: Date;
|
|
@@ -56780,7 +56739,8 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56780
56739
|
resourceName?: string | null;
|
|
56781
56740
|
schemaId!: string;
|
|
56782
56741
|
elementId!: string;
|
|
56783
|
-
sequence
|
|
56742
|
+
sequence?: string | null;
|
|
56743
|
+
serialNumber!: string;
|
|
56784
56744
|
value?: string | null;
|
|
56785
56745
|
bonus?: string | null;
|
|
56786
56746
|
|
|
@@ -56800,6 +56760,7 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56800
56760
|
this.schemaId = _data["schemaId"];
|
|
56801
56761
|
this.elementId = _data["elementId"];
|
|
56802
56762
|
this.sequence = _data["sequence"];
|
|
56763
|
+
this.serialNumber = _data["serialNumber"];
|
|
56803
56764
|
this.value = _data["value"];
|
|
56804
56765
|
this.bonus = _data["bonus"];
|
|
56805
56766
|
}
|
|
@@ -56819,6 +56780,7 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56819
56780
|
data["schemaId"] = this.schemaId;
|
|
56820
56781
|
data["elementId"] = this.elementId;
|
|
56821
56782
|
data["sequence"] = this.sequence;
|
|
56783
|
+
data["serialNumber"] = this.serialNumber;
|
|
56822
56784
|
data["value"] = this.value;
|
|
56823
56785
|
data["bonus"] = this.bonus;
|
|
56824
56786
|
return data;
|
|
@@ -56830,7 +56792,8 @@ export interface ISaveValueRequest {
|
|
|
56830
56792
|
resourceName?: string | null;
|
|
56831
56793
|
schemaId: string;
|
|
56832
56794
|
elementId: string;
|
|
56833
|
-
sequence
|
|
56795
|
+
sequence?: string | null;
|
|
56796
|
+
serialNumber: string;
|
|
56834
56797
|
value?: string | null;
|
|
56835
56798
|
bonus?: string | null;
|
|
56836
56799
|
}
|
|
@@ -56838,7 +56801,8 @@ export interface ISaveValueRequest {
|
|
|
56838
56801
|
export class SaveToolRequest implements ISaveToolRequest {
|
|
56839
56802
|
schemaId!: string;
|
|
56840
56803
|
elementId!: string;
|
|
56841
|
-
sequence
|
|
56804
|
+
sequence?: string | null;
|
|
56805
|
+
serialNumber!: string;
|
|
56842
56806
|
tools?: string[] | null;
|
|
56843
56807
|
force?: boolean;
|
|
56844
56808
|
|
|
@@ -56856,6 +56820,7 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56856
56820
|
this.schemaId = _data["schemaId"];
|
|
56857
56821
|
this.elementId = _data["elementId"];
|
|
56858
56822
|
this.sequence = _data["sequence"];
|
|
56823
|
+
this.serialNumber = _data["serialNumber"];
|
|
56859
56824
|
if (Array.isArray(_data["tools"])) {
|
|
56860
56825
|
this.tools = [] as any;
|
|
56861
56826
|
for (let item of _data["tools"])
|
|
@@ -56877,6 +56842,7 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56877
56842
|
data["schemaId"] = this.schemaId;
|
|
56878
56843
|
data["elementId"] = this.elementId;
|
|
56879
56844
|
data["sequence"] = this.sequence;
|
|
56845
|
+
data["serialNumber"] = this.serialNumber;
|
|
56880
56846
|
if (Array.isArray(this.tools)) {
|
|
56881
56847
|
data["tools"] = [];
|
|
56882
56848
|
for (let item of this.tools)
|
|
@@ -56890,7 +56856,8 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56890
56856
|
export interface ISaveToolRequest {
|
|
56891
56857
|
schemaId: string;
|
|
56892
56858
|
elementId: string;
|
|
56893
|
-
sequence
|
|
56859
|
+
sequence?: string | null;
|
|
56860
|
+
serialNumber: string;
|
|
56894
56861
|
tools?: string[] | null;
|
|
56895
56862
|
force?: boolean;
|
|
56896
56863
|
}
|
|
@@ -56898,7 +56865,8 @@ export interface ISaveToolRequest {
|
|
|
56898
56865
|
export class SaveCommentRequest implements ISaveCommentRequest {
|
|
56899
56866
|
schemaId!: string;
|
|
56900
56867
|
elementId!: string;
|
|
56901
|
-
sequence
|
|
56868
|
+
sequence?: string | null;
|
|
56869
|
+
serialNumber!: string;
|
|
56902
56870
|
comment?: string | null;
|
|
56903
56871
|
|
|
56904
56872
|
constructor(data?: ISaveCommentRequest) {
|
|
@@ -56915,6 +56883,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56915
56883
|
this.schemaId = _data["schemaId"];
|
|
56916
56884
|
this.elementId = _data["elementId"];
|
|
56917
56885
|
this.sequence = _data["sequence"];
|
|
56886
|
+
this.serialNumber = _data["serialNumber"];
|
|
56918
56887
|
this.comment = _data["comment"];
|
|
56919
56888
|
}
|
|
56920
56889
|
}
|
|
@@ -56931,6 +56900,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56931
56900
|
data["schemaId"] = this.schemaId;
|
|
56932
56901
|
data["elementId"] = this.elementId;
|
|
56933
56902
|
data["sequence"] = this.sequence;
|
|
56903
|
+
data["serialNumber"] = this.serialNumber;
|
|
56934
56904
|
data["comment"] = this.comment;
|
|
56935
56905
|
return data;
|
|
56936
56906
|
}
|
|
@@ -56939,7 +56909,8 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56939
56909
|
export interface ISaveCommentRequest {
|
|
56940
56910
|
schemaId: string;
|
|
56941
56911
|
elementId: string;
|
|
56942
|
-
sequence
|
|
56912
|
+
sequence?: string | null;
|
|
56913
|
+
serialNumber: string;
|
|
56943
56914
|
comment?: string | null;
|
|
56944
56915
|
}
|
|
56945
56916
|
|
|
@@ -57327,6 +57298,7 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57327
57298
|
includeAllSchemasAndElements?: boolean | null;
|
|
57328
57299
|
createBlankReport?: boolean | null;
|
|
57329
57300
|
sequences?: string[] | null;
|
|
57301
|
+
serialNumbers?: string[] | null;
|
|
57330
57302
|
customerPO?: string | null;
|
|
57331
57303
|
workOrder?: string | null;
|
|
57332
57304
|
comment?: string | null;
|
|
@@ -57351,6 +57323,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57351
57323
|
for (let item of _data["sequences"])
|
|
57352
57324
|
this.sequences!.push(item);
|
|
57353
57325
|
}
|
|
57326
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
57327
|
+
this.serialNumbers = [] as any;
|
|
57328
|
+
for (let item of _data["serialNumbers"])
|
|
57329
|
+
this.serialNumbers!.push(item);
|
|
57330
|
+
}
|
|
57354
57331
|
this.customerPO = _data["customerPO"];
|
|
57355
57332
|
this.workOrder = _data["workOrder"];
|
|
57356
57333
|
this.comment = _data["comment"];
|
|
@@ -57375,6 +57352,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57375
57352
|
for (let item of this.sequences)
|
|
57376
57353
|
data["sequences"].push(item);
|
|
57377
57354
|
}
|
|
57355
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
57356
|
+
data["serialNumbers"] = [];
|
|
57357
|
+
for (let item of this.serialNumbers)
|
|
57358
|
+
data["serialNumbers"].push(item);
|
|
57359
|
+
}
|
|
57378
57360
|
data["customerPO"] = this.customerPO;
|
|
57379
57361
|
data["workOrder"] = this.workOrder;
|
|
57380
57362
|
data["comment"] = this.comment;
|
|
@@ -57388,6 +57370,7 @@ export interface IExportDimensionReportRequest {
|
|
|
57388
57370
|
includeAllSchemasAndElements?: boolean | null;
|
|
57389
57371
|
createBlankReport?: boolean | null;
|
|
57390
57372
|
sequences?: string[] | null;
|
|
57373
|
+
serialNumbers?: string[] | null;
|
|
57391
57374
|
customerPO?: string | null;
|
|
57392
57375
|
workOrder?: string | null;
|
|
57393
57376
|
comment?: string | null;
|
|
@@ -57481,255 +57464,6 @@ export interface ISchemaInstanceElementDto {
|
|
|
57481
57464
|
disabled: boolean;
|
|
57482
57465
|
}
|
|
57483
57466
|
|
|
57484
|
-
export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
|
|
57485
|
-
partInfo!: ImportMeasurementFormPartDto;
|
|
57486
|
-
customerId?: string | null;
|
|
57487
|
-
customerGroupId?: string | null;
|
|
57488
|
-
customerName?: string | null;
|
|
57489
|
-
externalOrderNumber?: string | null;
|
|
57490
|
-
quantity!: number;
|
|
57491
|
-
sequences!: WorkorderImportTraceItemDto[];
|
|
57492
|
-
status!: MeasurementFormInstanceStatus;
|
|
57493
|
-
statusChangedBy?: string | null;
|
|
57494
|
-
statusChangedDate?: Date | null;
|
|
57495
|
-
created!: Date;
|
|
57496
|
-
createdBy?: string | null;
|
|
57497
|
-
updatedBy?: string | null;
|
|
57498
|
-
schemas!: ImportMeasurementSchemaInstanceDto[];
|
|
57499
|
-
|
|
57500
|
-
constructor(data?: IImportMeasurementFormInstanceRequest) {
|
|
57501
|
-
if (data) {
|
|
57502
|
-
for (var property in data) {
|
|
57503
|
-
if (data.hasOwnProperty(property))
|
|
57504
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57505
|
-
}
|
|
57506
|
-
}
|
|
57507
|
-
if (!data) {
|
|
57508
|
-
this.partInfo = new ImportMeasurementFormPartDto();
|
|
57509
|
-
this.sequences = [];
|
|
57510
|
-
this.schemas = [];
|
|
57511
|
-
}
|
|
57512
|
-
}
|
|
57513
|
-
|
|
57514
|
-
init(_data?: any) {
|
|
57515
|
-
if (_data) {
|
|
57516
|
-
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
57517
|
-
this.customerId = _data["customerId"];
|
|
57518
|
-
this.customerGroupId = _data["customerGroupId"];
|
|
57519
|
-
this.customerName = _data["customerName"];
|
|
57520
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57521
|
-
this.quantity = _data["quantity"];
|
|
57522
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57523
|
-
this.sequences = [] as any;
|
|
57524
|
-
for (let item of _data["sequences"])
|
|
57525
|
-
this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
57526
|
-
}
|
|
57527
|
-
this.status = _data["status"];
|
|
57528
|
-
this.statusChangedBy = _data["statusChangedBy"];
|
|
57529
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
|
|
57530
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
57531
|
-
this.createdBy = _data["createdBy"];
|
|
57532
|
-
this.updatedBy = _data["updatedBy"];
|
|
57533
|
-
if (Array.isArray(_data["schemas"])) {
|
|
57534
|
-
this.schemas = [] as any;
|
|
57535
|
-
for (let item of _data["schemas"])
|
|
57536
|
-
this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
57537
|
-
}
|
|
57538
|
-
}
|
|
57539
|
-
}
|
|
57540
|
-
|
|
57541
|
-
static fromJS(data: any): ImportMeasurementFormInstanceRequest {
|
|
57542
|
-
data = typeof data === 'object' ? data : {};
|
|
57543
|
-
let result = new ImportMeasurementFormInstanceRequest();
|
|
57544
|
-
result.init(data);
|
|
57545
|
-
return result;
|
|
57546
|
-
}
|
|
57547
|
-
|
|
57548
|
-
toJSON(data?: any) {
|
|
57549
|
-
data = typeof data === 'object' ? data : {};
|
|
57550
|
-
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
|
|
57551
|
-
data["customerId"] = this.customerId;
|
|
57552
|
-
data["customerGroupId"] = this.customerGroupId;
|
|
57553
|
-
data["customerName"] = this.customerName;
|
|
57554
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57555
|
-
data["quantity"] = this.quantity;
|
|
57556
|
-
if (Array.isArray(this.sequences)) {
|
|
57557
|
-
data["sequences"] = [];
|
|
57558
|
-
for (let item of this.sequences)
|
|
57559
|
-
data["sequences"].push(item.toJSON());
|
|
57560
|
-
}
|
|
57561
|
-
data["status"] = this.status;
|
|
57562
|
-
data["statusChangedBy"] = this.statusChangedBy;
|
|
57563
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
|
|
57564
|
-
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
57565
|
-
data["createdBy"] = this.createdBy;
|
|
57566
|
-
data["updatedBy"] = this.updatedBy;
|
|
57567
|
-
if (Array.isArray(this.schemas)) {
|
|
57568
|
-
data["schemas"] = [];
|
|
57569
|
-
for (let item of this.schemas)
|
|
57570
|
-
data["schemas"].push(item.toJSON());
|
|
57571
|
-
}
|
|
57572
|
-
return data;
|
|
57573
|
-
}
|
|
57574
|
-
}
|
|
57575
|
-
|
|
57576
|
-
export interface IImportMeasurementFormInstanceRequest {
|
|
57577
|
-
partInfo: ImportMeasurementFormPartDto;
|
|
57578
|
-
customerId?: string | null;
|
|
57579
|
-
customerGroupId?: string | null;
|
|
57580
|
-
customerName?: string | null;
|
|
57581
|
-
externalOrderNumber?: string | null;
|
|
57582
|
-
quantity: number;
|
|
57583
|
-
sequences: WorkorderImportTraceItemDto[];
|
|
57584
|
-
status: MeasurementFormInstanceStatus;
|
|
57585
|
-
statusChangedBy?: string | null;
|
|
57586
|
-
statusChangedDate?: Date | null;
|
|
57587
|
-
created: Date;
|
|
57588
|
-
createdBy?: string | null;
|
|
57589
|
-
updatedBy?: string | null;
|
|
57590
|
-
schemas: ImportMeasurementSchemaInstanceDto[];
|
|
57591
|
-
}
|
|
57592
|
-
|
|
57593
|
-
export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
|
|
57594
|
-
partNumber?: string | null;
|
|
57595
|
-
partName?: string | null;
|
|
57596
|
-
partRevision?: string | null;
|
|
57597
|
-
drawing!: string;
|
|
57598
|
-
drawingRevision?: string | null;
|
|
57599
|
-
|
|
57600
|
-
constructor(data?: IImportMeasurementFormPartDto) {
|
|
57601
|
-
if (data) {
|
|
57602
|
-
for (var property in data) {
|
|
57603
|
-
if (data.hasOwnProperty(property))
|
|
57604
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57605
|
-
}
|
|
57606
|
-
}
|
|
57607
|
-
}
|
|
57608
|
-
|
|
57609
|
-
init(_data?: any) {
|
|
57610
|
-
if (_data) {
|
|
57611
|
-
this.partNumber = _data["partNumber"];
|
|
57612
|
-
this.partName = _data["partName"];
|
|
57613
|
-
this.partRevision = _data["partRevision"];
|
|
57614
|
-
this.drawing = _data["drawing"];
|
|
57615
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
57616
|
-
}
|
|
57617
|
-
}
|
|
57618
|
-
|
|
57619
|
-
static fromJS(data: any): ImportMeasurementFormPartDto {
|
|
57620
|
-
data = typeof data === 'object' ? data : {};
|
|
57621
|
-
let result = new ImportMeasurementFormPartDto();
|
|
57622
|
-
result.init(data);
|
|
57623
|
-
return result;
|
|
57624
|
-
}
|
|
57625
|
-
|
|
57626
|
-
toJSON(data?: any) {
|
|
57627
|
-
data = typeof data === 'object' ? data : {};
|
|
57628
|
-
data["partNumber"] = this.partNumber;
|
|
57629
|
-
data["partName"] = this.partName;
|
|
57630
|
-
data["partRevision"] = this.partRevision;
|
|
57631
|
-
data["drawing"] = this.drawing;
|
|
57632
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
57633
|
-
return data;
|
|
57634
|
-
}
|
|
57635
|
-
}
|
|
57636
|
-
|
|
57637
|
-
export interface IImportMeasurementFormPartDto {
|
|
57638
|
-
partNumber?: string | null;
|
|
57639
|
-
partName?: string | null;
|
|
57640
|
-
partRevision?: string | null;
|
|
57641
|
-
drawing: string;
|
|
57642
|
-
drawingRevision?: string | null;
|
|
57643
|
-
}
|
|
57644
|
-
|
|
57645
|
-
export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
|
|
57646
|
-
sequence!: string;
|
|
57647
|
-
serialNumber?: string | null;
|
|
57648
|
-
lot?: string | null;
|
|
57649
|
-
active!: boolean;
|
|
57650
|
-
|
|
57651
|
-
constructor(data?: IWorkorderImportTraceItemDto) {
|
|
57652
|
-
if (data) {
|
|
57653
|
-
for (var property in data) {
|
|
57654
|
-
if (data.hasOwnProperty(property))
|
|
57655
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57656
|
-
}
|
|
57657
|
-
}
|
|
57658
|
-
}
|
|
57659
|
-
|
|
57660
|
-
init(_data?: any) {
|
|
57661
|
-
if (_data) {
|
|
57662
|
-
this.sequence = _data["sequence"];
|
|
57663
|
-
this.serialNumber = _data["serialNumber"];
|
|
57664
|
-
this.lot = _data["lot"];
|
|
57665
|
-
this.active = _data["active"];
|
|
57666
|
-
}
|
|
57667
|
-
}
|
|
57668
|
-
|
|
57669
|
-
static fromJS(data: any): WorkorderImportTraceItemDto {
|
|
57670
|
-
data = typeof data === 'object' ? data : {};
|
|
57671
|
-
let result = new WorkorderImportTraceItemDto();
|
|
57672
|
-
result.init(data);
|
|
57673
|
-
return result;
|
|
57674
|
-
}
|
|
57675
|
-
|
|
57676
|
-
toJSON(data?: any) {
|
|
57677
|
-
data = typeof data === 'object' ? data : {};
|
|
57678
|
-
data["sequence"] = this.sequence;
|
|
57679
|
-
data["serialNumber"] = this.serialNumber;
|
|
57680
|
-
data["lot"] = this.lot;
|
|
57681
|
-
data["active"] = this.active;
|
|
57682
|
-
return data;
|
|
57683
|
-
}
|
|
57684
|
-
}
|
|
57685
|
-
|
|
57686
|
-
export interface IWorkorderImportTraceItemDto {
|
|
57687
|
-
sequence: string;
|
|
57688
|
-
serialNumber?: string | null;
|
|
57689
|
-
lot?: string | null;
|
|
57690
|
-
active: boolean;
|
|
57691
|
-
}
|
|
57692
|
-
|
|
57693
|
-
export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
|
|
57694
|
-
id!: string;
|
|
57695
|
-
version!: number;
|
|
57696
|
-
|
|
57697
|
-
constructor(data?: IImportMeasurementSchemaInstanceDto) {
|
|
57698
|
-
if (data) {
|
|
57699
|
-
for (var property in data) {
|
|
57700
|
-
if (data.hasOwnProperty(property))
|
|
57701
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57702
|
-
}
|
|
57703
|
-
}
|
|
57704
|
-
}
|
|
57705
|
-
|
|
57706
|
-
init(_data?: any) {
|
|
57707
|
-
if (_data) {
|
|
57708
|
-
this.id = _data["id"];
|
|
57709
|
-
this.version = _data["version"];
|
|
57710
|
-
}
|
|
57711
|
-
}
|
|
57712
|
-
|
|
57713
|
-
static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
|
|
57714
|
-
data = typeof data === 'object' ? data : {};
|
|
57715
|
-
let result = new ImportMeasurementSchemaInstanceDto();
|
|
57716
|
-
result.init(data);
|
|
57717
|
-
return result;
|
|
57718
|
-
}
|
|
57719
|
-
|
|
57720
|
-
toJSON(data?: any) {
|
|
57721
|
-
data = typeof data === 'object' ? data : {};
|
|
57722
|
-
data["id"] = this.id;
|
|
57723
|
-
data["version"] = this.version;
|
|
57724
|
-
return data;
|
|
57725
|
-
}
|
|
57726
|
-
}
|
|
57727
|
-
|
|
57728
|
-
export interface IImportMeasurementSchemaInstanceDto {
|
|
57729
|
-
id: string;
|
|
57730
|
-
version: number;
|
|
57731
|
-
}
|
|
57732
|
-
|
|
57733
57467
|
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
57734
57468
|
id!: string;
|
|
57735
57469
|
name!: string;
|