@fragus/sam-types 1.0.34 → 1.0.35

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.34",
2
+ "version": "1.0.35",
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",
@@ -1,18 +1,19 @@
1
+ import { TIsoCountry } from './country';
1
2
  /**
2
3
  * Request body for creating or updating a dashboard banner (Superadmin)
3
4
  */
4
5
  export interface DashboardBannerRequest {
5
6
  text: string;
6
- countryIso: string;
7
- startDate: string;
8
- endDate: string;
7
+ countryIso: TIsoCountry;
8
+ startDate: Date;
9
+ endDate: Date;
9
10
  }
10
11
  /**
11
12
  * Response body for retrieving a dashboard banner (Superadmin)
12
13
  */
13
14
  export interface DashboardBannerResponse extends DashboardBannerRequest {
14
15
  id: number;
15
- updatedByUser: string | undefined;
16
+ updatedByUser: string;
16
17
  }
17
18
  /**
18
19
  * Response body for retrieving dashboard banner text in Admin
@@ -1,11 +1,13 @@
1
+ import { TIsoCountry } from './country'
2
+
1
3
  /**
2
4
  * Request body for creating or updating a dashboard banner (Superadmin)
3
5
  */
4
6
  export interface DashboardBannerRequest {
5
7
  text: string
6
- countryIso: string
7
- startDate: string
8
- endDate: string
8
+ countryIso: TIsoCountry
9
+ startDate: Date
10
+ endDate: Date
9
11
  }
10
12
 
11
13
  /**
@@ -13,7 +15,7 @@ export interface DashboardBannerRequest {
13
15
  */
14
16
  export interface DashboardBannerResponse extends DashboardBannerRequest {
15
17
  id: number
16
- updatedByUser: string | undefined
18
+ updatedByUser: string
17
19
  }
18
20
 
19
21
  /**