backend/types/generated/contentTypes.d.ts (view raw)
1import type { Schema, Attribute } from "@strapi/strapi";
2
3export interface AdminPermission extends Schema.CollectionType {
4 collectionName: "admin_permissions";
5 info: {
6 name: "Permission";
7 description: "";
8 singularName: "permission";
9 pluralName: "permissions";
10 displayName: "Permission";
11 };
12 pluginOptions: {
13 "content-manager": {
14 visible: false;
15 };
16 "content-type-builder": {
17 visible: false;
18 };
19 };
20 attributes: {
21 action: Attribute.String &
22 Attribute.Required &
23 Attribute.SetMinMaxLength<{
24 minLength: 1;
25 }>;
26 actionParameters: Attribute.JSON & Attribute.DefaultTo<{}>;
27 subject: Attribute.String &
28 Attribute.SetMinMaxLength<{
29 minLength: 1;
30 }>;
31 properties: Attribute.JSON & Attribute.DefaultTo<{}>;
32 conditions: Attribute.JSON & Attribute.DefaultTo<[]>;
33 role: Attribute.Relation<"admin::permission", "manyToOne", "admin::role">;
34 createdAt: Attribute.DateTime;
35 updatedAt: Attribute.DateTime;
36 createdBy: Attribute.Relation<
37 "admin::permission",
38 "oneToOne",
39 "admin::user"
40 > &
41 Attribute.Private;
42 updatedBy: Attribute.Relation<
43 "admin::permission",
44 "oneToOne",
45 "admin::user"
46 > &
47 Attribute.Private;
48 };
49}
50
51export interface AdminUser extends Schema.CollectionType {
52 collectionName: "admin_users";
53 info: {
54 name: "User";
55 description: "";
56 singularName: "user";
57 pluralName: "users";
58 displayName: "User";
59 };
60 pluginOptions: {
61 "content-manager": {
62 visible: false;
63 };
64 "content-type-builder": {
65 visible: false;
66 };
67 };
68 attributes: {
69 firstname: Attribute.String &
70 Attribute.SetMinMaxLength<{
71 minLength: 1;
72 }>;
73 lastname: Attribute.String &
74 Attribute.SetMinMaxLength<{
75 minLength: 1;
76 }>;
77 username: Attribute.String;
78 email: Attribute.Email &
79 Attribute.Required &
80 Attribute.Private &
81 Attribute.Unique &
82 Attribute.SetMinMaxLength<{
83 minLength: 6;
84 }>;
85 password: Attribute.Password &
86 Attribute.Private &
87 Attribute.SetMinMaxLength<{
88 minLength: 6;
89 }>;
90 resetPasswordToken: Attribute.String & Attribute.Private;
91 registrationToken: Attribute.String & Attribute.Private;
92 isActive: Attribute.Boolean &
93 Attribute.Private &
94 Attribute.DefaultTo<false>;
95 roles: Attribute.Relation<"admin::user", "manyToMany", "admin::role"> &
96 Attribute.Private;
97 blocked: Attribute.Boolean & Attribute.Private & Attribute.DefaultTo<false>;
98 preferedLanguage: Attribute.String;
99 createdAt: Attribute.DateTime;
100 updatedAt: Attribute.DateTime;
101 createdBy: Attribute.Relation<"admin::user", "oneToOne", "admin::user"> &
102 Attribute.Private;
103 updatedBy: Attribute.Relation<"admin::user", "oneToOne", "admin::user"> &
104 Attribute.Private;
105 };
106}
107
108export interface AdminRole extends Schema.CollectionType {
109 collectionName: "admin_roles";
110 info: {
111 name: "Role";
112 description: "";
113 singularName: "role";
114 pluralName: "roles";
115 displayName: "Role";
116 };
117 pluginOptions: {
118 "content-manager": {
119 visible: false;
120 };
121 "content-type-builder": {
122 visible: false;
123 };
124 };
125 attributes: {
126 name: Attribute.String &
127 Attribute.Required &
128 Attribute.Unique &
129 Attribute.SetMinMaxLength<{
130 minLength: 1;
131 }>;
132 code: Attribute.String &
133 Attribute.Required &
134 Attribute.Unique &
135 Attribute.SetMinMaxLength<{
136 minLength: 1;
137 }>;
138 description: Attribute.String;
139 users: Attribute.Relation<"admin::role", "manyToMany", "admin::user">;
140 permissions: Attribute.Relation<
141 "admin::role",
142 "oneToMany",
143 "admin::permission"
144 >;
145 createdAt: Attribute.DateTime;
146 updatedAt: Attribute.DateTime;
147 createdBy: Attribute.Relation<"admin::role", "oneToOne", "admin::user"> &
148 Attribute.Private;
149 updatedBy: Attribute.Relation<"admin::role", "oneToOne", "admin::user"> &
150 Attribute.Private;
151 };
152}
153
154export interface AdminApiToken extends Schema.CollectionType {
155 collectionName: "strapi_api_tokens";
156 info: {
157 name: "Api Token";
158 singularName: "api-token";
159 pluralName: "api-tokens";
160 displayName: "Api Token";
161 description: "";
162 };
163 pluginOptions: {
164 "content-manager": {
165 visible: false;
166 };
167 "content-type-builder": {
168 visible: false;
169 };
170 };
171 attributes: {
172 name: Attribute.String &
173 Attribute.Required &
174 Attribute.Unique &
175 Attribute.SetMinMaxLength<{
176 minLength: 1;
177 }>;
178 description: Attribute.String &
179 Attribute.SetMinMaxLength<{
180 minLength: 1;
181 }> &
182 Attribute.DefaultTo<"">;
183 type: Attribute.Enumeration<["read-only", "full-access", "custom"]> &
184 Attribute.Required &
185 Attribute.DefaultTo<"read-only">;
186 accessKey: Attribute.String &
187 Attribute.Required &
188 Attribute.SetMinMaxLength<{
189 minLength: 1;
190 }>;
191 lastUsedAt: Attribute.DateTime;
192 permissions: Attribute.Relation<
193 "admin::api-token",
194 "oneToMany",
195 "admin::api-token-permission"
196 >;
197 expiresAt: Attribute.DateTime;
198 lifespan: Attribute.BigInteger;
199 createdAt: Attribute.DateTime;
200 updatedAt: Attribute.DateTime;
201 createdBy: Attribute.Relation<
202 "admin::api-token",
203 "oneToOne",
204 "admin::user"
205 > &
206 Attribute.Private;
207 updatedBy: Attribute.Relation<
208 "admin::api-token",
209 "oneToOne",
210 "admin::user"
211 > &
212 Attribute.Private;
213 };
214}
215
216export interface AdminApiTokenPermission extends Schema.CollectionType {
217 collectionName: "strapi_api_token_permissions";
218 info: {
219 name: "API Token Permission";
220 description: "";
221 singularName: "api-token-permission";
222 pluralName: "api-token-permissions";
223 displayName: "API Token Permission";
224 };
225 pluginOptions: {
226 "content-manager": {
227 visible: false;
228 };
229 "content-type-builder": {
230 visible: false;
231 };
232 };
233 attributes: {
234 action: Attribute.String &
235 Attribute.Required &
236 Attribute.SetMinMaxLength<{
237 minLength: 1;
238 }>;
239 token: Attribute.Relation<
240 "admin::api-token-permission",
241 "manyToOne",
242 "admin::api-token"
243 >;
244 createdAt: Attribute.DateTime;
245 updatedAt: Attribute.DateTime;
246 createdBy: Attribute.Relation<
247 "admin::api-token-permission",
248 "oneToOne",
249 "admin::user"
250 > &
251 Attribute.Private;
252 updatedBy: Attribute.Relation<
253 "admin::api-token-permission",
254 "oneToOne",
255 "admin::user"
256 > &
257 Attribute.Private;
258 };
259}
260
261export interface AdminTransferToken extends Schema.CollectionType {
262 collectionName: "strapi_transfer_tokens";
263 info: {
264 name: "Transfer Token";
265 singularName: "transfer-token";
266 pluralName: "transfer-tokens";
267 displayName: "Transfer Token";
268 description: "";
269 };
270 pluginOptions: {
271 "content-manager": {
272 visible: false;
273 };
274 "content-type-builder": {
275 visible: false;
276 };
277 };
278 attributes: {
279 name: Attribute.String &
280 Attribute.Required &
281 Attribute.Unique &
282 Attribute.SetMinMaxLength<{
283 minLength: 1;
284 }>;
285 description: Attribute.String &
286 Attribute.SetMinMaxLength<{
287 minLength: 1;
288 }> &
289 Attribute.DefaultTo<"">;
290 accessKey: Attribute.String &
291 Attribute.Required &
292 Attribute.SetMinMaxLength<{
293 minLength: 1;
294 }>;
295 lastUsedAt: Attribute.DateTime;
296 permissions: Attribute.Relation<
297 "admin::transfer-token",
298 "oneToMany",
299 "admin::transfer-token-permission"
300 >;
301 expiresAt: Attribute.DateTime;
302 lifespan: Attribute.BigInteger;
303 createdAt: Attribute.DateTime;
304 updatedAt: Attribute.DateTime;
305 createdBy: Attribute.Relation<
306 "admin::transfer-token",
307 "oneToOne",
308 "admin::user"
309 > &
310 Attribute.Private;
311 updatedBy: Attribute.Relation<
312 "admin::transfer-token",
313 "oneToOne",
314 "admin::user"
315 > &
316 Attribute.Private;
317 };
318}
319
320export interface AdminTransferTokenPermission extends Schema.CollectionType {
321 collectionName: "strapi_transfer_token_permissions";
322 info: {
323 name: "Transfer Token Permission";
324 description: "";
325 singularName: "transfer-token-permission";
326 pluralName: "transfer-token-permissions";
327 displayName: "Transfer Token Permission";
328 };
329 pluginOptions: {
330 "content-manager": {
331 visible: false;
332 };
333 "content-type-builder": {
334 visible: false;
335 };
336 };
337 attributes: {
338 action: Attribute.String &
339 Attribute.Required &
340 Attribute.SetMinMaxLength<{
341 minLength: 1;
342 }>;
343 token: Attribute.Relation<
344 "admin::transfer-token-permission",
345 "manyToOne",
346 "admin::transfer-token"
347 >;
348 createdAt: Attribute.DateTime;
349 updatedAt: Attribute.DateTime;
350 createdBy: Attribute.Relation<
351 "admin::transfer-token-permission",
352 "oneToOne",
353 "admin::user"
354 > &
355 Attribute.Private;
356 updatedBy: Attribute.Relation<
357 "admin::transfer-token-permission",
358 "oneToOne",
359 "admin::user"
360 > &
361 Attribute.Private;
362 };
363}
364
365export interface PluginUploadFile extends Schema.CollectionType {
366 collectionName: "files";
367 info: {
368 singularName: "file";
369 pluralName: "files";
370 displayName: "File";
371 description: "";
372 };
373 pluginOptions: {
374 "content-manager": {
375 visible: false;
376 };
377 "content-type-builder": {
378 visible: false;
379 };
380 };
381 attributes: {
382 name: Attribute.String & Attribute.Required;
383 alternativeText: Attribute.String;
384 caption: Attribute.String;
385 width: Attribute.Integer;
386 height: Attribute.Integer;
387 formats: Attribute.JSON;
388 hash: Attribute.String & Attribute.Required;
389 ext: Attribute.String;
390 mime: Attribute.String & Attribute.Required;
391 size: Attribute.Decimal & Attribute.Required;
392 url: Attribute.String & Attribute.Required;
393 previewUrl: Attribute.String;
394 provider: Attribute.String & Attribute.Required;
395 provider_metadata: Attribute.JSON;
396 related: Attribute.Relation<"plugin::upload.file", "morphToMany">;
397 folder: Attribute.Relation<
398 "plugin::upload.file",
399 "manyToOne",
400 "plugin::upload.folder"
401 > &
402 Attribute.Private;
403 folderPath: Attribute.String &
404 Attribute.Required &
405 Attribute.Private &
406 Attribute.SetMinMax<{
407 min: 1;
408 }>;
409 createdAt: Attribute.DateTime;
410 updatedAt: Attribute.DateTime;
411 createdBy: Attribute.Relation<
412 "plugin::upload.file",
413 "oneToOne",
414 "admin::user"
415 > &
416 Attribute.Private;
417 updatedBy: Attribute.Relation<
418 "plugin::upload.file",
419 "oneToOne",
420 "admin::user"
421 > &
422 Attribute.Private;
423 };
424}
425
426export interface PluginUploadFolder extends Schema.CollectionType {
427 collectionName: "upload_folders";
428 info: {
429 singularName: "folder";
430 pluralName: "folders";
431 displayName: "Folder";
432 };
433 pluginOptions: {
434 "content-manager": {
435 visible: false;
436 };
437 "content-type-builder": {
438 visible: false;
439 };
440 };
441 attributes: {
442 name: Attribute.String &
443 Attribute.Required &
444 Attribute.SetMinMax<{
445 min: 1;
446 }>;
447 pathId: Attribute.Integer & Attribute.Required & Attribute.Unique;
448 parent: Attribute.Relation<
449 "plugin::upload.folder",
450 "manyToOne",
451 "plugin::upload.folder"
452 >;
453 children: Attribute.Relation<
454 "plugin::upload.folder",
455 "oneToMany",
456 "plugin::upload.folder"
457 >;
458 files: Attribute.Relation<
459 "plugin::upload.folder",
460 "oneToMany",
461 "plugin::upload.file"
462 >;
463 path: Attribute.String &
464 Attribute.Required &
465 Attribute.SetMinMax<{
466 min: 1;
467 }>;
468 createdAt: Attribute.DateTime;
469 updatedAt: Attribute.DateTime;
470 createdBy: Attribute.Relation<
471 "plugin::upload.folder",
472 "oneToOne",
473 "admin::user"
474 > &
475 Attribute.Private;
476 updatedBy: Attribute.Relation<
477 "plugin::upload.folder",
478 "oneToOne",
479 "admin::user"
480 > &
481 Attribute.Private;
482 };
483}
484
485export interface PluginContentReleasesRelease extends Schema.CollectionType {
486 collectionName: "strapi_releases";
487 info: {
488 singularName: "release";
489 pluralName: "releases";
490 displayName: "Release";
491 };
492 options: {
493 draftAndPublish: false;
494 };
495 pluginOptions: {
496 "content-manager": {
497 visible: false;
498 };
499 "content-type-builder": {
500 visible: false;
501 };
502 };
503 attributes: {
504 name: Attribute.String & Attribute.Required;
505 releasedAt: Attribute.DateTime;
506 actions: Attribute.Relation<
507 "plugin::content-releases.release",
508 "oneToMany",
509 "plugin::content-releases.release-action"
510 >;
511 createdAt: Attribute.DateTime;
512 updatedAt: Attribute.DateTime;
513 createdBy: Attribute.Relation<
514 "plugin::content-releases.release",
515 "oneToOne",
516 "admin::user"
517 > &
518 Attribute.Private;
519 updatedBy: Attribute.Relation<
520 "plugin::content-releases.release",
521 "oneToOne",
522 "admin::user"
523 > &
524 Attribute.Private;
525 };
526}
527
528export interface PluginContentReleasesReleaseAction
529 extends Schema.CollectionType {
530 collectionName: "strapi_release_actions";
531 info: {
532 singularName: "release-action";
533 pluralName: "release-actions";
534 displayName: "Release Action";
535 };
536 options: {
537 draftAndPublish: false;
538 };
539 pluginOptions: {
540 "content-manager": {
541 visible: false;
542 };
543 "content-type-builder": {
544 visible: false;
545 };
546 };
547 attributes: {
548 type: Attribute.Enumeration<["publish", "unpublish"]> & Attribute.Required;
549 entry: Attribute.Relation<
550 "plugin::content-releases.release-action",
551 "morphToOne"
552 >;
553 contentType: Attribute.String & Attribute.Required;
554 release: Attribute.Relation<
555 "plugin::content-releases.release-action",
556 "manyToOne",
557 "plugin::content-releases.release"
558 >;
559 createdAt: Attribute.DateTime;
560 updatedAt: Attribute.DateTime;
561 createdBy: Attribute.Relation<
562 "plugin::content-releases.release-action",
563 "oneToOne",
564 "admin::user"
565 > &
566 Attribute.Private;
567 updatedBy: Attribute.Relation<
568 "plugin::content-releases.release-action",
569 "oneToOne",
570 "admin::user"
571 > &
572 Attribute.Private;
573 };
574}
575
576export interface PluginI18NLocale extends Schema.CollectionType {
577 collectionName: "i18n_locale";
578 info: {
579 singularName: "locale";
580 pluralName: "locales";
581 collectionName: "locales";
582 displayName: "Locale";
583 description: "";
584 };
585 options: {
586 draftAndPublish: false;
587 };
588 pluginOptions: {
589 "content-manager": {
590 visible: false;
591 };
592 "content-type-builder": {
593 visible: false;
594 };
595 };
596 attributes: {
597 name: Attribute.String &
598 Attribute.SetMinMax<{
599 min: 1;
600 max: 50;
601 }>;
602 code: Attribute.String & Attribute.Unique;
603 createdAt: Attribute.DateTime;
604 updatedAt: Attribute.DateTime;
605 createdBy: Attribute.Relation<
606 "plugin::i18n.locale",
607 "oneToOne",
608 "admin::user"
609 > &
610 Attribute.Private;
611 updatedBy: Attribute.Relation<
612 "plugin::i18n.locale",
613 "oneToOne",
614 "admin::user"
615 > &
616 Attribute.Private;
617 };
618}
619
620export interface PluginUsersPermissionsPermission
621 extends Schema.CollectionType {
622 collectionName: "up_permissions";
623 info: {
624 name: "permission";
625 description: "";
626 singularName: "permission";
627 pluralName: "permissions";
628 displayName: "Permission";
629 };
630 pluginOptions: {
631 "content-manager": {
632 visible: false;
633 };
634 "content-type-builder": {
635 visible: false;
636 };
637 };
638 attributes: {
639 action: Attribute.String & Attribute.Required;
640 role: Attribute.Relation<
641 "plugin::users-permissions.permission",
642 "manyToOne",
643 "plugin::users-permissions.role"
644 >;
645 createdAt: Attribute.DateTime;
646 updatedAt: Attribute.DateTime;
647 createdBy: Attribute.Relation<
648 "plugin::users-permissions.permission",
649 "oneToOne",
650 "admin::user"
651 > &
652 Attribute.Private;
653 updatedBy: Attribute.Relation<
654 "plugin::users-permissions.permission",
655 "oneToOne",
656 "admin::user"
657 > &
658 Attribute.Private;
659 };
660}
661
662export interface PluginUsersPermissionsRole extends Schema.CollectionType {
663 collectionName: "up_roles";
664 info: {
665 name: "role";
666 description: "";
667 singularName: "role";
668 pluralName: "roles";
669 displayName: "Role";
670 };
671 pluginOptions: {
672 "content-manager": {
673 visible: false;
674 };
675 "content-type-builder": {
676 visible: false;
677 };
678 };
679 attributes: {
680 name: Attribute.String &
681 Attribute.Required &
682 Attribute.SetMinMaxLength<{
683 minLength: 3;
684 }>;
685 description: Attribute.String;
686 type: Attribute.String & Attribute.Unique;
687 permissions: Attribute.Relation<
688 "plugin::users-permissions.role",
689 "oneToMany",
690 "plugin::users-permissions.permission"
691 >;
692 users: Attribute.Relation<
693 "plugin::users-permissions.role",
694 "oneToMany",
695 "plugin::users-permissions.user"
696 >;
697 createdAt: Attribute.DateTime;
698 updatedAt: Attribute.DateTime;
699 createdBy: Attribute.Relation<
700 "plugin::users-permissions.role",
701 "oneToOne",
702 "admin::user"
703 > &
704 Attribute.Private;
705 updatedBy: Attribute.Relation<
706 "plugin::users-permissions.role",
707 "oneToOne",
708 "admin::user"
709 > &
710 Attribute.Private;
711 };
712}
713
714export interface PluginUsersPermissionsUser extends Schema.CollectionType {
715 collectionName: "up_users";
716 info: {
717 name: "user";
718 description: "";
719 singularName: "user";
720 pluralName: "users";
721 displayName: "User";
722 };
723 options: {
724 draftAndPublish: false;
725 };
726 attributes: {
727 username: Attribute.String &
728 Attribute.Required &
729 Attribute.Unique &
730 Attribute.SetMinMaxLength<{
731 minLength: 3;
732 }>;
733 email: Attribute.Email &
734 Attribute.Required &
735 Attribute.SetMinMaxLength<{
736 minLength: 6;
737 }>;
738 provider: Attribute.String;
739 password: Attribute.Password &
740 Attribute.Private &
741 Attribute.SetMinMaxLength<{
742 minLength: 6;
743 }>;
744 resetPasswordToken: Attribute.String & Attribute.Private;
745 confirmationToken: Attribute.String & Attribute.Private;
746 confirmed: Attribute.Boolean & Attribute.DefaultTo<false>;
747 blocked: Attribute.Boolean & Attribute.Private & Attribute.DefaultTo<false>;
748 role: Attribute.Relation<
749 "plugin::users-permissions.user",
750 "manyToOne",
751 "plugin::users-permissions.role"
752 >;
753 events: Attribute.Relation<
754 "plugin::users-permissions.user",
755 "manyToMany",
756 "api::event.event"
757 >;
758 passengers: Attribute.Relation<
759 "plugin::users-permissions.user",
760 "oneToMany",
761 "api::passenger.passenger"
762 > &
763 Attribute.Private;
764 vehicles: Attribute.Relation<
765 "plugin::users-permissions.user",
766 "oneToMany",
767 "api::vehicle.vehicle"
768 >;
769 firstName: Attribute.String;
770 lastName: Attribute.String;
771 onboardingUser: Attribute.Boolean & Attribute.DefaultTo<false>;
772 onboardingCreator: Attribute.Boolean & Attribute.DefaultTo<false>;
773 lang: Attribute.Enumeration<["fr", "en"]> & Attribute.DefaultTo<"fr">;
774 newsletterConsent: Attribute.Boolean & Attribute.DefaultTo<false>;
775 notificationEnabled: Attribute.Boolean & Attribute.DefaultTo<true>;
776 notifications: Attribute.Relation<
777 "plugin::users-permissions.user",
778 "oneToMany",
779 "api::notification.notification"
780 >;
781 tosAcceptationDate: Attribute.DateTime;
782 createdAt: Attribute.DateTime;
783 updatedAt: Attribute.DateTime;
784 createdBy: Attribute.Relation<
785 "plugin::users-permissions.user",
786 "oneToOne",
787 "admin::user"
788 > &
789 Attribute.Private;
790 updatedBy: Attribute.Relation<
791 "plugin::users-permissions.user",
792 "oneToOne",
793 "admin::user"
794 > &
795 Attribute.Private;
796 };
797}
798
799export interface ApiEventEvent extends Schema.CollectionType {
800 collectionName: "events";
801 info: {
802 name: "event";
803 description: "";
804 singularName: "event";
805 pluralName: "events";
806 displayName: "Event";
807 };
808 options: {
809 draftAndPublish: false;
810 };
811 attributes: {
812 name: Attribute.String & Attribute.Required;
813 email: Attribute.String & Attribute.Required;
814 lang: Attribute.Enumeration<["fr", "en"]> & Attribute.DefaultTo<"en">;
815 date: Attribute.Date;
816 address: Attribute.Text;
817 position: Attribute.JSON;
818 uuid: Attribute.String & Attribute.Unique;
819 description: Attribute.Text &
820 Attribute.SetMinMaxLength<{
821 maxLength: 250;
822 }>;
823 newsletter: Attribute.Boolean & Attribute.Private;
824 users: Attribute.Relation<
825 "api::event.event",
826 "manyToMany",
827 "plugin::users-permissions.user"
828 >;
829 travels: Attribute.Relation<
830 "api::event.event",
831 "oneToMany",
832 "api::travel.travel"
833 >;
834 passengers: Attribute.Relation<
835 "api::event.event",
836 "oneToMany",
837 "api::passenger.passenger"
838 >;
839 latitude: Attribute.Float;
840 longitude: Attribute.Float;
841 enabled_modules: Attribute.JSON &
842 Attribute.CustomField<
843 "plugin::multi-select.multi-select",
844 ["caroster-plus"]
845 >;
846 administrators: Attribute.String;
847 creator: Attribute.Relation<
848 "api::event.event",
849 "oneToOne",
850 "plugin::users-permissions.user"
851 >;
852 createdAt: Attribute.DateTime;
853 updatedAt: Attribute.DateTime;
854 createdBy: Attribute.Relation<
855 "api::event.event",
856 "oneToOne",
857 "admin::user"
858 > &
859 Attribute.Private;
860 updatedBy: Attribute.Relation<
861 "api::event.event",
862 "oneToOne",
863 "admin::user"
864 > &
865 Attribute.Private;
866 };
867}
868
869export interface ApiModuleModule extends Schema.SingleType {
870 collectionName: "modules";
871 info: {
872 singularName: "module";
873 pluralName: "modules";
874 displayName: "Modules";
875 description: "";
876 };
877 options: {
878 draftAndPublish: false;
879 };
880 pluginOptions: {
881 i18n: {
882 localized: true;
883 };
884 };
885 attributes: {
886 caroster_plus_enabled: Attribute.Boolean &
887 Attribute.SetPluginOptions<{
888 i18n: {
889 localized: false;
890 };
891 }> &
892 Attribute.DefaultTo<false>;
893 caroster_plus_price: Attribute.Decimal &
894 Attribute.SetPluginOptions<{
895 i18n: {
896 localized: false;
897 };
898 }> &
899 Attribute.DefaultTo<0>;
900 caroster_plus_name: Attribute.String &
901 Attribute.Required &
902 Attribute.SetPluginOptions<{
903 i18n: {
904 localized: true;
905 };
906 }>;
907 caroster_plus_payment_link_id: Attribute.String &
908 Attribute.Required &
909 Attribute.Private &
910 Attribute.SetPluginOptions<{
911 i18n: {
912 localized: false;
913 };
914 }>;
915 caroster_plus_payment_link: Attribute.String &
916 Attribute.Required &
917 Attribute.SetPluginOptions<{
918 i18n: {
919 localized: false;
920 };
921 }>;
922 caroster_plus_description: Attribute.RichText &
923 Attribute.SetPluginOptions<{
924 i18n: {
925 localized: true;
926 };
927 }>;
928 createdAt: Attribute.DateTime;
929 updatedAt: Attribute.DateTime;
930 createdBy: Attribute.Relation<
931 "api::module.module",
932 "oneToOne",
933 "admin::user"
934 > &
935 Attribute.Private;
936 updatedBy: Attribute.Relation<
937 "api::module.module",
938 "oneToOne",
939 "admin::user"
940 > &
941 Attribute.Private;
942 localizations: Attribute.Relation<
943 "api::module.module",
944 "oneToMany",
945 "api::module.module"
946 >;
947 locale: Attribute.String;
948 };
949}
950
951export interface ApiNotificationNotification extends Schema.CollectionType {
952 collectionName: "notifications";
953 info: {
954 singularName: "notification";
955 pluralName: "notifications";
956 displayName: "Notification";
957 description: "";
958 };
959 options: {
960 draftAndPublish: false;
961 };
962 attributes: {
963 type: Attribute.Enumeration<
964 [
965 "NewPassengerInYourTrip",
966 "NewTrip",
967 "DeletedTrip",
968 "DeletedYourTrip",
969 "AddedAsAdmin",
970 "EventCreated",
971 "EventEnded",
972 "EventRecap",
973 "PassengerJoinTrip",
974 "ContactTripCreator",
975 "EnabledCarosterPlus"
976 ]
977 > &
978 Attribute.Required;
979 user: Attribute.Relation<
980 "api::notification.notification",
981 "manyToOne",
982 "plugin::users-permissions.user"
983 >;
984 event: Attribute.Relation<
985 "api::notification.notification",
986 "oneToOne",
987 "api::event.event"
988 >;
989 read: Attribute.Boolean & Attribute.DefaultTo<false>;
990 payload: Attribute.JSON;
991 createdAt: Attribute.DateTime;
992 updatedAt: Attribute.DateTime;
993 createdBy: Attribute.Relation<
994 "api::notification.notification",
995 "oneToOne",
996 "admin::user"
997 > &
998 Attribute.Private;
999 updatedBy: Attribute.Relation<
1000 "api::notification.notification",
1001 "oneToOne",
1002 "admin::user"
1003 > &
1004 Attribute.Private;
1005 };
1006}
1007
1008export interface ApiPagePage extends Schema.CollectionType {
1009 collectionName: "pages";
1010 info: {
1011 name: "page";
1012 singularName: "page";
1013 pluralName: "pages";
1014 displayName: "Page";
1015 };
1016 options: {
1017 increments: true;
1018 timestamps: true;
1019 };
1020 attributes: {
1021 name: Attribute.String & Attribute.Required;
1022 content: Attribute.RichText;
1023 type: Attribute.Enumeration<["tos"]>;
1024 createdAt: Attribute.DateTime;
1025 updatedAt: Attribute.DateTime;
1026 createdBy: Attribute.Relation<"api::page.page", "oneToOne", "admin::user"> &
1027 Attribute.Private;
1028 updatedBy: Attribute.Relation<"api::page.page", "oneToOne", "admin::user"> &
1029 Attribute.Private;
1030 };
1031}
1032
1033export interface ApiPassengerPassenger extends Schema.CollectionType {
1034 collectionName: "passengers";
1035 info: {
1036 name: "Passenger";
1037 description: "";
1038 singularName: "passenger";
1039 pluralName: "passengers";
1040 displayName: "Passenger";
1041 };
1042 options: {
1043 draftAndPublish: false;
1044 };
1045 attributes: {
1046 name: Attribute.String & Attribute.Required;
1047 email: Attribute.Email;
1048 location: Attribute.String;
1049 user: Attribute.Relation<
1050 "api::passenger.passenger",
1051 "manyToOne",
1052 "plugin::users-permissions.user"
1053 >;
1054 travel: Attribute.Relation<
1055 "api::passenger.passenger",
1056 "manyToOne",
1057 "api::travel.travel"
1058 >;
1059 event: Attribute.Relation<
1060 "api::passenger.passenger",
1061 "manyToOne",
1062 "api::event.event"
1063 >;
1064 phone: Attribute.String;
1065 createdAt: Attribute.DateTime;
1066 updatedAt: Attribute.DateTime;
1067 createdBy: Attribute.Relation<
1068 "api::passenger.passenger",
1069 "oneToOne",
1070 "admin::user"
1071 > &
1072 Attribute.Private;
1073 updatedBy: Attribute.Relation<
1074 "api::passenger.passenger",
1075 "oneToOne",
1076 "admin::user"
1077 > &
1078 Attribute.Private;
1079 };
1080}
1081
1082export interface ApiSettingSetting extends Schema.SingleType {
1083 collectionName: "settings";
1084 info: {
1085 singularName: "setting";
1086 pluralName: "settings";
1087 displayName: "Settings";
1088 description: "";
1089 };
1090 options: {
1091 draftAndPublish: false;
1092 };
1093 pluginOptions: {
1094 i18n: {
1095 localized: true;
1096 };
1097 };
1098 attributes: {
1099 gtm_id: Attribute.String &
1100 Attribute.SetPluginOptions<{
1101 i18n: {
1102 localized: false;
1103 };
1104 }>;
1105 about_link: Attribute.String &
1106 Attribute.SetPluginOptions<{
1107 i18n: {
1108 localized: false;
1109 };
1110 }>;
1111 faq_link: Attribute.String &
1112 Attribute.SetPluginOptions<{
1113 i18n: {
1114 localized: false;
1115 };
1116 }>;
1117 announcement: Attribute.RichText &
1118 Attribute.SetPluginOptions<{
1119 i18n: {
1120 localized: true;
1121 };
1122 }>;
1123 matomo_script_url: Attribute.String &
1124 Attribute.SetPluginOptions<{
1125 i18n: {
1126 localized: false;
1127 };
1128 }>;
1129 opencollective_link: Attribute.String &
1130 Attribute.SetPluginOptions<{
1131 i18n: {
1132 localized: false;
1133 };
1134 }>;
1135 code_link: Attribute.String &
1136 Attribute.SetPluginOptions<{
1137 i18n: {
1138 localized: false;
1139 };
1140 }>;
1141 stripe_dashboard_link: Attribute.String &
1142 Attribute.SetPluginOptions<{
1143 i18n: {
1144 localized: false;
1145 };
1146 }>;
1147 tos_link: Attribute.String &
1148 Attribute.SetPluginOptions<{
1149 i18n: {
1150 localized: false;
1151 };
1152 }>;
1153 data_policy_link: Attribute.String &
1154 Attribute.SetPluginOptions<{
1155 i18n: {
1156 localized: false;
1157 };
1158 }>;
1159 createdAt: Attribute.DateTime;
1160 updatedAt: Attribute.DateTime;
1161 createdBy: Attribute.Relation<
1162 "api::setting.setting",
1163 "oneToOne",
1164 "admin::user"
1165 > &
1166 Attribute.Private;
1167 updatedBy: Attribute.Relation<
1168 "api::setting.setting",
1169 "oneToOne",
1170 "admin::user"
1171 > &
1172 Attribute.Private;
1173 localizations: Attribute.Relation<
1174 "api::setting.setting",
1175 "oneToMany",
1176 "api::setting.setting"
1177 >;
1178 locale: Attribute.String;
1179 };
1180}
1181
1182export interface ApiTravelTravel extends Schema.CollectionType {
1183 collectionName: "travels";
1184 info: {
1185 name: "travel";
1186 description: "";
1187 singularName: "travel";
1188 pluralName: "travels";
1189 displayName: "Travel";
1190 };
1191 options: {
1192 draftAndPublish: false;
1193 };
1194 attributes: {
1195 meeting: Attribute.String;
1196 departure: Attribute.DateTime;
1197 details: Attribute.Text;
1198 vehicleName: Attribute.String;
1199 seats: Attribute.Integer &
1200 Attribute.SetMinMax<{
1201 min: 0;
1202 }> &
1203 Attribute.DefaultTo<4>;
1204 phone_number: Attribute.String;
1205 event: Attribute.Relation<
1206 "api::travel.travel",
1207 "manyToOne",
1208 "api::event.event"
1209 >;
1210 passengers: Attribute.Relation<
1211 "api::travel.travel",
1212 "oneToMany",
1213 "api::passenger.passenger"
1214 >;
1215 meeting_latitude: Attribute.Float;
1216 meeting_longitude: Attribute.Float;
1217 user: Attribute.Relation<
1218 "api::travel.travel",
1219 "oneToOne",
1220 "plugin::users-permissions.user"
1221 >;
1222 createdAt: Attribute.DateTime;
1223 updatedAt: Attribute.DateTime;
1224 createdBy: Attribute.Relation<
1225 "api::travel.travel",
1226 "oneToOne",
1227 "admin::user"
1228 > &
1229 Attribute.Private;
1230 updatedBy: Attribute.Relation<
1231 "api::travel.travel",
1232 "oneToOne",
1233 "admin::user"
1234 > &
1235 Attribute.Private;
1236 };
1237}
1238
1239export interface ApiTripAlertTripAlert extends Schema.CollectionType {
1240 collectionName: "trip_alerts";
1241 info: {
1242 singularName: "trip-alert";
1243 pluralName: "trip-alerts";
1244 displayName: "TripAlert";
1245 description: "";
1246 };
1247 options: {
1248 draftAndPublish: false;
1249 };
1250 attributes: {
1251 event: Attribute.Relation<
1252 "api::trip-alert.trip-alert",
1253 "oneToOne",
1254 "api::event.event"
1255 >;
1256 user: Attribute.Relation<
1257 "api::trip-alert.trip-alert",
1258 "oneToOne",
1259 "plugin::users-permissions.user"
1260 >;
1261 latitude: Attribute.Float;
1262 longitude: Attribute.Float;
1263 enabled: Attribute.Boolean & Attribute.DefaultTo<true>;
1264 address: Attribute.String;
1265 radius: Attribute.Float &
1266 Attribute.SetMinMax<{
1267 min: 0;
1268 }>;
1269 createdAt: Attribute.DateTime;
1270 updatedAt: Attribute.DateTime;
1271 createdBy: Attribute.Relation<
1272 "api::trip-alert.trip-alert",
1273 "oneToOne",
1274 "admin::user"
1275 > &
1276 Attribute.Private;
1277 updatedBy: Attribute.Relation<
1278 "api::trip-alert.trip-alert",
1279 "oneToOne",
1280 "admin::user"
1281 > &
1282 Attribute.Private;
1283 };
1284}
1285
1286export interface ApiVehicleVehicle extends Schema.CollectionType {
1287 collectionName: "vehicles";
1288 info: {
1289 name: "vehicle";
1290 description: "";
1291 singularName: "vehicle";
1292 pluralName: "vehicles";
1293 displayName: "Vehicle";
1294 };
1295 options: {
1296 increments: true;
1297 timestamps: true;
1298 draftAndPublish: false;
1299 };
1300 attributes: {
1301 name: Attribute.String & Attribute.Required;
1302 seats: Attribute.Integer &
1303 Attribute.SetMinMax<{
1304 min: 0;
1305 }> &
1306 Attribute.DefaultTo<4>;
1307 phone_number: Attribute.String;
1308 user: Attribute.Relation<
1309 "api::vehicle.vehicle",
1310 "manyToOne",
1311 "plugin::users-permissions.user"
1312 >;
1313 createdAt: Attribute.DateTime;
1314 updatedAt: Attribute.DateTime;
1315 createdBy: Attribute.Relation<
1316 "api::vehicle.vehicle",
1317 "oneToOne",
1318 "admin::user"
1319 > &
1320 Attribute.Private;
1321 updatedBy: Attribute.Relation<
1322 "api::vehicle.vehicle",
1323 "oneToOne",
1324 "admin::user"
1325 > &
1326 Attribute.Private;
1327 };
1328}
1329
1330declare module "@strapi/types" {
1331 export module Shared {
1332 export interface ContentTypes {
1333 "admin::permission": AdminPermission;
1334 "admin::user": AdminUser;
1335 "admin::role": AdminRole;
1336 "admin::api-token": AdminApiToken;
1337 "admin::api-token-permission": AdminApiTokenPermission;
1338 "admin::transfer-token": AdminTransferToken;
1339 "admin::transfer-token-permission": AdminTransferTokenPermission;
1340 "plugin::upload.file": PluginUploadFile;
1341 "plugin::upload.folder": PluginUploadFolder;
1342 "plugin::content-releases.release": PluginContentReleasesRelease;
1343 "plugin::content-releases.release-action": PluginContentReleasesReleaseAction;
1344 "plugin::i18n.locale": PluginI18NLocale;
1345 "plugin::users-permissions.permission": PluginUsersPermissionsPermission;
1346 "plugin::users-permissions.role": PluginUsersPermissionsRole;
1347 "plugin::users-permissions.user": PluginUsersPermissionsUser;
1348 "api::event.event": ApiEventEvent;
1349 "api::module.module": ApiModuleModule;
1350 "api::notification.notification": ApiNotificationNotification;
1351 "api::page.page": ApiPagePage;
1352 "api::passenger.passenger": ApiPassengerPassenger;
1353 "api::setting.setting": ApiSettingSetting;
1354 "api::travel.travel": ApiTravelTravel;
1355 "api::trip-alert.trip-alert": ApiTripAlertTripAlert;
1356 "api::vehicle.vehicle": ApiVehicleVehicle;
1357 }
1358 }
1359}