@ignos/api-client 20250710.0.12146 → 20250711.0.12189-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 +42 -97
- package/lib/ignosportal-api.js +77 -217
- package/package.json +1 -1
- package/src/ignosportal-api.ts +117 -311
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 {
|
|
@@ -55494,6 +55449,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55494
55449
|
statusChangedDate?: Date | null;
|
|
55495
55450
|
schemas!: MeasurementFormWorkorderSchemaDto[];
|
|
55496
55451
|
sequences!: MeasurementFormWorkorderSequenceDto[];
|
|
55452
|
+
serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
55497
55453
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
55498
55454
|
progress!: MeasurementFormProgressDto;
|
|
55499
55455
|
approvedReportUrl?: string | null;
|
|
@@ -55537,6 +55493,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55537
55493
|
for (let item of _data["sequences"])
|
|
55538
55494
|
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
55539
55495
|
}
|
|
55496
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
55497
|
+
this.serialNumbers = [] as any;
|
|
55498
|
+
for (let item of _data["serialNumbers"])
|
|
55499
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
55500
|
+
}
|
|
55540
55501
|
if (Array.isArray(_data["suppliers"])) {
|
|
55541
55502
|
this.suppliers = [] as any;
|
|
55542
55503
|
for (let item of _data["suppliers"])
|
|
@@ -55578,6 +55539,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55578
55539
|
for (let item of this.sequences)
|
|
55579
55540
|
data["sequences"].push(item.toJSON());
|
|
55580
55541
|
}
|
|
55542
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
55543
|
+
data["serialNumbers"] = [];
|
|
55544
|
+
for (let item of this.serialNumbers)
|
|
55545
|
+
data["serialNumbers"].push(item.toJSON());
|
|
55546
|
+
}
|
|
55581
55547
|
if (Array.isArray(this.suppliers)) {
|
|
55582
55548
|
data["suppliers"] = [];
|
|
55583
55549
|
for (let item of this.suppliers)
|
|
@@ -55604,6 +55570,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
55604
55570
|
statusChangedDate?: Date | null;
|
|
55605
55571
|
schemas: MeasurementFormWorkorderSchemaDto[];
|
|
55606
55572
|
sequences: MeasurementFormWorkorderSequenceDto[];
|
|
55573
|
+
serialNumbers?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
55607
55574
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
55608
55575
|
progress: MeasurementFormProgressDto;
|
|
55609
55576
|
approvedReportUrl?: string | null;
|
|
@@ -56021,7 +55988,8 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
|
56021
55988
|
}
|
|
56022
55989
|
|
|
56023
55990
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
56024
|
-
sequences
|
|
55991
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
55992
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
56025
55993
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
56026
55994
|
|
|
56027
55995
|
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
@@ -56032,7 +56000,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56032
56000
|
}
|
|
56033
56001
|
}
|
|
56034
56002
|
if (!data) {
|
|
56035
|
-
this.
|
|
56003
|
+
this.serialNumbers = [];
|
|
56036
56004
|
this.suppliers = [];
|
|
56037
56005
|
}
|
|
56038
56006
|
}
|
|
@@ -56044,6 +56012,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56044
56012
|
for (let item of _data["sequences"])
|
|
56045
56013
|
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
56046
56014
|
}
|
|
56015
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
56016
|
+
this.serialNumbers = [] as any;
|
|
56017
|
+
for (let item of _data["serialNumbers"])
|
|
56018
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
56019
|
+
}
|
|
56047
56020
|
if (Array.isArray(_data["suppliers"])) {
|
|
56048
56021
|
this.suppliers = [] as any;
|
|
56049
56022
|
for (let item of _data["suppliers"])
|
|
@@ -56066,6 +56039,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56066
56039
|
for (let item of this.sequences)
|
|
56067
56040
|
data["sequences"].push(item.toJSON());
|
|
56068
56041
|
}
|
|
56042
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
56043
|
+
data["serialNumbers"] = [];
|
|
56044
|
+
for (let item of this.serialNumbers)
|
|
56045
|
+
data["serialNumbers"].push(item.toJSON());
|
|
56046
|
+
}
|
|
56069
56047
|
if (Array.isArray(this.suppliers)) {
|
|
56070
56048
|
data["suppliers"] = [];
|
|
56071
56049
|
for (let item of this.suppliers)
|
|
@@ -56076,10 +56054,55 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56076
56054
|
}
|
|
56077
56055
|
|
|
56078
56056
|
export interface IUpdateMeasurementFormInstanceRequest {
|
|
56079
|
-
sequences
|
|
56057
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
56058
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
56080
56059
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
56081
56060
|
}
|
|
56082
56061
|
|
|
56062
|
+
export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
|
|
56063
|
+
lot?: string | null;
|
|
56064
|
+
serialNumber!: string;
|
|
56065
|
+
customerSerialNumber?: string | null;
|
|
56066
|
+
|
|
56067
|
+
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
56068
|
+
if (data) {
|
|
56069
|
+
for (var property in data) {
|
|
56070
|
+
if (data.hasOwnProperty(property))
|
|
56071
|
+
(<any>this)[property] = (<any>data)[property];
|
|
56072
|
+
}
|
|
56073
|
+
}
|
|
56074
|
+
}
|
|
56075
|
+
|
|
56076
|
+
init(_data?: any) {
|
|
56077
|
+
if (_data) {
|
|
56078
|
+
this.lot = _data["lot"];
|
|
56079
|
+
this.serialNumber = _data["serialNumber"];
|
|
56080
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
56081
|
+
}
|
|
56082
|
+
}
|
|
56083
|
+
|
|
56084
|
+
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
56085
|
+
data = typeof data === 'object' ? data : {};
|
|
56086
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
56087
|
+
result.init(data);
|
|
56088
|
+
return result;
|
|
56089
|
+
}
|
|
56090
|
+
|
|
56091
|
+
toJSON(data?: any) {
|
|
56092
|
+
data = typeof data === 'object' ? data : {};
|
|
56093
|
+
data["lot"] = this.lot;
|
|
56094
|
+
data["serialNumber"] = this.serialNumber;
|
|
56095
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
56096
|
+
return data;
|
|
56097
|
+
}
|
|
56098
|
+
}
|
|
56099
|
+
|
|
56100
|
+
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
56101
|
+
lot?: string | null;
|
|
56102
|
+
serialNumber: string;
|
|
56103
|
+
customerSerialNumber?: string | null;
|
|
56104
|
+
}
|
|
56105
|
+
|
|
56083
56106
|
export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
56084
56107
|
elements!: MeasurementFormInstanceElementDto[];
|
|
56085
56108
|
isCompleted!: boolean;
|
|
@@ -56712,7 +56735,8 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56712
56735
|
resourceName?: string | null;
|
|
56713
56736
|
schemaId!: string;
|
|
56714
56737
|
elementId!: string;
|
|
56715
|
-
sequence
|
|
56738
|
+
sequence?: string | null;
|
|
56739
|
+
serialNumber!: string;
|
|
56716
56740
|
value?: string | null;
|
|
56717
56741
|
bonus?: string | null;
|
|
56718
56742
|
|
|
@@ -56732,6 +56756,7 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56732
56756
|
this.schemaId = _data["schemaId"];
|
|
56733
56757
|
this.elementId = _data["elementId"];
|
|
56734
56758
|
this.sequence = _data["sequence"];
|
|
56759
|
+
this.serialNumber = _data["serialNumber"];
|
|
56735
56760
|
this.value = _data["value"];
|
|
56736
56761
|
this.bonus = _data["bonus"];
|
|
56737
56762
|
}
|
|
@@ -56751,6 +56776,7 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56751
56776
|
data["schemaId"] = this.schemaId;
|
|
56752
56777
|
data["elementId"] = this.elementId;
|
|
56753
56778
|
data["sequence"] = this.sequence;
|
|
56779
|
+
data["serialNumber"] = this.serialNumber;
|
|
56754
56780
|
data["value"] = this.value;
|
|
56755
56781
|
data["bonus"] = this.bonus;
|
|
56756
56782
|
return data;
|
|
@@ -56762,7 +56788,8 @@ export interface ISaveValueRequest {
|
|
|
56762
56788
|
resourceName?: string | null;
|
|
56763
56789
|
schemaId: string;
|
|
56764
56790
|
elementId: string;
|
|
56765
|
-
sequence
|
|
56791
|
+
sequence?: string | null;
|
|
56792
|
+
serialNumber: string;
|
|
56766
56793
|
value?: string | null;
|
|
56767
56794
|
bonus?: string | null;
|
|
56768
56795
|
}
|
|
@@ -56770,7 +56797,8 @@ export interface ISaveValueRequest {
|
|
|
56770
56797
|
export class SaveToolRequest implements ISaveToolRequest {
|
|
56771
56798
|
schemaId!: string;
|
|
56772
56799
|
elementId!: string;
|
|
56773
|
-
sequence
|
|
56800
|
+
sequence?: string | null;
|
|
56801
|
+
serialNumber!: string;
|
|
56774
56802
|
tools?: string[] | null;
|
|
56775
56803
|
force?: boolean;
|
|
56776
56804
|
|
|
@@ -56788,6 +56816,7 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56788
56816
|
this.schemaId = _data["schemaId"];
|
|
56789
56817
|
this.elementId = _data["elementId"];
|
|
56790
56818
|
this.sequence = _data["sequence"];
|
|
56819
|
+
this.serialNumber = _data["serialNumber"];
|
|
56791
56820
|
if (Array.isArray(_data["tools"])) {
|
|
56792
56821
|
this.tools = [] as any;
|
|
56793
56822
|
for (let item of _data["tools"])
|
|
@@ -56809,6 +56838,7 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56809
56838
|
data["schemaId"] = this.schemaId;
|
|
56810
56839
|
data["elementId"] = this.elementId;
|
|
56811
56840
|
data["sequence"] = this.sequence;
|
|
56841
|
+
data["serialNumber"] = this.serialNumber;
|
|
56812
56842
|
if (Array.isArray(this.tools)) {
|
|
56813
56843
|
data["tools"] = [];
|
|
56814
56844
|
for (let item of this.tools)
|
|
@@ -56822,7 +56852,8 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56822
56852
|
export interface ISaveToolRequest {
|
|
56823
56853
|
schemaId: string;
|
|
56824
56854
|
elementId: string;
|
|
56825
|
-
sequence
|
|
56855
|
+
sequence?: string | null;
|
|
56856
|
+
serialNumber: string;
|
|
56826
56857
|
tools?: string[] | null;
|
|
56827
56858
|
force?: boolean;
|
|
56828
56859
|
}
|
|
@@ -56830,7 +56861,8 @@ export interface ISaveToolRequest {
|
|
|
56830
56861
|
export class SaveCommentRequest implements ISaveCommentRequest {
|
|
56831
56862
|
schemaId!: string;
|
|
56832
56863
|
elementId!: string;
|
|
56833
|
-
sequence
|
|
56864
|
+
sequence?: string | null;
|
|
56865
|
+
serialNumber!: string;
|
|
56834
56866
|
comment?: string | null;
|
|
56835
56867
|
|
|
56836
56868
|
constructor(data?: ISaveCommentRequest) {
|
|
@@ -56847,6 +56879,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56847
56879
|
this.schemaId = _data["schemaId"];
|
|
56848
56880
|
this.elementId = _data["elementId"];
|
|
56849
56881
|
this.sequence = _data["sequence"];
|
|
56882
|
+
this.serialNumber = _data["serialNumber"];
|
|
56850
56883
|
this.comment = _data["comment"];
|
|
56851
56884
|
}
|
|
56852
56885
|
}
|
|
@@ -56863,6 +56896,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56863
56896
|
data["schemaId"] = this.schemaId;
|
|
56864
56897
|
data["elementId"] = this.elementId;
|
|
56865
56898
|
data["sequence"] = this.sequence;
|
|
56899
|
+
data["serialNumber"] = this.serialNumber;
|
|
56866
56900
|
data["comment"] = this.comment;
|
|
56867
56901
|
return data;
|
|
56868
56902
|
}
|
|
@@ -56871,7 +56905,8 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56871
56905
|
export interface ISaveCommentRequest {
|
|
56872
56906
|
schemaId: string;
|
|
56873
56907
|
elementId: string;
|
|
56874
|
-
sequence
|
|
56908
|
+
sequence?: string | null;
|
|
56909
|
+
serialNumber: string;
|
|
56875
56910
|
comment?: string | null;
|
|
56876
56911
|
}
|
|
56877
56912
|
|
|
@@ -57259,6 +57294,7 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57259
57294
|
includeAllSchemasAndElements?: boolean | null;
|
|
57260
57295
|
createBlankReport?: boolean | null;
|
|
57261
57296
|
sequences?: string[] | null;
|
|
57297
|
+
serialNumbers?: string[] | null;
|
|
57262
57298
|
customerPO?: string | null;
|
|
57263
57299
|
workOrder?: string | null;
|
|
57264
57300
|
comment?: string | null;
|
|
@@ -57283,6 +57319,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57283
57319
|
for (let item of _data["sequences"])
|
|
57284
57320
|
this.sequences!.push(item);
|
|
57285
57321
|
}
|
|
57322
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
57323
|
+
this.serialNumbers = [] as any;
|
|
57324
|
+
for (let item of _data["serialNumbers"])
|
|
57325
|
+
this.serialNumbers!.push(item);
|
|
57326
|
+
}
|
|
57286
57327
|
this.customerPO = _data["customerPO"];
|
|
57287
57328
|
this.workOrder = _data["workOrder"];
|
|
57288
57329
|
this.comment = _data["comment"];
|
|
@@ -57307,6 +57348,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57307
57348
|
for (let item of this.sequences)
|
|
57308
57349
|
data["sequences"].push(item);
|
|
57309
57350
|
}
|
|
57351
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
57352
|
+
data["serialNumbers"] = [];
|
|
57353
|
+
for (let item of this.serialNumbers)
|
|
57354
|
+
data["serialNumbers"].push(item);
|
|
57355
|
+
}
|
|
57310
57356
|
data["customerPO"] = this.customerPO;
|
|
57311
57357
|
data["workOrder"] = this.workOrder;
|
|
57312
57358
|
data["comment"] = this.comment;
|
|
@@ -57320,6 +57366,7 @@ export interface IExportDimensionReportRequest {
|
|
|
57320
57366
|
includeAllSchemasAndElements?: boolean | null;
|
|
57321
57367
|
createBlankReport?: boolean | null;
|
|
57322
57368
|
sequences?: string[] | null;
|
|
57369
|
+
serialNumbers?: string[] | null;
|
|
57323
57370
|
customerPO?: string | null;
|
|
57324
57371
|
workOrder?: string | null;
|
|
57325
57372
|
comment?: string | null;
|
|
@@ -57413,255 +57460,6 @@ export interface ISchemaInstanceElementDto {
|
|
|
57413
57460
|
disabled: boolean;
|
|
57414
57461
|
}
|
|
57415
57462
|
|
|
57416
|
-
export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
|
|
57417
|
-
partInfo!: ImportMeasurementFormPartDto;
|
|
57418
|
-
customerId?: string | null;
|
|
57419
|
-
customerGroupId?: string | null;
|
|
57420
|
-
customerName?: string | null;
|
|
57421
|
-
externalOrderNumber?: string | null;
|
|
57422
|
-
quantity!: number;
|
|
57423
|
-
sequences!: WorkorderImportTraceItemDto[];
|
|
57424
|
-
status!: MeasurementFormInstanceStatus;
|
|
57425
|
-
statusChangedBy?: string | null;
|
|
57426
|
-
statusChangedDate?: Date | null;
|
|
57427
|
-
created!: Date;
|
|
57428
|
-
createdBy?: string | null;
|
|
57429
|
-
updatedBy?: string | null;
|
|
57430
|
-
schemas!: ImportMeasurementSchemaInstanceDto[];
|
|
57431
|
-
|
|
57432
|
-
constructor(data?: IImportMeasurementFormInstanceRequest) {
|
|
57433
|
-
if (data) {
|
|
57434
|
-
for (var property in data) {
|
|
57435
|
-
if (data.hasOwnProperty(property))
|
|
57436
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57437
|
-
}
|
|
57438
|
-
}
|
|
57439
|
-
if (!data) {
|
|
57440
|
-
this.partInfo = new ImportMeasurementFormPartDto();
|
|
57441
|
-
this.sequences = [];
|
|
57442
|
-
this.schemas = [];
|
|
57443
|
-
}
|
|
57444
|
-
}
|
|
57445
|
-
|
|
57446
|
-
init(_data?: any) {
|
|
57447
|
-
if (_data) {
|
|
57448
|
-
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
57449
|
-
this.customerId = _data["customerId"];
|
|
57450
|
-
this.customerGroupId = _data["customerGroupId"];
|
|
57451
|
-
this.customerName = _data["customerName"];
|
|
57452
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57453
|
-
this.quantity = _data["quantity"];
|
|
57454
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57455
|
-
this.sequences = [] as any;
|
|
57456
|
-
for (let item of _data["sequences"])
|
|
57457
|
-
this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
57458
|
-
}
|
|
57459
|
-
this.status = _data["status"];
|
|
57460
|
-
this.statusChangedBy = _data["statusChangedBy"];
|
|
57461
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
|
|
57462
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
57463
|
-
this.createdBy = _data["createdBy"];
|
|
57464
|
-
this.updatedBy = _data["updatedBy"];
|
|
57465
|
-
if (Array.isArray(_data["schemas"])) {
|
|
57466
|
-
this.schemas = [] as any;
|
|
57467
|
-
for (let item of _data["schemas"])
|
|
57468
|
-
this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
57469
|
-
}
|
|
57470
|
-
}
|
|
57471
|
-
}
|
|
57472
|
-
|
|
57473
|
-
static fromJS(data: any): ImportMeasurementFormInstanceRequest {
|
|
57474
|
-
data = typeof data === 'object' ? data : {};
|
|
57475
|
-
let result = new ImportMeasurementFormInstanceRequest();
|
|
57476
|
-
result.init(data);
|
|
57477
|
-
return result;
|
|
57478
|
-
}
|
|
57479
|
-
|
|
57480
|
-
toJSON(data?: any) {
|
|
57481
|
-
data = typeof data === 'object' ? data : {};
|
|
57482
|
-
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
|
|
57483
|
-
data["customerId"] = this.customerId;
|
|
57484
|
-
data["customerGroupId"] = this.customerGroupId;
|
|
57485
|
-
data["customerName"] = this.customerName;
|
|
57486
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57487
|
-
data["quantity"] = this.quantity;
|
|
57488
|
-
if (Array.isArray(this.sequences)) {
|
|
57489
|
-
data["sequences"] = [];
|
|
57490
|
-
for (let item of this.sequences)
|
|
57491
|
-
data["sequences"].push(item.toJSON());
|
|
57492
|
-
}
|
|
57493
|
-
data["status"] = this.status;
|
|
57494
|
-
data["statusChangedBy"] = this.statusChangedBy;
|
|
57495
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
|
|
57496
|
-
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
57497
|
-
data["createdBy"] = this.createdBy;
|
|
57498
|
-
data["updatedBy"] = this.updatedBy;
|
|
57499
|
-
if (Array.isArray(this.schemas)) {
|
|
57500
|
-
data["schemas"] = [];
|
|
57501
|
-
for (let item of this.schemas)
|
|
57502
|
-
data["schemas"].push(item.toJSON());
|
|
57503
|
-
}
|
|
57504
|
-
return data;
|
|
57505
|
-
}
|
|
57506
|
-
}
|
|
57507
|
-
|
|
57508
|
-
export interface IImportMeasurementFormInstanceRequest {
|
|
57509
|
-
partInfo: ImportMeasurementFormPartDto;
|
|
57510
|
-
customerId?: string | null;
|
|
57511
|
-
customerGroupId?: string | null;
|
|
57512
|
-
customerName?: string | null;
|
|
57513
|
-
externalOrderNumber?: string | null;
|
|
57514
|
-
quantity: number;
|
|
57515
|
-
sequences: WorkorderImportTraceItemDto[];
|
|
57516
|
-
status: MeasurementFormInstanceStatus;
|
|
57517
|
-
statusChangedBy?: string | null;
|
|
57518
|
-
statusChangedDate?: Date | null;
|
|
57519
|
-
created: Date;
|
|
57520
|
-
createdBy?: string | null;
|
|
57521
|
-
updatedBy?: string | null;
|
|
57522
|
-
schemas: ImportMeasurementSchemaInstanceDto[];
|
|
57523
|
-
}
|
|
57524
|
-
|
|
57525
|
-
export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
|
|
57526
|
-
partNumber?: string | null;
|
|
57527
|
-
partName?: string | null;
|
|
57528
|
-
partRevision?: string | null;
|
|
57529
|
-
drawing!: string;
|
|
57530
|
-
drawingRevision?: string | null;
|
|
57531
|
-
|
|
57532
|
-
constructor(data?: IImportMeasurementFormPartDto) {
|
|
57533
|
-
if (data) {
|
|
57534
|
-
for (var property in data) {
|
|
57535
|
-
if (data.hasOwnProperty(property))
|
|
57536
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57537
|
-
}
|
|
57538
|
-
}
|
|
57539
|
-
}
|
|
57540
|
-
|
|
57541
|
-
init(_data?: any) {
|
|
57542
|
-
if (_data) {
|
|
57543
|
-
this.partNumber = _data["partNumber"];
|
|
57544
|
-
this.partName = _data["partName"];
|
|
57545
|
-
this.partRevision = _data["partRevision"];
|
|
57546
|
-
this.drawing = _data["drawing"];
|
|
57547
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
57548
|
-
}
|
|
57549
|
-
}
|
|
57550
|
-
|
|
57551
|
-
static fromJS(data: any): ImportMeasurementFormPartDto {
|
|
57552
|
-
data = typeof data === 'object' ? data : {};
|
|
57553
|
-
let result = new ImportMeasurementFormPartDto();
|
|
57554
|
-
result.init(data);
|
|
57555
|
-
return result;
|
|
57556
|
-
}
|
|
57557
|
-
|
|
57558
|
-
toJSON(data?: any) {
|
|
57559
|
-
data = typeof data === 'object' ? data : {};
|
|
57560
|
-
data["partNumber"] = this.partNumber;
|
|
57561
|
-
data["partName"] = this.partName;
|
|
57562
|
-
data["partRevision"] = this.partRevision;
|
|
57563
|
-
data["drawing"] = this.drawing;
|
|
57564
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
57565
|
-
return data;
|
|
57566
|
-
}
|
|
57567
|
-
}
|
|
57568
|
-
|
|
57569
|
-
export interface IImportMeasurementFormPartDto {
|
|
57570
|
-
partNumber?: string | null;
|
|
57571
|
-
partName?: string | null;
|
|
57572
|
-
partRevision?: string | null;
|
|
57573
|
-
drawing: string;
|
|
57574
|
-
drawingRevision?: string | null;
|
|
57575
|
-
}
|
|
57576
|
-
|
|
57577
|
-
export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
|
|
57578
|
-
sequence!: string;
|
|
57579
|
-
serialNumber?: string | null;
|
|
57580
|
-
lot?: string | null;
|
|
57581
|
-
active!: boolean;
|
|
57582
|
-
|
|
57583
|
-
constructor(data?: IWorkorderImportTraceItemDto) {
|
|
57584
|
-
if (data) {
|
|
57585
|
-
for (var property in data) {
|
|
57586
|
-
if (data.hasOwnProperty(property))
|
|
57587
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57588
|
-
}
|
|
57589
|
-
}
|
|
57590
|
-
}
|
|
57591
|
-
|
|
57592
|
-
init(_data?: any) {
|
|
57593
|
-
if (_data) {
|
|
57594
|
-
this.sequence = _data["sequence"];
|
|
57595
|
-
this.serialNumber = _data["serialNumber"];
|
|
57596
|
-
this.lot = _data["lot"];
|
|
57597
|
-
this.active = _data["active"];
|
|
57598
|
-
}
|
|
57599
|
-
}
|
|
57600
|
-
|
|
57601
|
-
static fromJS(data: any): WorkorderImportTraceItemDto {
|
|
57602
|
-
data = typeof data === 'object' ? data : {};
|
|
57603
|
-
let result = new WorkorderImportTraceItemDto();
|
|
57604
|
-
result.init(data);
|
|
57605
|
-
return result;
|
|
57606
|
-
}
|
|
57607
|
-
|
|
57608
|
-
toJSON(data?: any) {
|
|
57609
|
-
data = typeof data === 'object' ? data : {};
|
|
57610
|
-
data["sequence"] = this.sequence;
|
|
57611
|
-
data["serialNumber"] = this.serialNumber;
|
|
57612
|
-
data["lot"] = this.lot;
|
|
57613
|
-
data["active"] = this.active;
|
|
57614
|
-
return data;
|
|
57615
|
-
}
|
|
57616
|
-
}
|
|
57617
|
-
|
|
57618
|
-
export interface IWorkorderImportTraceItemDto {
|
|
57619
|
-
sequence: string;
|
|
57620
|
-
serialNumber?: string | null;
|
|
57621
|
-
lot?: string | null;
|
|
57622
|
-
active: boolean;
|
|
57623
|
-
}
|
|
57624
|
-
|
|
57625
|
-
export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
|
|
57626
|
-
id!: string;
|
|
57627
|
-
version!: number;
|
|
57628
|
-
|
|
57629
|
-
constructor(data?: IImportMeasurementSchemaInstanceDto) {
|
|
57630
|
-
if (data) {
|
|
57631
|
-
for (var property in data) {
|
|
57632
|
-
if (data.hasOwnProperty(property))
|
|
57633
|
-
(<any>this)[property] = (<any>data)[property];
|
|
57634
|
-
}
|
|
57635
|
-
}
|
|
57636
|
-
}
|
|
57637
|
-
|
|
57638
|
-
init(_data?: any) {
|
|
57639
|
-
if (_data) {
|
|
57640
|
-
this.id = _data["id"];
|
|
57641
|
-
this.version = _data["version"];
|
|
57642
|
-
}
|
|
57643
|
-
}
|
|
57644
|
-
|
|
57645
|
-
static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
|
|
57646
|
-
data = typeof data === 'object' ? data : {};
|
|
57647
|
-
let result = new ImportMeasurementSchemaInstanceDto();
|
|
57648
|
-
result.init(data);
|
|
57649
|
-
return result;
|
|
57650
|
-
}
|
|
57651
|
-
|
|
57652
|
-
toJSON(data?: any) {
|
|
57653
|
-
data = typeof data === 'object' ? data : {};
|
|
57654
|
-
data["id"] = this.id;
|
|
57655
|
-
data["version"] = this.version;
|
|
57656
|
-
return data;
|
|
57657
|
-
}
|
|
57658
|
-
}
|
|
57659
|
-
|
|
57660
|
-
export interface IImportMeasurementSchemaInstanceDto {
|
|
57661
|
-
id: string;
|
|
57662
|
-
version: number;
|
|
57663
|
-
}
|
|
57664
|
-
|
|
57665
57463
|
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
57666
57464
|
id!: string;
|
|
57667
57465
|
name!: string;
|
|
@@ -59019,8 +58817,10 @@ export interface IUpsertWorkOrderTracesRequest {
|
|
|
59019
58817
|
export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
59020
58818
|
sequence!: string;
|
|
59021
58819
|
serialNumber?: string | null;
|
|
58820
|
+
customerSerialNumber?: string | null;
|
|
59022
58821
|
lot?: string | null;
|
|
59023
58822
|
active!: boolean;
|
|
58823
|
+
isLegacy?: boolean;
|
|
59024
58824
|
|
|
59025
58825
|
constructor(data?: IWorkOrderTraceItemDto) {
|
|
59026
58826
|
if (data) {
|
|
@@ -59035,8 +58835,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
59035
58835
|
if (_data) {
|
|
59036
58836
|
this.sequence = _data["sequence"];
|
|
59037
58837
|
this.serialNumber = _data["serialNumber"];
|
|
58838
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
59038
58839
|
this.lot = _data["lot"];
|
|
59039
58840
|
this.active = _data["active"];
|
|
58841
|
+
this.isLegacy = _data["isLegacy"];
|
|
59040
58842
|
}
|
|
59041
58843
|
}
|
|
59042
58844
|
|
|
@@ -59051,8 +58853,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
59051
58853
|
data = typeof data === 'object' ? data : {};
|
|
59052
58854
|
data["sequence"] = this.sequence;
|
|
59053
58855
|
data["serialNumber"] = this.serialNumber;
|
|
58856
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
59054
58857
|
data["lot"] = this.lot;
|
|
59055
58858
|
data["active"] = this.active;
|
|
58859
|
+
data["isLegacy"] = this.isLegacy;
|
|
59056
58860
|
return data;
|
|
59057
58861
|
}
|
|
59058
58862
|
}
|
|
@@ -59060,8 +58864,10 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
59060
58864
|
export interface IWorkOrderTraceItemDto {
|
|
59061
58865
|
sequence: string;
|
|
59062
58866
|
serialNumber?: string | null;
|
|
58867
|
+
customerSerialNumber?: string | null;
|
|
59063
58868
|
lot?: string | null;
|
|
59064
58869
|
active: boolean;
|
|
58870
|
+
isLegacy?: boolean;
|
|
59065
58871
|
}
|
|
59066
58872
|
|
|
59067
58873
|
export class ResourceExistDto implements IResourceExistDto {
|