@marcoappio/marco-config 11.0.2 → 11.0.4
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/constants/index.d.ts +5 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/tasks.d.ts +6 -0
- package/dist/constants/tasks.d.ts.map +1 -0
- package/dist/constants/tasks.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/id.d.ts +10 -0
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +2 -0
- package/dist/schemas/index.d.ts +91 -3
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/models/index.d.ts +1 -0
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -0
- package/dist/schemas/models/task.d.ts +44 -0
- package/dist/schemas/models/task.d.ts.map +1 -0
- package/dist/schemas/models/task.js +38 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +41 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +49 -0
- package/dist/schemas/websocket.d.ts +2 -2
- package/dist/sdk/endpoints/index.d.ts +32 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.js +2 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +28 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.js +17 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +52 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.js +23 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts +3 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +54 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.js +20 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts +8 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/index.js +7 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.js +19 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +1 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +30 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.js +19 -0
- package/dist/sdk/endpoints/public/index.d.ts +30 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +44 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +24 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +10 -0
- package/dist/sdk/validation/index.d.ts +12 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/PokeEvent.d.ts +1 -1
- package/dist/types/PokeEvent.d.ts.map +1 -1
- package/dist/types/PokeEvent.js +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,11 @@ export declare const marcoConstants: {
|
|
|
42
42
|
};
|
|
43
43
|
readonly redirectPath: "/v1/wh/oauth/callback";
|
|
44
44
|
};
|
|
45
|
+
tasks: {
|
|
46
|
+
excerptTextMaxLength: number;
|
|
47
|
+
noteBodyMaxLength: number;
|
|
48
|
+
titleMaxLength: number;
|
|
49
|
+
};
|
|
45
50
|
user: {
|
|
46
51
|
profilePicture: {
|
|
47
52
|
allowedMimeTypes: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1B,CAAA"}
|
package/dist/constants/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { emailAccounts } from './emailAccounts';
|
|
|
3
3
|
import { emailProvider } from './emailProvider';
|
|
4
4
|
import { messages } from './messages';
|
|
5
5
|
import { oauth } from './oauth';
|
|
6
|
+
import { tasks } from './tasks';
|
|
6
7
|
import { user } from './user';
|
|
7
8
|
export const marcoConstants = {
|
|
8
9
|
api,
|
|
@@ -10,5 +11,6 @@ export const marcoConstants = {
|
|
|
10
11
|
emailProvider,
|
|
11
12
|
messages,
|
|
12
13
|
oauth,
|
|
14
|
+
tasks,
|
|
13
15
|
user,
|
|
14
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/constants/tasks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAIjB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
2
|
export { MARCO_ENV, type MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
3
|
-
export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type LabelId, type LabelMove, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
|
|
3
|
+
export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type LabelId, type LabelMove, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Task, type TaskId, type TaskNote, type TaskNoteId, type TaskSource, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
|
|
4
4
|
export { marcoSDK } from './sdk';
|
|
5
5
|
export * from './types';
|
|
6
6
|
export { accountUtils, labelUtils, threadsUtils } from './utils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/schemas/id.d.ts
CHANGED
|
@@ -36,6 +36,14 @@ export declare const id: {
|
|
|
36
36
|
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
37
37
|
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
38
38
|
};
|
|
39
|
+
taskId: {
|
|
40
|
+
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
41
|
+
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
42
|
+
};
|
|
43
|
+
taskNoteId: {
|
|
44
|
+
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
45
|
+
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
46
|
+
};
|
|
39
47
|
threadId: {
|
|
40
48
|
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
41
49
|
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
@@ -58,6 +66,8 @@ export type LabelId = v.InferOutput<ReturnType<typeof id.labelId.required>>;
|
|
|
58
66
|
export type MessageId = v.InferOutput<ReturnType<typeof id.messageId.required>>;
|
|
59
67
|
export type PushNotificationTokenId = v.InferOutput<ReturnType<typeof id.pushNotificationTokenId.required>>;
|
|
60
68
|
export type RecipientId = v.InferOutput<ReturnType<typeof id.recipientId.required>>;
|
|
69
|
+
export type TaskId = v.InferOutput<ReturnType<typeof id.taskId.required>>;
|
|
70
|
+
export type TaskNoteId = v.InferOutput<ReturnType<typeof id.taskNoteId.required>>;
|
|
61
71
|
export type ThreadId = v.InferOutput<ReturnType<typeof id.threadId.required>>;
|
|
62
72
|
export type UserId = v.InferOutput<ReturnType<typeof id.userId.required>>;
|
|
63
73
|
export type ViewId = v.InferOutput<ReturnType<typeof id.viewId.required>>;
|
package/dist/schemas/id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/schemas/id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/schemas/id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC/E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAA;AACrF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC/E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC/E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC3G,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;AACnF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAA;AACjF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC7E,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA"}
|
package/dist/schemas/id.js
CHANGED
|
@@ -13,6 +13,8 @@ export const id = {
|
|
|
13
13
|
messageId: brandedId('MessageId'),
|
|
14
14
|
pushNotificationTokenId: brandedId('PushNotificationTokenId'),
|
|
15
15
|
recipientId: brandedId('RecipientId'),
|
|
16
|
+
taskId: brandedId('TaskId'),
|
|
17
|
+
taskNoteId: brandedId('TaskNoteId'),
|
|
16
18
|
threadId: brandedId('ThreadId'),
|
|
17
19
|
userId: brandedId('UserId'),
|
|
18
20
|
viewId: brandedId('ViewId'),
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, ThreadId, UserId, ViewId, } from './id';
|
|
2
|
-
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, LabelMove, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
1
|
+
export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, TaskId, TaskNoteId, ThreadId, UserId, ViewId, } from './id';
|
|
2
|
+
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, LabelMove, Task, TaskNote, TaskSource, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
3
3
|
export { mutatorSchemas } from './mutators';
|
|
4
4
|
export declare const marcoSchemas: {
|
|
5
5
|
app: {
|
|
@@ -73,6 +73,14 @@ export declare const marcoSchemas: {
|
|
|
73
73
|
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RecipientId">]>, undefined>;
|
|
74
74
|
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "RecipientId">]>, undefined>;
|
|
75
75
|
};
|
|
76
|
+
taskId: {
|
|
77
|
+
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
78
|
+
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
79
|
+
};
|
|
80
|
+
taskNoteId: {
|
|
81
|
+
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
82
|
+
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
83
|
+
};
|
|
76
84
|
threadId: {
|
|
77
85
|
nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
78
86
|
required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
@@ -237,6 +245,45 @@ export declare const marcoSchemas: {
|
|
|
237
245
|
readonly mutationToken: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
238
246
|
readonly target: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
239
247
|
}, undefined>], undefined>;
|
|
248
|
+
taskNoteSchema: import("valibot").ObjectSchema<{
|
|
249
|
+
readonly body: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
250
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
251
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
252
|
+
readonly taskId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
253
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
254
|
+
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
|
|
255
|
+
}, undefined>;
|
|
256
|
+
taskSchema: import("valibot").ObjectSchema<{
|
|
257
|
+
readonly completedAt: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
258
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
259
|
+
readonly dueAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
260
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
261
|
+
readonly source: import("valibot").VariantSchema<"kind", [import("valibot").ObjectSchema<{
|
|
262
|
+
readonly kind: import("valibot").LiteralSchema<"thread", undefined>;
|
|
263
|
+
readonly threadId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
264
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
265
|
+
readonly kind: import("valibot").LiteralSchema<"excerpt", undefined>;
|
|
266
|
+
readonly messageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
|
|
267
|
+
readonly text: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
268
|
+
readonly threadId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
269
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
270
|
+
readonly kind: import("valibot").LiteralSchema<"none", undefined>;
|
|
271
|
+
}, undefined>], undefined>;
|
|
272
|
+
readonly title: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
273
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
274
|
+
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
|
|
275
|
+
}, undefined>;
|
|
276
|
+
taskSourceSchema: import("valibot").VariantSchema<"kind", [import("valibot").ObjectSchema<{
|
|
277
|
+
readonly kind: import("valibot").LiteralSchema<"thread", undefined>;
|
|
278
|
+
readonly threadId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
279
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
280
|
+
readonly kind: import("valibot").LiteralSchema<"excerpt", undefined>;
|
|
281
|
+
readonly messageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
|
|
282
|
+
readonly text: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
283
|
+
readonly threadId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
284
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
285
|
+
readonly kind: import("valibot").LiteralSchema<"none", undefined>;
|
|
286
|
+
}, undefined>], undefined>;
|
|
240
287
|
threadListSchema: import("valibot").StrictObjectSchema<{
|
|
241
288
|
accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
242
289
|
flagged: import("valibot").BooleanSchema<undefined>;
|
|
@@ -630,6 +677,47 @@ export declare const marcoSchemas: {
|
|
|
630
677
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
631
678
|
}, undefined>;
|
|
632
679
|
};
|
|
680
|
+
task: {
|
|
681
|
+
createNote: import("valibot").ObjectSchema<{
|
|
682
|
+
readonly body: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
683
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
684
|
+
readonly taskId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
685
|
+
}, undefined>;
|
|
686
|
+
createTask: import("valibot").ObjectSchema<{
|
|
687
|
+
readonly dueAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
688
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
689
|
+
readonly source: import("valibot").VariantSchema<"kind", [import("valibot").ObjectSchema<{
|
|
690
|
+
readonly kind: import("valibot").LiteralSchema<"thread", undefined>;
|
|
691
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
|
|
692
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
693
|
+
readonly kind: import("valibot").LiteralSchema<"excerpt", undefined>;
|
|
694
|
+
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
|
|
695
|
+
readonly text: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
696
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
697
|
+
readonly kind: import("valibot").LiteralSchema<"none", undefined>;
|
|
698
|
+
}, undefined>], undefined>;
|
|
699
|
+
readonly title: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
700
|
+
}, undefined>;
|
|
701
|
+
deleteNote: import("valibot").ObjectSchema<{
|
|
702
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
703
|
+
}, undefined>;
|
|
704
|
+
deleteTask: import("valibot").ObjectSchema<{
|
|
705
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
706
|
+
}, undefined>;
|
|
707
|
+
setCompleted: import("valibot").ObjectSchema<{
|
|
708
|
+
readonly completed: import("valibot").BooleanSchema<undefined>;
|
|
709
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
710
|
+
}, undefined>;
|
|
711
|
+
updateNote: import("valibot").ObjectSchema<{
|
|
712
|
+
readonly body: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>;
|
|
713
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
714
|
+
}, undefined>;
|
|
715
|
+
updateTask: import("valibot").ObjectSchema<{
|
|
716
|
+
readonly dueAt: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
717
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "TaskId">]>, undefined>;
|
|
718
|
+
readonly title: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
719
|
+
}, undefined>;
|
|
720
|
+
};
|
|
633
721
|
thread: {
|
|
634
722
|
addLabel: import("valibot").ObjectSchema<{
|
|
635
723
|
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
@@ -767,7 +855,7 @@ export declare const marcoSchemas: {
|
|
|
767
855
|
pokeEvent: import("valibot").LooseObjectSchema<{
|
|
768
856
|
readonly event: import("valibot").LiteralSchema<"poke", undefined>;
|
|
769
857
|
readonly ids: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
770
|
-
readonly model: import("valibot").PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
|
|
858
|
+
readonly model: import("valibot").PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "task", "taskNote"], undefined>;
|
|
771
859
|
}, undefined>;
|
|
772
860
|
};
|
|
773
861
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAkCA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCxB,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { boolean } from './boolean';
|
|
|
4
4
|
import { emailAccount } from './emailAccount';
|
|
5
5
|
import { id } from './id';
|
|
6
6
|
import { labels } from './labels';
|
|
7
|
-
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, labelMoveSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
7
|
+
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, labelMoveSchema, taskNoteSchema, taskSchema, taskSourceSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
8
8
|
import { mutatorSchemas } from './mutators';
|
|
9
9
|
import { number } from './number';
|
|
10
10
|
import { oauth } from './oauth';
|
|
@@ -28,6 +28,9 @@ export const marcoSchemas = {
|
|
|
28
28
|
draftBodySchema,
|
|
29
29
|
draftSchema,
|
|
30
30
|
labelMoveSchema,
|
|
31
|
+
taskNoteSchema,
|
|
32
|
+
taskSchema,
|
|
33
|
+
taskSourceSchema,
|
|
31
34
|
threadListSchema,
|
|
32
35
|
threadMessageAttachmentSchema,
|
|
33
36
|
threadMessageRecipientSchema,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
2
|
export { type Contact, contactSchema } from './contact';
|
|
3
3
|
export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { type Task, type TaskNote, type TaskSource, taskNoteSchema, taskSchema, taskSourceSchema, } from './task';
|
|
4
5
|
export { type LabelMove, labelMoveSchema, type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
5
6
|
export { type User, type UserPushNotificationToken, type UserView, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,SAAS,EACd,eAAe,EACf,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,QAAQ,CAAA;AACf,OAAO,EACL,KAAK,SAAS,EACd,eAAe,EACf,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
2
|
export { contactSchema } from './contact';
|
|
3
3
|
export { draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { taskNoteSchema, taskSchema, taskSourceSchema, } from './task';
|
|
4
5
|
export { labelMoveSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
5
6
|
export { userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const taskSourceSchema: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
3
|
+
readonly kind: v.LiteralSchema<"thread", undefined>;
|
|
4
|
+
readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
5
|
+
}, undefined>, v.ObjectSchema<{
|
|
6
|
+
readonly kind: v.LiteralSchema<"excerpt", undefined>;
|
|
7
|
+
readonly messageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
8
|
+
readonly text: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
+
readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
10
|
+
}, undefined>, v.ObjectSchema<{
|
|
11
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
12
|
+
}, undefined>], undefined>;
|
|
13
|
+
export declare const taskSchema: v.ObjectSchema<{
|
|
14
|
+
readonly completedAt: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
15
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
16
|
+
readonly dueAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
17
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
18
|
+
readonly source: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
19
|
+
readonly kind: v.LiteralSchema<"thread", undefined>;
|
|
20
|
+
readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
21
|
+
}, undefined>, v.ObjectSchema<{
|
|
22
|
+
readonly kind: v.LiteralSchema<"excerpt", undefined>;
|
|
23
|
+
readonly messageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
24
|
+
readonly text: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
+
readonly threadId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
28
|
+
}, undefined>], undefined>;
|
|
29
|
+
readonly title: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
31
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
export declare const taskNoteSchema: v.ObjectSchema<{
|
|
34
|
+
readonly body: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
36
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
37
|
+
readonly taskId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
38
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
39
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
export type Task = v.InferOutput<typeof taskSchema>;
|
|
42
|
+
export type TaskNote = v.InferOutput<typeof taskNoteSchema>;
|
|
43
|
+
export type TaskSource = v.InferOutput<typeof taskSourceSchema>;
|
|
44
|
+
//# sourceMappingURL=task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,gBAAgB;;;;;;;;;;0BAc3B,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;aASrB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;aAOzB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { tasks } from '../../constants/tasks';
|
|
3
|
+
import { id } from '../../schemas/id';
|
|
4
|
+
import { number } from '../../schemas/number';
|
|
5
|
+
import { string } from '../../schemas/string';
|
|
6
|
+
export const taskSourceSchema = v.variant('kind', [
|
|
7
|
+
v.object({
|
|
8
|
+
kind: v.literal('thread'),
|
|
9
|
+
threadId: id.threadId.nullable(),
|
|
10
|
+
}),
|
|
11
|
+
v.object({
|
|
12
|
+
kind: v.literal('excerpt'),
|
|
13
|
+
messageId: id.messageId.nullable(),
|
|
14
|
+
text: string.required(tasks.excerptTextMaxLength),
|
|
15
|
+
threadId: id.threadId.nullable(),
|
|
16
|
+
}),
|
|
17
|
+
v.object({
|
|
18
|
+
kind: v.literal('none'),
|
|
19
|
+
}),
|
|
20
|
+
]);
|
|
21
|
+
export const taskSchema = v.object({
|
|
22
|
+
completedAt: v.nullable(number.positiveInteger()),
|
|
23
|
+
createdAt: number.positiveInteger(),
|
|
24
|
+
dueAt: number.positiveInteger(),
|
|
25
|
+
id: id.taskId.required(),
|
|
26
|
+
source: taskSourceSchema,
|
|
27
|
+
title: string.required(tasks.titleMaxLength),
|
|
28
|
+
updatedAt: number.positiveInteger(),
|
|
29
|
+
userId: id.userId.required(),
|
|
30
|
+
});
|
|
31
|
+
export const taskNoteSchema = v.object({
|
|
32
|
+
body: string.required(tasks.noteBodyMaxLength),
|
|
33
|
+
createdAt: number.positiveInteger(),
|
|
34
|
+
id: id.taskNoteId.required(),
|
|
35
|
+
taskId: id.taskId.required(),
|
|
36
|
+
updatedAt: number.positiveInteger(),
|
|
37
|
+
userId: id.userId.required(),
|
|
38
|
+
});
|
|
@@ -207,6 +207,47 @@ export declare const mutatorSchemas: {
|
|
|
207
207
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
208
208
|
}, undefined>;
|
|
209
209
|
};
|
|
210
|
+
task: {
|
|
211
|
+
createNote: v.ObjectSchema<{
|
|
212
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
213
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
214
|
+
readonly taskId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
215
|
+
}, undefined>;
|
|
216
|
+
createTask: v.ObjectSchema<{
|
|
217
|
+
readonly dueAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
218
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
219
|
+
readonly source: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
220
|
+
readonly kind: v.LiteralSchema<"thread", undefined>;
|
|
221
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
222
|
+
}, undefined>, v.ObjectSchema<{
|
|
223
|
+
readonly kind: v.LiteralSchema<"excerpt", undefined>;
|
|
224
|
+
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
225
|
+
readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
226
|
+
}, undefined>, v.ObjectSchema<{
|
|
227
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
228
|
+
}, undefined>], undefined>;
|
|
229
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
230
|
+
}, undefined>;
|
|
231
|
+
deleteNote: v.ObjectSchema<{
|
|
232
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
233
|
+
}, undefined>;
|
|
234
|
+
deleteTask: v.ObjectSchema<{
|
|
235
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
setCompleted: v.ObjectSchema<{
|
|
238
|
+
readonly completed: v.BooleanSchema<undefined>;
|
|
239
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
240
|
+
}, undefined>;
|
|
241
|
+
updateNote: v.ObjectSchema<{
|
|
242
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
243
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
244
|
+
}, undefined>;
|
|
245
|
+
updateTask: v.ObjectSchema<{
|
|
246
|
+
readonly dueAt: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
247
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
248
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
249
|
+
}, undefined>;
|
|
250
|
+
};
|
|
210
251
|
thread: {
|
|
211
252
|
addLabel: v.ObjectSchema<{
|
|
212
253
|
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqN1B,CAAA"}
|
|
@@ -40,6 +40,23 @@ const userViewSchema = v.object({
|
|
|
40
40
|
id: id.viewId.required(),
|
|
41
41
|
name: string.required(),
|
|
42
42
|
});
|
|
43
|
+
const taskTitleSchema = v.pipe(v.string(), v.trim(), v.nonEmpty(), v.maxLength(marcoConstants.tasks.titleMaxLength));
|
|
44
|
+
const taskDueAtSchema = number.positiveInteger();
|
|
45
|
+
const taskNoteBodySchema = v.pipe(v.string(), v.trim(), v.nonEmpty(), v.maxLength(marcoConstants.tasks.noteBodyMaxLength));
|
|
46
|
+
const taskSourceInputSchema = v.variant('kind', [
|
|
47
|
+
v.object({
|
|
48
|
+
kind: v.literal('thread'),
|
|
49
|
+
threadId: id.threadId.required(),
|
|
50
|
+
}),
|
|
51
|
+
v.object({
|
|
52
|
+
kind: v.literal('excerpt'),
|
|
53
|
+
messageId: id.messageId.required(),
|
|
54
|
+
text: v.pipe(v.string(), v.trim(), v.nonEmpty(), v.maxLength(marcoConstants.tasks.excerptTextMaxLength)),
|
|
55
|
+
}),
|
|
56
|
+
v.object({
|
|
57
|
+
kind: v.literal('none'),
|
|
58
|
+
}),
|
|
59
|
+
]);
|
|
43
60
|
export const mutatorSchemas = {
|
|
44
61
|
account: {
|
|
45
62
|
createAccount: v.object({
|
|
@@ -166,6 +183,38 @@ export const mutatorSchemas = {
|
|
|
166
183
|
updatedAt: number.positiveInteger(),
|
|
167
184
|
}),
|
|
168
185
|
},
|
|
186
|
+
task: {
|
|
187
|
+
createNote: v.object({
|
|
188
|
+
body: taskNoteBodySchema,
|
|
189
|
+
id: id.taskNoteId.required(),
|
|
190
|
+
taskId: id.taskId.required(),
|
|
191
|
+
}),
|
|
192
|
+
createTask: v.object({
|
|
193
|
+
dueAt: taskDueAtSchema,
|
|
194
|
+
id: id.taskId.required(),
|
|
195
|
+
source: taskSourceInputSchema,
|
|
196
|
+
title: taskTitleSchema,
|
|
197
|
+
}),
|
|
198
|
+
deleteNote: v.object({
|
|
199
|
+
id: id.taskNoteId.required(),
|
|
200
|
+
}),
|
|
201
|
+
deleteTask: v.object({
|
|
202
|
+
id: id.taskId.required(),
|
|
203
|
+
}),
|
|
204
|
+
setCompleted: v.object({
|
|
205
|
+
completed: v.boolean(),
|
|
206
|
+
id: id.taskId.required(),
|
|
207
|
+
}),
|
|
208
|
+
updateNote: v.object({
|
|
209
|
+
body: taskNoteBodySchema,
|
|
210
|
+
id: id.taskNoteId.required(),
|
|
211
|
+
}),
|
|
212
|
+
updateTask: v.object({
|
|
213
|
+
dueAt: v.optional(taskDueAtSchema),
|
|
214
|
+
id: id.taskId.required(),
|
|
215
|
+
title: v.optional(taskTitleSchema),
|
|
216
|
+
}),
|
|
217
|
+
},
|
|
169
218
|
thread: {
|
|
170
219
|
addLabel: threadChangeLabelSchema,
|
|
171
220
|
delete: baseThreadSchema,
|
|
@@ -2,13 +2,13 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const pokeEventSchema: v.LooseObjectSchema<{
|
|
3
3
|
readonly event: v.LiteralSchema<"poke", undefined>;
|
|
4
4
|
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
-
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
|
|
5
|
+
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "task", "taskNote"], undefined>;
|
|
6
6
|
}, undefined>;
|
|
7
7
|
export declare const websocket: {
|
|
8
8
|
pokeEvent: v.LooseObjectSchema<{
|
|
9
9
|
readonly event: v.LiteralSchema<"poke", undefined>;
|
|
10
10
|
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
-
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
|
|
11
|
+
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread", "task", "taskNote"], undefined>;
|
|
12
12
|
}, undefined>;
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=websocket.d.ts.map
|