@tietokilta/ilmomasiina-models 2.0.0 → 2.1.0-beta.2
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/cjs/schema/auditLog/attributes.d.ts +12 -11
- package/dist/cjs/schema/auditLog/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/auditLog/attributes.js +1 -1
- package/dist/cjs/schema/auditLog/index.d.ts +24 -22
- package/dist/cjs/schema/auditLog/index.d.ts.map +1 -1
- package/dist/cjs/schema/auditLog/index.js +5 -3
- package/dist/cjs/schema/category/index.d.ts +3 -3
- package/dist/cjs/schema/category/index.d.ts.map +1 -1
- package/dist/cjs/schema/category/index.js +1 -1
- package/dist/cjs/schema/errors/index.d.ts +31 -31
- package/dist/cjs/schema/errors/index.d.ts.map +1 -1
- package/dist/cjs/schema/errors/index.js +19 -28
- package/dist/cjs/schema/event/attributes.d.ts +88 -87
- package/dist/cjs/schema/event/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/event/attributes.js +3 -7
- package/dist/cjs/schema/event/index.d.ts +256 -256
- package/dist/cjs/schema/event/index.d.ts.map +1 -1
- package/dist/cjs/schema/event/index.js +39 -63
- package/dist/cjs/schema/eventList/index.d.ts +128 -128
- package/dist/cjs/schema/eventList/index.d.ts.map +1 -1
- package/dist/cjs/schema/eventList/index.js +9 -21
- package/dist/cjs/schema/login/index.d.ts +6 -6
- package/dist/cjs/schema/login/index.d.ts.map +1 -1
- package/dist/cjs/schema/login/index.js +1 -1
- package/dist/cjs/schema/question/attributes.d.ts +15 -12
- package/dist/cjs/schema/question/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/question/attributes.js +5 -4
- package/dist/cjs/schema/question/index.d.ts +25 -25
- package/dist/cjs/schema/question/index.d.ts.map +1 -1
- package/dist/cjs/schema/question/index.js +5 -4
- package/dist/cjs/schema/quota/attributes.d.ts +9 -8
- package/dist/cjs/schema/quota/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/quota/attributes.js +1 -1
- package/dist/cjs/schema/quota/index.d.ts +14 -14
- package/dist/cjs/schema/quota/index.d.ts.map +1 -1
- package/dist/cjs/schema/quota/index.js +3 -3
- package/dist/cjs/schema/quotaWithSignups/index.d.ts +40 -40
- package/dist/cjs/schema/quotaWithSignups/index.d.ts.map +1 -1
- package/dist/cjs/schema/quotaWithSignups/index.js +13 -22
- package/dist/cjs/schema/signup/attributes.d.ts +28 -27
- package/dist/cjs/schema/signup/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/signup/attributes.js +1 -1
- package/dist/cjs/schema/signup/index.d.ts +64 -64
- package/dist/cjs/schema/signup/index.d.ts.map +1 -1
- package/dist/cjs/schema/signup/index.js +6 -9
- package/dist/cjs/schema/signupForEdit/index.d.ts +82 -82
- package/dist/cjs/schema/signupForEdit/index.d.ts.map +1 -1
- package/dist/cjs/schema/signupForEdit/index.js +9 -14
- package/dist/cjs/schema/slug/index.d.ts +6 -6
- package/dist/cjs/schema/slug/index.d.ts.map +1 -1
- package/dist/cjs/schema/slug/index.js +1 -1
- package/dist/cjs/schema/user/attributes.d.ts +8 -7
- package/dist/cjs/schema/user/attributes.d.ts.map +1 -1
- package/dist/cjs/schema/user/attributes.js +1 -1
- package/dist/cjs/schema/user/index.d.ts +17 -17
- package/dist/cjs/schema/user/index.d.ts.map +1 -1
- package/dist/cjs/schema/user/index.js +6 -9
- package/dist/cjs/schema/utils.d.ts +2 -2
- package/dist/cjs/schema/utils.d.ts.map +1 -1
- package/dist/cjs/schema/utils.js +1 -1
- package/dist/esm/schema/auditLog/attributes.d.ts +12 -11
- package/dist/esm/schema/auditLog/attributes.d.ts.map +1 -1
- package/dist/esm/schema/auditLog/attributes.js +1 -1
- package/dist/esm/schema/auditLog/index.d.ts +24 -22
- package/dist/esm/schema/auditLog/index.d.ts.map +1 -1
- package/dist/esm/schema/auditLog/index.js +4 -2
- package/dist/esm/schema/category/index.d.ts +3 -3
- package/dist/esm/schema/category/index.d.ts.map +1 -1
- package/dist/esm/schema/category/index.js +1 -1
- package/dist/esm/schema/errors/index.d.ts +31 -31
- package/dist/esm/schema/errors/index.d.ts.map +1 -1
- package/dist/esm/schema/errors/index.js +19 -28
- package/dist/esm/schema/event/attributes.d.ts +88 -87
- package/dist/esm/schema/event/attributes.d.ts.map +1 -1
- package/dist/esm/schema/event/attributes.js +3 -7
- package/dist/esm/schema/event/index.d.ts +256 -256
- package/dist/esm/schema/event/index.d.ts.map +1 -1
- package/dist/esm/schema/event/index.js +39 -63
- package/dist/esm/schema/eventList/index.d.ts +128 -128
- package/dist/esm/schema/eventList/index.d.ts.map +1 -1
- package/dist/esm/schema/eventList/index.js +9 -21
- package/dist/esm/schema/login/index.d.ts +6 -6
- package/dist/esm/schema/login/index.d.ts.map +1 -1
- package/dist/esm/schema/login/index.js +1 -1
- package/dist/esm/schema/question/attributes.d.ts +15 -12
- package/dist/esm/schema/question/attributes.d.ts.map +1 -1
- package/dist/esm/schema/question/attributes.js +4 -3
- package/dist/esm/schema/question/index.d.ts +25 -25
- package/dist/esm/schema/question/index.d.ts.map +1 -1
- package/dist/esm/schema/question/index.js +4 -4
- package/dist/esm/schema/quota/attributes.d.ts +9 -8
- package/dist/esm/schema/quota/attributes.d.ts.map +1 -1
- package/dist/esm/schema/quota/attributes.js +1 -1
- package/dist/esm/schema/quota/index.d.ts +14 -14
- package/dist/esm/schema/quota/index.d.ts.map +1 -1
- package/dist/esm/schema/quota/index.js +3 -3
- package/dist/esm/schema/quotaWithSignups/index.d.ts +40 -40
- package/dist/esm/schema/quotaWithSignups/index.d.ts.map +1 -1
- package/dist/esm/schema/quotaWithSignups/index.js +13 -22
- package/dist/esm/schema/signup/attributes.d.ts +28 -27
- package/dist/esm/schema/signup/attributes.d.ts.map +1 -1
- package/dist/esm/schema/signup/attributes.js +1 -1
- package/dist/esm/schema/signup/index.d.ts +64 -64
- package/dist/esm/schema/signup/index.d.ts.map +1 -1
- package/dist/esm/schema/signup/index.js +6 -9
- package/dist/esm/schema/signupForEdit/index.d.ts +82 -82
- package/dist/esm/schema/signupForEdit/index.d.ts.map +1 -1
- package/dist/esm/schema/signupForEdit/index.js +9 -14
- package/dist/esm/schema/slug/index.d.ts +6 -6
- package/dist/esm/schema/slug/index.d.ts.map +1 -1
- package/dist/esm/schema/slug/index.js +1 -1
- package/dist/esm/schema/user/attributes.d.ts +8 -7
- package/dist/esm/schema/user/attributes.d.ts.map +1 -1
- package/dist/esm/schema/user/attributes.js +1 -1
- package/dist/esm/schema/user/index.d.ts +17 -17
- package/dist/esm/schema/user/index.d.ts.map +1 -1
- package/dist/esm/schema/user/index.js +6 -9
- package/dist/esm/schema/utils.d.ts +2 -2
- package/dist/esm/schema/utils.d.ts.map +1 -1
- package/dist/esm/schema/utils.js +1 -1
- package/package.json +3 -3
|
@@ -1,300 +1,300 @@
|
|
|
1
|
-
import { Static } from "
|
|
1
|
+
import { Static, Type } from "typebox";
|
|
2
2
|
import { adminEventLanguage, eventID, eventSlug, userEventLanguage } from "./attributes";
|
|
3
3
|
/** Response schema for fetching an event from the public API. */
|
|
4
|
-
export declare const userEventResponse:
|
|
5
|
-
id:
|
|
6
|
-
title:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
languages:
|
|
24
|
-
description:
|
|
25
|
-
price:
|
|
26
|
-
location:
|
|
27
|
-
webpageUrl:
|
|
28
|
-
facebookUrl:
|
|
29
|
-
title:
|
|
30
|
-
quotas:
|
|
31
|
-
title:
|
|
4
|
+
export declare const userEventResponse: Type.TObject<{
|
|
5
|
+
id: Type.TString;
|
|
6
|
+
title: Type.TString;
|
|
7
|
+
slug: Type.TString;
|
|
8
|
+
date: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
9
|
+
endDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
10
|
+
registrationStartDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
11
|
+
registrationEndDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
12
|
+
openQuotaSize: Type.TInteger;
|
|
13
|
+
category: Type.TString;
|
|
14
|
+
signupsPublic: Type.TBoolean;
|
|
15
|
+
nameQuestion: Type.TBoolean;
|
|
16
|
+
emailQuestion: Type.TBoolean;
|
|
17
|
+
defaultLanguage: Type.TString;
|
|
18
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
19
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
20
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
21
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
22
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
23
|
+
languages: Type.TRecord<"^.*$", Type.TObject<{
|
|
24
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
25
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
26
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
27
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
28
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
29
|
+
title: Type.TString;
|
|
30
|
+
quotas: Type.TArray<Type.TObject<{
|
|
31
|
+
title: Type.TString;
|
|
32
32
|
}>>;
|
|
33
|
-
questions:
|
|
34
|
-
question:
|
|
35
|
-
options:
|
|
33
|
+
questions: Type.TArray<Type.TObject<{
|
|
34
|
+
question: Type.TString;
|
|
35
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
36
36
|
}>>;
|
|
37
37
|
}>>;
|
|
38
|
-
|
|
39
|
-
id:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
questions: Type.TArray<Type.TObject<{
|
|
39
|
+
id: Type.TString;
|
|
40
|
+
question: Type.TString;
|
|
41
|
+
type: Type.TEnum<[import("../..").QuestionType.TEXT, import("../..").QuestionType.TEXT_AREA, import("../..").QuestionType.NUMBER, import("../..").QuestionType.SELECT, import("../..").QuestionType.CHECKBOX]>;
|
|
42
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
43
|
+
required: Type.TBoolean;
|
|
44
|
+
public: Type.TBoolean;
|
|
45
|
+
}>>;
|
|
46
|
+
quotas: Type.TArray<Type.TObject<{
|
|
47
|
+
id: Type.TString;
|
|
48
|
+
title: Type.TString;
|
|
49
|
+
size: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
50
|
+
signupCount: Type.TInteger;
|
|
51
|
+
signups: Type.TArray<Type.TObject<{
|
|
52
|
+
firstName: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
53
|
+
lastName: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
54
|
+
namePublic: Type.TBoolean;
|
|
55
|
+
answers: Type.TArray<Type.TObject<{
|
|
56
|
+
questionId: Type.TString;
|
|
57
|
+
answer: Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>;
|
|
49
58
|
}>>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
confirmed: import("@sinclair/typebox").TBoolean;
|
|
59
|
+
status: Type.TUnion<[Type.TEnum<[import("../..").SignupStatus.IN_QUOTA, import("../..").SignupStatus.IN_OPEN_QUOTA, import("../..").SignupStatus.IN_QUEUE]>, Type.TNull]>;
|
|
60
|
+
position: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
61
|
+
createdAt: Type.TString;
|
|
62
|
+
confirmed: Type.TBoolean;
|
|
55
63
|
}>>;
|
|
56
64
|
}>>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
question: import("@sinclair/typebox").TString;
|
|
60
|
-
options: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>;
|
|
61
|
-
type: import("@sinclair/typebox").TEnum<typeof import("../..").QuestionType>;
|
|
62
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
63
|
-
public: import("@sinclair/typebox").TBoolean;
|
|
64
|
-
}>>;
|
|
65
|
-
millisTillOpening: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
66
|
-
registrationClosed: import("@sinclair/typebox").TBoolean;
|
|
65
|
+
millisTillOpening: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
66
|
+
registrationClosed: Type.TBoolean;
|
|
67
67
|
}>;
|
|
68
68
|
/** Response schema when an event is fetched as part of an editable signup. */
|
|
69
|
-
export declare const userEventForSignup:
|
|
70
|
-
id:
|
|
71
|
-
title:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
languages:
|
|
89
|
-
description:
|
|
90
|
-
price:
|
|
91
|
-
location:
|
|
92
|
-
webpageUrl:
|
|
93
|
-
facebookUrl:
|
|
94
|
-
title:
|
|
95
|
-
quotas:
|
|
96
|
-
title:
|
|
69
|
+
export declare const userEventForSignup: Type.TObject<{
|
|
70
|
+
id: Type.TString;
|
|
71
|
+
title: Type.TString;
|
|
72
|
+
slug: Type.TString;
|
|
73
|
+
date: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
74
|
+
endDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
75
|
+
registrationStartDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
76
|
+
registrationEndDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
77
|
+
openQuotaSize: Type.TInteger;
|
|
78
|
+
category: Type.TString;
|
|
79
|
+
signupsPublic: Type.TBoolean;
|
|
80
|
+
nameQuestion: Type.TBoolean;
|
|
81
|
+
emailQuestion: Type.TBoolean;
|
|
82
|
+
defaultLanguage: Type.TString;
|
|
83
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
84
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
85
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
86
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
87
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
88
|
+
languages: Type.TRecord<"^.*$", Type.TObject<{
|
|
89
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
90
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
91
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
92
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
93
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
94
|
+
title: Type.TString;
|
|
95
|
+
quotas: Type.TArray<Type.TObject<{
|
|
96
|
+
title: Type.TString;
|
|
97
97
|
}>>;
|
|
98
|
-
questions:
|
|
99
|
-
question:
|
|
100
|
-
options:
|
|
98
|
+
questions: Type.TArray<Type.TObject<{
|
|
99
|
+
question: Type.TString;
|
|
100
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
101
101
|
}>>;
|
|
102
102
|
}>>;
|
|
103
|
-
|
|
104
|
-
id:
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
questions: Type.TArray<Type.TObject<{
|
|
104
|
+
id: Type.TString;
|
|
105
|
+
question: Type.TString;
|
|
106
|
+
type: Type.TEnum<[import("../..").QuestionType.TEXT, import("../..").QuestionType.TEXT_AREA, import("../..").QuestionType.NUMBER, import("../..").QuestionType.SELECT, import("../..").QuestionType.CHECKBOX]>;
|
|
107
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
108
|
+
required: Type.TBoolean;
|
|
109
|
+
public: Type.TBoolean;
|
|
107
110
|
}>>;
|
|
108
|
-
|
|
109
|
-
id:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
type: import("@sinclair/typebox").TEnum<typeof import("../..").QuestionType>;
|
|
113
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
114
|
-
public: import("@sinclair/typebox").TBoolean;
|
|
111
|
+
quotas: Type.TArray<Type.TObject<{
|
|
112
|
+
id: Type.TString;
|
|
113
|
+
title: Type.TString;
|
|
114
|
+
size: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
115
115
|
}>>;
|
|
116
116
|
}>;
|
|
117
117
|
/** Response schema for fetching or modifying an event in the admin API. */
|
|
118
|
-
export declare const adminEventResponse:
|
|
119
|
-
id:
|
|
120
|
-
title:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
118
|
+
export declare const adminEventResponse: Type.TObject<{
|
|
119
|
+
id: Type.TString;
|
|
120
|
+
title: Type.TString;
|
|
121
|
+
slug: Type.TString;
|
|
122
|
+
date: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
123
|
+
endDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
124
|
+
registrationStartDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
125
|
+
registrationEndDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
126
|
+
openQuotaSize: Type.TInteger;
|
|
127
|
+
category: Type.TString;
|
|
128
|
+
signupsPublic: Type.TBoolean;
|
|
129
|
+
nameQuestion: Type.TBoolean;
|
|
130
|
+
emailQuestion: Type.TBoolean;
|
|
131
|
+
defaultLanguage: Type.TString;
|
|
132
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
133
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
134
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
135
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
136
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
137
|
+
draft: Type.TBoolean;
|
|
138
|
+
listed: Type.TBoolean;
|
|
139
|
+
verificationEmail: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
140
|
+
languages: Type.TRecord<"^.*$", Type.TObject<{
|
|
141
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
142
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
143
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
144
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
145
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
146
|
+
title: Type.TString;
|
|
147
|
+
quotas: Type.TArray<Type.TObject<{
|
|
148
|
+
title: Type.TString;
|
|
147
149
|
}>>;
|
|
148
|
-
questions:
|
|
149
|
-
question:
|
|
150
|
-
options:
|
|
150
|
+
questions: Type.TArray<Type.TObject<{
|
|
151
|
+
question: Type.TString;
|
|
152
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
151
153
|
}>>;
|
|
152
|
-
verificationEmail:
|
|
154
|
+
verificationEmail: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
153
155
|
}>>;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
156
|
+
questions: Type.TArray<Type.TObject<{
|
|
157
|
+
id: Type.TString;
|
|
158
|
+
question: Type.TString;
|
|
159
|
+
type: Type.TEnum<[import("../..").QuestionType.TEXT, import("../..").QuestionType.TEXT_AREA, import("../..").QuestionType.NUMBER, import("../..").QuestionType.SELECT, import("../..").QuestionType.CHECKBOX]>;
|
|
160
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
161
|
+
required: Type.TBoolean;
|
|
162
|
+
public: Type.TBoolean;
|
|
163
|
+
}>>;
|
|
164
|
+
quotas: Type.TArray<Type.TObject<{
|
|
165
|
+
id: Type.TString;
|
|
166
|
+
title: Type.TString;
|
|
167
|
+
size: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
168
|
+
signupCount: Type.TInteger;
|
|
169
|
+
signups: Type.TArray<Type.TObject<{
|
|
170
|
+
id: Type.TString;
|
|
171
|
+
firstName: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
172
|
+
lastName: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
173
|
+
email: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
174
|
+
namePublic: Type.TBoolean;
|
|
175
|
+
answers: Type.TArray<Type.TObject<{
|
|
176
|
+
questionId: Type.TString;
|
|
177
|
+
answer: Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>;
|
|
170
178
|
}>>;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
confirmed: import("@sinclair/typebox").TBoolean;
|
|
179
|
+
status: Type.TUnion<[Type.TEnum<[import("../..").SignupStatus.IN_QUOTA, import("../..").SignupStatus.IN_OPEN_QUOTA, import("../..").SignupStatus.IN_QUEUE]>, Type.TNull]>;
|
|
180
|
+
position: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
181
|
+
createdAt: Type.TString;
|
|
182
|
+
confirmed: Type.TBoolean;
|
|
176
183
|
}>>;
|
|
177
184
|
}>>;
|
|
178
|
-
|
|
179
|
-
id: import("@sinclair/typebox").TString;
|
|
180
|
-
question: import("@sinclair/typebox").TString;
|
|
181
|
-
options: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>;
|
|
182
|
-
type: import("@sinclair/typebox").TEnum<typeof import("../..").QuestionType>;
|
|
183
|
-
required: import("@sinclair/typebox").TBoolean;
|
|
184
|
-
public: import("@sinclair/typebox").TBoolean;
|
|
185
|
-
}>>;
|
|
185
|
+
updatedAt: Type.TString;
|
|
186
186
|
}>;
|
|
187
187
|
/** Request body for creating an event. */
|
|
188
|
-
export declare const eventCreateBody:
|
|
189
|
-
title:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
188
|
+
export declare const eventCreateBody: Type.TObject<{
|
|
189
|
+
title: Type.TString;
|
|
190
|
+
slug: Type.TString;
|
|
191
|
+
date: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
192
|
+
endDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
193
|
+
registrationStartDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
194
|
+
registrationEndDate: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
195
|
+
openQuotaSize: Type.TInteger;
|
|
196
|
+
category: Type.TString;
|
|
197
|
+
signupsPublic: Type.TBoolean;
|
|
198
|
+
nameQuestion: Type.TBoolean;
|
|
199
|
+
emailQuestion: Type.TBoolean;
|
|
200
|
+
defaultLanguage: Type.TString;
|
|
201
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
202
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
203
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
204
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
205
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
206
|
+
draft: Type.TBoolean;
|
|
207
|
+
listed: Type.TBoolean;
|
|
208
|
+
verificationEmail: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
209
|
+
languages: Type.TRecord<"^.*$", Type.TObject<{
|
|
210
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
211
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
212
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
213
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
214
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
215
|
+
title: Type.TString;
|
|
216
|
+
quotas: Type.TArray<Type.TObject<{
|
|
217
|
+
title: Type.TString;
|
|
216
218
|
}>>;
|
|
217
|
-
questions:
|
|
218
|
-
question:
|
|
219
|
-
options:
|
|
219
|
+
questions: Type.TArray<Type.TObject<{
|
|
220
|
+
question: Type.TString;
|
|
221
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
220
222
|
}>>;
|
|
221
|
-
verificationEmail:
|
|
223
|
+
verificationEmail: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
222
224
|
}>>;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
title: import("@sinclair/typebox").TString;
|
|
227
|
-
size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
225
|
+
quotas: Type.TArray<Type.TObject<{
|
|
226
|
+
title: Type.TString;
|
|
227
|
+
size: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
228
228
|
}>>;
|
|
229
|
-
questions:
|
|
230
|
-
question:
|
|
231
|
-
type: import("
|
|
232
|
-
options:
|
|
233
|
-
required:
|
|
234
|
-
public:
|
|
229
|
+
questions: Type.TArray<Type.TObject<{
|
|
230
|
+
question: Type.TString;
|
|
231
|
+
type: Type.TEnum<[import("../..").QuestionType.TEXT, import("../..").QuestionType.TEXT_AREA, import("../..").QuestionType.NUMBER, import("../..").QuestionType.SELECT, import("../..").QuestionType.CHECKBOX]>;
|
|
232
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
233
|
+
required: Type.TBoolean;
|
|
234
|
+
public: Type.TBoolean;
|
|
235
235
|
}>>;
|
|
236
236
|
}>;
|
|
237
237
|
/** Request body for editing an existing event. */
|
|
238
|
-
export declare const eventUpdateBody:
|
|
239
|
-
title:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
238
|
+
export declare const eventUpdateBody: Type.TObject<{
|
|
239
|
+
title: Type.TOptional<Type.TString>;
|
|
240
|
+
slug: Type.TOptional<Type.TString>;
|
|
241
|
+
date: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
242
|
+
endDate: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
243
|
+
registrationStartDate: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
244
|
+
registrationEndDate: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
245
|
+
openQuotaSize: Type.TOptional<Type.TInteger>;
|
|
246
|
+
category: Type.TOptional<Type.TString>;
|
|
247
|
+
signupsPublic: Type.TOptional<Type.TBoolean>;
|
|
248
|
+
nameQuestion: Type.TOptional<Type.TBoolean>;
|
|
249
|
+
emailQuestion: Type.TOptional<Type.TBoolean>;
|
|
250
|
+
defaultLanguage: Type.TOptional<Type.TString>;
|
|
251
|
+
description: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
252
|
+
price: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
253
|
+
location: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
254
|
+
webpageUrl: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
255
|
+
facebookUrl: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
256
|
+
draft: Type.TOptional<Type.TBoolean>;
|
|
257
|
+
listed: Type.TOptional<Type.TBoolean>;
|
|
258
|
+
verificationEmail: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
259
|
+
languages: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{
|
|
260
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
261
|
+
price: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
262
|
+
location: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
263
|
+
webpageUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
264
|
+
facebookUrl: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
265
|
+
title: Type.TString;
|
|
266
|
+
quotas: Type.TArray<Type.TObject<{
|
|
267
|
+
title: Type.TString;
|
|
266
268
|
}>>;
|
|
267
|
-
questions:
|
|
268
|
-
question:
|
|
269
|
-
options:
|
|
269
|
+
questions: Type.TArray<Type.TObject<{
|
|
270
|
+
question: Type.TString;
|
|
271
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
270
272
|
}>>;
|
|
271
|
-
verificationEmail:
|
|
273
|
+
verificationEmail: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
272
274
|
}>>>;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
278
|
-
title: import("@sinclair/typebox").TString;
|
|
279
|
-
size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
275
|
+
quotas: Type.TOptional<Type.TArray<Type.TObject<{
|
|
276
|
+
id: Type.TOptional<Type.TString>;
|
|
277
|
+
title: Type.TString;
|
|
278
|
+
size: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
280
279
|
}>>>;
|
|
281
|
-
questions:
|
|
282
|
-
id:
|
|
283
|
-
question:
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
required:
|
|
287
|
-
public:
|
|
280
|
+
questions: Type.TOptional<Type.TArray<Type.TObject<{
|
|
281
|
+
id: Type.TOptional<Type.TString>;
|
|
282
|
+
question: Type.TString;
|
|
283
|
+
type: Type.TEnum<[import("../..").QuestionType.TEXT, import("../..").QuestionType.TEXT_AREA, import("../..").QuestionType.NUMBER, import("../..").QuestionType.SELECT, import("../..").QuestionType.CHECKBOX]>;
|
|
284
|
+
options: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
|
|
285
|
+
required: Type.TBoolean;
|
|
286
|
+
public: Type.TBoolean;
|
|
288
287
|
}>>>;
|
|
289
|
-
moveSignupsToQueue:
|
|
288
|
+
moveSignupsToQueue: Type.TOptional<Type.TBoolean>;
|
|
289
|
+
updatedAt: Type.TOptional<Type.TString>;
|
|
290
290
|
}>;
|
|
291
291
|
/** Path parameters necessary to fetch an event from the public API. */
|
|
292
|
-
export declare const userEventPathParams:
|
|
293
|
-
slug:
|
|
292
|
+
export declare const userEventPathParams: Type.TObject<{
|
|
293
|
+
slug: Type.TString;
|
|
294
294
|
}>;
|
|
295
295
|
/** Path parameters necessary to fetch an event from the admin API. */
|
|
296
|
-
export declare const adminEventPathParams:
|
|
297
|
-
id:
|
|
296
|
+
export declare const adminEventPathParams: Type.TObject<{
|
|
297
|
+
id: Type.TString;
|
|
298
298
|
}>;
|
|
299
299
|
/** Event ID type. Randomly generated alphanumeric string. */
|
|
300
300
|
export type EventID = Static<typeof eventID>;
|