@ignos/api-client 20250325.0.11423 → 20250328.0.11444

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.
@@ -1906,6 +1906,8 @@ export interface IMeasurementFormSchemasClient {
1906
1906
  postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
1907
1907
  getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
1908
1908
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1909
+ deleteMeasurementForm(id: string): Promise<void>;
1910
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
1909
1911
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1910
1912
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1911
1913
  deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
@@ -1976,6 +1978,10 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1976
1978
  protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
1977
1979
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1978
1980
  protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
1981
+ deleteMeasurementForm(id: string): Promise<void>;
1982
+ protected processDeleteMeasurementForm(response: Response): Promise<void>;
1983
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
1984
+ protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto>;
1979
1985
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1980
1986
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1981
1987
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
@@ -11092,6 +11098,34 @@ export interface IUpdateMeasurementFormSchemaRequest {
11092
11098
  excludeFromCustomerDocumentation: boolean;
11093
11099
  specification?: string | null;
11094
11100
  }
11101
+ export declare class CopyMeasurementFormSchema implements ICopyMeasurementFormSchema {
11102
+ customerId?: string | null;
11103
+ customerName?: string | null;
11104
+ partNumber?: string | null;
11105
+ partRevision?: string | null;
11106
+ partName?: string | null;
11107
+ drawing?: string | null;
11108
+ drawingRevision?: string | null;
11109
+ includeFiles: boolean;
11110
+ includeLinkedSchemas: boolean;
11111
+ includeMeasurementForm: boolean;
11112
+ constructor(data?: ICopyMeasurementFormSchema);
11113
+ init(_data?: any): void;
11114
+ static fromJS(data: any): CopyMeasurementFormSchema;
11115
+ toJSON(data?: any): any;
11116
+ }
11117
+ export interface ICopyMeasurementFormSchema {
11118
+ customerId?: string | null;
11119
+ customerName?: string | null;
11120
+ partNumber?: string | null;
11121
+ partRevision?: string | null;
11122
+ partName?: string | null;
11123
+ drawing?: string | null;
11124
+ drawingRevision?: string | null;
11125
+ includeFiles: boolean;
11126
+ includeLinkedSchemas: boolean;
11127
+ includeMeasurementForm: boolean;
11128
+ }
11095
11129
  export declare class UpdateSchemaGroupedElementsRequest implements IUpdateSchemaGroupedElementsRequest {
11096
11130
  groupedElements: UpdateSchemaGroupedElementDto[];
11097
11131
  constructor(data?: IUpdateSchemaGroupedElementsRequest);
@@ -15674,6 +15674,84 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
15674
15674
  }
15675
15675
  return Promise.resolve(null);
15676
15676
  }
15677
+ deleteMeasurementForm(id) {
15678
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
15679
+ if (id === undefined || id === null)
15680
+ throw new Error("The parameter 'id' must be defined.");
15681
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15682
+ url_ = url_.replace(/[?&]$/, "");
15683
+ let options_ = {
15684
+ method: "DELETE",
15685
+ headers: {}
15686
+ };
15687
+ return this.transformOptions(options_).then(transformedOptions_ => {
15688
+ return this.http.fetch(url_, transformedOptions_);
15689
+ }).then((_response) => {
15690
+ return this.processDeleteMeasurementForm(_response);
15691
+ });
15692
+ }
15693
+ processDeleteMeasurementForm(response) {
15694
+ const status = response.status;
15695
+ let _headers = {};
15696
+ if (response.headers && response.headers.forEach) {
15697
+ response.headers.forEach((v, k) => _headers[k] = v);
15698
+ }
15699
+ ;
15700
+ if (status === 204) {
15701
+ return response.text().then((_responseText) => {
15702
+ return;
15703
+ });
15704
+ }
15705
+ else if (status !== 200 && status !== 204) {
15706
+ return response.text().then((_responseText) => {
15707
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15708
+ });
15709
+ }
15710
+ return Promise.resolve(null);
15711
+ }
15712
+ copyMeasurementFormSchema(id, request) {
15713
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
15714
+ if (id === undefined || id === null)
15715
+ throw new Error("The parameter 'id' must be defined.");
15716
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15717
+ url_ = url_.replace(/[?&]$/, "");
15718
+ const content_ = JSON.stringify(request);
15719
+ let options_ = {
15720
+ body: content_,
15721
+ method: "POST",
15722
+ headers: {
15723
+ "Content-Type": "application/json",
15724
+ "Accept": "application/json"
15725
+ }
15726
+ };
15727
+ return this.transformOptions(options_).then(transformedOptions_ => {
15728
+ return this.http.fetch(url_, transformedOptions_);
15729
+ }).then((_response) => {
15730
+ return this.processCopyMeasurementFormSchema(_response);
15731
+ });
15732
+ }
15733
+ processCopyMeasurementFormSchema(response) {
15734
+ const status = response.status;
15735
+ let _headers = {};
15736
+ if (response.headers && response.headers.forEach) {
15737
+ response.headers.forEach((v, k) => _headers[k] = v);
15738
+ }
15739
+ ;
15740
+ if (status === 200) {
15741
+ return response.text().then((_responseText) => {
15742
+ let result200 = null;
15743
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15744
+ result200 = MeasurementFormDto.fromJS(resultData200);
15745
+ return result200;
15746
+ });
15747
+ }
15748
+ else if (status !== 200 && status !== 204) {
15749
+ return response.text().then((_responseText) => {
15750
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15751
+ });
15752
+ }
15753
+ return Promise.resolve(null);
15754
+ }
15677
15755
  updateSchemaGroupedElements(id, request) {
15678
15756
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
15679
15757
  if (id === undefined || id === null)
@@ -38664,6 +38742,50 @@ export class UpdateMeasurementFormSchemaRequest {
38664
38742
  return data;
38665
38743
  }
38666
38744
  }
38745
+ export class CopyMeasurementFormSchema {
38746
+ constructor(data) {
38747
+ if (data) {
38748
+ for (var property in data) {
38749
+ if (data.hasOwnProperty(property))
38750
+ this[property] = data[property];
38751
+ }
38752
+ }
38753
+ }
38754
+ init(_data) {
38755
+ if (_data) {
38756
+ this.customerId = _data["customerId"];
38757
+ this.customerName = _data["customerName"];
38758
+ this.partNumber = _data["partNumber"];
38759
+ this.partRevision = _data["partRevision"];
38760
+ this.partName = _data["partName"];
38761
+ this.drawing = _data["drawing"];
38762
+ this.drawingRevision = _data["drawingRevision"];
38763
+ this.includeFiles = _data["includeFiles"];
38764
+ this.includeLinkedSchemas = _data["includeLinkedSchemas"];
38765
+ this.includeMeasurementForm = _data["includeMeasurementForm"];
38766
+ }
38767
+ }
38768
+ static fromJS(data) {
38769
+ data = typeof data === 'object' ? data : {};
38770
+ let result = new CopyMeasurementFormSchema();
38771
+ result.init(data);
38772
+ return result;
38773
+ }
38774
+ toJSON(data) {
38775
+ data = typeof data === 'object' ? data : {};
38776
+ data["customerId"] = this.customerId;
38777
+ data["customerName"] = this.customerName;
38778
+ data["partNumber"] = this.partNumber;
38779
+ data["partRevision"] = this.partRevision;
38780
+ data["partName"] = this.partName;
38781
+ data["drawing"] = this.drawing;
38782
+ data["drawingRevision"] = this.drawingRevision;
38783
+ data["includeFiles"] = this.includeFiles;
38784
+ data["includeLinkedSchemas"] = this.includeLinkedSchemas;
38785
+ data["includeMeasurementForm"] = this.includeMeasurementForm;
38786
+ return data;
38787
+ }
38788
+ }
38667
38789
  export class UpdateSchemaGroupedElementsRequest {
38668
38790
  constructor(data) {
38669
38791
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250325.0.11423",
3
+ "version": "20250328.0.11444",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16534,6 +16534,10 @@ export interface IMeasurementFormSchemasClient {
16534
16534
 
16535
16535
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
16536
16536
 
16537
+ deleteMeasurementForm(id: string): Promise<void>;
16538
+
16539
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
16540
+
16537
16541
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
16538
16542
 
16539
16543
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
@@ -16865,6 +16869,84 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16865
16869
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16866
16870
  }
16867
16871
 
16872
+ deleteMeasurementForm(id: string): Promise<void> {
16873
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
16874
+ if (id === undefined || id === null)
16875
+ throw new Error("The parameter 'id' must be defined.");
16876
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16877
+ url_ = url_.replace(/[?&]$/, "");
16878
+
16879
+ let options_: RequestInit = {
16880
+ method: "DELETE",
16881
+ headers: {
16882
+ }
16883
+ };
16884
+
16885
+ return this.transformOptions(options_).then(transformedOptions_ => {
16886
+ return this.http.fetch(url_, transformedOptions_);
16887
+ }).then((_response: Response) => {
16888
+ return this.processDeleteMeasurementForm(_response);
16889
+ });
16890
+ }
16891
+
16892
+ protected processDeleteMeasurementForm(response: Response): Promise<void> {
16893
+ const status = response.status;
16894
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16895
+ if (status === 204) {
16896
+ return response.text().then((_responseText) => {
16897
+ return;
16898
+ });
16899
+ } else if (status !== 200 && status !== 204) {
16900
+ return response.text().then((_responseText) => {
16901
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16902
+ });
16903
+ }
16904
+ return Promise.resolve<void>(null as any);
16905
+ }
16906
+
16907
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
16908
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
16909
+ if (id === undefined || id === null)
16910
+ throw new Error("The parameter 'id' must be defined.");
16911
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16912
+ url_ = url_.replace(/[?&]$/, "");
16913
+
16914
+ const content_ = JSON.stringify(request);
16915
+
16916
+ let options_: RequestInit = {
16917
+ body: content_,
16918
+ method: "POST",
16919
+ headers: {
16920
+ "Content-Type": "application/json",
16921
+ "Accept": "application/json"
16922
+ }
16923
+ };
16924
+
16925
+ return this.transformOptions(options_).then(transformedOptions_ => {
16926
+ return this.http.fetch(url_, transformedOptions_);
16927
+ }).then((_response: Response) => {
16928
+ return this.processCopyMeasurementFormSchema(_response);
16929
+ });
16930
+ }
16931
+
16932
+ protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto> {
16933
+ const status = response.status;
16934
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16935
+ if (status === 200) {
16936
+ return response.text().then((_responseText) => {
16937
+ let result200: any = null;
16938
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16939
+ result200 = MeasurementFormDto.fromJS(resultData200);
16940
+ return result200;
16941
+ });
16942
+ } else if (status !== 200 && status !== 204) {
16943
+ return response.text().then((_responseText) => {
16944
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16945
+ });
16946
+ }
16947
+ return Promise.resolve<MeasurementFormDto>(null as any);
16948
+ }
16949
+
16868
16950
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto> {
16869
16951
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
16870
16952
  if (id === undefined || id === null)
@@ -48681,6 +48763,78 @@ export interface IUpdateMeasurementFormSchemaRequest {
48681
48763
  specification?: string | null;
48682
48764
  }
48683
48765
 
48766
+ export class CopyMeasurementFormSchema implements ICopyMeasurementFormSchema {
48767
+ customerId?: string | null;
48768
+ customerName?: string | null;
48769
+ partNumber?: string | null;
48770
+ partRevision?: string | null;
48771
+ partName?: string | null;
48772
+ drawing?: string | null;
48773
+ drawingRevision?: string | null;
48774
+ includeFiles!: boolean;
48775
+ includeLinkedSchemas!: boolean;
48776
+ includeMeasurementForm!: boolean;
48777
+
48778
+ constructor(data?: ICopyMeasurementFormSchema) {
48779
+ if (data) {
48780
+ for (var property in data) {
48781
+ if (data.hasOwnProperty(property))
48782
+ (<any>this)[property] = (<any>data)[property];
48783
+ }
48784
+ }
48785
+ }
48786
+
48787
+ init(_data?: any) {
48788
+ if (_data) {
48789
+ this.customerId = _data["customerId"];
48790
+ this.customerName = _data["customerName"];
48791
+ this.partNumber = _data["partNumber"];
48792
+ this.partRevision = _data["partRevision"];
48793
+ this.partName = _data["partName"];
48794
+ this.drawing = _data["drawing"];
48795
+ this.drawingRevision = _data["drawingRevision"];
48796
+ this.includeFiles = _data["includeFiles"];
48797
+ this.includeLinkedSchemas = _data["includeLinkedSchemas"];
48798
+ this.includeMeasurementForm = _data["includeMeasurementForm"];
48799
+ }
48800
+ }
48801
+
48802
+ static fromJS(data: any): CopyMeasurementFormSchema {
48803
+ data = typeof data === 'object' ? data : {};
48804
+ let result = new CopyMeasurementFormSchema();
48805
+ result.init(data);
48806
+ return result;
48807
+ }
48808
+
48809
+ toJSON(data?: any) {
48810
+ data = typeof data === 'object' ? data : {};
48811
+ data["customerId"] = this.customerId;
48812
+ data["customerName"] = this.customerName;
48813
+ data["partNumber"] = this.partNumber;
48814
+ data["partRevision"] = this.partRevision;
48815
+ data["partName"] = this.partName;
48816
+ data["drawing"] = this.drawing;
48817
+ data["drawingRevision"] = this.drawingRevision;
48818
+ data["includeFiles"] = this.includeFiles;
48819
+ data["includeLinkedSchemas"] = this.includeLinkedSchemas;
48820
+ data["includeMeasurementForm"] = this.includeMeasurementForm;
48821
+ return data;
48822
+ }
48823
+ }
48824
+
48825
+ export interface ICopyMeasurementFormSchema {
48826
+ customerId?: string | null;
48827
+ customerName?: string | null;
48828
+ partNumber?: string | null;
48829
+ partRevision?: string | null;
48830
+ partName?: string | null;
48831
+ drawing?: string | null;
48832
+ drawingRevision?: string | null;
48833
+ includeFiles: boolean;
48834
+ includeLinkedSchemas: boolean;
48835
+ includeMeasurementForm: boolean;
48836
+ }
48837
+
48684
48838
  export class UpdateSchemaGroupedElementsRequest implements IUpdateSchemaGroupedElementsRequest {
48685
48839
  groupedElements!: UpdateSchemaGroupedElementDto[];
48686
48840