@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.89",
2
+ "version": "1.0.90",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -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
@@ -213,3 +213,4 @@ export * from './translations';
213
213
  export * from './v4PricingTool';
214
214
  export * from './accessKey';
215
215
  export * from './pinLookup';
216
+ export * from './ISendEmail';
package/types/index.ts CHANGED
@@ -232,3 +232,4 @@ export * from './translations'
232
232
  export * from './v4PricingTool'
233
233
  export * from './accessKey'
234
234
  export * from './pinLookup'
235
+ export * from './ISendEmail'