-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
65 lines (62 loc) · 1.32 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export interface MessagePayload {
from?: string,
to: string|string[],
text: string,
reference: string,
date?: string,
time?: string,
repeat?: 'hourly'|'daily'|'weekly'|'monthly',
start_date?: string,
end_date?: string,
}
export interface MessagesPayload {
messages: Omit<MessagePayload, "reference">[],
reference: string,
}
export interface ReportsPayload {
size?: number,
sender?: string,
messageId?: string,
/**
* @deprecated will be deprecated in the next minor upgrade
*/
sentSince?: string,
/**
* @deprecated will be deprecated in the next minor upgrade
*/
sentUntil?: string,
/**
* @deprecated use {@link ReportsPayload.messageId} instead
*/
reference?: string,
}
export interface LogsPayload {
/**
* Sender ID name
*/
from?: string,
/**
* Number of results. Maximum allowed is 500
*/
limit?: number,
/**
* To skip a given number of results in the report
*/
offset?: number,
/**
* Destination (Phone number starting with 255)
*/
to?: string,
/**
* Lower limit on date and time of sending SMS
*/
sentSince?: string,
/**
* Upper limit on date and time of sending SMS
*/
sentUntil?: string,
/**
* Special value used when sending a message to associate the sent message with specific values
*/
reference?: string,
}