wedance-shared 1.0.243 → 1.0.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/event.d.ts +14 -0
- package/dist/types/school.d.ts +17 -0
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -188,3 +188,17 @@ export type FeaturedEvent = {
|
|
|
188
188
|
event?: EventSummary;
|
|
189
189
|
organizer?: OrganizerSummary;
|
|
190
190
|
};
|
|
191
|
+
/** Event-card presses over a promotion's date range, saved 3 days after it ends. */
|
|
192
|
+
export type FeaturedEventResults = {
|
|
193
|
+
/** Presses from the featured slot. */
|
|
194
|
+
featuredViews: number;
|
|
195
|
+
featuredUsers: number;
|
|
196
|
+
/** Presses from every entry point, featured included. */
|
|
197
|
+
totalViews: number;
|
|
198
|
+
totalUsers: number;
|
|
199
|
+
computedAt: string;
|
|
200
|
+
};
|
|
201
|
+
export type CompletedPromotion = FeaturedEvent & {
|
|
202
|
+
/** Null until the nightly job has saved the results. */
|
|
203
|
+
results: FeaturedEventResults | null;
|
|
204
|
+
};
|
package/dist/types/school.d.ts
CHANGED
|
@@ -446,3 +446,20 @@ export interface SchoolSubscription {
|
|
|
446
446
|
canceledAt: string | null;
|
|
447
447
|
hasPaymentMethod: boolean;
|
|
448
448
|
}
|
|
449
|
+
export type SchoolLegalDocumentType = "terms_of_service" | "data_processing_agreement";
|
|
450
|
+
export interface SchoolLegalAcceptance {
|
|
451
|
+
id: string;
|
|
452
|
+
schoolId: string;
|
|
453
|
+
userId: string;
|
|
454
|
+
documentType: SchoolLegalDocumentType;
|
|
455
|
+
documentVersion: string;
|
|
456
|
+
acceptedAt: string;
|
|
457
|
+
}
|
|
458
|
+
export interface SchoolLegalDocumentAcceptanceInput {
|
|
459
|
+
accepted: boolean;
|
|
460
|
+
version: string;
|
|
461
|
+
}
|
|
462
|
+
export interface SchoolLegalAcceptanceInput {
|
|
463
|
+
termsOfService: SchoolLegalDocumentAcceptanceInput;
|
|
464
|
+
dataProcessingAgreement: SchoolLegalDocumentAcceptanceInput;
|
|
465
|
+
}
|
package/package.json
CHANGED