@marcoappio/marco-config 2.0.413 → 2.0.415
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/clients/account.d.ts +144 -0
- package/dist/clients/account.d.ts.map +1 -0
- package/dist/clients/account.js +93 -0
- package/dist/clients/contact.d.ts +14 -0
- package/dist/clients/contact.d.ts.map +1 -0
- package/dist/clients/contact.js +14 -0
- package/dist/clients/draft.d.ts +196 -0
- package/dist/clients/draft.d.ts.map +1 -0
- package/dist/clients/draft.js +122 -0
- package/dist/clients/index.d.ts +526 -0
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +13 -0
- package/dist/clients/thread.d.ts +125 -0
- package/dist/clients/thread.d.ts.map +1 -0
- package/dist/clients/thread.js +117 -0
- package/dist/clients/user.d.ts +53 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +52 -0
- package/dist/clients/utils/index.d.ts +4 -0
- package/dist/clients/utils/index.d.ts.map +1 -0
- package/dist/clients/utils/index.js +4 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
- package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/marcoPublicConfig.d.ts +6 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +18 -0
- package/dist/sdk/endpoints/index.d.ts +1073 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +2 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
- package/dist/sdk/endpoints/private/index.d.ts +938 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +8 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/index.js +3 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +4 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
- package/dist/sdk/endpoints/public/index.d.ts +136 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -0
- package/dist/sdk/index.d.ts +1073 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +2 -1
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/MarcoClient.d.ts +12 -0
- package/dist/types/MarcoClient.d.ts.map +1 -0
- package/dist/types/MarcoClient.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/WS.d.ts +7 -0
- package/dist/types/WS.d.ts.map +1 -0
- package/dist/types/WS.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/ws.d.ts +6 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +5 -0
- package/package.json +1 -2
- package/dist/instantDB/index.d.ts +0 -3
- package/dist/instantDB/index.d.ts.map +0 -1
- package/dist/instantDB/index.js +0 -2
- package/dist/instantDB/instant.perms.d.ts +0 -110
- package/dist/instantDB/instant.perms.d.ts.map +0 -1
- package/dist/instantDB/instant.perms.js +0 -109
- package/dist/instantDB/instant.schema.d.ts +0 -313
- package/dist/instantDB/instant.schema.d.ts.map +0 -1
- package/dist/instantDB/instant.schema.js +0 -156
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import type { DraftRecipientType, DraftStatus, DraftType, ImapConnectionStatus, LabelSpecialUse, MessageAttachmentStatus, MessageRecipientType } from '../types';
|
|
2
|
-
declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instantdb/core").EntitiesWithLinks<{
|
|
3
|
-
$users: import("@instantdb/core").EntityDef<{
|
|
4
|
-
email: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
5
|
-
}, {}, void>;
|
|
6
|
-
accountSettings: import("@instantdb/core").EntityDef<{
|
|
7
|
-
color: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
8
|
-
mailProcessed: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
9
|
-
mailTotal: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
10
|
-
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
11
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
12
|
-
}, {}, void>;
|
|
13
|
-
accounts: import("@instantdb/core").EntityDef<{
|
|
14
|
-
imapConnectionStatus: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
15
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
16
|
-
}, {}, void>;
|
|
17
|
-
aliases: import("@instantdb/core").EntityDef<{
|
|
18
|
-
emailAddress: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
19
|
-
isPrimary: import("@instantdb/core").DataAttrDef<boolean, true, true>;
|
|
20
|
-
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
21
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
22
|
-
}, {}, void>;
|
|
23
|
-
contacts: import("@instantdb/core").EntityDef<{
|
|
24
|
-
emailAddress: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
25
|
-
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
26
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
27
|
-
}, {}, void>;
|
|
28
|
-
draftAttachments: import("@instantdb/core").EntityDef<{
|
|
29
|
-
failed: import("@instantdb/core").DataAttrDef<boolean, true, false>;
|
|
30
|
-
fileName: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
31
|
-
mimeType: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
32
|
-
totalChunks: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
33
|
-
totalSize: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
34
|
-
uploadedChunks: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
35
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
36
|
-
}, {}, void>;
|
|
37
|
-
drafts: import("@instantdb/core").EntityDef<{
|
|
38
|
-
bodyContent: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
39
|
-
bodySubject: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
40
|
-
emailAccountId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
41
|
-
error: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
42
|
-
from: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
43
|
-
recipients: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
44
|
-
referencedMessageId: import("@instantdb/core").DataAttrDef<string, false, true>;
|
|
45
|
-
scheduledFor: import("@instantdb/core").DataAttrDef<number, false, true>;
|
|
46
|
-
status: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
47
|
-
type: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
48
|
-
updatedAt: import("@instantdb/core").DataAttrDef<number, true, true>;
|
|
49
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
50
|
-
}, {}, void>;
|
|
51
|
-
labels: import("@instantdb/core").EntityDef<{
|
|
52
|
-
labelId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
53
|
-
path: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
54
|
-
specialUse: import("@instantdb/core").DataAttrDef<string, false, true>;
|
|
55
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
56
|
-
}, {}, void>;
|
|
57
|
-
messages: import("@instantdb/core").EntityDef<{
|
|
58
|
-
attachments: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
59
|
-
date: import("@instantdb/core").DataAttrDef<number, true, true>;
|
|
60
|
-
from: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
61
|
-
labelIds: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
62
|
-
messageId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
63
|
-
previewText: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
64
|
-
recipients: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
65
|
-
subject: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
66
|
-
threadId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
67
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
68
|
-
}, {}, void>;
|
|
69
|
-
threadBagOfWords: import("@instantdb/core").EntityDef<{
|
|
70
|
-
word: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
71
|
-
}, {}, void>;
|
|
72
|
-
threadBagOfWordsLink: import("@instantdb/core").EntityDef<{
|
|
73
|
-
threadId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
74
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
75
|
-
wordId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
76
|
-
}, {}, void>;
|
|
77
|
-
threads: import("@instantdb/core").EntityDef<{
|
|
78
|
-
emailAccountId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
79
|
-
flagged: import("@instantdb/core").DataAttrDef<boolean, true, true>;
|
|
80
|
-
labelIds: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
81
|
-
latestMessageDate: import("@instantdb/core").DataAttrDef<number, true, true>;
|
|
82
|
-
messageIds: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
83
|
-
participants: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
84
|
-
seen: import("@instantdb/core").DataAttrDef<boolean, true, true>;
|
|
85
|
-
threadId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
86
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
87
|
-
}, {}, void>;
|
|
88
|
-
userPushNotificationToken: import("@instantdb/core").EntityDef<{
|
|
89
|
-
token: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
90
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
91
|
-
}, {}, void>;
|
|
92
|
-
userSettings: import("@instantdb/core").EntityDef<{
|
|
93
|
-
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
94
|
-
profilePicture: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
95
|
-
undoSendEnabled: import("@instantdb/core").DataAttrDef<boolean, true, false>;
|
|
96
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
97
|
-
}, {}, void>;
|
|
98
|
-
}, {
|
|
99
|
-
readonly accountAliases: {
|
|
100
|
-
readonly forward: {
|
|
101
|
-
readonly has: "one";
|
|
102
|
-
readonly label: "account";
|
|
103
|
-
readonly on: "aliases";
|
|
104
|
-
};
|
|
105
|
-
readonly reverse: {
|
|
106
|
-
readonly has: "many";
|
|
107
|
-
readonly label: "aliases";
|
|
108
|
-
readonly on: "accounts";
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
readonly accountLabels: {
|
|
112
|
-
readonly forward: {
|
|
113
|
-
readonly has: "one";
|
|
114
|
-
readonly label: "account";
|
|
115
|
-
readonly on: "labels";
|
|
116
|
-
};
|
|
117
|
-
readonly reverse: {
|
|
118
|
-
readonly has: "many";
|
|
119
|
-
readonly label: "labels";
|
|
120
|
-
readonly on: "accounts";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
readonly accountSettingsLink: {
|
|
124
|
-
readonly forward: {
|
|
125
|
-
readonly has: "one";
|
|
126
|
-
readonly label: "account";
|
|
127
|
-
readonly on: "accountSettings";
|
|
128
|
-
};
|
|
129
|
-
readonly reverse: {
|
|
130
|
-
readonly has: "one";
|
|
131
|
-
readonly label: "settings";
|
|
132
|
-
readonly on: "accounts";
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
readonly draftAccount: {
|
|
136
|
-
readonly forward: {
|
|
137
|
-
readonly has: "one";
|
|
138
|
-
readonly label: "account";
|
|
139
|
-
readonly on: "drafts";
|
|
140
|
-
};
|
|
141
|
-
readonly reverse: {
|
|
142
|
-
readonly has: "many";
|
|
143
|
-
readonly label: "drafts";
|
|
144
|
-
readonly on: "accounts";
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
readonly draftAttachmentLinks: {
|
|
148
|
-
readonly forward: {
|
|
149
|
-
readonly has: "one";
|
|
150
|
-
readonly label: "draft";
|
|
151
|
-
readonly on: "draftAttachments";
|
|
152
|
-
};
|
|
153
|
-
readonly reverse: {
|
|
154
|
-
readonly has: "many";
|
|
155
|
-
readonly label: "attachments";
|
|
156
|
-
readonly on: "drafts";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
readonly messageThread: {
|
|
160
|
-
readonly forward: {
|
|
161
|
-
readonly has: "one";
|
|
162
|
-
readonly label: "thread";
|
|
163
|
-
readonly on: "messages";
|
|
164
|
-
};
|
|
165
|
-
readonly reverse: {
|
|
166
|
-
readonly has: "many";
|
|
167
|
-
readonly label: "messages";
|
|
168
|
-
readonly on: "threads";
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
readonly threadAccount: {
|
|
172
|
-
readonly forward: {
|
|
173
|
-
readonly has: "one";
|
|
174
|
-
readonly label: "account";
|
|
175
|
-
readonly on: "threads";
|
|
176
|
-
};
|
|
177
|
-
readonly reverse: {
|
|
178
|
-
readonly has: "many";
|
|
179
|
-
readonly label: "threads";
|
|
180
|
-
readonly on: "accounts";
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
readonly threadBagOfWordsJunction: {
|
|
184
|
-
readonly forward: {
|
|
185
|
-
readonly has: "one";
|
|
186
|
-
readonly label: "thread";
|
|
187
|
-
readonly on: "threadBagOfWordsLink";
|
|
188
|
-
};
|
|
189
|
-
readonly reverse: {
|
|
190
|
-
readonly has: "many";
|
|
191
|
-
readonly label: "wordLinks";
|
|
192
|
-
readonly on: "threads";
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
readonly userAccounts: {
|
|
196
|
-
readonly forward: {
|
|
197
|
-
readonly has: "one";
|
|
198
|
-
readonly label: "user";
|
|
199
|
-
readonly on: "accounts";
|
|
200
|
-
};
|
|
201
|
-
readonly reverse: {
|
|
202
|
-
readonly has: "many";
|
|
203
|
-
readonly label: "accounts";
|
|
204
|
-
readonly on: "$users";
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
readonly userContacts: {
|
|
208
|
-
readonly forward: {
|
|
209
|
-
readonly has: "one";
|
|
210
|
-
readonly label: "user";
|
|
211
|
-
readonly on: "contacts";
|
|
212
|
-
};
|
|
213
|
-
readonly reverse: {
|
|
214
|
-
readonly has: "many";
|
|
215
|
-
readonly label: "contacts";
|
|
216
|
-
readonly on: "$users";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
readonly userSettingsLink: {
|
|
220
|
-
readonly forward: {
|
|
221
|
-
readonly has: "one";
|
|
222
|
-
readonly label: "user";
|
|
223
|
-
readonly on: "userSettings";
|
|
224
|
-
};
|
|
225
|
-
readonly reverse: {
|
|
226
|
-
readonly has: "one";
|
|
227
|
-
readonly label: "settings";
|
|
228
|
-
readonly on: "$users";
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
readonly userSettingsPushTokens: {
|
|
232
|
-
readonly forward: {
|
|
233
|
-
readonly has: "one";
|
|
234
|
-
readonly label: "userSettings";
|
|
235
|
-
readonly on: "userPushNotificationToken";
|
|
236
|
-
};
|
|
237
|
-
readonly reverse: {
|
|
238
|
-
readonly has: "many";
|
|
239
|
-
readonly label: "pushNotificationTokens";
|
|
240
|
-
readonly on: "userSettings";
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
readonly wordBagOfWordsJunction: {
|
|
244
|
-
readonly forward: {
|
|
245
|
-
readonly has: "one";
|
|
246
|
-
readonly label: "word";
|
|
247
|
-
readonly on: "threadBagOfWordsLink";
|
|
248
|
-
};
|
|
249
|
-
readonly reverse: {
|
|
250
|
-
readonly has: "many";
|
|
251
|
-
readonly label: "threadLinks";
|
|
252
|
-
readonly on: "threadBagOfWords";
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
}>, import("@instantdb/core").LinksDef<any>, {}>;
|
|
256
|
-
type BaseAppSchema = typeof schema;
|
|
257
|
-
export type AppSchema = {
|
|
258
|
-
[K in keyof BaseAppSchema]: K extends 'entities' ? {
|
|
259
|
-
accounts: Omit<BaseAppSchema['entities']['accounts'], 'imapConnectionStatus'> & {
|
|
260
|
-
imapConnectionStatus: ImapConnectionStatus;
|
|
261
|
-
};
|
|
262
|
-
labels: Omit<BaseAppSchema['entities']['labels'], 'specialUse'> & {
|
|
263
|
-
specialUse: LabelSpecialUse | null;
|
|
264
|
-
};
|
|
265
|
-
messages: Omit<BaseAppSchema['entities']['messages'], 'from' | 'recipients' | 'attachments' | 'labelIds'> & {
|
|
266
|
-
from: {
|
|
267
|
-
email: string;
|
|
268
|
-
name: string | null;
|
|
269
|
-
};
|
|
270
|
-
recipients: Array<{
|
|
271
|
-
email: string;
|
|
272
|
-
name: string | null;
|
|
273
|
-
type: MessageRecipientType;
|
|
274
|
-
}>;
|
|
275
|
-
attachments: Array<{
|
|
276
|
-
attachmentId: string;
|
|
277
|
-
fileName: string;
|
|
278
|
-
mimeType: string;
|
|
279
|
-
size: number;
|
|
280
|
-
status: MessageAttachmentStatus;
|
|
281
|
-
}>;
|
|
282
|
-
labelIds: string[];
|
|
283
|
-
};
|
|
284
|
-
threads: Omit<BaseAppSchema['entities']['threads'], 'labelIds' | 'messageIds' | 'participants'> & {
|
|
285
|
-
labelIds: string[];
|
|
286
|
-
messageIds: string[];
|
|
287
|
-
participants: string[];
|
|
288
|
-
};
|
|
289
|
-
drafts: Omit<BaseAppSchema['entities']['drafts'], 'from' | 'recipients' | 'attachments' | 'status' | 'type'> & {
|
|
290
|
-
from: {
|
|
291
|
-
email: string;
|
|
292
|
-
name: string | null;
|
|
293
|
-
};
|
|
294
|
-
recipients: Array<{
|
|
295
|
-
email: string;
|
|
296
|
-
name: string | null;
|
|
297
|
-
type: DraftRecipientType;
|
|
298
|
-
}>;
|
|
299
|
-
attachments: Array<{
|
|
300
|
-
fileName: string;
|
|
301
|
-
mimeType: string;
|
|
302
|
-
size: number;
|
|
303
|
-
uploadedChunks: number;
|
|
304
|
-
totalChunks: number;
|
|
305
|
-
failed: boolean;
|
|
306
|
-
}>;
|
|
307
|
-
status: DraftStatus;
|
|
308
|
-
type: DraftType;
|
|
309
|
-
};
|
|
310
|
-
} & Omit<BaseAppSchema['entities'], 'accounts' | 'drafts' | 'labels' | 'messages' | 'threads'> : BaseAppSchema[K];
|
|
311
|
-
};
|
|
312
|
-
export default schema;
|
|
313
|
-
//# sourceMappingURL=instant.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instant.schema.d.ts","sourceRoot":"","sources":["../../src/instantDB/instant.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { i } from '@instantdb/admin';
|
|
2
|
-
const schema = i.schema({
|
|
3
|
-
entities: {
|
|
4
|
-
$users: i.entity({
|
|
5
|
-
email: i.string().unique().indexed(),
|
|
6
|
-
}),
|
|
7
|
-
accountSettings: i.entity({
|
|
8
|
-
color: i.string(),
|
|
9
|
-
mailProcessed: i.number(),
|
|
10
|
-
mailTotal: i.number(),
|
|
11
|
-
name: i.string().optional(),
|
|
12
|
-
userId: i.string().indexed(),
|
|
13
|
-
}),
|
|
14
|
-
accounts: i.entity({
|
|
15
|
-
imapConnectionStatus: i.string().indexed(),
|
|
16
|
-
userId: i.string().indexed(),
|
|
17
|
-
}),
|
|
18
|
-
aliases: i.entity({
|
|
19
|
-
emailAddress: i.string().indexed(),
|
|
20
|
-
isPrimary: i.boolean().indexed(),
|
|
21
|
-
name: i.string().optional(),
|
|
22
|
-
userId: i.string().indexed(),
|
|
23
|
-
}),
|
|
24
|
-
contacts: i.entity({
|
|
25
|
-
emailAddress: i.string().indexed(),
|
|
26
|
-
name: i.string().optional(),
|
|
27
|
-
userId: i.string().indexed(),
|
|
28
|
-
}),
|
|
29
|
-
draftAttachments: i.entity({
|
|
30
|
-
failed: i.boolean(),
|
|
31
|
-
fileName: i.string(),
|
|
32
|
-
mimeType: i.string(),
|
|
33
|
-
totalChunks: i.number(),
|
|
34
|
-
totalSize: i.number(),
|
|
35
|
-
uploadedChunks: i.number(),
|
|
36
|
-
userId: i.string().indexed(),
|
|
37
|
-
}),
|
|
38
|
-
drafts: i.entity({
|
|
39
|
-
bodyContent: i.string(),
|
|
40
|
-
bodySubject: i.string().optional(),
|
|
41
|
-
emailAccountId: i.string().indexed(),
|
|
42
|
-
error: i.string().optional(),
|
|
43
|
-
from: i.json(),
|
|
44
|
-
recipients: i.json(),
|
|
45
|
-
referencedMessageId: i.string().indexed().optional(),
|
|
46
|
-
scheduledFor: i.number().indexed().optional(),
|
|
47
|
-
status: i.string().indexed(),
|
|
48
|
-
type: i.string().indexed(),
|
|
49
|
-
updatedAt: i.number().indexed(),
|
|
50
|
-
userId: i.string().indexed(),
|
|
51
|
-
}),
|
|
52
|
-
labels: i.entity({
|
|
53
|
-
labelId: i.string().indexed(),
|
|
54
|
-
path: i.string().indexed(),
|
|
55
|
-
specialUse: i.string().indexed().optional(),
|
|
56
|
-
userId: i.string().indexed(),
|
|
57
|
-
}),
|
|
58
|
-
messages: i.entity({
|
|
59
|
-
attachments: i.json(),
|
|
60
|
-
date: i.number().indexed(),
|
|
61
|
-
from: i.json(),
|
|
62
|
-
labelIds: i.json(),
|
|
63
|
-
messageId: i.string().indexed(),
|
|
64
|
-
previewText: i.string(),
|
|
65
|
-
recipients: i.json(),
|
|
66
|
-
subject: i.string().optional(),
|
|
67
|
-
threadId: i.string().indexed(),
|
|
68
|
-
userId: i.string().indexed(),
|
|
69
|
-
}),
|
|
70
|
-
threadBagOfWords: i.entity({
|
|
71
|
-
word: i.string().unique().indexed(),
|
|
72
|
-
}),
|
|
73
|
-
threadBagOfWordsLink: i.entity({
|
|
74
|
-
threadId: i.string().indexed(),
|
|
75
|
-
userId: i.string().indexed(),
|
|
76
|
-
wordId: i.string().indexed(),
|
|
77
|
-
}),
|
|
78
|
-
threads: i.entity({
|
|
79
|
-
emailAccountId: i.string().indexed(),
|
|
80
|
-
flagged: i.boolean().indexed(),
|
|
81
|
-
labelIds: i.json(),
|
|
82
|
-
latestMessageDate: i.number().indexed(),
|
|
83
|
-
messageIds: i.json(),
|
|
84
|
-
participants: i.json(),
|
|
85
|
-
seen: i.boolean().indexed(),
|
|
86
|
-
threadId: i.string().indexed(),
|
|
87
|
-
userId: i.string().indexed(),
|
|
88
|
-
}),
|
|
89
|
-
userPushNotificationToken: i.entity({
|
|
90
|
-
token: i.string().unique().indexed(),
|
|
91
|
-
userId: i.string().indexed(),
|
|
92
|
-
}),
|
|
93
|
-
userSettings: i.entity({
|
|
94
|
-
name: i.string().optional(),
|
|
95
|
-
profilePicture: i.string().optional(),
|
|
96
|
-
undoSendEnabled: i.boolean(),
|
|
97
|
-
userId: i.string().indexed(),
|
|
98
|
-
}),
|
|
99
|
-
},
|
|
100
|
-
links: {
|
|
101
|
-
accountAliases: {
|
|
102
|
-
forward: { has: 'one', label: 'account', on: 'aliases' },
|
|
103
|
-
reverse: { has: 'many', label: 'aliases', on: 'accounts' },
|
|
104
|
-
},
|
|
105
|
-
accountLabels: {
|
|
106
|
-
forward: { has: 'one', label: 'account', on: 'labels' },
|
|
107
|
-
reverse: { has: 'many', label: 'labels', on: 'accounts' },
|
|
108
|
-
},
|
|
109
|
-
accountSettingsLink: {
|
|
110
|
-
forward: { has: 'one', label: 'account', on: 'accountSettings' },
|
|
111
|
-
reverse: { has: 'one', label: 'settings', on: 'accounts' },
|
|
112
|
-
},
|
|
113
|
-
draftAccount: {
|
|
114
|
-
forward: { has: 'one', label: 'account', on: 'drafts' },
|
|
115
|
-
reverse: { has: 'many', label: 'drafts', on: 'accounts' },
|
|
116
|
-
},
|
|
117
|
-
draftAttachmentLinks: {
|
|
118
|
-
forward: { has: 'one', label: 'draft', on: 'draftAttachments' },
|
|
119
|
-
reverse: { has: 'many', label: 'attachments', on: 'drafts' },
|
|
120
|
-
},
|
|
121
|
-
messageThread: {
|
|
122
|
-
forward: { has: 'one', label: 'thread', on: 'messages' },
|
|
123
|
-
reverse: { has: 'many', label: 'messages', on: 'threads' },
|
|
124
|
-
},
|
|
125
|
-
threadAccount: {
|
|
126
|
-
forward: { has: 'one', label: 'account', on: 'threads' },
|
|
127
|
-
reverse: { has: 'many', label: 'threads', on: 'accounts' },
|
|
128
|
-
},
|
|
129
|
-
threadBagOfWordsJunction: {
|
|
130
|
-
forward: { has: 'one', label: 'thread', on: 'threadBagOfWordsLink' },
|
|
131
|
-
reverse: { has: 'many', label: 'wordLinks', on: 'threads' },
|
|
132
|
-
},
|
|
133
|
-
userAccounts: {
|
|
134
|
-
forward: { has: 'one', label: 'user', on: 'accounts' },
|
|
135
|
-
reverse: { has: 'many', label: 'accounts', on: '$users' },
|
|
136
|
-
},
|
|
137
|
-
userContacts: {
|
|
138
|
-
forward: { has: 'one', label: 'user', on: 'contacts' },
|
|
139
|
-
reverse: { has: 'many', label: 'contacts', on: '$users' },
|
|
140
|
-
},
|
|
141
|
-
userSettingsLink: {
|
|
142
|
-
forward: { has: 'one', label: 'user', on: 'userSettings' },
|
|
143
|
-
reverse: { has: 'one', label: 'settings', on: '$users' },
|
|
144
|
-
},
|
|
145
|
-
userSettingsPushTokens: {
|
|
146
|
-
forward: { has: 'one', label: 'userSettings', on: 'userPushNotificationToken' },
|
|
147
|
-
reverse: { has: 'many', label: 'pushNotificationTokens', on: 'userSettings' },
|
|
148
|
-
},
|
|
149
|
-
wordBagOfWordsJunction: {
|
|
150
|
-
forward: { has: 'one', label: 'word', on: 'threadBagOfWordsLink' },
|
|
151
|
-
reverse: { has: 'many', label: 'threadLinks', on: 'threadBagOfWords' },
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
rooms: {},
|
|
155
|
-
});
|
|
156
|
-
export default schema;
|