@marcoappio/marco-config 2.0.412 → 2.0.413
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/instantDB/instant.perms.d.ts +0 -38
- package/dist/instantDB/instant.perms.d.ts.map +1 -1
- package/dist/instantDB/instant.perms.js +1 -39
- package/dist/instantDB/instant.schema.d.ts +56 -112
- package/dist/instantDB/instant.schema.d.ts.map +1 -1
- package/dist/instantDB/instant.schema.js +15 -58
- package/package.json +1 -1
|
@@ -5,12 +5,6 @@ declare const rules: {
|
|
|
5
5
|
};
|
|
6
6
|
bind: string[];
|
|
7
7
|
};
|
|
8
|
-
accountMailCounts: {
|
|
9
|
-
allow: {
|
|
10
|
-
view: string;
|
|
11
|
-
};
|
|
12
|
-
bind: string[];
|
|
13
|
-
};
|
|
14
8
|
accountSettings: {
|
|
15
9
|
allow: {
|
|
16
10
|
update: string;
|
|
@@ -51,15 +45,6 @@ declare const rules: {
|
|
|
51
45
|
};
|
|
52
46
|
bind: string[];
|
|
53
47
|
};
|
|
54
|
-
draftRecipients: {
|
|
55
|
-
allow: {
|
|
56
|
-
create: string;
|
|
57
|
-
delete: string;
|
|
58
|
-
update: string;
|
|
59
|
-
view: string;
|
|
60
|
-
};
|
|
61
|
-
bind: string[];
|
|
62
|
-
};
|
|
63
48
|
drafts: {
|
|
64
49
|
allow: {
|
|
65
50
|
create: string;
|
|
@@ -75,27 +60,6 @@ declare const rules: {
|
|
|
75
60
|
};
|
|
76
61
|
bind: string[];
|
|
77
62
|
};
|
|
78
|
-
messageAttachments: {
|
|
79
|
-
allow: {
|
|
80
|
-
view: string;
|
|
81
|
-
};
|
|
82
|
-
bind: string[];
|
|
83
|
-
};
|
|
84
|
-
messageLabels: {
|
|
85
|
-
allow: {
|
|
86
|
-
create: string;
|
|
87
|
-
delete: string;
|
|
88
|
-
update: string;
|
|
89
|
-
view: string;
|
|
90
|
-
};
|
|
91
|
-
bind: string[];
|
|
92
|
-
};
|
|
93
|
-
messageRecipients: {
|
|
94
|
-
allow: {
|
|
95
|
-
view: string;
|
|
96
|
-
};
|
|
97
|
-
bind: string[];
|
|
98
|
-
};
|
|
99
63
|
messages: {
|
|
100
64
|
allow: {
|
|
101
65
|
view: string;
|
|
@@ -110,8 +74,6 @@ declare const rules: {
|
|
|
110
74
|
};
|
|
111
75
|
threadBagOfWordsLink: {
|
|
112
76
|
allow: {
|
|
113
|
-
create: string;
|
|
114
|
-
delete: string;
|
|
115
77
|
view: string;
|
|
116
78
|
};
|
|
117
79
|
bind: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instant.perms.d.ts","sourceRoot":"","sources":["../../src/instantDB/instant.perms.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"instant.perms.d.ts","sourceRoot":"","sources":["../../src/instantDB/instant.perms.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Ga,CAAA;AAExB,eAAe,KAAK,CAAA"}
|
|
@@ -5,12 +5,6 @@ const rules = {
|
|
|
5
5
|
},
|
|
6
6
|
bind: ['isOwner', 'data.id == auth.id'],
|
|
7
7
|
},
|
|
8
|
-
accountMailCounts: {
|
|
9
|
-
allow: {
|
|
10
|
-
view: 'isOwner',
|
|
11
|
-
},
|
|
12
|
-
bind: ['isOwner', 'data.userId == auth.id'],
|
|
13
|
-
},
|
|
14
8
|
accountSettings: {
|
|
15
9
|
allow: {
|
|
16
10
|
update: 'isOwner',
|
|
@@ -51,15 +45,6 @@ const rules = {
|
|
|
51
45
|
},
|
|
52
46
|
bind: ['isOwner', 'data.userId == auth.id'],
|
|
53
47
|
},
|
|
54
|
-
draftRecipients: {
|
|
55
|
-
allow: {
|
|
56
|
-
create: 'isOwner',
|
|
57
|
-
delete: 'isOwner',
|
|
58
|
-
update: 'isOwner',
|
|
59
|
-
view: 'isOwner',
|
|
60
|
-
},
|
|
61
|
-
bind: ['isOwner', 'data.userId == auth.id'],
|
|
62
|
-
},
|
|
63
48
|
drafts: {
|
|
64
49
|
allow: {
|
|
65
50
|
create: 'isOwner',
|
|
@@ -75,27 +60,6 @@ const rules = {
|
|
|
75
60
|
},
|
|
76
61
|
bind: ['isOwner', 'data.userId == auth.id'],
|
|
77
62
|
},
|
|
78
|
-
messageAttachments: {
|
|
79
|
-
allow: {
|
|
80
|
-
view: 'isOwner',
|
|
81
|
-
},
|
|
82
|
-
bind: ['isOwner', 'data.userId == auth.id'],
|
|
83
|
-
},
|
|
84
|
-
messageLabels: {
|
|
85
|
-
allow: {
|
|
86
|
-
create: 'isOwner',
|
|
87
|
-
delete: 'isOwner',
|
|
88
|
-
update: 'isOwner',
|
|
89
|
-
view: 'isOwner',
|
|
90
|
-
},
|
|
91
|
-
bind: ['isOwner', 'data.userId == auth.id'],
|
|
92
|
-
},
|
|
93
|
-
messageRecipients: {
|
|
94
|
-
allow: {
|
|
95
|
-
view: 'isOwner',
|
|
96
|
-
},
|
|
97
|
-
bind: ['isOwner', 'data.userId == auth.id'],
|
|
98
|
-
},
|
|
99
63
|
messages: {
|
|
100
64
|
allow: {
|
|
101
65
|
view: 'isOwner',
|
|
@@ -104,14 +68,12 @@ const rules = {
|
|
|
104
68
|
},
|
|
105
69
|
threadBagOfWords: {
|
|
106
70
|
allow: {
|
|
107
|
-
view: '
|
|
71
|
+
view: 'hasLink',
|
|
108
72
|
},
|
|
109
73
|
bind: ['hasLink', 'auth.id in data.ref("threadLinks.userId")'],
|
|
110
74
|
},
|
|
111
75
|
threadBagOfWordsLink: {
|
|
112
76
|
allow: {
|
|
113
|
-
create: 'isOwner',
|
|
114
|
-
delete: 'isOwner',
|
|
115
77
|
view: 'isOwner',
|
|
116
78
|
},
|
|
117
79
|
bind: ['isOwner', 'data.userId == auth.id'],
|
|
@@ -3,13 +3,10 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
3
3
|
$users: import("@instantdb/core").EntityDef<{
|
|
4
4
|
email: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
5
5
|
}, {}, void>;
|
|
6
|
-
accountMailCounts: import("@instantdb/core").EntityDef<{
|
|
7
|
-
processed: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
8
|
-
total: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
9
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
10
|
-
}, {}, void>;
|
|
11
6
|
accountSettings: import("@instantdb/core").EntityDef<{
|
|
12
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>;
|
|
13
10
|
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
14
11
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
15
12
|
}, {}, void>;
|
|
@@ -37,18 +34,13 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
37
34
|
uploadedChunks: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
38
35
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
39
36
|
}, {}, void>;
|
|
40
|
-
draftRecipients: import("@instantdb/core").EntityDef<{
|
|
41
|
-
emailAddress: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
42
|
-
recipientType: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
43
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
44
|
-
}, {}, void>;
|
|
45
37
|
drafts: import("@instantdb/core").EntityDef<{
|
|
46
38
|
bodyContent: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
47
39
|
bodySubject: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
48
40
|
emailAccountId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
49
41
|
error: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
50
|
-
from: import("@instantdb/core").DataAttrDef<
|
|
51
|
-
|
|
42
|
+
from: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
43
|
+
recipients: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
52
44
|
referencedMessageId: import("@instantdb/core").DataAttrDef<string, false, true>;
|
|
53
45
|
scheduledFor: import("@instantdb/core").DataAttrDef<number, false, true>;
|
|
54
46
|
status: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
@@ -62,31 +54,16 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
62
54
|
specialUse: import("@instantdb/core").DataAttrDef<string, false, true>;
|
|
63
55
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
64
56
|
}, {}, void>;
|
|
65
|
-
messageAttachments: import("@instantdb/core").EntityDef<{
|
|
66
|
-
attachmentId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
67
|
-
fileName: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
68
|
-
mimeType: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
69
|
-
size: import("@instantdb/core").DataAttrDef<number, true, false>;
|
|
70
|
-
status: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
71
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
72
|
-
}, {}, void>;
|
|
73
|
-
messageLabels: import("@instantdb/core").EntityDef<{
|
|
74
|
-
labelId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
75
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
76
|
-
}, {}, void>;
|
|
77
|
-
messageRecipients: import("@instantdb/core").EntityDef<{
|
|
78
|
-
emailAddress: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
79
|
-
name: import("@instantdb/core").DataAttrDef<string, false, false>;
|
|
80
|
-
recipientType: import("@instantdb/core").DataAttrDef<string, true, false>;
|
|
81
|
-
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
82
|
-
}, {}, void>;
|
|
83
57
|
messages: import("@instantdb/core").EntityDef<{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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>;
|
|
88
62
|
messageId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
89
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>;
|
|
90
67
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
91
68
|
}, {}, void>;
|
|
92
69
|
threadBagOfWords: import("@instantdb/core").EntityDef<{
|
|
@@ -105,10 +82,10 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
105
82
|
messageIds: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
106
83
|
participants: import("@instantdb/core").DataAttrDef<any, true, false>;
|
|
107
84
|
seen: import("@instantdb/core").DataAttrDef<boolean, true, true>;
|
|
85
|
+
threadId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
108
86
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
109
87
|
}, {}, void>;
|
|
110
88
|
userPushNotificationToken: import("@instantdb/core").EntityDef<{
|
|
111
|
-
createdAt: import("@instantdb/core").DataAttrDef<number, true, true>;
|
|
112
89
|
token: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
113
90
|
userId: import("@instantdb/core").DataAttrDef<string, true, true>;
|
|
114
91
|
}, {}, void>;
|
|
@@ -143,18 +120,6 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
143
120
|
readonly on: "accounts";
|
|
144
121
|
};
|
|
145
122
|
};
|
|
146
|
-
readonly accountMailCountsLink: {
|
|
147
|
-
readonly forward: {
|
|
148
|
-
readonly has: "one";
|
|
149
|
-
readonly label: "account";
|
|
150
|
-
readonly on: "accountMailCounts";
|
|
151
|
-
};
|
|
152
|
-
readonly reverse: {
|
|
153
|
-
readonly has: "one";
|
|
154
|
-
readonly label: "mailCounts";
|
|
155
|
-
readonly on: "accounts";
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
123
|
readonly accountSettingsLink: {
|
|
159
124
|
readonly forward: {
|
|
160
125
|
readonly has: "one";
|
|
@@ -191,52 +156,16 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
191
156
|
readonly on: "drafts";
|
|
192
157
|
};
|
|
193
158
|
};
|
|
194
|
-
readonly
|
|
159
|
+
readonly messageThread: {
|
|
195
160
|
readonly forward: {
|
|
196
161
|
readonly has: "one";
|
|
197
|
-
readonly label: "
|
|
198
|
-
readonly on: "draftRecipients";
|
|
199
|
-
};
|
|
200
|
-
readonly reverse: {
|
|
201
|
-
readonly has: "many";
|
|
202
|
-
readonly label: "bodyRecipients";
|
|
203
|
-
readonly on: "drafts";
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
readonly messageAttachmentLinks: {
|
|
207
|
-
readonly forward: {
|
|
208
|
-
readonly has: "one";
|
|
209
|
-
readonly label: "message";
|
|
210
|
-
readonly on: "messageAttachments";
|
|
211
|
-
};
|
|
212
|
-
readonly reverse: {
|
|
213
|
-
readonly has: "many";
|
|
214
|
-
readonly label: "attachments";
|
|
215
|
-
readonly on: "messages";
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
readonly messageLabelLinks: {
|
|
219
|
-
readonly forward: {
|
|
220
|
-
readonly has: "one";
|
|
221
|
-
readonly label: "message";
|
|
222
|
-
readonly on: "messageLabels";
|
|
223
|
-
};
|
|
224
|
-
readonly reverse: {
|
|
225
|
-
readonly has: "many";
|
|
226
|
-
readonly label: "labelIds";
|
|
162
|
+
readonly label: "thread";
|
|
227
163
|
readonly on: "messages";
|
|
228
164
|
};
|
|
229
|
-
};
|
|
230
|
-
readonly messageRecipientLinks: {
|
|
231
|
-
readonly forward: {
|
|
232
|
-
readonly has: "one";
|
|
233
|
-
readonly label: "message";
|
|
234
|
-
readonly on: "messageRecipients";
|
|
235
|
-
};
|
|
236
165
|
readonly reverse: {
|
|
237
166
|
readonly has: "many";
|
|
238
|
-
readonly label: "
|
|
239
|
-
readonly on: "
|
|
167
|
+
readonly label: "messages";
|
|
168
|
+
readonly on: "threads";
|
|
240
169
|
};
|
|
241
170
|
};
|
|
242
171
|
readonly threadAccount: {
|
|
@@ -263,18 +192,6 @@ declare const schema: import("@instantdb/core").InstantSchemaDef<import("@instan
|
|
|
263
192
|
readonly on: "threads";
|
|
264
193
|
};
|
|
265
194
|
};
|
|
266
|
-
readonly threadMessages: {
|
|
267
|
-
readonly forward: {
|
|
268
|
-
readonly has: "one";
|
|
269
|
-
readonly label: "thread";
|
|
270
|
-
readonly on: "messages";
|
|
271
|
-
};
|
|
272
|
-
readonly reverse: {
|
|
273
|
-
readonly has: "many";
|
|
274
|
-
readonly label: "messages";
|
|
275
|
-
readonly on: "threads";
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
195
|
readonly userAccounts: {
|
|
279
196
|
readonly forward: {
|
|
280
197
|
readonly has: "one";
|
|
@@ -342,28 +259,55 @@ export type AppSchema = {
|
|
|
342
259
|
accounts: Omit<BaseAppSchema['entities']['accounts'], 'imapConnectionStatus'> & {
|
|
343
260
|
imapConnectionStatus: ImapConnectionStatus;
|
|
344
261
|
};
|
|
345
|
-
draftRecipients: Omit<BaseAppSchema['entities']['draftRecipients'], 'recipientType'> & {
|
|
346
|
-
recipientType: DraftRecipientType;
|
|
347
|
-
};
|
|
348
|
-
drafts: Omit<BaseAppSchema['entities']['drafts'], 'status' | 'type'> & {
|
|
349
|
-
status: DraftStatus;
|
|
350
|
-
type: DraftType;
|
|
351
|
-
};
|
|
352
262
|
labels: Omit<BaseAppSchema['entities']['labels'], 'specialUse'> & {
|
|
353
263
|
specialUse: LabelSpecialUse | null;
|
|
354
264
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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[];
|
|
360
283
|
};
|
|
361
284
|
threads: Omit<BaseAppSchema['entities']['threads'], 'labelIds' | 'messageIds' | 'participants'> & {
|
|
362
285
|
labelIds: string[];
|
|
363
286
|
messageIds: string[];
|
|
364
287
|
participants: string[];
|
|
365
288
|
};
|
|
366
|
-
|
|
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];
|
|
367
311
|
};
|
|
368
312
|
export default schema;
|
|
369
313
|
//# sourceMappingURL=instant.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instant.schema.d.ts","sourceRoot":"","sources":["../../src/instantDB/instant.schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"instant.schema.d.ts","sourceRoot":"","sources":["../../src/instantDB/instant.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,13 +4,10 @@ const schema = i.schema({
|
|
|
4
4
|
$users: i.entity({
|
|
5
5
|
email: i.string().unique().indexed(),
|
|
6
6
|
}),
|
|
7
|
-
accountMailCounts: i.entity({
|
|
8
|
-
processed: i.number(),
|
|
9
|
-
total: i.number(),
|
|
10
|
-
userId: i.string().indexed(),
|
|
11
|
-
}),
|
|
12
7
|
accountSettings: i.entity({
|
|
13
8
|
color: i.string(),
|
|
9
|
+
mailProcessed: i.number(),
|
|
10
|
+
mailTotal: i.number(),
|
|
14
11
|
name: i.string().optional(),
|
|
15
12
|
userId: i.string().indexed(),
|
|
16
13
|
}),
|
|
@@ -38,18 +35,13 @@ const schema = i.schema({
|
|
|
38
35
|
uploadedChunks: i.number(),
|
|
39
36
|
userId: i.string().indexed(),
|
|
40
37
|
}),
|
|
41
|
-
draftRecipients: i.entity({
|
|
42
|
-
emailAddress: i.string(),
|
|
43
|
-
recipientType: i.string(),
|
|
44
|
-
userId: i.string().indexed(),
|
|
45
|
-
}),
|
|
46
38
|
drafts: i.entity({
|
|
47
39
|
bodyContent: i.string(),
|
|
48
40
|
bodySubject: i.string().optional(),
|
|
49
41
|
emailAccountId: i.string().indexed(),
|
|
50
42
|
error: i.string().optional(),
|
|
51
|
-
from: i.
|
|
52
|
-
|
|
43
|
+
from: i.json(),
|
|
44
|
+
recipients: i.json(),
|
|
53
45
|
referencedMessageId: i.string().indexed().optional(),
|
|
54
46
|
scheduledFor: i.number().indexed().optional(),
|
|
55
47
|
status: i.string().indexed(),
|
|
@@ -63,31 +55,16 @@ const schema = i.schema({
|
|
|
63
55
|
specialUse: i.string().indexed().optional(),
|
|
64
56
|
userId: i.string().indexed(),
|
|
65
57
|
}),
|
|
66
|
-
messageAttachments: i.entity({
|
|
67
|
-
attachmentId: i.string().indexed(),
|
|
68
|
-
fileName: i.string(),
|
|
69
|
-
mimeType: i.string(),
|
|
70
|
-
size: i.number(),
|
|
71
|
-
status: i.string().indexed(),
|
|
72
|
-
userId: i.string().indexed(),
|
|
73
|
-
}),
|
|
74
|
-
messageLabels: i.entity({
|
|
75
|
-
labelId: i.string().indexed(),
|
|
76
|
-
userId: i.string().indexed(),
|
|
77
|
-
}),
|
|
78
|
-
messageRecipients: i.entity({
|
|
79
|
-
emailAddress: i.string().indexed(),
|
|
80
|
-
name: i.string().optional(),
|
|
81
|
-
recipientType: i.string(),
|
|
82
|
-
userId: i.string().indexed(),
|
|
83
|
-
}),
|
|
84
58
|
messages: i.entity({
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
attachments: i.json(),
|
|
60
|
+
date: i.number().indexed(),
|
|
61
|
+
from: i.json(),
|
|
62
|
+
labelIds: i.json(),
|
|
89
63
|
messageId: i.string().indexed(),
|
|
90
64
|
previewText: i.string(),
|
|
65
|
+
recipients: i.json(),
|
|
66
|
+
subject: i.string().optional(),
|
|
67
|
+
threadId: i.string().indexed(),
|
|
91
68
|
userId: i.string().indexed(),
|
|
92
69
|
}),
|
|
93
70
|
threadBagOfWords: i.entity({
|
|
@@ -106,10 +83,10 @@ const schema = i.schema({
|
|
|
106
83
|
messageIds: i.json(),
|
|
107
84
|
participants: i.json(),
|
|
108
85
|
seen: i.boolean().indexed(),
|
|
86
|
+
threadId: i.string().indexed(),
|
|
109
87
|
userId: i.string().indexed(),
|
|
110
88
|
}),
|
|
111
89
|
userPushNotificationToken: i.entity({
|
|
112
|
-
createdAt: i.number().indexed(),
|
|
113
90
|
token: i.string().unique().indexed(),
|
|
114
91
|
userId: i.string().indexed(),
|
|
115
92
|
}),
|
|
@@ -129,10 +106,6 @@ const schema = i.schema({
|
|
|
129
106
|
forward: { has: 'one', label: 'account', on: 'labels' },
|
|
130
107
|
reverse: { has: 'many', label: 'labels', on: 'accounts' },
|
|
131
108
|
},
|
|
132
|
-
accountMailCountsLink: {
|
|
133
|
-
forward: { has: 'one', label: 'account', on: 'accountMailCounts' },
|
|
134
|
-
reverse: { has: 'one', label: 'mailCounts', on: 'accounts' },
|
|
135
|
-
},
|
|
136
109
|
accountSettingsLink: {
|
|
137
110
|
forward: { has: 'one', label: 'account', on: 'accountSettings' },
|
|
138
111
|
reverse: { has: 'one', label: 'settings', on: 'accounts' },
|
|
@@ -145,21 +118,9 @@ const schema = i.schema({
|
|
|
145
118
|
forward: { has: 'one', label: 'draft', on: 'draftAttachments' },
|
|
146
119
|
reverse: { has: 'many', label: 'attachments', on: 'drafts' },
|
|
147
120
|
},
|
|
148
|
-
|
|
149
|
-
forward: { has: 'one', label: '
|
|
150
|
-
reverse: { has: 'many', label: '
|
|
151
|
-
},
|
|
152
|
-
messageAttachmentLinks: {
|
|
153
|
-
forward: { has: 'one', label: 'message', on: 'messageAttachments' },
|
|
154
|
-
reverse: { has: 'many', label: 'attachments', on: 'messages' },
|
|
155
|
-
},
|
|
156
|
-
messageLabelLinks: {
|
|
157
|
-
forward: { has: 'one', label: 'message', on: 'messageLabels' },
|
|
158
|
-
reverse: { has: 'many', label: 'labelIds', on: 'messages' },
|
|
159
|
-
},
|
|
160
|
-
messageRecipientLinks: {
|
|
161
|
-
forward: { has: 'one', label: 'message', on: 'messageRecipients' },
|
|
162
|
-
reverse: { has: 'many', label: 'recipients', on: 'messages' },
|
|
121
|
+
messageThread: {
|
|
122
|
+
forward: { has: 'one', label: 'thread', on: 'messages' },
|
|
123
|
+
reverse: { has: 'many', label: 'messages', on: 'threads' },
|
|
163
124
|
},
|
|
164
125
|
threadAccount: {
|
|
165
126
|
forward: { has: 'one', label: 'account', on: 'threads' },
|
|
@@ -169,10 +130,6 @@ const schema = i.schema({
|
|
|
169
130
|
forward: { has: 'one', label: 'thread', on: 'threadBagOfWordsLink' },
|
|
170
131
|
reverse: { has: 'many', label: 'wordLinks', on: 'threads' },
|
|
171
132
|
},
|
|
172
|
-
threadMessages: {
|
|
173
|
-
forward: { has: 'one', label: 'thread', on: 'messages' },
|
|
174
|
-
reverse: { has: 'many', label: 'messages', on: 'threads' },
|
|
175
|
-
},
|
|
176
133
|
userAccounts: {
|
|
177
134
|
forward: { has: 'one', label: 'user', on: 'accounts' },
|
|
178
135
|
reverse: { has: 'many', label: 'accounts', on: '$users' },
|