@ignos/api-client 20250729.0.12224-alpha → 20250805.0.12267-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.
@@ -17959,7 +17959,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
17959
17959
 
17960
17960
  export interface IMeasurementFormSchemasClient {
17961
17961
 
17962
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
17962
+ listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
17963
17963
 
17964
17964
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
17965
17965
 
@@ -18044,7 +18044,7 @@ export interface IMeasurementFormSchemasClient {
18044
18044
  */
18045
18045
  importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto>;
18046
18046
 
18047
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18047
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18048
18048
 
18049
18049
  postListMeasurementFormNeeds(request: ListMeasurementFormNeedsRequest | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18050
18050
 
@@ -18056,7 +18056,7 @@ export interface IMeasurementFormSchemasClient {
18056
18056
 
18057
18057
  uploadNeedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormNeedDto>;
18058
18058
 
18059
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18059
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18060
18060
 
18061
18061
  postListMeasurementFormSchemasNotNeeded(request: ListMeasurementFormSchemasNotNeededRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18062
18062
 
@@ -18096,7 +18096,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18096
18096
  this.baseUrl = baseUrl ?? "";
18097
18097
  }
18098
18098
 
18099
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18099
+ listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18100
18100
  let url_ = this.baseUrl + "/measurementforms/schemas?";
18101
18101
  if (pageSize === null)
18102
18102
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -18108,8 +18108,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18108
18108
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
18109
18109
  if (partNumber !== undefined && partNumber !== null)
18110
18110
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
18111
- if (partName !== undefined && partName !== null)
18112
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
18113
18111
  if (partRevision !== undefined && partRevision !== null)
18114
18112
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
18115
18113
  if (drawing !== undefined && drawing !== null)
@@ -19565,7 +19563,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19565
19563
  return Promise.resolve<MeasurementFormDto>(null as any);
19566
19564
  }
19567
19565
 
19568
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19566
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19569
19567
  let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
19570
19568
  if (pageSize === null)
19571
19569
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -19577,8 +19575,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19577
19575
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19578
19576
  if (partNumber !== undefined && partNumber !== null)
19579
19577
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19580
- if (partName !== undefined && partName !== null)
19581
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19582
19578
  if (partRevision !== undefined && partRevision !== null)
19583
19579
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19584
19580
  if (drawing !== undefined && drawing !== null)
@@ -19829,7 +19825,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19829
19825
  return Promise.resolve<MeasurementFormNeedDto>(null as any);
19830
19826
  }
19831
19827
 
19832
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19828
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19833
19829
  let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
19834
19830
  if (pageSize === null)
19835
19831
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -19841,8 +19837,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19841
19837
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19842
19838
  if (partNumber !== undefined && partNumber !== null)
19843
19839
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19844
- if (partName !== undefined && partName !== null)
19845
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19846
19840
  if (partRevision !== undefined && partRevision !== null)
19847
19841
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19848
19842
  if (drawing !== undefined && drawing !== null)
@@ -23189,6 +23183,18 @@ export interface IWorkordersClient {
23189
23183
  * Deleteds existing work order mappings.
23190
23184
  */
23191
23185
  deleteWorkOrderMappings(): Promise<void>;
23186
+
23187
+ getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
23188
+
23189
+ addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void>;
23190
+
23191
+ updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
23192
+
23193
+ deleteMessage(id: string, messageId: string): Promise<FileResponse>;
23194
+
23195
+ getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
23196
+
23197
+ setLastRead(id: string, request: SetDiscussionLastRead): Promise<void>;
23192
23198
  }
23193
23199
 
23194
23200
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -24268,6 +24274,268 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24268
24274
  }
24269
24275
  return Promise.resolve<void>(null as any);
24270
24276
  }
24277
+
24278
+ getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]> {
24279
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24280
+ if (id === undefined || id === null)
24281
+ throw new Error("The parameter 'id' must be defined.");
24282
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24283
+ url_ = url_.replace(/[?&]$/, "");
24284
+
24285
+ let options_: RequestInit = {
24286
+ method: "GET",
24287
+ headers: {
24288
+ "Accept": "application/json"
24289
+ }
24290
+ };
24291
+
24292
+ return this.transformOptions(options_).then(transformedOptions_ => {
24293
+ return this.http.fetch(url_, transformedOptions_);
24294
+ }).then((_response: Response) => {
24295
+ return this.processGetDiscussionMessages(_response);
24296
+ });
24297
+ }
24298
+
24299
+ protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
24300
+ const status = response.status;
24301
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24302
+ if (status === 200) {
24303
+ return response.text().then((_responseText) => {
24304
+ let result200: any = null;
24305
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24306
+ if (Array.isArray(resultData200)) {
24307
+ result200 = [] as any;
24308
+ for (let item of resultData200)
24309
+ result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
24310
+ }
24311
+ return result200;
24312
+ });
24313
+ } else if (status !== 200 && status !== 204) {
24314
+ return response.text().then((_responseText) => {
24315
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24316
+ });
24317
+ }
24318
+ return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
24319
+ }
24320
+
24321
+ addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<void> {
24322
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24323
+ if (id === undefined || id === null)
24324
+ throw new Error("The parameter 'id' must be defined.");
24325
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24326
+ url_ = url_.replace(/[?&]$/, "");
24327
+
24328
+ const content_ = JSON.stringify(request);
24329
+
24330
+ let options_: RequestInit = {
24331
+ body: content_,
24332
+ method: "POST",
24333
+ headers: {
24334
+ "Content-Type": "application/json",
24335
+ }
24336
+ };
24337
+
24338
+ return this.transformOptions(options_).then(transformedOptions_ => {
24339
+ return this.http.fetch(url_, transformedOptions_);
24340
+ }).then((_response: Response) => {
24341
+ return this.processAddDiscussionMessage(_response);
24342
+ });
24343
+ }
24344
+
24345
+ protected processAddDiscussionMessage(response: Response): Promise<void> {
24346
+ const status = response.status;
24347
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24348
+ if (status === 204) {
24349
+ return response.text().then((_responseText) => {
24350
+ return;
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<void>(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
+ }
24455
+
24456
+ getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined, userUpn: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto> {
24457
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
24458
+ if (id === undefined || id === null)
24459
+ throw new Error("The parameter 'id' must be defined.");
24460
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24461
+ if (operationId !== undefined && operationId !== null)
24462
+ url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
24463
+ if (resourceId !== undefined && resourceId !== null)
24464
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
24465
+ if (userUpn !== undefined && userUpn !== null)
24466
+ url_ += "userUpn=" + encodeURIComponent("" + userUpn) + "&";
24467
+ url_ = url_.replace(/[?&]$/, "");
24468
+
24469
+ let options_: RequestInit = {
24470
+ method: "GET",
24471
+ headers: {
24472
+ "Accept": "application/json"
24473
+ }
24474
+ };
24475
+
24476
+ return this.transformOptions(options_).then(transformedOptions_ => {
24477
+ return this.http.fetch(url_, transformedOptions_);
24478
+ }).then((_response: Response) => {
24479
+ return this.processGetLastRead(_response);
24480
+ });
24481
+ }
24482
+
24483
+ protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto> {
24484
+ const status = response.status;
24485
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24486
+ if (status === 200) {
24487
+ return response.text().then((_responseText) => {
24488
+ let result200: any = null;
24489
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24490
+ result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
24491
+ return result200;
24492
+ });
24493
+ } else if (status !== 200 && status !== 204) {
24494
+ return response.text().then((_responseText) => {
24495
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24496
+ });
24497
+ }
24498
+ return Promise.resolve<WorkorderDiscussionReadStatusDto>(null as any);
24499
+ }
24500
+
24501
+ setLastRead(id: string, request: SetDiscussionLastRead): Promise<void> {
24502
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
24503
+ if (id === undefined || id === null)
24504
+ throw new Error("The parameter 'id' must be defined.");
24505
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24506
+ url_ = url_.replace(/[?&]$/, "");
24507
+
24508
+ const content_ = JSON.stringify(request);
24509
+
24510
+ let options_: RequestInit = {
24511
+ body: content_,
24512
+ method: "POST",
24513
+ headers: {
24514
+ "Content-Type": "application/json",
24515
+ }
24516
+ };
24517
+
24518
+ return this.transformOptions(options_).then(transformedOptions_ => {
24519
+ return this.http.fetch(url_, transformedOptions_);
24520
+ }).then((_response: Response) => {
24521
+ return this.processSetLastRead(_response);
24522
+ });
24523
+ }
24524
+
24525
+ protected processSetLastRead(response: Response): Promise<void> {
24526
+ const status = response.status;
24527
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24528
+ if (status === 204) {
24529
+ return response.text().then((_responseText) => {
24530
+ return;
24531
+ });
24532
+ } else if (status !== 200 && status !== 204) {
24533
+ return response.text().then((_responseText) => {
24534
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24535
+ });
24536
+ }
24537
+ return Promise.resolve<void>(null as any);
24538
+ }
24271
24539
  }
24272
24540
 
24273
24541
  export class AzureRegionDto implements IAzureRegionDto {
@@ -51774,7 +52042,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
51774
52042
  pageSize?: number | null;
51775
52043
  customerId?: string | null;
51776
52044
  customerName?: string | null;
51777
- partName?: string | null;
51778
52045
  partNumber?: string | null;
51779
52046
  partRevision?: string | null;
51780
52047
  drawing?: string | null;
@@ -51796,7 +52063,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
51796
52063
  this.pageSize = _data["pageSize"];
51797
52064
  this.customerId = _data["customerId"];
51798
52065
  this.customerName = _data["customerName"];
51799
- this.partName = _data["partName"];
51800
52066
  this.partNumber = _data["partNumber"];
51801
52067
  this.partRevision = _data["partRevision"];
51802
52068
  this.drawing = _data["drawing"];
@@ -51818,7 +52084,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
51818
52084
  data["pageSize"] = this.pageSize;
51819
52085
  data["customerId"] = this.customerId;
51820
52086
  data["customerName"] = this.customerName;
51821
- data["partName"] = this.partName;
51822
52087
  data["partNumber"] = this.partNumber;
51823
52088
  data["partRevision"] = this.partRevision;
51824
52089
  data["drawing"] = this.drawing;
@@ -51833,7 +52098,6 @@ export interface IListMeasurementFormSchemasRequest {
51833
52098
  pageSize?: number | null;
51834
52099
  customerId?: string | null;
51835
52100
  customerName?: string | null;
51836
- partName?: string | null;
51837
52101
  partNumber?: string | null;
51838
52102
  partRevision?: string | null;
51839
52103
  drawing?: string | null;
@@ -53769,7 +54033,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
53769
54033
  customerId?: string | null;
53770
54034
  customerName?: string | null;
53771
54035
  partNumber!: string;
53772
- partName?: string | null;
53773
54036
  partRevision?: string | null;
53774
54037
  drawing?: string | null;
53775
54038
  drawingRevision?: string | null;
@@ -53799,7 +54062,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
53799
54062
  this.customerId = _data["customerId"];
53800
54063
  this.customerName = _data["customerName"];
53801
54064
  this.partNumber = _data["partNumber"];
53802
- this.partName = _data["partName"];
53803
54065
  this.partRevision = _data["partRevision"];
53804
54066
  this.drawing = _data["drawing"];
53805
54067
  this.drawingRevision = _data["drawingRevision"];
@@ -53834,7 +54096,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
53834
54096
  data["customerId"] = this.customerId;
53835
54097
  data["customerName"] = this.customerName;
53836
54098
  data["partNumber"] = this.partNumber;
53837
- data["partName"] = this.partName;
53838
54099
  data["partRevision"] = this.partRevision;
53839
54100
  data["drawing"] = this.drawing;
53840
54101
  data["drawingRevision"] = this.drawingRevision;
@@ -53862,7 +54123,6 @@ export interface IImportMeasurementFormSchema {
53862
54123
  customerId?: string | null;
53863
54124
  customerName?: string | null;
53864
54125
  partNumber: string;
53865
- partName?: string | null;
53866
54126
  partRevision?: string | null;
53867
54127
  drawing?: string | null;
53868
54128
  drawingRevision?: string | null;
@@ -53879,7 +54139,6 @@ export interface IImportMeasurementFormSchema {
53879
54139
  export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
53880
54140
  customerId?: string | null;
53881
54141
  partNumber?: string | null;
53882
- partName?: string | null;
53883
54142
  partRevision?: string | null;
53884
54143
  drawing!: string;
53885
54144
  drawingRevision?: string | null;
@@ -53898,7 +54157,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
53898
54157
  if (_data) {
53899
54158
  this.customerId = _data["customerId"];
53900
54159
  this.partNumber = _data["partNumber"];
53901
- this.partName = _data["partName"];
53902
54160
  this.partRevision = _data["partRevision"];
53903
54161
  this.drawing = _data["drawing"];
53904
54162
  this.drawingRevision = _data["drawingRevision"];
@@ -53917,7 +54175,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
53917
54175
  data = typeof data === 'object' ? data : {};
53918
54176
  data["customerId"] = this.customerId;
53919
54177
  data["partNumber"] = this.partNumber;
53920
- data["partName"] = this.partName;
53921
54178
  data["partRevision"] = this.partRevision;
53922
54179
  data["drawing"] = this.drawing;
53923
54180
  data["drawingRevision"] = this.drawingRevision;
@@ -53929,7 +54186,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
53929
54186
  export interface IMeasurementFormImportLinkedSchemaDto {
53930
54187
  customerId?: string | null;
53931
54188
  partNumber?: string | null;
53932
- partName?: string | null;
53933
54189
  partRevision?: string | null;
53934
54190
  drawing: string;
53935
54191
  drawingRevision?: string | null;
@@ -54273,7 +54529,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54273
54529
  customerName?: string | null;
54274
54530
  partNumber?: string | null;
54275
54531
  partRevision?: string | null;
54276
- partName?: string | null;
54277
54532
  drawing?: string | null;
54278
54533
  drawingRevision?: string | null;
54279
54534
  workorder?: string | null;
@@ -54303,7 +54558,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54303
54558
  this.customerName = _data["customerName"];
54304
54559
  this.partNumber = _data["partNumber"];
54305
54560
  this.partRevision = _data["partRevision"];
54306
- this.partName = _data["partName"];
54307
54561
  this.drawing = _data["drawing"];
54308
54562
  this.drawingRevision = _data["drawingRevision"];
54309
54563
  this.workorder = _data["workorder"];
@@ -54333,7 +54587,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54333
54587
  data["customerName"] = this.customerName;
54334
54588
  data["partNumber"] = this.partNumber;
54335
54589
  data["partRevision"] = this.partRevision;
54336
- data["partName"] = this.partName;
54337
54590
  data["drawing"] = this.drawing;
54338
54591
  data["drawingRevision"] = this.drawingRevision;
54339
54592
  data["workorder"] = this.workorder;
@@ -54356,7 +54609,6 @@ export interface IMeasurementFormNeedDto {
54356
54609
  customerName?: string | null;
54357
54610
  partNumber?: string | null;
54358
54611
  partRevision?: string | null;
54359
- partName?: string | null;
54360
54612
  drawing?: string | null;
54361
54613
  drawingRevision?: string | null;
54362
54614
  workorder?: string | null;
@@ -54374,7 +54626,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54374
54626
  pageSize?: number | null;
54375
54627
  customerId?: string | null;
54376
54628
  customerName?: string | null;
54377
- partName?: string | null;
54378
54629
  partNumber?: string | null;
54379
54630
  partRevision?: string | null;
54380
54631
  drawing?: string | null;
@@ -54397,7 +54648,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54397
54648
  this.pageSize = _data["pageSize"];
54398
54649
  this.customerId = _data["customerId"];
54399
54650
  this.customerName = _data["customerName"];
54400
- this.partName = _data["partName"];
54401
54651
  this.partNumber = _data["partNumber"];
54402
54652
  this.partRevision = _data["partRevision"];
54403
54653
  this.drawing = _data["drawing"];
@@ -54420,7 +54670,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54420
54670
  data["pageSize"] = this.pageSize;
54421
54671
  data["customerId"] = this.customerId;
54422
54672
  data["customerName"] = this.customerName;
54423
- data["partName"] = this.partName;
54424
54673
  data["partNumber"] = this.partNumber;
54425
54674
  data["partRevision"] = this.partRevision;
54426
54675
  data["drawing"] = this.drawing;
@@ -54436,7 +54685,6 @@ export interface IListMeasurementFormNeedsRequest {
54436
54685
  pageSize?: number | null;
54437
54686
  customerId?: string | null;
54438
54687
  customerName?: string | null;
54439
- partName?: string | null;
54440
54688
  partNumber?: string | null;
54441
54689
  partRevision?: string | null;
54442
54690
  drawing?: string | null;
@@ -54638,7 +54886,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54638
54886
  customerId?: string | null;
54639
54887
  customerName?: string | null;
54640
54888
  partNumber?: string | null;
54641
- partName?: string | null;
54642
54889
  partRevision?: string | null;
54643
54890
  drawing?: string | null;
54644
54891
  drawingRevision?: string | null;
@@ -54660,7 +54907,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54660
54907
  this.customerId = _data["customerId"];
54661
54908
  this.customerName = _data["customerName"];
54662
54909
  this.partNumber = _data["partNumber"];
54663
- this.partName = _data["partName"];
54664
54910
  this.partRevision = _data["partRevision"];
54665
54911
  this.drawing = _data["drawing"];
54666
54912
  this.drawingRevision = _data["drawingRevision"];
@@ -54682,7 +54928,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54682
54928
  data["customerId"] = this.customerId;
54683
54929
  data["customerName"] = this.customerName;
54684
54930
  data["partNumber"] = this.partNumber;
54685
- data["partName"] = this.partName;
54686
54931
  data["partRevision"] = this.partRevision;
54687
54932
  data["drawing"] = this.drawing;
54688
54933
  data["drawingRevision"] = this.drawingRevision;
@@ -54697,7 +54942,6 @@ export interface IListMeasurementFormSchemasNotNeededRequest {
54697
54942
  customerId?: string | null;
54698
54943
  customerName?: string | null;
54699
54944
  partNumber?: string | null;
54700
- partName?: string | null;
54701
54945
  partRevision?: string | null;
54702
54946
  drawing?: string | null;
54703
54947
  drawingRevision?: string | null;
@@ -54883,7 +55127,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54883
55127
  latestSchemaDefinitionId?: string | null;
54884
55128
  partNumber?: string | null;
54885
55129
  partRevision?: string | null;
54886
- partName?: string | null;
54887
55130
  drawing?: string | null;
54888
55131
  drawingRevision?: string | null;
54889
55132
 
@@ -54912,7 +55155,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54912
55155
  this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
54913
55156
  this.partNumber = _data["partNumber"];
54914
55157
  this.partRevision = _data["partRevision"];
54915
- this.partName = _data["partName"];
54916
55158
  this.drawing = _data["drawing"];
54917
55159
  this.drawingRevision = _data["drawingRevision"];
54918
55160
  }
@@ -54941,7 +55183,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
54941
55183
  data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
54942
55184
  data["partNumber"] = this.partNumber;
54943
55185
  data["partRevision"] = this.partRevision;
54944
- data["partName"] = this.partName;
54945
55186
  data["drawing"] = this.drawing;
54946
55187
  data["drawingRevision"] = this.drawingRevision;
54947
55188
  return data;
@@ -54963,7 +55204,6 @@ export interface ISchemaFeedbackDto {
54963
55204
  latestSchemaDefinitionId?: string | null;
54964
55205
  partNumber?: string | null;
54965
55206
  partRevision?: string | null;
54966
- partName?: string | null;
54967
55207
  drawing?: string | null;
54968
55208
  drawingRevision?: string | null;
54969
55209
  }
@@ -55168,7 +55408,6 @@ export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
55168
55408
  export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
55169
55409
  id!: string;
55170
55410
  readonly!: boolean;
55171
- partName?: string | null;
55172
55411
  partNumber?: string | null;
55173
55412
  partRevision?: string | null;
55174
55413
  drawing?: string | null;
@@ -55199,7 +55438,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55199
55438
  if (_data) {
55200
55439
  this.id = _data["id"];
55201
55440
  this.readonly = _data["readonly"];
55202
- this.partName = _data["partName"];
55203
55441
  this.partNumber = _data["partNumber"];
55204
55442
  this.partRevision = _data["partRevision"];
55205
55443
  this.drawing = _data["drawing"];
@@ -55230,7 +55468,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55230
55468
  data = typeof data === 'object' ? data : {};
55231
55469
  data["id"] = this.id;
55232
55470
  data["readonly"] = this.readonly;
55233
- data["partName"] = this.partName;
55234
55471
  data["partNumber"] = this.partNumber;
55235
55472
  data["partRevision"] = this.partRevision;
55236
55473
  data["drawing"] = this.drawing;
@@ -55254,7 +55491,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55254
55491
  export interface IMeasurementFormInstanceOverviewDto {
55255
55492
  id: string;
55256
55493
  readonly: boolean;
55257
- partName?: string | null;
55258
55494
  partNumber?: string | null;
55259
55495
  partRevision?: string | null;
55260
55496
  drawing?: string | null;
@@ -55522,7 +55758,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55522
55758
  id!: string;
55523
55759
  readonly!: boolean;
55524
55760
  partNumber?: string | null;
55525
- partName?: string | null;
55526
55761
  partRevision?: string | null;
55527
55762
  drawing?: string | null;
55528
55763
  drawingRevision?: string | null;
@@ -55558,7 +55793,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55558
55793
  this.id = _data["id"];
55559
55794
  this.readonly = _data["readonly"];
55560
55795
  this.partNumber = _data["partNumber"];
55561
- this.partName = _data["partName"];
55562
55796
  this.partRevision = _data["partRevision"];
55563
55797
  this.drawing = _data["drawing"];
55564
55798
  this.drawingRevision = _data["drawingRevision"];
@@ -55600,7 +55834,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55600
55834
  data["id"] = this.id;
55601
55835
  data["readonly"] = this.readonly;
55602
55836
  data["partNumber"] = this.partNumber;
55603
- data["partName"] = this.partName;
55604
55837
  data["partRevision"] = this.partRevision;
55605
55838
  data["drawing"] = this.drawing;
55606
55839
  data["drawingRevision"] = this.drawingRevision;
@@ -55635,7 +55868,6 @@ export interface IMeasurementFormInstanceDto {
55635
55868
  id: string;
55636
55869
  readonly: boolean;
55637
55870
  partNumber?: string | null;
55638
- partName?: string | null;
55639
55871
  partRevision?: string | null;
55640
55872
  drawing?: string | null;
55641
55873
  drawingRevision?: string | null;
@@ -59888,6 +60120,234 @@ export interface ICreateWorkOrderMapping {
59888
60120
  newWorkOrderId: string;
59889
60121
  }
59890
60122
 
60123
+ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessageDto {
60124
+ workorderId?: string;
60125
+ companyId?: string;
60126
+ content?: string;
60127
+ senderUpn?: string;
60128
+ senderName?: string;
60129
+ operationId?: string | null;
60130
+ operationName?: string | null;
60131
+ resourceId?: string | null;
60132
+ created?: Date;
60133
+
60134
+ constructor(data?: IWorkorderDiscussionMessageDto) {
60135
+ if (data) {
60136
+ for (var property in data) {
60137
+ if (data.hasOwnProperty(property))
60138
+ (<any>this)[property] = (<any>data)[property];
60139
+ }
60140
+ }
60141
+ }
60142
+
60143
+ init(_data?: any) {
60144
+ if (_data) {
60145
+ this.workorderId = _data["workorderId"];
60146
+ this.companyId = _data["companyId"];
60147
+ this.content = _data["content"];
60148
+ this.senderUpn = _data["senderUpn"];
60149
+ this.senderName = _data["senderName"];
60150
+ this.operationId = _data["operationId"];
60151
+ this.operationName = _data["operationName"];
60152
+ this.resourceId = _data["resourceId"];
60153
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
60154
+ }
60155
+ }
60156
+
60157
+ static fromJS(data: any): WorkorderDiscussionMessageDto {
60158
+ data = typeof data === 'object' ? data : {};
60159
+ let result = new WorkorderDiscussionMessageDto();
60160
+ result.init(data);
60161
+ return result;
60162
+ }
60163
+
60164
+ toJSON(data?: any) {
60165
+ data = typeof data === 'object' ? data : {};
60166
+ data["workorderId"] = this.workorderId;
60167
+ data["companyId"] = this.companyId;
60168
+ data["content"] = this.content;
60169
+ data["senderUpn"] = this.senderUpn;
60170
+ data["senderName"] = this.senderName;
60171
+ data["operationId"] = this.operationId;
60172
+ data["operationName"] = this.operationName;
60173
+ data["resourceId"] = this.resourceId;
60174
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
60175
+ return data;
60176
+ }
60177
+ }
60178
+
60179
+ export interface IWorkorderDiscussionMessageDto {
60180
+ workorderId?: string;
60181
+ companyId?: string;
60182
+ content?: string;
60183
+ senderUpn?: string;
60184
+ senderName?: string;
60185
+ operationId?: string | null;
60186
+ operationName?: string | null;
60187
+ resourceId?: string | null;
60188
+ created?: Date;
60189
+ }
60190
+
60191
+ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
60192
+ companyId?: string;
60193
+ message?: string;
60194
+ senderUpn?: string;
60195
+ senderName?: string;
60196
+ operationId?: string | null;
60197
+ operationName?: string | null;
60198
+ resourceId?: string | null;
60199
+
60200
+ constructor(data?: IAddDiscussionMessageRequest) {
60201
+ if (data) {
60202
+ for (var property in data) {
60203
+ if (data.hasOwnProperty(property))
60204
+ (<any>this)[property] = (<any>data)[property];
60205
+ }
60206
+ }
60207
+ }
60208
+
60209
+ init(_data?: any) {
60210
+ if (_data) {
60211
+ this.companyId = _data["companyId"];
60212
+ this.message = _data["message"];
60213
+ this.senderUpn = _data["senderUpn"];
60214
+ this.senderName = _data["senderName"];
60215
+ this.operationId = _data["operationId"];
60216
+ this.operationName = _data["operationName"];
60217
+ this.resourceId = _data["resourceId"];
60218
+ }
60219
+ }
60220
+
60221
+ static fromJS(data: any): AddDiscussionMessageRequest {
60222
+ data = typeof data === 'object' ? data : {};
60223
+ let result = new AddDiscussionMessageRequest();
60224
+ result.init(data);
60225
+ return result;
60226
+ }
60227
+
60228
+ toJSON(data?: any) {
60229
+ data = typeof data === 'object' ? data : {};
60230
+ data["companyId"] = this.companyId;
60231
+ data["message"] = this.message;
60232
+ data["senderUpn"] = this.senderUpn;
60233
+ data["senderName"] = this.senderName;
60234
+ data["operationId"] = this.operationId;
60235
+ data["operationName"] = this.operationName;
60236
+ data["resourceId"] = this.resourceId;
60237
+ return data;
60238
+ }
60239
+ }
60240
+
60241
+ export interface IAddDiscussionMessageRequest {
60242
+ companyId?: string;
60243
+ message?: string;
60244
+ senderUpn?: string;
60245
+ senderName?: string;
60246
+ operationId?: string | null;
60247
+ operationName?: string | null;
60248
+ resourceId?: string | null;
60249
+ }
60250
+
60251
+ export class WorkorderDiscussionReadStatusDto implements IWorkorderDiscussionReadStatusDto {
60252
+ workorderId?: string;
60253
+ operationId?: string | null;
60254
+ resourceId?: string | null;
60255
+ userUpn?: string;
60256
+ lastRead?: Date;
60257
+
60258
+ constructor(data?: IWorkorderDiscussionReadStatusDto) {
60259
+ if (data) {
60260
+ for (var property in data) {
60261
+ if (data.hasOwnProperty(property))
60262
+ (<any>this)[property] = (<any>data)[property];
60263
+ }
60264
+ }
60265
+ }
60266
+
60267
+ init(_data?: any) {
60268
+ if (_data) {
60269
+ this.workorderId = _data["workorderId"];
60270
+ this.operationId = _data["operationId"];
60271
+ this.resourceId = _data["resourceId"];
60272
+ this.userUpn = _data["userUpn"];
60273
+ this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : <any>undefined;
60274
+ }
60275
+ }
60276
+
60277
+ static fromJS(data: any): WorkorderDiscussionReadStatusDto {
60278
+ data = typeof data === 'object' ? data : {};
60279
+ let result = new WorkorderDiscussionReadStatusDto();
60280
+ result.init(data);
60281
+ return result;
60282
+ }
60283
+
60284
+ toJSON(data?: any) {
60285
+ data = typeof data === 'object' ? data : {};
60286
+ data["workorderId"] = this.workorderId;
60287
+ data["operationId"] = this.operationId;
60288
+ data["resourceId"] = this.resourceId;
60289
+ data["userUpn"] = this.userUpn;
60290
+ data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : <any>undefined;
60291
+ return data;
60292
+ }
60293
+ }
60294
+
60295
+ export interface IWorkorderDiscussionReadStatusDto {
60296
+ workorderId?: string;
60297
+ operationId?: string | null;
60298
+ resourceId?: string | null;
60299
+ userUpn?: string;
60300
+ lastRead?: Date;
60301
+ }
60302
+
60303
+ export class SetDiscussionLastRead implements ISetDiscussionLastRead {
60304
+ workorderId?: string;
60305
+ operationId?: string | null;
60306
+ resourceId?: string | null;
60307
+ userUpn?: string;
60308
+
60309
+ constructor(data?: ISetDiscussionLastRead) {
60310
+ if (data) {
60311
+ for (var property in data) {
60312
+ if (data.hasOwnProperty(property))
60313
+ (<any>this)[property] = (<any>data)[property];
60314
+ }
60315
+ }
60316
+ }
60317
+
60318
+ init(_data?: any) {
60319
+ if (_data) {
60320
+ this.workorderId = _data["workorderId"];
60321
+ this.operationId = _data["operationId"];
60322
+ this.resourceId = _data["resourceId"];
60323
+ this.userUpn = _data["userUpn"];
60324
+ }
60325
+ }
60326
+
60327
+ static fromJS(data: any): SetDiscussionLastRead {
60328
+ data = typeof data === 'object' ? data : {};
60329
+ let result = new SetDiscussionLastRead();
60330
+ result.init(data);
60331
+ return result;
60332
+ }
60333
+
60334
+ toJSON(data?: any) {
60335
+ data = typeof data === 'object' ? data : {};
60336
+ data["workorderId"] = this.workorderId;
60337
+ data["operationId"] = this.operationId;
60338
+ data["resourceId"] = this.resourceId;
60339
+ data["userUpn"] = this.userUpn;
60340
+ return data;
60341
+ }
60342
+ }
60343
+
60344
+ export interface ISetDiscussionLastRead {
60345
+ workorderId?: string;
60346
+ operationId?: string | null;
60347
+ resourceId?: string | null;
60348
+ userUpn?: string;
60349
+ }
60350
+
59891
60351
  function formatDate(d: Date) {
59892
60352
  return d.getFullYear() + '-' +
59893
60353
  (d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +