wedance-shared 1.0.177 → 1.0.178
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/types/privateClass.d.ts +16 -3
- package/package.json +1 -1
|
@@ -7,6 +7,11 @@ import { UserSummary } from "./user.js";
|
|
|
7
7
|
* status — a teacher cannot undo an admin having hidden their listing.
|
|
8
8
|
*/
|
|
9
9
|
export type PrivateClassStatus = "published" | "hidden";
|
|
10
|
+
/**
|
|
11
|
+
* A known {@link DanceTag}, or any free-text style the teacher typed. The
|
|
12
|
+
* `string & {}` keeps autocomplete on the known tags.
|
|
13
|
+
*/
|
|
14
|
+
export type PrivateClassDanceTag = DanceTag | (string & {});
|
|
10
15
|
/** What the teacher charges for: one hour, or one session of any length. */
|
|
11
16
|
export type PrivateClassPriceUnit = "hour" | "session";
|
|
12
17
|
export type PrivateClassPrice = {
|
|
@@ -26,7 +31,11 @@ export type PrivateClass = {
|
|
|
26
31
|
userId: string;
|
|
27
32
|
headline: string;
|
|
28
33
|
description: string | null;
|
|
29
|
-
danceTags:
|
|
34
|
+
danceTags: PrivateClassDanceTag[];
|
|
35
|
+
/** Languages the teacher can teach in, free text. */
|
|
36
|
+
languages: string[];
|
|
37
|
+
/** School or venue names the teacher also teaches at, free text. */
|
|
38
|
+
teacherAt: string[] | null;
|
|
30
39
|
city: CityName;
|
|
31
40
|
countryCode: CountryCode;
|
|
32
41
|
/** null when the teacher gives no price ("on request"). */
|
|
@@ -57,7 +66,11 @@ export type UpsertPrivateClassInput = {
|
|
|
57
66
|
/** Max 120 characters. */
|
|
58
67
|
headline: string;
|
|
59
68
|
city: CityName;
|
|
60
|
-
danceTags:
|
|
69
|
+
danceTags: PrivateClassDanceTag[];
|
|
70
|
+
/** Free text, cleared when omitted. */
|
|
71
|
+
languages?: string[];
|
|
72
|
+
/** Free text, cleared when omitted. */
|
|
73
|
+
teacherAt?: string[] | null;
|
|
61
74
|
/** Max 2000 characters. */
|
|
62
75
|
description?: string | null;
|
|
63
76
|
/** MINOR units. Requires `priceUnit`; omit for "price on request". */
|
|
@@ -74,7 +87,7 @@ export type UpsertPrivateClassInput = {
|
|
|
74
87
|
/** `GET /private-classes` — every filter is optional. */
|
|
75
88
|
export type ListPrivateClassesQuery = {
|
|
76
89
|
city?: CityName;
|
|
77
|
-
danceTag?:
|
|
90
|
+
danceTag?: PrivateClassDanceTag;
|
|
78
91
|
/** Admin only, ignored for everyone else. */
|
|
79
92
|
status?: PrivateClassStatus | "all";
|
|
80
93
|
/** Clamped to 1–100. */
|
package/package.json
CHANGED