@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/AuthData.d.ts +4 -0
- package/dist/types/AuthData.d.ts.map +1 -0
- package/dist/types/AuthData.js +1 -0
- package/dist/types/Zero.d.ts +18 -0
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/types/Zero.js +5 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/zero/index.d.ts +164 -476
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +0 -7
- package/dist/zero/{mutators → mutatorSchemas}/account.d.ts +4 -33
- package/dist/zero/mutatorSchemas/account.d.ts.map +1 -0
- package/dist/zero/{mutators → mutatorSchemas}/account.js +4 -7
- package/dist/zero/{mutators → mutatorSchemas}/draft.d.ts +1 -1
- package/dist/zero/{mutators → mutatorSchemas}/draft.d.ts.map +1 -1
- package/dist/zero/{mutators → mutatorSchemas}/draft.js +1 -1
- package/dist/zero/mutatorSchemas/index.d.ts +5 -0
- package/dist/zero/mutatorSchemas/index.d.ts.map +1 -0
- package/dist/zero/mutatorSchemas/index.js +4 -0
- package/dist/zero/{mutators → mutatorSchemas}/thread.d.ts +13 -26
- package/dist/zero/mutatorSchemas/thread.d.ts.map +1 -0
- package/dist/zero/{mutators → mutatorSchemas}/thread.js +13 -24
- package/dist/zero/{mutators → mutatorSchemas}/user.d.ts +1 -7
- package/dist/zero/mutatorSchemas/user.d.ts.map +1 -0
- package/dist/zero/{mutators → mutatorSchemas}/user.js +1 -7
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts +8 -0
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -0
- package/dist/zero/mutators/accountMutators/accountMutators.js +112 -0
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts +2 -0
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts.map +1 -0
- package/dist/zero/mutators/accountMutators/accountMutators.test.js +390 -0
- package/dist/zero/mutators/accountMutators/index.d.ts +2 -0
- package/dist/zero/mutators/accountMutators/index.d.ts.map +1 -0
- package/dist/zero/mutators/accountMutators/index.js +1 -0
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts +8 -0
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -0
- package/dist/zero/mutators/draftMutators/draftMutators.js +162 -0
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts +2 -0
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts.map +1 -0
- package/dist/zero/mutators/draftMutators/draftMutators.test.js +390 -0
- package/dist/zero/mutators/draftMutators/index.d.ts +2 -0
- package/dist/zero/mutators/draftMutators/index.d.ts.map +1 -0
- package/dist/zero/mutators/draftMutators/index.js +1 -0
- package/dist/zero/mutators/index.d.ts +6262 -0
- package/dist/zero/mutators/index.d.ts.map +1 -0
- package/dist/zero/mutators/index.js +17 -0
- package/dist/zero/mutators/mutators.d.ts +29 -0
- package/dist/zero/mutators/mutators.d.ts.map +1 -0
- package/dist/zero/{mutators.js → mutators/mutators.js} +10 -15
- package/dist/zero/mutators/threadMutators/index.d.ts +2 -0
- package/dist/zero/mutators/threadMutators/index.d.ts.map +1 -0
- package/dist/zero/mutators/threadMutators/index.js +1 -0
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +8 -0
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -0
- package/dist/zero/mutators/threadMutators/threadMutators.js +238 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts +2 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts.map +1 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +465 -0
- package/dist/zero/mutators/userMutators/index.d.ts +2 -0
- package/dist/zero/mutators/userMutators/index.d.ts.map +1 -0
- package/dist/zero/mutators/userMutators/index.js +1 -0
- package/dist/zero/mutators/userMutators/userMutators.d.ts +8 -0
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -0
- package/dist/zero/mutators/userMutators/userMutators.js +37 -0
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts +2 -0
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts.map +1 -0
- package/dist/zero/mutators/userMutators/userMutators.test.js +123 -0
- package/dist/zero/queries/getAccounts.d.ts +27 -74
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +27 -74
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +27 -74
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +27 -74
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +27 -74
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +27 -74
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +27 -96
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +0 -31
- package/package.json +1 -1
- package/dist/zero/mutators/account.d.ts.map +0 -1
- package/dist/zero/mutators/thread.d.ts.map +0 -1
- package/dist/zero/mutators/user.d.ts.map +0 -1
- package/dist/zero/mutators.d.ts +0 -412
- package/dist/zero/mutators.d.ts.map +0 -1
- package/dist/zero/mutators.test.d.ts +0 -2
- package/dist/zero/mutators.test.d.ts.map +0 -1
- package/dist/zero/mutators.test.js +0 -33
package/dist/zero/mutators.d.ts
DELETED
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import type { Transaction } from '@rocicorp/zero';
|
|
2
|
-
import * as v from 'valibot';
|
|
3
|
-
import type { MarcoZeroSchema } from './schema';
|
|
4
|
-
type MutatorDefinition = {
|
|
5
|
-
delta: v.GenericSchema;
|
|
6
|
-
};
|
|
7
|
-
type MutatorDefinitions = Record<string, MutatorDefinition>;
|
|
8
|
-
type MutatorHandler<Schema extends v.GenericSchema> = (tx: Transaction<MarcoZeroSchema>, args: v.InferOutput<Schema>) => Promise<void>;
|
|
9
|
-
type HandlerMap<Defs extends MutatorDefinitions> = {
|
|
10
|
-
[Name in keyof Defs]: MutatorHandler<Defs[Name]['delta']>;
|
|
11
|
-
};
|
|
12
|
-
type MutatorMap<Defs extends MutatorDefinitions> = {
|
|
13
|
-
[Name in keyof Defs]: (tx: Transaction<MarcoZeroSchema>, args: v.InferInput<Defs[Name]['delta']>) => Promise<void>;
|
|
14
|
-
};
|
|
15
|
-
export declare class ZeroMutatorValidationError extends Error {
|
|
16
|
-
readonly issues: ReturnType<typeof v.flatten>;
|
|
17
|
-
constructor(issues: ReturnType<typeof v.flatten>);
|
|
18
|
-
}
|
|
19
|
-
export declare const zeroMutatorSchemas: {
|
|
20
|
-
readonly account: {
|
|
21
|
-
readonly createAccount: {
|
|
22
|
-
readonly delta: v.ObjectSchema<{
|
|
23
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
|
-
}, undefined>;
|
|
28
|
-
};
|
|
29
|
-
readonly createAlias: {
|
|
30
|
-
readonly delta: v.ObjectSchema<{
|
|
31
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
-
readonly alias: v.ObjectSchema<{
|
|
33
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
};
|
|
39
|
-
readonly deleteAccount: {
|
|
40
|
-
readonly delta: v.ObjectSchema<{
|
|
41
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
}, undefined>;
|
|
43
|
-
};
|
|
44
|
-
readonly deleteAlias: {
|
|
45
|
-
readonly delta: v.ObjectSchema<{
|
|
46
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
-
}, undefined>;
|
|
49
|
-
};
|
|
50
|
-
readonly setAliasName: {
|
|
51
|
-
readonly delta: v.ObjectSchema<{
|
|
52
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
|
-
}, undefined>;
|
|
56
|
-
};
|
|
57
|
-
readonly setAliasPrimary: {
|
|
58
|
-
readonly delta: v.ObjectSchema<{
|
|
59
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
60
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
};
|
|
63
|
-
readonly setConnectionConfigImapRaw: {
|
|
64
|
-
readonly delta: v.ObjectSchema<{
|
|
65
|
-
readonly connectionConfig: v.ObjectSchema<{
|
|
66
|
-
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
68
|
-
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
69
|
-
readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
70
|
-
readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
-
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
74
|
-
readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
75
|
-
readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
76
|
-
}, undefined>;
|
|
77
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
78
|
-
}, undefined>;
|
|
79
|
-
};
|
|
80
|
-
readonly setConnectionConfigOauth: {
|
|
81
|
-
readonly delta: v.ObjectSchema<{
|
|
82
|
-
readonly connectionConfig: v.ObjectSchema<{
|
|
83
|
-
readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
84
|
-
readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
85
|
-
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
86
|
-
}, undefined>;
|
|
87
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
88
|
-
}, undefined>;
|
|
89
|
-
};
|
|
90
|
-
readonly setSettings: {
|
|
91
|
-
readonly delta: v.ObjectSchema<{
|
|
92
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
93
|
-
readonly settings: Omit<v.ObjectSchema<{
|
|
94
|
-
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
95
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
96
|
-
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
97
|
-
readonly entries: {
|
|
98
|
-
readonly color: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
99
|
-
readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
100
|
-
};
|
|
101
|
-
readonly '~standard': v.StandardProps<{
|
|
102
|
-
color?: string | undefined;
|
|
103
|
-
name?: string | null | undefined;
|
|
104
|
-
}, {
|
|
105
|
-
color?: string | undefined;
|
|
106
|
-
name?: string | null | undefined;
|
|
107
|
-
}>;
|
|
108
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
109
|
-
color?: string | undefined;
|
|
110
|
-
name?: string | null | undefined;
|
|
111
|
-
}, v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue>;
|
|
112
|
-
readonly '~types'?: {
|
|
113
|
-
readonly input: {
|
|
114
|
-
color?: string | undefined;
|
|
115
|
-
name?: string | null | undefined;
|
|
116
|
-
};
|
|
117
|
-
readonly output: {
|
|
118
|
-
color?: string | undefined;
|
|
119
|
-
name?: string | null | undefined;
|
|
120
|
-
};
|
|
121
|
-
readonly issue: v.StringIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue;
|
|
122
|
-
} | undefined;
|
|
123
|
-
};
|
|
124
|
-
}, undefined>;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
readonly draft: {
|
|
128
|
-
readonly cancelSend: {
|
|
129
|
-
readonly delta: v.ObjectSchema<{
|
|
130
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
131
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
132
|
-
}, undefined>;
|
|
133
|
-
};
|
|
134
|
-
readonly createAttachment: {
|
|
135
|
-
readonly delta: v.ObjectSchema<{
|
|
136
|
-
readonly attachment: v.ObjectSchema<{
|
|
137
|
-
readonly failed: v.BooleanSchema<undefined>;
|
|
138
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
139
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
141
|
-
readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
142
|
-
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
143
|
-
readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
144
|
-
}, undefined>;
|
|
145
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
146
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
147
|
-
}, undefined>;
|
|
148
|
-
};
|
|
149
|
-
readonly createDraft: {
|
|
150
|
-
readonly delta: v.ObjectSchema<{
|
|
151
|
-
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
152
|
-
readonly failed: v.BooleanSchema<undefined>;
|
|
153
|
-
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
154
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
155
|
-
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
156
|
-
readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
157
|
-
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
158
|
-
readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
159
|
-
}, undefined>, undefined>;
|
|
160
|
-
readonly body: v.ObjectSchema<{
|
|
161
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
162
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
163
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
164
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
165
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
166
|
-
}, undefined>;
|
|
167
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
168
|
-
readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
169
|
-
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
170
|
-
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
171
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
172
|
-
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
173
|
-
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
174
|
-
readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
|
|
175
|
-
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
176
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
177
|
-
}, undefined>;
|
|
178
|
-
};
|
|
179
|
-
readonly deleteAttachment: {
|
|
180
|
-
readonly delta: v.ObjectSchema<{
|
|
181
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
182
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
183
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
184
|
-
}, undefined>;
|
|
185
|
-
};
|
|
186
|
-
readonly deleteDraft: {
|
|
187
|
-
readonly delta: v.ObjectSchema<{
|
|
188
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
189
|
-
}, undefined>;
|
|
190
|
-
};
|
|
191
|
-
readonly scheduleSend: {
|
|
192
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
193
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
194
|
-
readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
|
|
195
|
-
readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
196
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
197
|
-
}, undefined>, v.ObjectSchema<{
|
|
198
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
199
|
-
readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
|
|
200
|
-
readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
201
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
202
|
-
}, undefined>], undefined>;
|
|
203
|
-
};
|
|
204
|
-
readonly setContent: {
|
|
205
|
-
readonly delta: v.ObjectSchema<{
|
|
206
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
207
|
-
readonly patch: v.ArraySchema<v.ObjectSchema<{
|
|
208
|
-
readonly index: v.NumberSchema<undefined>;
|
|
209
|
-
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
210
|
-
readonly value: v.StringSchema<undefined>;
|
|
211
|
-
}, undefined>, undefined>;
|
|
212
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
213
|
-
}, undefined>;
|
|
214
|
-
};
|
|
215
|
-
readonly setEnvelope: {
|
|
216
|
-
readonly delta: v.ObjectSchema<{
|
|
217
|
-
readonly envelope: Omit<v.ObjectSchema<{
|
|
218
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
219
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
220
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
221
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
222
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
223
|
-
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
224
|
-
readonly entries: Omit<{
|
|
225
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
226
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
227
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
228
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
229
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
230
|
-
}, "content">;
|
|
231
|
-
readonly '~standard': v.StandardProps<{
|
|
232
|
-
bcc: string[];
|
|
233
|
-
cc: string[];
|
|
234
|
-
to: string[];
|
|
235
|
-
subject: string | null;
|
|
236
|
-
}, {
|
|
237
|
-
bcc: string[];
|
|
238
|
-
cc: string[];
|
|
239
|
-
to: string[];
|
|
240
|
-
subject: string | null;
|
|
241
|
-
}>;
|
|
242
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
243
|
-
bcc: string[];
|
|
244
|
-
cc: string[];
|
|
245
|
-
to: string[];
|
|
246
|
-
subject: string | null;
|
|
247
|
-
}, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
|
|
248
|
-
readonly '~types'?: {
|
|
249
|
-
readonly input: {
|
|
250
|
-
bcc: string[];
|
|
251
|
-
cc: string[];
|
|
252
|
-
to: string[];
|
|
253
|
-
subject: string | null;
|
|
254
|
-
};
|
|
255
|
-
readonly output: {
|
|
256
|
-
bcc: string[];
|
|
257
|
-
cc: string[];
|
|
258
|
-
to: string[];
|
|
259
|
-
subject: string | null;
|
|
260
|
-
};
|
|
261
|
-
readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
|
|
262
|
-
} | undefined;
|
|
263
|
-
};
|
|
264
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
265
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
266
|
-
}, undefined>;
|
|
267
|
-
};
|
|
268
|
-
readonly setFrom: {
|
|
269
|
-
readonly delta: v.ObjectSchema<{
|
|
270
|
-
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
271
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
272
|
-
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
273
|
-
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
274
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
275
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
276
|
-
}, undefined>;
|
|
277
|
-
};
|
|
278
|
-
readonly uploadAttachmentChunk: {
|
|
279
|
-
readonly delta: v.ObjectSchema<{
|
|
280
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
281
|
-
readonly chunk: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
282
|
-
readonly chunkIndex: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
283
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
284
|
-
}, undefined>;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
readonly thread: {
|
|
288
|
-
readonly addLabel: {
|
|
289
|
-
readonly delta: v.ObjectSchema<{
|
|
290
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
291
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
292
|
-
}, undefined>;
|
|
293
|
-
};
|
|
294
|
-
readonly delete: {
|
|
295
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
296
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
297
|
-
}, undefined>, v.ObjectSchema<{
|
|
298
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
299
|
-
}, undefined>], undefined>;
|
|
300
|
-
};
|
|
301
|
-
readonly removeLabel: {
|
|
302
|
-
readonly delta: v.ObjectSchema<{
|
|
303
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
304
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
305
|
-
}, undefined>;
|
|
306
|
-
};
|
|
307
|
-
readonly requestAttachmentDownload: {
|
|
308
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
309
|
-
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
310
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
311
|
-
}, undefined>, v.ObjectSchema<{
|
|
312
|
-
readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
313
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
314
|
-
}, undefined>], undefined>;
|
|
315
|
-
};
|
|
316
|
-
readonly setArchive: {
|
|
317
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
318
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
319
|
-
}, undefined>, v.ObjectSchema<{
|
|
320
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
321
|
-
}, undefined>], undefined>;
|
|
322
|
-
};
|
|
323
|
-
readonly setFlagged: {
|
|
324
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
325
|
-
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
326
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
327
|
-
}, undefined>, v.ObjectSchema<{
|
|
328
|
-
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
329
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
330
|
-
}, undefined>], undefined>;
|
|
331
|
-
};
|
|
332
|
-
readonly setInbox: {
|
|
333
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
334
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
335
|
-
}, undefined>, v.ObjectSchema<{
|
|
336
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
337
|
-
}, undefined>], undefined>;
|
|
338
|
-
};
|
|
339
|
-
readonly setSeen: {
|
|
340
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
341
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
342
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
343
|
-
}, undefined>, v.ObjectSchema<{
|
|
344
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
345
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
346
|
-
}, undefined>], undefined>;
|
|
347
|
-
};
|
|
348
|
-
readonly setSpam: {
|
|
349
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
350
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
351
|
-
}, undefined>, v.ObjectSchema<{
|
|
352
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
353
|
-
}, undefined>], undefined>;
|
|
354
|
-
};
|
|
355
|
-
readonly setTrash: {
|
|
356
|
-
readonly delta: v.UnionSchema<[v.ObjectSchema<{
|
|
357
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
358
|
-
}, undefined>, v.ObjectSchema<{
|
|
359
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
360
|
-
}, undefined>], undefined>;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
readonly user: {
|
|
364
|
-
readonly deleteSettingsPushNotificationToken: {
|
|
365
|
-
readonly delta: v.ObjectSchema<{
|
|
366
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
367
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
368
|
-
}, undefined>;
|
|
369
|
-
};
|
|
370
|
-
readonly deleteSettingsPushNotificationTokenForDevice: {
|
|
371
|
-
readonly delta: v.ObjectSchema<{
|
|
372
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
373
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
374
|
-
}, undefined>;
|
|
375
|
-
};
|
|
376
|
-
readonly setSettingsName: {
|
|
377
|
-
readonly delta: v.ObjectSchema<{
|
|
378
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
379
|
-
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
380
|
-
}, undefined>;
|
|
381
|
-
};
|
|
382
|
-
readonly setSettingsPushNotificationToken: {
|
|
383
|
-
readonly delta: v.ObjectSchema<{
|
|
384
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
385
|
-
readonly pushNotificationToken: v.ObjectSchema<{
|
|
386
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
387
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
388
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
389
|
-
}, undefined>;
|
|
390
|
-
}, undefined>;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
export type AccountMutatorHandlers = HandlerMap<typeof zeroMutatorSchemas.account>;
|
|
395
|
-
export type DraftMutatorHandlers = HandlerMap<typeof zeroMutatorSchemas.draft>;
|
|
396
|
-
export type ThreadMutatorHandlers = HandlerMap<typeof zeroMutatorSchemas.thread>;
|
|
397
|
-
export type UserMutatorHandlers = HandlerMap<typeof zeroMutatorSchemas.user>;
|
|
398
|
-
export type MarcoZeroMutatorHandlers = {
|
|
399
|
-
account: AccountMutatorHandlers;
|
|
400
|
-
draft: DraftMutatorHandlers;
|
|
401
|
-
thread: ThreadMutatorHandlers;
|
|
402
|
-
user: UserMutatorHandlers;
|
|
403
|
-
};
|
|
404
|
-
export type MarcoZeroMutators = {
|
|
405
|
-
account: MutatorMap<typeof zeroMutatorSchemas.account>;
|
|
406
|
-
draft: MutatorMap<typeof zeroMutatorSchemas.draft>;
|
|
407
|
-
thread: MutatorMap<typeof zeroMutatorSchemas.thread>;
|
|
408
|
-
user: MutatorMap<typeof zeroMutatorSchemas.user>;
|
|
409
|
-
};
|
|
410
|
-
export declare const createMutators: (handlers: MarcoZeroMutatorHandlers) => MarcoZeroMutators;
|
|
411
|
-
export {};
|
|
412
|
-
//# sourceMappingURL=mutators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,CAAC,CAAC,aAAa,CAAA;CACvB,CAAA;AAED,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAE3D,KAAK,cAAc,CAAC,MAAM,SAAS,CAAC,CAAC,aAAa,IAAI,CACpD,EAAE,EAAE,WAAW,CAAC,eAAe,CAAC,EAChC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KACxB,OAAO,CAAC,IAAI,CAAC,CAAA;AAElB,KAAK,UAAU,CAAC,IAAI,SAAS,kBAAkB,IAAI;KAChD,IAAI,IAAI,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;CAC1D,CAAA;AAED,KAAK,UAAU,CAAC,IAAI,SAAS,kBAAkB,IAAI;KAChD,IAAI,IAAI,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC;CACnH,CAAA;AA8BD,qBAAa,0BAA2B,SAAQ,KAAK;IACvC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;gBAApC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;CAG1D;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAA;AAClF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAA;AAC9E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAChF,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAA;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,oBAAoB,CAAA;IAC3B,MAAM,EAAE,qBAAqB,CAAA;IAC7B,IAAI,EAAE,mBAAmB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACtD,KAAK,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAA;IAClD,MAAM,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACpD,IAAI,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,wBAAwB,KAAG,iBAKlE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutators.test.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, mock } from 'bun:test';
|
|
2
|
-
import { createMutators, ZeroMutatorValidationError, zeroMutatorSchemas } from './mutators';
|
|
3
|
-
const createHandlers = () => ({
|
|
4
|
-
account: Object.fromEntries(Object.keys(zeroMutatorSchemas.account).map(name => [name, mock(async () => { })])),
|
|
5
|
-
draft: Object.fromEntries(Object.keys(zeroMutatorSchemas.draft).map(name => [name, mock(async () => { })])),
|
|
6
|
-
thread: Object.fromEntries(Object.keys(zeroMutatorSchemas.thread).map(name => [name, mock(async () => { })])),
|
|
7
|
-
user: Object.fromEntries(Object.keys(zeroMutatorSchemas.user).map(name => [name, mock(async () => { })])),
|
|
8
|
-
});
|
|
9
|
-
const transaction = {};
|
|
10
|
-
describe('createMutators', () => {
|
|
11
|
-
it('passes validated arguments to handlers', async () => {
|
|
12
|
-
const handlers = createHandlers();
|
|
13
|
-
const mutators = createMutators(handlers);
|
|
14
|
-
const payload = {
|
|
15
|
-
aliasId: 'alias-1',
|
|
16
|
-
color: '#ff0000',
|
|
17
|
-
emailAddress: 'user@example.com',
|
|
18
|
-
id: 'account-1',
|
|
19
|
-
};
|
|
20
|
-
await mutators.account.createAccount(transaction, payload);
|
|
21
|
-
expect(handlers.account.createAccount).toHaveBeenCalledWith(transaction, payload);
|
|
22
|
-
});
|
|
23
|
-
it('throws ZeroMutatorValidationError on invalid payloads', async () => {
|
|
24
|
-
const handlers = createHandlers();
|
|
25
|
-
const mutators = createMutators(handlers);
|
|
26
|
-
await expect(mutators.account.createAccount(transaction, {
|
|
27
|
-
aliasId: 'alias-1',
|
|
28
|
-
color: 'blue',
|
|
29
|
-
emailAddress: 'invalid-email',
|
|
30
|
-
id: 'account-1',
|
|
31
|
-
})).rejects.toBeInstanceOf(ZeroMutatorValidationError);
|
|
32
|
-
});
|
|
33
|
-
});
|