@ignos/api-client 20251106.0.13143 → 20251106.0.13145-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +92 -121
- package/lib/ignosportal-api.js +313 -439
- package/package.json +1 -1
- package/src/ignosportal-api.ts +370 -519
package/src/ignosportal-api.ts
CHANGED
|
@@ -1591,10 +1591,6 @@ export interface IUserAppSettingsClient {
|
|
|
1591
1591
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1592
1592
|
|
|
1593
1593
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
1594
|
-
|
|
1595
|
-
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
1596
|
-
|
|
1597
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
1598
1594
|
}
|
|
1599
1595
|
|
|
1600
1596
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -1751,78 +1747,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1751
1747
|
}
|
|
1752
1748
|
return Promise.resolve<void>(null as any);
|
|
1753
1749
|
}
|
|
1754
|
-
|
|
1755
|
-
getEngageUserSettings(): Promise<EngageAppSettings> {
|
|
1756
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1757
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1758
|
-
|
|
1759
|
-
let options_: RequestInit = {
|
|
1760
|
-
method: "GET",
|
|
1761
|
-
headers: {
|
|
1762
|
-
"Accept": "application/json"
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1767
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1768
|
-
}).then((_response: Response) => {
|
|
1769
|
-
return this.processGetEngageUserSettings(_response);
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
|
|
1774
|
-
const status = response.status;
|
|
1775
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1776
|
-
if (status === 200) {
|
|
1777
|
-
return response.text().then((_responseText) => {
|
|
1778
|
-
let result200: any = null;
|
|
1779
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1780
|
-
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1781
|
-
return result200;
|
|
1782
|
-
});
|
|
1783
|
-
} else if (status !== 200 && status !== 204) {
|
|
1784
|
-
return response.text().then((_responseText) => {
|
|
1785
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
return Promise.resolve<EngageAppSettings>(null as any);
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
|
|
1792
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1793
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1794
|
-
|
|
1795
|
-
const content_ = JSON.stringify(settings);
|
|
1796
|
-
|
|
1797
|
-
let options_: RequestInit = {
|
|
1798
|
-
body: content_,
|
|
1799
|
-
method: "PUT",
|
|
1800
|
-
headers: {
|
|
1801
|
-
"Content-Type": "application/json",
|
|
1802
|
-
}
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1806
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1807
|
-
}).then((_response: Response) => {
|
|
1808
|
-
return this.processSetEngageUserSettings(_response);
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
protected processSetEngageUserSettings(response: Response): Promise<void> {
|
|
1813
|
-
const status = response.status;
|
|
1814
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1815
|
-
if (status === 204) {
|
|
1816
|
-
return response.text().then((_responseText) => {
|
|
1817
|
-
return;
|
|
1818
|
-
});
|
|
1819
|
-
} else if (status !== 200 && status !== 204) {
|
|
1820
|
-
return response.text().then((_responseText) => {
|
|
1821
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1822
|
-
});
|
|
1823
|
-
}
|
|
1824
|
-
return Promise.resolve<void>(null as any);
|
|
1825
|
-
}
|
|
1826
1750
|
}
|
|
1827
1751
|
|
|
1828
1752
|
export interface IUploadClient {
|
|
@@ -10440,8 +10364,6 @@ export interface ICncSetupClient {
|
|
|
10440
10364
|
|
|
10441
10365
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
10442
10366
|
|
|
10443
|
-
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
10444
|
-
|
|
10445
10367
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10446
10368
|
|
|
10447
10369
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
@@ -10454,8 +10376,6 @@ export interface ICncSetupClient {
|
|
|
10454
10376
|
|
|
10455
10377
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
10456
10378
|
|
|
10457
|
-
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
10458
|
-
|
|
10459
10379
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10460
10380
|
|
|
10461
10381
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
@@ -12266,45 +12186,6 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12266
12186
|
return Promise.resolve<void>(null as any);
|
|
12267
12187
|
}
|
|
12268
12188
|
|
|
12269
|
-
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void> {
|
|
12270
|
-
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
|
|
12271
|
-
if (operationId === undefined || operationId === null)
|
|
12272
|
-
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
12273
|
-
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12274
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12275
|
-
|
|
12276
|
-
const content_ = JSON.stringify(idsToDelete);
|
|
12277
|
-
|
|
12278
|
-
let options_: RequestInit = {
|
|
12279
|
-
body: content_,
|
|
12280
|
-
method: "DELETE",
|
|
12281
|
-
headers: {
|
|
12282
|
-
"Content-Type": "application/json",
|
|
12283
|
-
}
|
|
12284
|
-
};
|
|
12285
|
-
|
|
12286
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12287
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12288
|
-
}).then((_response: Response) => {
|
|
12289
|
-
return this.processDeleteCncMachineOperationToolMultiple(_response);
|
|
12290
|
-
});
|
|
12291
|
-
}
|
|
12292
|
-
|
|
12293
|
-
protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void> {
|
|
12294
|
-
const status = response.status;
|
|
12295
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12296
|
-
if (status === 204) {
|
|
12297
|
-
return response.text().then((_responseText) => {
|
|
12298
|
-
return;
|
|
12299
|
-
});
|
|
12300
|
-
} else if (status !== 200 && status !== 204) {
|
|
12301
|
-
return response.text().then((_responseText) => {
|
|
12302
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12303
|
-
});
|
|
12304
|
-
}
|
|
12305
|
-
return Promise.resolve<void>(null as any);
|
|
12306
|
-
}
|
|
12307
|
-
|
|
12308
12189
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12309
12190
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
12310
12191
|
if (operationId === undefined || operationId === null)
|
|
@@ -12562,45 +12443,6 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12562
12443
|
return Promise.resolve<void>(null as any);
|
|
12563
12444
|
}
|
|
12564
12445
|
|
|
12565
|
-
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void> {
|
|
12566
|
-
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
|
|
12567
|
-
if (cncMachineId === undefined || cncMachineId === null)
|
|
12568
|
-
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
12569
|
-
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
12570
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12571
|
-
|
|
12572
|
-
const content_ = JSON.stringify(idsToDelete);
|
|
12573
|
-
|
|
12574
|
-
let options_: RequestInit = {
|
|
12575
|
-
body: content_,
|
|
12576
|
-
method: "DELETE",
|
|
12577
|
-
headers: {
|
|
12578
|
-
"Content-Type": "application/json",
|
|
12579
|
-
}
|
|
12580
|
-
};
|
|
12581
|
-
|
|
12582
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12583
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12584
|
-
}).then((_response: Response) => {
|
|
12585
|
-
return this.processDeleteCncMachineToolMultiple(_response);
|
|
12586
|
-
});
|
|
12587
|
-
}
|
|
12588
|
-
|
|
12589
|
-
protected processDeleteCncMachineToolMultiple(response: Response): Promise<void> {
|
|
12590
|
-
const status = response.status;
|
|
12591
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12592
|
-
if (status === 204) {
|
|
12593
|
-
return response.text().then((_responseText) => {
|
|
12594
|
-
return;
|
|
12595
|
-
});
|
|
12596
|
-
} else if (status !== 200 && status !== 204) {
|
|
12597
|
-
return response.text().then((_responseText) => {
|
|
12598
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12599
|
-
});
|
|
12600
|
-
}
|
|
12601
|
-
return Promise.resolve<void>(null as any);
|
|
12602
|
-
}
|
|
12603
|
-
|
|
12604
12446
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12605
12447
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
12606
12448
|
if (machineId === undefined || machineId === null)
|
|
@@ -19092,16 +18934,22 @@ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
|
19092
18934
|
}
|
|
19093
18935
|
}
|
|
19094
18936
|
|
|
19095
|
-
export interface
|
|
18937
|
+
export interface IMeasurementFormSchemasClient {
|
|
19096
18938
|
|
|
19097
|
-
|
|
18939
|
+
listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
19098
18940
|
|
|
19099
18941
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
19100
18942
|
|
|
18943
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
18944
|
+
|
|
18945
|
+
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
18946
|
+
|
|
19101
18947
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
19102
18948
|
|
|
19103
18949
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
19104
18950
|
|
|
18951
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
18952
|
+
|
|
19105
18953
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
19106
18954
|
|
|
19107
18955
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -19214,7 +19062,7 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
19214
19062
|
postListMeasurementFormSchemasWithHistory(request: ListMeasurementFormSchemasWithHistoryRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
19215
19063
|
}
|
|
19216
19064
|
|
|
19217
|
-
export class
|
|
19065
|
+
export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
|
|
19218
19066
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
19219
19067
|
private baseUrl: string;
|
|
19220
19068
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -19225,11 +19073,30 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
19225
19073
|
this.baseUrl = baseUrl ?? "";
|
|
19226
19074
|
}
|
|
19227
19075
|
|
|
19228
|
-
|
|
19229
|
-
let url_ = this.baseUrl + "/measurementforms/schemas
|
|
19230
|
-
if (
|
|
19231
|
-
throw new globalThis.Error("The parameter '
|
|
19232
|
-
|
|
19076
|
+
listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19077
|
+
let url_ = this.baseUrl + "/measurementforms/schemas?";
|
|
19078
|
+
if (pageSize === null)
|
|
19079
|
+
throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
|
|
19080
|
+
else if (pageSize !== undefined)
|
|
19081
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19082
|
+
if (customerId !== undefined && customerId !== null)
|
|
19083
|
+
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
19084
|
+
if (customerName !== undefined && customerName !== null)
|
|
19085
|
+
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
19086
|
+
if (partNumber !== undefined && partNumber !== null)
|
|
19087
|
+
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
19088
|
+
if (partName !== undefined && partName !== null)
|
|
19089
|
+
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
19090
|
+
if (partRevision !== undefined && partRevision !== null)
|
|
19091
|
+
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
19092
|
+
if (drawing !== undefined && drawing !== null)
|
|
19093
|
+
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
19094
|
+
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
19095
|
+
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
19096
|
+
if (filter !== undefined && filter !== null)
|
|
19097
|
+
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
19098
|
+
if (continuationToken !== undefined && continuationToken !== null)
|
|
19099
|
+
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
19233
19100
|
url_ = url_.replace(/[?&]$/, "");
|
|
19234
19101
|
|
|
19235
19102
|
let options_: RequestInit = {
|
|
@@ -19242,18 +19109,18 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
19242
19109
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19243
19110
|
return this.http.fetch(url_, transformedOptions_);
|
|
19244
19111
|
}).then((_response: Response) => {
|
|
19245
|
-
return this.
|
|
19112
|
+
return this.processListMeasurmentFormSchemas(_response);
|
|
19246
19113
|
});
|
|
19247
19114
|
}
|
|
19248
19115
|
|
|
19249
|
-
protected
|
|
19116
|
+
protected processListMeasurmentFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19250
19117
|
const status = response.status;
|
|
19251
19118
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19252
19119
|
if (status === 200) {
|
|
19253
19120
|
return response.text().then((_responseText) => {
|
|
19254
19121
|
let result200: any = null;
|
|
19255
19122
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19256
|
-
result200 =
|
|
19123
|
+
result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
|
|
19257
19124
|
return result200;
|
|
19258
19125
|
});
|
|
19259
19126
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19261,7 +19128,7 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
19261
19128
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19262
19129
|
});
|
|
19263
19130
|
}
|
|
19264
|
-
return Promise.resolve<
|
|
19131
|
+
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
19265
19132
|
}
|
|
19266
19133
|
|
|
19267
19134
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
@@ -19304,6 +19171,85 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
19304
19171
|
return Promise.resolve<MeasurementFormDto>(null as any);
|
|
19305
19172
|
}
|
|
19306
19173
|
|
|
19174
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19175
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/list";
|
|
19176
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19177
|
+
|
|
19178
|
+
const content_ = JSON.stringify(request);
|
|
19179
|
+
|
|
19180
|
+
let options_: RequestInit = {
|
|
19181
|
+
body: content_,
|
|
19182
|
+
method: "POST",
|
|
19183
|
+
headers: {
|
|
19184
|
+
"Content-Type": "application/json",
|
|
19185
|
+
"Accept": "application/json"
|
|
19186
|
+
}
|
|
19187
|
+
};
|
|
19188
|
+
|
|
19189
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19190
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19191
|
+
}).then((_response: Response) => {
|
|
19192
|
+
return this.processPostListMeasurementFormSchemas(_response);
|
|
19193
|
+
});
|
|
19194
|
+
}
|
|
19195
|
+
|
|
19196
|
+
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19197
|
+
const status = response.status;
|
|
19198
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19199
|
+
if (status === 200) {
|
|
19200
|
+
return response.text().then((_responseText) => {
|
|
19201
|
+
let result200: any = null;
|
|
19202
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19203
|
+
result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
|
|
19204
|
+
return result200;
|
|
19205
|
+
});
|
|
19206
|
+
} else if (status !== 200 && status !== 204) {
|
|
19207
|
+
return response.text().then((_responseText) => {
|
|
19208
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19209
|
+
});
|
|
19210
|
+
}
|
|
19211
|
+
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
19212
|
+
}
|
|
19213
|
+
|
|
19214
|
+
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19215
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
19216
|
+
if (id === undefined || id === null)
|
|
19217
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19218
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19219
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19220
|
+
|
|
19221
|
+
let options_: RequestInit = {
|
|
19222
|
+
method: "GET",
|
|
19223
|
+
headers: {
|
|
19224
|
+
"Accept": "application/json"
|
|
19225
|
+
}
|
|
19226
|
+
};
|
|
19227
|
+
|
|
19228
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19229
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19230
|
+
}).then((_response: Response) => {
|
|
19231
|
+
return this.processGetMeasurementFormSchema(_response);
|
|
19232
|
+
});
|
|
19233
|
+
}
|
|
19234
|
+
|
|
19235
|
+
protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19236
|
+
const status = response.status;
|
|
19237
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19238
|
+
if (status === 200) {
|
|
19239
|
+
return response.text().then((_responseText) => {
|
|
19240
|
+
let result200: any = null;
|
|
19241
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19242
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19243
|
+
return result200;
|
|
19244
|
+
});
|
|
19245
|
+
} else if (status !== 200 && status !== 204) {
|
|
19246
|
+
return response.text().then((_responseText) => {
|
|
19247
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19248
|
+
});
|
|
19249
|
+
}
|
|
19250
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19251
|
+
}
|
|
19252
|
+
|
|
19307
19253
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto> {
|
|
19308
19254
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
19309
19255
|
if (id === undefined || id === null)
|
|
@@ -19382,6 +19328,45 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
19382
19328
|
return Promise.resolve<void>(null as any);
|
|
19383
19329
|
}
|
|
19384
19330
|
|
|
19331
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19332
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
19333
|
+
if (id === undefined || id === null)
|
|
19334
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19335
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19336
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19337
|
+
|
|
19338
|
+
let options_: RequestInit = {
|
|
19339
|
+
method: "GET",
|
|
19340
|
+
headers: {
|
|
19341
|
+
"Accept": "application/json"
|
|
19342
|
+
}
|
|
19343
|
+
};
|
|
19344
|
+
|
|
19345
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19346
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19347
|
+
}).then((_response: Response) => {
|
|
19348
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
19349
|
+
});
|
|
19350
|
+
}
|
|
19351
|
+
|
|
19352
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19353
|
+
const status = response.status;
|
|
19354
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19355
|
+
if (status === 200) {
|
|
19356
|
+
return response.text().then((_responseText) => {
|
|
19357
|
+
let result200: any = null;
|
|
19358
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19359
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19360
|
+
return result200;
|
|
19361
|
+
});
|
|
19362
|
+
} else if (status !== 200 && status !== 204) {
|
|
19363
|
+
return response.text().then((_responseText) => {
|
|
19364
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19365
|
+
});
|
|
19366
|
+
}
|
|
19367
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19368
|
+
}
|
|
19369
|
+
|
|
19385
19370
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
19386
19371
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
19387
19372
|
if (id === undefined || id === null)
|
|
@@ -21400,104 +21385,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
21400
21385
|
}
|
|
21401
21386
|
}
|
|
21402
21387
|
|
|
21403
|
-
export interface IMeasurementFormSchemasClient {
|
|
21404
|
-
|
|
21405
|
-
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
21406
|
-
|
|
21407
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
21408
|
-
}
|
|
21409
|
-
|
|
21410
|
-
export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
|
|
21411
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
21412
|
-
private baseUrl: string;
|
|
21413
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
21414
|
-
|
|
21415
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
21416
|
-
super(configuration);
|
|
21417
|
-
this.http = http ? http : window as any;
|
|
21418
|
-
this.baseUrl = baseUrl ?? "";
|
|
21419
|
-
}
|
|
21420
|
-
|
|
21421
|
-
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
21422
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
21423
|
-
if (id === undefined || id === null)
|
|
21424
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
21425
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21426
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21427
|
-
|
|
21428
|
-
let options_: RequestInit = {
|
|
21429
|
-
method: "GET",
|
|
21430
|
-
headers: {
|
|
21431
|
-
"Accept": "application/json"
|
|
21432
|
-
}
|
|
21433
|
-
};
|
|
21434
|
-
|
|
21435
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21436
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21437
|
-
}).then((_response: Response) => {
|
|
21438
|
-
return this.processGetMeasurementFormSchema(_response);
|
|
21439
|
-
});
|
|
21440
|
-
}
|
|
21441
|
-
|
|
21442
|
-
protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
21443
|
-
const status = response.status;
|
|
21444
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21445
|
-
if (status === 200) {
|
|
21446
|
-
return response.text().then((_responseText) => {
|
|
21447
|
-
let result200: any = null;
|
|
21448
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21449
|
-
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
21450
|
-
return result200;
|
|
21451
|
-
});
|
|
21452
|
-
} else if (status !== 200 && status !== 204) {
|
|
21453
|
-
return response.text().then((_responseText) => {
|
|
21454
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21455
|
-
});
|
|
21456
|
-
}
|
|
21457
|
-
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
21458
|
-
}
|
|
21459
|
-
|
|
21460
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
|
|
21461
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/list";
|
|
21462
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21463
|
-
|
|
21464
|
-
const content_ = JSON.stringify(request);
|
|
21465
|
-
|
|
21466
|
-
let options_: RequestInit = {
|
|
21467
|
-
body: content_,
|
|
21468
|
-
method: "POST",
|
|
21469
|
-
headers: {
|
|
21470
|
-
"Content-Type": "application/json",
|
|
21471
|
-
"Accept": "application/json"
|
|
21472
|
-
}
|
|
21473
|
-
};
|
|
21474
|
-
|
|
21475
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21476
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21477
|
-
}).then((_response: Response) => {
|
|
21478
|
-
return this.processPostListMeasurementFormSchemas(_response);
|
|
21479
|
-
});
|
|
21480
|
-
}
|
|
21481
|
-
|
|
21482
|
-
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
|
|
21483
|
-
const status = response.status;
|
|
21484
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21485
|
-
if (status === 200) {
|
|
21486
|
-
return response.text().then((_responseText) => {
|
|
21487
|
-
let result200: any = null;
|
|
21488
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21489
|
-
result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
|
|
21490
|
-
return result200;
|
|
21491
|
-
});
|
|
21492
|
-
} else if (status !== 200 && status !== 204) {
|
|
21493
|
-
return response.text().then((_responseText) => {
|
|
21494
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21495
|
-
});
|
|
21496
|
-
}
|
|
21497
|
-
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
21498
|
-
}
|
|
21499
|
-
}
|
|
21500
|
-
|
|
21501
21388
|
export interface IMeasurementFormSettingsClient {
|
|
21502
21389
|
|
|
21503
21390
|
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
@@ -27093,42 +26980,6 @@ export interface IMoveAppSettings {
|
|
|
27093
26980
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
27094
26981
|
}
|
|
27095
26982
|
|
|
27096
|
-
export class EngageAppSettings implements IEngageAppSettings {
|
|
27097
|
-
myResourceGroup?: string;
|
|
27098
|
-
|
|
27099
|
-
constructor(data?: IEngageAppSettings) {
|
|
27100
|
-
if (data) {
|
|
27101
|
-
for (var property in data) {
|
|
27102
|
-
if (data.hasOwnProperty(property))
|
|
27103
|
-
(this as any)[property] = (data as any)[property];
|
|
27104
|
-
}
|
|
27105
|
-
}
|
|
27106
|
-
}
|
|
27107
|
-
|
|
27108
|
-
init(_data?: any) {
|
|
27109
|
-
if (_data) {
|
|
27110
|
-
this.myResourceGroup = _data["myResourceGroup"];
|
|
27111
|
-
}
|
|
27112
|
-
}
|
|
27113
|
-
|
|
27114
|
-
static fromJS(data: any): EngageAppSettings {
|
|
27115
|
-
data = typeof data === 'object' ? data : {};
|
|
27116
|
-
let result = new EngageAppSettings();
|
|
27117
|
-
result.init(data);
|
|
27118
|
-
return result;
|
|
27119
|
-
}
|
|
27120
|
-
|
|
27121
|
-
toJSON(data?: any) {
|
|
27122
|
-
data = typeof data === 'object' ? data : {};
|
|
27123
|
-
data["myResourceGroup"] = this.myResourceGroup;
|
|
27124
|
-
return data;
|
|
27125
|
-
}
|
|
27126
|
-
}
|
|
27127
|
-
|
|
27128
|
-
export interface IEngageAppSettings {
|
|
27129
|
-
myResourceGroup?: string;
|
|
27130
|
-
}
|
|
27131
|
-
|
|
27132
26983
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
27133
26984
|
baseUrl?: string | null;
|
|
27134
26985
|
key?: string | null;
|
|
@@ -53625,6 +53476,221 @@ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
|
53625
53476
|
export interface ICreateWeldingIotConfig {
|
|
53626
53477
|
}
|
|
53627
53478
|
|
|
53479
|
+
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
53480
|
+
results!: MeasurementFormListDto[];
|
|
53481
|
+
continuationToken?: string | null;
|
|
53482
|
+
|
|
53483
|
+
constructor(data?: IPagedResultOfMeasurementFormListDto) {
|
|
53484
|
+
if (data) {
|
|
53485
|
+
for (var property in data) {
|
|
53486
|
+
if (data.hasOwnProperty(property))
|
|
53487
|
+
(this as any)[property] = (data as any)[property];
|
|
53488
|
+
}
|
|
53489
|
+
}
|
|
53490
|
+
if (!data) {
|
|
53491
|
+
this.results = [];
|
|
53492
|
+
}
|
|
53493
|
+
}
|
|
53494
|
+
|
|
53495
|
+
init(_data?: any) {
|
|
53496
|
+
if (_data) {
|
|
53497
|
+
if (Array.isArray(_data["results"])) {
|
|
53498
|
+
this.results = [] as any;
|
|
53499
|
+
for (let item of _data["results"])
|
|
53500
|
+
this.results!.push(MeasurementFormListDto.fromJS(item));
|
|
53501
|
+
}
|
|
53502
|
+
this.continuationToken = _data["continuationToken"];
|
|
53503
|
+
}
|
|
53504
|
+
}
|
|
53505
|
+
|
|
53506
|
+
static fromJS(data: any): PagedResultOfMeasurementFormListDto {
|
|
53507
|
+
data = typeof data === 'object' ? data : {};
|
|
53508
|
+
let result = new PagedResultOfMeasurementFormListDto();
|
|
53509
|
+
result.init(data);
|
|
53510
|
+
return result;
|
|
53511
|
+
}
|
|
53512
|
+
|
|
53513
|
+
toJSON(data?: any) {
|
|
53514
|
+
data = typeof data === 'object' ? data : {};
|
|
53515
|
+
if (Array.isArray(this.results)) {
|
|
53516
|
+
data["results"] = [];
|
|
53517
|
+
for (let item of this.results)
|
|
53518
|
+
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
53519
|
+
}
|
|
53520
|
+
data["continuationToken"] = this.continuationToken;
|
|
53521
|
+
return data;
|
|
53522
|
+
}
|
|
53523
|
+
}
|
|
53524
|
+
|
|
53525
|
+
export interface IPagedResultOfMeasurementFormListDto {
|
|
53526
|
+
results: MeasurementFormListDto[];
|
|
53527
|
+
continuationToken?: string | null;
|
|
53528
|
+
}
|
|
53529
|
+
|
|
53530
|
+
export class MeasurementFormListDto implements IMeasurementFormListDto {
|
|
53531
|
+
id!: string;
|
|
53532
|
+
schemaId!: string;
|
|
53533
|
+
versionId!: number;
|
|
53534
|
+
customerId?: string | null;
|
|
53535
|
+
customerName?: string | null;
|
|
53536
|
+
partNumber?: string | null;
|
|
53537
|
+
partRevision?: string | null;
|
|
53538
|
+
partName?: string | null;
|
|
53539
|
+
drawing!: string;
|
|
53540
|
+
drawingRevision?: string | null;
|
|
53541
|
+
createdBy!: string;
|
|
53542
|
+
created!: Date;
|
|
53543
|
+
status!: MeasurementFormStatus;
|
|
53544
|
+
source!: MeasurementFormSource;
|
|
53545
|
+
|
|
53546
|
+
constructor(data?: IMeasurementFormListDto) {
|
|
53547
|
+
if (data) {
|
|
53548
|
+
for (var property in data) {
|
|
53549
|
+
if (data.hasOwnProperty(property))
|
|
53550
|
+
(this as any)[property] = (data as any)[property];
|
|
53551
|
+
}
|
|
53552
|
+
}
|
|
53553
|
+
}
|
|
53554
|
+
|
|
53555
|
+
init(_data?: any) {
|
|
53556
|
+
if (_data) {
|
|
53557
|
+
this.id = _data["id"];
|
|
53558
|
+
this.schemaId = _data["schemaId"];
|
|
53559
|
+
this.versionId = _data["versionId"];
|
|
53560
|
+
this.customerId = _data["customerId"];
|
|
53561
|
+
this.customerName = _data["customerName"];
|
|
53562
|
+
this.partNumber = _data["partNumber"];
|
|
53563
|
+
this.partRevision = _data["partRevision"];
|
|
53564
|
+
this.partName = _data["partName"];
|
|
53565
|
+
this.drawing = _data["drawing"];
|
|
53566
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
53567
|
+
this.createdBy = _data["createdBy"];
|
|
53568
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
53569
|
+
this.status = _data["status"];
|
|
53570
|
+
this.source = _data["source"];
|
|
53571
|
+
}
|
|
53572
|
+
}
|
|
53573
|
+
|
|
53574
|
+
static fromJS(data: any): MeasurementFormListDto {
|
|
53575
|
+
data = typeof data === 'object' ? data : {};
|
|
53576
|
+
let result = new MeasurementFormListDto();
|
|
53577
|
+
result.init(data);
|
|
53578
|
+
return result;
|
|
53579
|
+
}
|
|
53580
|
+
|
|
53581
|
+
toJSON(data?: any) {
|
|
53582
|
+
data = typeof data === 'object' ? data : {};
|
|
53583
|
+
data["id"] = this.id;
|
|
53584
|
+
data["schemaId"] = this.schemaId;
|
|
53585
|
+
data["versionId"] = this.versionId;
|
|
53586
|
+
data["customerId"] = this.customerId;
|
|
53587
|
+
data["customerName"] = this.customerName;
|
|
53588
|
+
data["partNumber"] = this.partNumber;
|
|
53589
|
+
data["partRevision"] = this.partRevision;
|
|
53590
|
+
data["partName"] = this.partName;
|
|
53591
|
+
data["drawing"] = this.drawing;
|
|
53592
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
53593
|
+
data["createdBy"] = this.createdBy;
|
|
53594
|
+
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
53595
|
+
data["status"] = this.status;
|
|
53596
|
+
data["source"] = this.source;
|
|
53597
|
+
return data;
|
|
53598
|
+
}
|
|
53599
|
+
}
|
|
53600
|
+
|
|
53601
|
+
export interface IMeasurementFormListDto {
|
|
53602
|
+
id: string;
|
|
53603
|
+
schemaId: string;
|
|
53604
|
+
versionId: number;
|
|
53605
|
+
customerId?: string | null;
|
|
53606
|
+
customerName?: string | null;
|
|
53607
|
+
partNumber?: string | null;
|
|
53608
|
+
partRevision?: string | null;
|
|
53609
|
+
partName?: string | null;
|
|
53610
|
+
drawing: string;
|
|
53611
|
+
drawingRevision?: string | null;
|
|
53612
|
+
createdBy: string;
|
|
53613
|
+
created: Date;
|
|
53614
|
+
status: MeasurementFormStatus;
|
|
53615
|
+
source: MeasurementFormSource;
|
|
53616
|
+
}
|
|
53617
|
+
|
|
53618
|
+
export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
53619
|
+
|
|
53620
|
+
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
53621
|
+
|
|
53622
|
+
export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
|
|
53623
|
+
pageSize?: number | null;
|
|
53624
|
+
customerId?: string | null;
|
|
53625
|
+
customerName?: string | null;
|
|
53626
|
+
partName?: string | null;
|
|
53627
|
+
partNumber?: string | null;
|
|
53628
|
+
partRevision?: string | null;
|
|
53629
|
+
drawing?: string | null;
|
|
53630
|
+
drawingRevision?: string | null;
|
|
53631
|
+
filter?: string | null;
|
|
53632
|
+
continuationToken?: string | null;
|
|
53633
|
+
|
|
53634
|
+
constructor(data?: IListMeasurementFormSchemasRequest) {
|
|
53635
|
+
if (data) {
|
|
53636
|
+
for (var property in data) {
|
|
53637
|
+
if (data.hasOwnProperty(property))
|
|
53638
|
+
(this as any)[property] = (data as any)[property];
|
|
53639
|
+
}
|
|
53640
|
+
}
|
|
53641
|
+
}
|
|
53642
|
+
|
|
53643
|
+
init(_data?: any) {
|
|
53644
|
+
if (_data) {
|
|
53645
|
+
this.pageSize = _data["pageSize"];
|
|
53646
|
+
this.customerId = _data["customerId"];
|
|
53647
|
+
this.customerName = _data["customerName"];
|
|
53648
|
+
this.partName = _data["partName"];
|
|
53649
|
+
this.partNumber = _data["partNumber"];
|
|
53650
|
+
this.partRevision = _data["partRevision"];
|
|
53651
|
+
this.drawing = _data["drawing"];
|
|
53652
|
+
this.drawingRevision = _data["drawingRevision"];
|
|
53653
|
+
this.filter = _data["filter"];
|
|
53654
|
+
this.continuationToken = _data["continuationToken"];
|
|
53655
|
+
}
|
|
53656
|
+
}
|
|
53657
|
+
|
|
53658
|
+
static fromJS(data: any): ListMeasurementFormSchemasRequest {
|
|
53659
|
+
data = typeof data === 'object' ? data : {};
|
|
53660
|
+
let result = new ListMeasurementFormSchemasRequest();
|
|
53661
|
+
result.init(data);
|
|
53662
|
+
return result;
|
|
53663
|
+
}
|
|
53664
|
+
|
|
53665
|
+
toJSON(data?: any) {
|
|
53666
|
+
data = typeof data === 'object' ? data : {};
|
|
53667
|
+
data["pageSize"] = this.pageSize;
|
|
53668
|
+
data["customerId"] = this.customerId;
|
|
53669
|
+
data["customerName"] = this.customerName;
|
|
53670
|
+
data["partName"] = this.partName;
|
|
53671
|
+
data["partNumber"] = this.partNumber;
|
|
53672
|
+
data["partRevision"] = this.partRevision;
|
|
53673
|
+
data["drawing"] = this.drawing;
|
|
53674
|
+
data["drawingRevision"] = this.drawingRevision;
|
|
53675
|
+
data["filter"] = this.filter;
|
|
53676
|
+
data["continuationToken"] = this.continuationToken;
|
|
53677
|
+
return data;
|
|
53678
|
+
}
|
|
53679
|
+
}
|
|
53680
|
+
|
|
53681
|
+
export interface IListMeasurementFormSchemasRequest {
|
|
53682
|
+
pageSize?: number | null;
|
|
53683
|
+
customerId?: string | null;
|
|
53684
|
+
customerName?: string | null;
|
|
53685
|
+
partName?: string | null;
|
|
53686
|
+
partNumber?: string | null;
|
|
53687
|
+
partRevision?: string | null;
|
|
53688
|
+
drawing?: string | null;
|
|
53689
|
+
drawingRevision?: string | null;
|
|
53690
|
+
filter?: string | null;
|
|
53691
|
+
continuationToken?: string | null;
|
|
53692
|
+
}
|
|
53693
|
+
|
|
53628
53694
|
export class MeasurementFormSchemaDto implements IMeasurementFormSchemaDto {
|
|
53629
53695
|
id!: string;
|
|
53630
53696
|
versionId!: number;
|
|
@@ -53790,10 +53856,6 @@ export interface IMeasurementFormSchemaDto {
|
|
|
53790
53856
|
extraSchemas: MeasurementFormLinkedSchemaDto[];
|
|
53791
53857
|
}
|
|
53792
53858
|
|
|
53793
|
-
export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
53794
|
-
|
|
53795
|
-
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
53796
|
-
|
|
53797
53859
|
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
53798
53860
|
|
|
53799
53861
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
@@ -54884,145 +54946,6 @@ export interface IMeasurementFormImportStatusDto {
|
|
|
54884
54946
|
timestamp: Date;
|
|
54885
54947
|
}
|
|
54886
54948
|
|
|
54887
|
-
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
54888
|
-
results!: MeasurementFormListDto[];
|
|
54889
|
-
continuationToken?: string | null;
|
|
54890
|
-
|
|
54891
|
-
constructor(data?: IPagedResultOfMeasurementFormListDto) {
|
|
54892
|
-
if (data) {
|
|
54893
|
-
for (var property in data) {
|
|
54894
|
-
if (data.hasOwnProperty(property))
|
|
54895
|
-
(this as any)[property] = (data as any)[property];
|
|
54896
|
-
}
|
|
54897
|
-
}
|
|
54898
|
-
if (!data) {
|
|
54899
|
-
this.results = [];
|
|
54900
|
-
}
|
|
54901
|
-
}
|
|
54902
|
-
|
|
54903
|
-
init(_data?: any) {
|
|
54904
|
-
if (_data) {
|
|
54905
|
-
if (Array.isArray(_data["results"])) {
|
|
54906
|
-
this.results = [] as any;
|
|
54907
|
-
for (let item of _data["results"])
|
|
54908
|
-
this.results!.push(MeasurementFormListDto.fromJS(item));
|
|
54909
|
-
}
|
|
54910
|
-
this.continuationToken = _data["continuationToken"];
|
|
54911
|
-
}
|
|
54912
|
-
}
|
|
54913
|
-
|
|
54914
|
-
static fromJS(data: any): PagedResultOfMeasurementFormListDto {
|
|
54915
|
-
data = typeof data === 'object' ? data : {};
|
|
54916
|
-
let result = new PagedResultOfMeasurementFormListDto();
|
|
54917
|
-
result.init(data);
|
|
54918
|
-
return result;
|
|
54919
|
-
}
|
|
54920
|
-
|
|
54921
|
-
toJSON(data?: any) {
|
|
54922
|
-
data = typeof data === 'object' ? data : {};
|
|
54923
|
-
if (Array.isArray(this.results)) {
|
|
54924
|
-
data["results"] = [];
|
|
54925
|
-
for (let item of this.results)
|
|
54926
|
-
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
54927
|
-
}
|
|
54928
|
-
data["continuationToken"] = this.continuationToken;
|
|
54929
|
-
return data;
|
|
54930
|
-
}
|
|
54931
|
-
}
|
|
54932
|
-
|
|
54933
|
-
export interface IPagedResultOfMeasurementFormListDto {
|
|
54934
|
-
results: MeasurementFormListDto[];
|
|
54935
|
-
continuationToken?: string | null;
|
|
54936
|
-
}
|
|
54937
|
-
|
|
54938
|
-
export class MeasurementFormListDto implements IMeasurementFormListDto {
|
|
54939
|
-
id!: string;
|
|
54940
|
-
schemaId!: string;
|
|
54941
|
-
versionId!: number;
|
|
54942
|
-
customerId?: string | null;
|
|
54943
|
-
customerName?: string | null;
|
|
54944
|
-
partNumber?: string | null;
|
|
54945
|
-
partRevision?: string | null;
|
|
54946
|
-
partName?: string | null;
|
|
54947
|
-
drawing!: string;
|
|
54948
|
-
drawingRevision?: string | null;
|
|
54949
|
-
createdBy!: string;
|
|
54950
|
-
created!: Date;
|
|
54951
|
-
status!: MeasurementFormStatus;
|
|
54952
|
-
source!: MeasurementFormSource;
|
|
54953
|
-
|
|
54954
|
-
constructor(data?: IMeasurementFormListDto) {
|
|
54955
|
-
if (data) {
|
|
54956
|
-
for (var property in data) {
|
|
54957
|
-
if (data.hasOwnProperty(property))
|
|
54958
|
-
(this as any)[property] = (data as any)[property];
|
|
54959
|
-
}
|
|
54960
|
-
}
|
|
54961
|
-
}
|
|
54962
|
-
|
|
54963
|
-
init(_data?: any) {
|
|
54964
|
-
if (_data) {
|
|
54965
|
-
this.id = _data["id"];
|
|
54966
|
-
this.schemaId = _data["schemaId"];
|
|
54967
|
-
this.versionId = _data["versionId"];
|
|
54968
|
-
this.customerId = _data["customerId"];
|
|
54969
|
-
this.customerName = _data["customerName"];
|
|
54970
|
-
this.partNumber = _data["partNumber"];
|
|
54971
|
-
this.partRevision = _data["partRevision"];
|
|
54972
|
-
this.partName = _data["partName"];
|
|
54973
|
-
this.drawing = _data["drawing"];
|
|
54974
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
54975
|
-
this.createdBy = _data["createdBy"];
|
|
54976
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
54977
|
-
this.status = _data["status"];
|
|
54978
|
-
this.source = _data["source"];
|
|
54979
|
-
}
|
|
54980
|
-
}
|
|
54981
|
-
|
|
54982
|
-
static fromJS(data: any): MeasurementFormListDto {
|
|
54983
|
-
data = typeof data === 'object' ? data : {};
|
|
54984
|
-
let result = new MeasurementFormListDto();
|
|
54985
|
-
result.init(data);
|
|
54986
|
-
return result;
|
|
54987
|
-
}
|
|
54988
|
-
|
|
54989
|
-
toJSON(data?: any) {
|
|
54990
|
-
data = typeof data === 'object' ? data : {};
|
|
54991
|
-
data["id"] = this.id;
|
|
54992
|
-
data["schemaId"] = this.schemaId;
|
|
54993
|
-
data["versionId"] = this.versionId;
|
|
54994
|
-
data["customerId"] = this.customerId;
|
|
54995
|
-
data["customerName"] = this.customerName;
|
|
54996
|
-
data["partNumber"] = this.partNumber;
|
|
54997
|
-
data["partRevision"] = this.partRevision;
|
|
54998
|
-
data["partName"] = this.partName;
|
|
54999
|
-
data["drawing"] = this.drawing;
|
|
55000
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
55001
|
-
data["createdBy"] = this.createdBy;
|
|
55002
|
-
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
55003
|
-
data["status"] = this.status;
|
|
55004
|
-
data["source"] = this.source;
|
|
55005
|
-
return data;
|
|
55006
|
-
}
|
|
55007
|
-
}
|
|
55008
|
-
|
|
55009
|
-
export interface IMeasurementFormListDto {
|
|
55010
|
-
id: string;
|
|
55011
|
-
schemaId: string;
|
|
55012
|
-
versionId: number;
|
|
55013
|
-
customerId?: string | null;
|
|
55014
|
-
customerName?: string | null;
|
|
55015
|
-
partNumber?: string | null;
|
|
55016
|
-
partRevision?: string | null;
|
|
55017
|
-
partName?: string | null;
|
|
55018
|
-
drawing: string;
|
|
55019
|
-
drawingRevision?: string | null;
|
|
55020
|
-
createdBy: string;
|
|
55021
|
-
created: Date;
|
|
55022
|
-
status: MeasurementFormStatus;
|
|
55023
|
-
source: MeasurementFormSource;
|
|
55024
|
-
}
|
|
55025
|
-
|
|
55026
54949
|
export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
|
|
55027
54950
|
schemaId!: string;
|
|
55028
54951
|
pageSize?: number | null;
|
|
@@ -56691,78 +56614,6 @@ export interface IListMeasurementFormSchemasWithHistoryRequest {
|
|
|
56691
56614
|
continuationToken?: string | null;
|
|
56692
56615
|
}
|
|
56693
56616
|
|
|
56694
|
-
export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
|
|
56695
|
-
pageSize?: number | null;
|
|
56696
|
-
customerId?: string | null;
|
|
56697
|
-
customerName?: string | null;
|
|
56698
|
-
partName?: string | null;
|
|
56699
|
-
partNumber?: string | null;
|
|
56700
|
-
partRevision?: string | null;
|
|
56701
|
-
drawing?: string | null;
|
|
56702
|
-
drawingRevision?: string | null;
|
|
56703
|
-
filter?: string | null;
|
|
56704
|
-
continuationToken?: string | null;
|
|
56705
|
-
|
|
56706
|
-
constructor(data?: IListMeasurementFormSchemasRequest) {
|
|
56707
|
-
if (data) {
|
|
56708
|
-
for (var property in data) {
|
|
56709
|
-
if (data.hasOwnProperty(property))
|
|
56710
|
-
(this as any)[property] = (data as any)[property];
|
|
56711
|
-
}
|
|
56712
|
-
}
|
|
56713
|
-
}
|
|
56714
|
-
|
|
56715
|
-
init(_data?: any) {
|
|
56716
|
-
if (_data) {
|
|
56717
|
-
this.pageSize = _data["pageSize"];
|
|
56718
|
-
this.customerId = _data["customerId"];
|
|
56719
|
-
this.customerName = _data["customerName"];
|
|
56720
|
-
this.partName = _data["partName"];
|
|
56721
|
-
this.partNumber = _data["partNumber"];
|
|
56722
|
-
this.partRevision = _data["partRevision"];
|
|
56723
|
-
this.drawing = _data["drawing"];
|
|
56724
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
56725
|
-
this.filter = _data["filter"];
|
|
56726
|
-
this.continuationToken = _data["continuationToken"];
|
|
56727
|
-
}
|
|
56728
|
-
}
|
|
56729
|
-
|
|
56730
|
-
static fromJS(data: any): ListMeasurementFormSchemasRequest {
|
|
56731
|
-
data = typeof data === 'object' ? data : {};
|
|
56732
|
-
let result = new ListMeasurementFormSchemasRequest();
|
|
56733
|
-
result.init(data);
|
|
56734
|
-
return result;
|
|
56735
|
-
}
|
|
56736
|
-
|
|
56737
|
-
toJSON(data?: any) {
|
|
56738
|
-
data = typeof data === 'object' ? data : {};
|
|
56739
|
-
data["pageSize"] = this.pageSize;
|
|
56740
|
-
data["customerId"] = this.customerId;
|
|
56741
|
-
data["customerName"] = this.customerName;
|
|
56742
|
-
data["partName"] = this.partName;
|
|
56743
|
-
data["partNumber"] = this.partNumber;
|
|
56744
|
-
data["partRevision"] = this.partRevision;
|
|
56745
|
-
data["drawing"] = this.drawing;
|
|
56746
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
56747
|
-
data["filter"] = this.filter;
|
|
56748
|
-
data["continuationToken"] = this.continuationToken;
|
|
56749
|
-
return data;
|
|
56750
|
-
}
|
|
56751
|
-
}
|
|
56752
|
-
|
|
56753
|
-
export interface IListMeasurementFormSchemasRequest {
|
|
56754
|
-
pageSize?: number | null;
|
|
56755
|
-
customerId?: string | null;
|
|
56756
|
-
customerName?: string | null;
|
|
56757
|
-
partName?: string | null;
|
|
56758
|
-
partNumber?: string | null;
|
|
56759
|
-
partRevision?: string | null;
|
|
56760
|
-
drawing?: string | null;
|
|
56761
|
-
drawingRevision?: string | null;
|
|
56762
|
-
filter?: string | null;
|
|
56763
|
-
continuationToken?: string | null;
|
|
56764
|
-
}
|
|
56765
|
-
|
|
56766
56617
|
export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
56767
56618
|
results!: MeasurementFormInstanceOverviewDto[];
|
|
56768
56619
|
continuationToken?: string | null;
|