@marcoappio/marco-config 4.0.18 → 4.0.20
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 +54 -288
- 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 +11 -114
- 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 -11
- 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,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, expectTypeOf, it } from 'bun:test';
|
|
2
|
-
import
|
|
2
|
+
import { v } from '../utils/valibot/index.js';
|
|
3
3
|
import { appwriteCommandGroups as rootCommandGroups } from '../index.js';
|
|
4
4
|
import { appwriteAvatar, appwriteCommandGroups, appwriteCommands } from './commands.js';
|
|
5
5
|
import { appwriteCommandGroups as appwriteIndexCommandGroups } from './index.js';
|
|
@@ -9,10 +9,12 @@ const commandMetadata = {
|
|
|
9
9
|
version: 1,
|
|
10
10
|
};
|
|
11
11
|
const avatarSha256 = 'a'.repeat(64);
|
|
12
|
-
const
|
|
12
|
+
const commandFixture = (command) => ({
|
|
13
|
+
command: { ...commandMetadata, accountId: 'account_1', ...command },
|
|
14
|
+
});
|
|
15
|
+
const commandFixtureInputs = [
|
|
13
16
|
{
|
|
14
17
|
command: {
|
|
15
|
-
...commandMetadata,
|
|
16
18
|
accountId: null,
|
|
17
19
|
kind: 'profile.settings.set',
|
|
18
20
|
payload: { name: 'Isaac', timezone: 'Europe/London' },
|
|
@@ -20,186 +22,140 @@ const commandFixtures = [
|
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
24
|
command: {
|
|
23
|
-
...commandMetadata,
|
|
24
|
-
accountId: 'account_1',
|
|
25
25
|
kind: 'account.settings.set',
|
|
26
26
|
payload: { colour: '#000000', displayName: 'Marco' },
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
{ command: {
|
|
29
|
+
{ command: { kind: 'account.delete', payload: {} } },
|
|
30
30
|
{
|
|
31
31
|
command: {
|
|
32
|
-
...commandMetadata,
|
|
33
|
-
accountId: 'account_1',
|
|
34
32
|
kind: 'alias.create',
|
|
35
33
|
payload: { aliasId: 'alias_1', email: 'marco@example.com', name: null, signature: null },
|
|
36
34
|
},
|
|
37
35
|
},
|
|
38
36
|
{
|
|
39
37
|
command: {
|
|
40
|
-
...commandMetadata,
|
|
41
|
-
accountId: 'account_1',
|
|
42
38
|
kind: 'alias.delete',
|
|
43
39
|
payload: { aliasId: 'alias_1' },
|
|
44
40
|
},
|
|
45
41
|
},
|
|
46
42
|
{
|
|
47
43
|
command: {
|
|
48
|
-
...commandMetadata,
|
|
49
|
-
accountId: 'account_1',
|
|
50
44
|
kind: 'alias.name.set',
|
|
51
45
|
payload: { aliasId: 'alias_1', name: 'Marco' },
|
|
52
46
|
},
|
|
53
47
|
},
|
|
54
48
|
{
|
|
55
49
|
command: {
|
|
56
|
-
...commandMetadata,
|
|
57
|
-
accountId: 'account_1',
|
|
58
50
|
kind: 'alias.primary.set',
|
|
59
51
|
payload: { aliasId: 'alias_1' },
|
|
60
52
|
},
|
|
61
53
|
},
|
|
62
54
|
{
|
|
63
55
|
command: {
|
|
64
|
-
...commandMetadata,
|
|
65
|
-
accountId: 'account_1',
|
|
66
56
|
kind: 'alias.signature.set',
|
|
67
57
|
payload: { aliasId: 'alias_1', signature: 'Regards' },
|
|
68
58
|
},
|
|
69
59
|
},
|
|
70
60
|
{
|
|
71
61
|
command: {
|
|
72
|
-
...commandMetadata,
|
|
73
|
-
accountId: 'account_1',
|
|
74
62
|
kind: 'label.create',
|
|
75
63
|
payload: { labelId: 'label_1', path: 'Projects' },
|
|
76
64
|
},
|
|
77
65
|
},
|
|
78
66
|
{
|
|
79
67
|
command: {
|
|
80
|
-
...commandMetadata,
|
|
81
|
-
accountId: 'account_1',
|
|
82
68
|
kind: 'label.delete',
|
|
83
69
|
payload: { labelId: 'label_1' },
|
|
84
70
|
},
|
|
85
71
|
},
|
|
86
72
|
{
|
|
87
73
|
command: {
|
|
88
|
-
...commandMetadata,
|
|
89
|
-
accountId: 'account_1',
|
|
90
74
|
kind: 'label.rename',
|
|
91
75
|
payload: { labelId: 'label_1', path: 'Projects/Marco' },
|
|
92
76
|
},
|
|
93
77
|
},
|
|
94
78
|
{
|
|
95
79
|
command: {
|
|
96
|
-
...commandMetadata,
|
|
97
|
-
accountId: 'account_1',
|
|
98
80
|
kind: 'thread.label.add',
|
|
99
81
|
payload: { labelId: 'label_1', threadIds: ['thread_1'] },
|
|
100
82
|
},
|
|
101
83
|
},
|
|
102
84
|
{
|
|
103
85
|
command: {
|
|
104
|
-
...commandMetadata,
|
|
105
|
-
accountId: 'account_1',
|
|
106
86
|
kind: 'thread.label.remove',
|
|
107
87
|
payload: { labelId: 'label_1', threadIds: ['thread_1'] },
|
|
108
88
|
},
|
|
109
89
|
},
|
|
110
90
|
{
|
|
111
91
|
command: {
|
|
112
|
-
...commandMetadata,
|
|
113
|
-
accountId: 'account_1',
|
|
114
92
|
kind: 'thread.archive.set',
|
|
115
93
|
payload: { archived: true, threadIds: ['thread_1'] },
|
|
116
94
|
},
|
|
117
95
|
},
|
|
118
96
|
{
|
|
119
97
|
command: {
|
|
120
|
-
...commandMetadata,
|
|
121
|
-
accountId: 'account_1',
|
|
122
98
|
kind: 'thread.flagged.set',
|
|
123
99
|
payload: { flagged: true, threadIds: ['thread_1'] },
|
|
124
100
|
},
|
|
125
101
|
},
|
|
126
102
|
{
|
|
127
103
|
command: {
|
|
128
|
-
...commandMetadata,
|
|
129
|
-
accountId: 'account_1',
|
|
130
104
|
kind: 'thread.seen.set',
|
|
131
105
|
payload: { seen: true, threadIds: ['thread_1'] },
|
|
132
106
|
},
|
|
133
107
|
},
|
|
134
108
|
{
|
|
135
109
|
command: {
|
|
136
|
-
...commandMetadata,
|
|
137
|
-
accountId: 'account_1',
|
|
138
110
|
kind: 'thread.snooze.set',
|
|
139
111
|
payload: { snoozedUntil: '2026-07-16T00:00:00.000Z', threadIds: ['thread_1'] },
|
|
140
112
|
},
|
|
141
113
|
},
|
|
142
114
|
{
|
|
143
115
|
command: {
|
|
144
|
-
...commandMetadata,
|
|
145
|
-
accountId: 'account_1',
|
|
146
116
|
kind: 'thread.spam.set',
|
|
147
117
|
payload: { spam: true, threadIds: ['thread_1'] },
|
|
148
118
|
},
|
|
149
119
|
},
|
|
150
120
|
{
|
|
151
121
|
command: {
|
|
152
|
-
...commandMetadata,
|
|
153
|
-
accountId: 'account_1',
|
|
154
122
|
kind: 'thread.trash.set',
|
|
155
123
|
payload: { threadIds: ['thread_1'], trashed: true },
|
|
156
124
|
},
|
|
157
125
|
},
|
|
158
126
|
{
|
|
159
127
|
command: {
|
|
160
|
-
...commandMetadata,
|
|
161
|
-
accountId: 'account_1',
|
|
162
128
|
kind: 'thread.delete',
|
|
163
129
|
payload: { threadIds: ['thread_1'] },
|
|
164
130
|
},
|
|
165
131
|
},
|
|
166
132
|
{
|
|
167
133
|
command: {
|
|
168
|
-
...commandMetadata,
|
|
169
|
-
accountId: 'account_1',
|
|
170
134
|
kind: 'draft.create',
|
|
171
135
|
payload: { draftId: 'draft_1', fromAliasId: null, referencedMessageId: null, type: 'NEW' },
|
|
172
136
|
},
|
|
173
137
|
},
|
|
174
138
|
{
|
|
175
139
|
command: {
|
|
176
|
-
...commandMetadata,
|
|
177
|
-
accountId: 'account_1',
|
|
178
140
|
kind: 'draft.content.set',
|
|
179
141
|
payload: { draftId: 'draft_1', html: '<p>Hello</p>' },
|
|
180
142
|
},
|
|
181
143
|
},
|
|
182
144
|
{
|
|
183
145
|
command: {
|
|
184
|
-
...commandMetadata,
|
|
185
|
-
accountId: 'account_1',
|
|
186
146
|
kind: 'draft.envelope.set',
|
|
187
147
|
payload: { bcc: [], cc: [], draftId: 'draft_1', subject: 'Hello', to: ['marco@example.com'] },
|
|
188
148
|
},
|
|
189
149
|
},
|
|
190
150
|
{
|
|
191
151
|
command: {
|
|
192
|
-
...commandMetadata,
|
|
193
|
-
accountId: 'account_1',
|
|
194
152
|
kind: 'draft.from.set',
|
|
195
153
|
payload: { draftId: 'draft_1', fromAliasId: 'alias_1', targetAccountId: 'account_2' },
|
|
196
154
|
},
|
|
197
155
|
},
|
|
198
|
-
{ command: {
|
|
156
|
+
{ command: { kind: 'draft.delete', payload: { draftId: 'draft_1' } } },
|
|
199
157
|
{
|
|
200
158
|
command: {
|
|
201
|
-
...commandMetadata,
|
|
202
|
-
accountId: 'account_1',
|
|
203
159
|
kind: 'draft.attachment.link',
|
|
204
160
|
payload: {
|
|
205
161
|
draftId: 'draft_1',
|
|
@@ -212,74 +168,35 @@ const commandFixtures = [
|
|
|
212
168
|
},
|
|
213
169
|
{
|
|
214
170
|
command: {
|
|
215
|
-
...commandMetadata,
|
|
216
|
-
accountId: 'account_1',
|
|
217
171
|
kind: 'draft.attachment.delete',
|
|
218
172
|
payload: { draftId: 'draft_1', fileId: 'file_1' },
|
|
219
173
|
},
|
|
220
174
|
},
|
|
221
|
-
{ command: {
|
|
175
|
+
{ command: { kind: 'draft.send', payload: { draftId: 'draft_1' } } },
|
|
222
176
|
{
|
|
223
177
|
command: {
|
|
224
|
-
...commandMetadata,
|
|
225
|
-
accountId: 'account_1',
|
|
226
178
|
kind: 'draft.send.cancel',
|
|
227
179
|
payload: { draftId: 'draft_1' },
|
|
228
180
|
},
|
|
229
181
|
},
|
|
230
182
|
{
|
|
231
183
|
command: {
|
|
232
|
-
...commandMetadata,
|
|
233
|
-
accountId: 'account_1',
|
|
234
184
|
kind: 'draft.send.schedule',
|
|
235
185
|
payload: { draftId: 'draft_1', scheduledAt: '2026-07-16T00:00:00.000Z' },
|
|
236
186
|
},
|
|
237
187
|
},
|
|
238
188
|
{
|
|
239
189
|
command: {
|
|
240
|
-
...commandMetadata,
|
|
241
190
|
accountId: null,
|
|
242
191
|
kind: 'profile.avatar.set',
|
|
243
192
|
payload: { sha256: avatarSha256 },
|
|
244
193
|
},
|
|
245
194
|
},
|
|
246
195
|
];
|
|
196
|
+
const commandFixtures = commandFixtureInputs.map(({ command }) => commandFixture(command));
|
|
247
197
|
describe('appwriteCommands', () => {
|
|
248
|
-
it('publishes the
|
|
198
|
+
it('publishes the version-one status and error manifest', () => {
|
|
249
199
|
expect(appwriteCommands.version).toBe(1);
|
|
250
|
-
expect(appwriteCommands.kinds).toEqual([
|
|
251
|
-
'account.delete',
|
|
252
|
-
'account.settings.set',
|
|
253
|
-
'alias.create',
|
|
254
|
-
'alias.delete',
|
|
255
|
-
'alias.name.set',
|
|
256
|
-
'alias.primary.set',
|
|
257
|
-
'alias.signature.set',
|
|
258
|
-
'draft.attachment.delete',
|
|
259
|
-
'draft.attachment.link',
|
|
260
|
-
'draft.content.set',
|
|
261
|
-
'draft.create',
|
|
262
|
-
'draft.delete',
|
|
263
|
-
'draft.envelope.set',
|
|
264
|
-
'draft.from.set',
|
|
265
|
-
'draft.send',
|
|
266
|
-
'draft.send.cancel',
|
|
267
|
-
'draft.send.schedule',
|
|
268
|
-
'label.create',
|
|
269
|
-
'label.delete',
|
|
270
|
-
'label.rename',
|
|
271
|
-
'profile.avatar.set',
|
|
272
|
-
'profile.settings.set',
|
|
273
|
-
'thread.archive.set',
|
|
274
|
-
'thread.delete',
|
|
275
|
-
'thread.flagged.set',
|
|
276
|
-
'thread.label.add',
|
|
277
|
-
'thread.label.remove',
|
|
278
|
-
'thread.seen.set',
|
|
279
|
-
'thread.snooze.set',
|
|
280
|
-
'thread.spam.set',
|
|
281
|
-
'thread.trash.set',
|
|
282
|
-
]);
|
|
283
200
|
expect(appwriteCommands.states).toEqual(['ACCEPTED', 'RUNNING', 'SUCCEEDED', 'FAILED']);
|
|
284
201
|
expect(appwriteCommands.errorCodes).toEqual([
|
|
285
202
|
'AUTHENTICATION_FAILED',
|
|
@@ -296,27 +213,7 @@ describe('appwriteCommands', () => {
|
|
|
296
213
|
const groupedKinds = Object.values(appwriteCommandGroups).flat();
|
|
297
214
|
const fixtureKinds = commandFixtures.map(({ command }) => command.kind);
|
|
298
215
|
expect(Object.keys(appwriteCommandGroups)).toEqual(['account', 'draft', 'draftSend', 'label', 'profileAvatar', 'profileSettings', 'thread']);
|
|
299
|
-
expect(
|
|
300
|
-
account: ['account.delete', 'account.settings.set', 'alias.create', 'alias.delete', 'alias.name.set', 'alias.primary.set', 'alias.signature.set'],
|
|
301
|
-
draft: ['draft.attachment.delete', 'draft.attachment.link', 'draft.content.set', 'draft.create', 'draft.delete', 'draft.envelope.set', 'draft.from.set'],
|
|
302
|
-
draftSend: ['draft.send', 'draft.send.cancel', 'draft.send.schedule'],
|
|
303
|
-
label: ['label.create', 'label.delete', 'label.rename'],
|
|
304
|
-
profileAvatar: ['profile.avatar.set'],
|
|
305
|
-
profileSettings: ['profile.settings.set'],
|
|
306
|
-
thread: [
|
|
307
|
-
'thread.archive.set',
|
|
308
|
-
'thread.delete',
|
|
309
|
-
'thread.flagged.set',
|
|
310
|
-
'thread.label.add',
|
|
311
|
-
'thread.label.remove',
|
|
312
|
-
'thread.seen.set',
|
|
313
|
-
'thread.snooze.set',
|
|
314
|
-
'thread.spam.set',
|
|
315
|
-
'thread.trash.set',
|
|
316
|
-
],
|
|
317
|
-
});
|
|
318
|
-
expect(groupedKinds).toHaveLength(31);
|
|
319
|
-
expect(new Set(groupedKinds).size).toBe(31);
|
|
216
|
+
expect(new Set(groupedKinds).size).toBe(groupedKinds.length);
|
|
320
217
|
expect(groupedKinds).toEqual([...appwriteCommands.kinds]);
|
|
321
218
|
expect(Object.values(appwriteCommandGroups).every(Object.isFrozen)).toBe(true);
|
|
322
219
|
expect(Object.isFrozen(appwriteCommands.kinds)).toBe(true);
|
|
@@ -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 declare const appwriteDraftAttachmentSchema: v.StrictObjectSchema<{
|
|
4
4
|
readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
|
|
5
5
|
readonly fileName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodedSchemas.d.ts","sourceRoot":"","sources":["../../src/appwrite/decodedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"decodedSchemas.d.ts","sourceRoot":"","sources":["../../src/appwrite/decodedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAM/C,eAAO,MAAM,6BAA6B;;;;;aAKxC,CAAA;AACF,eAAO,MAAM,8BAA8B;;;;;yBAAyC,CAAA;AACpF,eAAO,MAAM,+BAA+B;;;;;2BAAoE,CAAA;AAEhH,eAAO,MAAM,2BAA2B;;;;;aAKtC,CAAA;AACF,eAAO,MAAM,4BAA4B;;;;;eAAiE,CAAA;AAE1G,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAA;AACvG,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v } from '../utils/valibot/index.js';
|
|
2
2
|
import { mailboxAddressSchema, nonNegativeIntegerSchema } from '../schemas/scalars.js';
|
|
3
3
|
import { appwriteRowIdSchema } from './tableContract/index.js';
|
|
4
4
|
export const appwriteDraftAttachmentSchema = v.strictObject({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/appwrite/functions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/appwrite/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,6BAA6B,CAAA;AAU/C,KAAK,uBAAuB,GAAG,eAAe,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAA;AAgMlF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,MAAM,wBAAwB,CAAC,SAAS,SAAS,oBAAoB,EAAE,MAAM,SAAS,yBAAyB,CAAC,SAAS,CAAC,IAC9H,qBAAqB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS;IAAE,cAAc,EAAE,MAAM,OAAO,SAAS,CAAC,CAAC,aAAa,CAAA;CAAE,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA"}
|
package/dist/appwrite/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ export * from './appwrite.js';
|
|
|
2
2
|
export * from './commands.js';
|
|
3
3
|
export type { AppwriteDraftAttachment, AppwriteDraftEnvelope } from './decodedSchemas.js';
|
|
4
4
|
export * from './functions.js';
|
|
5
|
-
export
|
|
5
|
+
export type { AppwriteQueryConsumer, AppwriteQueryContract, AppwriteQueryContractName, AppwriteQueryIndexKind, AppwriteQueryIndexRequirement, AppwriteQueryIndexRequirementName, } from './queryContracts/queryContracts.js';
|
|
6
|
+
export { appwriteQueryContractNames, appwriteQueryContracts, appwriteQueryIndexRequirementNames, appwriteQueryIndexRequirements, validateAppwriteQueryContracts, } from './queryContracts/queryContracts.js';
|
|
7
|
+
export { type AppwriteColumnDefinition, type AppwriteColumnSchema, type AppwriteColumnType, type AppwriteDataRow, type AppwriteIndexDefinition, type AppwriteIndexType, type AppwriteMailboxSyncLane, type AppwriteMailboxSyncLaneState, type AppwriteMailboxSyncState, type AppwritePollShardState, type AppwriteRelationshipDefinition, type AppwriteRelationshipOnDelete, type AppwriteRelationshipSchema, type AppwriteRelationshipType, type AppwriteRow, type AppwriteRowTable, type AppwriteTableDefinition, type AppwriteTableIndexAttributeKey, type AppwriteTableId, type AppwriteTableInput, type AppwriteTableKey, accountProviders, accountStates, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableContract, appwriteTableIdSchema, appwriteTableIds, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUriSchema, oauthReturnUris, pollShardStates, } from './tableContract/index.js';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACtF,cAAc,aAAa,CAAA;AAC3B,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appwrite/index.ts"],"names":[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
1
|
export * from './appwrite.js';
|
|
2
2
|
export * from './commands.js';
|
|
3
3
|
export * from './functions.js';
|
|
4
|
+
export { appwriteQueryContractNames, appwriteQueryContracts, appwriteQueryIndexRequirementNames, appwriteQueryIndexRequirements, validateAppwriteQueryContracts, } from './queryContracts/queryContracts.js';
|
|
4
5
|
export { accountProviders, accountStates, appwriteDataSchemas, appwriteRelationshipIdSchema, appwriteRowSchemas, appwriteTableContract, appwriteTableIdSchema, appwriteTableIds, appwriteTables, commandStates, defineAppwriteTables, draftStates, draftTypes, jobStates, labelSpecialUses, mailboxSyncLaneStates, mailboxSyncLanes, mailboxSyncProvisionedStates, mailboxSyncStates, oauthOperations, oauthProviders, oauthReturnUriSchema, oauthReturnUris, pollShardStates, } from './tableContract/index.js';
|