@doist/todoist-sdk 9.5.0 → 9.7.0
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/cjs/types/sections/types.js +8 -6
- package/dist/cjs/types/webhooks/filters.js +30 -0
- package/dist/cjs/types/webhooks/index.js +4 -0
- package/dist/cjs/types/webhooks/projects.js +36 -0
- package/dist/cjs/types/webhooks/reminders.js +35 -0
- package/dist/cjs/types/webhooks/sections.js +48 -0
- package/dist/cjs/types/webhooks/types.js +26 -25
- package/dist/esm/types/sections/types.js +7 -5
- package/dist/esm/types/webhooks/filters.js +27 -0
- package/dist/esm/types/webhooks/index.js +4 -0
- package/dist/esm/types/webhooks/projects.js +33 -0
- package/dist/esm/types/webhooks/reminders.js +32 -0
- package/dist/esm/types/webhooks/sections.js +45 -0
- package/dist/esm/types/webhooks/types.js +29 -28
- package/dist/types/types/sections/types.d.ts +18 -0
- package/dist/types/types/webhooks/filters.d.ts +96 -0
- package/dist/types/types/webhooks/index.d.ts +4 -0
- package/dist/types/types/webhooks/projects.d.ts +345 -0
- package/dist/types/types/webhooks/reminders.d.ts +82 -0
- package/dist/types/types/webhooks/sections.d.ts +335 -0
- package/dist/types/types/webhooks/types.d.ts +676 -59
- package/package.json +1 -1
|
@@ -1,42 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { WebhookEventSchema, type WebhookEvent } from '../apps/types.js';
|
|
3
|
-
/**
|
|
4
|
-
* A single branch covering every event whose payload has not yet been typed
|
|
5
|
-
* per resource. Follow-up PRs will replace slices of this with dedicated
|
|
6
|
-
* variants (projects, sections, filters, reminders).
|
|
7
|
-
*/
|
|
8
|
-
export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
|
|
9
|
-
eventName: z.ZodEnum<{
|
|
10
|
-
"project:added": "project:added";
|
|
11
|
-
"project:updated": "project:updated";
|
|
12
|
-
"project:deleted": "project:deleted";
|
|
13
|
-
"project:archived": "project:archived";
|
|
14
|
-
"project:unarchived": "project:unarchived";
|
|
15
|
-
"section:added": "section:added";
|
|
16
|
-
"section:updated": "section:updated";
|
|
17
|
-
"section:deleted": "section:deleted";
|
|
18
|
-
"section:archived": "section:archived";
|
|
19
|
-
"section:unarchived": "section:unarchived";
|
|
20
|
-
"filter:added": "filter:added";
|
|
21
|
-
"filter:updated": "filter:updated";
|
|
22
|
-
"filter:deleted": "filter:deleted";
|
|
23
|
-
"reminder:fired": "reminder:fired";
|
|
24
|
-
}>;
|
|
25
|
-
eventData: z.ZodUnknown;
|
|
26
|
-
eventDataExtra: z.ZodOptional<z.ZodUnknown>;
|
|
27
|
-
version: z.ZodEnum<{
|
|
28
|
-
1: "1";
|
|
29
|
-
}>;
|
|
30
|
-
userId: z.ZodString;
|
|
31
|
-
initiator: z.ZodObject<{
|
|
32
|
-
id: z.ZodString;
|
|
33
|
-
fullName: z.ZodString;
|
|
34
|
-
email: z.ZodString;
|
|
35
|
-
imageId: z.ZodNullable<z.ZodString>;
|
|
36
|
-
isPremium: z.ZodBoolean;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
3
|
/**
|
|
41
4
|
* Wrapper schema for an incoming webhook payload.
|
|
42
5
|
*
|
|
@@ -44,11 +7,13 @@ export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
|
|
|
44
7
|
* (`item:added`) in the `event_name` field, so consumers using
|
|
45
8
|
* `parseWebhookPayload` receive camelCase fields directly.
|
|
46
9
|
*
|
|
47
|
-
*
|
|
48
|
-
* carry a parsed comment (item-comment or
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
10
|
+
* Every {@link WebhookEvent} is typed today: `item:*` events carry a parsed
|
|
11
|
+
* {@link Task}; `note:*` events carry a parsed comment (item-comment or
|
|
12
|
+
* project-comment); `label:*` events carry a parsed label; `project:*`
|
|
13
|
+
* events carry a parsed {@link Project} (personal or workspace);
|
|
14
|
+
* `section:*` events carry a parsed {@link WebhookSection}; `filter:*`
|
|
15
|
+
* events carry a parsed {@link Filter}; `reminder:fired` carries a parsed
|
|
16
|
+
* {@link WebhookFiredReminder}.
|
|
52
17
|
*/
|
|
53
18
|
export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
19
|
eventName: z.ZodLiteral<"item:added">;
|
|
@@ -1896,24 +1861,676 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1896
1861
|
}, z.core.$strip>;
|
|
1897
1862
|
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
1898
1863
|
}, z.core.$strip>, z.ZodObject<{
|
|
1899
|
-
eventName: z.
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1864
|
+
eventName: z.ZodLiteral<"project:added">;
|
|
1865
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
1866
|
+
url: string;
|
|
1867
|
+
id: string;
|
|
1868
|
+
canAssignTasks: boolean;
|
|
1869
|
+
childOrder: number;
|
|
1870
|
+
color: string;
|
|
1871
|
+
createdAt: Date | null;
|
|
1872
|
+
isArchived: boolean;
|
|
1873
|
+
isDeleted: boolean;
|
|
1874
|
+
isFavorite: boolean;
|
|
1875
|
+
isFrozen: boolean;
|
|
1876
|
+
name: string;
|
|
1877
|
+
updatedAt: Date | null;
|
|
1878
|
+
viewStyle: string;
|
|
1879
|
+
defaultOrder: number;
|
|
1880
|
+
description: string;
|
|
1881
|
+
isCollapsed: boolean;
|
|
1882
|
+
isShared: boolean;
|
|
1883
|
+
parentId: string | null;
|
|
1884
|
+
inboxProject: boolean;
|
|
1885
|
+
} | {
|
|
1886
|
+
url: string;
|
|
1887
|
+
id: string;
|
|
1888
|
+
canAssignTasks: boolean;
|
|
1889
|
+
childOrder: number;
|
|
1890
|
+
color: string;
|
|
1891
|
+
createdAt: Date | null;
|
|
1892
|
+
isArchived: boolean;
|
|
1893
|
+
isDeleted: boolean;
|
|
1894
|
+
isFavorite: boolean;
|
|
1895
|
+
isFrozen: boolean;
|
|
1896
|
+
name: string;
|
|
1897
|
+
updatedAt: Date | null;
|
|
1898
|
+
viewStyle: string;
|
|
1899
|
+
defaultOrder: number;
|
|
1900
|
+
description: string;
|
|
1901
|
+
isCollapsed: boolean;
|
|
1902
|
+
isShared: boolean;
|
|
1903
|
+
collaboratorRoleDefault: string;
|
|
1904
|
+
folderId: string | null;
|
|
1905
|
+
isInviteOnly: boolean | null;
|
|
1906
|
+
isLinkSharingEnabled: boolean;
|
|
1907
|
+
role: string | null;
|
|
1908
|
+
status: string;
|
|
1909
|
+
workspaceId: string;
|
|
1910
|
+
access?: {
|
|
1911
|
+
visibility: "restricted" | "team" | "public";
|
|
1912
|
+
} | undefined;
|
|
1913
|
+
}, unknown>>;
|
|
1914
|
+
version: z.ZodEnum<{
|
|
1915
|
+
1: "1";
|
|
1916
|
+
}>;
|
|
1917
|
+
userId: z.ZodString;
|
|
1918
|
+
initiator: z.ZodObject<{
|
|
1919
|
+
id: z.ZodString;
|
|
1920
|
+
fullName: z.ZodString;
|
|
1921
|
+
email: z.ZodString;
|
|
1922
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
1923
|
+
isPremium: z.ZodBoolean;
|
|
1924
|
+
}, z.core.$strip>;
|
|
1925
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
1926
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1927
|
+
eventName: z.ZodLiteral<"project:updated">;
|
|
1928
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
1929
|
+
url: string;
|
|
1930
|
+
id: string;
|
|
1931
|
+
canAssignTasks: boolean;
|
|
1932
|
+
childOrder: number;
|
|
1933
|
+
color: string;
|
|
1934
|
+
createdAt: Date | null;
|
|
1935
|
+
isArchived: boolean;
|
|
1936
|
+
isDeleted: boolean;
|
|
1937
|
+
isFavorite: boolean;
|
|
1938
|
+
isFrozen: boolean;
|
|
1939
|
+
name: string;
|
|
1940
|
+
updatedAt: Date | null;
|
|
1941
|
+
viewStyle: string;
|
|
1942
|
+
defaultOrder: number;
|
|
1943
|
+
description: string;
|
|
1944
|
+
isCollapsed: boolean;
|
|
1945
|
+
isShared: boolean;
|
|
1946
|
+
parentId: string | null;
|
|
1947
|
+
inboxProject: boolean;
|
|
1948
|
+
} | {
|
|
1949
|
+
url: string;
|
|
1950
|
+
id: string;
|
|
1951
|
+
canAssignTasks: boolean;
|
|
1952
|
+
childOrder: number;
|
|
1953
|
+
color: string;
|
|
1954
|
+
createdAt: Date | null;
|
|
1955
|
+
isArchived: boolean;
|
|
1956
|
+
isDeleted: boolean;
|
|
1957
|
+
isFavorite: boolean;
|
|
1958
|
+
isFrozen: boolean;
|
|
1959
|
+
name: string;
|
|
1960
|
+
updatedAt: Date | null;
|
|
1961
|
+
viewStyle: string;
|
|
1962
|
+
defaultOrder: number;
|
|
1963
|
+
description: string;
|
|
1964
|
+
isCollapsed: boolean;
|
|
1965
|
+
isShared: boolean;
|
|
1966
|
+
collaboratorRoleDefault: string;
|
|
1967
|
+
folderId: string | null;
|
|
1968
|
+
isInviteOnly: boolean | null;
|
|
1969
|
+
isLinkSharingEnabled: boolean;
|
|
1970
|
+
role: string | null;
|
|
1971
|
+
status: string;
|
|
1972
|
+
workspaceId: string;
|
|
1973
|
+
access?: {
|
|
1974
|
+
visibility: "restricted" | "team" | "public";
|
|
1975
|
+
} | undefined;
|
|
1976
|
+
}, unknown>>;
|
|
1977
|
+
version: z.ZodEnum<{
|
|
1978
|
+
1: "1";
|
|
1979
|
+
}>;
|
|
1980
|
+
userId: z.ZodString;
|
|
1981
|
+
initiator: z.ZodObject<{
|
|
1982
|
+
id: z.ZodString;
|
|
1983
|
+
fullName: z.ZodString;
|
|
1984
|
+
email: z.ZodString;
|
|
1985
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
1986
|
+
isPremium: z.ZodBoolean;
|
|
1987
|
+
}, z.core.$strip>;
|
|
1988
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
1989
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1990
|
+
eventName: z.ZodLiteral<"project:deleted">;
|
|
1991
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
1992
|
+
url: string;
|
|
1993
|
+
id: string;
|
|
1994
|
+
canAssignTasks: boolean;
|
|
1995
|
+
childOrder: number;
|
|
1996
|
+
color: string;
|
|
1997
|
+
createdAt: Date | null;
|
|
1998
|
+
isArchived: boolean;
|
|
1999
|
+
isDeleted: boolean;
|
|
2000
|
+
isFavorite: boolean;
|
|
2001
|
+
isFrozen: boolean;
|
|
2002
|
+
name: string;
|
|
2003
|
+
updatedAt: Date | null;
|
|
2004
|
+
viewStyle: string;
|
|
2005
|
+
defaultOrder: number;
|
|
2006
|
+
description: string;
|
|
2007
|
+
isCollapsed: boolean;
|
|
2008
|
+
isShared: boolean;
|
|
2009
|
+
parentId: string | null;
|
|
2010
|
+
inboxProject: boolean;
|
|
2011
|
+
} | {
|
|
2012
|
+
url: string;
|
|
2013
|
+
id: string;
|
|
2014
|
+
canAssignTasks: boolean;
|
|
2015
|
+
childOrder: number;
|
|
2016
|
+
color: string;
|
|
2017
|
+
createdAt: Date | null;
|
|
2018
|
+
isArchived: boolean;
|
|
2019
|
+
isDeleted: boolean;
|
|
2020
|
+
isFavorite: boolean;
|
|
2021
|
+
isFrozen: boolean;
|
|
2022
|
+
name: string;
|
|
2023
|
+
updatedAt: Date | null;
|
|
2024
|
+
viewStyle: string;
|
|
2025
|
+
defaultOrder: number;
|
|
2026
|
+
description: string;
|
|
2027
|
+
isCollapsed: boolean;
|
|
2028
|
+
isShared: boolean;
|
|
2029
|
+
collaboratorRoleDefault: string;
|
|
2030
|
+
folderId: string | null;
|
|
2031
|
+
isInviteOnly: boolean | null;
|
|
2032
|
+
isLinkSharingEnabled: boolean;
|
|
2033
|
+
role: string | null;
|
|
2034
|
+
status: string;
|
|
2035
|
+
workspaceId: string;
|
|
2036
|
+
access?: {
|
|
2037
|
+
visibility: "restricted" | "team" | "public";
|
|
2038
|
+
} | undefined;
|
|
2039
|
+
}, unknown>>;
|
|
2040
|
+
version: z.ZodEnum<{
|
|
2041
|
+
1: "1";
|
|
2042
|
+
}>;
|
|
2043
|
+
userId: z.ZodString;
|
|
2044
|
+
initiator: z.ZodObject<{
|
|
2045
|
+
id: z.ZodString;
|
|
2046
|
+
fullName: z.ZodString;
|
|
2047
|
+
email: z.ZodString;
|
|
2048
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2049
|
+
isPremium: z.ZodBoolean;
|
|
2050
|
+
}, z.core.$strip>;
|
|
2051
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2053
|
+
eventName: z.ZodLiteral<"project:archived">;
|
|
2054
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
2055
|
+
url: string;
|
|
2056
|
+
id: string;
|
|
2057
|
+
canAssignTasks: boolean;
|
|
2058
|
+
childOrder: number;
|
|
2059
|
+
color: string;
|
|
2060
|
+
createdAt: Date | null;
|
|
2061
|
+
isArchived: boolean;
|
|
2062
|
+
isDeleted: boolean;
|
|
2063
|
+
isFavorite: boolean;
|
|
2064
|
+
isFrozen: boolean;
|
|
2065
|
+
name: string;
|
|
2066
|
+
updatedAt: Date | null;
|
|
2067
|
+
viewStyle: string;
|
|
2068
|
+
defaultOrder: number;
|
|
2069
|
+
description: string;
|
|
2070
|
+
isCollapsed: boolean;
|
|
2071
|
+
isShared: boolean;
|
|
2072
|
+
parentId: string | null;
|
|
2073
|
+
inboxProject: boolean;
|
|
2074
|
+
} | {
|
|
2075
|
+
url: string;
|
|
2076
|
+
id: string;
|
|
2077
|
+
canAssignTasks: boolean;
|
|
2078
|
+
childOrder: number;
|
|
2079
|
+
color: string;
|
|
2080
|
+
createdAt: Date | null;
|
|
2081
|
+
isArchived: boolean;
|
|
2082
|
+
isDeleted: boolean;
|
|
2083
|
+
isFavorite: boolean;
|
|
2084
|
+
isFrozen: boolean;
|
|
2085
|
+
name: string;
|
|
2086
|
+
updatedAt: Date | null;
|
|
2087
|
+
viewStyle: string;
|
|
2088
|
+
defaultOrder: number;
|
|
2089
|
+
description: string;
|
|
2090
|
+
isCollapsed: boolean;
|
|
2091
|
+
isShared: boolean;
|
|
2092
|
+
collaboratorRoleDefault: string;
|
|
2093
|
+
folderId: string | null;
|
|
2094
|
+
isInviteOnly: boolean | null;
|
|
2095
|
+
isLinkSharingEnabled: boolean;
|
|
2096
|
+
role: string | null;
|
|
2097
|
+
status: string;
|
|
2098
|
+
workspaceId: string;
|
|
2099
|
+
access?: {
|
|
2100
|
+
visibility: "restricted" | "team" | "public";
|
|
2101
|
+
} | undefined;
|
|
2102
|
+
}, unknown>>;
|
|
2103
|
+
version: z.ZodEnum<{
|
|
2104
|
+
1: "1";
|
|
2105
|
+
}>;
|
|
2106
|
+
userId: z.ZodString;
|
|
2107
|
+
initiator: z.ZodObject<{
|
|
2108
|
+
id: z.ZodString;
|
|
2109
|
+
fullName: z.ZodString;
|
|
2110
|
+
email: z.ZodString;
|
|
2111
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2112
|
+
isPremium: z.ZodBoolean;
|
|
2113
|
+
}, z.core.$strip>;
|
|
2114
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2116
|
+
eventName: z.ZodLiteral<"project:unarchived">;
|
|
2117
|
+
eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
2118
|
+
url: string;
|
|
2119
|
+
id: string;
|
|
2120
|
+
canAssignTasks: boolean;
|
|
2121
|
+
childOrder: number;
|
|
2122
|
+
color: string;
|
|
2123
|
+
createdAt: Date | null;
|
|
2124
|
+
isArchived: boolean;
|
|
2125
|
+
isDeleted: boolean;
|
|
2126
|
+
isFavorite: boolean;
|
|
2127
|
+
isFrozen: boolean;
|
|
2128
|
+
name: string;
|
|
2129
|
+
updatedAt: Date | null;
|
|
2130
|
+
viewStyle: string;
|
|
2131
|
+
defaultOrder: number;
|
|
2132
|
+
description: string;
|
|
2133
|
+
isCollapsed: boolean;
|
|
2134
|
+
isShared: boolean;
|
|
2135
|
+
parentId: string | null;
|
|
2136
|
+
inboxProject: boolean;
|
|
2137
|
+
} | {
|
|
2138
|
+
url: string;
|
|
2139
|
+
id: string;
|
|
2140
|
+
canAssignTasks: boolean;
|
|
2141
|
+
childOrder: number;
|
|
2142
|
+
color: string;
|
|
2143
|
+
createdAt: Date | null;
|
|
2144
|
+
isArchived: boolean;
|
|
2145
|
+
isDeleted: boolean;
|
|
2146
|
+
isFavorite: boolean;
|
|
2147
|
+
isFrozen: boolean;
|
|
2148
|
+
name: string;
|
|
2149
|
+
updatedAt: Date | null;
|
|
2150
|
+
viewStyle: string;
|
|
2151
|
+
defaultOrder: number;
|
|
2152
|
+
description: string;
|
|
2153
|
+
isCollapsed: boolean;
|
|
2154
|
+
isShared: boolean;
|
|
2155
|
+
collaboratorRoleDefault: string;
|
|
2156
|
+
folderId: string | null;
|
|
2157
|
+
isInviteOnly: boolean | null;
|
|
2158
|
+
isLinkSharingEnabled: boolean;
|
|
2159
|
+
role: string | null;
|
|
2160
|
+
status: string;
|
|
2161
|
+
workspaceId: string;
|
|
2162
|
+
access?: {
|
|
2163
|
+
visibility: "restricted" | "team" | "public";
|
|
2164
|
+
} | undefined;
|
|
2165
|
+
}, unknown>>;
|
|
2166
|
+
version: z.ZodEnum<{
|
|
2167
|
+
1: "1";
|
|
2168
|
+
}>;
|
|
2169
|
+
userId: z.ZodString;
|
|
2170
|
+
initiator: z.ZodObject<{
|
|
2171
|
+
id: z.ZodString;
|
|
2172
|
+
fullName: z.ZodString;
|
|
2173
|
+
email: z.ZodString;
|
|
2174
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2175
|
+
isPremium: z.ZodBoolean;
|
|
2176
|
+
}, z.core.$strip>;
|
|
2177
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2179
|
+
eventName: z.ZodLiteral<"section:added">;
|
|
2180
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
2181
|
+
id: z.ZodString;
|
|
2182
|
+
userId: z.ZodString;
|
|
2183
|
+
projectId: z.ZodString;
|
|
2184
|
+
addedAt: z.ZodCoercedDate<unknown>;
|
|
2185
|
+
archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2186
|
+
name: z.ZodString;
|
|
2187
|
+
sectionOrder: z.ZodNumber;
|
|
2188
|
+
isArchived: z.ZodBoolean;
|
|
2189
|
+
isDeleted: z.ZodBoolean;
|
|
2190
|
+
isCollapsed: z.ZodBoolean;
|
|
2191
|
+
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
|
|
2192
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2193
|
+
url: string;
|
|
2194
|
+
id: string;
|
|
2195
|
+
userId: string;
|
|
2196
|
+
projectId: string;
|
|
2197
|
+
addedAt: Date;
|
|
2198
|
+
archivedAt: Date | null;
|
|
2199
|
+
name: string;
|
|
2200
|
+
sectionOrder: number;
|
|
2201
|
+
isArchived: boolean;
|
|
2202
|
+
isDeleted: boolean;
|
|
2203
|
+
isCollapsed: boolean;
|
|
2204
|
+
updatedAt: Date | null;
|
|
2205
|
+
}, {
|
|
2206
|
+
id: string;
|
|
2207
|
+
userId: string;
|
|
2208
|
+
projectId: string;
|
|
2209
|
+
addedAt: Date;
|
|
2210
|
+
archivedAt: Date | null;
|
|
2211
|
+
name: string;
|
|
2212
|
+
sectionOrder: number;
|
|
2213
|
+
isArchived: boolean;
|
|
2214
|
+
isDeleted: boolean;
|
|
2215
|
+
isCollapsed: boolean;
|
|
2216
|
+
updatedAt: Date | null;
|
|
2217
|
+
}>>;
|
|
2218
|
+
version: z.ZodEnum<{
|
|
2219
|
+
1: "1";
|
|
1914
2220
|
}>;
|
|
1915
|
-
|
|
1916
|
-
|
|
2221
|
+
userId: z.ZodString;
|
|
2222
|
+
initiator: z.ZodObject<{
|
|
2223
|
+
id: z.ZodString;
|
|
2224
|
+
fullName: z.ZodString;
|
|
2225
|
+
email: z.ZodString;
|
|
2226
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2227
|
+
isPremium: z.ZodBoolean;
|
|
2228
|
+
}, z.core.$strip>;
|
|
2229
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2231
|
+
eventName: z.ZodLiteral<"section:updated">;
|
|
2232
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
2233
|
+
id: z.ZodString;
|
|
2234
|
+
userId: z.ZodString;
|
|
2235
|
+
projectId: z.ZodString;
|
|
2236
|
+
addedAt: z.ZodCoercedDate<unknown>;
|
|
2237
|
+
archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2238
|
+
name: z.ZodString;
|
|
2239
|
+
sectionOrder: z.ZodNumber;
|
|
2240
|
+
isArchived: z.ZodBoolean;
|
|
2241
|
+
isDeleted: z.ZodBoolean;
|
|
2242
|
+
isCollapsed: z.ZodBoolean;
|
|
2243
|
+
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
|
|
2244
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2245
|
+
url: string;
|
|
2246
|
+
id: string;
|
|
2247
|
+
userId: string;
|
|
2248
|
+
projectId: string;
|
|
2249
|
+
addedAt: Date;
|
|
2250
|
+
archivedAt: Date | null;
|
|
2251
|
+
name: string;
|
|
2252
|
+
sectionOrder: number;
|
|
2253
|
+
isArchived: boolean;
|
|
2254
|
+
isDeleted: boolean;
|
|
2255
|
+
isCollapsed: boolean;
|
|
2256
|
+
updatedAt: Date | null;
|
|
2257
|
+
}, {
|
|
2258
|
+
id: string;
|
|
2259
|
+
userId: string;
|
|
2260
|
+
projectId: string;
|
|
2261
|
+
addedAt: Date;
|
|
2262
|
+
archivedAt: Date | null;
|
|
2263
|
+
name: string;
|
|
2264
|
+
sectionOrder: number;
|
|
2265
|
+
isArchived: boolean;
|
|
2266
|
+
isDeleted: boolean;
|
|
2267
|
+
isCollapsed: boolean;
|
|
2268
|
+
updatedAt: Date | null;
|
|
2269
|
+
}>>;
|
|
2270
|
+
version: z.ZodEnum<{
|
|
2271
|
+
1: "1";
|
|
2272
|
+
}>;
|
|
2273
|
+
userId: z.ZodString;
|
|
2274
|
+
initiator: z.ZodObject<{
|
|
2275
|
+
id: z.ZodString;
|
|
2276
|
+
fullName: z.ZodString;
|
|
2277
|
+
email: z.ZodString;
|
|
2278
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2279
|
+
isPremium: z.ZodBoolean;
|
|
2280
|
+
}, z.core.$strip>;
|
|
2281
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2283
|
+
eventName: z.ZodLiteral<"section:deleted">;
|
|
2284
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
2285
|
+
id: z.ZodString;
|
|
2286
|
+
userId: z.ZodString;
|
|
2287
|
+
projectId: z.ZodString;
|
|
2288
|
+
addedAt: z.ZodCoercedDate<unknown>;
|
|
2289
|
+
archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2290
|
+
name: z.ZodString;
|
|
2291
|
+
sectionOrder: z.ZodNumber;
|
|
2292
|
+
isArchived: z.ZodBoolean;
|
|
2293
|
+
isDeleted: z.ZodBoolean;
|
|
2294
|
+
isCollapsed: z.ZodBoolean;
|
|
2295
|
+
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
|
|
2296
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2297
|
+
url: string;
|
|
2298
|
+
id: string;
|
|
2299
|
+
userId: string;
|
|
2300
|
+
projectId: string;
|
|
2301
|
+
addedAt: Date;
|
|
2302
|
+
archivedAt: Date | null;
|
|
2303
|
+
name: string;
|
|
2304
|
+
sectionOrder: number;
|
|
2305
|
+
isArchived: boolean;
|
|
2306
|
+
isDeleted: boolean;
|
|
2307
|
+
isCollapsed: boolean;
|
|
2308
|
+
updatedAt: Date | null;
|
|
2309
|
+
}, {
|
|
2310
|
+
id: string;
|
|
2311
|
+
userId: string;
|
|
2312
|
+
projectId: string;
|
|
2313
|
+
addedAt: Date;
|
|
2314
|
+
archivedAt: Date | null;
|
|
2315
|
+
name: string;
|
|
2316
|
+
sectionOrder: number;
|
|
2317
|
+
isArchived: boolean;
|
|
2318
|
+
isDeleted: boolean;
|
|
2319
|
+
isCollapsed: boolean;
|
|
2320
|
+
updatedAt: Date | null;
|
|
2321
|
+
}>>;
|
|
2322
|
+
version: z.ZodEnum<{
|
|
2323
|
+
1: "1";
|
|
2324
|
+
}>;
|
|
2325
|
+
userId: z.ZodString;
|
|
2326
|
+
initiator: z.ZodObject<{
|
|
2327
|
+
id: z.ZodString;
|
|
2328
|
+
fullName: z.ZodString;
|
|
2329
|
+
email: z.ZodString;
|
|
2330
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2331
|
+
isPremium: z.ZodBoolean;
|
|
2332
|
+
}, z.core.$strip>;
|
|
2333
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2335
|
+
eventName: z.ZodLiteral<"section:archived">;
|
|
2336
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
2337
|
+
id: z.ZodString;
|
|
2338
|
+
userId: z.ZodString;
|
|
2339
|
+
projectId: z.ZodString;
|
|
2340
|
+
addedAt: z.ZodCoercedDate<unknown>;
|
|
2341
|
+
archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2342
|
+
name: z.ZodString;
|
|
2343
|
+
sectionOrder: z.ZodNumber;
|
|
2344
|
+
isArchived: z.ZodBoolean;
|
|
2345
|
+
isDeleted: z.ZodBoolean;
|
|
2346
|
+
isCollapsed: z.ZodBoolean;
|
|
2347
|
+
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
|
|
2348
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2349
|
+
url: string;
|
|
2350
|
+
id: string;
|
|
2351
|
+
userId: string;
|
|
2352
|
+
projectId: string;
|
|
2353
|
+
addedAt: Date;
|
|
2354
|
+
archivedAt: Date | null;
|
|
2355
|
+
name: string;
|
|
2356
|
+
sectionOrder: number;
|
|
2357
|
+
isArchived: boolean;
|
|
2358
|
+
isDeleted: boolean;
|
|
2359
|
+
isCollapsed: boolean;
|
|
2360
|
+
updatedAt: Date | null;
|
|
2361
|
+
}, {
|
|
2362
|
+
id: string;
|
|
2363
|
+
userId: string;
|
|
2364
|
+
projectId: string;
|
|
2365
|
+
addedAt: Date;
|
|
2366
|
+
archivedAt: Date | null;
|
|
2367
|
+
name: string;
|
|
2368
|
+
sectionOrder: number;
|
|
2369
|
+
isArchived: boolean;
|
|
2370
|
+
isDeleted: boolean;
|
|
2371
|
+
isCollapsed: boolean;
|
|
2372
|
+
updatedAt: Date | null;
|
|
2373
|
+
}>>;
|
|
2374
|
+
version: z.ZodEnum<{
|
|
2375
|
+
1: "1";
|
|
2376
|
+
}>;
|
|
2377
|
+
userId: z.ZodString;
|
|
2378
|
+
initiator: z.ZodObject<{
|
|
2379
|
+
id: z.ZodString;
|
|
2380
|
+
fullName: z.ZodString;
|
|
2381
|
+
email: z.ZodString;
|
|
2382
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2383
|
+
isPremium: z.ZodBoolean;
|
|
2384
|
+
}, z.core.$strip>;
|
|
2385
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2387
|
+
eventName: z.ZodLiteral<"section:unarchived">;
|
|
2388
|
+
eventData: z.ZodPipe<z.ZodObject<{
|
|
2389
|
+
id: z.ZodString;
|
|
2390
|
+
userId: z.ZodString;
|
|
2391
|
+
projectId: z.ZodString;
|
|
2392
|
+
addedAt: z.ZodCoercedDate<unknown>;
|
|
2393
|
+
archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2394
|
+
name: z.ZodString;
|
|
2395
|
+
sectionOrder: z.ZodNumber;
|
|
2396
|
+
isArchived: z.ZodBoolean;
|
|
2397
|
+
isDeleted: z.ZodBoolean;
|
|
2398
|
+
isCollapsed: z.ZodBoolean;
|
|
2399
|
+
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
|
|
2400
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2401
|
+
url: string;
|
|
2402
|
+
id: string;
|
|
2403
|
+
userId: string;
|
|
2404
|
+
projectId: string;
|
|
2405
|
+
addedAt: Date;
|
|
2406
|
+
archivedAt: Date | null;
|
|
2407
|
+
name: string;
|
|
2408
|
+
sectionOrder: number;
|
|
2409
|
+
isArchived: boolean;
|
|
2410
|
+
isDeleted: boolean;
|
|
2411
|
+
isCollapsed: boolean;
|
|
2412
|
+
updatedAt: Date | null;
|
|
2413
|
+
}, {
|
|
2414
|
+
id: string;
|
|
2415
|
+
userId: string;
|
|
2416
|
+
projectId: string;
|
|
2417
|
+
addedAt: Date;
|
|
2418
|
+
archivedAt: Date | null;
|
|
2419
|
+
name: string;
|
|
2420
|
+
sectionOrder: number;
|
|
2421
|
+
isArchived: boolean;
|
|
2422
|
+
isDeleted: boolean;
|
|
2423
|
+
isCollapsed: boolean;
|
|
2424
|
+
updatedAt: Date | null;
|
|
2425
|
+
}>>;
|
|
2426
|
+
version: z.ZodEnum<{
|
|
2427
|
+
1: "1";
|
|
2428
|
+
}>;
|
|
2429
|
+
userId: z.ZodString;
|
|
2430
|
+
initiator: z.ZodObject<{
|
|
2431
|
+
id: z.ZodString;
|
|
2432
|
+
fullName: z.ZodString;
|
|
2433
|
+
email: z.ZodString;
|
|
2434
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2435
|
+
isPremium: z.ZodBoolean;
|
|
2436
|
+
}, z.core.$strip>;
|
|
2437
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2439
|
+
eventName: z.ZodLiteral<"filter:added">;
|
|
2440
|
+
eventData: z.ZodObject<{
|
|
2441
|
+
id: z.ZodString;
|
|
2442
|
+
name: z.ZodString;
|
|
2443
|
+
query: z.ZodString;
|
|
2444
|
+
color: z.ZodString;
|
|
2445
|
+
isDeleted: z.ZodBoolean;
|
|
2446
|
+
isFavorite: z.ZodBoolean;
|
|
2447
|
+
isFrozen: z.ZodBoolean;
|
|
2448
|
+
itemOrder: z.ZodNumber;
|
|
2449
|
+
}, z.core.$loose>;
|
|
2450
|
+
version: z.ZodEnum<{
|
|
2451
|
+
1: "1";
|
|
2452
|
+
}>;
|
|
2453
|
+
userId: z.ZodString;
|
|
2454
|
+
initiator: z.ZodObject<{
|
|
2455
|
+
id: z.ZodString;
|
|
2456
|
+
fullName: z.ZodString;
|
|
2457
|
+
email: z.ZodString;
|
|
2458
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2459
|
+
isPremium: z.ZodBoolean;
|
|
2460
|
+
}, z.core.$strip>;
|
|
2461
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2463
|
+
eventName: z.ZodLiteral<"filter:updated">;
|
|
2464
|
+
eventData: z.ZodObject<{
|
|
2465
|
+
id: z.ZodString;
|
|
2466
|
+
name: z.ZodString;
|
|
2467
|
+
query: z.ZodString;
|
|
2468
|
+
color: z.ZodString;
|
|
2469
|
+
isDeleted: z.ZodBoolean;
|
|
2470
|
+
isFavorite: z.ZodBoolean;
|
|
2471
|
+
isFrozen: z.ZodBoolean;
|
|
2472
|
+
itemOrder: z.ZodNumber;
|
|
2473
|
+
}, z.core.$loose>;
|
|
2474
|
+
version: z.ZodEnum<{
|
|
2475
|
+
1: "1";
|
|
2476
|
+
}>;
|
|
2477
|
+
userId: z.ZodString;
|
|
2478
|
+
initiator: z.ZodObject<{
|
|
2479
|
+
id: z.ZodString;
|
|
2480
|
+
fullName: z.ZodString;
|
|
2481
|
+
email: z.ZodString;
|
|
2482
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2483
|
+
isPremium: z.ZodBoolean;
|
|
2484
|
+
}, z.core.$strip>;
|
|
2485
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2487
|
+
eventName: z.ZodLiteral<"filter:deleted">;
|
|
2488
|
+
eventData: z.ZodObject<{
|
|
2489
|
+
id: z.ZodString;
|
|
2490
|
+
name: z.ZodString;
|
|
2491
|
+
query: z.ZodString;
|
|
2492
|
+
color: z.ZodString;
|
|
2493
|
+
isDeleted: z.ZodBoolean;
|
|
2494
|
+
isFavorite: z.ZodBoolean;
|
|
2495
|
+
isFrozen: z.ZodBoolean;
|
|
2496
|
+
itemOrder: z.ZodNumber;
|
|
2497
|
+
}, z.core.$loose>;
|
|
2498
|
+
version: z.ZodEnum<{
|
|
2499
|
+
1: "1";
|
|
2500
|
+
}>;
|
|
2501
|
+
userId: z.ZodString;
|
|
2502
|
+
initiator: z.ZodObject<{
|
|
2503
|
+
id: z.ZodString;
|
|
2504
|
+
fullName: z.ZodString;
|
|
2505
|
+
email: z.ZodString;
|
|
2506
|
+
imageId: z.ZodNullable<z.ZodString>;
|
|
2507
|
+
isPremium: z.ZodBoolean;
|
|
2508
|
+
}, z.core.$strip>;
|
|
2509
|
+
triggeredAt: z.ZodCoercedDate<unknown>;
|
|
2510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2511
|
+
eventName: z.ZodLiteral<"reminder:fired">;
|
|
2512
|
+
eventData: z.ZodObject<{
|
|
2513
|
+
id: z.ZodString;
|
|
2514
|
+
notifyUid: z.ZodString;
|
|
2515
|
+
itemId: z.ZodString;
|
|
2516
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
isDeleted: z.ZodBoolean;
|
|
2518
|
+
type: z.ZodEnum<{
|
|
2519
|
+
relative: "relative";
|
|
2520
|
+
absolute: "absolute";
|
|
2521
|
+
location: "location";
|
|
2522
|
+
}>;
|
|
2523
|
+
isUrgent: z.ZodBoolean;
|
|
2524
|
+
minuteOffset: z.ZodNullable<z.ZodNumber>;
|
|
2525
|
+
due: z.ZodNullable<z.ZodObject<{
|
|
2526
|
+
isRecurring: z.ZodBoolean;
|
|
2527
|
+
string: z.ZodString;
|
|
2528
|
+
date: z.ZodString;
|
|
2529
|
+
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2530
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2531
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2532
|
+
}, z.core.$strip>>;
|
|
2533
|
+
}, z.core.$loose>;
|
|
1917
2534
|
version: z.ZodEnum<{
|
|
1918
2535
|
1: "1";
|
|
1919
2536
|
}>;
|