@shakerquiz/contracts 0.0.128 → 0.0.130
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.
|
|
4
|
+
"version": "0.0.130",
|
|
5
5
|
"author": "yurkimus <yurkimus@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"exports": "./source/index.js",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@shakerquiz/utilities": "4.0.
|
|
19
|
+
"@shakerquiz/utilities": "4.0.61",
|
|
20
20
|
"@types/bun": "1.3.7"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"user": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"city": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"uniqueItems": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"user",
|
|
23
|
+
"city"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
package/source/index.js
CHANGED
|
@@ -47,6 +47,7 @@ import POST_chatapp_registration_mailing_organizer from './contracts/POST/chatap
|
|
|
47
47
|
import POST_chatapp_registration_mailing_admin from './contracts/POST/chatapp/registration/mailing/admin.json' with { type: 'json' }
|
|
48
48
|
import POST_venues_search_Unknown from './contracts/POST/venues/search/Unknown.json' with { type: 'json' }
|
|
49
49
|
import POST_themes_search_Unknown from './contracts/POST/themes/search/Unknown.json' with { type: 'json' }
|
|
50
|
+
import POST_cities_search_organizer from './contracts/POST/cities/search/organizer.json' with { type: 'json' }
|
|
50
51
|
import POST_cities_search_Unknown from './contracts/POST/cities/search/Unknown.json' with { type: 'json' }
|
|
51
52
|
import POST_cities_search_admin from './contracts/POST/cities/search/admin.json' with { type: 'json' }
|
|
52
53
|
import POST_venue_organizer from './contracts/POST/venue/organizer.json' with { type: 'json' }
|
|
@@ -117,6 +118,7 @@ export const Contracts = Object.freeze(
|
|
|
117
118
|
'POST/chatapp/registration/mailing/admin',
|
|
118
119
|
'POST/venues/search/Unknown',
|
|
119
120
|
'POST/themes/search/Unknown',
|
|
121
|
+
'POST/cities/search/organizer',
|
|
120
122
|
'POST/cities/search/Unknown',
|
|
121
123
|
'POST/cities/search/admin',
|
|
122
124
|
'POST/venue/organizer',
|
|
@@ -189,6 +191,7 @@ export const Schemas = Object.freeze(
|
|
|
189
191
|
POST_chatapp_registration_mailing_admin,
|
|
190
192
|
POST_venues_search_Unknown,
|
|
191
193
|
POST_themes_search_Unknown,
|
|
194
|
+
POST_cities_search_organizer,
|
|
192
195
|
POST_cities_search_Unknown,
|
|
193
196
|
POST_cities_search_admin,
|
|
194
197
|
POST_venue_organizer,
|
|
@@ -261,6 +264,7 @@ export const ContractSchema = Object.freeze(
|
|
|
261
264
|
'POST/chatapp/registration/mailing/admin': POST_chatapp_registration_mailing_admin,
|
|
262
265
|
'POST/venues/search/Unknown': POST_venues_search_Unknown,
|
|
263
266
|
'POST/themes/search/Unknown': POST_themes_search_Unknown,
|
|
267
|
+
'POST/cities/search/organizer': POST_cities_search_organizer,
|
|
264
268
|
'POST/cities/search/Unknown': POST_cities_search_Unknown,
|
|
265
269
|
'POST/cities/search/admin': POST_cities_search_admin,
|
|
266
270
|
'POST/venue/organizer': POST_venue_organizer,
|