@ignos/api-client 20241125.0.10760 → 20241126.0.10771

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.
@@ -1674,6 +1674,19 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
1674
1674
  deleteMesLink(id: string): Promise<void>;
1675
1675
  protected processDeleteMesLink(response: Response): Promise<void>;
1676
1676
  }
1677
+ export interface IMesOrMoveClient {
1678
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1679
+ }
1680
+ export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
1681
+ private http;
1682
+ private baseUrl;
1683
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1684
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1685
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1686
+ });
1687
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1688
+ protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
1689
+ }
1677
1690
  export interface IMesProductionOrderClient {
1678
1691
  getProductionOrder(id: string): Promise<ProductionOrderDto>;
1679
1692
  getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
@@ -1683,7 +1696,6 @@ export interface IMesProductionOrderClient {
1683
1696
  getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1684
1697
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1685
1698
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1686
- getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1687
1699
  }
1688
1700
  export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
1689
1701
  private http;
@@ -1708,8 +1720,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1708
1720
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1709
1721
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1710
1722
  protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
1711
- getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1712
- protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
1713
1723
  }
1714
1724
  export interface IMesProductionScheduleClient {
1715
1725
  listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
@@ -2297,6 +2307,10 @@ export interface IWorkordersClient {
2297
2307
  * Update start time and/or end time of an existing work order operation event
2298
2308
  */
2299
2309
  updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
2310
+ /**
2311
+ * Delete existing work order operation event.
2312
+ */
2313
+ deleteWorkorderOperationEventById(eventId: string): Promise<void>;
2300
2314
  /**
2301
2315
  * Filter work order operation events
2302
2316
  */
@@ -2413,6 +2427,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
2413
2427
  */
2414
2428
  updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
2415
2429
  protected processUpdateWorkorderOperationEventTimestamps(response: Response): Promise<void>;
2430
+ /**
2431
+ * Delete existing work order operation event.
2432
+ */
2433
+ deleteWorkorderOperationEventById(eventId: string): Promise<void>;
2434
+ protected processDeleteWorkorderOperationEventById(response: Response): Promise<void>;
2416
2435
  /**
2417
2436
  * Filter work order operation events
2418
2437
  */
@@ -8702,6 +8721,28 @@ export interface IUpdateMesLink {
8702
8721
  type?: MesLinkTypeDto;
8703
8722
  companyId?: string | null;
8704
8723
  }
8724
+ export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
8725
+ labelIds: LabelId[];
8726
+ constructor(data?: IGeneratePrintableLabel);
8727
+ init(_data?: any): void;
8728
+ static fromJS(data: any): GeneratePrintableLabel;
8729
+ toJSON(data?: any): any;
8730
+ }
8731
+ export interface IGeneratePrintableLabel {
8732
+ labelIds: LabelId[];
8733
+ }
8734
+ export declare class LabelId implements ILabelId {
8735
+ parcelId: string;
8736
+ trackingId?: string | null;
8737
+ constructor(data?: ILabelId);
8738
+ init(_data?: any): void;
8739
+ static fromJS(data: any): LabelId;
8740
+ toJSON(data?: any): any;
8741
+ }
8742
+ export interface ILabelId {
8743
+ parcelId: string;
8744
+ trackingId?: string | null;
8745
+ }
8705
8746
  export declare class ProductionOrderDto implements IProductionOrderDto {
8706
8747
  id: string;
8707
8748
  companyId: string;
@@ -9199,28 +9240,6 @@ export interface IProductionOrderOperationActivityDto {
9199
9240
  workType: WorkTypeDto;
9200
9241
  }
9201
9242
  export type WorkTypeDto = "None" | "Production" | "Setup";
9202
- export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
9203
- labelIds: LabelId[];
9204
- constructor(data?: IGeneratePrintableLabel);
9205
- init(_data?: any): void;
9206
- static fromJS(data: any): GeneratePrintableLabel;
9207
- toJSON(data?: any): any;
9208
- }
9209
- export interface IGeneratePrintableLabel {
9210
- labelIds: LabelId[];
9211
- }
9212
- export declare class LabelId implements ILabelId {
9213
- parcelId: string;
9214
- trackingId?: string | null;
9215
- constructor(data?: ILabelId);
9216
- init(_data?: any): void;
9217
- static fromJS(data: any): LabelId;
9218
- toJSON(data?: any): any;
9219
- }
9220
- export interface ILabelId {
9221
- parcelId: string;
9222
- trackingId?: string | null;
9223
- }
9224
9243
  export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
9225
9244
  results: ProductionScheduleOperationDto[];
9226
9245
  continuationToken?: string | null;
@@ -13539,6 +13539,54 @@ export class MesLinksClient extends AuthorizedApiBase {
13539
13539
  return Promise.resolve(null);
13540
13540
  }
13541
13541
  }
13542
+ export class MesOrMoveClient extends AuthorizedApiBase {
13543
+ constructor(configuration, baseUrl, http) {
13544
+ super(configuration);
13545
+ this.jsonParseReviver = undefined;
13546
+ this.http = http ? http : window;
13547
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
13548
+ }
13549
+ getPrintableLabels(request) {
13550
+ let url_ = this.baseUrl + "/mes/labels/printable";
13551
+ url_ = url_.replace(/[?&]$/, "");
13552
+ const content_ = JSON.stringify(request);
13553
+ let options_ = {
13554
+ body: content_,
13555
+ method: "POST",
13556
+ headers: {
13557
+ "Content-Type": "application/json",
13558
+ "Accept": "application/json"
13559
+ }
13560
+ };
13561
+ return this.transformOptions(options_).then(transformedOptions_ => {
13562
+ return this.http.fetch(url_, transformedOptions_);
13563
+ }).then((_response) => {
13564
+ return this.processGetPrintableLabels(_response);
13565
+ });
13566
+ }
13567
+ processGetPrintableLabels(response) {
13568
+ const status = response.status;
13569
+ let _headers = {};
13570
+ if (response.headers && response.headers.forEach) {
13571
+ response.headers.forEach((v, k) => _headers[k] = v);
13572
+ }
13573
+ ;
13574
+ if (status === 200) {
13575
+ return response.text().then((_responseText) => {
13576
+ let result200 = null;
13577
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13578
+ result200 = DownloadDto.fromJS(resultData200);
13579
+ return result200;
13580
+ });
13581
+ }
13582
+ else if (status !== 200 && status !== 204) {
13583
+ return response.text().then((_responseText) => {
13584
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13585
+ });
13586
+ }
13587
+ return Promise.resolve(null);
13588
+ }
13589
+ }
13542
13590
  export class MesProductionOrderClient extends AuthorizedApiBase {
13543
13591
  constructor(configuration, baseUrl, http) {
13544
13592
  super(configuration);
@@ -13904,46 +13952,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13904
13952
  }
13905
13953
  return Promise.resolve(null);
13906
13954
  }
13907
- getPrintableLabels(request) {
13908
- let url_ = this.baseUrl + "/mes/labels/printable";
13909
- url_ = url_.replace(/[?&]$/, "");
13910
- const content_ = JSON.stringify(request);
13911
- let options_ = {
13912
- body: content_,
13913
- method: "POST",
13914
- headers: {
13915
- "Content-Type": "application/json",
13916
- "Accept": "application/json"
13917
- }
13918
- };
13919
- return this.transformOptions(options_).then(transformedOptions_ => {
13920
- return this.http.fetch(url_, transformedOptions_);
13921
- }).then((_response) => {
13922
- return this.processGetPrintableLabels(_response);
13923
- });
13924
- }
13925
- processGetPrintableLabels(response) {
13926
- const status = response.status;
13927
- let _headers = {};
13928
- if (response.headers && response.headers.forEach) {
13929
- response.headers.forEach((v, k) => _headers[k] = v);
13930
- }
13931
- ;
13932
- if (status === 200) {
13933
- return response.text().then((_responseText) => {
13934
- let result200 = null;
13935
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13936
- result200 = DownloadDto.fromJS(resultData200);
13937
- return result200;
13938
- });
13939
- }
13940
- else if (status !== 200 && status !== 204) {
13941
- return response.text().then((_responseText) => {
13942
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13943
- });
13944
- }
13945
- return Promise.resolve(null);
13946
- }
13947
13955
  }
13948
13956
  export class MesProductionScheduleClient extends AuthorizedApiBase {
13949
13957
  constructor(configuration, baseUrl, http) {
@@ -19720,6 +19728,44 @@ export class WorkordersClient extends AuthorizedApiBase {
19720
19728
  }
19721
19729
  return Promise.resolve(null);
19722
19730
  }
19731
+ /**
19732
+ * Delete existing work order operation event.
19733
+ */
19734
+ deleteWorkorderOperationEventById(eventId) {
19735
+ let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
19736
+ if (eventId === undefined || eventId === null)
19737
+ throw new Error("The parameter 'eventId' must be defined.");
19738
+ url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
19739
+ url_ = url_.replace(/[?&]$/, "");
19740
+ let options_ = {
19741
+ method: "DELETE",
19742
+ headers: {}
19743
+ };
19744
+ return this.transformOptions(options_).then(transformedOptions_ => {
19745
+ return this.http.fetch(url_, transformedOptions_);
19746
+ }).then((_response) => {
19747
+ return this.processDeleteWorkorderOperationEventById(_response);
19748
+ });
19749
+ }
19750
+ processDeleteWorkorderOperationEventById(response) {
19751
+ const status = response.status;
19752
+ let _headers = {};
19753
+ if (response.headers && response.headers.forEach) {
19754
+ response.headers.forEach((v, k) => _headers[k] = v);
19755
+ }
19756
+ ;
19757
+ if (status === 204) {
19758
+ return response.text().then((_responseText) => {
19759
+ return;
19760
+ });
19761
+ }
19762
+ else if (status !== 200 && status !== 204) {
19763
+ return response.text().then((_responseText) => {
19764
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19765
+ });
19766
+ }
19767
+ return Promise.resolve(null);
19768
+ }
19723
19769
  /**
19724
19770
  * Filter work order operation events
19725
19771
  */
@@ -32770,6 +32816,71 @@ export class UpdateMesLink {
32770
32816
  return data;
32771
32817
  }
32772
32818
  }
32819
+ export class GeneratePrintableLabel {
32820
+ constructor(data) {
32821
+ if (data) {
32822
+ for (var property in data) {
32823
+ if (data.hasOwnProperty(property))
32824
+ this[property] = data[property];
32825
+ }
32826
+ }
32827
+ if (!data) {
32828
+ this.labelIds = [];
32829
+ }
32830
+ }
32831
+ init(_data) {
32832
+ if (_data) {
32833
+ if (Array.isArray(_data["labelIds"])) {
32834
+ this.labelIds = [];
32835
+ for (let item of _data["labelIds"])
32836
+ this.labelIds.push(LabelId.fromJS(item));
32837
+ }
32838
+ }
32839
+ }
32840
+ static fromJS(data) {
32841
+ data = typeof data === 'object' ? data : {};
32842
+ let result = new GeneratePrintableLabel();
32843
+ result.init(data);
32844
+ return result;
32845
+ }
32846
+ toJSON(data) {
32847
+ data = typeof data === 'object' ? data : {};
32848
+ if (Array.isArray(this.labelIds)) {
32849
+ data["labelIds"] = [];
32850
+ for (let item of this.labelIds)
32851
+ data["labelIds"].push(item.toJSON());
32852
+ }
32853
+ return data;
32854
+ }
32855
+ }
32856
+ export class LabelId {
32857
+ constructor(data) {
32858
+ if (data) {
32859
+ for (var property in data) {
32860
+ if (data.hasOwnProperty(property))
32861
+ this[property] = data[property];
32862
+ }
32863
+ }
32864
+ }
32865
+ init(_data) {
32866
+ if (_data) {
32867
+ this.parcelId = _data["parcelId"];
32868
+ this.trackingId = _data["trackingId"];
32869
+ }
32870
+ }
32871
+ static fromJS(data) {
32872
+ data = typeof data === 'object' ? data : {};
32873
+ let result = new LabelId();
32874
+ result.init(data);
32875
+ return result;
32876
+ }
32877
+ toJSON(data) {
32878
+ data = typeof data === 'object' ? data : {};
32879
+ data["parcelId"] = this.parcelId;
32880
+ data["trackingId"] = this.trackingId;
32881
+ return data;
32882
+ }
32883
+ }
32773
32884
  export class ProductionOrderDto {
32774
32885
  constructor(data) {
32775
32886
  if (data) {
@@ -33646,71 +33757,6 @@ export class ProductionOrderOperationActivityDto {
33646
33757
  return data;
33647
33758
  }
33648
33759
  }
33649
- export class GeneratePrintableLabel {
33650
- constructor(data) {
33651
- if (data) {
33652
- for (var property in data) {
33653
- if (data.hasOwnProperty(property))
33654
- this[property] = data[property];
33655
- }
33656
- }
33657
- if (!data) {
33658
- this.labelIds = [];
33659
- }
33660
- }
33661
- init(_data) {
33662
- if (_data) {
33663
- if (Array.isArray(_data["labelIds"])) {
33664
- this.labelIds = [];
33665
- for (let item of _data["labelIds"])
33666
- this.labelIds.push(LabelId.fromJS(item));
33667
- }
33668
- }
33669
- }
33670
- static fromJS(data) {
33671
- data = typeof data === 'object' ? data : {};
33672
- let result = new GeneratePrintableLabel();
33673
- result.init(data);
33674
- return result;
33675
- }
33676
- toJSON(data) {
33677
- data = typeof data === 'object' ? data : {};
33678
- if (Array.isArray(this.labelIds)) {
33679
- data["labelIds"] = [];
33680
- for (let item of this.labelIds)
33681
- data["labelIds"].push(item.toJSON());
33682
- }
33683
- return data;
33684
- }
33685
- }
33686
- export class LabelId {
33687
- constructor(data) {
33688
- if (data) {
33689
- for (var property in data) {
33690
- if (data.hasOwnProperty(property))
33691
- this[property] = data[property];
33692
- }
33693
- }
33694
- }
33695
- init(_data) {
33696
- if (_data) {
33697
- this.parcelId = _data["parcelId"];
33698
- this.trackingId = _data["trackingId"];
33699
- }
33700
- }
33701
- static fromJS(data) {
33702
- data = typeof data === 'object' ? data : {};
33703
- let result = new LabelId();
33704
- result.init(data);
33705
- return result;
33706
- }
33707
- toJSON(data) {
33708
- data = typeof data === 'object' ? data : {};
33709
- data["parcelId"] = this.parcelId;
33710
- data["trackingId"] = this.trackingId;
33711
- return data;
33712
- }
33713
- }
33714
33760
  export class PagedResultOfProductionScheduleOperationDto {
33715
33761
  constructor(data) {
33716
33762
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20241125.0.10760",
3
+ "version": "20241126.0.10771",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14488,6 +14488,63 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
14488
14488
  }
14489
14489
  }
14490
14490
 
14491
+ export interface IMesOrMoveClient {
14492
+
14493
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
14494
+ }
14495
+
14496
+ export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
14497
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
14498
+ private baseUrl: string;
14499
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
14500
+
14501
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
14502
+ super(configuration);
14503
+ this.http = http ? http : window as any;
14504
+ this.baseUrl = baseUrl ?? "";
14505
+ }
14506
+
14507
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
14508
+ let url_ = this.baseUrl + "/mes/labels/printable";
14509
+ url_ = url_.replace(/[?&]$/, "");
14510
+
14511
+ const content_ = JSON.stringify(request);
14512
+
14513
+ let options_: RequestInit = {
14514
+ body: content_,
14515
+ method: "POST",
14516
+ headers: {
14517
+ "Content-Type": "application/json",
14518
+ "Accept": "application/json"
14519
+ }
14520
+ };
14521
+
14522
+ return this.transformOptions(options_).then(transformedOptions_ => {
14523
+ return this.http.fetch(url_, transformedOptions_);
14524
+ }).then((_response: Response) => {
14525
+ return this.processGetPrintableLabels(_response);
14526
+ });
14527
+ }
14528
+
14529
+ protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
14530
+ const status = response.status;
14531
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14532
+ if (status === 200) {
14533
+ return response.text().then((_responseText) => {
14534
+ let result200: any = null;
14535
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14536
+ result200 = DownloadDto.fromJS(resultData200);
14537
+ return result200;
14538
+ });
14539
+ } else if (status !== 200 && status !== 204) {
14540
+ return response.text().then((_responseText) => {
14541
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14542
+ });
14543
+ }
14544
+ return Promise.resolve<DownloadDto>(null as any);
14545
+ }
14546
+ }
14547
+
14491
14548
  export interface IMesProductionOrderClient {
14492
14549
 
14493
14550
  getProductionOrder(id: string): Promise<ProductionOrderDto>;
@@ -14505,8 +14562,6 @@ export interface IMesProductionOrderClient {
14505
14562
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
14506
14563
 
14507
14564
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
14508
-
14509
- getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
14510
14565
  }
14511
14566
 
14512
14567
  export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
@@ -14871,46 +14926,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14871
14926
  }
14872
14927
  return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
14873
14928
  }
14874
-
14875
- getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
14876
- let url_ = this.baseUrl + "/mes/labels/printable";
14877
- url_ = url_.replace(/[?&]$/, "");
14878
-
14879
- const content_ = JSON.stringify(request);
14880
-
14881
- let options_: RequestInit = {
14882
- body: content_,
14883
- method: "POST",
14884
- headers: {
14885
- "Content-Type": "application/json",
14886
- "Accept": "application/json"
14887
- }
14888
- };
14889
-
14890
- return this.transformOptions(options_).then(transformedOptions_ => {
14891
- return this.http.fetch(url_, transformedOptions_);
14892
- }).then((_response: Response) => {
14893
- return this.processGetPrintableLabels(_response);
14894
- });
14895
- }
14896
-
14897
- protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
14898
- const status = response.status;
14899
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14900
- if (status === 200) {
14901
- return response.text().then((_responseText) => {
14902
- let result200: any = null;
14903
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14904
- result200 = DownloadDto.fromJS(resultData200);
14905
- return result200;
14906
- });
14907
- } else if (status !== 200 && status !== 204) {
14908
- return response.text().then((_responseText) => {
14909
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14910
- });
14911
- }
14912
- return Promise.resolve<DownloadDto>(null as any);
14913
- }
14914
14929
  }
14915
14930
 
14916
14931
  export interface IMesProductionScheduleClient {
@@ -20184,6 +20199,11 @@ export interface IWorkordersClient {
20184
20199
  */
20185
20200
  updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
20186
20201
 
20202
+ /**
20203
+ * Delete existing work order operation event.
20204
+ */
20205
+ deleteWorkorderOperationEventById(eventId: string): Promise<void>;
20206
+
20187
20207
  /**
20188
20208
  * Filter work order operation events
20189
20209
  */
@@ -21081,6 +21101,44 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
21081
21101
  return Promise.resolve<void>(null as any);
21082
21102
  }
21083
21103
 
21104
+ /**
21105
+ * Delete existing work order operation event.
21106
+ */
21107
+ deleteWorkorderOperationEventById(eventId: string): Promise<void> {
21108
+ let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
21109
+ if (eventId === undefined || eventId === null)
21110
+ throw new Error("The parameter 'eventId' must be defined.");
21111
+ url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
21112
+ url_ = url_.replace(/[?&]$/, "");
21113
+
21114
+ let options_: RequestInit = {
21115
+ method: "DELETE",
21116
+ headers: {
21117
+ }
21118
+ };
21119
+
21120
+ return this.transformOptions(options_).then(transformedOptions_ => {
21121
+ return this.http.fetch(url_, transformedOptions_);
21122
+ }).then((_response: Response) => {
21123
+ return this.processDeleteWorkorderOperationEventById(_response);
21124
+ });
21125
+ }
21126
+
21127
+ protected processDeleteWorkorderOperationEventById(response: Response): Promise<void> {
21128
+ const status = response.status;
21129
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21130
+ if (status === 204) {
21131
+ return response.text().then((_responseText) => {
21132
+ return;
21133
+ });
21134
+ } else if (status !== 200 && status !== 204) {
21135
+ return response.text().then((_responseText) => {
21136
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21137
+ });
21138
+ }
21139
+ return Promise.resolve<void>(null as any);
21140
+ }
21141
+
21084
21142
  /**
21085
21143
  * Filter work order operation events
21086
21144
  */
@@ -40439,6 +40497,93 @@ export interface IUpdateMesLink {
40439
40497
  companyId?: string | null;
40440
40498
  }
40441
40499
 
40500
+ export class GeneratePrintableLabel implements IGeneratePrintableLabel {
40501
+ labelIds!: LabelId[];
40502
+
40503
+ constructor(data?: IGeneratePrintableLabel) {
40504
+ if (data) {
40505
+ for (var property in data) {
40506
+ if (data.hasOwnProperty(property))
40507
+ (<any>this)[property] = (<any>data)[property];
40508
+ }
40509
+ }
40510
+ if (!data) {
40511
+ this.labelIds = [];
40512
+ }
40513
+ }
40514
+
40515
+ init(_data?: any) {
40516
+ if (_data) {
40517
+ if (Array.isArray(_data["labelIds"])) {
40518
+ this.labelIds = [] as any;
40519
+ for (let item of _data["labelIds"])
40520
+ this.labelIds!.push(LabelId.fromJS(item));
40521
+ }
40522
+ }
40523
+ }
40524
+
40525
+ static fromJS(data: any): GeneratePrintableLabel {
40526
+ data = typeof data === 'object' ? data : {};
40527
+ let result = new GeneratePrintableLabel();
40528
+ result.init(data);
40529
+ return result;
40530
+ }
40531
+
40532
+ toJSON(data?: any) {
40533
+ data = typeof data === 'object' ? data : {};
40534
+ if (Array.isArray(this.labelIds)) {
40535
+ data["labelIds"] = [];
40536
+ for (let item of this.labelIds)
40537
+ data["labelIds"].push(item.toJSON());
40538
+ }
40539
+ return data;
40540
+ }
40541
+ }
40542
+
40543
+ export interface IGeneratePrintableLabel {
40544
+ labelIds: LabelId[];
40545
+ }
40546
+
40547
+ export class LabelId implements ILabelId {
40548
+ parcelId!: string;
40549
+ trackingId?: string | null;
40550
+
40551
+ constructor(data?: ILabelId) {
40552
+ if (data) {
40553
+ for (var property in data) {
40554
+ if (data.hasOwnProperty(property))
40555
+ (<any>this)[property] = (<any>data)[property];
40556
+ }
40557
+ }
40558
+ }
40559
+
40560
+ init(_data?: any) {
40561
+ if (_data) {
40562
+ this.parcelId = _data["parcelId"];
40563
+ this.trackingId = _data["trackingId"];
40564
+ }
40565
+ }
40566
+
40567
+ static fromJS(data: any): LabelId {
40568
+ data = typeof data === 'object' ? data : {};
40569
+ let result = new LabelId();
40570
+ result.init(data);
40571
+ return result;
40572
+ }
40573
+
40574
+ toJSON(data?: any) {
40575
+ data = typeof data === 'object' ? data : {};
40576
+ data["parcelId"] = this.parcelId;
40577
+ data["trackingId"] = this.trackingId;
40578
+ return data;
40579
+ }
40580
+ }
40581
+
40582
+ export interface ILabelId {
40583
+ parcelId: string;
40584
+ trackingId?: string | null;
40585
+ }
40586
+
40442
40587
  export class ProductionOrderDto implements IProductionOrderDto {
40443
40588
  id!: string;
40444
40589
  companyId!: string;
@@ -41815,93 +41960,6 @@ export interface IProductionOrderOperationActivityDto {
41815
41960
 
41816
41961
  export type WorkTypeDto = "None" | "Production" | "Setup";
41817
41962
 
41818
- export class GeneratePrintableLabel implements IGeneratePrintableLabel {
41819
- labelIds!: LabelId[];
41820
-
41821
- constructor(data?: IGeneratePrintableLabel) {
41822
- if (data) {
41823
- for (var property in data) {
41824
- if (data.hasOwnProperty(property))
41825
- (<any>this)[property] = (<any>data)[property];
41826
- }
41827
- }
41828
- if (!data) {
41829
- this.labelIds = [];
41830
- }
41831
- }
41832
-
41833
- init(_data?: any) {
41834
- if (_data) {
41835
- if (Array.isArray(_data["labelIds"])) {
41836
- this.labelIds = [] as any;
41837
- for (let item of _data["labelIds"])
41838
- this.labelIds!.push(LabelId.fromJS(item));
41839
- }
41840
- }
41841
- }
41842
-
41843
- static fromJS(data: any): GeneratePrintableLabel {
41844
- data = typeof data === 'object' ? data : {};
41845
- let result = new GeneratePrintableLabel();
41846
- result.init(data);
41847
- return result;
41848
- }
41849
-
41850
- toJSON(data?: any) {
41851
- data = typeof data === 'object' ? data : {};
41852
- if (Array.isArray(this.labelIds)) {
41853
- data["labelIds"] = [];
41854
- for (let item of this.labelIds)
41855
- data["labelIds"].push(item.toJSON());
41856
- }
41857
- return data;
41858
- }
41859
- }
41860
-
41861
- export interface IGeneratePrintableLabel {
41862
- labelIds: LabelId[];
41863
- }
41864
-
41865
- export class LabelId implements ILabelId {
41866
- parcelId!: string;
41867
- trackingId?: string | null;
41868
-
41869
- constructor(data?: ILabelId) {
41870
- if (data) {
41871
- for (var property in data) {
41872
- if (data.hasOwnProperty(property))
41873
- (<any>this)[property] = (<any>data)[property];
41874
- }
41875
- }
41876
- }
41877
-
41878
- init(_data?: any) {
41879
- if (_data) {
41880
- this.parcelId = _data["parcelId"];
41881
- this.trackingId = _data["trackingId"];
41882
- }
41883
- }
41884
-
41885
- static fromJS(data: any): LabelId {
41886
- data = typeof data === 'object' ? data : {};
41887
- let result = new LabelId();
41888
- result.init(data);
41889
- return result;
41890
- }
41891
-
41892
- toJSON(data?: any) {
41893
- data = typeof data === 'object' ? data : {};
41894
- data["parcelId"] = this.parcelId;
41895
- data["trackingId"] = this.trackingId;
41896
- return data;
41897
- }
41898
- }
41899
-
41900
- export interface ILabelId {
41901
- parcelId: string;
41902
- trackingId?: string | null;
41903
- }
41904
-
41905
41963
  export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
41906
41964
  results!: ProductionScheduleOperationDto[];
41907
41965
  continuationToken?: string | null;