@marcoappio/marco-config 2.0.493 → 2.0.495

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.
Files changed (53) hide show
  1. package/dist/types/Zero.d.ts +8 -0
  2. package/dist/types/Zero.d.ts.map +1 -1
  3. package/dist/zero/crud.d.ts +1024 -0
  4. package/dist/zero/crud.d.ts.map +1 -0
  5. package/dist/zero/crud.js +3 -0
  6. package/dist/zero/index.d.ts +322 -38
  7. package/dist/zero/index.d.ts.map +1 -1
  8. package/dist/zero/index.js +2 -1
  9. package/dist/zero/mutators/accountMutators/accountMutators.d.ts +88 -9
  10. package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
  11. package/dist/zero/mutators/accountMutators/accountMutators.js +100 -99
  12. package/dist/zero/mutators/accountMutators/index.d.ts +1 -1
  13. package/dist/zero/mutators/accountMutators/index.d.ts.map +1 -1
  14. package/dist/zero/mutators/accountMutators/index.js +1 -1
  15. package/dist/zero/mutators/draftMutators/draftMutators.d.ts +121 -9
  16. package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
  17. package/dist/zero/mutators/draftMutators/draftMutators.js +97 -97
  18. package/dist/zero/mutators/draftMutators/index.d.ts +1 -1
  19. package/dist/zero/mutators/draftMutators/index.d.ts.map +1 -1
  20. package/dist/zero/mutators/draftMutators/index.js +1 -1
  21. package/dist/zero/mutators/index.d.ts +224 -1
  22. package/dist/zero/mutators/index.d.ts.map +1 -1
  23. package/dist/zero/mutators/index.js +10 -1
  24. package/dist/zero/mutators/mutators.d.ts +90 -31
  25. package/dist/zero/mutators/mutators.d.ts.map +1 -1
  26. package/dist/zero/mutators/mutators.js +0 -1
  27. package/dist/zero/mutators/threadMutators/index.d.ts +1 -1
  28. package/dist/zero/mutators/threadMutators/index.d.ts.map +1 -1
  29. package/dist/zero/mutators/threadMutators/index.js +1 -1
  30. package/dist/zero/mutators/threadMutators/threadMutators.d.ts +81 -12
  31. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
  32. package/dist/zero/mutators/threadMutators/threadMutators.js +82 -70
  33. package/dist/zero/mutators/userMutators/index.d.ts +1 -1
  34. package/dist/zero/mutators/userMutators/index.d.ts.map +1 -1
  35. package/dist/zero/mutators/userMutators/index.js +1 -1
  36. package/dist/zero/mutators/userMutators/userMutators.d.ts +28 -3
  37. package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
  38. package/dist/zero/mutators/userMutators/userMutators.js +29 -29
  39. package/dist/zero/queries/getAccounts.d.ts +1 -1
  40. package/dist/zero/queries/getContacts.d.ts +1 -1
  41. package/dist/zero/queries/getDrafts.d.ts +1 -1
  42. package/dist/zero/queries/getThread.d.ts +1 -1
  43. package/dist/zero/queries/getThreadList.d.ts +1 -1
  44. package/dist/zero/queries/getThreads.d.ts +1 -1
  45. package/dist/zero/queries/getUser.d.ts +1 -1
  46. package/dist/zero/queries/index.d.ts +1 -1
  47. package/dist/zero/schema.d.ts +1 -1
  48. package/dist/zero/schema.d.ts.map +1 -1
  49. package/dist/zero/schema.js +0 -1
  50. package/package.json +2 -2
  51. package/dist/zero/mutators/defineMutator.d.ts +0 -16
  52. package/dist/zero/mutators/defineMutator.d.ts.map +0 -1
  53. package/dist/zero/mutators/defineMutator.js +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHI,CAAA;AAEV,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
@@ -1,7 +1,8 @@
1
- import { mutators } from './mutators';
1
+ import { mutatorSchemas, mutators } from './mutators';
2
2
  import { getAccounts, getContacts, getDrafts, getThread, getThreadList, getThreads, getUser } from './queries';
3
3
  import { schema, zeroTables } from './schema';
4
4
  export const marcoZero = {
5
+ mutatorSchemas,
5
6
  mutators,
6
7
  queries: {
7
8
  getAccounts,
@@ -1,3 +1,64 @@
1
+ import * as v from 'valibot';
2
+ export declare const accountMutatorSchemas: {
3
+ createAccount: v.ObjectSchema<{
4
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
7
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
+ }, undefined>;
9
+ createAlias: v.ObjectSchema<{
10
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
+ readonly alias: v.ObjectSchema<{
12
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
13
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
+ }, undefined>;
16
+ }, undefined>;
17
+ deleteAccount: v.ObjectSchema<{
18
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ }, undefined>;
20
+ deleteAlias: v.ObjectSchema<{
21
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
+ }, undefined>;
24
+ setAliasName: v.ObjectSchema<{
25
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
+ }, undefined>;
29
+ setAliasPrimary: v.ObjectSchema<{
30
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ }, undefined>;
33
+ setConnectionConfigImapRaw: v.ObjectSchema<{
34
+ readonly connectionConfig: v.ObjectSchema<{
35
+ readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
+ readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
38
+ readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
39
+ readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
43
+ readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
44
+ readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ }, undefined>;
46
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
47
+ }, undefined>;
48
+ setConnectionConfigOauth: v.ObjectSchema<{
49
+ readonly connectionConfig: v.ObjectSchema<{
50
+ readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
+ readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
52
+ readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
+ }, undefined>;
54
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ }, undefined>;
56
+ setSettings: v.ObjectSchema<{
57
+ readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
58
+ readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
59
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
60
+ }, undefined>;
61
+ };
1
62
  export declare const accountMutators: {
2
63
  createAccount: import("@rocicorp/zero").MutatorDefinition<{
3
64
  aliasId: string;
@@ -9,7 +70,9 @@ export declare const accountMutators: {
9
70
  color: string;
10
71
  emailAddress: string;
11
72
  id: string;
12
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
73
+ }, {
74
+ readonly userId: string;
75
+ }, unknown>;
13
76
  createAlias: import("@rocicorp/zero").MutatorDefinition<{
14
77
  accountId: string;
15
78
  alias: {
@@ -24,19 +87,25 @@ export declare const accountMutators: {
24
87
  id: string;
25
88
  name: string | null;
26
89
  };
27
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
90
+ }, {
91
+ readonly userId: string;
92
+ }, unknown>;
28
93
  deleteAccount: import("@rocicorp/zero").MutatorDefinition<{
29
94
  id: string;
30
95
  }, {
31
96
  id: string;
32
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
97
+ }, {
98
+ readonly userId: string;
99
+ }, unknown>;
33
100
  deleteAlias: import("@rocicorp/zero").MutatorDefinition<{
34
101
  accountId: string;
35
102
  aliasId: string;
36
103
  }, {
37
104
  accountId: string;
38
105
  aliasId: string;
39
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
106
+ }, {
107
+ readonly userId: string;
108
+ }, unknown>;
40
109
  setAliasName: import("@rocicorp/zero").MutatorDefinition<{
41
110
  accountId: string;
42
111
  aliasId: string;
@@ -45,14 +114,18 @@ export declare const accountMutators: {
45
114
  accountId: string;
46
115
  aliasId: string;
47
116
  displayName: string | null;
48
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
117
+ }, {
118
+ readonly userId: string;
119
+ }, unknown>;
49
120
  setAliasPrimary: import("@rocicorp/zero").MutatorDefinition<{
50
121
  accountId: string;
51
122
  aliasId: string;
52
123
  }, {
53
124
  accountId: string;
54
125
  aliasId: string;
55
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
126
+ }, {
127
+ readonly userId: string;
128
+ }, unknown>;
56
129
  setConnectionConfigImapRaw: import("@rocicorp/zero").MutatorDefinition<{
57
130
  connectionConfig: {
58
131
  imapHost: string;
@@ -81,7 +154,9 @@ export declare const accountMutators: {
81
154
  smtpUser: string;
82
155
  };
83
156
  id: string;
84
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
157
+ }, {
158
+ readonly userId: string;
159
+ }, unknown>;
85
160
  setConnectionConfigOauth: import("@rocicorp/zero").MutatorDefinition<{
86
161
  connectionConfig: {
87
162
  code: string;
@@ -96,7 +171,9 @@ export declare const accountMutators: {
96
171
  user: string;
97
172
  };
98
173
  id: string;
99
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
174
+ }, {
175
+ readonly userId: string;
176
+ }, unknown>;
100
177
  setSettings: import("@rocicorp/zero").MutatorDefinition<{
101
178
  color?: string | null | undefined;
102
179
  displayName?: string | null | undefined;
@@ -105,6 +182,8 @@ export declare const accountMutators: {
105
182
  color?: string | null | undefined;
106
183
  displayName?: string | null | undefined;
107
184
  id: string;
108
- }, import("../../../zero/mutators/defineMutator").MarcoZeroContext>;
185
+ }, {
186
+ readonly userId: string;
187
+ }, unknown>;
109
188
  };
110
189
  //# sourceMappingURL=accountMutators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgK3B,CAAA"}
1
+ {"version":3,"file":"accountMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CjC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8H3B,CAAA"}
@@ -1,137 +1,138 @@
1
+ import { defineMutator } from '@rocicorp/zero';
1
2
  import * as v from 'valibot';
2
3
  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({
4
+ import { zeroCRUD } from '../../../zero/crud';
5
+ export const accountMutatorSchemas = {
6
+ createAccount: v.object({
11
7
  aliasId: marcoSchemas.string.required(),
12
8
  color: marcoSchemas.string.required(),
13
9
  emailAddress: marcoSchemas.string.email(),
14
10
  id: marcoSchemas.string.required(),
15
- }), async ({ tx, ctx: { userId }, args }) => {
16
- await tx.mutate.account.insert({
17
- color: args.color,
11
+ }),
12
+ createAlias: v.object({
13
+ accountId: marcoSchemas.string.required(),
14
+ alias: v.object({
15
+ emailAddress: marcoSchemas.string.email(),
16
+ id: marcoSchemas.string.required(),
17
+ name: marcoSchemas.string.nullable(),
18
+ }),
19
+ }),
20
+ deleteAccount: v.object({
21
+ id: marcoSchemas.string.required(),
22
+ }),
23
+ deleteAlias: v.object({
24
+ accountId: marcoSchemas.string.required(),
25
+ aliasId: marcoSchemas.string.required(),
26
+ }),
27
+ setAliasName: v.object({
28
+ accountId: marcoSchemas.string.required(),
29
+ aliasId: marcoSchemas.string.required(),
30
+ displayName: marcoSchemas.string.nullable(),
31
+ }),
32
+ setAliasPrimary: v.object({
33
+ accountId: marcoSchemas.string.required(),
34
+ aliasId: marcoSchemas.string.required(),
35
+ }),
36
+ setConnectionConfigImapRaw: v.object({
37
+ connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
38
+ id: marcoSchemas.string.required(),
39
+ }),
40
+ setConnectionConfigOauth: v.object({
41
+ connectionConfig: marcoSchemas.emailAccount.connectionConfigOauth(),
42
+ id: marcoSchemas.string.required(),
43
+ }),
44
+ setSettings: v.object({
45
+ color: v.optional(marcoSchemas.string.nullable()),
46
+ displayName: v.optional(marcoSchemas.string.nullable()),
47
+ id: marcoSchemas.string.required(),
48
+ }),
49
+ };
50
+ export const accountMutators = {
51
+ createAccount: defineMutator(accountMutatorSchemas.createAccount, async ({ tx, ctx: { userId }, args: { color, id, aliasId, emailAddress } }) => {
52
+ await tx.mutate(zeroCRUD.account.insert({
53
+ color,
18
54
  displayName: null,
19
- id: args.id,
55
+ id,
20
56
  imapConnectionStatus: 'AWAITING_CONNECTION',
21
57
  mailProcessedCount: 0,
22
58
  mailTotalCount: 0,
23
- primaryAliasId: args.aliasId,
59
+ primaryAliasId: aliasId,
24
60
  userId,
25
- });
26
- await tx.mutate.accountAlias.insert({
27
- accountId: args.id,
28
- emailAddress: args.emailAddress,
29
- id: args.aliasId,
61
+ }));
62
+ await tx.mutate(zeroCRUD.accountAlias.insert({
63
+ accountId: id,
64
+ emailAddress,
65
+ id: aliasId,
30
66
  isPrimary: true,
31
67
  name: null,
32
- });
68
+ }));
33
69
  }),
34
- createAlias: defineMutator(v.object({
35
- accountId: marcoSchemas.string.required(),
36
- alias: accountAliasSchema,
37
- }), async ({ tx, args }) => {
38
- await tx.mutate.accountAlias.insert({
39
- accountId: args.accountId,
40
- emailAddress: args.alias.emailAddress,
41
- id: args.alias.id,
70
+ createAlias: defineMutator(accountMutatorSchemas.createAlias, async ({ tx, args: { accountId, alias } }) => {
71
+ await tx.mutate(zeroCRUD.accountAlias.insert({
72
+ accountId: accountId,
73
+ emailAddress: alias.emailAddress,
74
+ id: alias.id,
42
75
  isPrimary: false,
43
- name: args.alias.name ?? null,
44
- });
76
+ name: alias.name ?? null,
77
+ }));
45
78
  }),
46
- deleteAccount: defineMutator(v.object({
47
- id: marcoSchemas.string.required(),
48
- }), async ({ tx, args }) => {
49
- await tx.mutate.account.delete({
50
- id: args.id,
51
- });
79
+ deleteAccount: defineMutator(accountMutatorSchemas.deleteAccount, async ({ tx, args: { id } }) => {
80
+ await tx.mutate(zeroCRUD.account.delete({ id }));
52
81
  }),
53
- deleteAlias: defineMutator(v.object({
54
- accountId: marcoSchemas.string.required(),
55
- aliasId: marcoSchemas.string.required(),
56
- }), async ({ tx, args }) => {
57
- const alias = await tx.query.accountAlias.where('id', args.aliasId).one().run();
58
- await tx.mutate.accountAlias.delete({
59
- id: args.aliasId,
60
- });
82
+ deleteAlias: defineMutator(accountMutatorSchemas.deleteAlias, async ({ tx, args: { accountId, aliasId } }) => {
83
+ const alias = await tx.query.accountAlias.where('id', aliasId).one().run();
84
+ await tx.mutate(zeroCRUD.accountAlias.delete({ id: aliasId }));
61
85
  if (alias?.isPrimary) {
62
- const remainingAliases = await tx.query.accountAlias.where('accountId', args.accountId).run();
86
+ const remainingAliases = await tx.query.accountAlias.where('accountId', accountId).run();
63
87
  if (remainingAliases.length > 0) {
64
88
  const newPrimaryAlias = remainingAliases[0];
65
- await tx.mutate.accountAlias.update({
89
+ await tx.mutate(zeroCRUD.accountAlias.update({
66
90
  id: newPrimaryAlias.id,
67
91
  isPrimary: true,
68
- });
69
- await tx.mutate.account.update({
70
- id: args.accountId,
92
+ }));
93
+ await tx.mutate(zeroCRUD.account.update({
94
+ id: accountId,
71
95
  primaryAliasId: newPrimaryAlias.id,
72
- });
96
+ }));
73
97
  }
74
98
  else {
75
- await tx.mutate.account.update({
76
- id: args.accountId,
99
+ await tx.mutate(zeroCRUD.account.update({
100
+ id: accountId,
77
101
  primaryAliasId: null,
78
- });
102
+ }));
79
103
  }
80
104
  }
81
105
  }),
82
- setAliasName: defineMutator(v.object({
83
- accountId: marcoSchemas.string.required(),
84
- aliasId: marcoSchemas.string.required(),
85
- displayName: marcoSchemas.string.nullable(),
86
- }), async ({ tx, args }) => {
87
- await tx.mutate.accountAlias.update({
88
- id: args.aliasId,
89
- name: args.displayName,
90
- });
106
+ setAliasName: defineMutator(accountMutatorSchemas.setAliasName, async ({ tx, args: { aliasId, displayName } }) => {
107
+ await tx.mutate(zeroCRUD.accountAlias.update({
108
+ id: aliasId,
109
+ name: displayName,
110
+ }));
91
111
  }),
92
- setAliasPrimary: defineMutator(v.object({
93
- accountId: marcoSchemas.string.required(),
94
- aliasId: marcoSchemas.string.required(),
95
- }), async ({ tx, args }) => {
96
- const aliases = await tx.query.accountAlias.where('accountId', args.accountId).run();
112
+ setAliasPrimary: defineMutator(accountMutatorSchemas.setAliasPrimary, async ({ tx, args: { accountId, aliasId } }) => {
113
+ const aliases = await tx.query.accountAlias.where('accountId', accountId).run();
97
114
  for (const alias of aliases) {
98
- await tx.mutate.accountAlias.update({
115
+ await tx.mutate(zeroCRUD.accountAlias.update({
99
116
  id: alias.id,
100
- isPrimary: alias.id === args.aliasId,
101
- });
117
+ isPrimary: alias.id === aliasId,
118
+ }));
102
119
  }
103
- await tx.mutate.account.update({
104
- id: args.accountId,
105
- primaryAliasId: args.aliasId,
106
- });
120
+ await tx.mutate(zeroCRUD.account.update({
121
+ id: accountId,
122
+ primaryAliasId: aliasId,
123
+ }));
107
124
  }),
108
- setConnectionConfigImapRaw: defineMutator(v.object({
109
- connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
110
- id: marcoSchemas.string.required(),
111
- }), async ({ tx, args }) => {
112
- await tx.mutate.account.update({
113
- id: args.id,
114
- imapConnectionStatus: 'AWAITING_CONNECTION',
115
- });
125
+ setConnectionConfigImapRaw: defineMutator(accountMutatorSchemas.setConnectionConfigImapRaw, async ({ tx, args: { id } }) => {
126
+ await tx.mutate(zeroCRUD.account.update({ id, imapConnectionStatus: 'AWAITING_CONNECTION' }));
116
127
  }),
117
- setConnectionConfigOauth: defineMutator(v.object({
118
- connectionConfig: marcoSchemas.emailAccount.connectionConfigOauth(),
119
- id: marcoSchemas.string.required(),
120
- }), async ({ tx, args }) => {
121
- await tx.mutate.account.update({
122
- id: args.id,
123
- imapConnectionStatus: 'AWAITING_CONNECTION',
124
- });
128
+ setConnectionConfigOauth: defineMutator(accountMutatorSchemas.setConnectionConfigOauth, async ({ tx, args: { id } }) => {
129
+ await tx.mutate(zeroCRUD.account.update({ id, imapConnectionStatus: 'AWAITING_CONNECTION' }));
125
130
  }),
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 }) => {
131
- await tx.mutate.account.update({
132
- color: args.color ? args.color : undefined,
133
- displayName: args.displayName ? args.displayName : undefined,
134
- id: args.id,
135
- });
131
+ setSettings: defineMutator(accountMutatorSchemas.setSettings, async ({ tx, args: { id, color, displayName } }) => {
132
+ await tx.mutate(zeroCRUD.account.update({
133
+ color: color ? color : undefined,
134
+ displayName: displayName ? displayName : undefined,
135
+ id,
136
+ }));
136
137
  }),
137
138
  };
@@ -1,2 +1,2 @@
1
- export * from './accountMutators';
1
+ export { accountMutatorSchemas, accountMutators } from './accountMutators';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1 +1 @@
1
- export * from './accountMutators';
1
+ export { accountMutatorSchemas, accountMutators } from './accountMutators';