@ignos/api-client 20261106.353.1 → 20261109.354.1
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 +14 -0
- package/lib/ignosportal-api.js +77 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +90 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3111,6 +3111,7 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
3111
3111
|
*/
|
|
3112
3112
|
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
3113
3113
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
3114
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
3114
3115
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
3115
3116
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3116
3117
|
postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -3201,6 +3202,8 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
|
|
|
3201
3202
|
protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3202
3203
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
3203
3204
|
protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3205
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
3206
|
+
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void>;
|
|
3204
3207
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
3205
3208
|
protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto>;
|
|
3206
3209
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -3299,6 +3302,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
3299
3302
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
3300
3303
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
|
|
3301
3304
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
3305
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
3302
3306
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3303
3307
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
3304
3308
|
listMeasurementFormSchemaVersionChanges(id: string): Promise<MeasurementFormSchemaVersionChangesDto[]>;
|
|
@@ -3328,6 +3332,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
3328
3332
|
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormSchemaOverviewDto>;
|
|
3329
3333
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
3330
3334
|
protected processPostCountMeasurementFormSchemas(response: Response): Promise<MeasurementFormSchemaCountsDto>;
|
|
3335
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
3336
|
+
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]>;
|
|
3331
3337
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3332
3338
|
protected processListMeasurementFormSchemaVersions(response: Response): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
3333
3339
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -9974,6 +9980,7 @@ export interface UploadRequest {
|
|
|
9974
9980
|
filename: string;
|
|
9975
9981
|
isMarkedDrawing?: boolean | null;
|
|
9976
9982
|
}
|
|
9983
|
+
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
9977
9984
|
export interface MeasurementFormImportStatusDto {
|
|
9978
9985
|
progress: number;
|
|
9979
9986
|
totalElements: number;
|
|
@@ -10273,6 +10280,13 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
10273
10280
|
withoutCustomer?: boolean | null;
|
|
10274
10281
|
schemaCreator?: boolean | null;
|
|
10275
10282
|
}
|
|
10283
|
+
export interface MeasurementFormSchemaFileDto {
|
|
10284
|
+
slot: SchemaFileSlot;
|
|
10285
|
+
title: string;
|
|
10286
|
+
url: string;
|
|
10287
|
+
size?: number | null;
|
|
10288
|
+
lastModified?: Date | null;
|
|
10289
|
+
}
|
|
10276
10290
|
export interface MeasurementFormSchemaVersionDto {
|
|
10277
10291
|
id: string;
|
|
10278
10292
|
versionId: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -26146,6 +26146,44 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
26146
26146
|
}
|
|
26147
26147
|
return Promise.resolve(null);
|
|
26148
26148
|
}
|
|
26149
|
+
deleteMeasurementFormSchemaFile(id, slot) {
|
|
26150
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
26151
|
+
if (id === undefined || id === null)
|
|
26152
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26153
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26154
|
+
if (slot === undefined || slot === null)
|
|
26155
|
+
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
26156
|
+
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
26157
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26158
|
+
let options_ = {
|
|
26159
|
+
method: "DELETE",
|
|
26160
|
+
headers: {}
|
|
26161
|
+
};
|
|
26162
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26163
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26164
|
+
}).then((_response) => {
|
|
26165
|
+
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
26166
|
+
});
|
|
26167
|
+
}
|
|
26168
|
+
processDeleteMeasurementFormSchemaFile(response) {
|
|
26169
|
+
const status = response.status;
|
|
26170
|
+
let _headers = {};
|
|
26171
|
+
if (response.headers && response.headers.forEach) {
|
|
26172
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26173
|
+
}
|
|
26174
|
+
;
|
|
26175
|
+
if (status === 204) {
|
|
26176
|
+
return response.text().then((_responseText) => {
|
|
26177
|
+
return;
|
|
26178
|
+
});
|
|
26179
|
+
}
|
|
26180
|
+
else if (status !== 200 && status !== 204) {
|
|
26181
|
+
return response.text().then((_responseText) => {
|
|
26182
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26183
|
+
});
|
|
26184
|
+
}
|
|
26185
|
+
return Promise.resolve(null);
|
|
26186
|
+
}
|
|
26149
26187
|
getMeasurementFormImportStatus(id) {
|
|
26150
26188
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
26151
26189
|
if (id === undefined || id === null)
|
|
@@ -27882,6 +27920,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27882
27920
|
}
|
|
27883
27921
|
return Promise.resolve(null);
|
|
27884
27922
|
}
|
|
27923
|
+
listMeasurementFormSchemaFiles(id) {
|
|
27924
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
27925
|
+
if (id === undefined || id === null)
|
|
27926
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27927
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27928
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27929
|
+
let options_ = {
|
|
27930
|
+
method: "GET",
|
|
27931
|
+
headers: {
|
|
27932
|
+
"Accept": "application/json"
|
|
27933
|
+
}
|
|
27934
|
+
};
|
|
27935
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27936
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27937
|
+
}).then((_response) => {
|
|
27938
|
+
return this.processListMeasurementFormSchemaFiles(_response);
|
|
27939
|
+
});
|
|
27940
|
+
}
|
|
27941
|
+
processListMeasurementFormSchemaFiles(response) {
|
|
27942
|
+
const status = response.status;
|
|
27943
|
+
let _headers = {};
|
|
27944
|
+
if (response.headers && response.headers.forEach) {
|
|
27945
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27946
|
+
}
|
|
27947
|
+
;
|
|
27948
|
+
if (status === 200) {
|
|
27949
|
+
return response.text().then((_responseText) => {
|
|
27950
|
+
let result200 = null;
|
|
27951
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27952
|
+
return result200;
|
|
27953
|
+
});
|
|
27954
|
+
}
|
|
27955
|
+
else if (status !== 200 && status !== 204) {
|
|
27956
|
+
return response.text().then((_responseText) => {
|
|
27957
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27958
|
+
});
|
|
27959
|
+
}
|
|
27960
|
+
return Promise.resolve(null);
|
|
27961
|
+
}
|
|
27885
27962
|
listMeasurementFormSchemaVersions(id) {
|
|
27886
27963
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
27887
27964
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -27238,6 +27238,8 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
27238
27238
|
|
|
27239
27239
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
27240
27240
|
|
|
27241
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void>;
|
|
27242
|
+
|
|
27241
27243
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
27242
27244
|
|
|
27243
27245
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -27877,6 +27879,44 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27877
27879
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27878
27880
|
}
|
|
27879
27881
|
|
|
27882
|
+
deleteMeasurementFormSchemaFile(id: string, slot: SchemaFileSlot): Promise<void> {
|
|
27883
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files/{slot}";
|
|
27884
|
+
if (id === undefined || id === null)
|
|
27885
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27886
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27887
|
+
if (slot === undefined || slot === null)
|
|
27888
|
+
throw new globalThis.Error("The parameter 'slot' must be defined.");
|
|
27889
|
+
url_ = url_.replace("{slot}", encodeURIComponent("" + slot));
|
|
27890
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27891
|
+
|
|
27892
|
+
let options_: RequestInit = {
|
|
27893
|
+
method: "DELETE",
|
|
27894
|
+
headers: {
|
|
27895
|
+
}
|
|
27896
|
+
};
|
|
27897
|
+
|
|
27898
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27899
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27900
|
+
}).then((_response: Response) => {
|
|
27901
|
+
return this.processDeleteMeasurementFormSchemaFile(_response);
|
|
27902
|
+
});
|
|
27903
|
+
}
|
|
27904
|
+
|
|
27905
|
+
protected processDeleteMeasurementFormSchemaFile(response: Response): Promise<void> {
|
|
27906
|
+
const status = response.status;
|
|
27907
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27908
|
+
if (status === 204) {
|
|
27909
|
+
return response.text().then((_responseText) => {
|
|
27910
|
+
return;
|
|
27911
|
+
});
|
|
27912
|
+
} else if (status !== 200 && status !== 204) {
|
|
27913
|
+
return response.text().then((_responseText) => {
|
|
27914
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27915
|
+
});
|
|
27916
|
+
}
|
|
27917
|
+
return Promise.resolve<void>(null as any);
|
|
27918
|
+
}
|
|
27919
|
+
|
|
27880
27920
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
|
|
27881
27921
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
|
|
27882
27922
|
if (id === undefined || id === null)
|
|
@@ -29476,6 +29516,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
29476
29516
|
|
|
29477
29517
|
postCountMeasurementFormSchemas(request: CountMeasurementFormSchemasRequest | undefined): Promise<MeasurementFormSchemaCountsDto>;
|
|
29478
29518
|
|
|
29519
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]>;
|
|
29520
|
+
|
|
29479
29521
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]>;
|
|
29480
29522
|
|
|
29481
29523
|
listMeasurementFormSchemaInstances(id: string): Promise<MeasurementFormSchemaInstanceDto[]>;
|
|
@@ -29626,6 +29668,44 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29626
29668
|
return Promise.resolve<MeasurementFormSchemaCountsDto>(null as any);
|
|
29627
29669
|
}
|
|
29628
29670
|
|
|
29671
|
+
listMeasurementFormSchemaFiles(id: string): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29672
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/files";
|
|
29673
|
+
if (id === undefined || id === null)
|
|
29674
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29675
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29676
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29677
|
+
|
|
29678
|
+
let options_: RequestInit = {
|
|
29679
|
+
method: "GET",
|
|
29680
|
+
headers: {
|
|
29681
|
+
"Accept": "application/json"
|
|
29682
|
+
}
|
|
29683
|
+
};
|
|
29684
|
+
|
|
29685
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29686
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29687
|
+
}).then((_response: Response) => {
|
|
29688
|
+
return this.processListMeasurementFormSchemaFiles(_response);
|
|
29689
|
+
});
|
|
29690
|
+
}
|
|
29691
|
+
|
|
29692
|
+
protected processListMeasurementFormSchemaFiles(response: Response): Promise<MeasurementFormSchemaFileDto[]> {
|
|
29693
|
+
const status = response.status;
|
|
29694
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29695
|
+
if (status === 200) {
|
|
29696
|
+
return response.text().then((_responseText) => {
|
|
29697
|
+
let result200: any = null;
|
|
29698
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaFileDto[];
|
|
29699
|
+
return result200;
|
|
29700
|
+
});
|
|
29701
|
+
} else if (status !== 200 && status !== 204) {
|
|
29702
|
+
return response.text().then((_responseText) => {
|
|
29703
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29704
|
+
});
|
|
29705
|
+
}
|
|
29706
|
+
return Promise.resolve<MeasurementFormSchemaFileDto[]>(null as any);
|
|
29707
|
+
}
|
|
29708
|
+
|
|
29629
29709
|
listMeasurementFormSchemaVersions(id: string): Promise<MeasurementFormSchemaVersionDto[]> {
|
|
29630
29710
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/versions";
|
|
29631
29711
|
if (id === undefined || id === null)
|
|
@@ -40744,6 +40824,8 @@ export interface UploadRequest {
|
|
|
40744
40824
|
isMarkedDrawing?: boolean | null;
|
|
40745
40825
|
}
|
|
40746
40826
|
|
|
40827
|
+
export type SchemaFileSlot = "Drawing" | "ProjectFile" | "MarkedDrawing" | "SourceFile";
|
|
40828
|
+
|
|
40747
40829
|
export interface MeasurementFormImportStatusDto {
|
|
40748
40830
|
progress: number;
|
|
40749
40831
|
totalElements: number;
|
|
@@ -41082,6 +41164,14 @@ export interface CountMeasurementFormSchemasRequest {
|
|
|
41082
41164
|
schemaCreator?: boolean | null;
|
|
41083
41165
|
}
|
|
41084
41166
|
|
|
41167
|
+
export interface MeasurementFormSchemaFileDto {
|
|
41168
|
+
slot: SchemaFileSlot;
|
|
41169
|
+
title: string;
|
|
41170
|
+
url: string;
|
|
41171
|
+
size?: number | null;
|
|
41172
|
+
lastModified?: Date | null;
|
|
41173
|
+
}
|
|
41174
|
+
|
|
41085
41175
|
export interface MeasurementFormSchemaVersionDto {
|
|
41086
41176
|
id: string;
|
|
41087
41177
|
versionId: number;
|