@ignos/api-client 20261020.315.1 → 20261022.317.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.
@@ -2989,6 +2989,10 @@ export interface IInspectSchemaCreatorClient {
2989
2989
  */
2990
2990
  createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2991
2991
  updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2992
+ /**
2993
+ * Saves only what changed; the response is the whole state with server-derived values.
2994
+ */
2995
+ applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
2992
2996
  /**
2993
2997
  * Geometry only (no values), derived from the schema's retained
2994
2998
  InspectionXpert XML - used to seed a not-yet-created state with real
@@ -3000,8 +3004,9 @@ export interface IInspectSchemaCreatorClient {
3000
3004
  * Starts a full drawing AI parse: clears every element and locks the
3001
3005
  schema for every viewer until it completes. If one is already in
3002
3006
  progress, returns that instead of starting a second one.
3007
+ * @param applyInPortal (optional) The client relies on Portal applying the result and enforcing its deadline.
3003
3008
  */
3004
- requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
3009
+ requestSchemaCreatorDocumentParse(schemaVersionId: string, applyInPortal: boolean | undefined): Promise<SchemaCreatorStateDto>;
3005
3010
  /**
3006
3011
  * Stamps the creator state's balloons onto the schema's drawing PDF and
3007
3012
  returns a temporary download link.
@@ -3009,10 +3014,12 @@ export interface IInspectSchemaCreatorClient {
3009
3014
  exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
3010
3015
  /**
3011
3016
  * Starts an async snip resolve; the result is delivered through the
3012
- SchemaCreatorSnipResolved SignalR notification.
3017
+ SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
3018
+ held several elements.
3019
+ * @param applyInPortal (optional) The client relies on Portal applying the result, its deadline and region parse.
3013
3020
  * @param image (optional)
3014
3021
  */
3015
- requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
3022
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, applyInPortal: boolean | undefined, image: FileParameter | null | undefined): Promise<void>;
3016
3023
  }
3017
3024
  export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
3018
3025
  private http;
@@ -3030,6 +3037,11 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
3030
3037
  protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
3031
3038
  updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
3032
3039
  protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
3040
+ /**
3041
+ * Saves only what changed; the response is the whole state with server-derived values.
3042
+ */
3043
+ applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
3044
+ protected processApplySchemaCreatorChanges(response: Response): Promise<SchemaCreatorStateDto>;
3033
3045
  /**
3034
3046
  * Geometry only (no values), derived from the schema's retained
3035
3047
  InspectionXpert XML - used to seed a not-yet-created state with real
@@ -3042,8 +3054,9 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
3042
3054
  * Starts a full drawing AI parse: clears every element and locks the
3043
3055
  schema for every viewer until it completes. If one is already in
3044
3056
  progress, returns that instead of starting a second one.
3057
+ * @param applyInPortal (optional) The client relies on Portal applying the result and enforcing its deadline.
3045
3058
  */
3046
- requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
3059
+ requestSchemaCreatorDocumentParse(schemaVersionId: string, applyInPortal: boolean | undefined): Promise<SchemaCreatorStateDto>;
3047
3060
  protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
3048
3061
  /**
3049
3062
  * Stamps the creator state's balloons onto the schema's drawing PDF and
@@ -3053,10 +3066,12 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
3053
3066
  protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
3054
3067
  /**
3055
3068
  * Starts an async snip resolve; the result is delivered through the
3056
- SchemaCreatorSnipResolved SignalR notification.
3069
+ SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
3070
+ held several elements.
3071
+ * @param applyInPortal (optional) The client relies on Portal applying the result, its deadline and region parse.
3057
3072
  * @param image (optional)
3058
3073
  */
3059
- requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
3074
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, applyInPortal: boolean | undefined, image: FileParameter | null | undefined): Promise<void>;
3060
3075
  protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
3061
3076
  }
3062
3077
  export interface IMeasurementFormSchemasAdminClient {
@@ -9641,6 +9656,7 @@ export interface SchemaCreatorElementValuesDto {
9641
9656
  canCopy: boolean;
9642
9657
  visibleToCustomer: boolean;
9643
9658
  isDocumentedExternally: boolean;
9659
+ hiddenOnDrawing?: boolean;
9644
9660
  }
9645
9661
  export type UnitOfMeasureDto = "Millimeter" | "Inch";
9646
9662
  export type ToleranceSourceDto = "FitDesignation" | "GeneralTolerance";
@@ -9676,6 +9692,13 @@ export interface SchemaCreatorXmlGeometryDto {
9676
9692
  balloon: SchemaCreatorPointDto;
9677
9693
  pageIndex: number;
9678
9694
  }
9695
+ export interface SchemaCreatorChangesDto {
9696
+ upserts?: SchemaCreatorElementDto[];
9697
+ deletes?: string[];
9698
+ order?: string[] | null;
9699
+ settings?: SchemaCreatorSettingsDto | null;
9700
+ recalculateGeneralTolerances?: boolean;
9701
+ }
9679
9702
  export interface MeasurementFormSchemaDto {
9680
9703
  id: string;
9681
9704
  versionId: number;
@@ -25248,6 +25248,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
25248
25248
  }
25249
25249
  return Promise.resolve(null);
25250
25250
  }
25251
+ /**
25252
+ * Saves only what changed; the response is the whole state with server-derived values.
25253
+ */
25254
+ applySchemaCreatorChanges(schemaVersionId, changes) {
25255
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
25256
+ if (schemaVersionId === undefined || schemaVersionId === null)
25257
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
25258
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
25259
+ url_ = url_.replace(/[?&]$/, "");
25260
+ const content_ = JSON.stringify(changes);
25261
+ let options_ = {
25262
+ body: content_,
25263
+ method: "PATCH",
25264
+ headers: {
25265
+ "Content-Type": "application/json",
25266
+ "Accept": "application/json"
25267
+ }
25268
+ };
25269
+ return this.transformOptions(options_).then(transformedOptions_ => {
25270
+ return this.http.fetch(url_, transformedOptions_);
25271
+ }).then((_response) => {
25272
+ return this.processApplySchemaCreatorChanges(_response);
25273
+ });
25274
+ }
25275
+ processApplySchemaCreatorChanges(response) {
25276
+ const status = response.status;
25277
+ let _headers = {};
25278
+ if (response.headers && response.headers.forEach) {
25279
+ response.headers.forEach((v, k) => _headers[k] = v);
25280
+ }
25281
+ ;
25282
+ if (status === 200) {
25283
+ return response.text().then((_responseText) => {
25284
+ let result200 = null;
25285
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
25286
+ return result200;
25287
+ });
25288
+ }
25289
+ else if (status !== 200 && status !== 204) {
25290
+ return response.text().then((_responseText) => {
25291
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25292
+ });
25293
+ }
25294
+ return Promise.resolve(null);
25295
+ }
25251
25296
  /**
25252
25297
  * Geometry only (no values), derived from the schema's retained
25253
25298
  InspectionXpert XML - used to seed a not-yet-created state with real
@@ -25297,12 +25342,17 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
25297
25342
  * Starts a full drawing AI parse: clears every element and locks the
25298
25343
  schema for every viewer until it completes. If one is already in
25299
25344
  progress, returns that instead of starting a second one.
25345
+ * @param applyInPortal (optional) The client relies on Portal applying the result and enforcing its deadline.
25300
25346
  */
25301
- requestSchemaCreatorDocumentParse(schemaVersionId) {
25302
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
25347
+ requestSchemaCreatorDocumentParse(schemaVersionId, applyInPortal) {
25348
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document?";
25303
25349
  if (schemaVersionId === undefined || schemaVersionId === null)
25304
25350
  throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
25305
25351
  url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
25352
+ if (applyInPortal === null)
25353
+ throw new globalThis.Error("The parameter 'applyInPortal' cannot be null.");
25354
+ else if (applyInPortal !== undefined)
25355
+ url_ += "applyInPortal=" + encodeURIComponent("" + applyInPortal) + "&";
25306
25356
  url_ = url_.replace(/[?&]$/, "");
25307
25357
  let options_ = {
25308
25358
  method: "POST",
@@ -25382,17 +25432,23 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
25382
25432
  }
25383
25433
  /**
25384
25434
  * Starts an async snip resolve; the result is delivered through the
25385
- SchemaCreatorSnipResolved SignalR notification.
25435
+ SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
25436
+ held several elements.
25437
+ * @param applyInPortal (optional) The client relies on Portal applying the result, its deadline and region parse.
25386
25438
  * @param image (optional)
25387
25439
  */
25388
- requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
25389
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
25440
+ requestSchemaCreatorSnipParse(schemaVersionId, elementId, applyInPortal, image) {
25441
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip?";
25390
25442
  if (schemaVersionId === undefined || schemaVersionId === null)
25391
25443
  throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
25392
25444
  url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
25393
25445
  if (elementId === undefined || elementId === null)
25394
25446
  throw new globalThis.Error("The parameter 'elementId' must be defined.");
25395
25447
  url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
25448
+ if (applyInPortal === null)
25449
+ throw new globalThis.Error("The parameter 'applyInPortal' cannot be null.");
25450
+ else if (applyInPortal !== undefined)
25451
+ url_ += "applyInPortal=" + encodeURIComponent("" + applyInPortal) + "&";
25396
25452
  url_ = url_.replace(/[?&]$/, "");
25397
25453
  const content_ = new FormData();
25398
25454
  if (image !== null && image !== undefined)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261020.315.1",
3
+ "version": "20261022.317.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -26665,6 +26665,11 @@ export interface IInspectSchemaCreatorClient {
26665
26665
 
26666
26666
  updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
26667
26667
 
26668
+ /**
26669
+ * Saves only what changed; the response is the whole state with server-derived values.
26670
+ */
26671
+ applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto>;
26672
+
26668
26673
  /**
26669
26674
  * Geometry only (no values), derived from the schema's retained
26670
26675
  InspectionXpert XML - used to seed a not-yet-created state with real
@@ -26677,8 +26682,9 @@ export interface IInspectSchemaCreatorClient {
26677
26682
  * Starts a full drawing AI parse: clears every element and locks the
26678
26683
  schema for every viewer until it completes. If one is already in
26679
26684
  progress, returns that instead of starting a second one.
26685
+ * @param applyInPortal (optional) The client relies on Portal applying the result and enforcing its deadline.
26680
26686
  */
26681
- requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
26687
+ requestSchemaCreatorDocumentParse(schemaVersionId: string, applyInPortal: boolean | undefined): Promise<SchemaCreatorStateDto>;
26682
26688
 
26683
26689
  /**
26684
26690
  * Stamps the creator state's balloons onto the schema's drawing PDF and
@@ -26688,10 +26694,12 @@ export interface IInspectSchemaCreatorClient {
26688
26694
 
26689
26695
  /**
26690
26696
  * Starts an async snip resolve; the result is delivered through the
26691
- SchemaCreatorSnipResolved SignalR notification.
26697
+ SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
26698
+ held several elements.
26699
+ * @param applyInPortal (optional) The client relies on Portal applying the result, its deadline and region parse.
26692
26700
  * @param image (optional)
26693
26701
  */
26694
- requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
26702
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, applyInPortal: boolean | undefined, image: FileParameter | null | undefined): Promise<void>;
26695
26703
  }
26696
26704
 
26697
26705
  export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
@@ -26836,6 +26844,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
26836
26844
  return Promise.resolve<SchemaCreatorStateDto>(null as any);
26837
26845
  }
26838
26846
 
26847
+ /**
26848
+ * Saves only what changed; the response is the whole state with server-derived values.
26849
+ */
26850
+ applySchemaCreatorChanges(schemaVersionId: string, changes: SchemaCreatorChangesDto): Promise<SchemaCreatorStateDto> {
26851
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
26852
+ if (schemaVersionId === undefined || schemaVersionId === null)
26853
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26854
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26855
+ url_ = url_.replace(/[?&]$/, "");
26856
+
26857
+ const content_ = JSON.stringify(changes);
26858
+
26859
+ let options_: RequestInit = {
26860
+ body: content_,
26861
+ method: "PATCH",
26862
+ headers: {
26863
+ "Content-Type": "application/json",
26864
+ "Accept": "application/json"
26865
+ }
26866
+ };
26867
+
26868
+ return this.transformOptions(options_).then(transformedOptions_ => {
26869
+ return this.http.fetch(url_, transformedOptions_);
26870
+ }).then((_response: Response) => {
26871
+ return this.processApplySchemaCreatorChanges(_response);
26872
+ });
26873
+ }
26874
+
26875
+ protected processApplySchemaCreatorChanges(response: Response): Promise<SchemaCreatorStateDto> {
26876
+ const status = response.status;
26877
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26878
+ if (status === 200) {
26879
+ return response.text().then((_responseText) => {
26880
+ let result200: any = null;
26881
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
26882
+ return result200;
26883
+ });
26884
+ } else if (status !== 200 && status !== 204) {
26885
+ return response.text().then((_responseText) => {
26886
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26887
+ });
26888
+ }
26889
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
26890
+ }
26891
+
26839
26892
  /**
26840
26893
  * Geometry only (no values), derived from the schema's retained
26841
26894
  InspectionXpert XML - used to seed a not-yet-created state with real
@@ -26884,12 +26937,17 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
26884
26937
  * Starts a full drawing AI parse: clears every element and locks the
26885
26938
  schema for every viewer until it completes. If one is already in
26886
26939
  progress, returns that instead of starting a second one.
26940
+ * @param applyInPortal (optional) The client relies on Portal applying the result and enforcing its deadline.
26887
26941
  */
26888
- requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto> {
26889
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
26942
+ requestSchemaCreatorDocumentParse(schemaVersionId: string, applyInPortal: boolean | undefined): Promise<SchemaCreatorStateDto> {
26943
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document?";
26890
26944
  if (schemaVersionId === undefined || schemaVersionId === null)
26891
26945
  throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26892
26946
  url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26947
+ if (applyInPortal === null)
26948
+ throw new globalThis.Error("The parameter 'applyInPortal' cannot be null.");
26949
+ else if (applyInPortal !== undefined)
26950
+ url_ += "applyInPortal=" + encodeURIComponent("" + applyInPortal) + "&";
26893
26951
  url_ = url_.replace(/[?&]$/, "");
26894
26952
 
26895
26953
  let options_: RequestInit = {
@@ -26967,17 +27025,23 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
26967
27025
 
26968
27026
  /**
26969
27027
  * Starts an async snip resolve; the result is delivered through the
26970
- SchemaCreatorSnipResolved SignalR notification.
27028
+ SchemaCreatorSnipResolved SignalR notification, or SchemaCreatorRegionResolved when the snip
27029
+ held several elements.
27030
+ * @param applyInPortal (optional) The client relies on Portal applying the result, its deadline and region parse.
26971
27031
  * @param image (optional)
26972
27032
  */
26973
- requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
26974
- let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
27033
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, applyInPortal: boolean | undefined, image: FileParameter | null | undefined): Promise<void> {
27034
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip?";
26975
27035
  if (schemaVersionId === undefined || schemaVersionId === null)
26976
27036
  throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26977
27037
  url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26978
27038
  if (elementId === undefined || elementId === null)
26979
27039
  throw new globalThis.Error("The parameter 'elementId' must be defined.");
26980
27040
  url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
27041
+ if (applyInPortal === null)
27042
+ throw new globalThis.Error("The parameter 'applyInPortal' cannot be null.");
27043
+ else if (applyInPortal !== undefined)
27044
+ url_ += "applyInPortal=" + encodeURIComponent("" + applyInPortal) + "&";
26981
27045
  url_ = url_.replace(/[?&]$/, "");
26982
27046
 
26983
27047
  const content_ = new FormData();
@@ -39873,6 +39937,7 @@ export interface SchemaCreatorElementValuesDto {
39873
39937
  canCopy: boolean;
39874
39938
  visibleToCustomer: boolean;
39875
39939
  isDocumentedExternally: boolean;
39940
+ hiddenOnDrawing?: boolean;
39876
39941
  }
39877
39942
 
39878
39943
  export type UnitOfMeasureDto = "Millimeter" | "Inch";
@@ -39918,6 +39983,14 @@ export interface SchemaCreatorXmlGeometryDto {
39918
39983
  pageIndex: number;
39919
39984
  }
39920
39985
 
39986
+ export interface SchemaCreatorChangesDto {
39987
+ upserts?: SchemaCreatorElementDto[];
39988
+ deletes?: string[];
39989
+ order?: string[] | null;
39990
+ settings?: SchemaCreatorSettingsDto | null;
39991
+ recalculateGeneralTolerances?: boolean;
39992
+ }
39993
+
39921
39994
  export interface MeasurementFormSchemaDto {
39922
39995
  id: string;
39923
39996
  versionId: number;