@fragus/sam-types 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/ISendEmail.d.ts +36 -0
- package/types/index.d.ts +1 -0
- package/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IUserResponse } from './user'
|
|
2
|
+
|
|
3
|
+
export type ISendEmailUserResponse = IUserResponse & {
|
|
4
|
+
providerIds: number[]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface ISendEmailRequest {
|
|
8
|
+
subject: string
|
|
9
|
+
message: string
|
|
10
|
+
attachment: ISendEmailAttachment | null
|
|
11
|
+
recipients?: string[]
|
|
12
|
+
providerIds?: number[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ISendEmailUserRequestPost {
|
|
16
|
+
providerIds: number[]
|
|
17
|
+
limit: number
|
|
18
|
+
cursor?: number
|
|
19
|
+
search?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ISendEmailAttachment {
|
|
23
|
+
name: string
|
|
24
|
+
content: string // base64
|
|
25
|
+
contentType: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ISendEmailFormValues {
|
|
29
|
+
subject: string
|
|
30
|
+
message: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface IPaginatedSendEmailUserResponse {
|
|
34
|
+
data: ISendEmailUserResponse[]
|
|
35
|
+
nextCursor: number | null
|
|
36
|
+
}
|
package/types/index.d.ts
CHANGED
package/types/index.ts
CHANGED