@shakerquiz/utilities 2.0.0 → 3.0.0

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 (117) hide show
  1. package/dprint.json +1 -4
  2. package/package.json +4 -10
  3. package/source/enumerations/core/features.js +51 -200
  4. package/source/enumerations/core/methods.js +9 -18
  5. package/source/enumerations/core/networks.js +6 -4
  6. package/source/enumerations/core/runtimes.js +6 -4
  7. package/source/enumerations/entities/affilation.js +91 -0
  8. package/source/enumerations/entities/cities-mode.js +49 -0
  9. package/source/enumerations/entities/city/timezone-mode.js +44 -0
  10. package/source/enumerations/entities/city/venues-mode.js +60 -0
  11. package/source/enumerations/entities/game-status.js +130 -0
  12. package/source/enumerations/entities/password-mode.js +40 -0
  13. package/source/enumerations/entities/registration-attribute.js +83 -0
  14. package/source/enumerations/entities/registration-channel.js +26 -0
  15. package/source/enumerations/entities/registration-lineup.js +75 -0
  16. package/source/enumerations/entities/registration-mailing.js +24 -0
  17. package/source/enumerations/entities/registration-status.js +89 -0
  18. package/source/enumerations/entities/role-mode.js +40 -0
  19. package/source/enumerations/entities/role.js +82 -0
  20. package/source/enumerations/entities/venue/audience.js +100 -0
  21. package/source/enumerations/entities/venue/city-mode.js +44 -0
  22. package/source/enumerations/entities/venue/status.js +53 -0
  23. package/source/enumerations/entities/version.js +76 -0
  24. package/source/enumerations/misc/icons.js +653 -324
  25. package/source/enumerations/misc/keys.js +15 -0
  26. package/source/enumerations/misc/phases.js +42 -7
  27. package/source/enumerations/misc/regexps.js +1 -2
  28. package/source/enumerations/misc/routes.js +610 -0
  29. package/source/index.js +22 -12
  30. package/source/schemas/PATCH/city/admin.json +126 -0
  31. package/source/schemas/PATCH/city/currency/admin.json +173 -0
  32. package/source/schemas/PATCH/city/timezone/admin.json +501 -0
  33. package/source/schemas/PATCH/{Game/admin/schema.json → game/admin.json} +0 -4
  34. package/source/schemas/PATCH/{Game/organizer/schema.json → game/organizer.json} +0 -4
  35. package/source/schemas/PATCH/registration/cancellation/default.json +12 -0
  36. package/source/schemas/PATCH/registration/channel/default.json +22 -0
  37. package/source/schemas/PATCH/registration/confirmation/default.json +12 -0
  38. package/source/schemas/PATCH/registration/default.json +10 -0
  39. package/source/schemas/PATCH/registration/organizer.json +43 -0
  40. package/source/schemas/PATCH/theme/admin.json +19 -0
  41. package/source/schemas/PATCH/user/admin.json +30 -0
  42. package/source/schemas/PATCH/user/cities/admin.json +17 -0
  43. package/source/schemas/PATCH/user/password/admin.json +12 -0
  44. package/source/schemas/PATCH/user/role/admin.json +13 -0
  45. package/source/schemas/PATCH/{Venue/organizer/schema.json → venue/admin.json} +3 -2
  46. package/source/schemas/PATCH/{Venue/admin/schema.json → venue/organizer.json} +6 -2
  47. package/source/schemas/POST/checkin/default.json +16 -0
  48. package/source/schemas/POST/city/admin.json +696 -0
  49. package/source/schemas/POST/game/registrations/export/admin.json +17 -0
  50. package/source/schemas/POST/game/registrations/export/organizer.json +17 -0
  51. package/source/schemas/POST/registration/mailing/admin.json +16 -0
  52. package/source/schemas/POST/registration/mailing/organizer.json +16 -0
  53. package/source/schemas/POST/registrations/export/admin.json +17 -0
  54. package/source/schemas/POST/registrations/export/organizer.json +17 -0
  55. package/source/schemas/POST/theme/admin.json +24 -0
  56. package/source/schemas/POST/{Mailing/organizer/schema.json → user/admin.json} +2 -2
  57. package/source/schemas/POST/user/cities/admin.json +17 -0
  58. package/source/schemas/POST/user/password/admin.json +12 -0
  59. package/source/schemas/POST/user/role/admin.json +13 -0
  60. package/source/schemas/POST/{Venue/organizer/schema.json → venue/admin.json} +2 -13
  61. package/source/schemas/POST/venue/organizer.json +38 -0
  62. package/source/enumerations/core/features.d.ts +0 -40
  63. package/source/enumerations/core/kinds.d.ts +0 -1
  64. package/source/enumerations/core/kinds.js +0 -4
  65. package/source/enumerations/core/methods.d.ts +0 -8
  66. package/source/enumerations/core/networks.d.ts +0 -1
  67. package/source/enumerations/core/runtimes.d.ts +0 -1
  68. package/source/enumerations/core/scopes.d.ts +0 -5
  69. package/source/enumerations/core/scopes.js +0 -27
  70. package/source/enumerations/entities/city-affilations.d.ts +0 -1
  71. package/source/enumerations/entities/city-affilations.js +0 -4
  72. package/source/enumerations/entities/game-statuses.d.ts +0 -1
  73. package/source/enumerations/entities/game-statuses.js +0 -11
  74. package/source/enumerations/entities/registration-attributes.d.ts +0 -2
  75. package/source/enumerations/entities/registration-attributes.js +0 -57
  76. package/source/enumerations/entities/registration-channels.d.ts +0 -1
  77. package/source/enumerations/entities/registration-channels.js +0 -5
  78. package/source/enumerations/entities/registration-lineups.d.ts +0 -5
  79. package/source/enumerations/entities/registration-lineups.js +0 -43
  80. package/source/enumerations/entities/registration-mailings.d.ts +0 -1
  81. package/source/enumerations/entities/registration-mailings.js +0 -6
  82. package/source/enumerations/entities/registration-statuses.d.ts +0 -5
  83. package/source/enumerations/entities/registration-statuses.js +0 -54
  84. package/source/enumerations/entities/roles.d.ts +0 -1
  85. package/source/enumerations/entities/roles.js +0 -5
  86. package/source/enumerations/entities/venue-statuses.d.ts +0 -1
  87. package/source/enumerations/entities/venue-statuses.js +0 -4
  88. package/source/enumerations/misc/constants.d.ts +0 -3
  89. package/source/enumerations/misc/cookies.d.ts +0 -5
  90. package/source/enumerations/misc/cookies.js +0 -5
  91. package/source/enumerations/misc/icons.d.ts +0 -1
  92. package/source/enumerations/misc/phases.d.ts +0 -1
  93. package/source/enumerations/misc/regexps.d.ts +0 -5
  94. package/source/index.d.ts +0 -27
  95. package/source/misc.d.ts +0 -79
  96. package/source/schemas/PATCH/Game/default/schema.json +0 -6
  97. package/source/schemas/PATCH/Registration/admin/schema.json +0 -6
  98. package/source/schemas/PATCH/Registration/default/schema.json +0 -104
  99. package/source/schemas/PATCH/Venue/default/schema.json +0 -6
  100. package/source/schemas/POST/Game/organizer/schema.json +0 -27
  101. package/source/schemas/POST/Mailing/admin/schema.json +0 -6
  102. package/source/schemas/POST/Mailing/default/schema.json +0 -6
  103. package/source/schemas/POST/Registration/admin/schema.json +0 -6
  104. package/source/schemas/POST/Registration/organizer/schema.json +0 -6
  105. package/source/schemas/POST/Venue/admin/schema.json +0 -6
  106. package/source/schemas/POST/Venue/default/schema.json +0 -6
  107. package/source/schemas/game.schema.json +0 -93
  108. package/source/schemas/registration.schema.json +0 -123
  109. package/source/schemas/theme.schema.json +0 -48
  110. package/source/schemas/venue.schema.json +0 -56
  111. package/source/scope.d.ts +0 -874
  112. package/source/server.d.ts +0 -5
  113. package/source/tables.d.ts +0 -187
  114. /package/source/schemas/PATCH/{Registration/organizer/schema.json → registration/admin.json} +0 -0
  115. /package/source/schemas/POST/{Game/admin/schema.json → game/admin.json} +0 -0
  116. /package/source/schemas/POST/{Game/default/schema.json → game/organizer.json} +0 -0
  117. /package/source/schemas/POST/{Registration/default/schema.json → registration/default.json} +0 -0
package/source/index.d.ts DELETED
@@ -1,27 +0,0 @@
1
- /// <reference path="./misc.d.ts" />
2
- /// <reference path="./scope.d.ts" />
3
- /// <reference path="./server.d.ts" />
4
- /// <reference path="./tables.d.ts" />
5
-
6
- export * from './enumerations/core/features.d.ts'
7
- export * from './enumerations/core/kinds.d.ts'
8
- export * from './enumerations/core/methods.d.ts'
9
- export * from './enumerations/core/networks.d.ts'
10
- export * from './enumerations/core/runtimes.d.ts'
11
- export * from './enumerations/core/scopes.d.ts'
12
-
13
- export * from './enumerations/misc/constants.d.ts'
14
- export * from './enumerations/misc/cookies.d.ts'
15
- export * from './enumerations/misc/icons.d.ts'
16
- export * from './enumerations/misc/phases.d.ts'
17
- export * from './enumerations/misc/regexps.d.ts'
18
-
19
- export * from './enumerations/entities/city-affilations.d.ts'
20
- export * from './enumerations/entities/game-statuses.d.ts'
21
- export * from './enumerations/entities/registration-attributes.d.ts'
22
- export * from './enumerations/entities/registration-channels.d.ts'
23
- export * from './enumerations/entities/registration-lineups.d.ts'
24
- export * from './enumerations/entities/registration-mailings.d.ts'
25
- export * from './enumerations/entities/registration-statuses.d.ts'
26
- export * from './enumerations/entities/roles.d.ts'
27
- export * from './enumerations/entities/venue-statuses.d.ts'
package/source/misc.d.ts DELETED
@@ -1,79 +0,0 @@
1
- /**
2
- * Mixins
3
- */
4
-
5
- interface RequestInit {
6
- /**
7
- * @description A method string defined by RFC7231 @see {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3}
8
- */
9
- method?: Method
10
- }
11
-
12
- /**
13
- * React
14
- */
15
-
16
- type UseState<T> = [
17
- T,
18
- import('react').Dispatch<import('react').SetStateAction<T>>,
19
- ]
20
-
21
- /**
22
- * Core
23
- */
24
-
25
- type Method = (typeof import('./enumerations/core/methods.js').Methods)[number]
26
-
27
- type Domain = (typeof import('./enumerations/core/features.js').Domains)[number]
28
-
29
- type Procedure = (typeof import('./enumerations/core/features.js').Procedures)[number]
30
-
31
- type Feature = Domain | Procedure
32
-
33
- type Kind = (typeof import('./enumerations/core/kinds.js').Kinds)[number]
34
-
35
- type Scope = `${Method}/${Feature}/${Kind}`
36
-
37
- type Runtime = (typeof import('./enumerations/core/runtimes.js').Runtimes)[number]
38
-
39
- type Network = (typeof import('./enumerations/core/networks.js').Networks)[number]
40
-
41
- type Role = (typeof import('./enumerations/entities/roles.js').Roles)[number]
42
-
43
- type CityAffilation = (typeof import('./enumerations/entities/city-affilations.js').CityAffilations)[number]
44
-
45
- type GameStatus = (typeof import('./enumerations/entities/game-statuses.js').GameStatuses)[number]
46
-
47
- type RegistrationAttribute =
48
- (typeof import('./enumerations/entities/registration-attributes.js').RegistrationAttributes)[number]
49
-
50
- type RegistrationChannel =
51
- (typeof import('./enumerations/entities/registration-channels.js').RegistrationChannels)[number]
52
-
53
- type RegistrationLineup = (typeof import('./enumerations/entities/registration-lineups.js').RegistrationLineups)[number]
54
-
55
- type RegistrationMailing =
56
- (typeof import('./enumerations/entities/registration-mailings.js').RegistrationMailings)[number]
57
-
58
- type RegistrationStatus =
59
- (typeof import('./enumerations/entities/registration-statuses.js').RegistrationStatuses)[number]
60
-
61
- type VenueStatus = (typeof import('./enumerations/entities/venue-statuses.js').VenueStatuses)[number]
62
-
63
- /**
64
- * Misc
65
- */
66
-
67
- type Icon = (typeof import('./enumerations/misc/icons.js').Icons)[number]
68
-
69
- type Phase = (typeof import('./enumerations/misc/phases.js').Phases)[number]
70
-
71
- /**
72
- * Products
73
- */
74
-
75
- type ScopePhase = Record<Scope, Phase>
76
-
77
- type ScopeState = Record<Scope, any>
78
-
79
- type ScopeController = Record<Scope, AbortController | null>
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,104 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "people_count": {
5
- "type": "integer"
6
- },
7
- "channel": {
8
- "type": "string"
9
- },
10
- "confirmed_channel": {
11
- "type": "string"
12
- },
13
- "email": {
14
- "type": "string"
15
- },
16
- "vkontakte": {
17
- "type": "string"
18
- },
19
- "telegramBot": {
20
- "type": "string"
21
- },
22
- "is_canceled": {
23
- "type": "boolean"
24
- },
25
- "is_confirm": {
26
- "type": "boolean"
27
- },
28
- "status": {
29
- "type": "string",
30
- "enum": [
31
- "Created",
32
- "Confirmed",
33
- "Cancelled"
34
- ]
35
- },
36
- "lineup": {
37
- "type": "string",
38
- "enum": [
39
- "Main",
40
- "Reserve"
41
- ]
42
- }
43
- },
44
- "required": [],
45
- "additionalProperties": false,
46
- "allOf": [
47
- {
48
- "if": {
49
- "properties": {
50
- "channel": {
51
- "const": "email"
52
- }
53
- },
54
- "required": [
55
- "channel"
56
- ]
57
- },
58
- "then": {
59
- "required": [
60
- "channel",
61
- "confirmed_channel"
62
- ]
63
- }
64
- },
65
- {
66
- "if": {
67
- "properties": {
68
- "channel": {
69
- "const": "telegramBot"
70
- }
71
- },
72
- "required": [
73
- "channel"
74
- ]
75
- },
76
- "then": {
77
- "required": [
78
- "channel",
79
- "confirmed_channel",
80
- "telegramBot"
81
- ]
82
- }
83
- },
84
- {
85
- "if": {
86
- "properties": {
87
- "channel": {
88
- "const": "vkontakte"
89
- }
90
- },
91
- "required": [
92
- "channel"
93
- ]
94
- },
95
- "then": {
96
- "required": [
97
- "channel",
98
- "confirmed_channel",
99
- "vkontakte"
100
- ]
101
- }
102
- }
103
- ]
104
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,27 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "location_id": {
5
- "type": "string",
6
- "format": "uuid"
7
- },
8
- "theme_id": {
9
- "type": "string",
10
- "format": "uuid"
11
- },
12
- "number": {
13
- "type": "string"
14
- },
15
- "event_time": {
16
- "type": "string",
17
- "format": "iso-date-time"
18
- }
19
- },
20
- "required": [
21
- "location_id",
22
- "theme_id",
23
- "number",
24
- "event_time"
25
- ],
26
- "additionalProperties": false
27
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,93 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "city_id": {
5
- "type": "string",
6
- "format": "uuid"
7
- },
8
- "created_by_id": {
9
- "type": "string",
10
- "format": "uuid"
11
- },
12
- "currency": {
13
- "type": "string"
14
- },
15
- "description": {
16
- "type": "string"
17
- },
18
- "event_time": {
19
- "type": "string",
20
- "format": "iso-date-time"
21
- },
22
- "game_pack_id": {
23
- "type": "string",
24
- "format": "uuid"
25
- },
26
- "id": {
27
- "type": "string",
28
- "format": "uuid"
29
- },
30
- "image_id": {
31
- "type": "string",
32
- "format": "uuid"
33
- },
34
- "location_id": {
35
- "type": "string",
36
- "format": "uuid"
37
- },
38
- "max_members_count": {
39
- "type": "integer"
40
- },
41
- "min_members_count": {
42
- "type": "integer"
43
- },
44
- "name": {
45
- "type": "string"
46
- },
47
- "number": {
48
- "type": "string"
49
- },
50
- "owner_id": {
51
- "type": "string",
52
- "format": "uuid"
53
- },
54
- "personal_comment": {
55
- "type": "string"
56
- },
57
- "price": {
58
- "type": "number"
59
- },
60
- "short_description": {
61
- "type": "string"
62
- },
63
- "status": {
64
- "type": "string"
65
- },
66
- "theme_id": {
67
- "type": "string",
68
- "format": "uuid"
69
- },
70
- "time_created": {
71
- "type": "string",
72
- "format": "iso-date-time"
73
- },
74
- "time_updated": {
75
- "type": "string",
76
- "format": "iso-date-time"
77
- },
78
- "timezone": {
79
- "type": "integer"
80
- },
81
- "weekday": {
82
- "type": "string"
83
- }
84
- },
85
- "required": [
86
- "theme_id",
87
- "location_id",
88
- "event_time",
89
- "number",
90
- "price"
91
- ],
92
- "additionalProperties": false
93
- }
@@ -1,123 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "ads_from": {
5
- "type": "string"
6
- },
7
- "change_people_count": {
8
- "type": "integer"
9
- },
10
- "channel": {
11
- "type": "string"
12
- },
13
- "chatapp_id": {
14
- "type": "string"
15
- },
16
- "comment": {
17
- "type": "string"
18
- },
19
- "email": {
20
- "type": "string"
21
- },
22
- "event_id": {
23
- "type": "string",
24
- "format": "uuid"
25
- },
26
- "fact_people_count": {
27
- "type": "integer"
28
- },
29
- "human_name": {
30
- "type": "string"
31
- },
32
- "id": {
33
- "type": "string",
34
- "format": "uuid"
35
- },
36
- "is_actual_presence": {
37
- "type": "boolean"
38
- },
39
- "is_alone": {
40
- "type": "boolean"
41
- },
42
- "is_birthday": {
43
- "type": "boolean"
44
- },
45
- "is_canceled": {
46
- "type": "boolean"
47
- },
48
- "is_confirm": {
49
- "type": "boolean"
50
- },
51
- "is_extensible": {
52
- "type": "boolean"
53
- },
54
- "is_first": {
55
- "type": "boolean"
56
- },
57
- "is_reserve": {
58
- "type": "boolean"
59
- },
60
- "last_broadcast": {
61
- "type": "string"
62
- },
63
- "people_count": {
64
- "type": "integer"
65
- },
66
- "phone": {
67
- "type": "string"
68
- },
69
- "promocode": {
70
- "type": "string"
71
- },
72
- "team_name": {
73
- "type": "string"
74
- },
75
- "telegramBot": {
76
- "type": "string"
77
- },
78
- "time_created": {
79
- "type": "string",
80
- "format": "date-time"
81
- },
82
- "time_updated": {
83
- "type": "string",
84
- "format": "date-time"
85
- },
86
- "utm_campaign": {
87
- "type": "string"
88
- },
89
- "utm_content": {
90
- "type": "string"
91
- },
92
- "utm_medium": {
93
- "type": "string"
94
- },
95
- "utm_source": {
96
- "type": "string"
97
- },
98
- "utm_term": {
99
- "type": "string"
100
- },
101
- "vkontakte": {
102
- "type": "string"
103
- }
104
- },
105
- "required": [
106
- "email",
107
- "event_id",
108
- "human_name",
109
- "id",
110
- "is_actual_presence",
111
- "is_alone",
112
- "is_birthday",
113
- "is_canceled",
114
- "is_confirm",
115
- "is_extensible",
116
- "is_first",
117
- "is_reserve",
118
- "people_count",
119
- "phone",
120
- "team_name"
121
- ],
122
- "additionalProperties": false
123
- }
@@ -1,48 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "description": {
5
- "type": "string"
6
- },
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "image_id": {
12
- "type": [
13
- "string",
14
- "null"
15
- ],
16
- "format": "uuid"
17
- },
18
- "name": {
19
- "type": "string"
20
- },
21
- "short_description": {
22
- "type": [
23
- "string",
24
- "null"
25
- ]
26
- },
27
- "time_created": {
28
- "type": [
29
- "string",
30
- "null"
31
- ],
32
- "format": "date-time"
33
- },
34
- "time_updated": {
35
- "type": [
36
- "string",
37
- "null"
38
- ],
39
- "format": "date-time"
40
- }
41
- },
42
- "required": [
43
- "description",
44
- "id",
45
- "name"
46
- ],
47
- "additionalProperties": false
48
- }
@@ -1,56 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "id": {
5
- "type": "string",
6
- "format": "uuid"
7
- },
8
- "name": {
9
- "type": "string"
10
- },
11
- "street": {
12
- "type": "string"
13
- },
14
- "house_number": {
15
- "type": "string"
16
- },
17
- "people_capacity": {
18
- "type": "integer"
19
- },
20
- "team_capacity": {
21
- "type": "integer"
22
- },
23
- "is_adult": {
24
- "type": "boolean"
25
- },
26
- "time_created": {
27
- "type": "string",
28
- "format": "date-time"
29
- },
30
- "time_updated": {
31
- "type": [
32
- "string",
33
- "null"
34
- ],
35
- "format": "date-time"
36
- },
37
- "game_time": {
38
- "type": "string"
39
- },
40
- "city_id": {
41
- "type": "string",
42
- "format": "uuid"
43
- },
44
- "location_info": {
45
- "type": "string"
46
- },
47
- "status": {
48
- "type": "string"
49
- },
50
- "href": {
51
- "type": "string"
52
- }
53
- },
54
- "required": [],
55
- "additionalProperties": false
56
- }