@dabble/patches 0.9.1 → 0.9.5

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.
@@ -1,55 +0,0 @@
1
- /**
2
- * Shapes returned by pup's invite endpoints (`GET /docs/:docId/_invites/:inviteId`)
3
- * and embedded in roles documents. Kept in sync with pup's `Invite` / `UserAccess`
4
- * surface so clients deserialize with correct field names.
5
- */
6
- type InviteRole = 'owner' | 'write' | 'edit' | 'comment' | 'view';
7
- /** Invite addressee payload (`invite.to`). */
8
- interface InviteTo {
9
- role: InviteRole;
10
- private?: boolean;
11
- doc?: string;
12
- /** Optional client-side id echoed from legacy creation paths; stripped on accept server-side. */
13
- id?: string;
14
- name?: string;
15
- email: string;
16
- }
17
- /**
18
- * Minimal book-row shape stored on invites for dashboard-style previews.
19
- * Mirrors writer `NovelBookMeta` / pup-embedded JSON (extra keys are ignored).
20
- */
21
- interface InviteProjectBookMeta {
22
- id?: string;
23
- title?: string;
24
- subtitle?: string;
25
- author?: string;
26
- coverArt?: string;
27
- coverArtRatio?: unknown;
28
- pattern?: number;
29
- backgroundColor?: unknown;
30
- }
31
- /** Novel project meta snapshot on an invite (writer `InviteProjectMetaSnapshot`). */
32
- interface InviteProjectMetaSnapshot {
33
- title?: string;
34
- modifiedAt?: string;
35
- books: InviteProjectBookMeta[];
36
- isTemplate?: boolean;
37
- templateCount?: number;
38
- type?: string;
39
- }
40
- interface Invite {
41
- from: string;
42
- to: InviteTo;
43
- createdAt: number;
44
- expiresAt: number;
45
- /** Cached project title at invite creation (writer/pup roles doc). */
46
- projectName?: string;
47
- /** @deprecated Prefer `projectMetaSnapshot.books`. */
48
- projectBooks?: InviteProjectBookMeta[];
49
- /** @deprecated Prefer `projectMetaSnapshot.modifiedAt`. */
50
- projectModifiedAt?: string;
51
- /** Full project meta snapshot for accept-modal preview. */
52
- projectMetaSnapshot?: InviteProjectMetaSnapshot;
53
- }
54
-
55
- export type { Invite, InviteProjectBookMeta, InviteProjectMetaSnapshot, InviteRole, InviteTo };
File without changes