@shakerquiz/contracts 0.0.40 → 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.40",
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
+ }
package/source/index.js CHANGED
@@ -14,6 +14,7 @@ import PATCH_game_admin from './contracts/PATCH/game/admin.json' with { type: 'j
14
14
  import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
15
15
  import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
16
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' }
17
18
  import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
18
19
  import POST_user_admin from './contracts/POST/user/admin.json' with { type: 'json' }
19
20
  import POST_user_password_admin from './contracts/POST/user/password/admin.json' with { type: 'json' }
@@ -49,6 +50,7 @@ export const Contracts = Object.freeze(
49
50
  'PATCH/games/admin',
50
51
  'PATCH/registration/admin',
51
52
  'PATCH/registration/Unknown',
53
+ 'PATCH/registration/channel/admin',
52
54
  'PATCH/registration/channel/Unknown',
53
55
  'POST/user/admin',
54
56
  'POST/user/password/admin',
@@ -86,6 +88,7 @@ export const Schemas = Object.freeze(
86
88
  PATCH_games_admin,
87
89
  PATCH_registration_admin,
88
90
  PATCH_registration_Unknown,
91
+ PATCH_registration_channel_admin,
89
92
  PATCH_registration_channel_Unknown,
90
93
  POST_user_admin,
91
94
  POST_user_password_admin,
@@ -123,6 +126,7 @@ export const ContractSchema = Object.freeze(
123
126
  'PATCH/games/admin': PATCH_games_admin,
124
127
  'PATCH/registration/admin': PATCH_registration_admin,
125
128
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
129
+ 'PATCH/registration/channel/admin': PATCH_registration_channel_admin,
126
130
  'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
127
131
  'POST/user/admin': POST_user_admin,
128
132
  'POST/user/password/admin': POST_user_password_admin,