@fragus/sam-types 1.0.90 → 1.0.91
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/index.d.ts +1 -1
- package/types/index.ts +1 -1
- package/types/superAdminUser.d.ts +2 -5
- package/types/websocket.d.ts +27 -0
- package/types/ISendEmail.d.ts +0 -36
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export * from './vehicle';
|
|
|
206
206
|
export * from './vehiclePartial';
|
|
207
207
|
export * from './vehicleContracts';
|
|
208
208
|
export * from './webcalc';
|
|
209
|
+
export * from './websocket';
|
|
209
210
|
export * from './workshopOperation';
|
|
210
211
|
export * from './releaseNotes';
|
|
211
212
|
export * from './paymentFailureReason';
|
|
@@ -213,4 +214,3 @@ export * from './translations';
|
|
|
213
214
|
export * from './v4PricingTool';
|
|
214
215
|
export * from './accessKey';
|
|
215
216
|
export * from './pinLookup';
|
|
216
|
-
export * from './ISendEmail';
|
package/types/index.ts
CHANGED
|
@@ -225,6 +225,7 @@ export * from './vehicle'
|
|
|
225
225
|
export * from './vehiclePartial'
|
|
226
226
|
export * from './vehicleContracts'
|
|
227
227
|
export * from './webcalc'
|
|
228
|
+
export * from './websocket'
|
|
228
229
|
export * from './workshopOperation'
|
|
229
230
|
export * from './releaseNotes'
|
|
230
231
|
export * from './paymentFailureReason'
|
|
@@ -232,4 +233,3 @@ export * from './translations'
|
|
|
232
233
|
export * from './v4PricingTool'
|
|
233
234
|
export * from './accessKey'
|
|
234
235
|
export * from './pinLookup'
|
|
235
|
-
export * from './ISendEmail'
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { IUserResponse } from './user'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type ISuperAdminUserResponse = IUserResponse & {
|
|
4
4
|
userLastSeen: Date | null
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type ISuperAdminUserResponse = ISuperAdminUserListItem & {
|
|
8
5
|
restrictToTheseCountries: number[]
|
|
9
6
|
}
|
|
10
7
|
|
|
@@ -33,6 +30,6 @@ export interface ISuperAdminUserRequestGet {
|
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
export interface IPaginatedSuperAdminUserResponse {
|
|
36
|
-
data:
|
|
33
|
+
data: ISuperAdminUserResponse[]
|
|
37
34
|
nextCursor: number | null
|
|
38
35
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
package/types/ISendEmail.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|