@iveri/contracts 0.42.0 → 0.43.0
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.
|
@@ -8,6 +8,12 @@ export interface ClinicClient {
|
|
|
8
8
|
lastName: string;
|
|
9
9
|
phone: string;
|
|
10
10
|
email: Nullable<string>;
|
|
11
|
+
/**
|
|
12
|
+
* When the address in `email` was shown to belong to this client. Null means nothing is sent to
|
|
13
|
+
* it: anybody can register with an address that is not theirs, and a booking email carries a
|
|
14
|
+
* treatment name.
|
|
15
|
+
*/
|
|
16
|
+
emailConfirmedAt: Nullable<IsoDateTime>;
|
|
11
17
|
createdAt: IsoDateTime;
|
|
12
18
|
updatedAt: IsoDateTime;
|
|
13
19
|
}
|
|
@@ -34,4 +34,10 @@ export interface SaveMyClinicClientRequest {
|
|
|
34
34
|
lastName: string;
|
|
35
35
|
phone: string;
|
|
36
36
|
email?: Nullable<string>;
|
|
37
|
+
/** The language the client reads, which their emails are written in. */
|
|
38
|
+
localeCode?: string;
|
|
39
|
+
}
|
|
40
|
+
/** The token from a confirmation link. It is the only thing the public route accepts. */
|
|
41
|
+
export interface ConfirmClinicEmailRequest {
|
|
42
|
+
token: string;
|
|
37
43
|
}
|
|
@@ -11,6 +11,8 @@ export interface ClinicProfile {
|
|
|
11
11
|
tagline: Nullable<LocalizedText>;
|
|
12
12
|
phone: Nullable<string>;
|
|
13
13
|
email: Nullable<string>;
|
|
14
|
+
/** The clinic's public website, which the links in its emails point at. No path, no trailing slash. */
|
|
15
|
+
siteUrl: Nullable<string>;
|
|
14
16
|
/** Nothing about the clinic is public until this is true. */
|
|
15
17
|
isPublished: boolean;
|
|
16
18
|
/** How long before a booking a client can still cancel it themselves. */
|
|
@@ -26,6 +28,7 @@ export interface SaveClinicProfileRequest {
|
|
|
26
28
|
tagline?: Nullable<LocalizedText>;
|
|
27
29
|
phone?: Nullable<string>;
|
|
28
30
|
email?: Nullable<string>;
|
|
31
|
+
siteUrl?: Nullable<string>;
|
|
29
32
|
isPublished: boolean;
|
|
30
33
|
clientCancelCutoffHours: number;
|
|
31
34
|
bookingHorizonDays: number;
|