@shakerquiz/utilities 4.0.99 → 4.0.101

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.99",
4
+ "version": "4.0.101",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,23 @@
1
+ import { Quantifier } from './quantifier.js'
2
+
3
+ export const GameVisibility = /** @type {const} */ ({
4
+ 'Visible': 'Visible',
5
+ 'Hidden': 'Hidden',
6
+ })
7
+
8
+ export const GameVisibilities = Object.values(GameVisibility)
9
+
10
+ export const CategoryGameVisibilities = /** @type {const} */ ({
11
+ [Quantifier['Any']]: [
12
+ GameVisibility['Visible'],
13
+ GameVisibility['Hidden'],
14
+ ],
15
+
16
+ [GameVisibility['Visible']]: [
17
+ GameVisibility['Visible'],
18
+ ],
19
+
20
+ [GameVisibility['Hidden']]: [
21
+ GameVisibility['Hidden'],
22
+ ],
23
+ })
@@ -29,5 +29,5 @@ export const CategoryRegistrationIntervals = Object.freeze({
29
29
  Interval['1 year'],
30
30
  ]),
31
31
 
32
- [Interval['all time']]: Object.freeze([]),
32
+ [Interval['all time']]: undefined,
33
33
  })
package/source/index.js CHANGED
@@ -7,6 +7,7 @@ export * from './entities/city-chatapp-version.js'
7
7
  export * from './entities/constants.js'
8
8
  export * from './entities/display.js'
9
9
  export * from './entities/game-status.js'
10
+ export * from './entities/game-visibility.js'
10
11
  export * from './entities/gender.js'
11
12
  export * from './entities/icon.js'
12
13
  export * from './entities/interval.js'