@ignos/api-client 20251114.0.13234-alpha → 20251209.0.13462-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 +343 -288
- package/lib/ignosportal-api.js +1009 -972
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1528 -1436
package/src/ignosportal-api.ts
CHANGED
|
@@ -19234,8 +19234,6 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
19234
19234
|
|
|
19235
19235
|
deleteResourceTypeForNeedsGenerator(resourceType: string): Promise<void>;
|
|
19236
19236
|
|
|
19237
|
-
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
19238
|
-
|
|
19239
19237
|
listMeasurementFormInstanceSchemaFeedback(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfSchemaFeedbackDto>;
|
|
19240
19238
|
|
|
19241
19239
|
postListMeasurementFormInstanceSchemaFeedback(request: ListMeasurementFormInstanceSchemaFeedbackRequest | undefined): Promise<PagedResultOfSchemaFeedbackDto>;
|
|
@@ -21105,46 +21103,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
21105
21103
|
return Promise.resolve<void>(null as any);
|
|
21106
21104
|
}
|
|
21107
21105
|
|
|
21108
|
-
listFrequencies(): Promise<MeasurementFrequencyDto[]> {
|
|
21109
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
21110
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21111
|
-
|
|
21112
|
-
let options_: RequestInit = {
|
|
21113
|
-
method: "GET",
|
|
21114
|
-
headers: {
|
|
21115
|
-
"Accept": "application/json"
|
|
21116
|
-
}
|
|
21117
|
-
};
|
|
21118
|
-
|
|
21119
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21120
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21121
|
-
}).then((_response: Response) => {
|
|
21122
|
-
return this.processListFrequencies(_response);
|
|
21123
|
-
});
|
|
21124
|
-
}
|
|
21125
|
-
|
|
21126
|
-
protected processListFrequencies(response: Response): Promise<MeasurementFrequencyDto[]> {
|
|
21127
|
-
const status = response.status;
|
|
21128
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21129
|
-
if (status === 200) {
|
|
21130
|
-
return response.text().then((_responseText) => {
|
|
21131
|
-
let result200: any = null;
|
|
21132
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21133
|
-
if (Array.isArray(resultData200)) {
|
|
21134
|
-
result200 = [] as any;
|
|
21135
|
-
for (let item of resultData200)
|
|
21136
|
-
result200!.push(MeasurementFrequencyDto.fromJS(item));
|
|
21137
|
-
}
|
|
21138
|
-
return result200;
|
|
21139
|
-
});
|
|
21140
|
-
} else if (status !== 200 && status !== 204) {
|
|
21141
|
-
return response.text().then((_responseText) => {
|
|
21142
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21143
|
-
});
|
|
21144
|
-
}
|
|
21145
|
-
return Promise.resolve<MeasurementFrequencyDto[]>(null as any);
|
|
21146
|
-
}
|
|
21147
|
-
|
|
21148
21106
|
listMeasurementFormInstanceSchemaFeedback(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfSchemaFeedbackDto> {
|
|
21149
21107
|
let url_ = this.baseUrl + "/measurementforms/schemas/feedback?";
|
|
21150
21108
|
if (pageSize === null)
|
|
@@ -21442,6 +21400,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
21442
21400
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
21443
21401
|
|
|
21444
21402
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
21403
|
+
|
|
21404
|
+
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
21445
21405
|
}
|
|
21446
21406
|
|
|
21447
21407
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
|
|
@@ -21533,6 +21493,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
21533
21493
|
}
|
|
21534
21494
|
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
21535
21495
|
}
|
|
21496
|
+
|
|
21497
|
+
listFrequencies(): Promise<MeasurementFrequencyDto[]> {
|
|
21498
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
21499
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21500
|
+
|
|
21501
|
+
let options_: RequestInit = {
|
|
21502
|
+
method: "GET",
|
|
21503
|
+
headers: {
|
|
21504
|
+
"Accept": "application/json"
|
|
21505
|
+
}
|
|
21506
|
+
};
|
|
21507
|
+
|
|
21508
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21509
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21510
|
+
}).then((_response: Response) => {
|
|
21511
|
+
return this.processListFrequencies(_response);
|
|
21512
|
+
});
|
|
21513
|
+
}
|
|
21514
|
+
|
|
21515
|
+
protected processListFrequencies(response: Response): Promise<MeasurementFrequencyDto[]> {
|
|
21516
|
+
const status = response.status;
|
|
21517
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21518
|
+
if (status === 200) {
|
|
21519
|
+
return response.text().then((_responseText) => {
|
|
21520
|
+
let result200: any = null;
|
|
21521
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21522
|
+
if (Array.isArray(resultData200)) {
|
|
21523
|
+
result200 = [] as any;
|
|
21524
|
+
for (let item of resultData200)
|
|
21525
|
+
result200!.push(MeasurementFrequencyDto.fromJS(item));
|
|
21526
|
+
}
|
|
21527
|
+
return result200;
|
|
21528
|
+
});
|
|
21529
|
+
} else if (status !== 200 && status !== 204) {
|
|
21530
|
+
return response.text().then((_responseText) => {
|
|
21531
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21532
|
+
});
|
|
21533
|
+
}
|
|
21534
|
+
return Promise.resolve<MeasurementFrequencyDto[]>(null as any);
|
|
21535
|
+
}
|
|
21536
21536
|
}
|
|
21537
21537
|
|
|
21538
21538
|
export interface IMeasurementFormSettingsClient {
|
|
@@ -21713,77 +21713,16 @@ export class MeasurementFormSettingsClient extends AuthorizedApiBase implements
|
|
|
21713
21713
|
}
|
|
21714
21714
|
}
|
|
21715
21715
|
|
|
21716
|
-
export interface
|
|
21717
|
-
|
|
21718
|
-
listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
21719
|
-
|
|
21720
|
-
postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
21721
|
-
|
|
21722
|
-
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
21723
|
-
|
|
21724
|
-
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
21725
|
-
|
|
21726
|
-
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
21727
|
-
|
|
21728
|
-
getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
21729
|
-
|
|
21730
|
-
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
21731
|
-
|
|
21732
|
-
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
21733
|
-
|
|
21734
|
-
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
21735
|
-
|
|
21736
|
-
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
21737
|
-
|
|
21738
|
-
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
21739
|
-
|
|
21740
|
-
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
21716
|
+
export interface IMeasurementFormsInstancesAdminClient {
|
|
21741
21717
|
|
|
21742
21718
|
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
21743
21719
|
|
|
21744
21720
|
disapproveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
21745
21721
|
|
|
21746
|
-
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
21747
|
-
|
|
21748
|
-
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
21749
|
-
|
|
21750
|
-
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
21751
|
-
|
|
21752
|
-
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
21753
|
-
|
|
21754
|
-
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
21755
|
-
|
|
21756
|
-
saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
|
|
21757
|
-
|
|
21758
|
-
saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
|
|
21759
|
-
|
|
21760
|
-
saveComment(id: string, tenantId: string | null | undefined, request: SaveCommentRequest): Promise<void>;
|
|
21761
|
-
|
|
21762
|
-
batchInsertValues(id: string, tenantId: string | null | undefined, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
|
|
21763
|
-
|
|
21764
|
-
saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, tenantId: string | null | undefined, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
|
|
21765
|
-
|
|
21766
|
-
createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, tenantId: string | null | undefined, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
|
|
21767
|
-
|
|
21768
|
-
listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
|
|
21769
|
-
|
|
21770
|
-
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
21771
|
-
|
|
21772
|
-
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
21773
|
-
|
|
21774
|
-
/**
|
|
21775
|
-
* @deprecated
|
|
21776
|
-
*/
|
|
21777
|
-
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21778
|
-
|
|
21779
|
-
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21780
|
-
|
|
21781
21722
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21782
|
-
|
|
21783
|
-
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
21784
21723
|
}
|
|
21785
21724
|
|
|
21786
|
-
export class
|
|
21725
|
+
export class MeasurementFormsInstancesAdminClient extends AuthorizedApiBase implements IMeasurementFormsInstancesAdminClient {
|
|
21787
21726
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21788
21727
|
private baseUrl: string;
|
|
21789
21728
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -21794,26 +21733,15 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21794
21733
|
this.baseUrl = baseUrl ?? "";
|
|
21795
21734
|
}
|
|
21796
21735
|
|
|
21797
|
-
|
|
21798
|
-
let url_ = this.baseUrl + "/measurementforms/instances
|
|
21799
|
-
if (
|
|
21800
|
-
throw new globalThis.Error("The parameter '
|
|
21801
|
-
|
|
21802
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21803
|
-
if (search !== undefined && search !== null)
|
|
21804
|
-
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
21805
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
21806
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
21807
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
21808
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21809
|
-
if (inactive !== undefined && inactive !== null)
|
|
21810
|
-
url_ += "inactive=" + encodeURIComponent("" + inactive) + "&";
|
|
21811
|
-
if (includeInactiveSupplierAccess !== undefined && includeInactiveSupplierAccess !== null)
|
|
21812
|
-
url_ += "includeInactiveSupplierAccess=" + encodeURIComponent("" + includeInactiveSupplierAccess) + "&";
|
|
21736
|
+
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
21737
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
21738
|
+
if (id === undefined || id === null)
|
|
21739
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21740
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21813
21741
|
url_ = url_.replace(/[?&]$/, "");
|
|
21814
21742
|
|
|
21815
21743
|
let options_: RequestInit = {
|
|
21816
|
-
method: "
|
|
21744
|
+
method: "POST",
|
|
21817
21745
|
headers: {
|
|
21818
21746
|
"Accept": "application/json"
|
|
21819
21747
|
}
|
|
@@ -21822,18 +21750,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21822
21750
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21823
21751
|
return this.http.fetch(url_, transformedOptions_);
|
|
21824
21752
|
}).then((_response: Response) => {
|
|
21825
|
-
return this.
|
|
21753
|
+
return this.processApproveMeasurementFormInstance(_response);
|
|
21826
21754
|
});
|
|
21827
21755
|
}
|
|
21828
21756
|
|
|
21829
|
-
protected
|
|
21757
|
+
protected processApproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
21830
21758
|
const status = response.status;
|
|
21831
21759
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21832
21760
|
if (status === 200) {
|
|
21833
21761
|
return response.text().then((_responseText) => {
|
|
21834
21762
|
let result200: any = null;
|
|
21835
21763
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21836
|
-
result200 =
|
|
21764
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21837
21765
|
return result200;
|
|
21838
21766
|
});
|
|
21839
21767
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -21841,20 +21769,19 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21841
21769
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21842
21770
|
});
|
|
21843
21771
|
}
|
|
21844
|
-
return Promise.resolve<
|
|
21772
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
21845
21773
|
}
|
|
21846
21774
|
|
|
21847
|
-
|
|
21848
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21775
|
+
disapproveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
21776
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
|
|
21777
|
+
if (id === undefined || id === null)
|
|
21778
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21779
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21849
21780
|
url_ = url_.replace(/[?&]$/, "");
|
|
21850
21781
|
|
|
21851
|
-
const content_ = JSON.stringify(request);
|
|
21852
|
-
|
|
21853
21782
|
let options_: RequestInit = {
|
|
21854
|
-
body: content_,
|
|
21855
21783
|
method: "POST",
|
|
21856
21784
|
headers: {
|
|
21857
|
-
"Content-Type": "application/json",
|
|
21858
21785
|
"Accept": "application/json"
|
|
21859
21786
|
}
|
|
21860
21787
|
};
|
|
@@ -21862,18 +21789,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21862
21789
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21863
21790
|
return this.http.fetch(url_, transformedOptions_);
|
|
21864
21791
|
}).then((_response: Response) => {
|
|
21865
|
-
return this.
|
|
21792
|
+
return this.processDisapproveMeasurementFormInstance(_response);
|
|
21866
21793
|
});
|
|
21867
21794
|
}
|
|
21868
21795
|
|
|
21869
|
-
protected
|
|
21796
|
+
protected processDisapproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
21870
21797
|
const status = response.status;
|
|
21871
21798
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21872
21799
|
if (status === 200) {
|
|
21873
21800
|
return response.text().then((_responseText) => {
|
|
21874
21801
|
let result200: any = null;
|
|
21875
21802
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21876
|
-
result200 =
|
|
21803
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
21877
21804
|
return result200;
|
|
21878
21805
|
});
|
|
21879
21806
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -21881,31 +21808,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21881
21808
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21882
21809
|
});
|
|
21883
21810
|
}
|
|
21884
|
-
return Promise.resolve<
|
|
21811
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
21885
21812
|
}
|
|
21886
21813
|
|
|
21887
|
-
|
|
21888
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21889
|
-
if (
|
|
21890
|
-
throw new globalThis.Error("The parameter '
|
|
21891
|
-
|
|
21892
|
-
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
21893
|
-
if (statusChangedSince !== undefined && statusChangedSince !== null)
|
|
21894
|
-
url_ += "statusChangedSince=" + encodeURIComponent(statusChangedSince ? "" + statusChangedSince.toISOString() : "") + "&";
|
|
21895
|
-
if (onlyWithReports !== undefined && onlyWithReports !== null)
|
|
21896
|
-
url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
|
|
21897
|
-
if (pageSize === null)
|
|
21898
|
-
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
21899
|
-
else if (pageSize !== undefined)
|
|
21900
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21901
|
-
if (search !== undefined && search !== null)
|
|
21902
|
-
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
21903
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
21904
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
21814
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto> {
|
|
21815
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
21816
|
+
if (id === undefined || id === null)
|
|
21817
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21818
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21905
21819
|
url_ = url_.replace(/[?&]$/, "");
|
|
21906
21820
|
|
|
21907
21821
|
let options_: RequestInit = {
|
|
21908
|
-
method: "
|
|
21822
|
+
method: "POST",
|
|
21909
21823
|
headers: {
|
|
21910
21824
|
"Accept": "application/json"
|
|
21911
21825
|
}
|
|
@@ -21914,18 +21828,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21914
21828
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21915
21829
|
return this.http.fetch(url_, transformedOptions_);
|
|
21916
21830
|
}).then((_response: Response) => {
|
|
21917
|
-
return this.
|
|
21831
|
+
return this.processExportDimensionReportValues(_response);
|
|
21918
21832
|
});
|
|
21919
21833
|
}
|
|
21920
21834
|
|
|
21921
|
-
protected
|
|
21835
|
+
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto> {
|
|
21922
21836
|
const status = response.status;
|
|
21923
21837
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21924
21838
|
if (status === 200) {
|
|
21925
21839
|
return response.text().then((_responseText) => {
|
|
21926
21840
|
let result200: any = null;
|
|
21927
21841
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21928
|
-
result200 =
|
|
21842
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21929
21843
|
return result200;
|
|
21930
21844
|
});
|
|
21931
21845
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -21933,20 +21847,88 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21933
21847
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21934
21848
|
});
|
|
21935
21849
|
}
|
|
21936
|
-
return Promise.resolve<
|
|
21850
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
21937
21851
|
}
|
|
21852
|
+
}
|
|
21938
21853
|
|
|
21939
|
-
|
|
21940
|
-
let url_ = this.baseUrl + "/measurementforms/instances/bystatus";
|
|
21941
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21854
|
+
export interface IMeasurementFormsInstancesClient {
|
|
21942
21855
|
|
|
21943
|
-
|
|
21856
|
+
listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
21857
|
+
|
|
21858
|
+
postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
21859
|
+
|
|
21860
|
+
getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
21861
|
+
|
|
21862
|
+
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
21863
|
+
|
|
21864
|
+
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
21865
|
+
|
|
21866
|
+
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
21867
|
+
|
|
21868
|
+
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
21869
|
+
|
|
21870
|
+
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
21871
|
+
|
|
21872
|
+
getValidationRules(): Promise<ValidationRuleDto[]>;
|
|
21873
|
+
|
|
21874
|
+
saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
|
|
21875
|
+
|
|
21876
|
+
saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
|
|
21877
|
+
|
|
21878
|
+
saveComment(id: string, tenantId: string | null | undefined, request: SaveCommentRequest): Promise<void>;
|
|
21879
|
+
|
|
21880
|
+
batchInsertValues(id: string, tenantId: string | null | undefined, request: BatchInsertValueRequest): Promise<BatchInsertValuesResponseDto>;
|
|
21881
|
+
|
|
21882
|
+
saveMeasurementFormInstanceSchemaComment(id: string, schemaId: string, tenantId: string | null | undefined, request: SaveMeasurementFormInstanceSchemaCommentRequest): Promise<void>;
|
|
21883
|
+
|
|
21884
|
+
createMeasurementFormInstanceSchemaFeedback(id: string, schemaId: string, tenantId: string | null | undefined, request: CreateMeasurementFormSchemaFeedbackRequest): Promise<SchemaFeedbackCreatedDto>;
|
|
21885
|
+
|
|
21886
|
+
listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
|
|
21887
|
+
|
|
21888
|
+
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
21889
|
+
|
|
21890
|
+
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
21891
|
+
|
|
21892
|
+
/**
|
|
21893
|
+
* @deprecated
|
|
21894
|
+
*/
|
|
21895
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21896
|
+
|
|
21897
|
+
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21898
|
+
}
|
|
21899
|
+
|
|
21900
|
+
export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
|
|
21901
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21902
|
+
private baseUrl: string;
|
|
21903
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
21904
|
+
|
|
21905
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
21906
|
+
super(configuration);
|
|
21907
|
+
this.http = http ? http : window as any;
|
|
21908
|
+
this.baseUrl = baseUrl ?? "";
|
|
21909
|
+
}
|
|
21910
|
+
|
|
21911
|
+
listMeasurementForms(pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined, tenantId: string | null | undefined, inactive: boolean | null | undefined, includeInactiveSupplierAccess: boolean | null | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto> {
|
|
21912
|
+
let url_ = this.baseUrl + "/measurementforms/instances?";
|
|
21913
|
+
if (pageSize === null)
|
|
21914
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
21915
|
+
else if (pageSize !== undefined)
|
|
21916
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
21917
|
+
if (search !== undefined && search !== null)
|
|
21918
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
21919
|
+
if (continuationToken !== undefined && continuationToken !== null)
|
|
21920
|
+
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
21921
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
21922
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
21923
|
+
if (inactive !== undefined && inactive !== null)
|
|
21924
|
+
url_ += "inactive=" + encodeURIComponent("" + inactive) + "&";
|
|
21925
|
+
if (includeInactiveSupplierAccess !== undefined && includeInactiveSupplierAccess !== null)
|
|
21926
|
+
url_ += "includeInactiveSupplierAccess=" + encodeURIComponent("" + includeInactiveSupplierAccess) + "&";
|
|
21927
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21944
21928
|
|
|
21945
21929
|
let options_: RequestInit = {
|
|
21946
|
-
|
|
21947
|
-
method: "POST",
|
|
21930
|
+
method: "GET",
|
|
21948
21931
|
headers: {
|
|
21949
|
-
"Content-Type": "application/json",
|
|
21950
21932
|
"Accept": "application/json"
|
|
21951
21933
|
}
|
|
21952
21934
|
};
|
|
@@ -21954,18 +21936,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21954
21936
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21955
21937
|
return this.http.fetch(url_, transformedOptions_);
|
|
21956
21938
|
}).then((_response: Response) => {
|
|
21957
|
-
return this.
|
|
21939
|
+
return this.processListMeasurementForms(_response);
|
|
21958
21940
|
});
|
|
21959
21941
|
}
|
|
21960
21942
|
|
|
21961
|
-
protected
|
|
21943
|
+
protected processListMeasurementForms(response: Response): Promise<PagedResultOfMeasurementFormInstanceOverviewDto> {
|
|
21962
21944
|
const status = response.status;
|
|
21963
21945
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21964
21946
|
if (status === 200) {
|
|
21965
21947
|
return response.text().then((_responseText) => {
|
|
21966
21948
|
let result200: any = null;
|
|
21967
21949
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21968
|
-
result200 =
|
|
21950
|
+
result200 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
|
|
21969
21951
|
return result200;
|
|
21970
21952
|
});
|
|
21971
21953
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -21973,43 +21955,47 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
21973
21955
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21974
21956
|
});
|
|
21975
21957
|
}
|
|
21976
|
-
return Promise.resolve<
|
|
21958
|
+
return Promise.resolve<PagedResultOfMeasurementFormInstanceOverviewDto>(null as any);
|
|
21977
21959
|
}
|
|
21978
21960
|
|
|
21979
|
-
|
|
21980
|
-
let url_ = this.baseUrl + "/measurementforms/instances/
|
|
21961
|
+
postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto> {
|
|
21962
|
+
let url_ = this.baseUrl + "/measurementforms/instances/list";
|
|
21981
21963
|
url_ = url_.replace(/[?&]$/, "");
|
|
21982
21964
|
|
|
21983
21965
|
const content_ = JSON.stringify(request);
|
|
21984
21966
|
|
|
21985
21967
|
let options_: RequestInit = {
|
|
21986
21968
|
body: content_,
|
|
21987
|
-
method: "
|
|
21969
|
+
method: "POST",
|
|
21988
21970
|
headers: {
|
|
21989
21971
|
"Content-Type": "application/json",
|
|
21972
|
+
"Accept": "application/json"
|
|
21990
21973
|
}
|
|
21991
21974
|
};
|
|
21992
21975
|
|
|
21993
21976
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21994
21977
|
return this.http.fetch(url_, transformedOptions_);
|
|
21995
21978
|
}).then((_response: Response) => {
|
|
21996
|
-
return this.
|
|
21979
|
+
return this.processPostListMeasurementForms(_response);
|
|
21997
21980
|
});
|
|
21998
21981
|
}
|
|
21999
21982
|
|
|
22000
|
-
protected
|
|
21983
|
+
protected processPostListMeasurementForms(response: Response): Promise<PagedResultOfMeasurementFormInstanceOverviewDto> {
|
|
22001
21984
|
const status = response.status;
|
|
22002
21985
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22003
|
-
if (status ===
|
|
21986
|
+
if (status === 200) {
|
|
22004
21987
|
return response.text().then((_responseText) => {
|
|
22005
|
-
|
|
21988
|
+
let result200: any = null;
|
|
21989
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21990
|
+
result200 = PagedResultOfMeasurementFormInstanceOverviewDto.fromJS(resultData200);
|
|
21991
|
+
return result200;
|
|
22006
21992
|
});
|
|
22007
21993
|
} else if (status !== 200 && status !== 204) {
|
|
22008
21994
|
return response.text().then((_responseText) => {
|
|
22009
21995
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22010
21996
|
});
|
|
22011
21997
|
}
|
|
22012
|
-
return Promise.resolve<
|
|
21998
|
+
return Promise.resolve<PagedResultOfMeasurementFormInstanceOverviewDto>(null as any);
|
|
22013
21999
|
}
|
|
22014
22000
|
|
|
22015
22001
|
getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto> {
|
|
@@ -22053,88 +22039,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22053
22039
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22054
22040
|
}
|
|
22055
22041
|
|
|
22056
|
-
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22057
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
22058
|
-
if (id === undefined || id === null)
|
|
22059
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22060
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22061
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22062
|
-
|
|
22063
|
-
let options_: RequestInit = {
|
|
22064
|
-
method: "POST",
|
|
22065
|
-
headers: {
|
|
22066
|
-
"Accept": "application/json"
|
|
22067
|
-
}
|
|
22068
|
-
};
|
|
22069
|
-
|
|
22070
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22071
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22072
|
-
}).then((_response: Response) => {
|
|
22073
|
-
return this.processCreateMeasurementFormInstance(_response);
|
|
22074
|
-
});
|
|
22075
|
-
}
|
|
22076
|
-
|
|
22077
|
-
protected processCreateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22078
|
-
const status = response.status;
|
|
22079
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22080
|
-
if (status === 200) {
|
|
22081
|
-
return response.text().then((_responseText) => {
|
|
22082
|
-
let result200: any = null;
|
|
22083
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22084
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22085
|
-
return result200;
|
|
22086
|
-
});
|
|
22087
|
-
} else if (status !== 200 && status !== 204) {
|
|
22088
|
-
return response.text().then((_responseText) => {
|
|
22089
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22090
|
-
});
|
|
22091
|
-
}
|
|
22092
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22093
|
-
}
|
|
22094
|
-
|
|
22095
|
-
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
22096
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
22097
|
-
if (id === undefined || id === null)
|
|
22098
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22099
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22100
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22101
|
-
|
|
22102
|
-
const content_ = JSON.stringify(request);
|
|
22103
|
-
|
|
22104
|
-
let options_: RequestInit = {
|
|
22105
|
-
body: content_,
|
|
22106
|
-
method: "PUT",
|
|
22107
|
-
headers: {
|
|
22108
|
-
"Content-Type": "application/json",
|
|
22109
|
-
"Accept": "application/json"
|
|
22110
|
-
}
|
|
22111
|
-
};
|
|
22112
|
-
|
|
22113
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22114
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22115
|
-
}).then((_response: Response) => {
|
|
22116
|
-
return this.processUpdateMeasurementFormInstance(_response);
|
|
22117
|
-
});
|
|
22118
|
-
}
|
|
22119
|
-
|
|
22120
|
-
protected processUpdateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22121
|
-
const status = response.status;
|
|
22122
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22123
|
-
if (status === 200) {
|
|
22124
|
-
return response.text().then((_responseText) => {
|
|
22125
|
-
let result200: any = null;
|
|
22126
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22127
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22128
|
-
return result200;
|
|
22129
|
-
});
|
|
22130
|
-
} else if (status !== 200 && status !== 204) {
|
|
22131
|
-
return response.text().then((_responseText) => {
|
|
22132
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22133
|
-
});
|
|
22134
|
-
}
|
|
22135
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22136
|
-
}
|
|
22137
|
-
|
|
22138
22042
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]> {
|
|
22139
22043
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/feedback";
|
|
22140
22044
|
if (id === undefined || id === null)
|
|
@@ -22178,49 +22082,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22178
22082
|
return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
|
|
22179
22083
|
}
|
|
22180
22084
|
|
|
22181
|
-
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
22182
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
22183
|
-
if (id === undefined || id === null)
|
|
22184
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22185
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22186
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22187
|
-
|
|
22188
|
-
const content_ = JSON.stringify(request);
|
|
22189
|
-
|
|
22190
|
-
let options_: RequestInit = {
|
|
22191
|
-
body: content_,
|
|
22192
|
-
method: "POST",
|
|
22193
|
-
headers: {
|
|
22194
|
-
"Content-Type": "application/json",
|
|
22195
|
-
"Accept": "application/json"
|
|
22196
|
-
}
|
|
22197
|
-
};
|
|
22198
|
-
|
|
22199
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22200
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22201
|
-
}).then((_response: Response) => {
|
|
22202
|
-
return this.processCreateMeasurementFormInstance2(_response);
|
|
22203
|
-
});
|
|
22204
|
-
}
|
|
22205
|
-
|
|
22206
|
-
protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22207
|
-
const status = response.status;
|
|
22208
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22209
|
-
if (status === 200) {
|
|
22210
|
-
return response.text().then((_responseText) => {
|
|
22211
|
-
let result200: any = null;
|
|
22212
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22213
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22214
|
-
return result200;
|
|
22215
|
-
});
|
|
22216
|
-
} else if (status !== 200 && status !== 204) {
|
|
22217
|
-
return response.text().then((_responseText) => {
|
|
22218
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22219
|
-
});
|
|
22220
|
-
}
|
|
22221
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22222
|
-
}
|
|
22223
|
-
|
|
22224
22085
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto> {
|
|
22225
22086
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
|
|
22226
22087
|
if (id === undefined || id === null)
|
|
@@ -22262,162 +22123,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22262
22123
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22263
22124
|
}
|
|
22264
22125
|
|
|
22265
|
-
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22266
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
22267
|
-
if (id === undefined || id === null)
|
|
22268
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22269
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22270
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22271
|
-
|
|
22272
|
-
let options_: RequestInit = {
|
|
22273
|
-
method: "POST",
|
|
22274
|
-
headers: {
|
|
22275
|
-
"Accept": "application/json"
|
|
22276
|
-
}
|
|
22277
|
-
};
|
|
22278
|
-
|
|
22279
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22280
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22281
|
-
}).then((_response: Response) => {
|
|
22282
|
-
return this.processReactivateMeasurementFormInstance(_response);
|
|
22283
|
-
});
|
|
22284
|
-
}
|
|
22285
|
-
|
|
22286
|
-
protected processReactivateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22287
|
-
const status = response.status;
|
|
22288
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22289
|
-
if (status === 200) {
|
|
22290
|
-
return response.text().then((_responseText) => {
|
|
22291
|
-
let result200: any = null;
|
|
22292
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22293
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22294
|
-
return result200;
|
|
22295
|
-
});
|
|
22296
|
-
} else if (status !== 200 && status !== 204) {
|
|
22297
|
-
return response.text().then((_responseText) => {
|
|
22298
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22299
|
-
});
|
|
22300
|
-
}
|
|
22301
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22302
|
-
}
|
|
22303
|
-
|
|
22304
|
-
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22305
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/approve";
|
|
22306
|
-
if (id === undefined || id === null)
|
|
22307
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22308
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22309
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22310
|
-
|
|
22311
|
-
let options_: RequestInit = {
|
|
22312
|
-
method: "POST",
|
|
22313
|
-
headers: {
|
|
22314
|
-
"Accept": "application/json"
|
|
22315
|
-
}
|
|
22316
|
-
};
|
|
22317
|
-
|
|
22318
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22319
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22320
|
-
}).then((_response: Response) => {
|
|
22321
|
-
return this.processApproveMeasurementFormInstance(_response);
|
|
22322
|
-
});
|
|
22323
|
-
}
|
|
22324
|
-
|
|
22325
|
-
protected processApproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22326
|
-
const status = response.status;
|
|
22327
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22328
|
-
if (status === 200) {
|
|
22329
|
-
return response.text().then((_responseText) => {
|
|
22330
|
-
let result200: any = null;
|
|
22331
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22332
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22333
|
-
return result200;
|
|
22334
|
-
});
|
|
22335
|
-
} else if (status !== 200 && status !== 204) {
|
|
22336
|
-
return response.text().then((_responseText) => {
|
|
22337
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22338
|
-
});
|
|
22339
|
-
}
|
|
22340
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22341
|
-
}
|
|
22342
|
-
|
|
22343
|
-
disapproveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22344
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/disapprove";
|
|
22345
|
-
if (id === undefined || id === null)
|
|
22346
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22347
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22348
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22349
|
-
|
|
22350
|
-
let options_: RequestInit = {
|
|
22351
|
-
method: "POST",
|
|
22352
|
-
headers: {
|
|
22353
|
-
"Accept": "application/json"
|
|
22354
|
-
}
|
|
22355
|
-
};
|
|
22356
|
-
|
|
22357
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22358
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22359
|
-
}).then((_response: Response) => {
|
|
22360
|
-
return this.processDisapproveMeasurementFormInstance(_response);
|
|
22361
|
-
});
|
|
22362
|
-
}
|
|
22363
|
-
|
|
22364
|
-
protected processDisapproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22365
|
-
const status = response.status;
|
|
22366
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22367
|
-
if (status === 200) {
|
|
22368
|
-
return response.text().then((_responseText) => {
|
|
22369
|
-
let result200: any = null;
|
|
22370
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22371
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22372
|
-
return result200;
|
|
22373
|
-
});
|
|
22374
|
-
} else if (status !== 200 && status !== 204) {
|
|
22375
|
-
return response.text().then((_responseText) => {
|
|
22376
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22377
|
-
});
|
|
22378
|
-
}
|
|
22379
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22380
|
-
}
|
|
22381
|
-
|
|
22382
|
-
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22383
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
|
|
22384
|
-
if (id === undefined || id === null)
|
|
22385
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22386
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22387
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22388
|
-
|
|
22389
|
-
let options_: RequestInit = {
|
|
22390
|
-
method: "POST",
|
|
22391
|
-
headers: {
|
|
22392
|
-
"Accept": "application/json"
|
|
22393
|
-
}
|
|
22394
|
-
};
|
|
22395
|
-
|
|
22396
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22397
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22398
|
-
}).then((_response: Response) => {
|
|
22399
|
-
return this.processCancelMeasurementFormInstance(_response);
|
|
22400
|
-
});
|
|
22401
|
-
}
|
|
22402
|
-
|
|
22403
|
-
protected processCancelMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22404
|
-
const status = response.status;
|
|
22405
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22406
|
-
if (status === 200) {
|
|
22407
|
-
return response.text().then((_responseText) => {
|
|
22408
|
-
let result200: any = null;
|
|
22409
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22410
|
-
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22411
|
-
return result200;
|
|
22412
|
-
});
|
|
22413
|
-
} else if (status !== 200 && status !== 204) {
|
|
22414
|
-
return response.text().then((_responseText) => {
|
|
22415
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22416
|
-
});
|
|
22417
|
-
}
|
|
22418
|
-
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22419
|
-
}
|
|
22420
|
-
|
|
22421
22126
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
|
|
22422
22127
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
|
|
22423
22128
|
if (id === undefined || id === null)
|
|
@@ -23075,9 +22780,42 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
23075
22780
|
}
|
|
23076
22781
|
return Promise.resolve<DownloadDto>(null as any);
|
|
23077
22782
|
}
|
|
22783
|
+
}
|
|
23078
22784
|
|
|
23079
|
-
|
|
23080
|
-
|
|
22785
|
+
export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
22786
|
+
|
|
22787
|
+
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
22788
|
+
|
|
22789
|
+
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
22790
|
+
|
|
22791
|
+
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
22792
|
+
|
|
22793
|
+
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
22794
|
+
|
|
22795
|
+
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
22796
|
+
|
|
22797
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
22798
|
+
|
|
22799
|
+
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
22800
|
+
|
|
22801
|
+
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
22802
|
+
|
|
22803
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
22804
|
+
}
|
|
22805
|
+
|
|
22806
|
+
export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiBase implements IMeasurementFormsInstancesInstanceAdminClient {
|
|
22807
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22808
|
+
private baseUrl: string;
|
|
22809
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
22810
|
+
|
|
22811
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22812
|
+
super(configuration);
|
|
22813
|
+
this.http = http ? http : window as any;
|
|
22814
|
+
this.baseUrl = baseUrl ?? "";
|
|
22815
|
+
}
|
|
22816
|
+
|
|
22817
|
+
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
22818
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
23081
22819
|
if (id === undefined || id === null)
|
|
23082
22820
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23083
22821
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23093,18 +22831,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
23093
22831
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23094
22832
|
return this.http.fetch(url_, transformedOptions_);
|
|
23095
22833
|
}).then((_response: Response) => {
|
|
23096
|
-
return this.
|
|
22834
|
+
return this.processCreateMeasurementFormInstance(_response);
|
|
23097
22835
|
});
|
|
23098
22836
|
}
|
|
23099
22837
|
|
|
23100
|
-
protected
|
|
22838
|
+
protected processCreateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
23101
22839
|
const status = response.status;
|
|
23102
22840
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23103
22841
|
if (status === 200) {
|
|
23104
22842
|
return response.text().then((_responseText) => {
|
|
23105
22843
|
let result200: any = null;
|
|
23106
22844
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23107
|
-
result200 =
|
|
22845
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
23108
22846
|
return result200;
|
|
23109
22847
|
});
|
|
23110
22848
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -23112,7 +22850,299 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
23112
22850
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23113
22851
|
});
|
|
23114
22852
|
}
|
|
23115
|
-
return Promise.resolve<
|
|
22853
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22854
|
+
}
|
|
22855
|
+
|
|
22856
|
+
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
22857
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
22858
|
+
if (id === undefined || id === null)
|
|
22859
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22860
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22861
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22862
|
+
|
|
22863
|
+
const content_ = JSON.stringify(request);
|
|
22864
|
+
|
|
22865
|
+
let options_: RequestInit = {
|
|
22866
|
+
body: content_,
|
|
22867
|
+
method: "PUT",
|
|
22868
|
+
headers: {
|
|
22869
|
+
"Content-Type": "application/json",
|
|
22870
|
+
"Accept": "application/json"
|
|
22871
|
+
}
|
|
22872
|
+
};
|
|
22873
|
+
|
|
22874
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22875
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22876
|
+
}).then((_response: Response) => {
|
|
22877
|
+
return this.processUpdateMeasurementFormInstance(_response);
|
|
22878
|
+
});
|
|
22879
|
+
}
|
|
22880
|
+
|
|
22881
|
+
protected processUpdateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
22882
|
+
const status = response.status;
|
|
22883
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22884
|
+
if (status === 200) {
|
|
22885
|
+
return response.text().then((_responseText) => {
|
|
22886
|
+
let result200: any = null;
|
|
22887
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22888
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
22889
|
+
return result200;
|
|
22890
|
+
});
|
|
22891
|
+
} else if (status !== 200 && status !== 204) {
|
|
22892
|
+
return response.text().then((_responseText) => {
|
|
22893
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22894
|
+
});
|
|
22895
|
+
}
|
|
22896
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
22897
|
+
}
|
|
22898
|
+
|
|
22899
|
+
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
22900
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus?";
|
|
22901
|
+
if (status === null)
|
|
22902
|
+
throw new globalThis.Error("The parameter 'status' cannot be null.");
|
|
22903
|
+
else if (status !== undefined)
|
|
22904
|
+
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
22905
|
+
if (statusChangedSince !== undefined && statusChangedSince !== null)
|
|
22906
|
+
url_ += "statusChangedSince=" + encodeURIComponent(statusChangedSince ? "" + statusChangedSince.toISOString() : "") + "&";
|
|
22907
|
+
if (onlyWithReports !== undefined && onlyWithReports !== null)
|
|
22908
|
+
url_ += "onlyWithReports=" + encodeURIComponent("" + onlyWithReports) + "&";
|
|
22909
|
+
if (pageSize === null)
|
|
22910
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
22911
|
+
else if (pageSize !== undefined)
|
|
22912
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
22913
|
+
if (search !== undefined && search !== null)
|
|
22914
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
22915
|
+
if (continuationToken !== undefined && continuationToken !== null)
|
|
22916
|
+
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
22917
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22918
|
+
|
|
22919
|
+
let options_: RequestInit = {
|
|
22920
|
+
method: "GET",
|
|
22921
|
+
headers: {
|
|
22922
|
+
"Accept": "application/json"
|
|
22923
|
+
}
|
|
22924
|
+
};
|
|
22925
|
+
|
|
22926
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22927
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22928
|
+
}).then((_response: Response) => {
|
|
22929
|
+
return this.processListMeasurementFormsByStatus(_response);
|
|
22930
|
+
});
|
|
22931
|
+
}
|
|
22932
|
+
|
|
22933
|
+
protected processListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
22934
|
+
const status = response.status;
|
|
22935
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22936
|
+
if (status === 200) {
|
|
22937
|
+
return response.text().then((_responseText) => {
|
|
22938
|
+
let result200: any = null;
|
|
22939
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22940
|
+
result200 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
|
|
22941
|
+
return result200;
|
|
22942
|
+
});
|
|
22943
|
+
} else if (status !== 200 && status !== 204) {
|
|
22944
|
+
return response.text().then((_responseText) => {
|
|
22945
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22946
|
+
});
|
|
22947
|
+
}
|
|
22948
|
+
return Promise.resolve<PagedResultOfMeasurementFormInstanceDto>(null as any);
|
|
22949
|
+
}
|
|
22950
|
+
|
|
22951
|
+
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
22952
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus";
|
|
22953
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22954
|
+
|
|
22955
|
+
const content_ = JSON.stringify(request);
|
|
22956
|
+
|
|
22957
|
+
let options_: RequestInit = {
|
|
22958
|
+
body: content_,
|
|
22959
|
+
method: "POST",
|
|
22960
|
+
headers: {
|
|
22961
|
+
"Content-Type": "application/json",
|
|
22962
|
+
"Accept": "application/json"
|
|
22963
|
+
}
|
|
22964
|
+
};
|
|
22965
|
+
|
|
22966
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22967
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22968
|
+
}).then((_response: Response) => {
|
|
22969
|
+
return this.processPostListMeasurementFormsByStatus(_response);
|
|
22970
|
+
});
|
|
22971
|
+
}
|
|
22972
|
+
|
|
22973
|
+
protected processPostListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
22974
|
+
const status = response.status;
|
|
22975
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22976
|
+
if (status === 200) {
|
|
22977
|
+
return response.text().then((_responseText) => {
|
|
22978
|
+
let result200: any = null;
|
|
22979
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22980
|
+
result200 = PagedResultOfMeasurementFormInstanceDto.fromJS(resultData200);
|
|
22981
|
+
return result200;
|
|
22982
|
+
});
|
|
22983
|
+
} else if (status !== 200 && status !== 204) {
|
|
22984
|
+
return response.text().then((_responseText) => {
|
|
22985
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22986
|
+
});
|
|
22987
|
+
}
|
|
22988
|
+
return Promise.resolve<PagedResultOfMeasurementFormInstanceDto>(null as any);
|
|
22989
|
+
}
|
|
22990
|
+
|
|
22991
|
+
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void> {
|
|
22992
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
|
|
22993
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22994
|
+
|
|
22995
|
+
const content_ = JSON.stringify(request);
|
|
22996
|
+
|
|
22997
|
+
let options_: RequestInit = {
|
|
22998
|
+
body: content_,
|
|
22999
|
+
method: "DELETE",
|
|
23000
|
+
headers: {
|
|
23001
|
+
"Content-Type": "application/json",
|
|
23002
|
+
}
|
|
23003
|
+
};
|
|
23004
|
+
|
|
23005
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23006
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23007
|
+
}).then((_response: Response) => {
|
|
23008
|
+
return this.processDeleteInstancesBulk(_response);
|
|
23009
|
+
});
|
|
23010
|
+
}
|
|
23011
|
+
|
|
23012
|
+
protected processDeleteInstancesBulk(response: Response): Promise<void> {
|
|
23013
|
+
const status = response.status;
|
|
23014
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23015
|
+
if (status === 204) {
|
|
23016
|
+
return response.text().then((_responseText) => {
|
|
23017
|
+
return;
|
|
23018
|
+
});
|
|
23019
|
+
} else if (status !== 200 && status !== 204) {
|
|
23020
|
+
return response.text().then((_responseText) => {
|
|
23021
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23022
|
+
});
|
|
23023
|
+
}
|
|
23024
|
+
return Promise.resolve<void>(null as any);
|
|
23025
|
+
}
|
|
23026
|
+
|
|
23027
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
23028
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
23029
|
+
if (id === undefined || id === null)
|
|
23030
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23031
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23032
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23033
|
+
|
|
23034
|
+
const content_ = JSON.stringify(request);
|
|
23035
|
+
|
|
23036
|
+
let options_: RequestInit = {
|
|
23037
|
+
body: content_,
|
|
23038
|
+
method: "POST",
|
|
23039
|
+
headers: {
|
|
23040
|
+
"Content-Type": "application/json",
|
|
23041
|
+
"Accept": "application/json"
|
|
23042
|
+
}
|
|
23043
|
+
};
|
|
23044
|
+
|
|
23045
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23046
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23047
|
+
}).then((_response: Response) => {
|
|
23048
|
+
return this.processCreateMeasurementFormInstance2(_response);
|
|
23049
|
+
});
|
|
23050
|
+
}
|
|
23051
|
+
|
|
23052
|
+
protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
23053
|
+
const status = response.status;
|
|
23054
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23055
|
+
if (status === 200) {
|
|
23056
|
+
return response.text().then((_responseText) => {
|
|
23057
|
+
let result200: any = null;
|
|
23058
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23059
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
23060
|
+
return result200;
|
|
23061
|
+
});
|
|
23062
|
+
} else if (status !== 200 && status !== 204) {
|
|
23063
|
+
return response.text().then((_responseText) => {
|
|
23064
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23065
|
+
});
|
|
23066
|
+
}
|
|
23067
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
23068
|
+
}
|
|
23069
|
+
|
|
23070
|
+
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
23071
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
23072
|
+
if (id === undefined || id === null)
|
|
23073
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23074
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23075
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23076
|
+
|
|
23077
|
+
let options_: RequestInit = {
|
|
23078
|
+
method: "POST",
|
|
23079
|
+
headers: {
|
|
23080
|
+
"Accept": "application/json"
|
|
23081
|
+
}
|
|
23082
|
+
};
|
|
23083
|
+
|
|
23084
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23085
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23086
|
+
}).then((_response: Response) => {
|
|
23087
|
+
return this.processReactivateMeasurementFormInstance(_response);
|
|
23088
|
+
});
|
|
23089
|
+
}
|
|
23090
|
+
|
|
23091
|
+
protected processReactivateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
23092
|
+
const status = response.status;
|
|
23093
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23094
|
+
if (status === 200) {
|
|
23095
|
+
return response.text().then((_responseText) => {
|
|
23096
|
+
let result200: any = null;
|
|
23097
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23098
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
23099
|
+
return result200;
|
|
23100
|
+
});
|
|
23101
|
+
} else if (status !== 200 && status !== 204) {
|
|
23102
|
+
return response.text().then((_responseText) => {
|
|
23103
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23104
|
+
});
|
|
23105
|
+
}
|
|
23106
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
23107
|
+
}
|
|
23108
|
+
|
|
23109
|
+
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
23110
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/cancel";
|
|
23111
|
+
if (id === undefined || id === null)
|
|
23112
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23113
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23114
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23115
|
+
|
|
23116
|
+
let options_: RequestInit = {
|
|
23117
|
+
method: "POST",
|
|
23118
|
+
headers: {
|
|
23119
|
+
"Accept": "application/json"
|
|
23120
|
+
}
|
|
23121
|
+
};
|
|
23122
|
+
|
|
23123
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23124
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23125
|
+
}).then((_response: Response) => {
|
|
23126
|
+
return this.processCancelMeasurementFormInstance(_response);
|
|
23127
|
+
});
|
|
23128
|
+
}
|
|
23129
|
+
|
|
23130
|
+
protected processCancelMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
23131
|
+
const status = response.status;
|
|
23132
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23133
|
+
if (status === 200) {
|
|
23134
|
+
return response.text().then((_responseText) => {
|
|
23135
|
+
let result200: any = null;
|
|
23136
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23137
|
+
result200 = MeasurementFormInstanceDto.fromJS(resultData200);
|
|
23138
|
+
return result200;
|
|
23139
|
+
});
|
|
23140
|
+
} else if (status !== 200 && status !== 204) {
|
|
23141
|
+
return response.text().then((_responseText) => {
|
|
23142
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23143
|
+
});
|
|
23144
|
+
}
|
|
23145
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
23116
23146
|
}
|
|
23117
23147
|
|
|
23118
23148
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void> {
|
|
@@ -23826,18 +23856,6 @@ export interface IWorkordersClient {
|
|
|
23826
23856
|
|
|
23827
23857
|
checkResourceStatus(id: string): Promise<ResourceExistDto>;
|
|
23828
23858
|
|
|
23829
|
-
/**
|
|
23830
|
-
* Register start work or setup on a workorder operation.
|
|
23831
|
-
* @deprecated
|
|
23832
|
-
*/
|
|
23833
|
-
startWorkorderOperation(id: string, operation: number, request: StartWorkOperationRequest): Promise<void>;
|
|
23834
|
-
|
|
23835
|
-
/**
|
|
23836
|
-
* Register end work or setup on a workorder operation.
|
|
23837
|
-
* @deprecated
|
|
23838
|
-
*/
|
|
23839
|
-
stopWorkorderOperation(id: string, operation: number, request: StopWorkOperationRequest): Promise<void>;
|
|
23840
|
-
|
|
23841
23859
|
/**
|
|
23842
23860
|
* Register a completed work order operation event
|
|
23843
23861
|
*/
|
|
@@ -23853,6 +23871,11 @@ export interface IWorkordersClient {
|
|
|
23853
23871
|
*/
|
|
23854
23872
|
stopWorkorderOperationV2(id: string, operation: number, request: StopWorkOperationRequest): Promise<WorkorderOperationEventDto>;
|
|
23855
23873
|
|
|
23874
|
+
/**
|
|
23875
|
+
* Sync work order operation
|
|
23876
|
+
*/
|
|
23877
|
+
syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto>;
|
|
23878
|
+
|
|
23856
23879
|
listActiveWorkorderOperations(): Promise<WorkorderOperationEventDto[]>;
|
|
23857
23880
|
|
|
23858
23881
|
deleteWorkorderOperationEvent(id: string, operation: number, eventId: string): Promise<void>;
|
|
@@ -24277,57 +24300,10 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24277
24300
|
}
|
|
24278
24301
|
|
|
24279
24302
|
/**
|
|
24280
|
-
* Register
|
|
24281
|
-
* @deprecated
|
|
24282
|
-
*/
|
|
24283
|
-
startWorkorderOperation(id: string, operation: number, request: StartWorkOperationRequest): Promise<void> {
|
|
24284
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/start";
|
|
24285
|
-
if (id === undefined || id === null)
|
|
24286
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24287
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24288
|
-
if (operation === undefined || operation === null)
|
|
24289
|
-
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
24290
|
-
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
24291
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24292
|
-
|
|
24293
|
-
const content_ = JSON.stringify(request);
|
|
24294
|
-
|
|
24295
|
-
let options_: RequestInit = {
|
|
24296
|
-
body: content_,
|
|
24297
|
-
method: "POST",
|
|
24298
|
-
headers: {
|
|
24299
|
-
"Content-Type": "application/json",
|
|
24300
|
-
}
|
|
24301
|
-
};
|
|
24302
|
-
|
|
24303
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24304
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24305
|
-
}).then((_response: Response) => {
|
|
24306
|
-
return this.processStartWorkorderOperation(_response);
|
|
24307
|
-
});
|
|
24308
|
-
}
|
|
24309
|
-
|
|
24310
|
-
protected processStartWorkorderOperation(response: Response): Promise<void> {
|
|
24311
|
-
const status = response.status;
|
|
24312
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24313
|
-
if (status === 204) {
|
|
24314
|
-
return response.text().then((_responseText) => {
|
|
24315
|
-
return;
|
|
24316
|
-
});
|
|
24317
|
-
} else if (status !== 200 && status !== 204) {
|
|
24318
|
-
return response.text().then((_responseText) => {
|
|
24319
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24320
|
-
});
|
|
24321
|
-
}
|
|
24322
|
-
return Promise.resolve<void>(null as any);
|
|
24323
|
-
}
|
|
24324
|
-
|
|
24325
|
-
/**
|
|
24326
|
-
* Register end work or setup on a workorder operation.
|
|
24327
|
-
* @deprecated
|
|
24303
|
+
* Register a completed work order operation event
|
|
24328
24304
|
*/
|
|
24329
|
-
|
|
24330
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/
|
|
24305
|
+
registerWorkorderOperationEvent(id: string, operation: number, request: RegisterWorkorderOperationEventRequest): Promise<WorkorderOperationEventDto> {
|
|
24306
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/events";
|
|
24331
24307
|
if (id === undefined || id === null)
|
|
24332
24308
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24333
24309
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -24343,36 +24319,40 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24343
24319
|
method: "POST",
|
|
24344
24320
|
headers: {
|
|
24345
24321
|
"Content-Type": "application/json",
|
|
24322
|
+
"Accept": "application/json"
|
|
24346
24323
|
}
|
|
24347
24324
|
};
|
|
24348
24325
|
|
|
24349
24326
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24350
24327
|
return this.http.fetch(url_, transformedOptions_);
|
|
24351
24328
|
}).then((_response: Response) => {
|
|
24352
|
-
return this.
|
|
24329
|
+
return this.processRegisterWorkorderOperationEvent(_response);
|
|
24353
24330
|
});
|
|
24354
24331
|
}
|
|
24355
24332
|
|
|
24356
|
-
protected
|
|
24333
|
+
protected processRegisterWorkorderOperationEvent(response: Response): Promise<WorkorderOperationEventDto> {
|
|
24357
24334
|
const status = response.status;
|
|
24358
24335
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24359
|
-
if (status ===
|
|
24336
|
+
if (status === 200) {
|
|
24360
24337
|
return response.text().then((_responseText) => {
|
|
24361
|
-
|
|
24338
|
+
let result200: any = null;
|
|
24339
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24340
|
+
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
24341
|
+
return result200;
|
|
24362
24342
|
});
|
|
24363
24343
|
} else if (status !== 200 && status !== 204) {
|
|
24364
24344
|
return response.text().then((_responseText) => {
|
|
24365
24345
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24366
24346
|
});
|
|
24367
24347
|
}
|
|
24368
|
-
return Promise.resolve<
|
|
24348
|
+
return Promise.resolve<WorkorderOperationEventDto>(null as any);
|
|
24369
24349
|
}
|
|
24370
24350
|
|
|
24371
24351
|
/**
|
|
24372
|
-
* Register
|
|
24352
|
+
* Register start work or setup on a workorder operation.
|
|
24373
24353
|
*/
|
|
24374
|
-
|
|
24375
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/
|
|
24354
|
+
startWorkorderOperationV2(id: string, operation: number, request: StartWorkOperationRequest): Promise<WorkorderOperationEventDto> {
|
|
24355
|
+
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/start";
|
|
24376
24356
|
if (id === undefined || id === null)
|
|
24377
24357
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24378
24358
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -24395,11 +24375,11 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24395
24375
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24396
24376
|
return this.http.fetch(url_, transformedOptions_);
|
|
24397
24377
|
}).then((_response: Response) => {
|
|
24398
|
-
return this.
|
|
24378
|
+
return this.processStartWorkorderOperationV2(_response);
|
|
24399
24379
|
});
|
|
24400
24380
|
}
|
|
24401
24381
|
|
|
24402
|
-
protected
|
|
24382
|
+
protected processStartWorkorderOperationV2(response: Response): Promise<WorkorderOperationEventDto> {
|
|
24403
24383
|
const status = response.status;
|
|
24404
24384
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24405
24385
|
if (status === 200) {
|
|
@@ -24418,10 +24398,10 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24418
24398
|
}
|
|
24419
24399
|
|
|
24420
24400
|
/**
|
|
24421
|
-
* Register
|
|
24401
|
+
* Register end work or setup on a workorder operation.
|
|
24422
24402
|
*/
|
|
24423
|
-
|
|
24424
|
-
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/
|
|
24403
|
+
stopWorkorderOperationV2(id: string, operation: number, request: StopWorkOperationRequest): Promise<WorkorderOperationEventDto> {
|
|
24404
|
+
let url_ = this.baseUrl + "/v2/erp/workorders/{id}/operations/{operation}/stop";
|
|
24425
24405
|
if (id === undefined || id === null)
|
|
24426
24406
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24427
24407
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -24444,11 +24424,11 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24444
24424
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24445
24425
|
return this.http.fetch(url_, transformedOptions_);
|
|
24446
24426
|
}).then((_response: Response) => {
|
|
24447
|
-
return this.
|
|
24427
|
+
return this.processStopWorkorderOperationV2(_response);
|
|
24448
24428
|
});
|
|
24449
24429
|
}
|
|
24450
24430
|
|
|
24451
|
-
protected
|
|
24431
|
+
protected processStopWorkorderOperationV2(response: Response): Promise<WorkorderOperationEventDto> {
|
|
24452
24432
|
const status = response.status;
|
|
24453
24433
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24454
24434
|
if (status === 200) {
|
|
@@ -24467,10 +24447,10 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24467
24447
|
}
|
|
24468
24448
|
|
|
24469
24449
|
/**
|
|
24470
|
-
*
|
|
24450
|
+
* Sync work order operation
|
|
24471
24451
|
*/
|
|
24472
|
-
|
|
24473
|
-
let url_ = this.baseUrl + "/
|
|
24452
|
+
syncWorkorderOperation(id: string, operation: number, request: SyncWorkorderOperationRequest): Promise<WorkorderOperationEventDto> {
|
|
24453
|
+
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/sync";
|
|
24474
24454
|
if (id === undefined || id === null)
|
|
24475
24455
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24476
24456
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -24493,11 +24473,11 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24493
24473
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24494
24474
|
return this.http.fetch(url_, transformedOptions_);
|
|
24495
24475
|
}).then((_response: Response) => {
|
|
24496
|
-
return this.
|
|
24476
|
+
return this.processSyncWorkorderOperation(_response);
|
|
24497
24477
|
});
|
|
24498
24478
|
}
|
|
24499
24479
|
|
|
24500
|
-
protected
|
|
24480
|
+
protected processSyncWorkorderOperation(response: Response): Promise<WorkorderOperationEventDto> {
|
|
24501
24481
|
const status = response.status;
|
|
24502
24482
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24503
24483
|
if (status === 200) {
|
|
@@ -30736,6 +30716,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
|
|
|
30736
30716
|
sharedAccessUri?: string | null;
|
|
30737
30717
|
contentIndicator?: string | null;
|
|
30738
30718
|
noContentIndicator?: string | null;
|
|
30719
|
+
showSerialNumbersOnFrontPage?: boolean;
|
|
30720
|
+
showSerialNumbersOnCoC?: boolean;
|
|
30739
30721
|
elements!: MrbTemplateElementDto[];
|
|
30740
30722
|
tableOfContents?: MrbTemplateTableOfContentsDto | null;
|
|
30741
30723
|
|
|
@@ -30763,6 +30745,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
|
|
|
30763
30745
|
this.sharedAccessUri = _data["sharedAccessUri"];
|
|
30764
30746
|
this.contentIndicator = _data["contentIndicator"];
|
|
30765
30747
|
this.noContentIndicator = _data["noContentIndicator"];
|
|
30748
|
+
this.showSerialNumbersOnFrontPage = _data["showSerialNumbersOnFrontPage"];
|
|
30749
|
+
this.showSerialNumbersOnCoC = _data["showSerialNumbersOnCoC"];
|
|
30766
30750
|
if (Array.isArray(_data["elements"])) {
|
|
30767
30751
|
this.elements = [] as any;
|
|
30768
30752
|
for (let item of _data["elements"])
|
|
@@ -30791,6 +30775,8 @@ export class MrbTemplateDto implements IMrbTemplateDto {
|
|
|
30791
30775
|
data["sharedAccessUri"] = this.sharedAccessUri;
|
|
30792
30776
|
data["contentIndicator"] = this.contentIndicator;
|
|
30793
30777
|
data["noContentIndicator"] = this.noContentIndicator;
|
|
30778
|
+
data["showSerialNumbersOnFrontPage"] = this.showSerialNumbersOnFrontPage;
|
|
30779
|
+
data["showSerialNumbersOnCoC"] = this.showSerialNumbersOnCoC;
|
|
30794
30780
|
if (Array.isArray(this.elements)) {
|
|
30795
30781
|
data["elements"] = [];
|
|
30796
30782
|
for (let item of this.elements)
|
|
@@ -30812,6 +30798,8 @@ export interface IMrbTemplateDto {
|
|
|
30812
30798
|
sharedAccessUri?: string | null;
|
|
30813
30799
|
contentIndicator?: string | null;
|
|
30814
30800
|
noContentIndicator?: string | null;
|
|
30801
|
+
showSerialNumbersOnFrontPage?: boolean;
|
|
30802
|
+
showSerialNumbersOnCoC?: boolean;
|
|
30815
30803
|
elements: MrbTemplateElementDto[];
|
|
30816
30804
|
tableOfContents?: MrbTemplateTableOfContentsDto | null;
|
|
30817
30805
|
}
|
|
@@ -31325,6 +31313,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
|
|
|
31325
31313
|
hideVendorBatchInfo!: boolean;
|
|
31326
31314
|
lotLabel?: string | null;
|
|
31327
31315
|
vendorBatchLabel?: string | null;
|
|
31316
|
+
ownArticleLabel?: string | null;
|
|
31328
31317
|
coCStatement?: string | null;
|
|
31329
31318
|
addressLines!: string[];
|
|
31330
31319
|
sequenceFormat?: string | null;
|
|
@@ -31355,6 +31344,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
|
|
|
31355
31344
|
this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
|
|
31356
31345
|
this.lotLabel = _data["lotLabel"];
|
|
31357
31346
|
this.vendorBatchLabel = _data["vendorBatchLabel"];
|
|
31347
|
+
this.ownArticleLabel = _data["ownArticleLabel"];
|
|
31358
31348
|
this.coCStatement = _data["coCStatement"];
|
|
31359
31349
|
if (Array.isArray(_data["addressLines"])) {
|
|
31360
31350
|
this.addressLines = [] as any;
|
|
@@ -31389,6 +31379,7 @@ export class MrbCompanySettingsDto implements IMrbCompanySettingsDto {
|
|
|
31389
31379
|
data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
|
|
31390
31380
|
data["lotLabel"] = this.lotLabel;
|
|
31391
31381
|
data["vendorBatchLabel"] = this.vendorBatchLabel;
|
|
31382
|
+
data["ownArticleLabel"] = this.ownArticleLabel;
|
|
31392
31383
|
data["coCStatement"] = this.coCStatement;
|
|
31393
31384
|
if (Array.isArray(this.addressLines)) {
|
|
31394
31385
|
data["addressLines"] = [];
|
|
@@ -31416,6 +31407,7 @@ export interface IMrbCompanySettingsDto {
|
|
|
31416
31407
|
hideVendorBatchInfo: boolean;
|
|
31417
31408
|
lotLabel?: string | null;
|
|
31418
31409
|
vendorBatchLabel?: string | null;
|
|
31410
|
+
ownArticleLabel?: string | null;
|
|
31419
31411
|
coCStatement?: string | null;
|
|
31420
31412
|
addressLines: string[];
|
|
31421
31413
|
sequenceFormat?: string | null;
|
|
@@ -31433,6 +31425,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
|
|
|
31433
31425
|
hideVendorBatchInfo!: boolean;
|
|
31434
31426
|
lotLabel?: string | null;
|
|
31435
31427
|
vendorBatchLabel?: string | null;
|
|
31428
|
+
ownArticleLabel?: string | null;
|
|
31436
31429
|
coCStatement?: string | null;
|
|
31437
31430
|
addressLines!: string[];
|
|
31438
31431
|
sequenceFormat?: string | null;
|
|
@@ -31463,6 +31456,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
|
|
|
31463
31456
|
this.hideVendorBatchInfo = _data["hideVendorBatchInfo"];
|
|
31464
31457
|
this.lotLabel = _data["lotLabel"];
|
|
31465
31458
|
this.vendorBatchLabel = _data["vendorBatchLabel"];
|
|
31459
|
+
this.ownArticleLabel = _data["ownArticleLabel"];
|
|
31466
31460
|
this.coCStatement = _data["coCStatement"];
|
|
31467
31461
|
if (Array.isArray(_data["addressLines"])) {
|
|
31468
31462
|
this.addressLines = [] as any;
|
|
@@ -31497,6 +31491,7 @@ export class UpsertMrbCompanySettings implements IUpsertMrbCompanySettings {
|
|
|
31497
31491
|
data["hideVendorBatchInfo"] = this.hideVendorBatchInfo;
|
|
31498
31492
|
data["lotLabel"] = this.lotLabel;
|
|
31499
31493
|
data["vendorBatchLabel"] = this.vendorBatchLabel;
|
|
31494
|
+
data["ownArticleLabel"] = this.ownArticleLabel;
|
|
31500
31495
|
data["coCStatement"] = this.coCStatement;
|
|
31501
31496
|
if (Array.isArray(this.addressLines)) {
|
|
31502
31497
|
data["addressLines"] = [];
|
|
@@ -31524,6 +31519,7 @@ export interface IUpsertMrbCompanySettings {
|
|
|
31524
31519
|
hideVendorBatchInfo: boolean;
|
|
31525
31520
|
lotLabel?: string | null;
|
|
31526
31521
|
vendorBatchLabel?: string | null;
|
|
31522
|
+
ownArticleLabel?: string | null;
|
|
31527
31523
|
coCStatement?: string | null;
|
|
31528
31524
|
addressLines: string[];
|
|
31529
31525
|
sequenceFormat?: string | null;
|
|
@@ -56509,46 +56505,6 @@ export interface IAddResourceTypeForNeedsGenerator {
|
|
|
56509
56505
|
resourceType: string;
|
|
56510
56506
|
}
|
|
56511
56507
|
|
|
56512
|
-
export class MeasurementFrequencyDto implements IMeasurementFrequencyDto {
|
|
56513
|
-
id!: number;
|
|
56514
|
-
name!: string;
|
|
56515
|
-
|
|
56516
|
-
constructor(data?: IMeasurementFrequencyDto) {
|
|
56517
|
-
if (data) {
|
|
56518
|
-
for (var property in data) {
|
|
56519
|
-
if (data.hasOwnProperty(property))
|
|
56520
|
-
(this as any)[property] = (data as any)[property];
|
|
56521
|
-
}
|
|
56522
|
-
}
|
|
56523
|
-
}
|
|
56524
|
-
|
|
56525
|
-
init(_data?: any) {
|
|
56526
|
-
if (_data) {
|
|
56527
|
-
this.id = _data["id"];
|
|
56528
|
-
this.name = _data["name"];
|
|
56529
|
-
}
|
|
56530
|
-
}
|
|
56531
|
-
|
|
56532
|
-
static fromJS(data: any): MeasurementFrequencyDto {
|
|
56533
|
-
data = typeof data === 'object' ? data : {};
|
|
56534
|
-
let result = new MeasurementFrequencyDto();
|
|
56535
|
-
result.init(data);
|
|
56536
|
-
return result;
|
|
56537
|
-
}
|
|
56538
|
-
|
|
56539
|
-
toJSON(data?: any) {
|
|
56540
|
-
data = typeof data === 'object' ? data : {};
|
|
56541
|
-
data["id"] = this.id;
|
|
56542
|
-
data["name"] = this.name;
|
|
56543
|
-
return data;
|
|
56544
|
-
}
|
|
56545
|
-
}
|
|
56546
|
-
|
|
56547
|
-
export interface IMeasurementFrequencyDto {
|
|
56548
|
-
id: number;
|
|
56549
|
-
name: string;
|
|
56550
|
-
}
|
|
56551
|
-
|
|
56552
56508
|
export class PagedResultOfSchemaFeedbackDto implements IPagedResultOfSchemaFeedbackDto {
|
|
56553
56509
|
results!: SchemaFeedbackDto[];
|
|
56554
56510
|
continuationToken?: string | null;
|
|
@@ -56922,75 +56878,68 @@ export interface IListMeasurementFormSchemasRequest {
|
|
|
56922
56878
|
continuationToken?: string | null;
|
|
56923
56879
|
}
|
|
56924
56880
|
|
|
56925
|
-
export class
|
|
56926
|
-
|
|
56927
|
-
|
|
56881
|
+
export class MeasurementFrequencyDto implements IMeasurementFrequencyDto {
|
|
56882
|
+
id!: number;
|
|
56883
|
+
name!: string;
|
|
56928
56884
|
|
|
56929
|
-
constructor(data?:
|
|
56885
|
+
constructor(data?: IMeasurementFrequencyDto) {
|
|
56930
56886
|
if (data) {
|
|
56931
56887
|
for (var property in data) {
|
|
56932
56888
|
if (data.hasOwnProperty(property))
|
|
56933
56889
|
(this as any)[property] = (data as any)[property];
|
|
56934
56890
|
}
|
|
56935
56891
|
}
|
|
56936
|
-
if (!data) {
|
|
56937
|
-
this.results = [];
|
|
56938
|
-
}
|
|
56939
56892
|
}
|
|
56940
56893
|
|
|
56941
56894
|
init(_data?: any) {
|
|
56942
56895
|
if (_data) {
|
|
56943
|
-
|
|
56944
|
-
|
|
56945
|
-
for (let item of _data["results"])
|
|
56946
|
-
this.results!.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
56947
|
-
}
|
|
56948
|
-
this.continuationToken = _data["continuationToken"];
|
|
56896
|
+
this.id = _data["id"];
|
|
56897
|
+
this.name = _data["name"];
|
|
56949
56898
|
}
|
|
56950
56899
|
}
|
|
56951
56900
|
|
|
56952
|
-
static fromJS(data: any):
|
|
56901
|
+
static fromJS(data: any): MeasurementFrequencyDto {
|
|
56953
56902
|
data = typeof data === 'object' ? data : {};
|
|
56954
|
-
let result = new
|
|
56903
|
+
let result = new MeasurementFrequencyDto();
|
|
56955
56904
|
result.init(data);
|
|
56956
56905
|
return result;
|
|
56957
56906
|
}
|
|
56958
56907
|
|
|
56959
56908
|
toJSON(data?: any) {
|
|
56960
56909
|
data = typeof data === 'object' ? data : {};
|
|
56961
|
-
|
|
56962
|
-
|
|
56963
|
-
for (let item of this.results)
|
|
56964
|
-
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
56965
|
-
}
|
|
56966
|
-
data["continuationToken"] = this.continuationToken;
|
|
56910
|
+
data["id"] = this.id;
|
|
56911
|
+
data["name"] = this.name;
|
|
56967
56912
|
return data;
|
|
56968
56913
|
}
|
|
56969
56914
|
}
|
|
56970
56915
|
|
|
56971
|
-
export interface
|
|
56972
|
-
|
|
56973
|
-
|
|
56916
|
+
export interface IMeasurementFrequencyDto {
|
|
56917
|
+
id: number;
|
|
56918
|
+
name: string;
|
|
56974
56919
|
}
|
|
56975
56920
|
|
|
56976
|
-
export class
|
|
56921
|
+
export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
56977
56922
|
id!: string;
|
|
56978
56923
|
readonly!: boolean;
|
|
56979
|
-
partName?: string | null;
|
|
56980
56924
|
partNumber?: string | null;
|
|
56925
|
+
partName?: string | null;
|
|
56981
56926
|
partRevision?: string | null;
|
|
56982
56927
|
drawing?: string | null;
|
|
56983
56928
|
drawingRevision?: string | null;
|
|
56984
|
-
drawingUrl?: string | null;
|
|
56985
56929
|
customerId?: string | null;
|
|
56986
56930
|
customerName?: string | null;
|
|
56987
56931
|
quantity!: number;
|
|
56988
56932
|
status!: MeasurementFormInstanceStatus;
|
|
56989
|
-
|
|
56990
|
-
|
|
56933
|
+
statusChangedDate?: Date | null;
|
|
56934
|
+
schemas!: MeasurementFormWorkorderSchemaDto[];
|
|
56935
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
56936
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
56937
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
56991
56938
|
progress!: MeasurementFormProgressDto;
|
|
56939
|
+
approvedReportUrl?: string | null;
|
|
56940
|
+
currentResource?: ResourceDto | null;
|
|
56992
56941
|
|
|
56993
|
-
constructor(data?:
|
|
56942
|
+
constructor(data?: IMeasurementFormInstanceDto) {
|
|
56994
56943
|
if (data) {
|
|
56995
56944
|
for (var property in data) {
|
|
56996
56945
|
if (data.hasOwnProperty(property))
|
|
@@ -56999,6 +56948,8 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
56999
56948
|
}
|
|
57000
56949
|
if (!data) {
|
|
57001
56950
|
this.schemas = [];
|
|
56951
|
+
this.serialNumbers = [];
|
|
56952
|
+
this.suppliers = [];
|
|
57002
56953
|
this.progress = new MeasurementFormProgressDto();
|
|
57003
56954
|
}
|
|
57004
56955
|
}
|
|
@@ -57007,29 +56958,45 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
57007
56958
|
if (_data) {
|
|
57008
56959
|
this.id = _data["id"];
|
|
57009
56960
|
this.readonly = _data["readonly"];
|
|
57010
|
-
this.partName = _data["partName"];
|
|
57011
56961
|
this.partNumber = _data["partNumber"];
|
|
56962
|
+
this.partName = _data["partName"];
|
|
57012
56963
|
this.partRevision = _data["partRevision"];
|
|
57013
56964
|
this.drawing = _data["drawing"];
|
|
57014
56965
|
this.drawingRevision = _data["drawingRevision"];
|
|
57015
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
57016
56966
|
this.customerId = _data["customerId"];
|
|
57017
56967
|
this.customerName = _data["customerName"];
|
|
57018
56968
|
this.quantity = _data["quantity"];
|
|
57019
56969
|
this.status = _data["status"];
|
|
56970
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined as any;
|
|
57020
56971
|
if (Array.isArray(_data["schemas"])) {
|
|
57021
56972
|
this.schemas = [] as any;
|
|
57022
56973
|
for (let item of _data["schemas"])
|
|
57023
|
-
this.schemas!.push(
|
|
56974
|
+
this.schemas!.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
|
|
56975
|
+
}
|
|
56976
|
+
if (Array.isArray(_data["sequences"])) {
|
|
56977
|
+
this.sequences = [] as any;
|
|
56978
|
+
for (let item of _data["sequences"])
|
|
56979
|
+
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
56980
|
+
}
|
|
56981
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
56982
|
+
this.serialNumbers = [] as any;
|
|
56983
|
+
for (let item of _data["serialNumbers"])
|
|
56984
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
56985
|
+
}
|
|
56986
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
56987
|
+
this.suppliers = [] as any;
|
|
56988
|
+
for (let item of _data["suppliers"])
|
|
56989
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
57024
56990
|
}
|
|
57025
|
-
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined as any;
|
|
57026
56991
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
56992
|
+
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
56993
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined as any;
|
|
57027
56994
|
}
|
|
57028
56995
|
}
|
|
57029
56996
|
|
|
57030
|
-
static fromJS(data: any):
|
|
56997
|
+
static fromJS(data: any): MeasurementFormInstanceDto {
|
|
57031
56998
|
data = typeof data === 'object' ? data : {};
|
|
57032
|
-
let result = new
|
|
56999
|
+
let result = new MeasurementFormInstanceDto();
|
|
57033
57000
|
result.init(data);
|
|
57034
57001
|
return result;
|
|
57035
57002
|
}
|
|
@@ -57038,68 +57005,113 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
57038
57005
|
data = typeof data === 'object' ? data : {};
|
|
57039
57006
|
data["id"] = this.id;
|
|
57040
57007
|
data["readonly"] = this.readonly;
|
|
57041
|
-
data["partName"] = this.partName;
|
|
57042
57008
|
data["partNumber"] = this.partNumber;
|
|
57009
|
+
data["partName"] = this.partName;
|
|
57043
57010
|
data["partRevision"] = this.partRevision;
|
|
57044
57011
|
data["drawing"] = this.drawing;
|
|
57045
57012
|
data["drawingRevision"] = this.drawingRevision;
|
|
57046
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
57047
57013
|
data["customerId"] = this.customerId;
|
|
57048
57014
|
data["customerName"] = this.customerName;
|
|
57049
57015
|
data["quantity"] = this.quantity;
|
|
57050
57016
|
data["status"] = this.status;
|
|
57017
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined as any;
|
|
57051
57018
|
if (Array.isArray(this.schemas)) {
|
|
57052
57019
|
data["schemas"] = [];
|
|
57053
57020
|
for (let item of this.schemas)
|
|
57054
57021
|
data["schemas"].push(item ? item.toJSON() : undefined as any);
|
|
57055
57022
|
}
|
|
57056
|
-
|
|
57023
|
+
if (Array.isArray(this.sequences)) {
|
|
57024
|
+
data["sequences"] = [];
|
|
57025
|
+
for (let item of this.sequences)
|
|
57026
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
57027
|
+
}
|
|
57028
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
57029
|
+
data["serialNumbers"] = [];
|
|
57030
|
+
for (let item of this.serialNumbers)
|
|
57031
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
57032
|
+
}
|
|
57033
|
+
if (Array.isArray(this.suppliers)) {
|
|
57034
|
+
data["suppliers"] = [];
|
|
57035
|
+
for (let item of this.suppliers)
|
|
57036
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
57037
|
+
}
|
|
57057
57038
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57039
|
+
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
57040
|
+
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined as any;
|
|
57058
57041
|
return data;
|
|
57059
57042
|
}
|
|
57060
57043
|
}
|
|
57061
57044
|
|
|
57062
|
-
export interface
|
|
57045
|
+
export interface IMeasurementFormInstanceDto {
|
|
57063
57046
|
id: string;
|
|
57064
57047
|
readonly: boolean;
|
|
57065
|
-
partName?: string | null;
|
|
57066
57048
|
partNumber?: string | null;
|
|
57049
|
+
partName?: string | null;
|
|
57067
57050
|
partRevision?: string | null;
|
|
57068
57051
|
drawing?: string | null;
|
|
57069
57052
|
drawingRevision?: string | null;
|
|
57070
|
-
drawingUrl?: string | null;
|
|
57071
57053
|
customerId?: string | null;
|
|
57072
57054
|
customerName?: string | null;
|
|
57073
57055
|
quantity: number;
|
|
57074
57056
|
status: MeasurementFormInstanceStatus;
|
|
57075
|
-
|
|
57076
|
-
|
|
57057
|
+
statusChangedDate?: Date | null;
|
|
57058
|
+
schemas: MeasurementFormWorkorderSchemaDto[];
|
|
57059
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
57060
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
57061
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
57077
57062
|
progress: MeasurementFormProgressDto;
|
|
57063
|
+
approvedReportUrl?: string | null;
|
|
57064
|
+
currentResource?: ResourceDto | null;
|
|
57078
57065
|
}
|
|
57079
57066
|
|
|
57080
57067
|
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
57081
57068
|
|
|
57082
|
-
export class
|
|
57069
|
+
export class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkorderSchemaDto {
|
|
57083
57070
|
id!: string;
|
|
57071
|
+
partNumber?: string | null;
|
|
57072
|
+
partRevision?: string | null;
|
|
57073
|
+
drawing?: string | null;
|
|
57074
|
+
drawingRevision?: string | null;
|
|
57075
|
+
customerId?: string | null;
|
|
57076
|
+
drawingUrl?: string | null;
|
|
57077
|
+
markedDrawingUrl?: string | null;
|
|
57078
|
+
excludeFromCustomerDocumentation!: boolean;
|
|
57079
|
+
versionId!: number;
|
|
57080
|
+
specification?: string | null;
|
|
57081
|
+
progress!: MeasurementFormProgressDto;
|
|
57084
57082
|
|
|
57085
|
-
constructor(data?:
|
|
57083
|
+
constructor(data?: IMeasurementFormWorkorderSchemaDto) {
|
|
57086
57084
|
if (data) {
|
|
57087
57085
|
for (var property in data) {
|
|
57088
57086
|
if (data.hasOwnProperty(property))
|
|
57089
57087
|
(this as any)[property] = (data as any)[property];
|
|
57090
57088
|
}
|
|
57091
57089
|
}
|
|
57090
|
+
if (!data) {
|
|
57091
|
+
this.progress = new MeasurementFormProgressDto();
|
|
57092
|
+
}
|
|
57092
57093
|
}
|
|
57093
57094
|
|
|
57094
57095
|
init(_data?: any) {
|
|
57095
57096
|
if (_data) {
|
|
57096
57097
|
this.id = _data["id"];
|
|
57098
|
+
this.partNumber = _data["partNumber"];
|
|
57099
|
+
this.partRevision = _data["partRevision"];
|
|
57100
|
+
this.drawing = _data["drawing"];
|
|
57101
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
57102
|
+
this.customerId = _data["customerId"];
|
|
57103
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
57104
|
+
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
57105
|
+
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
57106
|
+
this.versionId = _data["versionId"];
|
|
57107
|
+
this.specification = _data["specification"];
|
|
57108
|
+
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57097
57109
|
}
|
|
57098
57110
|
}
|
|
57099
57111
|
|
|
57100
|
-
static fromJS(data: any):
|
|
57112
|
+
static fromJS(data: any): MeasurementFormWorkorderSchemaDto {
|
|
57101
57113
|
data = typeof data === 'object' ? data : {};
|
|
57102
|
-
let result = new
|
|
57114
|
+
let result = new MeasurementFormWorkorderSchemaDto();
|
|
57103
57115
|
result.init(data);
|
|
57104
57116
|
return result;
|
|
57105
57117
|
}
|
|
@@ -57107,68 +57119,34 @@ export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFor
|
|
|
57107
57119
|
toJSON(data?: any) {
|
|
57108
57120
|
data = typeof data === 'object' ? data : {};
|
|
57109
57121
|
data["id"] = this.id;
|
|
57122
|
+
data["partNumber"] = this.partNumber;
|
|
57123
|
+
data["partRevision"] = this.partRevision;
|
|
57124
|
+
data["drawing"] = this.drawing;
|
|
57125
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
57126
|
+
data["customerId"] = this.customerId;
|
|
57127
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
57128
|
+
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
57129
|
+
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
57130
|
+
data["versionId"] = this.versionId;
|
|
57131
|
+
data["specification"] = this.specification;
|
|
57132
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57110
57133
|
return data;
|
|
57111
57134
|
}
|
|
57112
57135
|
}
|
|
57113
57136
|
|
|
57114
|
-
export interface
|
|
57137
|
+
export interface IMeasurementFormWorkorderSchemaDto {
|
|
57115
57138
|
id: string;
|
|
57116
|
-
|
|
57117
|
-
|
|
57118
|
-
|
|
57119
|
-
|
|
57120
|
-
|
|
57121
|
-
|
|
57122
|
-
|
|
57123
|
-
|
|
57124
|
-
|
|
57125
|
-
|
|
57126
|
-
|
|
57127
|
-
if (data) {
|
|
57128
|
-
for (var property in data) {
|
|
57129
|
-
if (data.hasOwnProperty(property))
|
|
57130
|
-
(this as any)[property] = (data as any)[property];
|
|
57131
|
-
}
|
|
57132
|
-
}
|
|
57133
|
-
}
|
|
57134
|
-
|
|
57135
|
-
init(_data?: any) {
|
|
57136
|
-
if (_data) {
|
|
57137
|
-
this.supplierId = _data["supplierId"];
|
|
57138
|
-
this.supplierName = _data["supplierName"];
|
|
57139
|
-
this.available = _data["available"];
|
|
57140
|
-
this.procurementOrder = _data["procurementOrder"];
|
|
57141
|
-
this.procurementLine = _data["procurementLine"];
|
|
57142
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57143
|
-
}
|
|
57144
|
-
}
|
|
57145
|
-
|
|
57146
|
-
static fromJS(data: any): MeasurementFormInstanceSupplierDto {
|
|
57147
|
-
data = typeof data === 'object' ? data : {};
|
|
57148
|
-
let result = new MeasurementFormInstanceSupplierDto();
|
|
57149
|
-
result.init(data);
|
|
57150
|
-
return result;
|
|
57151
|
-
}
|
|
57152
|
-
|
|
57153
|
-
toJSON(data?: any) {
|
|
57154
|
-
data = typeof data === 'object' ? data : {};
|
|
57155
|
-
data["supplierId"] = this.supplierId;
|
|
57156
|
-
data["supplierName"] = this.supplierName;
|
|
57157
|
-
data["available"] = this.available;
|
|
57158
|
-
data["procurementOrder"] = this.procurementOrder;
|
|
57159
|
-
data["procurementLine"] = this.procurementLine;
|
|
57160
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57161
|
-
return data;
|
|
57162
|
-
}
|
|
57163
|
-
}
|
|
57164
|
-
|
|
57165
|
-
export interface IMeasurementFormInstanceSupplierDto {
|
|
57166
|
-
supplierId: string;
|
|
57167
|
-
supplierName?: string | null;
|
|
57168
|
-
available?: boolean;
|
|
57169
|
-
procurementOrder?: string | null;
|
|
57170
|
-
procurementLine?: number | null;
|
|
57171
|
-
externalOrderNumber?: string | null;
|
|
57139
|
+
partNumber?: string | null;
|
|
57140
|
+
partRevision?: string | null;
|
|
57141
|
+
drawing?: string | null;
|
|
57142
|
+
drawingRevision?: string | null;
|
|
57143
|
+
customerId?: string | null;
|
|
57144
|
+
drawingUrl?: string | null;
|
|
57145
|
+
markedDrawingUrl?: string | null;
|
|
57146
|
+
excludeFromCustomerDocumentation: boolean;
|
|
57147
|
+
versionId: number;
|
|
57148
|
+
specification?: string | null;
|
|
57149
|
+
progress: MeasurementFormProgressDto;
|
|
57172
57150
|
}
|
|
57173
57151
|
|
|
57174
57152
|
export class MeasurementFormProgressDto implements IMeasurementFormProgressDto {
|
|
@@ -57219,15 +57197,12 @@ export interface IMeasurementFormProgressDto {
|
|
|
57219
57197
|
progress: number;
|
|
57220
57198
|
}
|
|
57221
57199
|
|
|
57222
|
-
export class
|
|
57223
|
-
|
|
57224
|
-
|
|
57225
|
-
|
|
57226
|
-
tenantId?: string | null;
|
|
57227
|
-
inactive?: boolean | null;
|
|
57228
|
-
includeInactiveSupplierAccess?: boolean | null;
|
|
57200
|
+
export class MeasurementFormWorkorderSequenceDto implements IMeasurementFormWorkorderSequenceDto {
|
|
57201
|
+
lot?: string | null;
|
|
57202
|
+
sequence!: string;
|
|
57203
|
+
serialNumber?: string | null;
|
|
57229
57204
|
|
|
57230
|
-
constructor(data?:
|
|
57205
|
+
constructor(data?: IMeasurementFormWorkorderSequenceDto) {
|
|
57231
57206
|
if (data) {
|
|
57232
57207
|
for (var property in data) {
|
|
57233
57208
|
if (data.hasOwnProperty(property))
|
|
@@ -57238,48 +57213,139 @@ export class ListMeasurementFormsRequest implements IListMeasurementFormsRequest
|
|
|
57238
57213
|
|
|
57239
57214
|
init(_data?: any) {
|
|
57240
57215
|
if (_data) {
|
|
57241
|
-
this.
|
|
57242
|
-
this.
|
|
57243
|
-
this.
|
|
57244
|
-
this.tenantId = _data["tenantId"];
|
|
57245
|
-
this.inactive = _data["inactive"];
|
|
57246
|
-
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
57216
|
+
this.lot = _data["lot"];
|
|
57217
|
+
this.sequence = _data["sequence"];
|
|
57218
|
+
this.serialNumber = _data["serialNumber"];
|
|
57247
57219
|
}
|
|
57248
57220
|
}
|
|
57249
57221
|
|
|
57250
|
-
static fromJS(data: any):
|
|
57222
|
+
static fromJS(data: any): MeasurementFormWorkorderSequenceDto {
|
|
57251
57223
|
data = typeof data === 'object' ? data : {};
|
|
57252
|
-
let result = new
|
|
57224
|
+
let result = new MeasurementFormWorkorderSequenceDto();
|
|
57253
57225
|
result.init(data);
|
|
57254
57226
|
return result;
|
|
57255
57227
|
}
|
|
57256
57228
|
|
|
57257
57229
|
toJSON(data?: any) {
|
|
57258
57230
|
data = typeof data === 'object' ? data : {};
|
|
57259
|
-
data["
|
|
57260
|
-
data["
|
|
57261
|
-
data["
|
|
57262
|
-
data["tenantId"] = this.tenantId;
|
|
57263
|
-
data["inactive"] = this.inactive;
|
|
57264
|
-
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
57231
|
+
data["lot"] = this.lot;
|
|
57232
|
+
data["sequence"] = this.sequence;
|
|
57233
|
+
data["serialNumber"] = this.serialNumber;
|
|
57265
57234
|
return data;
|
|
57266
57235
|
}
|
|
57267
57236
|
}
|
|
57268
57237
|
|
|
57269
|
-
export interface
|
|
57270
|
-
|
|
57271
|
-
|
|
57272
|
-
|
|
57273
|
-
tenantId?: string | null;
|
|
57274
|
-
inactive?: boolean | null;
|
|
57275
|
-
includeInactiveSupplierAccess?: boolean | null;
|
|
57238
|
+
export interface IMeasurementFormWorkorderSequenceDto {
|
|
57239
|
+
lot?: string | null;
|
|
57240
|
+
sequence: string;
|
|
57241
|
+
serialNumber?: string | null;
|
|
57276
57242
|
}
|
|
57277
57243
|
|
|
57278
|
-
export class
|
|
57279
|
-
|
|
57244
|
+
export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
|
|
57245
|
+
lot?: string | null;
|
|
57246
|
+
serialNumber!: string;
|
|
57247
|
+
customerSerialNumber?: string | null;
|
|
57248
|
+
|
|
57249
|
+
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
57250
|
+
if (data) {
|
|
57251
|
+
for (var property in data) {
|
|
57252
|
+
if (data.hasOwnProperty(property))
|
|
57253
|
+
(this as any)[property] = (data as any)[property];
|
|
57254
|
+
}
|
|
57255
|
+
}
|
|
57256
|
+
}
|
|
57257
|
+
|
|
57258
|
+
init(_data?: any) {
|
|
57259
|
+
if (_data) {
|
|
57260
|
+
this.lot = _data["lot"];
|
|
57261
|
+
this.serialNumber = _data["serialNumber"];
|
|
57262
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
57263
|
+
}
|
|
57264
|
+
}
|
|
57265
|
+
|
|
57266
|
+
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
57267
|
+
data = typeof data === 'object' ? data : {};
|
|
57268
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
57269
|
+
result.init(data);
|
|
57270
|
+
return result;
|
|
57271
|
+
}
|
|
57272
|
+
|
|
57273
|
+
toJSON(data?: any) {
|
|
57274
|
+
data = typeof data === 'object' ? data : {};
|
|
57275
|
+
data["lot"] = this.lot;
|
|
57276
|
+
data["serialNumber"] = this.serialNumber;
|
|
57277
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
57278
|
+
return data;
|
|
57279
|
+
}
|
|
57280
|
+
}
|
|
57281
|
+
|
|
57282
|
+
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
57283
|
+
lot?: string | null;
|
|
57284
|
+
serialNumber: string;
|
|
57285
|
+
customerSerialNumber?: string | null;
|
|
57286
|
+
}
|
|
57287
|
+
|
|
57288
|
+
export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
|
|
57289
|
+
supplierId!: string;
|
|
57290
|
+
supplierName?: string | null;
|
|
57291
|
+
available?: boolean;
|
|
57292
|
+
procurementOrder?: string | null;
|
|
57293
|
+
procurementLine?: number | null;
|
|
57294
|
+
externalOrderNumber?: string | null;
|
|
57295
|
+
|
|
57296
|
+
constructor(data?: IMeasurementFormWorkorderSupplierDto) {
|
|
57297
|
+
if (data) {
|
|
57298
|
+
for (var property in data) {
|
|
57299
|
+
if (data.hasOwnProperty(property))
|
|
57300
|
+
(this as any)[property] = (data as any)[property];
|
|
57301
|
+
}
|
|
57302
|
+
}
|
|
57303
|
+
}
|
|
57304
|
+
|
|
57305
|
+
init(_data?: any) {
|
|
57306
|
+
if (_data) {
|
|
57307
|
+
this.supplierId = _data["supplierId"];
|
|
57308
|
+
this.supplierName = _data["supplierName"];
|
|
57309
|
+
this.available = _data["available"];
|
|
57310
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
57311
|
+
this.procurementLine = _data["procurementLine"];
|
|
57312
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57313
|
+
}
|
|
57314
|
+
}
|
|
57315
|
+
|
|
57316
|
+
static fromJS(data: any): MeasurementFormWorkorderSupplierDto {
|
|
57317
|
+
data = typeof data === 'object' ? data : {};
|
|
57318
|
+
let result = new MeasurementFormWorkorderSupplierDto();
|
|
57319
|
+
result.init(data);
|
|
57320
|
+
return result;
|
|
57321
|
+
}
|
|
57322
|
+
|
|
57323
|
+
toJSON(data?: any) {
|
|
57324
|
+
data = typeof data === 'object' ? data : {};
|
|
57325
|
+
data["supplierId"] = this.supplierId;
|
|
57326
|
+
data["supplierName"] = this.supplierName;
|
|
57327
|
+
data["available"] = this.available;
|
|
57328
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
57329
|
+
data["procurementLine"] = this.procurementLine;
|
|
57330
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57331
|
+
return data;
|
|
57332
|
+
}
|
|
57333
|
+
}
|
|
57334
|
+
|
|
57335
|
+
export interface IMeasurementFormWorkorderSupplierDto {
|
|
57336
|
+
supplierId: string;
|
|
57337
|
+
supplierName?: string | null;
|
|
57338
|
+
available?: boolean;
|
|
57339
|
+
procurementOrder?: string | null;
|
|
57340
|
+
procurementLine?: number | null;
|
|
57341
|
+
externalOrderNumber?: string | null;
|
|
57342
|
+
}
|
|
57343
|
+
|
|
57344
|
+
export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57345
|
+
results!: MeasurementFormInstanceOverviewDto[];
|
|
57280
57346
|
continuationToken?: string | null;
|
|
57281
57347
|
|
|
57282
|
-
constructor(data?:
|
|
57348
|
+
constructor(data?: IPagedResultOfMeasurementFormInstanceOverviewDto) {
|
|
57283
57349
|
if (data) {
|
|
57284
57350
|
for (var property in data) {
|
|
57285
57351
|
if (data.hasOwnProperty(property))
|
|
@@ -57296,15 +57362,15 @@ export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMe
|
|
|
57296
57362
|
if (Array.isArray(_data["results"])) {
|
|
57297
57363
|
this.results = [] as any;
|
|
57298
57364
|
for (let item of _data["results"])
|
|
57299
|
-
this.results!.push(
|
|
57365
|
+
this.results!.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
57300
57366
|
}
|
|
57301
57367
|
this.continuationToken = _data["continuationToken"];
|
|
57302
57368
|
}
|
|
57303
57369
|
}
|
|
57304
57370
|
|
|
57305
|
-
static fromJS(data: any):
|
|
57371
|
+
static fromJS(data: any): PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57306
57372
|
data = typeof data === 'object' ? data : {};
|
|
57307
|
-
let result = new
|
|
57373
|
+
let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
|
|
57308
57374
|
result.init(data);
|
|
57309
57375
|
return result;
|
|
57310
57376
|
}
|
|
@@ -57321,33 +57387,29 @@ export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMe
|
|
|
57321
57387
|
}
|
|
57322
57388
|
}
|
|
57323
57389
|
|
|
57324
|
-
export interface
|
|
57325
|
-
results:
|
|
57390
|
+
export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57391
|
+
results: MeasurementFormInstanceOverviewDto[];
|
|
57326
57392
|
continuationToken?: string | null;
|
|
57327
57393
|
}
|
|
57328
57394
|
|
|
57329
|
-
export class
|
|
57395
|
+
export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
|
|
57330
57396
|
id!: string;
|
|
57331
57397
|
readonly!: boolean;
|
|
57332
|
-
partNumber?: string | null;
|
|
57333
57398
|
partName?: string | null;
|
|
57399
|
+
partNumber?: string | null;
|
|
57334
57400
|
partRevision?: string | null;
|
|
57335
57401
|
drawing?: string | null;
|
|
57336
57402
|
drawingRevision?: string | null;
|
|
57403
|
+
drawingUrl?: string | null;
|
|
57337
57404
|
customerId?: string | null;
|
|
57338
57405
|
customerName?: string | null;
|
|
57339
57406
|
quantity!: number;
|
|
57340
57407
|
status!: MeasurementFormInstanceStatus;
|
|
57341
|
-
|
|
57342
|
-
|
|
57343
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
57344
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
57345
|
-
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
57408
|
+
schemas!: MeasurementFormInstanceSchemaOverviewDto[];
|
|
57409
|
+
supplierData?: MeasurementFormInstanceSupplierDto | null;
|
|
57346
57410
|
progress!: MeasurementFormProgressDto;
|
|
57347
|
-
approvedReportUrl?: string | null;
|
|
57348
|
-
currentResource?: ResourceDto | null;
|
|
57349
57411
|
|
|
57350
|
-
constructor(data?:
|
|
57412
|
+
constructor(data?: IMeasurementFormInstanceOverviewDto) {
|
|
57351
57413
|
if (data) {
|
|
57352
57414
|
for (var property in data) {
|
|
57353
57415
|
if (data.hasOwnProperty(property))
|
|
@@ -57356,8 +57418,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57356
57418
|
}
|
|
57357
57419
|
if (!data) {
|
|
57358
57420
|
this.schemas = [];
|
|
57359
|
-
this.serialNumbers = [];
|
|
57360
|
-
this.suppliers = [];
|
|
57361
57421
|
this.progress = new MeasurementFormProgressDto();
|
|
57362
57422
|
}
|
|
57363
57423
|
}
|
|
@@ -57366,45 +57426,29 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57366
57426
|
if (_data) {
|
|
57367
57427
|
this.id = _data["id"];
|
|
57368
57428
|
this.readonly = _data["readonly"];
|
|
57369
|
-
this.partNumber = _data["partNumber"];
|
|
57370
57429
|
this.partName = _data["partName"];
|
|
57430
|
+
this.partNumber = _data["partNumber"];
|
|
57371
57431
|
this.partRevision = _data["partRevision"];
|
|
57372
57432
|
this.drawing = _data["drawing"];
|
|
57373
57433
|
this.drawingRevision = _data["drawingRevision"];
|
|
57434
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
57374
57435
|
this.customerId = _data["customerId"];
|
|
57375
57436
|
this.customerName = _data["customerName"];
|
|
57376
57437
|
this.quantity = _data["quantity"];
|
|
57377
57438
|
this.status = _data["status"];
|
|
57378
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined as any;
|
|
57379
57439
|
if (Array.isArray(_data["schemas"])) {
|
|
57380
57440
|
this.schemas = [] as any;
|
|
57381
57441
|
for (let item of _data["schemas"])
|
|
57382
|
-
this.schemas!.push(
|
|
57383
|
-
}
|
|
57384
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57385
|
-
this.sequences = [] as any;
|
|
57386
|
-
for (let item of _data["sequences"])
|
|
57387
|
-
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
57388
|
-
}
|
|
57389
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
57390
|
-
this.serialNumbers = [] as any;
|
|
57391
|
-
for (let item of _data["serialNumbers"])
|
|
57392
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
57393
|
-
}
|
|
57394
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
57395
|
-
this.suppliers = [] as any;
|
|
57396
|
-
for (let item of _data["suppliers"])
|
|
57397
|
-
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
57442
|
+
this.schemas!.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
|
|
57398
57443
|
}
|
|
57444
|
+
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined as any;
|
|
57399
57445
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57400
|
-
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
57401
|
-
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined as any;
|
|
57402
57446
|
}
|
|
57403
57447
|
}
|
|
57404
57448
|
|
|
57405
|
-
static fromJS(data: any):
|
|
57449
|
+
static fromJS(data: any): MeasurementFormInstanceOverviewDto {
|
|
57406
57450
|
data = typeof data === 'object' ? data : {};
|
|
57407
|
-
let result = new
|
|
57451
|
+
let result = new MeasurementFormInstanceOverviewDto();
|
|
57408
57452
|
result.init(data);
|
|
57409
57453
|
return result;
|
|
57410
57454
|
}
|
|
@@ -57413,111 +57457,66 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57413
57457
|
data = typeof data === 'object' ? data : {};
|
|
57414
57458
|
data["id"] = this.id;
|
|
57415
57459
|
data["readonly"] = this.readonly;
|
|
57416
|
-
data["partNumber"] = this.partNumber;
|
|
57417
57460
|
data["partName"] = this.partName;
|
|
57461
|
+
data["partNumber"] = this.partNumber;
|
|
57418
57462
|
data["partRevision"] = this.partRevision;
|
|
57419
57463
|
data["drawing"] = this.drawing;
|
|
57420
57464
|
data["drawingRevision"] = this.drawingRevision;
|
|
57465
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
57421
57466
|
data["customerId"] = this.customerId;
|
|
57422
57467
|
data["customerName"] = this.customerName;
|
|
57423
57468
|
data["quantity"] = this.quantity;
|
|
57424
57469
|
data["status"] = this.status;
|
|
57425
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined as any;
|
|
57426
57470
|
if (Array.isArray(this.schemas)) {
|
|
57427
57471
|
data["schemas"] = [];
|
|
57428
57472
|
for (let item of this.schemas)
|
|
57429
57473
|
data["schemas"].push(item ? item.toJSON() : undefined as any);
|
|
57430
57474
|
}
|
|
57431
|
-
|
|
57432
|
-
data["sequences"] = [];
|
|
57433
|
-
for (let item of this.sequences)
|
|
57434
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
57435
|
-
}
|
|
57436
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
57437
|
-
data["serialNumbers"] = [];
|
|
57438
|
-
for (let item of this.serialNumbers)
|
|
57439
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
57440
|
-
}
|
|
57441
|
-
if (Array.isArray(this.suppliers)) {
|
|
57442
|
-
data["suppliers"] = [];
|
|
57443
|
-
for (let item of this.suppliers)
|
|
57444
|
-
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
57445
|
-
}
|
|
57475
|
+
data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined as any;
|
|
57446
57476
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57447
|
-
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
57448
|
-
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined as any;
|
|
57449
57477
|
return data;
|
|
57450
57478
|
}
|
|
57451
57479
|
}
|
|
57452
57480
|
|
|
57453
|
-
export interface
|
|
57481
|
+
export interface IMeasurementFormInstanceOverviewDto {
|
|
57454
57482
|
id: string;
|
|
57455
57483
|
readonly: boolean;
|
|
57456
|
-
partNumber?: string | null;
|
|
57457
57484
|
partName?: string | null;
|
|
57485
|
+
partNumber?: string | null;
|
|
57458
57486
|
partRevision?: string | null;
|
|
57459
57487
|
drawing?: string | null;
|
|
57460
57488
|
drawingRevision?: string | null;
|
|
57489
|
+
drawingUrl?: string | null;
|
|
57461
57490
|
customerId?: string | null;
|
|
57462
57491
|
customerName?: string | null;
|
|
57463
57492
|
quantity: number;
|
|
57464
57493
|
status: MeasurementFormInstanceStatus;
|
|
57465
|
-
|
|
57466
|
-
|
|
57467
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
57468
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
57469
|
-
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
57494
|
+
schemas: MeasurementFormInstanceSchemaOverviewDto[];
|
|
57495
|
+
supplierData?: MeasurementFormInstanceSupplierDto | null;
|
|
57470
57496
|
progress: MeasurementFormProgressDto;
|
|
57471
|
-
approvedReportUrl?: string | null;
|
|
57472
|
-
currentResource?: ResourceDto | null;
|
|
57473
57497
|
}
|
|
57474
57498
|
|
|
57475
|
-
export class
|
|
57499
|
+
export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
|
|
57476
57500
|
id!: string;
|
|
57477
|
-
partNumber?: string | null;
|
|
57478
|
-
partRevision?: string | null;
|
|
57479
|
-
drawing?: string | null;
|
|
57480
|
-
drawingRevision?: string | null;
|
|
57481
|
-
customerId?: string | null;
|
|
57482
|
-
drawingUrl?: string | null;
|
|
57483
|
-
markedDrawingUrl?: string | null;
|
|
57484
|
-
excludeFromCustomerDocumentation!: boolean;
|
|
57485
|
-
versionId!: number;
|
|
57486
|
-
specification?: string | null;
|
|
57487
|
-
progress!: MeasurementFormProgressDto;
|
|
57488
57501
|
|
|
57489
|
-
constructor(data?:
|
|
57502
|
+
constructor(data?: IMeasurementFormInstanceSchemaOverviewDto) {
|
|
57490
57503
|
if (data) {
|
|
57491
57504
|
for (var property in data) {
|
|
57492
57505
|
if (data.hasOwnProperty(property))
|
|
57493
57506
|
(this as any)[property] = (data as any)[property];
|
|
57494
57507
|
}
|
|
57495
57508
|
}
|
|
57496
|
-
if (!data) {
|
|
57497
|
-
this.progress = new MeasurementFormProgressDto();
|
|
57498
|
-
}
|
|
57499
57509
|
}
|
|
57500
57510
|
|
|
57501
57511
|
init(_data?: any) {
|
|
57502
57512
|
if (_data) {
|
|
57503
57513
|
this.id = _data["id"];
|
|
57504
|
-
this.partNumber = _data["partNumber"];
|
|
57505
|
-
this.partRevision = _data["partRevision"];
|
|
57506
|
-
this.drawing = _data["drawing"];
|
|
57507
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
57508
|
-
this.customerId = _data["customerId"];
|
|
57509
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
57510
|
-
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
57511
|
-
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
57512
|
-
this.versionId = _data["versionId"];
|
|
57513
|
-
this.specification = _data["specification"];
|
|
57514
|
-
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57515
57514
|
}
|
|
57516
57515
|
}
|
|
57517
57516
|
|
|
57518
|
-
static fromJS(data: any):
|
|
57517
|
+
static fromJS(data: any): MeasurementFormInstanceSchemaOverviewDto {
|
|
57519
57518
|
data = typeof data === 'object' ? data : {};
|
|
57520
|
-
let result = new
|
|
57519
|
+
let result = new MeasurementFormInstanceSchemaOverviewDto();
|
|
57521
57520
|
result.init(data);
|
|
57522
57521
|
return result;
|
|
57523
57522
|
}
|
|
@@ -57525,125 +57524,15 @@ export class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkor
|
|
|
57525
57524
|
toJSON(data?: any) {
|
|
57526
57525
|
data = typeof data === 'object' ? data : {};
|
|
57527
57526
|
data["id"] = this.id;
|
|
57528
|
-
data["partNumber"] = this.partNumber;
|
|
57529
|
-
data["partRevision"] = this.partRevision;
|
|
57530
|
-
data["drawing"] = this.drawing;
|
|
57531
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
57532
|
-
data["customerId"] = this.customerId;
|
|
57533
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
57534
|
-
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
57535
|
-
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
57536
|
-
data["versionId"] = this.versionId;
|
|
57537
|
-
data["specification"] = this.specification;
|
|
57538
|
-
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57539
57527
|
return data;
|
|
57540
57528
|
}
|
|
57541
57529
|
}
|
|
57542
57530
|
|
|
57543
|
-
export interface
|
|
57531
|
+
export interface IMeasurementFormInstanceSchemaOverviewDto {
|
|
57544
57532
|
id: string;
|
|
57545
|
-
partNumber?: string | null;
|
|
57546
|
-
partRevision?: string | null;
|
|
57547
|
-
drawing?: string | null;
|
|
57548
|
-
drawingRevision?: string | null;
|
|
57549
|
-
customerId?: string | null;
|
|
57550
|
-
drawingUrl?: string | null;
|
|
57551
|
-
markedDrawingUrl?: string | null;
|
|
57552
|
-
excludeFromCustomerDocumentation: boolean;
|
|
57553
|
-
versionId: number;
|
|
57554
|
-
specification?: string | null;
|
|
57555
|
-
progress: MeasurementFormProgressDto;
|
|
57556
|
-
}
|
|
57557
|
-
|
|
57558
|
-
export class MeasurementFormWorkorderSequenceDto implements IMeasurementFormWorkorderSequenceDto {
|
|
57559
|
-
lot?: string | null;
|
|
57560
|
-
sequence!: string;
|
|
57561
|
-
serialNumber?: string | null;
|
|
57562
|
-
|
|
57563
|
-
constructor(data?: IMeasurementFormWorkorderSequenceDto) {
|
|
57564
|
-
if (data) {
|
|
57565
|
-
for (var property in data) {
|
|
57566
|
-
if (data.hasOwnProperty(property))
|
|
57567
|
-
(this as any)[property] = (data as any)[property];
|
|
57568
|
-
}
|
|
57569
|
-
}
|
|
57570
|
-
}
|
|
57571
|
-
|
|
57572
|
-
init(_data?: any) {
|
|
57573
|
-
if (_data) {
|
|
57574
|
-
this.lot = _data["lot"];
|
|
57575
|
-
this.sequence = _data["sequence"];
|
|
57576
|
-
this.serialNumber = _data["serialNumber"];
|
|
57577
|
-
}
|
|
57578
|
-
}
|
|
57579
|
-
|
|
57580
|
-
static fromJS(data: any): MeasurementFormWorkorderSequenceDto {
|
|
57581
|
-
data = typeof data === 'object' ? data : {};
|
|
57582
|
-
let result = new MeasurementFormWorkorderSequenceDto();
|
|
57583
|
-
result.init(data);
|
|
57584
|
-
return result;
|
|
57585
|
-
}
|
|
57586
|
-
|
|
57587
|
-
toJSON(data?: any) {
|
|
57588
|
-
data = typeof data === 'object' ? data : {};
|
|
57589
|
-
data["lot"] = this.lot;
|
|
57590
|
-
data["sequence"] = this.sequence;
|
|
57591
|
-
data["serialNumber"] = this.serialNumber;
|
|
57592
|
-
return data;
|
|
57593
|
-
}
|
|
57594
|
-
}
|
|
57595
|
-
|
|
57596
|
-
export interface IMeasurementFormWorkorderSequenceDto {
|
|
57597
|
-
lot?: string | null;
|
|
57598
|
-
sequence: string;
|
|
57599
|
-
serialNumber?: string | null;
|
|
57600
57533
|
}
|
|
57601
57534
|
|
|
57602
|
-
export class
|
|
57603
|
-
lot?: string | null;
|
|
57604
|
-
serialNumber!: string;
|
|
57605
|
-
customerSerialNumber?: string | null;
|
|
57606
|
-
|
|
57607
|
-
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
57608
|
-
if (data) {
|
|
57609
|
-
for (var property in data) {
|
|
57610
|
-
if (data.hasOwnProperty(property))
|
|
57611
|
-
(this as any)[property] = (data as any)[property];
|
|
57612
|
-
}
|
|
57613
|
-
}
|
|
57614
|
-
}
|
|
57615
|
-
|
|
57616
|
-
init(_data?: any) {
|
|
57617
|
-
if (_data) {
|
|
57618
|
-
this.lot = _data["lot"];
|
|
57619
|
-
this.serialNumber = _data["serialNumber"];
|
|
57620
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
57621
|
-
}
|
|
57622
|
-
}
|
|
57623
|
-
|
|
57624
|
-
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
57625
|
-
data = typeof data === 'object' ? data : {};
|
|
57626
|
-
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
57627
|
-
result.init(data);
|
|
57628
|
-
return result;
|
|
57629
|
-
}
|
|
57630
|
-
|
|
57631
|
-
toJSON(data?: any) {
|
|
57632
|
-
data = typeof data === 'object' ? data : {};
|
|
57633
|
-
data["lot"] = this.lot;
|
|
57634
|
-
data["serialNumber"] = this.serialNumber;
|
|
57635
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
57636
|
-
return data;
|
|
57637
|
-
}
|
|
57638
|
-
}
|
|
57639
|
-
|
|
57640
|
-
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
57641
|
-
lot?: string | null;
|
|
57642
|
-
serialNumber: string;
|
|
57643
|
-
customerSerialNumber?: string | null;
|
|
57644
|
-
}
|
|
57645
|
-
|
|
57646
|
-
export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
|
|
57535
|
+
export class MeasurementFormInstanceSupplierDto implements IMeasurementFormInstanceSupplierDto {
|
|
57647
57536
|
supplierId!: string;
|
|
57648
57537
|
supplierName?: string | null;
|
|
57649
57538
|
available?: boolean;
|
|
@@ -57651,7 +57540,7 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57651
57540
|
procurementLine?: number | null;
|
|
57652
57541
|
externalOrderNumber?: string | null;
|
|
57653
57542
|
|
|
57654
|
-
constructor(data?:
|
|
57543
|
+
constructor(data?: IMeasurementFormInstanceSupplierDto) {
|
|
57655
57544
|
if (data) {
|
|
57656
57545
|
for (var property in data) {
|
|
57657
57546
|
if (data.hasOwnProperty(property))
|
|
@@ -57671,9 +57560,9 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57671
57560
|
}
|
|
57672
57561
|
}
|
|
57673
57562
|
|
|
57674
|
-
static fromJS(data: any):
|
|
57563
|
+
static fromJS(data: any): MeasurementFormInstanceSupplierDto {
|
|
57675
57564
|
data = typeof data === 'object' ? data : {};
|
|
57676
|
-
let result = new
|
|
57565
|
+
let result = new MeasurementFormInstanceSupplierDto();
|
|
57677
57566
|
result.init(data);
|
|
57678
57567
|
return result;
|
|
57679
57568
|
}
|
|
@@ -57690,7 +57579,7 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57690
57579
|
}
|
|
57691
57580
|
}
|
|
57692
57581
|
|
|
57693
|
-
export interface
|
|
57582
|
+
export interface IMeasurementFormInstanceSupplierDto {
|
|
57694
57583
|
supplierId: string;
|
|
57695
57584
|
supplierName?: string | null;
|
|
57696
57585
|
available?: boolean;
|
|
@@ -57699,62 +57588,15 @@ export interface IMeasurementFormWorkorderSupplierDto {
|
|
|
57699
57588
|
externalOrderNumber?: string | null;
|
|
57700
57589
|
}
|
|
57701
57590
|
|
|
57702
|
-
export class
|
|
57703
|
-
ids!: string[];
|
|
57704
|
-
|
|
57705
|
-
constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest) {
|
|
57706
|
-
if (data) {
|
|
57707
|
-
for (var property in data) {
|
|
57708
|
-
if (data.hasOwnProperty(property))
|
|
57709
|
-
(this as any)[property] = (data as any)[property];
|
|
57710
|
-
}
|
|
57711
|
-
}
|
|
57712
|
-
if (!data) {
|
|
57713
|
-
this.ids = [];
|
|
57714
|
-
}
|
|
57715
|
-
}
|
|
57716
|
-
|
|
57717
|
-
init(_data?: any) {
|
|
57718
|
-
if (_data) {
|
|
57719
|
-
if (Array.isArray(_data["ids"])) {
|
|
57720
|
-
this.ids = [] as any;
|
|
57721
|
-
for (let item of _data["ids"])
|
|
57722
|
-
this.ids!.push(item);
|
|
57723
|
-
}
|
|
57724
|
-
}
|
|
57725
|
-
}
|
|
57726
|
-
|
|
57727
|
-
static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest {
|
|
57728
|
-
data = typeof data === 'object' ? data : {};
|
|
57729
|
-
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
57730
|
-
result.init(data);
|
|
57731
|
-
return result;
|
|
57732
|
-
}
|
|
57733
|
-
|
|
57734
|
-
toJSON(data?: any) {
|
|
57735
|
-
data = typeof data === 'object' ? data : {};
|
|
57736
|
-
if (Array.isArray(this.ids)) {
|
|
57737
|
-
data["ids"] = [];
|
|
57738
|
-
for (let item of this.ids)
|
|
57739
|
-
data["ids"].push(item);
|
|
57740
|
-
}
|
|
57741
|
-
return data;
|
|
57742
|
-
}
|
|
57743
|
-
}
|
|
57744
|
-
|
|
57745
|
-
export interface IDeleteMeasurementFormsInstancesBulkRequest {
|
|
57746
|
-
ids: string[];
|
|
57747
|
-
}
|
|
57748
|
-
|
|
57749
|
-
export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
57750
|
-
status?: MeasurementFormInstanceStatus | null;
|
|
57751
|
-
statusChangedSince?: Date | null;
|
|
57752
|
-
onlyWithReports?: boolean | null;
|
|
57591
|
+
export class ListMeasurementFormsRequest implements IListMeasurementFormsRequest {
|
|
57753
57592
|
pageSize?: number | null;
|
|
57754
57593
|
search?: string | null;
|
|
57755
57594
|
continuationToken?: string | null;
|
|
57595
|
+
tenantId?: string | null;
|
|
57596
|
+
inactive?: boolean | null;
|
|
57597
|
+
includeInactiveSupplierAccess?: boolean | null;
|
|
57756
57598
|
|
|
57757
|
-
constructor(data?:
|
|
57599
|
+
constructor(data?: IListMeasurementFormsRequest) {
|
|
57758
57600
|
if (data) {
|
|
57759
57601
|
for (var property in data) {
|
|
57760
57602
|
if (data.hasOwnProperty(property))
|
|
@@ -57765,41 +57607,41 @@ export class ListMeasurementFormsByStatusRequest implements IListMeasurementForm
|
|
|
57765
57607
|
|
|
57766
57608
|
init(_data?: any) {
|
|
57767
57609
|
if (_data) {
|
|
57768
|
-
this.status = _data["status"];
|
|
57769
|
-
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined as any;
|
|
57770
|
-
this.onlyWithReports = _data["onlyWithReports"];
|
|
57771
57610
|
this.pageSize = _data["pageSize"];
|
|
57772
57611
|
this.search = _data["search"];
|
|
57773
57612
|
this.continuationToken = _data["continuationToken"];
|
|
57613
|
+
this.tenantId = _data["tenantId"];
|
|
57614
|
+
this.inactive = _data["inactive"];
|
|
57615
|
+
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
57774
57616
|
}
|
|
57775
57617
|
}
|
|
57776
57618
|
|
|
57777
|
-
static fromJS(data: any):
|
|
57619
|
+
static fromJS(data: any): ListMeasurementFormsRequest {
|
|
57778
57620
|
data = typeof data === 'object' ? data : {};
|
|
57779
|
-
let result = new
|
|
57621
|
+
let result = new ListMeasurementFormsRequest();
|
|
57780
57622
|
result.init(data);
|
|
57781
57623
|
return result;
|
|
57782
57624
|
}
|
|
57783
57625
|
|
|
57784
57626
|
toJSON(data?: any) {
|
|
57785
57627
|
data = typeof data === 'object' ? data : {};
|
|
57786
|
-
data["status"] = this.status;
|
|
57787
|
-
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined as any;
|
|
57788
|
-
data["onlyWithReports"] = this.onlyWithReports;
|
|
57789
57628
|
data["pageSize"] = this.pageSize;
|
|
57790
57629
|
data["search"] = this.search;
|
|
57791
57630
|
data["continuationToken"] = this.continuationToken;
|
|
57631
|
+
data["tenantId"] = this.tenantId;
|
|
57632
|
+
data["inactive"] = this.inactive;
|
|
57633
|
+
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
57792
57634
|
return data;
|
|
57793
57635
|
}
|
|
57794
57636
|
}
|
|
57795
57637
|
|
|
57796
|
-
export interface
|
|
57797
|
-
status?: MeasurementFormInstanceStatus | null;
|
|
57798
|
-
statusChangedSince?: Date | null;
|
|
57799
|
-
onlyWithReports?: boolean | null;
|
|
57638
|
+
export interface IListMeasurementFormsRequest {
|
|
57800
57639
|
pageSize?: number | null;
|
|
57801
57640
|
search?: string | null;
|
|
57802
57641
|
continuationToken?: string | null;
|
|
57642
|
+
tenantId?: string | null;
|
|
57643
|
+
inactive?: boolean | null;
|
|
57644
|
+
includeInactiveSupplierAccess?: boolean | null;
|
|
57803
57645
|
}
|
|
57804
57646
|
|
|
57805
57647
|
export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInstanceFeedbackDto {
|
|
@@ -57874,233 +57716,6 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
57874
57716
|
created: Date;
|
|
57875
57717
|
}
|
|
57876
57718
|
|
|
57877
|
-
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
57878
|
-
schemaId!: string;
|
|
57879
|
-
customerId?: string | null;
|
|
57880
|
-
customerName?: string | null;
|
|
57881
|
-
purchaseOrder?: string | null;
|
|
57882
|
-
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
57883
|
-
serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
57884
|
-
|
|
57885
|
-
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
57886
|
-
if (data) {
|
|
57887
|
-
for (var property in data) {
|
|
57888
|
-
if (data.hasOwnProperty(property))
|
|
57889
|
-
(this as any)[property] = (data as any)[property];
|
|
57890
|
-
}
|
|
57891
|
-
}
|
|
57892
|
-
if (!data) {
|
|
57893
|
-
this.serialNumbers = [];
|
|
57894
|
-
}
|
|
57895
|
-
}
|
|
57896
|
-
|
|
57897
|
-
init(_data?: any) {
|
|
57898
|
-
if (_data) {
|
|
57899
|
-
this.schemaId = _data["schemaId"];
|
|
57900
|
-
this.customerId = _data["customerId"];
|
|
57901
|
-
this.customerName = _data["customerName"];
|
|
57902
|
-
this.purchaseOrder = _data["purchaseOrder"];
|
|
57903
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57904
|
-
this.sequences = [] as any;
|
|
57905
|
-
for (let item of _data["sequences"])
|
|
57906
|
-
this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
57907
|
-
}
|
|
57908
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
57909
|
-
this.serialNumbers = [] as any;
|
|
57910
|
-
for (let item of _data["serialNumbers"])
|
|
57911
|
-
this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
57912
|
-
}
|
|
57913
|
-
}
|
|
57914
|
-
}
|
|
57915
|
-
|
|
57916
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
57917
|
-
data = typeof data === 'object' ? data : {};
|
|
57918
|
-
let result = new CreateMeasurementFormInstanceRequest();
|
|
57919
|
-
result.init(data);
|
|
57920
|
-
return result;
|
|
57921
|
-
}
|
|
57922
|
-
|
|
57923
|
-
toJSON(data?: any) {
|
|
57924
|
-
data = typeof data === 'object' ? data : {};
|
|
57925
|
-
data["schemaId"] = this.schemaId;
|
|
57926
|
-
data["customerId"] = this.customerId;
|
|
57927
|
-
data["customerName"] = this.customerName;
|
|
57928
|
-
data["purchaseOrder"] = this.purchaseOrder;
|
|
57929
|
-
if (Array.isArray(this.sequences)) {
|
|
57930
|
-
data["sequences"] = [];
|
|
57931
|
-
for (let item of this.sequences)
|
|
57932
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
57933
|
-
}
|
|
57934
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
57935
|
-
data["serialNumbers"] = [];
|
|
57936
|
-
for (let item of this.serialNumbers)
|
|
57937
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
57938
|
-
}
|
|
57939
|
-
return data;
|
|
57940
|
-
}
|
|
57941
|
-
}
|
|
57942
|
-
|
|
57943
|
-
export interface ICreateMeasurementFormInstanceRequest {
|
|
57944
|
-
schemaId: string;
|
|
57945
|
-
customerId?: string | null;
|
|
57946
|
-
customerName?: string | null;
|
|
57947
|
-
purchaseOrder?: string | null;
|
|
57948
|
-
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
57949
|
-
serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
57950
|
-
}
|
|
57951
|
-
|
|
57952
|
-
export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
57953
|
-
sequenceNumber!: string;
|
|
57954
|
-
serialNumber?: string | null;
|
|
57955
|
-
|
|
57956
|
-
constructor(data?: ICreateMeasurementFormInstanceRequestSequence) {
|
|
57957
|
-
if (data) {
|
|
57958
|
-
for (var property in data) {
|
|
57959
|
-
if (data.hasOwnProperty(property))
|
|
57960
|
-
(this as any)[property] = (data as any)[property];
|
|
57961
|
-
}
|
|
57962
|
-
}
|
|
57963
|
-
}
|
|
57964
|
-
|
|
57965
|
-
init(_data?: any) {
|
|
57966
|
-
if (_data) {
|
|
57967
|
-
this.sequenceNumber = _data["sequenceNumber"];
|
|
57968
|
-
this.serialNumber = _data["serialNumber"];
|
|
57969
|
-
}
|
|
57970
|
-
}
|
|
57971
|
-
|
|
57972
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence {
|
|
57973
|
-
data = typeof data === 'object' ? data : {};
|
|
57974
|
-
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
57975
|
-
result.init(data);
|
|
57976
|
-
return result;
|
|
57977
|
-
}
|
|
57978
|
-
|
|
57979
|
-
toJSON(data?: any) {
|
|
57980
|
-
data = typeof data === 'object' ? data : {};
|
|
57981
|
-
data["sequenceNumber"] = this.sequenceNumber;
|
|
57982
|
-
data["serialNumber"] = this.serialNumber;
|
|
57983
|
-
return data;
|
|
57984
|
-
}
|
|
57985
|
-
}
|
|
57986
|
-
|
|
57987
|
-
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
57988
|
-
sequenceNumber: string;
|
|
57989
|
-
serialNumber?: string | null;
|
|
57990
|
-
}
|
|
57991
|
-
|
|
57992
|
-
export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
57993
|
-
serialNumber!: string;
|
|
57994
|
-
customerSerialNumber?: string | null;
|
|
57995
|
-
|
|
57996
|
-
constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
|
|
57997
|
-
if (data) {
|
|
57998
|
-
for (var property in data) {
|
|
57999
|
-
if (data.hasOwnProperty(property))
|
|
58000
|
-
(this as any)[property] = (data as any)[property];
|
|
58001
|
-
}
|
|
58002
|
-
}
|
|
58003
|
-
}
|
|
58004
|
-
|
|
58005
|
-
init(_data?: any) {
|
|
58006
|
-
if (_data) {
|
|
58007
|
-
this.serialNumber = _data["serialNumber"];
|
|
58008
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
58009
|
-
}
|
|
58010
|
-
}
|
|
58011
|
-
|
|
58012
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
|
|
58013
|
-
data = typeof data === 'object' ? data : {};
|
|
58014
|
-
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
58015
|
-
result.init(data);
|
|
58016
|
-
return result;
|
|
58017
|
-
}
|
|
58018
|
-
|
|
58019
|
-
toJSON(data?: any) {
|
|
58020
|
-
data = typeof data === 'object' ? data : {};
|
|
58021
|
-
data["serialNumber"] = this.serialNumber;
|
|
58022
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
58023
|
-
return data;
|
|
58024
|
-
}
|
|
58025
|
-
}
|
|
58026
|
-
|
|
58027
|
-
export interface ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
58028
|
-
serialNumber: string;
|
|
58029
|
-
customerSerialNumber?: string | null;
|
|
58030
|
-
}
|
|
58031
|
-
|
|
58032
|
-
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
58033
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
58034
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
58035
|
-
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
58036
|
-
|
|
58037
|
-
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
58038
|
-
if (data) {
|
|
58039
|
-
for (var property in data) {
|
|
58040
|
-
if (data.hasOwnProperty(property))
|
|
58041
|
-
(this as any)[property] = (data as any)[property];
|
|
58042
|
-
}
|
|
58043
|
-
}
|
|
58044
|
-
if (!data) {
|
|
58045
|
-
this.serialNumbers = [];
|
|
58046
|
-
this.suppliers = [];
|
|
58047
|
-
}
|
|
58048
|
-
}
|
|
58049
|
-
|
|
58050
|
-
init(_data?: any) {
|
|
58051
|
-
if (_data) {
|
|
58052
|
-
if (Array.isArray(_data["sequences"])) {
|
|
58053
|
-
this.sequences = [] as any;
|
|
58054
|
-
for (let item of _data["sequences"])
|
|
58055
|
-
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
58056
|
-
}
|
|
58057
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
58058
|
-
this.serialNumbers = [] as any;
|
|
58059
|
-
for (let item of _data["serialNumbers"])
|
|
58060
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
58061
|
-
}
|
|
58062
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
58063
|
-
this.suppliers = [] as any;
|
|
58064
|
-
for (let item of _data["suppliers"])
|
|
58065
|
-
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
58066
|
-
}
|
|
58067
|
-
}
|
|
58068
|
-
}
|
|
58069
|
-
|
|
58070
|
-
static fromJS(data: any): UpdateMeasurementFormInstanceRequest {
|
|
58071
|
-
data = typeof data === 'object' ? data : {};
|
|
58072
|
-
let result = new UpdateMeasurementFormInstanceRequest();
|
|
58073
|
-
result.init(data);
|
|
58074
|
-
return result;
|
|
58075
|
-
}
|
|
58076
|
-
|
|
58077
|
-
toJSON(data?: any) {
|
|
58078
|
-
data = typeof data === 'object' ? data : {};
|
|
58079
|
-
if (Array.isArray(this.sequences)) {
|
|
58080
|
-
data["sequences"] = [];
|
|
58081
|
-
for (let item of this.sequences)
|
|
58082
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
58083
|
-
}
|
|
58084
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
58085
|
-
data["serialNumbers"] = [];
|
|
58086
|
-
for (let item of this.serialNumbers)
|
|
58087
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
58088
|
-
}
|
|
58089
|
-
if (Array.isArray(this.suppliers)) {
|
|
58090
|
-
data["suppliers"] = [];
|
|
58091
|
-
for (let item of this.suppliers)
|
|
58092
|
-
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
58093
|
-
}
|
|
58094
|
-
return data;
|
|
58095
|
-
}
|
|
58096
|
-
}
|
|
58097
|
-
|
|
58098
|
-
export interface IUpdateMeasurementFormInstanceRequest {
|
|
58099
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
58100
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
58101
|
-
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
58102
|
-
}
|
|
58103
|
-
|
|
58104
57719
|
export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
58105
57720
|
elements!: MeasurementFormInstanceElementDto[];
|
|
58106
57721
|
isCompleted!: boolean;
|
|
@@ -59035,120 +58650,494 @@ export interface IBatchInsertValueRequest {
|
|
|
59035
58650
|
tools?: string[] | null;
|
|
59036
58651
|
}
|
|
59037
58652
|
|
|
59038
|
-
export class SaveMeasurementFormInstanceSchemaCommentRequest implements ISaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58653
|
+
export class SaveMeasurementFormInstanceSchemaCommentRequest implements ISaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58654
|
+
comment?: string | null;
|
|
58655
|
+
|
|
58656
|
+
constructor(data?: ISaveMeasurementFormInstanceSchemaCommentRequest) {
|
|
58657
|
+
if (data) {
|
|
58658
|
+
for (var property in data) {
|
|
58659
|
+
if (data.hasOwnProperty(property))
|
|
58660
|
+
(this as any)[property] = (data as any)[property];
|
|
58661
|
+
}
|
|
58662
|
+
}
|
|
58663
|
+
}
|
|
58664
|
+
|
|
58665
|
+
init(_data?: any) {
|
|
58666
|
+
if (_data) {
|
|
58667
|
+
this.comment = _data["comment"];
|
|
58668
|
+
}
|
|
58669
|
+
}
|
|
58670
|
+
|
|
58671
|
+
static fromJS(data: any): SaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58672
|
+
data = typeof data === 'object' ? data : {};
|
|
58673
|
+
let result = new SaveMeasurementFormInstanceSchemaCommentRequest();
|
|
58674
|
+
result.init(data);
|
|
58675
|
+
return result;
|
|
58676
|
+
}
|
|
58677
|
+
|
|
58678
|
+
toJSON(data?: any) {
|
|
58679
|
+
data = typeof data === 'object' ? data : {};
|
|
58680
|
+
data["comment"] = this.comment;
|
|
58681
|
+
return data;
|
|
58682
|
+
}
|
|
58683
|
+
}
|
|
58684
|
+
|
|
58685
|
+
export interface ISaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58686
|
+
comment?: string | null;
|
|
58687
|
+
}
|
|
58688
|
+
|
|
58689
|
+
export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
58690
|
+
id!: string;
|
|
58691
|
+
workOrder!: string;
|
|
58692
|
+
schemaId!: string;
|
|
58693
|
+
versionId!: number;
|
|
58694
|
+
schemaInstanceId!: string;
|
|
58695
|
+
balloonId?: string | null;
|
|
58696
|
+
reference?: number;
|
|
58697
|
+
feedback!: string;
|
|
58698
|
+
from!: string;
|
|
58699
|
+
created!: Date;
|
|
58700
|
+
|
|
58701
|
+
constructor(data?: ISchemaFeedbackCreatedDto) {
|
|
58702
|
+
if (data) {
|
|
58703
|
+
for (var property in data) {
|
|
58704
|
+
if (data.hasOwnProperty(property))
|
|
58705
|
+
(this as any)[property] = (data as any)[property];
|
|
58706
|
+
}
|
|
58707
|
+
}
|
|
58708
|
+
}
|
|
58709
|
+
|
|
58710
|
+
init(_data?: any) {
|
|
58711
|
+
if (_data) {
|
|
58712
|
+
this.id = _data["id"];
|
|
58713
|
+
this.workOrder = _data["workOrder"];
|
|
58714
|
+
this.schemaId = _data["schemaId"];
|
|
58715
|
+
this.versionId = _data["versionId"];
|
|
58716
|
+
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
58717
|
+
this.balloonId = _data["balloonId"];
|
|
58718
|
+
this.reference = _data["reference"];
|
|
58719
|
+
this.feedback = _data["feedback"];
|
|
58720
|
+
this.from = _data["from"];
|
|
58721
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
58722
|
+
}
|
|
58723
|
+
}
|
|
58724
|
+
|
|
58725
|
+
static fromJS(data: any): SchemaFeedbackCreatedDto {
|
|
58726
|
+
data = typeof data === 'object' ? data : {};
|
|
58727
|
+
let result = new SchemaFeedbackCreatedDto();
|
|
58728
|
+
result.init(data);
|
|
58729
|
+
return result;
|
|
58730
|
+
}
|
|
58731
|
+
|
|
58732
|
+
toJSON(data?: any) {
|
|
58733
|
+
data = typeof data === 'object' ? data : {};
|
|
58734
|
+
data["id"] = this.id;
|
|
58735
|
+
data["workOrder"] = this.workOrder;
|
|
58736
|
+
data["schemaId"] = this.schemaId;
|
|
58737
|
+
data["versionId"] = this.versionId;
|
|
58738
|
+
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
58739
|
+
data["balloonId"] = this.balloonId;
|
|
58740
|
+
data["reference"] = this.reference;
|
|
58741
|
+
data["feedback"] = this.feedback;
|
|
58742
|
+
data["from"] = this.from;
|
|
58743
|
+
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
58744
|
+
return data;
|
|
58745
|
+
}
|
|
58746
|
+
}
|
|
58747
|
+
|
|
58748
|
+
export interface ISchemaFeedbackCreatedDto {
|
|
58749
|
+
id: string;
|
|
58750
|
+
workOrder: string;
|
|
58751
|
+
schemaId: string;
|
|
58752
|
+
versionId: number;
|
|
58753
|
+
schemaInstanceId: string;
|
|
58754
|
+
balloonId?: string | null;
|
|
58755
|
+
reference?: number;
|
|
58756
|
+
feedback: string;
|
|
58757
|
+
from: string;
|
|
58758
|
+
created: Date;
|
|
58759
|
+
}
|
|
58760
|
+
|
|
58761
|
+
export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
|
|
58762
|
+
balloonId?: string | null;
|
|
58763
|
+
reference?: number;
|
|
58764
|
+
feedback!: string;
|
|
58765
|
+
|
|
58766
|
+
constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
|
|
58767
|
+
if (data) {
|
|
58768
|
+
for (var property in data) {
|
|
58769
|
+
if (data.hasOwnProperty(property))
|
|
58770
|
+
(this as any)[property] = (data as any)[property];
|
|
58771
|
+
}
|
|
58772
|
+
}
|
|
58773
|
+
}
|
|
58774
|
+
|
|
58775
|
+
init(_data?: any) {
|
|
58776
|
+
if (_data) {
|
|
58777
|
+
this.balloonId = _data["balloonId"];
|
|
58778
|
+
this.reference = _data["reference"];
|
|
58779
|
+
this.feedback = _data["feedback"];
|
|
58780
|
+
}
|
|
58781
|
+
}
|
|
58782
|
+
|
|
58783
|
+
static fromJS(data: any): CreateMeasurementFormSchemaFeedbackRequest {
|
|
58784
|
+
data = typeof data === 'object' ? data : {};
|
|
58785
|
+
let result = new CreateMeasurementFormSchemaFeedbackRequest();
|
|
58786
|
+
result.init(data);
|
|
58787
|
+
return result;
|
|
58788
|
+
}
|
|
58789
|
+
|
|
58790
|
+
toJSON(data?: any) {
|
|
58791
|
+
data = typeof data === 'object' ? data : {};
|
|
58792
|
+
data["balloonId"] = this.balloonId;
|
|
58793
|
+
data["reference"] = this.reference;
|
|
58794
|
+
data["feedback"] = this.feedback;
|
|
58795
|
+
return data;
|
|
58796
|
+
}
|
|
58797
|
+
}
|
|
58798
|
+
|
|
58799
|
+
export interface ICreateMeasurementFormSchemaFeedbackRequest {
|
|
58800
|
+
balloonId?: string | null;
|
|
58801
|
+
reference?: number;
|
|
58802
|
+
feedback: string;
|
|
58803
|
+
}
|
|
58804
|
+
|
|
58805
|
+
export class MeasurementFormSupplierAccessInstanceDto implements IMeasurementFormSupplierAccessInstanceDto {
|
|
58806
|
+
id!: string;
|
|
58807
|
+
readonly!: boolean;
|
|
58808
|
+
partNumber?: string | null;
|
|
58809
|
+
partRevision?: string | null;
|
|
58810
|
+
drawing?: string | null;
|
|
58811
|
+
drawingRevision?: string | null;
|
|
58812
|
+
customerId?: string | null;
|
|
58813
|
+
quantity!: number;
|
|
58814
|
+
status!: MeasurementFormInstanceStatus;
|
|
58815
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
58816
|
+
|
|
58817
|
+
constructor(data?: IMeasurementFormSupplierAccessInstanceDto) {
|
|
58818
|
+
if (data) {
|
|
58819
|
+
for (var property in data) {
|
|
58820
|
+
if (data.hasOwnProperty(property))
|
|
58821
|
+
(this as any)[property] = (data as any)[property];
|
|
58822
|
+
}
|
|
58823
|
+
}
|
|
58824
|
+
if (!data) {
|
|
58825
|
+
this.suppliers = [];
|
|
58826
|
+
}
|
|
58827
|
+
}
|
|
58828
|
+
|
|
58829
|
+
init(_data?: any) {
|
|
58830
|
+
if (_data) {
|
|
58831
|
+
this.id = _data["id"];
|
|
58832
|
+
this.readonly = _data["readonly"];
|
|
58833
|
+
this.partNumber = _data["partNumber"];
|
|
58834
|
+
this.partRevision = _data["partRevision"];
|
|
58835
|
+
this.drawing = _data["drawing"];
|
|
58836
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
58837
|
+
this.customerId = _data["customerId"];
|
|
58838
|
+
this.quantity = _data["quantity"];
|
|
58839
|
+
this.status = _data["status"];
|
|
58840
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
58841
|
+
this.suppliers = [] as any;
|
|
58842
|
+
for (let item of _data["suppliers"])
|
|
58843
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
58844
|
+
}
|
|
58845
|
+
}
|
|
58846
|
+
}
|
|
58847
|
+
|
|
58848
|
+
static fromJS(data: any): MeasurementFormSupplierAccessInstanceDto {
|
|
58849
|
+
data = typeof data === 'object' ? data : {};
|
|
58850
|
+
let result = new MeasurementFormSupplierAccessInstanceDto();
|
|
58851
|
+
result.init(data);
|
|
58852
|
+
return result;
|
|
58853
|
+
}
|
|
58854
|
+
|
|
58855
|
+
toJSON(data?: any) {
|
|
58856
|
+
data = typeof data === 'object' ? data : {};
|
|
58857
|
+
data["id"] = this.id;
|
|
58858
|
+
data["readonly"] = this.readonly;
|
|
58859
|
+
data["partNumber"] = this.partNumber;
|
|
58860
|
+
data["partRevision"] = this.partRevision;
|
|
58861
|
+
data["drawing"] = this.drawing;
|
|
58862
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
58863
|
+
data["customerId"] = this.customerId;
|
|
58864
|
+
data["quantity"] = this.quantity;
|
|
58865
|
+
data["status"] = this.status;
|
|
58866
|
+
if (Array.isArray(this.suppliers)) {
|
|
58867
|
+
data["suppliers"] = [];
|
|
58868
|
+
for (let item of this.suppliers)
|
|
58869
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
58870
|
+
}
|
|
58871
|
+
return data;
|
|
58872
|
+
}
|
|
58873
|
+
}
|
|
58874
|
+
|
|
58875
|
+
export interface IMeasurementFormSupplierAccessInstanceDto {
|
|
58876
|
+
id: string;
|
|
58877
|
+
readonly: boolean;
|
|
58878
|
+
partNumber?: string | null;
|
|
58879
|
+
partRevision?: string | null;
|
|
58880
|
+
drawing?: string | null;
|
|
58881
|
+
drawingRevision?: string | null;
|
|
58882
|
+
customerId?: string | null;
|
|
58883
|
+
quantity: number;
|
|
58884
|
+
status: MeasurementFormInstanceStatus;
|
|
58885
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
58886
|
+
}
|
|
58887
|
+
|
|
58888
|
+
export class UpsertSupplierToMeasurementFormInstanceRequest implements IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
58889
|
+
procurementOrder?: string | null;
|
|
58890
|
+
procurementLine?: number | null;
|
|
58891
|
+
externalOrderNumber?: string | null;
|
|
58892
|
+
|
|
58893
|
+
constructor(data?: IUpsertSupplierToMeasurementFormInstanceRequest) {
|
|
58894
|
+
if (data) {
|
|
58895
|
+
for (var property in data) {
|
|
58896
|
+
if (data.hasOwnProperty(property))
|
|
58897
|
+
(this as any)[property] = (data as any)[property];
|
|
58898
|
+
}
|
|
58899
|
+
}
|
|
58900
|
+
}
|
|
58901
|
+
|
|
58902
|
+
init(_data?: any) {
|
|
58903
|
+
if (_data) {
|
|
58904
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
58905
|
+
this.procurementLine = _data["procurementLine"];
|
|
58906
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
58907
|
+
}
|
|
58908
|
+
}
|
|
58909
|
+
|
|
58910
|
+
static fromJS(data: any): UpsertSupplierToMeasurementFormInstanceRequest {
|
|
58911
|
+
data = typeof data === 'object' ? data : {};
|
|
58912
|
+
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
58913
|
+
result.init(data);
|
|
58914
|
+
return result;
|
|
58915
|
+
}
|
|
58916
|
+
|
|
58917
|
+
toJSON(data?: any) {
|
|
58918
|
+
data = typeof data === 'object' ? data : {};
|
|
58919
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
58920
|
+
data["procurementLine"] = this.procurementLine;
|
|
58921
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
58922
|
+
return data;
|
|
58923
|
+
}
|
|
58924
|
+
}
|
|
58925
|
+
|
|
58926
|
+
export interface IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
58927
|
+
procurementOrder?: string | null;
|
|
58928
|
+
procurementLine?: number | null;
|
|
58929
|
+
externalOrderNumber?: string | null;
|
|
58930
|
+
}
|
|
58931
|
+
|
|
58932
|
+
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58933
|
+
tenantId?: string | null;
|
|
58934
|
+
type!: DimensionReportType;
|
|
58935
|
+
extras?: DimensionReportExtras | null;
|
|
58936
|
+
specificSerialNumbers?: string[] | null;
|
|
58937
|
+
|
|
58938
|
+
constructor(data?: IExportDimensionReportV2Request) {
|
|
58939
|
+
if (data) {
|
|
58940
|
+
for (var property in data) {
|
|
58941
|
+
if (data.hasOwnProperty(property))
|
|
58942
|
+
(this as any)[property] = (data as any)[property];
|
|
58943
|
+
}
|
|
58944
|
+
}
|
|
58945
|
+
}
|
|
58946
|
+
|
|
58947
|
+
init(_data?: any) {
|
|
58948
|
+
if (_data) {
|
|
58949
|
+
this.tenantId = _data["tenantId"];
|
|
58950
|
+
this.type = _data["type"];
|
|
58951
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined as any;
|
|
58952
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
58953
|
+
this.specificSerialNumbers = [] as any;
|
|
58954
|
+
for (let item of _data["specificSerialNumbers"])
|
|
58955
|
+
this.specificSerialNumbers!.push(item);
|
|
58956
|
+
}
|
|
58957
|
+
}
|
|
58958
|
+
}
|
|
58959
|
+
|
|
58960
|
+
static fromJS(data: any): ExportDimensionReportV2Request {
|
|
58961
|
+
data = typeof data === 'object' ? data : {};
|
|
58962
|
+
let result = new ExportDimensionReportV2Request();
|
|
58963
|
+
result.init(data);
|
|
58964
|
+
return result;
|
|
58965
|
+
}
|
|
58966
|
+
|
|
58967
|
+
toJSON(data?: any) {
|
|
58968
|
+
data = typeof data === 'object' ? data : {};
|
|
58969
|
+
data["tenantId"] = this.tenantId;
|
|
58970
|
+
data["type"] = this.type;
|
|
58971
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined as any;
|
|
58972
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
58973
|
+
data["specificSerialNumbers"] = [];
|
|
58974
|
+
for (let item of this.specificSerialNumbers)
|
|
58975
|
+
data["specificSerialNumbers"].push(item);
|
|
58976
|
+
}
|
|
58977
|
+
return data;
|
|
58978
|
+
}
|
|
58979
|
+
}
|
|
58980
|
+
|
|
58981
|
+
export interface IExportDimensionReportV2Request {
|
|
58982
|
+
tenantId?: string | null;
|
|
58983
|
+
type: DimensionReportType;
|
|
58984
|
+
extras?: DimensionReportExtras | null;
|
|
58985
|
+
specificSerialNumbers?: string[] | null;
|
|
58986
|
+
}
|
|
58987
|
+
|
|
58988
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
58989
|
+
|
|
58990
|
+
export class DimensionReportExtras implements IDimensionReportExtras {
|
|
58991
|
+
customerPO?: string | null;
|
|
58992
|
+
workOrderNumber?: string | null;
|
|
58993
|
+
comment?: string | null;
|
|
58994
|
+
|
|
58995
|
+
constructor(data?: IDimensionReportExtras) {
|
|
58996
|
+
if (data) {
|
|
58997
|
+
for (var property in data) {
|
|
58998
|
+
if (data.hasOwnProperty(property))
|
|
58999
|
+
(this as any)[property] = (data as any)[property];
|
|
59000
|
+
}
|
|
59001
|
+
}
|
|
59002
|
+
}
|
|
59003
|
+
|
|
59004
|
+
init(_data?: any) {
|
|
59005
|
+
if (_data) {
|
|
59006
|
+
this.customerPO = _data["customerPO"];
|
|
59007
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
59008
|
+
this.comment = _data["comment"];
|
|
59009
|
+
}
|
|
59010
|
+
}
|
|
59011
|
+
|
|
59012
|
+
static fromJS(data: any): DimensionReportExtras {
|
|
59013
|
+
data = typeof data === 'object' ? data : {};
|
|
59014
|
+
let result = new DimensionReportExtras();
|
|
59015
|
+
result.init(data);
|
|
59016
|
+
return result;
|
|
59017
|
+
}
|
|
59018
|
+
|
|
59019
|
+
toJSON(data?: any) {
|
|
59020
|
+
data = typeof data === 'object' ? data : {};
|
|
59021
|
+
data["customerPO"] = this.customerPO;
|
|
59022
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
59023
|
+
data["comment"] = this.comment;
|
|
59024
|
+
return data;
|
|
59025
|
+
}
|
|
59026
|
+
}
|
|
59027
|
+
|
|
59028
|
+
export interface IDimensionReportExtras {
|
|
59029
|
+
customerPO?: string | null;
|
|
59030
|
+
workOrderNumber?: string | null;
|
|
59039
59031
|
comment?: string | null;
|
|
59032
|
+
}
|
|
59040
59033
|
|
|
59041
|
-
|
|
59034
|
+
export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMeasurementFormInstanceDto {
|
|
59035
|
+
results!: MeasurementFormInstanceDto[];
|
|
59036
|
+
continuationToken?: string | null;
|
|
59037
|
+
|
|
59038
|
+
constructor(data?: IPagedResultOfMeasurementFormInstanceDto) {
|
|
59042
59039
|
if (data) {
|
|
59043
59040
|
for (var property in data) {
|
|
59044
59041
|
if (data.hasOwnProperty(property))
|
|
59045
59042
|
(this as any)[property] = (data as any)[property];
|
|
59046
59043
|
}
|
|
59047
59044
|
}
|
|
59045
|
+
if (!data) {
|
|
59046
|
+
this.results = [];
|
|
59047
|
+
}
|
|
59048
59048
|
}
|
|
59049
59049
|
|
|
59050
59050
|
init(_data?: any) {
|
|
59051
59051
|
if (_data) {
|
|
59052
|
-
|
|
59052
|
+
if (Array.isArray(_data["results"])) {
|
|
59053
|
+
this.results = [] as any;
|
|
59054
|
+
for (let item of _data["results"])
|
|
59055
|
+
this.results!.push(MeasurementFormInstanceDto.fromJS(item));
|
|
59056
|
+
}
|
|
59057
|
+
this.continuationToken = _data["continuationToken"];
|
|
59053
59058
|
}
|
|
59054
59059
|
}
|
|
59055
59060
|
|
|
59056
|
-
static fromJS(data: any):
|
|
59061
|
+
static fromJS(data: any): PagedResultOfMeasurementFormInstanceDto {
|
|
59057
59062
|
data = typeof data === 'object' ? data : {};
|
|
59058
|
-
let result = new
|
|
59063
|
+
let result = new PagedResultOfMeasurementFormInstanceDto();
|
|
59059
59064
|
result.init(data);
|
|
59060
59065
|
return result;
|
|
59061
59066
|
}
|
|
59062
59067
|
|
|
59063
59068
|
toJSON(data?: any) {
|
|
59064
59069
|
data = typeof data === 'object' ? data : {};
|
|
59065
|
-
|
|
59070
|
+
if (Array.isArray(this.results)) {
|
|
59071
|
+
data["results"] = [];
|
|
59072
|
+
for (let item of this.results)
|
|
59073
|
+
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
59074
|
+
}
|
|
59075
|
+
data["continuationToken"] = this.continuationToken;
|
|
59066
59076
|
return data;
|
|
59067
59077
|
}
|
|
59068
59078
|
}
|
|
59069
59079
|
|
|
59070
|
-
export interface
|
|
59071
|
-
|
|
59080
|
+
export interface IPagedResultOfMeasurementFormInstanceDto {
|
|
59081
|
+
results: MeasurementFormInstanceDto[];
|
|
59082
|
+
continuationToken?: string | null;
|
|
59072
59083
|
}
|
|
59073
59084
|
|
|
59074
|
-
export class
|
|
59075
|
-
|
|
59076
|
-
workOrder!: string;
|
|
59077
|
-
schemaId!: string;
|
|
59078
|
-
versionId!: number;
|
|
59079
|
-
schemaInstanceId!: string;
|
|
59080
|
-
balloonId?: string | null;
|
|
59081
|
-
reference?: number;
|
|
59082
|
-
feedback!: string;
|
|
59083
|
-
from!: string;
|
|
59084
|
-
created!: Date;
|
|
59085
|
+
export class DeleteMeasurementFormsInstancesBulkRequest implements IDeleteMeasurementFormsInstancesBulkRequest {
|
|
59086
|
+
ids!: string[];
|
|
59085
59087
|
|
|
59086
|
-
constructor(data?:
|
|
59088
|
+
constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest) {
|
|
59087
59089
|
if (data) {
|
|
59088
59090
|
for (var property in data) {
|
|
59089
59091
|
if (data.hasOwnProperty(property))
|
|
59090
59092
|
(this as any)[property] = (data as any)[property];
|
|
59091
59093
|
}
|
|
59092
59094
|
}
|
|
59095
|
+
if (!data) {
|
|
59096
|
+
this.ids = [];
|
|
59097
|
+
}
|
|
59093
59098
|
}
|
|
59094
59099
|
|
|
59095
59100
|
init(_data?: any) {
|
|
59096
59101
|
if (_data) {
|
|
59097
|
-
|
|
59098
|
-
|
|
59099
|
-
|
|
59100
|
-
|
|
59101
|
-
|
|
59102
|
-
this.balloonId = _data["balloonId"];
|
|
59103
|
-
this.reference = _data["reference"];
|
|
59104
|
-
this.feedback = _data["feedback"];
|
|
59105
|
-
this.from = _data["from"];
|
|
59106
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
59102
|
+
if (Array.isArray(_data["ids"])) {
|
|
59103
|
+
this.ids = [] as any;
|
|
59104
|
+
for (let item of _data["ids"])
|
|
59105
|
+
this.ids!.push(item);
|
|
59106
|
+
}
|
|
59107
59107
|
}
|
|
59108
59108
|
}
|
|
59109
59109
|
|
|
59110
|
-
static fromJS(data: any):
|
|
59110
|
+
static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest {
|
|
59111
59111
|
data = typeof data === 'object' ? data : {};
|
|
59112
|
-
let result = new
|
|
59112
|
+
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
59113
59113
|
result.init(data);
|
|
59114
59114
|
return result;
|
|
59115
59115
|
}
|
|
59116
59116
|
|
|
59117
59117
|
toJSON(data?: any) {
|
|
59118
59118
|
data = typeof data === 'object' ? data : {};
|
|
59119
|
-
|
|
59120
|
-
|
|
59121
|
-
|
|
59122
|
-
|
|
59123
|
-
|
|
59124
|
-
data["balloonId"] = this.balloonId;
|
|
59125
|
-
data["reference"] = this.reference;
|
|
59126
|
-
data["feedback"] = this.feedback;
|
|
59127
|
-
data["from"] = this.from;
|
|
59128
|
-
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
59119
|
+
if (Array.isArray(this.ids)) {
|
|
59120
|
+
data["ids"] = [];
|
|
59121
|
+
for (let item of this.ids)
|
|
59122
|
+
data["ids"].push(item);
|
|
59123
|
+
}
|
|
59129
59124
|
return data;
|
|
59130
59125
|
}
|
|
59131
59126
|
}
|
|
59132
59127
|
|
|
59133
|
-
export interface
|
|
59134
|
-
|
|
59135
|
-
workOrder: string;
|
|
59136
|
-
schemaId: string;
|
|
59137
|
-
versionId: number;
|
|
59138
|
-
schemaInstanceId: string;
|
|
59139
|
-
balloonId?: string | null;
|
|
59140
|
-
reference?: number;
|
|
59141
|
-
feedback: string;
|
|
59142
|
-
from: string;
|
|
59143
|
-
created: Date;
|
|
59128
|
+
export interface IDeleteMeasurementFormsInstancesBulkRequest {
|
|
59129
|
+
ids: string[];
|
|
59144
59130
|
}
|
|
59145
59131
|
|
|
59146
|
-
export class
|
|
59147
|
-
|
|
59148
|
-
|
|
59149
|
-
|
|
59132
|
+
export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
59133
|
+
status?: MeasurementFormInstanceStatus | null;
|
|
59134
|
+
statusChangedSince?: Date | null;
|
|
59135
|
+
onlyWithReports?: boolean | null;
|
|
59136
|
+
pageSize?: number | null;
|
|
59137
|
+
search?: string | null;
|
|
59138
|
+
continuationToken?: string | null;
|
|
59150
59139
|
|
|
59151
|
-
constructor(data?:
|
|
59140
|
+
constructor(data?: IListMeasurementFormsByStatusRequest) {
|
|
59152
59141
|
if (data) {
|
|
59153
59142
|
for (var property in data) {
|
|
59154
59143
|
if (data.hasOwnProperty(property))
|
|
@@ -59159,47 +59148,52 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
59159
59148
|
|
|
59160
59149
|
init(_data?: any) {
|
|
59161
59150
|
if (_data) {
|
|
59162
|
-
this.
|
|
59163
|
-
this.
|
|
59164
|
-
this.
|
|
59151
|
+
this.status = _data["status"];
|
|
59152
|
+
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined as any;
|
|
59153
|
+
this.onlyWithReports = _data["onlyWithReports"];
|
|
59154
|
+
this.pageSize = _data["pageSize"];
|
|
59155
|
+
this.search = _data["search"];
|
|
59156
|
+
this.continuationToken = _data["continuationToken"];
|
|
59165
59157
|
}
|
|
59166
59158
|
}
|
|
59167
59159
|
|
|
59168
|
-
static fromJS(data: any):
|
|
59160
|
+
static fromJS(data: any): ListMeasurementFormsByStatusRequest {
|
|
59169
59161
|
data = typeof data === 'object' ? data : {};
|
|
59170
|
-
let result = new
|
|
59162
|
+
let result = new ListMeasurementFormsByStatusRequest();
|
|
59171
59163
|
result.init(data);
|
|
59172
59164
|
return result;
|
|
59173
59165
|
}
|
|
59174
59166
|
|
|
59175
59167
|
toJSON(data?: any) {
|
|
59176
59168
|
data = typeof data === 'object' ? data : {};
|
|
59177
|
-
data["
|
|
59178
|
-
data["
|
|
59179
|
-
data["
|
|
59169
|
+
data["status"] = this.status;
|
|
59170
|
+
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined as any;
|
|
59171
|
+
data["onlyWithReports"] = this.onlyWithReports;
|
|
59172
|
+
data["pageSize"] = this.pageSize;
|
|
59173
|
+
data["search"] = this.search;
|
|
59174
|
+
data["continuationToken"] = this.continuationToken;
|
|
59180
59175
|
return data;
|
|
59181
59176
|
}
|
|
59182
59177
|
}
|
|
59183
59178
|
|
|
59184
|
-
export interface
|
|
59185
|
-
|
|
59186
|
-
|
|
59187
|
-
|
|
59179
|
+
export interface IListMeasurementFormsByStatusRequest {
|
|
59180
|
+
status?: MeasurementFormInstanceStatus | null;
|
|
59181
|
+
statusChangedSince?: Date | null;
|
|
59182
|
+
onlyWithReports?: boolean | null;
|
|
59183
|
+
pageSize?: number | null;
|
|
59184
|
+
search?: string | null;
|
|
59185
|
+
continuationToken?: string | null;
|
|
59188
59186
|
}
|
|
59189
59187
|
|
|
59190
|
-
export class
|
|
59191
|
-
|
|
59192
|
-
readonly!: boolean;
|
|
59193
|
-
partNumber?: string | null;
|
|
59194
|
-
partRevision?: string | null;
|
|
59195
|
-
drawing?: string | null;
|
|
59196
|
-
drawingRevision?: string | null;
|
|
59188
|
+
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
59189
|
+
schemaId!: string;
|
|
59197
59190
|
customerId?: string | null;
|
|
59198
|
-
|
|
59199
|
-
|
|
59200
|
-
|
|
59191
|
+
customerName?: string | null;
|
|
59192
|
+
purchaseOrder?: string | null;
|
|
59193
|
+
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
59194
|
+
serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
59201
59195
|
|
|
59202
|
-
constructor(data?:
|
|
59196
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
59203
59197
|
if (data) {
|
|
59204
59198
|
for (var property in data) {
|
|
59205
59199
|
if (data.hasOwnProperty(property))
|
|
@@ -59207,75 +59201,70 @@ export class MeasurementFormSupplierAccessInstanceDto implements IMeasurementFor
|
|
|
59207
59201
|
}
|
|
59208
59202
|
}
|
|
59209
59203
|
if (!data) {
|
|
59210
|
-
this.
|
|
59204
|
+
this.serialNumbers = [];
|
|
59211
59205
|
}
|
|
59212
59206
|
}
|
|
59213
59207
|
|
|
59214
59208
|
init(_data?: any) {
|
|
59215
59209
|
if (_data) {
|
|
59216
|
-
this.
|
|
59217
|
-
this.readonly = _data["readonly"];
|
|
59218
|
-
this.partNumber = _data["partNumber"];
|
|
59219
|
-
this.partRevision = _data["partRevision"];
|
|
59220
|
-
this.drawing = _data["drawing"];
|
|
59221
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
59210
|
+
this.schemaId = _data["schemaId"];
|
|
59222
59211
|
this.customerId = _data["customerId"];
|
|
59223
|
-
this.
|
|
59224
|
-
this.
|
|
59225
|
-
if (Array.isArray(_data["
|
|
59226
|
-
this.
|
|
59227
|
-
for (let item of _data["
|
|
59228
|
-
this.
|
|
59212
|
+
this.customerName = _data["customerName"];
|
|
59213
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
59214
|
+
if (Array.isArray(_data["sequences"])) {
|
|
59215
|
+
this.sequences = [] as any;
|
|
59216
|
+
for (let item of _data["sequences"])
|
|
59217
|
+
this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
59218
|
+
}
|
|
59219
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
59220
|
+
this.serialNumbers = [] as any;
|
|
59221
|
+
for (let item of _data["serialNumbers"])
|
|
59222
|
+
this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
59229
59223
|
}
|
|
59230
59224
|
}
|
|
59231
59225
|
}
|
|
59232
59226
|
|
|
59233
|
-
static fromJS(data: any):
|
|
59227
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
59234
59228
|
data = typeof data === 'object' ? data : {};
|
|
59235
|
-
let result = new
|
|
59229
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
59236
59230
|
result.init(data);
|
|
59237
59231
|
return result;
|
|
59238
59232
|
}
|
|
59239
59233
|
|
|
59240
59234
|
toJSON(data?: any) {
|
|
59241
59235
|
data = typeof data === 'object' ? data : {};
|
|
59242
|
-
data["
|
|
59243
|
-
data["readonly"] = this.readonly;
|
|
59244
|
-
data["partNumber"] = this.partNumber;
|
|
59245
|
-
data["partRevision"] = this.partRevision;
|
|
59246
|
-
data["drawing"] = this.drawing;
|
|
59247
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
59236
|
+
data["schemaId"] = this.schemaId;
|
|
59248
59237
|
data["customerId"] = this.customerId;
|
|
59249
|
-
data["
|
|
59250
|
-
data["
|
|
59251
|
-
if (Array.isArray(this.
|
|
59252
|
-
data["
|
|
59253
|
-
for (let item of this.
|
|
59254
|
-
data["
|
|
59238
|
+
data["customerName"] = this.customerName;
|
|
59239
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
59240
|
+
if (Array.isArray(this.sequences)) {
|
|
59241
|
+
data["sequences"] = [];
|
|
59242
|
+
for (let item of this.sequences)
|
|
59243
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
59244
|
+
}
|
|
59245
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
59246
|
+
data["serialNumbers"] = [];
|
|
59247
|
+
for (let item of this.serialNumbers)
|
|
59248
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
59255
59249
|
}
|
|
59256
59250
|
return data;
|
|
59257
59251
|
}
|
|
59258
59252
|
}
|
|
59259
59253
|
|
|
59260
|
-
export interface
|
|
59261
|
-
|
|
59262
|
-
readonly: boolean;
|
|
59263
|
-
partNumber?: string | null;
|
|
59264
|
-
partRevision?: string | null;
|
|
59265
|
-
drawing?: string | null;
|
|
59266
|
-
drawingRevision?: string | null;
|
|
59254
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
59255
|
+
schemaId: string;
|
|
59267
59256
|
customerId?: string | null;
|
|
59268
|
-
|
|
59269
|
-
|
|
59270
|
-
|
|
59257
|
+
customerName?: string | null;
|
|
59258
|
+
purchaseOrder?: string | null;
|
|
59259
|
+
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
59260
|
+
serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
59271
59261
|
}
|
|
59272
59262
|
|
|
59273
|
-
export class
|
|
59274
|
-
|
|
59275
|
-
|
|
59276
|
-
externalOrderNumber?: string | null;
|
|
59263
|
+
export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
59264
|
+
sequenceNumber!: string;
|
|
59265
|
+
serialNumber?: string | null;
|
|
59277
59266
|
|
|
59278
|
-
constructor(data?:
|
|
59267
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSequence) {
|
|
59279
59268
|
if (data) {
|
|
59280
59269
|
for (var property in data) {
|
|
59281
59270
|
if (data.hasOwnProperty(property))
|
|
@@ -59286,41 +59275,36 @@ export class UpsertSupplierToMeasurementFormInstanceRequest implements IUpsertSu
|
|
|
59286
59275
|
|
|
59287
59276
|
init(_data?: any) {
|
|
59288
59277
|
if (_data) {
|
|
59289
|
-
this.
|
|
59290
|
-
this.
|
|
59291
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
59278
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
59279
|
+
this.serialNumber = _data["serialNumber"];
|
|
59292
59280
|
}
|
|
59293
59281
|
}
|
|
59294
59282
|
|
|
59295
|
-
static fromJS(data: any):
|
|
59283
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence {
|
|
59296
59284
|
data = typeof data === 'object' ? data : {};
|
|
59297
|
-
let result = new
|
|
59285
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
59298
59286
|
result.init(data);
|
|
59299
59287
|
return result;
|
|
59300
59288
|
}
|
|
59301
59289
|
|
|
59302
59290
|
toJSON(data?: any) {
|
|
59303
59291
|
data = typeof data === 'object' ? data : {};
|
|
59304
|
-
data["
|
|
59305
|
-
data["
|
|
59306
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
59292
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
59293
|
+
data["serialNumber"] = this.serialNumber;
|
|
59307
59294
|
return data;
|
|
59308
59295
|
}
|
|
59309
59296
|
}
|
|
59310
59297
|
|
|
59311
|
-
export interface
|
|
59312
|
-
|
|
59313
|
-
|
|
59314
|
-
externalOrderNumber?: string | null;
|
|
59298
|
+
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
59299
|
+
sequenceNumber: string;
|
|
59300
|
+
serialNumber?: string | null;
|
|
59315
59301
|
}
|
|
59316
59302
|
|
|
59317
|
-
export class
|
|
59318
|
-
|
|
59319
|
-
|
|
59320
|
-
extras?: DimensionReportExtras | null;
|
|
59321
|
-
specificSerialNumbers?: string[] | null;
|
|
59303
|
+
export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
59304
|
+
serialNumber!: string;
|
|
59305
|
+
customerSerialNumber?: string | null;
|
|
59322
59306
|
|
|
59323
|
-
constructor(data?:
|
|
59307
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
|
|
59324
59308
|
if (data) {
|
|
59325
59309
|
for (var property in data) {
|
|
59326
59310
|
if (data.hasOwnProperty(property))
|
|
@@ -59331,89 +59315,101 @@ export class ExportDimensionReportV2Request implements IExportDimensionReportV2R
|
|
|
59331
59315
|
|
|
59332
59316
|
init(_data?: any) {
|
|
59333
59317
|
if (_data) {
|
|
59334
|
-
this.
|
|
59335
|
-
this.
|
|
59336
|
-
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined as any;
|
|
59337
|
-
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
59338
|
-
this.specificSerialNumbers = [] as any;
|
|
59339
|
-
for (let item of _data["specificSerialNumbers"])
|
|
59340
|
-
this.specificSerialNumbers!.push(item);
|
|
59341
|
-
}
|
|
59318
|
+
this.serialNumber = _data["serialNumber"];
|
|
59319
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
59342
59320
|
}
|
|
59343
59321
|
}
|
|
59344
59322
|
|
|
59345
|
-
static fromJS(data: any):
|
|
59323
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
|
|
59346
59324
|
data = typeof data === 'object' ? data : {};
|
|
59347
|
-
let result = new
|
|
59325
|
+
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
59348
59326
|
result.init(data);
|
|
59349
59327
|
return result;
|
|
59350
59328
|
}
|
|
59351
59329
|
|
|
59352
59330
|
toJSON(data?: any) {
|
|
59353
59331
|
data = typeof data === 'object' ? data : {};
|
|
59354
|
-
data["
|
|
59355
|
-
data["
|
|
59356
|
-
data["extras"] = this.extras ? this.extras.toJSON() : undefined as any;
|
|
59357
|
-
if (Array.isArray(this.specificSerialNumbers)) {
|
|
59358
|
-
data["specificSerialNumbers"] = [];
|
|
59359
|
-
for (let item of this.specificSerialNumbers)
|
|
59360
|
-
data["specificSerialNumbers"].push(item);
|
|
59361
|
-
}
|
|
59332
|
+
data["serialNumber"] = this.serialNumber;
|
|
59333
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
59362
59334
|
return data;
|
|
59363
59335
|
}
|
|
59364
59336
|
}
|
|
59365
59337
|
|
|
59366
|
-
export interface
|
|
59367
|
-
|
|
59368
|
-
|
|
59369
|
-
extras?: DimensionReportExtras | null;
|
|
59370
|
-
specificSerialNumbers?: string[] | null;
|
|
59338
|
+
export interface ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
59339
|
+
serialNumber: string;
|
|
59340
|
+
customerSerialNumber?: string | null;
|
|
59371
59341
|
}
|
|
59372
59342
|
|
|
59373
|
-
export
|
|
59374
|
-
|
|
59375
|
-
|
|
59376
|
-
|
|
59377
|
-
workOrderNumber?: string | null;
|
|
59378
|
-
comment?: string | null;
|
|
59343
|
+
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
59344
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
59345
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
59346
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
59379
59347
|
|
|
59380
|
-
constructor(data?:
|
|
59348
|
+
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
59381
59349
|
if (data) {
|
|
59382
59350
|
for (var property in data) {
|
|
59383
59351
|
if (data.hasOwnProperty(property))
|
|
59384
59352
|
(this as any)[property] = (data as any)[property];
|
|
59385
59353
|
}
|
|
59386
59354
|
}
|
|
59355
|
+
if (!data) {
|
|
59356
|
+
this.serialNumbers = [];
|
|
59357
|
+
this.suppliers = [];
|
|
59358
|
+
}
|
|
59387
59359
|
}
|
|
59388
59360
|
|
|
59389
59361
|
init(_data?: any) {
|
|
59390
59362
|
if (_data) {
|
|
59391
|
-
|
|
59392
|
-
|
|
59393
|
-
|
|
59363
|
+
if (Array.isArray(_data["sequences"])) {
|
|
59364
|
+
this.sequences = [] as any;
|
|
59365
|
+
for (let item of _data["sequences"])
|
|
59366
|
+
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
59367
|
+
}
|
|
59368
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
59369
|
+
this.serialNumbers = [] as any;
|
|
59370
|
+
for (let item of _data["serialNumbers"])
|
|
59371
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
59372
|
+
}
|
|
59373
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
59374
|
+
this.suppliers = [] as any;
|
|
59375
|
+
for (let item of _data["suppliers"])
|
|
59376
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
59377
|
+
}
|
|
59394
59378
|
}
|
|
59395
59379
|
}
|
|
59396
59380
|
|
|
59397
|
-
static fromJS(data: any):
|
|
59381
|
+
static fromJS(data: any): UpdateMeasurementFormInstanceRequest {
|
|
59398
59382
|
data = typeof data === 'object' ? data : {};
|
|
59399
|
-
let result = new
|
|
59383
|
+
let result = new UpdateMeasurementFormInstanceRequest();
|
|
59400
59384
|
result.init(data);
|
|
59401
59385
|
return result;
|
|
59402
59386
|
}
|
|
59403
59387
|
|
|
59404
59388
|
toJSON(data?: any) {
|
|
59405
59389
|
data = typeof data === 'object' ? data : {};
|
|
59406
|
-
|
|
59407
|
-
|
|
59408
|
-
|
|
59390
|
+
if (Array.isArray(this.sequences)) {
|
|
59391
|
+
data["sequences"] = [];
|
|
59392
|
+
for (let item of this.sequences)
|
|
59393
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
59394
|
+
}
|
|
59395
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
59396
|
+
data["serialNumbers"] = [];
|
|
59397
|
+
for (let item of this.serialNumbers)
|
|
59398
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
59399
|
+
}
|
|
59400
|
+
if (Array.isArray(this.suppliers)) {
|
|
59401
|
+
data["suppliers"] = [];
|
|
59402
|
+
for (let item of this.suppliers)
|
|
59403
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
59404
|
+
}
|
|
59409
59405
|
return data;
|
|
59410
59406
|
}
|
|
59411
59407
|
}
|
|
59412
59408
|
|
|
59413
|
-
export interface
|
|
59414
|
-
|
|
59415
|
-
|
|
59416
|
-
|
|
59409
|
+
export interface IUpdateMeasurementFormInstanceRequest {
|
|
59410
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
59411
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
59412
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
59417
59413
|
}
|
|
59418
59414
|
|
|
59419
59415
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
@@ -60642,23 +60638,24 @@ export interface IResourceExistDto {
|
|
|
60642
60638
|
externalId?: string | null;
|
|
60643
60639
|
}
|
|
60644
60640
|
|
|
60645
|
-
export class
|
|
60646
|
-
|
|
60641
|
+
export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
|
|
60642
|
+
workorderDescription?: string | null;
|
|
60643
|
+
operationDescription?: string | null;
|
|
60644
|
+
isSetup!: boolean;
|
|
60647
60645
|
employee?: EmployeeDto | null;
|
|
60648
60646
|
resourceId!: string;
|
|
60649
60647
|
customerOrder?: CustomerOrderInfoDto | null;
|
|
60650
60648
|
part?: PartDto | null;
|
|
60651
60649
|
workorderQuantity?: number | null;
|
|
60652
|
-
|
|
60650
|
+
startTime!: Date;
|
|
60651
|
+
endTime!: Date;
|
|
60653
60652
|
materialPartNumber?: string | null;
|
|
60654
60653
|
materialPartName?: string | null;
|
|
60655
60654
|
materialItemGroup?: string | null;
|
|
60656
|
-
workorderDescription?: string | null;
|
|
60657
|
-
operationDescription?: string | null;
|
|
60658
60655
|
externalId?: string | null;
|
|
60659
60656
|
companyId?: string | null;
|
|
60660
60657
|
|
|
60661
|
-
constructor(data?:
|
|
60658
|
+
constructor(data?: IRegisterWorkorderOperationEventRequest) {
|
|
60662
60659
|
if (data) {
|
|
60663
60660
|
for (var property in data) {
|
|
60664
60661
|
if (data.hasOwnProperty(property))
|
|
@@ -60669,63 +60666,66 @@ export class StartWorkOperationRequest implements IStartWorkOperationRequest {
|
|
|
60669
60666
|
|
|
60670
60667
|
init(_data?: any) {
|
|
60671
60668
|
if (_data) {
|
|
60669
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
60670
|
+
this.operationDescription = _data["operationDescription"];
|
|
60672
60671
|
this.isSetup = _data["isSetup"];
|
|
60673
60672
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
|
|
60674
60673
|
this.resourceId = _data["resourceId"];
|
|
60675
60674
|
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
|
|
60676
60675
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
60677
60676
|
this.workorderQuantity = _data["workorderQuantity"];
|
|
60678
|
-
this.
|
|
60677
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
60678
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
|
|
60679
60679
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
60680
60680
|
this.materialPartName = _data["materialPartName"];
|
|
60681
60681
|
this.materialItemGroup = _data["materialItemGroup"];
|
|
60682
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
60683
|
-
this.operationDescription = _data["operationDescription"];
|
|
60684
60682
|
this.externalId = _data["externalId"];
|
|
60685
60683
|
this.companyId = _data["companyId"];
|
|
60686
60684
|
}
|
|
60687
60685
|
}
|
|
60688
60686
|
|
|
60689
|
-
static fromJS(data: any):
|
|
60687
|
+
static fromJS(data: any): RegisterWorkorderOperationEventRequest {
|
|
60690
60688
|
data = typeof data === 'object' ? data : {};
|
|
60691
|
-
let result = new
|
|
60689
|
+
let result = new RegisterWorkorderOperationEventRequest();
|
|
60692
60690
|
result.init(data);
|
|
60693
60691
|
return result;
|
|
60694
60692
|
}
|
|
60695
60693
|
|
|
60696
60694
|
toJSON(data?: any) {
|
|
60697
60695
|
data = typeof data === 'object' ? data : {};
|
|
60696
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
60697
|
+
data["operationDescription"] = this.operationDescription;
|
|
60698
60698
|
data["isSetup"] = this.isSetup;
|
|
60699
60699
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
|
|
60700
60700
|
data["resourceId"] = this.resourceId;
|
|
60701
60701
|
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
|
|
60702
60702
|
data["part"] = this.part ? this.part.toJSON() : undefined as any;
|
|
60703
60703
|
data["workorderQuantity"] = this.workorderQuantity;
|
|
60704
|
-
data["
|
|
60704
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
|
|
60705
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined as any;
|
|
60705
60706
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
60706
60707
|
data["materialPartName"] = this.materialPartName;
|
|
60707
60708
|
data["materialItemGroup"] = this.materialItemGroup;
|
|
60708
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
60709
|
-
data["operationDescription"] = this.operationDescription;
|
|
60710
60709
|
data["externalId"] = this.externalId;
|
|
60711
60710
|
data["companyId"] = this.companyId;
|
|
60712
60711
|
return data;
|
|
60713
60712
|
}
|
|
60714
60713
|
}
|
|
60715
60714
|
|
|
60716
|
-
export interface
|
|
60717
|
-
|
|
60715
|
+
export interface IRegisterWorkorderOperationEventRequest {
|
|
60716
|
+
workorderDescription?: string | null;
|
|
60717
|
+
operationDescription?: string | null;
|
|
60718
|
+
isSetup: boolean;
|
|
60718
60719
|
employee?: EmployeeDto | null;
|
|
60719
60720
|
resourceId: string;
|
|
60720
60721
|
customerOrder?: CustomerOrderInfoDto | null;
|
|
60721
60722
|
part?: PartDto | null;
|
|
60722
60723
|
workorderQuantity?: number | null;
|
|
60723
|
-
|
|
60724
|
+
startTime: Date;
|
|
60725
|
+
endTime: Date;
|
|
60724
60726
|
materialPartNumber?: string | null;
|
|
60725
60727
|
materialPartName?: string | null;
|
|
60726
60728
|
materialItemGroup?: string | null;
|
|
60727
|
-
workorderDescription?: string | null;
|
|
60728
|
-
operationDescription?: string | null;
|
|
60729
60729
|
externalId?: string | null;
|
|
60730
60730
|
companyId?: string | null;
|
|
60731
60731
|
}
|
|
@@ -60774,12 +60774,101 @@ export interface ICustomerOrderInfoDto {
|
|
|
60774
60774
|
customerName?: string | null;
|
|
60775
60775
|
}
|
|
60776
60776
|
|
|
60777
|
+
export class StartWorkOperationRequest implements IStartWorkOperationRequest {
|
|
60778
|
+
isSetup?: boolean;
|
|
60779
|
+
employee?: EmployeeDto | null;
|
|
60780
|
+
resourceId!: string;
|
|
60781
|
+
customerOrder?: CustomerOrderInfoDto | null;
|
|
60782
|
+
part?: PartDto | null;
|
|
60783
|
+
workorderQuantity?: number | null;
|
|
60784
|
+
time?: Date | null;
|
|
60785
|
+
materialPartNumber?: string | null;
|
|
60786
|
+
materialPartName?: string | null;
|
|
60787
|
+
materialItemGroup?: string | null;
|
|
60788
|
+
workorderDescription?: string | null;
|
|
60789
|
+
operationDescription?: string | null;
|
|
60790
|
+
externalId?: string | null;
|
|
60791
|
+
companyId?: string | null;
|
|
60792
|
+
|
|
60793
|
+
constructor(data?: IStartWorkOperationRequest) {
|
|
60794
|
+
if (data) {
|
|
60795
|
+
for (var property in data) {
|
|
60796
|
+
if (data.hasOwnProperty(property))
|
|
60797
|
+
(this as any)[property] = (data as any)[property];
|
|
60798
|
+
}
|
|
60799
|
+
}
|
|
60800
|
+
}
|
|
60801
|
+
|
|
60802
|
+
init(_data?: any) {
|
|
60803
|
+
if (_data) {
|
|
60804
|
+
this.isSetup = _data["isSetup"];
|
|
60805
|
+
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
|
|
60806
|
+
this.resourceId = _data["resourceId"];
|
|
60807
|
+
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
|
|
60808
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
60809
|
+
this.workorderQuantity = _data["workorderQuantity"];
|
|
60810
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined as any;
|
|
60811
|
+
this.materialPartNumber = _data["materialPartNumber"];
|
|
60812
|
+
this.materialPartName = _data["materialPartName"];
|
|
60813
|
+
this.materialItemGroup = _data["materialItemGroup"];
|
|
60814
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
60815
|
+
this.operationDescription = _data["operationDescription"];
|
|
60816
|
+
this.externalId = _data["externalId"];
|
|
60817
|
+
this.companyId = _data["companyId"];
|
|
60818
|
+
}
|
|
60819
|
+
}
|
|
60820
|
+
|
|
60821
|
+
static fromJS(data: any): StartWorkOperationRequest {
|
|
60822
|
+
data = typeof data === 'object' ? data : {};
|
|
60823
|
+
let result = new StartWorkOperationRequest();
|
|
60824
|
+
result.init(data);
|
|
60825
|
+
return result;
|
|
60826
|
+
}
|
|
60827
|
+
|
|
60828
|
+
toJSON(data?: any) {
|
|
60829
|
+
data = typeof data === 'object' ? data : {};
|
|
60830
|
+
data["isSetup"] = this.isSetup;
|
|
60831
|
+
data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
|
|
60832
|
+
data["resourceId"] = this.resourceId;
|
|
60833
|
+
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
|
|
60834
|
+
data["part"] = this.part ? this.part.toJSON() : undefined as any;
|
|
60835
|
+
data["workorderQuantity"] = this.workorderQuantity;
|
|
60836
|
+
data["time"] = this.time ? this.time.toISOString() : undefined as any;
|
|
60837
|
+
data["materialPartNumber"] = this.materialPartNumber;
|
|
60838
|
+
data["materialPartName"] = this.materialPartName;
|
|
60839
|
+
data["materialItemGroup"] = this.materialItemGroup;
|
|
60840
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
60841
|
+
data["operationDescription"] = this.operationDescription;
|
|
60842
|
+
data["externalId"] = this.externalId;
|
|
60843
|
+
data["companyId"] = this.companyId;
|
|
60844
|
+
return data;
|
|
60845
|
+
}
|
|
60846
|
+
}
|
|
60847
|
+
|
|
60848
|
+
export interface IStartWorkOperationRequest {
|
|
60849
|
+
isSetup?: boolean;
|
|
60850
|
+
employee?: EmployeeDto | null;
|
|
60851
|
+
resourceId: string;
|
|
60852
|
+
customerOrder?: CustomerOrderInfoDto | null;
|
|
60853
|
+
part?: PartDto | null;
|
|
60854
|
+
workorderQuantity?: number | null;
|
|
60855
|
+
time?: Date | null;
|
|
60856
|
+
materialPartNumber?: string | null;
|
|
60857
|
+
materialPartName?: string | null;
|
|
60858
|
+
materialItemGroup?: string | null;
|
|
60859
|
+
workorderDescription?: string | null;
|
|
60860
|
+
operationDescription?: string | null;
|
|
60861
|
+
externalId?: string | null;
|
|
60862
|
+
companyId?: string | null;
|
|
60863
|
+
}
|
|
60864
|
+
|
|
60777
60865
|
export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
60778
60866
|
isSetup?: boolean;
|
|
60779
60867
|
employee?: EmployeeDto | null;
|
|
60780
60868
|
time?: Date | null;
|
|
60781
60869
|
resourceId!: string;
|
|
60782
60870
|
companyId?: string | null;
|
|
60871
|
+
ignoreNotFoundEvents?: boolean | null;
|
|
60783
60872
|
|
|
60784
60873
|
constructor(data?: IStopWorkOperationRequest) {
|
|
60785
60874
|
if (data) {
|
|
@@ -60797,6 +60886,7 @@ export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
|
60797
60886
|
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined as any;
|
|
60798
60887
|
this.resourceId = _data["resourceId"];
|
|
60799
60888
|
this.companyId = _data["companyId"];
|
|
60889
|
+
this.ignoreNotFoundEvents = _data["ignoreNotFoundEvents"];
|
|
60800
60890
|
}
|
|
60801
60891
|
}
|
|
60802
60892
|
|
|
@@ -60814,6 +60904,7 @@ export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
|
60814
60904
|
data["time"] = this.time ? this.time.toISOString() : undefined as any;
|
|
60815
60905
|
data["resourceId"] = this.resourceId;
|
|
60816
60906
|
data["companyId"] = this.companyId;
|
|
60907
|
+
data["ignoreNotFoundEvents"] = this.ignoreNotFoundEvents;
|
|
60817
60908
|
return data;
|
|
60818
60909
|
}
|
|
60819
60910
|
}
|
|
@@ -60824,9 +60915,10 @@ export interface IStopWorkOperationRequest {
|
|
|
60824
60915
|
time?: Date | null;
|
|
60825
60916
|
resourceId: string;
|
|
60826
60917
|
companyId?: string | null;
|
|
60918
|
+
ignoreNotFoundEvents?: boolean | null;
|
|
60827
60919
|
}
|
|
60828
60920
|
|
|
60829
|
-
export class
|
|
60921
|
+
export class SyncWorkorderOperationRequest implements ISyncWorkorderOperationRequest {
|
|
60830
60922
|
workorderDescription?: string | null;
|
|
60831
60923
|
operationDescription?: string | null;
|
|
60832
60924
|
isSetup!: boolean;
|
|
@@ -60836,14 +60928,14 @@ export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorde
|
|
|
60836
60928
|
part?: PartDto | null;
|
|
60837
60929
|
workorderQuantity?: number | null;
|
|
60838
60930
|
startTime!: Date;
|
|
60839
|
-
endTime
|
|
60931
|
+
endTime?: Date | null;
|
|
60840
60932
|
materialPartNumber?: string | null;
|
|
60841
60933
|
materialPartName?: string | null;
|
|
60842
60934
|
materialItemGroup?: string | null;
|
|
60843
60935
|
externalId?: string | null;
|
|
60844
60936
|
companyId?: string | null;
|
|
60845
60937
|
|
|
60846
|
-
constructor(data?:
|
|
60938
|
+
constructor(data?: ISyncWorkorderOperationRequest) {
|
|
60847
60939
|
if (data) {
|
|
60848
60940
|
for (var property in data) {
|
|
60849
60941
|
if (data.hasOwnProperty(property))
|
|
@@ -60872,9 +60964,9 @@ export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorde
|
|
|
60872
60964
|
}
|
|
60873
60965
|
}
|
|
60874
60966
|
|
|
60875
|
-
static fromJS(data: any):
|
|
60967
|
+
static fromJS(data: any): SyncWorkorderOperationRequest {
|
|
60876
60968
|
data = typeof data === 'object' ? data : {};
|
|
60877
|
-
let result = new
|
|
60969
|
+
let result = new SyncWorkorderOperationRequest();
|
|
60878
60970
|
result.init(data);
|
|
60879
60971
|
return result;
|
|
60880
60972
|
}
|
|
@@ -60900,7 +60992,7 @@ export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorde
|
|
|
60900
60992
|
}
|
|
60901
60993
|
}
|
|
60902
60994
|
|
|
60903
|
-
export interface
|
|
60995
|
+
export interface ISyncWorkorderOperationRequest {
|
|
60904
60996
|
workorderDescription?: string | null;
|
|
60905
60997
|
operationDescription?: string | null;
|
|
60906
60998
|
isSetup: boolean;
|
|
@@ -60910,7 +61002,7 @@ export interface IRegisterWorkorderOperationEventRequest {
|
|
|
60910
61002
|
part?: PartDto | null;
|
|
60911
61003
|
workorderQuantity?: number | null;
|
|
60912
61004
|
startTime: Date;
|
|
60913
|
-
endTime
|
|
61005
|
+
endTime?: Date | null;
|
|
60914
61006
|
materialPartNumber?: string | null;
|
|
60915
61007
|
materialPartName?: string | null;
|
|
60916
61008
|
materialItemGroup?: string | null;
|