@shakerquiz/contracts 0.0.102 → 0.0.103

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.102",
4
+ "version": "0.0.103",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "ids": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "statuses": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "enum": [
34
+ "APPROVED",
35
+ "ARCHIVE",
36
+ "CLOSED",
37
+ "FINISHED",
38
+ "FORINVITES",
39
+ "IS_RESERVE",
40
+ "MODERATION",
41
+ "PUBLISHED",
42
+ "REJECTED"
43
+ ]
44
+ },
45
+ "uniqueItems": true
46
+ }
47
+ },
48
+ "required": [
49
+ "cities",
50
+ "venues",
51
+ "ids",
52
+ "statuses"
53
+ ],
54
+ "additionalProperties": false
55
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "ids": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "statuses": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "enum": [
34
+ "APPROVED",
35
+ "ARCHIVE",
36
+ "CLOSED",
37
+ "FINISHED",
38
+ "FORINVITES",
39
+ "IS_RESERVE",
40
+ "MODERATION",
41
+ "PUBLISHED",
42
+ "REJECTED"
43
+ ]
44
+ },
45
+ "uniqueItems": true
46
+ }
47
+ },
48
+ "required": [
49
+ "cities",
50
+ "venues",
51
+ "ids",
52
+ "statuses"
53
+ ],
54
+ "additionalProperties": false
55
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "ids": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "statuses": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "enum": [
34
+ "APPROVED",
35
+ "ARCHIVE",
36
+ "CLOSED",
37
+ "FINISHED",
38
+ "FORINVITES",
39
+ "IS_RESERVE",
40
+ "MODERATION",
41
+ "PUBLISHED",
42
+ "REJECTED"
43
+ ]
44
+ },
45
+ "uniqueItems": true
46
+ }
47
+ },
48
+ "required": [
49
+ "cities",
50
+ "venues",
51
+ "ids",
52
+ "statuses"
53
+ ],
54
+ "additionalProperties": false
55
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "ids": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "statuses": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "enum": [
34
+ "APPROVED",
35
+ "ARCHIVE",
36
+ "CLOSED",
37
+ "FINISHED",
38
+ "FORINVITES",
39
+ "IS_RESERVE",
40
+ "MODERATION",
41
+ "PUBLISHED",
42
+ "REJECTED"
43
+ ]
44
+ },
45
+ "uniqueItems": true
46
+ }
47
+ },
48
+ "required": [
49
+ "cities",
50
+ "venues",
51
+ "ids",
52
+ "statuses"
53
+ ],
54
+ "additionalProperties": false
55
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "games": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "ids": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "format": "uuid"
34
+ },
35
+ "uniqueItems": true
36
+ },
37
+ "statuses": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "enum": [
42
+ "Created",
43
+ "Confirmed",
44
+ "Cancelled"
45
+ ]
46
+ },
47
+ "uniqueItems": true
48
+ },
49
+ "lineups": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "enum": [
54
+ "Main",
55
+ "Reserve"
56
+ ]
57
+ },
58
+ "uniqueItems": true
59
+ }
60
+ },
61
+ "required": [
62
+ "cities",
63
+ "venues",
64
+ "games",
65
+ "ids",
66
+ "statuses",
67
+ "lineups"
68
+ ],
69
+ "additionalProperties": false
70
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "games": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "ids": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "format": "uuid"
34
+ },
35
+ "uniqueItems": true
36
+ },
37
+ "statuses": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "enum": [
42
+ "Created",
43
+ "Confirmed",
44
+ "Cancelled"
45
+ ]
46
+ },
47
+ "uniqueItems": true
48
+ },
49
+ "lineups": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "enum": [
54
+ "Main",
55
+ "Reserve"
56
+ ]
57
+ },
58
+ "uniqueItems": true
59
+ }
60
+ },
61
+ "required": [
62
+ "cities",
63
+ "venues",
64
+ "games",
65
+ "ids",
66
+ "statuses",
67
+ "lineups"
68
+ ],
69
+ "additionalProperties": false
70
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "cities": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "format": "uuid"
10
+ },
11
+ "uniqueItems": true
12
+ },
13
+ "venues": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uuid"
18
+ },
19
+ "uniqueItems": true
20
+ },
21
+ "games": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "uniqueItems": true
28
+ },
29
+ "ids": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "format": "uuid"
34
+ },
35
+ "uniqueItems": true
36
+ },
37
+ "statuses": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "enum": [
42
+ "Created",
43
+ "Confirmed",
44
+ "Cancelled"
45
+ ]
46
+ },
47
+ "uniqueItems": true
48
+ },
49
+ "lineups": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "enum": [
54
+ "Main",
55
+ "Reserve"
56
+ ]
57
+ },
58
+ "uniqueItems": true
59
+ }
60
+ },
61
+ "required": [
62
+ "cities",
63
+ "venues",
64
+ "games",
65
+ "ids",
66
+ "statuses",
67
+ "lineups"
68
+ ],
69
+ "additionalProperties": false
70
+ }
package/source/index.js CHANGED
@@ -55,9 +55,16 @@ import POST_game_admin from './contracts/POST/game/admin.json' with { type: 'jso
55
55
  import POST_game_organizer from './contracts/POST/game/organizer.json' with { type: 'json' }
56
56
  import POST_game_registrations_export_admin from './contracts/POST/game/registrations/export/admin.json' with { type: 'json' }
57
57
  import POST_game_registrations_export_organizer from './contracts/POST/game/registrations/export/organizer.json' with { type: 'json' }
58
+ import POST_games_search_admin from './contracts/POST/games/search/admin.json' with { type: 'json' }
59
+ import POST_games_search_organizer from './contracts/POST/games/search/organizer.json' with { type: 'json' }
60
+ import POST_games_search_Service from './contracts/POST/games/search/Service.json' with { type: 'json' }
61
+ import POST_games_search_Unknown from './contracts/POST/games/search/Unknown.json' with { type: 'json' }
58
62
  import POST_registration_admin from './contracts/POST/registration/admin.json' with { type: 'json' }
59
63
  import POST_registration_organizer from './contracts/POST/registration/organizer.json' with { type: 'json' }
60
64
  import POST_registration_Unknown from './contracts/POST/registration/Unknown.json' with { type: 'json' }
65
+ import POST_registrations_search_admin from './contracts/POST/registrations/search/admin.json' with { type: 'json' }
66
+ import POST_registrations_search_organizer from './contracts/POST/registrations/search/organizer.json' with { type: 'json' }
67
+ import POST_registrations_search_Service from './contracts/POST/registrations/search/Service.json' with { type: 'json' }
61
68
  import POST_registrations_export_admin from './contracts/POST/registrations/export/admin.json' with { type: 'json' }
62
69
  import POST_registrations_export_organizer from './contracts/POST/registrations/export/organizer.json' with { type: 'json' }
63
70
  import POST_chatapp_registration_mailing_admin from './contracts/POST/chatapp/registration/mailing/admin.json' with { type: 'json' }
@@ -122,9 +129,16 @@ export const Contracts = Object.freeze(
122
129
  'POST/game/organizer',
123
130
  'POST/game/registrations/export/admin',
124
131
  'POST/game/registrations/export/organizer',
132
+ 'POST/games/search/admin',
133
+ 'POST/games/search/organizer',
134
+ 'POST/games/search/Service',
135
+ 'POST/games/search/Unknown',
125
136
  'POST/registration/admin',
126
137
  'POST/registration/organizer',
127
138
  'POST/registration/Unknown',
139
+ 'POST/registrations/search/admin',
140
+ 'POST/registrations/search/organizer',
141
+ 'POST/registrations/search/Service',
128
142
  'POST/registrations/export/admin',
129
143
  'POST/registrations/export/organizer',
130
144
  'POST/chatapp/registration/mailing/admin',
@@ -191,9 +205,16 @@ export const Schemas = Object.freeze(
191
205
  POST_game_organizer,
192
206
  POST_game_registrations_export_admin,
193
207
  POST_game_registrations_export_organizer,
208
+ POST_games_search_admin,
209
+ POST_games_search_organizer,
210
+ POST_games_search_Service,
211
+ POST_games_search_Unknown,
194
212
  POST_registration_admin,
195
213
  POST_registration_organizer,
196
214
  POST_registration_Unknown,
215
+ POST_registrations_search_admin,
216
+ POST_registrations_search_organizer,
217
+ POST_registrations_search_Service,
197
218
  POST_registrations_export_admin,
198
219
  POST_registrations_export_organizer,
199
220
  POST_chatapp_registration_mailing_admin,
@@ -260,9 +281,16 @@ export const ContractSchema = Object.freeze(
260
281
  'POST/game/organizer': POST_game_organizer,
261
282
  'POST/game/registrations/export/admin': POST_game_registrations_export_admin,
262
283
  'POST/game/registrations/export/organizer': POST_game_registrations_export_organizer,
284
+ 'POST/games/search/admin': POST_games_search_admin,
285
+ 'POST/games/search/organizer': POST_games_search_organizer,
286
+ 'POST/games/search/Service': POST_games_search_Service,
287
+ 'POST/games/search/Unknown': POST_games_search_Unknown,
263
288
  'POST/registration/admin': POST_registration_admin,
264
289
  'POST/registration/organizer': POST_registration_organizer,
265
290
  'POST/registration/Unknown': POST_registration_Unknown,
291
+ 'POST/registrations/search/admin': POST_registrations_search_admin,
292
+ 'POST/registrations/search/organizer': POST_registrations_search_organizer,
293
+ 'POST/registrations/search/Service': POST_registrations_search_Service,
266
294
  'POST/registrations/export/admin': POST_registrations_export_admin,
267
295
  'POST/registrations/export/organizer': POST_registrations_export_organizer,
268
296
  'POST/chatapp/registration/mailing/admin': POST_chatapp_registration_mailing_admin,