@ignos/api-client 20261028.329.1-alpha → 20261029.331.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 +10 -0
- package/lib/ignosportal-api.js +39 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +48 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3295,6 +3295,7 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
|
|
|
3295
3295
|
export interface IMeasurementFormSchemasClient {
|
|
3296
3296
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
3297
3297
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3298
|
+
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3298
3299
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
3299
3300
|
/**
|
|
3300
3301
|
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
@@ -3319,6 +3320,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
3319
3320
|
protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3320
3321
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3321
3322
|
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3323
|
+
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3324
|
+
protected processListMeasurementFormSchemaVersions(response: Response): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3322
3325
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
3323
3326
|
protected processListFrequencies(response: Response): Promise<MeasurementFrequencyDto[]>;
|
|
3324
3327
|
/**
|
|
@@ -10183,6 +10186,13 @@ export interface ListMeasurementFormSchemasRequest {
|
|
|
10183
10186
|
filter?: string | null;
|
|
10184
10187
|
continuationToken?: string | null;
|
|
10185
10188
|
}
|
|
10189
|
+
export interface MeasurementFormSchemaVersionDto {
|
|
10190
|
+
id: string;
|
|
10191
|
+
versionId: number;
|
|
10192
|
+
status: MeasurementFormStatus;
|
|
10193
|
+
drawingUrl?: string | null;
|
|
10194
|
+
created: Date;
|
|
10195
|
+
}
|
|
10186
10196
|
export interface MeasurementFrequencyDto {
|
|
10187
10197
|
id: number;
|
|
10188
10198
|
name: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -27802,6 +27802,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27802
27802
|
}
|
|
27803
27803
|
return Promise.resolve(null);
|
|
27804
27804
|
}
|
|
27805
|
+
listMeasurementFormSchemaVersions(id) {
|
|
27806
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
27807
|
+
if (id === undefined || id === null)
|
|
27808
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27809
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27810
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27811
|
+
let options_ = {
|
|
27812
|
+
method: "GET",
|
|
27813
|
+
headers: {
|
|
27814
|
+
"Accept": "application/json"
|
|
27815
|
+
}
|
|
27816
|
+
};
|
|
27817
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27818
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27819
|
+
}).then((_response) => {
|
|
27820
|
+
return this.processListMeasurementFormSchemaVersions(_response);
|
|
27821
|
+
});
|
|
27822
|
+
}
|
|
27823
|
+
processListMeasurementFormSchemaVersions(response) {
|
|
27824
|
+
const status = response.status;
|
|
27825
|
+
let _headers = {};
|
|
27826
|
+
if (response.headers && response.headers.forEach) {
|
|
27827
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27828
|
+
}
|
|
27829
|
+
;
|
|
27830
|
+
if (status === 200) {
|
|
27831
|
+
return response.text().then((_responseText) => {
|
|
27832
|
+
let result200 = null;
|
|
27833
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27834
|
+
return result200;
|
|
27835
|
+
});
|
|
27836
|
+
}
|
|
27837
|
+
else if (status !== 200 && status !== 204) {
|
|
27838
|
+
return response.text().then((_responseText) => {
|
|
27839
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27840
|
+
});
|
|
27841
|
+
}
|
|
27842
|
+
return Promise.resolve(null);
|
|
27843
|
+
}
|
|
27805
27844
|
listFrequencies() {
|
|
27806
27845
|
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
27807
27846
|
url_ = url_.replace(/[?&]$/, "");
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -29431,6 +29431,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29431
29431
|
|
|
29432
29432
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
29433
29433
|
|
|
29434
|
+
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29435
|
+
|
|
29434
29436
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
29435
29437
|
|
|
29436
29438
|
/**
|
|
@@ -29536,6 +29538,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29536
29538
|
return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
|
|
29537
29539
|
}
|
|
29538
29540
|
|
|
29541
|
+
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29542
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29543
|
+
if (id === undefined || id === null)
|
|
29544
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29545
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29546
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29547
|
+
|
|
29548
|
+
let options_: RequestInit = {
|
|
29549
|
+
method: "GET",
|
|
29550
|
+
headers: {
|
|
29551
|
+
"Accept": "application/json"
|
|
29552
|
+
}
|
|
29553
|
+
};
|
|
29554
|
+
|
|
29555
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29556
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29557
|
+
}).then((_response: Response) => {
|
|
29558
|
+
return this.processListMeasurementFormSchemaVersions(_response);
|
|
29559
|
+
});
|
|
29560
|
+
}
|
|
29561
|
+
|
|
29562
|
+
protected processListMeasurementFormSchemaVersions(response: Response): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29563
|
+
const status = response.status;
|
|
29564
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29565
|
+
if (status === 200) {
|
|
29566
|
+
return response.text().then((_responseText) => {
|
|
29567
|
+
let result200: any = null;
|
|
29568
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaVersionDto[];
|
|
29569
|
+
return result200;
|
|
29570
|
+
});
|
|
29571
|
+
} else if (status !== 200 && status !== 204) {
|
|
29572
|
+
return response.text().then((_responseText) => {
|
|
29573
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29574
|
+
});
|
|
29575
|
+
}
|
|
29576
|
+
return Promise.resolve<MeasurementFormSchemaVersionDto[]>(null as any);
|
|
29577
|
+
}
|
|
29578
|
+
|
|
29539
29579
|
listFrequencies(): Promise<MeasurementFrequencyDto[]> {
|
|
29540
29580
|
let url_ = this.baseUrl + "/measurementforms/schemas/frequencies";
|
|
29541
29581
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -40601,6 +40641,14 @@ export interface ListMeasurementFormSchemasRequest {
|
|
|
40601
40641
|
continuationToken?: string | null;
|
|
40602
40642
|
}
|
|
40603
40643
|
|
|
40644
|
+
export interface MeasurementFormSchemaVersionDto {
|
|
40645
|
+
id: string;
|
|
40646
|
+
versionId: number;
|
|
40647
|
+
status: MeasurementFormStatus;
|
|
40648
|
+
drawingUrl?: string | null;
|
|
40649
|
+
created: Date;
|
|
40650
|
+
}
|
|
40651
|
+
|
|
40604
40652
|
export interface MeasurementFrequencyDto {
|
|
40605
40653
|
id: number;
|
|
40606
40654
|
name: string;
|