@ignos/api-client 20250711.0.12191-alpha → 20250725.0.12210-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 +183 -48
- package/lib/ignosportal-api.js +455 -80
- package/package.json +1 -1
- package/src/ignosportal-api.ts +631 -126
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, sequence: 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, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
20619
20619
|
|
|
20620
20620
|
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
20621
20621
|
|
|
@@ -20646,6 +20646,8 @@ 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>;
|
|
20649
20651
|
}
|
|
20650
20652
|
|
|
20651
20653
|
export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
|
|
@@ -21247,7 +21249,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21247
21249
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
21248
21250
|
}
|
|
21249
21251
|
|
|
21250
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string,
|
|
21252
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
|
|
21251
21253
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
21252
21254
|
if (id === undefined || id === null)
|
|
21253
21255
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -21255,8 +21257,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21255
21257
|
if (schemaId === undefined || schemaId === null)
|
|
21256
21258
|
throw new Error("The parameter 'schemaId' must be defined.");
|
|
21257
21259
|
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
21258
|
-
if (
|
|
21259
|
-
url_ += "
|
|
21260
|
+
if (sequence !== undefined && sequence !== null)
|
|
21261
|
+
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
21260
21262
|
if (tenantId !== undefined && tenantId !== null)
|
|
21261
21263
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21262
21264
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -21334,7 +21336,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21334
21336
|
return Promise.resolve<MeasurementFormInstanceProgressDto>(null as any);
|
|
21335
21337
|
}
|
|
21336
21338
|
|
|
21337
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined,
|
|
21339
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
|
|
21338
21340
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
|
|
21339
21341
|
if (id === undefined || id === null)
|
|
21340
21342
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -21343,8 +21345,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21343
21345
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21344
21346
|
if (schemaId !== undefined && schemaId !== null)
|
|
21345
21347
|
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
21346
|
-
if (
|
|
21347
|
-
url_ += "
|
|
21348
|
+
if (sequence !== undefined && sequence !== null)
|
|
21349
|
+
url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
|
|
21348
21350
|
if (elementId !== undefined && elementId !== null)
|
|
21349
21351
|
url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
|
|
21350
21352
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22028,6 +22030,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22028
22030
|
}
|
|
22029
22031
|
return Promise.resolve<void>(null as any);
|
|
22030
22032
|
}
|
|
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
|
+
}
|
|
22031
22076
|
}
|
|
22032
22077
|
|
|
22033
22078
|
export interface IElectricalClient {
|
|
@@ -23138,6 +23183,10 @@ export interface IWorkordersClient {
|
|
|
23138
23183
|
* Deleteds existing work order mappings.
|
|
23139
23184
|
*/
|
|
23140
23185
|
deleteWorkOrderMappings(): Promise<void>;
|
|
23186
|
+
|
|
23187
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessage[]>;
|
|
23188
|
+
|
|
23189
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessage>;
|
|
23141
23190
|
}
|
|
23142
23191
|
|
|
23143
23192
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -24217,6 +24266,92 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24217
24266
|
}
|
|
24218
24267
|
return Promise.resolve<void>(null as any);
|
|
24219
24268
|
}
|
|
24269
|
+
|
|
24270
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessage[]> {
|
|
24271
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24272
|
+
if (id === undefined || id === null)
|
|
24273
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24274
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24275
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24276
|
+
|
|
24277
|
+
let options_: RequestInit = {
|
|
24278
|
+
method: "GET",
|
|
24279
|
+
headers: {
|
|
24280
|
+
"Accept": "application/json"
|
|
24281
|
+
}
|
|
24282
|
+
};
|
|
24283
|
+
|
|
24284
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24285
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24286
|
+
}).then((_response: Response) => {
|
|
24287
|
+
return this.processGetDiscussionMessages(_response);
|
|
24288
|
+
});
|
|
24289
|
+
}
|
|
24290
|
+
|
|
24291
|
+
protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessage[]> {
|
|
24292
|
+
const status = response.status;
|
|
24293
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24294
|
+
if (status === 200) {
|
|
24295
|
+
return response.text().then((_responseText) => {
|
|
24296
|
+
let result200: any = null;
|
|
24297
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24298
|
+
if (Array.isArray(resultData200)) {
|
|
24299
|
+
result200 = [] as any;
|
|
24300
|
+
for (let item of resultData200)
|
|
24301
|
+
result200!.push(WorkorderDiscussionMessage.fromJS(item));
|
|
24302
|
+
}
|
|
24303
|
+
return result200;
|
|
24304
|
+
});
|
|
24305
|
+
} else if (status !== 200 && status !== 204) {
|
|
24306
|
+
return response.text().then((_responseText) => {
|
|
24307
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24308
|
+
});
|
|
24309
|
+
}
|
|
24310
|
+
return Promise.resolve<WorkorderDiscussionMessage[]>(null as any);
|
|
24311
|
+
}
|
|
24312
|
+
|
|
24313
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessage> {
|
|
24314
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24315
|
+
if (id === undefined || id === null)
|
|
24316
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24317
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24318
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24319
|
+
|
|
24320
|
+
const content_ = JSON.stringify(request);
|
|
24321
|
+
|
|
24322
|
+
let options_: RequestInit = {
|
|
24323
|
+
body: content_,
|
|
24324
|
+
method: "POST",
|
|
24325
|
+
headers: {
|
|
24326
|
+
"Content-Type": "application/json",
|
|
24327
|
+
"Accept": "application/json"
|
|
24328
|
+
}
|
|
24329
|
+
};
|
|
24330
|
+
|
|
24331
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24332
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24333
|
+
}).then((_response: Response) => {
|
|
24334
|
+
return this.processAddDiscussionMessage(_response);
|
|
24335
|
+
});
|
|
24336
|
+
}
|
|
24337
|
+
|
|
24338
|
+
protected processAddDiscussionMessage(response: Response): Promise<WorkorderDiscussionMessage> {
|
|
24339
|
+
const status = response.status;
|
|
24340
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24341
|
+
if (status === 201) {
|
|
24342
|
+
return response.text().then((_responseText) => {
|
|
24343
|
+
let result201: any = null;
|
|
24344
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24345
|
+
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
24346
|
+
return result201;
|
|
24347
|
+
});
|
|
24348
|
+
} else if (status !== 200 && status !== 204) {
|
|
24349
|
+
return response.text().then((_responseText) => {
|
|
24350
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24351
|
+
});
|
|
24352
|
+
}
|
|
24353
|
+
return Promise.resolve<WorkorderDiscussionMessage>(null as any);
|
|
24354
|
+
}
|
|
24220
24355
|
}
|
|
24221
24356
|
|
|
24222
24357
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -55448,8 +55583,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55448
55583
|
status!: MeasurementFormInstanceStatus;
|
|
55449
55584
|
statusChangedDate?: Date | null;
|
|
55450
55585
|
schemas!: MeasurementFormWorkorderSchemaDto[];
|
|
55451
|
-
sequences
|
|
55452
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
55586
|
+
sequences!: MeasurementFormWorkorderSequenceDto[];
|
|
55453
55587
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
55454
55588
|
progress!: MeasurementFormProgressDto;
|
|
55455
55589
|
approvedReportUrl?: string | null;
|
|
@@ -55464,7 +55598,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55464
55598
|
}
|
|
55465
55599
|
if (!data) {
|
|
55466
55600
|
this.schemas = [];
|
|
55467
|
-
this.
|
|
55601
|
+
this.sequences = [];
|
|
55468
55602
|
this.suppliers = [];
|
|
55469
55603
|
this.progress = new MeasurementFormProgressDto();
|
|
55470
55604
|
}
|
|
@@ -55493,11 +55627,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55493
55627
|
for (let item of _data["sequences"])
|
|
55494
55628
|
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
55495
55629
|
}
|
|
55496
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
55497
|
-
this.serialNumbers = [] as any;
|
|
55498
|
-
for (let item of _data["serialNumbers"])
|
|
55499
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
55500
|
-
}
|
|
55501
55630
|
if (Array.isArray(_data["suppliers"])) {
|
|
55502
55631
|
this.suppliers = [] as any;
|
|
55503
55632
|
for (let item of _data["suppliers"])
|
|
@@ -55539,11 +55668,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55539
55668
|
for (let item of this.sequences)
|
|
55540
55669
|
data["sequences"].push(item.toJSON());
|
|
55541
55670
|
}
|
|
55542
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
55543
|
-
data["serialNumbers"] = [];
|
|
55544
|
-
for (let item of this.serialNumbers)
|
|
55545
|
-
data["serialNumbers"].push(item.toJSON());
|
|
55546
|
-
}
|
|
55547
55671
|
if (Array.isArray(this.suppliers)) {
|
|
55548
55672
|
data["suppliers"] = [];
|
|
55549
55673
|
for (let item of this.suppliers)
|
|
@@ -55569,8 +55693,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
55569
55693
|
status: MeasurementFormInstanceStatus;
|
|
55570
55694
|
statusChangedDate?: Date | null;
|
|
55571
55695
|
schemas: MeasurementFormWorkorderSchemaDto[];
|
|
55572
|
-
sequences
|
|
55573
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
55696
|
+
sequences: MeasurementFormWorkorderSequenceDto[];
|
|
55574
55697
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
55575
55698
|
progress: MeasurementFormProgressDto;
|
|
55576
55699
|
approvedReportUrl?: string | null;
|
|
@@ -55704,50 +55827,6 @@ export interface IMeasurementFormWorkorderSequenceDto {
|
|
|
55704
55827
|
serialNumber?: string | null;
|
|
55705
55828
|
}
|
|
55706
55829
|
|
|
55707
|
-
export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
|
|
55708
|
-
lot?: string | null;
|
|
55709
|
-
serialNumber!: string;
|
|
55710
|
-
customerSerialNumber?: string | null;
|
|
55711
|
-
|
|
55712
|
-
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
55713
|
-
if (data) {
|
|
55714
|
-
for (var property in data) {
|
|
55715
|
-
if (data.hasOwnProperty(property))
|
|
55716
|
-
(<any>this)[property] = (<any>data)[property];
|
|
55717
|
-
}
|
|
55718
|
-
}
|
|
55719
|
-
}
|
|
55720
|
-
|
|
55721
|
-
init(_data?: any) {
|
|
55722
|
-
if (_data) {
|
|
55723
|
-
this.lot = _data["lot"];
|
|
55724
|
-
this.serialNumber = _data["serialNumber"];
|
|
55725
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
55726
|
-
}
|
|
55727
|
-
}
|
|
55728
|
-
|
|
55729
|
-
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
55730
|
-
data = typeof data === 'object' ? data : {};
|
|
55731
|
-
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
55732
|
-
result.init(data);
|
|
55733
|
-
return result;
|
|
55734
|
-
}
|
|
55735
|
-
|
|
55736
|
-
toJSON(data?: any) {
|
|
55737
|
-
data = typeof data === 'object' ? data : {};
|
|
55738
|
-
data["lot"] = this.lot;
|
|
55739
|
-
data["serialNumber"] = this.serialNumber;
|
|
55740
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
55741
|
-
return data;
|
|
55742
|
-
}
|
|
55743
|
-
}
|
|
55744
|
-
|
|
55745
|
-
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
55746
|
-
lot?: string | null;
|
|
55747
|
-
serialNumber: string;
|
|
55748
|
-
customerSerialNumber?: string | null;
|
|
55749
|
-
}
|
|
55750
|
-
|
|
55751
55830
|
export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
|
|
55752
55831
|
supplierId!: string;
|
|
55753
55832
|
supplierName?: string | null;
|
|
@@ -56032,8 +56111,7 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
|
56032
56111
|
}
|
|
56033
56112
|
|
|
56034
56113
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
56035
|
-
sequences
|
|
56036
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
56114
|
+
sequences!: MeasurementFormWorkorderSequenceDto[];
|
|
56037
56115
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
56038
56116
|
|
|
56039
56117
|
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
@@ -56044,7 +56122,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56044
56122
|
}
|
|
56045
56123
|
}
|
|
56046
56124
|
if (!data) {
|
|
56047
|
-
this.
|
|
56125
|
+
this.sequences = [];
|
|
56048
56126
|
this.suppliers = [];
|
|
56049
56127
|
}
|
|
56050
56128
|
}
|
|
@@ -56056,11 +56134,6 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56056
56134
|
for (let item of _data["sequences"])
|
|
56057
56135
|
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
56058
56136
|
}
|
|
56059
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
56060
|
-
this.serialNumbers = [] as any;
|
|
56061
|
-
for (let item of _data["serialNumbers"])
|
|
56062
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
56063
|
-
}
|
|
56064
56137
|
if (Array.isArray(_data["suppliers"])) {
|
|
56065
56138
|
this.suppliers = [] as any;
|
|
56066
56139
|
for (let item of _data["suppliers"])
|
|
@@ -56083,11 +56156,6 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56083
56156
|
for (let item of this.sequences)
|
|
56084
56157
|
data["sequences"].push(item.toJSON());
|
|
56085
56158
|
}
|
|
56086
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
56087
|
-
data["serialNumbers"] = [];
|
|
56088
|
-
for (let item of this.serialNumbers)
|
|
56089
|
-
data["serialNumbers"].push(item.toJSON());
|
|
56090
|
-
}
|
|
56091
56159
|
if (Array.isArray(this.suppliers)) {
|
|
56092
56160
|
data["suppliers"] = [];
|
|
56093
56161
|
for (let item of this.suppliers)
|
|
@@ -56098,8 +56166,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
|
|
|
56098
56166
|
}
|
|
56099
56167
|
|
|
56100
56168
|
export interface IUpdateMeasurementFormInstanceRequest {
|
|
56101
|
-
sequences
|
|
56102
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
56169
|
+
sequences: MeasurementFormWorkorderSequenceDto[];
|
|
56103
56170
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
56104
56171
|
}
|
|
56105
56172
|
|
|
@@ -56368,8 +56435,7 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
56368
56435
|
export class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
|
|
56369
56436
|
bonus?: string | null;
|
|
56370
56437
|
completed!: boolean;
|
|
56371
|
-
sequence
|
|
56372
|
-
serialNumber!: string;
|
|
56438
|
+
sequence!: string;
|
|
56373
56439
|
value?: string | null;
|
|
56374
56440
|
updatedByUser!: string;
|
|
56375
56441
|
updatedDate!: Date;
|
|
@@ -56395,7 +56461,6 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56395
56461
|
this.bonus = _data["bonus"];
|
|
56396
56462
|
this.completed = _data["completed"];
|
|
56397
56463
|
this.sequence = _data["sequence"];
|
|
56398
|
-
this.serialNumber = _data["serialNumber"];
|
|
56399
56464
|
this.value = _data["value"];
|
|
56400
56465
|
this.updatedByUser = _data["updatedByUser"];
|
|
56401
56466
|
this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
|
|
@@ -56422,7 +56487,6 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56422
56487
|
data["bonus"] = this.bonus;
|
|
56423
56488
|
data["completed"] = this.completed;
|
|
56424
56489
|
data["sequence"] = this.sequence;
|
|
56425
|
-
data["serialNumber"] = this.serialNumber;
|
|
56426
56490
|
data["value"] = this.value;
|
|
56427
56491
|
data["updatedByUser"] = this.updatedByUser;
|
|
56428
56492
|
data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
|
|
@@ -56441,8 +56505,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
|
|
|
56441
56505
|
export interface IMeasurementFormElementValueDto {
|
|
56442
56506
|
bonus?: string | null;
|
|
56443
56507
|
completed: boolean;
|
|
56444
|
-
sequence
|
|
56445
|
-
serialNumber: string;
|
|
56508
|
+
sequence: string;
|
|
56446
56509
|
value?: string | null;
|
|
56447
56510
|
updatedByUser: string;
|
|
56448
56511
|
updatedDate: Date;
|
|
@@ -56739,8 +56802,7 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56739
56802
|
resourceName?: string | null;
|
|
56740
56803
|
schemaId!: string;
|
|
56741
56804
|
elementId!: string;
|
|
56742
|
-
sequence
|
|
56743
|
-
serialNumber!: string;
|
|
56805
|
+
sequence!: string;
|
|
56744
56806
|
value?: string | null;
|
|
56745
56807
|
bonus?: string | null;
|
|
56746
56808
|
|
|
@@ -56760,7 +56822,6 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56760
56822
|
this.schemaId = _data["schemaId"];
|
|
56761
56823
|
this.elementId = _data["elementId"];
|
|
56762
56824
|
this.sequence = _data["sequence"];
|
|
56763
|
-
this.serialNumber = _data["serialNumber"];
|
|
56764
56825
|
this.value = _data["value"];
|
|
56765
56826
|
this.bonus = _data["bonus"];
|
|
56766
56827
|
}
|
|
@@ -56780,7 +56841,6 @@ export class SaveValueRequest implements ISaveValueRequest {
|
|
|
56780
56841
|
data["schemaId"] = this.schemaId;
|
|
56781
56842
|
data["elementId"] = this.elementId;
|
|
56782
56843
|
data["sequence"] = this.sequence;
|
|
56783
|
-
data["serialNumber"] = this.serialNumber;
|
|
56784
56844
|
data["value"] = this.value;
|
|
56785
56845
|
data["bonus"] = this.bonus;
|
|
56786
56846
|
return data;
|
|
@@ -56792,8 +56852,7 @@ export interface ISaveValueRequest {
|
|
|
56792
56852
|
resourceName?: string | null;
|
|
56793
56853
|
schemaId: string;
|
|
56794
56854
|
elementId: string;
|
|
56795
|
-
sequence
|
|
56796
|
-
serialNumber: string;
|
|
56855
|
+
sequence: string;
|
|
56797
56856
|
value?: string | null;
|
|
56798
56857
|
bonus?: string | null;
|
|
56799
56858
|
}
|
|
@@ -56801,8 +56860,7 @@ export interface ISaveValueRequest {
|
|
|
56801
56860
|
export class SaveToolRequest implements ISaveToolRequest {
|
|
56802
56861
|
schemaId!: string;
|
|
56803
56862
|
elementId!: string;
|
|
56804
|
-
sequence
|
|
56805
|
-
serialNumber!: string;
|
|
56863
|
+
sequence!: string;
|
|
56806
56864
|
tools?: string[] | null;
|
|
56807
56865
|
force?: boolean;
|
|
56808
56866
|
|
|
@@ -56820,7 +56878,6 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56820
56878
|
this.schemaId = _data["schemaId"];
|
|
56821
56879
|
this.elementId = _data["elementId"];
|
|
56822
56880
|
this.sequence = _data["sequence"];
|
|
56823
|
-
this.serialNumber = _data["serialNumber"];
|
|
56824
56881
|
if (Array.isArray(_data["tools"])) {
|
|
56825
56882
|
this.tools = [] as any;
|
|
56826
56883
|
for (let item of _data["tools"])
|
|
@@ -56842,7 +56899,6 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56842
56899
|
data["schemaId"] = this.schemaId;
|
|
56843
56900
|
data["elementId"] = this.elementId;
|
|
56844
56901
|
data["sequence"] = this.sequence;
|
|
56845
|
-
data["serialNumber"] = this.serialNumber;
|
|
56846
56902
|
if (Array.isArray(this.tools)) {
|
|
56847
56903
|
data["tools"] = [];
|
|
56848
56904
|
for (let item of this.tools)
|
|
@@ -56856,8 +56912,7 @@ export class SaveToolRequest implements ISaveToolRequest {
|
|
|
56856
56912
|
export interface ISaveToolRequest {
|
|
56857
56913
|
schemaId: string;
|
|
56858
56914
|
elementId: string;
|
|
56859
|
-
sequence
|
|
56860
|
-
serialNumber: string;
|
|
56915
|
+
sequence: string;
|
|
56861
56916
|
tools?: string[] | null;
|
|
56862
56917
|
force?: boolean;
|
|
56863
56918
|
}
|
|
@@ -56865,8 +56920,7 @@ export interface ISaveToolRequest {
|
|
|
56865
56920
|
export class SaveCommentRequest implements ISaveCommentRequest {
|
|
56866
56921
|
schemaId!: string;
|
|
56867
56922
|
elementId!: string;
|
|
56868
|
-
sequence
|
|
56869
|
-
serialNumber!: string;
|
|
56923
|
+
sequence!: string;
|
|
56870
56924
|
comment?: string | null;
|
|
56871
56925
|
|
|
56872
56926
|
constructor(data?: ISaveCommentRequest) {
|
|
@@ -56883,7 +56937,6 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56883
56937
|
this.schemaId = _data["schemaId"];
|
|
56884
56938
|
this.elementId = _data["elementId"];
|
|
56885
56939
|
this.sequence = _data["sequence"];
|
|
56886
|
-
this.serialNumber = _data["serialNumber"];
|
|
56887
56940
|
this.comment = _data["comment"];
|
|
56888
56941
|
}
|
|
56889
56942
|
}
|
|
@@ -56900,7 +56953,6 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56900
56953
|
data["schemaId"] = this.schemaId;
|
|
56901
56954
|
data["elementId"] = this.elementId;
|
|
56902
56955
|
data["sequence"] = this.sequence;
|
|
56903
|
-
data["serialNumber"] = this.serialNumber;
|
|
56904
56956
|
data["comment"] = this.comment;
|
|
56905
56957
|
return data;
|
|
56906
56958
|
}
|
|
@@ -56909,8 +56961,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
|
|
|
56909
56961
|
export interface ISaveCommentRequest {
|
|
56910
56962
|
schemaId: string;
|
|
56911
56963
|
elementId: string;
|
|
56912
|
-
sequence
|
|
56913
|
-
serialNumber: string;
|
|
56964
|
+
sequence: string;
|
|
56914
56965
|
comment?: string | null;
|
|
56915
56966
|
}
|
|
56916
56967
|
|
|
@@ -57298,7 +57349,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57298
57349
|
includeAllSchemasAndElements?: boolean | null;
|
|
57299
57350
|
createBlankReport?: boolean | null;
|
|
57300
57351
|
sequences?: string[] | null;
|
|
57301
|
-
serialNumbers?: string[] | null;
|
|
57302
57352
|
customerPO?: string | null;
|
|
57303
57353
|
workOrder?: string | null;
|
|
57304
57354
|
comment?: string | null;
|
|
@@ -57323,11 +57373,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57323
57373
|
for (let item of _data["sequences"])
|
|
57324
57374
|
this.sequences!.push(item);
|
|
57325
57375
|
}
|
|
57326
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
57327
|
-
this.serialNumbers = [] as any;
|
|
57328
|
-
for (let item of _data["serialNumbers"])
|
|
57329
|
-
this.serialNumbers!.push(item);
|
|
57330
|
-
}
|
|
57331
57376
|
this.customerPO = _data["customerPO"];
|
|
57332
57377
|
this.workOrder = _data["workOrder"];
|
|
57333
57378
|
this.comment = _data["comment"];
|
|
@@ -57352,11 +57397,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
|
|
|
57352
57397
|
for (let item of this.sequences)
|
|
57353
57398
|
data["sequences"].push(item);
|
|
57354
57399
|
}
|
|
57355
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
57356
|
-
data["serialNumbers"] = [];
|
|
57357
|
-
for (let item of this.serialNumbers)
|
|
57358
|
-
data["serialNumbers"].push(item);
|
|
57359
|
-
}
|
|
57360
57400
|
data["customerPO"] = this.customerPO;
|
|
57361
57401
|
data["workOrder"] = this.workOrder;
|
|
57362
57402
|
data["comment"] = this.comment;
|
|
@@ -57370,7 +57410,6 @@ export interface IExportDimensionReportRequest {
|
|
|
57370
57410
|
includeAllSchemasAndElements?: boolean | null;
|
|
57371
57411
|
createBlankReport?: boolean | null;
|
|
57372
57412
|
sequences?: string[] | null;
|
|
57373
|
-
serialNumbers?: string[] | null;
|
|
57374
57413
|
customerPO?: string | null;
|
|
57375
57414
|
workOrder?: string | null;
|
|
57376
57415
|
comment?: string | null;
|
|
@@ -57464,6 +57503,255 @@ export interface ISchemaInstanceElementDto {
|
|
|
57464
57503
|
disabled: boolean;
|
|
57465
57504
|
}
|
|
57466
57505
|
|
|
57506
|
+
export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
|
|
57507
|
+
partInfo!: ImportMeasurementFormPartDto;
|
|
57508
|
+
customerId?: string | null;
|
|
57509
|
+
customerGroupId?: string | null;
|
|
57510
|
+
customerName?: string | null;
|
|
57511
|
+
externalOrderNumber?: string | null;
|
|
57512
|
+
quantity!: number;
|
|
57513
|
+
sequences!: WorkorderImportTraceItemDto[];
|
|
57514
|
+
status!: MeasurementFormInstanceStatus;
|
|
57515
|
+
statusChangedBy?: string | null;
|
|
57516
|
+
statusChangedDate?: Date | null;
|
|
57517
|
+
created!: Date;
|
|
57518
|
+
createdBy?: string | null;
|
|
57519
|
+
updatedBy?: string | null;
|
|
57520
|
+
schemas!: ImportMeasurementSchemaInstanceDto[];
|
|
57521
|
+
|
|
57522
|
+
constructor(data?: IImportMeasurementFormInstanceRequest) {
|
|
57523
|
+
if (data) {
|
|
57524
|
+
for (var property in data) {
|
|
57525
|
+
if (data.hasOwnProperty(property))
|
|
57526
|
+
(<any>this)[property] = (<any>data)[property];
|
|
57527
|
+
}
|
|
57528
|
+
}
|
|
57529
|
+
if (!data) {
|
|
57530
|
+
this.partInfo = new ImportMeasurementFormPartDto();
|
|
57531
|
+
this.sequences = [];
|
|
57532
|
+
this.schemas = [];
|
|
57533
|
+
}
|
|
57534
|
+
}
|
|
57535
|
+
|
|
57536
|
+
init(_data?: any) {
|
|
57537
|
+
if (_data) {
|
|
57538
|
+
this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
|
|
57539
|
+
this.customerId = _data["customerId"];
|
|
57540
|
+
this.customerGroupId = _data["customerGroupId"];
|
|
57541
|
+
this.customerName = _data["customerName"];
|
|
57542
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57543
|
+
this.quantity = _data["quantity"];
|
|
57544
|
+
if (Array.isArray(_data["sequences"])) {
|
|
57545
|
+
this.sequences = [] as any;
|
|
57546
|
+
for (let item of _data["sequences"])
|
|
57547
|
+
this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
|
|
57548
|
+
}
|
|
57549
|
+
this.status = _data["status"];
|
|
57550
|
+
this.statusChangedBy = _data["statusChangedBy"];
|
|
57551
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
|
|
57552
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
57553
|
+
this.createdBy = _data["createdBy"];
|
|
57554
|
+
this.updatedBy = _data["updatedBy"];
|
|
57555
|
+
if (Array.isArray(_data["schemas"])) {
|
|
57556
|
+
this.schemas = [] as any;
|
|
57557
|
+
for (let item of _data["schemas"])
|
|
57558
|
+
this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
|
|
57559
|
+
}
|
|
57560
|
+
}
|
|
57561
|
+
}
|
|
57562
|
+
|
|
57563
|
+
static fromJS(data: any): ImportMeasurementFormInstanceRequest {
|
|
57564
|
+
data = typeof data === 'object' ? data : {};
|
|
57565
|
+
let result = new ImportMeasurementFormInstanceRequest();
|
|
57566
|
+
result.init(data);
|
|
57567
|
+
return result;
|
|
57568
|
+
}
|
|
57569
|
+
|
|
57570
|
+
toJSON(data?: any) {
|
|
57571
|
+
data = typeof data === 'object' ? data : {};
|
|
57572
|
+
data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
|
|
57573
|
+
data["customerId"] = this.customerId;
|
|
57574
|
+
data["customerGroupId"] = this.customerGroupId;
|
|
57575
|
+
data["customerName"] = this.customerName;
|
|
57576
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57577
|
+
data["quantity"] = this.quantity;
|
|
57578
|
+
if (Array.isArray(this.sequences)) {
|
|
57579
|
+
data["sequences"] = [];
|
|
57580
|
+
for (let item of this.sequences)
|
|
57581
|
+
data["sequences"].push(item.toJSON());
|
|
57582
|
+
}
|
|
57583
|
+
data["status"] = this.status;
|
|
57584
|
+
data["statusChangedBy"] = this.statusChangedBy;
|
|
57585
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
|
|
57586
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
57587
|
+
data["createdBy"] = this.createdBy;
|
|
57588
|
+
data["updatedBy"] = this.updatedBy;
|
|
57589
|
+
if (Array.isArray(this.schemas)) {
|
|
57590
|
+
data["schemas"] = [];
|
|
57591
|
+
for (let item of this.schemas)
|
|
57592
|
+
data["schemas"].push(item.toJSON());
|
|
57593
|
+
}
|
|
57594
|
+
return data;
|
|
57595
|
+
}
|
|
57596
|
+
}
|
|
57597
|
+
|
|
57598
|
+
export interface IImportMeasurementFormInstanceRequest {
|
|
57599
|
+
partInfo: ImportMeasurementFormPartDto;
|
|
57600
|
+
customerId?: string | null;
|
|
57601
|
+
customerGroupId?: string | null;
|
|
57602
|
+
customerName?: string | null;
|
|
57603
|
+
externalOrderNumber?: string | null;
|
|
57604
|
+
quantity: number;
|
|
57605
|
+
sequences: WorkorderImportTraceItemDto[];
|
|
57606
|
+
status: MeasurementFormInstanceStatus;
|
|
57607
|
+
statusChangedBy?: string | null;
|
|
57608
|
+
statusChangedDate?: Date | null;
|
|
57609
|
+
created: Date;
|
|
57610
|
+
createdBy?: string | null;
|
|
57611
|
+
updatedBy?: string | null;
|
|
57612
|
+
schemas: ImportMeasurementSchemaInstanceDto[];
|
|
57613
|
+
}
|
|
57614
|
+
|
|
57615
|
+
export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
|
|
57616
|
+
partNumber?: string | null;
|
|
57617
|
+
partName?: string | null;
|
|
57618
|
+
partRevision?: string | null;
|
|
57619
|
+
drawing!: string;
|
|
57620
|
+
drawingRevision?: string | null;
|
|
57621
|
+
|
|
57622
|
+
constructor(data?: IImportMeasurementFormPartDto) {
|
|
57623
|
+
if (data) {
|
|
57624
|
+
for (var property in data) {
|
|
57625
|
+
if (data.hasOwnProperty(property))
|
|
57626
|
+
(<any>this)[property] = (<any>data)[property];
|
|
57627
|
+
}
|
|
57628
|
+
}
|
|
57629
|
+
}
|
|
57630
|
+
|
|
57631
|
+
init(_data?: any) {
|
|
57632
|
+
if (_data) {
|
|
57633
|
+
this.partNumber = _data["partNumber"];
|
|
57634
|
+
this.partName = _data["partName"];
|
|
57635
|
+
this.partRevision = _data["partRevision"];
|
|
57636
|
+
this.drawing = _data["drawing"];
|
|
57637
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
57638
|
+
}
|
|
57639
|
+
}
|
|
57640
|
+
|
|
57641
|
+
static fromJS(data: any): ImportMeasurementFormPartDto {
|
|
57642
|
+
data = typeof data === 'object' ? data : {};
|
|
57643
|
+
let result = new ImportMeasurementFormPartDto();
|
|
57644
|
+
result.init(data);
|
|
57645
|
+
return result;
|
|
57646
|
+
}
|
|
57647
|
+
|
|
57648
|
+
toJSON(data?: any) {
|
|
57649
|
+
data = typeof data === 'object' ? data : {};
|
|
57650
|
+
data["partNumber"] = this.partNumber;
|
|
57651
|
+
data["partName"] = this.partName;
|
|
57652
|
+
data["partRevision"] = this.partRevision;
|
|
57653
|
+
data["drawing"] = this.drawing;
|
|
57654
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
57655
|
+
return data;
|
|
57656
|
+
}
|
|
57657
|
+
}
|
|
57658
|
+
|
|
57659
|
+
export interface IImportMeasurementFormPartDto {
|
|
57660
|
+
partNumber?: string | null;
|
|
57661
|
+
partName?: string | null;
|
|
57662
|
+
partRevision?: string | null;
|
|
57663
|
+
drawing: string;
|
|
57664
|
+
drawingRevision?: string | null;
|
|
57665
|
+
}
|
|
57666
|
+
|
|
57667
|
+
export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
|
|
57668
|
+
sequence!: string;
|
|
57669
|
+
serialNumber?: string | null;
|
|
57670
|
+
lot?: string | null;
|
|
57671
|
+
active!: boolean;
|
|
57672
|
+
|
|
57673
|
+
constructor(data?: IWorkorderImportTraceItemDto) {
|
|
57674
|
+
if (data) {
|
|
57675
|
+
for (var property in data) {
|
|
57676
|
+
if (data.hasOwnProperty(property))
|
|
57677
|
+
(<any>this)[property] = (<any>data)[property];
|
|
57678
|
+
}
|
|
57679
|
+
}
|
|
57680
|
+
}
|
|
57681
|
+
|
|
57682
|
+
init(_data?: any) {
|
|
57683
|
+
if (_data) {
|
|
57684
|
+
this.sequence = _data["sequence"];
|
|
57685
|
+
this.serialNumber = _data["serialNumber"];
|
|
57686
|
+
this.lot = _data["lot"];
|
|
57687
|
+
this.active = _data["active"];
|
|
57688
|
+
}
|
|
57689
|
+
}
|
|
57690
|
+
|
|
57691
|
+
static fromJS(data: any): WorkorderImportTraceItemDto {
|
|
57692
|
+
data = typeof data === 'object' ? data : {};
|
|
57693
|
+
let result = new WorkorderImportTraceItemDto();
|
|
57694
|
+
result.init(data);
|
|
57695
|
+
return result;
|
|
57696
|
+
}
|
|
57697
|
+
|
|
57698
|
+
toJSON(data?: any) {
|
|
57699
|
+
data = typeof data === 'object' ? data : {};
|
|
57700
|
+
data["sequence"] = this.sequence;
|
|
57701
|
+
data["serialNumber"] = this.serialNumber;
|
|
57702
|
+
data["lot"] = this.lot;
|
|
57703
|
+
data["active"] = this.active;
|
|
57704
|
+
return data;
|
|
57705
|
+
}
|
|
57706
|
+
}
|
|
57707
|
+
|
|
57708
|
+
export interface IWorkorderImportTraceItemDto {
|
|
57709
|
+
sequence: string;
|
|
57710
|
+
serialNumber?: string | null;
|
|
57711
|
+
lot?: string | null;
|
|
57712
|
+
active: boolean;
|
|
57713
|
+
}
|
|
57714
|
+
|
|
57715
|
+
export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
|
|
57716
|
+
id!: string;
|
|
57717
|
+
version!: number;
|
|
57718
|
+
|
|
57719
|
+
constructor(data?: IImportMeasurementSchemaInstanceDto) {
|
|
57720
|
+
if (data) {
|
|
57721
|
+
for (var property in data) {
|
|
57722
|
+
if (data.hasOwnProperty(property))
|
|
57723
|
+
(<any>this)[property] = (<any>data)[property];
|
|
57724
|
+
}
|
|
57725
|
+
}
|
|
57726
|
+
}
|
|
57727
|
+
|
|
57728
|
+
init(_data?: any) {
|
|
57729
|
+
if (_data) {
|
|
57730
|
+
this.id = _data["id"];
|
|
57731
|
+
this.version = _data["version"];
|
|
57732
|
+
}
|
|
57733
|
+
}
|
|
57734
|
+
|
|
57735
|
+
static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
|
|
57736
|
+
data = typeof data === 'object' ? data : {};
|
|
57737
|
+
let result = new ImportMeasurementSchemaInstanceDto();
|
|
57738
|
+
result.init(data);
|
|
57739
|
+
return result;
|
|
57740
|
+
}
|
|
57741
|
+
|
|
57742
|
+
toJSON(data?: any) {
|
|
57743
|
+
data = typeof data === 'object' ? data : {};
|
|
57744
|
+
data["id"] = this.id;
|
|
57745
|
+
data["version"] = this.version;
|
|
57746
|
+
return data;
|
|
57747
|
+
}
|
|
57748
|
+
}
|
|
57749
|
+
|
|
57750
|
+
export interface IImportMeasurementSchemaInstanceDto {
|
|
57751
|
+
id: string;
|
|
57752
|
+
version: number;
|
|
57753
|
+
}
|
|
57754
|
+
|
|
57467
57755
|
export class IotTypeSourceDto implements IIotTypeSourceDto {
|
|
57468
57756
|
id!: string;
|
|
57469
57757
|
name!: string;
|
|
@@ -58821,10 +59109,8 @@ export interface IUpsertWorkOrderTracesRequest {
|
|
|
58821
59109
|
export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
58822
59110
|
sequence!: string;
|
|
58823
59111
|
serialNumber?: string | null;
|
|
58824
|
-
customerSerialNumber?: string | null;
|
|
58825
59112
|
lot?: string | null;
|
|
58826
59113
|
active!: boolean;
|
|
58827
|
-
isLegacy?: boolean;
|
|
58828
59114
|
|
|
58829
59115
|
constructor(data?: IWorkOrderTraceItemDto) {
|
|
58830
59116
|
if (data) {
|
|
@@ -58839,10 +59125,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
58839
59125
|
if (_data) {
|
|
58840
59126
|
this.sequence = _data["sequence"];
|
|
58841
59127
|
this.serialNumber = _data["serialNumber"];
|
|
58842
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
58843
59128
|
this.lot = _data["lot"];
|
|
58844
59129
|
this.active = _data["active"];
|
|
58845
|
-
this.isLegacy = _data["isLegacy"];
|
|
58846
59130
|
}
|
|
58847
59131
|
}
|
|
58848
59132
|
|
|
@@ -58857,10 +59141,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
58857
59141
|
data = typeof data === 'object' ? data : {};
|
|
58858
59142
|
data["sequence"] = this.sequence;
|
|
58859
59143
|
data["serialNumber"] = this.serialNumber;
|
|
58860
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
58861
59144
|
data["lot"] = this.lot;
|
|
58862
59145
|
data["active"] = this.active;
|
|
58863
|
-
data["isLegacy"] = this.isLegacy;
|
|
58864
59146
|
return data;
|
|
58865
59147
|
}
|
|
58866
59148
|
}
|
|
@@ -58868,10 +59150,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
|
|
|
58868
59150
|
export interface IWorkOrderTraceItemDto {
|
|
58869
59151
|
sequence: string;
|
|
58870
59152
|
serialNumber?: string | null;
|
|
58871
|
-
customerSerialNumber?: string | null;
|
|
58872
59153
|
lot?: string | null;
|
|
58873
59154
|
active: boolean;
|
|
58874
|
-
isLegacy?: boolean;
|
|
58875
59155
|
}
|
|
58876
59156
|
|
|
58877
59157
|
export class ResourceExistDto implements IResourceExistDto {
|
|
@@ -59656,6 +59936,231 @@ export interface ICreateWorkOrderMapping {
|
|
|
59656
59936
|
newWorkOrderId: string;
|
|
59657
59937
|
}
|
|
59658
59938
|
|
|
59939
|
+
export class TableEntityBase implements ITableEntityBase {
|
|
59940
|
+
partitionKey?: string;
|
|
59941
|
+
rowKey?: string;
|
|
59942
|
+
timestamp?: Date | null;
|
|
59943
|
+
eTag?: ETag;
|
|
59944
|
+
created?: Date | null;
|
|
59945
|
+
createdBy?: string | null;
|
|
59946
|
+
createdById?: string | null;
|
|
59947
|
+
updatedBy?: string | null;
|
|
59948
|
+
updatedById?: string | null;
|
|
59949
|
+
insertAuditInfo?: AuditInfo;
|
|
59950
|
+
|
|
59951
|
+
constructor(data?: ITableEntityBase) {
|
|
59952
|
+
if (data) {
|
|
59953
|
+
for (var property in data) {
|
|
59954
|
+
if (data.hasOwnProperty(property))
|
|
59955
|
+
(<any>this)[property] = (<any>data)[property];
|
|
59956
|
+
}
|
|
59957
|
+
}
|
|
59958
|
+
}
|
|
59959
|
+
|
|
59960
|
+
init(_data?: any) {
|
|
59961
|
+
if (_data) {
|
|
59962
|
+
this.partitionKey = _data["partitionKey"];
|
|
59963
|
+
this.rowKey = _data["rowKey"];
|
|
59964
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
|
|
59965
|
+
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : <any>undefined;
|
|
59966
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
59967
|
+
this.createdBy = _data["createdBy"];
|
|
59968
|
+
this.createdById = _data["createdById"];
|
|
59969
|
+
this.updatedBy = _data["updatedBy"];
|
|
59970
|
+
this.updatedById = _data["updatedById"];
|
|
59971
|
+
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : <any>undefined;
|
|
59972
|
+
}
|
|
59973
|
+
}
|
|
59974
|
+
|
|
59975
|
+
static fromJS(data: any): TableEntityBase {
|
|
59976
|
+
data = typeof data === 'object' ? data : {};
|
|
59977
|
+
let result = new TableEntityBase();
|
|
59978
|
+
result.init(data);
|
|
59979
|
+
return result;
|
|
59980
|
+
}
|
|
59981
|
+
|
|
59982
|
+
toJSON(data?: any) {
|
|
59983
|
+
data = typeof data === 'object' ? data : {};
|
|
59984
|
+
data["partitionKey"] = this.partitionKey;
|
|
59985
|
+
data["rowKey"] = this.rowKey;
|
|
59986
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
|
|
59987
|
+
data["eTag"] = this.eTag ? this.eTag.toJSON() : <any>undefined;
|
|
59988
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
59989
|
+
data["createdBy"] = this.createdBy;
|
|
59990
|
+
data["createdById"] = this.createdById;
|
|
59991
|
+
data["updatedBy"] = this.updatedBy;
|
|
59992
|
+
data["updatedById"] = this.updatedById;
|
|
59993
|
+
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : <any>undefined;
|
|
59994
|
+
return data;
|
|
59995
|
+
}
|
|
59996
|
+
}
|
|
59997
|
+
|
|
59998
|
+
export interface ITableEntityBase {
|
|
59999
|
+
partitionKey?: string;
|
|
60000
|
+
rowKey?: string;
|
|
60001
|
+
timestamp?: Date | null;
|
|
60002
|
+
eTag?: ETag;
|
|
60003
|
+
created?: Date | null;
|
|
60004
|
+
createdBy?: string | null;
|
|
60005
|
+
createdById?: string | null;
|
|
60006
|
+
updatedBy?: string | null;
|
|
60007
|
+
updatedById?: string | null;
|
|
60008
|
+
insertAuditInfo?: AuditInfo;
|
|
60009
|
+
}
|
|
60010
|
+
|
|
60011
|
+
export class WorkorderDiscussionMessage extends TableEntityBase implements IWorkorderDiscussionMessage {
|
|
60012
|
+
content?: string;
|
|
60013
|
+
senderUpn?: string;
|
|
60014
|
+
senderName?: string;
|
|
60015
|
+
|
|
60016
|
+
constructor(data?: IWorkorderDiscussionMessage) {
|
|
60017
|
+
super(data);
|
|
60018
|
+
}
|
|
60019
|
+
|
|
60020
|
+
override init(_data?: any) {
|
|
60021
|
+
super.init(_data);
|
|
60022
|
+
if (_data) {
|
|
60023
|
+
this.content = _data["content"];
|
|
60024
|
+
this.senderUpn = _data["senderUpn"];
|
|
60025
|
+
this.senderName = _data["senderName"];
|
|
60026
|
+
}
|
|
60027
|
+
}
|
|
60028
|
+
|
|
60029
|
+
static override fromJS(data: any): WorkorderDiscussionMessage {
|
|
60030
|
+
data = typeof data === 'object' ? data : {};
|
|
60031
|
+
let result = new WorkorderDiscussionMessage();
|
|
60032
|
+
result.init(data);
|
|
60033
|
+
return result;
|
|
60034
|
+
}
|
|
60035
|
+
|
|
60036
|
+
override toJSON(data?: any) {
|
|
60037
|
+
data = typeof data === 'object' ? data : {};
|
|
60038
|
+
data["content"] = this.content;
|
|
60039
|
+
data["senderUpn"] = this.senderUpn;
|
|
60040
|
+
data["senderName"] = this.senderName;
|
|
60041
|
+
super.toJSON(data);
|
|
60042
|
+
return data;
|
|
60043
|
+
}
|
|
60044
|
+
}
|
|
60045
|
+
|
|
60046
|
+
export interface IWorkorderDiscussionMessage extends ITableEntityBase {
|
|
60047
|
+
content?: string;
|
|
60048
|
+
senderUpn?: string;
|
|
60049
|
+
senderName?: string;
|
|
60050
|
+
}
|
|
60051
|
+
|
|
60052
|
+
/** Represents an HTTP ETag. */
|
|
60053
|
+
export class ETag implements IETag {
|
|
60054
|
+
|
|
60055
|
+
constructor(data?: IETag) {
|
|
60056
|
+
if (data) {
|
|
60057
|
+
for (var property in data) {
|
|
60058
|
+
if (data.hasOwnProperty(property))
|
|
60059
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60060
|
+
}
|
|
60061
|
+
}
|
|
60062
|
+
}
|
|
60063
|
+
|
|
60064
|
+
init(_data?: any) {
|
|
60065
|
+
}
|
|
60066
|
+
|
|
60067
|
+
static fromJS(data: any): ETag {
|
|
60068
|
+
data = typeof data === 'object' ? data : {};
|
|
60069
|
+
let result = new ETag();
|
|
60070
|
+
result.init(data);
|
|
60071
|
+
return result;
|
|
60072
|
+
}
|
|
60073
|
+
|
|
60074
|
+
toJSON(data?: any) {
|
|
60075
|
+
data = typeof data === 'object' ? data : {};
|
|
60076
|
+
return data;
|
|
60077
|
+
}
|
|
60078
|
+
}
|
|
60079
|
+
|
|
60080
|
+
/** Represents an HTTP ETag. */
|
|
60081
|
+
export interface IETag {
|
|
60082
|
+
}
|
|
60083
|
+
|
|
60084
|
+
export class AuditInfo implements IAuditInfo {
|
|
60085
|
+
objectId?: string;
|
|
60086
|
+
userId?: string;
|
|
60087
|
+
userFullName?: string | null;
|
|
60088
|
+
|
|
60089
|
+
constructor(data?: IAuditInfo) {
|
|
60090
|
+
if (data) {
|
|
60091
|
+
for (var property in data) {
|
|
60092
|
+
if (data.hasOwnProperty(property))
|
|
60093
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60094
|
+
}
|
|
60095
|
+
}
|
|
60096
|
+
}
|
|
60097
|
+
|
|
60098
|
+
init(_data?: any) {
|
|
60099
|
+
if (_data) {
|
|
60100
|
+
this.objectId = _data["objectId"];
|
|
60101
|
+
this.userId = _data["userId"];
|
|
60102
|
+
this.userFullName = _data["userFullName"];
|
|
60103
|
+
}
|
|
60104
|
+
}
|
|
60105
|
+
|
|
60106
|
+
static fromJS(data: any): AuditInfo {
|
|
60107
|
+
data = typeof data === 'object' ? data : {};
|
|
60108
|
+
let result = new AuditInfo();
|
|
60109
|
+
result.init(data);
|
|
60110
|
+
return result;
|
|
60111
|
+
}
|
|
60112
|
+
|
|
60113
|
+
toJSON(data?: any) {
|
|
60114
|
+
data = typeof data === 'object' ? data : {};
|
|
60115
|
+
data["objectId"] = this.objectId;
|
|
60116
|
+
data["userId"] = this.userId;
|
|
60117
|
+
data["userFullName"] = this.userFullName;
|
|
60118
|
+
return data;
|
|
60119
|
+
}
|
|
60120
|
+
}
|
|
60121
|
+
|
|
60122
|
+
export interface IAuditInfo {
|
|
60123
|
+
objectId?: string;
|
|
60124
|
+
userId?: string;
|
|
60125
|
+
userFullName?: string | null;
|
|
60126
|
+
}
|
|
60127
|
+
|
|
60128
|
+
export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
60129
|
+
message?: string;
|
|
60130
|
+
|
|
60131
|
+
constructor(data?: IAddDiscussionMessageRequest) {
|
|
60132
|
+
if (data) {
|
|
60133
|
+
for (var property in data) {
|
|
60134
|
+
if (data.hasOwnProperty(property))
|
|
60135
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60136
|
+
}
|
|
60137
|
+
}
|
|
60138
|
+
}
|
|
60139
|
+
|
|
60140
|
+
init(_data?: any) {
|
|
60141
|
+
if (_data) {
|
|
60142
|
+
this.message = _data["message"];
|
|
60143
|
+
}
|
|
60144
|
+
}
|
|
60145
|
+
|
|
60146
|
+
static fromJS(data: any): AddDiscussionMessageRequest {
|
|
60147
|
+
data = typeof data === 'object' ? data : {};
|
|
60148
|
+
let result = new AddDiscussionMessageRequest();
|
|
60149
|
+
result.init(data);
|
|
60150
|
+
return result;
|
|
60151
|
+
}
|
|
60152
|
+
|
|
60153
|
+
toJSON(data?: any) {
|
|
60154
|
+
data = typeof data === 'object' ? data : {};
|
|
60155
|
+
data["message"] = this.message;
|
|
60156
|
+
return data;
|
|
60157
|
+
}
|
|
60158
|
+
}
|
|
60159
|
+
|
|
60160
|
+
export interface IAddDiscussionMessageRequest {
|
|
60161
|
+
message?: string;
|
|
60162
|
+
}
|
|
60163
|
+
|
|
59659
60164
|
function formatDate(d: Date) {
|
|
59660
60165
|
return d.getFullYear() + '-' +
|
|
59661
60166
|
(d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +
|