@ignos/api-client 20260827.249.1-alpha → 20260831.251.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.
@@ -2904,6 +2904,13 @@ export interface IInspectSchemaCreatorClient {
2904
2904
  * @param image (optional)
2905
2905
  */
2906
2906
  requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
2907
+ /**
2908
+ * Renders the legacy-format image for one element's current snip.
2909
+ Fire-and-forget from the client on every snip commit - the resulting
2910
+ image isn't returned here, it's only ever read back once the schema
2911
+ is released (SchemaCreatorLegacyMapper).
2912
+ */
2913
+ renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
2907
2914
  }
2908
2915
  export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
2909
2916
  private http;
@@ -2941,6 +2948,14 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
2941
2948
  */
2942
2949
  requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
2943
2950
  protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
2951
+ /**
2952
+ * Renders the legacy-format image for one element's current snip.
2953
+ Fire-and-forget from the client on every snip commit - the resulting
2954
+ image isn't returned here, it's only ever read back once the schema
2955
+ is released (SchemaCreatorLegacyMapper).
2956
+ */
2957
+ renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
2958
+ protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void>;
2944
2959
  }
2945
2960
  export interface IMeasurementFormSchemasAdminClient {
2946
2961
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
@@ -2953,7 +2968,7 @@ export interface IMeasurementFormSchemasAdminClient {
2953
2968
  deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
2954
2969
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
2955
2970
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
2956
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
2971
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2957
2972
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2958
2973
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2959
2974
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
@@ -3036,8 +3051,8 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
3036
3051
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
3037
3052
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
3038
3053
  protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest>;
3039
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
3040
- protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
3054
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3055
+ protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
3041
3056
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3042
3057
  protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
3043
3058
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
@@ -9309,6 +9324,10 @@ export interface SchemaCreatorDocumentParseStatusDto {
9309
9324
  inProgress: boolean;
9310
9325
  attempt?: SchemaCreatorParseAttemptDto | null;
9311
9326
  }
9327
+ export interface RenderSchemaCreatorElementSnipImageRequest {
9328
+ pageIndex: number;
9329
+ snip: SchemaCreatorSnipDto;
9330
+ }
9312
9331
  export interface MeasurementFormSchemaDto {
9313
9332
  id: string;
9314
9333
  versionId: number;
@@ -9494,10 +9513,6 @@ export interface UpdateSchemaSettingsRequest {
9494
9513
  dimensionSetting: DimensionSettingDto;
9495
9514
  generalTolerance: GeneralToleranceDto;
9496
9515
  }
9497
- export interface UploadDrawingRequest {
9498
- uploadKey: string;
9499
- filename: string;
9500
- }
9501
9516
  export interface UploadRequest {
9502
9517
  uploadKey: string;
9503
9518
  filename: string;
@@ -9676,6 +9691,10 @@ export interface MeasurementFormSchemaNotNeededDto {
9676
9691
  export interface SetMeasurementFormNeedAsNotNeededRequest {
9677
9692
  comment?: string | null;
9678
9693
  }
9694
+ export interface UploadDrawingRequest {
9695
+ uploadKey: string;
9696
+ filename: string;
9697
+ }
9679
9698
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
9680
9699
  results: MeasurementFormSchemaNotNeededDto[];
9681
9700
  continuationToken?: string | null;
@@ -24089,6 +24089,54 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
24089
24089
  }
24090
24090
  return Promise.resolve(null);
24091
24091
  }
24092
+ /**
24093
+ * Renders the legacy-format image for one element's current snip.
24094
+ Fire-and-forget from the client on every snip commit - the resulting
24095
+ image isn't returned here, it's only ever read back once the schema
24096
+ is released (SchemaCreatorLegacyMapper).
24097
+ */
24098
+ renderSchemaCreatorElementSnipImage(id, elementId, request) {
24099
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
24100
+ if (id === undefined || id === null)
24101
+ throw new globalThis.Error("The parameter 'id' must be defined.");
24102
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24103
+ if (elementId === undefined || elementId === null)
24104
+ throw new globalThis.Error("The parameter 'elementId' must be defined.");
24105
+ url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
24106
+ url_ = url_.replace(/[?&]$/, "");
24107
+ const content_ = JSON.stringify(request);
24108
+ let options_ = {
24109
+ body: content_,
24110
+ method: "POST",
24111
+ headers: {
24112
+ "Content-Type": "application/json",
24113
+ }
24114
+ };
24115
+ return this.transformOptions(options_).then(transformedOptions_ => {
24116
+ return this.http.fetch(url_, transformedOptions_);
24117
+ }).then((_response) => {
24118
+ return this.processRenderSchemaCreatorElementSnipImage(_response);
24119
+ });
24120
+ }
24121
+ processRenderSchemaCreatorElementSnipImage(response) {
24122
+ const status = response.status;
24123
+ let _headers = {};
24124
+ if (response.headers && response.headers.forEach) {
24125
+ response.headers.forEach((v, k) => _headers[k] = v);
24126
+ }
24127
+ ;
24128
+ if (status === 200) {
24129
+ return response.text().then((_responseText) => {
24130
+ return;
24131
+ });
24132
+ }
24133
+ else if (status !== 200 && status !== 204) {
24134
+ return response.text().then((_responseText) => {
24135
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24136
+ });
24137
+ }
24138
+ return Promise.resolve(null);
24139
+ }
24092
24140
  }
24093
24141
  export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24094
24142
  constructor(configuration, baseUrl, http) {
@@ -24503,8 +24551,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24503
24551
  }
24504
24552
  return Promise.resolve(null);
24505
24553
  }
24506
- uploadSchemaDrawing(id, request) {
24507
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
24554
+ uploadSchemaMarkedDrawing(id, request) {
24555
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
24508
24556
  if (id === undefined || id === null)
24509
24557
  throw new globalThis.Error("The parameter 'id' must be defined.");
24510
24558
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -24521,10 +24569,10 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24521
24569
  return this.transformOptions(options_).then(transformedOptions_ => {
24522
24570
  return this.http.fetch(url_, transformedOptions_);
24523
24571
  }).then((_response) => {
24524
- return this.processUploadSchemaDrawing(_response);
24572
+ return this.processUploadSchemaMarkedDrawing(_response);
24525
24573
  });
24526
24574
  }
24527
- processUploadSchemaDrawing(response) {
24575
+ processUploadSchemaMarkedDrawing(response) {
24528
24576
  const status = response.status;
24529
24577
  let _headers = {};
24530
24578
  if (response.headers && response.headers.forEach) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260827.249.1-alpha",
3
+ "version": "20260831.251.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -25505,6 +25505,14 @@ export interface IInspectSchemaCreatorClient {
25505
25505
  * @param image (optional)
25506
25506
  */
25507
25507
  requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
25508
+
25509
+ /**
25510
+ * Renders the legacy-format image for one element's current snip.
25511
+ Fire-and-forget from the client on every snip commit - the resulting
25512
+ image isn't returned here, it's only ever read back once the schema
25513
+ is released (SchemaCreatorLegacyMapper).
25514
+ */
25515
+ renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
25508
25516
  }
25509
25517
 
25510
25518
  export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
@@ -25781,6 +25789,54 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
25781
25789
  }
25782
25790
  return Promise.resolve<void>(null as any);
25783
25791
  }
25792
+
25793
+ /**
25794
+ * Renders the legacy-format image for one element's current snip.
25795
+ Fire-and-forget from the client on every snip commit - the resulting
25796
+ image isn't returned here, it's only ever read back once the schema
25797
+ is released (SchemaCreatorLegacyMapper).
25798
+ */
25799
+ renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void> {
25800
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
25801
+ if (id === undefined || id === null)
25802
+ throw new globalThis.Error("The parameter 'id' must be defined.");
25803
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
25804
+ if (elementId === undefined || elementId === null)
25805
+ throw new globalThis.Error("The parameter 'elementId' must be defined.");
25806
+ url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
25807
+ url_ = url_.replace(/[?&]$/, "");
25808
+
25809
+ const content_ = JSON.stringify(request);
25810
+
25811
+ let options_: RequestInit = {
25812
+ body: content_,
25813
+ method: "POST",
25814
+ headers: {
25815
+ "Content-Type": "application/json",
25816
+ }
25817
+ };
25818
+
25819
+ return this.transformOptions(options_).then(transformedOptions_ => {
25820
+ return this.http.fetch(url_, transformedOptions_);
25821
+ }).then((_response: Response) => {
25822
+ return this.processRenderSchemaCreatorElementSnipImage(_response);
25823
+ });
25824
+ }
25825
+
25826
+ protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void> {
25827
+ const status = response.status;
25828
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25829
+ if (status === 200) {
25830
+ return response.text().then((_responseText) => {
25831
+ return;
25832
+ });
25833
+ } else if (status !== 200 && status !== 204) {
25834
+ return response.text().then((_responseText) => {
25835
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25836
+ });
25837
+ }
25838
+ return Promise.resolve<void>(null as any);
25839
+ }
25784
25840
  }
25785
25841
 
25786
25842
  export interface IMeasurementFormSchemasAdminClient {
@@ -25805,7 +25861,7 @@ export interface IMeasurementFormSchemasAdminClient {
25805
25861
 
25806
25862
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
25807
25863
 
25808
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
25864
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
25809
25865
 
25810
25866
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
25811
25867
 
@@ -26319,8 +26375,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26319
26375
  return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
26320
26376
  }
26321
26377
 
26322
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
26323
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
26378
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto> {
26379
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
26324
26380
  if (id === undefined || id === null)
26325
26381
  throw new globalThis.Error("The parameter 'id' must be defined.");
26326
26382
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -26340,11 +26396,11 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26340
26396
  return this.transformOptions(options_).then(transformedOptions_ => {
26341
26397
  return this.http.fetch(url_, transformedOptions_);
26342
26398
  }).then((_response: Response) => {
26343
- return this.processUploadSchemaDrawing(_response);
26399
+ return this.processUploadSchemaMarkedDrawing(_response);
26344
26400
  });
26345
26401
  }
26346
26402
 
26347
- protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
26403
+ protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
26348
26404
  const status = response.status;
26349
26405
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26350
26406
  if (status === 200) {
@@ -38205,6 +38261,11 @@ export interface SchemaCreatorDocumentParseStatusDto {
38205
38261
  attempt?: SchemaCreatorParseAttemptDto | null;
38206
38262
  }
38207
38263
 
38264
+ export interface RenderSchemaCreatorElementSnipImageRequest {
38265
+ pageIndex: number;
38266
+ snip: SchemaCreatorSnipDto;
38267
+ }
38268
+
38208
38269
  export interface MeasurementFormSchemaDto {
38209
38270
  id: string;
38210
38271
  versionId: number;
@@ -38409,11 +38470,6 @@ export interface UpdateSchemaSettingsRequest {
38409
38470
  generalTolerance: GeneralToleranceDto;
38410
38471
  }
38411
38472
 
38412
- export interface UploadDrawingRequest {
38413
- uploadKey: string;
38414
- filename: string;
38415
- }
38416
-
38417
38473
  export interface UploadRequest {
38418
38474
  uploadKey: string;
38419
38475
  filename: string;
@@ -38614,6 +38670,11 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
38614
38670
  comment?: string | null;
38615
38671
  }
38616
38672
 
38673
+ export interface UploadDrawingRequest {
38674
+ uploadKey: string;
38675
+ filename: string;
38676
+ }
38677
+
38617
38678
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
38618
38679
  results: MeasurementFormSchemaNotNeededDto[];
38619
38680
  continuationToken?: string | null;