@marcoappio/marco-config 2.0.420 → 2.0.422

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 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AA2bA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAvWJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAtZR,MAAM;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmaT,CAAA"}
@@ -3,144 +3,154 @@ const user = table('user')
3
3
  .columns({
4
4
  id: string(),
5
5
  name: string().optional(),
6
- profilePicture: string().optional(),
7
- undoSendEnabled: boolean(),
6
+ profilePicture: string().optional().from('profile_picture'),
7
+ undoSendEnabled: boolean().from('undo_send_enabled'),
8
8
  })
9
9
  .primaryKey('id');
10
10
  const userPushNotificationToken = table('userPushNotificationToken')
11
+ .from('user_push_notification_token')
11
12
  .columns({
12
- createdAt: numeric(),
13
+ createdAt: numeric().from('created_at'),
13
14
  id: string(),
14
15
  token: string(),
15
- userId: string(),
16
+ userId: string().from('user_id'),
16
17
  })
17
18
  .primaryKey('id');
18
19
  const contact = table('contact')
19
20
  .columns({
20
- emailAddress: string(),
21
+ emailAddress: string().from('email_address'),
21
22
  id: string(),
22
23
  name: string().optional(),
23
- userId: string(),
24
+ userId: string().from('user_id'),
24
25
  })
25
26
  .primaryKey('id');
26
27
  const account = table('account')
27
28
  .columns({
28
29
  color: string(),
29
- displayName: string().optional(),
30
+ displayName: string().optional().from('display_name'),
30
31
  id: string(),
31
- imapConnectionStatus: enumeration(),
32
- mailProcessedCount: numeric(),
33
- mailTotalCount: numeric(),
34
- primaryAliasId: string().optional(),
35
- userId: string(),
32
+ imapConnectionStatus: enumeration().from('imap_connection_status'),
33
+ mailProcessedCount: numeric().from('mail_processed_count'),
34
+ mailTotalCount: numeric().from('mail_total_count'),
35
+ primaryAliasId: string().optional().from('primary_alias_id'),
36
+ userId: string().from('user_id'),
36
37
  })
37
38
  .primaryKey('id');
38
39
  const accountAlias = table('accountAlias')
40
+ .from('account_alias')
39
41
  .columns({
40
- accountId: string(),
41
- emailAddress: string(),
42
+ accountId: string().from('account_id'),
43
+ emailAddress: string().from('email_address'),
42
44
  id: string(),
43
- isPrimary: boolean(),
45
+ isPrimary: boolean().from('is_primary'),
44
46
  name: string().optional(),
45
47
  })
46
48
  .primaryKey('id');
47
49
  const accountLabel = table('accountLabel')
50
+ .from('account_label')
48
51
  .columns({
49
- accountId: string(),
52
+ accountId: string().from('account_id'),
50
53
  id: string(),
51
54
  path: string(),
52
- specialUse: enumeration().optional(),
55
+ specialUse: enumeration().optional().from('special_use'),
53
56
  })
54
57
  .primaryKey('id');
55
58
  const draft = table('draft')
56
59
  .columns({
57
- accountId: string(),
60
+ accountId: string().from('account_id'),
58
61
  body: json(),
59
62
  error: string().optional(),
60
- fromAliasId: string().optional(),
61
- fromEmail: string(),
62
- fromName: string().optional(),
63
+ fromAliasId: string().optional().from('from_alias_id'),
64
+ fromEmail: string().from('from_email'),
65
+ fromName: string().optional().from('from_name'),
63
66
  id: string(),
64
- referencedMessageId: string().optional(),
65
- scheduledFor: numeric().optional(),
67
+ referencedMessageId: string().optional().from('referenced_message_id'),
68
+ scheduledFor: numeric().optional().from('scheduled_for'),
66
69
  status: enumeration(),
67
70
  subject: string().optional(),
68
71
  type: enumeration(),
69
- updatedAt: numeric(),
70
- userId: string(),
72
+ updatedAt: numeric().from('updated_at'),
73
+ userId: string().from('user_id'),
71
74
  })
72
75
  .primaryKey('id');
73
76
  const draftRecipient = table('draftRecipient')
77
+ .from('draft_recipient')
74
78
  .columns({
75
- draftId: string(),
76
- emailAddress: string(),
79
+ draftId: string().from('draft_id'),
80
+ emailAddress: string().from('email_address'),
77
81
  id: string(),
78
82
  type: enumeration(),
79
83
  })
80
84
  .primaryKey('id');
81
85
  const draftAttachment = table('draftAttachment')
86
+ .from('draft_attachment')
82
87
  .columns({
83
- draftId: string(),
88
+ draftId: string().from('draft_id'),
84
89
  failed: boolean(),
85
- fileName: string(),
90
+ fileName: string().from('file_name'),
86
91
  id: string(),
87
- mimeType: string(),
88
- totalChunks: numeric(),
89
- totalSize: numeric(),
90
- uploadedChunks: numeric(),
92
+ mimeType: string().from('mime_type'),
93
+ totalChunks: numeric().from('total_chunks'),
94
+ totalSize: numeric().from('total_size'),
95
+ uploadedChunks: numeric().from('uploaded_chunks'),
91
96
  })
92
97
  .primaryKey('id');
93
98
  const thread = table('thread')
94
99
  .columns({
95
- accountId: string(),
100
+ accountId: string().from('account_id'),
96
101
  flagged: boolean(),
97
102
  id: string(),
98
- latestMessageDate: numeric(),
103
+ latestMessageDate: numeric().from('latest_message_date'),
99
104
  seen: boolean(),
100
- userId: string(),
105
+ userId: string().from('user_id'),
101
106
  words: string(),
102
107
  })
103
108
  .primaryKey('id');
104
109
  const threadLabel = table('threadLabel')
110
+ .from('thread_label')
105
111
  .columns({
106
- labelId: string(),
107
- threadId: string(),
112
+ labelId: string().from('label_id'),
113
+ threadId: string().from('thread_id'),
108
114
  })
109
115
  .primaryKey('threadId', 'labelId');
110
116
  const threadMessage = table('threadMessage')
117
+ .from('thread_message')
111
118
  .columns({
112
- envelopeDate: numeric(),
113
- envelopeSubject: string().optional(),
119
+ envelopeDate: numeric().from('envelope_date'),
120
+ envelopeSubject: string().optional().from('envelope_subject'),
114
121
  id: string(),
115
- previewText: string(),
116
- senderEmail: string(),
117
- senderName: string().optional(),
118
- threadId: string(),
122
+ previewText: string().from('preview_text'),
123
+ senderEmail: string().from('sender_email'),
124
+ senderName: string().optional().from('sender_name'),
125
+ threadId: string().from('thread_id'),
119
126
  })
120
127
  .primaryKey('id');
121
128
  const threadMessageRecipient = table('threadMessageRecipient')
129
+ .from('thread_message_recipient')
122
130
  .columns({
123
- emailAddress: string(),
131
+ emailAddress: string().from('email_address'),
124
132
  id: string(),
125
133
  name: string().optional(),
126
- threadMessageId: string(),
134
+ threadMessageId: string().from('thread_message_id'),
127
135
  type: enumeration(),
128
136
  })
129
137
  .primaryKey('id');
130
138
  const threadMessageAttachment = table('threadMessageAttachment')
139
+ .from('thread_message_attachment')
131
140
  .columns({
132
- fileName: string(),
141
+ fileName: string().from('file_name'),
133
142
  id: string(),
134
- mimeType: string(),
143
+ mimeType: string().from('mime_type'),
135
144
  size: numeric(),
136
145
  status: enumeration(),
137
- threadMessageId: string(),
146
+ threadMessageId: string().from('thread_message_id'),
138
147
  })
139
148
  .primaryKey('id');
140
149
  const threadMessageLabel = table('threadMessageLabel')
150
+ .from('thread_message_label')
141
151
  .columns({
142
- labelId: string(),
143
- threadMessageId: string(),
152
+ labelId: string().from('label_id'),
153
+ threadMessageId: string().from('thread_message_id'),
144
154
  })
145
155
  .primaryKey('threadMessageId', 'labelId');
146
156
  const userRelationships = relationships(user, ({ many }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.420",
3
+ "version": "2.0.422",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",