File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed
Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ import { GraphQLClient } from 'graphql-request';
55import { fetchUserContacts } from './fetchUserContacts.js' ;
66import { fetchMyContacts } from './fetchMyContacts.js' ;
77import { sendTelegram } from './sendTelegram.js' ;
8- import {
9- sendTelegramCampaign ,
10- SendTelegramCampaignParams ,
11- SendTelegramCampaignResponse ,
12- } from './sendTelegramCampaign.js' ;
8+ import { sendTelegramCampaign } from './sendTelegramCampaign.js' ;
139import {
1410 Contact ,
1511 FetchUserContactsParams ,
@@ -21,6 +17,8 @@ import {
2117 SendTelegramResponse ,
2218 PrepareTelegramCampaignResponse ,
2319 PrepareTelegramCampaignParams ,
20+ SendTelegramCampaignParams ,
21+ SendTelegramCampaignResponse ,
2422} from './types.js' ;
2523import { getChainDefaultConfig } from '../config/config.js' ;
2624import { isValidProvider } from '../utils/validators.js' ;
Original file line number Diff line number Diff line change @@ -12,22 +12,13 @@ import {
1212 ProcessBulkRequestResponse ,
1313} from '@iexec/dataprotector' ;
1414import { ValidationError } from 'yup' ;
15+ import {
16+ SendTelegramCampaignParams ,
17+ SendTelegramCampaignResponse ,
18+ } from './types.js' ;
1519
1620export type BulkRequestConsumer = { campaignRequest : BulkRequest } ;
1721
18- export type SendTelegramCampaignResponse = {
19- tasks : {
20- bulkIndex : number ;
21- taskId : string ;
22- dealId : string ;
23- } [ ] ;
24- } ;
25-
26- export type SendTelegramCampaignParams = {
27- campaignRequest : BulkRequest ;
28- workerpoolAddressOrEns ?: string ;
29- } ;
30-
3122export type SendTelegramCampaign = typeof sendTelegramCampaign ;
3223
3324export const sendTelegramCampaign = async ( {
Original file line number Diff line number Diff line change @@ -121,6 +121,19 @@ export type PrepareTelegramCampaignResponse = {
121121 campaignRequest : BulkRequest ;
122122} ;
123123
124+ export type SendTelegramCampaignResponse = {
125+ tasks : {
126+ bulkIndex : number ;
127+ taskId : string ;
128+ dealId : string ;
129+ } [ ] ;
130+ } ;
131+
132+ export type SendTelegramCampaignParams = {
133+ campaignRequest : BulkRequest ;
134+ workerpoolAddressOrEns ?: string ;
135+ } ;
136+
124137/**
125138 * Configuration options for web3telegram.
126139 */
You can’t perform that action at this time.
0 commit comments