@marcoappio/marco-config 4.0.19 → 4.0.21
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/appwrite/appwrite.d.ts +240 -240
- package/dist/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +1 -1
- package/dist/appwrite/appwrite.test.js +1 -1
- package/dist/appwrite/commands.d.ts +1 -1
- package/dist/appwrite/commands.d.ts.map +1 -1
- package/dist/appwrite/commands.js +1 -1
- package/dist/appwrite/commands.test.js +1 -1
- package/dist/appwrite/decodedSchemas.d.ts +1 -1
- package/dist/appwrite/decodedSchemas.d.ts.map +1 -1
- package/dist/appwrite/decodedSchemas.js +1 -1
- package/dist/appwrite/functions.d.ts +1 -1
- package/dist/appwrite/functions.d.ts.map +1 -1
- package/dist/appwrite/functions.js +1 -1
- package/dist/appwrite/functions.test.js +1 -1
- package/dist/appwrite/index.d.ts +3 -1
- package/dist/appwrite/index.d.ts.map +1 -1
- package/dist/appwrite/index.js +1 -0
- package/dist/appwrite/queryContracts/queryContracts.d.ts +392 -0
- package/dist/appwrite/queryContracts/queryContracts.d.ts.map +1 -0
- package/dist/appwrite/queryContracts/queryContracts.js +299 -0
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts +2 -0
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts.map +1 -0
- package/dist/appwrite/queryContracts/queryContracts.test.js +39 -0
- package/dist/appwrite/tableContract/identity.d.ts +35 -35
- package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
- package/dist/appwrite/tableContract/identity.js +71 -36
- package/dist/appwrite/tableContract/index.d.ts +1186 -440
- package/dist/appwrite/tableContract/index.d.ts.map +1 -1
- package/dist/appwrite/tableContract/index.js +1 -1
- package/dist/appwrite/tableContract/index.test.js +1 -1
- package/dist/appwrite/tableContract/mailbox.d.ts +64 -64
- package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
- package/dist/appwrite/tableContract/mailbox.js +155 -68
- package/dist/appwrite/tableContract/operational.d.ts +1 -1
- package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
- package/dist/appwrite/tableContract/operational.js +1 -1
- package/dist/appwrite/tableContract/shared.d.ts +1 -1
- package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
- package/dist/appwrite/tableContract/shared.js +2 -2
- package/dist/index.test.js +5 -0
- package/dist/schemas/app.d.ts +1 -1
- package/dist/schemas/app.d.ts.map +1 -1
- package/dist/schemas/app.js +1 -1
- package/dist/schemas/auth.d.ts +1 -1
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +1 -1
- package/dist/schemas/emailAccount.d.ts +1 -1
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +1 -1
- package/dist/schemas/id.d.ts +1 -1
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +1 -1
- package/dist/schemas/models/account.d.ts +1 -1
- package/dist/schemas/models/account.d.ts.map +1 -1
- package/dist/schemas/models/account.js +1 -1
- package/dist/schemas/models/contact.d.ts +1 -1
- package/dist/schemas/models/contact.d.ts.map +1 -1
- package/dist/schemas/models/contact.js +1 -1
- package/dist/schemas/models/draft.d.ts +1 -1
- package/dist/schemas/models/draft.d.ts.map +1 -1
- package/dist/schemas/models/draft.js +1 -1
- package/dist/schemas/models/mailboxAddress.test.js +1 -1
- package/dist/schemas/models/numericSemantics.test.js +1 -1
- package/dist/schemas/models/thread.d.ts +1 -1
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +1 -1
- package/dist/schemas/models/user.d.ts +1 -1
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +1 -1
- package/dist/schemas/models/user.test.js +1 -1
- package/dist/schemas/number.d.ts +1 -1
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +1 -1
- package/dist/schemas/oauth.d.ts +1 -1
- package/dist/schemas/oauth.d.ts.map +1 -1
- package/dist/schemas/oauth.js +1 -1
- package/dist/schemas/pushNotifications.d.ts +1 -1
- package/dist/schemas/pushNotifications.d.ts.map +1 -1
- package/dist/schemas/pushNotifications.js +1 -1
- package/dist/schemas/scalars.d.ts +1 -1
- package/dist/schemas/scalars.d.ts.map +1 -1
- package/dist/schemas/scalars.js +1 -1
- package/dist/schemas/scalars.test.js +1 -1
- package/dist/schemas/schemaValues.test.js +1 -1
- package/dist/schemas/string.d.ts +1 -1
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +1 -1
- package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
- package/dist/utils/accounts/generateAccountColor.js +10 -15
- package/dist/utils/valibot/index.d.ts +3 -0
- package/dist/utils/valibot/index.d.ts.map +1 -0
- package/dist/utils/valibot/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,47 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* oxlint-disable eslint/sort-keys */
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
3
2
|
import { appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, defineAppwriteTableGroup, draftStates, draftTypes, identifierSchema, mailboxAddressSchema, messageLocationCoordinateCheck, nonNegativeIntegerSchema, positiveIntegerSchema, isoTimestampSchema, } from './shared.js';
|
|
4
3
|
const { bigint, boolean, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
5
4
|
export const mailboxTableInputs = defineAppwriteTableGroup({
|
|
6
5
|
contacts: {
|
|
7
6
|
fields: {
|
|
8
|
-
normalisedAddress: stringColumn(mailboxAddressSchema, true, 320),
|
|
9
7
|
displayName: stringColumn(v.nullable(identifierSchema), false),
|
|
10
8
|
lastContactedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
11
9
|
messageCount: integer(nonNegativeIntegerSchema),
|
|
10
|
+
normalisedAddress: stringColumn(mailboxAddressSchema, true, 320),
|
|
11
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
12
12
|
profileAssignmentKey: identifier(identifierSchema),
|
|
13
13
|
searchText: text(v.string()),
|
|
14
|
-
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
15
14
|
},
|
|
16
15
|
indexes: [
|
|
17
|
-
{
|
|
18
|
-
|
|
16
|
+
{
|
|
17
|
+
attributes: ['profileAssignmentKey', 'lastContactedAt'],
|
|
18
|
+
name: 'assignment_profile_last_contacted',
|
|
19
|
+
type: 'key',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
attributes: ['profileAssignmentKey', 'normalisedAddress'],
|
|
23
|
+
name: 'assignment_profile_address_unique',
|
|
24
|
+
type: 'unique',
|
|
25
|
+
},
|
|
19
26
|
{ attributes: ['searchText'], name: 'search', type: 'fulltext' },
|
|
20
27
|
],
|
|
21
28
|
name: 'Contacts',
|
|
22
29
|
},
|
|
23
30
|
drafts: {
|
|
24
31
|
fields: {
|
|
32
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
25
33
|
accountAssignmentKey: identifier(identifierSchema),
|
|
26
|
-
type: enumValue(v.picklist(draftTypes), draftTypes),
|
|
27
|
-
envelope: text(v.string()),
|
|
28
|
-
html: longText(v.string()),
|
|
29
34
|
attachmentMetadata: text(v.string()),
|
|
30
35
|
contentHash: stringColumn(identifierSchema),
|
|
31
|
-
|
|
32
|
-
status: enumValue(v.picklist(draftStates), draftStates),
|
|
33
|
-
revision: integer(nonNegativeIntegerSchema),
|
|
34
|
-
sequence: integer(nonNegativeIntegerSchema),
|
|
35
|
-
executionLeaseId: stringColumn(v.nullable(identifierSchema), false),
|
|
36
|
-
executionLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
36
|
+
envelope: text(v.string()),
|
|
37
37
|
errorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
38
|
-
|
|
38
|
+
executionLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
39
|
+
executionLeaseId: stringColumn(v.nullable(identifierSchema), false),
|
|
39
40
|
fromAlias: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'aliases', 'manyToOne', 'setNull'),
|
|
41
|
+
html: longText(v.string()),
|
|
40
42
|
referencedMessage: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'messages', 'manyToOne', 'setNull'),
|
|
43
|
+
revision: integer(nonNegativeIntegerSchema),
|
|
44
|
+
scheduledAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
45
|
+
sequence: integer(nonNegativeIntegerSchema),
|
|
46
|
+
status: enumValue(v.picklist(draftStates), draftStates),
|
|
47
|
+
type: enumValue(v.picklist(draftTypes), draftTypes),
|
|
41
48
|
},
|
|
42
49
|
indexes: [
|
|
43
|
-
{
|
|
44
|
-
|
|
50
|
+
{
|
|
51
|
+
attributes: ['accountAssignmentKey'],
|
|
52
|
+
name: 'assignment_account',
|
|
53
|
+
type: 'key',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
attributes: ['accountAssignmentKey', 'status'],
|
|
57
|
+
name: 'assignment_account_status',
|
|
58
|
+
type: 'key',
|
|
59
|
+
},
|
|
45
60
|
{ attributes: ['scheduledAt'], name: 'scheduled', type: 'key' },
|
|
46
61
|
],
|
|
47
62
|
name: 'Drafts',
|
|
@@ -49,120 +64,192 @@ export const mailboxTableInputs = defineAppwriteTableGroup({
|
|
|
49
64
|
messageLocations: {
|
|
50
65
|
dataCheck: messageLocationCoordinateCheck,
|
|
51
66
|
fields: {
|
|
67
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
52
68
|
accountAssignmentKey: identifier(identifierSchema),
|
|
53
69
|
flagged: boolean(v.boolean()),
|
|
70
|
+
label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
|
|
54
71
|
labelAssignmentKey: identifier(identifierSchema),
|
|
72
|
+
message: appwriteRelationship(appwriteRelationshipIdSchema, 'messages'),
|
|
55
73
|
messageAt: dateTime(isoTimestampSchema),
|
|
56
74
|
seen: boolean(v.boolean()),
|
|
75
|
+
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
57
76
|
threadAssignmentKey: identifier(identifierSchema),
|
|
58
77
|
uid: bigint(v.nullable(positiveIntegerSchema), false),
|
|
59
78
|
uidValidity: bigint(v.nullable(positiveIntegerSchema), false),
|
|
60
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
61
|
-
label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
|
|
62
|
-
message: appwriteRelationship(appwriteRelationshipIdSchema, 'messages'),
|
|
63
|
-
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
64
79
|
},
|
|
65
80
|
indexes: [
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
{
|
|
82
|
+
attributes: ['accountAssignmentKey', 'labelAssignmentKey', 'uidValidity', 'uid'],
|
|
83
|
+
name: 'assignment_account_label_uid',
|
|
84
|
+
type: 'key',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
attributes: ['accountAssignmentKey', 'threadAssignmentKey'],
|
|
88
|
+
name: 'assignment_account_thread',
|
|
89
|
+
type: 'key',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
attributes: ['threadAssignmentKey', 'labelAssignmentKey', 'messageAt'],
|
|
93
|
+
name: 'assignment_thread_label_latest',
|
|
94
|
+
type: 'key',
|
|
95
|
+
},
|
|
69
96
|
],
|
|
70
97
|
name: 'Message locations',
|
|
71
98
|
},
|
|
72
99
|
messages: {
|
|
73
100
|
fields: {
|
|
101
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
74
102
|
accountAssignmentKey: identifier(identifierSchema),
|
|
103
|
+
attachmentMetadata: longText(v.string()),
|
|
104
|
+
htmlFileId: stringColumn(v.nullable(identifierSchema), false),
|
|
105
|
+
preview: text(v.nullable(v.string()), false),
|
|
75
106
|
providerId: stringColumn(identifierSchema),
|
|
107
|
+
rawFileId: stringColumn(v.nullable(identifierSchema), false),
|
|
108
|
+
receivedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
109
|
+
recipients: text(v.nullable(v.string()), false),
|
|
110
|
+
revision: integer(nonNegativeIntegerSchema),
|
|
76
111
|
rfcMessageId: stringColumn(v.nullable(identifierSchema), false),
|
|
77
112
|
sender: text(v.nullable(v.string()), false),
|
|
78
113
|
senderName: text(v.nullable(v.string()), false),
|
|
79
|
-
recipients: text(v.nullable(v.string()), false),
|
|
80
114
|
sentAt: dateTime(isoTimestampSchema),
|
|
81
|
-
receivedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
82
|
-
preview: text(v.nullable(v.string()), false),
|
|
83
|
-
attachmentMetadata: longText(v.string()),
|
|
84
|
-
htmlFileId: stringColumn(v.nullable(identifierSchema), false),
|
|
85
|
-
rawFileId: stringColumn(v.nullable(identifierSchema), false),
|
|
86
115
|
size: integer(nonNegativeIntegerSchema),
|
|
87
116
|
subject: text(v.nullable(v.string()), false),
|
|
88
|
-
revision: integer(nonNegativeIntegerSchema),
|
|
89
|
-
threadAssignmentKey: identifier(identifierSchema),
|
|
90
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
91
117
|
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
118
|
+
threadAssignmentKey: identifier(identifierSchema),
|
|
92
119
|
},
|
|
93
120
|
indexes: [
|
|
94
|
-
{
|
|
95
|
-
|
|
96
|
-
|
|
121
|
+
{
|
|
122
|
+
attributes: ['threadAssignmentKey', 'sentAt'],
|
|
123
|
+
name: 'assignment_thread_sent',
|
|
124
|
+
type: 'key',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
attributes: ['accountAssignmentKey', 'providerId'],
|
|
128
|
+
name: 'assignment_account_provider_unique',
|
|
129
|
+
type: 'unique',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
attributes: ['accountAssignmentKey', 'rfcMessageId'],
|
|
133
|
+
name: 'assignment_account_rfc_message',
|
|
134
|
+
type: 'key',
|
|
135
|
+
},
|
|
97
136
|
],
|
|
98
137
|
name: 'Messages',
|
|
99
138
|
},
|
|
100
139
|
threadAliases: {
|
|
101
140
|
fields: {
|
|
141
|
+
alias: appwriteRelationship(appwriteRelationshipIdSchema, 'aliases'),
|
|
102
142
|
aliasAssignmentKey: identifier(identifierSchema),
|
|
103
143
|
latestMessageAt: dateTime(isoTimestampSchema),
|
|
104
|
-
threadAssignmentKey: identifier(identifierSchema),
|
|
105
|
-
alias: appwriteRelationship(appwriteRelationshipIdSchema, 'aliases'),
|
|
106
144
|
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
145
|
+
threadAssignmentKey: identifier(identifierSchema),
|
|
107
146
|
},
|
|
108
147
|
indexes: [
|
|
109
|
-
{
|
|
110
|
-
|
|
148
|
+
{
|
|
149
|
+
attributes: ['threadAssignmentKey', 'aliasAssignmentKey'],
|
|
150
|
+
name: 'assignment_thread_alias_unique',
|
|
151
|
+
type: 'unique',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
attributes: ['aliasAssignmentKey', 'latestMessageAt'],
|
|
155
|
+
name: 'assignment_alias_latest',
|
|
156
|
+
type: 'key',
|
|
157
|
+
},
|
|
111
158
|
],
|
|
112
159
|
name: 'Thread aliases',
|
|
113
160
|
},
|
|
114
161
|
threadLabels: {
|
|
115
162
|
fields: {
|
|
163
|
+
label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
|
|
116
164
|
labelAssignmentKey: identifier(identifierSchema),
|
|
117
165
|
latestMessageAt: dateTime(isoTimestampSchema),
|
|
118
166
|
locationCount: integer(nonNegativeIntegerSchema),
|
|
119
|
-
threadAssignmentKey: identifier(identifierSchema),
|
|
120
|
-
label: appwriteRelationship(appwriteRelationshipIdSchema, 'labels'),
|
|
121
167
|
thread: appwriteRelationship(appwriteRelationshipIdSchema, 'threads'),
|
|
168
|
+
threadAssignmentKey: identifier(identifierSchema),
|
|
122
169
|
},
|
|
123
170
|
indexes: [
|
|
124
|
-
{
|
|
125
|
-
|
|
171
|
+
{
|
|
172
|
+
attributes: ['threadAssignmentKey', 'labelAssignmentKey'],
|
|
173
|
+
name: 'assignment_thread_label_unique',
|
|
174
|
+
type: 'unique',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
attributes: ['labelAssignmentKey', 'latestMessageAt'],
|
|
178
|
+
name: 'assignment_label_latest',
|
|
179
|
+
type: 'key',
|
|
180
|
+
},
|
|
126
181
|
],
|
|
127
182
|
name: 'Thread labels',
|
|
128
183
|
},
|
|
129
184
|
threads: {
|
|
130
185
|
fields: {
|
|
186
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
131
187
|
accountAssignmentKey: identifier(identifierSchema),
|
|
132
|
-
|
|
133
|
-
subject: text(v.nullable(v.string()), false),
|
|
188
|
+
archived: boolean(v.boolean()),
|
|
134
189
|
firstMessageAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
participants: text(v.nullable(v.string()), false),
|
|
190
|
+
flagged: boolean(v.boolean()),
|
|
191
|
+
flaggedLocationCount: integer(nonNegativeIntegerSchema),
|
|
192
|
+
hasAttachments: boolean(v.boolean()),
|
|
139
193
|
labelIds: stringArray(v.array(identifierSchema), true, 36),
|
|
140
194
|
latestMessageAt: dateTime(isoTimestampSchema),
|
|
141
195
|
latestMessageId: identifier(identifierSchema),
|
|
142
196
|
messageCount: integer(nonNegativeIntegerSchema),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
197
|
+
participants: text(v.nullable(v.string()), false),
|
|
198
|
+
preview: text(v.nullable(v.string()), false),
|
|
199
|
+
providerId: stringColumn(identifierSchema),
|
|
200
|
+
revision: integer(nonNegativeIntegerSchema),
|
|
201
|
+
searchText: text(v.nullable(v.string()), false),
|
|
146
202
|
seen: boolean(v.boolean()),
|
|
147
|
-
|
|
148
|
-
|
|
203
|
+
senderEmail: stringColumn(v.nullable(mailboxAddressSchema), false, 320),
|
|
204
|
+
senderName: stringColumn(v.nullable(identifierSchema), false),
|
|
205
|
+
snoozedUntil: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
149
206
|
spam: boolean(v.boolean()),
|
|
207
|
+
subject: text(v.nullable(v.string()), false),
|
|
150
208
|
trashed: boolean(v.boolean()),
|
|
151
|
-
|
|
152
|
-
revision: integer(nonNegativeIntegerSchema),
|
|
153
|
-
searchText: text(v.nullable(v.string()), false),
|
|
154
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
209
|
+
unseenLocationCount: integer(nonNegativeIntegerSchema),
|
|
155
210
|
},
|
|
156
211
|
indexes: [
|
|
157
|
-
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
212
|
+
{
|
|
213
|
+
attributes: ['accountAssignmentKey', 'providerId'],
|
|
214
|
+
name: 'assignment_account_provider_unique',
|
|
215
|
+
type: 'unique',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
attributes: ['accountAssignmentKey', 'latestMessageAt'],
|
|
219
|
+
name: 'assignment_account_latest',
|
|
220
|
+
type: 'key',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
attributes: ['accountAssignmentKey', 'seen', 'latestMessageAt'],
|
|
224
|
+
name: 'assignment_account_seen_latest',
|
|
225
|
+
type: 'key',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
attributes: ['accountAssignmentKey', 'flagged', 'latestMessageAt'],
|
|
229
|
+
name: 'assignment_account_flagged_latest',
|
|
230
|
+
type: 'key',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
attributes: ['accountAssignmentKey', 'snoozedUntil', 'latestMessageAt'],
|
|
234
|
+
name: 'assignment_account_snoozed_latest',
|
|
235
|
+
type: 'key',
|
|
236
|
+
},
|
|
162
237
|
{ attributes: ['snoozedUntil'], name: 'snoozed_due', type: 'key' },
|
|
163
|
-
{
|
|
164
|
-
|
|
165
|
-
|
|
238
|
+
{
|
|
239
|
+
attributes: ['accountAssignmentKey', 'archived', 'latestMessageAt'],
|
|
240
|
+
name: 'assignment_account_archived_latest',
|
|
241
|
+
type: 'key',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
attributes: ['accountAssignmentKey', 'spam', 'latestMessageAt'],
|
|
245
|
+
name: 'assignment_account_spam_latest',
|
|
246
|
+
type: 'key',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
attributes: ['accountAssignmentKey', 'trashed', 'latestMessageAt'],
|
|
250
|
+
name: 'assignment_account_trashed_latest',
|
|
251
|
+
type: 'key',
|
|
252
|
+
},
|
|
166
253
|
{ attributes: ['searchText'], name: 'search', type: 'fulltext' },
|
|
167
254
|
],
|
|
168
255
|
name: 'Threads',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/operational.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"operational.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/operational.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AA2B/C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKjC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
/* oxlint-disable eslint/sort-keys */
|
|
3
3
|
import { accountProviders, appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, commandStates, defineAppwriteTableGroup, identifierSchema, jobStates, labelSpecialUses, mailboxSortKeySchema, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, nonNegativeIntegerSchema, positiveIntegerSchema, pollShardStates, isoTimestampSchema, } from './shared.js';
|
|
4
4
|
const { bigint, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReadonlyDeep } from 'type-fest';
|
|
2
|
-
import
|
|
2
|
+
import { v } from '../../utils/valibot/index.js';
|
|
3
3
|
export { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, nonNegativeIntegerSchema, portSchema, positiveIntegerSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from '../../schemas/scalars.js';
|
|
4
4
|
export declare const appwriteIds: {
|
|
5
5
|
readonly bucket: "marco-files";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/appwrite/tableContract/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAE/C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,UAAU,EAC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AAC,CAAC,aAAa,UAAU,OAAO;sBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO,YAAY,SAAS,MAAM,EAAE;uBAC5E,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;oBACnD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;qBAC/C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;mBAClD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;wBAC3C,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;iBACvD,OAAO,SAAS,CAAC,CAAC,aAAa,UAAU,OAAO;CAC9D,CAAA;AAED,eAAO,MAAM,wBAAwB,SAAU,OAAO,SAAS,uBAAuB,UAAU,OAAO,GAAG,4BAA4B,CAAC,OAAO,CAAC,KAAG,OAAiB,CAAA;AAEnK,eAAO,MAAM,8BAA8B,aAAc,OAAO,YAM/D,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, nonNegativeIntegerSchema, portSchema, positiveIntegerSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from '../../schemas/scalars.js';
|
|
3
3
|
export const appwriteIds = {
|
|
4
4
|
bucket: 'marco-files',
|
|
@@ -50,7 +50,7 @@ export const labelSpecialUses = ['ALL', 'ARCHIVE', 'DRAFTS', 'INBOX', 'JUNK', 'S
|
|
|
50
50
|
export const mailboxSyncLanes = ['HEAD', 'BACKFILL'];
|
|
51
51
|
export const mailboxSyncLaneStates = ['PENDING', 'RUNNING', 'COMPLETED', 'FAILED'];
|
|
52
52
|
export const mailboxSyncProvisionedStates = ['INITIAL', 'SYNCING', 'CURRENT', 'ERROR'];
|
|
53
|
-
// Retained as the established public alias
|
|
53
|
+
// Retained as the established public alias, mailboxSyncProvisionedStates is the canonical name.
|
|
54
54
|
export const mailboxSyncStates = mailboxSyncProvisionedStates;
|
|
55
55
|
export const oauthOperations = ['CONNECT', 'REPLACE'];
|
|
56
56
|
export const oauthProviders = ['GMAIL', 'OUTLOOK'];
|
package/dist/index.test.js
CHANGED
|
@@ -9,6 +9,10 @@ const appwriteExportKeys = [
|
|
|
9
9
|
'appwriteCommands',
|
|
10
10
|
'appwriteDataSchemas',
|
|
11
11
|
'appwriteFunctions',
|
|
12
|
+
'appwriteQueryContractNames',
|
|
13
|
+
'appwriteQueryContracts',
|
|
14
|
+
'appwriteQueryIndexRequirementNames',
|
|
15
|
+
'appwriteQueryIndexRequirements',
|
|
12
16
|
'appwriteRelationshipIdSchema',
|
|
13
17
|
'appwriteRowSchemas',
|
|
14
18
|
'appwriteTableContract',
|
|
@@ -30,6 +34,7 @@ const appwriteExportKeys = [
|
|
|
30
34
|
'oauthReturnUriSchema',
|
|
31
35
|
'oauthReturnUris',
|
|
32
36
|
'pollShardStates',
|
|
37
|
+
'validateAppwriteQueryContracts',
|
|
33
38
|
];
|
|
34
39
|
const rootExportKeys = [
|
|
35
40
|
'CustomViewIcon',
|
package/dist/schemas/app.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/schemas/app.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/schemas/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAI/C,eAAO,MAAM,GAAG;;CAEf,CAAA"}
|
package/dist/schemas/app.js
CHANGED
package/dist/schemas/auth.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAI/C,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAA"}
|
package/dist/schemas/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAQ/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE5C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAA"}
|
package/dist/schemas/id.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../utils/valibot/index.js';
|
|
2
2
|
export declare const id: {
|
|
3
3
|
accountId: {
|
|
4
4
|
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
package/dist/schemas/id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/schemas/id.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/schemas/id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAO/C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcd,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,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AC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC7E,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA"}
|
package/dist/schemas/id.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../utils/valibot/index.js';
|
|
2
2
|
const brandedId = (brand) => ({
|
|
3
3
|
nullable: (maxLength = 255) => v.nullable(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength), v.brand(brand))),
|
|
4
4
|
required: (maxLength = 255) => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength), v.brand(brand))),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export declare const accountAliasSchema: v.ObjectSchema<{
|
|
3
3
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
4
4
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAO/C,eAAO,MAAM,kBAAkB;;;;;;;aAO7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;aAQ7B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export declare const contactSchema: v.ObjectSchema<{
|
|
3
3
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
|
|
4
4
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ContactId">]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/contact.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAK/C,eAAO,MAAM,aAAa;;;;;aAKxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export declare const draftAttachmentSchema: v.ObjectSchema<{
|
|
3
3
|
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
4
4
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/draft.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAO/C,eAAO,MAAM,qBAAqB;;;;;;;aAOhC,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;aAK1B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBtB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAA;AACrD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACzE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
import
|
|
2
|
+
import { v } from '../../utils/valibot/index.js';
|
|
3
3
|
import { contactSchema } from './contact.js';
|
|
4
4
|
import { draftBodySchema } from './draft.js';
|
|
5
5
|
import { threadMessageRecipientSchema, threadMessageSchema, threadSchema } from './thread.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
import
|
|
2
|
+
import { v } from '../../utils/valibot/index.js';
|
|
3
3
|
import { draftAttachmentSchema, draftSchema } from './draft.js';
|
|
4
4
|
import { threadMessageAttachmentSchema, threadMessageSchema, threadSchema } from './thread.js';
|
|
5
5
|
describe('legacy model numeric semantics', () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export declare const threadMessageAttachmentSchema: v.ObjectSchema<{
|
|
3
3
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAQ/C,eAAO,MAAM,6BAA6B;;;;;;aAMxC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;aAMvC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAY9B,CAAA;AAqBF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aAA8B,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAG3B,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
2
2
|
export declare const userViewSchema: v.ObjectSchema<{
|
|
3
3
|
readonly aliasIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>, undefined>;
|
|
4
4
|
readonly icon: v.PicklistSchema<readonly import("../../types/index.js").CustomViewIcon[], undefined>;
|