@assemblis/contracts 0.0.13 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas.d.ts DELETED
@@ -1,613 +0,0 @@
1
- import z from 'zod';
2
- export declare const UserSchema: {
3
- payload: z.ZodUndefined;
4
- response: z.ZodObject<{
5
- id: z.ZodUUID;
6
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
7
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
8
- sub: z.ZodString;
9
- is_mutirao: z.ZodBoolean;
10
- }, z.core.$strip>;
11
- };
12
- export declare const SurveySchema: {
13
- payload: z.ZodUndefined;
14
- response: z.ZodObject<{
15
- id: z.ZodUUID;
16
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
17
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
18
- name: z.ZodString;
19
- sections: z.ZodArray<z.ZodObject<{
20
- primary: z.ZodObject<{
21
- id: z.ZodUUID;
22
- text: z.ZodString;
23
- }, z.core.$strip>;
24
- secondary: z.ZodArray<z.ZodObject<{
25
- id: z.ZodUUID;
26
- text: z.ZodString;
27
- }, z.core.$strip>>;
28
- options: z.ZodArray<z.ZodObject<{
29
- label: z.ZodString;
30
- value: z.ZodCoercedNumber<unknown>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>>;
33
- }, z.core.$strip>;
34
- };
35
- export declare const SurveyResponseSchema: {
36
- payload: z.ZodObject<{
37
- answers: z.ZodArray<z.ZodObject<{
38
- question_id: z.ZodUUID;
39
- answer_value: z.ZodCoercedNumber<unknown>;
40
- }, z.core.$strip>>;
41
- }, z.core.$strip>;
42
- response: z.ZodObject<{
43
- total: z.ZodNumber;
44
- }, z.core.$strip>;
45
- };
46
- export declare const AssemblyOverviewSchema: {
47
- payload: z.ZodObject<{
48
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
49
- name: z.ZodString;
50
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
51
- topics: z.ZodArray<z.ZodString>;
52
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
53
- hide: z.ZodDefault<z.ZodBoolean>;
54
- }, z.core.$strip>;
55
- response: z.ZodObject<{
56
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
57
- name: z.ZodString;
58
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
59
- topics: z.ZodArray<z.ZodString>;
60
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
61
- hide: z.ZodDefault<z.ZodBoolean>;
62
- id: z.ZodUUID;
63
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
64
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
65
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
66
- has_image: z.ZodBoolean;
67
- user_id: z.ZodUUID;
68
- }, z.core.$strip>;
69
- };
70
- export declare const AssembliesListSchema: {
71
- payload: z.ZodUndefined;
72
- response: z.ZodObject<{
73
- assemblies: z.ZodArray<z.ZodObject<{
74
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
75
- name: z.ZodString;
76
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
77
- topics: z.ZodArray<z.ZodString>;
78
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
79
- hide: z.ZodDefault<z.ZodBoolean>;
80
- id: z.ZodUUID;
81
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
82
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
83
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
84
- has_image: z.ZodBoolean;
85
- user_id: z.ZodUUID;
86
- }, z.core.$strip>>;
87
- }, z.core.$strip>;
88
- };
89
- export declare const AssemblyDetailSchema: {
90
- payload: z.ZodObject<{
91
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
92
- name: z.ZodString;
93
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
94
- topics: z.ZodArray<z.ZodString>;
95
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
96
- hide: z.ZodDefault<z.ZodBoolean>;
97
- organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
98
- visible_on_profile: z.ZodBoolean;
99
- name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
100
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
101
- type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
102
- id: z.ZodOptional<z.ZodUUID>;
103
- }, z.core.$strip>>>, z.ZodTransform<{
104
- visible_on_profile: boolean;
105
- name: string | null;
106
- description: string | null;
107
- type: string | null;
108
- id?: string | undefined;
109
- } | null, {
110
- visible_on_profile: boolean;
111
- name: string | null;
112
- description: string | null;
113
- type: string | null;
114
- id?: string | undefined;
115
- } | null | undefined>>;
116
- event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
- visible_on_profile: z.ZodBoolean;
118
- registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
119
- start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
120
- }, z.core.$strip>>>, z.ZodTransform<{
121
- visible_on_profile: boolean;
122
- registration_link: string | null;
123
- start_date: string | null;
124
- } | null, {
125
- visible_on_profile: boolean;
126
- registration_link: string | null;
127
- start_date: string | null;
128
- } | null | undefined>>;
129
- story: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
130
- visible_on_profile: z.ZodBoolean;
131
- background: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
132
- }, z.core.$strip>>>, z.ZodTransform<{
133
- visible_on_profile: boolean;
134
- background: string | null;
135
- } | null, {
136
- visible_on_profile: boolean;
137
- background: string | null;
138
- } | null | undefined>>;
139
- supporters: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
140
- visible_on_profile: z.ZodBoolean;
141
- organisation_types: z.ZodArray<z.ZodString>;
142
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
143
- }, z.core.$strip>>>, z.ZodTransform<{
144
- visible_on_profile: boolean;
145
- organisation_types: string[];
146
- description: string | null;
147
- } | null, {
148
- visible_on_profile: boolean;
149
- organisation_types: string[];
150
- description: string | null;
151
- } | null | undefined>>;
152
- funders: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
- visible_on_profile: z.ZodBoolean;
154
- organisation_types: z.ZodArray<z.ZodString>;
155
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
156
- }, z.core.$strip>>>, z.ZodTransform<{
157
- visible_on_profile: boolean;
158
- organisation_types: string[];
159
- description: string | null;
160
- } | null, {
161
- visible_on_profile: boolean;
162
- organisation_types: string[];
163
- description: string | null;
164
- } | null | undefined>>;
165
- facilitation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
166
- visible_on_profile: z.ZodBoolean;
167
- decision_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
168
- }, z.core.$strip>>>, z.ZodTransform<{
169
- visible_on_profile: boolean;
170
- decision_method: string | null;
171
- } | null, {
172
- visible_on_profile: boolean;
173
- decision_method: string | null;
174
- } | null | undefined>>;
175
- participants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
176
- visible_on_profile: z.ZodBoolean;
177
- recruitment_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
178
- community: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
179
- }, z.core.$strip>>>, z.ZodTransform<{
180
- visible_on_profile: boolean;
181
- recruitment_method: string | null;
182
- community: string | null;
183
- } | null, {
184
- visible_on_profile: boolean;
185
- recruitment_method: string | null;
186
- community: string | null;
187
- } | null | undefined>>;
188
- support: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
189
- visible_on_profile: z.ZodBoolean;
190
- support_options: z.ZodArray<z.ZodString>;
191
- }, z.core.$strip>>>, z.ZodTransform<{
192
- visible_on_profile: boolean;
193
- support_options: string[];
194
- } | null, {
195
- visible_on_profile: boolean;
196
- support_options: string[];
197
- } | null | undefined>>;
198
- action_plan: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
199
- visible_on_profile: z.ZodBoolean;
200
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
201
- actions: z.ZodArray<z.ZodObject<{
202
- text: z.ZodString;
203
- agreed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
204
- against: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
205
- abstained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
206
- include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
207
- id: z.ZodOptional<z.ZodUUID>;
208
- tasks: z.ZodArray<z.ZodObject<{
209
- text: z.ZodString;
210
- complete: z.ZodDefault<z.ZodBoolean>;
211
- id: z.ZodOptional<z.ZodUUID>;
212
- }, z.core.$strip>>;
213
- updates: z.ZodArray<z.ZodUnknown>;
214
- }, z.core.$strip>>;
215
- updates: z.ZodArray<z.ZodUnknown>;
216
- }, z.core.$strip>>>, z.ZodTransform<{
217
- visible_on_profile: boolean;
218
- description: string | null;
219
- actions: {
220
- text: string;
221
- agreed: number | null;
222
- against: number | null;
223
- abstained: number | null;
224
- include_in_action_plan: boolean;
225
- tasks: {
226
- text: string;
227
- complete: boolean;
228
- id?: string | undefined;
229
- }[];
230
- updates: unknown[];
231
- id?: string | undefined;
232
- }[];
233
- updates: unknown[];
234
- } | null, {
235
- visible_on_profile: boolean;
236
- description: string | null;
237
- actions: {
238
- text: string;
239
- agreed: number | null;
240
- against: number | null;
241
- abstained: number | null;
242
- include_in_action_plan: boolean;
243
- tasks: {
244
- text: string;
245
- complete: boolean;
246
- id?: string | undefined;
247
- }[];
248
- updates: unknown[];
249
- id?: string | undefined;
250
- }[];
251
- updates: unknown[];
252
- } | null | undefined>>;
253
- surveys: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
254
- visible_on_profile: z.ZodBoolean;
255
- }, z.core.$strip>>>, z.ZodTransform<{
256
- visible_on_profile: boolean;
257
- } | null, {
258
- visible_on_profile: boolean;
259
- } | null | undefined>>;
260
- }, z.core.$strip>;
261
- response: z.ZodObject<{
262
- id: z.ZodUUID;
263
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
264
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
265
- name: z.ZodString;
266
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
267
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
268
- topics: z.ZodArray<z.ZodString>;
269
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
270
- hide: z.ZodDefault<z.ZodBoolean>;
271
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
272
- has_image: z.ZodBoolean;
273
- is_own: z.ZodBoolean;
274
- organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
275
- visible_on_profile: z.ZodBoolean;
276
- name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
277
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
278
- type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
279
- id: z.ZodUUID;
280
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
281
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
282
- }, z.core.$strip>>>, z.ZodTransform<{
283
- visible_on_profile: boolean;
284
- name: string | null;
285
- description: string | null;
286
- type: string | null;
287
- id: string;
288
- created_at: string;
289
- updated_at: string;
290
- } | null, {
291
- visible_on_profile: boolean;
292
- name: string | null;
293
- description: string | null;
294
- type: string | null;
295
- id: string;
296
- created_at: string;
297
- updated_at: string;
298
- } | null | undefined>>;
299
- event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
300
- visible_on_profile: z.ZodBoolean;
301
- registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
302
- start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
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
- }, z.core.$strip>>>, z.ZodTransform<{
306
- visible_on_profile: boolean;
307
- registration_link: string | null;
308
- start_date: string | null;
309
- created_at: string;
310
- updated_at: string;
311
- } | null, {
312
- visible_on_profile: boolean;
313
- registration_link: string | null;
314
- start_date: string | null;
315
- created_at: string;
316
- updated_at: string;
317
- } | null | undefined>>;
318
- story: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
319
- visible_on_profile: z.ZodBoolean;
320
- background: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
321
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
322
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
323
- }, z.core.$strip>>>, z.ZodTransform<{
324
- visible_on_profile: boolean;
325
- background: string | null;
326
- created_at: string;
327
- updated_at: string;
328
- } | null, {
329
- visible_on_profile: boolean;
330
- background: string | null;
331
- created_at: string;
332
- updated_at: string;
333
- } | null | undefined>>;
334
- supporters: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
335
- visible_on_profile: z.ZodBoolean;
336
- organisation_types: z.ZodArray<z.ZodString>;
337
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
338
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
339
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
340
- }, z.core.$strip>>>, z.ZodTransform<{
341
- visible_on_profile: boolean;
342
- organisation_types: string[];
343
- description: string | null;
344
- created_at: string;
345
- updated_at: string;
346
- } | null, {
347
- visible_on_profile: boolean;
348
- organisation_types: string[];
349
- description: string | null;
350
- created_at: string;
351
- updated_at: string;
352
- } | null | undefined>>;
353
- funders: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
354
- visible_on_profile: z.ZodBoolean;
355
- organisation_types: z.ZodArray<z.ZodString>;
356
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
357
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
358
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
359
- }, z.core.$strip>>>, z.ZodTransform<{
360
- visible_on_profile: boolean;
361
- organisation_types: string[];
362
- description: string | null;
363
- created_at: string;
364
- updated_at: string;
365
- } | null, {
366
- visible_on_profile: boolean;
367
- organisation_types: string[];
368
- description: string | null;
369
- created_at: string;
370
- updated_at: string;
371
- } | null | undefined>>;
372
- facilitation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
373
- visible_on_profile: z.ZodBoolean;
374
- decision_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
375
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
376
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
377
- }, z.core.$strip>>>, z.ZodTransform<{
378
- visible_on_profile: boolean;
379
- decision_method: string | null;
380
- created_at: string;
381
- updated_at: string;
382
- } | null, {
383
- visible_on_profile: boolean;
384
- decision_method: string | null;
385
- created_at: string;
386
- updated_at: string;
387
- } | null | undefined>>;
388
- participants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
389
- visible_on_profile: z.ZodBoolean;
390
- recruitment_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
391
- community: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
392
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
393
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
394
- }, z.core.$strip>>>, z.ZodTransform<{
395
- visible_on_profile: boolean;
396
- recruitment_method: string | null;
397
- community: string | null;
398
- created_at: string;
399
- updated_at: string;
400
- } | null, {
401
- visible_on_profile: boolean;
402
- recruitment_method: string | null;
403
- community: string | null;
404
- created_at: string;
405
- updated_at: string;
406
- } | null | undefined>>;
407
- support: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
408
- visible_on_profile: z.ZodBoolean;
409
- support_options: z.ZodArray<z.ZodString>;
410
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
411
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
412
- }, z.core.$strip>>>, z.ZodTransform<{
413
- visible_on_profile: boolean;
414
- support_options: string[];
415
- created_at: string;
416
- updated_at: string;
417
- } | null, {
418
- visible_on_profile: boolean;
419
- support_options: string[];
420
- created_at: string;
421
- updated_at: string;
422
- } | null | undefined>>;
423
- action_plan: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodIntersection<z.ZodObject<{
424
- visible_on_profile: z.ZodBoolean;
425
- description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
426
- actions: z.ZodArray<z.ZodObject<{
427
- text: z.ZodString;
428
- agreed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
429
- against: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
430
- abstained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
431
- include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
432
- id: z.ZodUUID;
433
- tasks: z.ZodArray<z.ZodObject<{
434
- text: z.ZodString;
435
- complete: z.ZodDefault<z.ZodBoolean>;
436
- id: z.ZodUUID;
437
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
438
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
439
- }, z.core.$strip>>;
440
- updates: z.ZodArray<z.ZodUnknown>;
441
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
442
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
443
- }, z.core.$strip>>;
444
- updates: z.ZodArray<z.ZodUnknown>;
445
- }, z.core.$strip>, z.ZodObject<{
446
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
447
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
448
- }, z.core.$strip>>>>, z.ZodTransform<NonNullable<{
449
- visible_on_profile: boolean;
450
- description: string | null;
451
- actions: {
452
- text: string;
453
- agreed: number | null;
454
- against: number | null;
455
- abstained: number | null;
456
- include_in_action_plan: boolean;
457
- id: string;
458
- tasks: {
459
- text: string;
460
- complete: boolean;
461
- id: string;
462
- created_at: string;
463
- updated_at: string;
464
- }[];
465
- updates: unknown[];
466
- created_at: string;
467
- updated_at: string;
468
- }[];
469
- updates: unknown[];
470
- } & {
471
- created_at: string;
472
- updated_at: string;
473
- }> | null, ({
474
- visible_on_profile: boolean;
475
- description: string | null;
476
- actions: {
477
- text: string;
478
- agreed: number | null;
479
- against: number | null;
480
- abstained: number | null;
481
- include_in_action_plan: boolean;
482
- id: string;
483
- tasks: {
484
- text: string;
485
- complete: boolean;
486
- id: string;
487
- created_at: string;
488
- updated_at: string;
489
- }[];
490
- updates: unknown[];
491
- created_at: string;
492
- updated_at: string;
493
- }[];
494
- updates: unknown[];
495
- } & {
496
- created_at: string;
497
- updated_at: string;
498
- }) | null | undefined>>;
499
- surveys: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
500
- visible_on_profile: z.ZodBoolean;
501
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
502
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
503
- data: z.ZodRecord<z.ZodString, z.ZodObject<{
504
- total: z.ZodNumber;
505
- responses: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
506
- label: z.ZodString;
507
- value: z.ZodCoercedNumber<unknown>;
508
- }, z.core.$strip>>>;
509
- }, z.core.$strip>>;
510
- }, z.core.$strip>>>, z.ZodTransform<{
511
- visible_on_profile: boolean;
512
- created_at: string;
513
- updated_at: string;
514
- data: Record<string, {
515
- total: number;
516
- responses: Record<string, {
517
- label: string;
518
- value: number;
519
- }[]>;
520
- }>;
521
- } | null, {
522
- visible_on_profile: boolean;
523
- created_at: string;
524
- updated_at: string;
525
- data: Record<string, {
526
- total: number;
527
- responses: Record<string, {
528
- label: string;
529
- value: number;
530
- }[]>;
531
- }>;
532
- } | null | undefined>>;
533
- }, z.core.$strip>;
534
- };
535
- export declare const FeedbackSchema: {
536
- payload: z.ZodObject<{
537
- route: z.ZodString;
538
- text: z.ZodString;
539
- metadata: z.ZodUnknown;
540
- }, z.core.$strip>;
541
- response: z.ZodString;
542
- };
543
- export declare const LogSchema: {
544
- payload: z.ZodObject<{
545
- message: z.ZodOptional<z.ZodString>;
546
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
547
- metadata: z.ZodObject<{
548
- origin: z.ZodString;
549
- route: z.ZodString;
550
- status: z.ZodNumber;
551
- }, z.core.$strip>;
552
- }, z.core.$strip>;
553
- response: z.ZodString;
554
- };
555
- export declare const RegisterSchema: {
556
- payload: z.ZodObject<{
557
- type: z.ZodLiteral<"user.created">;
558
- object: z.ZodLiteral<"event">;
559
- data: z.ZodObject<{
560
- id: z.ZodString;
561
- email_addresses: z.ZodArray<z.ZodObject<{
562
- email_address: z.ZodString;
563
- }, z.core.$strip>>;
564
- }, z.core.$strip>;
565
- }, z.core.$strip>;
566
- response: z.ZodString;
567
- };
568
- export declare const PinSchema: {
569
- payload: z.ZodObject<{
570
- country: z.ZodString;
571
- email: z.ZodString;
572
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
573
- }, z.core.$strip>;
574
- response: z.ZodObject<{
575
- id: z.ZodUUID;
576
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
577
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
578
- country: z.ZodString;
579
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
580
- hide: z.ZodBoolean;
581
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
582
- has_image: z.ZodBoolean;
583
- }, z.core.$strip>;
584
- };
585
- export declare const PinListSchema: {
586
- payload: z.ZodUndefined;
587
- response: z.ZodObject<{
588
- assemblies: z.ZodArray<z.ZodObject<{
589
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
590
- name: z.ZodString;
591
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
592
- topics: z.ZodArray<z.ZodString>;
593
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
594
- hide: z.ZodDefault<z.ZodBoolean>;
595
- id: z.ZodUUID;
596
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
597
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
598
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
599
- has_image: z.ZodBoolean;
600
- user_id: z.ZodUUID;
601
- }, z.core.$strip>>;
602
- pins: z.ZodArray<z.ZodObject<{
603
- id: z.ZodUUID;
604
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
605
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
606
- country: z.ZodString;
607
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
608
- hide: z.ZodBoolean;
609
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
610
- has_image: z.ZodBoolean;
611
- }, z.core.$strip>>;
612
- }, z.core.$strip>;
613
- };
package/dist/types.d.ts DELETED
@@ -1,50 +0,0 @@
1
- import z from 'zod';
2
- import { AssembliesListSchema, AssemblyDetailSchema, AssemblyOverviewSchema, FeedbackSchema, LogSchema, PinListSchema, PinSchema, RegisterSchema, SurveyResponseSchema, SurveySchema, UserSchema } from './schemas';
3
- export declare enum ApiRestMethod {
4
- GET = "GET",
5
- POST = "POST",
6
- PUT = "PUT",
7
- PATCH = "PATCH"
8
- }
9
- export declare enum ApiRouteParameter {
10
- ID = ":ID",
11
- NAME = ":NAME"
12
- }
13
- export declare enum ApiEndpoint {
14
- ASSEMBLIES = "/assemblies",
15
- FEEDBACK = "/feedback",
16
- INTEREST_ASSEMBLIS = "/interest/assemblis",
17
- INTEREST_MUTIRAO = "/interest/mutirao",
18
- LOGS = "/logs",
19
- PINS = "/pins",
20
- SURVEYS = "/surveys",
21
- SURVEY_RESPONSES = "/assemblies/:ID/survey-responses/:NAME"
22
- }
23
- export declare enum SurveyName {
24
- DELIBERATION = "deliberation",
25
- DEMOGRAPHIC_DATA = "demographic-data",
26
- PRE_ASSEMBLY = "pre-assembly",
27
- POST_ASSEMBLY = "post-assembly"
28
- }
29
- export type AssemblyDetailPayload = z.infer<(typeof AssemblyDetailSchema)['payload']>;
30
- export type AssemblyOverviewPayload = z.infer<(typeof AssemblyOverviewSchema)['payload']>;
31
- export type AssembliesListPayload = z.infer<(typeof AssembliesListSchema)['payload']>;
32
- export type FeedbackPayload = z.infer<(typeof FeedbackSchema)['payload']>;
33
- export type LogPayload = z.infer<(typeof LogSchema)['payload']>;
34
- export type PinPayload = z.infer<(typeof PinSchema)['payload']>;
35
- export type PinListPayload = z.infer<(typeof PinListSchema)['payload']>;
36
- export type RegisterPayload = z.infer<(typeof RegisterSchema)['payload']>;
37
- export type SurveyPayload = z.infer<(typeof SurveySchema)['payload']>;
38
- export type SurveyResponsePayload = z.infer<(typeof SurveyResponseSchema)['payload']>;
39
- export type UserPayload = z.infer<(typeof UserSchema)['payload']>;
40
- export type AssemblyDetailResponse = z.infer<(typeof AssemblyDetailSchema)['response']>;
41
- export type AssemblyOverviewResponse = z.infer<(typeof AssemblyOverviewSchema)['response']>;
42
- export type AssembliesListResponse = z.infer<(typeof AssembliesListSchema)['response']>;
43
- export type FeedbackResponse = z.infer<(typeof FeedbackSchema)['response']>;
44
- export type LogResponse = z.infer<(typeof LogSchema)['response']>;
45
- export type PinResponse = z.infer<(typeof PinSchema)['response']>;
46
- export type PinListResponse = z.infer<(typeof PinListSchema)['response']>;
47
- export type RegisterResponse = z.infer<(typeof RegisterSchema)['response']>;
48
- export type SurveyResponse = z.infer<(typeof SurveySchema)['response']>;
49
- export type SurveyResponseResponse = z.infer<(typeof SurveyResponseSchema)['response']>;
50
- export type UserResponse = z.infer<(typeof UserSchema)['response']>;