@fragus/sam-types 1.0.66 → 1.0.67

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.66",
2
+ "version": "1.0.67",
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,3 +17,8 @@ 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,16 +1,24 @@
1
1
  export interface IBlacklistedVehicleRequest {
2
- id?: number
3
- brand: string
4
- model: string
5
- fuelType: string
2
+ brand: string
3
+ model: string
4
+ fuelType: string
5
+ providerIds: {
6
+ add: number[]
7
+ remove: number[]
8
+ }
6
9
  }
7
10
 
8
11
  export interface IBlacklistedVehicleResponse {
9
- id: number
10
- brand: string
11
- model: string
12
- fuelType: string
13
- parentRecord?: boolean
12
+ id: number
13
+ brand: string
14
+ model: string
15
+ fuelType: string
16
+ parentRecord?: boolean
14
17
  }
15
18
 
16
- export type BlacklistedVehicleOrderByType = keyof IBlacklistedVehicleRequest
19
+ export interface IBlacklistedVehicleListRecord extends IBlacklistedVehicleResponse {
20
+ providerId: number
21
+ providerName: string
22
+ }
23
+
24
+ export type BlacklistedVehicleOrderByType = 'id' | 'brand' | 'model' | 'fuelType'
@@ -0,0 +1,14 @@
1
+ export interface ISiteInfoResponse {
2
+ SE: ISiteInfo
3
+ DK: ISiteInfo
4
+ FI: ISiteInfo
5
+ NO: ISiteInfo
6
+ }
7
+
8
+ export interface ISiteInfo {
9
+ address: string
10
+ city: string
11
+ postalCode: string
12
+ country: string
13
+ phone: string
14
+ }