@ignos/api-client 20250325.0.11423 → 20250328.0.11442

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,7 @@ 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
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
1909
1910
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1910
1911
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1911
1912
  deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
@@ -1976,6 +1977,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1976
1977
  protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
1977
1978
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1978
1979
  protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
1980
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
1981
+ protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto>;
1979
1982
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1980
1983
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1981
1984
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
@@ -11092,6 +11095,34 @@ export interface IUpdateMeasurementFormSchemaRequest {
11092
11095
  excludeFromCustomerDocumentation: boolean;
11093
11096
  specification?: string | null;
11094
11097
  }
11098
+ export declare class CopyMeasurementFormSchema implements ICopyMeasurementFormSchema {
11099
+ customerId?: string | null;
11100
+ customerName?: string | null;
11101
+ partNumber?: string | null;
11102
+ partRevision?: string | null;
11103
+ partName?: string | null;
11104
+ drawing?: string | null;
11105
+ drawingRevision?: string | null;
11106
+ includeFiles: boolean;
11107
+ includeLinkedSchemas: boolean;
11108
+ includeMeasurementForm: boolean;
11109
+ constructor(data?: ICopyMeasurementFormSchema);
11110
+ init(_data?: any): void;
11111
+ static fromJS(data: any): CopyMeasurementFormSchema;
11112
+ toJSON(data?: any): any;
11113
+ }
11114
+ export interface ICopyMeasurementFormSchema {
11115
+ customerId?: string | null;
11116
+ customerName?: string | null;
11117
+ partNumber?: string | null;
11118
+ partRevision?: string | null;
11119
+ partName?: string | null;
11120
+ drawing?: string | null;
11121
+ drawingRevision?: string | null;
11122
+ includeFiles: boolean;
11123
+ includeLinkedSchemas: boolean;
11124
+ includeMeasurementForm: boolean;
11125
+ }
11095
11126
  export declare class UpdateSchemaGroupedElementsRequest implements IUpdateSchemaGroupedElementsRequest {
11096
11127
  groupedElements: UpdateSchemaGroupedElementDto[];
11097
11128
  constructor(data?: IUpdateSchemaGroupedElementsRequest);
@@ -15674,6 +15674,49 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
15674
15674
  }
15675
15675
  return Promise.resolve(null);
15676
15676
  }
15677
+ copyMeasurementFormSchema(id, request) {
15678
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
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
+ const content_ = JSON.stringify(request);
15684
+ let options_ = {
15685
+ body: content_,
15686
+ method: "POST",
15687
+ headers: {
15688
+ "Content-Type": "application/json",
15689
+ "Accept": "application/json"
15690
+ }
15691
+ };
15692
+ return this.transformOptions(options_).then(transformedOptions_ => {
15693
+ return this.http.fetch(url_, transformedOptions_);
15694
+ }).then((_response) => {
15695
+ return this.processCopyMeasurementFormSchema(_response);
15696
+ });
15697
+ }
15698
+ processCopyMeasurementFormSchema(response) {
15699
+ const status = response.status;
15700
+ let _headers = {};
15701
+ if (response.headers && response.headers.forEach) {
15702
+ response.headers.forEach((v, k) => _headers[k] = v);
15703
+ }
15704
+ ;
15705
+ if (status === 200) {
15706
+ return response.text().then((_responseText) => {
15707
+ let result200 = null;
15708
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15709
+ result200 = MeasurementFormDto.fromJS(resultData200);
15710
+ return result200;
15711
+ });
15712
+ }
15713
+ else if (status !== 200 && status !== 204) {
15714
+ return response.text().then((_responseText) => {
15715
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15716
+ });
15717
+ }
15718
+ return Promise.resolve(null);
15719
+ }
15677
15720
  updateSchemaGroupedElements(id, request) {
15678
15721
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
15679
15722
  if (id === undefined || id === null)
@@ -38664,6 +38707,50 @@ export class UpdateMeasurementFormSchemaRequest {
38664
38707
  return data;
38665
38708
  }
38666
38709
  }
38710
+ export class CopyMeasurementFormSchema {
38711
+ constructor(data) {
38712
+ if (data) {
38713
+ for (var property in data) {
38714
+ if (data.hasOwnProperty(property))
38715
+ this[property] = data[property];
38716
+ }
38717
+ }
38718
+ }
38719
+ init(_data) {
38720
+ if (_data) {
38721
+ this.customerId = _data["customerId"];
38722
+ this.customerName = _data["customerName"];
38723
+ this.partNumber = _data["partNumber"];
38724
+ this.partRevision = _data["partRevision"];
38725
+ this.partName = _data["partName"];
38726
+ this.drawing = _data["drawing"];
38727
+ this.drawingRevision = _data["drawingRevision"];
38728
+ this.includeFiles = _data["includeFiles"];
38729
+ this.includeLinkedSchemas = _data["includeLinkedSchemas"];
38730
+ this.includeMeasurementForm = _data["includeMeasurementForm"];
38731
+ }
38732
+ }
38733
+ static fromJS(data) {
38734
+ data = typeof data === 'object' ? data : {};
38735
+ let result = new CopyMeasurementFormSchema();
38736
+ result.init(data);
38737
+ return result;
38738
+ }
38739
+ toJSON(data) {
38740
+ data = typeof data === 'object' ? data : {};
38741
+ data["customerId"] = this.customerId;
38742
+ data["customerName"] = this.customerName;
38743
+ data["partNumber"] = this.partNumber;
38744
+ data["partRevision"] = this.partRevision;
38745
+ data["partName"] = this.partName;
38746
+ data["drawing"] = this.drawing;
38747
+ data["drawingRevision"] = this.drawingRevision;
38748
+ data["includeFiles"] = this.includeFiles;
38749
+ data["includeLinkedSchemas"] = this.includeLinkedSchemas;
38750
+ data["includeMeasurementForm"] = this.includeMeasurementForm;
38751
+ return data;
38752
+ }
38753
+ }
38667
38754
  export class UpdateSchemaGroupedElementsRequest {
38668
38755
  constructor(data) {
38669
38756
  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.11442",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16534,6 +16534,8 @@ export interface IMeasurementFormSchemasClient {
16534
16534
 
16535
16535
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
16536
16536
 
16537
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
16538
+
16537
16539
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
16538
16540
 
16539
16541
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
@@ -16865,6 +16867,49 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16865
16867
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16866
16868
  }
16867
16869
 
16870
+ copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
16871
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
16872
+ if (id === undefined || id === null)
16873
+ throw new Error("The parameter 'id' must be defined.");
16874
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16875
+ url_ = url_.replace(/[?&]$/, "");
16876
+
16877
+ const content_ = JSON.stringify(request);
16878
+
16879
+ let options_: RequestInit = {
16880
+ body: content_,
16881
+ method: "POST",
16882
+ headers: {
16883
+ "Content-Type": "application/json",
16884
+ "Accept": "application/json"
16885
+ }
16886
+ };
16887
+
16888
+ return this.transformOptions(options_).then(transformedOptions_ => {
16889
+ return this.http.fetch(url_, transformedOptions_);
16890
+ }).then((_response: Response) => {
16891
+ return this.processCopyMeasurementFormSchema(_response);
16892
+ });
16893
+ }
16894
+
16895
+ protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto> {
16896
+ const status = response.status;
16897
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16898
+ if (status === 200) {
16899
+ return response.text().then((_responseText) => {
16900
+ let result200: any = null;
16901
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16902
+ result200 = MeasurementFormDto.fromJS(resultData200);
16903
+ return result200;
16904
+ });
16905
+ } else if (status !== 200 && status !== 204) {
16906
+ return response.text().then((_responseText) => {
16907
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16908
+ });
16909
+ }
16910
+ return Promise.resolve<MeasurementFormDto>(null as any);
16911
+ }
16912
+
16868
16913
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto> {
16869
16914
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
16870
16915
  if (id === undefined || id === null)
@@ -48681,6 +48726,78 @@ export interface IUpdateMeasurementFormSchemaRequest {
48681
48726
  specification?: string | null;
48682
48727
  }
48683
48728
 
48729
+ export class CopyMeasurementFormSchema implements ICopyMeasurementFormSchema {
48730
+ customerId?: string | null;
48731
+ customerName?: string | null;
48732
+ partNumber?: string | null;
48733
+ partRevision?: string | null;
48734
+ partName?: string | null;
48735
+ drawing?: string | null;
48736
+ drawingRevision?: string | null;
48737
+ includeFiles!: boolean;
48738
+ includeLinkedSchemas!: boolean;
48739
+ includeMeasurementForm!: boolean;
48740
+
48741
+ constructor(data?: ICopyMeasurementFormSchema) {
48742
+ if (data) {
48743
+ for (var property in data) {
48744
+ if (data.hasOwnProperty(property))
48745
+ (<any>this)[property] = (<any>data)[property];
48746
+ }
48747
+ }
48748
+ }
48749
+
48750
+ init(_data?: any) {
48751
+ if (_data) {
48752
+ this.customerId = _data["customerId"];
48753
+ this.customerName = _data["customerName"];
48754
+ this.partNumber = _data["partNumber"];
48755
+ this.partRevision = _data["partRevision"];
48756
+ this.partName = _data["partName"];
48757
+ this.drawing = _data["drawing"];
48758
+ this.drawingRevision = _data["drawingRevision"];
48759
+ this.includeFiles = _data["includeFiles"];
48760
+ this.includeLinkedSchemas = _data["includeLinkedSchemas"];
48761
+ this.includeMeasurementForm = _data["includeMeasurementForm"];
48762
+ }
48763
+ }
48764
+
48765
+ static fromJS(data: any): CopyMeasurementFormSchema {
48766
+ data = typeof data === 'object' ? data : {};
48767
+ let result = new CopyMeasurementFormSchema();
48768
+ result.init(data);
48769
+ return result;
48770
+ }
48771
+
48772
+ toJSON(data?: any) {
48773
+ data = typeof data === 'object' ? data : {};
48774
+ data["customerId"] = this.customerId;
48775
+ data["customerName"] = this.customerName;
48776
+ data["partNumber"] = this.partNumber;
48777
+ data["partRevision"] = this.partRevision;
48778
+ data["partName"] = this.partName;
48779
+ data["drawing"] = this.drawing;
48780
+ data["drawingRevision"] = this.drawingRevision;
48781
+ data["includeFiles"] = this.includeFiles;
48782
+ data["includeLinkedSchemas"] = this.includeLinkedSchemas;
48783
+ data["includeMeasurementForm"] = this.includeMeasurementForm;
48784
+ return data;
48785
+ }
48786
+ }
48787
+
48788
+ export interface ICopyMeasurementFormSchema {
48789
+ customerId?: string | null;
48790
+ customerName?: string | null;
48791
+ partNumber?: string | null;
48792
+ partRevision?: string | null;
48793
+ partName?: string | null;
48794
+ drawing?: string | null;
48795
+ drawingRevision?: string | null;
48796
+ includeFiles: boolean;
48797
+ includeLinkedSchemas: boolean;
48798
+ includeMeasurementForm: boolean;
48799
+ }
48800
+
48684
48801
  export class UpdateSchemaGroupedElementsRequest implements IUpdateSchemaGroupedElementsRequest {
48685
48802
  groupedElements!: UpdateSchemaGroupedElementDto[];
48686
48803