@ignos/api-client 20250729.0.12224-alpha → 20250729.0.12229-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +106 -24
- package/lib/ignosportal-api.js +351 -27
- package/package.json +1 -1
- package/src/ignosportal-api.ts +445 -48
package/src/ignosportal-api.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,14 @@ export interface IWorkordersClient {
|
|
|
23189
23183
|
* Deleteds existing work order mappings.
|
|
23190
23184
|
*/
|
|
23191
23185
|
deleteWorkOrderMappings(): Promise<void>;
|
|
23186
|
+
|
|
23187
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessage[]>;
|
|
23188
|
+
|
|
23189
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessage>;
|
|
23190
|
+
|
|
23191
|
+
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
|
|
23192
|
+
|
|
23193
|
+
deleteMessage(id: string, messageId: string): Promise<FileResponse>;
|
|
23192
23194
|
}
|
|
23193
23195
|
|
|
23194
23196
|
export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
|
|
@@ -24268,6 +24270,188 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24268
24270
|
}
|
|
24269
24271
|
return Promise.resolve<void>(null as any);
|
|
24270
24272
|
}
|
|
24273
|
+
|
|
24274
|
+
getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessage[]> {
|
|
24275
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24276
|
+
if (id === undefined || id === null)
|
|
24277
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24278
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24279
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24280
|
+
|
|
24281
|
+
let options_: RequestInit = {
|
|
24282
|
+
method: "GET",
|
|
24283
|
+
headers: {
|
|
24284
|
+
"Accept": "application/json"
|
|
24285
|
+
}
|
|
24286
|
+
};
|
|
24287
|
+
|
|
24288
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24289
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24290
|
+
}).then((_response: Response) => {
|
|
24291
|
+
return this.processGetDiscussionMessages(_response);
|
|
24292
|
+
});
|
|
24293
|
+
}
|
|
24294
|
+
|
|
24295
|
+
protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessage[]> {
|
|
24296
|
+
const status = response.status;
|
|
24297
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24298
|
+
if (status === 200) {
|
|
24299
|
+
return response.text().then((_responseText) => {
|
|
24300
|
+
let result200: any = null;
|
|
24301
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24302
|
+
if (Array.isArray(resultData200)) {
|
|
24303
|
+
result200 = [] as any;
|
|
24304
|
+
for (let item of resultData200)
|
|
24305
|
+
result200!.push(WorkorderDiscussionMessage.fromJS(item));
|
|
24306
|
+
}
|
|
24307
|
+
return result200;
|
|
24308
|
+
});
|
|
24309
|
+
} else if (status !== 200 && status !== 204) {
|
|
24310
|
+
return response.text().then((_responseText) => {
|
|
24311
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24312
|
+
});
|
|
24313
|
+
}
|
|
24314
|
+
return Promise.resolve<WorkorderDiscussionMessage[]>(null as any);
|
|
24315
|
+
}
|
|
24316
|
+
|
|
24317
|
+
addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessage> {
|
|
24318
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
|
|
24319
|
+
if (id === undefined || id === null)
|
|
24320
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24321
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24322
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24323
|
+
|
|
24324
|
+
const content_ = JSON.stringify(request);
|
|
24325
|
+
|
|
24326
|
+
let options_: RequestInit = {
|
|
24327
|
+
body: content_,
|
|
24328
|
+
method: "POST",
|
|
24329
|
+
headers: {
|
|
24330
|
+
"Content-Type": "application/json",
|
|
24331
|
+
"Accept": "application/json"
|
|
24332
|
+
}
|
|
24333
|
+
};
|
|
24334
|
+
|
|
24335
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24336
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24337
|
+
}).then((_response: Response) => {
|
|
24338
|
+
return this.processAddDiscussionMessage(_response);
|
|
24339
|
+
});
|
|
24340
|
+
}
|
|
24341
|
+
|
|
24342
|
+
protected processAddDiscussionMessage(response: Response): Promise<WorkorderDiscussionMessage> {
|
|
24343
|
+
const status = response.status;
|
|
24344
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24345
|
+
if (status === 201) {
|
|
24346
|
+
return response.text().then((_responseText) => {
|
|
24347
|
+
let result201: any = null;
|
|
24348
|
+
let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24349
|
+
result201 = WorkorderDiscussionMessage.fromJS(resultData201);
|
|
24350
|
+
return result201;
|
|
24351
|
+
});
|
|
24352
|
+
} else if (status !== 200 && status !== 204) {
|
|
24353
|
+
return response.text().then((_responseText) => {
|
|
24354
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24355
|
+
});
|
|
24356
|
+
}
|
|
24357
|
+
return Promise.resolve<WorkorderDiscussionMessage>(null as any);
|
|
24358
|
+
}
|
|
24359
|
+
|
|
24360
|
+
updateMessage(id: string, messageId: string, content: string): Promise<FileResponse> {
|
|
24361
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
24362
|
+
if (id === undefined || id === null)
|
|
24363
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24364
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24365
|
+
if (messageId === undefined || messageId === null)
|
|
24366
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
24367
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
24368
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24369
|
+
|
|
24370
|
+
const content_ = JSON.stringify(content);
|
|
24371
|
+
|
|
24372
|
+
let options_: RequestInit = {
|
|
24373
|
+
body: content_,
|
|
24374
|
+
method: "PUT",
|
|
24375
|
+
headers: {
|
|
24376
|
+
"Content-Type": "application/json",
|
|
24377
|
+
"Accept": "application/octet-stream"
|
|
24378
|
+
}
|
|
24379
|
+
};
|
|
24380
|
+
|
|
24381
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24382
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24383
|
+
}).then((_response: Response) => {
|
|
24384
|
+
return this.processUpdateMessage(_response);
|
|
24385
|
+
});
|
|
24386
|
+
}
|
|
24387
|
+
|
|
24388
|
+
protected processUpdateMessage(response: Response): Promise<FileResponse> {
|
|
24389
|
+
const status = response.status;
|
|
24390
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24391
|
+
if (status === 200 || status === 206) {
|
|
24392
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
24393
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
24394
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
24395
|
+
if (fileName) {
|
|
24396
|
+
fileName = decodeURIComponent(fileName);
|
|
24397
|
+
} else {
|
|
24398
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
24399
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
24400
|
+
}
|
|
24401
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24402
|
+
} else if (status !== 200 && status !== 204) {
|
|
24403
|
+
return response.text().then((_responseText) => {
|
|
24404
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24405
|
+
});
|
|
24406
|
+
}
|
|
24407
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
24408
|
+
}
|
|
24409
|
+
|
|
24410
|
+
deleteMessage(id: string, messageId: string): Promise<FileResponse> {
|
|
24411
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
|
|
24412
|
+
if (id === undefined || id === null)
|
|
24413
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
24414
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24415
|
+
if (messageId === undefined || messageId === null)
|
|
24416
|
+
throw new Error("The parameter 'messageId' must be defined.");
|
|
24417
|
+
url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
|
|
24418
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24419
|
+
|
|
24420
|
+
let options_: RequestInit = {
|
|
24421
|
+
method: "DELETE",
|
|
24422
|
+
headers: {
|
|
24423
|
+
"Accept": "application/octet-stream"
|
|
24424
|
+
}
|
|
24425
|
+
};
|
|
24426
|
+
|
|
24427
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24428
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24429
|
+
}).then((_response: Response) => {
|
|
24430
|
+
return this.processDeleteMessage(_response);
|
|
24431
|
+
});
|
|
24432
|
+
}
|
|
24433
|
+
|
|
24434
|
+
protected processDeleteMessage(response: Response): Promise<FileResponse> {
|
|
24435
|
+
const status = response.status;
|
|
24436
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24437
|
+
if (status === 200 || status === 206) {
|
|
24438
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
24439
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
24440
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
24441
|
+
if (fileName) {
|
|
24442
|
+
fileName = decodeURIComponent(fileName);
|
|
24443
|
+
} else {
|
|
24444
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
24445
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
24446
|
+
}
|
|
24447
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24448
|
+
} else if (status !== 200 && status !== 204) {
|
|
24449
|
+
return response.text().then((_responseText) => {
|
|
24450
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24451
|
+
});
|
|
24452
|
+
}
|
|
24453
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
24454
|
+
}
|
|
24271
24455
|
}
|
|
24272
24456
|
|
|
24273
24457
|
export class AzureRegionDto implements IAzureRegionDto {
|
|
@@ -51774,7 +51958,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
51774
51958
|
pageSize?: number | null;
|
|
51775
51959
|
customerId?: string | null;
|
|
51776
51960
|
customerName?: string | null;
|
|
51777
|
-
partName?: string | null;
|
|
51778
51961
|
partNumber?: string | null;
|
|
51779
51962
|
partRevision?: string | null;
|
|
51780
51963
|
drawing?: string | null;
|
|
@@ -51796,7 +51979,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
51796
51979
|
this.pageSize = _data["pageSize"];
|
|
51797
51980
|
this.customerId = _data["customerId"];
|
|
51798
51981
|
this.customerName = _data["customerName"];
|
|
51799
|
-
this.partName = _data["partName"];
|
|
51800
51982
|
this.partNumber = _data["partNumber"];
|
|
51801
51983
|
this.partRevision = _data["partRevision"];
|
|
51802
51984
|
this.drawing = _data["drawing"];
|
|
@@ -51818,7 +52000,6 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
|
|
|
51818
52000
|
data["pageSize"] = this.pageSize;
|
|
51819
52001
|
data["customerId"] = this.customerId;
|
|
51820
52002
|
data["customerName"] = this.customerName;
|
|
51821
|
-
data["partName"] = this.partName;
|
|
51822
52003
|
data["partNumber"] = this.partNumber;
|
|
51823
52004
|
data["partRevision"] = this.partRevision;
|
|
51824
52005
|
data["drawing"] = this.drawing;
|
|
@@ -51833,7 +52014,6 @@ export interface IListMeasurementFormSchemasRequest {
|
|
|
51833
52014
|
pageSize?: number | null;
|
|
51834
52015
|
customerId?: string | null;
|
|
51835
52016
|
customerName?: string | null;
|
|
51836
|
-
partName?: string | null;
|
|
51837
52017
|
partNumber?: string | null;
|
|
51838
52018
|
partRevision?: string | null;
|
|
51839
52019
|
drawing?: string | null;
|
|
@@ -53769,7 +53949,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
53769
53949
|
customerId?: string | null;
|
|
53770
53950
|
customerName?: string | null;
|
|
53771
53951
|
partNumber!: string;
|
|
53772
|
-
partName?: string | null;
|
|
53773
53952
|
partRevision?: string | null;
|
|
53774
53953
|
drawing?: string | null;
|
|
53775
53954
|
drawingRevision?: string | null;
|
|
@@ -53799,7 +53978,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
53799
53978
|
this.customerId = _data["customerId"];
|
|
53800
53979
|
this.customerName = _data["customerName"];
|
|
53801
53980
|
this.partNumber = _data["partNumber"];
|
|
53802
|
-
this.partName = _data["partName"];
|
|
53803
53981
|
this.partRevision = _data["partRevision"];
|
|
53804
53982
|
this.drawing = _data["drawing"];
|
|
53805
53983
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -53834,7 +54012,6 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
|
|
|
53834
54012
|
data["customerId"] = this.customerId;
|
|
53835
54013
|
data["customerName"] = this.customerName;
|
|
53836
54014
|
data["partNumber"] = this.partNumber;
|
|
53837
|
-
data["partName"] = this.partName;
|
|
53838
54015
|
data["partRevision"] = this.partRevision;
|
|
53839
54016
|
data["drawing"] = this.drawing;
|
|
53840
54017
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -53862,7 +54039,6 @@ export interface IImportMeasurementFormSchema {
|
|
|
53862
54039
|
customerId?: string | null;
|
|
53863
54040
|
customerName?: string | null;
|
|
53864
54041
|
partNumber: string;
|
|
53865
|
-
partName?: string | null;
|
|
53866
54042
|
partRevision?: string | null;
|
|
53867
54043
|
drawing?: string | null;
|
|
53868
54044
|
drawingRevision?: string | null;
|
|
@@ -53879,7 +54055,6 @@ export interface IImportMeasurementFormSchema {
|
|
|
53879
54055
|
export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
|
|
53880
54056
|
customerId?: string | null;
|
|
53881
54057
|
partNumber?: string | null;
|
|
53882
|
-
partName?: string | null;
|
|
53883
54058
|
partRevision?: string | null;
|
|
53884
54059
|
drawing!: string;
|
|
53885
54060
|
drawingRevision?: string | null;
|
|
@@ -53898,7 +54073,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
53898
54073
|
if (_data) {
|
|
53899
54074
|
this.customerId = _data["customerId"];
|
|
53900
54075
|
this.partNumber = _data["partNumber"];
|
|
53901
|
-
this.partName = _data["partName"];
|
|
53902
54076
|
this.partRevision = _data["partRevision"];
|
|
53903
54077
|
this.drawing = _data["drawing"];
|
|
53904
54078
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -53917,7 +54091,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
53917
54091
|
data = typeof data === 'object' ? data : {};
|
|
53918
54092
|
data["customerId"] = this.customerId;
|
|
53919
54093
|
data["partNumber"] = this.partNumber;
|
|
53920
|
-
data["partName"] = this.partName;
|
|
53921
54094
|
data["partRevision"] = this.partRevision;
|
|
53922
54095
|
data["drawing"] = this.drawing;
|
|
53923
54096
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -53929,7 +54102,6 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
|
|
|
53929
54102
|
export interface IMeasurementFormImportLinkedSchemaDto {
|
|
53930
54103
|
customerId?: string | null;
|
|
53931
54104
|
partNumber?: string | null;
|
|
53932
|
-
partName?: string | null;
|
|
53933
54105
|
partRevision?: string | null;
|
|
53934
54106
|
drawing: string;
|
|
53935
54107
|
drawingRevision?: string | null;
|
|
@@ -54273,7 +54445,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54273
54445
|
customerName?: string | null;
|
|
54274
54446
|
partNumber?: string | null;
|
|
54275
54447
|
partRevision?: string | null;
|
|
54276
|
-
partName?: string | null;
|
|
54277
54448
|
drawing?: string | null;
|
|
54278
54449
|
drawingRevision?: string | null;
|
|
54279
54450
|
workorder?: string | null;
|
|
@@ -54303,7 +54474,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54303
54474
|
this.customerName = _data["customerName"];
|
|
54304
54475
|
this.partNumber = _data["partNumber"];
|
|
54305
54476
|
this.partRevision = _data["partRevision"];
|
|
54306
|
-
this.partName = _data["partName"];
|
|
54307
54477
|
this.drawing = _data["drawing"];
|
|
54308
54478
|
this.drawingRevision = _data["drawingRevision"];
|
|
54309
54479
|
this.workorder = _data["workorder"];
|
|
@@ -54333,7 +54503,6 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
|
|
|
54333
54503
|
data["customerName"] = this.customerName;
|
|
54334
54504
|
data["partNumber"] = this.partNumber;
|
|
54335
54505
|
data["partRevision"] = this.partRevision;
|
|
54336
|
-
data["partName"] = this.partName;
|
|
54337
54506
|
data["drawing"] = this.drawing;
|
|
54338
54507
|
data["drawingRevision"] = this.drawingRevision;
|
|
54339
54508
|
data["workorder"] = this.workorder;
|
|
@@ -54356,7 +54525,6 @@ export interface IMeasurementFormNeedDto {
|
|
|
54356
54525
|
customerName?: string | null;
|
|
54357
54526
|
partNumber?: string | null;
|
|
54358
54527
|
partRevision?: string | null;
|
|
54359
|
-
partName?: string | null;
|
|
54360
54528
|
drawing?: string | null;
|
|
54361
54529
|
drawingRevision?: string | null;
|
|
54362
54530
|
workorder?: string | null;
|
|
@@ -54374,7 +54542,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54374
54542
|
pageSize?: number | null;
|
|
54375
54543
|
customerId?: string | null;
|
|
54376
54544
|
customerName?: string | null;
|
|
54377
|
-
partName?: string | null;
|
|
54378
54545
|
partNumber?: string | null;
|
|
54379
54546
|
partRevision?: string | null;
|
|
54380
54547
|
drawing?: string | null;
|
|
@@ -54397,7 +54564,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54397
54564
|
this.pageSize = _data["pageSize"];
|
|
54398
54565
|
this.customerId = _data["customerId"];
|
|
54399
54566
|
this.customerName = _data["customerName"];
|
|
54400
|
-
this.partName = _data["partName"];
|
|
54401
54567
|
this.partNumber = _data["partNumber"];
|
|
54402
54568
|
this.partRevision = _data["partRevision"];
|
|
54403
54569
|
this.drawing = _data["drawing"];
|
|
@@ -54420,7 +54586,6 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
|
|
|
54420
54586
|
data["pageSize"] = this.pageSize;
|
|
54421
54587
|
data["customerId"] = this.customerId;
|
|
54422
54588
|
data["customerName"] = this.customerName;
|
|
54423
|
-
data["partName"] = this.partName;
|
|
54424
54589
|
data["partNumber"] = this.partNumber;
|
|
54425
54590
|
data["partRevision"] = this.partRevision;
|
|
54426
54591
|
data["drawing"] = this.drawing;
|
|
@@ -54436,7 +54601,6 @@ export interface IListMeasurementFormNeedsRequest {
|
|
|
54436
54601
|
pageSize?: number | null;
|
|
54437
54602
|
customerId?: string | null;
|
|
54438
54603
|
customerName?: string | null;
|
|
54439
|
-
partName?: string | null;
|
|
54440
54604
|
partNumber?: string | null;
|
|
54441
54605
|
partRevision?: string | null;
|
|
54442
54606
|
drawing?: string | null;
|
|
@@ -54638,7 +54802,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54638
54802
|
customerId?: string | null;
|
|
54639
54803
|
customerName?: string | null;
|
|
54640
54804
|
partNumber?: string | null;
|
|
54641
|
-
partName?: string | null;
|
|
54642
54805
|
partRevision?: string | null;
|
|
54643
54806
|
drawing?: string | null;
|
|
54644
54807
|
drawingRevision?: string | null;
|
|
@@ -54660,7 +54823,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54660
54823
|
this.customerId = _data["customerId"];
|
|
54661
54824
|
this.customerName = _data["customerName"];
|
|
54662
54825
|
this.partNumber = _data["partNumber"];
|
|
54663
|
-
this.partName = _data["partName"];
|
|
54664
54826
|
this.partRevision = _data["partRevision"];
|
|
54665
54827
|
this.drawing = _data["drawing"];
|
|
54666
54828
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -54682,7 +54844,6 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
|
|
|
54682
54844
|
data["customerId"] = this.customerId;
|
|
54683
54845
|
data["customerName"] = this.customerName;
|
|
54684
54846
|
data["partNumber"] = this.partNumber;
|
|
54685
|
-
data["partName"] = this.partName;
|
|
54686
54847
|
data["partRevision"] = this.partRevision;
|
|
54687
54848
|
data["drawing"] = this.drawing;
|
|
54688
54849
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -54697,7 +54858,6 @@ export interface IListMeasurementFormSchemasNotNeededRequest {
|
|
|
54697
54858
|
customerId?: string | null;
|
|
54698
54859
|
customerName?: string | null;
|
|
54699
54860
|
partNumber?: string | null;
|
|
54700
|
-
partName?: string | null;
|
|
54701
54861
|
partRevision?: string | null;
|
|
54702
54862
|
drawing?: string | null;
|
|
54703
54863
|
drawingRevision?: string | null;
|
|
@@ -54883,7 +55043,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54883
55043
|
latestSchemaDefinitionId?: string | null;
|
|
54884
55044
|
partNumber?: string | null;
|
|
54885
55045
|
partRevision?: string | null;
|
|
54886
|
-
partName?: string | null;
|
|
54887
55046
|
drawing?: string | null;
|
|
54888
55047
|
drawingRevision?: string | null;
|
|
54889
55048
|
|
|
@@ -54912,7 +55071,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54912
55071
|
this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
|
|
54913
55072
|
this.partNumber = _data["partNumber"];
|
|
54914
55073
|
this.partRevision = _data["partRevision"];
|
|
54915
|
-
this.partName = _data["partName"];
|
|
54916
55074
|
this.drawing = _data["drawing"];
|
|
54917
55075
|
this.drawingRevision = _data["drawingRevision"];
|
|
54918
55076
|
}
|
|
@@ -54941,7 +55099,6 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
|
|
|
54941
55099
|
data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
|
|
54942
55100
|
data["partNumber"] = this.partNumber;
|
|
54943
55101
|
data["partRevision"] = this.partRevision;
|
|
54944
|
-
data["partName"] = this.partName;
|
|
54945
55102
|
data["drawing"] = this.drawing;
|
|
54946
55103
|
data["drawingRevision"] = this.drawingRevision;
|
|
54947
55104
|
return data;
|
|
@@ -54963,7 +55120,6 @@ export interface ISchemaFeedbackDto {
|
|
|
54963
55120
|
latestSchemaDefinitionId?: string | null;
|
|
54964
55121
|
partNumber?: string | null;
|
|
54965
55122
|
partRevision?: string | null;
|
|
54966
|
-
partName?: string | null;
|
|
54967
55123
|
drawing?: string | null;
|
|
54968
55124
|
drawingRevision?: string | null;
|
|
54969
55125
|
}
|
|
@@ -55168,7 +55324,6 @@ export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
|
55168
55324
|
export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
|
|
55169
55325
|
id!: string;
|
|
55170
55326
|
readonly!: boolean;
|
|
55171
|
-
partName?: string | null;
|
|
55172
55327
|
partNumber?: string | null;
|
|
55173
55328
|
partRevision?: string | null;
|
|
55174
55329
|
drawing?: string | null;
|
|
@@ -55199,7 +55354,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55199
55354
|
if (_data) {
|
|
55200
55355
|
this.id = _data["id"];
|
|
55201
55356
|
this.readonly = _data["readonly"];
|
|
55202
|
-
this.partName = _data["partName"];
|
|
55203
55357
|
this.partNumber = _data["partNumber"];
|
|
55204
55358
|
this.partRevision = _data["partRevision"];
|
|
55205
55359
|
this.drawing = _data["drawing"];
|
|
@@ -55230,7 +55384,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55230
55384
|
data = typeof data === 'object' ? data : {};
|
|
55231
55385
|
data["id"] = this.id;
|
|
55232
55386
|
data["readonly"] = this.readonly;
|
|
55233
|
-
data["partName"] = this.partName;
|
|
55234
55387
|
data["partNumber"] = this.partNumber;
|
|
55235
55388
|
data["partRevision"] = this.partRevision;
|
|
55236
55389
|
data["drawing"] = this.drawing;
|
|
@@ -55254,7 +55407,6 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
55254
55407
|
export interface IMeasurementFormInstanceOverviewDto {
|
|
55255
55408
|
id: string;
|
|
55256
55409
|
readonly: boolean;
|
|
55257
|
-
partName?: string | null;
|
|
55258
55410
|
partNumber?: string | null;
|
|
55259
55411
|
partRevision?: string | null;
|
|
55260
55412
|
drawing?: string | null;
|
|
@@ -55522,7 +55674,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55522
55674
|
id!: string;
|
|
55523
55675
|
readonly!: boolean;
|
|
55524
55676
|
partNumber?: string | null;
|
|
55525
|
-
partName?: string | null;
|
|
55526
55677
|
partRevision?: string | null;
|
|
55527
55678
|
drawing?: string | null;
|
|
55528
55679
|
drawingRevision?: string | null;
|
|
@@ -55558,7 +55709,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55558
55709
|
this.id = _data["id"];
|
|
55559
55710
|
this.readonly = _data["readonly"];
|
|
55560
55711
|
this.partNumber = _data["partNumber"];
|
|
55561
|
-
this.partName = _data["partName"];
|
|
55562
55712
|
this.partRevision = _data["partRevision"];
|
|
55563
55713
|
this.drawing = _data["drawing"];
|
|
55564
55714
|
this.drawingRevision = _data["drawingRevision"];
|
|
@@ -55600,7 +55750,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
55600
55750
|
data["id"] = this.id;
|
|
55601
55751
|
data["readonly"] = this.readonly;
|
|
55602
55752
|
data["partNumber"] = this.partNumber;
|
|
55603
|
-
data["partName"] = this.partName;
|
|
55604
55753
|
data["partRevision"] = this.partRevision;
|
|
55605
55754
|
data["drawing"] = this.drawing;
|
|
55606
55755
|
data["drawingRevision"] = this.drawingRevision;
|
|
@@ -55635,7 +55784,6 @@ export interface IMeasurementFormInstanceDto {
|
|
|
55635
55784
|
id: string;
|
|
55636
55785
|
readonly: boolean;
|
|
55637
55786
|
partNumber?: string | null;
|
|
55638
|
-
partName?: string | null;
|
|
55639
55787
|
partRevision?: string | null;
|
|
55640
55788
|
drawing?: string | null;
|
|
55641
55789
|
drawingRevision?: string | null;
|
|
@@ -59888,6 +60036,255 @@ export interface ICreateWorkOrderMapping {
|
|
|
59888
60036
|
newWorkOrderId: string;
|
|
59889
60037
|
}
|
|
59890
60038
|
|
|
60039
|
+
export class TableEntityBase implements ITableEntityBase {
|
|
60040
|
+
partitionKey?: string;
|
|
60041
|
+
rowKey?: string;
|
|
60042
|
+
timestamp?: Date | null;
|
|
60043
|
+
eTag?: ETag;
|
|
60044
|
+
created?: Date | null;
|
|
60045
|
+
createdBy?: string | null;
|
|
60046
|
+
createdById?: string | null;
|
|
60047
|
+
updatedBy?: string | null;
|
|
60048
|
+
updatedById?: string | null;
|
|
60049
|
+
insertAuditInfo?: AuditInfo;
|
|
60050
|
+
|
|
60051
|
+
constructor(data?: ITableEntityBase) {
|
|
60052
|
+
if (data) {
|
|
60053
|
+
for (var property in data) {
|
|
60054
|
+
if (data.hasOwnProperty(property))
|
|
60055
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60056
|
+
}
|
|
60057
|
+
}
|
|
60058
|
+
}
|
|
60059
|
+
|
|
60060
|
+
init(_data?: any) {
|
|
60061
|
+
if (_data) {
|
|
60062
|
+
this.partitionKey = _data["partitionKey"];
|
|
60063
|
+
this.rowKey = _data["rowKey"];
|
|
60064
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
|
|
60065
|
+
this.eTag = _data["eTag"] ? ETag.fromJS(_data["eTag"]) : <any>undefined;
|
|
60066
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
60067
|
+
this.createdBy = _data["createdBy"];
|
|
60068
|
+
this.createdById = _data["createdById"];
|
|
60069
|
+
this.updatedBy = _data["updatedBy"];
|
|
60070
|
+
this.updatedById = _data["updatedById"];
|
|
60071
|
+
this.insertAuditInfo = _data["insertAuditInfo"] ? AuditInfo.fromJS(_data["insertAuditInfo"]) : <any>undefined;
|
|
60072
|
+
}
|
|
60073
|
+
}
|
|
60074
|
+
|
|
60075
|
+
static fromJS(data: any): TableEntityBase {
|
|
60076
|
+
data = typeof data === 'object' ? data : {};
|
|
60077
|
+
let result = new TableEntityBase();
|
|
60078
|
+
result.init(data);
|
|
60079
|
+
return result;
|
|
60080
|
+
}
|
|
60081
|
+
|
|
60082
|
+
toJSON(data?: any) {
|
|
60083
|
+
data = typeof data === 'object' ? data : {};
|
|
60084
|
+
data["partitionKey"] = this.partitionKey;
|
|
60085
|
+
data["rowKey"] = this.rowKey;
|
|
60086
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
|
|
60087
|
+
data["eTag"] = this.eTag ? this.eTag.toJSON() : <any>undefined;
|
|
60088
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
60089
|
+
data["createdBy"] = this.createdBy;
|
|
60090
|
+
data["createdById"] = this.createdById;
|
|
60091
|
+
data["updatedBy"] = this.updatedBy;
|
|
60092
|
+
data["updatedById"] = this.updatedById;
|
|
60093
|
+
data["insertAuditInfo"] = this.insertAuditInfo ? this.insertAuditInfo.toJSON() : <any>undefined;
|
|
60094
|
+
return data;
|
|
60095
|
+
}
|
|
60096
|
+
}
|
|
60097
|
+
|
|
60098
|
+
export interface ITableEntityBase {
|
|
60099
|
+
partitionKey?: string;
|
|
60100
|
+
rowKey?: string;
|
|
60101
|
+
timestamp?: Date | null;
|
|
60102
|
+
eTag?: ETag;
|
|
60103
|
+
created?: Date | null;
|
|
60104
|
+
createdBy?: string | null;
|
|
60105
|
+
createdById?: string | null;
|
|
60106
|
+
updatedBy?: string | null;
|
|
60107
|
+
updatedById?: string | null;
|
|
60108
|
+
insertAuditInfo?: AuditInfo;
|
|
60109
|
+
}
|
|
60110
|
+
|
|
60111
|
+
export class WorkorderDiscussionMessage extends TableEntityBase implements IWorkorderDiscussionMessage {
|
|
60112
|
+
content?: string;
|
|
60113
|
+
senderUpn?: string;
|
|
60114
|
+
senderName?: string;
|
|
60115
|
+
operationId?: string | null;
|
|
60116
|
+
operationName?: string | null;
|
|
60117
|
+
resourceId?: string | null;
|
|
60118
|
+
|
|
60119
|
+
constructor(data?: IWorkorderDiscussionMessage) {
|
|
60120
|
+
super(data);
|
|
60121
|
+
}
|
|
60122
|
+
|
|
60123
|
+
override init(_data?: any) {
|
|
60124
|
+
super.init(_data);
|
|
60125
|
+
if (_data) {
|
|
60126
|
+
this.content = _data["content"];
|
|
60127
|
+
this.senderUpn = _data["senderUpn"];
|
|
60128
|
+
this.senderName = _data["senderName"];
|
|
60129
|
+
this.operationId = _data["operationId"];
|
|
60130
|
+
this.operationName = _data["operationName"];
|
|
60131
|
+
this.resourceId = _data["resourceId"];
|
|
60132
|
+
}
|
|
60133
|
+
}
|
|
60134
|
+
|
|
60135
|
+
static override fromJS(data: any): WorkorderDiscussionMessage {
|
|
60136
|
+
data = typeof data === 'object' ? data : {};
|
|
60137
|
+
let result = new WorkorderDiscussionMessage();
|
|
60138
|
+
result.init(data);
|
|
60139
|
+
return result;
|
|
60140
|
+
}
|
|
60141
|
+
|
|
60142
|
+
override toJSON(data?: any) {
|
|
60143
|
+
data = typeof data === 'object' ? data : {};
|
|
60144
|
+
data["content"] = this.content;
|
|
60145
|
+
data["senderUpn"] = this.senderUpn;
|
|
60146
|
+
data["senderName"] = this.senderName;
|
|
60147
|
+
data["operationId"] = this.operationId;
|
|
60148
|
+
data["operationName"] = this.operationName;
|
|
60149
|
+
data["resourceId"] = this.resourceId;
|
|
60150
|
+
super.toJSON(data);
|
|
60151
|
+
return data;
|
|
60152
|
+
}
|
|
60153
|
+
}
|
|
60154
|
+
|
|
60155
|
+
export interface IWorkorderDiscussionMessage extends ITableEntityBase {
|
|
60156
|
+
content?: string;
|
|
60157
|
+
senderUpn?: string;
|
|
60158
|
+
senderName?: string;
|
|
60159
|
+
operationId?: string | null;
|
|
60160
|
+
operationName?: string | null;
|
|
60161
|
+
resourceId?: string | null;
|
|
60162
|
+
}
|
|
60163
|
+
|
|
60164
|
+
/** Represents an HTTP ETag. */
|
|
60165
|
+
export class ETag implements IETag {
|
|
60166
|
+
|
|
60167
|
+
constructor(data?: IETag) {
|
|
60168
|
+
if (data) {
|
|
60169
|
+
for (var property in data) {
|
|
60170
|
+
if (data.hasOwnProperty(property))
|
|
60171
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60172
|
+
}
|
|
60173
|
+
}
|
|
60174
|
+
}
|
|
60175
|
+
|
|
60176
|
+
init(_data?: any) {
|
|
60177
|
+
}
|
|
60178
|
+
|
|
60179
|
+
static fromJS(data: any): ETag {
|
|
60180
|
+
data = typeof data === 'object' ? data : {};
|
|
60181
|
+
let result = new ETag();
|
|
60182
|
+
result.init(data);
|
|
60183
|
+
return result;
|
|
60184
|
+
}
|
|
60185
|
+
|
|
60186
|
+
toJSON(data?: any) {
|
|
60187
|
+
data = typeof data === 'object' ? data : {};
|
|
60188
|
+
return data;
|
|
60189
|
+
}
|
|
60190
|
+
}
|
|
60191
|
+
|
|
60192
|
+
/** Represents an HTTP ETag. */
|
|
60193
|
+
export interface IETag {
|
|
60194
|
+
}
|
|
60195
|
+
|
|
60196
|
+
export class AuditInfo implements IAuditInfo {
|
|
60197
|
+
objectId?: string;
|
|
60198
|
+
userId?: string;
|
|
60199
|
+
userFullName?: string | null;
|
|
60200
|
+
|
|
60201
|
+
constructor(data?: IAuditInfo) {
|
|
60202
|
+
if (data) {
|
|
60203
|
+
for (var property in data) {
|
|
60204
|
+
if (data.hasOwnProperty(property))
|
|
60205
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60206
|
+
}
|
|
60207
|
+
}
|
|
60208
|
+
}
|
|
60209
|
+
|
|
60210
|
+
init(_data?: any) {
|
|
60211
|
+
if (_data) {
|
|
60212
|
+
this.objectId = _data["objectId"];
|
|
60213
|
+
this.userId = _data["userId"];
|
|
60214
|
+
this.userFullName = _data["userFullName"];
|
|
60215
|
+
}
|
|
60216
|
+
}
|
|
60217
|
+
|
|
60218
|
+
static fromJS(data: any): AuditInfo {
|
|
60219
|
+
data = typeof data === 'object' ? data : {};
|
|
60220
|
+
let result = new AuditInfo();
|
|
60221
|
+
result.init(data);
|
|
60222
|
+
return result;
|
|
60223
|
+
}
|
|
60224
|
+
|
|
60225
|
+
toJSON(data?: any) {
|
|
60226
|
+
data = typeof data === 'object' ? data : {};
|
|
60227
|
+
data["objectId"] = this.objectId;
|
|
60228
|
+
data["userId"] = this.userId;
|
|
60229
|
+
data["userFullName"] = this.userFullName;
|
|
60230
|
+
return data;
|
|
60231
|
+
}
|
|
60232
|
+
}
|
|
60233
|
+
|
|
60234
|
+
export interface IAuditInfo {
|
|
60235
|
+
objectId?: string;
|
|
60236
|
+
userId?: string;
|
|
60237
|
+
userFullName?: string | null;
|
|
60238
|
+
}
|
|
60239
|
+
|
|
60240
|
+
export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
|
|
60241
|
+
message?: string;
|
|
60242
|
+
operationId?: string | null;
|
|
60243
|
+
operationName?: string | null;
|
|
60244
|
+
resourceId?: string | null;
|
|
60245
|
+
|
|
60246
|
+
constructor(data?: IAddDiscussionMessageRequest) {
|
|
60247
|
+
if (data) {
|
|
60248
|
+
for (var property in data) {
|
|
60249
|
+
if (data.hasOwnProperty(property))
|
|
60250
|
+
(<any>this)[property] = (<any>data)[property];
|
|
60251
|
+
}
|
|
60252
|
+
}
|
|
60253
|
+
}
|
|
60254
|
+
|
|
60255
|
+
init(_data?: any) {
|
|
60256
|
+
if (_data) {
|
|
60257
|
+
this.message = _data["message"];
|
|
60258
|
+
this.operationId = _data["operationId"];
|
|
60259
|
+
this.operationName = _data["operationName"];
|
|
60260
|
+
this.resourceId = _data["resourceId"];
|
|
60261
|
+
}
|
|
60262
|
+
}
|
|
60263
|
+
|
|
60264
|
+
static fromJS(data: any): AddDiscussionMessageRequest {
|
|
60265
|
+
data = typeof data === 'object' ? data : {};
|
|
60266
|
+
let result = new AddDiscussionMessageRequest();
|
|
60267
|
+
result.init(data);
|
|
60268
|
+
return result;
|
|
60269
|
+
}
|
|
60270
|
+
|
|
60271
|
+
toJSON(data?: any) {
|
|
60272
|
+
data = typeof data === 'object' ? data : {};
|
|
60273
|
+
data["message"] = this.message;
|
|
60274
|
+
data["operationId"] = this.operationId;
|
|
60275
|
+
data["operationName"] = this.operationName;
|
|
60276
|
+
data["resourceId"] = this.resourceId;
|
|
60277
|
+
return data;
|
|
60278
|
+
}
|
|
60279
|
+
}
|
|
60280
|
+
|
|
60281
|
+
export interface IAddDiscussionMessageRequest {
|
|
60282
|
+
message?: string;
|
|
60283
|
+
operationId?: string | null;
|
|
60284
|
+
operationName?: string | null;
|
|
60285
|
+
resourceId?: string | null;
|
|
60286
|
+
}
|
|
60287
|
+
|
|
59891
60288
|
function formatDate(d: Date) {
|
|
59892
60289
|
return d.getFullYear() + '-' +
|
|
59893
60290
|
(d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +
|