@fragus/sam-types 1.0.89 → 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 -0
- package/types/index.ts +1 -0
- package/types/superAdminUser.d.ts +2 -5
- package/types/websocket.d.ts +27 -0
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';
|
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'
|
|
@@ -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
|
+
}
|