@shakerquiz/utilities 4.0.63 → 4.0.65

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.
@@ -1,4 +1,4 @@
1
- name: Publish package (aquamarine)
1
+ name: Publish @shakerquiz/utilities@aquamarine
2
2
 
3
3
  on:
4
4
  pull_request:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.63",
4
+ "version": "4.0.65",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,3 +1,5 @@
1
+ import { Quantifier } from './quantifier.js'
2
+
1
3
  export const RegistrationLineups = Object.freeze(
2
4
  /** @type {const} */ ([
3
5
  'Main',
@@ -20,3 +22,18 @@ export const RegistrationLineupEmoji = Object.freeze({
20
22
  'Reserve': '🟡',
21
23
  'Unspecifed': '⚫️',
22
24
  })
25
+
26
+ export const CategoryRegistrationLineups = Object.freeze({
27
+ [Quantifier['Any']]: Object.freeze([
28
+ RegistrationLineup['Main'],
29
+ RegistrationLineup['Reserve'],
30
+ ]),
31
+
32
+ [RegistrationLineup['Main']]: Object.freeze([
33
+ RegistrationLineup['Main'],
34
+ ]),
35
+
36
+ [RegistrationLineup['Reserve']]: Object.freeze([
37
+ RegistrationLineup['Reserve'],
38
+ ]),
39
+ })
@@ -1,3 +1,5 @@
1
+ import { Quantifier } from './quantifier.js'
2
+
1
3
  export const RegistrationStatuses = Object.freeze(
2
4
  /** @type {const} */ ([
3
5
  'Created',
@@ -21,3 +23,23 @@ export const RegistrationStatusEmoji = Object.freeze({
21
23
  'Created': '📝',
22
24
  'Cancelled': '❌',
23
25
  })
26
+
27
+ export const CategoryRegistrationStatuses = Object.freeze({
28
+ [Quantifier['Any']]: Object.freeze([
29
+ RegistrationStatus['Created'],
30
+ RegistrationStatus['Confirmed'],
31
+ RegistrationStatus['Cancelled'],
32
+ ]),
33
+
34
+ [RegistrationStatus['Created']]: Object.freeze([
35
+ RegistrationStatus['Created'],
36
+ ]),
37
+
38
+ [RegistrationStatus['Confirmed']]: Object.freeze([
39
+ RegistrationStatus['Confirmed'],
40
+ ]),
41
+
42
+ [RegistrationStatus['Cancelled']]: Object.freeze([
43
+ RegistrationStatus['Cancelled'],
44
+ ]),
45
+ })
@@ -0,0 +1 @@
1
+ export const filterUnique = (value, index, array) => array.indexOf(value) === index
package/source/index.js CHANGED
@@ -32,6 +32,7 @@ export * from './entities/theme-status.js'
32
32
  export * from './entities/venue-audience.js'
33
33
  export * from './entities/venue-status.js'
34
34
  export * from './helpers/access.js'
35
+ export * from './helpers/array.js'
35
36
  export * from './helpers/object.js'
36
37
  export * from './helpers/route.js'
37
38
  export * from './helpers/tag.js'