@shakerquiz/utilities 1.0.0 → 2.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 (98) hide show
  1. package/dprint.json +3 -8
  2. package/jsconfig.json +13 -6
  3. package/package.json +12 -9
  4. package/source/enumerations/core/features.d.ts +40 -0
  5. package/source/enumerations/core/features.js +205 -0
  6. package/source/enumerations/core/kinds.d.ts +1 -0
  7. package/source/enumerations/core/kinds.js +4 -0
  8. package/source/enumerations/core/methods.d.ts +8 -0
  9. package/source/enumerations/core/methods.js +25 -0
  10. package/source/enumerations/core/networks.d.ts +1 -0
  11. package/source/enumerations/core/networks.js +4 -0
  12. package/source/enumerations/core/runtimes.d.ts +1 -0
  13. package/source/enumerations/core/runtimes.js +4 -0
  14. package/source/enumerations/core/scopes.d.ts +5 -0
  15. package/source/enumerations/core/scopes.js +27 -0
  16. package/source/enumerations/entities/city-affilations.d.ts +1 -0
  17. package/source/enumerations/entities/city-affilations.js +4 -0
  18. package/source/enumerations/entities/game-statuses.d.ts +1 -0
  19. package/source/enumerations/entities/game-statuses.js +11 -0
  20. package/source/enumerations/entities/registration-attributes.d.ts +2 -0
  21. package/source/enumerations/entities/registration-attributes.js +57 -0
  22. package/source/enumerations/entities/registration-channels.d.ts +1 -0
  23. package/source/enumerations/entities/registration-channels.js +5 -0
  24. package/source/enumerations/entities/registration-lineups.d.ts +5 -0
  25. package/source/enumerations/entities/registration-lineups.js +43 -0
  26. package/source/enumerations/entities/registration-mailings.d.ts +1 -0
  27. package/source/enumerations/entities/registration-mailings.js +6 -0
  28. package/source/enumerations/entities/registration-statuses.d.ts +5 -0
  29. package/source/enumerations/entities/registration-statuses.js +54 -0
  30. package/source/enumerations/entities/roles.d.ts +1 -0
  31. package/source/enumerations/entities/roles.js +5 -0
  32. package/source/enumerations/entities/venue-statuses.d.ts +1 -0
  33. package/source/enumerations/entities/venue-statuses.js +4 -0
  34. package/source/enumerations/misc/constants.d.ts +3 -0
  35. package/source/enumerations/{constants.js → misc/constants.js} +2 -2
  36. package/source/enumerations/misc/cookies.d.ts +5 -0
  37. package/source/enumerations/{cookies.js → misc/cookies.js} +2 -2
  38. package/source/enumerations/misc/icons.d.ts +1 -0
  39. package/source/enumerations/misc/icons.js +326 -0
  40. package/source/enumerations/misc/phases.d.ts +1 -0
  41. package/source/enumerations/misc/phases.js +7 -0
  42. package/source/enumerations/misc/regexps.d.ts +5 -0
  43. package/source/enumerations/{regexps.js → misc/regexps.js} +2 -2
  44. package/source/functions/tag.d.ts +1 -0
  45. package/source/functions/tag.js +5 -0
  46. package/source/index.d.ts +26 -14
  47. package/source/index.js +24 -11
  48. package/source/misc.d.ts +79 -0
  49. package/source/schemas/PATCH/Game/admin/schema.json +34 -0
  50. package/source/schemas/PATCH/Game/default/schema.json +6 -0
  51. package/source/schemas/PATCH/Game/organizer/schema.json +34 -0
  52. package/source/schemas/PATCH/Registration/admin/schema.json +6 -0
  53. package/source/schemas/PATCH/Registration/default/schema.json +104 -0
  54. package/source/schemas/PATCH/Registration/organizer/schema.json +43 -0
  55. package/source/schemas/PATCH/Venue/admin/schema.json +40 -0
  56. package/source/schemas/PATCH/Venue/default/schema.json +6 -0
  57. package/source/schemas/PATCH/Venue/organizer/schema.json +43 -0
  58. package/source/schemas/POST/Game/admin/schema.json +27 -0
  59. package/source/schemas/POST/Game/default/schema.json +27 -0
  60. package/source/schemas/POST/Game/organizer/schema.json +27 -0
  61. package/source/schemas/POST/Mailing/admin/schema.json +6 -0
  62. package/source/schemas/POST/Mailing/default/schema.json +6 -0
  63. package/source/schemas/POST/Mailing/organizer/schema.json +12 -0
  64. package/source/schemas/POST/Registration/admin/schema.json +6 -0
  65. package/source/schemas/POST/Registration/default/schema.json +125 -0
  66. package/source/schemas/POST/Registration/organizer/schema.json +6 -0
  67. package/source/schemas/POST/Venue/admin/schema.json +6 -0
  68. package/source/schemas/POST/Venue/default/schema.json +6 -0
  69. package/source/schemas/POST/Venue/organizer/schema.json +49 -0
  70. package/source/schemas/game.schema.json +93 -0
  71. package/source/schemas/registration.schema.json +123 -0
  72. package/source/schemas/theme.schema.json +48 -0
  73. package/source/schemas/venue.schema.json +56 -0
  74. package/source/scope.d.ts +874 -0
  75. package/source/server.d.ts +5 -0
  76. package/source/tables.d.ts +187 -0
  77. package/source/enumerations/constants.d.ts +0 -3
  78. package/source/enumerations/cookies.d.ts +0 -5
  79. package/source/enumerations/features.d.ts +0 -58
  80. package/source/enumerations/features.js +0 -49
  81. package/source/enumerations/game-statuses.d.ts +0 -39
  82. package/source/enumerations/game-statuses.js +0 -39
  83. package/source/enumerations/kinds.d.ts +0 -4
  84. package/source/enumerations/kinds.js +0 -4
  85. package/source/enumerations/methods.d.ts +0 -7
  86. package/source/enumerations/methods.js +0 -7
  87. package/source/enumerations/networks.d.ts +0 -4
  88. package/source/enumerations/networks.js +0 -4
  89. package/source/enumerations/phases.d.ts +0 -7
  90. package/source/enumerations/phases.js +0 -7
  91. package/source/enumerations/regexps.d.ts +0 -4
  92. package/source/enumerations/roles.d.ts +0 -5
  93. package/source/enumerations/roles.js +0 -5
  94. package/source/functions/request.d.ts +0 -131
  95. package/source/functions/request.js +0 -202
  96. package/source/globals.d.ts +0 -14
  97. package/source/results.d.ts +0 -137
  98. package/source/rows.d.ts +0 -533
@@ -0,0 +1,104 @@
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
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "people_count": {
5
+ "type": "integer"
6
+ },
7
+ "human_name": {
8
+ "type": "string"
9
+ },
10
+ "is_alone": {
11
+ "type": "boolean"
12
+ },
13
+ "is_canceled": {
14
+ "type": "boolean"
15
+ },
16
+ "is_confirm": {
17
+ "type": "boolean"
18
+ },
19
+ "is_reserve": {
20
+ "type": "boolean"
21
+ },
22
+ "team_name": {
23
+ "type": "string"
24
+ },
25
+ "status": {
26
+ "type": "string",
27
+ "enum": [
28
+ "Created",
29
+ "Confirmed",
30
+ "Cancelled"
31
+ ]
32
+ },
33
+ "lineup": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ }
40
+ },
41
+ "required": [],
42
+ "additionalProperties": false
43
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "street": {
8
+ "type": "string"
9
+ },
10
+ "house_number": {
11
+ "type": "string"
12
+ },
13
+ "people_capacity": {
14
+ "type": "integer"
15
+ },
16
+ "team_capacity": {
17
+ "type": "integer"
18
+ },
19
+ "is_adult": {
20
+ "type": "boolean"
21
+ },
22
+ "game_time": {
23
+ "type": "string"
24
+ },
25
+ "location_info": {
26
+ "type": [
27
+ "string",
28
+ "null"
29
+ ]
30
+ },
31
+ "status": {
32
+ "type": "string"
33
+ },
34
+ "href": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": [],
39
+ "additionalProperties": false
40
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "street": {
8
+ "type": "string"
9
+ },
10
+ "house_number": {
11
+ "type": "string"
12
+ },
13
+ "people_capacity": {
14
+ "type": "integer"
15
+ },
16
+ "team_capacity": {
17
+ "type": "integer"
18
+ },
19
+ "is_adult": {
20
+ "type": "boolean"
21
+ },
22
+ "game_time": {
23
+ "type": "string"
24
+ },
25
+ "location_info": {
26
+ "type": [
27
+ "string",
28
+ "null"
29
+ ]
30
+ },
31
+ "status": {
32
+ "type": "string"
33
+ },
34
+ "href": {
35
+ "type": [
36
+ "string",
37
+ "null"
38
+ ]
39
+ }
40
+ },
41
+ "required": [],
42
+ "additionalProperties": false
43
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "text": {
5
+ "type": "string"
6
+ }
7
+ },
8
+ "required": [
9
+ "text"
10
+ ],
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "ads_from": {
5
+ "type": "string"
6
+ },
7
+ "channel": {
8
+ "type": "string"
9
+ },
10
+ "confirmed_channel": {
11
+ "type": "string"
12
+ },
13
+ "comment": {
14
+ "type": "string"
15
+ },
16
+ "email": {
17
+ "type": "string"
18
+ },
19
+ "event_id": {
20
+ "type": "string",
21
+ "format": "uuid"
22
+ },
23
+ "human_name": {
24
+ "type": "string"
25
+ },
26
+ "is_alone": {
27
+ "type": "boolean"
28
+ },
29
+ "is_birthday": {
30
+ "type": "boolean"
31
+ },
32
+ "is_extensible": {
33
+ "type": "boolean"
34
+ },
35
+ "is_first": {
36
+ "type": "boolean"
37
+ },
38
+ "people_count": {
39
+ "type": "integer"
40
+ },
41
+ "phone": {
42
+ "type": "string"
43
+ },
44
+ "promocode": {
45
+ "type": "string"
46
+ },
47
+ "team_name": {
48
+ "type": "string"
49
+ },
50
+ "telegramBot": {
51
+ "type": "string"
52
+ },
53
+ "utm_campaign": {
54
+ "type": "string"
55
+ },
56
+ "utm_content": {
57
+ "type": "string"
58
+ },
59
+ "utm_medium": {
60
+ "type": "string"
61
+ },
62
+ "utm_source": {
63
+ "type": "string"
64
+ },
65
+ "utm_term": {
66
+ "type": "string"
67
+ },
68
+ "vkontakte": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "event_id",
74
+ "human_name",
75
+ "is_alone",
76
+ "is_birthday",
77
+ "is_extensible",
78
+ "is_first",
79
+ "people_count",
80
+ "team_name",
81
+ "channel",
82
+ "email"
83
+ ],
84
+ "additionalProperties": false,
85
+ "allOf": [
86
+ {
87
+ "if": {
88
+ "properties": {
89
+ "channel": {
90
+ "const": "telegramBot"
91
+ }
92
+ },
93
+ "required": [
94
+ "channel"
95
+ ]
96
+ },
97
+ "then": {
98
+ "required": [
99
+ "channel",
100
+ "confirmed_channel",
101
+ "telegramBot"
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "if": {
107
+ "properties": {
108
+ "channel": {
109
+ "const": "vkontakte"
110
+ }
111
+ },
112
+ "required": [
113
+ "channel"
114
+ ]
115
+ },
116
+ "then": {
117
+ "required": [
118
+ "channel",
119
+ "confirmed_channel",
120
+ "vkontakte"
121
+ ]
122
+ }
123
+ }
124
+ ]
125
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {},
4
+ "required": [],
5
+ "additionalProperties": false
6
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "street": {
8
+ "type": "string"
9
+ },
10
+ "house_number": {
11
+ "type": "string"
12
+ },
13
+ "people_capacity": {
14
+ "type": "integer"
15
+ },
16
+ "team_capacity": {
17
+ "type": "integer"
18
+ },
19
+ "is_adult": {
20
+ "type": "boolean"
21
+ },
22
+ "game_time": {
23
+ "type": "string"
24
+ },
25
+ "city_id": {
26
+ "type": "string",
27
+ "format": "uuid"
28
+ },
29
+ "location_info": {
30
+ "type": "string"
31
+ },
32
+ "status": {
33
+ "type": "string"
34
+ },
35
+ "href": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "required": [
40
+ "name",
41
+ "street",
42
+ "house_number",
43
+ "people_capacity",
44
+ "team_capacity",
45
+ "game_time",
46
+ "city_id"
47
+ ],
48
+ "additionalProperties": false
49
+ }
@@ -0,0 +1,93 @@
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
+ }