@skravets/eapi 0.0.56 → 0.0.58

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.
@@ -101,6 +101,22 @@ interface paths {
101
101
  /** Get common chats between account and user (async with webhook) */
102
102
  post: operations["accounts.getCommonChats"];
103
103
  };
104
+ "/send-tasks/cancel": {
105
+ /** Cancel send tasks by filter */
106
+ post: operations["sendTasks.cancel"];
107
+ };
108
+ "/send-tasks/restore": {
109
+ /** Restore cancelled send tasks by filter */
110
+ post: operations["sendTasks.restore"];
111
+ };
112
+ "/send-tasks/edit": {
113
+ /** Edit send tasks text by filter */
114
+ post: operations["sendTasks.edit"];
115
+ };
116
+ "/send-tasks/count": {
117
+ /** Count active send tasks by filter */
118
+ post: operations["sendTasks.count"];
119
+ };
104
120
  }
105
121
  /**
106
122
  * Сгенерированные из OpenAPI типы для `components`
@@ -113,7 +129,7 @@ interface components {
113
129
  channel_id: number;
114
130
  /**
115
131
  * Format: date-time
116
- * @example 2026-02-20T13:43:55.470Z
132
+ * @example 2026-03-03T13:11:09.496Z
117
133
  */
118
134
  message_created_at: string;
119
135
  /** @example 123 */
@@ -877,6 +893,100 @@ interface components {
877
893
  */
878
894
  webhookUrl: string;
879
895
  };
896
+ SendTaskFilterDto: {
897
+ /**
898
+ * @description Filter by metadata key-value pairs
899
+ * @example {
900
+ * "agentId": 20
901
+ * }
902
+ */
903
+ metadata?: {
904
+ [key: string]: unknown;
905
+ };
906
+ /**
907
+ * @description Filter by chat ID
908
+ * @example -1001234567890
909
+ */
910
+ chatId?: number;
911
+ /**
912
+ * @description Filter by username
913
+ * @example somechannel
914
+ */
915
+ username?: string;
916
+ /**
917
+ * @description Filter by external ID
918
+ * @example ext-123
919
+ */
920
+ externalId?: string;
921
+ };
922
+ SendTaskFilterRequestDto: {
923
+ /** @description Send task filter */
924
+ filter: components["schemas"]["SendTaskFilterDto"];
925
+ };
926
+ CancelSendTasksResponseDto: {
927
+ /**
928
+ * @description Number of cancelled tasks
929
+ * @example 5
930
+ */
931
+ cancelledCount: number;
932
+ };
933
+ RestoreSendTasksResponseDto: {
934
+ /**
935
+ * @description Number of restored tasks
936
+ * @example 3
937
+ */
938
+ restoredCount: number;
939
+ };
940
+ TextReplaceDto: {
941
+ /**
942
+ * @description Text to replace
943
+ * @example old text
944
+ */
945
+ from: string;
946
+ /**
947
+ * @description Replacement text
948
+ * @example new text
949
+ */
950
+ to: string;
951
+ };
952
+ EditTextDto: {
953
+ replace: components["schemas"]["TextReplaceDto"];
954
+ };
955
+ EditOperationDto: {
956
+ text: components["schemas"]["EditTextDto"];
957
+ };
958
+ EditSendTasksRequestDto: {
959
+ filter: components["schemas"]["SendTaskFilterDto"];
960
+ edit: components["schemas"]["EditOperationDto"];
961
+ /**
962
+ * @description Dry run — only count matched tasks without updating
963
+ * @default false
964
+ * @example false
965
+ */
966
+ dryRun: boolean;
967
+ };
968
+ EditSendTasksResponseDto: {
969
+ /**
970
+ * @description Number of updated (or matched in dry-run) tasks
971
+ * @example 7
972
+ */
973
+ updatedCount: number;
974
+ };
975
+ CountSendTasksRequestDto: {
976
+ filter: components["schemas"]["SendTaskFilterDto"];
977
+ /**
978
+ * @description Filter by message text substring
979
+ * @example promo
980
+ */
981
+ messageContains?: string;
982
+ };
983
+ CountSendTasksResponseDto: {
984
+ /**
985
+ * @description Count of matching active tasks
986
+ * @example 42
987
+ */
988
+ count: number;
989
+ };
880
990
  };
881
991
  }
882
992
  type $defs = Record<string, never>;
@@ -1619,6 +1729,162 @@ interface operations {
1619
1729
  };
1620
1730
  };
1621
1731
  };
1732
+ "sendTasks.cancel": {
1733
+ parameters: {
1734
+ header: {
1735
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1736
+ Authorization: string;
1737
+ };
1738
+ };
1739
+ requestBody: {
1740
+ content: {
1741
+ "application/json": components["schemas"]["SendTaskFilterRequestDto"];
1742
+ };
1743
+ };
1744
+ responses: {
1745
+ /** @description Tasks cancelled successfully */
1746
+ 200: {
1747
+ headers: {
1748
+ [name: string]: unknown;
1749
+ };
1750
+ content: {
1751
+ "application/json": components["schemas"]["CancelSendTasksResponseDto"];
1752
+ };
1753
+ };
1754
+ /** @description At least one filter field must be provided */
1755
+ 400: {
1756
+ headers: {
1757
+ [name: string]: unknown;
1758
+ };
1759
+ };
1760
+ /** @description Unauthorized */
1761
+ 401: {
1762
+ headers: {
1763
+ [name: string]: unknown;
1764
+ };
1765
+ };
1766
+ /** @description Farm processor not running */
1767
+ 503: {
1768
+ headers: {
1769
+ [name: string]: unknown;
1770
+ };
1771
+ };
1772
+ };
1773
+ };
1774
+ "sendTasks.restore": {
1775
+ parameters: {
1776
+ header: {
1777
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1778
+ Authorization: string;
1779
+ };
1780
+ };
1781
+ requestBody: {
1782
+ content: {
1783
+ "application/json": components["schemas"]["SendTaskFilterRequestDto"];
1784
+ };
1785
+ };
1786
+ responses: {
1787
+ /** @description Tasks restored successfully */
1788
+ 200: {
1789
+ headers: {
1790
+ [name: string]: unknown;
1791
+ };
1792
+ content: {
1793
+ "application/json": components["schemas"]["RestoreSendTasksResponseDto"];
1794
+ };
1795
+ };
1796
+ /** @description At least one filter field must be provided */
1797
+ 400: {
1798
+ headers: {
1799
+ [name: string]: unknown;
1800
+ };
1801
+ };
1802
+ /** @description Unauthorized */
1803
+ 401: {
1804
+ headers: {
1805
+ [name: string]: unknown;
1806
+ };
1807
+ };
1808
+ /** @description Farm processor not running */
1809
+ 503: {
1810
+ headers: {
1811
+ [name: string]: unknown;
1812
+ };
1813
+ };
1814
+ };
1815
+ };
1816
+ "sendTasks.edit": {
1817
+ parameters: {
1818
+ header: {
1819
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1820
+ Authorization: string;
1821
+ };
1822
+ };
1823
+ requestBody: {
1824
+ content: {
1825
+ "application/json": components["schemas"]["EditSendTasksRequestDto"];
1826
+ };
1827
+ };
1828
+ responses: {
1829
+ /** @description Tasks updated (or matched in dry-run mode) */
1830
+ 200: {
1831
+ headers: {
1832
+ [name: string]: unknown;
1833
+ };
1834
+ content: {
1835
+ "application/json": components["schemas"]["EditSendTasksResponseDto"];
1836
+ };
1837
+ };
1838
+ /** @description At least one filter field must be provided */
1839
+ 400: {
1840
+ headers: {
1841
+ [name: string]: unknown;
1842
+ };
1843
+ };
1844
+ /** @description Unauthorized */
1845
+ 401: {
1846
+ headers: {
1847
+ [name: string]: unknown;
1848
+ };
1849
+ };
1850
+ };
1851
+ };
1852
+ "sendTasks.count": {
1853
+ parameters: {
1854
+ header: {
1855
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1856
+ Authorization: string;
1857
+ };
1858
+ };
1859
+ requestBody: {
1860
+ content: {
1861
+ "application/json": components["schemas"]["CountSendTasksRequestDto"];
1862
+ };
1863
+ };
1864
+ responses: {
1865
+ /** @description Count of matching active tasks */
1866
+ 200: {
1867
+ headers: {
1868
+ [name: string]: unknown;
1869
+ };
1870
+ content: {
1871
+ "application/json": components["schemas"]["CountSendTasksResponseDto"];
1872
+ };
1873
+ };
1874
+ /** @description At least one filter field must be provided */
1875
+ 400: {
1876
+ headers: {
1877
+ [name: string]: unknown;
1878
+ };
1879
+ };
1880
+ /** @description Unauthorized */
1881
+ 401: {
1882
+ headers: {
1883
+ [name: string]: unknown;
1884
+ };
1885
+ };
1886
+ };
1887
+ };
1622
1888
  }
1623
1889
 
1624
1890
  export type { $defs, components, operations, paths };
@@ -101,6 +101,22 @@ interface paths {
101
101
  /** Get common chats between account and user (async with webhook) */
102
102
  post: operations["accounts.getCommonChats"];
103
103
  };
104
+ "/send-tasks/cancel": {
105
+ /** Cancel send tasks by filter */
106
+ post: operations["sendTasks.cancel"];
107
+ };
108
+ "/send-tasks/restore": {
109
+ /** Restore cancelled send tasks by filter */
110
+ post: operations["sendTasks.restore"];
111
+ };
112
+ "/send-tasks/edit": {
113
+ /** Edit send tasks text by filter */
114
+ post: operations["sendTasks.edit"];
115
+ };
116
+ "/send-tasks/count": {
117
+ /** Count active send tasks by filter */
118
+ post: operations["sendTasks.count"];
119
+ };
104
120
  }
105
121
  /**
106
122
  * Сгенерированные из OpenAPI типы для `components`
@@ -113,7 +129,7 @@ interface components {
113
129
  channel_id: number;
114
130
  /**
115
131
  * Format: date-time
116
- * @example 2026-02-20T13:43:55.470Z
132
+ * @example 2026-03-03T13:11:09.496Z
117
133
  */
118
134
  message_created_at: string;
119
135
  /** @example 123 */
@@ -877,6 +893,100 @@ interface components {
877
893
  */
878
894
  webhookUrl: string;
879
895
  };
896
+ SendTaskFilterDto: {
897
+ /**
898
+ * @description Filter by metadata key-value pairs
899
+ * @example {
900
+ * "agentId": 20
901
+ * }
902
+ */
903
+ metadata?: {
904
+ [key: string]: unknown;
905
+ };
906
+ /**
907
+ * @description Filter by chat ID
908
+ * @example -1001234567890
909
+ */
910
+ chatId?: number;
911
+ /**
912
+ * @description Filter by username
913
+ * @example somechannel
914
+ */
915
+ username?: string;
916
+ /**
917
+ * @description Filter by external ID
918
+ * @example ext-123
919
+ */
920
+ externalId?: string;
921
+ };
922
+ SendTaskFilterRequestDto: {
923
+ /** @description Send task filter */
924
+ filter: components["schemas"]["SendTaskFilterDto"];
925
+ };
926
+ CancelSendTasksResponseDto: {
927
+ /**
928
+ * @description Number of cancelled tasks
929
+ * @example 5
930
+ */
931
+ cancelledCount: number;
932
+ };
933
+ RestoreSendTasksResponseDto: {
934
+ /**
935
+ * @description Number of restored tasks
936
+ * @example 3
937
+ */
938
+ restoredCount: number;
939
+ };
940
+ TextReplaceDto: {
941
+ /**
942
+ * @description Text to replace
943
+ * @example old text
944
+ */
945
+ from: string;
946
+ /**
947
+ * @description Replacement text
948
+ * @example new text
949
+ */
950
+ to: string;
951
+ };
952
+ EditTextDto: {
953
+ replace: components["schemas"]["TextReplaceDto"];
954
+ };
955
+ EditOperationDto: {
956
+ text: components["schemas"]["EditTextDto"];
957
+ };
958
+ EditSendTasksRequestDto: {
959
+ filter: components["schemas"]["SendTaskFilterDto"];
960
+ edit: components["schemas"]["EditOperationDto"];
961
+ /**
962
+ * @description Dry run — only count matched tasks without updating
963
+ * @default false
964
+ * @example false
965
+ */
966
+ dryRun: boolean;
967
+ };
968
+ EditSendTasksResponseDto: {
969
+ /**
970
+ * @description Number of updated (or matched in dry-run) tasks
971
+ * @example 7
972
+ */
973
+ updatedCount: number;
974
+ };
975
+ CountSendTasksRequestDto: {
976
+ filter: components["schemas"]["SendTaskFilterDto"];
977
+ /**
978
+ * @description Filter by message text substring
979
+ * @example promo
980
+ */
981
+ messageContains?: string;
982
+ };
983
+ CountSendTasksResponseDto: {
984
+ /**
985
+ * @description Count of matching active tasks
986
+ * @example 42
987
+ */
988
+ count: number;
989
+ };
880
990
  };
881
991
  }
882
992
  type $defs = Record<string, never>;
@@ -1619,6 +1729,162 @@ interface operations {
1619
1729
  };
1620
1730
  };
1621
1731
  };
1732
+ "sendTasks.cancel": {
1733
+ parameters: {
1734
+ header: {
1735
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1736
+ Authorization: string;
1737
+ };
1738
+ };
1739
+ requestBody: {
1740
+ content: {
1741
+ "application/json": components["schemas"]["SendTaskFilterRequestDto"];
1742
+ };
1743
+ };
1744
+ responses: {
1745
+ /** @description Tasks cancelled successfully */
1746
+ 200: {
1747
+ headers: {
1748
+ [name: string]: unknown;
1749
+ };
1750
+ content: {
1751
+ "application/json": components["schemas"]["CancelSendTasksResponseDto"];
1752
+ };
1753
+ };
1754
+ /** @description At least one filter field must be provided */
1755
+ 400: {
1756
+ headers: {
1757
+ [name: string]: unknown;
1758
+ };
1759
+ };
1760
+ /** @description Unauthorized */
1761
+ 401: {
1762
+ headers: {
1763
+ [name: string]: unknown;
1764
+ };
1765
+ };
1766
+ /** @description Farm processor not running */
1767
+ 503: {
1768
+ headers: {
1769
+ [name: string]: unknown;
1770
+ };
1771
+ };
1772
+ };
1773
+ };
1774
+ "sendTasks.restore": {
1775
+ parameters: {
1776
+ header: {
1777
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1778
+ Authorization: string;
1779
+ };
1780
+ };
1781
+ requestBody: {
1782
+ content: {
1783
+ "application/json": components["schemas"]["SendTaskFilterRequestDto"];
1784
+ };
1785
+ };
1786
+ responses: {
1787
+ /** @description Tasks restored successfully */
1788
+ 200: {
1789
+ headers: {
1790
+ [name: string]: unknown;
1791
+ };
1792
+ content: {
1793
+ "application/json": components["schemas"]["RestoreSendTasksResponseDto"];
1794
+ };
1795
+ };
1796
+ /** @description At least one filter field must be provided */
1797
+ 400: {
1798
+ headers: {
1799
+ [name: string]: unknown;
1800
+ };
1801
+ };
1802
+ /** @description Unauthorized */
1803
+ 401: {
1804
+ headers: {
1805
+ [name: string]: unknown;
1806
+ };
1807
+ };
1808
+ /** @description Farm processor not running */
1809
+ 503: {
1810
+ headers: {
1811
+ [name: string]: unknown;
1812
+ };
1813
+ };
1814
+ };
1815
+ };
1816
+ "sendTasks.edit": {
1817
+ parameters: {
1818
+ header: {
1819
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1820
+ Authorization: string;
1821
+ };
1822
+ };
1823
+ requestBody: {
1824
+ content: {
1825
+ "application/json": components["schemas"]["EditSendTasksRequestDto"];
1826
+ };
1827
+ };
1828
+ responses: {
1829
+ /** @description Tasks updated (or matched in dry-run mode) */
1830
+ 200: {
1831
+ headers: {
1832
+ [name: string]: unknown;
1833
+ };
1834
+ content: {
1835
+ "application/json": components["schemas"]["EditSendTasksResponseDto"];
1836
+ };
1837
+ };
1838
+ /** @description At least one filter field must be provided */
1839
+ 400: {
1840
+ headers: {
1841
+ [name: string]: unknown;
1842
+ };
1843
+ };
1844
+ /** @description Unauthorized */
1845
+ 401: {
1846
+ headers: {
1847
+ [name: string]: unknown;
1848
+ };
1849
+ };
1850
+ };
1851
+ };
1852
+ "sendTasks.count": {
1853
+ parameters: {
1854
+ header: {
1855
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
1856
+ Authorization: string;
1857
+ };
1858
+ };
1859
+ requestBody: {
1860
+ content: {
1861
+ "application/json": components["schemas"]["CountSendTasksRequestDto"];
1862
+ };
1863
+ };
1864
+ responses: {
1865
+ /** @description Count of matching active tasks */
1866
+ 200: {
1867
+ headers: {
1868
+ [name: string]: unknown;
1869
+ };
1870
+ content: {
1871
+ "application/json": components["schemas"]["CountSendTasksResponseDto"];
1872
+ };
1873
+ };
1874
+ /** @description At least one filter field must be provided */
1875
+ 400: {
1876
+ headers: {
1877
+ [name: string]: unknown;
1878
+ };
1879
+ };
1880
+ /** @description Unauthorized */
1881
+ 401: {
1882
+ headers: {
1883
+ [name: string]: unknown;
1884
+ };
1885
+ };
1886
+ };
1887
+ };
1622
1888
  }
1623
1889
 
1624
1890
  export type { $defs, components, operations, paths };
package/dist/index.cjs CHANGED
@@ -461,6 +461,67 @@ class EApi {
461
461
  });
462
462
  }
463
463
  };
464
+ /**
465
+ * @tags send-tasks
466
+ */
467
+ sendTasks = {
468
+ /**
469
+ *
470
+ *
471
+ * @tags send-tasks
472
+ * @summary Cancel send tasks by filter
473
+ *
474
+ * [Documentation](.../send-tasks/operation/sendTasks.cancel)
475
+ */
476
+ cancel: (body, options) => {
477
+ return this.request("/send-tasks/cancel", body, {
478
+ method: "POST",
479
+ ...options
480
+ });
481
+ },
482
+ /**
483
+ *
484
+ *
485
+ * @tags send-tasks
486
+ * @summary Restore cancelled send tasks by filter
487
+ *
488
+ * [Documentation](.../send-tasks/operation/sendTasks.restore)
489
+ */
490
+ restore: (body, options) => {
491
+ return this.request("/send-tasks/restore", body, {
492
+ method: "POST",
493
+ ...options
494
+ });
495
+ },
496
+ /**
497
+ *
498
+ *
499
+ * @tags send-tasks
500
+ * @summary Edit send tasks text by filter
501
+ *
502
+ * [Documentation](.../send-tasks/operation/sendTasks.edit)
503
+ */
504
+ edit: (body, options) => {
505
+ return this.request("/send-tasks/edit", body, {
506
+ method: "POST",
507
+ ...options
508
+ });
509
+ },
510
+ /**
511
+ *
512
+ *
513
+ * @tags send-tasks
514
+ * @summary Count active send tasks by filter
515
+ *
516
+ * [Documentation](.../send-tasks/operation/sendTasks.count)
517
+ */
518
+ count: (body, options) => {
519
+ return this.request("/send-tasks/count", body, {
520
+ method: "POST",
521
+ ...options
522
+ });
523
+ }
524
+ };
464
525
  /** @generated stop-generate-methods */
465
526
  }
466
527
 
package/dist/index.d.cts CHANGED
@@ -691,6 +691,47 @@ declare class EApi {
691
691
  */
692
692
  getCommonChats: (externalId: paths["/accounts/common-chats/{externalId}"]["post"]["parameters"]["path"]["externalId"], body: GetRequestBody<"/accounts/common-chats/{externalId}", "post">, options?: RequestOptions) => Promise<GetResponse<"/accounts/common-chats/{externalId}", "post">>;
693
693
  };
694
+ /**
695
+ * @tags send-tasks
696
+ */
697
+ sendTasks: {
698
+ /**
699
+ *
700
+ *
701
+ * @tags send-tasks
702
+ * @summary Cancel send tasks by filter
703
+ *
704
+ * [Documentation](.../send-tasks/operation/sendTasks.cancel)
705
+ */
706
+ cancel: (body: GetRequestBody<"/send-tasks/cancel", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/cancel", "post">>;
707
+ /**
708
+ *
709
+ *
710
+ * @tags send-tasks
711
+ * @summary Restore cancelled send tasks by filter
712
+ *
713
+ * [Documentation](.../send-tasks/operation/sendTasks.restore)
714
+ */
715
+ restore: (body: GetRequestBody<"/send-tasks/restore", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/restore", "post">>;
716
+ /**
717
+ *
718
+ *
719
+ * @tags send-tasks
720
+ * @summary Edit send tasks text by filter
721
+ *
722
+ * [Documentation](.../send-tasks/operation/sendTasks.edit)
723
+ */
724
+ edit: (body: GetRequestBody<"/send-tasks/edit", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/edit", "post">>;
725
+ /**
726
+ *
727
+ *
728
+ * @tags send-tasks
729
+ * @summary Count active send tasks by filter
730
+ *
731
+ * [Documentation](.../send-tasks/operation/sendTasks.count)
732
+ */
733
+ count: (body: GetRequestBody<"/send-tasks/count", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/count", "post">>;
734
+ };
694
735
  }
695
736
 
696
737
  export { EApi, type EApiOptions, webhookHandler };
package/dist/index.d.ts CHANGED
@@ -691,6 +691,47 @@ declare class EApi {
691
691
  */
692
692
  getCommonChats: (externalId: paths["/accounts/common-chats/{externalId}"]["post"]["parameters"]["path"]["externalId"], body: GetRequestBody<"/accounts/common-chats/{externalId}", "post">, options?: RequestOptions) => Promise<GetResponse<"/accounts/common-chats/{externalId}", "post">>;
693
693
  };
694
+ /**
695
+ * @tags send-tasks
696
+ */
697
+ sendTasks: {
698
+ /**
699
+ *
700
+ *
701
+ * @tags send-tasks
702
+ * @summary Cancel send tasks by filter
703
+ *
704
+ * [Documentation](.../send-tasks/operation/sendTasks.cancel)
705
+ */
706
+ cancel: (body: GetRequestBody<"/send-tasks/cancel", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/cancel", "post">>;
707
+ /**
708
+ *
709
+ *
710
+ * @tags send-tasks
711
+ * @summary Restore cancelled send tasks by filter
712
+ *
713
+ * [Documentation](.../send-tasks/operation/sendTasks.restore)
714
+ */
715
+ restore: (body: GetRequestBody<"/send-tasks/restore", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/restore", "post">>;
716
+ /**
717
+ *
718
+ *
719
+ * @tags send-tasks
720
+ * @summary Edit send tasks text by filter
721
+ *
722
+ * [Documentation](.../send-tasks/operation/sendTasks.edit)
723
+ */
724
+ edit: (body: GetRequestBody<"/send-tasks/edit", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/edit", "post">>;
725
+ /**
726
+ *
727
+ *
728
+ * @tags send-tasks
729
+ * @summary Count active send tasks by filter
730
+ *
731
+ * [Documentation](.../send-tasks/operation/sendTasks.count)
732
+ */
733
+ count: (body: GetRequestBody<"/send-tasks/count", "post">, options?: RequestOptions) => Promise<GetResponse<"/send-tasks/count", "post">>;
734
+ };
694
735
  }
695
736
 
696
737
  export { EApi, type EApiOptions, webhookHandler };
package/dist/index.js CHANGED
@@ -459,6 +459,67 @@ class EApi {
459
459
  });
460
460
  }
461
461
  };
462
+ /**
463
+ * @tags send-tasks
464
+ */
465
+ sendTasks = {
466
+ /**
467
+ *
468
+ *
469
+ * @tags send-tasks
470
+ * @summary Cancel send tasks by filter
471
+ *
472
+ * [Documentation](.../send-tasks/operation/sendTasks.cancel)
473
+ */
474
+ cancel: (body, options) => {
475
+ return this.request("/send-tasks/cancel", body, {
476
+ method: "POST",
477
+ ...options
478
+ });
479
+ },
480
+ /**
481
+ *
482
+ *
483
+ * @tags send-tasks
484
+ * @summary Restore cancelled send tasks by filter
485
+ *
486
+ * [Documentation](.../send-tasks/operation/sendTasks.restore)
487
+ */
488
+ restore: (body, options) => {
489
+ return this.request("/send-tasks/restore", body, {
490
+ method: "POST",
491
+ ...options
492
+ });
493
+ },
494
+ /**
495
+ *
496
+ *
497
+ * @tags send-tasks
498
+ * @summary Edit send tasks text by filter
499
+ *
500
+ * [Documentation](.../send-tasks/operation/sendTasks.edit)
501
+ */
502
+ edit: (body, options) => {
503
+ return this.request("/send-tasks/edit", body, {
504
+ method: "POST",
505
+ ...options
506
+ });
507
+ },
508
+ /**
509
+ *
510
+ *
511
+ * @tags send-tasks
512
+ * @summary Count active send tasks by filter
513
+ *
514
+ * [Documentation](.../send-tasks/operation/sendTasks.count)
515
+ */
516
+ count: (body, options) => {
517
+ return this.request("/send-tasks/count", body, {
518
+ method: "POST",
519
+ ...options
520
+ });
521
+ }
522
+ };
462
523
  /** @generated stop-generate-methods */
463
524
  }
464
525
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",