@ignos/api-client 20240828.0.10152 → 20240829.0.10164-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.
@@ -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;
@@ -9102,6 +9130,8 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9102
9130
  partNumber?: string | null;
9103
9131
  partName?: string | null;
9104
9132
  material?: string | null;
9133
+ bomPartNumber?: string | null;
9134
+ bomPartName?: string | null;
9105
9135
  workOrderIds?: string[] | null;
9106
9136
  partNumbers?: string[] | null;
9107
9137
  partNames?: string[] | null;
@@ -9109,6 +9139,8 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9109
9139
  bomPositions?: string[] | null;
9110
9140
  materials?: string[] | null;
9111
9141
  descriptions?: string[] | null;
9142
+ bomPartNumbers?: string[] | null;
9143
+ bomPartNames?: string[] | null;
9112
9144
  availableWork?: boolean | null;
9113
9145
  operationStatuses?: OperationStatusDto[] | null;
9114
9146
  after?: Date | null;
@@ -9128,6 +9160,8 @@ export interface IListProductionScheduleOperationsRequest {
9128
9160
  partNumber?: string | null;
9129
9161
  partName?: string | null;
9130
9162
  material?: string | null;
9163
+ bomPartNumber?: string | null;
9164
+ bomPartName?: string | null;
9131
9165
  workOrderIds?: string[] | null;
9132
9166
  partNumbers?: string[] | null;
9133
9167
  partNames?: string[] | null;
@@ -9135,6 +9169,8 @@ export interface IListProductionScheduleOperationsRequest {
9135
9169
  bomPositions?: string[] | null;
9136
9170
  materials?: string[] | null;
9137
9171
  descriptions?: string[] | null;
9172
+ bomPartNumbers?: string[] | null;
9173
+ bomPartNames?: string[] | null;
9138
9174
  availableWork?: boolean | null;
9139
9175
  operationStatuses?: OperationStatusDto[] | null;
9140
9176
  after?: Date | null;
@@ -9148,6 +9184,8 @@ export declare class ProductionScheduleFiltersDto implements IProductionSchedule
9148
9184
  workOrderIds?: FilterValueWithQuantity[];
9149
9185
  materials?: FilterValueWithQuantity[];
9150
9186
  descriptions?: FilterValueWithQuantity[];
9187
+ bomPartNumbers?: FilterValueWithQuantity[];
9188
+ bomPartNames?: FilterValueWithQuantity[];
9151
9189
  operationsWithAvailableWork?: number;
9152
9190
  operationStatuses?: OperationStatusFilterWithQuantity[];
9153
9191
  lastOperation?: Date | null;
@@ -9165,6 +9203,8 @@ export interface IProductionScheduleFiltersDto {
9165
9203
  workOrderIds?: FilterValueWithQuantity[];
9166
9204
  materials?: FilterValueWithQuantity[];
9167
9205
  descriptions?: FilterValueWithQuantity[];
9206
+ bomPartNumbers?: FilterValueWithQuantity[];
9207
+ bomPartNames?: FilterValueWithQuantity[];
9168
9208
  operationsWithAvailableWork?: number;
9169
9209
  operationStatuses?: OperationStatusFilterWithQuantity[];
9170
9210
  lastOperation?: Date | null;
@@ -9202,6 +9242,8 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9202
9242
  partNumber?: string | null;
9203
9243
  partName?: string | null;
9204
9244
  material?: string | null;
9245
+ bomPartNumber?: string | null;
9246
+ bomPartName?: string | null;
9205
9247
  workOrderIds?: string[] | null;
9206
9248
  partNumbers?: string[] | null;
9207
9249
  partNames?: string[] | null;
@@ -9209,6 +9251,8 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9209
9251
  bomPositions?: string[] | null;
9210
9252
  materials?: string[] | null;
9211
9253
  descriptions?: string[] | null;
9254
+ bomPartNumbers?: string[] | null;
9255
+ bomPartNames?: string[] | null;
9212
9256
  availableWork?: boolean | null;
9213
9257
  operationStatuses?: OperationStatusDto[] | null;
9214
9258
  after?: Date | null;
@@ -9226,6 +9270,8 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9226
9270
  partNumber?: string | null;
9227
9271
  partName?: string | null;
9228
9272
  material?: string | null;
9273
+ bomPartNumber?: string | null;
9274
+ bomPartName?: string | null;
9229
9275
  workOrderIds?: string[] | null;
9230
9276
  partNumbers?: string[] | null;
9231
9277
  partNames?: string[] | null;
@@ -9233,6 +9279,8 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9233
9279
  bomPositions?: string[] | null;
9234
9280
  materials?: string[] | null;
9235
9281
  descriptions?: string[] | null;
9282
+ bomPartNumbers?: string[] | null;
9283
+ bomPartNames?: string[] | null;
9236
9284
  availableWork?: boolean | null;
9237
9285
  operationStatuses?: OperationStatusDto[] | null;
9238
9286
  after?: Date | null;
@@ -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) {
@@ -32845,6 +32982,8 @@ export class ListProductionScheduleOperationsRequest {
32845
32982
  this.partNumber = _data["partNumber"];
32846
32983
  this.partName = _data["partName"];
32847
32984
  this.material = _data["material"];
32985
+ this.bomPartNumber = _data["bomPartNumber"];
32986
+ this.bomPartName = _data["bomPartName"];
32848
32987
  if (Array.isArray(_data["workOrderIds"])) {
32849
32988
  this.workOrderIds = [];
32850
32989
  for (let item of _data["workOrderIds"])
@@ -32880,6 +33019,16 @@ export class ListProductionScheduleOperationsRequest {
32880
33019
  for (let item of _data["descriptions"])
32881
33020
  this.descriptions.push(item);
32882
33021
  }
33022
+ if (Array.isArray(_data["bomPartNumbers"])) {
33023
+ this.bomPartNumbers = [];
33024
+ for (let item of _data["bomPartNumbers"])
33025
+ this.bomPartNumbers.push(item);
33026
+ }
33027
+ if (Array.isArray(_data["bomPartNames"])) {
33028
+ this.bomPartNames = [];
33029
+ for (let item of _data["bomPartNames"])
33030
+ this.bomPartNames.push(item);
33031
+ }
32883
33032
  this.availableWork = _data["availableWork"];
32884
33033
  if (Array.isArray(_data["operationStatuses"])) {
32885
33034
  this.operationStatuses = [];
@@ -32907,6 +33056,8 @@ export class ListProductionScheduleOperationsRequest {
32907
33056
  data["partNumber"] = this.partNumber;
32908
33057
  data["partName"] = this.partName;
32909
33058
  data["material"] = this.material;
33059
+ data["bomPartNumber"] = this.bomPartNumber;
33060
+ data["bomPartName"] = this.bomPartName;
32910
33061
  if (Array.isArray(this.workOrderIds)) {
32911
33062
  data["workOrderIds"] = [];
32912
33063
  for (let item of this.workOrderIds)
@@ -32942,6 +33093,16 @@ export class ListProductionScheduleOperationsRequest {
32942
33093
  for (let item of this.descriptions)
32943
33094
  data["descriptions"].push(item);
32944
33095
  }
33096
+ if (Array.isArray(this.bomPartNumbers)) {
33097
+ data["bomPartNumbers"] = [];
33098
+ for (let item of this.bomPartNumbers)
33099
+ data["bomPartNumbers"].push(item);
33100
+ }
33101
+ if (Array.isArray(this.bomPartNames)) {
33102
+ data["bomPartNames"] = [];
33103
+ for (let item of this.bomPartNames)
33104
+ data["bomPartNames"].push(item);
33105
+ }
32945
33106
  data["availableWork"] = this.availableWork;
32946
33107
  if (Array.isArray(this.operationStatuses)) {
32947
33108
  data["operationStatuses"] = [];
@@ -32999,6 +33160,16 @@ export class ProductionScheduleFiltersDto {
32999
33160
  for (let item of _data["descriptions"])
33000
33161
  this.descriptions.push(FilterValueWithQuantity.fromJS(item));
33001
33162
  }
33163
+ if (Array.isArray(_data["bomPartNumbers"])) {
33164
+ this.bomPartNumbers = [];
33165
+ for (let item of _data["bomPartNumbers"])
33166
+ this.bomPartNumbers.push(FilterValueWithQuantity.fromJS(item));
33167
+ }
33168
+ if (Array.isArray(_data["bomPartNames"])) {
33169
+ this.bomPartNames = [];
33170
+ for (let item of _data["bomPartNames"])
33171
+ this.bomPartNames.push(FilterValueWithQuantity.fromJS(item));
33172
+ }
33002
33173
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
33003
33174
  if (Array.isArray(_data["operationStatuses"])) {
33004
33175
  this.operationStatuses = [];
@@ -33052,6 +33223,16 @@ export class ProductionScheduleFiltersDto {
33052
33223
  for (let item of this.descriptions)
33053
33224
  data["descriptions"].push(item.toJSON());
33054
33225
  }
33226
+ if (Array.isArray(this.bomPartNumbers)) {
33227
+ data["bomPartNumbers"] = [];
33228
+ for (let item of this.bomPartNumbers)
33229
+ data["bomPartNumbers"].push(item.toJSON());
33230
+ }
33231
+ if (Array.isArray(this.bomPartNames)) {
33232
+ data["bomPartNames"] = [];
33233
+ for (let item of this.bomPartNames)
33234
+ data["bomPartNames"].push(item.toJSON());
33235
+ }
33055
33236
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
33056
33237
  if (Array.isArray(this.operationStatuses)) {
33057
33238
  data["operationStatuses"] = [];
@@ -33137,6 +33318,8 @@ export class GetAvailableProductionScheduleFiltersRequest {
33137
33318
  this.partNumber = _data["partNumber"];
33138
33319
  this.partName = _data["partName"];
33139
33320
  this.material = _data["material"];
33321
+ this.bomPartNumber = _data["bomPartNumber"];
33322
+ this.bomPartName = _data["bomPartName"];
33140
33323
  if (Array.isArray(_data["workOrderIds"])) {
33141
33324
  this.workOrderIds = [];
33142
33325
  for (let item of _data["workOrderIds"])
@@ -33172,6 +33355,16 @@ export class GetAvailableProductionScheduleFiltersRequest {
33172
33355
  for (let item of _data["descriptions"])
33173
33356
  this.descriptions.push(item);
33174
33357
  }
33358
+ if (Array.isArray(_data["bomPartNumbers"])) {
33359
+ this.bomPartNumbers = [];
33360
+ for (let item of _data["bomPartNumbers"])
33361
+ this.bomPartNumbers.push(item);
33362
+ }
33363
+ if (Array.isArray(_data["bomPartNames"])) {
33364
+ this.bomPartNames = [];
33365
+ for (let item of _data["bomPartNames"])
33366
+ this.bomPartNames.push(item);
33367
+ }
33175
33368
  this.availableWork = _data["availableWork"];
33176
33369
  if (Array.isArray(_data["operationStatuses"])) {
33177
33370
  this.operationStatuses = [];
@@ -33197,6 +33390,8 @@ export class GetAvailableProductionScheduleFiltersRequest {
33197
33390
  data["partNumber"] = this.partNumber;
33198
33391
  data["partName"] = this.partName;
33199
33392
  data["material"] = this.material;
33393
+ data["bomPartNumber"] = this.bomPartNumber;
33394
+ data["bomPartName"] = this.bomPartName;
33200
33395
  if (Array.isArray(this.workOrderIds)) {
33201
33396
  data["workOrderIds"] = [];
33202
33397
  for (let item of this.workOrderIds)
@@ -33232,6 +33427,16 @@ export class GetAvailableProductionScheduleFiltersRequest {
33232
33427
  for (let item of this.descriptions)
33233
33428
  data["descriptions"].push(item);
33234
33429
  }
33430
+ if (Array.isArray(this.bomPartNumbers)) {
33431
+ data["bomPartNumbers"] = [];
33432
+ for (let item of this.bomPartNumbers)
33433
+ data["bomPartNumbers"].push(item);
33434
+ }
33435
+ if (Array.isArray(this.bomPartNames)) {
33436
+ data["bomPartNames"] = [];
33437
+ for (let item of this.bomPartNames)
33438
+ data["bomPartNames"].push(item);
33439
+ }
33235
33440
  data["availableWork"] = this.availableWork;
33236
33441
  if (Array.isArray(this.operationStatuses)) {
33237
33442
  data["operationStatuses"] = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240828.0.10152",
3
+ "version": "20240829.0.10164-alpha",
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;
@@ -40936,6 +41098,8 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
40936
41098
  partNumber?: string | null;
40937
41099
  partName?: string | null;
40938
41100
  material?: string | null;
41101
+ bomPartNumber?: string | null;
41102
+ bomPartName?: string | null;
40939
41103
  workOrderIds?: string[] | null;
40940
41104
  partNumbers?: string[] | null;
40941
41105
  partNames?: string[] | null;
@@ -40943,6 +41107,8 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
40943
41107
  bomPositions?: string[] | null;
40944
41108
  materials?: string[] | null;
40945
41109
  descriptions?: string[] | null;
41110
+ bomPartNumbers?: string[] | null;
41111
+ bomPartNames?: string[] | null;
40946
41112
  availableWork?: boolean | null;
40947
41113
  operationStatuses?: OperationStatusDto[] | null;
40948
41114
  after?: Date | null;
@@ -40968,6 +41134,8 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
40968
41134
  this.partNumber = _data["partNumber"];
40969
41135
  this.partName = _data["partName"];
40970
41136
  this.material = _data["material"];
41137
+ this.bomPartNumber = _data["bomPartNumber"];
41138
+ this.bomPartName = _data["bomPartName"];
40971
41139
  if (Array.isArray(_data["workOrderIds"])) {
40972
41140
  this.workOrderIds = [] as any;
40973
41141
  for (let item of _data["workOrderIds"])
@@ -41003,6 +41171,16 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41003
41171
  for (let item of _data["descriptions"])
41004
41172
  this.descriptions!.push(item);
41005
41173
  }
41174
+ if (Array.isArray(_data["bomPartNumbers"])) {
41175
+ this.bomPartNumbers = [] as any;
41176
+ for (let item of _data["bomPartNumbers"])
41177
+ this.bomPartNumbers!.push(item);
41178
+ }
41179
+ if (Array.isArray(_data["bomPartNames"])) {
41180
+ this.bomPartNames = [] as any;
41181
+ for (let item of _data["bomPartNames"])
41182
+ this.bomPartNames!.push(item);
41183
+ }
41006
41184
  this.availableWork = _data["availableWork"];
41007
41185
  if (Array.isArray(_data["operationStatuses"])) {
41008
41186
  this.operationStatuses = [] as any;
@@ -41032,6 +41210,8 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41032
41210
  data["partNumber"] = this.partNumber;
41033
41211
  data["partName"] = this.partName;
41034
41212
  data["material"] = this.material;
41213
+ data["bomPartNumber"] = this.bomPartNumber;
41214
+ data["bomPartName"] = this.bomPartName;
41035
41215
  if (Array.isArray(this.workOrderIds)) {
41036
41216
  data["workOrderIds"] = [];
41037
41217
  for (let item of this.workOrderIds)
@@ -41067,6 +41247,16 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41067
41247
  for (let item of this.descriptions)
41068
41248
  data["descriptions"].push(item);
41069
41249
  }
41250
+ if (Array.isArray(this.bomPartNumbers)) {
41251
+ data["bomPartNumbers"] = [];
41252
+ for (let item of this.bomPartNumbers)
41253
+ data["bomPartNumbers"].push(item);
41254
+ }
41255
+ if (Array.isArray(this.bomPartNames)) {
41256
+ data["bomPartNames"] = [];
41257
+ for (let item of this.bomPartNames)
41258
+ data["bomPartNames"].push(item);
41259
+ }
41070
41260
  data["availableWork"] = this.availableWork;
41071
41261
  if (Array.isArray(this.operationStatuses)) {
41072
41262
  data["operationStatuses"] = [];
@@ -41089,6 +41279,8 @@ export interface IListProductionScheduleOperationsRequest {
41089
41279
  partNumber?: string | null;
41090
41280
  partName?: string | null;
41091
41281
  material?: string | null;
41282
+ bomPartNumber?: string | null;
41283
+ bomPartName?: string | null;
41092
41284
  workOrderIds?: string[] | null;
41093
41285
  partNumbers?: string[] | null;
41094
41286
  partNames?: string[] | null;
@@ -41096,6 +41288,8 @@ export interface IListProductionScheduleOperationsRequest {
41096
41288
  bomPositions?: string[] | null;
41097
41289
  materials?: string[] | null;
41098
41290
  descriptions?: string[] | null;
41291
+ bomPartNumbers?: string[] | null;
41292
+ bomPartNames?: string[] | null;
41099
41293
  availableWork?: boolean | null;
41100
41294
  operationStatuses?: OperationStatusDto[] | null;
41101
41295
  after?: Date | null;
@@ -41110,6 +41304,8 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41110
41304
  workOrderIds?: FilterValueWithQuantity[];
41111
41305
  materials?: FilterValueWithQuantity[];
41112
41306
  descriptions?: FilterValueWithQuantity[];
41307
+ bomPartNumbers?: FilterValueWithQuantity[];
41308
+ bomPartNames?: FilterValueWithQuantity[];
41113
41309
  operationsWithAvailableWork?: number;
41114
41310
  operationStatuses?: OperationStatusFilterWithQuantity[];
41115
41311
  lastOperation?: Date | null;
@@ -41161,6 +41357,16 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41161
41357
  for (let item of _data["descriptions"])
41162
41358
  this.descriptions!.push(FilterValueWithQuantity.fromJS(item));
41163
41359
  }
41360
+ if (Array.isArray(_data["bomPartNumbers"])) {
41361
+ this.bomPartNumbers = [] as any;
41362
+ for (let item of _data["bomPartNumbers"])
41363
+ this.bomPartNumbers!.push(FilterValueWithQuantity.fromJS(item));
41364
+ }
41365
+ if (Array.isArray(_data["bomPartNames"])) {
41366
+ this.bomPartNames = [] as any;
41367
+ for (let item of _data["bomPartNames"])
41368
+ this.bomPartNames!.push(FilterValueWithQuantity.fromJS(item));
41369
+ }
41164
41370
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
41165
41371
  if (Array.isArray(_data["operationStatuses"])) {
41166
41372
  this.operationStatuses = [] as any;
@@ -41216,6 +41422,16 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41216
41422
  for (let item of this.descriptions)
41217
41423
  data["descriptions"].push(item.toJSON());
41218
41424
  }
41425
+ if (Array.isArray(this.bomPartNumbers)) {
41426
+ data["bomPartNumbers"] = [];
41427
+ for (let item of this.bomPartNumbers)
41428
+ data["bomPartNumbers"].push(item.toJSON());
41429
+ }
41430
+ if (Array.isArray(this.bomPartNames)) {
41431
+ data["bomPartNames"] = [];
41432
+ for (let item of this.bomPartNames)
41433
+ data["bomPartNames"].push(item.toJSON());
41434
+ }
41219
41435
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
41220
41436
  if (Array.isArray(this.operationStatuses)) {
41221
41437
  data["operationStatuses"] = [];
@@ -41236,6 +41452,8 @@ export interface IProductionScheduleFiltersDto {
41236
41452
  workOrderIds?: FilterValueWithQuantity[];
41237
41453
  materials?: FilterValueWithQuantity[];
41238
41454
  descriptions?: FilterValueWithQuantity[];
41455
+ bomPartNumbers?: FilterValueWithQuantity[];
41456
+ bomPartNames?: FilterValueWithQuantity[];
41239
41457
  operationsWithAvailableWork?: number;
41240
41458
  operationStatuses?: OperationStatusFilterWithQuantity[];
41241
41459
  lastOperation?: Date | null;
@@ -41330,6 +41548,8 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41330
41548
  partNumber?: string | null;
41331
41549
  partName?: string | null;
41332
41550
  material?: string | null;
41551
+ bomPartNumber?: string | null;
41552
+ bomPartName?: string | null;
41333
41553
  workOrderIds?: string[] | null;
41334
41554
  partNumbers?: string[] | null;
41335
41555
  partNames?: string[] | null;
@@ -41337,6 +41557,8 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41337
41557
  bomPositions?: string[] | null;
41338
41558
  materials?: string[] | null;
41339
41559
  descriptions?: string[] | null;
41560
+ bomPartNumbers?: string[] | null;
41561
+ bomPartNames?: string[] | null;
41340
41562
  availableWork?: boolean | null;
41341
41563
  operationStatuses?: OperationStatusDto[] | null;
41342
41564
  after?: Date | null;
@@ -41360,6 +41582,8 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41360
41582
  this.partNumber = _data["partNumber"];
41361
41583
  this.partName = _data["partName"];
41362
41584
  this.material = _data["material"];
41585
+ this.bomPartNumber = _data["bomPartNumber"];
41586
+ this.bomPartName = _data["bomPartName"];
41363
41587
  if (Array.isArray(_data["workOrderIds"])) {
41364
41588
  this.workOrderIds = [] as any;
41365
41589
  for (let item of _data["workOrderIds"])
@@ -41395,6 +41619,16 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41395
41619
  for (let item of _data["descriptions"])
41396
41620
  this.descriptions!.push(item);
41397
41621
  }
41622
+ if (Array.isArray(_data["bomPartNumbers"])) {
41623
+ this.bomPartNumbers = [] as any;
41624
+ for (let item of _data["bomPartNumbers"])
41625
+ this.bomPartNumbers!.push(item);
41626
+ }
41627
+ if (Array.isArray(_data["bomPartNames"])) {
41628
+ this.bomPartNames = [] as any;
41629
+ for (let item of _data["bomPartNames"])
41630
+ this.bomPartNames!.push(item);
41631
+ }
41398
41632
  this.availableWork = _data["availableWork"];
41399
41633
  if (Array.isArray(_data["operationStatuses"])) {
41400
41634
  this.operationStatuses = [] as any;
@@ -41422,6 +41656,8 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41422
41656
  data["partNumber"] = this.partNumber;
41423
41657
  data["partName"] = this.partName;
41424
41658
  data["material"] = this.material;
41659
+ data["bomPartNumber"] = this.bomPartNumber;
41660
+ data["bomPartName"] = this.bomPartName;
41425
41661
  if (Array.isArray(this.workOrderIds)) {
41426
41662
  data["workOrderIds"] = [];
41427
41663
  for (let item of this.workOrderIds)
@@ -41457,6 +41693,16 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41457
41693
  for (let item of this.descriptions)
41458
41694
  data["descriptions"].push(item);
41459
41695
  }
41696
+ if (Array.isArray(this.bomPartNumbers)) {
41697
+ data["bomPartNumbers"] = [];
41698
+ for (let item of this.bomPartNumbers)
41699
+ data["bomPartNumbers"].push(item);
41700
+ }
41701
+ if (Array.isArray(this.bomPartNames)) {
41702
+ data["bomPartNames"] = [];
41703
+ for (let item of this.bomPartNames)
41704
+ data["bomPartNames"].push(item);
41705
+ }
41460
41706
  data["availableWork"] = this.availableWork;
41461
41707
  if (Array.isArray(this.operationStatuses)) {
41462
41708
  data["operationStatuses"] = [];
@@ -41477,6 +41723,8 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
41477
41723
  partNumber?: string | null;
41478
41724
  partName?: string | null;
41479
41725
  material?: string | null;
41726
+ bomPartNumber?: string | null;
41727
+ bomPartName?: string | null;
41480
41728
  workOrderIds?: string[] | null;
41481
41729
  partNumbers?: string[] | null;
41482
41730
  partNames?: string[] | null;
@@ -41484,6 +41732,8 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
41484
41732
  bomPositions?: string[] | null;
41485
41733
  materials?: string[] | null;
41486
41734
  descriptions?: string[] | null;
41735
+ bomPartNumbers?: string[] | null;
41736
+ bomPartNames?: string[] | null;
41487
41737
  availableWork?: boolean | null;
41488
41738
  operationStatuses?: OperationStatusDto[] | null;
41489
41739
  after?: Date | null;