@assemblis/contracts 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/schemas/api.d.ts +111 -61
- package/dist/schemas/base.d.ts +18 -12
- package/dist/schemas/legacy.d.ts +34 -34
- package/dist/schemas/utils.d.ts +1 -1
- package/dist/types/api.d.ts +1 -8
- package/dist/types/enums.d.ts +6 -0
- package/package.json +1 -1
- package/src/schemas/base.ts +1 -0
- package/src/types/enums.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"zod";
|
|
1
|
+
import e from"zod";var t,a,r,n,o;!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH"}(t||(t={})),function(e){e.ID=":ID",e.NAME=":NAME"}(a||(a={})),function(e){e.ACCOUNT_REPORTS="/account/reports",e.ASSEMBLIES="/assemblies",e.FEEDBACK="/feedback",e.INTEREST_ASSEMBLIS="/interest/assemblis",e.INTEREST_MUTIRAO="/interest/mutirao",e.LOGS="/logs",e.PINS="/pins",e.SURVEYS="/surveys",e.SURVEY_RESPONSES="/assemblies/:ID/survey-responses/:NAME"}(r||(r={})),function(e){e.DISCARDED="DISCARDED",e.DRAFTED="DRAFT",e.PUBLISHED="PUBLISHED",e.CHANGED="CHANGED"}(n||(n={})),function(e){e.DELIBERATION="deliberation",e.DEMOGRAPHIC_DATA="demographic-data",e.PRE_ASSEMBLY="pre-assembly",e.POST_ASSEMBLY="post-assembly"}(o||(o={}));const i=e.coerce.date().transform(e=>e.toISOString()),s=e=>e.nullish().transform(e=>e??null),d=e.object({id:e.uuid(),created_at:i,updated_at:i,uri:e.string(),alt:e.string(),src:e.string(),sizes:e.string(),srcset:e.string()}),c=e.object({label:e.string(),value:e.coerce.number().int()}),p=e.object({published_at:s(i),title:s(e.string()),description:s(e.string()),location:s(e.string()),outputs:s(e.string().array()),initiation_type:s(e.string()),recruitment_method:s(e.string()),recruitment_description:s(e.string()),participant_count:s(e.int()),organiser_reflections:s(e.string()),organiser_report_url:s(e.string()),location_details:s(e.string()),date:s(e.string()),duration:s(e.int()),contact_information_url:s(e.string()),cover_image_id:s(e.string())}),u=e.object({id:e.uuid(),created_at:i,updated_at:i,published_at:s(i),state:e.enum(["DISCARDED","DRAFTED","PUBLISHED","CHANGED"]),viewer_password:e.string(),draft_content:s(p),published_content:s(p),media:e.object({images:d.array()})});e.object({id:e.uuid(),created_at:i,updated_at:i,sub:e.string(),is_mutirao:e.boolean()});const _={endpoint:()=>r.ACCOUNT_REPORTS,method:t.GET,payload:e.never(),response:e.object({reports:u.array()})},l={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}`,method:t.GET,payload:e.never(),response:u},b={endpoint:()=>r.ACCOUNT_REPORTS,method:t.POST,payload:s(p.omit({cover_image_id:!0})),response:u},g={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}/content`,method:t.PUT,payload:p.omit({cover_image_id:!0}),response:u},m={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}/discard`,method:t.PATCH,payload:e.never(),response:s(u)},y={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}/publish`,method:t.PATCH,payload:e.object({published_at:i}),response:u},S={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}/unpublish`,method:t.PATCH,payload:e.never(),response:u},E={endpoint:e=>`${r.ACCOUNT_REPORTS}/${e}/cover-image`,method:t.POST,payload:d.pick({alt:!0}),response:u},T={payload:e.object({route:e.string(),text:e.string(),metadata:e.unknown()}),response:e.string()},f={payload:e.object({message:e.string().optional(),data:e.record(e.string(),e.string().optional()).optional(),metadata:e.object({origin:e.string(),route:e.string(),status:e.number()})}),response:e.string()},j={payload:e.object({type:e.literal("user.created"),object:e.literal("event"),data:e.object({id:e.string(),email_addresses:e.object({email_address:e.string()}).array()})}),response:e.string()},O=e.object({id:e.uuid(),text:e.string()}),A={payload:e.undefined(),response:e.object({id:e.uuid(),created_at:i,updated_at:i,name:e.string(),sections:e.object({primary:O,secondary:O.array(),options:c.array()}).array()})},R={payload:e.object({answers:e.object({question_id:e.uuid(),answer_value:e.coerce.number().int()}).array()}),response:e.object({total:e.number().int()})},C=e.object({visible_on_profile:e.boolean(),description:s(e.string())}),I=e.object({text:e.string(),agreed:s(e.coerce.number().int()),against:s(e.coerce.number().int()),abstained:s(e.coerce.number().int()),include_in_action_plan:e.boolean().default(!0),assembly_id:e.uuid()}),v=e.object({text:e.string(),complete:e.boolean().default(!1),action_id:e.uuid(),assembly_id:e.uuid()}),P=e.object({published_at:s(i),name:e.string(),about:s(e.string()),topics:e.string().array(),country:s(e.string()),hide:e.boolean().default(!1)}),x={payload:P,response:P.extend({id:e.uuid(),created_at:i,updated_at:i,image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0}),user_id:e.uuid().meta({deprecated:!0})})},D={payload:e.undefined(),response:e.object({assemblies:x.response.array()})},h=e.object({visible_on_profile:e.boolean(),name:s(e.string()),description:s(e.string()),type:s(e.string())}),N=e.object({visible_on_profile:e.boolean(),registration_link:s(e.string()),start_date:s(i)}),U=e.object({visible_on_profile:e.boolean(),background:s(e.string())}),H=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),$=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),k=e.object({visible_on_profile:e.boolean(),decision_method:s(e.string())}),w=e.object({visible_on_profile:e.boolean(),recruitment_method:s(e.string()),community:s(e.string())}),B=e.object({visible_on_profile:e.boolean(),support_options:e.string().array()}),G=e.object({visible_on_profile:e.boolean()}),L={payload:x.payload.extend({organisation:s(h.extend({id:e.uuid().optional()})),event_details:s(N),story:s(U),supporters:s(H),funders:s($),facilitation:s(k),participants:s(w),support:s(B),action_plan:s(C.extend({actions:I.omit({assembly_id:!0}).extend({id:e.uuid().optional(),tasks:v.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid().optional()}).array(),updates:e.unknown().array()}).array(),updates:e.unknown().array()})),surveys:s(G)}),response:x.response.omit({user_id:!0}).extend({is_own:e.boolean(),organisation:s(h.extend({id:e.uuid(),created_at:i,updated_at:i})),event_details:s(N.extend({created_at:i,updated_at:i})),story:s(U.extend({created_at:i,updated_at:i})),supporters:s(H.extend({created_at:i,updated_at:i})),funders:s($.extend({created_at:i,updated_at:i})),facilitation:s(k.extend({created_at:i,updated_at:i})),participants:s(w.extend({created_at:i,updated_at:i})),support:s(B.extend({created_at:i,updated_at:i})),action_plan:s(C.extend({actions:I.omit({assembly_id:!0}).extend({id:e.uuid(),created_at:i,updated_at:e.coerce.date().transform(e=>e.toISOString()),tasks:v.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).and(e.object({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}))),surveys:s(G.extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).extend({data:e.record(e.string(),e.object({total:e.number().int(),responses:e.record(e.string(),c.array())}))}))})},M={payload:e.object({country:e.string(),email:e.string(),text:s(e.string())}),response:e.object({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString()),country:e.string(),text:s(e.string()),hide:e.boolean(),image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0})})},F={payload:e.undefined(),response:e.object({assemblies:x.response.array(),pins:M.response.array()})};export{r as ApiEndpoint,t as ApiRestMethod,a as ApiRouteParameter,D as AssembliesListSchema,L as AssemblyDetailSchema,x as AssemblyOverviewSchema,T as FeedbackSchema,l as GetAccountReportsIdSchema,_ as GetAccountReportsSchema,f as LogSchema,m as PatchAccountReportsIdDiscardSchema,y as PatchAccountReportsIdPublishSchema,S as PatchAccountReportsIdUnpublishSchema,F as PinListSchema,M as PinSchema,E as PostAccountReportsIdCoverImageSchema,b as PostAccountReportsSchema,g as PutAccountReportsIdContentSchema,j as RegisterSchema,n as ReportState,o as SurveyName,R as SurveyResponseSchema,A as SurveySchema};
|
package/dist/schemas/api.d.ts
CHANGED
|
@@ -7,12 +7,18 @@ export declare const GetAccountReportsSchema: {
|
|
|
7
7
|
response: z.ZodObject<{
|
|
8
8
|
reports: z.ZodArray<z.ZodObject<{
|
|
9
9
|
id: z.ZodUUID;
|
|
10
|
-
created_at: z.
|
|
11
|
-
updated_at: z.
|
|
12
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
10
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
11
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
12
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
13
|
+
state: z.ZodEnum<{
|
|
14
|
+
DISCARDED: "DISCARDED";
|
|
15
|
+
DRAFTED: "DRAFTED";
|
|
16
|
+
PUBLISHED: "PUBLISHED";
|
|
17
|
+
CHANGED: "CHANGED";
|
|
18
|
+
}>;
|
|
13
19
|
viewer_password: z.ZodString;
|
|
14
20
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
21
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
16
22
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
17
23
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
18
24
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -64,7 +70,7 @@ export declare const GetAccountReportsSchema: {
|
|
|
64
70
|
cover_image_id: string | null;
|
|
65
71
|
} | null | undefined>>;
|
|
66
72
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
73
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
68
74
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
69
75
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
70
76
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -118,8 +124,8 @@ export declare const GetAccountReportsSchema: {
|
|
|
118
124
|
media: z.ZodObject<{
|
|
119
125
|
images: z.ZodArray<z.ZodObject<{
|
|
120
126
|
id: z.ZodUUID;
|
|
121
|
-
created_at: z.
|
|
122
|
-
updated_at: z.
|
|
127
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
128
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
123
129
|
uri: z.ZodString;
|
|
124
130
|
alt: z.ZodString;
|
|
125
131
|
src: z.ZodString;
|
|
@@ -136,12 +142,18 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
136
142
|
payload: z.ZodNever;
|
|
137
143
|
response: z.ZodObject<{
|
|
138
144
|
id: z.ZodUUID;
|
|
139
|
-
created_at: z.
|
|
140
|
-
updated_at: z.
|
|
141
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
145
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
146
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
147
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
148
|
+
state: z.ZodEnum<{
|
|
149
|
+
DISCARDED: "DISCARDED";
|
|
150
|
+
DRAFTED: "DRAFTED";
|
|
151
|
+
PUBLISHED: "PUBLISHED";
|
|
152
|
+
CHANGED: "CHANGED";
|
|
153
|
+
}>;
|
|
142
154
|
viewer_password: z.ZodString;
|
|
143
155
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
144
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
156
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
145
157
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
146
158
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
147
159
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -193,7 +205,7 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
193
205
|
cover_image_id: string | null;
|
|
194
206
|
} | null | undefined>>;
|
|
195
207
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
196
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
208
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
197
209
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
198
210
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
199
211
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -247,8 +259,8 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
247
259
|
media: z.ZodObject<{
|
|
248
260
|
images: z.ZodArray<z.ZodObject<{
|
|
249
261
|
id: z.ZodUUID;
|
|
250
|
-
created_at: z.
|
|
251
|
-
updated_at: z.
|
|
262
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
263
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
252
264
|
uri: z.ZodString;
|
|
253
265
|
alt: z.ZodString;
|
|
254
266
|
src: z.ZodString;
|
|
@@ -262,8 +274,8 @@ export declare const PostAccountReportsSchema: {
|
|
|
262
274
|
endpoint: () => ApiEndpoint;
|
|
263
275
|
method: ApiRestMethod;
|
|
264
276
|
payload: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
277
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
265
278
|
date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
266
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
267
279
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
268
280
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
269
281
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -278,8 +290,8 @@ export declare const PostAccountReportsSchema: {
|
|
|
278
290
|
duration: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodInt>>, z.ZodTransform<number | null, number | null | undefined>>;
|
|
279
291
|
contact_information_url: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
280
292
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
281
|
-
date: string | null;
|
|
282
293
|
published_at: string | null;
|
|
294
|
+
date: string | null;
|
|
283
295
|
title: string | null;
|
|
284
296
|
description: string | null;
|
|
285
297
|
location: string | null;
|
|
@@ -294,8 +306,8 @@ export declare const PostAccountReportsSchema: {
|
|
|
294
306
|
duration: number | null;
|
|
295
307
|
contact_information_url: string | null;
|
|
296
308
|
} | null, {
|
|
297
|
-
date: string | null;
|
|
298
309
|
published_at: string | null;
|
|
310
|
+
date: string | null;
|
|
299
311
|
title: string | null;
|
|
300
312
|
description: string | null;
|
|
301
313
|
location: string | null;
|
|
@@ -312,12 +324,18 @@ export declare const PostAccountReportsSchema: {
|
|
|
312
324
|
} | null | undefined>>;
|
|
313
325
|
response: z.ZodObject<{
|
|
314
326
|
id: z.ZodUUID;
|
|
315
|
-
created_at: z.
|
|
316
|
-
updated_at: z.
|
|
317
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
327
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
328
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
329
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
330
|
+
state: z.ZodEnum<{
|
|
331
|
+
DISCARDED: "DISCARDED";
|
|
332
|
+
DRAFTED: "DRAFTED";
|
|
333
|
+
PUBLISHED: "PUBLISHED";
|
|
334
|
+
CHANGED: "CHANGED";
|
|
335
|
+
}>;
|
|
318
336
|
viewer_password: z.ZodString;
|
|
319
337
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
320
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
338
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
321
339
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
322
340
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
323
341
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -369,7 +387,7 @@ export declare const PostAccountReportsSchema: {
|
|
|
369
387
|
cover_image_id: string | null;
|
|
370
388
|
} | null | undefined>>;
|
|
371
389
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
372
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
390
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
373
391
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
374
392
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
375
393
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -423,8 +441,8 @@ export declare const PostAccountReportsSchema: {
|
|
|
423
441
|
media: z.ZodObject<{
|
|
424
442
|
images: z.ZodArray<z.ZodObject<{
|
|
425
443
|
id: z.ZodUUID;
|
|
426
|
-
created_at: z.
|
|
427
|
-
updated_at: z.
|
|
444
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
445
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
428
446
|
uri: z.ZodString;
|
|
429
447
|
alt: z.ZodString;
|
|
430
448
|
src: z.ZodString;
|
|
@@ -438,8 +456,8 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
438
456
|
endpoint: (reportId: string) => string;
|
|
439
457
|
method: ApiRestMethod;
|
|
440
458
|
payload: z.ZodObject<{
|
|
459
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
441
460
|
date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
442
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
443
461
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
444
462
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
445
463
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -456,12 +474,18 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
456
474
|
}, z.core.$strip>;
|
|
457
475
|
response: z.ZodObject<{
|
|
458
476
|
id: z.ZodUUID;
|
|
459
|
-
created_at: z.
|
|
460
|
-
updated_at: z.
|
|
461
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
477
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
478
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
479
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
480
|
+
state: z.ZodEnum<{
|
|
481
|
+
DISCARDED: "DISCARDED";
|
|
482
|
+
DRAFTED: "DRAFTED";
|
|
483
|
+
PUBLISHED: "PUBLISHED";
|
|
484
|
+
CHANGED: "CHANGED";
|
|
485
|
+
}>;
|
|
462
486
|
viewer_password: z.ZodString;
|
|
463
487
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
464
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
488
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
465
489
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
466
490
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
467
491
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -513,7 +537,7 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
513
537
|
cover_image_id: string | null;
|
|
514
538
|
} | null | undefined>>;
|
|
515
539
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
516
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
540
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
517
541
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
518
542
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
519
543
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -567,8 +591,8 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
567
591
|
media: z.ZodObject<{
|
|
568
592
|
images: z.ZodArray<z.ZodObject<{
|
|
569
593
|
id: z.ZodUUID;
|
|
570
|
-
created_at: z.
|
|
571
|
-
updated_at: z.
|
|
594
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
595
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
572
596
|
uri: z.ZodString;
|
|
573
597
|
alt: z.ZodString;
|
|
574
598
|
src: z.ZodString;
|
|
@@ -584,12 +608,18 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
584
608
|
payload: z.ZodNever;
|
|
585
609
|
response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
586
610
|
id: z.ZodUUID;
|
|
587
|
-
created_at: z.
|
|
588
|
-
updated_at: z.
|
|
589
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
611
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
612
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
613
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
614
|
+
state: z.ZodEnum<{
|
|
615
|
+
DISCARDED: "DISCARDED";
|
|
616
|
+
DRAFTED: "DRAFTED";
|
|
617
|
+
PUBLISHED: "PUBLISHED";
|
|
618
|
+
CHANGED: "CHANGED";
|
|
619
|
+
}>;
|
|
590
620
|
viewer_password: z.ZodString;
|
|
591
621
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
592
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
622
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
593
623
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
594
624
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
595
625
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -641,7 +671,7 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
641
671
|
cover_image_id: string | null;
|
|
642
672
|
} | null | undefined>>;
|
|
643
673
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
644
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
674
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
645
675
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
646
676
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
647
677
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -695,8 +725,8 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
695
725
|
media: z.ZodObject<{
|
|
696
726
|
images: z.ZodArray<z.ZodObject<{
|
|
697
727
|
id: z.ZodUUID;
|
|
698
|
-
created_at: z.
|
|
699
|
-
updated_at: z.
|
|
728
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
729
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
700
730
|
uri: z.ZodString;
|
|
701
731
|
alt: z.ZodString;
|
|
702
732
|
src: z.ZodString;
|
|
@@ -709,6 +739,7 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
709
739
|
created_at: string;
|
|
710
740
|
updated_at: string;
|
|
711
741
|
published_at: string | null;
|
|
742
|
+
state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
|
|
712
743
|
viewer_password: string;
|
|
713
744
|
draft_content: {
|
|
714
745
|
published_at: string | null;
|
|
@@ -763,6 +794,7 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
763
794
|
created_at: string;
|
|
764
795
|
updated_at: string;
|
|
765
796
|
published_at: string | null;
|
|
797
|
+
state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
|
|
766
798
|
viewer_password: string;
|
|
767
799
|
draft_content: {
|
|
768
800
|
published_at: string | null;
|
|
@@ -818,16 +850,22 @@ export declare const PatchAccountReportsIdPublishSchema: {
|
|
|
818
850
|
endpoint: (reportId: string) => string;
|
|
819
851
|
method: ApiRestMethod;
|
|
820
852
|
payload: z.ZodObject<{
|
|
821
|
-
published_at: z.
|
|
853
|
+
published_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
822
854
|
}, z.core.$strip>;
|
|
823
855
|
response: z.ZodObject<{
|
|
824
856
|
id: z.ZodUUID;
|
|
825
|
-
created_at: z.
|
|
826
|
-
updated_at: z.
|
|
827
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
857
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
858
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
859
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
860
|
+
state: z.ZodEnum<{
|
|
861
|
+
DISCARDED: "DISCARDED";
|
|
862
|
+
DRAFTED: "DRAFTED";
|
|
863
|
+
PUBLISHED: "PUBLISHED";
|
|
864
|
+
CHANGED: "CHANGED";
|
|
865
|
+
}>;
|
|
828
866
|
viewer_password: z.ZodString;
|
|
829
867
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
830
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
868
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
831
869
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
832
870
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
833
871
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -879,7 +917,7 @@ export declare const PatchAccountReportsIdPublishSchema: {
|
|
|
879
917
|
cover_image_id: string | null;
|
|
880
918
|
} | null | undefined>>;
|
|
881
919
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
882
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
920
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
883
921
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
884
922
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
885
923
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -933,8 +971,8 @@ export declare const PatchAccountReportsIdPublishSchema: {
|
|
|
933
971
|
media: z.ZodObject<{
|
|
934
972
|
images: z.ZodArray<z.ZodObject<{
|
|
935
973
|
id: z.ZodUUID;
|
|
936
|
-
created_at: z.
|
|
937
|
-
updated_at: z.
|
|
974
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
975
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
938
976
|
uri: z.ZodString;
|
|
939
977
|
alt: z.ZodString;
|
|
940
978
|
src: z.ZodString;
|
|
@@ -950,12 +988,18 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
|
|
|
950
988
|
payload: z.ZodNever;
|
|
951
989
|
response: z.ZodObject<{
|
|
952
990
|
id: z.ZodUUID;
|
|
953
|
-
created_at: z.
|
|
954
|
-
updated_at: z.
|
|
955
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
991
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
992
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
993
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
994
|
+
state: z.ZodEnum<{
|
|
995
|
+
DISCARDED: "DISCARDED";
|
|
996
|
+
DRAFTED: "DRAFTED";
|
|
997
|
+
PUBLISHED: "PUBLISHED";
|
|
998
|
+
CHANGED: "CHANGED";
|
|
999
|
+
}>;
|
|
956
1000
|
viewer_password: z.ZodString;
|
|
957
1001
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
958
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
1002
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
959
1003
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
960
1004
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
961
1005
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1007,7 +1051,7 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
|
|
|
1007
1051
|
cover_image_id: string | null;
|
|
1008
1052
|
} | null | undefined>>;
|
|
1009
1053
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1010
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
1054
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1011
1055
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1012
1056
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1013
1057
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1061,8 +1105,8 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
|
|
|
1061
1105
|
media: z.ZodObject<{
|
|
1062
1106
|
images: z.ZodArray<z.ZodObject<{
|
|
1063
1107
|
id: z.ZodUUID;
|
|
1064
|
-
created_at: z.
|
|
1065
|
-
updated_at: z.
|
|
1108
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1109
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1066
1110
|
uri: z.ZodString;
|
|
1067
1111
|
alt: z.ZodString;
|
|
1068
1112
|
src: z.ZodString;
|
|
@@ -1080,12 +1124,18 @@ export declare const PostAccountReportsIdCoverImageSchema: {
|
|
|
1080
1124
|
}, z.core.$strip>;
|
|
1081
1125
|
response: z.ZodObject<{
|
|
1082
1126
|
id: z.ZodUUID;
|
|
1083
|
-
created_at: z.
|
|
1084
|
-
updated_at: z.
|
|
1085
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
1127
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1128
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1129
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1130
|
+
state: z.ZodEnum<{
|
|
1131
|
+
DISCARDED: "DISCARDED";
|
|
1132
|
+
DRAFTED: "DRAFTED";
|
|
1133
|
+
PUBLISHED: "PUBLISHED";
|
|
1134
|
+
CHANGED: "CHANGED";
|
|
1135
|
+
}>;
|
|
1086
1136
|
viewer_password: z.ZodString;
|
|
1087
1137
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1088
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
1138
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1089
1139
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1090
1140
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1091
1141
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1137,7 +1187,7 @@ export declare const PostAccountReportsIdCoverImageSchema: {
|
|
|
1137
1187
|
cover_image_id: string | null;
|
|
1138
1188
|
} | null | undefined>>;
|
|
1139
1189
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1140
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
1190
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1141
1191
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1142
1192
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1143
1193
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1191,8 +1241,8 @@ export declare const PostAccountReportsIdCoverImageSchema: {
|
|
|
1191
1241
|
media: z.ZodObject<{
|
|
1192
1242
|
images: z.ZodArray<z.ZodObject<{
|
|
1193
1243
|
id: z.ZodUUID;
|
|
1194
|
-
created_at: z.
|
|
1195
|
-
updated_at: z.
|
|
1244
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1245
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1196
1246
|
uri: z.ZodString;
|
|
1197
1247
|
alt: z.ZodString;
|
|
1198
1248
|
src: z.ZodString;
|
package/dist/schemas/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const ImageSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodUUID;
|
|
4
|
-
created_at: z.
|
|
5
|
-
updated_at: z.
|
|
4
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
5
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
6
6
|
uri: z.ZodString;
|
|
7
7
|
alt: z.ZodString;
|
|
8
8
|
src: z.ZodString;
|
|
@@ -14,7 +14,7 @@ export declare const OptionSchema: z.ZodObject<{
|
|
|
14
14
|
value: z.ZodCoercedNumber<unknown>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export declare const ReportContentSchema: z.ZodObject<{
|
|
17
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
17
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
18
18
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
19
19
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
20
20
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -33,12 +33,18 @@ export declare const ReportContentSchema: z.ZodObject<{
|
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
export declare const ReportSchema: z.ZodObject<{
|
|
35
35
|
id: z.ZodUUID;
|
|
36
|
-
created_at: z.
|
|
37
|
-
updated_at: z.
|
|
38
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
36
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
37
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
38
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
39
|
+
state: z.ZodEnum<{
|
|
40
|
+
DISCARDED: "DISCARDED";
|
|
41
|
+
DRAFTED: "DRAFTED";
|
|
42
|
+
PUBLISHED: "PUBLISHED";
|
|
43
|
+
CHANGED: "CHANGED";
|
|
44
|
+
}>;
|
|
39
45
|
viewer_password: z.ZodString;
|
|
40
46
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
47
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
42
48
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
43
49
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
44
50
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -90,7 +96,7 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
90
96
|
cover_image_id: string | null;
|
|
91
97
|
} | null | undefined>>;
|
|
92
98
|
published_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
93
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
99
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
94
100
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
95
101
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
96
102
|
location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -144,8 +150,8 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
144
150
|
media: z.ZodObject<{
|
|
145
151
|
images: z.ZodArray<z.ZodObject<{
|
|
146
152
|
id: z.ZodUUID;
|
|
147
|
-
created_at: z.
|
|
148
|
-
updated_at: z.
|
|
153
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
154
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
149
155
|
uri: z.ZodString;
|
|
150
156
|
alt: z.ZodString;
|
|
151
157
|
src: z.ZodString;
|
|
@@ -156,8 +162,8 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
156
162
|
}, z.core.$strip>;
|
|
157
163
|
export declare const UserSchema: z.ZodObject<{
|
|
158
164
|
id: z.ZodUUID;
|
|
159
|
-
created_at: z.
|
|
160
|
-
updated_at: z.
|
|
165
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
166
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
161
167
|
sub: z.ZodString;
|
|
162
168
|
is_mutirao: z.ZodBoolean;
|
|
163
169
|
}, z.core.$strip>;
|
package/dist/schemas/legacy.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ export declare const SurveySchema: {
|
|
|
36
36
|
payload: z.ZodUndefined;
|
|
37
37
|
response: z.ZodObject<{
|
|
38
38
|
id: z.ZodUUID;
|
|
39
|
-
created_at: z.
|
|
40
|
-
updated_at: z.
|
|
39
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
40
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
sections: z.ZodArray<z.ZodObject<{
|
|
43
43
|
primary: z.ZodObject<{
|
|
@@ -68,7 +68,7 @@ export declare const SurveyResponseSchema: {
|
|
|
68
68
|
};
|
|
69
69
|
export declare const AssemblyOverviewSchema: {
|
|
70
70
|
payload: z.ZodObject<{
|
|
71
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
71
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
72
72
|
name: z.ZodString;
|
|
73
73
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
74
74
|
topics: z.ZodArray<z.ZodString>;
|
|
@@ -76,15 +76,15 @@ export declare const AssemblyOverviewSchema: {
|
|
|
76
76
|
hide: z.ZodDefault<z.ZodBoolean>;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
response: z.ZodObject<{
|
|
79
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
79
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
80
80
|
name: z.ZodString;
|
|
81
81
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
82
82
|
topics: z.ZodArray<z.ZodString>;
|
|
83
83
|
country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
84
84
|
hide: z.ZodDefault<z.ZodBoolean>;
|
|
85
85
|
id: z.ZodUUID;
|
|
86
|
-
created_at: z.
|
|
87
|
-
updated_at: z.
|
|
86
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
87
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
88
88
|
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
89
89
|
has_image: z.ZodBoolean;
|
|
90
90
|
user_id: z.ZodUUID;
|
|
@@ -94,15 +94,15 @@ export declare const AssembliesListSchema: {
|
|
|
94
94
|
payload: z.ZodUndefined;
|
|
95
95
|
response: z.ZodObject<{
|
|
96
96
|
assemblies: z.ZodArray<z.ZodObject<{
|
|
97
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
97
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
98
98
|
name: z.ZodString;
|
|
99
99
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
100
100
|
topics: z.ZodArray<z.ZodString>;
|
|
101
101
|
country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
102
102
|
hide: z.ZodDefault<z.ZodBoolean>;
|
|
103
103
|
id: z.ZodUUID;
|
|
104
|
-
created_at: z.
|
|
105
|
-
updated_at: z.
|
|
104
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
105
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
106
106
|
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
107
107
|
has_image: z.ZodBoolean;
|
|
108
108
|
user_id: z.ZodUUID;
|
|
@@ -111,7 +111,7 @@ export declare const AssembliesListSchema: {
|
|
|
111
111
|
};
|
|
112
112
|
export declare const AssemblyDetailSchema: {
|
|
113
113
|
payload: z.ZodObject<{
|
|
114
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
114
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
115
115
|
name: z.ZodString;
|
|
116
116
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
117
117
|
topics: z.ZodArray<z.ZodString>;
|
|
@@ -139,7 +139,7 @@ export declare const AssemblyDetailSchema: {
|
|
|
139
139
|
event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
140
140
|
visible_on_profile: z.ZodBoolean;
|
|
141
141
|
registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
142
|
-
start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
142
|
+
start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
143
143
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
144
144
|
visible_on_profile: boolean;
|
|
145
145
|
registration_link: string | null;
|
|
@@ -282,10 +282,10 @@ export declare const AssemblyDetailSchema: {
|
|
|
282
282
|
} | null | undefined>>;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
284
|
response: z.ZodObject<{
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
286
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
287
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
287
288
|
id: z.ZodUUID;
|
|
288
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
289
289
|
name: z.ZodString;
|
|
290
290
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
291
291
|
topics: z.ZodArray<z.ZodString>;
|
|
@@ -300,8 +300,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
300
300
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
301
301
|
type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
302
302
|
id: z.ZodUUID;
|
|
303
|
-
created_at: z.
|
|
304
|
-
updated_at: z.
|
|
303
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
304
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
305
305
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
306
306
|
visible_on_profile: boolean;
|
|
307
307
|
name: string | null;
|
|
@@ -322,9 +322,9 @@ export declare const AssemblyDetailSchema: {
|
|
|
322
322
|
event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
323
323
|
visible_on_profile: z.ZodBoolean;
|
|
324
324
|
registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
325
|
-
start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
326
|
-
created_at: z.
|
|
327
|
-
updated_at: z.
|
|
325
|
+
start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
326
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
327
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
328
328
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
329
329
|
visible_on_profile: boolean;
|
|
330
330
|
registration_link: string | null;
|
|
@@ -341,8 +341,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
341
341
|
story: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
342
342
|
visible_on_profile: z.ZodBoolean;
|
|
343
343
|
background: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
344
|
-
created_at: z.
|
|
345
|
-
updated_at: z.
|
|
344
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
345
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
346
346
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
347
347
|
visible_on_profile: boolean;
|
|
348
348
|
background: string | null;
|
|
@@ -358,8 +358,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
358
358
|
visible_on_profile: z.ZodBoolean;
|
|
359
359
|
organisation_types: z.ZodArray<z.ZodString>;
|
|
360
360
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
361
|
-
created_at: z.
|
|
362
|
-
updated_at: z.
|
|
361
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
362
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
363
363
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
364
364
|
visible_on_profile: boolean;
|
|
365
365
|
organisation_types: string[];
|
|
@@ -377,8 +377,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
377
377
|
visible_on_profile: z.ZodBoolean;
|
|
378
378
|
organisation_types: z.ZodArray<z.ZodString>;
|
|
379
379
|
description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
380
|
-
created_at: z.
|
|
381
|
-
updated_at: z.
|
|
380
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
381
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
382
382
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
383
383
|
visible_on_profile: boolean;
|
|
384
384
|
organisation_types: string[];
|
|
@@ -395,8 +395,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
395
395
|
facilitation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
396
396
|
visible_on_profile: z.ZodBoolean;
|
|
397
397
|
decision_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
398
|
-
created_at: z.
|
|
399
|
-
updated_at: z.
|
|
398
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
399
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
400
400
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
401
401
|
visible_on_profile: boolean;
|
|
402
402
|
decision_method: string | null;
|
|
@@ -412,8 +412,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
412
412
|
visible_on_profile: z.ZodBoolean;
|
|
413
413
|
recruitment_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
414
414
|
community: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
415
|
-
created_at: z.
|
|
416
|
-
updated_at: z.
|
|
415
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
416
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
417
417
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
418
418
|
visible_on_profile: boolean;
|
|
419
419
|
recruitment_method: string | null;
|
|
@@ -430,8 +430,8 @@ export declare const AssemblyDetailSchema: {
|
|
|
430
430
|
support: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
431
431
|
visible_on_profile: z.ZodBoolean;
|
|
432
432
|
support_options: z.ZodArray<z.ZodString>;
|
|
433
|
-
created_at: z.
|
|
434
|
-
updated_at: z.
|
|
433
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
434
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
435
435
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
436
436
|
visible_on_profile: boolean;
|
|
437
437
|
support_options: string[];
|
|
@@ -576,15 +576,15 @@ export declare const PinListSchema: {
|
|
|
576
576
|
payload: z.ZodUndefined;
|
|
577
577
|
response: z.ZodObject<{
|
|
578
578
|
assemblies: z.ZodArray<z.ZodObject<{
|
|
579
|
-
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.
|
|
579
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
580
580
|
name: z.ZodString;
|
|
581
581
|
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
582
582
|
topics: z.ZodArray<z.ZodString>;
|
|
583
583
|
country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
584
584
|
hide: z.ZodDefault<z.ZodBoolean>;
|
|
585
585
|
id: z.ZodUUID;
|
|
586
|
-
created_at: z.
|
|
587
|
-
updated_at: z.
|
|
586
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
587
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
588
588
|
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
589
589
|
has_image: z.ZodBoolean;
|
|
590
590
|
user_id: z.ZodUUID;
|
package/dist/schemas/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import z, { ZodType } from 'zod';
|
|
2
|
-
export declare const isoDateString: z.
|
|
2
|
+
export declare const isoDateString: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
3
3
|
export declare const maybe: <T extends ZodType<unknown>>(_: T) => z.ZodPipe<z.ZodOptional<z.ZodNullable<T>>, z.ZodTransform<Awaited<NonNullable<z.core.output<T>>> | null, z.core.output<T> | null | undefined>>;
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import z
|
|
1
|
+
import z from 'zod';
|
|
2
2
|
import { AssembliesListSchema, AssemblyDetailSchema, AssemblyOverviewSchema, FeedbackSchema, LogSchema, PatchAccountReportsIdPublishSchema, PinListSchema, PinSchema, PostAccountReportsIdCoverImageSchema, RegisterSchema, SurveyResponseSchema, SurveySchema } from '../schemas';
|
|
3
|
-
import { ApiRestMethod } from './enums';
|
|
4
|
-
export type ApiEndpointSchema = {
|
|
5
|
-
endpoint: (...params: string[]) => string;
|
|
6
|
-
method: ApiRestMethod;
|
|
7
|
-
payload: ZodType;
|
|
8
|
-
response: ZodType;
|
|
9
|
-
};
|
|
10
3
|
export type PublishReportPayload = z.infer<(typeof PatchAccountReportsIdPublishSchema)['payload']>;
|
|
11
4
|
export type ImageMetadataPayload = z.infer<(typeof PostAccountReportsIdCoverImageSchema)['payload']>;
|
|
12
5
|
export type AssemblyDetailPayload = z.infer<(typeof AssemblyDetailSchema)['payload']>;
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ export declare enum ApiEndpoint {
|
|
|
19
19
|
SURVEYS = "/surveys",
|
|
20
20
|
SURVEY_RESPONSES = "/assemblies/:ID/survey-responses/:NAME"
|
|
21
21
|
}
|
|
22
|
+
export declare enum ReportState {
|
|
23
|
+
DISCARDED = "DISCARDED",
|
|
24
|
+
DRAFTED = "DRAFT",
|
|
25
|
+
PUBLISHED = "PUBLISHED",
|
|
26
|
+
CHANGED = "CHANGED"
|
|
27
|
+
}
|
|
22
28
|
export declare enum SurveyName {
|
|
23
29
|
DELIBERATION = "deliberation",
|
|
24
30
|
DEMOGRAPHIC_DATA = "demographic-data",
|
package/package.json
CHANGED
package/src/schemas/base.ts
CHANGED
|
@@ -43,6 +43,7 @@ export const ReportSchema = z.object({
|
|
|
43
43
|
created_at: isoDateString,
|
|
44
44
|
updated_at: isoDateString,
|
|
45
45
|
published_at: maybe(isoDateString),
|
|
46
|
+
state: z.enum(['DISCARDED', 'DRAFTED', 'PUBLISHED', 'CHANGED']),
|
|
46
47
|
viewer_password: z.string(),
|
|
47
48
|
draft_content: maybe(ReportContentSchema),
|
|
48
49
|
published_content: maybe(ReportContentSchema),
|
package/src/types/enums.ts
CHANGED
|
@@ -22,6 +22,13 @@ export enum ApiEndpoint {
|
|
|
22
22
|
SURVEY_RESPONSES = '/assemblies/:ID/survey-responses/:NAME'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export enum ReportState {
|
|
26
|
+
DISCARDED = 'DISCARDED',
|
|
27
|
+
DRAFTED = 'DRAFT',
|
|
28
|
+
PUBLISHED = 'PUBLISHED',
|
|
29
|
+
CHANGED = 'CHANGED'
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
export enum SurveyName {
|
|
26
33
|
DELIBERATION = 'deliberation',
|
|
27
34
|
DEMOGRAPHIC_DATA = 'demographic-data',
|