@shakerquiz/utilities 0.3.27 → 0.3.29

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.3.27",
3
+ "version": "0.3.29",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "scripts": {
7
- "type": "tsc ./source/dir/file.js --allowjs --emitdeclarationonly --declaration"
7
+ "type": "tsc --emitdeclarationonly --declaration --allowjs"
8
8
  },
9
9
  "exports": {
10
10
  ".": {
@@ -1,5 +1,6 @@
1
1
  export const Features: {
2
2
  Checkin: "Checkin";
3
+ Mailing: "Mailing";
3
4
  '404': "404";
4
5
  Exception: "Exception";
5
6
  Home: "Home";
@@ -71,6 +71,7 @@ export var PageServiceDefaults = {
71
71
  */
72
72
  export var ProcedureServiceDefaults = {
73
73
  [Procedures.Checkin]: Backends.Users,
74
+ [Procedures.Mailing]: Backends.Games,
74
75
  }
75
76
 
76
77
  /**
@@ -1,5 +1,6 @@
1
1
  export namespace Procedures {
2
2
  let Checkin: "Checkin";
3
+ let Mailing: "Mailing";
3
4
  }
4
5
  /**
5
6
  * @type {Record<Procedure, Icon>}
@@ -5,6 +5,7 @@ import { Requirements } from './requirements.js'
5
5
 
6
6
  export var Procedures = /** @type {const} */ ({
7
7
  Checkin: 'Checkin',
8
+ Mailing: 'Mailing',
8
9
  })
9
10
 
10
11
  /**
@@ -12,6 +13,7 @@ export var Procedures = /** @type {const} */ ({
12
13
  */
13
14
  export var ProcedureIcons = {
14
15
  [Procedures.Checkin]: Icons['arrow-right-end-on-rectangle'],
16
+ [Procedures.Mailing]: Icons['envelope'],
15
17
  }
16
18
 
17
19
  /**
@@ -20,7 +22,12 @@ export var ProcedureIcons = {
20
22
  export var ProcedureKindPathnames = {
21
23
  [Procedures.Checkin]: {
22
24
  [Kinds.Unit]: '/checkin',
23
- [Kinds.Set]: '/checkin',
25
+ [Kinds.Set]: '/checkins',
26
+ },
27
+
28
+ [Procedures.Mailing]: {
29
+ [Kinds.Unit]: '/mailing',
30
+ [Kinds.Set]: '/mailings',
24
31
  },
25
32
  }
26
33
 
@@ -36,4 +43,13 @@ export var ProcedureMethodRequirements = {
36
43
  [Methods.POST]: new Set([Requirements.Body]),
37
44
  [Methods.PUT]: new Set([]),
38
45
  },
46
+
47
+ [Procedures.Mailing]: {
48
+ [Methods.DELETE]: new Set([]),
49
+ [Methods.GET]: new Set([]),
50
+ [Methods.OPTIONS]: new Set([]),
51
+ [Methods.PATCH]: new Set([]),
52
+ [Methods.POST]: new Set([Requirements.Body]),
53
+ [Methods.PUT]: new Set([Requirements.Body]),
54
+ },
39
55
  }
@@ -59,6 +59,11 @@ type Role = keyof typeof import('./enumerations/roles.js').Roles
59
59
  type GameStatus =
60
60
  keyof typeof import('./enumerations/game-statuses.js').GameStatuses
61
61
 
62
+ type RegistrationStatus =
63
+ keyof typeof import('./enumerations/registration-statuses.js').RegistrationStatuses
64
+
65
+ type Lineup = keyof typeof import('./enumerations/lineups.js').Lineups
66
+
62
67
  /**
63
68
  * Misc
64
69
  */