@shakerquiz/contracts 0.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 (47) hide show
  1. package/dprint.json +24 -0
  2. package/generate.js +57 -0
  3. package/jsconfig.json +18 -0
  4. package/package.json +23 -0
  5. package/source/contracts/PATCH/city/admin.json +126 -0
  6. package/source/contracts/PATCH/city/currency/admin.json +173 -0
  7. package/source/contracts/PATCH/city/timezone/admin.json +501 -0
  8. package/source/contracts/PATCH/game/admin.json +30 -0
  9. package/source/contracts/PATCH/game/organizer.json +30 -0
  10. package/source/contracts/PATCH/games/admin.json +34 -0
  11. package/source/contracts/PATCH/games/organizer.json +34 -0
  12. package/source/contracts/PATCH/registration/Unknown.json +10 -0
  13. package/source/contracts/PATCH/registration/admin.json +43 -0
  14. package/source/contracts/PATCH/registration/cancellation/Unknown.json +12 -0
  15. package/source/contracts/PATCH/registration/channel/Unknown.json +22 -0
  16. package/source/contracts/PATCH/registration/confirmation/Unknown.json +12 -0
  17. package/source/contracts/PATCH/registration/organizer.json +43 -0
  18. package/source/contracts/PATCH/theme/admin.json +19 -0
  19. package/source/contracts/PATCH/user/admin.json +30 -0
  20. package/source/contracts/PATCH/user/cities/admin.json +17 -0
  21. package/source/contracts/PATCH/user/password/admin.json +12 -0
  22. package/source/contracts/PATCH/user/role/admin.json +13 -0
  23. package/source/contracts/PATCH/users/cities/admin.json +19 -0
  24. package/source/contracts/PATCH/users/role/admin.json +19 -0
  25. package/source/contracts/PATCH/venue/admin.json +44 -0
  26. package/source/contracts/PATCH/venue/organizer.json +44 -0
  27. package/source/contracts/POST/checkin/Unknown.json +16 -0
  28. package/source/contracts/POST/city/admin.json +696 -0
  29. package/source/contracts/POST/cover/admin.json +24 -0
  30. package/source/contracts/POST/game/admin.json +27 -0
  31. package/source/contracts/POST/game/organizer.json +27 -0
  32. package/source/contracts/POST/game/registrations/export/admin.json +17 -0
  33. package/source/contracts/POST/game/registrations/export/organizer.json +17 -0
  34. package/source/contracts/POST/registration/Unknown.json +125 -0
  35. package/source/contracts/POST/registration/mailing/admin.json +16 -0
  36. package/source/contracts/POST/registration/mailing/organizer.json +16 -0
  37. package/source/contracts/POST/registrations/export/admin.json +17 -0
  38. package/source/contracts/POST/registrations/export/organizer.json +17 -0
  39. package/source/contracts/POST/theme/admin.json +24 -0
  40. package/source/contracts/POST/user/admin.json +12 -0
  41. package/source/contracts/POST/user/cities/admin.json +17 -0
  42. package/source/contracts/POST/user/password/admin.json +12 -0
  43. package/source/contracts/POST/user/role/admin.json +13 -0
  44. package/source/contracts/POST/venue/admin.json +38 -0
  45. package/source/contracts/POST/venue/organizer.json +38 -0
  46. package/source/contracts/PUT/cover/admin.json +13 -0
  47. package/source/index.js +83 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "channel": {
5
+ "type": "string"
6
+ },
7
+ "confirmed_channel": {
8
+ "type": "string"
9
+ },
10
+ "email": {
11
+ "type": "string"
12
+ },
13
+ "vkontakte": {
14
+ "type": "string"
15
+ },
16
+ "telegramBot": {
17
+ "type": "string"
18
+ }
19
+ },
20
+ "required": [],
21
+ "additionalProperties": false
22
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "is_confirm": {
5
+ "type": "boolean"
6
+ }
7
+ },
8
+ "required": [
9
+ "is_confirm"
10
+ ],
11
+ "additionalProperties": false
12
+ }
@@ -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,19 @@
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
+ "additionalProperties": false
19
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "email": {
5
+ "type": "string"
6
+ },
7
+ "phone": {
8
+ "type": [
9
+ "string",
10
+ "null"
11
+ ]
12
+ },
13
+ "first_name": {
14
+ "type": [
15
+ "string",
16
+ "null"
17
+ ]
18
+ },
19
+ "last_name": {
20
+ "type": [
21
+ "string",
22
+ "null"
23
+ ]
24
+ }
25
+ },
26
+ "required": [
27
+ "email"
28
+ ],
29
+ "additionalProperties": false
30
+ }
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "password": {
5
+ "type": "string"
6
+ }
7
+ },
8
+ "required": [
9
+ "password"
10
+ ],
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid"
9
+ },
10
+ "cities": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {}
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string"
8
+ },
9
+ "role": {
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string"
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,44 @@
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
+ "format": "iso-time"
25
+ },
26
+ "location_info": {
27
+ "type": [
28
+ "string",
29
+ "null"
30
+ ]
31
+ },
32
+ "status": {
33
+ "type": "string"
34
+ },
35
+ "href": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ]
40
+ }
41
+ },
42
+ "required": [],
43
+ "additionalProperties": false
44
+ }
@@ -0,0 +1,44 @@
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
+ "format": "iso-time"
25
+ },
26
+ "location_info": {
27
+ "type": [
28
+ "string",
29
+ "null"
30
+ ]
31
+ },
32
+ "status": {
33
+ "type": "string"
34
+ },
35
+ "href": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ]
40
+ }
41
+ },
42
+ "required": [],
43
+ "additionalProperties": false
44
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "email": {
5
+ "type": "string"
6
+ },
7
+ "password": {
8
+ "type": "string"
9
+ }
10
+ },
11
+ "required": [
12
+ "email",
13
+ "password"
14
+ ],
15
+ "additionalProperties": false
16
+ }