@ignos/api-client 20250407.0.11480 → 20250409.0.11486
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 +5 -0
- package/lib/ignosportal-api.js +45 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +49 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2119,6 +2119,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2119
2119
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2120
2120
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
2121
2121
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
2122
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2122
2123
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2123
2124
|
}
|
|
2124
2125
|
export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
|
|
@@ -2190,6 +2191,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2190
2191
|
protected processUpdateSchemaInstanceElements(response: Response): Promise<void>;
|
|
2191
2192
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
2192
2193
|
protected processGetSchemaInstanceElements(response: Response): Promise<SchemaInstanceElementDto[]>;
|
|
2194
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2195
|
+
protected processToggleSchemaInstanceElementDocumentedExternallyOverride(response: Response): Promise<void>;
|
|
2193
2196
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2194
2197
|
protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2195
2198
|
}
|
|
@@ -12502,6 +12505,7 @@ export declare class MeasurementFormInstanceElementDto implements IMeasurementFo
|
|
|
12502
12505
|
frequencyParameter?: number | null;
|
|
12503
12506
|
includeInCustomerDocumentation: boolean;
|
|
12504
12507
|
isDocumentedExternally: boolean;
|
|
12508
|
+
canOverrideIsDocumentedExternally: boolean;
|
|
12505
12509
|
balloonSequence?: number | null;
|
|
12506
12510
|
balloonQuantity?: number | null;
|
|
12507
12511
|
plusTolerance?: string | null;
|
|
@@ -12548,6 +12552,7 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
12548
12552
|
frequencyParameter?: number | null;
|
|
12549
12553
|
includeInCustomerDocumentation: boolean;
|
|
12550
12554
|
isDocumentedExternally: boolean;
|
|
12555
|
+
canOverrideIsDocumentedExternally: boolean;
|
|
12551
12556
|
balloonSequence?: number | null;
|
|
12552
12557
|
balloonQuantity?: number | null;
|
|
12553
12558
|
plusTolerance?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -19205,6 +19205,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
19205
19205
|
}
|
|
19206
19206
|
return Promise.resolve(null);
|
|
19207
19207
|
}
|
|
19208
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id, schemaId, elementId, tenantId) {
|
|
19209
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
|
|
19210
|
+
if (id === undefined || id === null)
|
|
19211
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
19212
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19213
|
+
if (schemaId === undefined || schemaId === null)
|
|
19214
|
+
throw new Error("The parameter 'schemaId' must be defined.");
|
|
19215
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
19216
|
+
if (elementId === undefined || elementId === null)
|
|
19217
|
+
throw new Error("The parameter 'elementId' must be defined.");
|
|
19218
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
19219
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
19220
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
19221
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19222
|
+
let options_ = {
|
|
19223
|
+
method: "PUT",
|
|
19224
|
+
headers: {}
|
|
19225
|
+
};
|
|
19226
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19227
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19228
|
+
}).then((_response) => {
|
|
19229
|
+
return this.processToggleSchemaInstanceElementDocumentedExternallyOverride(_response);
|
|
19230
|
+
});
|
|
19231
|
+
}
|
|
19232
|
+
processToggleSchemaInstanceElementDocumentedExternallyOverride(response) {
|
|
19233
|
+
const status = response.status;
|
|
19234
|
+
let _headers = {};
|
|
19235
|
+
if (response.headers && response.headers.forEach) {
|
|
19236
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19237
|
+
}
|
|
19238
|
+
;
|
|
19239
|
+
if (status === 204) {
|
|
19240
|
+
return response.text().then((_responseText) => {
|
|
19241
|
+
return;
|
|
19242
|
+
});
|
|
19243
|
+
}
|
|
19244
|
+
else if (status !== 200 && status !== 204) {
|
|
19245
|
+
return response.text().then((_responseText) => {
|
|
19246
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19247
|
+
});
|
|
19248
|
+
}
|
|
19249
|
+
return Promise.resolve(null);
|
|
19250
|
+
}
|
|
19208
19251
|
importMeasurementFormInstance(id, request) {
|
|
19209
19252
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
19210
19253
|
if (id === undefined || id === null)
|
|
@@ -41452,6 +41495,7 @@ export class MeasurementFormInstanceElementDto {
|
|
|
41452
41495
|
this.frequencyParameter = _data["frequencyParameter"];
|
|
41453
41496
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
41454
41497
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
41498
|
+
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
41455
41499
|
this.balloonSequence = _data["balloonSequence"];
|
|
41456
41500
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
41457
41501
|
this.plusTolerance = _data["plusTolerance"];
|
|
@@ -41506,6 +41550,7 @@ export class MeasurementFormInstanceElementDto {
|
|
|
41506
41550
|
data["frequencyParameter"] = this.frequencyParameter;
|
|
41507
41551
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
41508
41552
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
41553
|
+
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
41509
41554
|
data["balloonSequence"] = this.balloonSequence;
|
|
41510
41555
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
41511
41556
|
data["plusTolerance"] = this.plusTolerance;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -19095,6 +19095,8 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
19095
19095
|
|
|
19096
19096
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
19097
19097
|
|
|
19098
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
19099
|
+
|
|
19098
19100
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
19099
19101
|
}
|
|
19100
19102
|
|
|
@@ -20436,6 +20438,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
20436
20438
|
return Promise.resolve<SchemaInstanceElementDto[]>(null as any);
|
|
20437
20439
|
}
|
|
20438
20440
|
|
|
20441
|
+
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void> {
|
|
20442
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements/{elementId}/toggle-override-documented-externally?";
|
|
20443
|
+
if (id === undefined || id === null)
|
|
20444
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
20445
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
20446
|
+
if (schemaId === undefined || schemaId === null)
|
|
20447
|
+
throw new Error("The parameter 'schemaId' must be defined.");
|
|
20448
|
+
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
20449
|
+
if (elementId === undefined || elementId === null)
|
|
20450
|
+
throw new Error("The parameter 'elementId' must be defined.");
|
|
20451
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
20452
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
20453
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
20454
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20455
|
+
|
|
20456
|
+
let options_: RequestInit = {
|
|
20457
|
+
method: "PUT",
|
|
20458
|
+
headers: {
|
|
20459
|
+
}
|
|
20460
|
+
};
|
|
20461
|
+
|
|
20462
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20463
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20464
|
+
}).then((_response: Response) => {
|
|
20465
|
+
return this.processToggleSchemaInstanceElementDocumentedExternallyOverride(_response);
|
|
20466
|
+
});
|
|
20467
|
+
}
|
|
20468
|
+
|
|
20469
|
+
protected processToggleSchemaInstanceElementDocumentedExternallyOverride(response: Response): Promise<void> {
|
|
20470
|
+
const status = response.status;
|
|
20471
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20472
|
+
if (status === 204) {
|
|
20473
|
+
return response.text().then((_responseText) => {
|
|
20474
|
+
return;
|
|
20475
|
+
});
|
|
20476
|
+
} else if (status !== 200 && status !== 204) {
|
|
20477
|
+
return response.text().then((_responseText) => {
|
|
20478
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20479
|
+
});
|
|
20480
|
+
}
|
|
20481
|
+
return Promise.resolve<void>(null as any);
|
|
20482
|
+
}
|
|
20483
|
+
|
|
20439
20484
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
20440
20485
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
|
|
20441
20486
|
if (id === undefined || id === null)
|
|
@@ -52840,6 +52885,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
52840
52885
|
frequencyParameter?: number | null;
|
|
52841
52886
|
includeInCustomerDocumentation!: boolean;
|
|
52842
52887
|
isDocumentedExternally!: boolean;
|
|
52888
|
+
canOverrideIsDocumentedExternally!: boolean;
|
|
52843
52889
|
balloonSequence?: number | null;
|
|
52844
52890
|
balloonQuantity?: number | null;
|
|
52845
52891
|
plusTolerance?: string | null;
|
|
@@ -52895,6 +52941,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
52895
52941
|
this.frequencyParameter = _data["frequencyParameter"];
|
|
52896
52942
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52897
52943
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52944
|
+
this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
|
|
52898
52945
|
this.balloonSequence = _data["balloonSequence"];
|
|
52899
52946
|
this.balloonQuantity = _data["balloonQuantity"];
|
|
52900
52947
|
this.plusTolerance = _data["plusTolerance"];
|
|
@@ -52951,6 +52998,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
|
|
|
52951
52998
|
data["frequencyParameter"] = this.frequencyParameter;
|
|
52952
52999
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52953
53000
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
53001
|
+
data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
|
|
52954
53002
|
data["balloonSequence"] = this.balloonSequence;
|
|
52955
53003
|
data["balloonQuantity"] = this.balloonQuantity;
|
|
52956
53004
|
data["plusTolerance"] = this.plusTolerance;
|
|
@@ -53000,6 +53048,7 @@ export interface IMeasurementFormInstanceElementDto {
|
|
|
53000
53048
|
frequencyParameter?: number | null;
|
|
53001
53049
|
includeInCustomerDocumentation: boolean;
|
|
53002
53050
|
isDocumentedExternally: boolean;
|
|
53051
|
+
canOverrideIsDocumentedExternally: boolean;
|
|
53003
53052
|
balloonSequence?: number | null;
|
|
53004
53053
|
balloonQuantity?: number | null;
|
|
53005
53054
|
plusTolerance?: string | null;
|