@ignos/api-client 20250807.0.12317 → 20250808.0.12338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +116 -6
- package/lib/ignosportal-api.js +434 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +536 -6
package/src/ignosportal-api.ts
CHANGED
|
@@ -18122,7 +18122,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
|
|
|
18122
18122
|
|
|
18123
18123
|
export interface IMeasurementFormSchemasClient {
|
|
18124
18124
|
|
|
18125
|
-
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>;
|
|
18125
|
+
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>;
|
|
18126
18126
|
|
|
18127
18127
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
18128
18128
|
|
|
@@ -18207,7 +18207,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18207
18207
|
*/
|
|
18208
18208
|
importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
18209
18209
|
|
|
18210
|
-
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>;
|
|
18210
|
+
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>;
|
|
18211
18211
|
|
|
18212
18212
|
postListMeasurementFormNeeds(request: ListMeasurementFormNeedsRequest | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
|
|
18213
18213
|
|
|
@@ -18219,7 +18219,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18219
18219
|
|
|
18220
18220
|
uploadNeedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormNeedDto>;
|
|
18221
18221
|
|
|
18222
|
-
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>;
|
|
18222
|
+
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>;
|
|
18223
18223
|
|
|
18224
18224
|
postListMeasurementFormSchemasNotNeeded(request: ListMeasurementFormSchemasNotNeededRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
|
|
18225
18225
|
|
|
@@ -18259,7 +18259,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
18259
18259
|
this.baseUrl = baseUrl ?? "";
|
|
18260
18260
|
}
|
|
18261
18261
|
|
|
18262
|
-
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> {
|
|
18262
|
+
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> {
|
|
18263
18263
|
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
18264
18264
|
if (pageSize === null)
|
|
18265
18265
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -18271,6 +18271,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
18271
18271
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
18272
18272
|
if (partNumber !== undefined && partNumber !== null)
|
|
18273
18273
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
18274
|
+
if (partName !== undefined && partName !== null)
|
|
18275
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
18274
18276
|
if (partRevision !== undefined && partRevision !== null)
|
|
18275
18277
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
18276
18278
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -19726,7 +19728,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19726
19728
|
return Promise.resolve<MeasurementFormDto>(null as any);
|
|
19727
19729
|
}
|
|
19728
19730
|
|
|
19729
|
-
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> {
|
|
19731
|
+
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> {
|
|
19730
19732
|
let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
|
|
19731
19733
|
if (pageSize === null)
|
|
19732
19734
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -19738,6 +19740,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19738
19740
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
19739
19741
|
if (partNumber !== undefined && partNumber !== null)
|
|
19740
19742
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
19743
|
+
if (partName !== undefined && partName !== null)
|
|
19744
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
19741
19745
|
if (partRevision !== undefined && partRevision !== null)
|
|
19742
19746
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
19743
19747
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -19988,7 +19992,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19988
19992
|
return Promise.resolve<MeasurementFormNeedDto>(null as any);
|
|
19989
19993
|
}
|
|
19990
19994
|
|
|
19991
|
-
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> {
|
|
19995
|
+
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> {
|
|
19992
19996
|
let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
|
|
19993
19997
|
if (pageSize === null)
|
|
19994
19998
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
@@ -20000,6 +20004,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
20000
20004
|
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
20001
20005
|
if (partNumber !== undefined && partNumber !== null)
|
|
20002
20006
|
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
20007
|
+
if (partName !== undefined && partName !== null)
|
|
20008
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
20003
20009
|
if (partRevision !== undefined && partRevision !== null)
|
|
20004
20010
|
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
20005
20011
|
if (drawing !== undefined && drawing !== null)
|
|
@@ -23346,6 +23352,18 @@ export interface IWorkordersClient {
|
|
|
23346
23352
|
* Deleteds existing work order mappings.
|
|
23347
23353
|
*/
|
|
23348
23354
|
deleteWorkOrderMappings(): Promise<void>;
|
|
23355
|
+
|
|
23356
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
|
|
23357
|
+
|
|
23358
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessageDto>;
|
|
23359
|
+
|
|
23360
|
+
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
|
|
23361
|
+
|
|
23362
|
+
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
23363
|
+
|
|
23364
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
|
|
23365
|
+
|
|
23366
|
+
setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
|
|
23349
23367
|
}
|
|
23350
23368
|
|
|
23351
23369
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -24425,6 +24443,270 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24425
24443
|
}
|
|
24426
24444
|
return Promise.resolve<void>(null as any);
|
|
24427
24445
|
}
|
|
24446
|
+
|
|
24447
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]> {
|
|
24448
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24449
|
+
if (id === undefined || id === null)
|
|
24450
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24451
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24452
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24453
|
+
|
|
24454
|
+
let options_: RequestInit = {
|
|
24455
|
+
method: "GET",
|
|
24456
|
+
headers: {
|
|
24457
|
+
"Accept": "application/json"
|
|
24458
|
+
}
|
|
24459
|
+
};
|
|
24460
|
+
|
|
24461
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24462
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24463
|
+
}).then((_response: Response) => {
|
|
24464
|
+
return this.processGetDiscussionMessages(_response);
|
|
24465
|
+
});
|
|
24466
|
+
}
|
|
24467
|
+
|
|
24468
|
+
protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
|
|
24469
|
+
const status = response.status;
|
|
24470
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24471
|
+
if (status === 200) {
|
|
24472
|
+
return response.text().then((_responseText) => {
|
|
24473
|
+
let result200: any = null;
|
|
24474
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24475
|
+
if (Array.isArray(resultData200)) {
|
|
24476
|
+
result200 = [] as any;
|
|
24477
|
+
for (let item of resultData200)
|
|
24478
|
+
result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
|
|
24479
|
+
}
|
|
24480
|
+
return result200;
|
|
24481
|
+
});
|
|
24482
|
+
} else if (status !== 200 && status !== 204) {
|
|
24483
|
+
return response.text().then((_responseText) => {
|
|
24484
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24485
|
+
});
|
|
24486
|
+
}
|
|
24487
|
+
return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
|
|
24488
|
+
}
|
|
24489
|
+
|
|
24490
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessageDto> {
|
|
24491
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24492
|
+
if (id === undefined || id === null)
|
|
24493
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24494
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24495
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24496
|
+
|
|
24497
|
+
const content_ = JSON.stringify(request);
|
|
24498
|
+
|
|
24499
|
+
let options_: RequestInit = {
|
|
24500
|
+
body: content_,
|
|
24501
|
+
method: "POST",
|
|
24502
|
+
headers: {
|
|
24503
|
+
"Content-Type": "application/json",
|
|
24504
|
+
"Accept": "application/json"
|
|
24505
|
+
}
|
|
24506
|
+
};
|
|
24507
|
+
|
|
24508
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24509
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24510
|
+
}).then((_response: Response) => {
|
|
24511
|
+
return this.processAddDiscussionMessage(_response);
|
|
24512
|
+
});
|
|
24513
|
+
}
|
|
24514
|
+
|
|
24515
|
+
protected processAddDiscussionMessage(response: Response): Promise<WorkorderDiscussionMessageDto> {
|
|
24516
|
+
const status = response.status;
|
|
24517
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24518
|
+
if (status === 201) {
|
|
24519
|
+
return response.text().then((_responseText) => {
|
|
24520
|
+
let result201: any = null;
|
|
24521
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24522
|
+
result201 = WorkorderDiscussionMessageDto.fromJS(resultData201);
|
|
24523
|
+
return result201;
|
|
24524
|
+
});
|
|
24525
|
+
} else if (status !== 200 && status !== 204) {
|
|
24526
|
+
return response.text().then((_responseText) => {
|
|
24527
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24528
|
+
});
|
|
24529
|
+
}
|
|
24530
|
+
return Promise.resolve<WorkorderDiscussionMessageDto>(null as any);
|
|
24531
|
+
}
|
|
24532
|
+
|
|
24533
|
+
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse> {
|
|
24534
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
24535
|
+
if (id === undefined || id === null)
|
|
24536
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24537
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24538
|
+
if (messageId === undefined || messageId === null)
|
|
24539
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
24540
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
24541
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24542
|
+
|
|
24543
|
+
const content_ = JSON.stringify(content);
|
|
24544
|
+
|
|
24545
|
+
let options_: RequestInit = {
|
|
24546
|
+
body: content_,
|
|
24547
|
+
method: "PUT",
|
|
24548
|
+
headers: {
|
|
24549
|
+
"Content-Type": "application/json",
|
|
24550
|
+
"Accept": "application/octet-stream"
|
|
24551
|
+
}
|
|
24552
|
+
};
|
|
24553
|
+
|
|
24554
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24555
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24556
|
+
}).then((_response: Response) => {
|
|
24557
|
+
return this.processUpdateMessage(_response);
|
|
24558
|
+
});
|
|
24559
|
+
}
|
|
24560
|
+
|
|
24561
|
+
protected processUpdateMessage(response: Response): Promise<FileResponse> {
|
|
24562
|
+
const status = response.status;
|
|
24563
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24564
|
+
if (status === 200 || status === 206) {
|
|
24565
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
24566
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
24567
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
24568
|
+
if (fileName) {
|
|
24569
|
+
fileName = decodeURIComponent(fileName);
|
|
24570
|
+
} else {
|
|
24571
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
24572
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
24573
|
+
}
|
|
24574
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24575
|
+
} else if (status !== 200 && status !== 204) {
|
|
24576
|
+
return response.text().then((_responseText) => {
|
|
24577
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24578
|
+
});
|
|
24579
|
+
}
|
|
24580
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
24581
|
+
}
|
|
24582
|
+
|
|
24583
|
+
deleteMessage(id: string, messageId: string): Promise<FileResponse> {
|
|
24584
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
24585
|
+
if (id === undefined || id === null)
|
|
24586
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24587
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24588
|
+
if (messageId === undefined || messageId === null)
|
|
24589
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
24590
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
24591
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24592
|
+
|
|
24593
|
+
let options_: RequestInit = {
|
|
24594
|
+
method: "DELETE",
|
|
24595
|
+
headers: {
|
|
24596
|
+
"Accept": "application/octet-stream"
|
|
24597
|
+
}
|
|
24598
|
+
};
|
|
24599
|
+
|
|
24600
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24601
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24602
|
+
}).then((_response: Response) => {
|
|
24603
|
+
return this.processDeleteMessage(_response);
|
|
24604
|
+
});
|
|
24605
|
+
}
|
|
24606
|
+
|
|
24607
|
+
protected processDeleteMessage(response: Response): Promise<FileResponse> {
|
|
24608
|
+
const status = response.status;
|
|
24609
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24610
|
+
if (status === 200 || status === 206) {
|
|
24611
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
24612
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
24613
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
24614
|
+
if (fileName) {
|
|
24615
|
+
fileName = decodeURIComponent(fileName);
|
|
24616
|
+
} else {
|
|
24617
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
24618
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
24619
|
+
}
|
|
24620
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24621
|
+
} else if (status !== 200 && status !== 204) {
|
|
24622
|
+
return response.text().then((_responseText) => {
|
|
24623
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24624
|
+
});
|
|
24625
|
+
}
|
|
24626
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
24627
|
+
}
|
|
24628
|
+
|
|
24629
|
+
getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto> {
|
|
24630
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
|
|
24631
|
+
if (id === undefined || id === null)
|
|
24632
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24633
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24634
|
+
if (operationId !== undefined && operationId !== null)
|
|
24635
|
+
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
24636
|
+
if (resourceId !== undefined && resourceId !== null)
|
|
24637
|
+
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
24638
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24639
|
+
|
|
24640
|
+
let options_: RequestInit = {
|
|
24641
|
+
method: "GET",
|
|
24642
|
+
headers: {
|
|
24643
|
+
"Accept": "application/json"
|
|
24644
|
+
}
|
|
24645
|
+
};
|
|
24646
|
+
|
|
24647
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24648
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24649
|
+
}).then((_response: Response) => {
|
|
24650
|
+
return this.processGetLastRead(_response);
|
|
24651
|
+
});
|
|
24652
|
+
}
|
|
24653
|
+
|
|
24654
|
+
protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto> {
|
|
24655
|
+
const status = response.status;
|
|
24656
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24657
|
+
if (status === 200) {
|
|
24658
|
+
return response.text().then((_responseText) => {
|
|
24659
|
+
let result200: any = null;
|
|
24660
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24661
|
+
result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
|
|
24662
|
+
return result200;
|
|
24663
|
+
});
|
|
24664
|
+
} else if (status !== 200 && status !== 204) {
|
|
24665
|
+
return response.text().then((_responseText) => {
|
|
24666
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24667
|
+
});
|
|
24668
|
+
}
|
|
24669
|
+
return Promise.resolve<WorkorderDiscussionReadStatusDto>(null as any);
|
|
24670
|
+
}
|
|
24671
|
+
|
|
24672
|
+
setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void> {
|
|
24673
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
|
|
24674
|
+
if (id === undefined || id === null)
|
|
24675
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24676
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24677
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24678
|
+
|
|
24679
|
+
const content_ = JSON.stringify(request);
|
|
24680
|
+
|
|
24681
|
+
let options_: RequestInit = {
|
|
24682
|
+
body: content_,
|
|
24683
|
+
method: "POST",
|
|
24684
|
+
headers: {
|
|
24685
|
+
"Content-Type": "application/json",
|
|
24686
|
+
}
|
|
24687
|
+
};
|
|
24688
|
+
|
|
24689
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24690
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24691
|
+
}).then((_response: Response) => {
|
|
24692
|
+
return this.processSetLastRead(_response);
|
|
24693
|
+
});
|
|
24694
|
+
}
|
|
24695
|
+
|
|
24696
|
+
protected processSetLastRead(response: Response): Promise<void> {
|
|
24697
|
+
const status = response.status;
|
|
24698
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24699
|
+
if (status === 204) {
|
|
24700
|
+
return response.text().then((_responseText) => {
|
|
24701
|
+
return;
|
|
24702
|
+
});
|
|
24703
|
+
} else if (status !== 200 && status !== 204) {
|
|
24704
|
+
return response.text().then((_responseText) => {
|
|
24705
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24706
|
+
});
|
|
24707
|
+
}
|
|
24708
|
+
return Promise.resolve<void>(null as any);
|
|
24709
|
+
}
|
|
24428
24710
|
}
|
|
24429
24711
|
|
|
24430
24712
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -52003,6 +52285,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
52003
52285
|
pageSize?: number | null;
|
|
52004
52286
|
customerId?: string | null;
|
|
52005
52287
|
customerName?: string | null;
|
|
52288
|
+
partName?: string | null;
|
|
52006
52289
|
partNumber?: string | null;
|
|
52007
52290
|
partRevision?: string | null;
|
|
52008
52291
|
drawing?: string | null;
|
|
@@ -52024,6 +52307,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
52024
52307
|
this.pageSize = _data["pageSize"];
|
|
52025
52308
|
this.customerId = _data["customerId"];
|
|
52026
52309
|
this.customerName = _data["customerName"];
|
|
52310
|
+
this.partName = _data["partName"];
|
|
52027
52311
|
this.partNumber = _data["partNumber"];
|
|
52028
52312
|
this.partRevision = _data["partRevision"];
|
|
52029
52313
|
this.drawing = _data["drawing"];
|
|
@@ -52045,6 +52329,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
52045
52329
|
data["pageSize"] = this.pageSize;
|
|
52046
52330
|
data["customerId"] = this.customerId;
|
|
52047
52331
|
data["customerName"] = this.customerName;
|
|
52332
|
+
data["partName"] = this.partName;
|
|
52048
52333
|
data["partNumber"] = this.partNumber;
|
|
52049
52334
|
data["partRevision"] = this.partRevision;
|
|
52050
52335
|
data["drawing"] = this.drawing;
|
|
@@ -52059,6 +52344,7 @@ export interface IListMeasurementFormSchemasRequest {
|
|
|
52059
52344
|
pageSize?: number | null;
|
|
52060
52345
|
customerId?: string | null;
|
|
52061
52346
|
customerName?: string | null;
|
|
52347
|
+
partName?: string | null;
|
|
52062
52348
|
partNumber?: string | null;
|
|
52063
52349
|
partRevision?: string | null;
|
|
52064
52350
|
drawing?: string | null;
|
|
@@ -53994,6 +54280,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
53994
54280
|
customerId?: string | null;
|
|
53995
54281
|
customerName?: string | null;
|
|
53996
54282
|
partNumber!: string;
|
|
54283
|
+
partName?: string | null;
|
|
53997
54284
|
partRevision?: string | null;
|
|
53998
54285
|
drawing?: string | null;
|
|
53999
54286
|
drawingRevision?: string | null;
|
|
@@ -54023,6 +54310,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
54023
54310
|
this.customerId = _data["customerId"];
|
|
54024
54311
|
this.customerName = _data["customerName"];
|
|
54025
54312
|
this.partNumber = _data["partNumber"];
|
|
54313
|
+
this.partName = _data["partName"];
|
|
54026
54314
|
this.partRevision = _data["partRevision"];
|
|
54027
54315
|
this.drawing = _data["drawing"];
|
|
54028
54316
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -54057,6 +54345,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
54057
54345
|
data["customerId"] = this.customerId;
|
|
54058
54346
|
data["customerName"] = this.customerName;
|
|
54059
54347
|
data["partNumber"] = this.partNumber;
|
|
54348
|
+
data["partName"] = this.partName;
|
|
54060
54349
|
data["partRevision"] = this.partRevision;
|
|
54061
54350
|
data["drawing"] = this.drawing;
|
|
54062
54351
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -54084,6 +54373,7 @@ export interface IImportMeasurementFormSchema {
|
|
|
54084
54373
|
customerId?: string | null;
|
|
54085
54374
|
customerName?: string | null;
|
|
54086
54375
|
partNumber: string;
|
|
54376
|
+
partName?: string | null;
|
|
54087
54377
|
partRevision?: string | null;
|
|
54088
54378
|
drawing?: string | null;
|
|
54089
54379
|
drawingRevision?: string | null;
|
|
@@ -54100,6 +54390,7 @@ export interface IImportMeasurementFormSchema {
|
|
|
54100
54390
|
export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
|
|
54101
54391
|
customerId?: string | null;
|
|
54102
54392
|
partNumber?: string | null;
|
|
54393
|
+
partName?: string | null;
|
|
54103
54394
|
partRevision?: string | null;
|
|
54104
54395
|
drawing!: string;
|
|
54105
54396
|
drawingRevision?: string | null;
|
|
@@ -54118,6 +54409,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
54118
54409
|
if (_data) {
|
|
54119
54410
|
this.customerId = _data["customerId"];
|
|
54120
54411
|
this.partNumber = _data["partNumber"];
|
|
54412
|
+
this.partName = _data["partName"];
|
|
54121
54413
|
this.partRevision = _data["partRevision"];
|
|
54122
54414
|
this.drawing = _data["drawing"];
|
|
54123
54415
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -54136,6 +54428,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
54136
54428
|
data = typeof data === 'object' ? data : {};
|
|
54137
54429
|
data["customerId"] = this.customerId;
|
|
54138
54430
|
data["partNumber"] = this.partNumber;
|
|
54431
|
+
data["partName"] = this.partName;
|
|
54139
54432
|
data["partRevision"] = this.partRevision;
|
|
54140
54433
|
data["drawing"] = this.drawing;
|
|
54141
54434
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -54147,6 +54440,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
54147
54440
|
export interface IMeasurementFormImportLinkedSchemaDto {
|
|
54148
54441
|
customerId?: string | null;
|
|
54149
54442
|
partNumber?: string | null;
|
|
54443
|
+
partName?: string | null;
|
|
54150
54444
|
partRevision?: string | null;
|
|
54151
54445
|
drawing: string;
|
|
54152
54446
|
drawingRevision?: string | null;
|
|
@@ -54490,6 +54784,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54490
54784
|
customerName?: string | null;
|
|
54491
54785
|
partNumber?: string | null;
|
|
54492
54786
|
partRevision?: string | null;
|
|
54787
|
+
partName?: string | null;
|
|
54493
54788
|
drawing?: string | null;
|
|
54494
54789
|
drawingRevision?: string | null;
|
|
54495
54790
|
workorder?: string | null;
|
|
@@ -54519,6 +54814,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54519
54814
|
this.customerName = _data["customerName"];
|
|
54520
54815
|
this.partNumber = _data["partNumber"];
|
|
54521
54816
|
this.partRevision = _data["partRevision"];
|
|
54817
|
+
this.partName = _data["partName"];
|
|
54522
54818
|
this.drawing = _data["drawing"];
|
|
54523
54819
|
this.drawingRevision = _data["drawingRevision"];
|
|
54524
54820
|
this.workorder = _data["workorder"];
|
|
@@ -54548,6 +54844,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54548
54844
|
data["customerName"] = this.customerName;
|
|
54549
54845
|
data["partNumber"] = this.partNumber;
|
|
54550
54846
|
data["partRevision"] = this.partRevision;
|
|
54847
|
+
data["partName"] = this.partName;
|
|
54551
54848
|
data["drawing"] = this.drawing;
|
|
54552
54849
|
data["drawingRevision"] = this.drawingRevision;
|
|
54553
54850
|
data["workorder"] = this.workorder;
|
|
@@ -54570,6 +54867,7 @@ export interface IMeasurementFormNeedDto {
|
|
|
54570
54867
|
customerName?: string | null;
|
|
54571
54868
|
partNumber?: string | null;
|
|
54572
54869
|
partRevision?: string | null;
|
|
54870
|
+
partName?: string | null;
|
|
54573
54871
|
drawing?: string | null;
|
|
54574
54872
|
drawingRevision?: string | null;
|
|
54575
54873
|
workorder?: string | null;
|
|
@@ -54587,6 +54885,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54587
54885
|
pageSize?: number | null;
|
|
54588
54886
|
customerId?: string | null;
|
|
54589
54887
|
customerName?: string | null;
|
|
54888
|
+
partName?: string | null;
|
|
54590
54889
|
partNumber?: string | null;
|
|
54591
54890
|
partRevision?: string | null;
|
|
54592
54891
|
drawing?: string | null;
|
|
@@ -54609,6 +54908,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54609
54908
|
this.pageSize = _data["pageSize"];
|
|
54610
54909
|
this.customerId = _data["customerId"];
|
|
54611
54910
|
this.customerName = _data["customerName"];
|
|
54911
|
+
this.partName = _data["partName"];
|
|
54612
54912
|
this.partNumber = _data["partNumber"];
|
|
54613
54913
|
this.partRevision = _data["partRevision"];
|
|
54614
54914
|
this.drawing = _data["drawing"];
|
|
@@ -54631,6 +54931,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54631
54931
|
data["pageSize"] = this.pageSize;
|
|
54632
54932
|
data["customerId"] = this.customerId;
|
|
54633
54933
|
data["customerName"] = this.customerName;
|
|
54934
|
+
data["partName"] = this.partName;
|
|
54634
54935
|
data["partNumber"] = this.partNumber;
|
|
54635
54936
|
data["partRevision"] = this.partRevision;
|
|
54636
54937
|
data["drawing"] = this.drawing;
|
|
@@ -54646,6 +54947,7 @@ export interface IListMeasurementFormNeedsRequest {
|
|
|
54646
54947
|
pageSize?: number | null;
|
|
54647
54948
|
customerId?: string | null;
|
|
54648
54949
|
customerName?: string | null;
|
|
54950
|
+
partName?: string | null;
|
|
54649
54951
|
partNumber?: string | null;
|
|
54650
54952
|
partRevision?: string | null;
|
|
54651
54953
|
drawing?: string | null;
|
|
@@ -54847,6 +55149,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54847
55149
|
customerId?: string | null;
|
|
54848
55150
|
customerName?: string | null;
|
|
54849
55151
|
partNumber?: string | null;
|
|
55152
|
+
partName?: string | null;
|
|
54850
55153
|
partRevision?: string | null;
|
|
54851
55154
|
drawing?: string | null;
|
|
54852
55155
|
drawingRevision?: string | null;
|
|
@@ -54868,6 +55171,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54868
55171
|
this.customerId = _data["customerId"];
|
|
54869
55172
|
this.customerName = _data["customerName"];
|
|
54870
55173
|
this.partNumber = _data["partNumber"];
|
|
55174
|
+
this.partName = _data["partName"];
|
|
54871
55175
|
this.partRevision = _data["partRevision"];
|
|
54872
55176
|
this.drawing = _data["drawing"];
|
|
54873
55177
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -54889,6 +55193,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54889
55193
|
data["customerId"] = this.customerId;
|
|
54890
55194
|
data["customerName"] = this.customerName;
|
|
54891
55195
|
data["partNumber"] = this.partNumber;
|
|
55196
|
+
data["partName"] = this.partName;
|
|
54892
55197
|
data["partRevision"] = this.partRevision;
|
|
54893
55198
|
data["drawing"] = this.drawing;
|
|
54894
55199
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -54903,6 +55208,7 @@ export interface IListMeasurementFormSchemasNotNeededRequest {
|
|
|
54903
55208
|
customerId?: string | null;
|
|
54904
55209
|
customerName?: string | null;
|
|
54905
55210
|
partNumber?: string | null;
|
|
55211
|
+
partName?: string | null;
|
|
54906
55212
|
partRevision?: string | null;
|
|
54907
55213
|
drawing?: string | null;
|
|
54908
55214
|
drawingRevision?: string | null;
|
|
@@ -55088,6 +55394,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
55088
55394
|
latestSchemaDefinitionId?: string | null;
|
|
55089
55395
|
partNumber?: string | null;
|
|
55090
55396
|
partRevision?: string | null;
|
|
55397
|
+
partName?: string | null;
|
|
55091
55398
|
drawing?: string | null;
|
|
55092
55399
|
drawingRevision?: string | null;
|
|
55093
55400
|
|
|
@@ -55116,6 +55423,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
55116
55423
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
55117
55424
|
this.partNumber = _data["partNumber"];
|
|
55118
55425
|
this.partRevision = _data["partRevision"];
|
|
55426
|
+
this.partName = _data["partName"];
|
|
55119
55427
|
this.drawing = _data["drawing"];
|
|
55120
55428
|
this.drawingRevision = _data["drawingRevision"];
|
|
55121
55429
|
}
|
|
@@ -55144,6 +55452,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
55144
55452
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
55145
55453
|
data["partNumber"] = this.partNumber;
|
|
55146
55454
|
data["partRevision"] = this.partRevision;
|
|
55455
|
+
data["partName"] = this.partName;
|
|
55147
55456
|
data["drawing"] = this.drawing;
|
|
55148
55457
|
data["drawingRevision"] = this.drawingRevision;
|
|
55149
55458
|
return data;
|
|
@@ -55165,6 +55474,7 @@ export interface ISchemaFeedbackDto {
|
|
|
55165
55474
|
latestSchemaDefinitionId?: string | null;
|
|
55166
55475
|
partNumber?: string | null;
|
|
55167
55476
|
partRevision?: string | null;
|
|
55477
|
+
partName?: string | null;
|
|
55168
55478
|
drawing?: string | null;
|
|
55169
55479
|
drawingRevision?: string | null;
|
|
55170
55480
|
}
|
|
@@ -55369,6 +55679,7 @@ export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
|
55369
55679
|
export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
|
|
55370
55680
|
id!: string;
|
|
55371
55681
|
readonly!: boolean;
|
|
55682
|
+
partName?: string | null;
|
|
55372
55683
|
partNumber?: string | null;
|
|
55373
55684
|
partRevision?: string | null;
|
|
55374
55685
|
drawing?: string | null;
|
|
@@ -55399,6 +55710,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55399
55710
|
if (_data) {
|
|
55400
55711
|
this.id = _data["id"];
|
|
55401
55712
|
this.readonly = _data["readonly"];
|
|
55713
|
+
this.partName = _data["partName"];
|
|
55402
55714
|
this.partNumber = _data["partNumber"];
|
|
55403
55715
|
this.partRevision = _data["partRevision"];
|
|
55404
55716
|
this.drawing = _data["drawing"];
|
|
@@ -55429,6 +55741,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55429
55741
|
data = typeof data === 'object' ? data : {};
|
|
55430
55742
|
data["id"] = this.id;
|
|
55431
55743
|
data["readonly"] = this.readonly;
|
|
55744
|
+
data["partName"] = this.partName;
|
|
55432
55745
|
data["partNumber"] = this.partNumber;
|
|
55433
55746
|
data["partRevision"] = this.partRevision;
|
|
55434
55747
|
data["drawing"] = this.drawing;
|
|
@@ -55452,6 +55765,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55452
55765
|
export interface IMeasurementFormInstanceOverviewDto {
|
|
55453
55766
|
id: string;
|
|
55454
55767
|
readonly: boolean;
|
|
55768
|
+
partName?: string | null;
|
|
55455
55769
|
partNumber?: string | null;
|
|
55456
55770
|
partRevision?: string | null;
|
|
55457
55771
|
drawing?: string | null;
|
|
@@ -55719,6 +56033,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55719
56033
|
id!: string;
|
|
55720
56034
|
readonly!: boolean;
|
|
55721
56035
|
partNumber?: string | null;
|
|
56036
|
+
partName?: string | null;
|
|
55722
56037
|
partRevision?: string | null;
|
|
55723
56038
|
drawing?: string | null;
|
|
55724
56039
|
drawingRevision?: string | null;
|
|
@@ -55754,6 +56069,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55754
56069
|
this.id = _data["id"];
|
|
55755
56070
|
this.readonly = _data["readonly"];
|
|
55756
56071
|
this.partNumber = _data["partNumber"];
|
|
56072
|
+
this.partName = _data["partName"];
|
|
55757
56073
|
this.partRevision = _data["partRevision"];
|
|
55758
56074
|
this.drawing = _data["drawing"];
|
|
55759
56075
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -55795,6 +56111,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55795
56111
|
data["id"] = this.id;
|
|
55796
56112
|
data["readonly"] = this.readonly;
|
|
55797
56113
|
data["partNumber"] = this.partNumber;
|
|
56114
|
+
data["partName"] = this.partName;
|
|
55798
56115
|
data["partRevision"] = this.partRevision;
|
|
55799
56116
|
data["drawing"] = this.drawing;
|
|
55800
56117
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -55829,6 +56146,7 @@ export interface IMeasurementFormInstanceDto {
|
|
|
55829
56146
|
id: string;
|
|
55830
56147
|
readonly: boolean;
|
|
55831
56148
|
partNumber?: string | null;
|
|
56149
|
+
partName?: string | null;
|
|
55832
56150
|
partRevision?: string | null;
|
|
55833
56151
|
drawing?: string | null;
|
|
55834
56152
|
drawingRevision?: string | null;
|
|
@@ -60081,6 +60399,218 @@ export interface ICreateWorkOrderMapping {
|
|
|
60081
60399
|
newWorkOrderId: string;
|
|
60082
60400
|
}
|
|
60083
60401
|
|
|
60402
|
+
export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessageDto {
|
|
60403
|
+
id?: string;
|
|
60404
|
+
workorderId?: string;
|
|
60405
|
+
companyId?: string;
|
|
60406
|
+
content?: string;
|
|
60407
|
+
senderUpn?: string;
|
|
60408
|
+
senderName?: string;
|
|
60409
|
+
operationId?: string | null;
|
|
60410
|
+
operationName?: string | null;
|
|
60411
|
+
resourceId?: string | null;
|
|
60412
|
+
created?: Date;
|
|
60413
|
+
|
|
60414
|
+
constructor(data?: IWorkorderDiscussionMessageDto) {
|
|
60415
|
+
if (data) {
|
|
60416
|
+
for (var property in data) {
|
|
60417
|
+
if (data.hasOwnProperty(property))
|
|
60418
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60419
|
+
}
|
|
60420
|
+
}
|
|
60421
|
+
}
|
|
60422
|
+
|
|
60423
|
+
init(_data?: any) {
|
|
60424
|
+
if (_data) {
|
|
60425
|
+
this.id = _data["id"];
|
|
60426
|
+
this.workorderId = _data["workorderId"];
|
|
60427
|
+
this.companyId = _data["companyId"];
|
|
60428
|
+
this.content = _data["content"];
|
|
60429
|
+
this.senderUpn = _data["senderUpn"];
|
|
60430
|
+
this.senderName = _data["senderName"];
|
|
60431
|
+
this.operationId = _data["operationId"];
|
|
60432
|
+
this.operationName = _data["operationName"];
|
|
60433
|
+
this.resourceId = _data["resourceId"];
|
|
60434
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
60435
|
+
}
|
|
60436
|
+
}
|
|
60437
|
+
|
|
60438
|
+
static fromJS(data: any): WorkorderDiscussionMessageDto {
|
|
60439
|
+
data = typeof data === 'object' ? data : {};
|
|
60440
|
+
let result = new WorkorderDiscussionMessageDto();
|
|
60441
|
+
result.init(data);
|
|
60442
|
+
return result;
|
|
60443
|
+
}
|
|
60444
|
+
|
|
60445
|
+
toJSON(data?: any) {
|
|
60446
|
+
data = typeof data === 'object' ? data : {};
|
|
60447
|
+
data["id"] = this.id;
|
|
60448
|
+
data["workorderId"] = this.workorderId;
|
|
60449
|
+
data["companyId"] = this.companyId;
|
|
60450
|
+
data["content"] = this.content;
|
|
60451
|
+
data["senderUpn"] = this.senderUpn;
|
|
60452
|
+
data["senderName"] = this.senderName;
|
|
60453
|
+
data["operationId"] = this.operationId;
|
|
60454
|
+
data["operationName"] = this.operationName;
|
|
60455
|
+
data["resourceId"] = this.resourceId;
|
|
60456
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
60457
|
+
return data;
|
|
60458
|
+
}
|
|
60459
|
+
}
|
|
60460
|
+
|
|
60461
|
+
export interface IWorkorderDiscussionMessageDto {
|
|
60462
|
+
id?: string;
|
|
60463
|
+
workorderId?: string;
|
|
60464
|
+
companyId?: string;
|
|
60465
|
+
content?: string;
|
|
60466
|
+
senderUpn?: string;
|
|
60467
|
+
senderName?: string;
|
|
60468
|
+
operationId?: string | null;
|
|
60469
|
+
operationName?: string | null;
|
|
60470
|
+
resourceId?: string | null;
|
|
60471
|
+
created?: Date;
|
|
60472
|
+
}
|
|
60473
|
+
|
|
60474
|
+
export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
60475
|
+
message!: string;
|
|
60476
|
+
operationId?: string | null;
|
|
60477
|
+
operationName?: string | null;
|
|
60478
|
+
resourceId?: string | null;
|
|
60479
|
+
|
|
60480
|
+
constructor(data?: IAddDiscussionMessageRequest) {
|
|
60481
|
+
if (data) {
|
|
60482
|
+
for (var property in data) {
|
|
60483
|
+
if (data.hasOwnProperty(property))
|
|
60484
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60485
|
+
}
|
|
60486
|
+
}
|
|
60487
|
+
}
|
|
60488
|
+
|
|
60489
|
+
init(_data?: any) {
|
|
60490
|
+
if (_data) {
|
|
60491
|
+
this.message = _data["message"];
|
|
60492
|
+
this.operationId = _data["operationId"];
|
|
60493
|
+
this.operationName = _data["operationName"];
|
|
60494
|
+
this.resourceId = _data["resourceId"];
|
|
60495
|
+
}
|
|
60496
|
+
}
|
|
60497
|
+
|
|
60498
|
+
static fromJS(data: any): AddDiscussionMessageRequest {
|
|
60499
|
+
data = typeof data === 'object' ? data : {};
|
|
60500
|
+
let result = new AddDiscussionMessageRequest();
|
|
60501
|
+
result.init(data);
|
|
60502
|
+
return result;
|
|
60503
|
+
}
|
|
60504
|
+
|
|
60505
|
+
toJSON(data?: any) {
|
|
60506
|
+
data = typeof data === 'object' ? data : {};
|
|
60507
|
+
data["message"] = this.message;
|
|
60508
|
+
data["operationId"] = this.operationId;
|
|
60509
|
+
data["operationName"] = this.operationName;
|
|
60510
|
+
data["resourceId"] = this.resourceId;
|
|
60511
|
+
return data;
|
|
60512
|
+
}
|
|
60513
|
+
}
|
|
60514
|
+
|
|
60515
|
+
export interface IAddDiscussionMessageRequest {
|
|
60516
|
+
message: string;
|
|
60517
|
+
operationId?: string | null;
|
|
60518
|
+
operationName?: string | null;
|
|
60519
|
+
resourceId?: string | null;
|
|
60520
|
+
}
|
|
60521
|
+
|
|
60522
|
+
export class WorkorderDiscussionReadStatusDto implements IWorkorderDiscussionReadStatusDto {
|
|
60523
|
+
workorderId?: string;
|
|
60524
|
+
operationId?: string | null;
|
|
60525
|
+
resourceId?: string | null;
|
|
60526
|
+
userUpn?: string;
|
|
60527
|
+
lastRead?: Date;
|
|
60528
|
+
|
|
60529
|
+
constructor(data?: IWorkorderDiscussionReadStatusDto) {
|
|
60530
|
+
if (data) {
|
|
60531
|
+
for (var property in data) {
|
|
60532
|
+
if (data.hasOwnProperty(property))
|
|
60533
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60534
|
+
}
|
|
60535
|
+
}
|
|
60536
|
+
}
|
|
60537
|
+
|
|
60538
|
+
init(_data?: any) {
|
|
60539
|
+
if (_data) {
|
|
60540
|
+
this.workorderId = _data["workorderId"];
|
|
60541
|
+
this.operationId = _data["operationId"];
|
|
60542
|
+
this.resourceId = _data["resourceId"];
|
|
60543
|
+
this.userUpn = _data["userUpn"];
|
|
60544
|
+
this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : <any>undefined;
|
|
60545
|
+
}
|
|
60546
|
+
}
|
|
60547
|
+
|
|
60548
|
+
static fromJS(data: any): WorkorderDiscussionReadStatusDto {
|
|
60549
|
+
data = typeof data === 'object' ? data : {};
|
|
60550
|
+
let result = new WorkorderDiscussionReadStatusDto();
|
|
60551
|
+
result.init(data);
|
|
60552
|
+
return result;
|
|
60553
|
+
}
|
|
60554
|
+
|
|
60555
|
+
toJSON(data?: any) {
|
|
60556
|
+
data = typeof data === 'object' ? data : {};
|
|
60557
|
+
data["workorderId"] = this.workorderId;
|
|
60558
|
+
data["operationId"] = this.operationId;
|
|
60559
|
+
data["resourceId"] = this.resourceId;
|
|
60560
|
+
data["userUpn"] = this.userUpn;
|
|
60561
|
+
data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : <any>undefined;
|
|
60562
|
+
return data;
|
|
60563
|
+
}
|
|
60564
|
+
}
|
|
60565
|
+
|
|
60566
|
+
export interface IWorkorderDiscussionReadStatusDto {
|
|
60567
|
+
workorderId?: string;
|
|
60568
|
+
operationId?: string | null;
|
|
60569
|
+
resourceId?: string | null;
|
|
60570
|
+
userUpn?: string;
|
|
60571
|
+
lastRead?: Date;
|
|
60572
|
+
}
|
|
60573
|
+
|
|
60574
|
+
export class SetDiscussionLastReadRequest implements ISetDiscussionLastReadRequest {
|
|
60575
|
+
operationId?: string | null;
|
|
60576
|
+
resourceId?: string | null;
|
|
60577
|
+
|
|
60578
|
+
constructor(data?: ISetDiscussionLastReadRequest) {
|
|
60579
|
+
if (data) {
|
|
60580
|
+
for (var property in data) {
|
|
60581
|
+
if (data.hasOwnProperty(property))
|
|
60582
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60583
|
+
}
|
|
60584
|
+
}
|
|
60585
|
+
}
|
|
60586
|
+
|
|
60587
|
+
init(_data?: any) {
|
|
60588
|
+
if (_data) {
|
|
60589
|
+
this.operationId = _data["operationId"];
|
|
60590
|
+
this.resourceId = _data["resourceId"];
|
|
60591
|
+
}
|
|
60592
|
+
}
|
|
60593
|
+
|
|
60594
|
+
static fromJS(data: any): SetDiscussionLastReadRequest {
|
|
60595
|
+
data = typeof data === 'object' ? data : {};
|
|
60596
|
+
let result = new SetDiscussionLastReadRequest();
|
|
60597
|
+
result.init(data);
|
|
60598
|
+
return result;
|
|
60599
|
+
}
|
|
60600
|
+
|
|
60601
|
+
toJSON(data?: any) {
|
|
60602
|
+
data = typeof data === 'object' ? data : {};
|
|
60603
|
+
data["operationId"] = this.operationId;
|
|
60604
|
+
data["resourceId"] = this.resourceId;
|
|
60605
|
+
return data;
|
|
60606
|
+
}
|
|
60607
|
+
}
|
|
60608
|
+
|
|
60609
|
+
export interface ISetDiscussionLastReadRequest {
|
|
60610
|
+
operationId?: string | null;
|
|
60611
|
+
resourceId?: string | null;
|
|
60612
|
+
}
|
|
60613
|
+
|
|
60084
60614
|
function formatDate(d: Date) {
|
|
60085
60615
|
return d.getFullYear() + '-' +
|
|
60086
60616
|
(d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +
|