@ignos/api-client 20260908.264.1-alpha → 20260909.266.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 +16 -6
- package/lib/ignosportal-api.js +45 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +58 -7
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3037,7 +3037,11 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
3037
3037
|
deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
|
|
3038
3038
|
uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
|
|
3039
3039
|
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
3040
|
-
uploadSchemaMarkedDrawing(id: string, request:
|
|
3040
|
+
uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
3041
|
+
/**
|
|
3042
|
+
* @deprecated
|
|
3043
|
+
*/
|
|
3044
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
3041
3045
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
3042
3046
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
3043
3047
|
listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
@@ -3120,8 +3124,13 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
|
|
|
3120
3124
|
protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3121
3125
|
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
3122
3126
|
protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest>;
|
|
3123
|
-
uploadSchemaMarkedDrawing(id: string, request:
|
|
3127
|
+
uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
3124
3128
|
protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3129
|
+
/**
|
|
3130
|
+
* @deprecated
|
|
3131
|
+
*/
|
|
3132
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
3133
|
+
protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3125
3134
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
3126
3135
|
protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
3127
3136
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
@@ -9697,9 +9706,14 @@ export interface UpdateSchemaSettingsRequest {
|
|
|
9697
9706
|
dimensionSetting: DimensionSettingDto;
|
|
9698
9707
|
generalTolerance: GeneralToleranceDto;
|
|
9699
9708
|
}
|
|
9709
|
+
export interface UploadDrawingRequest {
|
|
9710
|
+
uploadKey: string;
|
|
9711
|
+
filename: string;
|
|
9712
|
+
}
|
|
9700
9713
|
export interface UploadRequest {
|
|
9701
9714
|
uploadKey: string;
|
|
9702
9715
|
filename: string;
|
|
9716
|
+
isMarkedDrawing?: boolean | null;
|
|
9703
9717
|
}
|
|
9704
9718
|
export interface MeasurementFormImportStatusDto {
|
|
9705
9719
|
progress: number;
|
|
@@ -9879,10 +9893,6 @@ export interface MeasurementFormSchemaNotNeededDto {
|
|
|
9879
9893
|
export interface SetMeasurementFormNeedAsNotNeededRequest {
|
|
9880
9894
|
comment?: string | null;
|
|
9881
9895
|
}
|
|
9882
|
-
export interface UploadDrawingRequest {
|
|
9883
|
-
uploadKey: string;
|
|
9884
|
-
filename: string;
|
|
9885
|
-
}
|
|
9886
9896
|
export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
|
|
9887
9897
|
results: MeasurementFormSchemaNotNeededDto[];
|
|
9888
9898
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -25305,6 +25305,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25305
25305
|
}
|
|
25306
25306
|
return Promise.resolve(null);
|
|
25307
25307
|
}
|
|
25308
|
+
/**
|
|
25309
|
+
* @deprecated
|
|
25310
|
+
*/
|
|
25311
|
+
uploadSchemaDrawing(id, request) {
|
|
25312
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
25313
|
+
if (id === undefined || id === null)
|
|
25314
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25315
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25316
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25317
|
+
const content_ = JSON.stringify(request);
|
|
25318
|
+
let options_ = {
|
|
25319
|
+
body: content_,
|
|
25320
|
+
method: "POST",
|
|
25321
|
+
headers: {
|
|
25322
|
+
"Content-Type": "application/json",
|
|
25323
|
+
"Accept": "application/json"
|
|
25324
|
+
}
|
|
25325
|
+
};
|
|
25326
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25327
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25328
|
+
}).then((_response) => {
|
|
25329
|
+
return this.processUploadSchemaDrawing(_response);
|
|
25330
|
+
});
|
|
25331
|
+
}
|
|
25332
|
+
processUploadSchemaDrawing(response) {
|
|
25333
|
+
const status = response.status;
|
|
25334
|
+
let _headers = {};
|
|
25335
|
+
if (response.headers && response.headers.forEach) {
|
|
25336
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25337
|
+
}
|
|
25338
|
+
;
|
|
25339
|
+
if (status === 200) {
|
|
25340
|
+
return response.text().then((_responseText) => {
|
|
25341
|
+
let result200 = null;
|
|
25342
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25343
|
+
return result200;
|
|
25344
|
+
});
|
|
25345
|
+
}
|
|
25346
|
+
else if (status !== 200 && status !== 204) {
|
|
25347
|
+
return response.text().then((_responseText) => {
|
|
25348
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25349
|
+
});
|
|
25350
|
+
}
|
|
25351
|
+
return Promise.resolve(null);
|
|
25352
|
+
}
|
|
25308
25353
|
uploadSchemaAttachment(id, request) {
|
|
25309
25354
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
|
|
25310
25355
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -26611,7 +26611,12 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
26611
26611
|
|
|
26612
26612
|
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
26613
26613
|
|
|
26614
|
-
uploadSchemaMarkedDrawing(id: string, request:
|
|
26614
|
+
uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
26615
|
+
|
|
26616
|
+
/**
|
|
26617
|
+
* @deprecated
|
|
26618
|
+
*/
|
|
26619
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
26615
26620
|
|
|
26616
26621
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
26617
26622
|
|
|
@@ -27125,7 +27130,7 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27125
27130
|
return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
|
|
27126
27131
|
}
|
|
27127
27132
|
|
|
27128
|
-
uploadSchemaMarkedDrawing(id: string, request:
|
|
27133
|
+
uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
|
|
27129
27134
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
27130
27135
|
if (id === undefined || id === null)
|
|
27131
27136
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -27167,6 +27172,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27167
27172
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27168
27173
|
}
|
|
27169
27174
|
|
|
27175
|
+
/**
|
|
27176
|
+
* @deprecated
|
|
27177
|
+
*/
|
|
27178
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
|
|
27179
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
27180
|
+
if (id === undefined || id === null)
|
|
27181
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27182
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27183
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27184
|
+
|
|
27185
|
+
const content_ = JSON.stringify(request);
|
|
27186
|
+
|
|
27187
|
+
let options_: RequestInit = {
|
|
27188
|
+
body: content_,
|
|
27189
|
+
method: "POST",
|
|
27190
|
+
headers: {
|
|
27191
|
+
"Content-Type": "application/json",
|
|
27192
|
+
"Accept": "application/json"
|
|
27193
|
+
}
|
|
27194
|
+
};
|
|
27195
|
+
|
|
27196
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27197
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27198
|
+
}).then((_response: Response) => {
|
|
27199
|
+
return this.processUploadSchemaDrawing(_response);
|
|
27200
|
+
});
|
|
27201
|
+
}
|
|
27202
|
+
|
|
27203
|
+
protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
27204
|
+
const status = response.status;
|
|
27205
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27206
|
+
if (status === 200) {
|
|
27207
|
+
return response.text().then((_responseText) => {
|
|
27208
|
+
let result200: any = null;
|
|
27209
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaDto;
|
|
27210
|
+
return result200;
|
|
27211
|
+
});
|
|
27212
|
+
} else if (status !== 200 && status !== 204) {
|
|
27213
|
+
return response.text().then((_responseText) => {
|
|
27214
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27215
|
+
});
|
|
27216
|
+
}
|
|
27217
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
27218
|
+
}
|
|
27219
|
+
|
|
27170
27220
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto> {
|
|
27171
27221
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadattachment";
|
|
27172
27222
|
if (id === undefined || id === null)
|
|
@@ -39398,9 +39448,15 @@ export interface UpdateSchemaSettingsRequest {
|
|
|
39398
39448
|
generalTolerance: GeneralToleranceDto;
|
|
39399
39449
|
}
|
|
39400
39450
|
|
|
39451
|
+
export interface UploadDrawingRequest {
|
|
39452
|
+
uploadKey: string;
|
|
39453
|
+
filename: string;
|
|
39454
|
+
}
|
|
39455
|
+
|
|
39401
39456
|
export interface UploadRequest {
|
|
39402
39457
|
uploadKey: string;
|
|
39403
39458
|
filename: string;
|
|
39459
|
+
isMarkedDrawing?: boolean | null;
|
|
39404
39460
|
}
|
|
39405
39461
|
|
|
39406
39462
|
export interface MeasurementFormImportStatusDto {
|
|
@@ -39602,11 +39658,6 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
|
|
|
39602
39658
|
comment?: string | null;
|
|
39603
39659
|
}
|
|
39604
39660
|
|
|
39605
|
-
export interface UploadDrawingRequest {
|
|
39606
|
-
uploadKey: string;
|
|
39607
|
-
filename: string;
|
|
39608
|
-
}
|
|
39609
|
-
|
|
39610
39661
|
export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
|
|
39611
39662
|
results: MeasurementFormSchemaNotNeededDto[];
|
|
39612
39663
|
continuationToken?: string | null;
|