fix: close sms scheduling and billing gaps
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { TenantId } from '../common/tenant-id.decorator';
|
||||
import { CreateBatchTaskDto, SendChainService } from './send-chain.service';
|
||||
import { ConfirmImportDto, CreateBatchTaskDto, ImportPreviewDto, SendChainService } from './send-chain.service';
|
||||
|
||||
@ApiTags('client-send-chain')
|
||||
@Controller('client/send')
|
||||
@@ -13,6 +13,16 @@ export class ClientSendChainController {
|
||||
return this.sendChain.createBatchTask(body);
|
||||
}
|
||||
|
||||
@Post('imports/preview')
|
||||
previewImport(@Body() body: ImportPreviewDto) {
|
||||
return this.sendChain.previewImport(body);
|
||||
}
|
||||
|
||||
@Post('imports/confirm')
|
||||
confirmImport(@Body() body: ConfirmImportDto) {
|
||||
return this.sendChain.confirmImport(body);
|
||||
}
|
||||
|
||||
@Get('batch-tasks')
|
||||
listBatchTasks(@TenantId() tenantId?: string, @Query('status') status?: string) {
|
||||
return this.sendChain.listBatchTasks(tenantId, status);
|
||||
@@ -27,5 +37,9 @@ export class ClientSendChainController {
|
||||
listTaskMessages(@Param('id') taskId: string) {
|
||||
return this.sendChain.listMessages(taskId);
|
||||
}
|
||||
}
|
||||
|
||||
@Post('batch-tasks/:id/cancel')
|
||||
cancelBatchTask(@Param('id') taskId: string) {
|
||||
return this.sendChain.cancelBatchTask(taskId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user