@axium/server 0.27.0 → 0.28.1

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.
@@ -0,0 +1,636 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "format": {
6
+ "type": "number",
7
+ "const": 0
8
+ },
9
+ "versions": {
10
+ "type": "array",
11
+ "items": {
12
+ "anyOf": [
13
+ {
14
+ "type": "object",
15
+ "properties": {
16
+ "tables": {
17
+ "type": "object",
18
+ "propertyNames": {
19
+ "type": "string"
20
+ },
21
+ "additionalProperties": {
22
+ "type": "object",
23
+ "properties": {
24
+ "columns": {
25
+ "type": "object",
26
+ "propertyNames": {
27
+ "type": "string"
28
+ },
29
+ "additionalProperties": {
30
+ "type": "object",
31
+ "properties": {
32
+ "type": {
33
+ "type": "string"
34
+ },
35
+ "required": {
36
+ "default": false,
37
+ "type": "boolean"
38
+ },
39
+ "unique": {
40
+ "default": false,
41
+ "type": "boolean"
42
+ },
43
+ "primary": {
44
+ "default": false,
45
+ "type": "boolean"
46
+ },
47
+ "references": {
48
+ "type": "string"
49
+ },
50
+ "onDelete": {
51
+ "type": "string",
52
+ "enum": [
53
+ "cascade",
54
+ "restrict",
55
+ "no action",
56
+ "set null",
57
+ "set default"
58
+ ]
59
+ },
60
+ "default": {},
61
+ "check": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "required": [
66
+ "type"
67
+ ],
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "constraints": {
72
+ "default": {},
73
+ "type": "object",
74
+ "propertyNames": {
75
+ "type": "string"
76
+ },
77
+ "additionalProperties": {
78
+ "anyOf": [
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "type": {
83
+ "type": "string",
84
+ "const": "primary_key"
85
+ },
86
+ "on": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ }
92
+ },
93
+ "required": [
94
+ "type",
95
+ "on"
96
+ ],
97
+ "additionalProperties": false
98
+ },
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "type": {
103
+ "type": "string",
104
+ "const": "foreign_key"
105
+ },
106
+ "on": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ "target": {
113
+ "type": "string"
114
+ },
115
+ "references": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "string"
119
+ }
120
+ }
121
+ },
122
+ "required": [
123
+ "type",
124
+ "on",
125
+ "target",
126
+ "references"
127
+ ],
128
+ "additionalProperties": false
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "type": {
134
+ "type": "string",
135
+ "const": "unique"
136
+ },
137
+ "on": {
138
+ "type": "array",
139
+ "items": {
140
+ "type": "string"
141
+ }
142
+ },
143
+ "nulls_not_distinct": {
144
+ "type": "boolean"
145
+ }
146
+ },
147
+ "required": [
148
+ "type",
149
+ "on"
150
+ ],
151
+ "additionalProperties": false
152
+ },
153
+ {
154
+ "type": "object",
155
+ "properties": {
156
+ "type": {
157
+ "type": "string",
158
+ "const": "check"
159
+ },
160
+ "check": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "required": [
165
+ "type",
166
+ "check"
167
+ ],
168
+ "additionalProperties": false
169
+ }
170
+ ]
171
+ }
172
+ }
173
+ },
174
+ "required": [
175
+ "columns"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ },
180
+ "indexes": {
181
+ "default": [],
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string",
185
+ "pattern": "^[\\s\\S]{0,}:[\\s\\S]{0,}$"
186
+ }
187
+ },
188
+ "delta": {
189
+ "type": "boolean",
190
+ "const": false
191
+ }
192
+ },
193
+ "required": [
194
+ "tables",
195
+ "delta"
196
+ ],
197
+ "additionalProperties": false
198
+ },
199
+ {
200
+ "type": "object",
201
+ "properties": {
202
+ "delta": {
203
+ "type": "boolean",
204
+ "const": true
205
+ },
206
+ "add_tables": {
207
+ "default": {},
208
+ "type": "object",
209
+ "propertyNames": {
210
+ "type": "string"
211
+ },
212
+ "additionalProperties": {
213
+ "type": "object",
214
+ "properties": {
215
+ "columns": {
216
+ "type": "object",
217
+ "propertyNames": {
218
+ "type": "string"
219
+ },
220
+ "additionalProperties": {
221
+ "type": "object",
222
+ "properties": {
223
+ "type": {
224
+ "type": "string"
225
+ },
226
+ "required": {
227
+ "default": false,
228
+ "type": "boolean"
229
+ },
230
+ "unique": {
231
+ "default": false,
232
+ "type": "boolean"
233
+ },
234
+ "primary": {
235
+ "default": false,
236
+ "type": "boolean"
237
+ },
238
+ "references": {
239
+ "type": "string"
240
+ },
241
+ "onDelete": {
242
+ "type": "string",
243
+ "enum": [
244
+ "cascade",
245
+ "restrict",
246
+ "no action",
247
+ "set null",
248
+ "set default"
249
+ ]
250
+ },
251
+ "default": {},
252
+ "check": {
253
+ "type": "string"
254
+ }
255
+ },
256
+ "required": [
257
+ "type"
258
+ ],
259
+ "additionalProperties": false
260
+ }
261
+ },
262
+ "constraints": {
263
+ "default": {},
264
+ "type": "object",
265
+ "propertyNames": {
266
+ "type": "string"
267
+ },
268
+ "additionalProperties": {
269
+ "anyOf": [
270
+ {
271
+ "type": "object",
272
+ "properties": {
273
+ "type": {
274
+ "type": "string",
275
+ "const": "primary_key"
276
+ },
277
+ "on": {
278
+ "type": "array",
279
+ "items": {
280
+ "type": "string"
281
+ }
282
+ }
283
+ },
284
+ "required": [
285
+ "type",
286
+ "on"
287
+ ],
288
+ "additionalProperties": false
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "type": {
294
+ "type": "string",
295
+ "const": "foreign_key"
296
+ },
297
+ "on": {
298
+ "type": "array",
299
+ "items": {
300
+ "type": "string"
301
+ }
302
+ },
303
+ "target": {
304
+ "type": "string"
305
+ },
306
+ "references": {
307
+ "type": "array",
308
+ "items": {
309
+ "type": "string"
310
+ }
311
+ }
312
+ },
313
+ "required": [
314
+ "type",
315
+ "on",
316
+ "target",
317
+ "references"
318
+ ],
319
+ "additionalProperties": false
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "type": {
325
+ "type": "string",
326
+ "const": "unique"
327
+ },
328
+ "on": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "string"
332
+ }
333
+ },
334
+ "nulls_not_distinct": {
335
+ "type": "boolean"
336
+ }
337
+ },
338
+ "required": [
339
+ "type",
340
+ "on"
341
+ ],
342
+ "additionalProperties": false
343
+ },
344
+ {
345
+ "type": "object",
346
+ "properties": {
347
+ "type": {
348
+ "type": "string",
349
+ "const": "check"
350
+ },
351
+ "check": {
352
+ "type": "string"
353
+ }
354
+ },
355
+ "required": [
356
+ "type",
357
+ "check"
358
+ ],
359
+ "additionalProperties": false
360
+ }
361
+ ]
362
+ }
363
+ }
364
+ },
365
+ "required": [
366
+ "columns"
367
+ ],
368
+ "additionalProperties": false
369
+ }
370
+ },
371
+ "drop_tables": {
372
+ "default": [],
373
+ "type": "array",
374
+ "items": {
375
+ "type": "string"
376
+ }
377
+ },
378
+ "alter_tables": {
379
+ "default": {},
380
+ "type": "object",
381
+ "propertyNames": {
382
+ "type": "string"
383
+ },
384
+ "additionalProperties": {
385
+ "type": "object",
386
+ "properties": {
387
+ "add_columns": {
388
+ "default": {},
389
+ "type": "object",
390
+ "propertyNames": {
391
+ "type": "string"
392
+ },
393
+ "additionalProperties": {
394
+ "type": "object",
395
+ "properties": {
396
+ "type": {
397
+ "type": "string"
398
+ },
399
+ "required": {
400
+ "default": false,
401
+ "type": "boolean"
402
+ },
403
+ "unique": {
404
+ "default": false,
405
+ "type": "boolean"
406
+ },
407
+ "primary": {
408
+ "default": false,
409
+ "type": "boolean"
410
+ },
411
+ "references": {
412
+ "type": "string"
413
+ },
414
+ "onDelete": {
415
+ "type": "string",
416
+ "enum": [
417
+ "cascade",
418
+ "restrict",
419
+ "no action",
420
+ "set null",
421
+ "set default"
422
+ ]
423
+ },
424
+ "default": {},
425
+ "check": {
426
+ "type": "string"
427
+ }
428
+ },
429
+ "required": [
430
+ "type"
431
+ ],
432
+ "additionalProperties": false
433
+ }
434
+ },
435
+ "drop_columns": {
436
+ "default": [],
437
+ "type": "array",
438
+ "items": {
439
+ "type": "string"
440
+ }
441
+ },
442
+ "alter_columns": {
443
+ "default": {},
444
+ "type": "object",
445
+ "propertyNames": {
446
+ "type": "string"
447
+ },
448
+ "additionalProperties": {
449
+ "type": "object",
450
+ "properties": {
451
+ "type": {
452
+ "type": "string"
453
+ },
454
+ "default": {
455
+ "type": "string"
456
+ },
457
+ "ops": {
458
+ "type": "array",
459
+ "items": {
460
+ "type": "string",
461
+ "enum": [
462
+ "drop_default",
463
+ "set_required",
464
+ "drop_required"
465
+ ]
466
+ }
467
+ }
468
+ },
469
+ "additionalProperties": false
470
+ }
471
+ },
472
+ "add_constraints": {
473
+ "default": {},
474
+ "type": "object",
475
+ "propertyNames": {
476
+ "type": "string"
477
+ },
478
+ "additionalProperties": {
479
+ "anyOf": [
480
+ {
481
+ "type": "object",
482
+ "properties": {
483
+ "type": {
484
+ "type": "string",
485
+ "const": "primary_key"
486
+ },
487
+ "on": {
488
+ "type": "array",
489
+ "items": {
490
+ "type": "string"
491
+ }
492
+ }
493
+ },
494
+ "required": [
495
+ "type",
496
+ "on"
497
+ ],
498
+ "additionalProperties": false
499
+ },
500
+ {
501
+ "type": "object",
502
+ "properties": {
503
+ "type": {
504
+ "type": "string",
505
+ "const": "foreign_key"
506
+ },
507
+ "on": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "target": {
514
+ "type": "string"
515
+ },
516
+ "references": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ }
521
+ }
522
+ },
523
+ "required": [
524
+ "type",
525
+ "on",
526
+ "target",
527
+ "references"
528
+ ],
529
+ "additionalProperties": false
530
+ },
531
+ {
532
+ "type": "object",
533
+ "properties": {
534
+ "type": {
535
+ "type": "string",
536
+ "const": "unique"
537
+ },
538
+ "on": {
539
+ "type": "array",
540
+ "items": {
541
+ "type": "string"
542
+ }
543
+ },
544
+ "nulls_not_distinct": {
545
+ "type": "boolean"
546
+ }
547
+ },
548
+ "required": [
549
+ "type",
550
+ "on"
551
+ ],
552
+ "additionalProperties": false
553
+ },
554
+ {
555
+ "type": "object",
556
+ "properties": {
557
+ "type": {
558
+ "type": "string",
559
+ "const": "check"
560
+ },
561
+ "check": {
562
+ "type": "string"
563
+ }
564
+ },
565
+ "required": [
566
+ "type",
567
+ "check"
568
+ ],
569
+ "additionalProperties": false
570
+ }
571
+ ]
572
+ }
573
+ },
574
+ "drop_constraints": {
575
+ "default": [],
576
+ "type": "array",
577
+ "items": {
578
+ "type": "string"
579
+ }
580
+ }
581
+ },
582
+ "additionalProperties": false
583
+ }
584
+ },
585
+ "add_indexes": {
586
+ "default": [],
587
+ "type": "array",
588
+ "items": {
589
+ "type": "string",
590
+ "pattern": "^[\\s\\S]{0,}:[\\s\\S]{0,}$"
591
+ }
592
+ },
593
+ "drop_indexes": {
594
+ "default": [],
595
+ "type": "array",
596
+ "items": {
597
+ "type": "string",
598
+ "pattern": "^[\\s\\S]{0,}:[\\s\\S]{0,}$"
599
+ }
600
+ }
601
+ },
602
+ "required": [
603
+ "delta"
604
+ ],
605
+ "additionalProperties": false
606
+ }
607
+ ]
608
+ }
609
+ },
610
+ "wipe": {
611
+ "default": [],
612
+ "type": "array",
613
+ "items": {
614
+ "type": "string"
615
+ }
616
+ },
617
+ "latest": {
618
+ "type": "number",
619
+ "minimum": 0
620
+ },
621
+ "acl_tables": {
622
+ "default": {},
623
+ "type": "object",
624
+ "propertyNames": {
625
+ "type": "string"
626
+ },
627
+ "additionalProperties": {
628
+ "type": "string"
629
+ }
630
+ }
631
+ },
632
+ "required": [
633
+ "format",
634
+ "versions"
635
+ ]
636
+ }