@shakerquiz/contracts 0.0.85 → 0.0.87

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.85",
4
+ "version": "0.0.87",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
2
3
  "type": "object",
3
4
  "properties": {
4
5
  "event_id": {
@@ -15,10 +16,20 @@
15
16
  "type": "integer"
16
17
  },
17
18
  "channel": {
18
- "type": "string"
19
+ "type": "string",
20
+ "enum": [
21
+ "vkontakte",
22
+ "telegramBot",
23
+ "email"
24
+ ]
19
25
  },
20
26
  "confirmed_channel": {
21
- "type": "string"
27
+ "type": "string",
28
+ "enum": [
29
+ "vkontakte",
30
+ "telegramBot",
31
+ "email"
32
+ ]
22
33
  },
23
34
  "email": {
24
35
  "type": "string"
@@ -84,35 +95,21 @@
84
95
  "oneOf": [
85
96
  {
86
97
  "properties": {
87
- "channel": {
88
- "const": "vkontakte"
89
- }
98
+ "channel": { "const": "vkontakte" }
90
99
  },
91
- "required": [
92
- "confirmed_channel",
93
- "vkontakte"
94
- ]
100
+ "required": ["vkontakte", "confirmed_channel"]
95
101
  },
96
102
  {
97
103
  "properties": {
98
- "channel": {
99
- "const": "telegramBot"
100
- }
104
+ "channel": { "const": "telegramBot" }
101
105
  },
102
- "required": [
103
- "confirmed_channel",
104
- "telegramBot"
105
- ]
106
+ "required": ["telegramBot", "confirmed_channel"]
106
107
  },
107
108
  {
108
109
  "properties": {
109
- "channel": {
110
- "const": "email"
111
- }
110
+ "channel": { "const": "email" }
112
111
  },
113
- "required": [
114
- "email"
115
- ]
112
+ "required": ["email"]
116
113
  }
117
114
  ]
118
- }
115
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
2
3
  "type": "object",
3
4
  "properties": {
4
5
  "ads_from": {
@@ -61,4 +62,4 @@
61
62
  "email"
62
63
  ],
63
64
  "additionalProperties": false
64
- }
65
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
2
3
  "type": "object",
3
4
  "properties": {
4
5
  "ads_from": {
@@ -61,4 +62,4 @@
61
62
  "email"
62
63
  ],
63
64
  "additionalProperties": false
64
- }
65
+ }