@ttt-productions/ttt-core 0.10.16 → 0.10.18
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/doc-schemas/commissions.d.ts +9 -9
- package/dist/doc-schemas/commissions.js +4 -4
- package/dist/doc-schemas/commissions.js.map +1 -1
- package/dist/doc-schemas/content.d.ts +12 -12
- package/dist/doc-schemas/content.js +5 -5
- package/dist/doc-schemas/content.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +21 -21
- package/dist/doc-schemas/social.d.ts +3 -3
- package/dist/doc-schemas/social.js +6 -6
- package/dist/doc-schemas/social.js.map +1 -1
- package/dist/doc-schemas/user.d.ts +6 -6
- package/dist/doc-schemas/user.js +3 -3
- package/dist/doc-schemas/user.js.map +1 -1
- package/dist/schemas/payments.d.ts +3 -0
- package/dist/schemas/payments.d.ts.map +1 -1
- package/dist/schemas/payments.js +5 -0
- package/dist/schemas/payments.js.map +1 -1
- package/package.json +1 -1
|
@@ -70,11 +70,12 @@ export declare const FullCommissionListingSchema: z.ZodObject<{
|
|
|
70
70
|
}>;
|
|
71
71
|
status: z.ZodEnum<["open", "closed"]>;
|
|
72
72
|
savedProposalArtisans: z.ZodArray<z.ZodString, "many">;
|
|
73
|
-
hidden: z.
|
|
73
|
+
hidden: z.ZodBoolean;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
status: "open" | "closed";
|
|
76
76
|
title: string;
|
|
77
77
|
description: string;
|
|
78
|
+
hidden: boolean;
|
|
78
79
|
createdAt: number;
|
|
79
80
|
createdBy: {
|
|
80
81
|
uid: string;
|
|
@@ -89,7 +90,6 @@ export declare const FullCommissionListingSchema: z.ZodObject<{
|
|
|
89
90
|
workingDescription: string;
|
|
90
91
|
};
|
|
91
92
|
savedProposalArtisans: string[];
|
|
92
|
-
hidden?: boolean | undefined;
|
|
93
93
|
commissionAttachment?: {
|
|
94
94
|
type: string;
|
|
95
95
|
name: string;
|
|
@@ -101,6 +101,7 @@ export declare const FullCommissionListingSchema: z.ZodObject<{
|
|
|
101
101
|
status: "open" | "closed";
|
|
102
102
|
title: string;
|
|
103
103
|
description: string;
|
|
104
|
+
hidden: boolean;
|
|
104
105
|
createdAt: number;
|
|
105
106
|
createdBy: {
|
|
106
107
|
uid: string;
|
|
@@ -115,7 +116,6 @@ export declare const FullCommissionListingSchema: z.ZodObject<{
|
|
|
115
116
|
workingDescription: string;
|
|
116
117
|
};
|
|
117
118
|
savedProposalArtisans: string[];
|
|
118
|
-
hidden?: boolean | undefined;
|
|
119
119
|
commissionAttachment?: {
|
|
120
120
|
type: string;
|
|
121
121
|
name: string;
|
|
@@ -204,7 +204,7 @@ export declare const AuditionSchema: z.ZodObject<{
|
|
|
204
204
|
auditionEntryCount: z.ZodOptional<z.ZodNumber>;
|
|
205
205
|
shortId: z.ZodOptional<z.ZodString>;
|
|
206
206
|
shortUrl: z.ZodOptional<z.ZodString>;
|
|
207
|
-
hidden: z.
|
|
207
|
+
hidden: z.ZodBoolean;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
209
|
type: "platformAudition" | "sponsoredAudition" | "workAudition";
|
|
210
210
|
status: "open" | "closed" | "pendingReview";
|
|
@@ -212,6 +212,7 @@ export declare const AuditionSchema: z.ZodObject<{
|
|
|
212
212
|
description: string;
|
|
213
213
|
createdOn: number;
|
|
214
214
|
videoUrl: string;
|
|
215
|
+
hidden: boolean;
|
|
215
216
|
createdBy: {
|
|
216
217
|
uid: string;
|
|
217
218
|
};
|
|
@@ -219,7 +220,6 @@ export declare const AuditionSchema: z.ZodObject<{
|
|
|
219
220
|
openTill: number;
|
|
220
221
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
221
222
|
workProjectId?: string | undefined;
|
|
222
|
-
hidden?: boolean | undefined;
|
|
223
223
|
stakeSharesOffered?: number | undefined;
|
|
224
224
|
sponsoredAuditionAmountUSD?: number | undefined;
|
|
225
225
|
auditionEntryCount?: number | undefined;
|
|
@@ -232,6 +232,7 @@ export declare const AuditionSchema: z.ZodObject<{
|
|
|
232
232
|
description: string;
|
|
233
233
|
createdOn: number;
|
|
234
234
|
videoUrl: string;
|
|
235
|
+
hidden: boolean;
|
|
235
236
|
createdBy: {
|
|
236
237
|
uid: string;
|
|
237
238
|
};
|
|
@@ -239,7 +240,6 @@ export declare const AuditionSchema: z.ZodObject<{
|
|
|
239
240
|
openTill: number;
|
|
240
241
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
241
242
|
workProjectId?: string | undefined;
|
|
242
|
-
hidden?: boolean | undefined;
|
|
243
243
|
stakeSharesOffered?: number | undefined;
|
|
244
244
|
sponsoredAuditionAmountUSD?: number | undefined;
|
|
245
245
|
auditionEntryCount?: number | undefined;
|
|
@@ -264,9 +264,10 @@ export declare const AuditionEntrySchema: z.ZodObject<{
|
|
|
264
264
|
votes: z.ZodNumber;
|
|
265
265
|
shortId: z.ZodOptional<z.ZodString>;
|
|
266
266
|
shortUrl: z.ZodOptional<z.ZodString>;
|
|
267
|
-
hidden: z.
|
|
267
|
+
hidden: z.ZodBoolean;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
269
|
videoUrl: string;
|
|
270
|
+
hidden: boolean;
|
|
270
271
|
createdAt: number;
|
|
271
272
|
createdBy: {
|
|
272
273
|
uid: string;
|
|
@@ -276,11 +277,11 @@ export declare const AuditionEntrySchema: z.ZodObject<{
|
|
|
276
277
|
votes: number;
|
|
277
278
|
mediaType?: "video" | "image" | "other" | undefined;
|
|
278
279
|
workProjectId?: string | undefined;
|
|
279
|
-
hidden?: boolean | undefined;
|
|
280
280
|
shortId?: string | undefined;
|
|
281
281
|
shortUrl?: string | undefined;
|
|
282
282
|
}, {
|
|
283
283
|
videoUrl: string;
|
|
284
|
+
hidden: boolean;
|
|
284
285
|
createdAt: number;
|
|
285
286
|
createdBy: {
|
|
286
287
|
uid: string;
|
|
@@ -290,7 +291,6 @@ export declare const AuditionEntrySchema: z.ZodObject<{
|
|
|
290
291
|
votes: number;
|
|
291
292
|
mediaType?: "video" | "image" | "other" | undefined;
|
|
292
293
|
workProjectId?: string | undefined;
|
|
293
|
-
hidden?: boolean | undefined;
|
|
294
294
|
shortId?: string | undefined;
|
|
295
295
|
shortUrl?: string | undefined;
|
|
296
296
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Commission + Audition Firestore document SCHEMAS
|
|
1
|
+
// Commission + Audition Firestore document SCHEMAS — commissionListings/{id} and its
|
|
2
2
|
// commissionProposals, auditionBoard/{id} and its auditionEntries, plus the per-user
|
|
3
3
|
// auditionVotes doc. Types inferred via z.infer.
|
|
4
4
|
import { z } from 'zod';
|
|
@@ -27,7 +27,7 @@ export const FullCommissionListingSchema = z.object({
|
|
|
27
27
|
savedProposalArtisans: z.array(z.string()),
|
|
28
28
|
// Admin moderation hide (reversible). When true the listing is suppressed from
|
|
29
29
|
// the commission board; restored by clearing it.
|
|
30
|
-
hidden: z.boolean()
|
|
30
|
+
hidden: z.boolean(),
|
|
31
31
|
});
|
|
32
32
|
export const CommissionProposalSchema = z.object({
|
|
33
33
|
commissionProposalId: z.string(),
|
|
@@ -64,7 +64,7 @@ export const AuditionSchema = z.object({
|
|
|
64
64
|
shortUrl: z.string().optional(),
|
|
65
65
|
// Admin moderation hide (reversible). When true the audition is suppressed from
|
|
66
66
|
// the audition board; restored by clearing it.
|
|
67
|
-
hidden: z.boolean()
|
|
67
|
+
hidden: z.boolean(),
|
|
68
68
|
});
|
|
69
69
|
export const AuditionEntrySchema = z.object({
|
|
70
70
|
auditionEntryId: z.string(),
|
|
@@ -79,7 +79,7 @@ export const AuditionEntrySchema = z.object({
|
|
|
79
79
|
shortUrl: z.string().optional(),
|
|
80
80
|
// Admin moderation hide (reversible). When true the entry is suppressed from the
|
|
81
81
|
// audition's entry list; restored by clearing it.
|
|
82
|
-
hidden: z.boolean()
|
|
82
|
+
hidden: z.boolean(),
|
|
83
83
|
});
|
|
84
84
|
export const UserAuditionVoteSchema = z.object({
|
|
85
85
|
votedForAuditionEntryId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commissions.js","sourceRoot":"","sources":["../../src/doc-schemas/commissions.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"commissions.js","sourceRoot":"","sources":["../../src/doc-schemas/commissions.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,qFAAqF;AACrF,iDAAiD;AAEjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,gGAAgG;IAChG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,oBAAoB,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC3D,wBAAwB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7C,kBAAkB,EAAE,CAAC,CAAC,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Q,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,SAAS,EAAE,aAAa;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,iFAAiF;IACjF,kDAAkD;IAClD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,2BAA2B,EAAE,aAAa;CAC3C,CAAC,CAAC"}
|
|
@@ -240,7 +240,7 @@ export declare const PublishedHallItemSchema: z.ZodObject<{
|
|
|
240
240
|
coverPhotoCinematic: z.ZodOptional<z.ZodString>;
|
|
241
241
|
workGenres: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
242
|
followerCount: z.ZodOptional<z.ZodNumber>;
|
|
243
|
-
hidden: z.
|
|
243
|
+
hidden: z.ZodBoolean;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
245
|
status: "published" | "paused" | "banned";
|
|
246
246
|
createdOn: number;
|
|
@@ -248,6 +248,7 @@ export declare const PublishedHallItemSchema: z.ZodObject<{
|
|
|
248
248
|
workProjectId: string;
|
|
249
249
|
workProjectType: "Tales" | "Tunes" | "Television";
|
|
250
250
|
hallWingType: "entertainment" | "educational" | "newsPolitical";
|
|
251
|
+
hidden: boolean;
|
|
251
252
|
title?: string | undefined;
|
|
252
253
|
description?: string | undefined;
|
|
253
254
|
coverPhotoSquare?: string | undefined;
|
|
@@ -256,7 +257,6 @@ export declare const PublishedHallItemSchema: z.ZodObject<{
|
|
|
256
257
|
workGenres?: string[] | undefined;
|
|
257
258
|
publishedAt?: number | undefined;
|
|
258
259
|
followerCount?: number | undefined;
|
|
259
|
-
hidden?: boolean | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
status: "published" | "paused" | "banned";
|
|
262
262
|
createdOn: number;
|
|
@@ -264,6 +264,7 @@ export declare const PublishedHallItemSchema: z.ZodObject<{
|
|
|
264
264
|
workProjectId: string;
|
|
265
265
|
workProjectType: "Tales" | "Tunes" | "Television";
|
|
266
266
|
hallWingType: "entertainment" | "educational" | "newsPolitical";
|
|
267
|
+
hidden: boolean;
|
|
267
268
|
title?: string | undefined;
|
|
268
269
|
description?: string | undefined;
|
|
269
270
|
coverPhotoSquare?: string | undefined;
|
|
@@ -272,7 +273,6 @@ export declare const PublishedHallItemSchema: z.ZodObject<{
|
|
|
272
273
|
workGenres?: string[] | undefined;
|
|
273
274
|
publishedAt?: number | undefined;
|
|
274
275
|
followerCount?: number | undefined;
|
|
275
|
-
hidden?: boolean | undefined;
|
|
276
276
|
}>;
|
|
277
277
|
export type PublishedHallItem = z.infer<typeof PublishedHallItemSchema>;
|
|
278
278
|
export declare const PublishedTuneTrackSchema: z.ZodObject<{
|
|
@@ -282,23 +282,23 @@ export declare const PublishedTuneTrackSchema: z.ZodObject<{
|
|
|
282
282
|
description: z.ZodOptional<z.ZodString>;
|
|
283
283
|
fileUrl: z.ZodString;
|
|
284
284
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
285
|
-
hidden: z.
|
|
285
|
+
hidden: z.ZodBoolean;
|
|
286
286
|
}, "strip", z.ZodTypeAny, {
|
|
287
287
|
uid: string;
|
|
288
288
|
title: string;
|
|
289
289
|
order: number;
|
|
290
290
|
fileUrl: string;
|
|
291
|
+
hidden: boolean;
|
|
291
292
|
description?: string | undefined;
|
|
292
293
|
photoUrl?: string | undefined;
|
|
293
|
-
hidden?: boolean | undefined;
|
|
294
294
|
}, {
|
|
295
295
|
uid: string;
|
|
296
296
|
title: string;
|
|
297
297
|
order: number;
|
|
298
298
|
fileUrl: string;
|
|
299
|
+
hidden: boolean;
|
|
299
300
|
description?: string | undefined;
|
|
300
301
|
photoUrl?: string | undefined;
|
|
301
|
-
hidden?: boolean | undefined;
|
|
302
302
|
}>;
|
|
303
303
|
export type PublishedTuneTrack = z.infer<typeof PublishedTuneTrackSchema>;
|
|
304
304
|
export declare const PublishedChapterSchema: z.ZodObject<{
|
|
@@ -308,23 +308,23 @@ export declare const PublishedChapterSchema: z.ZodObject<{
|
|
|
308
308
|
description: z.ZodOptional<z.ZodString>;
|
|
309
309
|
content: z.ZodString;
|
|
310
310
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
311
|
-
hidden: z.
|
|
311
|
+
hidden: z.ZodBoolean;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
313
|
uid: string;
|
|
314
314
|
title: string;
|
|
315
315
|
content: string;
|
|
316
316
|
order: number;
|
|
317
|
+
hidden: boolean;
|
|
317
318
|
description?: string | undefined;
|
|
318
319
|
photoUrl?: string | undefined;
|
|
319
|
-
hidden?: boolean | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
uid: string;
|
|
322
322
|
title: string;
|
|
323
323
|
content: string;
|
|
324
324
|
order: number;
|
|
325
|
+
hidden: boolean;
|
|
325
326
|
description?: string | undefined;
|
|
326
327
|
photoUrl?: string | undefined;
|
|
327
|
-
hidden?: boolean | undefined;
|
|
328
328
|
}>;
|
|
329
329
|
export type PublishedChapter = z.infer<typeof PublishedChapterSchema>;
|
|
330
330
|
export declare const PublishedTelevisionEpisodeSchema: z.ZodObject<{
|
|
@@ -334,23 +334,23 @@ export declare const PublishedTelevisionEpisodeSchema: z.ZodObject<{
|
|
|
334
334
|
description: z.ZodOptional<z.ZodString>;
|
|
335
335
|
videoUrl: z.ZodString;
|
|
336
336
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
337
|
-
hidden: z.
|
|
337
|
+
hidden: z.ZodBoolean;
|
|
338
338
|
}, "strip", z.ZodTypeAny, {
|
|
339
339
|
uid: string;
|
|
340
340
|
title: string;
|
|
341
341
|
order: number;
|
|
342
342
|
videoUrl: string;
|
|
343
|
+
hidden: boolean;
|
|
343
344
|
description?: string | undefined;
|
|
344
345
|
photoUrl?: string | undefined;
|
|
345
|
-
hidden?: boolean | undefined;
|
|
346
346
|
}, {
|
|
347
347
|
uid: string;
|
|
348
348
|
title: string;
|
|
349
349
|
order: number;
|
|
350
350
|
videoUrl: string;
|
|
351
|
+
hidden: boolean;
|
|
351
352
|
description?: string | undefined;
|
|
352
353
|
photoUrl?: string | undefined;
|
|
353
|
-
hidden?: boolean | undefined;
|
|
354
354
|
}>;
|
|
355
355
|
export type PublishedTelevisionEpisode = z.infer<typeof PublishedTelevisionEpisodeSchema>;
|
|
356
356
|
export declare const HallLibraryPreferencesSchema: z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Content Firestore document SCHEMAS
|
|
1
|
+
// Content Firestore document SCHEMAS — Tales/Tunes/Television sub-documents, the
|
|
2
2
|
// Threshold + Hall library item shapes, Hall library user preferences, and the
|
|
3
3
|
// `_config` singleton docs (futurePlans, rulesAndAgreements). Types are inferred via
|
|
4
4
|
// z.infer. The enum-key consts (HALL_WING_TYPE_KEYS / WORK_PROJECT_TYPE_KEYS) and the
|
|
@@ -101,7 +101,7 @@ export const PublishedHallItemSchema = z.object({
|
|
|
101
101
|
coverPhotoCinematic: z.string().optional(),
|
|
102
102
|
workGenres: z.array(z.string()).optional(),
|
|
103
103
|
followerCount: z.number().optional(),
|
|
104
|
-
hidden: z.boolean()
|
|
104
|
+
hidden: z.boolean(),
|
|
105
105
|
});
|
|
106
106
|
export const PublishedTuneTrackSchema = z.object({
|
|
107
107
|
uid: z.string(),
|
|
@@ -110,7 +110,7 @@ export const PublishedTuneTrackSchema = z.object({
|
|
|
110
110
|
description: z.string().optional(),
|
|
111
111
|
fileUrl: z.string(),
|
|
112
112
|
photoUrl: z.string().optional(),
|
|
113
|
-
hidden: z.boolean()
|
|
113
|
+
hidden: z.boolean(),
|
|
114
114
|
});
|
|
115
115
|
export const PublishedChapterSchema = z.object({
|
|
116
116
|
uid: z.string(),
|
|
@@ -119,7 +119,7 @@ export const PublishedChapterSchema = z.object({
|
|
|
119
119
|
description: z.string().optional(),
|
|
120
120
|
content: z.string(),
|
|
121
121
|
photoUrl: z.string().optional(),
|
|
122
|
-
hidden: z.boolean()
|
|
122
|
+
hidden: z.boolean(),
|
|
123
123
|
});
|
|
124
124
|
export const PublishedTelevisionEpisodeSchema = z.object({
|
|
125
125
|
uid: z.string(),
|
|
@@ -128,7 +128,7 @@ export const PublishedTelevisionEpisodeSchema = z.object({
|
|
|
128
128
|
description: z.string().optional(),
|
|
129
129
|
videoUrl: z.string(),
|
|
130
130
|
photoUrl: z.string().optional(),
|
|
131
|
-
hidden: z.boolean()
|
|
131
|
+
hidden: z.boolean(),
|
|
132
132
|
});
|
|
133
133
|
// --- Hall library user preferences ---
|
|
134
134
|
export const HallLibraryPreferencesSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/doc-schemas/content.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/doc-schemas/content.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,+EAA+E;AAC/E,qFAAqF;AACrF,sFAAsF;AACtF,2DAA2D;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElF,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAC;AAEr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E;KAC/C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -169,23 +169,23 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
169
169
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
170
170
|
createdAt: z.ZodNumber;
|
|
171
171
|
type: z.ZodEnum<["image", "video", "audio"]>;
|
|
172
|
-
hidden: z.
|
|
172
|
+
hidden: z.ZodBoolean;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
type: "video" | "image" | "audio";
|
|
175
|
+
hidden: boolean;
|
|
175
176
|
id: string;
|
|
176
177
|
name: string;
|
|
177
178
|
url: string;
|
|
178
179
|
tags: string[];
|
|
179
180
|
createdAt: number;
|
|
180
|
-
hidden?: boolean | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
type: "video" | "image" | "audio";
|
|
183
|
+
hidden: boolean;
|
|
183
184
|
id: string;
|
|
184
185
|
name: string;
|
|
185
186
|
url: string;
|
|
186
187
|
tags: string[];
|
|
187
188
|
createdAt: number;
|
|
188
|
-
hidden?: boolean | undefined;
|
|
189
189
|
}>;
|
|
190
190
|
readonly 'userProfiles/{userId}/auditionVotes/{auditionId}': z.ZodObject<{
|
|
191
191
|
votedForAuditionEntryId: z.ZodString;
|
|
@@ -1326,9 +1326,10 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1326
1326
|
moderationReason: z.ZodOptional<z.ZodString>;
|
|
1327
1327
|
moderationLayer: z.ZodOptional<z.ZodEnum<["word_filter", "perspective"]>>;
|
|
1328
1328
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
-
hidden: z.
|
|
1329
|
+
hidden: z.ZodBoolean;
|
|
1330
1330
|
}, "strip", z.ZodTypeAny, {
|
|
1331
1331
|
content: string;
|
|
1332
|
+
hidden: boolean;
|
|
1332
1333
|
createdAt: number;
|
|
1333
1334
|
createdBy: {
|
|
1334
1335
|
uid: string;
|
|
@@ -1338,7 +1339,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1338
1339
|
relatedIds: string[];
|
|
1339
1340
|
likes: number;
|
|
1340
1341
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
1341
|
-
hidden?: boolean | undefined;
|
|
1342
1342
|
mentions?: {
|
|
1343
1343
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
1344
1344
|
id: string;
|
|
@@ -1354,6 +1354,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1354
1354
|
visible?: boolean | undefined;
|
|
1355
1355
|
}, {
|
|
1356
1356
|
content: string;
|
|
1357
|
+
hidden: boolean;
|
|
1357
1358
|
createdAt: number;
|
|
1358
1359
|
createdBy: {
|
|
1359
1360
|
uid: string;
|
|
@@ -1363,7 +1364,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1363
1364
|
relatedIds: string[];
|
|
1364
1365
|
likes: number;
|
|
1365
1366
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
1366
|
-
hidden?: boolean | undefined;
|
|
1367
1367
|
mentions?: {
|
|
1368
1368
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
1369
1369
|
id: string;
|
|
@@ -1665,7 +1665,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1665
1665
|
coverPhotoCinematic: z.ZodOptional<z.ZodString>;
|
|
1666
1666
|
workGenres: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1667
1667
|
followerCount: z.ZodOptional<z.ZodNumber>;
|
|
1668
|
-
hidden: z.
|
|
1668
|
+
hidden: z.ZodBoolean;
|
|
1669
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1670
1670
|
status: "published" | "paused" | "banned";
|
|
1671
1671
|
createdOn: number;
|
|
@@ -1673,6 +1673,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1673
1673
|
workProjectId: string;
|
|
1674
1674
|
workProjectType: "Tales" | "Tunes" | "Television";
|
|
1675
1675
|
hallWingType: "entertainment" | "educational" | "newsPolitical";
|
|
1676
|
+
hidden: boolean;
|
|
1676
1677
|
title?: string | undefined;
|
|
1677
1678
|
description?: string | undefined;
|
|
1678
1679
|
coverPhotoSquare?: string | undefined;
|
|
@@ -1681,7 +1682,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1681
1682
|
workGenres?: string[] | undefined;
|
|
1682
1683
|
publishedAt?: number | undefined;
|
|
1683
1684
|
followerCount?: number | undefined;
|
|
1684
|
-
hidden?: boolean | undefined;
|
|
1685
1685
|
}, {
|
|
1686
1686
|
status: "published" | "paused" | "banned";
|
|
1687
1687
|
createdOn: number;
|
|
@@ -1689,6 +1689,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1689
1689
|
workProjectId: string;
|
|
1690
1690
|
workProjectType: "Tales" | "Tunes" | "Television";
|
|
1691
1691
|
hallWingType: "entertainment" | "educational" | "newsPolitical";
|
|
1692
|
+
hidden: boolean;
|
|
1692
1693
|
title?: string | undefined;
|
|
1693
1694
|
description?: string | undefined;
|
|
1694
1695
|
coverPhotoSquare?: string | undefined;
|
|
@@ -1697,7 +1698,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1697
1698
|
workGenres?: string[] | undefined;
|
|
1698
1699
|
publishedAt?: number | undefined;
|
|
1699
1700
|
followerCount?: number | undefined;
|
|
1700
|
-
hidden?: boolean | undefined;
|
|
1701
1701
|
}>;
|
|
1702
1702
|
readonly 'commissionListings/{commissionListingId}': z.ZodObject<{
|
|
1703
1703
|
commissionListingId: z.ZodString;
|
|
@@ -1750,11 +1750,12 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1750
1750
|
}>;
|
|
1751
1751
|
status: z.ZodEnum<["open", "closed"]>;
|
|
1752
1752
|
savedProposalArtisans: z.ZodArray<z.ZodString, "many">;
|
|
1753
|
-
hidden: z.
|
|
1753
|
+
hidden: z.ZodBoolean;
|
|
1754
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1755
1755
|
status: "open" | "closed";
|
|
1756
1756
|
title: string;
|
|
1757
1757
|
description: string;
|
|
1758
|
+
hidden: boolean;
|
|
1758
1759
|
createdAt: number;
|
|
1759
1760
|
createdBy: {
|
|
1760
1761
|
uid: string;
|
|
@@ -1769,7 +1770,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1769
1770
|
workingDescription: string;
|
|
1770
1771
|
};
|
|
1771
1772
|
savedProposalArtisans: string[];
|
|
1772
|
-
hidden?: boolean | undefined;
|
|
1773
1773
|
commissionAttachment?: {
|
|
1774
1774
|
type: string;
|
|
1775
1775
|
name: string;
|
|
@@ -1781,6 +1781,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1781
1781
|
status: "open" | "closed";
|
|
1782
1782
|
title: string;
|
|
1783
1783
|
description: string;
|
|
1784
|
+
hidden: boolean;
|
|
1784
1785
|
createdAt: number;
|
|
1785
1786
|
createdBy: {
|
|
1786
1787
|
uid: string;
|
|
@@ -1795,7 +1796,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1795
1796
|
workingDescription: string;
|
|
1796
1797
|
};
|
|
1797
1798
|
savedProposalArtisans: string[];
|
|
1798
|
-
hidden?: boolean | undefined;
|
|
1799
1799
|
commissionAttachment?: {
|
|
1800
1800
|
type: string;
|
|
1801
1801
|
name: string;
|
|
@@ -1880,7 +1880,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1880
1880
|
auditionEntryCount: z.ZodOptional<z.ZodNumber>;
|
|
1881
1881
|
shortId: z.ZodOptional<z.ZodString>;
|
|
1882
1882
|
shortUrl: z.ZodOptional<z.ZodString>;
|
|
1883
|
-
hidden: z.
|
|
1883
|
+
hidden: z.ZodBoolean;
|
|
1884
1884
|
}, "strip", z.ZodTypeAny, {
|
|
1885
1885
|
type: "platformAudition" | "sponsoredAudition" | "workAudition";
|
|
1886
1886
|
status: "open" | "closed" | "pendingReview";
|
|
@@ -1888,6 +1888,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1888
1888
|
description: string;
|
|
1889
1889
|
createdOn: number;
|
|
1890
1890
|
videoUrl: string;
|
|
1891
|
+
hidden: boolean;
|
|
1891
1892
|
createdBy: {
|
|
1892
1893
|
uid: string;
|
|
1893
1894
|
};
|
|
@@ -1895,7 +1896,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1895
1896
|
openTill: number;
|
|
1896
1897
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
1897
1898
|
workProjectId?: string | undefined;
|
|
1898
|
-
hidden?: boolean | undefined;
|
|
1899
1899
|
stakeSharesOffered?: number | undefined;
|
|
1900
1900
|
sponsoredAuditionAmountUSD?: number | undefined;
|
|
1901
1901
|
auditionEntryCount?: number | undefined;
|
|
@@ -1908,6 +1908,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1908
1908
|
description: string;
|
|
1909
1909
|
createdOn: number;
|
|
1910
1910
|
videoUrl: string;
|
|
1911
|
+
hidden: boolean;
|
|
1911
1912
|
createdBy: {
|
|
1912
1913
|
uid: string;
|
|
1913
1914
|
};
|
|
@@ -1915,7 +1916,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1915
1916
|
openTill: number;
|
|
1916
1917
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
1917
1918
|
workProjectId?: string | undefined;
|
|
1918
|
-
hidden?: boolean | undefined;
|
|
1919
1919
|
stakeSharesOffered?: number | undefined;
|
|
1920
1920
|
sponsoredAuditionAmountUSD?: number | undefined;
|
|
1921
1921
|
auditionEntryCount?: number | undefined;
|
|
@@ -1939,9 +1939,10 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1939
1939
|
votes: z.ZodNumber;
|
|
1940
1940
|
shortId: z.ZodOptional<z.ZodString>;
|
|
1941
1941
|
shortUrl: z.ZodOptional<z.ZodString>;
|
|
1942
|
-
hidden: z.
|
|
1942
|
+
hidden: z.ZodBoolean;
|
|
1943
1943
|
}, "strip", z.ZodTypeAny, {
|
|
1944
1944
|
videoUrl: string;
|
|
1945
|
+
hidden: boolean;
|
|
1945
1946
|
createdAt: number;
|
|
1946
1947
|
createdBy: {
|
|
1947
1948
|
uid: string;
|
|
@@ -1951,11 +1952,11 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1951
1952
|
votes: number;
|
|
1952
1953
|
mediaType?: "video" | "image" | "other" | undefined;
|
|
1953
1954
|
workProjectId?: string | undefined;
|
|
1954
|
-
hidden?: boolean | undefined;
|
|
1955
1955
|
shortId?: string | undefined;
|
|
1956
1956
|
shortUrl?: string | undefined;
|
|
1957
1957
|
}, {
|
|
1958
1958
|
videoUrl: string;
|
|
1959
|
+
hidden: boolean;
|
|
1959
1960
|
createdAt: number;
|
|
1960
1961
|
createdBy: {
|
|
1961
1962
|
uid: string;
|
|
@@ -1965,7 +1966,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
1965
1966
|
votes: number;
|
|
1966
1967
|
mediaType?: "video" | "image" | "other" | undefined;
|
|
1967
1968
|
workProjectId?: string | undefined;
|
|
1968
|
-
hidden?: boolean | undefined;
|
|
1969
1969
|
shortId?: string | undefined;
|
|
1970
1970
|
shortUrl?: string | undefined;
|
|
1971
1971
|
}>;
|
|
@@ -12603,8 +12603,9 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
12603
12603
|
craftSkillType: z.ZodEnum<["image", "video", "audio"]>;
|
|
12604
12604
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
12605
12605
|
createdAt: z.ZodNumber;
|
|
12606
|
-
hidden: z.
|
|
12606
|
+
hidden: z.ZodBoolean;
|
|
12607
12607
|
}, "strip", z.ZodTypeAny, {
|
|
12608
|
+
hidden: boolean;
|
|
12608
12609
|
userId: string;
|
|
12609
12610
|
tags: string[];
|
|
12610
12611
|
createdAt: number;
|
|
@@ -12613,8 +12614,8 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
12613
12614
|
craftSkillName: string;
|
|
12614
12615
|
craftSkillUrl: string;
|
|
12615
12616
|
craftSkillType: "video" | "image" | "audio";
|
|
12616
|
-
hidden?: boolean | undefined;
|
|
12617
12617
|
}, {
|
|
12618
|
+
hidden: boolean;
|
|
12618
12619
|
userId: string;
|
|
12619
12620
|
tags: string[];
|
|
12620
12621
|
createdAt: number;
|
|
@@ -12623,7 +12624,6 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
12623
12624
|
craftSkillName: string;
|
|
12624
12625
|
craftSkillUrl: string;
|
|
12625
12626
|
craftSkillType: "video" | "image" | "audio";
|
|
12626
|
-
hidden?: boolean | undefined;
|
|
12627
12627
|
}>;
|
|
12628
12628
|
readonly 'reservedDisplayNames/{displayNameUppercase}': z.ZodObject<{
|
|
12629
12629
|
userId: z.ZodString;
|
|
@@ -39,9 +39,10 @@ export declare const SquareStreetzPostSchema: z.ZodObject<{
|
|
|
39
39
|
moderationReason: z.ZodOptional<z.ZodString>;
|
|
40
40
|
moderationLayer: z.ZodOptional<z.ZodEnum<["word_filter", "perspective"]>>;
|
|
41
41
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
hidden: z.
|
|
42
|
+
hidden: z.ZodBoolean;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
content: string;
|
|
45
|
+
hidden: boolean;
|
|
45
46
|
createdAt: number;
|
|
46
47
|
createdBy: {
|
|
47
48
|
uid: string;
|
|
@@ -51,7 +52,6 @@ export declare const SquareStreetzPostSchema: z.ZodObject<{
|
|
|
51
52
|
relatedIds: string[];
|
|
52
53
|
likes: number;
|
|
53
54
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
54
|
-
hidden?: boolean | undefined;
|
|
55
55
|
mentions?: {
|
|
56
56
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
57
57
|
id: string;
|
|
@@ -67,6 +67,7 @@ export declare const SquareStreetzPostSchema: z.ZodObject<{
|
|
|
67
67
|
visible?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
content: string;
|
|
70
|
+
hidden: boolean;
|
|
70
71
|
createdAt: number;
|
|
71
72
|
createdBy: {
|
|
72
73
|
uid: string;
|
|
@@ -76,7 +77,6 @@ export declare const SquareStreetzPostSchema: z.ZodObject<{
|
|
|
76
77
|
relatedIds: string[];
|
|
77
78
|
likes: number;
|
|
78
79
|
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
79
|
-
hidden?: boolean | undefined;
|
|
80
80
|
mentions?: {
|
|
81
81
|
type: "workRealm" | "user" | "workProject" | "commission" | "audition";
|
|
82
82
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// Social Firestore document SCHEMAS
|
|
1
|
+
// Social Firestore document SCHEMAS — SquareStreetz posts, mention history, and
|
|
2
2
|
// follow edges. Types inferred via z.infer. (Pledge-payment ledger docs moved to
|
|
3
3
|
// ../doc-schemas/payments.ts. SquareStreetzPostPayload is a transport shape, not a
|
|
4
|
-
// stored doc
|
|
4
|
+
// stored doc — it stays in ../types/social.ts.)
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { MentionSchema } from '../media/atoms.js';
|
|
7
7
|
import { FollowableTargetTypeSchema } from '../schemas/social.js';
|
|
@@ -36,7 +36,7 @@ export const SquareStreetzPostSchema = z.object({
|
|
|
36
36
|
// Admin moderation hide (reversible). When true the post is suppressed from all
|
|
37
37
|
// feeds/lists; restored by clearing it. Distinct from `visible` (upload/finalize
|
|
38
38
|
// gating) and `moderationStatus` (automated text-moderation outcome).
|
|
39
|
-
hidden: z.boolean()
|
|
39
|
+
hidden: z.boolean(),
|
|
40
40
|
});
|
|
41
41
|
export const MentionHistoryItemSchema = MentionSchema.extend({ viewedAt: z.number() });
|
|
42
42
|
export const MentionHistoryDocumentSchema = z.object({
|
|
@@ -49,20 +49,20 @@ export const FollowEdgeSchema = z.object({
|
|
|
49
49
|
targetId: z.string(),
|
|
50
50
|
followedOn: z.number(),
|
|
51
51
|
});
|
|
52
|
-
// followCounters/{targetType__targetId}
|
|
52
|
+
// followCounters/{targetType__targetId} — denormalized follower count for a followable target,
|
|
53
53
|
// maintained by the follow/unfollow callables via FieldValue.increment (never written by clients).
|
|
54
54
|
// The Hall Library "Most Followed" sort mirrors the workProject count onto hallItems.followerCount.
|
|
55
55
|
export const FollowCounterSchema = z.object({
|
|
56
56
|
followerCount: z.number(),
|
|
57
57
|
updatedOn: z.number(),
|
|
58
58
|
});
|
|
59
|
-
// userProfiles/{uid}/userLikes/likeHistory/squareStreetzLikes/{postId}
|
|
59
|
+
// userProfiles/{uid}/userLikes/likeHistory/squareStreetzLikes/{postId} — a user's like on a
|
|
60
60
|
// SquareStreetz post; existence == liked. The path nests three of the registry segments
|
|
61
61
|
// (userLikes / likeHistory / squareStreetzLikes). (functions/src/social/likeSquareStreetzPost.ts)
|
|
62
62
|
export const SquareStreetzLikeSchema = z.object({
|
|
63
63
|
likedOn: z.number(),
|
|
64
64
|
});
|
|
65
|
-
// squareStreetzFeed/trendingPosts
|
|
65
|
+
// squareStreetzFeed/trendingPosts — singleton holding the ordered top-N trending post IDs that the
|
|
66
66
|
// client infinite-scrolls through. (functions/src/social/runUpdateTrendingFeed.ts)
|
|
67
67
|
export const TrendingPostsSchema = z.object({
|
|
68
68
|
postIds: z.array(z.string()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,iFAAiF;AACjF,mFAAmF;AACnF,kDAAkD;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CA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AAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC"}
|
|
@@ -6,23 +6,23 @@ export declare const CraftSkillSchema: z.ZodObject<{
|
|
|
6
6
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
7
7
|
createdAt: z.ZodNumber;
|
|
8
8
|
type: z.ZodEnum<["image", "video", "audio"]>;
|
|
9
|
-
hidden: z.
|
|
9
|
+
hidden: z.ZodBoolean;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
type: "video" | "image" | "audio";
|
|
12
|
+
hidden: boolean;
|
|
12
13
|
id: string;
|
|
13
14
|
name: string;
|
|
14
15
|
url: string;
|
|
15
16
|
tags: string[];
|
|
16
17
|
createdAt: number;
|
|
17
|
-
hidden?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
type: "video" | "image" | "audio";
|
|
20
|
+
hidden: boolean;
|
|
20
21
|
id: string;
|
|
21
22
|
name: string;
|
|
22
23
|
url: string;
|
|
23
24
|
tags: string[];
|
|
24
25
|
createdAt: number;
|
|
25
|
-
hidden?: boolean | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
export type CraftSkill = z.infer<typeof CraftSkillSchema>;
|
|
28
28
|
export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
@@ -34,8 +34,9 @@ export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
|
34
34
|
craftSkillType: z.ZodEnum<["image", "video", "audio"]>;
|
|
35
35
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
36
36
|
createdAt: z.ZodNumber;
|
|
37
|
-
hidden: z.
|
|
37
|
+
hidden: z.ZodBoolean;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
hidden: boolean;
|
|
39
40
|
userId: string;
|
|
40
41
|
tags: string[];
|
|
41
42
|
createdAt: number;
|
|
@@ -44,8 +45,8 @@ export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
|
44
45
|
craftSkillName: string;
|
|
45
46
|
craftSkillUrl: string;
|
|
46
47
|
craftSkillType: "video" | "image" | "audio";
|
|
47
|
-
hidden?: boolean | undefined;
|
|
48
48
|
}, {
|
|
49
|
+
hidden: boolean;
|
|
49
50
|
userId: string;
|
|
50
51
|
tags: string[];
|
|
51
52
|
createdAt: number;
|
|
@@ -54,7 +55,6 @@ export declare const CraftSkillReferenceSchema: z.ZodObject<{
|
|
|
54
55
|
craftSkillName: string;
|
|
55
56
|
craftSkillUrl: string;
|
|
56
57
|
craftSkillType: "video" | "image" | "audio";
|
|
57
|
-
hidden?: boolean | undefined;
|
|
58
58
|
}>;
|
|
59
59
|
export type CraftSkillReference = z.infer<typeof CraftSkillReferenceSchema>;
|
|
60
60
|
export declare const MinimalCraftSkillSchema: z.ZodObject<{
|
package/dist/doc-schemas/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// User-related Firestore document SCHEMAS
|
|
1
|
+
// User-related Firestore document SCHEMAS — the single source of truth for the
|
|
2
2
|
// `userProfiles/{uid}` doc, its `privateData/{uid}` subdoc, and craft-skill shapes.
|
|
3
3
|
// (The `publicUsers/{uid}` mirror lives in ./publicUser.) TypeScript types are
|
|
4
4
|
// inferred from these schemas via `z.infer`, so a document's shape and its type
|
|
@@ -16,7 +16,7 @@ export const CraftSkillSchema = z.object({
|
|
|
16
16
|
// Moderation visibility flag. Absent/false = visible; true = hidden by the
|
|
17
17
|
// craft-skill hide cascade (report auto-hide or admin action). Mirrored onto
|
|
18
18
|
// every taggedCraftSkills index doc so discovery surfaces can filter it.
|
|
19
|
-
hidden: z.boolean()
|
|
19
|
+
hidden: z.boolean(),
|
|
20
20
|
});
|
|
21
21
|
export const CraftSkillReferenceSchema = z.object({
|
|
22
22
|
craftSkillId: z.string(),
|
|
@@ -28,7 +28,7 @@ export const CraftSkillReferenceSchema = z.object({
|
|
|
28
28
|
tags: z.array(z.string()),
|
|
29
29
|
createdAt: z.number(),
|
|
30
30
|
// Mirror of CraftSkill.hidden; lets the tag-browse filter hidden skills out.
|
|
31
|
-
hidden: z.boolean()
|
|
31
|
+
hidden: z.boolean(),
|
|
32
32
|
});
|
|
33
33
|
export const MinimalCraftSkillSchema = z.object({
|
|
34
34
|
id: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/doc-schemas/user.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,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;AAE1D,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;IACvC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,eAAe;IACrB,2EAA2E;IAC3E,6EAA6E;IAC7E,yEAAyE;IACzE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,M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C,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,mFAAmF;IACnF,0EAA0E;IAC1E,kFAAkF;IAClF,gEAAgE;IAChE,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC3C,gFAAgF;IAChF,+EAA+E;IAC/E,0EAA0E;IAC1E,sDAAsD;IACtD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreateStripeCheckoutSessionInputSchema: z.ZodObject<{
|
|
3
3
|
amount: z.ZodNumber;
|
|
4
|
+
checkoutAttemptId: z.ZodString;
|
|
4
5
|
}, "strict", z.ZodTypeAny, {
|
|
5
6
|
amount: number;
|
|
7
|
+
checkoutAttemptId: string;
|
|
6
8
|
}, {
|
|
7
9
|
amount: number;
|
|
10
|
+
checkoutAttemptId: string;
|
|
8
11
|
}>;
|
|
9
12
|
export type CreateStripeCheckoutSessionInput = z.infer<typeof CreateStripeCheckoutSessionInputSchema>;
|
|
10
13
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/schemas/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/schemas/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sCAAsC;;;;;;;;;EAOxC,CAAC;AACZ,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
|
package/dist/schemas/payments.js
CHANGED
|
@@ -2,5 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { MIN_PLEDGE_PAYMENT_AMOUNT_CENTS, MAX_PLEDGE_PAYMENT_AMOUNT_CENTS, } from '../constants/business.js';
|
|
3
3
|
export const CreateStripeCheckoutSessionInputSchema = z.object({
|
|
4
4
|
amount: z.number().int().min(MIN_PLEDGE_PAYMENT_AMOUNT_CENTS).max(MAX_PLEDGE_PAYMENT_AMOUNT_CENTS),
|
|
5
|
+
// One-time attempt id, generated client-side per payment intent and stable
|
|
6
|
+
// across retries of the same submit. The server derives pledgePaymentId from
|
|
7
|
+
// it and passes a Stripe idempotency key so a double-submit returns the SAME
|
|
8
|
+
// Checkout Session instead of creating a duplicate.
|
|
9
|
+
checkoutAttemptId: z.string().uuid(),
|
|
5
10
|
}).strict();
|
|
6
11
|
//# sourceMappingURL=payments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/schemas/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/schemas/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,+BAA+B,CAAC;IAClG,2EAA2E;IAC3E,6EAA6E;IAC7E,6EAA6E;IAC7E,oDAAoD;IACpD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CACrC,CAAC,CAAC,MAAM,EAAE,CAAC"}
|