@shakerquiz/utilities 3.0.0 → 4.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 (116) hide show
  1. package/.github/workflows/publish.yml +31 -0
  2. package/package.json +5 -5
  3. package/scripts/route-cardinality.js +23 -0
  4. package/scripts/route-parameter.js +29 -0
  5. package/scripts/route-pathname.js +37 -0
  6. package/scripts/route-relation.js +26 -0
  7. package/scripts/route-service.js +25 -0
  8. package/scripts/templates/route-cardinality.js +5 -0
  9. package/scripts/templates/route-parameter.js +5 -0
  10. package/scripts/templates/route-pathname.js +7 -0
  11. package/scripts/templates/route-relation.js +5 -0
  12. package/scripts/templates/route-service.js +7 -0
  13. package/source/entities/blend.js +5 -0
  14. package/source/entities/cardinality.js +4 -0
  15. package/source/entities/category.js +4 -0
  16. package/source/entities/city-affilation.js +10 -0
  17. package/source/entities/city-chatapp-version.js +9 -0
  18. package/source/{enumerations/misc → entities}/constants.js +1 -1
  19. package/source/entities/display.js +4 -0
  20. package/source/entities/game-status.js +98 -0
  21. package/source/entities/gender.js +13 -0
  22. package/source/entities/icon.js +654 -0
  23. package/source/entities/key.js +41 -0
  24. package/source/{enumerations/core/methods.js → entities/method.js} +10 -4
  25. package/source/entities/mode.js +9 -0
  26. package/source/entities/network.js +9 -0
  27. package/source/entities/numerosity.js +5 -0
  28. package/source/entities/pattern.js +7 -0
  29. package/source/entities/phase.js +15 -0
  30. package/source/entities/quantifier.js +41 -0
  31. package/source/entities/registration-attribute.js +61 -0
  32. package/source/entities/registration-channel.js +11 -0
  33. package/source/entities/registration-lineup.js +14 -0
  34. package/source/entities/registration-mailing.js +20 -0
  35. package/source/entities/registration-status.js +19 -0
  36. package/source/entities/role.js +16 -0
  37. package/source/entities/route-cardinality.js +149 -0
  38. package/source/entities/route-parameter.js +149 -0
  39. package/source/entities/route-pathname.js +223 -0
  40. package/source/entities/route-relation.js +149 -0
  41. package/source/entities/route-service.js +179 -0
  42. package/source/entities/route.js +82 -0
  43. package/source/entities/runtime.js +6 -0
  44. package/source/entities/segment.js +255 -0
  45. package/source/entities/service-runtime.js +22 -0
  46. package/source/entities/service.js +22 -0
  47. package/source/entities/theme-status.js +9 -0
  48. package/source/entities/venue-audience.js +9 -0
  49. package/source/entities/venue-status.js +9 -0
  50. package/source/helpers/access.js +161 -0
  51. package/source/helpers/hydrate-route-pathname.js +29 -0
  52. package/source/helpers/tag.js +35 -0
  53. package/source/index.js +40 -34
  54. package/source/enumerations/core/features.js +0 -56
  55. package/source/enumerations/core/networks.js +0 -6
  56. package/source/enumerations/core/runtimes.js +0 -6
  57. package/source/enumerations/entities/affilation.js +0 -91
  58. package/source/enumerations/entities/cities-mode.js +0 -49
  59. package/source/enumerations/entities/city/timezone-mode.js +0 -44
  60. package/source/enumerations/entities/city/venues-mode.js +0 -60
  61. package/source/enumerations/entities/game-status.js +0 -130
  62. package/source/enumerations/entities/password-mode.js +0 -40
  63. package/source/enumerations/entities/registration-attribute.js +0 -83
  64. package/source/enumerations/entities/registration-channel.js +0 -26
  65. package/source/enumerations/entities/registration-lineup.js +0 -75
  66. package/source/enumerations/entities/registration-mailing.js +0 -24
  67. package/source/enumerations/entities/registration-status.js +0 -89
  68. package/source/enumerations/entities/role-mode.js +0 -40
  69. package/source/enumerations/entities/role.js +0 -82
  70. package/source/enumerations/entities/venue/audience.js +0 -100
  71. package/source/enumerations/entities/venue/city-mode.js +0 -44
  72. package/source/enumerations/entities/venue/status.js +0 -53
  73. package/source/enumerations/entities/version.js +0 -76
  74. package/source/enumerations/misc/icons.js +0 -655
  75. package/source/enumerations/misc/keys.js +0 -15
  76. package/source/enumerations/misc/phases.js +0 -42
  77. package/source/enumerations/misc/regexps.js +0 -5
  78. package/source/enumerations/misc/routes.js +0 -610
  79. package/source/functions/tag.d.ts +0 -1
  80. package/source/functions/tag.js +0 -5
  81. package/source/schemas/PATCH/city/admin.json +0 -126
  82. package/source/schemas/PATCH/city/currency/admin.json +0 -173
  83. package/source/schemas/PATCH/city/timezone/admin.json +0 -501
  84. package/source/schemas/PATCH/game/admin.json +0 -30
  85. package/source/schemas/PATCH/game/organizer.json +0 -30
  86. package/source/schemas/PATCH/registration/admin.json +0 -43
  87. package/source/schemas/PATCH/registration/cancellation/default.json +0 -12
  88. package/source/schemas/PATCH/registration/channel/default.json +0 -22
  89. package/source/schemas/PATCH/registration/confirmation/default.json +0 -12
  90. package/source/schemas/PATCH/registration/default.json +0 -10
  91. package/source/schemas/PATCH/registration/organizer.json +0 -43
  92. package/source/schemas/PATCH/theme/admin.json +0 -19
  93. package/source/schemas/PATCH/user/admin.json +0 -30
  94. package/source/schemas/PATCH/user/cities/admin.json +0 -17
  95. package/source/schemas/PATCH/user/password/admin.json +0 -12
  96. package/source/schemas/PATCH/user/role/admin.json +0 -13
  97. package/source/schemas/PATCH/venue/admin.json +0 -44
  98. package/source/schemas/PATCH/venue/organizer.json +0 -44
  99. package/source/schemas/POST/checkin/default.json +0 -16
  100. package/source/schemas/POST/city/admin.json +0 -696
  101. package/source/schemas/POST/game/admin.json +0 -27
  102. package/source/schemas/POST/game/organizer.json +0 -27
  103. package/source/schemas/POST/game/registrations/export/admin.json +0 -17
  104. package/source/schemas/POST/game/registrations/export/organizer.json +0 -17
  105. package/source/schemas/POST/registration/default.json +0 -125
  106. package/source/schemas/POST/registration/mailing/admin.json +0 -16
  107. package/source/schemas/POST/registration/mailing/organizer.json +0 -16
  108. package/source/schemas/POST/registrations/export/admin.json +0 -17
  109. package/source/schemas/POST/registrations/export/organizer.json +0 -17
  110. package/source/schemas/POST/theme/admin.json +0 -24
  111. package/source/schemas/POST/user/admin.json +0 -12
  112. package/source/schemas/POST/user/cities/admin.json +0 -17
  113. package/source/schemas/POST/user/password/admin.json +0 -12
  114. package/source/schemas/POST/user/role/admin.json +0 -13
  115. package/source/schemas/POST/venue/admin.json +0 -38
  116. package/source/schemas/POST/venue/organizer.json +0 -38
@@ -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,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,17 +0,0 @@
1
- {
2
- "type": "array",
3
- "items": {
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "format": "uuid"
9
- }
10
- },
11
- "required": [
12
- "id"
13
- ],
14
- "additionalProperties": false
15
- },
16
- "uniqueItems": true
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "type": "array",
3
- "items": {
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "format": "uuid"
9
- }
10
- },
11
- "required": [
12
- "id"
13
- ],
14
- "additionalProperties": false
15
- },
16
- "uniqueItems": true
17
- }
@@ -1,125 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "template": {
5
- "type": "string"
6
- },
7
- "text": {
8
- "type": "string"
9
- }
10
- },
11
- "required": [
12
- "template",
13
- "text"
14
- ],
15
- "additionalProperties": false
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "template": {
5
- "type": "string"
6
- },
7
- "text": {
8
- "type": "string"
9
- }
10
- },
11
- "required": [
12
- "template",
13
- "text"
14
- ],
15
- "additionalProperties": false
16
- }
@@ -1,17 +0,0 @@
1
- {
2
- "type": "array",
3
- "items": {
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "format": "uuid"
9
- }
10
- },
11
- "required": [
12
- "id"
13
- ],
14
- "additionalProperties": false
15
- },
16
- "uniqueItems": true
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "type": "array",
3
- "items": {
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "format": "uuid"
9
- }
10
- },
11
- "required": [
12
- "id"
13
- ],
14
- "additionalProperties": false
15
- },
16
- "uniqueItems": true
17
- }
@@ -1,24 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "name": {
5
- "type": "string"
6
- },
7
- "short_description": {
8
- "type": "string"
9
- },
10
- "description": {
11
- "type": "string"
12
- },
13
- "alias": {
14
- "type": "string"
15
- }
16
- },
17
- "required": [
18
- "name",
19
- "short_description",
20
- "description",
21
- "alias"
22
- ],
23
- "additionalProperties": false
24
- }
@@ -1,12 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "email": {
5
- "type": "string"
6
- }
7
- },
8
- "required": [
9
- "email"
10
- ],
11
- "additionalProperties": false
12
- }
@@ -1,17 +0,0 @@
1
- {
2
- "type": "array",
3
- "items": {
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "format": "uuid"
9
- }
10
- },
11
- "required": [
12
- "id"
13
- ],
14
- "additionalProperties": false
15
- },
16
- "uniqueItems": true
17
- }
@@ -1,12 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "password": {
5
- "type": "string"
6
- }
7
- },
8
- "required": [
9
- "password"
10
- ],
11
- "additionalProperties": false
12
- }
@@ -1,13 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "id": {
5
- "type": "string",
6
- "format": "uuid"
7
- }
8
- },
9
- "required": [
10
- "id"
11
- ],
12
- "additionalProperties": false
13
- }
@@ -1,38 +0,0 @@
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
- "game_time": {
20
- "type": "string",
21
- "format": "iso-time"
22
- },
23
- "city_id": {
24
- "type": "string",
25
- "format": "uuid"
26
- }
27
- },
28
- "required": [
29
- "name",
30
- "street",
31
- "house_number",
32
- "people_capacity",
33
- "team_capacity",
34
- "game_time",
35
- "city_id"
36
- ],
37
- "additionalProperties": false
38
- }
@@ -1,38 +0,0 @@
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
- "game_time": {
20
- "type": "string",
21
- "format": "iso-time"
22
- },
23
- "city_id": {
24
- "type": "string",
25
- "format": "uuid"
26
- }
27
- },
28
- "required": [
29
- "name",
30
- "street",
31
- "house_number",
32
- "people_capacity",
33
- "team_capacity",
34
- "game_time",
35
- "city_id"
36
- ],
37
- "additionalProperties": false
38
- }