@ttt-productions/ttt-core 0.63.0 → 0.64.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/constants/options.d.ts +26 -8
- package/dist/constants/options.d.ts.map +1 -1
- package/dist/constants/options.js +114 -46
- package/dist/constants/options.js.map +1 -1
- package/dist/doc-schemas/operational.d.ts +3 -1
- package/dist/doc-schemas/operational.d.ts.map +1 -1
- package/dist/doc-schemas/operational.js +8 -4
- package/dist/doc-schemas/operational.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +78 -3
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/user.d.ts +99 -2
- package/dist/doc-schemas/user.d.ts.map +1 -1
- package/dist/doc-schemas/user.js +55 -2
- package/dist/doc-schemas/user.js.map +1 -1
- package/dist/schemas/utility.d.ts +16 -3
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +20 -5
- package/dist/schemas/utility.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import type { HallWingType, WorkProjectType } from '../types/content.js';
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Trade professions (20) — role-shaped labels used for guild roles, commission
|
|
4
|
+
* requests, and file-folder permission keys. Display strings are stored/validated
|
|
5
|
+
* directly (they double as the enum values in the callable input schemas that derive
|
|
6
|
+
* from this constant). Kept in curated order; not alphabetized.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TRADE_PROFESSION_OPTIONS: readonly ["Actor", "Voice Actor", "Singer", "Musician", "Dancer & Choreographer", "Writer", "Editor", "Director", "Producer", "Cinematographer", "Photographer", "Animator", "Artist", "Graphic Designer", "VFX Artist", "Costume & Makeup Artist", "Set & Prop Designer", "Composer", "Music Producer", "Sound Designer"];
|
|
9
|
+
/**
|
|
10
|
+
* Craft-skill discipline tags (23). Tags are Firestore doc IDs in the
|
|
11
|
+
* `craftSkillsByTag/{tag}` index, so the STORED value is a machine-safe kebab-case ID
|
|
12
|
+
* (`CRAFT_SKILL_TAG_OPTIONS`) — this is what the wire schema validates and what path
|
|
13
|
+
* builders write. Human-readable labels (with spaces / ampersands) are mapped over the
|
|
14
|
+
* IDs via `CRAFT_SKILL_TAG_LABELS`; render pickers/badges through that map. Kept in
|
|
15
|
+
* curated discipline order (Performance → Writing → Visual → Film → Audio); not sorted.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CRAFT_SKILL_TAG_OPTIONS: readonly ["acting", "voice-over", "singing", "rapping", "instrumental-performance", "dance-choreography", "stand-up-sketch-comedy", "writing-storytelling", "songwriting", "poetry-spoken-word", "drawing-illustration", "painting", "animation", "graphic-design", "photography", "cinematography-camera", "video-editing", "visual-effects", "directing", "costume-makeup", "set-prop-design", "music-production", "composing-scoring", "sound-design"];
|
|
18
|
+
/** Human display labels for each craft-skill tag ID. Keyed by the machine-safe ID. */
|
|
19
|
+
export declare const CRAFT_SKILL_TAG_LABELS: Record<(typeof CRAFT_SKILL_TAG_OPTIONS)[number], string>;
|
|
20
|
+
/**
|
|
21
|
+
* Genres shown for each workProject type. Curated final lists (kept in the doc's order,
|
|
22
|
+
* not alphabetized). "Spooky" (not "Horror") is deliberate for V1: the name carries the
|
|
23
|
+
* all-ages ceiling; "Horror" is the natural mature sibling if mature content ever ships.
|
|
24
|
+
*/
|
|
7
25
|
export declare const WORK_PROJECT_SPECIFIC_GENRES: {
|
|
8
|
-
readonly Tales:
|
|
9
|
-
readonly Tunes:
|
|
10
|
-
readonly Television:
|
|
26
|
+
readonly Tales: readonly ["Adventure", "Comedy", "Drama", "Fantasy", "Fairy Tale & Fable", "Historical", "Mystery", "Romance", "Sci-Fi", "Slice of Life", "Spooky", "Thriller"];
|
|
27
|
+
readonly Tunes: readonly ["Audiobook & Spoken Word", "Blues", "Classical", "Country", "Electronic", "Folk", "Hip Hop & Rap", "Jazz", "Metal", "Podcast", "Pop", "R&B & Soul", "Reggae", "Rock", "Soundtrack & Score"];
|
|
28
|
+
readonly Television: readonly ["Action", "Animation", "Comedy", "Documentary", "Drama", "Fantasy", "Kids & Family", "Music Video", "Mystery", "Reality", "Sci-Fi", "Sketch & Variety", "Spooky", "Talk Show", "Thriller"];
|
|
11
29
|
};
|
|
12
30
|
/** HallLibrary type display info. Used in dropdowns and badges. */
|
|
13
31
|
export declare const HALL_WING_TYPES: Record<HallWingType, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQzE
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQzE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,4TAyB3B,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,2bA8B1B,CAAC;AAEX,sFAAsF;AACtF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAyB3F,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;CAiD/B,CAAC;AAIX,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAaxF,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAa9F,CAAC;AAIF,oEAAoE;AACpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AAEX,kDAAkD;AAClD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,MAAM,EACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,CAK5D,CAAC"}
|
|
@@ -3,79 +3,142 @@
|
|
|
3
3
|
// WorkProject guild-standing IDs, labels, and assignment policy live in ../permissions/.
|
|
4
4
|
// Keep guild-standing picker UIs backed by GUILD_STANDINGS instead of a duplicated option map.
|
|
5
5
|
// --- Trade & Craft Options ---
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Trade professions (20) — role-shaped labels used for guild roles, commission
|
|
8
|
+
* requests, and file-folder permission keys. Display strings are stored/validated
|
|
9
|
+
* directly (they double as the enum values in the callable input schemas that derive
|
|
10
|
+
* from this constant). Kept in curated order; not alphabetized.
|
|
11
|
+
*/
|
|
7
12
|
export const TRADE_PROFESSION_OPTIONS = [
|
|
13
|
+
// Performance
|
|
8
14
|
'Actor',
|
|
15
|
+
'Voice Actor',
|
|
16
|
+
'Singer',
|
|
17
|
+
'Musician',
|
|
18
|
+
'Dancer & Choreographer',
|
|
19
|
+
// Story
|
|
20
|
+
'Writer',
|
|
21
|
+
'Editor',
|
|
22
|
+
'Director',
|
|
23
|
+
'Producer',
|
|
24
|
+
// Camera & visual
|
|
25
|
+
'Cinematographer',
|
|
26
|
+
'Photographer',
|
|
9
27
|
'Animator',
|
|
10
28
|
'Artist',
|
|
11
|
-
'
|
|
29
|
+
'Graphic Designer',
|
|
30
|
+
'VFX Artist',
|
|
31
|
+
'Costume & Makeup Artist',
|
|
32
|
+
'Set & Prop Designer',
|
|
33
|
+
// Audio
|
|
12
34
|
'Composer',
|
|
13
|
-
'
|
|
14
|
-
'Developer',
|
|
15
|
-
'Director',
|
|
16
|
-
'Editor',
|
|
17
|
-
'Producer',
|
|
35
|
+
'Music Producer',
|
|
18
36
|
'Sound Designer',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
];
|
|
38
|
+
/**
|
|
39
|
+
* Craft-skill discipline tags (23). Tags are Firestore doc IDs in the
|
|
40
|
+
* `craftSkillsByTag/{tag}` index, so the STORED value is a machine-safe kebab-case ID
|
|
41
|
+
* (`CRAFT_SKILL_TAG_OPTIONS`) — this is what the wire schema validates and what path
|
|
42
|
+
* builders write. Human-readable labels (with spaces / ampersands) are mapped over the
|
|
43
|
+
* IDs via `CRAFT_SKILL_TAG_LABELS`; render pickers/badges through that map. Kept in
|
|
44
|
+
* curated discipline order (Performance → Writing → Visual → Film → Audio); not sorted.
|
|
45
|
+
*/
|
|
22
46
|
export const CRAFT_SKILL_TAG_OPTIONS = [
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
|
|
47
|
+
// Performance
|
|
48
|
+
'acting',
|
|
49
|
+
'voice-over',
|
|
50
|
+
'singing',
|
|
51
|
+
'rapping',
|
|
52
|
+
'instrumental-performance',
|
|
53
|
+
'dance-choreography',
|
|
54
|
+
'stand-up-sketch-comedy',
|
|
55
|
+
// Writing
|
|
56
|
+
'writing-storytelling',
|
|
57
|
+
'songwriting',
|
|
58
|
+
'poetry-spoken-word',
|
|
59
|
+
// Visual arts
|
|
60
|
+
'drawing-illustration',
|
|
61
|
+
'painting',
|
|
62
|
+
'animation',
|
|
63
|
+
'graphic-design',
|
|
64
|
+
'photography',
|
|
65
|
+
// Film & video
|
|
66
|
+
'cinematography-camera',
|
|
67
|
+
'video-editing',
|
|
68
|
+
'visual-effects',
|
|
69
|
+
'directing',
|
|
70
|
+
'costume-makeup',
|
|
71
|
+
'set-prop-design',
|
|
72
|
+
// Audio
|
|
73
|
+
'music-production',
|
|
74
|
+
'composing-scoring',
|
|
75
|
+
'sound-design',
|
|
76
|
+
];
|
|
77
|
+
/** Human display labels for each craft-skill tag ID. Keyed by the machine-safe ID. */
|
|
78
|
+
export const CRAFT_SKILL_TAG_LABELS = {
|
|
79
|
+
'acting': 'Acting',
|
|
80
|
+
'voice-over': 'Voice Over',
|
|
81
|
+
'singing': 'Singing',
|
|
82
|
+
'rapping': 'Rapping',
|
|
83
|
+
'instrumental-performance': 'Instrumental Performance',
|
|
84
|
+
'dance-choreography': 'Dance & Choreography',
|
|
85
|
+
'stand-up-sketch-comedy': 'Stand-Up & Sketch Comedy',
|
|
86
|
+
'writing-storytelling': 'Writing & Storytelling',
|
|
87
|
+
'songwriting': 'Songwriting',
|
|
88
|
+
'poetry-spoken-word': 'Poetry & Spoken Word',
|
|
89
|
+
'drawing-illustration': 'Drawing & Illustration',
|
|
90
|
+
'painting': 'Painting',
|
|
91
|
+
'animation': 'Animation',
|
|
92
|
+
'graphic-design': 'Graphic Design',
|
|
93
|
+
'photography': 'Photography',
|
|
94
|
+
'cinematography-camera': 'Cinematography & Camera',
|
|
95
|
+
'video-editing': 'Video Editing',
|
|
96
|
+
'visual-effects': 'Visual Effects',
|
|
97
|
+
'directing': 'Directing',
|
|
98
|
+
'costume-makeup': 'Costume & Makeup',
|
|
99
|
+
'set-prop-design': 'Set & Prop Design',
|
|
100
|
+
'music-production': 'Music Production',
|
|
101
|
+
'composing-scoring': 'Composing & Scoring',
|
|
102
|
+
'sound-design': 'Sound Design',
|
|
103
|
+
};
|
|
52
104
|
// --- WorkProject-Specific Genres ---
|
|
53
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Genres shown for each workProject type. Curated final lists (kept in the doc's order,
|
|
107
|
+
* not alphabetized). "Spooky" (not "Horror") is deliberate for V1: the name carries the
|
|
108
|
+
* all-ages ceiling; "Horror" is the natural mature sibling if mature content ever ships.
|
|
109
|
+
*/
|
|
54
110
|
export const WORK_PROJECT_SPECIFIC_GENRES = {
|
|
55
111
|
Tales: [
|
|
56
112
|
'Adventure',
|
|
57
113
|
'Comedy',
|
|
58
114
|
'Drama',
|
|
59
115
|
'Fantasy',
|
|
116
|
+
'Fairy Tale & Fable',
|
|
60
117
|
'Historical',
|
|
61
|
-
'Horror',
|
|
62
118
|
'Mystery',
|
|
63
119
|
'Romance',
|
|
64
120
|
'Sci-Fi',
|
|
121
|
+
'Slice of Life',
|
|
122
|
+
'Spooky',
|
|
65
123
|
'Thriller',
|
|
66
|
-
]
|
|
124
|
+
],
|
|
67
125
|
Tunes: [
|
|
126
|
+
'Audiobook & Spoken Word',
|
|
68
127
|
'Blues',
|
|
69
128
|
'Classical',
|
|
70
129
|
'Country',
|
|
71
130
|
'Electronic',
|
|
72
131
|
'Folk',
|
|
73
|
-
'Hip Hop',
|
|
132
|
+
'Hip Hop & Rap',
|
|
74
133
|
'Jazz',
|
|
134
|
+
'Metal',
|
|
135
|
+
'Podcast',
|
|
75
136
|
'Pop',
|
|
137
|
+
'R&B & Soul',
|
|
76
138
|
'Reggae',
|
|
77
139
|
'Rock',
|
|
78
|
-
|
|
140
|
+
'Soundtrack & Score',
|
|
141
|
+
],
|
|
79
142
|
Television: [
|
|
80
143
|
'Action',
|
|
81
144
|
'Animation',
|
|
@@ -83,11 +146,16 @@ export const WORK_PROJECT_SPECIFIC_GENRES = {
|
|
|
83
146
|
'Documentary',
|
|
84
147
|
'Drama',
|
|
85
148
|
'Fantasy',
|
|
86
|
-
'Kids',
|
|
149
|
+
'Kids & Family',
|
|
150
|
+
'Music Video',
|
|
151
|
+
'Mystery',
|
|
87
152
|
'Reality',
|
|
88
153
|
'Sci-Fi',
|
|
154
|
+
'Sketch & Variety',
|
|
155
|
+
'Spooky',
|
|
156
|
+
'Talk Show',
|
|
89
157
|
'Thriller',
|
|
90
|
-
]
|
|
158
|
+
],
|
|
91
159
|
};
|
|
92
160
|
// --- HallLibrary / WorkProject Type Display Maps ---
|
|
93
161
|
/** HallLibrary type display info. Used in dropdowns and badges. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAIrE,sCAAsC;AACtC,yFAAyF;AACzF,+FAA+F;AAE/F,gCAAgC;AAEhC
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAIrE,sCAAsC;AACtC,yFAAyF;AACzF,+FAA+F;AAE/F,gCAAgC;AAEhC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,cAAc;IACd,OAAO;IACP,aAAa;IACb,QAAQ;IACR,UAAU;IACV,wBAAwB;IACxB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,UAAU;IACV,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,yBAAyB;IACzB,qBAAqB;IACrB,QAAQ;IACR,UAAU;IACV,gBAAgB;IAChB,gBAAgB;CACR,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,cAAc;IACd,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,SAAS;IACT,0BAA0B;IAC1B,oBAAoB;IACpB,wBAAwB;IACxB,UAAU;IACV,sBAAsB;IACtB,aAAa;IACb,oBAAoB;IACpB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AE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE;IACvE,aAAa,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE;CACrF,CAAC"}
|
|
@@ -29,10 +29,12 @@ export declare const ShortLinkSchema: z.ZodObject<{
|
|
|
29
29
|
type: z.ZodEnum<{
|
|
30
30
|
audition: "audition";
|
|
31
31
|
"audition-entry": "audition-entry";
|
|
32
|
+
commission: "commission";
|
|
32
33
|
}>;
|
|
33
34
|
metadata: z.ZodObject<{
|
|
34
|
-
auditionId: z.ZodString
|
|
35
|
+
auditionId: z.ZodNullable<z.ZodString>;
|
|
35
36
|
auditionEntryId: z.ZodNullable<z.ZodString>;
|
|
37
|
+
commissionListingId: z.ZodNullable<z.ZodString>;
|
|
36
38
|
}, z.core.$strip>;
|
|
37
39
|
createdAt: z.ZodNumber;
|
|
38
40
|
createdBy: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/operational.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAK5E,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAWrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/operational.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAK5E,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAWrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAO9E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;iBAa1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAOxD,eAAO,MAAM,+BAA+B;;;;;;;;;;;iBAO1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAIxF,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAKhE,eAAO,MAAM,oBAAoB;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -28,16 +28,20 @@ export const StakeShareAuditEventSchema = z.object({
|
|
|
28
28
|
createdAt: z.number(),
|
|
29
29
|
source: z.string(),
|
|
30
30
|
});
|
|
31
|
-
// shortLinks/{shortId} — short link to
|
|
32
|
-
// (functions/src/utility/createShortLink.ts)
|
|
31
|
+
// shortLinks/{shortId} — short link to a share target (Audition / AuditionEntry /
|
|
32
|
+
// Commission), with a click counter. (functions/src/utility/createShortLink.ts)
|
|
33
|
+
// `type` mirrors the CreateShortLinkInput target type; `metadata` carries the target
|
|
34
|
+
// id(s) the destination URL was built from. Fields are per-target-optional so a new
|
|
35
|
+
// target type slots in without reworking the map. Add a `type` value when adding a target.
|
|
33
36
|
export const ShortLinkSchema = z.object({
|
|
34
37
|
shortId: z.string(),
|
|
35
38
|
shortUrl: z.string(),
|
|
36
39
|
destinationUrl: z.string(),
|
|
37
|
-
type: z.enum(['audition', 'audition-entry']),
|
|
40
|
+
type: z.enum(['audition', 'audition-entry', 'commission']),
|
|
38
41
|
metadata: z.object({
|
|
39
|
-
auditionId: z.string(),
|
|
42
|
+
auditionId: z.string().nullable(),
|
|
40
43
|
auditionEntryId: z.string().nullable(),
|
|
44
|
+
commissionListingId: z.string().nullable(),
|
|
41
45
|
}),
|
|
42
46
|
createdAt: z.number(),
|
|
43
47
|
createdBy: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.js","sourceRoot":"","sources":["../../src/doc-schemas/operational.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,kGAAkG;AAElG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6FAA6F;AAC7F,8EAA8E;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGH,kGAAkG;AAClG,qGAAqG;AACrG,8FAA8F;AAC9F,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAGH,8FAA8F;AAC9F,sEAAsE;AACtE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;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nF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;CAChD,CAAC,CAAC;AAGH,mGAAmG;AACnG,gGAAgG;AAChG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAGH,yFAAyF;AACzF,+FAA+F;AAC/F,+EAA+E;AAC/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC"}
|
|
@@ -104,7 +104,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
104
104
|
}, z.core.$strip>;
|
|
105
105
|
lastUpdated: z.ZodNumber;
|
|
106
106
|
}, z.core.$strip>;
|
|
107
|
-
readonly 'userProfiles/{userId}/profileCraftSkills/{craftSkillId}': z.ZodObject<{
|
|
107
|
+
readonly 'userProfiles/{userId}/profileCraftSkills/{craftSkillId}': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
108
|
+
kind: z.ZodLiteral<"original">;
|
|
108
109
|
id: z.ZodString;
|
|
109
110
|
name: z.ZodString;
|
|
110
111
|
mediaAssetId: z.ZodString;
|
|
@@ -116,7 +117,67 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
116
117
|
audio: "audio";
|
|
117
118
|
}>;
|
|
118
119
|
hidden: z.ZodBoolean;
|
|
119
|
-
|
|
120
|
+
attestation: z.ZodObject<{
|
|
121
|
+
statementKind: z.ZodEnum<{
|
|
122
|
+
original: "original";
|
|
123
|
+
mimicOnTtt: "mimicOnTtt";
|
|
124
|
+
mimicOffTtt: "mimicOffTtt";
|
|
125
|
+
}>;
|
|
126
|
+
statementVersion: z.ZodNumber;
|
|
127
|
+
agreedAt: z.ZodNumber;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
kind: z.ZodLiteral<"mimicOnTtt">;
|
|
131
|
+
source: z.ZodObject<{
|
|
132
|
+
type: z.ZodEnum<{
|
|
133
|
+
workProject: "workProject";
|
|
134
|
+
user: "user";
|
|
135
|
+
}>;
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
mediaAssetId: z.ZodString;
|
|
141
|
+
tags: z.ZodArray<z.ZodString>;
|
|
142
|
+
createdAt: z.ZodNumber;
|
|
143
|
+
type: z.ZodEnum<{
|
|
144
|
+
video: "video";
|
|
145
|
+
image: "image";
|
|
146
|
+
audio: "audio";
|
|
147
|
+
}>;
|
|
148
|
+
hidden: z.ZodBoolean;
|
|
149
|
+
attestation: z.ZodObject<{
|
|
150
|
+
statementKind: z.ZodEnum<{
|
|
151
|
+
original: "original";
|
|
152
|
+
mimicOnTtt: "mimicOnTtt";
|
|
153
|
+
mimicOffTtt: "mimicOffTtt";
|
|
154
|
+
}>;
|
|
155
|
+
statementVersion: z.ZodNumber;
|
|
156
|
+
agreedAt: z.ZodNumber;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
+
kind: z.ZodLiteral<"mimicOffTtt">;
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
mediaAssetId: z.ZodString;
|
|
163
|
+
tags: z.ZodArray<z.ZodString>;
|
|
164
|
+
createdAt: z.ZodNumber;
|
|
165
|
+
type: z.ZodEnum<{
|
|
166
|
+
video: "video";
|
|
167
|
+
image: "image";
|
|
168
|
+
audio: "audio";
|
|
169
|
+
}>;
|
|
170
|
+
hidden: z.ZodBoolean;
|
|
171
|
+
attestation: z.ZodObject<{
|
|
172
|
+
statementKind: z.ZodEnum<{
|
|
173
|
+
original: "original";
|
|
174
|
+
mimicOnTtt: "mimicOnTtt";
|
|
175
|
+
mimicOffTtt: "mimicOffTtt";
|
|
176
|
+
}>;
|
|
177
|
+
statementVersion: z.ZodNumber;
|
|
178
|
+
agreedAt: z.ZodNumber;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
}, z.core.$strip>], "kind">;
|
|
120
181
|
readonly 'userProfiles/{userId}/auditionVotes/{auditionId}': z.ZodObject<{
|
|
121
182
|
votedForAuditionEntryId: z.ZodString;
|
|
122
183
|
votedOn: z.ZodNumber;
|
|
@@ -3767,6 +3828,18 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3767
3828
|
tags: z.ZodArray<z.ZodString>;
|
|
3768
3829
|
createdAt: z.ZodNumber;
|
|
3769
3830
|
hidden: z.ZodBoolean;
|
|
3831
|
+
kind: z.ZodEnum<{
|
|
3832
|
+
original: "original";
|
|
3833
|
+
mimicOnTtt: "mimicOnTtt";
|
|
3834
|
+
mimicOffTtt: "mimicOffTtt";
|
|
3835
|
+
}>;
|
|
3836
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
3837
|
+
type: z.ZodEnum<{
|
|
3838
|
+
workProject: "workProject";
|
|
3839
|
+
user: "user";
|
|
3840
|
+
}>;
|
|
3841
|
+
id: z.ZodString;
|
|
3842
|
+
}, z.core.$strict>>;
|
|
3770
3843
|
}, z.core.$strip>;
|
|
3771
3844
|
readonly 'reservedDisplayNames/{displayNameUppercase}': z.ZodObject<{
|
|
3772
3845
|
userId: z.ZodString;
|
|
@@ -3823,10 +3896,12 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3823
3896
|
type: z.ZodEnum<{
|
|
3824
3897
|
audition: "audition";
|
|
3825
3898
|
"audition-entry": "audition-entry";
|
|
3899
|
+
commission: "commission";
|
|
3826
3900
|
}>;
|
|
3827
3901
|
metadata: z.ZodObject<{
|
|
3828
|
-
auditionId: z.ZodString
|
|
3902
|
+
auditionId: z.ZodNullable<z.ZodString>;
|
|
3829
3903
|
auditionEntryId: z.ZodNullable<z.ZodString>;
|
|
3904
|
+
commissionListingId: z.ZodNullable<z.ZodString>;
|
|
3830
3905
|
}, z.core.$strip>;
|
|
3831
3906
|
createdAt: z.ZodNumber;
|
|
3832
3907
|
createdBy: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsL7B,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsL7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkMkB,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;CAciC,CAAC;AAEvE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAIvC,CAAC"}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const CraftSkillKindSchema: z.ZodEnum<{
|
|
3
|
+
original: "original";
|
|
4
|
+
mimicOnTtt: "mimicOnTtt";
|
|
5
|
+
mimicOffTtt: "mimicOffTtt";
|
|
6
|
+
}>;
|
|
7
|
+
export type CraftSkillKind = z.infer<typeof CraftSkillKindSchema>;
|
|
8
|
+
export declare const CraftSkillSourceReferenceSchema: z.ZodObject<{
|
|
9
|
+
type: z.ZodEnum<{
|
|
10
|
+
workProject: "workProject";
|
|
11
|
+
user: "user";
|
|
12
|
+
}>;
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export type CraftSkillSourceReference = z.infer<typeof CraftSkillSourceReferenceSchema>;
|
|
16
|
+
export declare const CraftSkillAttestationSchema: z.ZodObject<{
|
|
17
|
+
statementKind: z.ZodEnum<{
|
|
18
|
+
original: "original";
|
|
19
|
+
mimicOnTtt: "mimicOnTtt";
|
|
20
|
+
mimicOffTtt: "mimicOffTtt";
|
|
21
|
+
}>;
|
|
22
|
+
statementVersion: z.ZodNumber;
|
|
23
|
+
agreedAt: z.ZodNumber;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type CraftSkillAttestation = z.infer<typeof CraftSkillAttestationSchema>;
|
|
26
|
+
export declare const CraftSkillSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
kind: z.ZodLiteral<"original">;
|
|
3
28
|
id: z.ZodString;
|
|
4
29
|
name: z.ZodString;
|
|
5
30
|
mediaAssetId: z.ZodString;
|
|
@@ -11,7 +36,67 @@ export declare const CraftSkillSchema: z.ZodObject<{
|
|
|
11
36
|
audio: "audio";
|
|
12
37
|
}>;
|
|
13
38
|
hidden: z.ZodBoolean;
|
|
14
|
-
|
|
39
|
+
attestation: z.ZodObject<{
|
|
40
|
+
statementKind: z.ZodEnum<{
|
|
41
|
+
original: "original";
|
|
42
|
+
mimicOnTtt: "mimicOnTtt";
|
|
43
|
+
mimicOffTtt: "mimicOffTtt";
|
|
44
|
+
}>;
|
|
45
|
+
statementVersion: z.ZodNumber;
|
|
46
|
+
agreedAt: z.ZodNumber;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
kind: z.ZodLiteral<"mimicOnTtt">;
|
|
50
|
+
source: z.ZodObject<{
|
|
51
|
+
type: z.ZodEnum<{
|
|
52
|
+
workProject: "workProject";
|
|
53
|
+
user: "user";
|
|
54
|
+
}>;
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
mediaAssetId: z.ZodString;
|
|
60
|
+
tags: z.ZodArray<z.ZodString>;
|
|
61
|
+
createdAt: z.ZodNumber;
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
video: "video";
|
|
64
|
+
image: "image";
|
|
65
|
+
audio: "audio";
|
|
66
|
+
}>;
|
|
67
|
+
hidden: z.ZodBoolean;
|
|
68
|
+
attestation: z.ZodObject<{
|
|
69
|
+
statementKind: z.ZodEnum<{
|
|
70
|
+
original: "original";
|
|
71
|
+
mimicOnTtt: "mimicOnTtt";
|
|
72
|
+
mimicOffTtt: "mimicOffTtt";
|
|
73
|
+
}>;
|
|
74
|
+
statementVersion: z.ZodNumber;
|
|
75
|
+
agreedAt: z.ZodNumber;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<"mimicOffTtt">;
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
mediaAssetId: z.ZodString;
|
|
82
|
+
tags: z.ZodArray<z.ZodString>;
|
|
83
|
+
createdAt: z.ZodNumber;
|
|
84
|
+
type: z.ZodEnum<{
|
|
85
|
+
video: "video";
|
|
86
|
+
image: "image";
|
|
87
|
+
audio: "audio";
|
|
88
|
+
}>;
|
|
89
|
+
hidden: z.ZodBoolean;
|
|
90
|
+
attestation: z.ZodObject<{
|
|
91
|
+
statementKind: z.ZodEnum<{
|
|
92
|
+
original: "original";
|
|
93
|
+
mimicOnTtt: "mimicOnTtt";
|
|
94
|
+
mimicOffTtt: "mimicOffTtt";
|
|
95
|
+
}>;
|
|
96
|
+
statementVersion: z.ZodNumber;
|
|
97
|
+
agreedAt: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
}, z.core.$strip>], "kind">;
|
|
15
100
|
export type CraftSkill = z.infer<typeof CraftSkillSchema>;
|
|
16
101
|
export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
17
102
|
craftSkillId: z.ZodString;
|
|
@@ -27,6 +112,18 @@ export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
|
27
112
|
tags: z.ZodArray<z.ZodString>;
|
|
28
113
|
createdAt: z.ZodNumber;
|
|
29
114
|
hidden: z.ZodBoolean;
|
|
115
|
+
kind: z.ZodEnum<{
|
|
116
|
+
original: "original";
|
|
117
|
+
mimicOnTtt: "mimicOnTtt";
|
|
118
|
+
mimicOffTtt: "mimicOffTtt";
|
|
119
|
+
}>;
|
|
120
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
type: z.ZodEnum<{
|
|
122
|
+
workProject: "workProject";
|
|
123
|
+
user: "user";
|
|
124
|
+
}>;
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>;
|
|
30
127
|
}, z.core.$strip>;
|
|
31
128
|
export type CraftSkillReference = z.infer<typeof CraftSkillReferenceSchema>;
|
|
32
129
|
export declare const MinimalCraftSkillSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,oBAAoB;;;;EAAoD,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMlE,eAAO,MAAM,+BAA+B;;;;;;kBAKjC,CAAC;AACZ,MAAM,MAAM,yBA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oBAAoB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0ChC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/doc-schemas/user.js
CHANGED
|
@@ -7,7 +7,36 @@ import { z } from 'zod';
|
|
|
7
7
|
import { HALL_WING_TYPE_KEYS } from '../types/content.js';
|
|
8
8
|
import { userPrivateDataAgeFieldsShape } from './safety/age.js';
|
|
9
9
|
const mediaKindSchema = z.enum(['image', 'video', 'audio']);
|
|
10
|
-
|
|
10
|
+
// Craft-skill kind — mandatory choice at upload, no default (see
|
|
11
|
+
// CODE_CHANGE_craft_skill_kinds.md). 'original' = the artisan's own original creation;
|
|
12
|
+
// 'mimicOnTtt' = a performance/recreation of work that originated in the TTT community
|
|
13
|
+
// (requires a source reference); 'mimicOffTtt' = a performance/recreation of work from
|
|
14
|
+
// outside TTT (covers covers + public-domain works, no source reference).
|
|
15
|
+
export const CraftSkillKindSchema = z.enum(['original', 'mimicOnTtt', 'mimicOffTtt']);
|
|
16
|
+
// Source reference for a 'mimicOnTtt' skill — the original artisan OR the original work,
|
|
17
|
+
// linked mention-style (id only, no name snapshots, resolved at render per the Display
|
|
18
|
+
// Identity Invariant). 'workProject' is the safe framing today; linking a specific hall
|
|
19
|
+
// item is optional future scope.
|
|
20
|
+
export const CraftSkillSourceReferenceSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
type: z.enum(['user', 'workProject']),
|
|
23
|
+
id: z.string().min(1),
|
|
24
|
+
})
|
|
25
|
+
.strict();
|
|
26
|
+
// The agreed attestation recorded on the doc: which statement (keyed by kind) the
|
|
27
|
+
// uploader agreed to, its version, and when (epoch ms, always a number — never a
|
|
28
|
+
// Firestore Timestamp).
|
|
29
|
+
export const CraftSkillAttestationSchema = z
|
|
30
|
+
.object({
|
|
31
|
+
statementKind: CraftSkillKindSchema,
|
|
32
|
+
statementVersion: z.number().int().min(1),
|
|
33
|
+
agreedAt: z.number(),
|
|
34
|
+
})
|
|
35
|
+
.strict();
|
|
36
|
+
// Base craft-skill fields shared across all kinds. The `kind` + `source` relationship is
|
|
37
|
+
// layered on top as a discriminated union so an invalid combination (e.g. a source on an
|
|
38
|
+
// 'original', or a missing source on a 'mimicOnTtt') fails schema validation.
|
|
39
|
+
const craftSkillBaseShape = {
|
|
11
40
|
id: z.string(),
|
|
12
41
|
name: z.string(),
|
|
13
42
|
mediaAssetId: z.string(),
|
|
@@ -18,7 +47,24 @@ export const CraftSkillSchema = z.object({
|
|
|
18
47
|
// craft-skill hide cascade (report auto-hide or admin action). Mirrored onto
|
|
19
48
|
// every taggedCraftSkills index doc so discovery surfaces can filter it.
|
|
20
49
|
hidden: z.boolean(),
|
|
21
|
-
|
|
50
|
+
attestation: CraftSkillAttestationSchema,
|
|
51
|
+
};
|
|
52
|
+
export const CraftSkillSchema = z.discriminatedUnion('kind', [
|
|
53
|
+
z.object({
|
|
54
|
+
...craftSkillBaseShape,
|
|
55
|
+
kind: z.literal('original'),
|
|
56
|
+
}),
|
|
57
|
+
z.object({
|
|
58
|
+
...craftSkillBaseShape,
|
|
59
|
+
kind: z.literal('mimicOnTtt'),
|
|
60
|
+
// REQUIRED for the on-TTT mimic kind: the linked original artisan or work.
|
|
61
|
+
source: CraftSkillSourceReferenceSchema,
|
|
62
|
+
}),
|
|
63
|
+
z.object({
|
|
64
|
+
...craftSkillBaseShape,
|
|
65
|
+
kind: z.literal('mimicOffTtt'),
|
|
66
|
+
}),
|
|
67
|
+
]);
|
|
22
68
|
export const CraftSkillReferenceSchema = z.object({
|
|
23
69
|
craftSkillId: z.string(),
|
|
24
70
|
compositeId: z.string(),
|
|
@@ -30,6 +76,13 @@ export const CraftSkillReferenceSchema = z.object({
|
|
|
30
76
|
createdAt: z.number(),
|
|
31
77
|
// Mirror of CraftSkill.hidden; lets the tag-browse filter hidden skills out.
|
|
32
78
|
hidden: z.boolean(),
|
|
79
|
+
// Mirror of CraftSkill.kind so the tag-browse card can render the kind badge without a
|
|
80
|
+
// second read.
|
|
81
|
+
kind: CraftSkillKindSchema,
|
|
82
|
+
// Mirror of CraftSkill.source — present ONLY when kind === 'mimicOnTtt' (the source-doc
|
|
83
|
+
// discriminated union guarantees that invariant on the authoritative side). Lets the
|
|
84
|
+
// browse card render the clickable "someone performed my work" source link.
|
|
85
|
+
source: CraftSkillSourceReferenceSchema.optional(),
|
|
33
86
|
});
|
|
34
87
|
export const MinimalCraftSkillSchema = z.object({
|
|
35
88
|
id: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oFAAoF;AACpF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAE/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oFAAoF;AACpF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAE/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,eAAe,GAAG,CA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AAQ,EAAE;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,gFAAgF;IAChF,+EAA+E;IAC/E,mEAAmE;IACnE,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,mFAAmF;IACnF,iFAAiF;IACjF,4BAA4B;IAC5B,GAAG,6BAA6B;CACjC,CAAC,CAAC"}
|
|
@@ -3,10 +3,23 @@ export declare const AcceptViolationDecisionInputSchema: z.ZodObject<{
|
|
|
3
3
|
violationId: z.ZodString;
|
|
4
4
|
}, z.core.$strict>;
|
|
5
5
|
export type AcceptViolationDecisionInput = z.infer<typeof AcceptViolationDecisionInputSchema>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ShortLinkTargetTypeSchema: z.ZodEnum<{
|
|
7
|
+
audition: "audition";
|
|
8
|
+
"audition-entry": "audition-entry";
|
|
9
|
+
commission: "commission";
|
|
10
|
+
}>;
|
|
11
|
+
export type ShortLinkTargetType = z.infer<typeof ShortLinkTargetTypeSchema>;
|
|
12
|
+
export declare const CreateShortLinkInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
targetType: z.ZodLiteral<"audition">;
|
|
7
14
|
auditionId: z.ZodString;
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
targetType: z.ZodLiteral<"audition-entry">;
|
|
17
|
+
auditionId: z.ZodString;
|
|
18
|
+
auditionEntryId: z.ZodString;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
20
|
+
targetType: z.ZodLiteral<"commission">;
|
|
21
|
+
commissionListingId: z.ZodString;
|
|
22
|
+
}, z.core.$strict>], "targetType">;
|
|
10
23
|
export type CreateShortLinkInput = z.infer<typeof CreateShortLinkInputSchema>;
|
|
11
24
|
export declare const SeedProfanityListInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
12
25
|
export type SeedProfanityListInput = z.infer<typeof SeedProfanityListInputSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/schemas/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/schemas/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kCAAkC;;kBAEpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAK9F,eAAO,MAAM,yBAAyB;;;;EAAuD,CAAC;AAC9F,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;kCAcrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E,eAAO,MAAM,4BAA4B,iCAAwB,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,gCAAgC,iCAAwB,CAAC;AACtE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,oCAAoC,iCAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,iCAAiC,iCAAwB,CAAC;AACvE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,0BAA0B,iCAAwB,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,0FAA0F;AAC1F,eAAO,MAAM,8BAA8B;;;kBAQvC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;kBAGhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,yBAAyB;;;;;;;;;kBAG3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,8BAA8B;;kBAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,gCAAgC;;kBAElC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
package/dist/schemas/utility.js
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { violationIdSchema, auditionIdSchema, auditionEntryIdSchema } from './atoms.js';
|
|
2
|
+
import { violationIdSchema, auditionIdSchema, auditionEntryIdSchema, commissionListingIdSchema, } from './atoms.js';
|
|
3
3
|
import { MAX_APPEAL_MESSAGE_LENGTH, MAX_FEEDBACK_SUGGESTION_LENGTH, FEEDBACK_TYPES } from '../constants/business.js';
|
|
4
4
|
export const AcceptViolationDecisionInputSchema = z.object({
|
|
5
5
|
violationId: violationIdSchema,
|
|
6
6
|
}).strict();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
// Share-target types the short-link system can point at. New system entities (hall items,
|
|
8
|
+
// etc.) slot in by adding a `targetType` literal + its own union member below — no rework
|
|
9
|
+
// of the existing members. Each member carries exactly the id(s) its destination URL needs.
|
|
10
|
+
export const ShortLinkTargetTypeSchema = z.enum(['audition', 'audition-entry', 'commission']);
|
|
11
|
+
export const CreateShortLinkInputSchema = z.discriminatedUnion('targetType', [
|
|
12
|
+
z.object({
|
|
13
|
+
targetType: z.literal('audition'),
|
|
14
|
+
auditionId: auditionIdSchema,
|
|
15
|
+
}).strict(),
|
|
16
|
+
z.object({
|
|
17
|
+
targetType: z.literal('audition-entry'),
|
|
18
|
+
auditionId: auditionIdSchema,
|
|
19
|
+
auditionEntryId: auditionEntryIdSchema,
|
|
20
|
+
}).strict(),
|
|
21
|
+
z.object({
|
|
22
|
+
targetType: z.literal('commission'),
|
|
23
|
+
commissionListingId: commissionListingIdSchema,
|
|
24
|
+
}).strict(),
|
|
25
|
+
]);
|
|
11
26
|
// No-input seed callables (Ready for Launch tab). Each prepopulates one system
|
|
12
27
|
// dataset from a canonical backend constant; the input is intentionally empty.
|
|
13
28
|
export const SeedProfanityListInputSchema = z.object({}).strict();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/schemas/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/schemas/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,WA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