@fragus/sam-types 1.0.35 → 1.0.36

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.36",
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",
@@ -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