@ignos/api-client 20240828.0.10152 → 20240828.0.10156

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.
@@ -1041,6 +1041,8 @@ export interface ICncSetupClient {
1041
1041
  deleteCncMachineOperationProgramVersion(id: string, filename: string, versionId: number): Promise<ProgramFileDto[]>;
1042
1042
  createUploadAttachmentInfo(id: string, request: UploadFileRequest): Promise<UploadFileDto[]>;
1043
1043
  listCncMachineOperationsAttachments(id: string): Promise<FileDto[]>;
1044
+ getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto>;
1045
+ saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto>;
1044
1046
  deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void>;
1045
1047
  listCncMachineOperationsByPart(id: string): Promise<CncMachineOperationDto[]>;
1046
1048
  listCncToolTypes(): Promise<CncToolTypeDto[]>;
@@ -1133,6 +1135,10 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
1133
1135
  protected processCreateUploadAttachmentInfo(response: Response): Promise<UploadFileDto[]>;
1134
1136
  listCncMachineOperationsAttachments(id: string): Promise<FileDto[]>;
1135
1137
  protected processListCncMachineOperationsAttachments(response: Response): Promise<FileDto[]>;
1138
+ getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto>;
1139
+ protected processGetCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto>;
1140
+ saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto>;
1141
+ protected processSaveCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto>;
1136
1142
  deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void>;
1137
1143
  protected processDeleteCncMachineOperationAttachment(response: Response): Promise<void>;
1138
1144
  listCncMachineOperationsByPart(id: string): Promise<CncMachineOperationDto[]>;
@@ -6939,6 +6945,28 @@ export declare class UpdateProgramFileRequest implements IUpdateProgramFileReque
6939
6945
  export interface IUpdateProgramFileRequest {
6940
6946
  deleted: boolean;
6941
6947
  }
6948
+ export declare class MarkdownNotesDto implements IMarkdownNotesDto {
6949
+ content: string;
6950
+ constructor(data?: IMarkdownNotesDto);
6951
+ init(_data?: any): void;
6952
+ static fromJS(data: any): MarkdownNotesDto;
6953
+ toJSON(data?: any): any;
6954
+ }
6955
+ export interface IMarkdownNotesDto {
6956
+ content: string;
6957
+ }
6958
+ export declare class SaveMarkdownNotes implements ISaveMarkdownNotes {
6959
+ id: string;
6960
+ markdown: string;
6961
+ constructor(data?: ISaveMarkdownNotes);
6962
+ init(_data?: any): void;
6963
+ static fromJS(data: any): SaveMarkdownNotes;
6964
+ toJSON(data?: any): any;
6965
+ }
6966
+ export interface ISaveMarkdownNotes {
6967
+ id: string;
6968
+ markdown: string;
6969
+ }
6942
6970
  export declare class CncToolTypeDto implements ICncToolTypeDto {
6943
6971
  id: string;
6944
6972
  name: string;
@@ -9240,6 +9240,89 @@ export class CncSetupClient extends AuthorizedApiBase {
9240
9240
  }
9241
9241
  return Promise.resolve(null);
9242
9242
  }
9243
+ getCncMachineOperationNotes(id) {
9244
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9245
+ if (id === undefined || id === null)
9246
+ throw new Error("The parameter 'id' must be defined.");
9247
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9248
+ url_ = url_.replace(/[?&]$/, "");
9249
+ let options_ = {
9250
+ method: "GET",
9251
+ headers: {
9252
+ "Accept": "application/json"
9253
+ }
9254
+ };
9255
+ return this.transformOptions(options_).then(transformedOptions_ => {
9256
+ return this.http.fetch(url_, transformedOptions_);
9257
+ }).then((_response) => {
9258
+ return this.processGetCncMachineOperationNotes(_response);
9259
+ });
9260
+ }
9261
+ processGetCncMachineOperationNotes(response) {
9262
+ const status = response.status;
9263
+ let _headers = {};
9264
+ if (response.headers && response.headers.forEach) {
9265
+ response.headers.forEach((v, k) => _headers[k] = v);
9266
+ }
9267
+ ;
9268
+ if (status === 200) {
9269
+ return response.text().then((_responseText) => {
9270
+ let result200 = null;
9271
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9272
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9273
+ return result200;
9274
+ });
9275
+ }
9276
+ else if (status !== 200 && status !== 204) {
9277
+ return response.text().then((_responseText) => {
9278
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9279
+ });
9280
+ }
9281
+ return Promise.resolve(null);
9282
+ }
9283
+ saveCncMachineOperationNotes(id, request) {
9284
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9285
+ if (id === undefined || id === null)
9286
+ throw new Error("The parameter 'id' must be defined.");
9287
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9288
+ url_ = url_.replace(/[?&]$/, "");
9289
+ const content_ = JSON.stringify(request);
9290
+ let options_ = {
9291
+ body: content_,
9292
+ method: "PUT",
9293
+ headers: {
9294
+ "Content-Type": "application/json",
9295
+ "Accept": "application/json"
9296
+ }
9297
+ };
9298
+ return this.transformOptions(options_).then(transformedOptions_ => {
9299
+ return this.http.fetch(url_, transformedOptions_);
9300
+ }).then((_response) => {
9301
+ return this.processSaveCncMachineOperationNotes(_response);
9302
+ });
9303
+ }
9304
+ processSaveCncMachineOperationNotes(response) {
9305
+ const status = response.status;
9306
+ let _headers = {};
9307
+ if (response.headers && response.headers.forEach) {
9308
+ response.headers.forEach((v, k) => _headers[k] = v);
9309
+ }
9310
+ ;
9311
+ if (status === 200) {
9312
+ return response.text().then((_responseText) => {
9313
+ let result200 = null;
9314
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9315
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9316
+ return result200;
9317
+ });
9318
+ }
9319
+ else if (status !== 200 && status !== 204) {
9320
+ return response.text().then((_responseText) => {
9321
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9322
+ });
9323
+ }
9324
+ return Promise.resolve(null);
9325
+ }
9243
9326
  deleteCncMachineOperationAttachment(operationId, filename) {
9244
9327
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
9245
9328
  if (operationId === undefined || operationId === null)
@@ -28658,6 +28741,60 @@ export class UpdateProgramFileRequest {
28658
28741
  return data;
28659
28742
  }
28660
28743
  }
28744
+ export class MarkdownNotesDto {
28745
+ constructor(data) {
28746
+ if (data) {
28747
+ for (var property in data) {
28748
+ if (data.hasOwnProperty(property))
28749
+ this[property] = data[property];
28750
+ }
28751
+ }
28752
+ }
28753
+ init(_data) {
28754
+ if (_data) {
28755
+ this.content = _data["content"];
28756
+ }
28757
+ }
28758
+ static fromJS(data) {
28759
+ data = typeof data === 'object' ? data : {};
28760
+ let result = new MarkdownNotesDto();
28761
+ result.init(data);
28762
+ return result;
28763
+ }
28764
+ toJSON(data) {
28765
+ data = typeof data === 'object' ? data : {};
28766
+ data["content"] = this.content;
28767
+ return data;
28768
+ }
28769
+ }
28770
+ export class SaveMarkdownNotes {
28771
+ constructor(data) {
28772
+ if (data) {
28773
+ for (var property in data) {
28774
+ if (data.hasOwnProperty(property))
28775
+ this[property] = data[property];
28776
+ }
28777
+ }
28778
+ }
28779
+ init(_data) {
28780
+ if (_data) {
28781
+ this.id = _data["id"];
28782
+ this.markdown = _data["markdown"];
28783
+ }
28784
+ }
28785
+ static fromJS(data) {
28786
+ data = typeof data === 'object' ? data : {};
28787
+ let result = new SaveMarkdownNotes();
28788
+ result.init(data);
28789
+ return result;
28790
+ }
28791
+ toJSON(data) {
28792
+ data = typeof data === 'object' ? data : {};
28793
+ data["id"] = this.id;
28794
+ data["markdown"] = this.markdown;
28795
+ return data;
28796
+ }
28797
+ }
28661
28798
  export class CncToolTypeDto {
28662
28799
  constructor(data) {
28663
28800
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240828.0.10152",
3
+ "version": "20240828.0.10156",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -8437,6 +8437,10 @@ export interface ICncSetupClient {
8437
8437
 
8438
8438
  listCncMachineOperationsAttachments(id: string): Promise<FileDto[]>;
8439
8439
 
8440
+ getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto>;
8441
+
8442
+ saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto>;
8443
+
8440
8444
  deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void>;
8441
8445
 
8442
8446
  listCncMachineOperationsByPart(id: string): Promise<CncMachineOperationDto[]>;
@@ -9894,6 +9898,88 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
9894
9898
  return Promise.resolve<FileDto[]>(null as any);
9895
9899
  }
9896
9900
 
9901
+ getCncMachineOperationNotes(id: string): Promise<MarkdownNotesDto> {
9902
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9903
+ if (id === undefined || id === null)
9904
+ throw new Error("The parameter 'id' must be defined.");
9905
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9906
+ url_ = url_.replace(/[?&]$/, "");
9907
+
9908
+ let options_: RequestInit = {
9909
+ method: "GET",
9910
+ headers: {
9911
+ "Accept": "application/json"
9912
+ }
9913
+ };
9914
+
9915
+ return this.transformOptions(options_).then(transformedOptions_ => {
9916
+ return this.http.fetch(url_, transformedOptions_);
9917
+ }).then((_response: Response) => {
9918
+ return this.processGetCncMachineOperationNotes(_response);
9919
+ });
9920
+ }
9921
+
9922
+ protected processGetCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto> {
9923
+ const status = response.status;
9924
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
9925
+ if (status === 200) {
9926
+ return response.text().then((_responseText) => {
9927
+ let result200: any = null;
9928
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9929
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9930
+ return result200;
9931
+ });
9932
+ } else if (status !== 200 && status !== 204) {
9933
+ return response.text().then((_responseText) => {
9934
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9935
+ });
9936
+ }
9937
+ return Promise.resolve<MarkdownNotesDto>(null as any);
9938
+ }
9939
+
9940
+ saveCncMachineOperationNotes(id: string, request: SaveMarkdownNotes): Promise<MarkdownNotesDto> {
9941
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9942
+ if (id === undefined || id === null)
9943
+ throw new Error("The parameter 'id' must be defined.");
9944
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9945
+ url_ = url_.replace(/[?&]$/, "");
9946
+
9947
+ const content_ = JSON.stringify(request);
9948
+
9949
+ let options_: RequestInit = {
9950
+ body: content_,
9951
+ method: "PUT",
9952
+ headers: {
9953
+ "Content-Type": "application/json",
9954
+ "Accept": "application/json"
9955
+ }
9956
+ };
9957
+
9958
+ return this.transformOptions(options_).then(transformedOptions_ => {
9959
+ return this.http.fetch(url_, transformedOptions_);
9960
+ }).then((_response: Response) => {
9961
+ return this.processSaveCncMachineOperationNotes(_response);
9962
+ });
9963
+ }
9964
+
9965
+ protected processSaveCncMachineOperationNotes(response: Response): Promise<MarkdownNotesDto> {
9966
+ const status = response.status;
9967
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
9968
+ if (status === 200) {
9969
+ return response.text().then((_responseText) => {
9970
+ let result200: any = null;
9971
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9972
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9973
+ return result200;
9974
+ });
9975
+ } else if (status !== 200 && status !== 204) {
9976
+ return response.text().then((_responseText) => {
9977
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9978
+ });
9979
+ }
9980
+ return Promise.resolve<MarkdownNotesDto>(null as any);
9981
+ }
9982
+
9897
9983
  deleteCncMachineOperationAttachment(operationId: string, filename: string): Promise<void> {
9898
9984
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
9899
9985
  if (operationId === undefined || operationId === null)
@@ -34603,6 +34689,82 @@ export interface IUpdateProgramFileRequest {
34603
34689
  deleted: boolean;
34604
34690
  }
34605
34691
 
34692
+ export class MarkdownNotesDto implements IMarkdownNotesDto {
34693
+ content!: string;
34694
+
34695
+ constructor(data?: IMarkdownNotesDto) {
34696
+ if (data) {
34697
+ for (var property in data) {
34698
+ if (data.hasOwnProperty(property))
34699
+ (<any>this)[property] = (<any>data)[property];
34700
+ }
34701
+ }
34702
+ }
34703
+
34704
+ init(_data?: any) {
34705
+ if (_data) {
34706
+ this.content = _data["content"];
34707
+ }
34708
+ }
34709
+
34710
+ static fromJS(data: any): MarkdownNotesDto {
34711
+ data = typeof data === 'object' ? data : {};
34712
+ let result = new MarkdownNotesDto();
34713
+ result.init(data);
34714
+ return result;
34715
+ }
34716
+
34717
+ toJSON(data?: any) {
34718
+ data = typeof data === 'object' ? data : {};
34719
+ data["content"] = this.content;
34720
+ return data;
34721
+ }
34722
+ }
34723
+
34724
+ export interface IMarkdownNotesDto {
34725
+ content: string;
34726
+ }
34727
+
34728
+ export class SaveMarkdownNotes implements ISaveMarkdownNotes {
34729
+ id!: string;
34730
+ markdown!: string;
34731
+
34732
+ constructor(data?: ISaveMarkdownNotes) {
34733
+ if (data) {
34734
+ for (var property in data) {
34735
+ if (data.hasOwnProperty(property))
34736
+ (<any>this)[property] = (<any>data)[property];
34737
+ }
34738
+ }
34739
+ }
34740
+
34741
+ init(_data?: any) {
34742
+ if (_data) {
34743
+ this.id = _data["id"];
34744
+ this.markdown = _data["markdown"];
34745
+ }
34746
+ }
34747
+
34748
+ static fromJS(data: any): SaveMarkdownNotes {
34749
+ data = typeof data === 'object' ? data : {};
34750
+ let result = new SaveMarkdownNotes();
34751
+ result.init(data);
34752
+ return result;
34753
+ }
34754
+
34755
+ toJSON(data?: any) {
34756
+ data = typeof data === 'object' ? data : {};
34757
+ data["id"] = this.id;
34758
+ data["markdown"] = this.markdown;
34759
+ return data;
34760
+ }
34761
+ }
34762
+
34763
+ export interface ISaveMarkdownNotes {
34764
+ id: string;
34765
+ markdown: string;
34766
+ }
34767
+
34606
34768
  export class CncToolTypeDto implements ICncToolTypeDto {
34607
34769
  id!: string;
34608
34770
  name!: string;