@ignos/api-client 20251103.0.13097 → 20251105.0.13136-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 +115 -92
- package/lib/ignosportal-api.js +463 -415
- package/package.json +1 -1
- package/src/ignosportal-api.ts +437 -370
package/src/ignosportal-api.ts
CHANGED
|
@@ -1591,6 +1591,10 @@ 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>;
|
|
1594
1598
|
}
|
|
1595
1599
|
|
|
1596
1600
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -1747,6 +1751,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1747
1751
|
}
|
|
1748
1752
|
return Promise.resolve<void>(null as any);
|
|
1749
1753
|
}
|
|
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
|
+
}
|
|
1750
1826
|
}
|
|
1751
1827
|
|
|
1752
1828
|
export interface IUploadClient {
|
|
@@ -19016,22 +19092,16 @@ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
|
|
|
19016
19092
|
}
|
|
19017
19093
|
}
|
|
19018
19094
|
|
|
19019
|
-
export interface
|
|
19095
|
+
export interface IMeasurementFormSchemasAdminClient {
|
|
19020
19096
|
|
|
19021
|
-
|
|
19097
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
19022
19098
|
|
|
19023
19099
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
19024
19100
|
|
|
19025
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
19026
|
-
|
|
19027
|
-
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
19028
|
-
|
|
19029
19101
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
19030
19102
|
|
|
19031
19103
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
19032
19104
|
|
|
19033
|
-
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
19034
|
-
|
|
19035
19105
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
19036
19106
|
|
|
19037
19107
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -19144,7 +19214,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
19144
19214
|
postListMeasurementFormSchemasWithHistory(request: ListMeasurementFormSchemasWithHistoryRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
19145
19215
|
}
|
|
19146
19216
|
|
|
19147
|
-
export class
|
|
19217
|
+
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase implements IMeasurementFormSchemasAdminClient {
|
|
19148
19218
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
19149
19219
|
private baseUrl: string;
|
|
19150
19220
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -19155,30 +19225,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19155
19225
|
this.baseUrl = baseUrl ?? "";
|
|
19156
19226
|
}
|
|
19157
19227
|
|
|
19158
|
-
|
|
19159
|
-
let url_ = this.baseUrl + "/measurementforms/schemas
|
|
19160
|
-
if (
|
|
19161
|
-
throw new globalThis.Error("The parameter '
|
|
19162
|
-
|
|
19163
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
19164
|
-
if (customerId !== undefined && customerId !== null)
|
|
19165
|
-
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
19166
|
-
if (customerName !== undefined && customerName !== null)
|
|
19167
|
-
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
19168
|
-
if (partNumber !== undefined && partNumber !== null)
|
|
19169
|
-
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
19170
|
-
if (partName !== undefined && partName !== null)
|
|
19171
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
19172
|
-
if (partRevision !== undefined && partRevision !== null)
|
|
19173
|
-
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
19174
|
-
if (drawing !== undefined && drawing !== null)
|
|
19175
|
-
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
19176
|
-
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
19177
|
-
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
19178
|
-
if (filter !== undefined && filter !== null)
|
|
19179
|
-
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
19180
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
19181
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
19228
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19229
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
19230
|
+
if (id === undefined || id === null)
|
|
19231
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19232
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19182
19233
|
url_ = url_.replace(/[?&]$/, "");
|
|
19183
19234
|
|
|
19184
19235
|
let options_: RequestInit = {
|
|
@@ -19191,18 +19242,18 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19191
19242
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19192
19243
|
return this.http.fetch(url_, transformedOptions_);
|
|
19193
19244
|
}).then((_response: Response) => {
|
|
19194
|
-
return this.
|
|
19245
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
19195
19246
|
});
|
|
19196
19247
|
}
|
|
19197
19248
|
|
|
19198
|
-
protected
|
|
19249
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19199
19250
|
const status = response.status;
|
|
19200
19251
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19201
19252
|
if (status === 200) {
|
|
19202
19253
|
return response.text().then((_responseText) => {
|
|
19203
19254
|
let result200: any = null;
|
|
19204
19255
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19205
|
-
result200 =
|
|
19256
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19206
19257
|
return result200;
|
|
19207
19258
|
});
|
|
19208
19259
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -19210,7 +19261,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19210
19261
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19211
19262
|
});
|
|
19212
19263
|
}
|
|
19213
|
-
return Promise.resolve<
|
|
19264
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19214
19265
|
}
|
|
19215
19266
|
|
|
19216
19267
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
@@ -19253,85 +19304,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19253
19304
|
return Promise.resolve<MeasurementFormDto>(null as any);
|
|
19254
19305
|
}
|
|
19255
19306
|
|
|
19256
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19257
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/list";
|
|
19258
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19259
|
-
|
|
19260
|
-
const content_ = JSON.stringify(request);
|
|
19261
|
-
|
|
19262
|
-
let options_: RequestInit = {
|
|
19263
|
-
body: content_,
|
|
19264
|
-
method: "POST",
|
|
19265
|
-
headers: {
|
|
19266
|
-
"Content-Type": "application/json",
|
|
19267
|
-
"Accept": "application/json"
|
|
19268
|
-
}
|
|
19269
|
-
};
|
|
19270
|
-
|
|
19271
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19272
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
19273
|
-
}).then((_response: Response) => {
|
|
19274
|
-
return this.processPostListMeasurementFormSchemas(_response);
|
|
19275
|
-
});
|
|
19276
|
-
}
|
|
19277
|
-
|
|
19278
|
-
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
|
|
19279
|
-
const status = response.status;
|
|
19280
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19281
|
-
if (status === 200) {
|
|
19282
|
-
return response.text().then((_responseText) => {
|
|
19283
|
-
let result200: any = null;
|
|
19284
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19285
|
-
result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
|
|
19286
|
-
return result200;
|
|
19287
|
-
});
|
|
19288
|
-
} else if (status !== 200 && status !== 204) {
|
|
19289
|
-
return response.text().then((_responseText) => {
|
|
19290
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19291
|
-
});
|
|
19292
|
-
}
|
|
19293
|
-
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
19294
|
-
}
|
|
19295
|
-
|
|
19296
|
-
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19297
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
19298
|
-
if (id === undefined || id === null)
|
|
19299
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19300
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19301
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19302
|
-
|
|
19303
|
-
let options_: RequestInit = {
|
|
19304
|
-
method: "GET",
|
|
19305
|
-
headers: {
|
|
19306
|
-
"Accept": "application/json"
|
|
19307
|
-
}
|
|
19308
|
-
};
|
|
19309
|
-
|
|
19310
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19311
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
19312
|
-
}).then((_response: Response) => {
|
|
19313
|
-
return this.processGetMeasurementFormSchema(_response);
|
|
19314
|
-
});
|
|
19315
|
-
}
|
|
19316
|
-
|
|
19317
|
-
protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19318
|
-
const status = response.status;
|
|
19319
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19320
|
-
if (status === 200) {
|
|
19321
|
-
return response.text().then((_responseText) => {
|
|
19322
|
-
let result200: any = null;
|
|
19323
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19324
|
-
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19325
|
-
return result200;
|
|
19326
|
-
});
|
|
19327
|
-
} else if (status !== 200 && status !== 204) {
|
|
19328
|
-
return response.text().then((_responseText) => {
|
|
19329
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19330
|
-
});
|
|
19331
|
-
}
|
|
19332
|
-
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19333
|
-
}
|
|
19334
|
-
|
|
19335
19307
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto> {
|
|
19336
19308
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
19337
19309
|
if (id === undefined || id === null)
|
|
@@ -19410,45 +19382,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19410
19382
|
return Promise.resolve<void>(null as any);
|
|
19411
19383
|
}
|
|
19412
19384
|
|
|
19413
|
-
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19414
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
19415
|
-
if (id === undefined || id === null)
|
|
19416
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
19417
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19418
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
19419
|
-
|
|
19420
|
-
let options_: RequestInit = {
|
|
19421
|
-
method: "GET",
|
|
19422
|
-
headers: {
|
|
19423
|
-
"Accept": "application/json"
|
|
19424
|
-
}
|
|
19425
|
-
};
|
|
19426
|
-
|
|
19427
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19428
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
19429
|
-
}).then((_response: Response) => {
|
|
19430
|
-
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
19431
|
-
});
|
|
19432
|
-
}
|
|
19433
|
-
|
|
19434
|
-
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19435
|
-
const status = response.status;
|
|
19436
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19437
|
-
if (status === 200) {
|
|
19438
|
-
return response.text().then((_responseText) => {
|
|
19439
|
-
let result200: any = null;
|
|
19440
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19441
|
-
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19442
|
-
return result200;
|
|
19443
|
-
});
|
|
19444
|
-
} else if (status !== 200 && status !== 204) {
|
|
19445
|
-
return response.text().then((_responseText) => {
|
|
19446
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19447
|
-
});
|
|
19448
|
-
}
|
|
19449
|
-
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19450
|
-
}
|
|
19451
|
-
|
|
19452
19385
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
19453
19386
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
19454
19387
|
if (id === undefined || id === null)
|
|
@@ -21467,6 +21400,104 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
21467
21400
|
}
|
|
21468
21401
|
}
|
|
21469
21402
|
|
|
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
|
+
|
|
21470
21501
|
export interface IMeasurementFormSettingsClient {
|
|
21471
21502
|
|
|
21472
21503
|
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
@@ -27062,6 +27093,42 @@ export interface IMoveAppSettings {
|
|
|
27062
27093
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
27063
27094
|
}
|
|
27064
27095
|
|
|
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
|
+
|
|
27065
27132
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
27066
27133
|
baseUrl?: string | null;
|
|
27067
27134
|
key?: string | null;
|
|
@@ -53558,221 +53625,6 @@ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
|
|
|
53558
53625
|
export interface ICreateWeldingIotConfig {
|
|
53559
53626
|
}
|
|
53560
53627
|
|
|
53561
|
-
export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
|
|
53562
|
-
results!: MeasurementFormListDto[];
|
|
53563
|
-
continuationToken?: string | null;
|
|
53564
|
-
|
|
53565
|
-
constructor(data?: IPagedResultOfMeasurementFormListDto) {
|
|
53566
|
-
if (data) {
|
|
53567
|
-
for (var property in data) {
|
|
53568
|
-
if (data.hasOwnProperty(property))
|
|
53569
|
-
(this as any)[property] = (data as any)[property];
|
|
53570
|
-
}
|
|
53571
|
-
}
|
|
53572
|
-
if (!data) {
|
|
53573
|
-
this.results = [];
|
|
53574
|
-
}
|
|
53575
|
-
}
|
|
53576
|
-
|
|
53577
|
-
init(_data?: any) {
|
|
53578
|
-
if (_data) {
|
|
53579
|
-
if (Array.isArray(_data["results"])) {
|
|
53580
|
-
this.results = [] as any;
|
|
53581
|
-
for (let item of _data["results"])
|
|
53582
|
-
this.results!.push(MeasurementFormListDto.fromJS(item));
|
|
53583
|
-
}
|
|
53584
|
-
this.continuationToken = _data["continuationToken"];
|
|
53585
|
-
}
|
|
53586
|
-
}
|
|
53587
|
-
|
|
53588
|
-
static fromJS(data: any): PagedResultOfMeasurementFormListDto {
|
|
53589
|
-
data = typeof data === 'object' ? data : {};
|
|
53590
|
-
let result = new PagedResultOfMeasurementFormListDto();
|
|
53591
|
-
result.init(data);
|
|
53592
|
-
return result;
|
|
53593
|
-
}
|
|
53594
|
-
|
|
53595
|
-
toJSON(data?: any) {
|
|
53596
|
-
data = typeof data === 'object' ? data : {};
|
|
53597
|
-
if (Array.isArray(this.results)) {
|
|
53598
|
-
data["results"] = [];
|
|
53599
|
-
for (let item of this.results)
|
|
53600
|
-
data["results"].push(item ? item.toJSON() : undefined as any);
|
|
53601
|
-
}
|
|
53602
|
-
data["continuationToken"] = this.continuationToken;
|
|
53603
|
-
return data;
|
|
53604
|
-
}
|
|
53605
|
-
}
|
|
53606
|
-
|
|
53607
|
-
export interface IPagedResultOfMeasurementFormListDto {
|
|
53608
|
-
results: MeasurementFormListDto[];
|
|
53609
|
-
continuationToken?: string | null;
|
|
53610
|
-
}
|
|
53611
|
-
|
|
53612
|
-
export class MeasurementFormListDto implements IMeasurementFormListDto {
|
|
53613
|
-
id!: string;
|
|
53614
|
-
schemaId!: string;
|
|
53615
|
-
versionId!: number;
|
|
53616
|
-
customerId?: string | null;
|
|
53617
|
-
customerName?: string | null;
|
|
53618
|
-
partNumber?: string | null;
|
|
53619
|
-
partRevision?: string | null;
|
|
53620
|
-
partName?: string | null;
|
|
53621
|
-
drawing!: string;
|
|
53622
|
-
drawingRevision?: string | null;
|
|
53623
|
-
createdBy!: string;
|
|
53624
|
-
created!: Date;
|
|
53625
|
-
status!: MeasurementFormStatus;
|
|
53626
|
-
source!: MeasurementFormSource;
|
|
53627
|
-
|
|
53628
|
-
constructor(data?: IMeasurementFormListDto) {
|
|
53629
|
-
if (data) {
|
|
53630
|
-
for (var property in data) {
|
|
53631
|
-
if (data.hasOwnProperty(property))
|
|
53632
|
-
(this as any)[property] = (data as any)[property];
|
|
53633
|
-
}
|
|
53634
|
-
}
|
|
53635
|
-
}
|
|
53636
|
-
|
|
53637
|
-
init(_data?: any) {
|
|
53638
|
-
if (_data) {
|
|
53639
|
-
this.id = _data["id"];
|
|
53640
|
-
this.schemaId = _data["schemaId"];
|
|
53641
|
-
this.versionId = _data["versionId"];
|
|
53642
|
-
this.customerId = _data["customerId"];
|
|
53643
|
-
this.customerName = _data["customerName"];
|
|
53644
|
-
this.partNumber = _data["partNumber"];
|
|
53645
|
-
this.partRevision = _data["partRevision"];
|
|
53646
|
-
this.partName = _data["partName"];
|
|
53647
|
-
this.drawing = _data["drawing"];
|
|
53648
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
53649
|
-
this.createdBy = _data["createdBy"];
|
|
53650
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
53651
|
-
this.status = _data["status"];
|
|
53652
|
-
this.source = _data["source"];
|
|
53653
|
-
}
|
|
53654
|
-
}
|
|
53655
|
-
|
|
53656
|
-
static fromJS(data: any): MeasurementFormListDto {
|
|
53657
|
-
data = typeof data === 'object' ? data : {};
|
|
53658
|
-
let result = new MeasurementFormListDto();
|
|
53659
|
-
result.init(data);
|
|
53660
|
-
return result;
|
|
53661
|
-
}
|
|
53662
|
-
|
|
53663
|
-
toJSON(data?: any) {
|
|
53664
|
-
data = typeof data === 'object' ? data : {};
|
|
53665
|
-
data["id"] = this.id;
|
|
53666
|
-
data["schemaId"] = this.schemaId;
|
|
53667
|
-
data["versionId"] = this.versionId;
|
|
53668
|
-
data["customerId"] = this.customerId;
|
|
53669
|
-
data["customerName"] = this.customerName;
|
|
53670
|
-
data["partNumber"] = this.partNumber;
|
|
53671
|
-
data["partRevision"] = this.partRevision;
|
|
53672
|
-
data["partName"] = this.partName;
|
|
53673
|
-
data["drawing"] = this.drawing;
|
|
53674
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
53675
|
-
data["createdBy"] = this.createdBy;
|
|
53676
|
-
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
53677
|
-
data["status"] = this.status;
|
|
53678
|
-
data["source"] = this.source;
|
|
53679
|
-
return data;
|
|
53680
|
-
}
|
|
53681
|
-
}
|
|
53682
|
-
|
|
53683
|
-
export interface IMeasurementFormListDto {
|
|
53684
|
-
id: string;
|
|
53685
|
-
schemaId: string;
|
|
53686
|
-
versionId: number;
|
|
53687
|
-
customerId?: string | null;
|
|
53688
|
-
customerName?: string | null;
|
|
53689
|
-
partNumber?: string | null;
|
|
53690
|
-
partRevision?: string | null;
|
|
53691
|
-
partName?: string | null;
|
|
53692
|
-
drawing: string;
|
|
53693
|
-
drawingRevision?: string | null;
|
|
53694
|
-
createdBy: string;
|
|
53695
|
-
created: Date;
|
|
53696
|
-
status: MeasurementFormStatus;
|
|
53697
|
-
source: MeasurementFormSource;
|
|
53698
|
-
}
|
|
53699
|
-
|
|
53700
|
-
export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
53701
|
-
|
|
53702
|
-
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
53703
|
-
|
|
53704
|
-
export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
|
|
53705
|
-
pageSize?: number | null;
|
|
53706
|
-
customerId?: string | null;
|
|
53707
|
-
customerName?: string | null;
|
|
53708
|
-
partName?: string | null;
|
|
53709
|
-
partNumber?: string | null;
|
|
53710
|
-
partRevision?: string | null;
|
|
53711
|
-
drawing?: string | null;
|
|
53712
|
-
drawingRevision?: string | null;
|
|
53713
|
-
filter?: string | null;
|
|
53714
|
-
continuationToken?: string | null;
|
|
53715
|
-
|
|
53716
|
-
constructor(data?: IListMeasurementFormSchemasRequest) {
|
|
53717
|
-
if (data) {
|
|
53718
|
-
for (var property in data) {
|
|
53719
|
-
if (data.hasOwnProperty(property))
|
|
53720
|
-
(this as any)[property] = (data as any)[property];
|
|
53721
|
-
}
|
|
53722
|
-
}
|
|
53723
|
-
}
|
|
53724
|
-
|
|
53725
|
-
init(_data?: any) {
|
|
53726
|
-
if (_data) {
|
|
53727
|
-
this.pageSize = _data["pageSize"];
|
|
53728
|
-
this.customerId = _data["customerId"];
|
|
53729
|
-
this.customerName = _data["customerName"];
|
|
53730
|
-
this.partName = _data["partName"];
|
|
53731
|
-
this.partNumber = _data["partNumber"];
|
|
53732
|
-
this.partRevision = _data["partRevision"];
|
|
53733
|
-
this.drawing = _data["drawing"];
|
|
53734
|
-
this.drawingRevision = _data["drawingRevision"];
|
|
53735
|
-
this.filter = _data["filter"];
|
|
53736
|
-
this.continuationToken = _data["continuationToken"];
|
|
53737
|
-
}
|
|
53738
|
-
}
|
|
53739
|
-
|
|
53740
|
-
static fromJS(data: any): ListMeasurementFormSchemasRequest {
|
|
53741
|
-
data = typeof data === 'object' ? data : {};
|
|
53742
|
-
let result = new ListMeasurementFormSchemasRequest();
|
|
53743
|
-
result.init(data);
|
|
53744
|
-
return result;
|
|
53745
|
-
}
|
|
53746
|
-
|
|
53747
|
-
toJSON(data?: any) {
|
|
53748
|
-
data = typeof data === 'object' ? data : {};
|
|
53749
|
-
data["pageSize"] = this.pageSize;
|
|
53750
|
-
data["customerId"] = this.customerId;
|
|
53751
|
-
data["customerName"] = this.customerName;
|
|
53752
|
-
data["partName"] = this.partName;
|
|
53753
|
-
data["partNumber"] = this.partNumber;
|
|
53754
|
-
data["partRevision"] = this.partRevision;
|
|
53755
|
-
data["drawing"] = this.drawing;
|
|
53756
|
-
data["drawingRevision"] = this.drawingRevision;
|
|
53757
|
-
data["filter"] = this.filter;
|
|
53758
|
-
data["continuationToken"] = this.continuationToken;
|
|
53759
|
-
return data;
|
|
53760
|
-
}
|
|
53761
|
-
}
|
|
53762
|
-
|
|
53763
|
-
export interface IListMeasurementFormSchemasRequest {
|
|
53764
|
-
pageSize?: number | null;
|
|
53765
|
-
customerId?: string | null;
|
|
53766
|
-
customerName?: string | null;
|
|
53767
|
-
partName?: string | null;
|
|
53768
|
-
partNumber?: string | null;
|
|
53769
|
-
partRevision?: string | null;
|
|
53770
|
-
drawing?: string | null;
|
|
53771
|
-
drawingRevision?: string | null;
|
|
53772
|
-
filter?: string | null;
|
|
53773
|
-
continuationToken?: string | null;
|
|
53774
|
-
}
|
|
53775
|
-
|
|
53776
53628
|
export class MeasurementFormSchemaDto implements IMeasurementFormSchemaDto {
|
|
53777
53629
|
id!: string;
|
|
53778
53630
|
versionId!: number;
|
|
@@ -53938,6 +53790,10 @@ export interface IMeasurementFormSchemaDto {
|
|
|
53938
53790
|
extraSchemas: MeasurementFormLinkedSchemaDto[];
|
|
53939
53791
|
}
|
|
53940
53792
|
|
|
53793
|
+
export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
53794
|
+
|
|
53795
|
+
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
53796
|
+
|
|
53941
53797
|
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
53942
53798
|
|
|
53943
53799
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
@@ -55028,6 +54884,145 @@ export interface IMeasurementFormImportStatusDto {
|
|
|
55028
54884
|
timestamp: Date;
|
|
55029
54885
|
}
|
|
55030
54886
|
|
|
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
|
+
|
|
55031
55026
|
export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
|
|
55032
55027
|
schemaId!: string;
|
|
55033
55028
|
pageSize?: number | null;
|
|
@@ -56696,6 +56691,78 @@ export interface IListMeasurementFormSchemasWithHistoryRequest {
|
|
|
56696
56691
|
continuationToken?: string | null;
|
|
56697
56692
|
}
|
|
56698
56693
|
|
|
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
|
+
|
|
56699
56766
|
export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
|
|
56700
56767
|
results!: MeasurementFormInstanceOverviewDto[];
|
|
56701
56768
|
continuationToken?: string | null;
|