Skip to content

Commit 122922e

Browse files
committed
chore: remove campaign status
1 parent 0df69e2 commit 122922e

File tree

1 file changed

+1
-76
lines changed

1 file changed

+1
-76
lines changed

campaign.asyncapi.yaml

Lines changed: 1 addition & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ channels:
2121
CampaignExecute:
2222
$ref: '#/components/messages/CampaignExecute'
2323

24-
campaign.status:
25-
address: campaign.status
26-
messages:
27-
CampaignStatusUpdate:
28-
$ref: '#/components/messages/CampaignStatusUpdate'
29-
3024
user.info.request:
3125
address: user.info.request
3226
parameters:
@@ -70,14 +64,6 @@ operations:
7064
messages:
7165
- $ref: '#/channels/campaign.execute/messages/CampaignExecute'
7266

73-
sendCampaignStatus:
74-
action: send
75-
channel:
76-
$ref: '#/channels/campaign.status'
77-
summary: Send campaign status updates
78-
messages:
79-
- $ref: '#/channels/campaign.status/messages/CampaignStatusUpdate'
80-
8167
requestUserInfo:
8268
action: send
8369
channel:
@@ -188,67 +174,6 @@ components:
188174
- campaign_id
189175
- execution_type
190176

191-
CampaignStatusUpdate:
192-
name: CampaignStatusUpdate
193-
title: Campaign Status Update Message
194-
summary: Message for updating campaign execution status
195-
contentType: application/json
196-
payload:
197-
type: object
198-
properties:
199-
execution_id:
200-
type: string
201-
format: uuid
202-
description: ID of the campaign execution
203-
campaign_id:
204-
type: string
205-
format: uuid
206-
description: ID of the campaign
207-
status:
208-
type: string
209-
enum: [pending, running, completed, failed, paused, cancelled]
210-
description: Current status of the campaign execution
211-
progress:
212-
type: object
213-
properties:
214-
total_targets:
215-
type: integer
216-
description: Total number of users targeted
217-
sent:
218-
type: integer
219-
description: Number of notifications sent
220-
failed:
221-
type: integer
222-
description: Number of notifications that failed
223-
success_rate:
224-
type: number
225-
format: float
226-
minimum: 0
227-
maximum: 1
228-
description: Success rate as a percentage
229-
required:
230-
- total_targets
231-
- sent
232-
- failed
233-
error:
234-
type: object
235-
properties:
236-
code:
237-
type: string
238-
description: Error code
239-
message:
240-
type: string
241-
description: Error message
242-
updated_at:
243-
type: string
244-
format: date-time
245-
description: When the status was updated
246-
required:
247-
- execution_id
248-
- campaign_id
249-
- status
250-
- updated_at
251-
252177
UserInfoRequest:
253178
name: UserInfoRequest
254179
title: User Information Request Message
@@ -565,4 +490,4 @@ components:
565490
default: production
566491
required:
567492
- source
568-
- environment
493+
- environment

0 commit comments

Comments
 (0)