π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
period
Manav Rathid7665d289ce0
diff --git a/web/apps/photos/src/services/billingService.ts b/web/apps/photos/src/services/billingService.tsindex 166a95d516..63b274316e 100644--- a/web/apps/photos/src/services/billingService.ts+++ b/web/apps/photos/src/services/billingService.ts@@ -12,8 +12,12 @@ import { getToken } from "@ente/shared/storage/localStorage/helpers";import isElectron from "is-electron";import { z } from "zod";-/** Validity of the plan. */-export type PlanPeriod = "month" | "year";+const PlanPeriod = z.enum(["month", "year"]);++/**+ * Validity of the plan.+ */+export type PlanPeriod = z.infer<typeof PlanPeriod>;export interface Subscription {id: number;@@ -40,7 +44,7 @@ const Plan = z.object({stripeID: z.string().nullable().transform(nullToUndefined),storage: z.number(),price: z.string(),- period: z.enum(["month", "year"]),+ period: PlanPeriod,});/**