-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.ts
33 lines (30 loc) · 1.02 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { ScheduleObject } from '../../common/types'
import type { MessagesObject, MessagesSendObject } from '../types'
/**
* Request body for create scheduled messages.
*
* {@link https://www.braze.com/docs/api/endpoints/messaging/schedule_messages/post_schedule_messages/#request-body}
*/
export interface MessagesScheduleCreateObject
extends Omit<MessagesSendObject, 'override_frequency_capping'> {
override_messaging_limits?: boolean
schedule: ScheduleObject
}
/**
* Request body for delete scheduled messages.
*
* {@link https://www.braze.com/docs/api/endpoints/messaging/schedule_messages/post_delete_scheduled_messages/#request-body}
*/
export interface MessagesScheduleDeleteObject {
schedule_id: string
}
/**
* Request body for update scheduled messages.
*
* {@link https://www.braze.com/docs/api/endpoints/messaging/schedule_messages/post_update_scheduled_messages/#request-body}
*/
export interface MessagesScheduleUpdateObject {
schedule_id: string
schedule?: ScheduleObject
messages?: MessagesObject
}