@fragus/sam-types 1.0.37 → 1.0.38

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.37",
2
+ "version": "1.0.38",
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
- }
@@ -10,7 +10,7 @@ import { PaymentGateway } from './../../payment'
10
10
  import { PriceSpecification } from './../../priceSpecification'
11
11
 
12
12
  export interface IEssentialVehicle {
13
- registrationDate: Date | string
13
+ registrationDate?: Date | string
14
14
  modelYear: number
15
15
  vin: string
16
16
  registrationNumber: string
@@ -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
@@ -60,7 +60,7 @@ export interface Vehicle {
60
60
  export interface IVehicleInfo {
61
61
  // Here we implement based on a lookup on BG64770
62
62
  vehicleRegistryId?: number
63
- registration: string // registration: 'BG64770',
63
+ registration?: string // registration: 'BG64770',
64
64
  vin: string // vin: 'VF3CCHMZ6GT105374',
65
65
  // type: string // NOTE: Not same as vehicleType, this is vehicle type description like 'GTE Plug-In Hybrid 150 kW (204 hv) DSG-automaatti 4-ovinen'.
66
66
  // @note param "type" renamed to "versionModelType" to avoid confusion with vehicleType