@nymphjs/tilmeld 1.0.0-beta.14 → 1.0.0-beta.140

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