@shakerquiz/contracts 0.0.39 → 0.0.41

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/contracts",
4
- "version": "0.0.39",
4
+ "version": "0.0.41",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,32 +1,21 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "people_count": {
5
- "type": "integer"
4
+ "team_name": {
5
+ "type": "string"
6
6
  },
7
7
  "human_name": {
8
8
  "type": "string"
9
9
  },
10
- "is_alone": {
11
- "type": "boolean"
10
+ "people_count": {
11
+ "type": "integer"
12
12
  },
13
- "team_name": {
13
+ "phone": {
14
14
  "type": "string"
15
15
  },
16
- "status": {
17
- "type": "string",
18
- "enum": [
19
- "Created",
20
- "Confirmed",
21
- "Cancelled"
22
- ]
23
- },
24
- "lineup": {
16
+ "email": {
25
17
  "type": "string",
26
- "enum": [
27
- "Main",
28
- "Reserve"
29
- ]
18
+ "format": "email"
30
19
  }
31
20
  },
32
21
  "required": [],
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "is_alone": {
5
+ "type": "boolean"
6
+ },
7
+ "is_birthday": {
8
+ "type": "boolean"
9
+ },
10
+ "is_extensible": {
11
+ "type": "boolean"
12
+ },
13
+ "is_first": {
14
+ "type": "boolean"
15
+ }
16
+ },
17
+ "required": [],
18
+ "additionalProperties": false
19
+ }
@@ -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,14 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "lineup": {
5
+ "type": "string",
6
+ "enum": [
7
+ "Main",
8
+ "Reserve"
9
+ ]
10
+ }
11
+ },
12
+ "required": [],
13
+ "additionalProperties": false
14
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "status": {
5
+ "type": "string",
6
+ "enum": [
7
+ "Created",
8
+ "Confirmed",
9
+ "Cancelled"
10
+ ]
11
+ }
12
+ },
13
+ "required": [],
14
+ "additionalProperties": false
15
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid"
9
+ },
10
+ "status": {
11
+ "type": "string",
12
+ "enum": [
13
+ "Active",
14
+ "Archive"
15
+ ]
16
+ }
17
+ },
18
+ "required": [
19
+ "id"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "uniqueItems": true
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid"
9
+ },
10
+ "status": {
11
+ "type": "string",
12
+ "enum": [
13
+ "Active",
14
+ "Archive"
15
+ ]
16
+ }
17
+ },
18
+ "required": [
19
+ "id"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "uniqueItems": true
24
+ }
package/source/index.js CHANGED
@@ -7,12 +7,14 @@ import PATCH_city_country_admin from './contracts/PATCH/city/country/admin.json'
7
7
  import PATCH_city_currency_admin from './contracts/PATCH/city/currency/admin.json' with { type: 'json' }
8
8
  import PATCH_city_timezone_admin from './contracts/PATCH/city/timezone/admin.json' with { type: 'json' }
9
9
  import PATCH_venue_admin from './contracts/PATCH/venue/admin.json' with { type: 'json' }
10
+ import PATCH_venues_admin from './contracts/PATCH/venues/admin.json' with { type: 'json' }
10
11
  import PATCH_theme_admin from './contracts/PATCH/theme/admin.json' with { type: 'json' }
11
12
  import PATCH_themes_admin from './contracts/PATCH/themes/admin.json' with { type: 'json' }
12
13
  import PATCH_game_admin from './contracts/PATCH/game/admin.json' with { type: 'json' }
13
14
  import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
14
15
  import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
15
16
  import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
17
+ import PATCH_registration_channel_admin from './contracts/PATCH/registration/channel/admin.json' with { type: 'json' }
16
18
  import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
17
19
  import POST_user_admin from './contracts/POST/user/admin.json' with { type: 'json' }
18
20
  import POST_user_password_admin from './contracts/POST/user/password/admin.json' with { type: 'json' }
@@ -41,12 +43,14 @@ export const Contracts = Object.freeze(
41
43
  'PATCH/city/currency/admin',
42
44
  'PATCH/city/timezone/admin',
43
45
  'PATCH/venue/admin',
46
+ 'PATCH/venues/admin',
44
47
  'PATCH/theme/admin',
45
48
  'PATCH/themes/admin',
46
49
  'PATCH/game/admin',
47
50
  'PATCH/games/admin',
48
51
  'PATCH/registration/admin',
49
52
  'PATCH/registration/Unknown',
53
+ 'PATCH/registration/channel/admin',
50
54
  'PATCH/registration/channel/Unknown',
51
55
  'POST/user/admin',
52
56
  'POST/user/password/admin',
@@ -77,12 +81,14 @@ export const Schemas = Object.freeze(
77
81
  PATCH_city_currency_admin,
78
82
  PATCH_city_timezone_admin,
79
83
  PATCH_venue_admin,
84
+ PATCH_venues_admin,
80
85
  PATCH_theme_admin,
81
86
  PATCH_themes_admin,
82
87
  PATCH_game_admin,
83
88
  PATCH_games_admin,
84
89
  PATCH_registration_admin,
85
90
  PATCH_registration_Unknown,
91
+ PATCH_registration_channel_admin,
86
92
  PATCH_registration_channel_Unknown,
87
93
  POST_user_admin,
88
94
  POST_user_password_admin,
@@ -113,12 +119,14 @@ export const ContractSchema = Object.freeze(
113
119
  'PATCH/city/currency/admin': PATCH_city_currency_admin,
114
120
  'PATCH/city/timezone/admin': PATCH_city_timezone_admin,
115
121
  'PATCH/venue/admin': PATCH_venue_admin,
122
+ 'PATCH/venues/admin': PATCH_venues_admin,
116
123
  'PATCH/theme/admin': PATCH_theme_admin,
117
124
  'PATCH/themes/admin': PATCH_themes_admin,
118
125
  'PATCH/game/admin': PATCH_game_admin,
119
126
  'PATCH/games/admin': PATCH_games_admin,
120
127
  'PATCH/registration/admin': PATCH_registration_admin,
121
128
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
129
+ 'PATCH/registration/channel/admin': PATCH_registration_channel_admin,
122
130
  'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
123
131
  'POST/user/admin': POST_user_admin,
124
132
  'POST/user/password/admin': POST_user_password_admin,