@marcoappio/marco-config 2.0.491 → 2.0.493
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/types/Zero.d.ts +0 -14
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/zero/index.d.ts +1553 -1439
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -4
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts +108 -6
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/accountMutators.js +59 -34
- package/dist/zero/mutators/defineMutator.d.ts +16 -0
- package/dist/zero/mutators/defineMutator.d.ts.map +1 -0
- package/dist/zero/mutators/defineMutator.js +7 -0
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts +166 -6
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +101 -40
- package/dist/zero/mutators/index.d.ts +2 -1
- package/dist/zero/mutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/index.js +2 -1
- package/dist/zero/mutators/mutators.d.ts +438 -28
- package/dist/zero/mutators/mutators.d.ts.map +1 -1
- package/dist/zero/mutators/mutators.js +11 -38
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +127 -7
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +40 -30
- package/dist/zero/mutators/userMutators/userMutators.d.ts +30 -6
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
- package/dist/zero/mutators/userMutators/userMutators.js +25 -11
- package/dist/zero/queries/getAccounts.d.ts +134 -134
- package/dist/zero/queries/getContacts.d.ts +134 -134
- package/dist/zero/queries/getDrafts.d.ts +134 -134
- package/dist/zero/queries/getThread.d.ts +134 -134
- package/dist/zero/queries/getThreadList.d.ts +134 -134
- package/dist/zero/queries/getThreads.d.ts +134 -134
- package/dist/zero/queries/getUser.d.ts +134 -134
- package/dist/zero/queries/index.d.ts +132 -132
- package/dist/zero/schema.d.ts +132 -132
- package/dist/zero/schema.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/AuthData.d.ts +0 -4
- package/dist/types/AuthData.d.ts.map +0 -1
- package/dist/types/AuthData.js +0 -1
- package/dist/zero/mutatorSchemas/account.d.ts +0 -80
- package/dist/zero/mutatorSchemas/account.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/account.js +0 -66
- package/dist/zero/mutatorSchemas/draft.d.ts +0 -150
- package/dist/zero/mutatorSchemas/draft.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/draft.js +0 -104
- package/dist/zero/mutatorSchemas/index.d.ts +0 -323
- package/dist/zero/mutatorSchemas/index.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/index.js +0 -10
- package/dist/zero/mutatorSchemas/thread.d.ts +0 -71
- package/dist/zero/mutatorSchemas/thread.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/thread.js +0 -47
- package/dist/zero/mutatorSchemas/user.d.ts +0 -26
- package/dist/zero/mutatorSchemas/user.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/user.js +0 -27
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts +0 -2
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/accountMutators/accountMutators.test.js +0 -390
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts +0 -2
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/draftMutators/draftMutators.test.js +0 -416
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts +0 -2
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +0 -755
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts +0 -2
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/userMutators/userMutators.test.js +0 -84
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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, getDrafts, getThread, getThreadList, getThreads, getUser } from './queries';
|
|
4
3
|
import { schema, zeroTables } from './schema';
|
|
5
4
|
export const marcoZero = {
|
|
6
|
-
|
|
7
|
-
mutatorSchemas: zeroMutatorSchemas,
|
|
5
|
+
mutators,
|
|
8
6
|
queries: {
|
|
9
7
|
getAccounts,
|
|
10
8
|
getContacts,
|
|
@@ -1,8 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const accountMutators: {
|
|
2
|
+
createAccount: import("@rocicorp/zero").MutatorDefinition<{
|
|
3
|
+
aliasId: string;
|
|
4
|
+
color: string;
|
|
5
|
+
emailAddress: string;
|
|
6
|
+
id: string;
|
|
7
|
+
}, {
|
|
8
|
+
aliasId: string;
|
|
9
|
+
color: string;
|
|
10
|
+
emailAddress: string;
|
|
11
|
+
id: string;
|
|
12
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
13
|
+
createAlias: import("@rocicorp/zero").MutatorDefinition<{
|
|
14
|
+
accountId: string;
|
|
15
|
+
alias: {
|
|
16
|
+
emailAddress: string;
|
|
17
|
+
id: string;
|
|
18
|
+
name: string | null;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
accountId: string;
|
|
22
|
+
alias: {
|
|
23
|
+
emailAddress: string;
|
|
24
|
+
id: string;
|
|
25
|
+
name: string | null;
|
|
26
|
+
};
|
|
27
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
28
|
+
deleteAccount: import("@rocicorp/zero").MutatorDefinition<{
|
|
29
|
+
id: string;
|
|
30
|
+
}, {
|
|
31
|
+
id: string;
|
|
32
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
33
|
+
deleteAlias: import("@rocicorp/zero").MutatorDefinition<{
|
|
34
|
+
accountId: string;
|
|
35
|
+
aliasId: string;
|
|
36
|
+
}, {
|
|
37
|
+
accountId: string;
|
|
38
|
+
aliasId: string;
|
|
39
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
40
|
+
setAliasName: import("@rocicorp/zero").MutatorDefinition<{
|
|
41
|
+
accountId: string;
|
|
42
|
+
aliasId: string;
|
|
43
|
+
displayName: string | null;
|
|
44
|
+
}, {
|
|
45
|
+
accountId: string;
|
|
46
|
+
aliasId: string;
|
|
47
|
+
displayName: string | null;
|
|
48
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
49
|
+
setAliasPrimary: import("@rocicorp/zero").MutatorDefinition<{
|
|
50
|
+
accountId: string;
|
|
51
|
+
aliasId: string;
|
|
52
|
+
}, {
|
|
53
|
+
accountId: string;
|
|
54
|
+
aliasId: string;
|
|
55
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
56
|
+
setConnectionConfigImapRaw: import("@rocicorp/zero").MutatorDefinition<{
|
|
57
|
+
connectionConfig: {
|
|
58
|
+
imapHost: string;
|
|
59
|
+
imapPassword: string;
|
|
60
|
+
imapPort: number;
|
|
61
|
+
imapSocketType: "STARTTLS" | "SSL";
|
|
62
|
+
imapUser: string;
|
|
63
|
+
smtpHost: string;
|
|
64
|
+
smtpPassword: string;
|
|
65
|
+
smtpPort: number;
|
|
66
|
+
smtpSocketType: "STARTTLS" | "SSL";
|
|
67
|
+
smtpUser: string;
|
|
68
|
+
};
|
|
69
|
+
id: string;
|
|
70
|
+
}, {
|
|
71
|
+
connectionConfig: {
|
|
72
|
+
imapHost: string;
|
|
73
|
+
imapPassword: string;
|
|
74
|
+
imapPort: number;
|
|
75
|
+
imapSocketType: "STARTTLS" | "SSL";
|
|
76
|
+
imapUser: string;
|
|
77
|
+
smtpHost: string;
|
|
78
|
+
smtpPassword: string;
|
|
79
|
+
smtpPort: number;
|
|
80
|
+
smtpSocketType: "STARTTLS" | "SSL";
|
|
81
|
+
smtpUser: string;
|
|
82
|
+
};
|
|
83
|
+
id: string;
|
|
84
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
85
|
+
setConnectionConfigOauth: import("@rocicorp/zero").MutatorDefinition<{
|
|
86
|
+
connectionConfig: {
|
|
87
|
+
code: string;
|
|
88
|
+
provider: "GOOGLE" | "OUTLOOK";
|
|
89
|
+
user: string;
|
|
90
|
+
};
|
|
91
|
+
id: string;
|
|
92
|
+
}, {
|
|
93
|
+
connectionConfig: {
|
|
94
|
+
code: string;
|
|
95
|
+
provider: "GOOGLE" | "OUTLOOK";
|
|
96
|
+
user: string;
|
|
97
|
+
};
|
|
98
|
+
id: string;
|
|
99
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
100
|
+
setSettings: import("@rocicorp/zero").MutatorDefinition<{
|
|
101
|
+
color?: string | null | undefined;
|
|
102
|
+
displayName?: string | null | undefined;
|
|
103
|
+
id: string;
|
|
104
|
+
}, {
|
|
105
|
+
color?: string | null | undefined;
|
|
106
|
+
displayName?: string | null | undefined;
|
|
107
|
+
id: string;
|
|
108
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
6
109
|
};
|
|
7
|
-
export declare const createAccountMutators: (authData: AuthData | undefined, callbacks?: AccountMutatorCallbacks) => HandlerMap<ZeroMutatorSchemas["account"]>;
|
|
8
110
|
//# sourceMappingURL=accountMutators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accountMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgK3B,CAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../schemas';
|
|
3
|
+
import { defineMutator } from '../../../zero/mutators/defineMutator';
|
|
4
|
+
const accountAliasSchema = v.object({
|
|
5
|
+
emailAddress: marcoSchemas.string.email(),
|
|
6
|
+
id: marcoSchemas.string.required(),
|
|
7
|
+
name: marcoSchemas.string.nullable(),
|
|
8
|
+
});
|
|
9
|
+
export const accountMutators = {
|
|
10
|
+
createAccount: defineMutator(v.object({
|
|
11
|
+
aliasId: marcoSchemas.string.required(),
|
|
12
|
+
color: marcoSchemas.string.required(),
|
|
13
|
+
emailAddress: marcoSchemas.string.email(),
|
|
14
|
+
id: marcoSchemas.string.required(),
|
|
15
|
+
}), async ({ tx, ctx: { userId }, args }) => {
|
|
7
16
|
await tx.mutate.account.insert({
|
|
8
17
|
color: args.color,
|
|
9
18
|
displayName: null,
|
|
@@ -12,7 +21,7 @@ export const createAccountMutators = (authData, callbacks) => ({
|
|
|
12
21
|
mailProcessedCount: 0,
|
|
13
22
|
mailTotalCount: 0,
|
|
14
23
|
primaryAliasId: args.aliasId,
|
|
15
|
-
userId
|
|
24
|
+
userId,
|
|
16
25
|
});
|
|
17
26
|
await tx.mutate.accountAlias.insert({
|
|
18
27
|
accountId: args.id,
|
|
@@ -21,9 +30,11 @@ export const createAccountMutators = (authData, callbacks) => ({
|
|
|
21
30
|
isPrimary: true,
|
|
22
31
|
name: null,
|
|
23
32
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
}),
|
|
34
|
+
createAlias: defineMutator(v.object({
|
|
35
|
+
accountId: marcoSchemas.string.required(),
|
|
36
|
+
alias: accountAliasSchema,
|
|
37
|
+
}), async ({ tx, args }) => {
|
|
27
38
|
await tx.mutate.accountAlias.insert({
|
|
28
39
|
accountId: args.accountId,
|
|
29
40
|
emailAddress: args.alias.emailAddress,
|
|
@@ -31,15 +42,18 @@ export const createAccountMutators = (authData, callbacks) => ({
|
|
|
31
42
|
isPrimary: false,
|
|
32
43
|
name: args.alias.name ?? null,
|
|
33
44
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
}),
|
|
46
|
+
deleteAccount: defineMutator(v.object({
|
|
47
|
+
id: marcoSchemas.string.required(),
|
|
48
|
+
}), async ({ tx, args }) => {
|
|
37
49
|
await tx.mutate.account.delete({
|
|
38
50
|
id: args.id,
|
|
39
51
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
}),
|
|
53
|
+
deleteAlias: defineMutator(v.object({
|
|
54
|
+
accountId: marcoSchemas.string.required(),
|
|
55
|
+
aliasId: marcoSchemas.string.required(),
|
|
56
|
+
}), async ({ tx, args }) => {
|
|
43
57
|
const alias = await tx.query.accountAlias.where('id', args.aliasId).one().run();
|
|
44
58
|
await tx.mutate.accountAlias.delete({
|
|
45
59
|
id: args.aliasId,
|
|
@@ -64,16 +78,21 @@ export const createAccountMutators = (authData, callbacks) => ({
|
|
|
64
78
|
});
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
81
|
+
}),
|
|
82
|
+
setAliasName: defineMutator(v.object({
|
|
83
|
+
accountId: marcoSchemas.string.required(),
|
|
84
|
+
aliasId: marcoSchemas.string.required(),
|
|
85
|
+
displayName: marcoSchemas.string.nullable(),
|
|
86
|
+
}), async ({ tx, args }) => {
|
|
70
87
|
await tx.mutate.accountAlias.update({
|
|
71
88
|
id: args.aliasId,
|
|
72
89
|
name: args.displayName,
|
|
73
90
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
91
|
+
}),
|
|
92
|
+
setAliasPrimary: defineMutator(v.object({
|
|
93
|
+
accountId: marcoSchemas.string.required(),
|
|
94
|
+
aliasId: marcoSchemas.string.required(),
|
|
95
|
+
}), async ({ tx, args }) => {
|
|
77
96
|
const aliases = await tx.query.accountAlias.where('accountId', args.accountId).run();
|
|
78
97
|
for (const alias of aliases) {
|
|
79
98
|
await tx.mutate.accountAlias.update({
|
|
@@ -85,28 +104,34 @@ export const createAccountMutators = (authData, callbacks) => ({
|
|
|
85
104
|
id: args.accountId,
|
|
86
105
|
primaryAliasId: args.aliasId,
|
|
87
106
|
});
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
107
|
+
}),
|
|
108
|
+
setConnectionConfigImapRaw: defineMutator(v.object({
|
|
109
|
+
connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
|
|
110
|
+
id: marcoSchemas.string.required(),
|
|
111
|
+
}), async ({ tx, args }) => {
|
|
91
112
|
await tx.mutate.account.update({
|
|
92
113
|
id: args.id,
|
|
93
114
|
imapConnectionStatus: 'AWAITING_CONNECTION',
|
|
94
115
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
116
|
+
}),
|
|
117
|
+
setConnectionConfigOauth: defineMutator(v.object({
|
|
118
|
+
connectionConfig: marcoSchemas.emailAccount.connectionConfigOauth(),
|
|
119
|
+
id: marcoSchemas.string.required(),
|
|
120
|
+
}), async ({ tx, args }) => {
|
|
98
121
|
await tx.mutate.account.update({
|
|
99
122
|
id: args.id,
|
|
100
123
|
imapConnectionStatus: 'AWAITING_CONNECTION',
|
|
101
124
|
});
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
125
|
+
}),
|
|
126
|
+
setSettings: defineMutator(v.object({
|
|
127
|
+
color: v.optional(marcoSchemas.string.nullable()),
|
|
128
|
+
displayName: v.optional(marcoSchemas.string.nullable()),
|
|
129
|
+
id: marcoSchemas.string.required(),
|
|
130
|
+
}), async ({ tx, args }) => {
|
|
105
131
|
await tx.mutate.account.update({
|
|
106
132
|
color: args.color ? args.color : undefined,
|
|
107
133
|
displayName: args.displayName ? args.displayName : undefined,
|
|
108
134
|
id: args.id,
|
|
109
135
|
});
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
});
|
|
136
|
+
}),
|
|
137
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReadonlyJSONValue } from '@rocicorp/zero';
|
|
2
|
+
import { type MutatorDefinition } from '@rocicorp/zero';
|
|
3
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
4
|
+
import type { MarcoZeroSchema } from '../../zero/schema';
|
|
5
|
+
export type MarcoZeroContext = {
|
|
6
|
+
userId: string;
|
|
7
|
+
};
|
|
8
|
+
type MarcoMutatorFn<TOutput extends ReadonlyJSONValue | undefined> = (options: {
|
|
9
|
+
args: TOutput;
|
|
10
|
+
ctx: MarcoZeroContext;
|
|
11
|
+
tx: import('@rocicorp/zero').Transaction<MarcoZeroSchema>;
|
|
12
|
+
}) => Promise<void>;
|
|
13
|
+
export declare function defineMutator<TInput extends ReadonlyJSONValue | undefined, TOutput extends ReadonlyJSONValue | undefined = TInput>(validator: StandardSchemaV1<TInput, TOutput>, mutator: MarcoMutatorFn<TOutput>): MutatorDefinition<TInput, TOutput, MarcoZeroContext>;
|
|
14
|
+
export declare function defineMutator<TInput extends ReadonlyJSONValue | undefined>(mutator: MarcoMutatorFn<TInput>): MutatorDefinition<TInput, TInput, MarcoZeroContext>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=defineMutator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineMutator.d.ts","sourceRoot":"","sources":["../../../src/zero/mutators/defineMutator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,KAAK,iBAAiB,EAAsC,MAAM,gBAAgB,CAAA;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,cAAc,CAAC,OAAO,SAAS,iBAAiB,GAAG,SAAS,IAAI,CAAC,OAAO,EAAE;IAC7E,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,gBAAgB,CAAA;IACrB,EAAE,EAAE,OAAO,gBAAgB,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;CAC1D,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;AAEnB,wBAAgB,aAAa,CAC3B,MAAM,SAAS,iBAAiB,GAAG,SAAS,EAC5C,OAAO,SAAS,iBAAiB,GAAG,SAAS,GAAG,MAAM,EAEtD,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5C,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,GAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAA;AAEvD,wBAAgB,aAAa,CAAC,MAAM,SAAS,iBAAiB,GAAG,SAAS,EACxE,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,GAC9B,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { defineMutator as zeroDefineMutator } from '@rocicorp/zero';
|
|
2
|
+
export function defineMutator(validatorOrMutator, maybeMutator) {
|
|
3
|
+
if (maybeMutator) {
|
|
4
|
+
return zeroDefineMutator(validatorOrMutator, maybeMutator);
|
|
5
|
+
}
|
|
6
|
+
return zeroDefineMutator(validatorOrMutator);
|
|
7
|
+
}
|
|
@@ -1,8 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const draftMutators: {
|
|
2
|
+
cancelSend: import("@rocicorp/zero").MutatorDefinition<{
|
|
3
|
+
id: string;
|
|
4
|
+
updatedAt: number;
|
|
5
|
+
}, {
|
|
6
|
+
id: string;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
9
|
+
createAttachment: import("@rocicorp/zero").MutatorDefinition<{
|
|
10
|
+
attachment: {
|
|
11
|
+
fileName: string;
|
|
12
|
+
id: string;
|
|
13
|
+
mimeType: string;
|
|
14
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
15
|
+
totalSize: number;
|
|
16
|
+
};
|
|
17
|
+
id: string;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
}, {
|
|
20
|
+
attachment: {
|
|
21
|
+
fileName: string;
|
|
22
|
+
id: string;
|
|
23
|
+
mimeType: string;
|
|
24
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
25
|
+
totalSize: number;
|
|
26
|
+
};
|
|
27
|
+
id: string;
|
|
28
|
+
updatedAt: number;
|
|
29
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
30
|
+
createDraft: import("@rocicorp/zero").MutatorDefinition<{
|
|
31
|
+
accountId: string;
|
|
32
|
+
attachments: {
|
|
33
|
+
fileName: string;
|
|
34
|
+
id: string;
|
|
35
|
+
mimeType: string;
|
|
36
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
37
|
+
totalSize: number;
|
|
38
|
+
}[];
|
|
39
|
+
body: {
|
|
40
|
+
bcc: string[];
|
|
41
|
+
cc: string[];
|
|
42
|
+
content: string;
|
|
43
|
+
subject: string | null;
|
|
44
|
+
to: string[];
|
|
45
|
+
};
|
|
46
|
+
error: string | null;
|
|
47
|
+
from: string;
|
|
48
|
+
fromName: string | null;
|
|
49
|
+
id: string;
|
|
50
|
+
referencedMessageId: string | null;
|
|
51
|
+
scheduledFor: number | null;
|
|
52
|
+
status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
53
|
+
type: "NEW" | "REPLY" | "FORWARD";
|
|
54
|
+
updatedAt: number;
|
|
55
|
+
}, {
|
|
56
|
+
accountId: string;
|
|
57
|
+
attachments: {
|
|
58
|
+
fileName: string;
|
|
59
|
+
id: string;
|
|
60
|
+
mimeType: string;
|
|
61
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
62
|
+
totalSize: number;
|
|
63
|
+
}[];
|
|
64
|
+
body: {
|
|
65
|
+
bcc: string[];
|
|
66
|
+
cc: string[];
|
|
67
|
+
content: string;
|
|
68
|
+
subject: string | null;
|
|
69
|
+
to: string[];
|
|
70
|
+
};
|
|
71
|
+
error: string | null;
|
|
72
|
+
from: string;
|
|
73
|
+
fromName: string | null;
|
|
74
|
+
id: string;
|
|
75
|
+
referencedMessageId: string | null;
|
|
76
|
+
scheduledFor: number | null;
|
|
77
|
+
status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
78
|
+
type: "NEW" | "REPLY" | "FORWARD";
|
|
79
|
+
updatedAt: number;
|
|
80
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
81
|
+
deleteAttachment: import("@rocicorp/zero").MutatorDefinition<{
|
|
82
|
+
attachmentId: string;
|
|
83
|
+
id: string;
|
|
84
|
+
updatedAt: number;
|
|
85
|
+
}, {
|
|
86
|
+
attachmentId: string;
|
|
87
|
+
id: string;
|
|
88
|
+
updatedAt: number;
|
|
89
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
90
|
+
deleteDraft: import("@rocicorp/zero").MutatorDefinition<{
|
|
91
|
+
id: string;
|
|
92
|
+
}, {
|
|
93
|
+
id: string;
|
|
94
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
95
|
+
scheduleSend: import("@rocicorp/zero").MutatorDefinition<{
|
|
96
|
+
id: string;
|
|
97
|
+
kind: "IMMEDIATE";
|
|
98
|
+
undoMs: number;
|
|
99
|
+
updatedAt: number;
|
|
100
|
+
} | {
|
|
101
|
+
id: string;
|
|
102
|
+
kind: "SCHEDULED";
|
|
103
|
+
scheduledFor: number;
|
|
104
|
+
updatedAt: number;
|
|
105
|
+
}, {
|
|
106
|
+
id: string;
|
|
107
|
+
kind: "IMMEDIATE";
|
|
108
|
+
undoMs: number;
|
|
109
|
+
updatedAt: number;
|
|
110
|
+
} | {
|
|
111
|
+
id: string;
|
|
112
|
+
kind: "SCHEDULED";
|
|
113
|
+
scheduledFor: number;
|
|
114
|
+
updatedAt: number;
|
|
115
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
116
|
+
setContent: import("@rocicorp/zero").MutatorDefinition<{
|
|
117
|
+
id: string;
|
|
118
|
+
patch: {
|
|
119
|
+
index: number;
|
|
120
|
+
type: "INSERTION" | "DELETION";
|
|
121
|
+
value: string;
|
|
122
|
+
}[];
|
|
123
|
+
updatedAt: number;
|
|
124
|
+
}, {
|
|
125
|
+
id: string;
|
|
126
|
+
patch: {
|
|
127
|
+
index: number;
|
|
128
|
+
type: "INSERTION" | "DELETION";
|
|
129
|
+
value: string;
|
|
130
|
+
}[];
|
|
131
|
+
updatedAt: number;
|
|
132
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
133
|
+
setEnvelope: import("@rocicorp/zero").MutatorDefinition<{
|
|
134
|
+
envelope: {
|
|
135
|
+
bcc: string[];
|
|
136
|
+
cc: string[];
|
|
137
|
+
to: string[];
|
|
138
|
+
subject: string | null;
|
|
139
|
+
};
|
|
140
|
+
id: string;
|
|
141
|
+
updatedAt: number;
|
|
142
|
+
}, {
|
|
143
|
+
envelope: {
|
|
144
|
+
bcc: string[];
|
|
145
|
+
cc: string[];
|
|
146
|
+
to: string[];
|
|
147
|
+
subject: string | null;
|
|
148
|
+
};
|
|
149
|
+
id: string;
|
|
150
|
+
updatedAt: number;
|
|
151
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
152
|
+
setFrom: import("@rocicorp/zero").MutatorDefinition<{
|
|
153
|
+
accountId: string;
|
|
154
|
+
aliasId: string;
|
|
155
|
+
from: string;
|
|
156
|
+
fromName: string | null;
|
|
157
|
+
id: string;
|
|
158
|
+
updatedAt: number;
|
|
159
|
+
}, {
|
|
160
|
+
accountId: string;
|
|
161
|
+
aliasId: string;
|
|
162
|
+
from: string;
|
|
163
|
+
fromName: string | null;
|
|
164
|
+
id: string;
|
|
165
|
+
updatedAt: number;
|
|
166
|
+
}, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
|
|
6
167
|
};
|
|
7
|
-
export declare const createDraftMutators: (authData: AuthData | undefined, callbacks?: DraftMutatorCallbacks) => HandlerMap<ZeroMutatorSchemas["draft"]>;
|
|
8
168
|
//# sourceMappingURL=draftMutators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/draftMutators/draftMutators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draftMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/draftMutators/draftMutators.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqMzB,CAAA"}
|