@assemblis/contracts 0.1.4 → 0.1.6

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 CHANGED
@@ -1 +1 @@
1
- import e from"zod";const t=e.iso.datetime(),a=e=>e.nullish().transform(e=>e??null),r=e.object({id:e.uuid(),created_at:t,updated_at:t,uri:e.string(),alt:e.string(),src:e.string(),sizes:e.string(),srcset:e.string()}),n=e.object({label:e.string(),value:e.coerce.number().int()}),o=e.object({published_at:a(t),title:a(e.string()),description:a(e.string()),location:a(e.string()),outputs:a(e.string().array()),initiation_type:a(e.string()),recruitment_method:a(e.string()),recruitment_description:a(e.string()),participant_count:a(e.int()),organiser_reflections:a(e.string()),organiser_report_url:a(e.string()),location_details:a(e.string()),date:a(e.string()),duration:a(e.int()),contact_information_url:a(e.string()),cover_image_id:a(e.string())}),i=e.object({id:e.uuid(),created_at:t,updated_at:t,published_at:a(t),viewer_password:e.string(),draft_content:a(o),published_content:a(o),media:e.object({images:r.array()})});var s,d,c,p;e.object({id:e.uuid(),created_at:t,updated_at:t,sub:e.string(),is_mutirao:e.boolean()}),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH"}(s||(s={})),function(e){e.ID=":ID",e.NAME=":NAME"}(d||(d={})),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"}(c||(c={})),function(e){e.DELIBERATION="deliberation",e.DEMOGRAPHIC_DATA="demographic-data",e.PRE_ASSEMBLY="pre-assembly",e.POST_ASSEMBLY="post-assembly"}(p||(p={}));const u={endpoint:()=>c.ACCOUNT_REPORTS,method:s.GET,payload:e.never(),response:e.object({reports:i.array()})},_={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}`,method:s.GET,payload:e.never(),response:i},l={endpoint:()=>c.ACCOUNT_REPORTS,method:s.POST,payload:a(o.omit({cover_image_id:!0})),response:i},b={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}/content`,method:s.PUT,payload:o.omit({cover_image_id:!0}),response:i},g={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}/discard`,method:s.PATCH,payload:e.never(),response:a(i)},m={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}/publish`,method:s.PATCH,payload:e.object({published_at:t}),response:i},y={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}/unpublish`,method:s.PATCH,payload:e.never(),response:i},S={endpoint:e=>`${c.ACCOUNT_REPORTS}/${e}/cover-image`,method:s.POST,payload:r.pick({alt:!0}),response:i},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()}),E={payload:e.undefined(),response:e.object({id:e.uuid(),created_at:t,updated_at:t,name:e.string(),sections:e.object({primary:O,secondary:O.array(),options:n.array()}).array()})},v={payload:e.object({answers:e.object({question_id:e.uuid(),answer_value:e.coerce.number().int()}).array()}),response:e.object({total:e.number().int()})},x=e.object({visible_on_profile:e.boolean(),description:a(e.string())}),A=e.object({text:e.string(),agreed:a(e.coerce.number().int()),against:a(e.coerce.number().int()),abstained:a(e.coerce.number().int()),include_in_action_plan:e.boolean().default(!0),assembly_id:e.uuid()}),R=e.object({text:e.string(),complete:e.boolean().default(!1),action_id:e.uuid(),assembly_id:e.uuid()}),P=e.object({published_at:a(t),name:e.string(),about:a(e.string()),topics:e.string().array(),country:a(e.string()),hide:e.boolean().default(!1)}),C={payload:P,response:P.extend({id:e.uuid(),created_at:t,updated_at:t,image_src:a(e.string()),has_image:e.boolean().meta({deprecated:!0}),user_id:e.uuid().meta({deprecated:!0})})},h={payload:e.undefined(),response:e.object({assemblies:C.response.array()})},I=e.object({visible_on_profile:e.boolean(),name:a(e.string()),description:a(e.string()),type:a(e.string())}),N=e.object({visible_on_profile:e.boolean(),registration_link:a(e.string()),start_date:a(t)}),U=e.object({visible_on_profile:e.boolean(),background:a(e.string())}),$=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:a(e.string())}),k=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:a(e.string())}),w=e.object({visible_on_profile:e.boolean(),decision_method:a(e.string())}),M=e.object({visible_on_profile:e.boolean(),recruitment_method:a(e.string()),community:a(e.string())}),D=e.object({visible_on_profile:e.boolean(),support_options:e.string().array()}),B=e.object({visible_on_profile:e.boolean()}),G={payload:C.payload.extend({organisation:a(I.extend({id:e.uuid().optional()})),event_details:a(N),story:a(U),supporters:a($),funders:a(k),facilitation:a(w),participants:a(M),support:a(D),action_plan:a(x.extend({actions:A.omit({assembly_id:!0}).extend({id:e.uuid().optional(),tasks:R.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid().optional()}).array(),updates:e.unknown().array()}).array(),updates:e.unknown().array()})),surveys:a(B)}),response:C.response.omit({user_id:!0}).extend({is_own:e.boolean(),organisation:a(I.extend({id:e.uuid(),created_at:t,updated_at:t})),event_details:a(N.extend({created_at:t,updated_at:t})),story:a(U.extend({created_at:t,updated_at:t})),supporters:a($.extend({created_at:t,updated_at:t})),funders:a(k.extend({created_at:t,updated_at:t})),facilitation:a(w.extend({created_at:t,updated_at:t})),participants:a(M.extend({created_at:t,updated_at:t})),support:a(D.extend({created_at:t,updated_at:t})),action_plan:a(x.extend({actions:A.omit({assembly_id:!0}).extend({id:e.uuid(),created_at:t,updated_at:e.coerce.date().transform(e=>e.toISOString()),tasks:R.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:a(B.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(),n.array())}))}))})},H={payload:e.object({country:e.string(),email:e.string(),text:a(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:a(e.string()),hide:e.boolean(),image_src:a(e.string()),has_image:e.boolean().meta({deprecated:!0})})},L={payload:e.undefined(),response:e.object({assemblies:C.response.array(),pins:H.response.array()})};export{c as ApiEndpoint,s as ApiRestMethod,d as ApiRouteParameter,h as AssembliesListSchema,G as AssemblyDetailSchema,C as AssemblyOverviewSchema,T as FeedbackSchema,_ as GetAccountReportsIdSchema,u as GetAccountReportsSchema,f as LogSchema,g as PatchAccountReportsIdDiscardSchema,m as PatchAccountReportsIdPublishSchema,y as PatchAccountReportsIdUnpublishSchema,L as PinListSchema,H as PinSchema,S as PostAccountReportsIdCoverImageSchema,l as PostAccountReportsSchema,b as PutAccountReportsIdContentSchema,j as RegisterSchema,p as SurveyName,v as SurveyResponseSchema,E as SurveySchema};
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};
@@ -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.ZodISODateTime;
11
- updated_at: z.ZodISODateTime;
12
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
122
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
140
- updated_at: z.ZodISODateTime;
141
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
251
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
316
- updated_at: z.ZodISODateTime;
317
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
427
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
460
- updated_at: z.ZodISODateTime;
461
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
571
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
588
- updated_at: z.ZodISODateTime;
589
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
699
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
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.ZodISODateTime;
826
- updated_at: z.ZodISODateTime;
827
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
937
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
954
- updated_at: z.ZodISODateTime;
955
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
1065
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
1084
- updated_at: z.ZodISODateTime;
1085
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
1195
- updated_at: z.ZodISODateTime;
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;
@@ -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.ZodISODateTime;
5
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
37
- updated_at: z.ZodISODateTime;
38
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
148
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
160
- updated_at: z.ZodISODateTime;
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>;
@@ -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.ZodISODateTime;
40
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
87
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
105
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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
- created_at: z.ZodISODateTime;
286
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
304
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
326
- created_at: z.ZodISODateTime;
327
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
345
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
362
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
381
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
399
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
416
- updated_at: z.ZodISODateTime;
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.ZodISODateTime;
434
- updated_at: z.ZodISODateTime;
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.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
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.ZodISODateTime;
587
- updated_at: z.ZodISODateTime;
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;
@@ -1,3 +1,3 @@
1
1
  import z, { ZodType } from 'zod';
2
- export declare const isoDateString: z.ZodISODateTime;
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>>;
@@ -1,12 +1,5 @@
1
- import z, { ZodType } from 'zod';
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']>;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblis/contracts",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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),