@shakerquiz/contracts 0.0.39 → 0.0.40

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.40",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -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,6 +7,7 @@ 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' }
@@ -41,6 +42,7 @@ export const Contracts = Object.freeze(
41
42
  'PATCH/city/currency/admin',
42
43
  'PATCH/city/timezone/admin',
43
44
  'PATCH/venue/admin',
45
+ 'PATCH/venues/admin',
44
46
  'PATCH/theme/admin',
45
47
  'PATCH/themes/admin',
46
48
  'PATCH/game/admin',
@@ -77,6 +79,7 @@ export const Schemas = Object.freeze(
77
79
  PATCH_city_currency_admin,
78
80
  PATCH_city_timezone_admin,
79
81
  PATCH_venue_admin,
82
+ PATCH_venues_admin,
80
83
  PATCH_theme_admin,
81
84
  PATCH_themes_admin,
82
85
  PATCH_game_admin,
@@ -113,6 +116,7 @@ export const ContractSchema = Object.freeze(
113
116
  'PATCH/city/currency/admin': PATCH_city_currency_admin,
114
117
  'PATCH/city/timezone/admin': PATCH_city_timezone_admin,
115
118
  'PATCH/venue/admin': PATCH_venue_admin,
119
+ 'PATCH/venues/admin': PATCH_venues_admin,
116
120
  'PATCH/theme/admin': PATCH_theme_admin,
117
121
  'PATCH/themes/admin': PATCH_themes_admin,
118
122
  'PATCH/game/admin': PATCH_game_admin,