@fragus/sam-types 1.0.35 → 1.0.37

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.35",
2
+ "version": "1.0.37",
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'
@@ -1,10 +1,5 @@
1
1
  import { TCurrency } from '../types/currency'
2
2
 
3
- /**
4
- * @deprecated (Since 20222-08-31) Please use the own local config (cfgCountries or supportedCountries (in src/config)) file instead. (This is set individually on each repo: API, Admin and SuperAdmin for finer control.)
5
- */
6
- export type IsoCountryCodeSupported = 'DK' | 'SE' | 'FI'
7
-
8
3
  /**
9
4
  * ISO 3166-1 two letter (Alpha-2) codes for countries.
10
5
  *
@@ -5,14 +5,23 @@ import { TIsoCountry } from './country';
5
5
  export interface DashboardBannerRequest {
6
6
  text: string;
7
7
  countryIso: TIsoCountry;
8
- startDate: Date;
9
- endDate: Date;
8
+ /**
9
+ * ISO date string (YYYY-MM-DD) for the start date of the banner
10
+ */
11
+ startDate: string;
12
+ /**
13
+ * ISO date string (YYYY-MM-DD) for the end date of the banner
14
+ */
15
+ endDate: string;
10
16
  }
11
17
  /**
12
18
  * Response body for retrieving a dashboard banner (Superadmin)
13
19
  */
14
20
  export interface DashboardBannerResponse extends DashboardBannerRequest {
15
21
  id: number;
22
+ /**
23
+ * Email of the user who last updated the banner
24
+ */
16
25
  updatedByUser: string;
17
26
  }
18
27
  /**
@@ -6,8 +6,14 @@ import { TIsoCountry } from './country'
6
6
  export interface DashboardBannerRequest {
7
7
  text: string
8
8
  countryIso: TIsoCountry
9
- startDate: Date
10
- endDate: Date
9
+ /**
10
+ * ISO date string (YYYY-MM-DD) for the start date of the banner
11
+ */
12
+ startDate: string
13
+ /**
14
+ * ISO date string (YYYY-MM-DD) for the end date of the banner
15
+ */
16
+ endDate: string
11
17
  }
12
18
 
13
19
  /**
@@ -15,6 +21,9 @@ export interface DashboardBannerRequest {
15
21
  */
16
22
  export interface DashboardBannerResponse extends DashboardBannerRequest {
17
23
  id: number
24
+ /**
25
+ * Email of the user who last updated the banner
26
+ */
18
27
  updatedByUser: string
19
28
  }
20
29