@shakerquiz/contracts 0.0.84 → 0.0.86

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.84",
4
+ "version": "0.0.86",
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": {
@@ -80,60 +81,39 @@
80
81
  "is_extensible",
81
82
  "is_first"
82
83
  ],
83
- "additionalProperties": true,
84
- "allOf": [
84
+ "additionalProperties": false,
85
+ "oneOf": [
85
86
  {
86
- "if": {
87
- "properties": {
88
- "channel": {
89
- "const": "vkontakte"
90
- }
91
- },
92
- "required": [
93
- "channel"
94
- ]
87
+ "properties": {
88
+ "channel": {
89
+ "const": "vkontakte"
90
+ }
95
91
  },
96
- "then": {
97
- "required": [
98
- "confirmed_channel",
99
- "vkontakte"
100
- ]
101
- }
92
+ "required": [
93
+ "confirmed_channel",
94
+ "vkontakte"
95
+ ]
102
96
  },
103
97
  {
104
- "if": {
105
- "properties": {
106
- "channel": {
107
- "const": "telegramBot"
108
- }
109
- },
110
- "required": [
111
- "channel"
112
- ]
98
+ "properties": {
99
+ "channel": {
100
+ "const": "telegramBot"
101
+ }
113
102
  },
114
- "then": {
115
- "required": [
116
- "confirmed_channel",
117
- "telegramBot"
118
- ]
119
- }
103
+ "required": [
104
+ "confirmed_channel",
105
+ "telegramBot"
106
+ ]
120
107
  },
121
108
  {
122
- "if": {
123
- "properties": {
124
- "channel": {
125
- "const": "email"
126
- }
127
- },
128
- "required": [
129
- "channel"
130
- ]
109
+ "properties": {
110
+ "channel": {
111
+ "const": "email"
112
+ }
131
113
  },
132
- "then": {
133
- "required": [
134
- "email"
135
- ]
136
- }
114
+ "required": [
115
+ "email"
116
+ ]
137
117
  }
138
118
  ]
139
- }
119
+ }
@@ -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
+ }