@fragus/sam-types 1.0.91 → 1.0.93
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/admin/user/user.d.ts +3 -0
- package/types/index.d.ts +1 -1
- package/types/index.ts +1 -1
- package/types/superAdminUser.d.ts +5 -2
- package/types/websocket.d.ts +0 -27
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
|
@@ -206,7 +206,6 @@ export * from './vehicle';
|
|
|
206
206
|
export * from './vehiclePartial';
|
|
207
207
|
export * from './vehicleContracts';
|
|
208
208
|
export * from './webcalc';
|
|
209
|
-
export * from './websocket';
|
|
210
209
|
export * from './workshopOperation';
|
|
211
210
|
export * from './releaseNotes';
|
|
212
211
|
export * from './paymentFailureReason';
|
|
@@ -214,3 +213,4 @@ export * from './translations';
|
|
|
214
213
|
export * from './v4PricingTool';
|
|
215
214
|
export * from './accessKey';
|
|
216
215
|
export * from './pinLookup';
|
|
216
|
+
export * from './ISendEmail';
|
package/types/index.ts
CHANGED
|
@@ -225,7 +225,6 @@ export * from './vehicle'
|
|
|
225
225
|
export * from './vehiclePartial'
|
|
226
226
|
export * from './vehicleContracts'
|
|
227
227
|
export * from './webcalc'
|
|
228
|
-
export * from './websocket'
|
|
229
228
|
export * from './workshopOperation'
|
|
230
229
|
export * from './releaseNotes'
|
|
231
230
|
export * from './paymentFailureReason'
|
|
@@ -233,3 +232,4 @@ export * from './translations'
|
|
|
233
232
|
export * from './v4PricingTool'
|
|
234
233
|
export * from './accessKey'
|
|
235
234
|
export * from './pinLookup'
|
|
235
|
+
export * from './ISendEmail'
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { IUserResponse } from './user'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type ISuperAdminUserListItem = IUserResponse & {
|
|
4
4
|
userLastSeen: Date | null
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type ISuperAdminUserResponse = ISuperAdminUserListItem & {
|
|
5
8
|
restrictToTheseCountries: number[]
|
|
6
9
|
}
|
|
7
10
|
|
|
@@ -30,6 +33,6 @@ export interface ISuperAdminUserRequestGet {
|
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
export interface IPaginatedSuperAdminUserResponse {
|
|
33
|
-
data:
|
|
36
|
+
data: ISuperAdminUserListItem[]
|
|
34
37
|
nextCursor: number | null
|
|
35
38
|
}
|
package/types/websocket.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type WSProviderEventType = 'provider:updated' | 'provider:created' | 'provider:deleted' | 'provider:stateChanged'
|
|
2
|
-
export type WSRoleEventType = 'roles:changed'
|
|
3
|
-
export type WSEventType = WSProviderEventType | WSRoleEventType
|
|
4
|
-
|
|
5
|
-
export interface IWSProviderMessage {
|
|
6
|
-
type: WSProviderEventType
|
|
7
|
-
providerId: number
|
|
8
|
-
timestamp: number
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IWSRolesMessage {
|
|
12
|
-
type: 'roles:changed'
|
|
13
|
-
userId: number
|
|
14
|
-
timestamp: number
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type WSServerMessage = IWSProviderMessage | IWSRolesMessage
|
|
18
|
-
|
|
19
|
-
export interface IWSControlMessage {
|
|
20
|
-
type: 'pong' | 'auth:expired' | 'error'
|
|
21
|
-
message?: string
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IWSClientMessage {
|
|
25
|
-
type: 'ping' | 'auth:renew'
|
|
26
|
-
token?: string
|
|
27
|
-
}
|