@shakerquiz/contracts 0.0.45 → 0.0.47

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.45",
4
+ "version": "0.0.47",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,20 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "status": {
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "type": "string",
9
+ "enum": [
10
+ "ARCHIVE",
11
+ "FINISHED"
12
+ ]
13
+ }
14
+ },
15
+ "required": []
16
+ }
17
+ },
18
+ "required": [],
19
+ "additionalProperties": false
20
+ }
@@ -2,18 +2,24 @@
2
2
  "type": "object",
3
3
  "properties": {
4
4
  "status": {
5
- "type": "string",
6
- "enum": [
7
- "APPROVED",
8
- "ARCHIVE",
9
- "CLOSED",
10
- "FINISHED",
11
- "FORINVITES",
12
- "IS_RESERVE",
13
- "MODERATION",
14
- "PUBLISHED",
15
- "REJECTED"
16
- ]
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "type": "string",
9
+ "enum": [
10
+ "APPROVED",
11
+ "ARCHIVE",
12
+ "CLOSED",
13
+ "FINISHED",
14
+ "FORINVITES",
15
+ "IS_RESERVE",
16
+ "MODERATION",
17
+ "PUBLISHED",
18
+ "REJECTED"
19
+ ]
20
+ }
21
+ },
22
+ "required": []
17
23
  }
18
24
  },
19
25
  "required": [],
@@ -2,18 +2,24 @@
2
2
  "type": "object",
3
3
  "properties": {
4
4
  "status": {
5
- "type": "string",
6
- "enum": [
7
- "APPROVED",
8
- "ARCHIVE",
9
- "CLOSED",
10
- "FINISHED",
11
- "FORINVITES",
12
- "IS_RESERVE",
13
- "MODERATION",
14
- "PUBLISHED",
15
- "REJECTED"
16
- ]
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "type": "string",
9
+ "enum": [
10
+ "APPROVED",
11
+ "ARCHIVE",
12
+ "CLOSED",
13
+ "FINISHED",
14
+ "FORINVITES",
15
+ "IS_RESERVE",
16
+ "MODERATION",
17
+ "PUBLISHED",
18
+ "REJECTED"
19
+ ]
20
+ }
21
+ },
22
+ "required": []
17
23
  }
18
24
  },
19
25
  "required": [],
package/source/index.js CHANGED
@@ -12,6 +12,7 @@ import PATCH_theme_admin from './contracts/PATCH/theme/admin.json' with { type:
12
12
  import PATCH_themes_admin from './contracts/PATCH/themes/admin.json' with { type: 'json' }
13
13
  import PATCH_game_admin from './contracts/PATCH/game/admin.json' with { type: 'json' }
14
14
  import PATCH_game_status_admin from './contracts/PATCH/game/status/admin.json' with { type: 'json' }
15
+ import PATCH_game_status_Service from './contracts/PATCH/game/status/Service.json' with { type: 'json' }
15
16
  import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
16
17
  import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
17
18
  import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
@@ -51,6 +52,7 @@ export const Contracts = Object.freeze(
51
52
  'PATCH/themes/admin',
52
53
  'PATCH/game/admin',
53
54
  'PATCH/game/status/admin',
55
+ 'PATCH/game/status/Service',
54
56
  'PATCH/games/admin',
55
57
  'PATCH/registration/admin',
56
58
  'PATCH/registration/Unknown',
@@ -92,6 +94,7 @@ export const Schemas = Object.freeze(
92
94
  PATCH_themes_admin,
93
95
  PATCH_game_admin,
94
96
  PATCH_game_status_admin,
97
+ PATCH_game_status_Service,
95
98
  PATCH_games_admin,
96
99
  PATCH_registration_admin,
97
100
  PATCH_registration_Unknown,
@@ -133,6 +136,7 @@ export const ContractSchema = Object.freeze(
133
136
  'PATCH/themes/admin': PATCH_themes_admin,
134
137
  'PATCH/game/admin': PATCH_game_admin,
135
138
  'PATCH/game/status/admin': PATCH_game_status_admin,
139
+ 'PATCH/game/status/Service': PATCH_game_status_Service,
136
140
  'PATCH/games/admin': PATCH_games_admin,
137
141
  'PATCH/registration/admin': PATCH_registration_admin,
138
142
  'PATCH/registration/Unknown': PATCH_registration_Unknown,