@assemblis/contracts 0.0.13 → 0.1.1

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.
@@ -0,0 +1,363 @@
1
+ import z from 'zod';
2
+ export declare const ImageSchema: z.ZodObject<
3
+ {
4
+ id: z.ZodUUID;
5
+ created_at: z.ZodISODateTime;
6
+ updated_at: z.ZodISODateTime;
7
+ uri: z.ZodString;
8
+ alt: z.ZodString;
9
+ src: z.ZodString;
10
+ sizes: z.ZodString;
11
+ srcset: z.ZodString;
12
+ },
13
+ z.core.$strip
14
+ >;
15
+ export declare const OptionSchema: z.ZodObject<
16
+ {
17
+ label: z.ZodString;
18
+ value: z.ZodCoercedNumber<unknown>;
19
+ },
20
+ z.core.$strip
21
+ >;
22
+ export declare const ReportContentSchema: z.ZodObject<
23
+ {
24
+ published_at: z.ZodPipe<
25
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
26
+ z.ZodTransform<string | null, string | null | undefined>
27
+ >;
28
+ title: z.ZodPipe<
29
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
30
+ z.ZodTransform<string | null, string | null | undefined>
31
+ >;
32
+ description: z.ZodPipe<
33
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
34
+ z.ZodTransform<string | null, string | null | undefined>
35
+ >;
36
+ location: z.ZodPipe<
37
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
38
+ z.ZodTransform<string | null, string | null | undefined>
39
+ >;
40
+ outputs: z.ZodPipe<
41
+ z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>,
42
+ z.ZodTransform<string[] | null, string[] | null | undefined>
43
+ >;
44
+ initiation_type: z.ZodPipe<
45
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
46
+ z.ZodTransform<string | null, string | null | undefined>
47
+ >;
48
+ recruitment_method: z.ZodPipe<
49
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
50
+ z.ZodTransform<string | null, string | null | undefined>
51
+ >;
52
+ recruitment_description: z.ZodPipe<
53
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
54
+ z.ZodTransform<string | null, string | null | undefined>
55
+ >;
56
+ participant_count: z.ZodPipe<
57
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
58
+ z.ZodTransform<number | null, number | null | undefined>
59
+ >;
60
+ organiser_reflections: z.ZodPipe<
61
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
62
+ z.ZodTransform<string | null, string | null | undefined>
63
+ >;
64
+ organiser_report_url: z.ZodPipe<
65
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
66
+ z.ZodTransform<string | null, string | null | undefined>
67
+ >;
68
+ location_details: z.ZodPipe<
69
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
70
+ z.ZodTransform<string | null, string | null | undefined>
71
+ >;
72
+ date: z.ZodPipe<
73
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
74
+ z.ZodTransform<string | null, string | null | undefined>
75
+ >;
76
+ duration: z.ZodPipe<
77
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
78
+ z.ZodTransform<number | null, number | null | undefined>
79
+ >;
80
+ contact_information_url: z.ZodPipe<
81
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
82
+ z.ZodTransform<string | null, string | null | undefined>
83
+ >;
84
+ cover_image_id: z.ZodPipe<
85
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
86
+ z.ZodTransform<string | null, string | null | undefined>
87
+ >;
88
+ },
89
+ z.core.$strip
90
+ >;
91
+ export declare const ReportSchema: z.ZodObject<
92
+ {
93
+ id: z.ZodUUID;
94
+ created_at: z.ZodISODateTime;
95
+ updated_at: z.ZodISODateTime;
96
+ published_at: z.ZodPipe<
97
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
98
+ z.ZodTransform<string | null, string | null | undefined>
99
+ >;
100
+ viewer_password: z.ZodString;
101
+ draft_content: z.ZodPipe<
102
+ z.ZodOptional<
103
+ z.ZodNullable<
104
+ z.ZodObject<
105
+ {
106
+ published_at: z.ZodPipe<
107
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
108
+ z.ZodTransform<string | null, string | null | undefined>
109
+ >;
110
+ title: z.ZodPipe<
111
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
112
+ z.ZodTransform<string | null, string | null | undefined>
113
+ >;
114
+ description: z.ZodPipe<
115
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
116
+ z.ZodTransform<string | null, string | null | undefined>
117
+ >;
118
+ location: z.ZodPipe<
119
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
120
+ z.ZodTransform<string | null, string | null | undefined>
121
+ >;
122
+ outputs: z.ZodPipe<
123
+ z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>,
124
+ z.ZodTransform<string[] | null, string[] | null | undefined>
125
+ >;
126
+ initiation_type: z.ZodPipe<
127
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
128
+ z.ZodTransform<string | null, string | null | undefined>
129
+ >;
130
+ recruitment_method: z.ZodPipe<
131
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
132
+ z.ZodTransform<string | null, string | null | undefined>
133
+ >;
134
+ recruitment_description: z.ZodPipe<
135
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
136
+ z.ZodTransform<string | null, string | null | undefined>
137
+ >;
138
+ participant_count: z.ZodPipe<
139
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
140
+ z.ZodTransform<number | null, number | null | undefined>
141
+ >;
142
+ organiser_reflections: z.ZodPipe<
143
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
144
+ z.ZodTransform<string | null, string | null | undefined>
145
+ >;
146
+ organiser_report_url: z.ZodPipe<
147
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
148
+ z.ZodTransform<string | null, string | null | undefined>
149
+ >;
150
+ location_details: z.ZodPipe<
151
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
152
+ z.ZodTransform<string | null, string | null | undefined>
153
+ >;
154
+ date: z.ZodPipe<
155
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
156
+ z.ZodTransform<string | null, string | null | undefined>
157
+ >;
158
+ duration: z.ZodPipe<
159
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
160
+ z.ZodTransform<number | null, number | null | undefined>
161
+ >;
162
+ contact_information_url: z.ZodPipe<
163
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
164
+ z.ZodTransform<string | null, string | null | undefined>
165
+ >;
166
+ cover_image_id: z.ZodPipe<
167
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
168
+ z.ZodTransform<string | null, string | null | undefined>
169
+ >;
170
+ },
171
+ z.core.$strip
172
+ >
173
+ >
174
+ >,
175
+ z.ZodTransform<
176
+ {
177
+ published_at: string | null;
178
+ title: string | null;
179
+ description: string | null;
180
+ location: string | null;
181
+ outputs: string[] | null;
182
+ initiation_type: string | null;
183
+ recruitment_method: string | null;
184
+ recruitment_description: string | null;
185
+ participant_count: number | null;
186
+ organiser_reflections: string | null;
187
+ organiser_report_url: string | null;
188
+ location_details: string | null;
189
+ date: string | null;
190
+ duration: number | null;
191
+ contact_information_url: string | null;
192
+ cover_image_id: string | null;
193
+ } | null,
194
+ | {
195
+ published_at: string | null;
196
+ title: string | null;
197
+ description: string | null;
198
+ location: string | null;
199
+ outputs: string[] | null;
200
+ initiation_type: string | null;
201
+ recruitment_method: string | null;
202
+ recruitment_description: string | null;
203
+ participant_count: number | null;
204
+ organiser_reflections: string | null;
205
+ organiser_report_url: string | null;
206
+ location_details: string | null;
207
+ date: string | null;
208
+ duration: number | null;
209
+ contact_information_url: string | null;
210
+ cover_image_id: string | null;
211
+ }
212
+ | null
213
+ | undefined
214
+ >
215
+ >;
216
+ published_content: z.ZodPipe<
217
+ z.ZodOptional<
218
+ z.ZodNullable<
219
+ z.ZodObject<
220
+ {
221
+ published_at: z.ZodPipe<
222
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
223
+ z.ZodTransform<string | null, string | null | undefined>
224
+ >;
225
+ title: z.ZodPipe<
226
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
227
+ z.ZodTransform<string | null, string | null | undefined>
228
+ >;
229
+ description: z.ZodPipe<
230
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
231
+ z.ZodTransform<string | null, string | null | undefined>
232
+ >;
233
+ location: z.ZodPipe<
234
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
235
+ z.ZodTransform<string | null, string | null | undefined>
236
+ >;
237
+ outputs: z.ZodPipe<
238
+ z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>,
239
+ z.ZodTransform<string[] | null, string[] | null | undefined>
240
+ >;
241
+ initiation_type: z.ZodPipe<
242
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
243
+ z.ZodTransform<string | null, string | null | undefined>
244
+ >;
245
+ recruitment_method: z.ZodPipe<
246
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
247
+ z.ZodTransform<string | null, string | null | undefined>
248
+ >;
249
+ recruitment_description: z.ZodPipe<
250
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
251
+ z.ZodTransform<string | null, string | null | undefined>
252
+ >;
253
+ participant_count: z.ZodPipe<
254
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
255
+ z.ZodTransform<number | null, number | null | undefined>
256
+ >;
257
+ organiser_reflections: z.ZodPipe<
258
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
259
+ z.ZodTransform<string | null, string | null | undefined>
260
+ >;
261
+ organiser_report_url: z.ZodPipe<
262
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
263
+ z.ZodTransform<string | null, string | null | undefined>
264
+ >;
265
+ location_details: z.ZodPipe<
266
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
267
+ z.ZodTransform<string | null, string | null | undefined>
268
+ >;
269
+ date: z.ZodPipe<
270
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
271
+ z.ZodTransform<string | null, string | null | undefined>
272
+ >;
273
+ duration: z.ZodPipe<
274
+ z.ZodOptional<z.ZodNullable<z.ZodInt>>,
275
+ z.ZodTransform<number | null, number | null | undefined>
276
+ >;
277
+ contact_information_url: z.ZodPipe<
278
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
279
+ z.ZodTransform<string | null, string | null | undefined>
280
+ >;
281
+ cover_image_id: z.ZodPipe<
282
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
283
+ z.ZodTransform<string | null, string | null | undefined>
284
+ >;
285
+ },
286
+ z.core.$strip
287
+ >
288
+ >
289
+ >,
290
+ z.ZodTransform<
291
+ {
292
+ published_at: string | null;
293
+ title: string | null;
294
+ description: string | null;
295
+ location: string | null;
296
+ outputs: string[] | null;
297
+ initiation_type: string | null;
298
+ recruitment_method: string | null;
299
+ recruitment_description: string | null;
300
+ participant_count: number | null;
301
+ organiser_reflections: string | null;
302
+ organiser_report_url: string | null;
303
+ location_details: string | null;
304
+ date: string | null;
305
+ duration: number | null;
306
+ contact_information_url: string | null;
307
+ cover_image_id: string | null;
308
+ } | null,
309
+ | {
310
+ published_at: string | null;
311
+ title: string | null;
312
+ description: string | null;
313
+ location: string | null;
314
+ outputs: string[] | null;
315
+ initiation_type: string | null;
316
+ recruitment_method: string | null;
317
+ recruitment_description: string | null;
318
+ participant_count: number | null;
319
+ organiser_reflections: string | null;
320
+ organiser_report_url: string | null;
321
+ location_details: string | null;
322
+ date: string | null;
323
+ duration: number | null;
324
+ contact_information_url: string | null;
325
+ cover_image_id: string | null;
326
+ }
327
+ | null
328
+ | undefined
329
+ >
330
+ >;
331
+ media: z.ZodObject<
332
+ {
333
+ images: z.ZodArray<
334
+ z.ZodObject<
335
+ {
336
+ id: z.ZodUUID;
337
+ created_at: z.ZodISODateTime;
338
+ updated_at: z.ZodISODateTime;
339
+ uri: z.ZodString;
340
+ alt: z.ZodString;
341
+ src: z.ZodString;
342
+ sizes: z.ZodString;
343
+ srcset: z.ZodString;
344
+ },
345
+ z.core.$strip
346
+ >
347
+ >;
348
+ },
349
+ z.core.$strip
350
+ >;
351
+ },
352
+ z.core.$strip
353
+ >;
354
+ export declare const UserSchema: z.ZodObject<
355
+ {
356
+ id: z.ZodUUID;
357
+ created_at: z.ZodISODateTime;
358
+ updated_at: z.ZodISODateTime;
359
+ sub: z.ZodString;
360
+ is_mutirao: z.ZodBoolean;
361
+ },
362
+ z.core.$strip
363
+ >;
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ export * from './legacy';