@ignos/api-client 20250711.0.12192-alpha → 20250728.0.12218-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.
@@ -20611,11 +20611,11 @@ export interface IMeasurementFormsInstancesClient {
20611
20611
 
20612
20612
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
20613
20613
 
20614
- getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
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, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
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, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
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 (serialNumber !== undefined && serialNumber !== null)
21259
- url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
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, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
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 (serialNumber !== undefined && serialNumber !== null)
21347
- url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
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,14 @@ 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>;
23190
+
23191
+ updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
23192
+
23193
+ deleteMessage(id: string, messageId: string): Promise<FileResponse>;
23141
23194
  }
23142
23195
 
23143
23196
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -24217,6 +24270,188 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24217
24270
  }
24218
24271
  return Promise.resolve<void>(null as any);
24219
24272
  }
24273
+
24274
+ getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessage[]> {
24275
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24276
+ if (id === undefined || id === null)
24277
+ throw new Error("The parameter 'id' must be defined.");
24278
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24279
+ url_ = url_.replace(/[?&]$/, "");
24280
+
24281
+ let options_: RequestInit = {
24282
+ method: "GET",
24283
+ headers: {
24284
+ "Accept": "application/json"
24285
+ }
24286
+ };
24287
+
24288
+ return this.transformOptions(options_).then(transformedOptions_ => {
24289
+ return this.http.fetch(url_, transformedOptions_);
24290
+ }).then((_response: Response) => {
24291
+ return this.processGetDiscussionMessages(_response);
24292
+ });
24293
+ }
24294
+
24295
+ protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessage[]> {
24296
+ const status = response.status;
24297
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24298
+ if (status === 200) {
24299
+ return response.text().then((_responseText) => {
24300
+ let result200: any = null;
24301
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24302
+ if (Array.isArray(resultData200)) {
24303
+ result200 = [] as any;
24304
+ for (let item of resultData200)
24305
+ result200!.push(WorkorderDiscussionMessage.fromJS(item));
24306
+ }
24307
+ return result200;
24308
+ });
24309
+ } else if (status !== 200 && status !== 204) {
24310
+ return response.text().then((_responseText) => {
24311
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24312
+ });
24313
+ }
24314
+ return Promise.resolve<WorkorderDiscussionMessage[]>(null as any);
24315
+ }
24316
+
24317
+ addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessage> {
24318
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24319
+ if (id === undefined || id === null)
24320
+ throw new Error("The parameter 'id' must be defined.");
24321
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24322
+ url_ = url_.replace(/[?&]$/, "");
24323
+
24324
+ const content_ = JSON.stringify(request);
24325
+
24326
+ let options_: RequestInit = {
24327
+ body: content_,
24328
+ method: "POST",
24329
+ headers: {
24330
+ "Content-Type": "application/json",
24331
+ "Accept": "application/json"
24332
+ }
24333
+ };
24334
+
24335
+ return this.transformOptions(options_).then(transformedOptions_ => {
24336
+ return this.http.fetch(url_, transformedOptions_);
24337
+ }).then((_response: Response) => {
24338
+ return this.processAddDiscussionMessage(_response);
24339
+ });
24340
+ }
24341
+
24342
+ protected processAddDiscussionMessage(response: Response): Promise<WorkorderDiscussionMessage> {
24343
+ const status = response.status;
24344
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24345
+ if (status === 201) {
24346
+ return response.text().then((_responseText) => {
24347
+ let result201: any = null;
24348
+ let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24349
+ result201 = WorkorderDiscussionMessage.fromJS(resultData201);
24350
+ return result201;
24351
+ });
24352
+ } else if (status !== 200 && status !== 204) {
24353
+ return response.text().then((_responseText) => {
24354
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24355
+ });
24356
+ }
24357
+ return Promise.resolve<WorkorderDiscussionMessage>(null as any);
24358
+ }
24359
+
24360
+ updateMessage(id: string, messageId: string, content: string): Promise<FileResponse> {
24361
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
24362
+ if (id === undefined || id === null)
24363
+ throw new Error("The parameter 'id' must be defined.");
24364
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24365
+ if (messageId === undefined || messageId === null)
24366
+ throw new Error("The parameter 'messageId' must be defined.");
24367
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
24368
+ url_ = url_.replace(/[?&]$/, "");
24369
+
24370
+ const content_ = JSON.stringify(content);
24371
+
24372
+ let options_: RequestInit = {
24373
+ body: content_,
24374
+ method: "PUT",
24375
+ headers: {
24376
+ "Content-Type": "application/json",
24377
+ "Accept": "application/octet-stream"
24378
+ }
24379
+ };
24380
+
24381
+ return this.transformOptions(options_).then(transformedOptions_ => {
24382
+ return this.http.fetch(url_, transformedOptions_);
24383
+ }).then((_response: Response) => {
24384
+ return this.processUpdateMessage(_response);
24385
+ });
24386
+ }
24387
+
24388
+ protected processUpdateMessage(response: Response): Promise<FileResponse> {
24389
+ const status = response.status;
24390
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24391
+ if (status === 200 || status === 206) {
24392
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
24393
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
24394
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
24395
+ if (fileName) {
24396
+ fileName = decodeURIComponent(fileName);
24397
+ } else {
24398
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
24399
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
24400
+ }
24401
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
24402
+ } else if (status !== 200 && status !== 204) {
24403
+ return response.text().then((_responseText) => {
24404
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24405
+ });
24406
+ }
24407
+ return Promise.resolve<FileResponse>(null as any);
24408
+ }
24409
+
24410
+ deleteMessage(id: string, messageId: string): Promise<FileResponse> {
24411
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
24412
+ if (id === undefined || id === null)
24413
+ throw new Error("The parameter 'id' must be defined.");
24414
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24415
+ if (messageId === undefined || messageId === null)
24416
+ throw new Error("The parameter 'messageId' must be defined.");
24417
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
24418
+ url_ = url_.replace(/[?&]$/, "");
24419
+
24420
+ let options_: RequestInit = {
24421
+ method: "DELETE",
24422
+ headers: {
24423
+ "Accept": "application/octet-stream"
24424
+ }
24425
+ };
24426
+
24427
+ return this.transformOptions(options_).then(transformedOptions_ => {
24428
+ return this.http.fetch(url_, transformedOptions_);
24429
+ }).then((_response: Response) => {
24430
+ return this.processDeleteMessage(_response);
24431
+ });
24432
+ }
24433
+
24434
+ protected processDeleteMessage(response: Response): Promise<FileResponse> {
24435
+ const status = response.status;
24436
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24437
+ if (status === 200 || status === 206) {
24438
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
24439
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
24440
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
24441
+ if (fileName) {
24442
+ fileName = decodeURIComponent(fileName);
24443
+ } else {
24444
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
24445
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
24446
+ }
24447
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
24448
+ } else if (status !== 200 && status !== 204) {
24449
+ return response.text().then((_responseText) => {
24450
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24451
+ });
24452
+ }
24453
+ return Promise.resolve<FileResponse>(null as any);
24454
+ }
24220
24455
  }
24221
24456
 
24222
24457
  export class AzureRegionDto implements IAzureRegionDto {
@@ -55448,8 +55683,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55448
55683
  status!: MeasurementFormInstanceStatus;
55449
55684
  statusChangedDate?: Date | null;
55450
55685
  schemas!: MeasurementFormWorkorderSchemaDto[];
55451
- sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55452
- serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
55686
+ sequences!: MeasurementFormWorkorderSequenceDto[];
55453
55687
  suppliers!: MeasurementFormWorkorderSupplierDto[];
55454
55688
  progress!: MeasurementFormProgressDto;
55455
55689
  approvedReportUrl?: string | null;
@@ -55464,7 +55698,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55464
55698
  }
55465
55699
  if (!data) {
55466
55700
  this.schemas = [];
55467
- this.serialNumbers = [];
55701
+ this.sequences = [];
55468
55702
  this.suppliers = [];
55469
55703
  this.progress = new MeasurementFormProgressDto();
55470
55704
  }
@@ -55493,11 +55727,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55493
55727
  for (let item of _data["sequences"])
55494
55728
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
55495
55729
  }
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
55730
  if (Array.isArray(_data["suppliers"])) {
55502
55731
  this.suppliers = [] as any;
55503
55732
  for (let item of _data["suppliers"])
@@ -55539,11 +55768,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55539
55768
  for (let item of this.sequences)
55540
55769
  data["sequences"].push(item.toJSON());
55541
55770
  }
55542
- if (Array.isArray(this.serialNumbers)) {
55543
- data["serialNumbers"] = [];
55544
- for (let item of this.serialNumbers)
55545
- data["serialNumbers"].push(item.toJSON());
55546
- }
55547
55771
  if (Array.isArray(this.suppliers)) {
55548
55772
  data["suppliers"] = [];
55549
55773
  for (let item of this.suppliers)
@@ -55569,8 +55793,7 @@ export interface IMeasurementFormInstanceDto {
55569
55793
  status: MeasurementFormInstanceStatus;
55570
55794
  statusChangedDate?: Date | null;
55571
55795
  schemas: MeasurementFormWorkorderSchemaDto[];
55572
- sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55573
- serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
55796
+ sequences: MeasurementFormWorkorderSequenceDto[];
55574
55797
  suppliers: MeasurementFormWorkorderSupplierDto[];
55575
55798
  progress: MeasurementFormProgressDto;
55576
55799
  approvedReportUrl?: string | null;
@@ -55704,50 +55927,6 @@ export interface IMeasurementFormWorkorderSequenceDto {
55704
55927
  serialNumber?: string | null;
55705
55928
  }
55706
55929
 
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
55930
  export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
55752
55931
  supplierId!: string;
55753
55932
  supplierName?: string | null;
@@ -56032,8 +56211,7 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
56032
56211
  }
56033
56212
 
56034
56213
  export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
56035
- sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56036
- serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
56214
+ sequences!: MeasurementFormWorkorderSequenceDto[];
56037
56215
  suppliers!: MeasurementFormWorkorderSupplierDto[];
56038
56216
 
56039
56217
  constructor(data?: IUpdateMeasurementFormInstanceRequest) {
@@ -56044,7 +56222,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56044
56222
  }
56045
56223
  }
56046
56224
  if (!data) {
56047
- this.serialNumbers = [];
56225
+ this.sequences = [];
56048
56226
  this.suppliers = [];
56049
56227
  }
56050
56228
  }
@@ -56056,11 +56234,6 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56056
56234
  for (let item of _data["sequences"])
56057
56235
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
56058
56236
  }
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
56237
  if (Array.isArray(_data["suppliers"])) {
56065
56238
  this.suppliers = [] as any;
56066
56239
  for (let item of _data["suppliers"])
@@ -56083,11 +56256,6 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56083
56256
  for (let item of this.sequences)
56084
56257
  data["sequences"].push(item.toJSON());
56085
56258
  }
56086
- if (Array.isArray(this.serialNumbers)) {
56087
- data["serialNumbers"] = [];
56088
- for (let item of this.serialNumbers)
56089
- data["serialNumbers"].push(item.toJSON());
56090
- }
56091
56259
  if (Array.isArray(this.suppliers)) {
56092
56260
  data["suppliers"] = [];
56093
56261
  for (let item of this.suppliers)
@@ -56098,8 +56266,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56098
56266
  }
56099
56267
 
56100
56268
  export interface IUpdateMeasurementFormInstanceRequest {
56101
- sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56102
- serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
56269
+ sequences: MeasurementFormWorkorderSequenceDto[];
56103
56270
  suppliers: MeasurementFormWorkorderSupplierDto[];
56104
56271
  }
56105
56272
 
@@ -56368,8 +56535,7 @@ export interface IMeasurementFormInstanceElementDto {
56368
56535
  export class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
56369
56536
  bonus?: string | null;
56370
56537
  completed!: boolean;
56371
- sequence?: string | null;
56372
- serialNumber!: string;
56538
+ sequence!: string;
56373
56539
  value?: string | null;
56374
56540
  updatedByUser!: string;
56375
56541
  updatedDate!: Date;
@@ -56395,7 +56561,6 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56395
56561
  this.bonus = _data["bonus"];
56396
56562
  this.completed = _data["completed"];
56397
56563
  this.sequence = _data["sequence"];
56398
- this.serialNumber = _data["serialNumber"];
56399
56564
  this.value = _data["value"];
56400
56565
  this.updatedByUser = _data["updatedByUser"];
56401
56566
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -56422,7 +56587,6 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56422
56587
  data["bonus"] = this.bonus;
56423
56588
  data["completed"] = this.completed;
56424
56589
  data["sequence"] = this.sequence;
56425
- data["serialNumber"] = this.serialNumber;
56426
56590
  data["value"] = this.value;
56427
56591
  data["updatedByUser"] = this.updatedByUser;
56428
56592
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -56441,8 +56605,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56441
56605
  export interface IMeasurementFormElementValueDto {
56442
56606
  bonus?: string | null;
56443
56607
  completed: boolean;
56444
- sequence?: string | null;
56445
- serialNumber: string;
56608
+ sequence: string;
56446
56609
  value?: string | null;
56447
56610
  updatedByUser: string;
56448
56611
  updatedDate: Date;
@@ -56551,8 +56714,7 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56551
56714
  schemaId!: string;
56552
56715
  value?: string | null;
56553
56716
  bonus?: number | null;
56554
- sequence?: string | null;
56555
- serialNumber!: string;
56717
+ sequence!: string;
56556
56718
  elementId!: string;
56557
56719
  updatedByUser!: string;
56558
56720
  updatedDate!: Date;
@@ -56579,7 +56741,6 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56579
56741
  this.value = _data["value"];
56580
56742
  this.bonus = _data["bonus"];
56581
56743
  this.sequence = _data["sequence"];
56582
- this.serialNumber = _data["serialNumber"];
56583
56744
  this.elementId = _data["elementId"];
56584
56745
  this.updatedByUser = _data["updatedByUser"];
56585
56746
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -56607,7 +56768,6 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56607
56768
  data["value"] = this.value;
56608
56769
  data["bonus"] = this.bonus;
56609
56770
  data["sequence"] = this.sequence;
56610
- data["serialNumber"] = this.serialNumber;
56611
56771
  data["elementId"] = this.elementId;
56612
56772
  data["updatedByUser"] = this.updatedByUser;
56613
56773
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -56627,8 +56787,7 @@ export interface IMeasurementFormElementValueAuditDto {
56627
56787
  schemaId: string;
56628
56788
  value?: string | null;
56629
56789
  bonus?: number | null;
56630
- sequence?: string | null;
56631
- serialNumber: string;
56790
+ sequence: string;
56632
56791
  elementId: string;
56633
56792
  updatedByUser: string;
56634
56793
  updatedDate: Date;
@@ -56743,8 +56902,7 @@ export class SaveValueRequest implements ISaveValueRequest {
56743
56902
  resourceName?: string | null;
56744
56903
  schemaId!: string;
56745
56904
  elementId!: string;
56746
- sequence?: string | null;
56747
- serialNumber!: string;
56905
+ sequence!: string;
56748
56906
  value?: string | null;
56749
56907
  bonus?: string | null;
56750
56908
 
@@ -56764,7 +56922,6 @@ export class SaveValueRequest implements ISaveValueRequest {
56764
56922
  this.schemaId = _data["schemaId"];
56765
56923
  this.elementId = _data["elementId"];
56766
56924
  this.sequence = _data["sequence"];
56767
- this.serialNumber = _data["serialNumber"];
56768
56925
  this.value = _data["value"];
56769
56926
  this.bonus = _data["bonus"];
56770
56927
  }
@@ -56784,7 +56941,6 @@ export class SaveValueRequest implements ISaveValueRequest {
56784
56941
  data["schemaId"] = this.schemaId;
56785
56942
  data["elementId"] = this.elementId;
56786
56943
  data["sequence"] = this.sequence;
56787
- data["serialNumber"] = this.serialNumber;
56788
56944
  data["value"] = this.value;
56789
56945
  data["bonus"] = this.bonus;
56790
56946
  return data;
@@ -56796,8 +56952,7 @@ export interface ISaveValueRequest {
56796
56952
  resourceName?: string | null;
56797
56953
  schemaId: string;
56798
56954
  elementId: string;
56799
- sequence?: string | null;
56800
- serialNumber: string;
56955
+ sequence: string;
56801
56956
  value?: string | null;
56802
56957
  bonus?: string | null;
56803
56958
  }
@@ -56805,8 +56960,7 @@ export interface ISaveValueRequest {
56805
56960
  export class SaveToolRequest implements ISaveToolRequest {
56806
56961
  schemaId!: string;
56807
56962
  elementId!: string;
56808
- sequence?: string | null;
56809
- serialNumber!: string;
56963
+ sequence!: string;
56810
56964
  tools?: string[] | null;
56811
56965
  force?: boolean;
56812
56966
 
@@ -56824,7 +56978,6 @@ export class SaveToolRequest implements ISaveToolRequest {
56824
56978
  this.schemaId = _data["schemaId"];
56825
56979
  this.elementId = _data["elementId"];
56826
56980
  this.sequence = _data["sequence"];
56827
- this.serialNumber = _data["serialNumber"];
56828
56981
  if (Array.isArray(_data["tools"])) {
56829
56982
  this.tools = [] as any;
56830
56983
  for (let item of _data["tools"])
@@ -56846,7 +56999,6 @@ export class SaveToolRequest implements ISaveToolRequest {
56846
56999
  data["schemaId"] = this.schemaId;
56847
57000
  data["elementId"] = this.elementId;
56848
57001
  data["sequence"] = this.sequence;
56849
- data["serialNumber"] = this.serialNumber;
56850
57002
  if (Array.isArray(this.tools)) {
56851
57003
  data["tools"] = [];
56852
57004
  for (let item of this.tools)
@@ -56860,8 +57012,7 @@ export class SaveToolRequest implements ISaveToolRequest {
56860
57012
  export interface ISaveToolRequest {
56861
57013
  schemaId: string;
56862
57014
  elementId: string;
56863
- sequence?: string | null;
56864
- serialNumber: string;
57015
+ sequence: string;
56865
57016
  tools?: string[] | null;
56866
57017
  force?: boolean;
56867
57018
  }
@@ -56869,8 +57020,7 @@ export interface ISaveToolRequest {
56869
57020
  export class SaveCommentRequest implements ISaveCommentRequest {
56870
57021
  schemaId!: string;
56871
57022
  elementId!: string;
56872
- sequence?: string | null;
56873
- serialNumber!: string;
57023
+ sequence!: string;
56874
57024
  comment?: string | null;
56875
57025
 
56876
57026
  constructor(data?: ISaveCommentRequest) {
@@ -56887,7 +57037,6 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56887
57037
  this.schemaId = _data["schemaId"];
56888
57038
  this.elementId = _data["elementId"];
56889
57039
  this.sequence = _data["sequence"];
56890
- this.serialNumber = _data["serialNumber"];
56891
57040
  this.comment = _data["comment"];
56892
57041
  }
56893
57042
  }
@@ -56904,7 +57053,6 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56904
57053
  data["schemaId"] = this.schemaId;
56905
57054
  data["elementId"] = this.elementId;
56906
57055
  data["sequence"] = this.sequence;
56907
- data["serialNumber"] = this.serialNumber;
56908
57056
  data["comment"] = this.comment;
56909
57057
  return data;
56910
57058
  }
@@ -56913,8 +57061,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56913
57061
  export interface ISaveCommentRequest {
56914
57062
  schemaId: string;
56915
57063
  elementId: string;
56916
- sequence?: string | null;
56917
- serialNumber: string;
57064
+ sequence: string;
56918
57065
  comment?: string | null;
56919
57066
  }
56920
57067
 
@@ -57302,7 +57449,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57302
57449
  includeAllSchemasAndElements?: boolean | null;
57303
57450
  createBlankReport?: boolean | null;
57304
57451
  sequences?: string[] | null;
57305
- serialNumbers?: string[] | null;
57306
57452
  customerPO?: string | null;
57307
57453
  workOrder?: string | null;
57308
57454
  comment?: string | null;
@@ -57327,11 +57473,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57327
57473
  for (let item of _data["sequences"])
57328
57474
  this.sequences!.push(item);
57329
57475
  }
57330
- if (Array.isArray(_data["serialNumbers"])) {
57331
- this.serialNumbers = [] as any;
57332
- for (let item of _data["serialNumbers"])
57333
- this.serialNumbers!.push(item);
57334
- }
57335
57476
  this.customerPO = _data["customerPO"];
57336
57477
  this.workOrder = _data["workOrder"];
57337
57478
  this.comment = _data["comment"];
@@ -57356,11 +57497,6 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57356
57497
  for (let item of this.sequences)
57357
57498
  data["sequences"].push(item);
57358
57499
  }
57359
- if (Array.isArray(this.serialNumbers)) {
57360
- data["serialNumbers"] = [];
57361
- for (let item of this.serialNumbers)
57362
- data["serialNumbers"].push(item);
57363
- }
57364
57500
  data["customerPO"] = this.customerPO;
57365
57501
  data["workOrder"] = this.workOrder;
57366
57502
  data["comment"] = this.comment;
@@ -57374,7 +57510,6 @@ export interface IExportDimensionReportRequest {
57374
57510
  includeAllSchemasAndElements?: boolean | null;
57375
57511
  createBlankReport?: boolean | null;
57376
57512
  sequences?: string[] | null;
57377
- serialNumbers?: string[] | null;
57378
57513
  customerPO?: string | null;
57379
57514
  workOrder?: string | null;
57380
57515
  comment?: string | null;
@@ -57468,6 +57603,255 @@ export interface ISchemaInstanceElementDto {
57468
57603
  disabled: boolean;
57469
57604
  }
57470
57605
 
57606
+ export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
57607
+ partInfo!: ImportMeasurementFormPartDto;
57608
+ customerId?: string | null;
57609
+ customerGroupId?: string | null;
57610
+ customerName?: string | null;
57611
+ externalOrderNumber?: string | null;
57612
+ quantity!: number;
57613
+ sequences!: WorkorderImportTraceItemDto[];
57614
+ status!: MeasurementFormInstanceStatus;
57615
+ statusChangedBy?: string | null;
57616
+ statusChangedDate?: Date | null;
57617
+ created!: Date;
57618
+ createdBy?: string | null;
57619
+ updatedBy?: string | null;
57620
+ schemas!: ImportMeasurementSchemaInstanceDto[];
57621
+
57622
+ constructor(data?: IImportMeasurementFormInstanceRequest) {
57623
+ if (data) {
57624
+ for (var property in data) {
57625
+ if (data.hasOwnProperty(property))
57626
+ (<any>this)[property] = (<any>data)[property];
57627
+ }
57628
+ }
57629
+ if (!data) {
57630
+ this.partInfo = new ImportMeasurementFormPartDto();
57631
+ this.sequences = [];
57632
+ this.schemas = [];
57633
+ }
57634
+ }
57635
+
57636
+ init(_data?: any) {
57637
+ if (_data) {
57638
+ this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
57639
+ this.customerId = _data["customerId"];
57640
+ this.customerGroupId = _data["customerGroupId"];
57641
+ this.customerName = _data["customerName"];
57642
+ this.externalOrderNumber = _data["externalOrderNumber"];
57643
+ this.quantity = _data["quantity"];
57644
+ if (Array.isArray(_data["sequences"])) {
57645
+ this.sequences = [] as any;
57646
+ for (let item of _data["sequences"])
57647
+ this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
57648
+ }
57649
+ this.status = _data["status"];
57650
+ this.statusChangedBy = _data["statusChangedBy"];
57651
+ this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
57652
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
57653
+ this.createdBy = _data["createdBy"];
57654
+ this.updatedBy = _data["updatedBy"];
57655
+ if (Array.isArray(_data["schemas"])) {
57656
+ this.schemas = [] as any;
57657
+ for (let item of _data["schemas"])
57658
+ this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
57659
+ }
57660
+ }
57661
+ }
57662
+
57663
+ static fromJS(data: any): ImportMeasurementFormInstanceRequest {
57664
+ data = typeof data === 'object' ? data : {};
57665
+ let result = new ImportMeasurementFormInstanceRequest();
57666
+ result.init(data);
57667
+ return result;
57668
+ }
57669
+
57670
+ toJSON(data?: any) {
57671
+ data = typeof data === 'object' ? data : {};
57672
+ data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
57673
+ data["customerId"] = this.customerId;
57674
+ data["customerGroupId"] = this.customerGroupId;
57675
+ data["customerName"] = this.customerName;
57676
+ data["externalOrderNumber"] = this.externalOrderNumber;
57677
+ data["quantity"] = this.quantity;
57678
+ if (Array.isArray(this.sequences)) {
57679
+ data["sequences"] = [];
57680
+ for (let item of this.sequences)
57681
+ data["sequences"].push(item.toJSON());
57682
+ }
57683
+ data["status"] = this.status;
57684
+ data["statusChangedBy"] = this.statusChangedBy;
57685
+ data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
57686
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
57687
+ data["createdBy"] = this.createdBy;
57688
+ data["updatedBy"] = this.updatedBy;
57689
+ if (Array.isArray(this.schemas)) {
57690
+ data["schemas"] = [];
57691
+ for (let item of this.schemas)
57692
+ data["schemas"].push(item.toJSON());
57693
+ }
57694
+ return data;
57695
+ }
57696
+ }
57697
+
57698
+ export interface IImportMeasurementFormInstanceRequest {
57699
+ partInfo: ImportMeasurementFormPartDto;
57700
+ customerId?: string | null;
57701
+ customerGroupId?: string | null;
57702
+ customerName?: string | null;
57703
+ externalOrderNumber?: string | null;
57704
+ quantity: number;
57705
+ sequences: WorkorderImportTraceItemDto[];
57706
+ status: MeasurementFormInstanceStatus;
57707
+ statusChangedBy?: string | null;
57708
+ statusChangedDate?: Date | null;
57709
+ created: Date;
57710
+ createdBy?: string | null;
57711
+ updatedBy?: string | null;
57712
+ schemas: ImportMeasurementSchemaInstanceDto[];
57713
+ }
57714
+
57715
+ export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
57716
+ partNumber?: string | null;
57717
+ partName?: string | null;
57718
+ partRevision?: string | null;
57719
+ drawing!: string;
57720
+ drawingRevision?: string | null;
57721
+
57722
+ constructor(data?: IImportMeasurementFormPartDto) {
57723
+ if (data) {
57724
+ for (var property in data) {
57725
+ if (data.hasOwnProperty(property))
57726
+ (<any>this)[property] = (<any>data)[property];
57727
+ }
57728
+ }
57729
+ }
57730
+
57731
+ init(_data?: any) {
57732
+ if (_data) {
57733
+ this.partNumber = _data["partNumber"];
57734
+ this.partName = _data["partName"];
57735
+ this.partRevision = _data["partRevision"];
57736
+ this.drawing = _data["drawing"];
57737
+ this.drawingRevision = _data["drawingRevision"];
57738
+ }
57739
+ }
57740
+
57741
+ static fromJS(data: any): ImportMeasurementFormPartDto {
57742
+ data = typeof data === 'object' ? data : {};
57743
+ let result = new ImportMeasurementFormPartDto();
57744
+ result.init(data);
57745
+ return result;
57746
+ }
57747
+
57748
+ toJSON(data?: any) {
57749
+ data = typeof data === 'object' ? data : {};
57750
+ data["partNumber"] = this.partNumber;
57751
+ data["partName"] = this.partName;
57752
+ data["partRevision"] = this.partRevision;
57753
+ data["drawing"] = this.drawing;
57754
+ data["drawingRevision"] = this.drawingRevision;
57755
+ return data;
57756
+ }
57757
+ }
57758
+
57759
+ export interface IImportMeasurementFormPartDto {
57760
+ partNumber?: string | null;
57761
+ partName?: string | null;
57762
+ partRevision?: string | null;
57763
+ drawing: string;
57764
+ drawingRevision?: string | null;
57765
+ }
57766
+
57767
+ export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
57768
+ sequence!: string;
57769
+ serialNumber?: string | null;
57770
+ lot?: string | null;
57771
+ active!: boolean;
57772
+
57773
+ constructor(data?: IWorkorderImportTraceItemDto) {
57774
+ if (data) {
57775
+ for (var property in data) {
57776
+ if (data.hasOwnProperty(property))
57777
+ (<any>this)[property] = (<any>data)[property];
57778
+ }
57779
+ }
57780
+ }
57781
+
57782
+ init(_data?: any) {
57783
+ if (_data) {
57784
+ this.sequence = _data["sequence"];
57785
+ this.serialNumber = _data["serialNumber"];
57786
+ this.lot = _data["lot"];
57787
+ this.active = _data["active"];
57788
+ }
57789
+ }
57790
+
57791
+ static fromJS(data: any): WorkorderImportTraceItemDto {
57792
+ data = typeof data === 'object' ? data : {};
57793
+ let result = new WorkorderImportTraceItemDto();
57794
+ result.init(data);
57795
+ return result;
57796
+ }
57797
+
57798
+ toJSON(data?: any) {
57799
+ data = typeof data === 'object' ? data : {};
57800
+ data["sequence"] = this.sequence;
57801
+ data["serialNumber"] = this.serialNumber;
57802
+ data["lot"] = this.lot;
57803
+ data["active"] = this.active;
57804
+ return data;
57805
+ }
57806
+ }
57807
+
57808
+ export interface IWorkorderImportTraceItemDto {
57809
+ sequence: string;
57810
+ serialNumber?: string | null;
57811
+ lot?: string | null;
57812
+ active: boolean;
57813
+ }
57814
+
57815
+ export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
57816
+ id!: string;
57817
+ version!: number;
57818
+
57819
+ constructor(data?: IImportMeasurementSchemaInstanceDto) {
57820
+ if (data) {
57821
+ for (var property in data) {
57822
+ if (data.hasOwnProperty(property))
57823
+ (<any>this)[property] = (<any>data)[property];
57824
+ }
57825
+ }
57826
+ }
57827
+
57828
+ init(_data?: any) {
57829
+ if (_data) {
57830
+ this.id = _data["id"];
57831
+ this.version = _data["version"];
57832
+ }
57833
+ }
57834
+
57835
+ static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
57836
+ data = typeof data === 'object' ? data : {};
57837
+ let result = new ImportMeasurementSchemaInstanceDto();
57838
+ result.init(data);
57839
+ return result;
57840
+ }
57841
+
57842
+ toJSON(data?: any) {
57843
+ data = typeof data === 'object' ? data : {};
57844
+ data["id"] = this.id;
57845
+ data["version"] = this.version;
57846
+ return data;
57847
+ }
57848
+ }
57849
+
57850
+ export interface IImportMeasurementSchemaInstanceDto {
57851
+ id: string;
57852
+ version: number;
57853
+ }
57854
+
57471
57855
  export class IotTypeSourceDto implements IIotTypeSourceDto {
57472
57856
  id!: string;
57473
57857
  name!: string;
@@ -58825,10 +59209,8 @@ export interface IUpsertWorkOrderTracesRequest {
58825
59209
  export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58826
59210
  sequence!: string;
58827
59211
  serialNumber?: string | null;
58828
- customerSerialNumber?: string | null;
58829
59212
  lot?: string | null;
58830
59213
  active!: boolean;
58831
- isLegacy?: boolean;
58832
59214
 
58833
59215
  constructor(data?: IWorkOrderTraceItemDto) {
58834
59216
  if (data) {
@@ -58843,10 +59225,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58843
59225
  if (_data) {
58844
59226
  this.sequence = _data["sequence"];
58845
59227
  this.serialNumber = _data["serialNumber"];
58846
- this.customerSerialNumber = _data["customerSerialNumber"];
58847
59228
  this.lot = _data["lot"];
58848
59229
  this.active = _data["active"];
58849
- this.isLegacy = _data["isLegacy"];
58850
59230
  }
58851
59231
  }
58852
59232
 
@@ -58861,10 +59241,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58861
59241
  data = typeof data === 'object' ? data : {};
58862
59242
  data["sequence"] = this.sequence;
58863
59243
  data["serialNumber"] = this.serialNumber;
58864
- data["customerSerialNumber"] = this.customerSerialNumber;
58865
59244
  data["lot"] = this.lot;
58866
59245
  data["active"] = this.active;
58867
- data["isLegacy"] = this.isLegacy;
58868
59246
  return data;
58869
59247
  }
58870
59248
  }
@@ -58872,10 +59250,8 @@ export class WorkOrderTraceItemDto implements IWorkOrderTraceItemDto {
58872
59250
  export interface IWorkOrderTraceItemDto {
58873
59251
  sequence: string;
58874
59252
  serialNumber?: string | null;
58875
- customerSerialNumber?: string | null;
58876
59253
  lot?: string | null;
58877
59254
  active: boolean;
58878
- isLegacy?: boolean;
58879
59255
  }
58880
59256
 
58881
59257
  export class ResourceExistDto implements IResourceExistDto {
@@ -59660,6 +60036,247 @@ export interface ICreateWorkOrderMapping {
59660
60036
  newWorkOrderId: string;
59661
60037
  }
59662
60038
 
60039
+ export class TableEntityBase implements ITableEntityBase {
60040
+ partitionKey?: string;
60041
+ rowKey?: string;
60042
+ timestamp?: Date | null;
60043
+ eTag?: ETag;
60044
+ created?: Date | null;
60045
+ createdBy?: string | null;
60046
+ createdById?: string | null;
60047
+ updatedBy?: string | null;
60048
+ updatedById?: string | null;
60049
+ insertAuditInfo?: AuditInfo;
60050
+
60051
+ constructor(data?: ITableEntityBase) {
60052
+ if (data) {
60053
+ for (var property in data) {
60054
+ if (data.hasOwnProperty(property))
60055
+ (<any>this)[property] = (<any>data)[property];
60056
+ }
60057
+ }
60058
+ }
60059
+
60060
+ init(_data?: any) {
60061
+ if (_data) {
60062
+ this.partitionKey = _data["partitionKey"];
60063
+ this.rowKey = _data["rowKey"];
60064
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
60065
+ this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : <any>undefined;
60066
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
60067
+ this.createdBy = _data["createdBy"];
60068
+ this.createdById = _data["createdById"];
60069
+ this.updatedBy = _data["updatedBy"];
60070
+ this.updatedById = _data["updatedById"];
60071
+ this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : <any>undefined;
60072
+ }
60073
+ }
60074
+
60075
+ static fromJS(data: any): TableEntityBase {
60076
+ data = typeof data === 'object' ? data : {};
60077
+ let result = new TableEntityBase();
60078
+ result.init(data);
60079
+ return result;
60080
+ }
60081
+
60082
+ toJSON(data?: any) {
60083
+ data = typeof data === 'object' ? data : {};
60084
+ data["partitionKey"] = this.partitionKey;
60085
+ data["rowKey"] = this.rowKey;
60086
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
60087
+ data["eTag"] = this.eTag ? this.eTag.toJSON() : <any>undefined;
60088
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
60089
+ data["createdBy"] = this.createdBy;
60090
+ data["createdById"] = this.createdById;
60091
+ data["updatedBy"] = this.updatedBy;
60092
+ data["updatedById"] = this.updatedById;
60093
+ data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : <any>undefined;
60094
+ return data;
60095
+ }
60096
+ }
60097
+
60098
+ export interface ITableEntityBase {
60099
+ partitionKey?: string;
60100
+ rowKey?: string;
60101
+ timestamp?: Date | null;
60102
+ eTag?: ETag;
60103
+ created?: Date | null;
60104
+ createdBy?: string | null;
60105
+ createdById?: string | null;
60106
+ updatedBy?: string | null;
60107
+ updatedById?: string | null;
60108
+ insertAuditInfo?: AuditInfo;
60109
+ }
60110
+
60111
+ export class WorkorderDiscussionMessage extends TableEntityBase implements IWorkorderDiscussionMessage {
60112
+ content?: string;
60113
+ senderUpn?: string;
60114
+ senderName?: string;
60115
+ operationId?: string | null;
60116
+ resourceId?: string | null;
60117
+
60118
+ constructor(data?: IWorkorderDiscussionMessage) {
60119
+ super(data);
60120
+ }
60121
+
60122
+ override init(_data?: any) {
60123
+ super.init(_data);
60124
+ if (_data) {
60125
+ this.content = _data["content"];
60126
+ this.senderUpn = _data["senderUpn"];
60127
+ this.senderName = _data["senderName"];
60128
+ this.operationId = _data["operationId"];
60129
+ this.resourceId = _data["resourceId"];
60130
+ }
60131
+ }
60132
+
60133
+ static override fromJS(data: any): WorkorderDiscussionMessage {
60134
+ data = typeof data === 'object' ? data : {};
60135
+ let result = new WorkorderDiscussionMessage();
60136
+ result.init(data);
60137
+ return result;
60138
+ }
60139
+
60140
+ override toJSON(data?: any) {
60141
+ data = typeof data === 'object' ? data : {};
60142
+ data["content"] = this.content;
60143
+ data["senderUpn"] = this.senderUpn;
60144
+ data["senderName"] = this.senderName;
60145
+ data["operationId"] = this.operationId;
60146
+ data["resourceId"] = this.resourceId;
60147
+ super.toJSON(data);
60148
+ return data;
60149
+ }
60150
+ }
60151
+
60152
+ export interface IWorkorderDiscussionMessage extends ITableEntityBase {
60153
+ content?: string;
60154
+ senderUpn?: string;
60155
+ senderName?: string;
60156
+ operationId?: string | null;
60157
+ resourceId?: string | null;
60158
+ }
60159
+
60160
+ /** Represents an HTTP ETag. */
60161
+ export class ETag implements IETag {
60162
+
60163
+ constructor(data?: IETag) {
60164
+ if (data) {
60165
+ for (var property in data) {
60166
+ if (data.hasOwnProperty(property))
60167
+ (<any>this)[property] = (<any>data)[property];
60168
+ }
60169
+ }
60170
+ }
60171
+
60172
+ init(_data?: any) {
60173
+ }
60174
+
60175
+ static fromJS(data: any): ETag {
60176
+ data = typeof data === 'object' ? data : {};
60177
+ let result = new ETag();
60178
+ result.init(data);
60179
+ return result;
60180
+ }
60181
+
60182
+ toJSON(data?: any) {
60183
+ data = typeof data === 'object' ? data : {};
60184
+ return data;
60185
+ }
60186
+ }
60187
+
60188
+ /** Represents an HTTP ETag. */
60189
+ export interface IETag {
60190
+ }
60191
+
60192
+ export class AuditInfo implements IAuditInfo {
60193
+ objectId?: string;
60194
+ userId?: string;
60195
+ userFullName?: string | null;
60196
+
60197
+ constructor(data?: IAuditInfo) {
60198
+ if (data) {
60199
+ for (var property in data) {
60200
+ if (data.hasOwnProperty(property))
60201
+ (<any>this)[property] = (<any>data)[property];
60202
+ }
60203
+ }
60204
+ }
60205
+
60206
+ init(_data?: any) {
60207
+ if (_data) {
60208
+ this.objectId = _data["objectId"];
60209
+ this.userId = _data["userId"];
60210
+ this.userFullName = _data["userFullName"];
60211
+ }
60212
+ }
60213
+
60214
+ static fromJS(data: any): AuditInfo {
60215
+ data = typeof data === 'object' ? data : {};
60216
+ let result = new AuditInfo();
60217
+ result.init(data);
60218
+ return result;
60219
+ }
60220
+
60221
+ toJSON(data?: any) {
60222
+ data = typeof data === 'object' ? data : {};
60223
+ data["objectId"] = this.objectId;
60224
+ data["userId"] = this.userId;
60225
+ data["userFullName"] = this.userFullName;
60226
+ return data;
60227
+ }
60228
+ }
60229
+
60230
+ export interface IAuditInfo {
60231
+ objectId?: string;
60232
+ userId?: string;
60233
+ userFullName?: string | null;
60234
+ }
60235
+
60236
+ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
60237
+ message?: string;
60238
+ operationId?: string | null;
60239
+ resourceId?: string | null;
60240
+
60241
+ constructor(data?: IAddDiscussionMessageRequest) {
60242
+ if (data) {
60243
+ for (var property in data) {
60244
+ if (data.hasOwnProperty(property))
60245
+ (<any>this)[property] = (<any>data)[property];
60246
+ }
60247
+ }
60248
+ }
60249
+
60250
+ init(_data?: any) {
60251
+ if (_data) {
60252
+ this.message = _data["message"];
60253
+ this.operationId = _data["operationId"];
60254
+ this.resourceId = _data["resourceId"];
60255
+ }
60256
+ }
60257
+
60258
+ static fromJS(data: any): AddDiscussionMessageRequest {
60259
+ data = typeof data === 'object' ? data : {};
60260
+ let result = new AddDiscussionMessageRequest();
60261
+ result.init(data);
60262
+ return result;
60263
+ }
60264
+
60265
+ toJSON(data?: any) {
60266
+ data = typeof data === 'object' ? data : {};
60267
+ data["message"] = this.message;
60268
+ data["operationId"] = this.operationId;
60269
+ data["resourceId"] = this.resourceId;
60270
+ return data;
60271
+ }
60272
+ }
60273
+
60274
+ export interface IAddDiscussionMessageRequest {
60275
+ message?: string;
60276
+ operationId?: string | null;
60277
+ resourceId?: string | null;
60278
+ }
60279
+
59663
60280
  function formatDate(d: Date) {
59664
60281
  return d.getFullYear() + '-' +
59665
60282
  (d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +