@marcoappio/marco-config 4.0.19 → 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 +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,63 +1,86 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* oxlint-disable eslint/sort-keys */
|
|
1
|
+
import { v } from '../../utils/valibot/index.js';
|
|
3
2
|
import { accountProviders, accountStates, appwriteColumnDefinitions, appwriteRelationship, appwriteRelationshipIdSchema, canonicalTimestampSchema, colourSchema, defineAppwriteTableGroup, webEmailSchema, identifierSchema, labelSpecialUses, oauthOperations, oauthProviders, oauthReturnUriSchema, appwriteRowIdSchema, isoTimestampSchema, nonNegativeIntegerSchema, } from './shared.js';
|
|
4
3
|
const { boolean, dateTime, enumValue, identifier, integer, longText, string: stringColumn, stringArray, text } = appwriteColumnDefinitions;
|
|
5
4
|
export const identityTableInputs = defineAppwriteTableGroup({
|
|
6
5
|
accounts: {
|
|
7
6
|
fields: {
|
|
8
|
-
profileAssignmentKey: identifier(identifierSchema),
|
|
9
|
-
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
10
|
-
state: enumValue(v.picklist(accountStates), accountStates),
|
|
11
|
-
primaryEmail: stringColumn(webEmailSchema, true, 320),
|
|
12
|
-
displayName: stringColumn(v.nullable(identifierSchema), false),
|
|
13
7
|
colour: stringColumn(colourSchema, true, 64),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
credential: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'credentials', 'oneToOne'),
|
|
9
|
+
displayName: stringColumn(v.nullable(identifierSchema), false),
|
|
10
|
+
initialSyncCompletedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
17
11
|
lastErrorCode: stringColumn(v.nullable(identifierSchema), false),
|
|
12
|
+
lastSuccessfulSyncAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
13
|
+
mailboxSyncState: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'mailboxSyncStates', 'oneToOne'),
|
|
18
14
|
mailProcessedCount: integer(nonNegativeIntegerSchema),
|
|
19
15
|
mailTotalCount: integer(nonNegativeIntegerSchema),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
mailboxSyncState: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'mailboxSyncStates', 'oneToOne'),
|
|
16
|
+
pollShardAssignmentId: identifier(v.nullable(identifierSchema), false),
|
|
17
|
+
pollShardId: identifier(v.nullable(identifierSchema), false),
|
|
23
18
|
primaryAlias: appwriteRelationship(v.nullable(appwriteRelationshipIdSchema), 'aliases', 'oneToOne', 'setNull'),
|
|
19
|
+
primaryEmail: stringColumn(webEmailSchema, true, 320),
|
|
24
20
|
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
21
|
+
profileAssignmentKey: identifier(identifierSchema),
|
|
22
|
+
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
23
|
+
state: enumValue(v.picklist(accountStates), accountStates),
|
|
25
24
|
},
|
|
26
25
|
indexes: [
|
|
27
|
-
{
|
|
28
|
-
|
|
26
|
+
{
|
|
27
|
+
attributes: ['profileAssignmentKey'],
|
|
28
|
+
name: 'assignment_profile',
|
|
29
|
+
type: 'key',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
attributes: ['profileAssignmentKey', 'state'],
|
|
33
|
+
name: 'assignment_profile_state',
|
|
34
|
+
type: 'key',
|
|
35
|
+
},
|
|
29
36
|
{ attributes: ['state'], name: 'state', type: 'key' },
|
|
30
|
-
{
|
|
31
|
-
|
|
37
|
+
{
|
|
38
|
+
attributes: ['state', 'pollShardAssignmentId'],
|
|
39
|
+
name: 'state_poll_shard_assignment',
|
|
40
|
+
type: 'key',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
attributes: ['pollShardAssignmentId'],
|
|
44
|
+
name: 'poll_shard_assignment',
|
|
45
|
+
type: 'key',
|
|
46
|
+
},
|
|
32
47
|
{ attributes: ['pollShardId'], name: 'poll_shard', type: 'key' },
|
|
33
48
|
],
|
|
34
49
|
name: 'Accounts',
|
|
35
50
|
},
|
|
36
51
|
aliases: {
|
|
37
52
|
fields: {
|
|
53
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
38
54
|
accountAssignmentKey: identifier(identifierSchema),
|
|
39
|
-
providerId: stringColumn(identifierSchema),
|
|
40
55
|
email: stringColumn(webEmailSchema, true, 320),
|
|
56
|
+
isPrimary: boolean(v.boolean()),
|
|
41
57
|
name: stringColumn(v.nullable(identifierSchema), false),
|
|
58
|
+
providerId: stringColumn(identifierSchema),
|
|
42
59
|
signature: text(v.nullable(v.string()), false),
|
|
43
|
-
isPrimary: boolean(v.boolean()),
|
|
44
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
45
60
|
},
|
|
46
61
|
indexes: [
|
|
47
|
-
{
|
|
48
|
-
|
|
62
|
+
{
|
|
63
|
+
attributes: ['accountAssignmentKey'],
|
|
64
|
+
name: 'assignment_account',
|
|
65
|
+
type: 'key',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
attributes: ['accountAssignmentKey', 'providerId'],
|
|
69
|
+
name: 'assignment_account_provider_unique',
|
|
70
|
+
type: 'unique',
|
|
71
|
+
},
|
|
49
72
|
],
|
|
50
73
|
name: 'Aliases',
|
|
51
74
|
},
|
|
52
75
|
credentials: {
|
|
53
76
|
fields: {
|
|
54
|
-
userId: stringColumn(identifierSchema),
|
|
55
77
|
accountId: stringColumn(identifierSchema),
|
|
56
|
-
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
57
78
|
encryptedPayload: longText(v.string()),
|
|
58
79
|
expiresAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
80
|
+
provider: enumValue(v.picklist(accountProviders), accountProviders),
|
|
59
81
|
refreshLeaseExpiresAt: dateTime(v.nullable(canonicalTimestampSchema), false),
|
|
60
82
|
refreshLeaseId: stringColumn(v.nullable(identifierSchema), false, 36),
|
|
83
|
+
userId: stringColumn(identifierSchema),
|
|
61
84
|
},
|
|
62
85
|
indexes: [
|
|
63
86
|
{ attributes: ['userId'], name: 'user', type: 'key' },
|
|
@@ -67,42 +90,54 @@ export const identityTableInputs = defineAppwriteTableGroup({
|
|
|
67
90
|
},
|
|
68
91
|
labels: {
|
|
69
92
|
fields: {
|
|
93
|
+
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
70
94
|
accountAssignmentKey: identifier(identifierSchema),
|
|
71
|
-
providerId: stringColumn(identifierSchema),
|
|
72
95
|
name: stringColumn(v.nullable(identifierSchema), false),
|
|
73
96
|
path: stringColumn(identifierSchema),
|
|
97
|
+
providerId: stringColumn(identifierSchema),
|
|
74
98
|
specialUse: enumValue(v.nullable(v.picklist(labelSpecialUses)), labelSpecialUses, false),
|
|
75
99
|
totalCount: integer(nonNegativeIntegerSchema),
|
|
76
100
|
unreadCount: integer(nonNegativeIntegerSchema),
|
|
77
|
-
account: appwriteRelationship(appwriteRelationshipIdSchema, 'accounts'),
|
|
78
101
|
},
|
|
79
102
|
indexes: [
|
|
80
|
-
{
|
|
81
|
-
|
|
82
|
-
|
|
103
|
+
{
|
|
104
|
+
attributes: ['accountAssignmentKey', 'specialUse'],
|
|
105
|
+
name: 'assignment_account_special_use',
|
|
106
|
+
type: 'key',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
attributes: ['accountAssignmentKey', 'path'],
|
|
110
|
+
name: 'assignment_account_path_unique',
|
|
111
|
+
type: 'unique',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
attributes: ['accountAssignmentKey', 'providerId'],
|
|
115
|
+
name: 'assignment_account_provider_unique',
|
|
116
|
+
type: 'unique',
|
|
117
|
+
},
|
|
83
118
|
],
|
|
84
119
|
name: 'Labels',
|
|
85
120
|
},
|
|
86
121
|
oauthStates: {
|
|
87
122
|
fields: {
|
|
88
|
-
userId: stringColumn(identifierSchema),
|
|
89
123
|
accountId: stringColumn(identifierSchema),
|
|
90
124
|
email: stringColumn(webEmailSchema, true, 320),
|
|
91
125
|
expiresAt: dateTime(isoTimestampSchema),
|
|
92
126
|
nonceHash: stringColumn(identifierSchema),
|
|
93
127
|
operation: enumValue(v.picklist(oauthOperations), oauthOperations),
|
|
128
|
+
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
94
129
|
provider: enumValue(v.picklist(oauthProviders), oauthProviders),
|
|
95
130
|
returnUri: stringColumn(oauthReturnUriSchema),
|
|
96
|
-
|
|
131
|
+
userId: stringColumn(identifierSchema),
|
|
97
132
|
},
|
|
98
133
|
indexes: [],
|
|
99
134
|
name: 'OAuth states',
|
|
100
135
|
},
|
|
101
136
|
profileAvatarCleanups: {
|
|
102
137
|
fields: {
|
|
103
|
-
fileId: stringColumn(identifierSchema, true, 36),
|
|
104
|
-
claimId: stringColumn(v.nullable(identifierSchema), false),
|
|
105
138
|
claimedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
139
|
+
claimId: stringColumn(v.nullable(identifierSchema), false),
|
|
140
|
+
fileId: stringColumn(identifierSchema, true, 36),
|
|
106
141
|
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
107
142
|
},
|
|
108
143
|
indexes: [],
|
|
@@ -111,9 +146,9 @@ export const identityTableInputs = defineAppwriteTableGroup({
|
|
|
111
146
|
},
|
|
112
147
|
profiles: {
|
|
113
148
|
fields: {
|
|
114
|
-
email: stringColumn(webEmailSchema, true, 320),
|
|
115
149
|
avatarFileId: stringColumn(v.nullable(appwriteRowIdSchema), false, 36),
|
|
116
150
|
deletionRequestedAt: dateTime(v.nullable(isoTimestampSchema), false),
|
|
151
|
+
email: stringColumn(webEmailSchema, true, 320),
|
|
117
152
|
name: stringColumn(v.nullable(identifierSchema), false),
|
|
118
153
|
onboardingState: stringColumn(v.nullable(identifierSchema), false),
|
|
119
154
|
timezone: stringColumn(v.nullable(identifierSchema), false),
|
|
@@ -123,9 +158,9 @@ export const identityTableInputs = defineAppwriteTableGroup({
|
|
|
123
158
|
},
|
|
124
159
|
savedViews: {
|
|
125
160
|
fields: {
|
|
126
|
-
name: stringColumn(identifierSchema),
|
|
127
|
-
icon: stringColumn(v.nullable(identifierSchema), false),
|
|
128
161
|
aliasIds: stringArray(v.array(identifierSchema)),
|
|
162
|
+
icon: stringColumn(v.nullable(identifierSchema), false),
|
|
163
|
+
name: stringColumn(identifierSchema),
|
|
129
164
|
profile: appwriteRelationship(appwriteRelationshipIdSchema, 'profiles'),
|
|
130
165
|
},
|
|
131
166
|
indexes: [],
|