@shakerquiz/utilities 0.2.7 → 0.2.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "exports": {
package/source/city.d.ts CHANGED
@@ -63,7 +63,7 @@ type CityRow = {
63
63
  /**
64
64
  * @description "uuid"
65
65
  */
66
- id: Nullable<string>
66
+ id: string
67
67
  /**
68
68
  * @description "character varying"
69
69
  */
@@ -0,0 +1,64 @@
1
+ import { Features } from './features.js'
2
+
3
+ export let Patterns = {
4
+ /**
5
+ * Users
6
+ */
7
+ [Features.Checkin]: new URLPattern({
8
+ pathname: '/checkin',
9
+ }),
10
+
11
+ [Features.User]: new URLPattern({
12
+ pathname: '/user/:user?',
13
+ }),
14
+
15
+ [Features.Users]: new URLPattern({
16
+ pathname: '/users',
17
+ }),
18
+
19
+ /**
20
+ * Games
21
+ */
22
+ [Features.Theme]: new URLPattern({
23
+ pathname: '/theme/:theme?',
24
+ }),
25
+
26
+ [Features.Themes]: new URLPattern({
27
+ pathname: '/themes',
28
+ }),
29
+
30
+ [Features.Game]: new URLPattern({
31
+ pathname: '/game/:game?',
32
+ }),
33
+
34
+ [Features.Games]: new URLPattern({
35
+ pathname: '/games',
36
+ }),
37
+
38
+ [Features.Registration]: new URLPattern({
39
+ pathname: '/registration/:registration?',
40
+ }),
41
+
42
+ [Features.Registrations]: new URLPattern({
43
+ pathname: '/registrations',
44
+ }),
45
+
46
+ /**
47
+ * Locations
48
+ */
49
+ [Features.City]: new URLPattern({
50
+ pathname: '/city/:city?',
51
+ }),
52
+
53
+ [Features.Cities]: new URLPattern({
54
+ pathname: '/cities',
55
+ }),
56
+
57
+ [Features.Location]: new URLPattern({
58
+ pathname: '/location/:location?',
59
+ }),
60
+
61
+ [Features.Locations]: new URLPattern({
62
+ pathname: '/locations',
63
+ }),
64
+ }
package/source/game.d.ts CHANGED
@@ -100,7 +100,7 @@ type GameRow = {
100
100
  /**
101
101
  * @description "uuid"
102
102
  */
103
- id: Nullable<string>
103
+ id: string
104
104
  /**
105
105
  * @description "timestamp with time zone"
106
106
  */
package/source/index.js CHANGED
@@ -5,6 +5,7 @@ export * from './enumerations/game-statuses.js'
5
5
  export * from './enumerations/kinds.js'
6
6
  export * from './enumerations/methods.js'
7
7
  export * from './enumerations/networks.js'
8
+ export * from './enumerations/patterns.js'
8
9
  export * from './enumerations/phases.js'
9
10
  export * from './enumerations/regexps.js'
10
11
  export * from './enumerations/roles.js'