@ignos/api-client 20261104.345.1-alpha → 20261104.346.1-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 +172 -17
- package/lib/ignosportal-api.js +288 -72
- package/package.json +1 -1
- package/src/ignosportal-api.ts +459 -91
package/src/ignosportal-api.ts
CHANGED
|
@@ -2812,10 +2812,6 @@ export interface IUserAppSettingsClient {
|
|
|
2812
2812
|
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
2813
2813
|
|
|
2814
2814
|
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
2815
|
-
|
|
2816
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
|
|
2817
|
-
|
|
2818
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
|
|
2819
2815
|
}
|
|
2820
2816
|
|
|
2821
2817
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -3040,77 +3036,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
3040
3036
|
}
|
|
3041
3037
|
return Promise.resolve<void>(null as any);
|
|
3042
3038
|
}
|
|
3043
|
-
|
|
3044
|
-
getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
|
|
3045
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3046
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3047
|
-
|
|
3048
|
-
let options_: RequestInit = {
|
|
3049
|
-
method: "GET",
|
|
3050
|
-
headers: {
|
|
3051
|
-
"Accept": "application/json"
|
|
3052
|
-
}
|
|
3053
|
-
};
|
|
3054
|
-
|
|
3055
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3056
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
3057
|
-
}).then((_response: Response) => {
|
|
3058
|
-
return this.processGetFavoriteRoutesUserSettings(_response);
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
|
|
3063
|
-
const status = response.status;
|
|
3064
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3065
|
-
if (status === 200) {
|
|
3066
|
-
return response.text().then((_responseText) => {
|
|
3067
|
-
let result200: any = null;
|
|
3068
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
|
|
3069
|
-
return result200;
|
|
3070
|
-
});
|
|
3071
|
-
} else if (status !== 200 && status !== 204) {
|
|
3072
|
-
return response.text().then((_responseText) => {
|
|
3073
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3074
|
-
});
|
|
3075
|
-
}
|
|
3076
|
-
return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
-
setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
|
|
3080
|
-
let url_ = this.baseUrl + "/userappsettings/favorite-routes";
|
|
3081
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
3082
|
-
|
|
3083
|
-
const content_ = JSON.stringify(settings);
|
|
3084
|
-
|
|
3085
|
-
let options_: RequestInit = {
|
|
3086
|
-
body: content_,
|
|
3087
|
-
method: "PUT",
|
|
3088
|
-
headers: {
|
|
3089
|
-
"Content-Type": "application/json",
|
|
3090
|
-
}
|
|
3091
|
-
};
|
|
3092
|
-
|
|
3093
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3094
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
3095
|
-
}).then((_response: Response) => {
|
|
3096
|
-
return this.processSetFavoriteRoutesUserSettings(_response);
|
|
3097
|
-
});
|
|
3098
|
-
}
|
|
3099
|
-
|
|
3100
|
-
protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
|
|
3101
|
-
const status = response.status;
|
|
3102
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3103
|
-
if (status === 204) {
|
|
3104
|
-
return response.text().then((_responseText) => {
|
|
3105
|
-
return;
|
|
3106
|
-
});
|
|
3107
|
-
} else if (status !== 200 && status !== 204) {
|
|
3108
|
-
return response.text().then((_responseText) => {
|
|
3109
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3110
|
-
});
|
|
3111
|
-
}
|
|
3112
|
-
return Promise.resolve<void>(null as any);
|
|
3113
|
-
}
|
|
3114
3039
|
}
|
|
3115
3040
|
|
|
3116
3041
|
export interface IUploadClient {
|
|
@@ -19637,6 +19562,63 @@ export class CdfClient extends AuthorizedApiBase implements ICdfClient {
|
|
|
19637
19562
|
}
|
|
19638
19563
|
}
|
|
19639
19564
|
|
|
19565
|
+
export interface IInspectAdminClient {
|
|
19566
|
+
|
|
19567
|
+
/**
|
|
19568
|
+
* One-off: flags the current tenant's schema versions that have a schema creator document.
|
|
19569
|
+
*/
|
|
19570
|
+
backfillSchemaCreatorFlags(): Promise<SchemaCreatorFlagBackfillDto>;
|
|
19571
|
+
}
|
|
19572
|
+
|
|
19573
|
+
export class InspectAdminClient extends AuthorizedApiBase implements IInspectAdminClient {
|
|
19574
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
19575
|
+
private baseUrl: string;
|
|
19576
|
+
|
|
19577
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
19578
|
+
super(configuration);
|
|
19579
|
+
this.http = http ? http : window as any;
|
|
19580
|
+
this.baseUrl = baseUrl ?? "";
|
|
19581
|
+
}
|
|
19582
|
+
|
|
19583
|
+
/**
|
|
19584
|
+
* One-off: flags the current tenant's schema versions that have a schema creator document.
|
|
19585
|
+
*/
|
|
19586
|
+
backfillSchemaCreatorFlags(): Promise<SchemaCreatorFlagBackfillDto> {
|
|
19587
|
+
let url_ = this.baseUrl + "/admin/inspect/schemas/backfill-schema-creator-flags";
|
|
19588
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19589
|
+
|
|
19590
|
+
let options_: RequestInit = {
|
|
19591
|
+
method: "POST",
|
|
19592
|
+
headers: {
|
|
19593
|
+
"Accept": "application/json"
|
|
19594
|
+
}
|
|
19595
|
+
};
|
|
19596
|
+
|
|
19597
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19598
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19599
|
+
}).then((_response: Response) => {
|
|
19600
|
+
return this.processBackfillSchemaCreatorFlags(_response);
|
|
19601
|
+
});
|
|
19602
|
+
}
|
|
19603
|
+
|
|
19604
|
+
protected processBackfillSchemaCreatorFlags(response: Response): Promise<SchemaCreatorFlagBackfillDto> {
|
|
19605
|
+
const status = response.status;
|
|
19606
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19607
|
+
if (status === 200) {
|
|
19608
|
+
return response.text().then((_responseText) => {
|
|
19609
|
+
let result200: any = null;
|
|
19610
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorFlagBackfillDto;
|
|
19611
|
+
return result200;
|
|
19612
|
+
});
|
|
19613
|
+
} else if (status !== 200 && status !== 204) {
|
|
19614
|
+
return response.text().then((_responseText) => {
|
|
19615
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19616
|
+
});
|
|
19617
|
+
}
|
|
19618
|
+
return Promise.resolve<SchemaCreatorFlagBackfillDto>(null as any);
|
|
19619
|
+
}
|
|
19620
|
+
}
|
|
19621
|
+
|
|
19640
19622
|
export interface IWorkspaceDefaultsAdminClient {
|
|
19641
19623
|
|
|
19642
19624
|
getDefaults(): Promise<WorkspaceDefaultsDto>;
|
|
@@ -29504,10 +29486,14 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29504
29486
|
|
|
29505
29487
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
29506
29488
|
|
|
29507
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<
|
|
29489
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
|
|
29490
|
+
|
|
29491
|
+
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29508
29492
|
|
|
29509
29493
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29510
29494
|
|
|
29495
|
+
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
29496
|
+
|
|
29511
29497
|
listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
|
|
29512
29498
|
|
|
29513
29499
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
@@ -29576,7 +29562,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29576
29562
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
29577
29563
|
}
|
|
29578
29564
|
|
|
29579
|
-
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<
|
|
29565
|
+
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto> {
|
|
29580
29566
|
let url_ = this.baseUrl + "/measurementforms/schemas/list";
|
|
29581
29567
|
url_ = url_.replace(/[?&]$/, "");
|
|
29582
29568
|
|
|
@@ -29598,13 +29584,13 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29598
29584
|
});
|
|
29599
29585
|
}
|
|
29600
29586
|
|
|
29601
|
-
protected processPostListMeasurementFormSchemas(response: Response): Promise<
|
|
29587
|
+
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormSchemaOverviewDto> {
|
|
29602
29588
|
const status = response.status;
|
|
29603
29589
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29604
29590
|
if (status === 200) {
|
|
29605
29591
|
return response.text().then((_responseText) => {
|
|
29606
29592
|
let result200: any = null;
|
|
29607
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
29593
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormSchemaOverviewDto;
|
|
29608
29594
|
return result200;
|
|
29609
29595
|
});
|
|
29610
29596
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -29612,7 +29598,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29612
29598
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29613
29599
|
});
|
|
29614
29600
|
}
|
|
29615
|
-
return Promise.resolve<
|
|
29601
|
+
return Promise.resolve<PagedResultOfMeasurementFormSchemaOverviewDto>(null as any);
|
|
29602
|
+
}
|
|
29603
|
+
|
|
29604
|
+
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto> {
|
|
29605
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/list/counts";
|
|
29606
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29607
|
+
|
|
29608
|
+
const content_ = JSON.stringify(request);
|
|
29609
|
+
|
|
29610
|
+
let options_: RequestInit = {
|
|
29611
|
+
body: content_,
|
|
29612
|
+
method: "POST",
|
|
29613
|
+
headers: {
|
|
29614
|
+
"Content-Type": "application/json",
|
|
29615
|
+
"Accept": "application/json"
|
|
29616
|
+
}
|
|
29617
|
+
};
|
|
29618
|
+
|
|
29619
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29620
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29621
|
+
}).then((_response: Response) => {
|
|
29622
|
+
return this.processPostCountMeasurementFormSchemas(_response);
|
|
29623
|
+
});
|
|
29624
|
+
}
|
|
29625
|
+
|
|
29626
|
+
protected processPostCountMeasurementFormSchemas(response: Response): Promise<MeasurementFormSchemaCountsDto> {
|
|
29627
|
+
const status = response.status;
|
|
29628
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29629
|
+
if (status === 200) {
|
|
29630
|
+
return response.text().then((_responseText) => {
|
|
29631
|
+
let result200: any = null;
|
|
29632
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaCountsDto;
|
|
29633
|
+
return result200;
|
|
29634
|
+
});
|
|
29635
|
+
} else if (status !== 200 && status !== 204) {
|
|
29636
|
+
return response.text().then((_responseText) => {
|
|
29637
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29638
|
+
});
|
|
29639
|
+
}
|
|
29640
|
+
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29616
29641
|
}
|
|
29617
29642
|
|
|
29618
29643
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
@@ -29653,6 +29678,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29653
29678
|
return Promise.resolve<MeasurementFormSchemaVersionDto[]>(null as any);
|
|
29654
29679
|
}
|
|
29655
29680
|
|
|
29681
|
+
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]> {
|
|
29682
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/instances";
|
|
29683
|
+
if (id === undefined || id === null)
|
|
29684
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29685
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29686
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29687
|
+
|
|
29688
|
+
let options_: RequestInit = {
|
|
29689
|
+
method: "GET",
|
|
29690
|
+
headers: {
|
|
29691
|
+
"Accept": "application/json"
|
|
29692
|
+
}
|
|
29693
|
+
};
|
|
29694
|
+
|
|
29695
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29696
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29697
|
+
}).then((_response: Response) => {
|
|
29698
|
+
return this.processListMeasurementFormSchemaInstances(_response);
|
|
29699
|
+
});
|
|
29700
|
+
}
|
|
29701
|
+
|
|
29702
|
+
protected processListMeasurementFormSchemaInstances(response: Response): Promise<MeasurementFormSchemaInstanceDto[]> {
|
|
29703
|
+
const status = response.status;
|
|
29704
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29705
|
+
if (status === 200) {
|
|
29706
|
+
return response.text().then((_responseText) => {
|
|
29707
|
+
let result200: any = null;
|
|
29708
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaInstanceDto[];
|
|
29709
|
+
return result200;
|
|
29710
|
+
});
|
|
29711
|
+
} else if (status !== 200 && status !== 204) {
|
|
29712
|
+
return response.text().then((_responseText) => {
|
|
29713
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29714
|
+
});
|
|
29715
|
+
}
|
|
29716
|
+
return Promise.resolve<MeasurementFormSchemaInstanceDto[]>(null as any);
|
|
29717
|
+
}
|
|
29718
|
+
|
|
29656
29719
|
listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]> {
|
|
29657
29720
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions/changes";
|
|
29658
29721
|
if (id === undefined || id === null)
|
|
@@ -31149,6 +31212,9 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
31149
31212
|
|
|
31150
31213
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
31151
31214
|
|
|
31215
|
+
/**
|
|
31216
|
+
* @deprecated
|
|
31217
|
+
*/
|
|
31152
31218
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31153
31219
|
|
|
31154
31220
|
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
@@ -31157,8 +31223,16 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
31157
31223
|
|
|
31158
31224
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
31159
31225
|
|
|
31226
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto>;
|
|
31227
|
+
|
|
31228
|
+
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
31229
|
+
|
|
31160
31230
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31161
31231
|
|
|
31232
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
31233
|
+
|
|
31234
|
+
getSerialNumberMeasurements(id: string): Promise<SerialNumberMeasurementsDto[]>;
|
|
31235
|
+
|
|
31162
31236
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
31163
31237
|
|
|
31164
31238
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -31214,6 +31288,9 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31214
31288
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31215
31289
|
}
|
|
31216
31290
|
|
|
31291
|
+
/**
|
|
31292
|
+
* @deprecated
|
|
31293
|
+
*/
|
|
31217
31294
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31218
31295
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
31219
31296
|
if (id === undefined || id === null)
|
|
@@ -31382,6 +31459,84 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31382
31459
|
return Promise.resolve<void>(null as any);
|
|
31383
31460
|
}
|
|
31384
31461
|
|
|
31462
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto> {
|
|
31463
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2/counts";
|
|
31464
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
31465
|
+
|
|
31466
|
+
const content_ = JSON.stringify(request);
|
|
31467
|
+
|
|
31468
|
+
let options_: RequestInit = {
|
|
31469
|
+
body: content_,
|
|
31470
|
+
method: "POST",
|
|
31471
|
+
headers: {
|
|
31472
|
+
"Content-Type": "application/json",
|
|
31473
|
+
"Accept": "application/json"
|
|
31474
|
+
}
|
|
31475
|
+
};
|
|
31476
|
+
|
|
31477
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31478
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
31479
|
+
}).then((_response: Response) => {
|
|
31480
|
+
return this.processPostCountMeasurementFormsByStatus(_response);
|
|
31481
|
+
});
|
|
31482
|
+
}
|
|
31483
|
+
|
|
31484
|
+
protected processPostCountMeasurementFormsByStatus(response: Response): Promise<MeasurementFormInstanceCountsDto> {
|
|
31485
|
+
const status = response.status;
|
|
31486
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31487
|
+
if (status === 200) {
|
|
31488
|
+
return response.text().then((_responseText) => {
|
|
31489
|
+
let result200: any = null;
|
|
31490
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormInstanceCountsDto;
|
|
31491
|
+
return result200;
|
|
31492
|
+
});
|
|
31493
|
+
} else if (status !== 200 && status !== 204) {
|
|
31494
|
+
return response.text().then((_responseText) => {
|
|
31495
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31496
|
+
});
|
|
31497
|
+
}
|
|
31498
|
+
return Promise.resolve<MeasurementFormInstanceCountsDto>(null as any);
|
|
31499
|
+
}
|
|
31500
|
+
|
|
31501
|
+
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
31502
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2";
|
|
31503
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
31504
|
+
|
|
31505
|
+
const content_ = JSON.stringify(request);
|
|
31506
|
+
|
|
31507
|
+
let options_: RequestInit = {
|
|
31508
|
+
body: content_,
|
|
31509
|
+
method: "POST",
|
|
31510
|
+
headers: {
|
|
31511
|
+
"Content-Type": "application/json",
|
|
31512
|
+
"Accept": "application/json"
|
|
31513
|
+
}
|
|
31514
|
+
};
|
|
31515
|
+
|
|
31516
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31517
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
31518
|
+
}).then((_response: Response) => {
|
|
31519
|
+
return this.processPostListMeasurementFormsByStatusV2(_response);
|
|
31520
|
+
});
|
|
31521
|
+
}
|
|
31522
|
+
|
|
31523
|
+
protected processPostListMeasurementFormsByStatusV2(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
31524
|
+
const status = response.status;
|
|
31525
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31526
|
+
if (status === 200) {
|
|
31527
|
+
return response.text().then((_responseText) => {
|
|
31528
|
+
let result200: any = null;
|
|
31529
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PagedResultOfMeasurementFormInstanceDto;
|
|
31530
|
+
return result200;
|
|
31531
|
+
});
|
|
31532
|
+
} else if (status !== 200 && status !== 204) {
|
|
31533
|
+
return response.text().then((_responseText) => {
|
|
31534
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31535
|
+
});
|
|
31536
|
+
}
|
|
31537
|
+
return Promise.resolve<PagedResultOfMeasurementFormInstanceDto>(null as any);
|
|
31538
|
+
}
|
|
31539
|
+
|
|
31385
31540
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31386
31541
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
31387
31542
|
if (id === undefined || id === null)
|
|
@@ -31424,6 +31579,86 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31424
31579
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31425
31580
|
}
|
|
31426
31581
|
|
|
31582
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
31583
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/edit";
|
|
31584
|
+
if (id === undefined || id === null)
|
|
31585
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
31586
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
31587
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
31588
|
+
|
|
31589
|
+
const content_ = JSON.stringify(request);
|
|
31590
|
+
|
|
31591
|
+
let options_: RequestInit = {
|
|
31592
|
+
body: content_,
|
|
31593
|
+
method: "PUT",
|
|
31594
|
+
headers: {
|
|
31595
|
+
"Content-Type": "application/json",
|
|
31596
|
+
"Accept": "application/json"
|
|
31597
|
+
}
|
|
31598
|
+
};
|
|
31599
|
+
|
|
31600
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31601
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
31602
|
+
}).then((_response: Response) => {
|
|
31603
|
+
return this.processEditMeasurementFormInstance(_response);
|
|
31604
|
+
});
|
|
31605
|
+
}
|
|
31606
|
+
|
|
31607
|
+
protected processEditMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
31608
|
+
const status = response.status;
|
|
31609
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31610
|
+
if (status === 200) {
|
|
31611
|
+
return response.text().then((_responseText) => {
|
|
31612
|
+
let result200: any = null;
|
|
31613
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormInstanceDto;
|
|
31614
|
+
return result200;
|
|
31615
|
+
});
|
|
31616
|
+
} else if (status !== 200 && status !== 204) {
|
|
31617
|
+
return response.text().then((_responseText) => {
|
|
31618
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31619
|
+
});
|
|
31620
|
+
}
|
|
31621
|
+
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
31622
|
+
}
|
|
31623
|
+
|
|
31624
|
+
getSerialNumberMeasurements(id: string): Promise<SerialNumberMeasurementsDto[]> {
|
|
31625
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/serial-number-measurements";
|
|
31626
|
+
if (id === undefined || id === null)
|
|
31627
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
31628
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
31629
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
31630
|
+
|
|
31631
|
+
let options_: RequestInit = {
|
|
31632
|
+
method: "GET",
|
|
31633
|
+
headers: {
|
|
31634
|
+
"Accept": "application/json"
|
|
31635
|
+
}
|
|
31636
|
+
};
|
|
31637
|
+
|
|
31638
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31639
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
31640
|
+
}).then((_response: Response) => {
|
|
31641
|
+
return this.processGetSerialNumberMeasurements(_response);
|
|
31642
|
+
});
|
|
31643
|
+
}
|
|
31644
|
+
|
|
31645
|
+
protected processGetSerialNumberMeasurements(response: Response): Promise<SerialNumberMeasurementsDto[]> {
|
|
31646
|
+
const status = response.status;
|
|
31647
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31648
|
+
if (status === 200) {
|
|
31649
|
+
return response.text().then((_responseText) => {
|
|
31650
|
+
let result200: any = null;
|
|
31651
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SerialNumberMeasurementsDto[];
|
|
31652
|
+
return result200;
|
|
31653
|
+
});
|
|
31654
|
+
} else if (status !== 200 && status !== 204) {
|
|
31655
|
+
return response.text().then((_responseText) => {
|
|
31656
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31657
|
+
});
|
|
31658
|
+
}
|
|
31659
|
+
return Promise.resolve<SerialNumberMeasurementsDto[]>(null as any);
|
|
31660
|
+
}
|
|
31661
|
+
|
|
31427
31662
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
31428
31663
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
31429
31664
|
if (id === undefined || id === null)
|
|
@@ -33939,15 +34174,6 @@ export interface EngageAppSettings {
|
|
|
33939
34174
|
|
|
33940
34175
|
export type ScheduleViewMode = "Flat" | "Grouped";
|
|
33941
34176
|
|
|
33942
|
-
export interface FavoriteRoutesAppSettings {
|
|
33943
|
-
favorites?: FavoriteRoute[];
|
|
33944
|
-
}
|
|
33945
|
-
|
|
33946
|
-
export interface FavoriteRoute {
|
|
33947
|
-
appKey: string;
|
|
33948
|
-
route: string;
|
|
33949
|
-
}
|
|
33950
|
-
|
|
33951
34177
|
export interface UploadInfoDto {
|
|
33952
34178
|
baseUrl?: string | null;
|
|
33953
34179
|
key?: string | null;
|
|
@@ -37493,6 +37719,11 @@ export interface UpdateCdfConfig {
|
|
|
37493
37719
|
clientSecret?: string | null;
|
|
37494
37720
|
}
|
|
37495
37721
|
|
|
37722
|
+
export interface SchemaCreatorFlagBackfillDto {
|
|
37723
|
+
flagged: number;
|
|
37724
|
+
withoutSchema: number;
|
|
37725
|
+
}
|
|
37726
|
+
|
|
37496
37727
|
export interface WorkspaceDefaultsDto {
|
|
37497
37728
|
machineTemplateOverrides?: { [key: string]: string; };
|
|
37498
37729
|
}
|
|
@@ -40752,6 +40983,25 @@ export interface ListMeasurementFormSchemasWithHistoryRequest {
|
|
|
40752
40983
|
continuationToken?: string | null;
|
|
40753
40984
|
}
|
|
40754
40985
|
|
|
40986
|
+
export interface PagedResultOfMeasurementFormSchemaOverviewDto {
|
|
40987
|
+
results: MeasurementFormSchemaOverviewDto[];
|
|
40988
|
+
continuationToken?: string | null;
|
|
40989
|
+
}
|
|
40990
|
+
|
|
40991
|
+
export interface MeasurementFormSchemaOverviewDto extends MeasurementFormListDto {
|
|
40992
|
+
referenceCount: number;
|
|
40993
|
+
instanceCount: number;
|
|
40994
|
+
instanceStatusCounts: MeasurementFormInstanceStatusCountDto[];
|
|
40995
|
+
hasSchemaCreator: boolean;
|
|
40996
|
+
}
|
|
40997
|
+
|
|
40998
|
+
export interface MeasurementFormInstanceStatusCountDto {
|
|
40999
|
+
status: MeasurementFormInstanceStatus;
|
|
41000
|
+
count: number;
|
|
41001
|
+
}
|
|
41002
|
+
|
|
41003
|
+
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
41004
|
+
|
|
40755
41005
|
export interface ListMeasurementFormSchemasRequest {
|
|
40756
41006
|
pageSize?: number | null;
|
|
40757
41007
|
customerId?: string | null;
|
|
@@ -40763,6 +41013,37 @@ export interface ListMeasurementFormSchemasRequest {
|
|
|
40763
41013
|
drawingRevision?: string | null;
|
|
40764
41014
|
filter?: string | null;
|
|
40765
41015
|
continuationToken?: string | null;
|
|
41016
|
+
statuses?: MeasurementFormStatus[] | null;
|
|
41017
|
+
/** Schemas for any of these customers. */
|
|
41018
|
+
customerIds?: string[] | null;
|
|
41019
|
+
/** Also schemas without a customer. */
|
|
41020
|
+
withoutCustomer?: boolean | null;
|
|
41021
|
+
/** Schemas with, or without, a schema creator document. */
|
|
41022
|
+
schemaCreator?: boolean | null;
|
|
41023
|
+
}
|
|
41024
|
+
|
|
41025
|
+
export interface MeasurementFormSchemaCountsDto {
|
|
41026
|
+
total: number;
|
|
41027
|
+
draft: number;
|
|
41028
|
+
released: number;
|
|
41029
|
+
revoked: number;
|
|
41030
|
+
schemaCreator: number;
|
|
41031
|
+
withoutCustomer: number;
|
|
41032
|
+
customers: CustomerSchemaCountDto[];
|
|
41033
|
+
}
|
|
41034
|
+
|
|
41035
|
+
export interface CustomerSchemaCountDto {
|
|
41036
|
+
customerId: string;
|
|
41037
|
+
customerName: string;
|
|
41038
|
+
count: number;
|
|
41039
|
+
}
|
|
41040
|
+
|
|
41041
|
+
export interface CountMeasurementFormSchemasRequest {
|
|
41042
|
+
filter?: string | null;
|
|
41043
|
+
statuses?: MeasurementFormStatus[] | null;
|
|
41044
|
+
customerIds?: string[] | null;
|
|
41045
|
+
withoutCustomer?: boolean | null;
|
|
41046
|
+
schemaCreator?: boolean | null;
|
|
40766
41047
|
}
|
|
40767
41048
|
|
|
40768
41049
|
export interface MeasurementFormSchemaVersionDto {
|
|
@@ -40775,6 +41056,15 @@ export interface MeasurementFormSchemaVersionDto {
|
|
|
40775
41056
|
drawingChanged?: boolean | null;
|
|
40776
41057
|
}
|
|
40777
41058
|
|
|
41059
|
+
export interface MeasurementFormSchemaInstanceDto {
|
|
41060
|
+
id: string;
|
|
41061
|
+
schemaId: string;
|
|
41062
|
+
versionId: number;
|
|
41063
|
+
status: MeasurementFormInstanceStatus;
|
|
41064
|
+
progress: number;
|
|
41065
|
+
created: Date;
|
|
41066
|
+
}
|
|
41067
|
+
|
|
40778
41068
|
export interface MeasurementFormSchemaVersionChangesDto {
|
|
40779
41069
|
versionId: number;
|
|
40780
41070
|
added: number;
|
|
@@ -40845,6 +41135,7 @@ export interface MeasurementFormInstanceDto {
|
|
|
40845
41135
|
drawingRevision?: string | null;
|
|
40846
41136
|
customerId?: string | null;
|
|
40847
41137
|
customerName?: string | null;
|
|
41138
|
+
purchaseOrder?: string | null;
|
|
40848
41139
|
quantity: number;
|
|
40849
41140
|
status: MeasurementFormInstanceStatus;
|
|
40850
41141
|
statusChangedDate?: Date | null;
|
|
@@ -40857,8 +41148,6 @@ export interface MeasurementFormInstanceDto {
|
|
|
40857
41148
|
currentResource?: ResourceDto | null;
|
|
40858
41149
|
}
|
|
40859
41150
|
|
|
40860
|
-
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
40861
|
-
|
|
40862
41151
|
export interface MeasurementFormWorkorderSchemaDto {
|
|
40863
41152
|
id: string;
|
|
40864
41153
|
partNumber?: string | null;
|
|
@@ -40872,6 +41161,7 @@ export interface MeasurementFormWorkorderSchemaDto {
|
|
|
40872
41161
|
excludeDrawingFromCustomerDocumentation: boolean;
|
|
40873
41162
|
versionId: number;
|
|
40874
41163
|
specification?: string | null;
|
|
41164
|
+
hasComment: boolean;
|
|
40875
41165
|
progress: MeasurementFormProgressDto;
|
|
40876
41166
|
}
|
|
40877
41167
|
|
|
@@ -40880,6 +41170,8 @@ export interface MeasurementFormProgressDto {
|
|
|
40880
41170
|
requiredValues: number;
|
|
40881
41171
|
values: number;
|
|
40882
41172
|
progress: number;
|
|
41173
|
+
valuesOutsideTolerance: number;
|
|
41174
|
+
comments: number;
|
|
40883
41175
|
}
|
|
40884
41176
|
|
|
40885
41177
|
export interface MeasurementFormWorkorderSequenceDto {
|
|
@@ -40928,6 +41220,7 @@ export interface MeasurementFormInstanceOverviewDto {
|
|
|
40928
41220
|
|
|
40929
41221
|
export interface MeasurementFormInstanceSchemaOverviewDto {
|
|
40930
41222
|
id: string;
|
|
41223
|
+
hasComment: boolean;
|
|
40931
41224
|
}
|
|
40932
41225
|
|
|
40933
41226
|
export interface MeasurementFormInstanceSupplierDto {
|
|
@@ -41193,6 +41486,52 @@ export interface ListMeasurementFormsByStatusRequest {
|
|
|
41193
41486
|
continuationToken?: string | null;
|
|
41194
41487
|
}
|
|
41195
41488
|
|
|
41489
|
+
export interface MeasurementFormInstanceCountsDto {
|
|
41490
|
+
total: number;
|
|
41491
|
+
active: number;
|
|
41492
|
+
completed: number;
|
|
41493
|
+
approved: number;
|
|
41494
|
+
cancelled: number;
|
|
41495
|
+
missingCompletion: number;
|
|
41496
|
+
outsideTolerance: number;
|
|
41497
|
+
comments: number;
|
|
41498
|
+
schemaComment: number;
|
|
41499
|
+
notSharedWithSuppliers: number;
|
|
41500
|
+
suppliers: SupplierInstanceCountDto[];
|
|
41501
|
+
}
|
|
41502
|
+
|
|
41503
|
+
export interface SupplierInstanceCountDto {
|
|
41504
|
+
supplierId: string;
|
|
41505
|
+
supplierName: string;
|
|
41506
|
+
count: number;
|
|
41507
|
+
}
|
|
41508
|
+
|
|
41509
|
+
export interface CountMeasurementFormInstancesRequest {
|
|
41510
|
+
statuses?: MeasurementFormInstanceStatus[];
|
|
41511
|
+
search?: string | null;
|
|
41512
|
+
outsideTolerance?: boolean | null;
|
|
41513
|
+
comments?: boolean | null;
|
|
41514
|
+
schemaComment?: boolean | null;
|
|
41515
|
+
supplierIds?: string[] | null;
|
|
41516
|
+
notSharedWithSuppliers?: boolean | null;
|
|
41517
|
+
}
|
|
41518
|
+
|
|
41519
|
+
export interface ListMeasurementFormsByStatusesRequest {
|
|
41520
|
+
statuses?: MeasurementFormInstanceStatus[];
|
|
41521
|
+
statusChangedSince?: Date | null;
|
|
41522
|
+
onlyWithReports?: boolean | null;
|
|
41523
|
+
pageSize?: number | null;
|
|
41524
|
+
search?: string | null;
|
|
41525
|
+
continuationToken?: string | null;
|
|
41526
|
+
outsideTolerance?: boolean | null;
|
|
41527
|
+
comments?: boolean | null;
|
|
41528
|
+
schemaComment?: boolean | null;
|
|
41529
|
+
/** Instances shared with any of these suppliers. */
|
|
41530
|
+
supplierIds?: string[] | null;
|
|
41531
|
+
/** Also instances shared with no supplier. */
|
|
41532
|
+
notSharedWithSuppliers?: boolean | null;
|
|
41533
|
+
}
|
|
41534
|
+
|
|
41196
41535
|
export interface CreateMeasurementFormInstanceRequest {
|
|
41197
41536
|
schemaId: string;
|
|
41198
41537
|
customerId?: string | null;
|
|
@@ -41218,6 +41557,35 @@ export interface UpdateMeasurementFormInstanceRequest {
|
|
|
41218
41557
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
41219
41558
|
}
|
|
41220
41559
|
|
|
41560
|
+
export interface EditMeasurementFormInstanceRequest {
|
|
41561
|
+
customerId?: string | null;
|
|
41562
|
+
customerName?: string | null;
|
|
41563
|
+
purchaseOrder?: string | null;
|
|
41564
|
+
serialNumbers: EditMeasurementFormInstanceSerialNumberDto[];
|
|
41565
|
+
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
41566
|
+
}
|
|
41567
|
+
|
|
41568
|
+
export interface EditMeasurementFormInstanceSerialNumberDto extends MeasurementFormWorkorderSerialNumberDto {
|
|
41569
|
+
originalSerialNumber?: string | null;
|
|
41570
|
+
usePreviousMeasurements?: boolean | null;
|
|
41571
|
+
}
|
|
41572
|
+
|
|
41573
|
+
export interface SerialNumberMeasurementsDto {
|
|
41574
|
+
serialNumber: string;
|
|
41575
|
+
key: string;
|
|
41576
|
+
active: boolean;
|
|
41577
|
+
measurementCount: number;
|
|
41578
|
+
previousMeasurementCount: number;
|
|
41579
|
+
measuredBy: SerialNumberMeasurerDto[];
|
|
41580
|
+
archivedAt?: Date | null;
|
|
41581
|
+
}
|
|
41582
|
+
|
|
41583
|
+
export interface SerialNumberMeasurerDto {
|
|
41584
|
+
userId: string;
|
|
41585
|
+
name: string;
|
|
41586
|
+
measurementCount: number;
|
|
41587
|
+
}
|
|
41588
|
+
|
|
41221
41589
|
export interface ProductionCompanyDto {
|
|
41222
41590
|
id: string;
|
|
41223
41591
|
name: string;
|