@ttt-productions/ttt-core 0.79.78 → 0.79.80
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/admin-labels.d.ts +12 -3
- package/dist/constants/admin-labels.d.ts.map +1 -1
- package/dist/constants/admin-labels.js +26 -14
- package/dist/constants/admin-labels.js.map +1 -1
- package/dist/constants/business-admin.d.ts +9 -0
- package/dist/constants/business-admin.d.ts.map +1 -1
- package/dist/constants/business-admin.js +9 -0
- package/dist/constants/business-admin.js.map +1 -1
- package/dist/constants/safety-active-statuses.d.ts +2 -2
- package/dist/constants/text-fields.d.ts +23 -0
- package/dist/constants/text-fields.d.ts.map +1 -1
- package/dist/constants/text-fields.js +6 -1
- package/dist/constants/text-fields.js.map +1 -1
- package/dist/doc-schemas/chat-sync.d.ts +1 -1
- package/dist/doc-schemas/commissions.d.ts +6 -6
- package/dist/doc-schemas/content.d.ts +100 -69
- package/dist/doc-schemas/content.d.ts.map +1 -1
- package/dist/doc-schemas/content.js +41 -22
- package/dist/doc-schemas/content.js.map +1 -1
- package/dist/doc-schemas/media-assets.d.ts +5 -5
- package/dist/doc-schemas/media-copy-intents.d.ts +2 -2
- package/dist/doc-schemas/messaging.d.ts +1 -1
- package/dist/doc-schemas/moderation.d.ts +6 -6
- package/dist/doc-schemas/ncii/cases.d.ts +1 -1
- package/dist/doc-schemas/ncii/requests.d.ts +4 -4
- package/dist/doc-schemas/notification-archive-all-jobs.d.ts +2 -2
- package/dist/doc-schemas/notifications.d.ts +4 -4
- package/dist/doc-schemas/operational.d.ts +2 -2
- package/dist/doc-schemas/public-documents.d.ts +222 -167
- package/dist/doc-schemas/public-documents.d.ts.map +1 -1
- package/dist/doc-schemas/public-documents.js +7 -2
- package/dist/doc-schemas/public-documents.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +191 -151
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/doc-schemas/report-docs.d.ts +3 -3
- package/dist/doc-schemas/safety/case.d.ts +13 -13
- package/dist/doc-schemas/safety/evidence.d.ts +4 -4
- package/dist/doc-schemas/safety/foundation.d.ts +3 -3
- package/dist/doc-schemas/safety/report.d.ts +2 -2
- package/dist/doc-schemas/safety/sagas.d.ts +2 -2
- package/dist/doc-schemas/social.d.ts +4 -4
- package/dist/doc-schemas/square-announcement-jobs.d.ts +6 -6
- package/dist/doc-schemas/system-slots.d.ts +8 -1
- package/dist/doc-schemas/system-slots.d.ts.map +1 -1
- package/dist/doc-schemas/system.d.ts.map +1 -1
- package/dist/doc-schemas/system.js +2 -1
- package/dist/doc-schemas/system.js.map +1 -1
- package/dist/doc-schemas/user.d.ts +8 -8
- package/dist/doc-schemas/work-project.d.ts +1 -1
- package/dist/media/target-info.d.ts +9 -2
- package/dist/media/target-info.d.ts.map +1 -1
- package/dist/schemas/admin.d.ts +104 -73
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +48 -21
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/chat.d.ts +1 -1
- package/dist/schemas/commissions.d.ts +1 -1
- package/dist/schemas/notification.d.ts +1 -1
- package/dist/schemas/public-documents.d.ts +87 -65
- package/dist/schemas/public-documents.d.ts.map +1 -1
- package/dist/schemas/safety.d.ts +43 -43
- package/dist/schemas/users.d.ts +59 -1
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +36 -0
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +8 -8
- package/dist/system-slots/system-slots.d.ts +62 -5
- package/dist/system-slots/system-slots.d.ts.map +1 -1
- package/dist/system-slots/system-slots.js +47 -0
- package/dist/system-slots/system-slots.js.map +1 -1
- package/dist/types/admin-users.d.ts +1 -10
- package/dist/types/admin-users.d.ts.map +1 -1
- package/dist/types/admin-users.js.map +1 -1
- package/dist/types/content.d.ts +4 -1
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +2 -0
- package/dist/types/content.js.map +1 -1
- package/dist/upload-variables/upload-system-content-variables.d.ts +8 -1
- package/dist/upload-variables/upload-system-content-variables.d.ts.map +1 -1
- package/dist/utils/app-config.d.ts +36 -7
- package/dist/utils/app-config.d.ts.map +1 -1
- package/dist/utils/app-config.js +34 -16
- package/dist/utils/app-config.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas/admin.d.ts
CHANGED
|
@@ -38,110 +38,134 @@ export declare const ReviewContentAppealResultSchema: z.ZodObject<{
|
|
|
38
38
|
auditEventId: z.ZodOptional<z.ZodString>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type ReviewContentAppealResult = z.infer<typeof ReviewContentAppealResultSchema>;
|
|
41
|
+
export declare const FuturePlanGroupInputSchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
44
|
+
order: z.ZodNumber;
|
|
45
|
+
intention: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
46
|
+
}, z.core.$strict>;
|
|
41
47
|
export declare const FuturePlanItemInputSchema: z.ZodObject<{
|
|
42
48
|
id: z.ZodString;
|
|
43
49
|
title: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
44
50
|
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
51
|
+
groupId: z.ZodString;
|
|
45
52
|
order: z.ZodNumber;
|
|
46
|
-
videoUrl: z.ZodOptional<z.ZodString>;
|
|
47
|
-
mediaType: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
video: "video";
|
|
49
|
-
image: "image";
|
|
50
|
-
audio: "audio";
|
|
51
|
-
other: "other";
|
|
52
|
-
}>>;
|
|
53
53
|
}, z.core.$strict>;
|
|
54
54
|
export declare const FuturePlansContentInputSchema: z.ZodObject<{
|
|
55
|
+
intro: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
56
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
59
|
+
order: z.ZodNumber;
|
|
60
|
+
intention: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
55
62
|
plans: z.ZodArray<z.ZodObject<{
|
|
56
63
|
id: z.ZodString;
|
|
57
64
|
title: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
58
65
|
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
66
|
+
groupId: z.ZodString;
|
|
59
67
|
order: z.ZodNumber;
|
|
60
|
-
videoUrl: z.ZodOptional<z.ZodString>;
|
|
61
|
-
mediaType: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
video: "video";
|
|
63
|
-
image: "image";
|
|
64
|
-
audio: "audio";
|
|
65
|
-
other: "other";
|
|
66
|
-
}>>;
|
|
67
68
|
}, z.core.$strict>>;
|
|
68
69
|
}, z.core.$strict>;
|
|
69
70
|
export type FuturePlansContentInput = z.infer<typeof FuturePlansContentInputSchema>;
|
|
70
71
|
export declare const PlatformRuleInputSchema: z.ZodObject<{
|
|
72
|
+
order: z.ZodNumber;
|
|
73
|
+
workProjectType: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
Tales: "Tales";
|
|
75
|
+
Tunes: "Tunes";
|
|
76
|
+
Television: "Television";
|
|
77
|
+
}>>;
|
|
78
|
+
hallWingType: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
entertainment: "entertainment";
|
|
80
|
+
educational: "educational";
|
|
81
|
+
newsPolitical: "newsPolitical";
|
|
82
|
+
}>>;
|
|
71
83
|
id: z.ZodString;
|
|
72
84
|
title: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
73
85
|
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
74
|
-
|
|
75
|
-
group: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
group: z.ZodEnum<{
|
|
76
87
|
workRealm: "workRealm";
|
|
77
|
-
workProjectType: "workProjectType";
|
|
78
|
-
hallWingType: "hallWingType";
|
|
79
88
|
generic: "generic";
|
|
80
89
|
merchandising: "merchandising";
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
hallWing: "hallWing";
|
|
91
|
+
}>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const AgreementPointInputSchema: z.ZodObject<{
|
|
94
|
+
workProjectType: z.ZodOptional<z.ZodEnum<{
|
|
83
95
|
Tales: "Tales";
|
|
84
96
|
Tunes: "Tunes";
|
|
85
97
|
Television: "Television";
|
|
98
|
+
}>>;
|
|
99
|
+
hallWingType: z.ZodOptional<z.ZodEnum<{
|
|
86
100
|
entertainment: "entertainment";
|
|
87
101
|
educational: "educational";
|
|
88
102
|
newsPolitical: "newsPolitical";
|
|
89
103
|
}>>;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export declare const AgreementCategoryInputSchema: z.ZodObject<{
|
|
93
|
-
points: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
94
|
-
videoUrl: z.ZodOptional<z.ZodString>;
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
text: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
95
106
|
}, z.core.$strict>;
|
|
96
|
-
export declare const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
export declare const ArtisanAgreementsInputSchema: z.ZodObject<{
|
|
108
|
+
intention: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
109
|
+
points: z.ZodArray<z.ZodObject<{
|
|
110
|
+
workProjectType: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
Tales: "Tales";
|
|
112
|
+
Tunes: "Tunes";
|
|
113
|
+
Television: "Television";
|
|
114
|
+
}>>;
|
|
115
|
+
hallWingType: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
entertainment: "entertainment";
|
|
117
|
+
educational: "educational";
|
|
118
|
+
newsPolitical: "newsPolitical";
|
|
119
|
+
}>>;
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
text: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
108
122
|
}, z.core.$strict>>;
|
|
109
123
|
}, z.core.$strict>;
|
|
110
124
|
export declare const RulesAndAgreementsContentInputSchema: z.ZodObject<{
|
|
125
|
+
intro: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
126
|
+
groupIntentions: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
127
|
+
workRealm: "workRealm";
|
|
128
|
+
generic: "generic";
|
|
129
|
+
merchandising: "merchandising";
|
|
130
|
+
hallWing: "hallWing";
|
|
131
|
+
}> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
111
132
|
rules: z.ZodArray<z.ZodObject<{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
115
|
-
videoUrl: z.ZodOptional<z.ZodString>;
|
|
116
|
-
group: z.ZodOptional<z.ZodEnum<{
|
|
117
|
-
workRealm: "workRealm";
|
|
118
|
-
workProjectType: "workProjectType";
|
|
119
|
-
hallWingType: "hallWingType";
|
|
120
|
-
generic: "generic";
|
|
121
|
-
merchandising: "merchandising";
|
|
122
|
-
}>>;
|
|
123
|
-
subgroup: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
order: z.ZodNumber;
|
|
134
|
+
workProjectType: z.ZodOptional<z.ZodEnum<{
|
|
124
135
|
Tales: "Tales";
|
|
125
136
|
Tunes: "Tunes";
|
|
126
137
|
Television: "Television";
|
|
138
|
+
}>>;
|
|
139
|
+
hallWingType: z.ZodOptional<z.ZodEnum<{
|
|
127
140
|
entertainment: "entertainment";
|
|
128
141
|
educational: "educational";
|
|
129
142
|
newsPolitical: "newsPolitical";
|
|
130
143
|
}>>;
|
|
131
|
-
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
title: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
146
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
147
|
+
group: z.ZodEnum<{
|
|
148
|
+
workRealm: "workRealm";
|
|
149
|
+
generic: "generic";
|
|
150
|
+
merchandising: "merchandising";
|
|
151
|
+
hallWing: "hallWing";
|
|
152
|
+
}>;
|
|
132
153
|
}, z.core.$strict>>;
|
|
133
154
|
agreements: z.ZodObject<{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
155
|
+
intention: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
156
|
+
points: z.ZodArray<z.ZodObject<{
|
|
157
|
+
workProjectType: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
Tales: "Tales";
|
|
159
|
+
Tunes: "Tunes";
|
|
160
|
+
Television: "Television";
|
|
161
|
+
}>>;
|
|
162
|
+
hallWingType: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
entertainment: "entertainment";
|
|
164
|
+
educational: "educational";
|
|
165
|
+
newsPolitical: "newsPolitical";
|
|
166
|
+
}>>;
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
text: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
145
169
|
}, z.core.$strict>>;
|
|
146
170
|
}, z.core.$strict>;
|
|
147
171
|
}, z.core.$strict>;
|
|
@@ -225,6 +249,7 @@ export declare const RecordAppModeFlipResultSchema: z.ZodObject<{
|
|
|
225
249
|
export type RecordAppModeFlipResult = z.infer<typeof RecordAppModeFlipResultSchema>;
|
|
226
250
|
export declare const ClearSystemVideoSlotInputSchema: z.ZodObject<{
|
|
227
251
|
slotId: z.ZodEnum<{
|
|
252
|
+
"landing-hero": "landing-hero";
|
|
228
253
|
"guide-ttt-in-five-minutes": "guide-ttt-in-five-minutes";
|
|
229
254
|
"guide-finding-your-way-around": "guide-finding-your-way-around";
|
|
230
255
|
"guide-find-something-to-enjoy": "guide-find-something-to-enjoy";
|
|
@@ -267,7 +292,13 @@ export declare const ClearSystemVideoSlotInputSchema: z.ZodObject<{
|
|
|
267
292
|
"help-profile-artisan-tools": "help-profile-artisan-tools";
|
|
268
293
|
"help-profile-work-projects": "help-profile-work-projects";
|
|
269
294
|
"help-profile-crafts": "help-profile-crafts";
|
|
270
|
-
"
|
|
295
|
+
"future-plans-page": "future-plans-page";
|
|
296
|
+
"rules-page": "rules-page";
|
|
297
|
+
"rules-merchandising": "rules-merchandising";
|
|
298
|
+
"rules-general": "rules-general";
|
|
299
|
+
"rules-hall-wing": "rules-hall-wing";
|
|
300
|
+
"rules-realm": "rules-realm";
|
|
301
|
+
"rules-artisan-agreements": "rules-artisan-agreements";
|
|
271
302
|
}>;
|
|
272
303
|
}, z.core.$strict>;
|
|
273
304
|
export type ClearSystemVideoSlotInput = z.infer<typeof ClearSystemVideoSlotInputSchema>;
|
|
@@ -330,8 +361,8 @@ export type ReportedTextField = z.infer<typeof ReportedTextFieldSchema>;
|
|
|
330
361
|
export declare const ReportedMediaAssetSchema: z.ZodObject<{
|
|
331
362
|
mediaAssetId: z.ZodString;
|
|
332
363
|
mediaKind: z.ZodNullable<z.ZodEnum<{
|
|
333
|
-
video: "video";
|
|
334
364
|
image: "image";
|
|
365
|
+
video: "video";
|
|
335
366
|
audio: "audio";
|
|
336
367
|
}>>;
|
|
337
368
|
servingStatus: z.ZodNullable<z.ZodEnum<{
|
|
@@ -356,8 +387,8 @@ export declare const GetReportedContentDetailResultSchema: z.ZodObject<{
|
|
|
356
387
|
mediaAssets: z.ZodArray<z.ZodObject<{
|
|
357
388
|
mediaAssetId: z.ZodString;
|
|
358
389
|
mediaKind: z.ZodNullable<z.ZodEnum<{
|
|
359
|
-
video: "video";
|
|
360
390
|
image: "image";
|
|
391
|
+
video: "video";
|
|
361
392
|
audio: "audio";
|
|
362
393
|
}>>;
|
|
363
394
|
servingStatus: z.ZodNullable<z.ZodEnum<{
|
|
@@ -458,8 +489,8 @@ export declare const ClearWorkRealmTextInputSchema: z.ZodObject<{
|
|
|
458
489
|
}, z.core.$strict>;
|
|
459
490
|
export type ClearWorkRealmTextInput = z.infer<typeof ClearWorkRealmTextInputSchema>;
|
|
460
491
|
declare const HallClearFieldSchema: z.ZodEnum<{
|
|
461
|
-
description: "description";
|
|
462
492
|
title: "title";
|
|
493
|
+
description: "description";
|
|
463
494
|
content: "content";
|
|
464
495
|
}>;
|
|
465
496
|
export type HallClearField = z.infer<typeof HallClearFieldSchema>;
|
|
@@ -472,8 +503,8 @@ export declare const ClearHallContentTextInputSchema: z.ZodObject<{
|
|
|
472
503
|
}>;
|
|
473
504
|
subItemId: z.ZodOptional<z.ZodString>;
|
|
474
505
|
fields: z.ZodArray<z.ZodEnum<{
|
|
475
|
-
description: "description";
|
|
476
506
|
title: "title";
|
|
507
|
+
description: "description";
|
|
477
508
|
content: "content";
|
|
478
509
|
}>>;
|
|
479
510
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -516,10 +547,10 @@ export type ModerateReportedContentInput = z.infer<typeof ModerateReportedConten
|
|
|
516
547
|
declare const CLEAR_CONTENT_TEXT_TARGET_TYPES: readonly ["work-project", "work-realm", "hall-library-sub-item"];
|
|
517
548
|
export type ClearContentTextTargetType = (typeof CLEAR_CONTENT_TEXT_TARGET_TYPES)[number];
|
|
518
549
|
declare const ClearContentTextFieldSchema: z.ZodEnum<{
|
|
519
|
-
description: "description";
|
|
520
550
|
workingTitle: "workingTitle";
|
|
521
551
|
workingDescription: "workingDescription";
|
|
522
552
|
title: "title";
|
|
553
|
+
description: "description";
|
|
523
554
|
content: "content";
|
|
524
555
|
}>;
|
|
525
556
|
export type ClearContentTextField = z.infer<typeof ClearContentTextFieldSchema>;
|
|
@@ -585,10 +616,10 @@ export declare const StagedActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
585
616
|
reportedItemId: z.ZodString;
|
|
586
617
|
parentItemId: z.ZodOptional<z.ZodString>;
|
|
587
618
|
fields: z.ZodArray<z.ZodEnum<{
|
|
588
|
-
description: "description";
|
|
589
619
|
workingTitle: "workingTitle";
|
|
590
620
|
workingDescription: "workingDescription";
|
|
591
621
|
title: "title";
|
|
622
|
+
description: "description";
|
|
592
623
|
content: "content";
|
|
593
624
|
}>>;
|
|
594
625
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -675,10 +706,10 @@ export declare const NormalReportInputSchema: z.ZodObject<{
|
|
|
675
706
|
reportedItemId: z.ZodString;
|
|
676
707
|
parentItemId: z.ZodOptional<z.ZodString>;
|
|
677
708
|
fields: z.ZodArray<z.ZodEnum<{
|
|
678
|
-
description: "description";
|
|
679
709
|
workingTitle: "workingTitle";
|
|
680
710
|
workingDescription: "workingDescription";
|
|
681
711
|
title: "title";
|
|
712
|
+
description: "description";
|
|
682
713
|
content: "content";
|
|
683
714
|
}>>;
|
|
684
715
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -731,14 +762,14 @@ export declare const SafetyStagedActionSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
731
762
|
reasonInternal: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
732
763
|
reasonUserFacing: z.ZodString;
|
|
733
764
|
role: z.ZodEnum<{
|
|
734
|
-
requester: "requester";
|
|
735
765
|
uploader: "uploader";
|
|
766
|
+
requester: "requester";
|
|
736
767
|
distributor: "distributor";
|
|
737
768
|
questionable: "questionable";
|
|
738
769
|
}>;
|
|
739
770
|
subjectDisposition: z.ZodEnum<{
|
|
740
|
-
subject: "subject";
|
|
741
771
|
questionable: "questionable";
|
|
772
|
+
subject: "subject";
|
|
742
773
|
excluded: "excluded";
|
|
743
774
|
}>;
|
|
744
775
|
}, z.core.$strict>], "button">;
|
|
@@ -786,14 +817,14 @@ export declare const SafetyCaseInputSchema: z.ZodObject<{
|
|
|
786
817
|
reasonInternal: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
787
818
|
reasonUserFacing: z.ZodString;
|
|
788
819
|
role: z.ZodEnum<{
|
|
789
|
-
requester: "requester";
|
|
790
820
|
uploader: "uploader";
|
|
821
|
+
requester: "requester";
|
|
791
822
|
distributor: "distributor";
|
|
792
823
|
questionable: "questionable";
|
|
793
824
|
}>;
|
|
794
825
|
subjectDisposition: z.ZodEnum<{
|
|
795
|
-
subject: "subject";
|
|
796
826
|
questionable: "questionable";
|
|
827
|
+
subject: "subject";
|
|
797
828
|
excluded: "excluded";
|
|
798
829
|
}>;
|
|
799
830
|
}, z.core.$strict>], "button">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkGxB,eAAO,MAAM,oCAAoC,iCAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,8BAA8B;;kBAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAItF,eAAO,MAAM,wBAAwB;;;kBAG1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,C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C,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;kBAQ7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAerC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,mEAAmE;AACnE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;EAA8D,CAAC;AAC1G,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;kBAIvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAczC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;oBAQ1B,CAAC;AACb,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/schemas/admin.js
CHANGED
|
@@ -5,12 +5,13 @@ import { ReportDispositionSchema, ReportDispositionReasonCodeSchema, refineRepor
|
|
|
5
5
|
import { ChildSafetyAccountRoleSchema, ChildSafetyAccountSubjectDispositionSchema, SafetyCaseLaneSchema, } from '../doc-schemas/safety/case.js';
|
|
6
6
|
import { ContentMediaKindSchema, MediaServingStatusSchema, } from '../doc-schemas/media-assets.js';
|
|
7
7
|
import { MAX_MANIFEST_NCMEC_RECEIPTS } from '../doc-schemas/safety/evidence.js';
|
|
8
|
-
import { RuleGroupSchema
|
|
8
|
+
import { RuleGroupSchema } from '../doc-schemas/content.js';
|
|
9
|
+
import { HALL_WING_TYPE_KEYS, WORK_PROJECT_TYPE_KEYS } from '../types/content.js';
|
|
9
10
|
import { AppModeSchema } from '../doc-schemas/system.js';
|
|
10
11
|
import { SystemUidListSlotIdSchema, SystemUidSlotIdSchema, SystemVideoSlotIdSchema, } from '../system-slots/system-slots.js';
|
|
11
12
|
import { MODERATION_CLEARABLE_TEXT_FIELDS, HALL_CLEARABLE_TEXT_FIELD_NAMES, } from '../constants/business-content.js';
|
|
12
|
-
import { MAX_WORK_PROJECT_TITLE_LENGTH, MAX_INTERNAL_REASON_LENGTH, MAX_USER_FACING_REASON_LENGTH, MAX_SAFETY_RESOLUTION_SUMMARY_LENGTH, MAX_CONTENT_PAGE_SECTIONS, MAX_DMCA_CONTACT_BLOCKS, MAX_DMCA_CONTACT_ROWS, MAX_SYSTEM_UID_LIST, } from '../constants/business.js';
|
|
13
|
-
import { ACCOUNT_ACTION_REASON_INPUT, ACCOUNT_REINSTATE_REASON_INPUT, ADMIN_DISPATCH_MESSAGE_INPUT, ADMIN_DISPATCH_SUBJECT_INPUT, AGREEMENT_POINT_INPUT, ANNOUNCEMENT_MESSAGE_INPUT, APP_MODE_FLIP_EVIDENCE_INPUT, APP_VERSION_INPUT, APPEAL_REVIEW_NOTES_INPUT, CLEAR_TEXT_REASON_INPUT, CLOSE_OUT_ADMIN_NOTE_INPUT, CONTENT_PAGE_BODY_INPUT, CONTENT_PAGE_HEADING_INPUT, DMCA_CONTACT_LABEL_INPUT, DMCA_CONTACT_VALUE_INPUT, FUTURE_PLAN_DESCRIPTION_INPUT, FUTURE_PLAN_TITLE_INPUT, HIDE_REASON_INPUT, MAINTENANCE_MESSAGE_INPUT, MODERATION_ACTION_REASON_INPUT, PLATFORM_RULE_DESCRIPTION_INPUT, PLATFORM_RULE_TITLE_INPUT, RETITLE_REASON_INPUT, SAFETY_INTERNAL_REASON_INPUT, TAKE_IT_DOWN_COPY_INPUT, USER_FACING_REASON_DETAIL_INPUT, } from '../constants/text-fields.js';
|
|
13
|
+
import { MAX_WORK_PROJECT_TITLE_LENGTH, MAX_INTERNAL_REASON_LENGTH, MAX_USER_FACING_REASON_LENGTH, MAX_SAFETY_RESOLUTION_SUMMARY_LENGTH, MAX_CONTENT_PAGE_SECTIONS, MAX_DMCA_CONTACT_BLOCKS, MAX_DMCA_CONTACT_ROWS, MAX_SYSTEM_UID_LIST, MAX_FUTURE_PLAN_GROUPS, MAX_FUTURE_PLANS, MAX_PLATFORM_RULES, MAX_AGREEMENT_POINTS, } from '../constants/business.js';
|
|
14
|
+
import { ACCOUNT_ACTION_REASON_INPUT, ACCOUNT_REINSTATE_REASON_INPUT, ADMIN_DISPATCH_MESSAGE_INPUT, ADMIN_DISPATCH_SUBJECT_INPUT, AGREEMENT_POINT_INPUT, ANNOUNCEMENT_MESSAGE_INPUT, APP_MODE_FLIP_EVIDENCE_INPUT, APP_VERSION_INPUT, APPEAL_REVIEW_NOTES_INPUT, CLEAR_TEXT_REASON_INPUT, CLOSE_OUT_ADMIN_NOTE_INPUT, CONTENT_PAGE_BODY_INPUT, CONTENT_PAGE_HEADING_INPUT, DMCA_CONTACT_LABEL_INPUT, DMCA_CONTACT_VALUE_INPUT, FUTURE_PLAN_DESCRIPTION_INPUT, FUTURE_PLAN_GROUP_NAME_INPUT, FUTURE_PLAN_TITLE_INPUT, HIDE_REASON_INPUT, MAINTENANCE_MESSAGE_INPUT, MODERATION_ACTION_REASON_INPUT, PLATFORM_RULE_DESCRIPTION_INPUT, PLATFORM_RULE_TITLE_INPUT, PUBLIC_DOCUMENT_INTENTION_INPUT, PUBLIC_DOCUMENT_INTRO_INPUT, RETITLE_REASON_INPUT, SAFETY_INTERNAL_REASON_INPUT, TAKE_IT_DOWN_COPY_INPUT, USER_FACING_REASON_DETAIL_INPUT, } from '../constants/text-fields.js';
|
|
14
15
|
import { textFieldSchema } from './text-field.js';
|
|
15
16
|
import { SAFETY_ACTIONS_CONFIRMATION, SAFETY_CASE_REOPEN_CONFIRMATION, } from '../constants/safety-confirmation-phrases.js';
|
|
16
17
|
export const CheckoutNextImportantTaskInputSchema = z.object({}).strict();
|
|
@@ -51,38 +52,64 @@ export const ReviewContentAppealResultSchema = z.object({
|
|
|
51
52
|
// document id with its content schema here; the content is FULL (a version is the whole
|
|
52
53
|
// document, never a partial merge). The client never sends a version — the release publish
|
|
53
54
|
// assigns it.
|
|
55
|
+
const publicDocumentItemIdSchema = z.string().min(1).max(128);
|
|
56
|
+
const publicDocumentIntroSchema = textFieldSchema(PUBLIC_DOCUMENT_INTRO_INPUT).optional();
|
|
57
|
+
const publicDocumentIntentionSchema = textFieldSchema(PUBLIC_DOCUMENT_INTENTION_INPUT).optional();
|
|
58
|
+
const appliesToTypeInputFields = {
|
|
59
|
+
workProjectType: z.enum(WORK_PROJECT_TYPE_KEYS).optional(),
|
|
60
|
+
hallWingType: z.enum(HALL_WING_TYPE_KEYS).optional(),
|
|
61
|
+
};
|
|
62
|
+
export const FuturePlanGroupInputSchema = z.object({
|
|
63
|
+
id: publicDocumentItemIdSchema,
|
|
64
|
+
name: textFieldSchema(FUTURE_PLAN_GROUP_NAME_INPUT),
|
|
65
|
+
order: z.number().int().min(0),
|
|
66
|
+
intention: publicDocumentIntentionSchema,
|
|
67
|
+
}).strict();
|
|
54
68
|
export const FuturePlanItemInputSchema = z.object({
|
|
55
|
-
id:
|
|
69
|
+
id: publicDocumentItemIdSchema,
|
|
56
70
|
title: textFieldSchema(FUTURE_PLAN_TITLE_INPUT),
|
|
57
71
|
description: textFieldSchema(FUTURE_PLAN_DESCRIPTION_INPUT),
|
|
72
|
+
groupId: publicDocumentItemIdSchema,
|
|
58
73
|
order: z.number().int().min(0),
|
|
59
|
-
videoUrl: z.string().url().max(2048).optional(),
|
|
60
|
-
mediaType: z.enum(['video', 'image', 'audio', 'other']).optional(),
|
|
61
74
|
}).strict();
|
|
62
75
|
export const FuturePlansContentInputSchema = z.object({
|
|
63
|
-
|
|
64
|
-
|
|
76
|
+
intro: publicDocumentIntroSchema,
|
|
77
|
+
groups: z.array(FuturePlanGroupInputSchema).max(MAX_FUTURE_PLAN_GROUPS),
|
|
78
|
+
plans: z.array(FuturePlanItemInputSchema).max(MAX_FUTURE_PLANS),
|
|
79
|
+
}).strict().superRefine((content, ctx) => {
|
|
80
|
+
// A plan whose group is missing would never render, so every plan names a group the document holds.
|
|
81
|
+
const groupIds = new Set(content.groups.map((group) => group.id));
|
|
82
|
+
if (groupIds.size !== content.groups.length) {
|
|
83
|
+
ctx.addIssue({ code: 'custom', path: ['groups'], message: 'Each group needs its own id.' });
|
|
84
|
+
}
|
|
85
|
+
content.plans.forEach((plan, index) => {
|
|
86
|
+
if (!groupIds.has(plan.groupId)) {
|
|
87
|
+
ctx.addIssue({ code: 'custom', path: ['plans', index, 'groupId'], message: 'Every plan belongs to one of the groups.' });
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
});
|
|
65
91
|
export const PlatformRuleInputSchema = z.object({
|
|
66
|
-
id:
|
|
92
|
+
id: publicDocumentItemIdSchema,
|
|
67
93
|
title: textFieldSchema(PLATFORM_RULE_TITLE_INPUT),
|
|
68
94
|
description: textFieldSchema(PLATFORM_RULE_DESCRIPTION_INPUT),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
subgroup: RuleSubgroupSchema.optional(),
|
|
95
|
+
group: RuleGroupSchema,
|
|
96
|
+
...appliesToTypeInputFields,
|
|
72
97
|
order: z.number().int().min(0),
|
|
73
98
|
}).strict();
|
|
74
|
-
export const
|
|
75
|
-
|
|
76
|
-
|
|
99
|
+
export const AgreementPointInputSchema = z.object({
|
|
100
|
+
id: publicDocumentItemIdSchema,
|
|
101
|
+
text: textFieldSchema(AGREEMENT_POINT_INPUT),
|
|
102
|
+
...appliesToTypeInputFields,
|
|
77
103
|
}).strict();
|
|
78
|
-
export const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
television: AgreementCategoryInputSchema.optional(),
|
|
104
|
+
export const ArtisanAgreementsInputSchema = z.object({
|
|
105
|
+
intention: publicDocumentIntentionSchema,
|
|
106
|
+
points: z.array(AgreementPointInputSchema).max(MAX_AGREEMENT_POINTS),
|
|
82
107
|
}).strict();
|
|
83
108
|
export const RulesAndAgreementsContentInputSchema = z.object({
|
|
84
|
-
|
|
85
|
-
|
|
109
|
+
intro: publicDocumentIntroSchema,
|
|
110
|
+
groupIntentions: z.partialRecord(RuleGroupSchema, textFieldSchema(PUBLIC_DOCUMENT_INTENTION_INPUT)).optional(),
|
|
111
|
+
rules: z.array(PlatformRuleInputSchema).max(MAX_PLATFORM_RULES),
|
|
112
|
+
agreements: ArtisanAgreementsInputSchema,
|
|
86
113
|
}).strict();
|
|
87
114
|
export const ContentPageSectionInputSchema = z.object({
|
|
88
115
|
id: z.string().min(1).max(128),
|