@ttt-productions/ttt-core 0.7.18 → 0.8.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/doc-schemas/audit.d.ts +105 -0
- package/dist/doc-schemas/audit.d.ts.map +1 -0
- package/dist/doc-schemas/audit.js +39 -0
- package/dist/doc-schemas/audit.js.map +1 -0
- package/dist/doc-schemas/commissions.d.ts +313 -0
- package/dist/doc-schemas/commissions.d.ts.map +1 -0
- package/dist/doc-schemas/commissions.js +80 -0
- package/dist/doc-schemas/commissions.js.map +1 -0
- package/dist/doc-schemas/content.d.ts +650 -0
- package/dist/doc-schemas/content.d.ts.map +1 -0
- package/dist/doc-schemas/content.js +182 -0
- package/dist/doc-schemas/content.js.map +1 -0
- package/dist/doc-schemas/index.d.ts +15 -0
- package/dist/doc-schemas/index.d.ts.map +1 -0
- package/dist/doc-schemas/index.js +20 -0
- package/dist/doc-schemas/index.js.map +1 -0
- package/dist/doc-schemas/messaging.d.ts +362 -0
- package/dist/doc-schemas/messaging.d.ts.map +1 -0
- package/dist/doc-schemas/messaging.js +62 -0
- package/dist/doc-schemas/messaging.js.map +1 -0
- package/dist/doc-schemas/moderation.d.ts +331 -0
- package/dist/doc-schemas/moderation.d.ts.map +1 -0
- package/dist/doc-schemas/moderation.js +70 -0
- package/dist/doc-schemas/moderation.js.map +1 -0
- package/dist/doc-schemas/notifications.d.ts +154 -0
- package/dist/doc-schemas/notifications.d.ts.map +1 -0
- package/dist/doc-schemas/notifications.js +42 -0
- package/dist/doc-schemas/notifications.js.map +1 -0
- package/dist/doc-schemas/operational.d.ts +48 -0
- package/dist/doc-schemas/operational.d.ts.map +1 -0
- package/dist/doc-schemas/operational.js +24 -0
- package/dist/doc-schemas/operational.js.map +1 -0
- package/dist/doc-schemas/publicUser.d.ts +31 -0
- package/dist/doc-schemas/publicUser.d.ts.map +1 -0
- package/dist/doc-schemas/publicUser.js +17 -0
- package/dist/doc-schemas/publicUser.js.map +1 -0
- package/dist/doc-schemas/registry.d.ts +12176 -0
- package/dist/doc-schemas/registry.d.ts.map +1 -0
- package/dist/doc-schemas/registry.js +125 -0
- package/dist/doc-schemas/registry.js.map +1 -0
- package/dist/doc-schemas/report-docs.d.ts +264 -0
- package/dist/doc-schemas/report-docs.d.ts.map +1 -0
- package/dist/doc-schemas/report-docs.js +92 -0
- package/dist/doc-schemas/report-docs.js.map +1 -0
- package/dist/doc-schemas/social.d.ts +201 -0
- package/dist/doc-schemas/social.d.ts.map +1 -0
- package/dist/doc-schemas/social.js +58 -0
- package/dist/doc-schemas/social.js.map +1 -0
- package/dist/doc-schemas/system.d.ts +19 -0
- package/dist/doc-schemas/system.d.ts.map +1 -0
- package/dist/doc-schemas/system.js +10 -0
- package/dist/doc-schemas/system.js.map +1 -0
- package/dist/doc-schemas/user.d.ts +296 -0
- package/dist/doc-schemas/user.d.ts.map +1 -0
- package/dist/doc-schemas/user.js +79 -0
- package/dist/doc-schemas/user.js.map +1 -0
- package/dist/doc-schemas/work-project.d.ts +320 -0
- package/dist/doc-schemas/work-project.d.ts.map +1 -0
- package/dist/doc-schemas/work-project.js +104 -0
- package/dist/doc-schemas/work-project.js.map +1 -0
- package/dist/media/atoms.d.ts +6 -6
- package/dist/media/domain-events.d.ts +136 -136
- package/dist/media/pending-media.d.ts +1294 -1294
- package/dist/media/target-info.d.ts +27 -27
- package/dist/media/target-info.d.ts.map +1 -1
- package/dist/media/target-info.js +0 -5
- package/dist/media/target-info.js.map +1 -1
- package/dist/schemas/admin-dispatch-actions.d.ts +4 -4
- package/dist/schemas/admin.d.ts +48 -49
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/chat.d.ts +2 -2
- package/dist/schemas/hall-library.d.ts +8 -8
- package/dist/schemas/notification.d.ts +14 -14
- package/dist/schemas/social.d.ts +8 -8
- package/dist/schemas/users.d.ts +2 -2
- package/dist/schemas/work-project-management.d.ts +34 -34
- package/dist/types/admin.d.ts +1 -1
- package/dist/types/admin.d.ts.map +1 -1
- package/dist/types/commissions.d.ts +1 -83
- package/dist/types/commissions.d.ts.map +1 -1
- package/dist/types/content.d.ts +5 -176
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js.map +1 -1
- package/dist/types/messaging.d.ts +1 -64
- package/dist/types/messaging.d.ts.map +1 -1
- package/dist/types/moderation.d.ts +1 -57
- package/dist/types/moderation.d.ts.map +1 -1
- package/dist/types/publicUser.d.ts +1 -10
- package/dist/types/publicUser.d.ts.map +1 -1
- package/dist/types/social.d.ts +1 -51
- package/dist/types/social.d.ts.map +1 -1
- package/dist/types/system.d.ts +1 -25
- package/dist/types/system.d.ts.map +1 -1
- package/dist/types/user.d.ts +1 -75
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/work-project.d.ts +2 -114
- package/dist/types/work-project.d.ts.map +1 -1
- package/dist/types/work-project.js.map +1 -1
- package/dist/upload-variables/create-admin-audition-variables.d.ts +2 -2
- package/dist/upload-variables/create-commission-variables.d.ts +4 -4
- package/dist/upload-variables/create-work-project-audition-variables.d.ts +4 -4
- package/dist/upload-variables/square-streetz-post-variables.d.ts +8 -8
- package/dist/upload-variables/upload-work-asset-variables.d.ts +43 -4
- package/dist/upload-variables/upload-work-asset-variables.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +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;AAmE7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1,125 @@
|
|
|
1
|
+
// Firestore collection registry — the single, authoritative binding from each Firestore
|
|
2
|
+
// collection/subcollection path template to its document Zod schema. This is the input to
|
|
3
|
+
// the schema-doc generator and the drift-check, and its completeness is CI-enforced
|
|
4
|
+
// (registry.test.ts) against the COLLECTIONS / *_SUBCOLLECTIONS name constants, so a new
|
|
5
|
+
// collection cannot be added without either a schema or an explicit PENDING entry.
|
|
6
|
+
//
|
|
7
|
+
// Path templates reuse the segment names from ../paths/collections.ts (and the shapes the
|
|
8
|
+
// path-builders produce). `{placeholder}` segments are document/parent IDs.
|
|
9
|
+
import { FullUserSchema, UserPrivateDataSchema, CraftSkillSchema, CraftSkillReferenceSchema, } from './user.js';
|
|
10
|
+
import { PublicUserSchema } from './publicUser.js';
|
|
11
|
+
import { FullWorkProjectSchema, PublicWorkProjectSchema, WorkRealmSchema, GuildmateUserSchema, PublicGuildmateUserSchema, WorkAssetSchema, } from './work-project.js';
|
|
12
|
+
import { FullTaleSchema, FullChapterSchema, FullTuneSchema, FullTuneTrackSchema, FullTelevisionSchema, FullTelevisionEpisodeSchema, ThresholdItemSchema, PublishedHallItemSchema, FuturePlansDocumentSchema, RulesAndAgreementsSchema, } from './content.js';
|
|
13
|
+
import { SquareStreetzPostSchema, MentionHistoryDocumentSchema, FollowEdgeSchema, PledgePaymentSchema, } from './social.js';
|
|
14
|
+
import { FullCommissionListingSchema, CommissionProposalSchema, AuditionSchema, AuditionEntrySchema, UserAuditionVoteSchema, } from './commissions.js';
|
|
15
|
+
import { GuildChatChannelSchema, GuildInviteConversationSchema, AdminDispatchSchema, } from './messaging.js';
|
|
16
|
+
import { AppConfigSchema } from './system.js';
|
|
17
|
+
import { ContentViolationSchema, ModerationCascadeManifestSchema, ModerationCascadeChangedDocSchema, } from './moderation.js';
|
|
18
|
+
import { AdminTaskSchema, ReportSchema, ReportGroupSchema, ActivityLogEntrySchema, } from './report-docs.js';
|
|
19
|
+
import { TTTAuditEventSchema } from './audit.js';
|
|
20
|
+
import { NotificationDocSchema, NotificationHistoryDocSchema, PendingNotificationSchema, } from './notifications.js';
|
|
21
|
+
import { PendingMediaSchema, ArchivedPendingMediaSchema } from '../media/pending-media.js';
|
|
22
|
+
import { ReservedDisplayNameSchema, StakeShareAuditEventSchema } from './operational.js';
|
|
23
|
+
export const COLLECTION_SCHEMAS = {
|
|
24
|
+
// ===== Users =====
|
|
25
|
+
'userProfiles/{userId}': FullUserSchema,
|
|
26
|
+
'userProfiles/{userId}/privateData/{userId}': UserPrivateDataSchema,
|
|
27
|
+
'userProfiles/{userId}/profileCraftSkills/{craftSkillId}': CraftSkillSchema,
|
|
28
|
+
'userProfiles/{userId}/userPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
|
|
29
|
+
'userProfiles/{userId}/auditionVotes/{auditionId}': UserAuditionVoteSchema,
|
|
30
|
+
'userProfiles/{userId}/mentionHistory/{docId}': MentionHistoryDocumentSchema,
|
|
31
|
+
'userProfiles/{userId}/notificationHistory/{notificationId}': NotificationHistoryDocSchema,
|
|
32
|
+
'publicUsers/{uid}': PublicUserSchema,
|
|
33
|
+
// ===== Work / Realm / Guild =====
|
|
34
|
+
'allWorkProjects/{workProjectId}': FullWorkProjectSchema,
|
|
35
|
+
'allWorkProjects/{workProjectId}/guildmateUsers/{uid}': GuildmateUserSchema,
|
|
36
|
+
'allWorkProjects/{workProjectId}/publicGuildmateUsers/{uid}': PublicGuildmateUserSchema,
|
|
37
|
+
'allWorkProjects/{workProjectId}/workAssets/{workAssetId}': WorkAssetSchema,
|
|
38
|
+
'allWorkProjects/{workProjectId}/workProjectTales/{taleId}': FullTaleSchema,
|
|
39
|
+
'allWorkProjects/{workProjectId}/workProjectTales/{taleId}/taleChapters/{chapterId}': FullChapterSchema,
|
|
40
|
+
'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}': FullTuneSchema,
|
|
41
|
+
'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}/tuneTracks/{trackId}': FullTuneTrackSchema,
|
|
42
|
+
'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}': FullTelevisionSchema,
|
|
43
|
+
'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}/televisionEpisodes/{episodeId}': FullTelevisionEpisodeSchema,
|
|
44
|
+
'allWorkProjects/{workProjectId}/guildChatChannels/{guildChatChannelId}': GuildChatChannelSchema,
|
|
45
|
+
'publicWorkProjects/{workProjectId}': PublicWorkProjectSchema,
|
|
46
|
+
'workRealms/{workRealmId}': WorkRealmSchema,
|
|
47
|
+
'guildInviteConversations/{guildInviteId}': GuildInviteConversationSchema,
|
|
48
|
+
// ===== Square / Social / Pledge =====
|
|
49
|
+
'squareStreetzFeed/activePosts/socialPosts/{postId}': SquareStreetzPostSchema,
|
|
50
|
+
'followEdges/{followEdgeId}': FollowEdgeSchema,
|
|
51
|
+
'recentPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
|
|
52
|
+
'archivedPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
|
|
53
|
+
// ===== Threshold / Hall =====
|
|
54
|
+
'thresholdItems/{thresholdItemId}': ThresholdItemSchema,
|
|
55
|
+
'hallItems/{hallItemId}': PublishedHallItemSchema,
|
|
56
|
+
// ===== Commission / Audition =====
|
|
57
|
+
'commissionListings/{commissionListingId}': FullCommissionListingSchema,
|
|
58
|
+
'commissionListings/{commissionListingId}/commissionProposals/{commissionProposalId}': CommissionProposalSchema,
|
|
59
|
+
'auditionBoard/{auditionId}': AuditionSchema,
|
|
60
|
+
'auditionBoard/{auditionId}/auditionEntries/{auditionEntryId}': AuditionEntrySchema,
|
|
61
|
+
// ===== Moderation / Reports / Admin =====
|
|
62
|
+
'contentReports/{reportId}': ReportSchema,
|
|
63
|
+
'activeReportGroups/{groupKey}': ReportGroupSchema,
|
|
64
|
+
'adminTasks/{taskId}': AdminTaskSchema,
|
|
65
|
+
'adminActivityLog/{logId}': ActivityLogEntrySchema,
|
|
66
|
+
'contentViolations/{violationId}': ContentViolationSchema,
|
|
67
|
+
'moderationCascadeManifests/{cascadeId}': ModerationCascadeManifestSchema,
|
|
68
|
+
'moderationCascadeManifests/{cascadeId}/changedDocs/{changedDocId}': ModerationCascadeChangedDocSchema,
|
|
69
|
+
'auditEvents/{eventId}': TTTAuditEventSchema,
|
|
70
|
+
'stakeShareAuditEvents/{eventId}': StakeShareAuditEventSchema,
|
|
71
|
+
'pendingAdminDispatches/{adminDispatchId}': AdminDispatchSchema,
|
|
72
|
+
// ===== Media pipeline =====
|
|
73
|
+
'pendingMedia/{pendingMediaId}': PendingMediaSchema,
|
|
74
|
+
'pendingMediaArchive/{pendingMediaId}': ArchivedPendingMediaSchema,
|
|
75
|
+
// ===== Notifications =====
|
|
76
|
+
'activeUserNotifications/{notificationId}': NotificationDocSchema,
|
|
77
|
+
'activeAdminNotifications/{notificationId}': NotificationDocSchema,
|
|
78
|
+
'adminNotificationHistory/{notificationId}': NotificationHistoryDocSchema,
|
|
79
|
+
'pendingNotifications/{notificationId}': PendingNotificationSchema,
|
|
80
|
+
// ===== Craft skills index =====
|
|
81
|
+
'craftSkillsByTag/{tag}/taggedCraftSkills/{compositeId}': CraftSkillReferenceSchema,
|
|
82
|
+
// ===== Operational / utility =====
|
|
83
|
+
'reservedDisplayNames/{displayNameUppercase}': ReservedDisplayNameSchema,
|
|
84
|
+
// ===== _config singletons =====
|
|
85
|
+
'_config/app': AppConfigSchema,
|
|
86
|
+
'_config/futurePlans': FuturePlansDocumentSchema,
|
|
87
|
+
'_config/rulesAndAgreements': RulesAndAgreementsSchema,
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Collections that exist (in COLLECTIONS / *_SUBCOLLECTIONS or firestore.rules) but are not
|
|
91
|
+
* yet bound to a schema — their document shape still needs to be reverse-engineered from
|
|
92
|
+
* the backend write sites, OR (pledgePaymentsSummary) the terminology doc says they are
|
|
93
|
+
* being removed. Listed EXPLICITLY so completeness is enforced and nothing is silently
|
|
94
|
+
* uncovered. Each is a tracked follow-up; the registry test fails if a NEW unlisted
|
|
95
|
+
* collection appears.
|
|
96
|
+
*
|
|
97
|
+
* - Chat message bodies (guildChatMessages / conversationMessages / inviteMessages) are
|
|
98
|
+
* owned by @ttt-productions/chat-schemas (ChatMessageV1) — bind to that schema next.
|
|
99
|
+
* - userMetadata / userLikes / likeHistory / squareStreetzLikes / checkedOutItems /
|
|
100
|
+
* userSuggestions / trendingPosts / reservedDisplayNames / shortLinks / feedback* /
|
|
101
|
+
* _systemData / stakeShareAuditEvents / notificationQueue / notificationBroadcastJobs:
|
|
102
|
+
* need a shape authored from the backend write site.
|
|
103
|
+
* - pledgePaymentsSummary: terminology doc says consolidated away (Phase 6) — confirm + remove.
|
|
104
|
+
*/
|
|
105
|
+
export const PENDING_COLLECTIONS = [
|
|
106
|
+
'pledgePaymentsSummary',
|
|
107
|
+
'shortLinks',
|
|
108
|
+
'notificationQueue',
|
|
109
|
+
'notificationBroadcastJobs',
|
|
110
|
+
'feedbackSubmissions',
|
|
111
|
+
'feedbackAliases',
|
|
112
|
+
'feedbackDenylist',
|
|
113
|
+
'userSuggestions',
|
|
114
|
+
'_systemData',
|
|
115
|
+
'userMetadata',
|
|
116
|
+
'userLikes',
|
|
117
|
+
'likeHistory',
|
|
118
|
+
'squareStreetzLikes',
|
|
119
|
+
'checkedOutItems',
|
|
120
|
+
'trendingPosts',
|
|
121
|
+
'guildChatMessages',
|
|
122
|
+
'conversationMessages',
|
|
123
|
+
'inviteMessages',
|
|
124
|
+
];
|
|
125
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,0FAA0F;AAC1F,oFAAoF;AACpF,yFAAyF;AACzF,mFAAmF;AACnF,EAAE;AACF,0FAA0F;AAC1F,4EAA4E;AAG5E,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,GAC1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7D,0CAA0C,EAAE,mBAAmB;IAE/D,6BAA6B;IAC7B,+BAA+B,EAAE,kBAAkB;IACnD,sCAAsC,EAAE,0BAA0B;IAElE,4BAA4B;IAC5B,0CAA0C,EAAE,qBAAqB;IACjE,2CAA2C,EAAE,qBAAqB;IAClE,2CAA2C,EAAE,4BAA4B;IACzE,uCAAuC,EAAE,yBAAyB;IAElE,iCAAiC;IACjC,wDAAwD,EAAE,yBAAyB;IAEnF,oCAAoC;IACpC,6CAA6C,EAAE,yBAAyB;IAExE,iCAAiC;IACjC,aAAa,EAAE,eAAe;IAC9B,qBAAqB,EAAE,yBAAyB;IAChD,4BAA4B,EAAE,wBAAwB;CACP,CAAC;AAIlD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,uBAAuB;IACvB,YAAY;IACZ,mBAAmB;IACnB,2BAA2B;IAC3B,qBAAqB;IACrB,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,WAAW;IACX,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,eAAe;IACf,mBAAmB;IACnB,sBAAsB;IACtB,gBAAgB;CACR,CAAC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AdminTaskTypeSchema: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
|
|
3
|
+
export type AdminTaskType = z.infer<typeof AdminTaskTypeSchema>;
|
|
4
|
+
export declare const AdminTaskStatusSchema: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
|
|
5
|
+
export declare const CheckoutDetailsSchema: z.ZodObject<{
|
|
6
|
+
userId: z.ZodString;
|
|
7
|
+
checkedOutAt: z.ZodNumber;
|
|
8
|
+
expiresAt: z.ZodNumber;
|
|
9
|
+
workLaterUntil: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
userId: string;
|
|
12
|
+
checkedOutAt: number;
|
|
13
|
+
expiresAt: number;
|
|
14
|
+
workLaterUntil: number | null;
|
|
15
|
+
}, {
|
|
16
|
+
userId: string;
|
|
17
|
+
checkedOutAt: number;
|
|
18
|
+
expiresAt: number;
|
|
19
|
+
workLaterUntil: number | null;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const AdminTaskSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
taskType: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
|
|
24
|
+
taskId: z.ZodString;
|
|
25
|
+
originalPath: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
|
|
27
|
+
checkoutDetails: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
userId: z.ZodString;
|
|
29
|
+
checkedOutAt: z.ZodNumber;
|
|
30
|
+
expiresAt: z.ZodNumber;
|
|
31
|
+
workLaterUntil: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
userId: string;
|
|
34
|
+
checkedOutAt: number;
|
|
35
|
+
expiresAt: number;
|
|
36
|
+
workLaterUntil: number | null;
|
|
37
|
+
}, {
|
|
38
|
+
userId: string;
|
|
39
|
+
checkedOutAt: number;
|
|
40
|
+
expiresAt: number;
|
|
41
|
+
workLaterUntil: number | null;
|
|
42
|
+
}>>;
|
|
43
|
+
summary: z.ZodString;
|
|
44
|
+
priority: z.ZodNumber;
|
|
45
|
+
createdAt: z.ZodNumber;
|
|
46
|
+
lastUpdatedAt: z.ZodNumber;
|
|
47
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
itemData: z.ZodOptional<z.ZodUnknown>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
status: "pending" | "checkedOut" | "workLater" | "completed";
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
lastUpdatedAt: number;
|
|
54
|
+
taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
|
|
55
|
+
taskId: string;
|
|
56
|
+
originalPath: string;
|
|
57
|
+
checkoutDetails: {
|
|
58
|
+
userId: string;
|
|
59
|
+
checkedOutAt: number;
|
|
60
|
+
expiresAt: number;
|
|
61
|
+
workLaterUntil: number | null;
|
|
62
|
+
} | null;
|
|
63
|
+
summary: string;
|
|
64
|
+
priority: number;
|
|
65
|
+
completedAt?: number | undefined;
|
|
66
|
+
itemData?: unknown;
|
|
67
|
+
}, {
|
|
68
|
+
status: "pending" | "checkedOut" | "workLater" | "completed";
|
|
69
|
+
id: string;
|
|
70
|
+
createdAt: number;
|
|
71
|
+
lastUpdatedAt: number;
|
|
72
|
+
taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
|
|
73
|
+
taskId: string;
|
|
74
|
+
originalPath: string;
|
|
75
|
+
checkoutDetails: {
|
|
76
|
+
userId: string;
|
|
77
|
+
checkedOutAt: number;
|
|
78
|
+
expiresAt: number;
|
|
79
|
+
workLaterUntil: number | null;
|
|
80
|
+
} | null;
|
|
81
|
+
summary: string;
|
|
82
|
+
priority: number;
|
|
83
|
+
completedAt?: number | undefined;
|
|
84
|
+
itemData?: unknown;
|
|
85
|
+
}>;
|
|
86
|
+
export declare const ReportStatusSchema: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
|
|
87
|
+
export declare const ReportGroupStatusSchema: z.ZodEnum<["pending", "reviewing", "resolved"]>;
|
|
88
|
+
export declare const ReportSchema: z.ZodObject<{
|
|
89
|
+
reportId: z.ZodString;
|
|
90
|
+
reporterUserId: z.ZodString;
|
|
91
|
+
reportedItemType: z.ZodString;
|
|
92
|
+
reportedItemId: z.ZodString;
|
|
93
|
+
parentItemId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
reportedUserId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
reason: z.ZodString;
|
|
96
|
+
comment: z.ZodString;
|
|
97
|
+
createdAt: z.ZodNumber;
|
|
98
|
+
status: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
|
|
99
|
+
resolvedAt: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
resolvedBy: z.ZodOptional<z.ZodString>;
|
|
101
|
+
adminNotes: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
104
|
+
createdAt: number;
|
|
105
|
+
reportId: string;
|
|
106
|
+
reporterUserId: string;
|
|
107
|
+
reportedItemType: string;
|
|
108
|
+
reportedItemId: string;
|
|
109
|
+
reason: string;
|
|
110
|
+
comment: string;
|
|
111
|
+
adminNotes?: string | undefined;
|
|
112
|
+
parentItemId?: string | undefined;
|
|
113
|
+
reportedUserId?: string | undefined;
|
|
114
|
+
resolvedAt?: number | undefined;
|
|
115
|
+
resolvedBy?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
118
|
+
createdAt: number;
|
|
119
|
+
reportId: string;
|
|
120
|
+
reporterUserId: string;
|
|
121
|
+
reportedItemType: string;
|
|
122
|
+
reportedItemId: string;
|
|
123
|
+
reason: string;
|
|
124
|
+
comment: string;
|
|
125
|
+
adminNotes?: string | undefined;
|
|
126
|
+
parentItemId?: string | undefined;
|
|
127
|
+
reportedUserId?: string | undefined;
|
|
128
|
+
resolvedAt?: number | undefined;
|
|
129
|
+
resolvedBy?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
export declare const ReportGroupSchema: z.ZodObject<{
|
|
132
|
+
groupKey: z.ZodString;
|
|
133
|
+
reportedItemId: z.ZodString;
|
|
134
|
+
reportedItemType: z.ZodString;
|
|
135
|
+
reportedUserId: z.ZodNullable<z.ZodString>;
|
|
136
|
+
lastReportAt: z.ZodNumber;
|
|
137
|
+
totalReports: z.ZodNumber;
|
|
138
|
+
status: z.ZodEnum<["pending", "reviewing", "resolved"]>;
|
|
139
|
+
reports: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
reportId: z.ZodString;
|
|
141
|
+
reporterUserId: z.ZodString;
|
|
142
|
+
reportedItemType: z.ZodString;
|
|
143
|
+
reportedItemId: z.ZodString;
|
|
144
|
+
parentItemId: z.ZodOptional<z.ZodString>;
|
|
145
|
+
reportedUserId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
reason: z.ZodString;
|
|
147
|
+
comment: z.ZodString;
|
|
148
|
+
createdAt: z.ZodNumber;
|
|
149
|
+
status: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
|
|
150
|
+
resolvedAt: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
resolvedBy: z.ZodOptional<z.ZodString>;
|
|
152
|
+
adminNotes: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
155
|
+
createdAt: number;
|
|
156
|
+
reportId: string;
|
|
157
|
+
reporterUserId: string;
|
|
158
|
+
reportedItemType: string;
|
|
159
|
+
reportedItemId: string;
|
|
160
|
+
reason: string;
|
|
161
|
+
comment: string;
|
|
162
|
+
adminNotes?: string | undefined;
|
|
163
|
+
parentItemId?: string | undefined;
|
|
164
|
+
reportedUserId?: string | undefined;
|
|
165
|
+
resolvedAt?: number | undefined;
|
|
166
|
+
resolvedBy?: string | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
169
|
+
createdAt: number;
|
|
170
|
+
reportId: string;
|
|
171
|
+
reporterUserId: string;
|
|
172
|
+
reportedItemType: string;
|
|
173
|
+
reportedItemId: string;
|
|
174
|
+
reason: string;
|
|
175
|
+
comment: string;
|
|
176
|
+
adminNotes?: string | undefined;
|
|
177
|
+
parentItemId?: string | undefined;
|
|
178
|
+
reportedUserId?: string | undefined;
|
|
179
|
+
resolvedAt?: number | undefined;
|
|
180
|
+
resolvedBy?: string | undefined;
|
|
181
|
+
}>, "many">>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
status: "pending" | "reviewing" | "resolved";
|
|
184
|
+
reportedItemType: string;
|
|
185
|
+
reportedItemId: string;
|
|
186
|
+
reportedUserId: string | null;
|
|
187
|
+
groupKey: string;
|
|
188
|
+
lastReportAt: number;
|
|
189
|
+
totalReports: number;
|
|
190
|
+
reports?: {
|
|
191
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
192
|
+
createdAt: number;
|
|
193
|
+
reportId: string;
|
|
194
|
+
reporterUserId: string;
|
|
195
|
+
reportedItemType: string;
|
|
196
|
+
reportedItemId: string;
|
|
197
|
+
reason: string;
|
|
198
|
+
comment: string;
|
|
199
|
+
adminNotes?: string | undefined;
|
|
200
|
+
parentItemId?: string | undefined;
|
|
201
|
+
reportedUserId?: string | undefined;
|
|
202
|
+
resolvedAt?: number | undefined;
|
|
203
|
+
resolvedBy?: string | undefined;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
status: "pending" | "reviewing" | "resolved";
|
|
207
|
+
reportedItemType: string;
|
|
208
|
+
reportedItemId: string;
|
|
209
|
+
reportedUserId: string | null;
|
|
210
|
+
groupKey: string;
|
|
211
|
+
lastReportAt: number;
|
|
212
|
+
totalReports: number;
|
|
213
|
+
reports?: {
|
|
214
|
+
status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
|
|
215
|
+
createdAt: number;
|
|
216
|
+
reportId: string;
|
|
217
|
+
reporterUserId: string;
|
|
218
|
+
reportedItemType: string;
|
|
219
|
+
reportedItemId: string;
|
|
220
|
+
reason: string;
|
|
221
|
+
comment: string;
|
|
222
|
+
adminNotes?: string | undefined;
|
|
223
|
+
parentItemId?: string | undefined;
|
|
224
|
+
reportedUserId?: string | undefined;
|
|
225
|
+
resolvedAt?: number | undefined;
|
|
226
|
+
resolvedBy?: string | undefined;
|
|
227
|
+
}[] | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
export declare const ActivityActionSchema: z.ZodEnum<["checkout", "checkout_next_important", "checkin_resolved", "checkin_unresolved", "release", "mark_work_later", "auto_released", "auto_released_scheduled"]>;
|
|
230
|
+
export declare const ActivityLogEntrySchema: z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
adminUserId: z.ZodString;
|
|
233
|
+
action: z.ZodEnum<["checkout", "checkout_next_important", "checkin_resolved", "checkin_unresolved", "release", "mark_work_later", "auto_released", "auto_released_scheduled"]>;
|
|
234
|
+
taskType: z.ZodString;
|
|
235
|
+
taskId: z.ZodString;
|
|
236
|
+
timestamp: z.ZodNumber;
|
|
237
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
238
|
+
timeSpentMinutes: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
extendHours: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
id: string;
|
|
243
|
+
action: "checkout" | "checkout_next_important" | "checkin_resolved" | "checkin_unresolved" | "release" | "mark_work_later" | "auto_released" | "auto_released_scheduled";
|
|
244
|
+
taskType: string;
|
|
245
|
+
taskId: string;
|
|
246
|
+
adminUserId: string;
|
|
247
|
+
timestamp: number;
|
|
248
|
+
priority?: number | undefined;
|
|
249
|
+
resolution?: string | undefined;
|
|
250
|
+
timeSpentMinutes?: number | undefined;
|
|
251
|
+
extendHours?: number | undefined;
|
|
252
|
+
}, {
|
|
253
|
+
id: string;
|
|
254
|
+
action: "checkout" | "checkout_next_important" | "checkin_resolved" | "checkin_unresolved" | "release" | "mark_work_later" | "auto_released" | "auto_released_scheduled";
|
|
255
|
+
taskType: string;
|
|
256
|
+
taskId: string;
|
|
257
|
+
adminUserId: string;
|
|
258
|
+
timestamp: number;
|
|
259
|
+
priority?: number | undefined;
|
|
260
|
+
resolution?: string | undefined;
|
|
261
|
+
timeSpentMinutes?: number | undefined;
|
|
262
|
+
extendHours?: number | undefined;
|
|
263
|
+
}>;
|
|
264
|
+
//# sourceMappingURL=report-docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-docs.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/report-docs.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,6GAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB,gEAA8D,CAAC;AAEjG,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,8EAI7B,CAAC;AACH,eAAO,MAAM,uBAAuB,iDAA+C,CAAC;AAEpF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,wKAS/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Zod schemas for the report-core-owned Firestore document shapes as stored in TTT:
|
|
2
|
+
// adminTasks/{taskId} (AdminTask<AdminTaskType>), contentReports/{reportId} (Report),
|
|
3
|
+
// activeReportGroups/{groupKey} (ReportGroup), adminActivityLog/{logId} (ActivityLogEntry).
|
|
4
|
+
//
|
|
5
|
+
// The canonical TYPES live in @ttt-productions/report-core/contracts; these schemas are
|
|
6
|
+
// authored to match them so the schema registry + drift-check have runtime schemas. A
|
|
7
|
+
// type-parity test (parity.test.ts) asserts z.infer here === the report-core types, so
|
|
8
|
+
// they cannot silently drift. AdminTaskType is the TTT specialization of the generic
|
|
9
|
+
// AdminTask<TTaskType> task-type parameter.
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
export const AdminTaskTypeSchema = z.enum([
|
|
12
|
+
'adminDispatch',
|
|
13
|
+
'thresholdLibraryReview',
|
|
14
|
+
'userReport',
|
|
15
|
+
'content-appeal',
|
|
16
|
+
'stakeShareAnomaly',
|
|
17
|
+
]);
|
|
18
|
+
export const AdminTaskStatusSchema = z.enum(['pending', 'checkedOut', 'workLater', 'completed']);
|
|
19
|
+
export const CheckoutDetailsSchema = z.object({
|
|
20
|
+
userId: z.string(),
|
|
21
|
+
checkedOutAt: z.number(),
|
|
22
|
+
expiresAt: z.number(),
|
|
23
|
+
workLaterUntil: z.number().nullable(),
|
|
24
|
+
});
|
|
25
|
+
export const AdminTaskSchema = z.object({
|
|
26
|
+
id: z.string(),
|
|
27
|
+
taskType: AdminTaskTypeSchema,
|
|
28
|
+
taskId: z.string(),
|
|
29
|
+
originalPath: z.string(),
|
|
30
|
+
status: AdminTaskStatusSchema,
|
|
31
|
+
checkoutDetails: CheckoutDetailsSchema.nullable(),
|
|
32
|
+
summary: z.string(),
|
|
33
|
+
priority: z.number(),
|
|
34
|
+
createdAt: z.number(),
|
|
35
|
+
lastUpdatedAt: z.number(),
|
|
36
|
+
completedAt: z.number().optional(),
|
|
37
|
+
itemData: z.unknown().optional(),
|
|
38
|
+
});
|
|
39
|
+
export const ReportStatusSchema = z.enum([
|
|
40
|
+
'pending_review',
|
|
41
|
+
'resolved_no_action',
|
|
42
|
+
'resolved_action_taken',
|
|
43
|
+
]);
|
|
44
|
+
export const ReportGroupStatusSchema = z.enum(['pending', 'reviewing', 'resolved']);
|
|
45
|
+
export const ReportSchema = z.object({
|
|
46
|
+
reportId: z.string(),
|
|
47
|
+
reporterUserId: z.string(),
|
|
48
|
+
reportedItemType: z.string(),
|
|
49
|
+
reportedItemId: z.string(),
|
|
50
|
+
parentItemId: z.string().optional(),
|
|
51
|
+
reportedUserId: z.string().optional(),
|
|
52
|
+
reason: z.string(),
|
|
53
|
+
comment: z.string(),
|
|
54
|
+
createdAt: z.number(),
|
|
55
|
+
status: ReportStatusSchema,
|
|
56
|
+
resolvedAt: z.number().optional(),
|
|
57
|
+
resolvedBy: z.string().optional(),
|
|
58
|
+
adminNotes: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
export const ReportGroupSchema = z.object({
|
|
61
|
+
groupKey: z.string(),
|
|
62
|
+
reportedItemId: z.string(),
|
|
63
|
+
reportedItemType: z.string(),
|
|
64
|
+
reportedUserId: z.string().nullable(),
|
|
65
|
+
lastReportAt: z.number(),
|
|
66
|
+
totalReports: z.number(),
|
|
67
|
+
status: ReportGroupStatusSchema,
|
|
68
|
+
reports: z.array(ReportSchema).optional(),
|
|
69
|
+
});
|
|
70
|
+
export const ActivityActionSchema = z.enum([
|
|
71
|
+
'checkout',
|
|
72
|
+
'checkout_next_important',
|
|
73
|
+
'checkin_resolved',
|
|
74
|
+
'checkin_unresolved',
|
|
75
|
+
'release',
|
|
76
|
+
'mark_work_later',
|
|
77
|
+
'auto_released',
|
|
78
|
+
'auto_released_scheduled',
|
|
79
|
+
]);
|
|
80
|
+
export const ActivityLogEntrySchema = z.object({
|
|
81
|
+
id: z.string(),
|
|
82
|
+
adminUserId: z.string(),
|
|
83
|
+
action: ActivityActionSchema,
|
|
84
|
+
taskType: z.string(),
|
|
85
|
+
taskId: z.string(),
|
|
86
|
+
timestamp: z.number(),
|
|
87
|
+
resolution: z.string().optional(),
|
|
88
|
+
timeSpentMinutes: z.number().optional(),
|
|
89
|
+
extendHours: z.number().optional(),
|
|
90
|
+
priority: z.number().optional(),
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=report-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-docs.js","sourceRoot":"","sources":["../../src/doc-schemas/report-docs.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sFAAsF;AACtF,4FAA4F;AAC5F,EAAE;AACF,wFAAwF;AACxF,sFAAsF;AACtF,uFAAuF;AACvF,qFAAqF;AACrF,4CAA4C;AAE5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,eAAe;IACf,wBAAwB;IACxB,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,M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