@ignos/api-client 20250312.0.11355 → 20250313.0.11366
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 +42 -4
- package/lib/ignosportal-api.js +86 -8
- package/package.json +1 -1
- package/src/ignosportal-api.ts +128 -11
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2084,7 +2084,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2084
2084
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2085
2085
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2086
2086
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2087
|
-
createMeasurementFormInstance2(id: string,
|
|
2087
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2088
2088
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
2089
2089
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2090
2090
|
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -2132,7 +2132,7 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2132
2132
|
protected processUpdateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2133
2133
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2134
2134
|
protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2135
|
-
createMeasurementFormInstance2(id: string,
|
|
2135
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2136
2136
|
protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2137
2137
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
2138
2138
|
protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
@@ -5867,7 +5867,7 @@ export declare class MachineStateDto implements IMachineStateDto {
|
|
|
5867
5867
|
description?: string | null;
|
|
5868
5868
|
state: string;
|
|
5869
5869
|
machineState: MachineState;
|
|
5870
|
-
startTime
|
|
5870
|
+
startTime: Date;
|
|
5871
5871
|
constructor(data?: IMachineStateDto);
|
|
5872
5872
|
init(_data?: any): void;
|
|
5873
5873
|
static fromJS(data: any): MachineStateDto;
|
|
@@ -5879,7 +5879,7 @@ export interface IMachineStateDto {
|
|
|
5879
5879
|
description?: string | null;
|
|
5880
5880
|
state: string;
|
|
5881
5881
|
machineState: MachineState;
|
|
5882
|
-
startTime
|
|
5882
|
+
startTime: Date;
|
|
5883
5883
|
}
|
|
5884
5884
|
export declare class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
|
|
5885
5885
|
datapoint: MachineStateDatapoint;
|
|
@@ -9404,10 +9404,15 @@ export interface IDocumentLinkDto {
|
|
|
9404
9404
|
export declare class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
|
|
9405
9405
|
orderNumber: string;
|
|
9406
9406
|
title: string;
|
|
9407
|
+
processedAt: Date;
|
|
9408
|
+
severity: string;
|
|
9407
9409
|
category?: string | null;
|
|
9408
9410
|
description?: string | null;
|
|
9409
9411
|
project?: string | null;
|
|
9410
9412
|
status?: string | null;
|
|
9413
|
+
responsible?: UserDto | null;
|
|
9414
|
+
engineer?: UserDto | null;
|
|
9415
|
+
actions?: string | null;
|
|
9411
9416
|
constructor(data?: IEngineeringChangeOrderDto);
|
|
9412
9417
|
init(_data?: any): void;
|
|
9413
9418
|
static fromJS(data: any): EngineeringChangeOrderDto;
|
|
@@ -9416,10 +9421,15 @@ export declare class EngineeringChangeOrderDto implements IEngineeringChangeOrde
|
|
|
9416
9421
|
export interface IEngineeringChangeOrderDto {
|
|
9417
9422
|
orderNumber: string;
|
|
9418
9423
|
title: string;
|
|
9424
|
+
processedAt: Date;
|
|
9425
|
+
severity: string;
|
|
9419
9426
|
category?: string | null;
|
|
9420
9427
|
description?: string | null;
|
|
9421
9428
|
project?: string | null;
|
|
9422
9429
|
status?: string | null;
|
|
9430
|
+
responsible?: UserDto | null;
|
|
9431
|
+
engineer?: UserDto | null;
|
|
9432
|
+
actions?: string | null;
|
|
9423
9433
|
}
|
|
9424
9434
|
export declare class AddMesLink implements IAddMesLink {
|
|
9425
9435
|
uri?: string | null;
|
|
@@ -12309,6 +12319,34 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
12309
12319
|
from: string;
|
|
12310
12320
|
created: Date;
|
|
12311
12321
|
}
|
|
12322
|
+
export declare class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
12323
|
+
schemaId: string;
|
|
12324
|
+
purchaseOrder?: string | null;
|
|
12325
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
12326
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest);
|
|
12327
|
+
init(_data?: any): void;
|
|
12328
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest;
|
|
12329
|
+
toJSON(data?: any): any;
|
|
12330
|
+
}
|
|
12331
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
12332
|
+
schemaId: string;
|
|
12333
|
+
purchaseOrder?: string | null;
|
|
12334
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
12335
|
+
}
|
|
12336
|
+
export declare class CreateMeasurementFormInstanceRequestSeries implements ICreateMeasurementFormInstanceRequestSeries {
|
|
12337
|
+
startingSerialNumber?: string | null;
|
|
12338
|
+
startingSequenceNumber?: string | null;
|
|
12339
|
+
qty: number;
|
|
12340
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSeries);
|
|
12341
|
+
init(_data?: any): void;
|
|
12342
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSeries;
|
|
12343
|
+
toJSON(data?: any): any;
|
|
12344
|
+
}
|
|
12345
|
+
export interface ICreateMeasurementFormInstanceRequestSeries {
|
|
12346
|
+
startingSerialNumber?: string | null;
|
|
12347
|
+
startingSequenceNumber?: string | null;
|
|
12348
|
+
qty: number;
|
|
12349
|
+
}
|
|
12312
12350
|
export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
12313
12351
|
sequences: MeasurementFormWorkorderSequenceDto[];
|
|
12314
12352
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -18053,21 +18053,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
18053
18053
|
}
|
|
18054
18054
|
return Promise.resolve(null);
|
|
18055
18055
|
}
|
|
18056
|
-
createMeasurementFormInstance2(id,
|
|
18057
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance
|
|
18056
|
+
createMeasurementFormInstance2(id, request) {
|
|
18057
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
18058
18058
|
if (id === undefined || id === null)
|
|
18059
18059
|
throw new Error("The parameter 'id' must be defined.");
|
|
18060
18060
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18061
|
-
if (schemaId !== undefined && schemaId !== null)
|
|
18062
|
-
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
18063
|
-
if (sequenceCount === null)
|
|
18064
|
-
throw new Error("The parameter 'sequenceCount' cannot be null.");
|
|
18065
|
-
else if (sequenceCount !== undefined)
|
|
18066
|
-
url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
|
|
18067
18061
|
url_ = url_.replace(/[?&]$/, "");
|
|
18062
|
+
const content_ = JSON.stringify(request);
|
|
18068
18063
|
let options_ = {
|
|
18064
|
+
body: content_,
|
|
18069
18065
|
method: "POST",
|
|
18070
18066
|
headers: {
|
|
18067
|
+
"Content-Type": "application/json",
|
|
18071
18068
|
"Accept": "application/json"
|
|
18072
18069
|
}
|
|
18073
18070
|
};
|
|
@@ -35399,10 +35396,15 @@ export class EngineeringChangeOrderDto {
|
|
|
35399
35396
|
if (_data) {
|
|
35400
35397
|
this.orderNumber = _data["orderNumber"];
|
|
35401
35398
|
this.title = _data["title"];
|
|
35399
|
+
this.processedAt = _data["processedAt"] ? new Date(_data["processedAt"].toString()) : undefined;
|
|
35400
|
+
this.severity = _data["severity"];
|
|
35402
35401
|
this.category = _data["category"];
|
|
35403
35402
|
this.description = _data["description"];
|
|
35404
35403
|
this.project = _data["project"];
|
|
35405
35404
|
this.status = _data["status"];
|
|
35405
|
+
this.responsible = _data["responsible"] ? UserDto.fromJS(_data["responsible"]) : undefined;
|
|
35406
|
+
this.engineer = _data["engineer"] ? UserDto.fromJS(_data["engineer"]) : undefined;
|
|
35407
|
+
this.actions = _data["actions"];
|
|
35406
35408
|
}
|
|
35407
35409
|
}
|
|
35408
35410
|
static fromJS(data) {
|
|
@@ -35415,10 +35417,15 @@ export class EngineeringChangeOrderDto {
|
|
|
35415
35417
|
data = typeof data === 'object' ? data : {};
|
|
35416
35418
|
data["orderNumber"] = this.orderNumber;
|
|
35417
35419
|
data["title"] = this.title;
|
|
35420
|
+
data["processedAt"] = this.processedAt ? this.processedAt.toISOString() : undefined;
|
|
35421
|
+
data["severity"] = this.severity;
|
|
35418
35422
|
data["category"] = this.category;
|
|
35419
35423
|
data["description"] = this.description;
|
|
35420
35424
|
data["project"] = this.project;
|
|
35421
35425
|
data["status"] = this.status;
|
|
35426
|
+
data["responsible"] = this.responsible ? this.responsible.toJSON() : undefined;
|
|
35427
|
+
data["engineer"] = this.engineer ? this.engineer.toJSON() : undefined;
|
|
35428
|
+
data["actions"] = this.actions;
|
|
35422
35429
|
return data;
|
|
35423
35430
|
}
|
|
35424
35431
|
}
|
|
@@ -40933,6 +40940,77 @@ export class MeasurementFormInstanceFeedbackDto {
|
|
|
40933
40940
|
return data;
|
|
40934
40941
|
}
|
|
40935
40942
|
}
|
|
40943
|
+
export class CreateMeasurementFormInstanceRequest {
|
|
40944
|
+
constructor(data) {
|
|
40945
|
+
if (data) {
|
|
40946
|
+
for (var property in data) {
|
|
40947
|
+
if (data.hasOwnProperty(property))
|
|
40948
|
+
this[property] = data[property];
|
|
40949
|
+
}
|
|
40950
|
+
}
|
|
40951
|
+
if (!data) {
|
|
40952
|
+
this.series = [];
|
|
40953
|
+
}
|
|
40954
|
+
}
|
|
40955
|
+
init(_data) {
|
|
40956
|
+
if (_data) {
|
|
40957
|
+
this.schemaId = _data["schemaId"];
|
|
40958
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
40959
|
+
if (Array.isArray(_data["series"])) {
|
|
40960
|
+
this.series = [];
|
|
40961
|
+
for (let item of _data["series"])
|
|
40962
|
+
this.series.push(CreateMeasurementFormInstanceRequestSeries.fromJS(item));
|
|
40963
|
+
}
|
|
40964
|
+
}
|
|
40965
|
+
}
|
|
40966
|
+
static fromJS(data) {
|
|
40967
|
+
data = typeof data === 'object' ? data : {};
|
|
40968
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
40969
|
+
result.init(data);
|
|
40970
|
+
return result;
|
|
40971
|
+
}
|
|
40972
|
+
toJSON(data) {
|
|
40973
|
+
data = typeof data === 'object' ? data : {};
|
|
40974
|
+
data["schemaId"] = this.schemaId;
|
|
40975
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
40976
|
+
if (Array.isArray(this.series)) {
|
|
40977
|
+
data["series"] = [];
|
|
40978
|
+
for (let item of this.series)
|
|
40979
|
+
data["series"].push(item.toJSON());
|
|
40980
|
+
}
|
|
40981
|
+
return data;
|
|
40982
|
+
}
|
|
40983
|
+
}
|
|
40984
|
+
export class CreateMeasurementFormInstanceRequestSeries {
|
|
40985
|
+
constructor(data) {
|
|
40986
|
+
if (data) {
|
|
40987
|
+
for (var property in data) {
|
|
40988
|
+
if (data.hasOwnProperty(property))
|
|
40989
|
+
this[property] = data[property];
|
|
40990
|
+
}
|
|
40991
|
+
}
|
|
40992
|
+
}
|
|
40993
|
+
init(_data) {
|
|
40994
|
+
if (_data) {
|
|
40995
|
+
this.startingSerialNumber = _data["startingSerialNumber"];
|
|
40996
|
+
this.startingSequenceNumber = _data["startingSequenceNumber"];
|
|
40997
|
+
this.qty = _data["qty"];
|
|
40998
|
+
}
|
|
40999
|
+
}
|
|
41000
|
+
static fromJS(data) {
|
|
41001
|
+
data = typeof data === 'object' ? data : {};
|
|
41002
|
+
let result = new CreateMeasurementFormInstanceRequestSeries();
|
|
41003
|
+
result.init(data);
|
|
41004
|
+
return result;
|
|
41005
|
+
}
|
|
41006
|
+
toJSON(data) {
|
|
41007
|
+
data = typeof data === 'object' ? data : {};
|
|
41008
|
+
data["startingSerialNumber"] = this.startingSerialNumber;
|
|
41009
|
+
data["startingSequenceNumber"] = this.startingSequenceNumber;
|
|
41010
|
+
data["qty"] = this.qty;
|
|
41011
|
+
return data;
|
|
41012
|
+
}
|
|
41013
|
+
}
|
|
40936
41014
|
export class UpdateMeasurementFormInstanceRequest {
|
|
40937
41015
|
constructor(data) {
|
|
40938
41016
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -18880,7 +18880,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
18880
18880
|
|
|
18881
18881
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
18882
18882
|
|
|
18883
|
-
createMeasurementFormInstance2(id: string,
|
|
18883
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
18884
18884
|
|
|
18885
18885
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
18886
18886
|
|
|
@@ -19288,22 +19288,20 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
19288
19288
|
return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
|
|
19289
19289
|
}
|
|
19290
19290
|
|
|
19291
|
-
createMeasurementFormInstance2(id: string,
|
|
19292
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance
|
|
19291
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
19292
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
19293
19293
|
if (id === undefined || id === null)
|
|
19294
19294
|
throw new Error("The parameter 'id' must be defined.");
|
|
19295
19295
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19296
|
-
if (schemaId !== undefined && schemaId !== null)
|
|
19297
|
-
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
19298
|
-
if (sequenceCount === null)
|
|
19299
|
-
throw new Error("The parameter 'sequenceCount' cannot be null.");
|
|
19300
|
-
else if (sequenceCount !== undefined)
|
|
19301
|
-
url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
|
|
19302
19296
|
url_ = url_.replace(/[?&]$/, "");
|
|
19303
19297
|
|
|
19298
|
+
const content_ = JSON.stringify(request);
|
|
19299
|
+
|
|
19304
19300
|
let options_: RequestInit = {
|
|
19301
|
+
body: content_,
|
|
19305
19302
|
method: "POST",
|
|
19306
19303
|
headers: {
|
|
19304
|
+
"Content-Type": "application/json",
|
|
19307
19305
|
"Accept": "application/json"
|
|
19308
19306
|
}
|
|
19309
19307
|
};
|
|
@@ -32949,7 +32947,7 @@ export class MachineStateDto implements IMachineStateDto {
|
|
|
32949
32947
|
description?: string | null;
|
|
32950
32948
|
state!: string;
|
|
32951
32949
|
machineState!: MachineState;
|
|
32952
|
-
startTime
|
|
32950
|
+
startTime!: Date;
|
|
32953
32951
|
|
|
32954
32952
|
constructor(data?: IMachineStateDto) {
|
|
32955
32953
|
if (data) {
|
|
@@ -32996,7 +32994,7 @@ export interface IMachineStateDto {
|
|
|
32996
32994
|
description?: string | null;
|
|
32997
32995
|
state: string;
|
|
32998
32996
|
machineState: MachineState;
|
|
32999
|
-
startTime
|
|
32997
|
+
startTime: Date;
|
|
33000
32998
|
}
|
|
33001
32999
|
|
|
33002
33000
|
export class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
|
|
@@ -43697,10 +43695,15 @@ export interface IDocumentLinkDto {
|
|
|
43697
43695
|
export class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
|
|
43698
43696
|
orderNumber!: string;
|
|
43699
43697
|
title!: string;
|
|
43698
|
+
processedAt!: Date;
|
|
43699
|
+
severity!: string;
|
|
43700
43700
|
category?: string | null;
|
|
43701
43701
|
description?: string | null;
|
|
43702
43702
|
project?: string | null;
|
|
43703
43703
|
status?: string | null;
|
|
43704
|
+
responsible?: UserDto | null;
|
|
43705
|
+
engineer?: UserDto | null;
|
|
43706
|
+
actions?: string | null;
|
|
43704
43707
|
|
|
43705
43708
|
constructor(data?: IEngineeringChangeOrderDto) {
|
|
43706
43709
|
if (data) {
|
|
@@ -43715,10 +43718,15 @@ export class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
|
|
|
43715
43718
|
if (_data) {
|
|
43716
43719
|
this.orderNumber = _data["orderNumber"];
|
|
43717
43720
|
this.title = _data["title"];
|
|
43721
|
+
this.processedAt = _data["processedAt"] ? new Date(_data["processedAt"].toString()) : <any>undefined;
|
|
43722
|
+
this.severity = _data["severity"];
|
|
43718
43723
|
this.category = _data["category"];
|
|
43719
43724
|
this.description = _data["description"];
|
|
43720
43725
|
this.project = _data["project"];
|
|
43721
43726
|
this.status = _data["status"];
|
|
43727
|
+
this.responsible = _data["responsible"] ? UserDto.fromJS(_data["responsible"]) : <any>undefined;
|
|
43728
|
+
this.engineer = _data["engineer"] ? UserDto.fromJS(_data["engineer"]) : <any>undefined;
|
|
43729
|
+
this.actions = _data["actions"];
|
|
43722
43730
|
}
|
|
43723
43731
|
}
|
|
43724
43732
|
|
|
@@ -43733,10 +43741,15 @@ export class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
|
|
|
43733
43741
|
data = typeof data === 'object' ? data : {};
|
|
43734
43742
|
data["orderNumber"] = this.orderNumber;
|
|
43735
43743
|
data["title"] = this.title;
|
|
43744
|
+
data["processedAt"] = this.processedAt ? this.processedAt.toISOString() : <any>undefined;
|
|
43745
|
+
data["severity"] = this.severity;
|
|
43736
43746
|
data["category"] = this.category;
|
|
43737
43747
|
data["description"] = this.description;
|
|
43738
43748
|
data["project"] = this.project;
|
|
43739
43749
|
data["status"] = this.status;
|
|
43750
|
+
data["responsible"] = this.responsible ? this.responsible.toJSON() : <any>undefined;
|
|
43751
|
+
data["engineer"] = this.engineer ? this.engineer.toJSON() : <any>undefined;
|
|
43752
|
+
data["actions"] = this.actions;
|
|
43740
43753
|
return data;
|
|
43741
43754
|
}
|
|
43742
43755
|
}
|
|
@@ -43744,10 +43757,15 @@ export class EngineeringChangeOrderDto implements IEngineeringChangeOrderDto {
|
|
|
43744
43757
|
export interface IEngineeringChangeOrderDto {
|
|
43745
43758
|
orderNumber: string;
|
|
43746
43759
|
title: string;
|
|
43760
|
+
processedAt: Date;
|
|
43761
|
+
severity: string;
|
|
43747
43762
|
category?: string | null;
|
|
43748
43763
|
description?: string | null;
|
|
43749
43764
|
project?: string | null;
|
|
43750
43765
|
status?: string | null;
|
|
43766
|
+
responsible?: UserDto | null;
|
|
43767
|
+
engineer?: UserDto | null;
|
|
43768
|
+
actions?: string | null;
|
|
43751
43769
|
}
|
|
43752
43770
|
|
|
43753
43771
|
export class AddMesLink implements IAddMesLink {
|
|
@@ -52169,6 +52187,105 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
52169
52187
|
created: Date;
|
|
52170
52188
|
}
|
|
52171
52189
|
|
|
52190
|
+
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
52191
|
+
schemaId!: string;
|
|
52192
|
+
purchaseOrder?: string | null;
|
|
52193
|
+
series!: CreateMeasurementFormInstanceRequestSeries[];
|
|
52194
|
+
|
|
52195
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
52196
|
+
if (data) {
|
|
52197
|
+
for (var property in data) {
|
|
52198
|
+
if (data.hasOwnProperty(property))
|
|
52199
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52200
|
+
}
|
|
52201
|
+
}
|
|
52202
|
+
if (!data) {
|
|
52203
|
+
this.series = [];
|
|
52204
|
+
}
|
|
52205
|
+
}
|
|
52206
|
+
|
|
52207
|
+
init(_data?: any) {
|
|
52208
|
+
if (_data) {
|
|
52209
|
+
this.schemaId = _data["schemaId"];
|
|
52210
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
52211
|
+
if (Array.isArray(_data["series"])) {
|
|
52212
|
+
this.series = [] as any;
|
|
52213
|
+
for (let item of _data["series"])
|
|
52214
|
+
this.series!.push(CreateMeasurementFormInstanceRequestSeries.fromJS(item));
|
|
52215
|
+
}
|
|
52216
|
+
}
|
|
52217
|
+
}
|
|
52218
|
+
|
|
52219
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
52220
|
+
data = typeof data === 'object' ? data : {};
|
|
52221
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
52222
|
+
result.init(data);
|
|
52223
|
+
return result;
|
|
52224
|
+
}
|
|
52225
|
+
|
|
52226
|
+
toJSON(data?: any) {
|
|
52227
|
+
data = typeof data === 'object' ? data : {};
|
|
52228
|
+
data["schemaId"] = this.schemaId;
|
|
52229
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
52230
|
+
if (Array.isArray(this.series)) {
|
|
52231
|
+
data["series"] = [];
|
|
52232
|
+
for (let item of this.series)
|
|
52233
|
+
data["series"].push(item.toJSON());
|
|
52234
|
+
}
|
|
52235
|
+
return data;
|
|
52236
|
+
}
|
|
52237
|
+
}
|
|
52238
|
+
|
|
52239
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
52240
|
+
schemaId: string;
|
|
52241
|
+
purchaseOrder?: string | null;
|
|
52242
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
52243
|
+
}
|
|
52244
|
+
|
|
52245
|
+
export class CreateMeasurementFormInstanceRequestSeries implements ICreateMeasurementFormInstanceRequestSeries {
|
|
52246
|
+
startingSerialNumber?: string | null;
|
|
52247
|
+
startingSequenceNumber?: string | null;
|
|
52248
|
+
qty!: number;
|
|
52249
|
+
|
|
52250
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSeries) {
|
|
52251
|
+
if (data) {
|
|
52252
|
+
for (var property in data) {
|
|
52253
|
+
if (data.hasOwnProperty(property))
|
|
52254
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52255
|
+
}
|
|
52256
|
+
}
|
|
52257
|
+
}
|
|
52258
|
+
|
|
52259
|
+
init(_data?: any) {
|
|
52260
|
+
if (_data) {
|
|
52261
|
+
this.startingSerialNumber = _data["startingSerialNumber"];
|
|
52262
|
+
this.startingSequenceNumber = _data["startingSequenceNumber"];
|
|
52263
|
+
this.qty = _data["qty"];
|
|
52264
|
+
}
|
|
52265
|
+
}
|
|
52266
|
+
|
|
52267
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSeries {
|
|
52268
|
+
data = typeof data === 'object' ? data : {};
|
|
52269
|
+
let result = new CreateMeasurementFormInstanceRequestSeries();
|
|
52270
|
+
result.init(data);
|
|
52271
|
+
return result;
|
|
52272
|
+
}
|
|
52273
|
+
|
|
52274
|
+
toJSON(data?: any) {
|
|
52275
|
+
data = typeof data === 'object' ? data : {};
|
|
52276
|
+
data["startingSerialNumber"] = this.startingSerialNumber;
|
|
52277
|
+
data["startingSequenceNumber"] = this.startingSequenceNumber;
|
|
52278
|
+
data["qty"] = this.qty;
|
|
52279
|
+
return data;
|
|
52280
|
+
}
|
|
52281
|
+
}
|
|
52282
|
+
|
|
52283
|
+
export interface ICreateMeasurementFormInstanceRequestSeries {
|
|
52284
|
+
startingSerialNumber?: string | null;
|
|
52285
|
+
startingSequenceNumber?: string | null;
|
|
52286
|
+
qty: number;
|
|
52287
|
+
}
|
|
52288
|
+
|
|
52172
52289
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
52173
52290
|
sequences!: MeasurementFormWorkorderSequenceDto[];
|
|
52174
52291
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|