@iveri/contracts 0.46.0 → 0.47.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.
- package/dist/api/clinic/clinic-article.type.d.ts +39 -0
- package/dist/api/clinic/clinic-article.type.js +1 -0
- package/dist/api/clinic/clinic-gallery-kind.enum.d.ts +5 -0
- package/dist/api/clinic/clinic-gallery-kind.enum.js +6 -0
- package/dist/api/clinic/clinic-gallery.type.d.ts +33 -0
- package/dist/api/clinic/clinic-gallery.type.js +1 -0
- package/dist/api/clinic/clinic-media.type.d.ts +5 -0
- package/dist/api/clinic/clinic-media.type.js +1 -0
- package/dist/api/clinic/index.d.ts +4 -0
- package/dist/api/clinic/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
4
|
+
import type { ClinicMediaImage } from './clinic-media.type.js';
|
|
5
|
+
import type { LocalizedText } from './localized-text.type.js';
|
|
6
|
+
export interface ClinicArticle {
|
|
7
|
+
id: UUID;
|
|
8
|
+
slug: string;
|
|
9
|
+
title: LocalizedText;
|
|
10
|
+
summary: LocalizedText;
|
|
11
|
+
/** Paragraphs split by a blank line, `## ` for a heading and `- ` for a list item. Never HTML. */
|
|
12
|
+
body: LocalizedText;
|
|
13
|
+
specialtyId: Nullable<UUID>;
|
|
14
|
+
cover: Nullable<ClinicMediaImage>;
|
|
15
|
+
isPublished: boolean;
|
|
16
|
+
publishedAt: Nullable<IsoDateTime>;
|
|
17
|
+
createdAt: IsoDateTime;
|
|
18
|
+
updatedAt: IsoDateTime;
|
|
19
|
+
}
|
|
20
|
+
export interface SaveClinicArticleRequest {
|
|
21
|
+
slug: string;
|
|
22
|
+
title: LocalizedText;
|
|
23
|
+
summary: LocalizedText;
|
|
24
|
+
body: LocalizedText;
|
|
25
|
+
specialtyId: Nullable<UUID>;
|
|
26
|
+
isPublished: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface PublicArticleSummary {
|
|
29
|
+
id: UUID;
|
|
30
|
+
slug: string;
|
|
31
|
+
title: LocalizedText;
|
|
32
|
+
summary: LocalizedText;
|
|
33
|
+
specialtyId: Nullable<UUID>;
|
|
34
|
+
cover: Nullable<ClinicMediaImage>;
|
|
35
|
+
publishedAt: IsoDateTime;
|
|
36
|
+
}
|
|
37
|
+
export interface PublicArticle extends PublicArticleSummary {
|
|
38
|
+
body: LocalizedText;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ClinicGalleryKind;
|
|
2
|
+
(function (ClinicGalleryKind) {
|
|
3
|
+
ClinicGalleryKind["PHOTO"] = "photo";
|
|
4
|
+
/** Shows a client's own body, so it exists only with their recorded agreement. */
|
|
5
|
+
ClinicGalleryKind["BEFORE_AFTER"] = "before-after";
|
|
6
|
+
})(ClinicGalleryKind || (ClinicGalleryKind = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
3
|
+
import type { UUID } from '../../type/uuid.type.js';
|
|
4
|
+
import type { ClinicGalleryKind } from './clinic-gallery-kind.enum.js';
|
|
5
|
+
import type { ClinicMediaImage } from './clinic-media.type.js';
|
|
6
|
+
import type { LocalizedText } from './localized-text.type.js';
|
|
7
|
+
export interface ClinicGalleryItem {
|
|
8
|
+
id: UUID;
|
|
9
|
+
kind: ClinicGalleryKind;
|
|
10
|
+
caption: Nullable<LocalizedText>;
|
|
11
|
+
treatmentId: Nullable<UUID>;
|
|
12
|
+
/** For a before and after, this is the after. */
|
|
13
|
+
image: ClinicMediaImage;
|
|
14
|
+
beforeImage: Nullable<ClinicMediaImage>;
|
|
15
|
+
isPublished: boolean;
|
|
16
|
+
consentRecordedAt: Nullable<IsoDateTime>;
|
|
17
|
+
/** Where the client's agreement can be found. Staff only, and never public. */
|
|
18
|
+
consentReference: Nullable<string>;
|
|
19
|
+
createdAt: IsoDateTime;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateClinicGalleryItemRequest {
|
|
22
|
+
caption: Nullable<LocalizedText>;
|
|
23
|
+
treatmentId: Nullable<UUID>;
|
|
24
|
+
isPublished: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface PublicGalleryItem {
|
|
27
|
+
id: UUID;
|
|
28
|
+
kind: ClinicGalleryKind;
|
|
29
|
+
caption: Nullable<LocalizedText>;
|
|
30
|
+
treatmentId: Nullable<UUID>;
|
|
31
|
+
image: ClinicMediaImage;
|
|
32
|
+
beforeImage: Nullable<ClinicMediaImage>;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,10 @@ export * from './clinic-lead-status.enum.js';
|
|
|
7
7
|
export * from './clinic-lead.type.js';
|
|
8
8
|
export * from './clinic-location.type.js';
|
|
9
9
|
export * from './clinic-my-appointment.type.js';
|
|
10
|
+
export * from './clinic-article.type.js';
|
|
11
|
+
export * from './clinic-gallery-kind.enum.js';
|
|
12
|
+
export * from './clinic-gallery.type.js';
|
|
13
|
+
export * from './clinic-media.type.js';
|
|
10
14
|
export * from './clinic-newsletter-channel.enum.js';
|
|
11
15
|
export * from './clinic-newsletter.type.js';
|
|
12
16
|
export * from './clinic-profile.type.js';
|
package/dist/api/clinic/index.js
CHANGED
|
@@ -7,6 +7,10 @@ export * from './clinic-lead-status.enum.js';
|
|
|
7
7
|
export * from './clinic-lead.type.js';
|
|
8
8
|
export * from './clinic-location.type.js';
|
|
9
9
|
export * from './clinic-my-appointment.type.js';
|
|
10
|
+
export * from './clinic-article.type.js';
|
|
11
|
+
export * from './clinic-gallery-kind.enum.js';
|
|
12
|
+
export * from './clinic-gallery.type.js';
|
|
13
|
+
export * from './clinic-media.type.js';
|
|
10
14
|
export * from './clinic-newsletter-channel.enum.js';
|
|
11
15
|
export * from './clinic-newsletter.type.js';
|
|
12
16
|
export * from './clinic-profile.type.js';
|