@marcoappio/marco-config 2.0.168 → 2.0.170
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/clients/account.d.ts +3 -3
- package/dist/clients/draft.d.ts +73 -5
- package/dist/clients/draft.d.ts.map +1 -1
- package/dist/clients/draft.js +34 -14
- package/dist/clients/index.d.ts +79 -11
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/user.d.ts +3 -3
- package/dist/schemas.d.ts +26 -11
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +34 -20
- package/dist/sdk/endpoints/index.d.ts +27 -7
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +27 -7
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +27 -7
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +21 -1
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +14 -2
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +27 -7
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +3 -3
- package/dist/sdk/index.d.ts +27 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/utils/stringPatch/stringPatch.d.ts +9 -0
- package/dist/utils/stringPatch/stringPatch.d.ts.map +1 -0
- package/dist/utils/stringPatch/stringPatch.js +36 -0
- package/dist/utils/stringPatch/stringPatch.test.d.ts +2 -0
- package/dist/utils/stringPatch/stringPatch.test.d.ts.map +1 -0
- package/dist/utils/stringPatch/stringPatch.test.js +101 -0
- package/package.json +4 -1
|
@@ -56,7 +56,7 @@ export declare const account: {
|
|
|
56
56
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
57
57
|
readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
58
58
|
readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
59
|
-
}, undefined>, "entries" | "~
|
|
59
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
60
60
|
readonly entries: {
|
|
61
61
|
readonly color: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
62
62
|
readonly firstName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -75,7 +75,7 @@ export declare const account: {
|
|
|
75
75
|
color?: string | undefined;
|
|
76
76
|
firstName?: string | null | undefined;
|
|
77
77
|
lastName?: string | null | undefined;
|
|
78
|
-
}, v.StringIssue | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.
|
|
78
|
+
}, v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.NonOptionalIssue>;
|
|
79
79
|
readonly '~types'?: {
|
|
80
80
|
readonly input: {
|
|
81
81
|
color?: string | undefined;
|
|
@@ -87,7 +87,7 @@ export declare const account: {
|
|
|
87
87
|
firstName?: string | null | undefined;
|
|
88
88
|
lastName?: string | null | undefined;
|
|
89
89
|
};
|
|
90
|
-
readonly issue: v.StringIssue | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.
|
|
90
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.NonOptionalIssue;
|
|
91
91
|
} | undefined;
|
|
92
92
|
};
|
|
93
93
|
}, undefined>;
|
package/dist/clients/draft.d.ts
CHANGED
|
@@ -14,23 +14,91 @@ export declare const draft: {
|
|
|
14
14
|
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
mutators: {
|
|
17
|
+
create: {
|
|
18
|
+
delta: v.ObjectSchema<{
|
|
19
|
+
readonly body: v.ObjectSchema<{
|
|
20
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
21
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
22
|
+
readonly content: v.StringSchema<undefined>;
|
|
23
|
+
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
24
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
27
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
28
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
};
|
|
17
32
|
delete: {
|
|
18
33
|
delta: v.ObjectSchema<{
|
|
19
34
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
20
35
|
}, undefined>;
|
|
21
36
|
};
|
|
22
|
-
|
|
37
|
+
setContent: {
|
|
23
38
|
delta: v.ObjectSchema<{
|
|
24
|
-
readonly
|
|
39
|
+
readonly content: v.ArraySchema<v.ObjectSchema<{
|
|
40
|
+
readonly index: v.NumberSchema<undefined>;
|
|
41
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
42
|
+
readonly value: v.StringSchema<undefined>;
|
|
43
|
+
}, undefined>, undefined>;
|
|
44
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
45
|
+
}, undefined>;
|
|
46
|
+
};
|
|
47
|
+
setEnvelope: {
|
|
48
|
+
delta: v.ObjectSchema<{
|
|
49
|
+
readonly envelope: Omit<v.ObjectSchema<{
|
|
25
50
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
26
51
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
27
52
|
readonly content: v.StringSchema<undefined>;
|
|
28
53
|
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
54
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
30
|
-
}, undefined
|
|
31
|
-
|
|
55
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
56
|
+
readonly entries: Omit<{
|
|
57
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
58
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
59
|
+
readonly content: v.StringSchema<undefined>;
|
|
60
|
+
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
61
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
62
|
+
}, "content">;
|
|
63
|
+
readonly '~standard': v.StandardSchemaProps<{
|
|
64
|
+
bcc: string[];
|
|
65
|
+
cc: string[];
|
|
66
|
+
to: string[];
|
|
67
|
+
subject: string;
|
|
68
|
+
}, {
|
|
69
|
+
bcc: string[];
|
|
70
|
+
cc: string[];
|
|
71
|
+
to: string[];
|
|
72
|
+
subject: string;
|
|
73
|
+
}>;
|
|
74
|
+
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
75
|
+
bcc: string[];
|
|
76
|
+
cc: string[];
|
|
77
|
+
to: string[];
|
|
78
|
+
subject: string;
|
|
79
|
+
}, v.StringIssue | v.ObjectIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.ArrayIssue>;
|
|
80
|
+
readonly '~types'?: {
|
|
81
|
+
readonly input: {
|
|
82
|
+
bcc: string[];
|
|
83
|
+
cc: string[];
|
|
84
|
+
to: string[];
|
|
85
|
+
subject: string;
|
|
86
|
+
};
|
|
87
|
+
readonly output: {
|
|
88
|
+
bcc: string[];
|
|
89
|
+
cc: string[];
|
|
90
|
+
to: string[];
|
|
91
|
+
subject: string;
|
|
92
|
+
};
|
|
93
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.ArrayIssue;
|
|
94
|
+
} | undefined;
|
|
95
|
+
};
|
|
96
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
};
|
|
99
|
+
setStatus: {
|
|
100
|
+
delta: v.ObjectSchema<{
|
|
32
101
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
33
|
-
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
102
|
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
35
103
|
}, undefined>;
|
|
36
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA2B5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCK,CAAA"}
|
package/dist/clients/draft.js
CHANGED
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoSchemas } from '../schemas';
|
|
3
|
+
const draftStatusSchema = v.union([
|
|
4
|
+
v.literal('DRAFT'),
|
|
5
|
+
v.literal('SENDING'),
|
|
6
|
+
v.literal('SENDING_FAILED'),
|
|
7
|
+
]);
|
|
8
|
+
const bodySchema = v.object({
|
|
9
|
+
bcc: v.array(marcoSchemas.string.email()),
|
|
10
|
+
cc: v.array(marcoSchemas.string.email()),
|
|
11
|
+
content: v.string(),
|
|
12
|
+
subject: marcoSchemas.string.required(),
|
|
13
|
+
to: v.array(marcoSchemas.string.email()),
|
|
14
|
+
});
|
|
3
15
|
const draftSchema = v.object({
|
|
4
|
-
body:
|
|
5
|
-
bcc: v.array(marcoSchemas.string.email()),
|
|
6
|
-
cc: v.array(marcoSchemas.string.email()),
|
|
7
|
-
content: v.string(),
|
|
8
|
-
subject: marcoSchemas.string.required(),
|
|
9
|
-
to: v.array(marcoSchemas.string.email()),
|
|
10
|
-
}),
|
|
16
|
+
body: bodySchema,
|
|
11
17
|
emailAccountId: marcoSchemas.string.uuid(),
|
|
12
18
|
id: marcoSchemas.string.uuid(),
|
|
13
19
|
referencedMessageId: marcoSchemas.string.nullable(),
|
|
14
|
-
status:
|
|
15
|
-
v.literal('DRAFT'),
|
|
16
|
-
v.literal('SENDING'),
|
|
17
|
-
v.literal('SENDING_FAILED'),
|
|
18
|
-
]),
|
|
20
|
+
status: draftStatusSchema,
|
|
19
21
|
});
|
|
20
22
|
export const draft = {
|
|
21
23
|
model: draftSchema,
|
|
22
24
|
mutators: {
|
|
25
|
+
create: {
|
|
26
|
+
delta: draftSchema,
|
|
27
|
+
},
|
|
23
28
|
delete: {
|
|
24
29
|
delta: v.object({
|
|
25
30
|
id: marcoSchemas.string.uuid(),
|
|
26
31
|
}),
|
|
27
32
|
},
|
|
28
|
-
|
|
29
|
-
delta:
|
|
33
|
+
setContent: {
|
|
34
|
+
delta: v.object({
|
|
35
|
+
content: marcoSchemas.drafts.contentPatch.patch(),
|
|
36
|
+
id: marcoSchemas.string.uuid(),
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
setEnvelope: {
|
|
40
|
+
delta: v.object({
|
|
41
|
+
envelope: v.omit(bodySchema, ['content']),
|
|
42
|
+
id: marcoSchemas.string.uuid(),
|
|
43
|
+
}),
|
|
44
|
+
},
|
|
45
|
+
setStatus: {
|
|
46
|
+
delta: v.object({
|
|
47
|
+
id: marcoSchemas.string.uuid(),
|
|
48
|
+
status: draftStatusSchema,
|
|
49
|
+
}),
|
|
30
50
|
},
|
|
31
51
|
},
|
|
32
52
|
name: 'draft',
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare const marcoClients: {
|
|
|
57
57
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
58
58
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
59
59
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
60
|
-
}, undefined>, "entries" | "~
|
|
60
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
61
61
|
readonly entries: {
|
|
62
62
|
readonly color: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
63
63
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -76,7 +76,7 @@ export declare const marcoClients: {
|
|
|
76
76
|
color?: string | undefined;
|
|
77
77
|
firstName?: string | null | undefined;
|
|
78
78
|
lastName?: string | null | undefined;
|
|
79
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
79
|
+
}, import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue>;
|
|
80
80
|
readonly '~types'?: {
|
|
81
81
|
readonly input: {
|
|
82
82
|
color?: string | undefined;
|
|
@@ -88,7 +88,7 @@ export declare const marcoClients: {
|
|
|
88
88
|
firstName?: string | null | undefined;
|
|
89
89
|
lastName?: string | null | undefined;
|
|
90
90
|
};
|
|
91
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
91
|
+
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue;
|
|
92
92
|
} | undefined;
|
|
93
93
|
};
|
|
94
94
|
}, undefined>;
|
|
@@ -126,23 +126,91 @@ export declare const marcoClients: {
|
|
|
126
126
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
127
127
|
}, undefined>;
|
|
128
128
|
mutators: {
|
|
129
|
+
create: {
|
|
130
|
+
delta: import("valibot").ObjectSchema<{
|
|
131
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
132
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
133
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
134
|
+
readonly content: import("valibot").StringSchema<undefined>;
|
|
135
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
136
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
139
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
140
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
141
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
};
|
|
129
144
|
delete: {
|
|
130
145
|
delta: import("valibot").ObjectSchema<{
|
|
131
146
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
132
147
|
}, undefined>;
|
|
133
148
|
};
|
|
134
|
-
|
|
149
|
+
setContent: {
|
|
135
150
|
delta: import("valibot").ObjectSchema<{
|
|
136
|
-
readonly
|
|
151
|
+
readonly content: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
152
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
153
|
+
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"INSERTION", undefined>, import("valibot").LiteralSchema<"DELETION", undefined>], undefined>;
|
|
154
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
155
|
+
}, undefined>, undefined>;
|
|
156
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
157
|
+
}, undefined>;
|
|
158
|
+
};
|
|
159
|
+
setEnvelope: {
|
|
160
|
+
delta: import("valibot").ObjectSchema<{
|
|
161
|
+
readonly envelope: Omit<import("valibot").ObjectSchema<{
|
|
137
162
|
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
138
163
|
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
139
164
|
readonly content: import("valibot").StringSchema<undefined>;
|
|
140
165
|
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
141
166
|
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
142
|
-
}, undefined
|
|
143
|
-
|
|
167
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
168
|
+
readonly entries: Omit<{
|
|
169
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
170
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
171
|
+
readonly content: import("valibot").StringSchema<undefined>;
|
|
172
|
+
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
173
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
174
|
+
}, "content">;
|
|
175
|
+
readonly '~standard': import("valibot").StandardSchemaProps<{
|
|
176
|
+
bcc: string[];
|
|
177
|
+
cc: string[];
|
|
178
|
+
to: string[];
|
|
179
|
+
subject: string;
|
|
180
|
+
}, {
|
|
181
|
+
bcc: string[];
|
|
182
|
+
cc: string[];
|
|
183
|
+
to: string[];
|
|
184
|
+
subject: string;
|
|
185
|
+
}>;
|
|
186
|
+
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
187
|
+
bcc: string[];
|
|
188
|
+
cc: string[];
|
|
189
|
+
to: string[];
|
|
190
|
+
subject: string;
|
|
191
|
+
}, import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
|
|
192
|
+
readonly '~types'?: {
|
|
193
|
+
readonly input: {
|
|
194
|
+
bcc: string[];
|
|
195
|
+
cc: string[];
|
|
196
|
+
to: string[];
|
|
197
|
+
subject: string;
|
|
198
|
+
};
|
|
199
|
+
readonly output: {
|
|
200
|
+
bcc: string[];
|
|
201
|
+
cc: string[];
|
|
202
|
+
to: string[];
|
|
203
|
+
subject: string;
|
|
204
|
+
};
|
|
205
|
+
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
|
|
206
|
+
} | undefined;
|
|
207
|
+
};
|
|
208
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
209
|
+
}, undefined>;
|
|
210
|
+
};
|
|
211
|
+
setStatus: {
|
|
212
|
+
delta: import("valibot").ObjectSchema<{
|
|
144
213
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
145
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
146
214
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
147
215
|
}, undefined>;
|
|
148
216
|
};
|
|
@@ -215,7 +283,7 @@ export declare const marcoClients: {
|
|
|
215
283
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
216
284
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
217
285
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
218
|
-
}, undefined>, "entries" | "~
|
|
286
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
219
287
|
readonly entries: {
|
|
220
288
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
221
289
|
readonly lastName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -230,7 +298,7 @@ export declare const marcoClients: {
|
|
|
230
298
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
231
299
|
firstName?: string | null | undefined;
|
|
232
300
|
lastName?: string | null | undefined;
|
|
233
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
301
|
+
}, import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255>>;
|
|
234
302
|
readonly '~types'?: {
|
|
235
303
|
readonly input: {
|
|
236
304
|
firstName?: string | null | undefined;
|
|
@@ -240,7 +308,7 @@ export declare const marcoClients: {
|
|
|
240
308
|
firstName?: string | null | undefined;
|
|
241
309
|
lastName?: string | null | undefined;
|
|
242
310
|
};
|
|
243
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
311
|
+
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255>;
|
|
244
312
|
} | undefined;
|
|
245
313
|
};
|
|
246
314
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
|
package/dist/clients/user.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const user: {
|
|
|
14
14
|
readonly settings: Omit<v.ObjectSchema<{
|
|
15
15
|
readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
16
|
readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
17
|
-
}, undefined>, "entries" | "~
|
|
17
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
18
18
|
readonly entries: {
|
|
19
19
|
readonly firstName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
20
20
|
readonly lastName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -29,7 +29,7 @@ export declare const user: {
|
|
|
29
29
|
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
30
30
|
firstName?: string | null | undefined;
|
|
31
31
|
lastName?: string | null | undefined;
|
|
32
|
-
}, v.StringIssue | v.MaxLengthIssue<string, 255
|
|
32
|
+
}, v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, 255>>;
|
|
33
33
|
readonly '~types'?: {
|
|
34
34
|
readonly input: {
|
|
35
35
|
firstName?: string | null | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const user: {
|
|
|
39
39
|
firstName?: string | null | undefined;
|
|
40
40
|
lastName?: string | null | undefined;
|
|
41
41
|
};
|
|
42
|
-
readonly issue: v.StringIssue | v.MaxLengthIssue<string, 255
|
|
42
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, 255>;
|
|
43
43
|
} | undefined;
|
|
44
44
|
};
|
|
45
45
|
}, undefined>;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
1
2
|
export declare const marcoSchemas: {
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
drafts: {
|
|
4
|
+
contentPatch: {
|
|
5
|
+
instruction: () => v.ObjectSchema<{
|
|
6
|
+
readonly index: v.NumberSchema<undefined>;
|
|
7
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
8
|
+
readonly value: v.StringSchema<undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
patch: () => v.ArraySchema<v.ObjectSchema<{
|
|
11
|
+
readonly index: v.NumberSchema<undefined>;
|
|
12
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
13
|
+
readonly value: v.StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
emailAccountConnectionState: () => v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
|
|
18
|
+
labelSpecialUse: () => v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
|
|
4
19
|
number: {
|
|
5
|
-
minMax: (min: number, max: number) =>
|
|
6
|
-
positiveInteger: () =>
|
|
20
|
+
minMax: (min: number, max: number) => v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
21
|
+
positiveInteger: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
22
|
};
|
|
8
23
|
string: {
|
|
9
|
-
email: () =>
|
|
10
|
-
enum: (values: Record<string, string>) =>
|
|
11
|
-
matches: (regex: RegExp) =>
|
|
12
|
-
nullable: () =>
|
|
13
|
-
optional: () =>
|
|
14
|
-
required: () =>
|
|
15
|
-
uuid: () =>
|
|
24
|
+
email: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
25
|
+
enum: (values: Record<string, string>) => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EnumSchema<Record<string, string>, undefined>]>, undefined>;
|
|
26
|
+
matches: (regex: RegExp) => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
27
|
+
nullable: () => v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
optional: () => v.UndefinedableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
required: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
uuid: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
16
31
|
};
|
|
17
32
|
};
|
|
18
33
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;sBAoBP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;;;CAW1B,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
const patchInstructionSchema = v.object({
|
|
3
|
+
index: v.number(),
|
|
4
|
+
type: v.union([
|
|
5
|
+
v.literal('INSERTION'),
|
|
6
|
+
v.literal('DELETION'),
|
|
7
|
+
]),
|
|
8
|
+
value: v.string(),
|
|
9
|
+
});
|
|
2
10
|
export const marcoSchemas = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
drafts: {
|
|
12
|
+
contentPatch: {
|
|
13
|
+
instruction: () => patchInstructionSchema,
|
|
14
|
+
patch: () => v.array(patchInstructionSchema),
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
emailAccountConnectionState: () => v.union([
|
|
18
|
+
v.literal('AWAITING_CONNECTION'),
|
|
19
|
+
v.literal('CONNECTED'),
|
|
20
|
+
v.literal('CONNECTION_FAILED'),
|
|
7
21
|
]),
|
|
8
|
-
labelSpecialUse: () => union([
|
|
9
|
-
literal('ARCHIVE'),
|
|
10
|
-
literal('INBOX'),
|
|
11
|
-
literal('SENT'),
|
|
12
|
-
literal('SPAM'),
|
|
13
|
-
literal('TRASH'),
|
|
22
|
+
labelSpecialUse: () => v.union([
|
|
23
|
+
v.literal('ARCHIVE'),
|
|
24
|
+
v.literal('INBOX'),
|
|
25
|
+
v.literal('SENT'),
|
|
26
|
+
v.literal('SPAM'),
|
|
27
|
+
v.literal('TRASH'),
|
|
14
28
|
]),
|
|
15
29
|
number: {
|
|
16
|
-
minMax: (min, max) => nonOptional(pipe(number(), minValue(min), maxValue(max))),
|
|
17
|
-
positiveInteger: () => nonOptional(pipe(number(), integer(), minValue(0))),
|
|
30
|
+
minMax: (min, max) => v.nonOptional(v.pipe(v.number(), v.minValue(min), v.maxValue(max))),
|
|
31
|
+
positiveInteger: () => v.nonOptional(v.pipe(v.number(), v.integer(), v.minValue(0))),
|
|
18
32
|
},
|
|
19
33
|
string: {
|
|
20
|
-
email: () => nonOptional(pipe(string(), email(), maxLength(255))),
|
|
21
|
-
enum: (values) => nonOptional(pipe(string(),
|
|
22
|
-
matches: (regex) => nonOptional(pipe(string(),
|
|
23
|
-
nullable: () => nullable(pipe(string(), maxLength(255))),
|
|
24
|
-
optional: () => undefinedable(pipe(string(), maxLength(255))),
|
|
25
|
-
required: () => nonOptional(pipe(string(), nonEmpty(), maxLength(255))),
|
|
26
|
-
uuid: () => nonOptional(pipe(string(), nonEmpty(), uuid())),
|
|
34
|
+
email: () => v.nonOptional(v.pipe(v.string(), v.email(), v.maxLength(255))),
|
|
35
|
+
enum: (values) => v.nonOptional(v.pipe(v.string(), v.enum(values))),
|
|
36
|
+
matches: (regex) => v.nonOptional(v.pipe(v.string(), v.regex(regex))),
|
|
37
|
+
nullable: () => v.nullable(v.pipe(v.string(), v.maxLength(255))),
|
|
38
|
+
optional: () => v.undefinedable(v.pipe(v.string(), v.maxLength(255))),
|
|
39
|
+
required: () => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(255))),
|
|
40
|
+
uuid: () => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.uuid())),
|
|
27
41
|
},
|
|
28
42
|
};
|
|
@@ -275,7 +275,7 @@ export declare const endpoints: {
|
|
|
275
275
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
276
276
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
277
277
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
278
|
-
}, undefined>, "entries" | "~
|
|
278
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
279
279
|
readonly entries: {
|
|
280
280
|
readonly color: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
281
281
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -294,7 +294,7 @@ export declare const endpoints: {
|
|
|
294
294
|
color?: string | undefined;
|
|
295
295
|
firstName?: string | null | undefined;
|
|
296
296
|
lastName?: string | null | undefined;
|
|
297
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
297
|
+
}, import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue>;
|
|
298
298
|
readonly '~types'?: {
|
|
299
299
|
readonly input: {
|
|
300
300
|
color?: string | undefined;
|
|
@@ -306,7 +306,7 @@ export declare const endpoints: {
|
|
|
306
306
|
firstName?: string | null | undefined;
|
|
307
307
|
lastName?: string | null | undefined;
|
|
308
308
|
};
|
|
309
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
309
|
+
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").NonOptionalIssue;
|
|
310
310
|
} | undefined;
|
|
311
311
|
};
|
|
312
312
|
}, undefined>;
|
|
@@ -348,7 +348,27 @@ export declare const endpoints: {
|
|
|
348
348
|
}, undefined>;
|
|
349
349
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
350
350
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
351
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
351
|
+
readonly name: import("valibot").LiteralSchema<"create", undefined>;
|
|
352
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
353
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
354
|
+
readonly content: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
355
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
356
|
+
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"INSERTION", undefined>, import("valibot").LiteralSchema<"DELETION", undefined>], undefined>;
|
|
357
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
358
|
+
}, undefined>, undefined>;
|
|
359
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
360
|
+
}, undefined>;
|
|
361
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
362
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
363
|
+
readonly name: import("valibot").LiteralSchema<"setContent", undefined>;
|
|
364
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
365
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
366
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
367
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
368
|
+
}, undefined>;
|
|
369
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
370
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
371
|
+
readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
|
|
352
372
|
}, undefined>], undefined>, undefined>;
|
|
353
373
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
354
374
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -391,7 +411,7 @@ export declare const endpoints: {
|
|
|
391
411
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
392
412
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
393
413
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
394
|
-
}, undefined>, "entries" | "~
|
|
414
|
+
}, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
|
|
395
415
|
readonly entries: {
|
|
396
416
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
397
417
|
readonly lastName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
@@ -406,7 +426,7 @@ export declare const endpoints: {
|
|
|
406
426
|
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
407
427
|
firstName?: string | null | undefined;
|
|
408
428
|
lastName?: string | null | undefined;
|
|
409
|
-
}, import("valibot").StringIssue | import("valibot").
|
|
429
|
+
}, import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255>>;
|
|
410
430
|
readonly '~types'?: {
|
|
411
431
|
readonly input: {
|
|
412
432
|
firstName?: string | null | undefined;
|
|
@@ -416,7 +436,7 @@ export declare const endpoints: {
|
|
|
416
436
|
firstName?: string | null | undefined;
|
|
417
437
|
lastName?: string | null | undefined;
|
|
418
438
|
};
|
|
419
|
-
readonly issue: import("valibot").StringIssue | import("valibot").
|
|
439
|
+
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, 255>;
|
|
420
440
|
} | undefined;
|
|
421
441
|
};
|
|
422
442
|
}, undefined>;
|