@ignos/api-client 20251112.0.13205 → 20251120.0.13297
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 +317 -317
- package/lib/ignosportal-api.js +1154 -1223
- package/package.json +1 -1
- package/src/ignosportal-api.ts +1441 -1507
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
|
*/
|
|
@@ -24276,98 +24294,6 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24276
24294
|
return Promise.resolve<ResourceExistDto>(null as any);
|
|
24277
24295
|
}
|
|
24278
24296
|
|
|
24279
|
-
/**
|
|
24280
|
-
* Register start work or setup on a workorder operation.
|
|
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
|
|
24328
|
-
*/
|
|
24329
|
-
stopWorkorderOperation(id: string, operation: number, request: StopWorkOperationRequest): Promise<void> {
|
|
24330
|
-
let url_ = this.baseUrl + "/erp/workorders/{id}/operations/{operation}/stop";
|
|
24331
|
-
if (id === undefined || id === null)
|
|
24332
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24333
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24334
|
-
if (operation === undefined || operation === null)
|
|
24335
|
-
throw new globalThis.Error("The parameter 'operation' must be defined.");
|
|
24336
|
-
url_ = url_.replace("{operation}", encodeURIComponent("" + operation));
|
|
24337
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24338
|
-
|
|
24339
|
-
const content_ = JSON.stringify(request);
|
|
24340
|
-
|
|
24341
|
-
let options_: RequestInit = {
|
|
24342
|
-
body: content_,
|
|
24343
|
-
method: "POST",
|
|
24344
|
-
headers: {
|
|
24345
|
-
"Content-Type": "application/json",
|
|
24346
|
-
}
|
|
24347
|
-
};
|
|
24348
|
-
|
|
24349
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24350
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24351
|
-
}).then((_response: Response) => {
|
|
24352
|
-
return this.processStopWorkorderOperation(_response);
|
|
24353
|
-
});
|
|
24354
|
-
}
|
|
24355
|
-
|
|
24356
|
-
protected processStopWorkorderOperation(response: Response): Promise<void> {
|
|
24357
|
-
const status = response.status;
|
|
24358
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24359
|
-
if (status === 204) {
|
|
24360
|
-
return response.text().then((_responseText) => {
|
|
24361
|
-
return;
|
|
24362
|
-
});
|
|
24363
|
-
} else if (status !== 200 && status !== 204) {
|
|
24364
|
-
return response.text().then((_responseText) => {
|
|
24365
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24366
|
-
});
|
|
24367
|
-
}
|
|
24368
|
-
return Promise.resolve<void>(null as any);
|
|
24369
|
-
}
|
|
24370
|
-
|
|
24371
24297
|
/**
|
|
24372
24298
|
* Register a completed work order operation event
|
|
24373
24299
|
*/
|
|
@@ -24507,6 +24433,10 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
24507
24433
|
result200 = WorkorderOperationEventDto.fromJS(resultData200);
|
|
24508
24434
|
return result200;
|
|
24509
24435
|
});
|
|
24436
|
+
} else if (status === 204) {
|
|
24437
|
+
return response.text().then((_responseText) => {
|
|
24438
|
+
return throwException("A server side error occurred.", status, _responseText, _headers);
|
|
24439
|
+
});
|
|
24510
24440
|
} else if (status !== 200 && status !== 204) {
|
|
24511
24441
|
return response.text().then((_responseText) => {
|
|
24512
24442
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
@@ -56493,46 +56423,6 @@ export interface IAddResourceTypeForNeedsGenerator {
|
|
|
56493
56423
|
resourceType: string;
|
|
56494
56424
|
}
|
|
56495
56425
|
|
|
56496
|
-
export class MeasurementFrequencyDto implements IMeasurementFrequencyDto {
|
|
56497
|
-
id!: number;
|
|
56498
|
-
name!: string;
|
|
56499
|
-
|
|
56500
|
-
constructor(data?: IMeasurementFrequencyDto) {
|
|
56501
|
-
if (data) {
|
|
56502
|
-
for (var property in data) {
|
|
56503
|
-
if (data.hasOwnProperty(property))
|
|
56504
|
-
(this as any)[property] = (data as any)[property];
|
|
56505
|
-
}
|
|
56506
|
-
}
|
|
56507
|
-
}
|
|
56508
|
-
|
|
56509
|
-
init(_data?: any) {
|
|
56510
|
-
if (_data) {
|
|
56511
|
-
this.id = _data["id"];
|
|
56512
|
-
this.name = _data["name"];
|
|
56513
|
-
}
|
|
56514
|
-
}
|
|
56515
|
-
|
|
56516
|
-
static fromJS(data: any): MeasurementFrequencyDto {
|
|
56517
|
-
data = typeof data === 'object' ? data : {};
|
|
56518
|
-
let result = new MeasurementFrequencyDto();
|
|
56519
|
-
result.init(data);
|
|
56520
|
-
return result;
|
|
56521
|
-
}
|
|
56522
|
-
|
|
56523
|
-
toJSON(data?: any) {
|
|
56524
|
-
data = typeof data === 'object' ? data : {};
|
|
56525
|
-
data["id"] = this.id;
|
|
56526
|
-
data["name"] = this.name;
|
|
56527
|
-
return data;
|
|
56528
|
-
}
|
|
56529
|
-
}
|
|
56530
|
-
|
|
56531
|
-
export interface IMeasurementFrequencyDto {
|
|
56532
|
-
id: number;
|
|
56533
|
-
name: string;
|
|
56534
|
-
}
|
|
56535
|
-
|
|
56536
56426
|
export class PagedResultOfSchemaFeedbackDto implements IPagedResultOfSchemaFeedbackDto {
|
|
56537
56427
|
results!: SchemaFeedbackDto[];
|
|
56538
56428
|
continuationToken?: string | null;
|
|
@@ -56906,75 +56796,68 @@ export interface IListMeasurementFormSchemasRequest {
|
|
|
56906
56796
|
continuationToken?: string | null;
|
|
56907
56797
|
}
|
|
56908
56798
|
|
|
56909
|
-
export class
|
|
56910
|
-
|
|
56911
|
-
|
|
56799
|
+
export class MeasurementFrequencyDto implements IMeasurementFrequencyDto {
|
|
56800
|
+
id!: number;
|
|
56801
|
+
name!: string;
|
|
56912
56802
|
|
|
56913
|
-
constructor(data?:
|
|
56803
|
+
constructor(data?: IMeasurementFrequencyDto) {
|
|
56914
56804
|
if (data) {
|
|
56915
56805
|
for (var property in data) {
|
|
56916
56806
|
if (data.hasOwnProperty(property))
|
|
56917
56807
|
(this as any)[property] = (data as any)[property];
|
|
56918
56808
|
}
|
|
56919
56809
|
}
|
|
56920
|
-
if (!data) {
|
|
56921
|
-
this.results = [];
|
|
56922
|
-
}
|
|
56923
56810
|
}
|
|
56924
56811
|
|
|
56925
56812
|
init(_data?: any) {
|
|
56926
56813
|
if (_data) {
|
|
56927
|
-
|
|
56928
|
-
|
|
56929
|
-
for (let item of _data["results"])
|
|
56930
|
-
this.results!.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
56931
|
-
}
|
|
56932
|
-
this.continuationToken = _data["continuationToken"];
|
|
56814
|
+
this.id = _data["id"];
|
|
56815
|
+
this.name = _data["name"];
|
|
56933
56816
|
}
|
|
56934
56817
|
}
|
|
56935
56818
|
|
|
56936
|
-
static fromJS(data: any):
|
|
56819
|
+
static fromJS(data: any): MeasurementFrequencyDto {
|
|
56937
56820
|
data = typeof data === 'object' ? data : {};
|
|
56938
|
-
let result = new
|
|
56821
|
+
let result = new MeasurementFrequencyDto();
|
|
56939
56822
|
result.init(data);
|
|
56940
56823
|
return result;
|
|
56941
56824
|
}
|
|
56942
56825
|
|
|
56943
56826
|
toJSON(data?: any) {
|
|
56944
56827
|
data = typeof data === 'object' ? data : {};
|
|
56945
|
-
|
|
56946
|
-
|
|
56947
|
-
for (let item of this.results)
|
|
56948
|
-
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
56949
|
-
}
|
|
56950
|
-
data["continuationToken"] = this.continuationToken;
|
|
56828
|
+
data["id"] = this.id;
|
|
56829
|
+
data["name"] = this.name;
|
|
56951
56830
|
return data;
|
|
56952
56831
|
}
|
|
56953
56832
|
}
|
|
56954
56833
|
|
|
56955
|
-
export interface
|
|
56956
|
-
|
|
56957
|
-
|
|
56834
|
+
export interface IMeasurementFrequencyDto {
|
|
56835
|
+
id: number;
|
|
56836
|
+
name: string;
|
|
56958
56837
|
}
|
|
56959
56838
|
|
|
56960
|
-
export class
|
|
56839
|
+
export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
56961
56840
|
id!: string;
|
|
56962
56841
|
readonly!: boolean;
|
|
56963
|
-
partName?: string | null;
|
|
56964
56842
|
partNumber?: string | null;
|
|
56843
|
+
partName?: string | null;
|
|
56965
56844
|
partRevision?: string | null;
|
|
56966
56845
|
drawing?: string | null;
|
|
56967
56846
|
drawingRevision?: string | null;
|
|
56968
|
-
drawingUrl?: string | null;
|
|
56969
56847
|
customerId?: string | null;
|
|
56970
56848
|
customerName?: string | null;
|
|
56971
56849
|
quantity!: number;
|
|
56972
56850
|
status!: MeasurementFormInstanceStatus;
|
|
56973
|
-
|
|
56974
|
-
|
|
56851
|
+
statusChangedDate?: Date | null;
|
|
56852
|
+
schemas!: MeasurementFormWorkorderSchemaDto[];
|
|
56853
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
56854
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
56855
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
56975
56856
|
progress!: MeasurementFormProgressDto;
|
|
56857
|
+
approvedReportUrl?: string | null;
|
|
56858
|
+
currentResource?: ResourceDto | null;
|
|
56976
56859
|
|
|
56977
|
-
constructor(data?:
|
|
56860
|
+
constructor(data?: IMeasurementFormInstanceDto) {
|
|
56978
56861
|
if (data) {
|
|
56979
56862
|
for (var property in data) {
|
|
56980
56863
|
if (data.hasOwnProperty(property))
|
|
@@ -56983,6 +56866,8 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
56983
56866
|
}
|
|
56984
56867
|
if (!data) {
|
|
56985
56868
|
this.schemas = [];
|
|
56869
|
+
this.serialNumbers = [];
|
|
56870
|
+
this.suppliers = [];
|
|
56986
56871
|
this.progress = new MeasurementFormProgressDto();
|
|
56987
56872
|
}
|
|
56988
56873
|
}
|
|
@@ -56991,29 +56876,45 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
56991
56876
|
if (_data) {
|
|
56992
56877
|
this.id = _data["id"];
|
|
56993
56878
|
this.readonly = _data["readonly"];
|
|
56994
|
-
this.partName = _data["partName"];
|
|
56995
56879
|
this.partNumber = _data["partNumber"];
|
|
56880
|
+
this.partName = _data["partName"];
|
|
56996
56881
|
this.partRevision = _data["partRevision"];
|
|
56997
56882
|
this.drawing = _data["drawing"];
|
|
56998
56883
|
this.drawingRevision = _data["drawingRevision"];
|
|
56999
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
57000
56884
|
this.customerId = _data["customerId"];
|
|
57001
56885
|
this.customerName = _data["customerName"];
|
|
57002
56886
|
this.quantity = _data["quantity"];
|
|
57003
56887
|
this.status = _data["status"];
|
|
56888
|
+
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined as any;
|
|
57004
56889
|
if (Array.isArray(_data["schemas"])) {
|
|
57005
56890
|
this.schemas = [] as any;
|
|
57006
56891
|
for (let item of _data["schemas"])
|
|
57007
|
-
this.schemas!.push(
|
|
56892
|
+
this.schemas!.push(MeasurementFormWorkorderSchemaDto.fromJS(item));
|
|
56893
|
+
}
|
|
56894
|
+
if (Array.isArray(_data["sequences"])) {
|
|
56895
|
+
this.sequences = [] as any;
|
|
56896
|
+
for (let item of _data["sequences"])
|
|
56897
|
+
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
56898
|
+
}
|
|
56899
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
56900
|
+
this.serialNumbers = [] as any;
|
|
56901
|
+
for (let item of _data["serialNumbers"])
|
|
56902
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
56903
|
+
}
|
|
56904
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
56905
|
+
this.suppliers = [] as any;
|
|
56906
|
+
for (let item of _data["suppliers"])
|
|
56907
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
57008
56908
|
}
|
|
57009
|
-
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined as any;
|
|
57010
56909
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
56910
|
+
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
56911
|
+
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined as any;
|
|
57011
56912
|
}
|
|
57012
56913
|
}
|
|
57013
56914
|
|
|
57014
|
-
static fromJS(data: any):
|
|
56915
|
+
static fromJS(data: any): MeasurementFormInstanceDto {
|
|
57015
56916
|
data = typeof data === 'object' ? data : {};
|
|
57016
|
-
let result = new
|
|
56917
|
+
let result = new MeasurementFormInstanceDto();
|
|
57017
56918
|
result.init(data);
|
|
57018
56919
|
return result;
|
|
57019
56920
|
}
|
|
@@ -57022,68 +56923,113 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
|
|
|
57022
56923
|
data = typeof data === 'object' ? data : {};
|
|
57023
56924
|
data["id"] = this.id;
|
|
57024
56925
|
data["readonly"] = this.readonly;
|
|
57025
|
-
data["partName"] = this.partName;
|
|
57026
56926
|
data["partNumber"] = this.partNumber;
|
|
56927
|
+
data["partName"] = this.partName;
|
|
57027
56928
|
data["partRevision"] = this.partRevision;
|
|
57028
56929
|
data["drawing"] = this.drawing;
|
|
57029
56930
|
data["drawingRevision"] = this.drawingRevision;
|
|
57030
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
57031
56931
|
data["customerId"] = this.customerId;
|
|
57032
56932
|
data["customerName"] = this.customerName;
|
|
57033
56933
|
data["quantity"] = this.quantity;
|
|
57034
56934
|
data["status"] = this.status;
|
|
56935
|
+
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined as any;
|
|
57035
56936
|
if (Array.isArray(this.schemas)) {
|
|
57036
56937
|
data["schemas"] = [];
|
|
57037
56938
|
for (let item of this.schemas)
|
|
57038
56939
|
data["schemas"].push(item ? item.toJSON() : undefined as any);
|
|
57039
56940
|
}
|
|
57040
|
-
|
|
56941
|
+
if (Array.isArray(this.sequences)) {
|
|
56942
|
+
data["sequences"] = [];
|
|
56943
|
+
for (let item of this.sequences)
|
|
56944
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
56945
|
+
}
|
|
56946
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
56947
|
+
data["serialNumbers"] = [];
|
|
56948
|
+
for (let item of this.serialNumbers)
|
|
56949
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
56950
|
+
}
|
|
56951
|
+
if (Array.isArray(this.suppliers)) {
|
|
56952
|
+
data["suppliers"] = [];
|
|
56953
|
+
for (let item of this.suppliers)
|
|
56954
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
56955
|
+
}
|
|
57041
56956
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
56957
|
+
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
56958
|
+
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined as any;
|
|
57042
56959
|
return data;
|
|
57043
56960
|
}
|
|
57044
56961
|
}
|
|
57045
56962
|
|
|
57046
|
-
export interface
|
|
56963
|
+
export interface IMeasurementFormInstanceDto {
|
|
57047
56964
|
id: string;
|
|
57048
56965
|
readonly: boolean;
|
|
57049
|
-
partName?: string | null;
|
|
57050
56966
|
partNumber?: string | null;
|
|
56967
|
+
partName?: string | null;
|
|
57051
56968
|
partRevision?: string | null;
|
|
57052
56969
|
drawing?: string | null;
|
|
57053
56970
|
drawingRevision?: string | null;
|
|
57054
|
-
drawingUrl?: string | null;
|
|
57055
56971
|
customerId?: string | null;
|
|
57056
56972
|
customerName?: string | null;
|
|
57057
56973
|
quantity: number;
|
|
57058
56974
|
status: MeasurementFormInstanceStatus;
|
|
57059
|
-
|
|
57060
|
-
|
|
56975
|
+
statusChangedDate?: Date | null;
|
|
56976
|
+
schemas: MeasurementFormWorkorderSchemaDto[];
|
|
56977
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
56978
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
56979
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
57061
56980
|
progress: MeasurementFormProgressDto;
|
|
56981
|
+
approvedReportUrl?: string | null;
|
|
56982
|
+
currentResource?: ResourceDto | null;
|
|
57062
56983
|
}
|
|
57063
56984
|
|
|
57064
56985
|
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
57065
56986
|
|
|
57066
|
-
export class
|
|
56987
|
+
export class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkorderSchemaDto {
|
|
57067
56988
|
id!: string;
|
|
56989
|
+
partNumber?: string | null;
|
|
56990
|
+
partRevision?: string | null;
|
|
56991
|
+
drawing?: string | null;
|
|
56992
|
+
drawingRevision?: string | null;
|
|
56993
|
+
customerId?: string | null;
|
|
56994
|
+
drawingUrl?: string | null;
|
|
56995
|
+
markedDrawingUrl?: string | null;
|
|
56996
|
+
excludeFromCustomerDocumentation!: boolean;
|
|
56997
|
+
versionId!: number;
|
|
56998
|
+
specification?: string | null;
|
|
56999
|
+
progress!: MeasurementFormProgressDto;
|
|
57068
57000
|
|
|
57069
|
-
constructor(data?:
|
|
57001
|
+
constructor(data?: IMeasurementFormWorkorderSchemaDto) {
|
|
57070
57002
|
if (data) {
|
|
57071
57003
|
for (var property in data) {
|
|
57072
57004
|
if (data.hasOwnProperty(property))
|
|
57073
57005
|
(this as any)[property] = (data as any)[property];
|
|
57074
57006
|
}
|
|
57075
57007
|
}
|
|
57008
|
+
if (!data) {
|
|
57009
|
+
this.progress = new MeasurementFormProgressDto();
|
|
57010
|
+
}
|
|
57076
57011
|
}
|
|
57077
57012
|
|
|
57078
57013
|
init(_data?: any) {
|
|
57079
57014
|
if (_data) {
|
|
57080
57015
|
this.id = _data["id"];
|
|
57016
|
+
this.partNumber = _data["partNumber"];
|
|
57017
|
+
this.partRevision = _data["partRevision"];
|
|
57018
|
+
this.drawing = _data["drawing"];
|
|
57019
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
57020
|
+
this.customerId = _data["customerId"];
|
|
57021
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
57022
|
+
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
57023
|
+
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
57024
|
+
this.versionId = _data["versionId"];
|
|
57025
|
+
this.specification = _data["specification"];
|
|
57026
|
+
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57081
57027
|
}
|
|
57082
57028
|
}
|
|
57083
57029
|
|
|
57084
|
-
static fromJS(data: any):
|
|
57030
|
+
static fromJS(data: any): MeasurementFormWorkorderSchemaDto {
|
|
57085
57031
|
data = typeof data === 'object' ? data : {};
|
|
57086
|
-
let result = new
|
|
57032
|
+
let result = new MeasurementFormWorkorderSchemaDto();
|
|
57087
57033
|
result.init(data);
|
|
57088
57034
|
return result;
|
|
57089
57035
|
}
|
|
@@ -57091,68 +57037,34 @@ export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFor
|
|
|
57091
57037
|
toJSON(data?: any) {
|
|
57092
57038
|
data = typeof data === 'object' ? data : {};
|
|
57093
57039
|
data["id"] = this.id;
|
|
57040
|
+
data["partNumber"] = this.partNumber;
|
|
57041
|
+
data["partRevision"] = this.partRevision;
|
|
57042
|
+
data["drawing"] = this.drawing;
|
|
57043
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
57044
|
+
data["customerId"] = this.customerId;
|
|
57045
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
57046
|
+
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
57047
|
+
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
57048
|
+
data["versionId"] = this.versionId;
|
|
57049
|
+
data["specification"] = this.specification;
|
|
57050
|
+
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57094
57051
|
return data;
|
|
57095
57052
|
}
|
|
57096
57053
|
}
|
|
57097
57054
|
|
|
57098
|
-
export interface
|
|
57055
|
+
export interface IMeasurementFormWorkorderSchemaDto {
|
|
57099
57056
|
id: string;
|
|
57100
|
-
|
|
57101
|
-
|
|
57102
|
-
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57107
|
-
|
|
57108
|
-
|
|
57109
|
-
|
|
57110
|
-
|
|
57111
|
-
if (data) {
|
|
57112
|
-
for (var property in data) {
|
|
57113
|
-
if (data.hasOwnProperty(property))
|
|
57114
|
-
(this as any)[property] = (data as any)[property];
|
|
57115
|
-
}
|
|
57116
|
-
}
|
|
57117
|
-
}
|
|
57118
|
-
|
|
57119
|
-
init(_data?: any) {
|
|
57120
|
-
if (_data) {
|
|
57121
|
-
this.supplierId = _data["supplierId"];
|
|
57122
|
-
this.supplierName = _data["supplierName"];
|
|
57123
|
-
this.available = _data["available"];
|
|
57124
|
-
this.procurementOrder = _data["procurementOrder"];
|
|
57125
|
-
this.procurementLine = _data["procurementLine"];
|
|
57126
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57127
|
-
}
|
|
57128
|
-
}
|
|
57129
|
-
|
|
57130
|
-
static fromJS(data: any): MeasurementFormInstanceSupplierDto {
|
|
57131
|
-
data = typeof data === 'object' ? data : {};
|
|
57132
|
-
let result = new MeasurementFormInstanceSupplierDto();
|
|
57133
|
-
result.init(data);
|
|
57134
|
-
return result;
|
|
57135
|
-
}
|
|
57136
|
-
|
|
57137
|
-
toJSON(data?: any) {
|
|
57138
|
-
data = typeof data === 'object' ? data : {};
|
|
57139
|
-
data["supplierId"] = this.supplierId;
|
|
57140
|
-
data["supplierName"] = this.supplierName;
|
|
57141
|
-
data["available"] = this.available;
|
|
57142
|
-
data["procurementOrder"] = this.procurementOrder;
|
|
57143
|
-
data["procurementLine"] = this.procurementLine;
|
|
57144
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57145
|
-
return data;
|
|
57146
|
-
}
|
|
57147
|
-
}
|
|
57148
|
-
|
|
57149
|
-
export interface IMeasurementFormInstanceSupplierDto {
|
|
57150
|
-
supplierId: string;
|
|
57151
|
-
supplierName?: string | null;
|
|
57152
|
-
available?: boolean;
|
|
57153
|
-
procurementOrder?: string | null;
|
|
57154
|
-
procurementLine?: number | null;
|
|
57155
|
-
externalOrderNumber?: string | null;
|
|
57057
|
+
partNumber?: string | null;
|
|
57058
|
+
partRevision?: string | null;
|
|
57059
|
+
drawing?: string | null;
|
|
57060
|
+
drawingRevision?: string | null;
|
|
57061
|
+
customerId?: string | null;
|
|
57062
|
+
drawingUrl?: string | null;
|
|
57063
|
+
markedDrawingUrl?: string | null;
|
|
57064
|
+
excludeFromCustomerDocumentation: boolean;
|
|
57065
|
+
versionId: number;
|
|
57066
|
+
specification?: string | null;
|
|
57067
|
+
progress: MeasurementFormProgressDto;
|
|
57156
57068
|
}
|
|
57157
57069
|
|
|
57158
57070
|
export class MeasurementFormProgressDto implements IMeasurementFormProgressDto {
|
|
@@ -57203,15 +57115,12 @@ export interface IMeasurementFormProgressDto {
|
|
|
57203
57115
|
progress: number;
|
|
57204
57116
|
}
|
|
57205
57117
|
|
|
57206
|
-
export class
|
|
57207
|
-
|
|
57208
|
-
|
|
57209
|
-
|
|
57210
|
-
tenantId?: string | null;
|
|
57211
|
-
inactive?: boolean | null;
|
|
57212
|
-
includeInactiveSupplierAccess?: boolean | null;
|
|
57118
|
+
export class MeasurementFormWorkorderSequenceDto implements IMeasurementFormWorkorderSequenceDto {
|
|
57119
|
+
lot?: string | null;
|
|
57120
|
+
sequence!: string;
|
|
57121
|
+
serialNumber?: string | null;
|
|
57213
57122
|
|
|
57214
|
-
constructor(data?:
|
|
57123
|
+
constructor(data?: IMeasurementFormWorkorderSequenceDto) {
|
|
57215
57124
|
if (data) {
|
|
57216
57125
|
for (var property in data) {
|
|
57217
57126
|
if (data.hasOwnProperty(property))
|
|
@@ -57222,48 +57131,139 @@ export class ListMeasurementFormsRequest implements IListMeasurementFormsRequest
|
|
|
57222
57131
|
|
|
57223
57132
|
init(_data?: any) {
|
|
57224
57133
|
if (_data) {
|
|
57225
|
-
this.
|
|
57226
|
-
this.
|
|
57227
|
-
this.
|
|
57228
|
-
this.tenantId = _data["tenantId"];
|
|
57229
|
-
this.inactive = _data["inactive"];
|
|
57230
|
-
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
57134
|
+
this.lot = _data["lot"];
|
|
57135
|
+
this.sequence = _data["sequence"];
|
|
57136
|
+
this.serialNumber = _data["serialNumber"];
|
|
57231
57137
|
}
|
|
57232
57138
|
}
|
|
57233
57139
|
|
|
57234
|
-
static fromJS(data: any):
|
|
57140
|
+
static fromJS(data: any): MeasurementFormWorkorderSequenceDto {
|
|
57235
57141
|
data = typeof data === 'object' ? data : {};
|
|
57236
|
-
let result = new
|
|
57142
|
+
let result = new MeasurementFormWorkorderSequenceDto();
|
|
57237
57143
|
result.init(data);
|
|
57238
57144
|
return result;
|
|
57239
57145
|
}
|
|
57240
57146
|
|
|
57241
57147
|
toJSON(data?: any) {
|
|
57242
57148
|
data = typeof data === 'object' ? data : {};
|
|
57243
|
-
data["
|
|
57244
|
-
data["
|
|
57245
|
-
data["
|
|
57246
|
-
data["tenantId"] = this.tenantId;
|
|
57247
|
-
data["inactive"] = this.inactive;
|
|
57248
|
-
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
57149
|
+
data["lot"] = this.lot;
|
|
57150
|
+
data["sequence"] = this.sequence;
|
|
57151
|
+
data["serialNumber"] = this.serialNumber;
|
|
57249
57152
|
return data;
|
|
57250
57153
|
}
|
|
57251
57154
|
}
|
|
57252
57155
|
|
|
57253
|
-
export interface
|
|
57254
|
-
|
|
57255
|
-
|
|
57256
|
-
|
|
57257
|
-
tenantId?: string | null;
|
|
57258
|
-
inactive?: boolean | null;
|
|
57259
|
-
includeInactiveSupplierAccess?: boolean | null;
|
|
57156
|
+
export interface IMeasurementFormWorkorderSequenceDto {
|
|
57157
|
+
lot?: string | null;
|
|
57158
|
+
sequence: string;
|
|
57159
|
+
serialNumber?: string | null;
|
|
57260
57160
|
}
|
|
57261
57161
|
|
|
57262
|
-
export class
|
|
57263
|
-
|
|
57162
|
+
export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
|
|
57163
|
+
lot?: string | null;
|
|
57164
|
+
serialNumber!: string;
|
|
57165
|
+
customerSerialNumber?: string | null;
|
|
57166
|
+
|
|
57167
|
+
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
57168
|
+
if (data) {
|
|
57169
|
+
for (var property in data) {
|
|
57170
|
+
if (data.hasOwnProperty(property))
|
|
57171
|
+
(this as any)[property] = (data as any)[property];
|
|
57172
|
+
}
|
|
57173
|
+
}
|
|
57174
|
+
}
|
|
57175
|
+
|
|
57176
|
+
init(_data?: any) {
|
|
57177
|
+
if (_data) {
|
|
57178
|
+
this.lot = _data["lot"];
|
|
57179
|
+
this.serialNumber = _data["serialNumber"];
|
|
57180
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
57181
|
+
}
|
|
57182
|
+
}
|
|
57183
|
+
|
|
57184
|
+
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
57185
|
+
data = typeof data === 'object' ? data : {};
|
|
57186
|
+
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
57187
|
+
result.init(data);
|
|
57188
|
+
return result;
|
|
57189
|
+
}
|
|
57190
|
+
|
|
57191
|
+
toJSON(data?: any) {
|
|
57192
|
+
data = typeof data === 'object' ? data : {};
|
|
57193
|
+
data["lot"] = this.lot;
|
|
57194
|
+
data["serialNumber"] = this.serialNumber;
|
|
57195
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
57196
|
+
return data;
|
|
57197
|
+
}
|
|
57198
|
+
}
|
|
57199
|
+
|
|
57200
|
+
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
57201
|
+
lot?: string | null;
|
|
57202
|
+
serialNumber: string;
|
|
57203
|
+
customerSerialNumber?: string | null;
|
|
57204
|
+
}
|
|
57205
|
+
|
|
57206
|
+
export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
|
|
57207
|
+
supplierId!: string;
|
|
57208
|
+
supplierName?: string | null;
|
|
57209
|
+
available?: boolean;
|
|
57210
|
+
procurementOrder?: string | null;
|
|
57211
|
+
procurementLine?: number | null;
|
|
57212
|
+
externalOrderNumber?: string | null;
|
|
57213
|
+
|
|
57214
|
+
constructor(data?: IMeasurementFormWorkorderSupplierDto) {
|
|
57215
|
+
if (data) {
|
|
57216
|
+
for (var property in data) {
|
|
57217
|
+
if (data.hasOwnProperty(property))
|
|
57218
|
+
(this as any)[property] = (data as any)[property];
|
|
57219
|
+
}
|
|
57220
|
+
}
|
|
57221
|
+
}
|
|
57222
|
+
|
|
57223
|
+
init(_data?: any) {
|
|
57224
|
+
if (_data) {
|
|
57225
|
+
this.supplierId = _data["supplierId"];
|
|
57226
|
+
this.supplierName = _data["supplierName"];
|
|
57227
|
+
this.available = _data["available"];
|
|
57228
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
57229
|
+
this.procurementLine = _data["procurementLine"];
|
|
57230
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
57231
|
+
}
|
|
57232
|
+
}
|
|
57233
|
+
|
|
57234
|
+
static fromJS(data: any): MeasurementFormWorkorderSupplierDto {
|
|
57235
|
+
data = typeof data === 'object' ? data : {};
|
|
57236
|
+
let result = new MeasurementFormWorkorderSupplierDto();
|
|
57237
|
+
result.init(data);
|
|
57238
|
+
return result;
|
|
57239
|
+
}
|
|
57240
|
+
|
|
57241
|
+
toJSON(data?: any) {
|
|
57242
|
+
data = typeof data === 'object' ? data : {};
|
|
57243
|
+
data["supplierId"] = this.supplierId;
|
|
57244
|
+
data["supplierName"] = this.supplierName;
|
|
57245
|
+
data["available"] = this.available;
|
|
57246
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
57247
|
+
data["procurementLine"] = this.procurementLine;
|
|
57248
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
57249
|
+
return data;
|
|
57250
|
+
}
|
|
57251
|
+
}
|
|
57252
|
+
|
|
57253
|
+
export interface IMeasurementFormWorkorderSupplierDto {
|
|
57254
|
+
supplierId: string;
|
|
57255
|
+
supplierName?: string | null;
|
|
57256
|
+
available?: boolean;
|
|
57257
|
+
procurementOrder?: string | null;
|
|
57258
|
+
procurementLine?: number | null;
|
|
57259
|
+
externalOrderNumber?: string | null;
|
|
57260
|
+
}
|
|
57261
|
+
|
|
57262
|
+
export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57263
|
+
results!: MeasurementFormInstanceOverviewDto[];
|
|
57264
57264
|
continuationToken?: string | null;
|
|
57265
57265
|
|
|
57266
|
-
constructor(data?:
|
|
57266
|
+
constructor(data?: IPagedResultOfMeasurementFormInstanceOverviewDto) {
|
|
57267
57267
|
if (data) {
|
|
57268
57268
|
for (var property in data) {
|
|
57269
57269
|
if (data.hasOwnProperty(property))
|
|
@@ -57280,15 +57280,15 @@ export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMe
|
|
|
57280
57280
|
if (Array.isArray(_data["results"])) {
|
|
57281
57281
|
this.results = [] as any;
|
|
57282
57282
|
for (let item of _data["results"])
|
|
57283
|
-
this.results!.push(
|
|
57283
|
+
this.results!.push(MeasurementFormInstanceOverviewDto.fromJS(item));
|
|
57284
57284
|
}
|
|
57285
57285
|
this.continuationToken = _data["continuationToken"];
|
|
57286
57286
|
}
|
|
57287
57287
|
}
|
|
57288
57288
|
|
|
57289
|
-
static fromJS(data: any):
|
|
57289
|
+
static fromJS(data: any): PagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57290
57290
|
data = typeof data === 'object' ? data : {};
|
|
57291
|
-
let result = new
|
|
57291
|
+
let result = new PagedResultOfMeasurementFormInstanceOverviewDto();
|
|
57292
57292
|
result.init(data);
|
|
57293
57293
|
return result;
|
|
57294
57294
|
}
|
|
@@ -57305,33 +57305,29 @@ export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMe
|
|
|
57305
57305
|
}
|
|
57306
57306
|
}
|
|
57307
57307
|
|
|
57308
|
-
export interface
|
|
57309
|
-
results:
|
|
57308
|
+
export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
57309
|
+
results: MeasurementFormInstanceOverviewDto[];
|
|
57310
57310
|
continuationToken?: string | null;
|
|
57311
57311
|
}
|
|
57312
57312
|
|
|
57313
|
-
export class
|
|
57313
|
+
export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
|
|
57314
57314
|
id!: string;
|
|
57315
57315
|
readonly!: boolean;
|
|
57316
|
-
partNumber?: string | null;
|
|
57317
57316
|
partName?: string | null;
|
|
57317
|
+
partNumber?: string | null;
|
|
57318
57318
|
partRevision?: string | null;
|
|
57319
57319
|
drawing?: string | null;
|
|
57320
57320
|
drawingRevision?: string | null;
|
|
57321
|
+
drawingUrl?: string | null;
|
|
57321
57322
|
customerId?: string | null;
|
|
57322
57323
|
customerName?: string | null;
|
|
57323
57324
|
quantity!: number;
|
|
57324
57325
|
status!: MeasurementFormInstanceStatus;
|
|
57325
|
-
|
|
57326
|
-
|
|
57327
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
57328
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
57329
|
-
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
57326
|
+
schemas!: MeasurementFormInstanceSchemaOverviewDto[];
|
|
57327
|
+
supplierData?: MeasurementFormInstanceSupplierDto | null;
|
|
57330
57328
|
progress!: MeasurementFormProgressDto;
|
|
57331
|
-
approvedReportUrl?: string | null;
|
|
57332
|
-
currentResource?: ResourceDto | null;
|
|
57333
57329
|
|
|
57334
|
-
constructor(data?:
|
|
57330
|
+
constructor(data?: IMeasurementFormInstanceOverviewDto) {
|
|
57335
57331
|
if (data) {
|
|
57336
57332
|
for (var property in data) {
|
|
57337
57333
|
if (data.hasOwnProperty(property))
|
|
@@ -57340,8 +57336,6 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57340
57336
|
}
|
|
57341
57337
|
if (!data) {
|
|
57342
57338
|
this.schemas = [];
|
|
57343
|
-
this.serialNumbers = [];
|
|
57344
|
-
this.suppliers = [];
|
|
57345
57339
|
this.progress = new MeasurementFormProgressDto();
|
|
57346
57340
|
}
|
|
57347
57341
|
}
|
|
@@ -57350,45 +57344,29 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57350
57344
|
if (_data) {
|
|
57351
57345
|
this.id = _data["id"];
|
|
57352
57346
|
this.readonly = _data["readonly"];
|
|
57353
|
-
this.partNumber = _data["partNumber"];
|
|
57354
57347
|
this.partName = _data["partName"];
|
|
57348
|
+
this.partNumber = _data["partNumber"];
|
|
57355
57349
|
this.partRevision = _data["partRevision"];
|
|
57356
57350
|
this.drawing = _data["drawing"];
|
|
57357
57351
|
this.drawingRevision = _data["drawingRevision"];
|
|
57352
|
+
this.drawingUrl = _data["drawingUrl"];
|
|
57358
57353
|
this.customerId = _data["customerId"];
|
|
57359
57354
|
this.customerName = _data["customerName"];
|
|
57360
57355
|
this.quantity = _data["quantity"];
|
|
57361
57356
|
this.status = _data["status"];
|
|
57362
|
-
this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined as any;
|
|
57363
57357
|
if (Array.isArray(_data["schemas"])) {
|
|
57364
57358
|
this.schemas = [] as any;
|
|
57365
57359
|
for (let item of _data["schemas"])
|
|
57366
|
-
this.schemas!.push(
|
|
57367
|
-
}
|
|
57368
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57369
|
-
this.sequences = [] as any;
|
|
57370
|
-
for (let item of _data["sequences"])
|
|
57371
|
-
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
57372
|
-
}
|
|
57373
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
57374
|
-
this.serialNumbers = [] as any;
|
|
57375
|
-
for (let item of _data["serialNumbers"])
|
|
57376
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
57377
|
-
}
|
|
57378
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
57379
|
-
this.suppliers = [] as any;
|
|
57380
|
-
for (let item of _data["suppliers"])
|
|
57381
|
-
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
57360
|
+
this.schemas!.push(MeasurementFormInstanceSchemaOverviewDto.fromJS(item));
|
|
57382
57361
|
}
|
|
57362
|
+
this.supplierData = _data["supplierData"] ? MeasurementFormInstanceSupplierDto.fromJS(_data["supplierData"]) : undefined as any;
|
|
57383
57363
|
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57384
|
-
this.approvedReportUrl = _data["approvedReportUrl"];
|
|
57385
|
-
this.currentResource = _data["currentResource"] ? ResourceDto.fromJS(_data["currentResource"]) : undefined as any;
|
|
57386
57364
|
}
|
|
57387
57365
|
}
|
|
57388
57366
|
|
|
57389
|
-
static fromJS(data: any):
|
|
57367
|
+
static fromJS(data: any): MeasurementFormInstanceOverviewDto {
|
|
57390
57368
|
data = typeof data === 'object' ? data : {};
|
|
57391
|
-
let result = new
|
|
57369
|
+
let result = new MeasurementFormInstanceOverviewDto();
|
|
57392
57370
|
result.init(data);
|
|
57393
57371
|
return result;
|
|
57394
57372
|
}
|
|
@@ -57397,111 +57375,66 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
|
|
|
57397
57375
|
data = typeof data === 'object' ? data : {};
|
|
57398
57376
|
data["id"] = this.id;
|
|
57399
57377
|
data["readonly"] = this.readonly;
|
|
57400
|
-
data["partNumber"] = this.partNumber;
|
|
57401
57378
|
data["partName"] = this.partName;
|
|
57379
|
+
data["partNumber"] = this.partNumber;
|
|
57402
57380
|
data["partRevision"] = this.partRevision;
|
|
57403
57381
|
data["drawing"] = this.drawing;
|
|
57404
57382
|
data["drawingRevision"] = this.drawingRevision;
|
|
57383
|
+
data["drawingUrl"] = this.drawingUrl;
|
|
57405
57384
|
data["customerId"] = this.customerId;
|
|
57406
57385
|
data["customerName"] = this.customerName;
|
|
57407
57386
|
data["quantity"] = this.quantity;
|
|
57408
57387
|
data["status"] = this.status;
|
|
57409
|
-
data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined as any;
|
|
57410
57388
|
if (Array.isArray(this.schemas)) {
|
|
57411
57389
|
data["schemas"] = [];
|
|
57412
57390
|
for (let item of this.schemas)
|
|
57413
57391
|
data["schemas"].push(item ? item.toJSON() : undefined as any);
|
|
57414
57392
|
}
|
|
57415
|
-
|
|
57416
|
-
data["sequences"] = [];
|
|
57417
|
-
for (let item of this.sequences)
|
|
57418
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
57419
|
-
}
|
|
57420
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
57421
|
-
data["serialNumbers"] = [];
|
|
57422
|
-
for (let item of this.serialNumbers)
|
|
57423
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
57424
|
-
}
|
|
57425
|
-
if (Array.isArray(this.suppliers)) {
|
|
57426
|
-
data["suppliers"] = [];
|
|
57427
|
-
for (let item of this.suppliers)
|
|
57428
|
-
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
57429
|
-
}
|
|
57393
|
+
data["supplierData"] = this.supplierData ? this.supplierData.toJSON() : undefined as any;
|
|
57430
57394
|
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57431
|
-
data["approvedReportUrl"] = this.approvedReportUrl;
|
|
57432
|
-
data["currentResource"] = this.currentResource ? this.currentResource.toJSON() : undefined as any;
|
|
57433
57395
|
return data;
|
|
57434
57396
|
}
|
|
57435
57397
|
}
|
|
57436
57398
|
|
|
57437
|
-
export interface
|
|
57399
|
+
export interface IMeasurementFormInstanceOverviewDto {
|
|
57438
57400
|
id: string;
|
|
57439
57401
|
readonly: boolean;
|
|
57440
|
-
partNumber?: string | null;
|
|
57441
57402
|
partName?: string | null;
|
|
57403
|
+
partNumber?: string | null;
|
|
57442
57404
|
partRevision?: string | null;
|
|
57443
57405
|
drawing?: string | null;
|
|
57444
57406
|
drawingRevision?: string | null;
|
|
57407
|
+
drawingUrl?: string | null;
|
|
57445
57408
|
customerId?: string | null;
|
|
57446
57409
|
customerName?: string | null;
|
|
57447
57410
|
quantity: number;
|
|
57448
57411
|
status: MeasurementFormInstanceStatus;
|
|
57449
|
-
|
|
57450
|
-
|
|
57451
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
57452
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
57453
|
-
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
57412
|
+
schemas: MeasurementFormInstanceSchemaOverviewDto[];
|
|
57413
|
+
supplierData?: MeasurementFormInstanceSupplierDto | null;
|
|
57454
57414
|
progress: MeasurementFormProgressDto;
|
|
57455
|
-
approvedReportUrl?: string | null;
|
|
57456
|
-
currentResource?: ResourceDto | null;
|
|
57457
57415
|
}
|
|
57458
57416
|
|
|
57459
|
-
export class
|
|
57417
|
+
export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
|
|
57460
57418
|
id!: string;
|
|
57461
|
-
partNumber?: string | null;
|
|
57462
|
-
partRevision?: string | null;
|
|
57463
|
-
drawing?: string | null;
|
|
57464
|
-
drawingRevision?: string | null;
|
|
57465
|
-
customerId?: string | null;
|
|
57466
|
-
drawingUrl?: string | null;
|
|
57467
|
-
markedDrawingUrl?: string | null;
|
|
57468
|
-
excludeFromCustomerDocumentation!: boolean;
|
|
57469
|
-
versionId!: number;
|
|
57470
|
-
specification?: string | null;
|
|
57471
|
-
progress!: MeasurementFormProgressDto;
|
|
57472
57419
|
|
|
57473
|
-
constructor(data?:
|
|
57420
|
+
constructor(data?: IMeasurementFormInstanceSchemaOverviewDto) {
|
|
57474
57421
|
if (data) {
|
|
57475
57422
|
for (var property in data) {
|
|
57476
57423
|
if (data.hasOwnProperty(property))
|
|
57477
57424
|
(this as any)[property] = (data as any)[property];
|
|
57478
57425
|
}
|
|
57479
57426
|
}
|
|
57480
|
-
if (!data) {
|
|
57481
|
-
this.progress = new MeasurementFormProgressDto();
|
|
57482
|
-
}
|
|
57483
57427
|
}
|
|
57484
57428
|
|
|
57485
57429
|
init(_data?: any) {
|
|
57486
57430
|
if (_data) {
|
|
57487
57431
|
this.id = _data["id"];
|
|
57488
|
-
this.partNumber = _data["partNumber"];
|
|
57489
|
-
this.partRevision = _data["partRevision"];
|
|
57490
|
-
this.drawing = _data["drawing"];
|
|
57491
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
57492
|
-
this.customerId = _data["customerId"];
|
|
57493
|
-
this.drawingUrl = _data["drawingUrl"];
|
|
57494
|
-
this.markedDrawingUrl = _data["markedDrawingUrl"];
|
|
57495
|
-
this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
|
|
57496
|
-
this.versionId = _data["versionId"];
|
|
57497
|
-
this.specification = _data["specification"];
|
|
57498
|
-
this.progress = _data["progress"] ? MeasurementFormProgressDto.fromJS(_data["progress"]) : new MeasurementFormProgressDto();
|
|
57499
57432
|
}
|
|
57500
57433
|
}
|
|
57501
57434
|
|
|
57502
|
-
static fromJS(data: any):
|
|
57435
|
+
static fromJS(data: any): MeasurementFormInstanceSchemaOverviewDto {
|
|
57503
57436
|
data = typeof data === 'object' ? data : {};
|
|
57504
|
-
let result = new
|
|
57437
|
+
let result = new MeasurementFormInstanceSchemaOverviewDto();
|
|
57505
57438
|
result.init(data);
|
|
57506
57439
|
return result;
|
|
57507
57440
|
}
|
|
@@ -57509,125 +57442,15 @@ export class MeasurementFormWorkorderSchemaDto implements IMeasurementFormWorkor
|
|
|
57509
57442
|
toJSON(data?: any) {
|
|
57510
57443
|
data = typeof data === 'object' ? data : {};
|
|
57511
57444
|
data["id"] = this.id;
|
|
57512
|
-
data["partNumber"] = this.partNumber;
|
|
57513
|
-
data["partRevision"] = this.partRevision;
|
|
57514
|
-
data["drawing"] = this.drawing;
|
|
57515
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
57516
|
-
data["customerId"] = this.customerId;
|
|
57517
|
-
data["drawingUrl"] = this.drawingUrl;
|
|
57518
|
-
data["markedDrawingUrl"] = this.markedDrawingUrl;
|
|
57519
|
-
data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
|
|
57520
|
-
data["versionId"] = this.versionId;
|
|
57521
|
-
data["specification"] = this.specification;
|
|
57522
|
-
data["progress"] = this.progress ? this.progress.toJSON() : undefined as any;
|
|
57523
57445
|
return data;
|
|
57524
57446
|
}
|
|
57525
57447
|
}
|
|
57526
57448
|
|
|
57527
|
-
export interface
|
|
57449
|
+
export interface IMeasurementFormInstanceSchemaOverviewDto {
|
|
57528
57450
|
id: string;
|
|
57529
|
-
partNumber?: string | null;
|
|
57530
|
-
partRevision?: string | null;
|
|
57531
|
-
drawing?: string | null;
|
|
57532
|
-
drawingRevision?: string | null;
|
|
57533
|
-
customerId?: string | null;
|
|
57534
|
-
drawingUrl?: string | null;
|
|
57535
|
-
markedDrawingUrl?: string | null;
|
|
57536
|
-
excludeFromCustomerDocumentation: boolean;
|
|
57537
|
-
versionId: number;
|
|
57538
|
-
specification?: string | null;
|
|
57539
|
-
progress: MeasurementFormProgressDto;
|
|
57540
|
-
}
|
|
57541
|
-
|
|
57542
|
-
export class MeasurementFormWorkorderSequenceDto implements IMeasurementFormWorkorderSequenceDto {
|
|
57543
|
-
lot?: string | null;
|
|
57544
|
-
sequence!: string;
|
|
57545
|
-
serialNumber?: string | null;
|
|
57546
|
-
|
|
57547
|
-
constructor(data?: IMeasurementFormWorkorderSequenceDto) {
|
|
57548
|
-
if (data) {
|
|
57549
|
-
for (var property in data) {
|
|
57550
|
-
if (data.hasOwnProperty(property))
|
|
57551
|
-
(this as any)[property] = (data as any)[property];
|
|
57552
|
-
}
|
|
57553
|
-
}
|
|
57554
|
-
}
|
|
57555
|
-
|
|
57556
|
-
init(_data?: any) {
|
|
57557
|
-
if (_data) {
|
|
57558
|
-
this.lot = _data["lot"];
|
|
57559
|
-
this.sequence = _data["sequence"];
|
|
57560
|
-
this.serialNumber = _data["serialNumber"];
|
|
57561
|
-
}
|
|
57562
|
-
}
|
|
57563
|
-
|
|
57564
|
-
static fromJS(data: any): MeasurementFormWorkorderSequenceDto {
|
|
57565
|
-
data = typeof data === 'object' ? data : {};
|
|
57566
|
-
let result = new MeasurementFormWorkorderSequenceDto();
|
|
57567
|
-
result.init(data);
|
|
57568
|
-
return result;
|
|
57569
|
-
}
|
|
57570
|
-
|
|
57571
|
-
toJSON(data?: any) {
|
|
57572
|
-
data = typeof data === 'object' ? data : {};
|
|
57573
|
-
data["lot"] = this.lot;
|
|
57574
|
-
data["sequence"] = this.sequence;
|
|
57575
|
-
data["serialNumber"] = this.serialNumber;
|
|
57576
|
-
return data;
|
|
57577
|
-
}
|
|
57578
|
-
}
|
|
57579
|
-
|
|
57580
|
-
export interface IMeasurementFormWorkorderSequenceDto {
|
|
57581
|
-
lot?: string | null;
|
|
57582
|
-
sequence: string;
|
|
57583
|
-
serialNumber?: string | null;
|
|
57584
57451
|
}
|
|
57585
57452
|
|
|
57586
|
-
export class
|
|
57587
|
-
lot?: string | null;
|
|
57588
|
-
serialNumber!: string;
|
|
57589
|
-
customerSerialNumber?: string | null;
|
|
57590
|
-
|
|
57591
|
-
constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
|
|
57592
|
-
if (data) {
|
|
57593
|
-
for (var property in data) {
|
|
57594
|
-
if (data.hasOwnProperty(property))
|
|
57595
|
-
(this as any)[property] = (data as any)[property];
|
|
57596
|
-
}
|
|
57597
|
-
}
|
|
57598
|
-
}
|
|
57599
|
-
|
|
57600
|
-
init(_data?: any) {
|
|
57601
|
-
if (_data) {
|
|
57602
|
-
this.lot = _data["lot"];
|
|
57603
|
-
this.serialNumber = _data["serialNumber"];
|
|
57604
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
57605
|
-
}
|
|
57606
|
-
}
|
|
57607
|
-
|
|
57608
|
-
static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
|
|
57609
|
-
data = typeof data === 'object' ? data : {};
|
|
57610
|
-
let result = new MeasurementFormWorkorderSerialNumberDto();
|
|
57611
|
-
result.init(data);
|
|
57612
|
-
return result;
|
|
57613
|
-
}
|
|
57614
|
-
|
|
57615
|
-
toJSON(data?: any) {
|
|
57616
|
-
data = typeof data === 'object' ? data : {};
|
|
57617
|
-
data["lot"] = this.lot;
|
|
57618
|
-
data["serialNumber"] = this.serialNumber;
|
|
57619
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
57620
|
-
return data;
|
|
57621
|
-
}
|
|
57622
|
-
}
|
|
57623
|
-
|
|
57624
|
-
export interface IMeasurementFormWorkorderSerialNumberDto {
|
|
57625
|
-
lot?: string | null;
|
|
57626
|
-
serialNumber: string;
|
|
57627
|
-
customerSerialNumber?: string | null;
|
|
57628
|
-
}
|
|
57629
|
-
|
|
57630
|
-
export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
|
|
57453
|
+
export class MeasurementFormInstanceSupplierDto implements IMeasurementFormInstanceSupplierDto {
|
|
57631
57454
|
supplierId!: string;
|
|
57632
57455
|
supplierName?: string | null;
|
|
57633
57456
|
available?: boolean;
|
|
@@ -57635,7 +57458,7 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57635
57458
|
procurementLine?: number | null;
|
|
57636
57459
|
externalOrderNumber?: string | null;
|
|
57637
57460
|
|
|
57638
|
-
constructor(data?:
|
|
57461
|
+
constructor(data?: IMeasurementFormInstanceSupplierDto) {
|
|
57639
57462
|
if (data) {
|
|
57640
57463
|
for (var property in data) {
|
|
57641
57464
|
if (data.hasOwnProperty(property))
|
|
@@ -57655,9 +57478,9 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57655
57478
|
}
|
|
57656
57479
|
}
|
|
57657
57480
|
|
|
57658
|
-
static fromJS(data: any):
|
|
57481
|
+
static fromJS(data: any): MeasurementFormInstanceSupplierDto {
|
|
57659
57482
|
data = typeof data === 'object' ? data : {};
|
|
57660
|
-
let result = new
|
|
57483
|
+
let result = new MeasurementFormInstanceSupplierDto();
|
|
57661
57484
|
result.init(data);
|
|
57662
57485
|
return result;
|
|
57663
57486
|
}
|
|
@@ -57674,7 +57497,7 @@ export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWork
|
|
|
57674
57497
|
}
|
|
57675
57498
|
}
|
|
57676
57499
|
|
|
57677
|
-
export interface
|
|
57500
|
+
export interface IMeasurementFormInstanceSupplierDto {
|
|
57678
57501
|
supplierId: string;
|
|
57679
57502
|
supplierName?: string | null;
|
|
57680
57503
|
available?: boolean;
|
|
@@ -57683,62 +57506,15 @@ export interface IMeasurementFormWorkorderSupplierDto {
|
|
|
57683
57506
|
externalOrderNumber?: string | null;
|
|
57684
57507
|
}
|
|
57685
57508
|
|
|
57686
|
-
export class
|
|
57687
|
-
ids!: string[];
|
|
57688
|
-
|
|
57689
|
-
constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest) {
|
|
57690
|
-
if (data) {
|
|
57691
|
-
for (var property in data) {
|
|
57692
|
-
if (data.hasOwnProperty(property))
|
|
57693
|
-
(this as any)[property] = (data as any)[property];
|
|
57694
|
-
}
|
|
57695
|
-
}
|
|
57696
|
-
if (!data) {
|
|
57697
|
-
this.ids = [];
|
|
57698
|
-
}
|
|
57699
|
-
}
|
|
57700
|
-
|
|
57701
|
-
init(_data?: any) {
|
|
57702
|
-
if (_data) {
|
|
57703
|
-
if (Array.isArray(_data["ids"])) {
|
|
57704
|
-
this.ids = [] as any;
|
|
57705
|
-
for (let item of _data["ids"])
|
|
57706
|
-
this.ids!.push(item);
|
|
57707
|
-
}
|
|
57708
|
-
}
|
|
57709
|
-
}
|
|
57710
|
-
|
|
57711
|
-
static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest {
|
|
57712
|
-
data = typeof data === 'object' ? data : {};
|
|
57713
|
-
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
57714
|
-
result.init(data);
|
|
57715
|
-
return result;
|
|
57716
|
-
}
|
|
57717
|
-
|
|
57718
|
-
toJSON(data?: any) {
|
|
57719
|
-
data = typeof data === 'object' ? data : {};
|
|
57720
|
-
if (Array.isArray(this.ids)) {
|
|
57721
|
-
data["ids"] = [];
|
|
57722
|
-
for (let item of this.ids)
|
|
57723
|
-
data["ids"].push(item);
|
|
57724
|
-
}
|
|
57725
|
-
return data;
|
|
57726
|
-
}
|
|
57727
|
-
}
|
|
57728
|
-
|
|
57729
|
-
export interface IDeleteMeasurementFormsInstancesBulkRequest {
|
|
57730
|
-
ids: string[];
|
|
57731
|
-
}
|
|
57732
|
-
|
|
57733
|
-
export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
57734
|
-
status?: MeasurementFormInstanceStatus | null;
|
|
57735
|
-
statusChangedSince?: Date | null;
|
|
57736
|
-
onlyWithReports?: boolean | null;
|
|
57509
|
+
export class ListMeasurementFormsRequest implements IListMeasurementFormsRequest {
|
|
57737
57510
|
pageSize?: number | null;
|
|
57738
57511
|
search?: string | null;
|
|
57739
57512
|
continuationToken?: string | null;
|
|
57513
|
+
tenantId?: string | null;
|
|
57514
|
+
inactive?: boolean | null;
|
|
57515
|
+
includeInactiveSupplierAccess?: boolean | null;
|
|
57740
57516
|
|
|
57741
|
-
constructor(data?:
|
|
57517
|
+
constructor(data?: IListMeasurementFormsRequest) {
|
|
57742
57518
|
if (data) {
|
|
57743
57519
|
for (var property in data) {
|
|
57744
57520
|
if (data.hasOwnProperty(property))
|
|
@@ -57749,41 +57525,41 @@ export class ListMeasurementFormsByStatusRequest implements IListMeasurementForm
|
|
|
57749
57525
|
|
|
57750
57526
|
init(_data?: any) {
|
|
57751
57527
|
if (_data) {
|
|
57752
|
-
this.status = _data["status"];
|
|
57753
|
-
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined as any;
|
|
57754
|
-
this.onlyWithReports = _data["onlyWithReports"];
|
|
57755
57528
|
this.pageSize = _data["pageSize"];
|
|
57756
57529
|
this.search = _data["search"];
|
|
57757
57530
|
this.continuationToken = _data["continuationToken"];
|
|
57531
|
+
this.tenantId = _data["tenantId"];
|
|
57532
|
+
this.inactive = _data["inactive"];
|
|
57533
|
+
this.includeInactiveSupplierAccess = _data["includeInactiveSupplierAccess"];
|
|
57758
57534
|
}
|
|
57759
57535
|
}
|
|
57760
57536
|
|
|
57761
|
-
static fromJS(data: any):
|
|
57537
|
+
static fromJS(data: any): ListMeasurementFormsRequest {
|
|
57762
57538
|
data = typeof data === 'object' ? data : {};
|
|
57763
|
-
let result = new
|
|
57539
|
+
let result = new ListMeasurementFormsRequest();
|
|
57764
57540
|
result.init(data);
|
|
57765
57541
|
return result;
|
|
57766
57542
|
}
|
|
57767
57543
|
|
|
57768
57544
|
toJSON(data?: any) {
|
|
57769
57545
|
data = typeof data === 'object' ? data : {};
|
|
57770
|
-
data["status"] = this.status;
|
|
57771
|
-
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined as any;
|
|
57772
|
-
data["onlyWithReports"] = this.onlyWithReports;
|
|
57773
57546
|
data["pageSize"] = this.pageSize;
|
|
57774
57547
|
data["search"] = this.search;
|
|
57775
57548
|
data["continuationToken"] = this.continuationToken;
|
|
57549
|
+
data["tenantId"] = this.tenantId;
|
|
57550
|
+
data["inactive"] = this.inactive;
|
|
57551
|
+
data["includeInactiveSupplierAccess"] = this.includeInactiveSupplierAccess;
|
|
57776
57552
|
return data;
|
|
57777
57553
|
}
|
|
57778
57554
|
}
|
|
57779
57555
|
|
|
57780
|
-
export interface
|
|
57781
|
-
status?: MeasurementFormInstanceStatus | null;
|
|
57782
|
-
statusChangedSince?: Date | null;
|
|
57783
|
-
onlyWithReports?: boolean | null;
|
|
57556
|
+
export interface IListMeasurementFormsRequest {
|
|
57784
57557
|
pageSize?: number | null;
|
|
57785
57558
|
search?: string | null;
|
|
57786
57559
|
continuationToken?: string | null;
|
|
57560
|
+
tenantId?: string | null;
|
|
57561
|
+
inactive?: boolean | null;
|
|
57562
|
+
includeInactiveSupplierAccess?: boolean | null;
|
|
57787
57563
|
}
|
|
57788
57564
|
|
|
57789
57565
|
export class MeasurementFormInstanceFeedbackDto implements IMeasurementFormInstanceFeedbackDto {
|
|
@@ -57858,233 +57634,6 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
57858
57634
|
created: Date;
|
|
57859
57635
|
}
|
|
57860
57636
|
|
|
57861
|
-
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
57862
|
-
schemaId!: string;
|
|
57863
|
-
customerId?: string | null;
|
|
57864
|
-
customerName?: string | null;
|
|
57865
|
-
purchaseOrder?: string | null;
|
|
57866
|
-
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
57867
|
-
serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
57868
|
-
|
|
57869
|
-
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
57870
|
-
if (data) {
|
|
57871
|
-
for (var property in data) {
|
|
57872
|
-
if (data.hasOwnProperty(property))
|
|
57873
|
-
(this as any)[property] = (data as any)[property];
|
|
57874
|
-
}
|
|
57875
|
-
}
|
|
57876
|
-
if (!data) {
|
|
57877
|
-
this.serialNumbers = [];
|
|
57878
|
-
}
|
|
57879
|
-
}
|
|
57880
|
-
|
|
57881
|
-
init(_data?: any) {
|
|
57882
|
-
if (_data) {
|
|
57883
|
-
this.schemaId = _data["schemaId"];
|
|
57884
|
-
this.customerId = _data["customerId"];
|
|
57885
|
-
this.customerName = _data["customerName"];
|
|
57886
|
-
this.purchaseOrder = _data["purchaseOrder"];
|
|
57887
|
-
if (Array.isArray(_data["sequences"])) {
|
|
57888
|
-
this.sequences = [] as any;
|
|
57889
|
-
for (let item of _data["sequences"])
|
|
57890
|
-
this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
57891
|
-
}
|
|
57892
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
57893
|
-
this.serialNumbers = [] as any;
|
|
57894
|
-
for (let item of _data["serialNumbers"])
|
|
57895
|
-
this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
57896
|
-
}
|
|
57897
|
-
}
|
|
57898
|
-
}
|
|
57899
|
-
|
|
57900
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
57901
|
-
data = typeof data === 'object' ? data : {};
|
|
57902
|
-
let result = new CreateMeasurementFormInstanceRequest();
|
|
57903
|
-
result.init(data);
|
|
57904
|
-
return result;
|
|
57905
|
-
}
|
|
57906
|
-
|
|
57907
|
-
toJSON(data?: any) {
|
|
57908
|
-
data = typeof data === 'object' ? data : {};
|
|
57909
|
-
data["schemaId"] = this.schemaId;
|
|
57910
|
-
data["customerId"] = this.customerId;
|
|
57911
|
-
data["customerName"] = this.customerName;
|
|
57912
|
-
data["purchaseOrder"] = this.purchaseOrder;
|
|
57913
|
-
if (Array.isArray(this.sequences)) {
|
|
57914
|
-
data["sequences"] = [];
|
|
57915
|
-
for (let item of this.sequences)
|
|
57916
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
57917
|
-
}
|
|
57918
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
57919
|
-
data["serialNumbers"] = [];
|
|
57920
|
-
for (let item of this.serialNumbers)
|
|
57921
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
57922
|
-
}
|
|
57923
|
-
return data;
|
|
57924
|
-
}
|
|
57925
|
-
}
|
|
57926
|
-
|
|
57927
|
-
export interface ICreateMeasurementFormInstanceRequest {
|
|
57928
|
-
schemaId: string;
|
|
57929
|
-
customerId?: string | null;
|
|
57930
|
-
customerName?: string | null;
|
|
57931
|
-
purchaseOrder?: string | null;
|
|
57932
|
-
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
57933
|
-
serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
57934
|
-
}
|
|
57935
|
-
|
|
57936
|
-
export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
57937
|
-
sequenceNumber!: string;
|
|
57938
|
-
serialNumber?: string | null;
|
|
57939
|
-
|
|
57940
|
-
constructor(data?: ICreateMeasurementFormInstanceRequestSequence) {
|
|
57941
|
-
if (data) {
|
|
57942
|
-
for (var property in data) {
|
|
57943
|
-
if (data.hasOwnProperty(property))
|
|
57944
|
-
(this as any)[property] = (data as any)[property];
|
|
57945
|
-
}
|
|
57946
|
-
}
|
|
57947
|
-
}
|
|
57948
|
-
|
|
57949
|
-
init(_data?: any) {
|
|
57950
|
-
if (_data) {
|
|
57951
|
-
this.sequenceNumber = _data["sequenceNumber"];
|
|
57952
|
-
this.serialNumber = _data["serialNumber"];
|
|
57953
|
-
}
|
|
57954
|
-
}
|
|
57955
|
-
|
|
57956
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence {
|
|
57957
|
-
data = typeof data === 'object' ? data : {};
|
|
57958
|
-
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
57959
|
-
result.init(data);
|
|
57960
|
-
return result;
|
|
57961
|
-
}
|
|
57962
|
-
|
|
57963
|
-
toJSON(data?: any) {
|
|
57964
|
-
data = typeof data === 'object' ? data : {};
|
|
57965
|
-
data["sequenceNumber"] = this.sequenceNumber;
|
|
57966
|
-
data["serialNumber"] = this.serialNumber;
|
|
57967
|
-
return data;
|
|
57968
|
-
}
|
|
57969
|
-
}
|
|
57970
|
-
|
|
57971
|
-
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
57972
|
-
sequenceNumber: string;
|
|
57973
|
-
serialNumber?: string | null;
|
|
57974
|
-
}
|
|
57975
|
-
|
|
57976
|
-
export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
57977
|
-
serialNumber!: string;
|
|
57978
|
-
customerSerialNumber?: string | null;
|
|
57979
|
-
|
|
57980
|
-
constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
|
|
57981
|
-
if (data) {
|
|
57982
|
-
for (var property in data) {
|
|
57983
|
-
if (data.hasOwnProperty(property))
|
|
57984
|
-
(this as any)[property] = (data as any)[property];
|
|
57985
|
-
}
|
|
57986
|
-
}
|
|
57987
|
-
}
|
|
57988
|
-
|
|
57989
|
-
init(_data?: any) {
|
|
57990
|
-
if (_data) {
|
|
57991
|
-
this.serialNumber = _data["serialNumber"];
|
|
57992
|
-
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
57993
|
-
}
|
|
57994
|
-
}
|
|
57995
|
-
|
|
57996
|
-
static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
|
|
57997
|
-
data = typeof data === 'object' ? data : {};
|
|
57998
|
-
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
57999
|
-
result.init(data);
|
|
58000
|
-
return result;
|
|
58001
|
-
}
|
|
58002
|
-
|
|
58003
|
-
toJSON(data?: any) {
|
|
58004
|
-
data = typeof data === 'object' ? data : {};
|
|
58005
|
-
data["serialNumber"] = this.serialNumber;
|
|
58006
|
-
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
58007
|
-
return data;
|
|
58008
|
-
}
|
|
58009
|
-
}
|
|
58010
|
-
|
|
58011
|
-
export interface ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
58012
|
-
serialNumber: string;
|
|
58013
|
-
customerSerialNumber?: string | null;
|
|
58014
|
-
}
|
|
58015
|
-
|
|
58016
|
-
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
58017
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
58018
|
-
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
58019
|
-
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
58020
|
-
|
|
58021
|
-
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
58022
|
-
if (data) {
|
|
58023
|
-
for (var property in data) {
|
|
58024
|
-
if (data.hasOwnProperty(property))
|
|
58025
|
-
(this as any)[property] = (data as any)[property];
|
|
58026
|
-
}
|
|
58027
|
-
}
|
|
58028
|
-
if (!data) {
|
|
58029
|
-
this.serialNumbers = [];
|
|
58030
|
-
this.suppliers = [];
|
|
58031
|
-
}
|
|
58032
|
-
}
|
|
58033
|
-
|
|
58034
|
-
init(_data?: any) {
|
|
58035
|
-
if (_data) {
|
|
58036
|
-
if (Array.isArray(_data["sequences"])) {
|
|
58037
|
-
this.sequences = [] as any;
|
|
58038
|
-
for (let item of _data["sequences"])
|
|
58039
|
-
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
58040
|
-
}
|
|
58041
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
58042
|
-
this.serialNumbers = [] as any;
|
|
58043
|
-
for (let item of _data["serialNumbers"])
|
|
58044
|
-
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
58045
|
-
}
|
|
58046
|
-
if (Array.isArray(_data["suppliers"])) {
|
|
58047
|
-
this.suppliers = [] as any;
|
|
58048
|
-
for (let item of _data["suppliers"])
|
|
58049
|
-
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
58050
|
-
}
|
|
58051
|
-
}
|
|
58052
|
-
}
|
|
58053
|
-
|
|
58054
|
-
static fromJS(data: any): UpdateMeasurementFormInstanceRequest {
|
|
58055
|
-
data = typeof data === 'object' ? data : {};
|
|
58056
|
-
let result = new UpdateMeasurementFormInstanceRequest();
|
|
58057
|
-
result.init(data);
|
|
58058
|
-
return result;
|
|
58059
|
-
}
|
|
58060
|
-
|
|
58061
|
-
toJSON(data?: any) {
|
|
58062
|
-
data = typeof data === 'object' ? data : {};
|
|
58063
|
-
if (Array.isArray(this.sequences)) {
|
|
58064
|
-
data["sequences"] = [];
|
|
58065
|
-
for (let item of this.sequences)
|
|
58066
|
-
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
58067
|
-
}
|
|
58068
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
58069
|
-
data["serialNumbers"] = [];
|
|
58070
|
-
for (let item of this.serialNumbers)
|
|
58071
|
-
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
58072
|
-
}
|
|
58073
|
-
if (Array.isArray(this.suppliers)) {
|
|
58074
|
-
data["suppliers"] = [];
|
|
58075
|
-
for (let item of this.suppliers)
|
|
58076
|
-
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
58077
|
-
}
|
|
58078
|
-
return data;
|
|
58079
|
-
}
|
|
58080
|
-
}
|
|
58081
|
-
|
|
58082
|
-
export interface IUpdateMeasurementFormInstanceRequest {
|
|
58083
|
-
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
58084
|
-
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
58085
|
-
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
58086
|
-
}
|
|
58087
|
-
|
|
58088
57637
|
export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
58089
57638
|
elements!: MeasurementFormInstanceElementDto[];
|
|
58090
57639
|
isCompleted!: boolean;
|
|
@@ -59033,106 +58582,480 @@ export class SaveMeasurementFormInstanceSchemaCommentRequest implements ISaveMea
|
|
|
59033
58582
|
|
|
59034
58583
|
init(_data?: any) {
|
|
59035
58584
|
if (_data) {
|
|
59036
|
-
this.comment = _data["comment"];
|
|
58585
|
+
this.comment = _data["comment"];
|
|
58586
|
+
}
|
|
58587
|
+
}
|
|
58588
|
+
|
|
58589
|
+
static fromJS(data: any): SaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58590
|
+
data = typeof data === 'object' ? data : {};
|
|
58591
|
+
let result = new SaveMeasurementFormInstanceSchemaCommentRequest();
|
|
58592
|
+
result.init(data);
|
|
58593
|
+
return result;
|
|
58594
|
+
}
|
|
58595
|
+
|
|
58596
|
+
toJSON(data?: any) {
|
|
58597
|
+
data = typeof data === 'object' ? data : {};
|
|
58598
|
+
data["comment"] = this.comment;
|
|
58599
|
+
return data;
|
|
58600
|
+
}
|
|
58601
|
+
}
|
|
58602
|
+
|
|
58603
|
+
export interface ISaveMeasurementFormInstanceSchemaCommentRequest {
|
|
58604
|
+
comment?: string | null;
|
|
58605
|
+
}
|
|
58606
|
+
|
|
58607
|
+
export class SchemaFeedbackCreatedDto implements ISchemaFeedbackCreatedDto {
|
|
58608
|
+
id!: string;
|
|
58609
|
+
workOrder!: string;
|
|
58610
|
+
schemaId!: string;
|
|
58611
|
+
versionId!: number;
|
|
58612
|
+
schemaInstanceId!: string;
|
|
58613
|
+
balloonId?: string | null;
|
|
58614
|
+
reference?: number;
|
|
58615
|
+
feedback!: string;
|
|
58616
|
+
from!: string;
|
|
58617
|
+
created!: Date;
|
|
58618
|
+
|
|
58619
|
+
constructor(data?: ISchemaFeedbackCreatedDto) {
|
|
58620
|
+
if (data) {
|
|
58621
|
+
for (var property in data) {
|
|
58622
|
+
if (data.hasOwnProperty(property))
|
|
58623
|
+
(this as any)[property] = (data as any)[property];
|
|
58624
|
+
}
|
|
58625
|
+
}
|
|
58626
|
+
}
|
|
58627
|
+
|
|
58628
|
+
init(_data?: any) {
|
|
58629
|
+
if (_data) {
|
|
58630
|
+
this.id = _data["id"];
|
|
58631
|
+
this.workOrder = _data["workOrder"];
|
|
58632
|
+
this.schemaId = _data["schemaId"];
|
|
58633
|
+
this.versionId = _data["versionId"];
|
|
58634
|
+
this.schemaInstanceId = _data["schemaInstanceId"];
|
|
58635
|
+
this.balloonId = _data["balloonId"];
|
|
58636
|
+
this.reference = _data["reference"];
|
|
58637
|
+
this.feedback = _data["feedback"];
|
|
58638
|
+
this.from = _data["from"];
|
|
58639
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
58640
|
+
}
|
|
58641
|
+
}
|
|
58642
|
+
|
|
58643
|
+
static fromJS(data: any): SchemaFeedbackCreatedDto {
|
|
58644
|
+
data = typeof data === 'object' ? data : {};
|
|
58645
|
+
let result = new SchemaFeedbackCreatedDto();
|
|
58646
|
+
result.init(data);
|
|
58647
|
+
return result;
|
|
58648
|
+
}
|
|
58649
|
+
|
|
58650
|
+
toJSON(data?: any) {
|
|
58651
|
+
data = typeof data === 'object' ? data : {};
|
|
58652
|
+
data["id"] = this.id;
|
|
58653
|
+
data["workOrder"] = this.workOrder;
|
|
58654
|
+
data["schemaId"] = this.schemaId;
|
|
58655
|
+
data["versionId"] = this.versionId;
|
|
58656
|
+
data["schemaInstanceId"] = this.schemaInstanceId;
|
|
58657
|
+
data["balloonId"] = this.balloonId;
|
|
58658
|
+
data["reference"] = this.reference;
|
|
58659
|
+
data["feedback"] = this.feedback;
|
|
58660
|
+
data["from"] = this.from;
|
|
58661
|
+
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
58662
|
+
return data;
|
|
58663
|
+
}
|
|
58664
|
+
}
|
|
58665
|
+
|
|
58666
|
+
export interface ISchemaFeedbackCreatedDto {
|
|
58667
|
+
id: string;
|
|
58668
|
+
workOrder: string;
|
|
58669
|
+
schemaId: string;
|
|
58670
|
+
versionId: number;
|
|
58671
|
+
schemaInstanceId: string;
|
|
58672
|
+
balloonId?: string | null;
|
|
58673
|
+
reference?: number;
|
|
58674
|
+
feedback: string;
|
|
58675
|
+
from: string;
|
|
58676
|
+
created: Date;
|
|
58677
|
+
}
|
|
58678
|
+
|
|
58679
|
+
export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasurementFormSchemaFeedbackRequest {
|
|
58680
|
+
balloonId?: string | null;
|
|
58681
|
+
reference?: number;
|
|
58682
|
+
feedback!: string;
|
|
58683
|
+
|
|
58684
|
+
constructor(data?: ICreateMeasurementFormSchemaFeedbackRequest) {
|
|
58685
|
+
if (data) {
|
|
58686
|
+
for (var property in data) {
|
|
58687
|
+
if (data.hasOwnProperty(property))
|
|
58688
|
+
(this as any)[property] = (data as any)[property];
|
|
58689
|
+
}
|
|
58690
|
+
}
|
|
58691
|
+
}
|
|
58692
|
+
|
|
58693
|
+
init(_data?: any) {
|
|
58694
|
+
if (_data) {
|
|
58695
|
+
this.balloonId = _data["balloonId"];
|
|
58696
|
+
this.reference = _data["reference"];
|
|
58697
|
+
this.feedback = _data["feedback"];
|
|
58698
|
+
}
|
|
58699
|
+
}
|
|
58700
|
+
|
|
58701
|
+
static fromJS(data: any): CreateMeasurementFormSchemaFeedbackRequest {
|
|
58702
|
+
data = typeof data === 'object' ? data : {};
|
|
58703
|
+
let result = new CreateMeasurementFormSchemaFeedbackRequest();
|
|
58704
|
+
result.init(data);
|
|
58705
|
+
return result;
|
|
58706
|
+
}
|
|
58707
|
+
|
|
58708
|
+
toJSON(data?: any) {
|
|
58709
|
+
data = typeof data === 'object' ? data : {};
|
|
58710
|
+
data["balloonId"] = this.balloonId;
|
|
58711
|
+
data["reference"] = this.reference;
|
|
58712
|
+
data["feedback"] = this.feedback;
|
|
58713
|
+
return data;
|
|
58714
|
+
}
|
|
58715
|
+
}
|
|
58716
|
+
|
|
58717
|
+
export interface ICreateMeasurementFormSchemaFeedbackRequest {
|
|
58718
|
+
balloonId?: string | null;
|
|
58719
|
+
reference?: number;
|
|
58720
|
+
feedback: string;
|
|
58721
|
+
}
|
|
58722
|
+
|
|
58723
|
+
export class MeasurementFormSupplierAccessInstanceDto implements IMeasurementFormSupplierAccessInstanceDto {
|
|
58724
|
+
id!: string;
|
|
58725
|
+
readonly!: boolean;
|
|
58726
|
+
partNumber?: string | null;
|
|
58727
|
+
partRevision?: string | null;
|
|
58728
|
+
drawing?: string | null;
|
|
58729
|
+
drawingRevision?: string | null;
|
|
58730
|
+
customerId?: string | null;
|
|
58731
|
+
quantity!: number;
|
|
58732
|
+
status!: MeasurementFormInstanceStatus;
|
|
58733
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
58734
|
+
|
|
58735
|
+
constructor(data?: IMeasurementFormSupplierAccessInstanceDto) {
|
|
58736
|
+
if (data) {
|
|
58737
|
+
for (var property in data) {
|
|
58738
|
+
if (data.hasOwnProperty(property))
|
|
58739
|
+
(this as any)[property] = (data as any)[property];
|
|
58740
|
+
}
|
|
58741
|
+
}
|
|
58742
|
+
if (!data) {
|
|
58743
|
+
this.suppliers = [];
|
|
58744
|
+
}
|
|
58745
|
+
}
|
|
58746
|
+
|
|
58747
|
+
init(_data?: any) {
|
|
58748
|
+
if (_data) {
|
|
58749
|
+
this.id = _data["id"];
|
|
58750
|
+
this.readonly = _data["readonly"];
|
|
58751
|
+
this.partNumber = _data["partNumber"];
|
|
58752
|
+
this.partRevision = _data["partRevision"];
|
|
58753
|
+
this.drawing = _data["drawing"];
|
|
58754
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
58755
|
+
this.customerId = _data["customerId"];
|
|
58756
|
+
this.quantity = _data["quantity"];
|
|
58757
|
+
this.status = _data["status"];
|
|
58758
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
58759
|
+
this.suppliers = [] as any;
|
|
58760
|
+
for (let item of _data["suppliers"])
|
|
58761
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
58762
|
+
}
|
|
58763
|
+
}
|
|
58764
|
+
}
|
|
58765
|
+
|
|
58766
|
+
static fromJS(data: any): MeasurementFormSupplierAccessInstanceDto {
|
|
58767
|
+
data = typeof data === 'object' ? data : {};
|
|
58768
|
+
let result = new MeasurementFormSupplierAccessInstanceDto();
|
|
58769
|
+
result.init(data);
|
|
58770
|
+
return result;
|
|
58771
|
+
}
|
|
58772
|
+
|
|
58773
|
+
toJSON(data?: any) {
|
|
58774
|
+
data = typeof data === 'object' ? data : {};
|
|
58775
|
+
data["id"] = this.id;
|
|
58776
|
+
data["readonly"] = this.readonly;
|
|
58777
|
+
data["partNumber"] = this.partNumber;
|
|
58778
|
+
data["partRevision"] = this.partRevision;
|
|
58779
|
+
data["drawing"] = this.drawing;
|
|
58780
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
58781
|
+
data["customerId"] = this.customerId;
|
|
58782
|
+
data["quantity"] = this.quantity;
|
|
58783
|
+
data["status"] = this.status;
|
|
58784
|
+
if (Array.isArray(this.suppliers)) {
|
|
58785
|
+
data["suppliers"] = [];
|
|
58786
|
+
for (let item of this.suppliers)
|
|
58787
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
58788
|
+
}
|
|
58789
|
+
return data;
|
|
58790
|
+
}
|
|
58791
|
+
}
|
|
58792
|
+
|
|
58793
|
+
export interface IMeasurementFormSupplierAccessInstanceDto {
|
|
58794
|
+
id: string;
|
|
58795
|
+
readonly: boolean;
|
|
58796
|
+
partNumber?: string | null;
|
|
58797
|
+
partRevision?: string | null;
|
|
58798
|
+
drawing?: string | null;
|
|
58799
|
+
drawingRevision?: string | null;
|
|
58800
|
+
customerId?: string | null;
|
|
58801
|
+
quantity: number;
|
|
58802
|
+
status: MeasurementFormInstanceStatus;
|
|
58803
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
58804
|
+
}
|
|
58805
|
+
|
|
58806
|
+
export class UpsertSupplierToMeasurementFormInstanceRequest implements IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
58807
|
+
procurementOrder?: string | null;
|
|
58808
|
+
procurementLine?: number | null;
|
|
58809
|
+
externalOrderNumber?: string | null;
|
|
58810
|
+
|
|
58811
|
+
constructor(data?: IUpsertSupplierToMeasurementFormInstanceRequest) {
|
|
58812
|
+
if (data) {
|
|
58813
|
+
for (var property in data) {
|
|
58814
|
+
if (data.hasOwnProperty(property))
|
|
58815
|
+
(this as any)[property] = (data as any)[property];
|
|
58816
|
+
}
|
|
58817
|
+
}
|
|
58818
|
+
}
|
|
58819
|
+
|
|
58820
|
+
init(_data?: any) {
|
|
58821
|
+
if (_data) {
|
|
58822
|
+
this.procurementOrder = _data["procurementOrder"];
|
|
58823
|
+
this.procurementLine = _data["procurementLine"];
|
|
58824
|
+
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
58825
|
+
}
|
|
58826
|
+
}
|
|
58827
|
+
|
|
58828
|
+
static fromJS(data: any): UpsertSupplierToMeasurementFormInstanceRequest {
|
|
58829
|
+
data = typeof data === 'object' ? data : {};
|
|
58830
|
+
let result = new UpsertSupplierToMeasurementFormInstanceRequest();
|
|
58831
|
+
result.init(data);
|
|
58832
|
+
return result;
|
|
58833
|
+
}
|
|
58834
|
+
|
|
58835
|
+
toJSON(data?: any) {
|
|
58836
|
+
data = typeof data === 'object' ? data : {};
|
|
58837
|
+
data["procurementOrder"] = this.procurementOrder;
|
|
58838
|
+
data["procurementLine"] = this.procurementLine;
|
|
58839
|
+
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
58840
|
+
return data;
|
|
58841
|
+
}
|
|
58842
|
+
}
|
|
58843
|
+
|
|
58844
|
+
export interface IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
58845
|
+
procurementOrder?: string | null;
|
|
58846
|
+
procurementLine?: number | null;
|
|
58847
|
+
externalOrderNumber?: string | null;
|
|
58848
|
+
}
|
|
58849
|
+
|
|
58850
|
+
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58851
|
+
tenantId?: string | null;
|
|
58852
|
+
type!: DimensionReportType;
|
|
58853
|
+
extras?: DimensionReportExtras | null;
|
|
58854
|
+
specificSerialNumbers?: string[] | null;
|
|
58855
|
+
|
|
58856
|
+
constructor(data?: IExportDimensionReportV2Request) {
|
|
58857
|
+
if (data) {
|
|
58858
|
+
for (var property in data) {
|
|
58859
|
+
if (data.hasOwnProperty(property))
|
|
58860
|
+
(this as any)[property] = (data as any)[property];
|
|
58861
|
+
}
|
|
58862
|
+
}
|
|
58863
|
+
}
|
|
58864
|
+
|
|
58865
|
+
init(_data?: any) {
|
|
58866
|
+
if (_data) {
|
|
58867
|
+
this.tenantId = _data["tenantId"];
|
|
58868
|
+
this.type = _data["type"];
|
|
58869
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined as any;
|
|
58870
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
58871
|
+
this.specificSerialNumbers = [] as any;
|
|
58872
|
+
for (let item of _data["specificSerialNumbers"])
|
|
58873
|
+
this.specificSerialNumbers!.push(item);
|
|
58874
|
+
}
|
|
58875
|
+
}
|
|
58876
|
+
}
|
|
58877
|
+
|
|
58878
|
+
static fromJS(data: any): ExportDimensionReportV2Request {
|
|
58879
|
+
data = typeof data === 'object' ? data : {};
|
|
58880
|
+
let result = new ExportDimensionReportV2Request();
|
|
58881
|
+
result.init(data);
|
|
58882
|
+
return result;
|
|
58883
|
+
}
|
|
58884
|
+
|
|
58885
|
+
toJSON(data?: any) {
|
|
58886
|
+
data = typeof data === 'object' ? data : {};
|
|
58887
|
+
data["tenantId"] = this.tenantId;
|
|
58888
|
+
data["type"] = this.type;
|
|
58889
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined as any;
|
|
58890
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
58891
|
+
data["specificSerialNumbers"] = [];
|
|
58892
|
+
for (let item of this.specificSerialNumbers)
|
|
58893
|
+
data["specificSerialNumbers"].push(item);
|
|
58894
|
+
}
|
|
58895
|
+
return data;
|
|
58896
|
+
}
|
|
58897
|
+
}
|
|
58898
|
+
|
|
58899
|
+
export interface IExportDimensionReportV2Request {
|
|
58900
|
+
tenantId?: string | null;
|
|
58901
|
+
type: DimensionReportType;
|
|
58902
|
+
extras?: DimensionReportExtras | null;
|
|
58903
|
+
specificSerialNumbers?: string[] | null;
|
|
58904
|
+
}
|
|
58905
|
+
|
|
58906
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
58907
|
+
|
|
58908
|
+
export class DimensionReportExtras implements IDimensionReportExtras {
|
|
58909
|
+
customerPO?: string | null;
|
|
58910
|
+
workOrderNumber?: string | null;
|
|
58911
|
+
comment?: string | null;
|
|
58912
|
+
|
|
58913
|
+
constructor(data?: IDimensionReportExtras) {
|
|
58914
|
+
if (data) {
|
|
58915
|
+
for (var property in data) {
|
|
58916
|
+
if (data.hasOwnProperty(property))
|
|
58917
|
+
(this as any)[property] = (data as any)[property];
|
|
58918
|
+
}
|
|
58919
|
+
}
|
|
58920
|
+
}
|
|
58921
|
+
|
|
58922
|
+
init(_data?: any) {
|
|
58923
|
+
if (_data) {
|
|
58924
|
+
this.customerPO = _data["customerPO"];
|
|
58925
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
58926
|
+
this.comment = _data["comment"];
|
|
58927
|
+
}
|
|
58928
|
+
}
|
|
58929
|
+
|
|
58930
|
+
static fromJS(data: any): DimensionReportExtras {
|
|
58931
|
+
data = typeof data === 'object' ? data : {};
|
|
58932
|
+
let result = new DimensionReportExtras();
|
|
58933
|
+
result.init(data);
|
|
58934
|
+
return result;
|
|
58935
|
+
}
|
|
58936
|
+
|
|
58937
|
+
toJSON(data?: any) {
|
|
58938
|
+
data = typeof data === 'object' ? data : {};
|
|
58939
|
+
data["customerPO"] = this.customerPO;
|
|
58940
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
58941
|
+
data["comment"] = this.comment;
|
|
58942
|
+
return data;
|
|
58943
|
+
}
|
|
58944
|
+
}
|
|
58945
|
+
|
|
58946
|
+
export interface IDimensionReportExtras {
|
|
58947
|
+
customerPO?: string | null;
|
|
58948
|
+
workOrderNumber?: string | null;
|
|
58949
|
+
comment?: string | null;
|
|
58950
|
+
}
|
|
58951
|
+
|
|
58952
|
+
export class PagedResultOfMeasurementFormInstanceDto implements IPagedResultOfMeasurementFormInstanceDto {
|
|
58953
|
+
results!: MeasurementFormInstanceDto[];
|
|
58954
|
+
continuationToken?: string | null;
|
|
58955
|
+
|
|
58956
|
+
constructor(data?: IPagedResultOfMeasurementFormInstanceDto) {
|
|
58957
|
+
if (data) {
|
|
58958
|
+
for (var property in data) {
|
|
58959
|
+
if (data.hasOwnProperty(property))
|
|
58960
|
+
(this as any)[property] = (data as any)[property];
|
|
58961
|
+
}
|
|
58962
|
+
}
|
|
58963
|
+
if (!data) {
|
|
58964
|
+
this.results = [];
|
|
58965
|
+
}
|
|
58966
|
+
}
|
|
58967
|
+
|
|
58968
|
+
init(_data?: any) {
|
|
58969
|
+
if (_data) {
|
|
58970
|
+
if (Array.isArray(_data["results"])) {
|
|
58971
|
+
this.results = [] as any;
|
|
58972
|
+
for (let item of _data["results"])
|
|
58973
|
+
this.results!.push(MeasurementFormInstanceDto.fromJS(item));
|
|
58974
|
+
}
|
|
58975
|
+
this.continuationToken = _data["continuationToken"];
|
|
59037
58976
|
}
|
|
59038
58977
|
}
|
|
59039
58978
|
|
|
59040
|
-
static fromJS(data: any):
|
|
58979
|
+
static fromJS(data: any): PagedResultOfMeasurementFormInstanceDto {
|
|
59041
58980
|
data = typeof data === 'object' ? data : {};
|
|
59042
|
-
let result = new
|
|
58981
|
+
let result = new PagedResultOfMeasurementFormInstanceDto();
|
|
59043
58982
|
result.init(data);
|
|
59044
58983
|
return result;
|
|
59045
58984
|
}
|
|
59046
58985
|
|
|
59047
58986
|
toJSON(data?: any) {
|
|
59048
58987
|
data = typeof data === 'object' ? data : {};
|
|
59049
|
-
|
|
58988
|
+
if (Array.isArray(this.results)) {
|
|
58989
|
+
data["results"] = [];
|
|
58990
|
+
for (let item of this.results)
|
|
58991
|
+
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
58992
|
+
}
|
|
58993
|
+
data["continuationToken"] = this.continuationToken;
|
|
59050
58994
|
return data;
|
|
59051
58995
|
}
|
|
59052
58996
|
}
|
|
59053
58997
|
|
|
59054
|
-
export interface
|
|
59055
|
-
|
|
58998
|
+
export interface IPagedResultOfMeasurementFormInstanceDto {
|
|
58999
|
+
results: MeasurementFormInstanceDto[];
|
|
59000
|
+
continuationToken?: string | null;
|
|
59056
59001
|
}
|
|
59057
59002
|
|
|
59058
|
-
export class
|
|
59059
|
-
|
|
59060
|
-
workOrder!: string;
|
|
59061
|
-
schemaId!: string;
|
|
59062
|
-
versionId!: number;
|
|
59063
|
-
schemaInstanceId!: string;
|
|
59064
|
-
balloonId?: string | null;
|
|
59065
|
-
reference?: number;
|
|
59066
|
-
feedback!: string;
|
|
59067
|
-
from!: string;
|
|
59068
|
-
created!: Date;
|
|
59003
|
+
export class DeleteMeasurementFormsInstancesBulkRequest implements IDeleteMeasurementFormsInstancesBulkRequest {
|
|
59004
|
+
ids!: string[];
|
|
59069
59005
|
|
|
59070
|
-
constructor(data?:
|
|
59006
|
+
constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest) {
|
|
59071
59007
|
if (data) {
|
|
59072
59008
|
for (var property in data) {
|
|
59073
59009
|
if (data.hasOwnProperty(property))
|
|
59074
59010
|
(this as any)[property] = (data as any)[property];
|
|
59075
59011
|
}
|
|
59076
59012
|
}
|
|
59013
|
+
if (!data) {
|
|
59014
|
+
this.ids = [];
|
|
59015
|
+
}
|
|
59077
59016
|
}
|
|
59078
59017
|
|
|
59079
59018
|
init(_data?: any) {
|
|
59080
59019
|
if (_data) {
|
|
59081
|
-
|
|
59082
|
-
|
|
59083
|
-
|
|
59084
|
-
|
|
59085
|
-
|
|
59086
|
-
this.balloonId = _data["balloonId"];
|
|
59087
|
-
this.reference = _data["reference"];
|
|
59088
|
-
this.feedback = _data["feedback"];
|
|
59089
|
-
this.from = _data["from"];
|
|
59090
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
59020
|
+
if (Array.isArray(_data["ids"])) {
|
|
59021
|
+
this.ids = [] as any;
|
|
59022
|
+
for (let item of _data["ids"])
|
|
59023
|
+
this.ids!.push(item);
|
|
59024
|
+
}
|
|
59091
59025
|
}
|
|
59092
59026
|
}
|
|
59093
59027
|
|
|
59094
|
-
static fromJS(data: any):
|
|
59028
|
+
static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest {
|
|
59095
59029
|
data = typeof data === 'object' ? data : {};
|
|
59096
|
-
let result = new
|
|
59030
|
+
let result = new DeleteMeasurementFormsInstancesBulkRequest();
|
|
59097
59031
|
result.init(data);
|
|
59098
59032
|
return result;
|
|
59099
59033
|
}
|
|
59100
59034
|
|
|
59101
59035
|
toJSON(data?: any) {
|
|
59102
59036
|
data = typeof data === 'object' ? data : {};
|
|
59103
|
-
|
|
59104
|
-
|
|
59105
|
-
|
|
59106
|
-
|
|
59107
|
-
|
|
59108
|
-
data["balloonId"] = this.balloonId;
|
|
59109
|
-
data["reference"] = this.reference;
|
|
59110
|
-
data["feedback"] = this.feedback;
|
|
59111
|
-
data["from"] = this.from;
|
|
59112
|
-
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
59037
|
+
if (Array.isArray(this.ids)) {
|
|
59038
|
+
data["ids"] = [];
|
|
59039
|
+
for (let item of this.ids)
|
|
59040
|
+
data["ids"].push(item);
|
|
59041
|
+
}
|
|
59113
59042
|
return data;
|
|
59114
59043
|
}
|
|
59115
59044
|
}
|
|
59116
59045
|
|
|
59117
|
-
export interface
|
|
59118
|
-
|
|
59119
|
-
workOrder: string;
|
|
59120
|
-
schemaId: string;
|
|
59121
|
-
versionId: number;
|
|
59122
|
-
schemaInstanceId: string;
|
|
59123
|
-
balloonId?: string | null;
|
|
59124
|
-
reference?: number;
|
|
59125
|
-
feedback: string;
|
|
59126
|
-
from: string;
|
|
59127
|
-
created: Date;
|
|
59046
|
+
export interface IDeleteMeasurementFormsInstancesBulkRequest {
|
|
59047
|
+
ids: string[];
|
|
59128
59048
|
}
|
|
59129
59049
|
|
|
59130
|
-
export class
|
|
59131
|
-
|
|
59132
|
-
|
|
59133
|
-
|
|
59050
|
+
export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
59051
|
+
status?: MeasurementFormInstanceStatus | null;
|
|
59052
|
+
statusChangedSince?: Date | null;
|
|
59053
|
+
onlyWithReports?: boolean | null;
|
|
59054
|
+
pageSize?: number | null;
|
|
59055
|
+
search?: string | null;
|
|
59056
|
+
continuationToken?: string | null;
|
|
59134
59057
|
|
|
59135
|
-
constructor(data?:
|
|
59058
|
+
constructor(data?: IListMeasurementFormsByStatusRequest) {
|
|
59136
59059
|
if (data) {
|
|
59137
59060
|
for (var property in data) {
|
|
59138
59061
|
if (data.hasOwnProperty(property))
|
|
@@ -59143,47 +59066,52 @@ export class CreateMeasurementFormSchemaFeedbackRequest implements ICreateMeasur
|
|
|
59143
59066
|
|
|
59144
59067
|
init(_data?: any) {
|
|
59145
59068
|
if (_data) {
|
|
59146
|
-
this.
|
|
59147
|
-
this.
|
|
59148
|
-
this.
|
|
59069
|
+
this.status = _data["status"];
|
|
59070
|
+
this.statusChangedSince = _data["statusChangedSince"] ? new Date(_data["statusChangedSince"].toString()) : undefined as any;
|
|
59071
|
+
this.onlyWithReports = _data["onlyWithReports"];
|
|
59072
|
+
this.pageSize = _data["pageSize"];
|
|
59073
|
+
this.search = _data["search"];
|
|
59074
|
+
this.continuationToken = _data["continuationToken"];
|
|
59149
59075
|
}
|
|
59150
59076
|
}
|
|
59151
59077
|
|
|
59152
|
-
static fromJS(data: any):
|
|
59078
|
+
static fromJS(data: any): ListMeasurementFormsByStatusRequest {
|
|
59153
59079
|
data = typeof data === 'object' ? data : {};
|
|
59154
|
-
let result = new
|
|
59080
|
+
let result = new ListMeasurementFormsByStatusRequest();
|
|
59155
59081
|
result.init(data);
|
|
59156
59082
|
return result;
|
|
59157
59083
|
}
|
|
59158
59084
|
|
|
59159
59085
|
toJSON(data?: any) {
|
|
59160
59086
|
data = typeof data === 'object' ? data : {};
|
|
59161
|
-
data["
|
|
59162
|
-
data["
|
|
59163
|
-
data["
|
|
59087
|
+
data["status"] = this.status;
|
|
59088
|
+
data["statusChangedSince"] = this.statusChangedSince ? this.statusChangedSince.toISOString() : undefined as any;
|
|
59089
|
+
data["onlyWithReports"] = this.onlyWithReports;
|
|
59090
|
+
data["pageSize"] = this.pageSize;
|
|
59091
|
+
data["search"] = this.search;
|
|
59092
|
+
data["continuationToken"] = this.continuationToken;
|
|
59164
59093
|
return data;
|
|
59165
59094
|
}
|
|
59166
59095
|
}
|
|
59167
59096
|
|
|
59168
|
-
export interface
|
|
59169
|
-
|
|
59170
|
-
|
|
59171
|
-
|
|
59097
|
+
export interface IListMeasurementFormsByStatusRequest {
|
|
59098
|
+
status?: MeasurementFormInstanceStatus | null;
|
|
59099
|
+
statusChangedSince?: Date | null;
|
|
59100
|
+
onlyWithReports?: boolean | null;
|
|
59101
|
+
pageSize?: number | null;
|
|
59102
|
+
search?: string | null;
|
|
59103
|
+
continuationToken?: string | null;
|
|
59172
59104
|
}
|
|
59173
59105
|
|
|
59174
|
-
export class
|
|
59175
|
-
|
|
59176
|
-
readonly!: boolean;
|
|
59177
|
-
partNumber?: string | null;
|
|
59178
|
-
partRevision?: string | null;
|
|
59179
|
-
drawing?: string | null;
|
|
59180
|
-
drawingRevision?: string | null;
|
|
59106
|
+
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
59107
|
+
schemaId!: string;
|
|
59181
59108
|
customerId?: string | null;
|
|
59182
|
-
|
|
59183
|
-
|
|
59184
|
-
|
|
59109
|
+
customerName?: string | null;
|
|
59110
|
+
purchaseOrder?: string | null;
|
|
59111
|
+
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
59112
|
+
serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
59185
59113
|
|
|
59186
|
-
constructor(data?:
|
|
59114
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
59187
59115
|
if (data) {
|
|
59188
59116
|
for (var property in data) {
|
|
59189
59117
|
if (data.hasOwnProperty(property))
|
|
@@ -59191,75 +59119,70 @@ export class MeasurementFormSupplierAccessInstanceDto implements IMeasurementFor
|
|
|
59191
59119
|
}
|
|
59192
59120
|
}
|
|
59193
59121
|
if (!data) {
|
|
59194
|
-
this.
|
|
59122
|
+
this.serialNumbers = [];
|
|
59195
59123
|
}
|
|
59196
59124
|
}
|
|
59197
59125
|
|
|
59198
59126
|
init(_data?: any) {
|
|
59199
59127
|
if (_data) {
|
|
59200
|
-
this.
|
|
59201
|
-
this.readonly = _data["readonly"];
|
|
59202
|
-
this.partNumber = _data["partNumber"];
|
|
59203
|
-
this.partRevision = _data["partRevision"];
|
|
59204
|
-
this.drawing = _data["drawing"];
|
|
59205
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
59128
|
+
this.schemaId = _data["schemaId"];
|
|
59206
59129
|
this.customerId = _data["customerId"];
|
|
59207
|
-
this.
|
|
59208
|
-
this.
|
|
59209
|
-
if (Array.isArray(_data["
|
|
59210
|
-
this.
|
|
59211
|
-
for (let item of _data["
|
|
59212
|
-
this.
|
|
59130
|
+
this.customerName = _data["customerName"];
|
|
59131
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
59132
|
+
if (Array.isArray(_data["sequences"])) {
|
|
59133
|
+
this.sequences = [] as any;
|
|
59134
|
+
for (let item of _data["sequences"])
|
|
59135
|
+
this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
59136
|
+
}
|
|
59137
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
59138
|
+
this.serialNumbers = [] as any;
|
|
59139
|
+
for (let item of _data["serialNumbers"])
|
|
59140
|
+
this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
|
|
59213
59141
|
}
|
|
59214
59142
|
}
|
|
59215
59143
|
}
|
|
59216
59144
|
|
|
59217
|
-
static fromJS(data: any):
|
|
59145
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
59218
59146
|
data = typeof data === 'object' ? data : {};
|
|
59219
|
-
let result = new
|
|
59147
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
59220
59148
|
result.init(data);
|
|
59221
59149
|
return result;
|
|
59222
59150
|
}
|
|
59223
59151
|
|
|
59224
59152
|
toJSON(data?: any) {
|
|
59225
59153
|
data = typeof data === 'object' ? data : {};
|
|
59226
|
-
data["
|
|
59227
|
-
data["readonly"] = this.readonly;
|
|
59228
|
-
data["partNumber"] = this.partNumber;
|
|
59229
|
-
data["partRevision"] = this.partRevision;
|
|
59230
|
-
data["drawing"] = this.drawing;
|
|
59231
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
59154
|
+
data["schemaId"] = this.schemaId;
|
|
59232
59155
|
data["customerId"] = this.customerId;
|
|
59233
|
-
data["
|
|
59234
|
-
data["
|
|
59235
|
-
if (Array.isArray(this.
|
|
59236
|
-
data["
|
|
59237
|
-
for (let item of this.
|
|
59238
|
-
data["
|
|
59156
|
+
data["customerName"] = this.customerName;
|
|
59157
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
59158
|
+
if (Array.isArray(this.sequences)) {
|
|
59159
|
+
data["sequences"] = [];
|
|
59160
|
+
for (let item of this.sequences)
|
|
59161
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
59162
|
+
}
|
|
59163
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
59164
|
+
data["serialNumbers"] = [];
|
|
59165
|
+
for (let item of this.serialNumbers)
|
|
59166
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
59239
59167
|
}
|
|
59240
59168
|
return data;
|
|
59241
59169
|
}
|
|
59242
59170
|
}
|
|
59243
59171
|
|
|
59244
|
-
export interface
|
|
59245
|
-
|
|
59246
|
-
readonly: boolean;
|
|
59247
|
-
partNumber?: string | null;
|
|
59248
|
-
partRevision?: string | null;
|
|
59249
|
-
drawing?: string | null;
|
|
59250
|
-
drawingRevision?: string | null;
|
|
59172
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
59173
|
+
schemaId: string;
|
|
59251
59174
|
customerId?: string | null;
|
|
59252
|
-
|
|
59253
|
-
|
|
59254
|
-
|
|
59175
|
+
customerName?: string | null;
|
|
59176
|
+
purchaseOrder?: string | null;
|
|
59177
|
+
sequences?: CreateMeasurementFormInstanceRequestSequence[];
|
|
59178
|
+
serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
|
|
59255
59179
|
}
|
|
59256
59180
|
|
|
59257
|
-
export class
|
|
59258
|
-
|
|
59259
|
-
|
|
59260
|
-
externalOrderNumber?: string | null;
|
|
59181
|
+
export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
59182
|
+
sequenceNumber!: string;
|
|
59183
|
+
serialNumber?: string | null;
|
|
59261
59184
|
|
|
59262
|
-
constructor(data?:
|
|
59185
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSequence) {
|
|
59263
59186
|
if (data) {
|
|
59264
59187
|
for (var property in data) {
|
|
59265
59188
|
if (data.hasOwnProperty(property))
|
|
@@ -59270,41 +59193,36 @@ export class UpsertSupplierToMeasurementFormInstanceRequest implements IUpsertSu
|
|
|
59270
59193
|
|
|
59271
59194
|
init(_data?: any) {
|
|
59272
59195
|
if (_data) {
|
|
59273
|
-
this.
|
|
59274
|
-
this.
|
|
59275
|
-
this.externalOrderNumber = _data["externalOrderNumber"];
|
|
59196
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
59197
|
+
this.serialNumber = _data["serialNumber"];
|
|
59276
59198
|
}
|
|
59277
59199
|
}
|
|
59278
59200
|
|
|
59279
|
-
static fromJS(data: any):
|
|
59201
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence {
|
|
59280
59202
|
data = typeof data === 'object' ? data : {};
|
|
59281
|
-
let result = new
|
|
59203
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
59282
59204
|
result.init(data);
|
|
59283
59205
|
return result;
|
|
59284
59206
|
}
|
|
59285
59207
|
|
|
59286
59208
|
toJSON(data?: any) {
|
|
59287
59209
|
data = typeof data === 'object' ? data : {};
|
|
59288
|
-
data["
|
|
59289
|
-
data["
|
|
59290
|
-
data["externalOrderNumber"] = this.externalOrderNumber;
|
|
59210
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
59211
|
+
data["serialNumber"] = this.serialNumber;
|
|
59291
59212
|
return data;
|
|
59292
59213
|
}
|
|
59293
59214
|
}
|
|
59294
59215
|
|
|
59295
|
-
export interface
|
|
59296
|
-
|
|
59297
|
-
|
|
59298
|
-
externalOrderNumber?: string | null;
|
|
59216
|
+
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
59217
|
+
sequenceNumber: string;
|
|
59218
|
+
serialNumber?: string | null;
|
|
59299
59219
|
}
|
|
59300
59220
|
|
|
59301
|
-
export class
|
|
59302
|
-
|
|
59303
|
-
|
|
59304
|
-
extras?: DimensionReportExtras | null;
|
|
59305
|
-
specificSerialNumbers?: string[] | null;
|
|
59221
|
+
export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
59222
|
+
serialNumber!: string;
|
|
59223
|
+
customerSerialNumber?: string | null;
|
|
59306
59224
|
|
|
59307
|
-
constructor(data?:
|
|
59225
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
|
|
59308
59226
|
if (data) {
|
|
59309
59227
|
for (var property in data) {
|
|
59310
59228
|
if (data.hasOwnProperty(property))
|
|
@@ -59315,89 +59233,101 @@ export class ExportDimensionReportV2Request implements IExportDimensionReportV2R
|
|
|
59315
59233
|
|
|
59316
59234
|
init(_data?: any) {
|
|
59317
59235
|
if (_data) {
|
|
59318
|
-
this.
|
|
59319
|
-
this.
|
|
59320
|
-
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined as any;
|
|
59321
|
-
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
59322
|
-
this.specificSerialNumbers = [] as any;
|
|
59323
|
-
for (let item of _data["specificSerialNumbers"])
|
|
59324
|
-
this.specificSerialNumbers!.push(item);
|
|
59325
|
-
}
|
|
59236
|
+
this.serialNumber = _data["serialNumber"];
|
|
59237
|
+
this.customerSerialNumber = _data["customerSerialNumber"];
|
|
59326
59238
|
}
|
|
59327
59239
|
}
|
|
59328
59240
|
|
|
59329
|
-
static fromJS(data: any):
|
|
59241
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
|
|
59330
59242
|
data = typeof data === 'object' ? data : {};
|
|
59331
|
-
let result = new
|
|
59243
|
+
let result = new CreateMeasurementFormInstanceRequestSerialNumber();
|
|
59332
59244
|
result.init(data);
|
|
59333
59245
|
return result;
|
|
59334
59246
|
}
|
|
59335
59247
|
|
|
59336
59248
|
toJSON(data?: any) {
|
|
59337
59249
|
data = typeof data === 'object' ? data : {};
|
|
59338
|
-
data["
|
|
59339
|
-
data["
|
|
59340
|
-
data["extras"] = this.extras ? this.extras.toJSON() : undefined as any;
|
|
59341
|
-
if (Array.isArray(this.specificSerialNumbers)) {
|
|
59342
|
-
data["specificSerialNumbers"] = [];
|
|
59343
|
-
for (let item of this.specificSerialNumbers)
|
|
59344
|
-
data["specificSerialNumbers"].push(item);
|
|
59345
|
-
}
|
|
59250
|
+
data["serialNumber"] = this.serialNumber;
|
|
59251
|
+
data["customerSerialNumber"] = this.customerSerialNumber;
|
|
59346
59252
|
return data;
|
|
59347
59253
|
}
|
|
59348
59254
|
}
|
|
59349
59255
|
|
|
59350
|
-
export interface
|
|
59351
|
-
|
|
59352
|
-
|
|
59353
|
-
extras?: DimensionReportExtras | null;
|
|
59354
|
-
specificSerialNumbers?: string[] | null;
|
|
59256
|
+
export interface ICreateMeasurementFormInstanceRequestSerialNumber {
|
|
59257
|
+
serialNumber: string;
|
|
59258
|
+
customerSerialNumber?: string | null;
|
|
59355
59259
|
}
|
|
59356
59260
|
|
|
59357
|
-
export
|
|
59358
|
-
|
|
59359
|
-
|
|
59360
|
-
|
|
59361
|
-
workOrderNumber?: string | null;
|
|
59362
|
-
comment?: string | null;
|
|
59261
|
+
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
59262
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
59263
|
+
serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
|
|
59264
|
+
suppliers!: MeasurementFormWorkorderSupplierDto[];
|
|
59363
59265
|
|
|
59364
|
-
constructor(data?:
|
|
59266
|
+
constructor(data?: IUpdateMeasurementFormInstanceRequest) {
|
|
59365
59267
|
if (data) {
|
|
59366
59268
|
for (var property in data) {
|
|
59367
59269
|
if (data.hasOwnProperty(property))
|
|
59368
59270
|
(this as any)[property] = (data as any)[property];
|
|
59369
59271
|
}
|
|
59370
59272
|
}
|
|
59273
|
+
if (!data) {
|
|
59274
|
+
this.serialNumbers = [];
|
|
59275
|
+
this.suppliers = [];
|
|
59276
|
+
}
|
|
59371
59277
|
}
|
|
59372
59278
|
|
|
59373
59279
|
init(_data?: any) {
|
|
59374
59280
|
if (_data) {
|
|
59375
|
-
|
|
59376
|
-
|
|
59377
|
-
|
|
59281
|
+
if (Array.isArray(_data["sequences"])) {
|
|
59282
|
+
this.sequences = [] as any;
|
|
59283
|
+
for (let item of _data["sequences"])
|
|
59284
|
+
this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
|
|
59285
|
+
}
|
|
59286
|
+
if (Array.isArray(_data["serialNumbers"])) {
|
|
59287
|
+
this.serialNumbers = [] as any;
|
|
59288
|
+
for (let item of _data["serialNumbers"])
|
|
59289
|
+
this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
|
|
59290
|
+
}
|
|
59291
|
+
if (Array.isArray(_data["suppliers"])) {
|
|
59292
|
+
this.suppliers = [] as any;
|
|
59293
|
+
for (let item of _data["suppliers"])
|
|
59294
|
+
this.suppliers!.push(MeasurementFormWorkorderSupplierDto.fromJS(item));
|
|
59295
|
+
}
|
|
59378
59296
|
}
|
|
59379
59297
|
}
|
|
59380
59298
|
|
|
59381
|
-
static fromJS(data: any):
|
|
59299
|
+
static fromJS(data: any): UpdateMeasurementFormInstanceRequest {
|
|
59382
59300
|
data = typeof data === 'object' ? data : {};
|
|
59383
|
-
let result = new
|
|
59301
|
+
let result = new UpdateMeasurementFormInstanceRequest();
|
|
59384
59302
|
result.init(data);
|
|
59385
59303
|
return result;
|
|
59386
59304
|
}
|
|
59387
59305
|
|
|
59388
59306
|
toJSON(data?: any) {
|
|
59389
59307
|
data = typeof data === 'object' ? data : {};
|
|
59390
|
-
|
|
59391
|
-
|
|
59392
|
-
|
|
59308
|
+
if (Array.isArray(this.sequences)) {
|
|
59309
|
+
data["sequences"] = [];
|
|
59310
|
+
for (let item of this.sequences)
|
|
59311
|
+
data["sequences"].push(item ? item.toJSON() : undefined as any);
|
|
59312
|
+
}
|
|
59313
|
+
if (Array.isArray(this.serialNumbers)) {
|
|
59314
|
+
data["serialNumbers"] = [];
|
|
59315
|
+
for (let item of this.serialNumbers)
|
|
59316
|
+
data["serialNumbers"].push(item ? item.toJSON() : undefined as any);
|
|
59317
|
+
}
|
|
59318
|
+
if (Array.isArray(this.suppliers)) {
|
|
59319
|
+
data["suppliers"] = [];
|
|
59320
|
+
for (let item of this.suppliers)
|
|
59321
|
+
data["suppliers"].push(item ? item.toJSON() : undefined as any);
|
|
59322
|
+
}
|
|
59393
59323
|
return data;
|
|
59394
59324
|
}
|
|
59395
59325
|
}
|
|
59396
59326
|
|
|
59397
|
-
export interface
|
|
59398
|
-
|
|
59399
|
-
|
|
59400
|
-
|
|
59327
|
+
export interface IUpdateMeasurementFormInstanceRequest {
|
|
59328
|
+
sequences?: MeasurementFormWorkorderSequenceDto[] | null;
|
|
59329
|
+
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
59330
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
59401
59331
|
}
|
|
59402
59332
|
|
|
59403
59333
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
@@ -60626,23 +60556,24 @@ export interface IResourceExistDto {
|
|
|
60626
60556
|
externalId?: string | null;
|
|
60627
60557
|
}
|
|
60628
60558
|
|
|
60629
|
-
export class
|
|
60630
|
-
|
|
60559
|
+
export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
|
|
60560
|
+
workorderDescription?: string | null;
|
|
60561
|
+
operationDescription?: string | null;
|
|
60562
|
+
isSetup!: boolean;
|
|
60631
60563
|
employee?: EmployeeDto | null;
|
|
60632
60564
|
resourceId!: string;
|
|
60633
60565
|
customerOrder?: CustomerOrderInfoDto | null;
|
|
60634
60566
|
part?: PartDto | null;
|
|
60635
60567
|
workorderQuantity?: number | null;
|
|
60636
|
-
|
|
60568
|
+
startTime!: Date;
|
|
60569
|
+
endTime!: Date;
|
|
60637
60570
|
materialPartNumber?: string | null;
|
|
60638
60571
|
materialPartName?: string | null;
|
|
60639
60572
|
materialItemGroup?: string | null;
|
|
60640
|
-
workorderDescription?: string | null;
|
|
60641
|
-
operationDescription?: string | null;
|
|
60642
60573
|
externalId?: string | null;
|
|
60643
60574
|
companyId?: string | null;
|
|
60644
60575
|
|
|
60645
|
-
constructor(data?:
|
|
60576
|
+
constructor(data?: IRegisterWorkorderOperationEventRequest) {
|
|
60646
60577
|
if (data) {
|
|
60647
60578
|
for (var property in data) {
|
|
60648
60579
|
if (data.hasOwnProperty(property))
|
|
@@ -60653,63 +60584,66 @@ export class StartWorkOperationRequest implements IStartWorkOperationRequest {
|
|
|
60653
60584
|
|
|
60654
60585
|
init(_data?: any) {
|
|
60655
60586
|
if (_data) {
|
|
60587
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
60588
|
+
this.operationDescription = _data["operationDescription"];
|
|
60656
60589
|
this.isSetup = _data["isSetup"];
|
|
60657
60590
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
|
|
60658
60591
|
this.resourceId = _data["resourceId"];
|
|
60659
60592
|
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
|
|
60660
60593
|
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
60661
60594
|
this.workorderQuantity = _data["workorderQuantity"];
|
|
60662
|
-
this.
|
|
60595
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
60596
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
|
|
60663
60597
|
this.materialPartNumber = _data["materialPartNumber"];
|
|
60664
60598
|
this.materialPartName = _data["materialPartName"];
|
|
60665
60599
|
this.materialItemGroup = _data["materialItemGroup"];
|
|
60666
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
60667
|
-
this.operationDescription = _data["operationDescription"];
|
|
60668
60600
|
this.externalId = _data["externalId"];
|
|
60669
60601
|
this.companyId = _data["companyId"];
|
|
60670
60602
|
}
|
|
60671
60603
|
}
|
|
60672
60604
|
|
|
60673
|
-
static fromJS(data: any):
|
|
60605
|
+
static fromJS(data: any): RegisterWorkorderOperationEventRequest {
|
|
60674
60606
|
data = typeof data === 'object' ? data : {};
|
|
60675
|
-
let result = new
|
|
60607
|
+
let result = new RegisterWorkorderOperationEventRequest();
|
|
60676
60608
|
result.init(data);
|
|
60677
60609
|
return result;
|
|
60678
60610
|
}
|
|
60679
60611
|
|
|
60680
60612
|
toJSON(data?: any) {
|
|
60681
60613
|
data = typeof data === 'object' ? data : {};
|
|
60614
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
60615
|
+
data["operationDescription"] = this.operationDescription;
|
|
60682
60616
|
data["isSetup"] = this.isSetup;
|
|
60683
60617
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
|
|
60684
60618
|
data["resourceId"] = this.resourceId;
|
|
60685
60619
|
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
|
|
60686
60620
|
data["part"] = this.part ? this.part.toJSON() : undefined as any;
|
|
60687
60621
|
data["workorderQuantity"] = this.workorderQuantity;
|
|
60688
|
-
data["
|
|
60622
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
|
|
60623
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined as any;
|
|
60689
60624
|
data["materialPartNumber"] = this.materialPartNumber;
|
|
60690
60625
|
data["materialPartName"] = this.materialPartName;
|
|
60691
60626
|
data["materialItemGroup"] = this.materialItemGroup;
|
|
60692
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
60693
|
-
data["operationDescription"] = this.operationDescription;
|
|
60694
60627
|
data["externalId"] = this.externalId;
|
|
60695
60628
|
data["companyId"] = this.companyId;
|
|
60696
60629
|
return data;
|
|
60697
60630
|
}
|
|
60698
60631
|
}
|
|
60699
60632
|
|
|
60700
|
-
export interface
|
|
60701
|
-
|
|
60633
|
+
export interface IRegisterWorkorderOperationEventRequest {
|
|
60634
|
+
workorderDescription?: string | null;
|
|
60635
|
+
operationDescription?: string | null;
|
|
60636
|
+
isSetup: boolean;
|
|
60702
60637
|
employee?: EmployeeDto | null;
|
|
60703
60638
|
resourceId: string;
|
|
60704
60639
|
customerOrder?: CustomerOrderInfoDto | null;
|
|
60705
60640
|
part?: PartDto | null;
|
|
60706
60641
|
workorderQuantity?: number | null;
|
|
60707
|
-
|
|
60642
|
+
startTime: Date;
|
|
60643
|
+
endTime: Date;
|
|
60708
60644
|
materialPartNumber?: string | null;
|
|
60709
60645
|
materialPartName?: string | null;
|
|
60710
60646
|
materialItemGroup?: string | null;
|
|
60711
|
-
workorderDescription?: string | null;
|
|
60712
|
-
operationDescription?: string | null;
|
|
60713
60647
|
externalId?: string | null;
|
|
60714
60648
|
companyId?: string | null;
|
|
60715
60649
|
}
|
|
@@ -60758,14 +60692,23 @@ export interface ICustomerOrderInfoDto {
|
|
|
60758
60692
|
customerName?: string | null;
|
|
60759
60693
|
}
|
|
60760
60694
|
|
|
60761
|
-
export class
|
|
60695
|
+
export class StartWorkOperationRequest implements IStartWorkOperationRequest {
|
|
60762
60696
|
isSetup?: boolean;
|
|
60763
60697
|
employee?: EmployeeDto | null;
|
|
60764
|
-
time?: Date | null;
|
|
60765
60698
|
resourceId!: string;
|
|
60699
|
+
customerOrder?: CustomerOrderInfoDto | null;
|
|
60700
|
+
part?: PartDto | null;
|
|
60701
|
+
workorderQuantity?: number | null;
|
|
60702
|
+
time?: Date | null;
|
|
60703
|
+
materialPartNumber?: string | null;
|
|
60704
|
+
materialPartName?: string | null;
|
|
60705
|
+
materialItemGroup?: string | null;
|
|
60706
|
+
workorderDescription?: string | null;
|
|
60707
|
+
operationDescription?: string | null;
|
|
60708
|
+
externalId?: string | null;
|
|
60766
60709
|
companyId?: string | null;
|
|
60767
60710
|
|
|
60768
|
-
constructor(data?:
|
|
60711
|
+
constructor(data?: IStartWorkOperationRequest) {
|
|
60769
60712
|
if (data) {
|
|
60770
60713
|
for (var property in data) {
|
|
60771
60714
|
if (data.hasOwnProperty(property))
|
|
@@ -60778,15 +60721,24 @@ export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
|
60778
60721
|
if (_data) {
|
|
60779
60722
|
this.isSetup = _data["isSetup"];
|
|
60780
60723
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
|
|
60781
|
-
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined as any;
|
|
60782
60724
|
this.resourceId = _data["resourceId"];
|
|
60725
|
+
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
|
|
60726
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
60727
|
+
this.workorderQuantity = _data["workorderQuantity"];
|
|
60728
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined as any;
|
|
60729
|
+
this.materialPartNumber = _data["materialPartNumber"];
|
|
60730
|
+
this.materialPartName = _data["materialPartName"];
|
|
60731
|
+
this.materialItemGroup = _data["materialItemGroup"];
|
|
60732
|
+
this.workorderDescription = _data["workorderDescription"];
|
|
60733
|
+
this.operationDescription = _data["operationDescription"];
|
|
60734
|
+
this.externalId = _data["externalId"];
|
|
60783
60735
|
this.companyId = _data["companyId"];
|
|
60784
60736
|
}
|
|
60785
60737
|
}
|
|
60786
60738
|
|
|
60787
|
-
static fromJS(data: any):
|
|
60739
|
+
static fromJS(data: any): StartWorkOperationRequest {
|
|
60788
60740
|
data = typeof data === 'object' ? data : {};
|
|
60789
|
-
let result = new
|
|
60741
|
+
let result = new StartWorkOperationRequest();
|
|
60790
60742
|
result.init(data);
|
|
60791
60743
|
return result;
|
|
60792
60744
|
}
|
|
@@ -60795,39 +60747,48 @@ export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
|
60795
60747
|
data = typeof data === 'object' ? data : {};
|
|
60796
60748
|
data["isSetup"] = this.isSetup;
|
|
60797
60749
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
|
|
60798
|
-
data["time"] = this.time ? this.time.toISOString() : undefined as any;
|
|
60799
60750
|
data["resourceId"] = this.resourceId;
|
|
60751
|
+
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
|
|
60752
|
+
data["part"] = this.part ? this.part.toJSON() : undefined as any;
|
|
60753
|
+
data["workorderQuantity"] = this.workorderQuantity;
|
|
60754
|
+
data["time"] = this.time ? this.time.toISOString() : undefined as any;
|
|
60755
|
+
data["materialPartNumber"] = this.materialPartNumber;
|
|
60756
|
+
data["materialPartName"] = this.materialPartName;
|
|
60757
|
+
data["materialItemGroup"] = this.materialItemGroup;
|
|
60758
|
+
data["workorderDescription"] = this.workorderDescription;
|
|
60759
|
+
data["operationDescription"] = this.operationDescription;
|
|
60760
|
+
data["externalId"] = this.externalId;
|
|
60800
60761
|
data["companyId"] = this.companyId;
|
|
60801
60762
|
return data;
|
|
60802
60763
|
}
|
|
60803
60764
|
}
|
|
60804
60765
|
|
|
60805
|
-
export interface
|
|
60766
|
+
export interface IStartWorkOperationRequest {
|
|
60806
60767
|
isSetup?: boolean;
|
|
60807
60768
|
employee?: EmployeeDto | null;
|
|
60808
|
-
time?: Date | null;
|
|
60809
60769
|
resourceId: string;
|
|
60810
|
-
companyId?: string | null;
|
|
60811
|
-
}
|
|
60812
|
-
|
|
60813
|
-
export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
|
|
60814
|
-
workorderDescription?: string | null;
|
|
60815
|
-
operationDescription?: string | null;
|
|
60816
|
-
isSetup!: boolean;
|
|
60817
|
-
employee?: EmployeeDto | null;
|
|
60818
|
-
resourceId!: string;
|
|
60819
60770
|
customerOrder?: CustomerOrderInfoDto | null;
|
|
60820
60771
|
part?: PartDto | null;
|
|
60821
60772
|
workorderQuantity?: number | null;
|
|
60822
|
-
|
|
60823
|
-
endTime!: Date;
|
|
60773
|
+
time?: Date | null;
|
|
60824
60774
|
materialPartNumber?: string | null;
|
|
60825
60775
|
materialPartName?: string | null;
|
|
60826
60776
|
materialItemGroup?: string | null;
|
|
60777
|
+
workorderDescription?: string | null;
|
|
60778
|
+
operationDescription?: string | null;
|
|
60827
60779
|
externalId?: string | null;
|
|
60828
60780
|
companyId?: string | null;
|
|
60781
|
+
}
|
|
60829
60782
|
|
|
60830
|
-
|
|
60783
|
+
export class StopWorkOperationRequest implements IStopWorkOperationRequest {
|
|
60784
|
+
isSetup?: boolean;
|
|
60785
|
+
employee?: EmployeeDto | null;
|
|
60786
|
+
time?: Date | null;
|
|
60787
|
+
resourceId!: string;
|
|
60788
|
+
companyId?: string | null;
|
|
60789
|
+
ignoreNotFoundEvents?: boolean | null;
|
|
60790
|
+
|
|
60791
|
+
constructor(data?: IStopWorkOperationRequest) {
|
|
60831
60792
|
if (data) {
|
|
60832
60793
|
for (var property in data) {
|
|
60833
60794
|
if (data.hasOwnProperty(property))
|
|
@@ -60838,68 +60799,41 @@ export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorde
|
|
|
60838
60799
|
|
|
60839
60800
|
init(_data?: any) {
|
|
60840
60801
|
if (_data) {
|
|
60841
|
-
this.workorderDescription = _data["workorderDescription"];
|
|
60842
|
-
this.operationDescription = _data["operationDescription"];
|
|
60843
60802
|
this.isSetup = _data["isSetup"];
|
|
60844
60803
|
this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined as any;
|
|
60804
|
+
this.time = _data["time"] ? new Date(_data["time"].toString()) : undefined as any;
|
|
60845
60805
|
this.resourceId = _data["resourceId"];
|
|
60846
|
-
this.customerOrder = _data["customerOrder"] ? CustomerOrderInfoDto.fromJS(_data["customerOrder"]) : undefined as any;
|
|
60847
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined as any;
|
|
60848
|
-
this.workorderQuantity = _data["workorderQuantity"];
|
|
60849
|
-
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined as any;
|
|
60850
|
-
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined as any;
|
|
60851
|
-
this.materialPartNumber = _data["materialPartNumber"];
|
|
60852
|
-
this.materialPartName = _data["materialPartName"];
|
|
60853
|
-
this.materialItemGroup = _data["materialItemGroup"];
|
|
60854
|
-
this.externalId = _data["externalId"];
|
|
60855
60806
|
this.companyId = _data["companyId"];
|
|
60807
|
+
this.ignoreNotFoundEvents = _data["ignoreNotFoundEvents"];
|
|
60856
60808
|
}
|
|
60857
60809
|
}
|
|
60858
60810
|
|
|
60859
|
-
static fromJS(data: any):
|
|
60811
|
+
static fromJS(data: any): StopWorkOperationRequest {
|
|
60860
60812
|
data = typeof data === 'object' ? data : {};
|
|
60861
|
-
let result = new
|
|
60813
|
+
let result = new StopWorkOperationRequest();
|
|
60862
60814
|
result.init(data);
|
|
60863
60815
|
return result;
|
|
60864
60816
|
}
|
|
60865
60817
|
|
|
60866
60818
|
toJSON(data?: any) {
|
|
60867
60819
|
data = typeof data === 'object' ? data : {};
|
|
60868
|
-
data["workorderDescription"] = this.workorderDescription;
|
|
60869
|
-
data["operationDescription"] = this.operationDescription;
|
|
60870
60820
|
data["isSetup"] = this.isSetup;
|
|
60871
60821
|
data["employee"] = this.employee ? this.employee.toJSON() : undefined as any;
|
|
60822
|
+
data["time"] = this.time ? this.time.toISOString() : undefined as any;
|
|
60872
60823
|
data["resourceId"] = this.resourceId;
|
|
60873
|
-
data["customerOrder"] = this.customerOrder ? this.customerOrder.toJSON() : undefined as any;
|
|
60874
|
-
data["part"] = this.part ? this.part.toJSON() : undefined as any;
|
|
60875
|
-
data["workorderQuantity"] = this.workorderQuantity;
|
|
60876
|
-
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined as any;
|
|
60877
|
-
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined as any;
|
|
60878
|
-
data["materialPartNumber"] = this.materialPartNumber;
|
|
60879
|
-
data["materialPartName"] = this.materialPartName;
|
|
60880
|
-
data["materialItemGroup"] = this.materialItemGroup;
|
|
60881
|
-
data["externalId"] = this.externalId;
|
|
60882
60824
|
data["companyId"] = this.companyId;
|
|
60825
|
+
data["ignoreNotFoundEvents"] = this.ignoreNotFoundEvents;
|
|
60883
60826
|
return data;
|
|
60884
60827
|
}
|
|
60885
60828
|
}
|
|
60886
60829
|
|
|
60887
|
-
export interface
|
|
60888
|
-
|
|
60889
|
-
operationDescription?: string | null;
|
|
60890
|
-
isSetup: boolean;
|
|
60830
|
+
export interface IStopWorkOperationRequest {
|
|
60831
|
+
isSetup?: boolean;
|
|
60891
60832
|
employee?: EmployeeDto | null;
|
|
60833
|
+
time?: Date | null;
|
|
60892
60834
|
resourceId: string;
|
|
60893
|
-
customerOrder?: CustomerOrderInfoDto | null;
|
|
60894
|
-
part?: PartDto | null;
|
|
60895
|
-
workorderQuantity?: number | null;
|
|
60896
|
-
startTime: Date;
|
|
60897
|
-
endTime: Date;
|
|
60898
|
-
materialPartNumber?: string | null;
|
|
60899
|
-
materialPartName?: string | null;
|
|
60900
|
-
materialItemGroup?: string | null;
|
|
60901
|
-
externalId?: string | null;
|
|
60902
60835
|
companyId?: string | null;
|
|
60836
|
+
ignoreNotFoundEvents?: boolean | null;
|
|
60903
60837
|
}
|
|
60904
60838
|
|
|
60905
60839
|
export class PagedResultOfWorkorderListDto implements IPagedResultOfWorkorderListDto {
|