Skip to content

Commit

Permalink
Updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsLrn committed Mar 4, 2024
1 parent 2857b27 commit c2a8f20
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
Expand Up @@ -8,7 +8,7 @@ export interface ConsumptionElectricity {
/**
* The costs
*/
costs: number;
costs?: number;
/**
* The size of the household
*/
Expand Down
Expand Up @@ -9,7 +9,7 @@ export interface ConsumptionHeating {
/**
* The costs
*/
costs: number;
costs?: number;
/**
* The size of the household
*/
Expand Down
@@ -0,0 +1,4 @@
/**
* A recurring consumption frequency unit
*/
export type RecurringConsumptionFrequencyUnit = "daily" | "weekly" | "monthly";
@@ -1,11 +1,13 @@
import { RecurringConsumptionFrequencyUnit } from "./recurring-consumption-frequency-unit";

/**
* A recurring consumption frequency
*/
export interface RecurringConsumptionFrequency {
/**
* The unit
*/
unit: "daily" | "weekly" | "monthly";
unit: RecurringConsumptionFrequencyUnit;
/**
* The weekdays.
* Applicable if unit is set to `weekly`
Expand Down
8 changes: 8 additions & 0 deletions functions/src/models/user/user.ts
Expand Up @@ -47,4 +47,12 @@ export interface User {
* The city in country identifier
*/
city?: string;
/**
* Whether marketing consent is provided
*/
isMarketingConsentAllowed?: boolean;
/**
* The last accepted legal document version
*/
acceptedLegalDocumentVersion?: number;
}

0 comments on commit c2a8f20

Please sign in to comment.