@shakerquiz/contracts 0.0.30 → 0.0.31

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.30",
4
+ "version": "0.0.31",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "value": {
5
- "type": "string"
4
+ "password": {
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "type": "string"
9
+ }
10
+ },
11
+ "required": [
12
+ "value"
13
+ ]
6
14
  }
7
15
  },
8
16
  "required": [
9
- "value"
17
+ "password"
10
18
  ],
11
19
  "additionalProperties": false
12
20
  }
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "value": {
5
- "type": "string"
4
+ "password": {
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "type": "string"
9
+ }
10
+ },
11
+ "required": [
12
+ "value"
13
+ ]
6
14
  }
7
15
  },
8
16
  "required": [
9
- "value"
17
+ "password"
10
18
  ],
11
19
  "additionalProperties": false
12
20
  }
package/source/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import DELETE_city_vk_group_token_admin from './contracts/DELETE/city/vk_group_token/admin.json' with { type: 'json' }
2
2
  import DELETE_user_cities_admin from './contracts/DELETE/user/cities/admin.json' with { type: 'json' }
3
- import DELETE_user_password_admin from './contracts/DELETE/user/password/admin.json' with { type: 'json' }
4
3
  import PATCH_city_admin from './contracts/PATCH/city/admin.json' with { type: 'json' }
5
4
  import PATCH_city_country_admin from './contracts/PATCH/city/country/admin.json' with { type: 'json' }
6
5
  import PATCH_city_currency_admin from './contracts/PATCH/city/currency/admin.json' with { type: 'json' }
@@ -37,7 +36,6 @@ export const Contracts = Object.freeze(
37
36
  /** @type {const} */ ([
38
37
  'DELETE/city/vk_group_token/admin',
39
38
  'DELETE/user/cities/admin',
40
- 'DELETE/user/password/admin',
41
39
  'PATCH/city/admin',
42
40
  'PATCH/city/country/admin',
43
41
  'PATCH/city/currency/admin',
@@ -76,7 +74,6 @@ export const Schemas = Object.freeze(
76
74
  /** @type {const} */ ([
77
75
  DELETE_city_vk_group_token_admin,
78
76
  DELETE_user_cities_admin,
79
- DELETE_user_password_admin,
80
77
  PATCH_city_admin,
81
78
  PATCH_city_country_admin,
82
79
  PATCH_city_currency_admin,
@@ -115,7 +112,6 @@ export const ContractSchema = Object.freeze(
115
112
  /** @type {const} */ ({
116
113
  'DELETE/city/vk_group_token/admin': DELETE_city_vk_group_token_admin,
117
114
  'DELETE/user/cities/admin': DELETE_user_cities_admin,
118
- 'DELETE/user/password/admin': DELETE_user_password_admin,
119
115
  'PATCH/city/admin': PATCH_city_admin,
120
116
  'PATCH/city/country/admin': PATCH_city_country_admin,
121
117
  'PATCH/city/currency/admin': PATCH_city_currency_admin,
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }