@shakerquiz/contracts 0.0.122 → 0.0.124

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 (28) hide show
  1. package/package.json +1 -1
  2. package/source/contracts/PATCH/city/admin.json +662 -0
  3. package/source/contracts/PATCH/game/Service.json +38 -0
  4. package/source/contracts/PATCH/game/admin.json +14 -0
  5. package/source/contracts/PATCH/game/organizer.json +14 -0
  6. package/source/contracts/PATCH/games/status/Service.json +33 -0
  7. package/source/contracts/POST/{games/search/Service.json → cities/search/Unknown.json} +18 -22
  8. package/source/contracts/POST/{themes/search/Service.json → cities/search/admin.json} +5 -9
  9. package/source/contracts/POST/games/search/Unknown.json +18 -12
  10. package/source/contracts/POST/registrations/search/{admin.json → Unknown.json} +15 -18
  11. package/source/contracts/POST/{themes → roles}/search/admin.json +5 -8
  12. package/source/contracts/POST/{games/search/organizer.json → themes/search/Unknown.json} +21 -19
  13. package/source/contracts/POST/{venues → users}/search/admin.json +8 -15
  14. package/source/contracts/POST/{registrations/search/organizer.json → venues/search/Unknown.json} +23 -27
  15. package/source/index.js +12 -68
  16. package/source/contracts/PATCH/city/country/admin.json +0 -286
  17. package/source/contracts/PATCH/city/currency/admin.json +0 -182
  18. package/source/contracts/PATCH/city/timezone/admin.json +0 -510
  19. package/source/contracts/PATCH/city/vk_group_token/admin.json +0 -21
  20. package/source/contracts/PATCH/game/status/Service.json +0 -21
  21. package/source/contracts/PATCH/game/status/admin.json +0 -28
  22. package/source/contracts/PATCH/game/status/organizer.json +0 -28
  23. package/source/contracts/POST/city/vk_group_token/admin.json +0 -21
  24. package/source/contracts/POST/games/search/admin.json +0 -55
  25. package/source/contracts/POST/registrations/search/Service.json +0 -70
  26. package/source/contracts/POST/themes/search/organizer.json +0 -30
  27. package/source/contracts/POST/venues/search/Service.json +0 -42
  28. package/source/contracts/POST/venues/search/organizer.json +0 -42
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "number": {
6
+ "type": "string"
7
+ },
8
+ "event_time": {
9
+ "type": "string",
10
+ "format": "iso-date-time"
11
+ },
12
+ "price": {
13
+ "type": "number"
14
+ },
15
+ "min_members_count": {
16
+ "type": "integer"
17
+ },
18
+ "max_members_count": {
19
+ "type": "integer"
20
+ },
21
+ "status": {
22
+ "type": "string",
23
+ "enum": [
24
+ "APPROVED",
25
+ "ARCHIVE",
26
+ "CLOSED",
27
+ "FINISHED",
28
+ "FORINVITES",
29
+ "IS_RESERVE",
30
+ "MODERATION",
31
+ "PUBLISHED",
32
+ "REJECTED"
33
+ ]
34
+ }
35
+ },
36
+ "required": [],
37
+ "additionalProperties": false
38
+ }
@@ -17,6 +17,20 @@
17
17
  },
18
18
  "max_members_count": {
19
19
  "type": "integer"
20
+ },
21
+ "status": {
22
+ "type": "string",
23
+ "enum": [
24
+ "APPROVED",
25
+ "ARCHIVE",
26
+ "CLOSED",
27
+ "FINISHED",
28
+ "FORINVITES",
29
+ "IS_RESERVE",
30
+ "MODERATION",
31
+ "PUBLISHED",
32
+ "REJECTED"
33
+ ]
20
34
  }
21
35
  },
22
36
  "required": [],
@@ -17,6 +17,20 @@
17
17
  },
18
18
  "max_members_count": {
19
19
  "type": "integer"
20
+ },
21
+ "status": {
22
+ "type": "string",
23
+ "enum": [
24
+ "APPROVED",
25
+ "ARCHIVE",
26
+ "CLOSED",
27
+ "FINISHED",
28
+ "FORINVITES",
29
+ "IS_RESERVE",
30
+ "MODERATION",
31
+ "PUBLISHED",
32
+ "REJECTED"
33
+ ]
20
34
  }
21
35
  },
22
36
  "required": [],
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "array",
4
+ "items": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "status": {
12
+ "type": "string",
13
+ "enum": [
14
+ "APPROVED",
15
+ "ARCHIVE",
16
+ "CLOSED",
17
+ "FINISHED",
18
+ "FORINVITES",
19
+ "IS_RESERVE",
20
+ "MODERATION",
21
+ "PUBLISHED",
22
+ "REJECTED"
23
+ ]
24
+ }
25
+ },
26
+ "required": [
27
+ "id",
28
+ "status"
29
+ ],
30
+ "additionalProperties": false
31
+ },
32
+ "uniqueItems": true
33
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "cities": {
5
+ "user": {
6
6
  "type": "array",
7
7
  "items": {
8
8
  "type": "string",
@@ -10,15 +10,14 @@
10
10
  },
11
11
  "uniqueItems": true
12
12
  },
13
- "venues": {
13
+ "city": {
14
14
  "type": "array",
15
15
  "items": {
16
- "type": "string",
17
- "format": "uuid"
16
+ "type": "string"
18
17
  },
19
18
  "uniqueItems": true
20
19
  },
21
- "ids": {
20
+ "venue": {
22
21
  "type": "array",
23
22
  "items": {
24
23
  "type": "string",
@@ -26,30 +25,27 @@
26
25
  },
27
26
  "uniqueItems": true
28
27
  },
29
- "statuses": {
28
+ "game": {
30
29
  "type": "array",
31
30
  "items": {
32
- "type": "string",
33
- "enum": [
34
- "APPROVED",
35
- "ARCHIVE",
36
- "CLOSED",
37
- "FINISHED",
38
- "FORINVITES",
39
- "IS_RESERVE",
40
- "MODERATION",
41
- "PUBLISHED",
42
- "REJECTED"
43
- ]
31
+ "type": "string"
32
+ },
33
+ "uniqueItems": true
34
+ },
35
+ "registration": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
44
39
  },
45
40
  "uniqueItems": true
46
41
  }
47
42
  },
48
43
  "required": [
49
- "cities",
50
- "venues",
51
- "ids",
52
- "statuses"
44
+ "user",
45
+ "city",
46
+ "venue",
47
+ "game",
48
+ "registration"
53
49
  ],
54
50
  "additionalProperties": false
55
51
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "ids": {
5
+ "user": {
6
6
  "type": "array",
7
7
  "items": {
8
8
  "type": "string",
@@ -10,21 +10,17 @@
10
10
  },
11
11
  "uniqueItems": true
12
12
  },
13
- "statuses": {
13
+ "city": {
14
14
  "type": "array",
15
15
  "items": {
16
- "type": "string",
17
- "enum": [
18
- "Active",
19
- "Archive"
20
- ]
16
+ "type": "string"
21
17
  },
22
18
  "uniqueItems": true
23
19
  }
24
20
  },
25
21
  "required": [
26
- "ids",
27
- "statuses"
22
+ "user",
23
+ "city"
28
24
  ],
29
25
  "additionalProperties": false
30
26
  }
@@ -2,15 +2,14 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "cities": {
5
+ "city": {
6
6
  "type": "array",
7
7
  "items": {
8
- "type": "string",
9
- "format": "uuid"
8
+ "type": "string"
10
9
  },
11
10
  "uniqueItems": true
12
11
  },
13
- "venues": {
12
+ "venue": {
14
13
  "type": "array",
15
14
  "items": {
16
15
  "type": "string",
@@ -18,15 +17,14 @@
18
17
  },
19
18
  "uniqueItems": true
20
19
  },
21
- "ids": {
20
+ "game": {
22
21
  "type": "array",
23
22
  "items": {
24
- "type": "string",
25
- "format": "uuid"
23
+ "type": "string"
26
24
  },
27
25
  "uniqueItems": true
28
26
  },
29
- "statuses": {
27
+ "game/status": {
30
28
  "type": "array",
31
29
  "items": {
32
30
  "type": "string",
@@ -43,13 +41,21 @@
43
41
  ]
44
42
  },
45
43
  "uniqueItems": true
44
+ },
45
+ "registration": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "uniqueItems": true
46
51
  }
47
52
  },
48
53
  "required": [
49
- "cities",
50
- "venues",
51
- "ids",
52
- "statuses"
54
+ "city",
55
+ "venue",
56
+ "game",
57
+ "game/status",
58
+ "registration"
53
59
  ],
54
60
  "additionalProperties": false
55
61
  }
@@ -2,15 +2,14 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "cities": {
5
+ "city": {
6
6
  "type": "array",
7
7
  "items": {
8
- "type": "string",
9
- "format": "uuid"
8
+ "type": "string"
10
9
  },
11
10
  "uniqueItems": true
12
11
  },
13
- "venues": {
12
+ "venue": {
14
13
  "type": "array",
15
14
  "items": {
16
15
  "type": "string",
@@ -18,23 +17,21 @@
18
17
  },
19
18
  "uniqueItems": true
20
19
  },
21
- "games": {
20
+ "game": {
22
21
  "type": "array",
23
22
  "items": {
24
- "type": "string",
25
- "format": "uuid"
23
+ "type": "string"
26
24
  },
27
25
  "uniqueItems": true
28
26
  },
29
- "ids": {
27
+ "registration": {
30
28
  "type": "array",
31
29
  "items": {
32
- "type": "string",
33
- "format": "uuid"
30
+ "type": "string"
34
31
  },
35
32
  "uniqueItems": true
36
33
  },
37
- "statuses": {
34
+ "registration/status": {
38
35
  "type": "array",
39
36
  "items": {
40
37
  "type": "string",
@@ -46,7 +43,7 @@
46
43
  },
47
44
  "uniqueItems": true
48
45
  },
49
- "lineups": {
46
+ "registration/lineup": {
50
47
  "type": "array",
51
48
  "items": {
52
49
  "type": "string",
@@ -59,12 +56,12 @@
59
56
  }
60
57
  },
61
58
  "required": [
62
- "cities",
63
- "venues",
64
- "games",
65
- "ids",
66
- "statuses",
67
- "lineups"
59
+ "city",
60
+ "venue",
61
+ "game",
62
+ "registration",
63
+ "registration/status",
64
+ "registration/lineup"
68
65
  ],
69
66
  "additionalProperties": false
70
67
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "ids": {
5
+ "user": {
6
6
  "type": "array",
7
7
  "items": {
8
8
  "type": "string",
@@ -10,21 +10,18 @@
10
10
  },
11
11
  "uniqueItems": true
12
12
  },
13
- "statuses": {
13
+ "role": {
14
14
  "type": "array",
15
15
  "items": {
16
16
  "type": "string",
17
- "enum": [
18
- "Active",
19
- "Archive"
20
- ]
17
+ "format": "uuid"
21
18
  },
22
19
  "uniqueItems": true
23
20
  }
24
21
  },
25
22
  "required": [
26
- "ids",
27
- "statuses"
23
+ "user",
24
+ "role"
28
25
  ],
29
26
  "additionalProperties": false
30
27
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "cities": {
5
+ "theme": {
6
6
  "type": "array",
7
7
  "items": {
8
8
  "type": "string",
@@ -10,7 +10,18 @@
10
10
  },
11
11
  "uniqueItems": true
12
12
  },
13
- "venues": {
13
+ "theme/status": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "enum": [
18
+ "Active",
19
+ "Archive"
20
+ ]
21
+ },
22
+ "uniqueItems": true
23
+ },
24
+ "cover": {
14
25
  "type": "array",
15
26
  "items": {
16
27
  "type": "string",
@@ -18,7 +29,7 @@
18
29
  },
19
30
  "uniqueItems": true
20
31
  },
21
- "ids": {
32
+ "game": {
22
33
  "type": "array",
23
34
  "items": {
24
35
  "type": "string",
@@ -26,30 +37,21 @@
26
37
  },
27
38
  "uniqueItems": true
28
39
  },
29
- "statuses": {
40
+ "registration": {
30
41
  "type": "array",
31
42
  "items": {
32
43
  "type": "string",
33
- "enum": [
34
- "APPROVED",
35
- "ARCHIVE",
36
- "CLOSED",
37
- "FINISHED",
38
- "FORINVITES",
39
- "IS_RESERVE",
40
- "MODERATION",
41
- "PUBLISHED",
42
- "REJECTED"
43
- ]
44
+ "format": "uuid"
44
45
  },
45
46
  "uniqueItems": true
46
47
  }
47
48
  },
48
49
  "required": [
49
- "cities",
50
- "venues",
51
- "ids",
52
- "statuses"
50
+ "theme",
51
+ "theme/status",
52
+ "cover",
53
+ "game",
54
+ "registration"
53
55
  ],
54
56
  "additionalProperties": false
55
57
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "ids": {
5
+ "user": {
6
6
  "type": "array",
7
7
  "items": {
8
8
  "type": "string",
@@ -10,33 +10,26 @@
10
10
  },
11
11
  "uniqueItems": true
12
12
  },
13
- "statuses": {
13
+ "role": {
14
14
  "type": "array",
15
15
  "items": {
16
16
  "type": "string",
17
- "enum": [
18
- "Active",
19
- "Archive"
20
- ]
17
+ "format": "uuid"
21
18
  },
22
19
  "uniqueItems": true
23
20
  },
24
- "audiences": {
21
+ "city": {
25
22
  "type": "array",
26
23
  "items": {
27
- "type": "string",
28
- "enum": [
29
- "Open",
30
- "Adults"
31
- ]
24
+ "type": "string"
32
25
  },
33
26
  "uniqueItems": true
34
27
  }
35
28
  },
36
29
  "required": [
37
- "ids",
38
- "statuses",
39
- "audiences"
30
+ "user",
31
+ "role",
32
+ "city"
40
33
  ],
41
34
  "additionalProperties": false
42
35
  }
@@ -2,15 +2,14 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "cities": {
5
+ "city": {
6
6
  "type": "array",
7
7
  "items": {
8
- "type": "string",
9
- "format": "uuid"
8
+ "type": "string"
10
9
  },
11
10
  "uniqueItems": true
12
11
  },
13
- "venues": {
12
+ "venue": {
14
13
  "type": "array",
15
14
  "items": {
16
15
  "type": "string",
@@ -18,53 +17,50 @@
18
17
  },
19
18
  "uniqueItems": true
20
19
  },
21
- "games": {
20
+ "venue/status": {
22
21
  "type": "array",
23
22
  "items": {
24
23
  "type": "string",
25
- "format": "uuid"
24
+ "enum": [
25
+ "Active",
26
+ "Archive"
27
+ ]
26
28
  },
27
29
  "uniqueItems": true
28
30
  },
29
- "ids": {
31
+ "venue/audience": {
30
32
  "type": "array",
31
33
  "items": {
32
34
  "type": "string",
33
- "format": "uuid"
35
+ "enum": [
36
+ "Open",
37
+ "Adults"
38
+ ]
34
39
  },
35
40
  "uniqueItems": true
36
41
  },
37
- "statuses": {
42
+ "game": {
38
43
  "type": "array",
39
44
  "items": {
40
- "type": "string",
41
- "enum": [
42
- "Created",
43
- "Confirmed",
44
- "Cancelled"
45
- ]
45
+ "type": "string"
46
46
  },
47
47
  "uniqueItems": true
48
48
  },
49
- "lineups": {
49
+ "registration": {
50
50
  "type": "array",
51
51
  "items": {
52
- "type": "string",
53
- "enum": [
54
- "Main",
55
- "Reserve"
56
- ]
52
+ "type": "string"
57
53
  },
58
54
  "uniqueItems": true
59
55
  }
60
56
  },
61
57
  "required": [
62
- "cities",
63
- "venues",
64
- "games",
65
- "ids",
66
- "statuses",
67
- "lineups"
58
+ "city",
59
+ "venue",
60
+ "venue/status",
61
+ "venue/audience",
62
+ "game",
63
+ "registration"
68
64
  ],
69
65
  "additionalProperties": false
70
66
  }