@marcoappio/marco-config 2.0.427 → 2.0.429

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 (96) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/types/AuthData.d.ts +4 -0
  5. package/dist/types/AuthData.d.ts.map +1 -0
  6. package/dist/types/AuthData.js +1 -0
  7. package/dist/types/Zero.d.ts +18 -0
  8. package/dist/types/Zero.d.ts.map +1 -1
  9. package/dist/types/Zero.js +5 -1
  10. package/dist/types/index.d.ts +1 -0
  11. package/dist/types/index.d.ts.map +1 -1
  12. package/dist/types/index.js +1 -0
  13. package/dist/zero/index.d.ts +164 -476
  14. package/dist/zero/index.d.ts.map +1 -1
  15. package/dist/zero/index.js +0 -7
  16. package/dist/zero/{mutators → mutatorSchemas}/account.d.ts +4 -33
  17. package/dist/zero/mutatorSchemas/account.d.ts.map +1 -0
  18. package/dist/zero/{mutators → mutatorSchemas}/account.js +4 -7
  19. package/dist/zero/{mutators → mutatorSchemas}/draft.d.ts +1 -1
  20. package/dist/zero/{mutators → mutatorSchemas}/draft.d.ts.map +1 -1
  21. package/dist/zero/{mutators → mutatorSchemas}/draft.js +1 -1
  22. package/dist/zero/mutatorSchemas/index.d.ts +5 -0
  23. package/dist/zero/mutatorSchemas/index.d.ts.map +1 -0
  24. package/dist/zero/mutatorSchemas/index.js +4 -0
  25. package/dist/zero/{mutators → mutatorSchemas}/thread.d.ts +13 -26
  26. package/dist/zero/mutatorSchemas/thread.d.ts.map +1 -0
  27. package/dist/zero/{mutators → mutatorSchemas}/thread.js +13 -24
  28. package/dist/zero/{mutators → mutatorSchemas}/user.d.ts +1 -7
  29. package/dist/zero/mutatorSchemas/user.d.ts.map +1 -0
  30. package/dist/zero/{mutators → mutatorSchemas}/user.js +1 -7
  31. package/dist/zero/mutators/accountMutators/accountMutators.d.ts +8 -0
  32. package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -0
  33. package/dist/zero/mutators/accountMutators/accountMutators.js +112 -0
  34. package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts +2 -0
  35. package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts.map +1 -0
  36. package/dist/zero/mutators/accountMutators/accountMutators.test.js +390 -0
  37. package/dist/zero/mutators/accountMutators/index.d.ts +2 -0
  38. package/dist/zero/mutators/accountMutators/index.d.ts.map +1 -0
  39. package/dist/zero/mutators/accountMutators/index.js +1 -0
  40. package/dist/zero/mutators/draftMutators/draftMutators.d.ts +8 -0
  41. package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -0
  42. package/dist/zero/mutators/draftMutators/draftMutators.js +162 -0
  43. package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts +2 -0
  44. package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts.map +1 -0
  45. package/dist/zero/mutators/draftMutators/draftMutators.test.js +390 -0
  46. package/dist/zero/mutators/draftMutators/index.d.ts +2 -0
  47. package/dist/zero/mutators/draftMutators/index.d.ts.map +1 -0
  48. package/dist/zero/mutators/draftMutators/index.js +1 -0
  49. package/dist/zero/mutators/index.d.ts +6262 -0
  50. package/dist/zero/mutators/index.d.ts.map +1 -0
  51. package/dist/zero/mutators/index.js +17 -0
  52. package/dist/zero/mutators/mutators.d.ts +29 -0
  53. package/dist/zero/mutators/mutators.d.ts.map +1 -0
  54. package/dist/zero/{mutators.js → mutators/mutators.js} +10 -15
  55. package/dist/zero/mutators/threadMutators/index.d.ts +2 -0
  56. package/dist/zero/mutators/threadMutators/index.d.ts.map +1 -0
  57. package/dist/zero/mutators/threadMutators/index.js +1 -0
  58. package/dist/zero/mutators/threadMutators/threadMutators.d.ts +8 -0
  59. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -0
  60. package/dist/zero/mutators/threadMutators/threadMutators.js +238 -0
  61. package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts +2 -0
  62. package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts.map +1 -0
  63. package/dist/zero/mutators/threadMutators/threadMutators.test.js +465 -0
  64. package/dist/zero/mutators/userMutators/index.d.ts +2 -0
  65. package/dist/zero/mutators/userMutators/index.d.ts.map +1 -0
  66. package/dist/zero/mutators/userMutators/index.js +1 -0
  67. package/dist/zero/mutators/userMutators/userMutators.d.ts +8 -0
  68. package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -0
  69. package/dist/zero/mutators/userMutators/userMutators.js +37 -0
  70. package/dist/zero/mutators/userMutators/userMutators.test.d.ts +2 -0
  71. package/dist/zero/mutators/userMutators/userMutators.test.d.ts.map +1 -0
  72. package/dist/zero/mutators/userMutators/userMutators.test.js +123 -0
  73. package/dist/zero/queries/getAccounts.d.ts +27 -74
  74. package/dist/zero/queries/getAccounts.d.ts.map +1 -1
  75. package/dist/zero/queries/getContacts.d.ts +27 -74
  76. package/dist/zero/queries/getContacts.d.ts.map +1 -1
  77. package/dist/zero/queries/getDrafts.d.ts +27 -74
  78. package/dist/zero/queries/getDrafts.d.ts.map +1 -1
  79. package/dist/zero/queries/getThreads.d.ts +27 -74
  80. package/dist/zero/queries/getThreads.d.ts.map +1 -1
  81. package/dist/zero/queries/getUser.d.ts +27 -74
  82. package/dist/zero/queries/getUser.d.ts.map +1 -1
  83. package/dist/zero/queries/index.d.ts +27 -74
  84. package/dist/zero/queries/index.d.ts.map +1 -1
  85. package/dist/zero/schema.d.ts +27 -96
  86. package/dist/zero/schema.d.ts.map +1 -1
  87. package/dist/zero/schema.js +0 -31
  88. package/package.json +1 -1
  89. package/dist/zero/mutators/account.d.ts.map +0 -1
  90. package/dist/zero/mutators/thread.d.ts.map +0 -1
  91. package/dist/zero/mutators/user.d.ts.map +0 -1
  92. package/dist/zero/mutators.d.ts +0 -412
  93. package/dist/zero/mutators.d.ts.map +0 -1
  94. package/dist/zero/mutators.test.d.ts +0 -2
  95. package/dist/zero/mutators.test.d.ts.map +0 -1
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAHN,CAAA;AAEV,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
@@ -13,10 +13,3 @@ export const marcoZero = {
13
13
  schema,
14
14
  tables: zeroTables,
15
15
  };
16
- export { createMutators, ZeroMutatorValidationError, zeroMutatorSchemas, } from './mutators';
17
- export { accountMutatorDefinitions } from './mutators/account';
18
- export { draftMutatorDefinitions } from './mutators/draft';
19
- export { threadMutatorDefinitions } from './mutators/thread';
20
- export { userMutatorDefinitions } from './mutators/user';
21
- export { getUser } from './queries';
22
- export { schema, zeroTables } from './schema';
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const accountMutatorDefinitions: {
2
+ export declare const accountMutatorSchemas: {
3
3
  readonly createAccount: {
4
4
  readonly delta: v.ObjectSchema<{
5
5
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -33,7 +33,7 @@ export declare const accountMutatorDefinitions: {
33
33
  readonly delta: v.ObjectSchema<{
34
34
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  }, undefined>;
38
38
  };
39
39
  readonly setAliasPrimary: {
@@ -71,38 +71,9 @@ export declare const accountMutatorDefinitions: {
71
71
  };
72
72
  readonly setSettings: {
73
73
  readonly delta: v.ObjectSchema<{
74
+ readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
75
+ readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
74
76
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
- readonly settings: Omit<v.ObjectSchema<{
76
- readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
78
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
79
- readonly entries: {
80
- readonly color: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
81
- readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
82
- };
83
- readonly '~standard': v.StandardProps<{
84
- color?: string | undefined;
85
- name?: string | null | undefined;
86
- }, {
87
- color?: string | undefined;
88
- name?: string | null | undefined;
89
- }>;
90
- readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
91
- color?: string | undefined;
92
- name?: string | null | undefined;
93
- }, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue>;
94
- readonly '~types'?: {
95
- readonly input: {
96
- color?: string | undefined;
97
- name?: string | null | undefined;
98
- };
99
- readonly output: {
100
- color?: string | undefined;
101
- name?: string | null | undefined;
102
- };
103
- readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue;
104
- } | undefined;
105
- };
106
77
  }, undefined>;
107
78
  };
108
79
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DxB,CAAA"}
@@ -1,15 +1,11 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../schemas';
3
- const accountSettingsSchema = v.object({
4
- color: marcoSchemas.string.required(),
5
- name: marcoSchemas.string.nullable(),
6
- });
7
3
  const accountAliasSchema = v.object({
8
4
  emailAddress: marcoSchemas.string.email(),
9
5
  id: marcoSchemas.string.required(),
10
6
  name: marcoSchemas.string.nullable(),
11
7
  });
12
- export const accountMutatorDefinitions = {
8
+ export const accountMutatorSchemas = {
13
9
  createAccount: {
14
10
  delta: v.object({
15
11
  aliasId: marcoSchemas.string.required(),
@@ -39,7 +35,7 @@ export const accountMutatorDefinitions = {
39
35
  delta: v.object({
40
36
  accountId: marcoSchemas.string.required(),
41
37
  aliasId: marcoSchemas.string.required(),
42
- name: marcoSchemas.string.nullable(),
38
+ displayName: marcoSchemas.string.nullable(),
43
39
  }),
44
40
  },
45
41
  setAliasPrimary: {
@@ -62,8 +58,9 @@ export const accountMutatorDefinitions = {
62
58
  },
63
59
  setSettings: {
64
60
  delta: v.object({
61
+ color: v.optional(marcoSchemas.string.nullable()),
62
+ displayName: v.optional(marcoSchemas.string.nullable()),
65
63
  id: marcoSchemas.string.required(),
66
- settings: v.partial(accountSettingsSchema),
67
64
  }),
68
65
  },
69
66
  };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const draftMutatorDefinitions: {
2
+ export declare const draftMutatorSchemas: {
3
3
  readonly cancelSend: {
4
4
  readonly delta: v.ObjectSchema<{
5
5
  readonly id: 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/zero/mutators/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwD5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE1B,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwD5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEtB,CAAA"}
@@ -47,7 +47,7 @@ const draftModelSchema = v.object({
47
47
  type: draftTypeSchema,
48
48
  updatedAt: marcoSchemas.number.positiveInteger(),
49
49
  });
50
- export const draftMutatorDefinitions = {
50
+ export const draftMutatorSchemas = {
51
51
  cancelSend: {
52
52
  delta: v.object({
53
53
  id: marcoSchemas.string.required(),
@@ -0,0 +1,5 @@
1
+ export { accountMutatorSchemas } from './account';
2
+ export { draftMutatorSchemas } from './draft';
3
+ export { threadMutatorSchemas } from './thread';
4
+ export { userMutatorSchemas } from './user';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { accountMutatorSchemas } from './account';
2
+ export { draftMutatorSchemas } from './draft';
3
+ export { threadMutatorSchemas } from './thread';
4
+ export { userMutatorSchemas } from './user';
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const threadMutatorDefinitions: {
2
+ export declare const threadMutatorSchemas: {
3
3
  readonly addLabel: {
4
4
  readonly delta: v.ObjectSchema<{
5
5
  readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -7,11 +7,9 @@ export declare const threadMutatorDefinitions: {
7
7
  }, undefined>;
8
8
  };
9
9
  readonly delete: {
10
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
11
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
- }, undefined>, v.ObjectSchema<{
10
+ readonly delta: v.ObjectSchema<{
13
11
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
14
- }, undefined>], undefined>;
12
+ }, undefined>;
15
13
  };
16
14
  readonly removeLabel: {
17
15
  readonly delta: v.ObjectSchema<{
@@ -29,11 +27,9 @@ export declare const threadMutatorDefinitions: {
29
27
  }, undefined>], undefined>;
30
28
  };
31
29
  readonly setArchive: {
32
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
33
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- }, undefined>, v.ObjectSchema<{
30
+ readonly delta: v.ObjectSchema<{
35
31
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
36
- }, undefined>], undefined>;
32
+ }, undefined>;
37
33
  };
38
34
  readonly setFlagged: {
39
35
  readonly delta: v.UnionSchema<[v.ObjectSchema<{
@@ -45,34 +41,25 @@ export declare const threadMutatorDefinitions: {
45
41
  }, undefined>], undefined>;
46
42
  };
47
43
  readonly setInbox: {
48
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
49
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
50
- }, undefined>, v.ObjectSchema<{
44
+ readonly delta: v.ObjectSchema<{
51
45
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
52
- }, undefined>], undefined>;
46
+ }, undefined>;
53
47
  };
54
48
  readonly setSeen: {
55
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
56
- readonly seen: v.BooleanSchema<undefined>;
57
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
- }, undefined>, v.ObjectSchema<{
49
+ readonly delta: v.ObjectSchema<{
59
50
  readonly seen: v.BooleanSchema<undefined>;
60
51
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
61
- }, undefined>], undefined>;
52
+ }, undefined>;
62
53
  };
63
54
  readonly setSpam: {
64
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
65
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
- }, undefined>, v.ObjectSchema<{
55
+ readonly delta: v.ObjectSchema<{
67
56
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
68
- }, undefined>], undefined>;
57
+ }, undefined>;
69
58
  };
70
59
  readonly setTrash: {
71
- readonly delta: v.UnionSchema<[v.ObjectSchema<{
72
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
- }, undefined>, v.ObjectSchema<{
60
+ readonly delta: v.ObjectSchema<{
74
61
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
75
- }, undefined>], undefined>;
62
+ }, undefined>;
76
63
  };
77
64
  };
78
65
  //# sourceMappingURL=thread.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwC5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BvB,CAAA"}
@@ -1,13 +1,8 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../schemas';
3
- const threadIdOrIdsSchema = v.union([
4
- v.object({
5
- threadId: marcoSchemas.string.required(),
6
- }),
7
- v.object({
8
- threadIds: v.array(marcoSchemas.string.required()),
9
- }),
10
- ]);
3
+ const threadIdsSchema = v.object({
4
+ threadIds: v.array(marcoSchemas.string.required()),
5
+ });
11
6
  const threadAddRemoveLabelSchema = v.object({
12
7
  labelPath: marcoSchemas.string.required(),
13
8
  threadIds: v.array(marcoSchemas.string.required()),
@@ -32,22 +27,16 @@ const threadSetFlaggedSchema = v.union([
32
27
  threadIds: v.array(marcoSchemas.string.required()),
33
28
  }),
34
29
  ]);
35
- const threadSetSeenSchema = v.union([
36
- v.object({
37
- seen: v.boolean(),
38
- threadId: marcoSchemas.string.required(),
39
- }),
40
- v.object({
41
- seen: v.boolean(),
42
- threadIds: v.array(marcoSchemas.string.required()),
43
- }),
44
- ]);
45
- export const threadMutatorDefinitions = {
30
+ const threadSetSeenSchema = v.object({
31
+ seen: v.boolean(),
32
+ threadIds: v.array(marcoSchemas.string.required()),
33
+ });
34
+ export const threadMutatorSchemas = {
46
35
  addLabel: {
47
36
  delta: threadAddRemoveLabelSchema,
48
37
  },
49
38
  delete: {
50
- delta: threadIdOrIdsSchema,
39
+ delta: threadIdsSchema,
51
40
  },
52
41
  removeLabel: {
53
42
  delta: threadAddRemoveLabelSchema,
@@ -56,21 +45,21 @@ export const threadMutatorDefinitions = {
56
45
  delta: threadRequestAttachmentSchema,
57
46
  },
58
47
  setArchive: {
59
- delta: threadIdOrIdsSchema,
48
+ delta: threadIdsSchema,
60
49
  },
61
50
  setFlagged: {
62
51
  delta: threadSetFlaggedSchema,
63
52
  },
64
53
  setInbox: {
65
- delta: threadIdOrIdsSchema,
54
+ delta: threadIdsSchema,
66
55
  },
67
56
  setSeen: {
68
57
  delta: threadSetSeenSchema,
69
58
  },
70
59
  setSpam: {
71
- delta: threadIdOrIdsSchema,
60
+ delta: threadIdsSchema,
72
61
  },
73
62
  setTrash: {
74
- delta: threadIdOrIdsSchema,
63
+ delta: threadIdsSchema,
75
64
  },
76
65
  };
@@ -1,17 +1,11 @@
1
1
  import * as v from 'valibot';
2
- export declare const userMutatorDefinitions: {
2
+ export declare const userMutatorSchemas: {
3
3
  readonly deleteSettingsPushNotificationToken: {
4
4
  readonly delta: v.ObjectSchema<{
5
5
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
6
  readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  }, undefined>;
8
8
  };
9
- readonly deleteSettingsPushNotificationTokenForDevice: {
10
- readonly delta: v.ObjectSchema<{
11
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
13
- }, undefined>;
14
- };
15
9
  readonly setSettingsName: {
16
10
  readonly delta: v.ObjectSchema<{
17
11
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAmBrB,CAAA"}
@@ -5,19 +5,13 @@ const userPushNotificationTokenSchema = v.object({
5
5
  deviceId: marcoSchemas.string.required(),
6
6
  token: marcoSchemas.string.required(),
7
7
  });
8
- export const userMutatorDefinitions = {
8
+ export const userMutatorSchemas = {
9
9
  deleteSettingsPushNotificationToken: {
10
10
  delta: v.object({
11
11
  id: marcoSchemas.string.required(),
12
12
  token: marcoSchemas.string.required(),
13
13
  }),
14
14
  },
15
- deleteSettingsPushNotificationTokenForDevice: {
16
- delta: v.object({
17
- deviceId: marcoSchemas.string.required(),
18
- id: marcoSchemas.string.required(),
19
- }),
20
- },
21
15
  setSettingsName: {
22
16
  delta: v.object({
23
17
  id: marcoSchemas.string.required(),
@@ -0,0 +1,8 @@
1
+ import type * as v from 'valibot';
2
+ import { type AuthData, type HandlerMap } from '../../../types';
3
+ import type { accountMutatorSchemas } from '../../../zero/mutatorSchemas';
4
+ export type AccountMutatorCallbacks = {
5
+ [K in keyof typeof accountMutatorSchemas]?: (args: v.InferOutput<(typeof accountMutatorSchemas)[K]['delta']>) => Promise<void>;
6
+ };
7
+ export declare const createAccountMutators: (authData: AuthData | undefined, callbacks?: AccountMutatorCallbacks) => HandlerMap<typeof accountMutatorSchemas>;
8
+ //# sourceMappingURL=accountMutators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAE9E,MAAM,MAAM,uBAAuB,GAAG;KACnC,CAAC,IAAI,MAAM,OAAO,qBAAqB,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC5D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,qBAAqB,aACtB,QAAQ,GAAG,SAAS,cAClB,uBAAuB,KAClC,UAAU,CAAC,OAAO,qBAAqB,CA6HxC,CAAA"}
@@ -0,0 +1,112 @@
1
+ import { MutationError } from '../../../types';
2
+ export const createAccountMutators = (authData, callbacks) => ({
3
+ createAccount: async (tx, args) => {
4
+ if (!authData) {
5
+ throw new Error(MutationError.AUTHENTICATION_REQUIRED);
6
+ }
7
+ await tx.mutate.account.insert({
8
+ color: args.color,
9
+ displayName: null,
10
+ id: args.id,
11
+ imapConnectionStatus: 'AWAITING_CONNECTION',
12
+ mailProcessedCount: 0,
13
+ mailTotalCount: 0,
14
+ primaryAliasId: args.aliasId,
15
+ userId: authData.sub,
16
+ });
17
+ await tx.mutate.accountAlias.insert({
18
+ accountId: args.id,
19
+ emailAddress: args.emailAddress,
20
+ id: args.aliasId,
21
+ isPrimary: true,
22
+ name: null,
23
+ });
24
+ await callbacks?.createAccount?.(args);
25
+ },
26
+ createAlias: async (tx, args) => {
27
+ await tx.mutate.accountAlias.insert({
28
+ accountId: args.accountId,
29
+ emailAddress: args.alias.emailAddress,
30
+ id: args.alias.id,
31
+ isPrimary: false,
32
+ name: args.alias.name ?? null,
33
+ });
34
+ await callbacks?.createAlias?.(args);
35
+ },
36
+ deleteAccount: async (tx, args) => {
37
+ await tx.mutate.account.delete({
38
+ id: args.id,
39
+ });
40
+ await callbacks?.deleteAccount?.(args);
41
+ },
42
+ deleteAlias: async (tx, args) => {
43
+ const alias = await tx.query.accountAlias.where('id', args.aliasId).one().run();
44
+ await tx.mutate.accountAlias.delete({
45
+ id: args.aliasId,
46
+ });
47
+ if (alias?.isPrimary) {
48
+ const remainingAliases = await tx.query.accountAlias.where('accountId', args.accountId).run();
49
+ if (remainingAliases.length > 0) {
50
+ const newPrimaryAlias = remainingAliases[0];
51
+ await tx.mutate.accountAlias.update({
52
+ id: newPrimaryAlias.id,
53
+ isPrimary: true,
54
+ });
55
+ await tx.mutate.account.update({
56
+ id: args.accountId,
57
+ primaryAliasId: newPrimaryAlias.id,
58
+ });
59
+ }
60
+ else {
61
+ await tx.mutate.account.update({
62
+ id: args.accountId,
63
+ primaryAliasId: null,
64
+ });
65
+ }
66
+ }
67
+ await callbacks?.deleteAlias?.(args);
68
+ },
69
+ setAliasName: async (tx, args) => {
70
+ await tx.mutate.accountAlias.update({
71
+ id: args.aliasId,
72
+ name: args.displayName,
73
+ });
74
+ await callbacks?.setAliasName?.(args);
75
+ },
76
+ setAliasPrimary: async (tx, args) => {
77
+ const aliases = await tx.query.accountAlias.where('accountId', args.accountId).run();
78
+ for (const alias of aliases) {
79
+ await tx.mutate.accountAlias.update({
80
+ id: alias.id,
81
+ isPrimary: alias.id === args.aliasId,
82
+ });
83
+ }
84
+ await tx.mutate.account.update({
85
+ id: args.accountId,
86
+ primaryAliasId: args.aliasId,
87
+ });
88
+ await callbacks?.setAliasPrimary?.(args);
89
+ },
90
+ setConnectionConfigImapRaw: async (tx, args) => {
91
+ await tx.mutate.account.update({
92
+ id: args.id,
93
+ imapConnectionStatus: 'AWAITING_CONNECTION',
94
+ });
95
+ await callbacks?.setConnectionConfigImapRaw?.(args);
96
+ },
97
+ setConnectionConfigOauth: async (tx, args) => {
98
+ await tx.mutate.account.update({
99
+ id: args.id,
100
+ imapConnectionStatus: 'AWAITING_CONNECTION',
101
+ });
102
+ await callbacks?.setConnectionConfigOauth?.(args);
103
+ },
104
+ setSettings: async (tx, args) => {
105
+ await tx.mutate.account.update({
106
+ color: args.color ? args.color : undefined,
107
+ displayName: args.displayName ? args.displayName : undefined,
108
+ id: args.id,
109
+ });
110
+ await callbacks?.setSettings?.(args);
111
+ },
112
+ });
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accountMutators.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountMutators.test.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/accountMutators/accountMutators.test.ts"],"names":[],"mappings":""}