@fragus/sam-types 1.0.49 → 1.0.51

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.49",
2
+ "version": "1.0.51",
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",
@@ -17,8 +17,3 @@ export interface IUserListRecord {
17
17
  localeCode?: string
18
18
  departmentName?: string
19
19
  }
20
-
21
- export interface IUserListRecordWithProvider extends IUserListRecord {
22
- providerId: number
23
- providerName: string
24
- }
@@ -1,24 +1,16 @@
1
1
  export interface IBlacklistedVehicleRequest {
2
- brand: string
3
- model: string
4
- fuelType: string
5
- providerIds: {
6
- add: number[]
7
- remove: number[]
8
- }
2
+ id?: number
3
+ brand: string
4
+ model: string
5
+ fuelType: string
9
6
  }
10
7
 
11
8
  export interface IBlacklistedVehicleResponse {
12
- id: number
13
- brand: string
14
- model: string
15
- fuelType: string
16
- parentRecord?: boolean
9
+ id: number
10
+ brand: string
11
+ model: string
12
+ fuelType: string
13
+ parentRecord?: boolean
17
14
  }
18
15
 
19
- export interface IBlacklistedVehicleListRecord extends IBlacklistedVehicleResponse {
20
- providerId: number
21
- providerName: string
22
- }
23
-
24
- export type BlacklistedVehicleOrderByType = 'id' | 'brand' | 'model' | 'fuelType'
16
+ export type BlacklistedVehicleOrderByType = keyof IBlacklistedVehicleRequest
@@ -0,0 +1,35 @@
1
+ import { IUserResponse } from './user'
2
+
3
+ export type ISuperAdminUserResponse = IUserResponse & {
4
+ userLastSeen: Date | null
5
+ restrictToTheseCountries: string[]
6
+ }
7
+
8
+ export interface ISuperAdminUserRequest {
9
+ email: string
10
+ restrictToTheseCountries: string[]
11
+ contactPerson: {
12
+ name: string
13
+ email: string
14
+ phone: string
15
+ address: {
16
+ address1: string
17
+ address2?: string
18
+ city: string
19
+ postalCode: string
20
+ countryIsoName: string
21
+ }
22
+ }
23
+ }
24
+
25
+ export interface ISuperAdminUserRequestGet {
26
+ search?: string
27
+ country?: string
28
+ limit: number
29
+ cursor?: number
30
+ }
31
+
32
+ export interface IPaginatedSuperAdminUserResponse {
33
+ data: ISuperAdminUserResponse[]
34
+ nextCursor: number | null
35
+ }
@@ -36,3 +36,10 @@ export interface ILocaleTranslation {
36
36
  export interface ITranslation {
37
37
  [key: string]: string
38
38
  }
39
+
40
+ export type TTranslationSearchOptions = 'searchValuesToo' | 'matchCase' | 'wholeWord'
41
+
42
+ export interface ITranslationSearchOptions {
43
+ enabled: TTranslationSearchOptions[]
44
+ applications: ITranslationApplication[]
45
+ }