@tietokilta/ilmomasiina-models 2.0.0-alpha33 → 2.0.0-alpha37
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/enum.d.ts +1 -0
- package/dist/enum.d.ts.map +1 -1
- package/dist/enum.js +1 -0
- package/dist/schema/eventList/index.d.ts +1 -0
- package/dist/schema/eventList/index.d.ts.map +1 -1
- package/dist/schema/eventList/index.js +3 -0
- package/dist/schema/signup/index.d.ts +33 -2
- package/dist/schema/signup/index.d.ts.map +1 -1
- package/dist/schema/signup/index.js +17 -10
- package/dist/schema/signupForEdit/index.d.ts +4 -0
- package/dist/schema/signupForEdit/index.d.ts.map +1 -1
- package/dist/schema/signupForEdit/index.js +6 -0
- package/package.json +1 -1
package/dist/enum.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare enum AuditEvent {
|
|
|
20
20
|
UNPUBLISH_EVENT = "event.unpublish",
|
|
21
21
|
EDIT_EVENT = "event.edit",
|
|
22
22
|
PROMOTE_SIGNUP = "signup.queuePromote",
|
|
23
|
+
CREATE_SIGNUP = "signup.create",
|
|
23
24
|
DELETE_SIGNUP = "signup.delete",
|
|
24
25
|
EDIT_SIGNUP = "signup.edit",
|
|
25
26
|
CREATE_USER = "user.create",
|
package/dist/enum.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../src/enum.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,aAAa,YAAY;IACzB,QAAQ,aAAa;CACtB;AAED,+BAA+B;AAC/B,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,SAAS,aAAa;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,4CAA4C;AAC5C,oBAAY,UAAU;IACpB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,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;IAC3B,cAAc,uBAAuB;IACrC,eAAe,wBAAwB;CACxC;AAED,oBAAY,SAAS;IACnB,WAAW,eAAe;IAC1B,aAAa,iBAAiB;IAC9B,2BAA2B,4BAA4B;IACvD,kBAAkB,qBAAqB;IACvC,cAAc,kBAAkB;IAChC,aAAa,gBAAgB;IAC7B,cAAc,iBAAiB;IAC/B,cAAc,iBAAiB;IAC/B,kBAAkB,qBAAqB;IACvC,oBAAoB,uBAAuB;IAC3C,0BAA0B,4BAA4B;IACtD,uBAAuB,0BAA0B;IACjD,gBAAgB,uBAAuB;CACxC;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,UAAU,cAAc;IACxB,QAAQ,YAAY;IACpB,aAAa,iBAAiB;IAC9B,YAAY,eAAe;IAC3B,aAAa,gBAAgB;CAC9B"}
|
package/dist/enum.js
CHANGED
|
@@ -26,6 +26,7 @@ var AuditEvent;
|
|
|
26
26
|
AuditEvent["UNPUBLISH_EVENT"] = "event.unpublish";
|
|
27
27
|
AuditEvent["EDIT_EVENT"] = "event.edit";
|
|
28
28
|
AuditEvent["PROMOTE_SIGNUP"] = "signup.queuePromote";
|
|
29
|
+
AuditEvent["CREATE_SIGNUP"] = "signup.create";
|
|
29
30
|
AuditEvent["DELETE_SIGNUP"] = "signup.delete";
|
|
30
31
|
AuditEvent["EDIT_SIGNUP"] = "signup.edit";
|
|
31
32
|
AuditEvent["CREATE_USER"] = "user.create";
|
|
@@ -102,6 +102,7 @@ export declare const userEventListResponse: import("@sinclair/typebox").TArray<i
|
|
|
102
102
|
/** Query parameters applicable to the public event list API. */
|
|
103
103
|
export declare const eventListQuery: import("@sinclair/typebox").TObject<{
|
|
104
104
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
105
|
+
maxAge: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
105
106
|
}>;
|
|
106
107
|
/** Query parameters applicable to the public event list API. */
|
|
107
108
|
export type EventListQuery = Static<typeof eventListQuery>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/eventList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAKjD,8DAA8D;AAC9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAE3E,+DAA+D;AAC/D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;GAAsC,CAAC;AAEzE,gEAAgE;AAChE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/eventList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAKjD,8DAA8D;AAC9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAE3E,+DAA+D;AAC/D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;GAAsC,CAAC;AAEzE,gEAAgE;AAChE,eAAO,MAAM,cAAc;;;EAWzB,CAAC;AAEH,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,yEAAyE;AACzE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACzE,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,wEAAwE;AACxE,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,8DAA8D;AAC9D,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -33,4 +33,7 @@ exports.eventListQuery = typebox_1.Type.Object({
|
|
|
33
33
|
category: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
34
34
|
description: "If set, only events with the provided category are included.",
|
|
35
35
|
})),
|
|
36
|
+
maxAge: typebox_1.Type.Optional(typebox_1.Type.Integer({
|
|
37
|
+
description: "If set to a number, only events at most that many days old are included.",
|
|
38
|
+
})),
|
|
36
39
|
});
|
|
@@ -21,6 +21,33 @@ export declare const signupUpdateBody: import("@sinclair/typebox").TObject<{
|
|
|
21
21
|
namePublic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
22
22
|
language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
23
|
}>;
|
|
24
|
+
/** Request body for editing an existing signup as an admin. */
|
|
25
|
+
export declare const adminSignupUpdateBody: import("@sinclair/typebox").TObject<{
|
|
26
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
27
|
+
firstName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
28
|
+
lastName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
29
|
+
answers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
30
|
+
questionId: import("@sinclair/typebox").TString;
|
|
31
|
+
answer: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>;
|
|
32
|
+
}>>>;
|
|
33
|
+
namePublic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
34
|
+
language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
35
|
+
sendEmail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36
|
+
}>;
|
|
37
|
+
/** Request body for creating a signup as an admin. */
|
|
38
|
+
export declare const adminSignupCreateBody: import("@sinclair/typebox").TObject<{
|
|
39
|
+
quotaId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
41
|
+
firstName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
42
|
+
lastName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
43
|
+
answers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
44
|
+
questionId: import("@sinclair/typebox").TString;
|
|
45
|
+
answer: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>;
|
|
46
|
+
}>>>;
|
|
47
|
+
namePublic: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
48
|
+
language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
|
+
sendEmail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
50
|
+
}>;
|
|
24
51
|
/** Response schema for successfully editing a signup. */
|
|
25
52
|
export declare const signupUpdateResponse: import("@sinclair/typebox").TObject<{
|
|
26
53
|
id: import("@sinclair/typebox").TString;
|
|
@@ -65,12 +92,16 @@ export type SignupID = Static<typeof signupID>;
|
|
|
65
92
|
export type SignupEditToken = Static<typeof editToken>;
|
|
66
93
|
/** Path parameters necessary to fetch and manipulate signups. */
|
|
67
94
|
export type SignupPathParams = Static<typeof signupPathParams>;
|
|
68
|
-
/** Request body for creating a signup. */
|
|
95
|
+
/** Request body for creating a signup as a regular user. */
|
|
69
96
|
export type SignupCreateBody = Static<typeof signupCreateBody>;
|
|
70
97
|
/** Response schema for successfully creating a signup. */
|
|
71
98
|
export type SignupCreateResponse = Static<typeof signupCreateResponse>;
|
|
72
|
-
/** Request body for editing an existing signup. */
|
|
99
|
+
/** Request body for editing an existing signup as a regular user. */
|
|
73
100
|
export type SignupUpdateBody = Static<typeof signupUpdateBody>;
|
|
101
|
+
/** Request body for editing an existing signup as an admin. */
|
|
102
|
+
export type AdminSignupUpdateBody = Static<typeof adminSignupUpdateBody>;
|
|
103
|
+
/** Request body for creating a signup as an admin. */
|
|
104
|
+
export type AdminSignupCreateBody = Static<typeof adminSignupCreateBody>;
|
|
74
105
|
/** Response schema for successfully editing a signup. */
|
|
75
106
|
export type SignupUpdateResponse = Static<typeof signupUpdateResponse>;
|
|
76
107
|
/** Schema for signups in event details from the public API. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/signup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAGL,SAAS,EAET,QAAQ,EAET,MAAM,cAAc,CAAC;AAEtB,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB;;EAE3B,CAAC;AAEH,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB;;;EAG/B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/signup/index.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C/D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACzE,sDAAsD;AACtD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACzE,yDAAyD;AACzD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEvE,+DAA+D;AAC/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,8DAA8D;AAC9D,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signupPathParams = exports.adminSignupSchema = exports.publicSignupSchema = exports.signupUpdateResponse = exports.signupUpdateBody = exports.signupCreateResponse = exports.signupCreateBody = void 0;
|
|
3
|
+
exports.signupPathParams = exports.adminSignupSchema = exports.publicSignupSchema = exports.signupUpdateResponse = exports.adminSignupCreateBody = exports.adminSignupUpdateBody = exports.signupUpdateBody = exports.signupCreateResponse = exports.signupCreateBody = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const attributes_1 = require("../quota/attributes");
|
|
6
6
|
const attributes_2 = require("./attributes");
|
|
@@ -13,16 +13,23 @@ exports.signupCreateResponse = typebox_1.Type.Object({
|
|
|
13
13
|
id: attributes_2.signupID,
|
|
14
14
|
editToken: attributes_2.editToken,
|
|
15
15
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
const signupLanguage = typebox_1.Type.Object({
|
|
17
|
+
language: typebox_1.Type.String({
|
|
18
|
+
maxLength: 8,
|
|
19
|
+
description: "The language code used for emails related to this signup",
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
const adminSignupUpdateOptions = typebox_1.Type.Object({
|
|
23
|
+
sendEmail: typebox_1.Type.Boolean({
|
|
24
|
+
description: "Whether to send an edit confirmation for the edit",
|
|
24
25
|
}),
|
|
25
|
-
|
|
26
|
+
});
|
|
27
|
+
/** Request body for editing an existing signup. */
|
|
28
|
+
exports.signupUpdateBody = typebox_1.Type.Partial(typebox_1.Type.Composite([attributes_2.editableSignupAttributes, signupLanguage]));
|
|
29
|
+
/** Request body for editing an existing signup as an admin. */
|
|
30
|
+
exports.adminSignupUpdateBody = typebox_1.Type.Partial(typebox_1.Type.Composite([attributes_2.editableSignupAttributes, signupLanguage, adminSignupUpdateOptions]));
|
|
31
|
+
/** Request body for creating a signup as an admin. */
|
|
32
|
+
exports.adminSignupCreateBody = typebox_1.Type.Partial(typebox_1.Type.Composite([exports.signupCreateBody, attributes_2.editableSignupAttributes, signupLanguage, adminSignupUpdateOptions]));
|
|
26
33
|
/** Response schema for successfully editing a signup. */
|
|
27
34
|
exports.signupUpdateResponse = attributes_2.signupIdentity;
|
|
28
35
|
/** Schema for signups in event details from the public API. */
|
|
@@ -15,6 +15,8 @@ export declare const signupForEdit: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
title: import("@sinclair/typebox").TString;
|
|
16
16
|
size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
17
17
|
}>;
|
|
18
|
+
confirmableForMillis: import("@sinclair/typebox").TInteger;
|
|
19
|
+
editableForMillis: import("@sinclair/typebox").TInteger;
|
|
18
20
|
createdAt: import("@sinclair/typebox").TString;
|
|
19
21
|
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<typeof import("../..").SignupStatus>, import("@sinclair/typebox").TNull]>;
|
|
20
22
|
position: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
@@ -37,6 +39,8 @@ export declare const signupForEditResponse: import("@sinclair/typebox").TObject<
|
|
|
37
39
|
title: import("@sinclair/typebox").TString;
|
|
38
40
|
size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
39
41
|
}>;
|
|
42
|
+
confirmableForMillis: import("@sinclair/typebox").TInteger;
|
|
43
|
+
editableForMillis: import("@sinclair/typebox").TInteger;
|
|
40
44
|
createdAt: import("@sinclair/typebox").TString;
|
|
41
45
|
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<typeof import("../..").SignupStatus>, import("@sinclair/typebox").TNull]>;
|
|
42
46
|
position: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/signupForEdit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAOjD,gDAAgD;AAChD,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/signupForEdit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAOjD,gDAAgD;AAChD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAaxB,CAAC;AAEH,yDAAyD;AACzD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,yDAAyD;AACzD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -12,6 +12,12 @@ exports.signupForEdit = typebox_1.Type.Composite([
|
|
|
12
12
|
attributes_1.editableSignupAttributes,
|
|
13
13
|
typebox_1.Type.Object({
|
|
14
14
|
quota: quota_1.quota,
|
|
15
|
+
confirmableForMillis: typebox_1.Type.Integer({
|
|
16
|
+
description: "Time in ms remaining to confirm the signup until it expires. Zero for confirmed signups.",
|
|
17
|
+
}),
|
|
18
|
+
editableForMillis: typebox_1.Type.Integer({
|
|
19
|
+
description: "Time in ms the signup can be edited for. If zero, the signup cannot be edited.",
|
|
20
|
+
}),
|
|
15
21
|
}),
|
|
16
22
|
attributes_1.dynamicSignupAttributes,
|
|
17
23
|
]);
|