@ignos/api-client 20260706.175.1 → 20260706.176.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.
@@ -2819,6 +2819,21 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
2819
2819
  listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
2820
2820
  protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]>;
2821
2821
  }
2822
+ export interface IInspectSchemaCreatorClient {
2823
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
2824
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2825
+ }
2826
+ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
2827
+ private http;
2828
+ private baseUrl;
2829
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
2830
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2831
+ });
2832
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
2833
+ protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2834
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2835
+ protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2836
+ }
2822
2837
  export interface IMeasurementFormSchemasAdminClient {
2823
2838
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
2824
2839
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
@@ -8713,6 +8728,64 @@ export interface ImaSpecificationLiteDto {
8713
8728
  updated: Date;
8714
8729
  isDeleted: boolean;
8715
8730
  }
8731
+ export interface SchemaCreatorStateDto {
8732
+ settings: SchemaCreatorSettingsDto;
8733
+ elements: SchemaCreatorElementDto[];
8734
+ }
8735
+ export interface SchemaCreatorSettingsDto {
8736
+ unit?: UnitOfMeasureDto;
8737
+ tolerance?: GeneralToleranceDto;
8738
+ balloonSize?: number;
8739
+ }
8740
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
8741
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
8742
+ export interface SchemaCreatorElementDto {
8743
+ id: string;
8744
+ kind: SchemaCreatorElementKindDto;
8745
+ drawings: SchemaCreatorElementDrawingsDto;
8746
+ isDirty?: boolean | null;
8747
+ values?: SchemaCreatorElementValuesDto | null;
8748
+ }
8749
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
8750
+ export interface SchemaCreatorElementDrawingsDto {
8751
+ square: SchemaCreatorDrawingDto;
8752
+ circle: SchemaCreatorDrawingDto;
8753
+ textId: string;
8754
+ }
8755
+ export interface SchemaCreatorDrawingDto {
8756
+ rect: SchemaCreatorRectDto;
8757
+ pageIndex: number;
8758
+ annotationId: string;
8759
+ }
8760
+ export interface SchemaCreatorRectDto {
8761
+ origin: SchemaCreatorPointDto;
8762
+ size: SchemaCreatorSizeDto;
8763
+ }
8764
+ export interface SchemaCreatorPointDto {
8765
+ x: number;
8766
+ y: number;
8767
+ }
8768
+ export interface SchemaCreatorSizeDto {
8769
+ width: number;
8770
+ height: number;
8771
+ }
8772
+ export interface SchemaCreatorElementValuesDto {
8773
+ reference: number;
8774
+ nominal?: number | null;
8775
+ nominalText?: string | null;
8776
+ plusTolerance?: number | null;
8777
+ minusTolerance?: number | null;
8778
+ coatingThickness?: number | null;
8779
+ measurementFrequency: MeasurementFrequency;
8780
+ measurementFrequencyParameter?: number | null;
8781
+ type?: string | null;
8782
+ count?: number | null;
8783
+ comment?: string | null;
8784
+ canCopy: boolean;
8785
+ visibleToCustomer: boolean;
8786
+ isDocumentedExternally: boolean;
8787
+ }
8788
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
8716
8789
  export interface MeasurementFormSchemaDto {
8717
8790
  id: string;
8718
8791
  versionId: number;
@@ -8744,9 +8817,7 @@ export interface MeasurementFormSchemaDto {
8744
8817
  }
8745
8818
  export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
8746
8819
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
8747
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
8748
8820
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
8749
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
8750
8821
  export interface MeasurementFormSchemaAttachmentDto {
8751
8822
  url: string;
8752
8823
  title: string;
@@ -8795,7 +8866,6 @@ export interface MeasurementFormGroupedElementDto {
8795
8866
  isValid: boolean;
8796
8867
  validationErrorMessage?: string | null;
8797
8868
  }
8798
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
8799
8869
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
8800
8870
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
8801
8871
  export interface MeasurementFormLinkedSchemaDto {
@@ -23211,6 +23211,94 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
23211
23211
  return Promise.resolve(null);
23212
23212
  }
23213
23213
  }
23214
+ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
23215
+ constructor(configuration, baseUrl, http) {
23216
+ super(configuration);
23217
+ this.http = http ? http : window;
23218
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
23219
+ }
23220
+ getSchemaCreatorState(id) {
23221
+ let url_ = this.baseUrl + "/measurementforms/schemas/creator/{id}";
23222
+ if (id === undefined || id === null)
23223
+ throw new globalThis.Error("The parameter 'id' must be defined.");
23224
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
23225
+ url_ = url_.replace(/[?&]$/, "");
23226
+ let options_ = {
23227
+ method: "GET",
23228
+ headers: {
23229
+ "Accept": "application/json"
23230
+ }
23231
+ };
23232
+ return this.transformOptions(options_).then(transformedOptions_ => {
23233
+ return this.http.fetch(url_, transformedOptions_);
23234
+ }).then((_response) => {
23235
+ return this.processGetSchemaCreatorState(_response);
23236
+ });
23237
+ }
23238
+ processGetSchemaCreatorState(response) {
23239
+ const status = response.status;
23240
+ let _headers = {};
23241
+ if (response.headers && response.headers.forEach) {
23242
+ response.headers.forEach((v, k) => _headers[k] = v);
23243
+ }
23244
+ ;
23245
+ if (status === 200) {
23246
+ return response.text().then((_responseText) => {
23247
+ let result200 = null;
23248
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23249
+ return result200;
23250
+ });
23251
+ }
23252
+ else if (status !== 200 && status !== 204) {
23253
+ return response.text().then((_responseText) => {
23254
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23255
+ });
23256
+ }
23257
+ return Promise.resolve(null);
23258
+ }
23259
+ updateSchemaCreatorState(id, state) {
23260
+ let url_ = this.baseUrl + "/measurementforms/schemas/creator/{id}";
23261
+ if (id === undefined || id === null)
23262
+ throw new globalThis.Error("The parameter 'id' must be defined.");
23263
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
23264
+ url_ = url_.replace(/[?&]$/, "");
23265
+ const content_ = JSON.stringify(state);
23266
+ let options_ = {
23267
+ body: content_,
23268
+ method: "PUT",
23269
+ headers: {
23270
+ "Content-Type": "application/json",
23271
+ "Accept": "application/json"
23272
+ }
23273
+ };
23274
+ return this.transformOptions(options_).then(transformedOptions_ => {
23275
+ return this.http.fetch(url_, transformedOptions_);
23276
+ }).then((_response) => {
23277
+ return this.processUpdateSchemaCreatorState(_response);
23278
+ });
23279
+ }
23280
+ processUpdateSchemaCreatorState(response) {
23281
+ const status = response.status;
23282
+ let _headers = {};
23283
+ if (response.headers && response.headers.forEach) {
23284
+ response.headers.forEach((v, k) => _headers[k] = v);
23285
+ }
23286
+ ;
23287
+ if (status === 200) {
23288
+ return response.text().then((_responseText) => {
23289
+ let result200 = null;
23290
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23291
+ return result200;
23292
+ });
23293
+ }
23294
+ else if (status !== 200 && status !== 204) {
23295
+ return response.text().then((_responseText) => {
23296
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23297
+ });
23298
+ }
23299
+ return Promise.resolve(null);
23300
+ }
23301
+ }
23214
23302
  export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
23215
23303
  constructor(configuration, baseUrl, http) {
23216
23304
  super(configuration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260706.175.1",
3
+ "version": "20260706.176.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24835,6 +24835,104 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
24835
24835
  }
24836
24836
  }
24837
24837
 
24838
+ export interface IInspectSchemaCreatorClient {
24839
+
24840
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
24841
+
24842
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
24843
+ }
24844
+
24845
+ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
24846
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
24847
+ private baseUrl: string;
24848
+
24849
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
24850
+ super(configuration);
24851
+ this.http = http ? http : window as any;
24852
+ this.baseUrl = baseUrl ?? "";
24853
+ }
24854
+
24855
+ getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
24856
+ let url_ = this.baseUrl + "/measurementforms/schemas/creator/{id}";
24857
+ if (id === undefined || id === null)
24858
+ throw new globalThis.Error("The parameter 'id' must be defined.");
24859
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24860
+ url_ = url_.replace(/[?&]$/, "");
24861
+
24862
+ let options_: RequestInit = {
24863
+ method: "GET",
24864
+ headers: {
24865
+ "Accept": "application/json"
24866
+ }
24867
+ };
24868
+
24869
+ return this.transformOptions(options_).then(transformedOptions_ => {
24870
+ return this.http.fetch(url_, transformedOptions_);
24871
+ }).then((_response: Response) => {
24872
+ return this.processGetSchemaCreatorState(_response);
24873
+ });
24874
+ }
24875
+
24876
+ protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
24877
+ const status = response.status;
24878
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24879
+ if (status === 200) {
24880
+ return response.text().then((_responseText) => {
24881
+ let result200: any = null;
24882
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
24883
+ return result200;
24884
+ });
24885
+ } else if (status !== 200 && status !== 204) {
24886
+ return response.text().then((_responseText) => {
24887
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24888
+ });
24889
+ }
24890
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
24891
+ }
24892
+
24893
+ updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
24894
+ let url_ = this.baseUrl + "/measurementforms/schemas/creator/{id}";
24895
+ if (id === undefined || id === null)
24896
+ throw new globalThis.Error("The parameter 'id' must be defined.");
24897
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24898
+ url_ = url_.replace(/[?&]$/, "");
24899
+
24900
+ const content_ = JSON.stringify(state);
24901
+
24902
+ let options_: RequestInit = {
24903
+ body: content_,
24904
+ method: "PUT",
24905
+ headers: {
24906
+ "Content-Type": "application/json",
24907
+ "Accept": "application/json"
24908
+ }
24909
+ };
24910
+
24911
+ return this.transformOptions(options_).then(transformedOptions_ => {
24912
+ return this.http.fetch(url_, transformedOptions_);
24913
+ }).then((_response: Response) => {
24914
+ return this.processUpdateSchemaCreatorState(_response);
24915
+ });
24916
+ }
24917
+
24918
+ protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
24919
+ const status = response.status;
24920
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24921
+ if (status === 200) {
24922
+ return response.text().then((_responseText) => {
24923
+ let result200: any = null;
24924
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
24925
+ return result200;
24926
+ });
24927
+ } else if (status !== 200 && status !== 204) {
24928
+ return response.text().then((_responseText) => {
24929
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24930
+ });
24931
+ }
24932
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
24933
+ }
24934
+ }
24935
+
24838
24936
  export interface IMeasurementFormSchemasAdminClient {
24839
24937
 
24840
24938
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
@@ -36727,6 +36825,77 @@ export interface ImaSpecificationLiteDto {
36727
36825
  isDeleted: boolean;
36728
36826
  }
36729
36827
 
36828
+ export interface SchemaCreatorStateDto {
36829
+ settings: SchemaCreatorSettingsDto;
36830
+ elements: SchemaCreatorElementDto[];
36831
+ }
36832
+
36833
+ export interface SchemaCreatorSettingsDto {
36834
+ unit?: UnitOfMeasureDto;
36835
+ tolerance?: GeneralToleranceDto;
36836
+ balloonSize?: number;
36837
+ }
36838
+
36839
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
36840
+
36841
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
36842
+
36843
+ export interface SchemaCreatorElementDto {
36844
+ id: string;
36845
+ kind: SchemaCreatorElementKindDto;
36846
+ drawings: SchemaCreatorElementDrawingsDto;
36847
+ isDirty?: boolean | null;
36848
+ values?: SchemaCreatorElementValuesDto | null;
36849
+ }
36850
+
36851
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
36852
+
36853
+ export interface SchemaCreatorElementDrawingsDto {
36854
+ square: SchemaCreatorDrawingDto;
36855
+ circle: SchemaCreatorDrawingDto;
36856
+ textId: string;
36857
+ }
36858
+
36859
+ export interface SchemaCreatorDrawingDto {
36860
+ rect: SchemaCreatorRectDto;
36861
+ pageIndex: number;
36862
+ annotationId: string;
36863
+ }
36864
+
36865
+ export interface SchemaCreatorRectDto {
36866
+ origin: SchemaCreatorPointDto;
36867
+ size: SchemaCreatorSizeDto;
36868
+ }
36869
+
36870
+ export interface SchemaCreatorPointDto {
36871
+ x: number;
36872
+ y: number;
36873
+ }
36874
+
36875
+ export interface SchemaCreatorSizeDto {
36876
+ width: number;
36877
+ height: number;
36878
+ }
36879
+
36880
+ export interface SchemaCreatorElementValuesDto {
36881
+ reference: number;
36882
+ nominal?: number | null;
36883
+ nominalText?: string | null;
36884
+ plusTolerance?: number | null;
36885
+ minusTolerance?: number | null;
36886
+ coatingThickness?: number | null;
36887
+ measurementFrequency: MeasurementFrequency;
36888
+ measurementFrequencyParameter?: number | null;
36889
+ type?: string | null;
36890
+ count?: number | null;
36891
+ comment?: string | null;
36892
+ canCopy: boolean;
36893
+ visibleToCustomer: boolean;
36894
+ isDocumentedExternally: boolean;
36895
+ }
36896
+
36897
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
36898
+
36730
36899
  export interface MeasurementFormSchemaDto {
36731
36900
  id: string;
36732
36901
  versionId: number;
@@ -36761,12 +36930,8 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
36761
36930
 
36762
36931
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
36763
36932
 
36764
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
36765
-
36766
36933
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
36767
36934
 
36768
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
36769
-
36770
36935
  export interface MeasurementFormSchemaAttachmentDto {
36771
36936
  url: string;
36772
36937
  title: string;
@@ -36817,8 +36982,6 @@ export interface MeasurementFormGroupedElementDto {
36817
36982
  validationErrorMessage?: string | null;
36818
36983
  }
36819
36984
 
36820
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
36821
-
36822
36985
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
36823
36986
 
36824
36987
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";