@shakerquiz/contracts 0.0.63 → 0.0.65

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.63",
4
+ "version": "0.0.65",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -26,9 +26,6 @@
26
26
  },
27
27
  "max_members_count": {
28
28
  "type": "integer"
29
- },
30
- "status": {
31
- "type": "string"
32
29
  }
33
30
  },
34
31
  "required": [
@@ -22,9 +22,6 @@
22
22
  },
23
23
  "max_members_count": {
24
24
  "type": "integer"
25
- },
26
- "status": {
27
- "type": "string"
28
25
  }
29
26
  },
30
27
  "required": [],
@@ -0,0 +1,40 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid"
9
+ },
10
+ "status": {
11
+ "type": "object",
12
+ "properties": {
13
+ "value": {
14
+ "type": "string",
15
+ "enum": [
16
+ "APPROVED",
17
+ "ARCHIVE",
18
+ "CLOSED",
19
+ "FINISHED",
20
+ "FORINVITES",
21
+ "IS_RESERVE",
22
+ "MODERATION",
23
+ "PUBLISHED",
24
+ "REJECTED"
25
+ ]
26
+ }
27
+ },
28
+ "required": [
29
+ "value"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "id",
35
+ "status"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ "uniqueItems": true
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "type": "array",
3
+ "items": {
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid"
9
+ },
10
+ "status": {
11
+ "type": "object",
12
+ "properties": {
13
+ "value": {
14
+ "type": "string",
15
+ "enum": [
16
+ "APPROVED",
17
+ "ARCHIVE",
18
+ "CLOSED",
19
+ "FINISHED",
20
+ "FORINVITES",
21
+ "IS_RESERVE",
22
+ "MODERATION",
23
+ "PUBLISHED",
24
+ "REJECTED"
25
+ ]
26
+ }
27
+ },
28
+ "required": [
29
+ "value"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "id",
35
+ "status"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ "uniqueItems": true
40
+ }
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_game_status_admin from './contracts/PATCH/game/status/admin.json' with { type: 'json' }
15
15
  import PATCH_game_status_Service from './contracts/PATCH/game/status/Service.json' with { type: 'json' }
16
16
  import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
17
+ import PATCH_games_status_admin from './contracts/PATCH/games/status/admin.json' with { type: 'json' }
17
18
  import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
18
19
  import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
19
20
  import PATCH_registration_status_admin from './contracts/PATCH/registration/status/admin.json' with { type: 'json' }
@@ -54,6 +55,7 @@ export const Contracts = Object.freeze(
54
55
  'PATCH/game/status/admin',
55
56
  'PATCH/game/status/Service',
56
57
  'PATCH/games/admin',
58
+ 'PATCH/games/status/admin',
57
59
  'PATCH/registration/admin',
58
60
  'PATCH/registration/Unknown',
59
61
  'PATCH/registration/status/admin',
@@ -96,6 +98,7 @@ export const Schemas = Object.freeze(
96
98
  PATCH_game_status_admin,
97
99
  PATCH_game_status_Service,
98
100
  PATCH_games_admin,
101
+ PATCH_games_status_admin,
99
102
  PATCH_registration_admin,
100
103
  PATCH_registration_Unknown,
101
104
  PATCH_registration_status_admin,
@@ -138,6 +141,7 @@ export const ContractSchema = Object.freeze(
138
141
  'PATCH/game/status/admin': PATCH_game_status_admin,
139
142
  'PATCH/game/status/Service': PATCH_game_status_Service,
140
143
  'PATCH/games/admin': PATCH_games_admin,
144
+ 'PATCH/games/status/admin': PATCH_games_status_admin,
141
145
  'PATCH/registration/admin': PATCH_registration_admin,
142
146
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
143
147
  'PATCH/registration/status/admin': PATCH_registration_status_admin,