@nymphjs/tilmeld 1.0.0-beta.13 → 1.0.0-beta.130

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.
Files changed (105) hide show
  1. package/CHANGELOG.md +598 -0
  2. package/README.md +21 -5
  3. package/dist/AbleObject.d.ts +15 -0
  4. package/dist/AbleObject.js +18 -6
  5. package/dist/AbleObject.js.map +1 -1
  6. package/dist/Group.d.ts +186 -19
  7. package/dist/Group.js +817 -440
  8. package/dist/Group.js.map +1 -1
  9. package/dist/Group.testArtifacts.d.ts +3 -0
  10. package/dist/Group.testArtifacts.js +120 -0
  11. package/dist/Group.testArtifacts.js.map +1 -0
  12. package/dist/Tilmeld.d.ts +241 -12
  13. package/dist/Tilmeld.js +725 -286
  14. package/dist/Tilmeld.js.map +1 -1
  15. package/dist/Tilmeld.types.d.ts +5 -5
  16. package/dist/Tilmeld.types.js +1 -2
  17. package/dist/User.d.ts +399 -26
  18. package/dist/User.js +1955 -1055
  19. package/dist/User.js.map +1 -1
  20. package/dist/User.testArtifacts.d.ts +3 -0
  21. package/dist/User.testArtifacts.js +175 -0
  22. package/dist/User.testArtifacts.js.map +1 -0
  23. package/dist/conf/defaults.d.ts +1 -1
  24. package/dist/conf/defaults.js +196 -141
  25. package/dist/conf/defaults.js.map +1 -1
  26. package/dist/conf/index.d.ts +355 -2
  27. package/dist/conf/index.js +2 -8
  28. package/dist/conf/index.js.map +1 -1
  29. package/dist/decorators/index.d.ts +2 -0
  30. package/dist/decorators/index.js +3 -0
  31. package/dist/decorators/index.js.map +1 -0
  32. package/dist/decorators/requireAbility.d.ts +10 -0
  33. package/dist/decorators/requireAbility.js +21 -0
  34. package/dist/decorators/requireAbility.js.map +1 -0
  35. package/dist/decorators/requireAuthentication.d.ts +8 -0
  36. package/dist/decorators/requireAuthentication.js +16 -0
  37. package/dist/decorators/requireAuthentication.js.map +1 -0
  38. package/dist/enforceTilmeld.d.ts +3 -0
  39. package/dist/enforceTilmeld.js +18 -0
  40. package/dist/enforceTilmeld.js.map +1 -0
  41. package/dist/errors/AccessControlError.d.ts +2 -1
  42. package/dist/errors/AccessControlError.js +3 -6
  43. package/dist/errors/AccessControlError.js.map +1 -1
  44. package/dist/errors/BadDataError.d.ts +2 -1
  45. package/dist/errors/BadDataError.js +3 -6
  46. package/dist/errors/BadDataError.js.map +1 -1
  47. package/dist/errors/BadEmailError.d.ts +2 -1
  48. package/dist/errors/BadEmailError.js +3 -6
  49. package/dist/errors/BadEmailError.js.map +1 -1
  50. package/dist/errors/BadUsernameError.d.ts +2 -1
  51. package/dist/errors/BadUsernameError.js +3 -6
  52. package/dist/errors/BadUsernameError.js.map +1 -1
  53. package/dist/errors/CouldNotChangeDefaultPrimaryGroupError.js +1 -5
  54. package/dist/errors/CouldNotChangeDefaultPrimaryGroupError.js.map +1 -1
  55. package/dist/errors/EmailChangeRateLimitExceededError.js +1 -5
  56. package/dist/errors/EmailChangeRateLimitExceededError.js.map +1 -1
  57. package/dist/errors/index.d.ts +6 -6
  58. package/dist/errors/index.js +6 -22
  59. package/dist/errors/index.js.map +1 -1
  60. package/dist/index.d.ts +12 -10
  61. package/dist/index.js +17 -35
  62. package/dist/index.js.map +1 -1
  63. package/dist/testArtifacts.d.ts +23 -0
  64. package/dist/testArtifacts.js +1317 -0
  65. package/dist/testArtifacts.js.map +1 -0
  66. package/dist/tilmeldJoiProps.d.ts +3 -3
  67. package/dist/tilmeldJoiProps.js +13 -18
  68. package/dist/tilmeldJoiProps.js.map +1 -1
  69. package/jest.config.js +31 -5
  70. package/package.json +49 -36
  71. package/src/AbleObject.ts +2 -2
  72. package/src/Group.testArtifacts.ts +159 -0
  73. package/src/Group.ts +647 -238
  74. package/src/Tilmeld.ts +550 -315
  75. package/src/Tilmeld.types.ts +5 -5
  76. package/src/User.testArtifacts.ts +226 -0
  77. package/src/User.ts +1657 -634
  78. package/src/conf/defaults.ts +172 -109
  79. package/src/conf/index.ts +370 -2
  80. package/src/decorators/index.ts +2 -0
  81. package/src/decorators/requireAbility.ts +26 -0
  82. package/src/decorators/requireAuthentication.ts +19 -0
  83. package/src/enforceTilmeld.ts +20 -0
  84. package/src/errors/AccessControlError.ts +4 -2
  85. package/src/errors/BadDataError.ts +4 -2
  86. package/src/errors/BadEmailError.ts +4 -2
  87. package/src/errors/BadUsernameError.ts +4 -2
  88. package/src/errors/index.ts +6 -6
  89. package/src/index.ts +13 -10
  90. package/src/testArtifacts.ts +2098 -0
  91. package/src/tilmeldJoiProps.ts +8 -23
  92. package/tsconfig.json +6 -3
  93. package/typedoc.json +4 -0
  94. package/dist/Group.test.d.ts +0 -1
  95. package/dist/Group.test.js +0 -48
  96. package/dist/Group.test.js.map +0 -1
  97. package/dist/User.test.d.ts +0 -1
  98. package/dist/User.test.js +0 -51
  99. package/dist/User.test.js.map +0 -1
  100. package/dist/conf/d.d.ts +0 -55
  101. package/dist/conf/d.js +0 -3
  102. package/dist/conf/d.js.map +0 -1
  103. package/src/Group.test.ts +0 -58
  104. package/src/User.test.ts +0 -61
  105. package/src/conf/d.ts +0 -303
package/src/conf/index.ts CHANGED
@@ -1,4 +1,372 @@
1
- export { Config } from './d';
1
+ import type { EmailOptions, EmailConfig } from 'email-templates';
2
2
 
3
- import defaults from './defaults';
3
+ import type Tilmeld from '../Tilmeld.js';
4
+ import type Group from '../Group.js';
5
+ import type { GroupData } from '../Group.js';
6
+ import type User from '../User.js';
7
+ import type { UserData } from '../User.js';
8
+
9
+ /**
10
+ * Tilmeld Config
11
+ */
12
+ export interface Config {
13
+ /**
14
+ * The name of the app. Used in emails sent to users and as the TOTP issuer.
15
+ */
16
+ appName: string;
17
+ /**
18
+ * The URL of the app. Used to define cookie domain, path, and security. Must
19
+ * be accessible to the Tilmeld client JS. (Note, cookies are not specific to
20
+ * individual ports, so tokens will be sent to any port running on this host.)
21
+ */
22
+ appUrl: string;
23
+ /**
24
+ * The domain of the auth cookie.
25
+ */
26
+ cookieDomain: string;
27
+ /**
28
+ * The path of the auth cookie.
29
+ */
30
+ cookiePath: string;
31
+ /**
32
+ * The path (with leading slash and no trailing slash) where the setup utility
33
+ * is accessible. This is also used for email address verification.
34
+ *
35
+ * ***************************************************************************
36
+ * This portion of the app will **not** check for the XSRF token, so make sure
37
+ * your REST endpoint is **not** under this URL.
38
+ * ***************************************************************************
39
+ */
40
+ setupPath: string;
41
+ /**
42
+ * Allow the creation of an admin user. When a user is created, if there are
43
+ * no other users in the system, they will be granted all abilities.
44
+ */
45
+ createAdmin: boolean;
46
+ /**
47
+ * Instead of a "username", a user logs in and is referred to by their email
48
+ * address. Enabling this after many users have been created can be messy.
49
+ * Make sure they all have email addresses first.
50
+ *
51
+ * Email usernames cannot be enabled if domain support is.
52
+ */
53
+ emailUsernames: boolean;
54
+ /**
55
+ * Enable domain support.
56
+ *
57
+ * If domain support is enabled, usernames can be either bare, meaning they
58
+ * belong to the root domain, or can include a domain part (username@domain),
59
+ * meaning they belong to that domain.
60
+ *
61
+ * It also enables domain admin abilities, meaning a domain admin has the
62
+ * ability to create and modify users on the domain
63
+ * ("tilmeld/domain/example.com/admin").
64
+ *
65
+ * Once a user is created, whether it has a domain part can't be changed.
66
+ * However, it can be moved to a different domain.
67
+ *
68
+ * Domain support cannot be enabled if email usernames is.
69
+ */
70
+ domainSupport: boolean;
71
+ /**
72
+ * Allow users to register.
73
+ */
74
+ allowRegistration: boolean;
75
+ /**
76
+ * Allow users to change their username.
77
+ */
78
+ allowUsernameChange: boolean;
79
+ /**
80
+ * Whether frontend can search users. (Probably not a good idea if privacy is
81
+ * a concern.)
82
+ */
83
+ enableUserSearch: boolean;
84
+ /**
85
+ * Whether frontend can search groups. (Probably not a good idea if privacy is
86
+ * a concern. Same risks as user search if generatePrimary is true.)
87
+ */
88
+ enableGroupSearch: boolean;
89
+ /**
90
+ * A list of UIDs that can be read from the client by anyone. (getUID)
91
+ *
92
+ * Note: If you'd like to limit the access to logged in users, give them an
93
+ * ability like "uid/get/nameofuid".
94
+ */
95
+ clientReadableUIDs: string[];
96
+ /**
97
+ * A list of UIDs that can be created from the client by anyone. (newUID)
98
+ *
99
+ * Inclusion in this list implies inclusion in clientReadableUIDs.
100
+ *
101
+ * Note: If you'd like to limit the access to logged in users, give them an
102
+ * ability like "uid/new/nameofuid".
103
+ */
104
+ clientEnabledUIDs: string[];
105
+ /**
106
+ * A list of UIDs that can be set from the client by anyone. (setUID,
107
+ * renameUID)
108
+ *
109
+ * Inclusion in this list implies inclusion in clientReadableUIDs and
110
+ * clientEnabledUIDs.
111
+ *
112
+ * Note: There is no way to run renameUID from the client.
113
+ *
114
+ * Note: If you'd like to limit the access to logged in users, give them an
115
+ * ability like "uid/set/nameofuid".
116
+ */
117
+ clientSetabledUIDs: string[];
118
+ /**
119
+ * These will be the available fields for users. (Some fields, like username,
120
+ * can't be excluded.)
121
+ */
122
+ userFields: string[];
123
+ /**
124
+ * These fields will be available for the user to fill in when they register.
125
+ */
126
+ regFields: string[];
127
+ /**
128
+ * Verify users' email addresses upon registration/email change before
129
+ * allowing them to log in/change it.
130
+ */
131
+ verifyEmail: boolean;
132
+ /**
133
+ * After the user verifies their address, redirect them to this URL.
134
+ */
135
+ verifyRedirect: string;
136
+ /**
137
+ * After the user verifies an address change, redirect them to this URL.
138
+ */
139
+ verifyChangeRedirect: string;
140
+ /**
141
+ * After the user cancels an address change, redirect them to this URL.
142
+ */
143
+ cancelChangeRedirect: string;
144
+ /**
145
+ * Unverified users will be able to log in, but will only have the "unverified
146
+ * users" secondary group(s) until they verify their email. If set to false,
147
+ * their account will instead be disabled until they verify.
148
+ */
149
+ unverifiedAccess: boolean;
150
+ /**
151
+ * Don't let users change their email address more often than this. You can
152
+ * enter one value and one unit of time, such as "2 weeks". Leave blank to
153
+ * disable rate limiting.
154
+ *
155
+ * This also controls how long a user has to cancel an email address change
156
+ * from a link emailed to the old address.
157
+ */
158
+ emailRateLimit: string;
159
+ /**
160
+ * Allow users to recover their username and/or password through their
161
+ * registered email.
162
+ */
163
+ pwRecovery: boolean;
164
+ /**
165
+ * How long a recovery request is valid.
166
+ */
167
+ pwRecoveryTimeLimit: string;
168
+ /**
169
+ * Method used to store passwords. Salt is more secure if the database is
170
+ * compromised. Plain: store the password in plaintext. Digest: store the
171
+ * password's digest (hash). Salt: store the password's digest using a
172
+ * complex, unique salt.
173
+ *
174
+ * Digests are SHA-256, so a salt probably isn't necessary, but who knows.
175
+ *
176
+ * Options are: "plain", "digest", "salt"
177
+ */
178
+ pwMethod: 'plain' | 'digest' | 'salt';
179
+ /**
180
+ * Whether to create a new primary group for every user who registers. This
181
+ * can be useful for providing access to entities the user creates.
182
+ *
183
+ * In the case this is set, the default primary group, rather than being
184
+ * assigned to the user, is assigned as the parent of the generated group.
185
+ */
186
+ generatePrimary: boolean;
187
+ /**
188
+ * The GUID of the group above the highest groups allowed to be assigned as
189
+ * primary groups. True means all groups, and false means no groups.
190
+ */
191
+ highestPrimary: string | boolean;
192
+ /**
193
+ * The GUID of the group above the highest groups allowed to be assigned as
194
+ * secondary groups. True means all groups, and false means no groups.
195
+ */
196
+ highestSecondary: string | boolean;
197
+ /**
198
+ * Only these characters can be used when creating usernames and groupnames.
199
+ * (Doesn't apply to emails as usernames.)
200
+ */
201
+ validChars: string;
202
+ /**
203
+ * When a user enters an invalid name, this message will be displayed.
204
+ */
205
+ validCharsNotice: string;
206
+ /**
207
+ * Usernames and groupnames must match this regular expression. (Doesn't apply
208
+ * to emails as usernames.) By default, this ensures that the name begins and
209
+ * ends with an alphanumeric. (To allow anything, use .* inside the slashes.)
210
+ */
211
+ validRegex: RegExp;
212
+ /**
213
+ * When a user enters a name that doesn't match the regex, this message will
214
+ * be displayed.
215
+ */
216
+ validRegexNotice: string;
217
+ /**
218
+ * Email addresses must match this regular expression. By default, this uses
219
+ * the regex from the W3C HTML email element validation:
220
+ *
221
+ * https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email)
222
+ */
223
+ validEmailRegex: RegExp;
224
+ /**
225
+ * When a user enters an email that doesn't match the regex, this message will
226
+ * be displayed.
227
+ */
228
+ validEmailRegexNotice: string;
229
+ /**
230
+ * Domains must match this regular expression. By default, this uses a regex
231
+ * that should match most domains:
232
+ *
233
+ * https://stackoverflow.com/a/26987741
234
+ */
235
+ validDomainRegex: RegExp;
236
+ /**
237
+ * When a user enters a domain that doesn't match the regex, this message will
238
+ * be displayed.
239
+ */
240
+ validDomainRegexNotice: string;
241
+ /**
242
+ * The minimum length for usernames.
243
+ */
244
+ minUsernameLength: number;
245
+ /**
246
+ * The maximum length for usernames. `Infinity` for unlimited.
247
+ */
248
+ maxUsernameLength: number;
249
+ /**
250
+ * The secret used to sign the JWT.
251
+ */
252
+ jwtSecret: string;
253
+ /**
254
+ * How long from current time, in seconds, the JWT token expires.
255
+ */
256
+ jwtExpire: number;
257
+ /**
258
+ * How long from current time, in seconds, the JWT token for a user switch
259
+ * expires.
260
+ */
261
+ jwtSwitchExpire: number;
262
+ /**
263
+ * How long, in seconds, before the JWT token expires to give the user a new
264
+ * one.
265
+ */
266
+ jwtRenew: number;
267
+ /**
268
+ * Function to build the JWT for user sessions.
269
+ */
270
+ jwtBuilder: (
271
+ config: Config,
272
+ user: User & UserData,
273
+ switchToken?: boolean,
274
+ ) => string;
275
+ /**
276
+ * Function to verify that a JWT was signed with the secret key, validate its
277
+ * data, validate the XSRF token, and extract the GUID and dates.
278
+ *
279
+ * If no XSRF token is supplied, ignore it.
280
+ *
281
+ * Return false if the JWT is not valid, or an object with GUID, issued date,
282
+ * and expire date otherwise.
283
+ */
284
+ jwtExtract: (
285
+ config: Config,
286
+ token: string,
287
+ xsrfToken?: string,
288
+ ) => { guid: string; issued: Date; expire: Date } | null;
289
+ /**
290
+ * The absolute path to the email template directory. Used by the default
291
+ * email sender.
292
+ */
293
+ emailTemplateDir: string;
294
+ /**
295
+ * Configure an email object to prepare for sending.
296
+ *
297
+ * You can use this, for example, for DKIM signing.
298
+ *
299
+ * See: https://github.com/forwardemail/email-templates/blob/v8.0.9/README.md#Options
300
+ */
301
+ configEmail: (
302
+ tilmeld: Tilmeld,
303
+ options: EmailOptions,
304
+ user: User & UserData,
305
+ ) => Promise<EmailConfig>;
306
+ /**
307
+ * Send an email to a user. Uses `email-templates` by default.
308
+ *
309
+ * Check out the `emails` directory to see the templates used.
310
+ *
311
+ * In addition to the specific `locals` for each template, there are
312
+ * additional locals added by the default email sender:
313
+ *
314
+ * - System Information
315
+ * - siteName
316
+ * - siteLink
317
+ * - Recipient Information
318
+ * - toUsername
319
+ * - toName
320
+ * - toFirstName
321
+ * - toLastName
322
+ * - toEmail
323
+ * - toPhone
324
+ * - Current User Information (Only available if a user is logged in.)
325
+ * - username
326
+ * - name
327
+ * - firstName
328
+ * - lastName
329
+ * - email
330
+ */
331
+ sendEmail: (
332
+ tilmeld: Tilmeld,
333
+ options: EmailOptions,
334
+ user: User & UserData,
335
+ ) => Promise<boolean>;
336
+ /**
337
+ * The address you'd like to receive a notification of registered users, if
338
+ * any.
339
+ */
340
+ userRegisteredRecipient: string | null;
341
+ /**
342
+ * A function to run on a failed login attempt.
343
+ *
344
+ * If the username the client attempted doesn't exist, user will be null.
345
+ *
346
+ * This defaults to a promise that resolves after 3-5 seconds. This rate
347
+ * limits failed login attempts.
348
+ *
349
+ * Please note that the data comes from the client, so the types have not been
350
+ * verified. For example, username might be an array or a number.
351
+ */
352
+ failedLoginAttempt: (
353
+ user: (User & UserData) | null,
354
+ data: {
355
+ username: string;
356
+ password: string;
357
+ code?: string;
358
+ additionalData?: { [k: string]: any };
359
+ },
360
+ ) => Promise<void>;
361
+ /**
362
+ * The validator used to check groups before saving.
363
+ */
364
+ validatorGroup: (tilmeld: Tilmeld, group: Group & GroupData) => void;
365
+ /**
366
+ * The validator used to check users before saving.
367
+ */
368
+ validatorUser: (tilmeld: Tilmeld, user: User & UserData) => void;
369
+ }
370
+
371
+ import defaults from './defaults.js';
4
372
  export { defaults as ConfigDefaults };
@@ -0,0 +1,2 @@
1
+ export * from './requireAbility.js';
2
+ export * from './requireAuthentication.js';
@@ -0,0 +1,26 @@
1
+ import { Entity, HttpError } from '@nymphjs/nymph';
2
+
3
+ /**
4
+ * A decorator that checks for an ability before running the method.
5
+ *
6
+ * If the logged in user does not have the given ability, the decorator will
7
+ * cause the method to throw a 403 Forbidden HttpError.
8
+ *
9
+ * @param ability The ability to check for.
10
+ */
11
+ export function requireAbility(ability: string) {
12
+ return function (
13
+ target: (...args: any[]) => any,
14
+ _context: ClassMethodDecoratorContext,
15
+ ) {
16
+ return function (this: Entity, ...args: unknown[]) {
17
+ if (
18
+ this.$nymph.tilmeld == null ||
19
+ !this.$nymph.tilmeld.gatekeeper(ability)
20
+ ) {
21
+ throw new HttpError('Forbidden', 403);
22
+ }
23
+ return target.apply(this, args);
24
+ };
25
+ };
26
+ }
@@ -0,0 +1,19 @@
1
+ import { Entity, HttpError } from '@nymphjs/nymph';
2
+
3
+ /**
4
+ * A decorator that checks for authentication before running the method.
5
+ *
6
+ * If the user is not logged in, the decorator will cause the method to throw a
7
+ * 403 Forbidden HttpError.
8
+ */
9
+ export function requireAuthentication(
10
+ target: (...args: any[]) => any,
11
+ _context: ClassMethodDecoratorContext,
12
+ ) {
13
+ return function (this: Entity, ...args: unknown[]) {
14
+ if (this.$nymph.tilmeld == null || !this.$nymph.tilmeld.gatekeeper()) {
15
+ throw new HttpError('Forbidden', 403);
16
+ }
17
+ return target.apply(this, args);
18
+ };
19
+ }
@@ -0,0 +1,20 @@
1
+ import { Entity, EntityConstructor, Nymph } from '@nymphjs/nymph';
2
+
3
+ import Tilmeld from './Tilmeld.js';
4
+
5
+ export function enforceTilmeld(object: Nymph | Entity | EntityConstructor) {
6
+ let tilmeld: Tilmeld | undefined;
7
+ if (object instanceof Entity) {
8
+ tilmeld = object.$nymph.tilmeld as Tilmeld | undefined;
9
+ } else if (object instanceof Nymph) {
10
+ tilmeld = object.tilmeld as Tilmeld | undefined;
11
+ } else {
12
+ tilmeld = object.nymph.tilmeld as Tilmeld | undefined;
13
+ }
14
+
15
+ if (tilmeld == null) {
16
+ throw new Error('Tilmeld was not configured on this Nymph instance!');
17
+ }
18
+
19
+ return tilmeld;
20
+ }
@@ -1,6 +1,8 @@
1
- export class AccessControlError extends Error {
1
+ import { HttpError } from '@nymphjs/nymph';
2
+
3
+ export class AccessControlError extends HttpError {
2
4
  constructor(message: string) {
3
- super(message);
5
+ super(message, 403);
4
6
  this.name = 'AccessControlError';
5
7
  }
6
8
  }
@@ -1,6 +1,8 @@
1
- export class BadDataError extends Error {
1
+ import { HttpError } from '@nymphjs/nymph';
2
+
3
+ export class BadDataError extends HttpError {
2
4
  constructor(message: string) {
3
- super(message);
5
+ super(message, 400);
4
6
  this.name = 'BadDataError';
5
7
  }
6
8
  }
@@ -1,6 +1,8 @@
1
- export class BadEmailError extends Error {
1
+ import { HttpError } from '@nymphjs/nymph';
2
+
3
+ export class BadEmailError extends HttpError {
2
4
  constructor(message: string) {
3
- super(message);
5
+ super(message, 400);
4
6
  this.name = 'BadEmailError';
5
7
  }
6
8
  }
@@ -1,6 +1,8 @@
1
- export class BadUsernameError extends Error {
1
+ import { HttpError } from '@nymphjs/nymph';
2
+
3
+ export class BadUsernameError extends HttpError {
2
4
  constructor(message: string) {
3
- super(message);
5
+ super(message, 400);
4
6
  this.name = 'BadUsernameError';
5
7
  }
6
8
  }
@@ -1,11 +1,11 @@
1
- export * from './AccessControlError';
1
+ export * from './AccessControlError.js';
2
2
 
3
- export * from './BadDataError';
3
+ export * from './BadDataError.js';
4
4
 
5
- export * from './BadEmailError';
5
+ export * from './BadEmailError.js';
6
6
 
7
- export * from './BadUsernameError';
7
+ export * from './BadUsernameError.js';
8
8
 
9
- export * from './CouldNotChangeDefaultPrimaryGroupError';
9
+ export * from './CouldNotChangeDefaultPrimaryGroupError.js';
10
10
 
11
- export * from './EmailChangeRateLimitExceededError';
11
+ export * from './EmailChangeRateLimitExceededError.js';
package/src/index.ts CHANGED
@@ -1,22 +1,25 @@
1
- export * from './conf';
1
+ export * from './conf/index.js';
2
2
 
3
- export * from './errors';
3
+ export * from './enforceTilmeld.js';
4
4
 
5
- import AbleObject from './AbleObject';
5
+ export * from './decorators/index.js';
6
+ export * from './errors/index.js';
7
+
8
+ import AbleObject from './AbleObject.js';
6
9
  export { AbleObject };
7
10
 
8
- export * from './Group';
9
- import Group from './Group';
11
+ export * from './Group.js';
12
+ import Group from './Group.js';
10
13
  export { Group };
11
14
 
12
- import Tilmeld from './Tilmeld';
15
+ import Tilmeld from './Tilmeld.js';
13
16
  export { Tilmeld };
14
17
 
15
- export * from './Tilmeld.types';
18
+ export * from './Tilmeld.types.js';
16
19
 
17
- import tilmeldJoiProps from './tilmeldJoiProps';
20
+ import tilmeldJoiProps from './tilmeldJoiProps.js';
18
21
  export { tilmeldJoiProps };
19
22
 
20
- export * from './User';
21
- import User from './User';
23
+ export * from './User.js';
24
+ import User from './User.js';
22
25
  export { User };