@checkdigit/eslint-plugin 7.18.0-PR.143-072f → 7.18.0-PR.143-518d

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.
@@ -1,144 +1,7 @@
1
1
  {
2
2
  "apis": {
3
- "/ledger/v1/ping": {
4
- "get": {
5
- "request": {
6
- "$schema": "https://json-schema.org/draft/2020-12/schema",
7
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/PingGetRequestContext",
8
- "type": "object",
9
- "properties": {
10
- "headers": {
11
- "type": "object",
12
- "additionalProperties": true
13
- }
14
- },
15
- "required": [],
16
- "additionalProperties": false
17
- },
18
- "responses": {
19
- "200": {
20
- "$schema": "https://json-schema.org/draft/2020-12/schema",
21
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/PingGetResponseOK",
22
- "type": "object",
23
- "properties": {
24
- "headers": {
25
- "type": "object",
26
- "additionalProperties": true
27
- },
28
- "body": {
29
- "$ref": "/ledger/v1/schemas/definitions/Ping"
30
- }
31
- },
32
- "required": ["body"],
33
- "additionalProperties": false
34
- },
35
- "default": {
36
- "$schema": "https://json-schema.org/draft/2020-12/schema",
37
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/PingGetResponseDefault",
38
- "type": "object",
39
- "properties": {
40
- "headers": {
41
- "type": "object",
42
- "additionalProperties": true
43
- },
44
- "body": {
45
- "$ref": "/ledger/v1/schemas/definitions/Error"
46
- }
47
- },
48
- "required": ["body"],
49
- "additionalProperties": false
50
- }
51
- }
52
- }
53
- },
3
+ "/ledger/v1/ping": {},
54
4
  "/ledger/v1/account/:accountId": {
55
- "get": {
56
- "request": {
57
- "$schema": "https://json-schema.org/draft/2020-12/schema",
58
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetRequestContext",
59
- "type": "object",
60
- "properties": {
61
- "params": {
62
- "type": "object",
63
- "additionalProperties": false,
64
- "properties": {
65
- "at": {
66
- "type": "string",
67
- "format": "date-time"
68
- }
69
- },
70
- "required": ["at"]
71
- },
72
- "headers": {
73
- "type": "object",
74
- "additionalProperties": true
75
- }
76
- },
77
- "required": ["params", "query"],
78
- "additionalProperties": false
79
- },
80
- "responses": {
81
- "200": {
82
- "$schema": "https://json-schema.org/draft/2020-12/schema",
83
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetResponseOK",
84
- "type": "object",
85
- "properties": {
86
- "headers": {
87
- "type": "object",
88
- "properties": {
89
- "created-on": {
90
- "type": "string",
91
- "format": "date-time"
92
- },
93
- "updated-on": {
94
- "type": "string",
95
- "format": "date-time"
96
- },
97
- "last-modified": {
98
- "type": "string",
99
- "format": "date-time"
100
- }
101
- },
102
- "required": ["created-on", "updated-on", "last-modified"]
103
- },
104
- "body": {
105
- "$ref": "/ledger/v1/schemas/definitions/Account"
106
- }
107
- },
108
- "required": ["headers", "body"],
109
- "additionalProperties": false
110
- },
111
- "404": {
112
- "$schema": "https://json-schema.org/draft/2020-12/schema",
113
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetResponseNotFound",
114
- "type": "object",
115
- "properties": {
116
- "headers": {
117
- "type": "object",
118
- "additionalProperties": true
119
- }
120
- },
121
- "required": [],
122
- "additionalProperties": false
123
- },
124
- "default": {
125
- "$schema": "https://json-schema.org/draft/2020-12/schema",
126
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetResponseDefault",
127
- "type": "object",
128
- "properties": {
129
- "headers": {
130
- "type": "object",
131
- "additionalProperties": true
132
- },
133
- "body": {
134
- "$ref": "/ledger/v1/schemas/definitions/Error"
135
- }
136
- },
137
- "required": ["body"],
138
- "additionalProperties": false
139
- }
140
- }
141
- },
142
5
  "put": {
143
6
  "request": {
144
7
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -237,35 +100,50 @@
237
100
  }
238
101
  },
239
102
  "/ledger/v1/account/:accountId/:idFragment1": {
240
- "get": {
103
+ "put": {
241
104
  "request": {
242
105
  "$schema": "https://json-schema.org/draft/2020-12/schema",
243
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment1RequestContext",
106
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1RequestContext",
244
107
  "type": "object",
245
108
  "properties": {
246
109
  "params": {
247
110
  "type": "object",
248
111
  "additionalProperties": false,
249
112
  "properties": {
250
- "at": {
251
- "type": "string",
252
- "format": "date-time"
113
+ "accountId": {
114
+ "type": "string"
115
+ },
116
+ "idFragment1": {
117
+ "type": "string"
253
118
  }
254
119
  },
255
- "required": ["at"]
120
+ "required": ["accountId", "idFragment1"]
256
121
  },
257
122
  "headers": {
258
123
  "type": "object",
259
- "additionalProperties": true
124
+ "additionalProperties": true,
125
+ "properties": {
126
+ "created-on": {
127
+ "type": "string",
128
+ "format": "date-time"
129
+ },
130
+ "last-modified": {
131
+ "type": "string",
132
+ "format": "date-time"
133
+ }
134
+ }
135
+ },
136
+ "body": {
137
+ "$ref": "/ledger/v1/schemas/definitions/NewAccount"
260
138
  }
261
139
  },
262
- "required": ["params", "query"],
140
+ "required": ["params", "body"],
263
141
  "additionalProperties": false
264
142
  },
265
143
  "responses": {
266
- "200": {
144
+ "204": {
267
145
  "$schema": "https://json-schema.org/draft/2020-12/schema",
268
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment1ResponseOK",
146
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseNoContent",
269
147
  "type": "object",
270
148
  "properties": {
271
149
  "headers": {
@@ -285,17 +163,14 @@
285
163
  }
286
164
  },
287
165
  "required": ["created-on", "updated-on", "last-modified"]
288
- },
289
- "body": {
290
- "$ref": "/ledger/v1/schemas/definitions/Account"
291
166
  }
292
167
  },
293
- "required": ["headers", "body"],
168
+ "required": ["headers"],
294
169
  "additionalProperties": false
295
170
  },
296
- "404": {
171
+ "409": {
297
172
  "$schema": "https://json-schema.org/draft/2020-12/schema",
298
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment1ResponseNotFound",
173
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseConflict",
299
174
  "type": "object",
300
175
  "properties": {
301
176
  "headers": {
@@ -308,7 +183,7 @@
308
183
  },
309
184
  "default": {
310
185
  "$schema": "https://json-schema.org/draft/2020-12/schema",
311
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment1ResponseDefault",
186
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseDefault",
312
187
  "type": "object",
313
188
  "properties": {
314
189
  "headers": {
@@ -323,11 +198,13 @@
323
198
  "additionalProperties": false
324
199
  }
325
200
  }
326
- },
201
+ }
202
+ },
203
+ "/ledger/v1/account/:accountId/:idFragment1/:idFragment2": {
327
204
  "put": {
328
205
  "request": {
329
206
  "$schema": "https://json-schema.org/draft/2020-12/schema",
330
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1RequestContext",
207
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2RequestContext",
331
208
  "type": "object",
332
209
  "properties": {
333
210
  "params": {
@@ -339,9 +216,12 @@
339
216
  },
340
217
  "idFragment1": {
341
218
  "type": "string"
219
+ },
220
+ "idFragment2": {
221
+ "type": "string"
342
222
  }
343
223
  },
344
- "required": ["accountId", "idFragment1"]
224
+ "required": ["accountId", "idFragment1", "idFragment2"]
345
225
  },
346
226
  "headers": {
347
227
  "type": "object",
@@ -367,7 +247,7 @@
367
247
  "responses": {
368
248
  "204": {
369
249
  "$schema": "https://json-schema.org/draft/2020-12/schema",
370
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseNoContent",
250
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseNoContent",
371
251
  "type": "object",
372
252
  "properties": {
373
253
  "headers": {
@@ -394,7 +274,7 @@
394
274
  },
395
275
  "409": {
396
276
  "$schema": "https://json-schema.org/draft/2020-12/schema",
397
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseConflict",
277
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseConflict",
398
278
  "type": "object",
399
279
  "properties": {
400
280
  "headers": {
@@ -407,7 +287,7 @@
407
287
  },
408
288
  "default": {
409
289
  "$schema": "https://json-schema.org/draft/2020-12/schema",
410
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment1ResponseDefault",
290
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseDefault",
411
291
  "type": "object",
412
292
  "properties": {
413
293
  "headers": {
@@ -424,36 +304,57 @@
424
304
  }
425
305
  }
426
306
  },
427
- "/ledger/v1/account/:accountId/:idFragment1/:idFragment2": {
428
- "get": {
307
+ "/ledger/v1/account/:accountId/:idFragment1/:idFragment2/:idFragment3": {
308
+ "put": {
429
309
  "request": {
430
310
  "$schema": "https://json-schema.org/draft/2020-12/schema",
431
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment2RequestContext",
311
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3RequestContext",
432
312
  "type": "object",
433
313
  "properties": {
434
314
  "params": {
435
315
  "type": "object",
436
316
  "additionalProperties": false,
437
317
  "properties": {
438
- "at": {
439
- "type": "string",
440
- "format": "date-time"
318
+ "accountId": {
319
+ "type": "string"
320
+ },
321
+ "idFragment1": {
322
+ "type": "string"
323
+ },
324
+ "idFragment2": {
325
+ "type": "string"
326
+ },
327
+ "idFragment3": {
328
+ "type": "string"
441
329
  }
442
330
  },
443
- "required": ["at"]
331
+ "required": ["accountId", "idFragment1", "idFragment2", "idFragment3"]
444
332
  },
445
333
  "headers": {
446
334
  "type": "object",
447
- "additionalProperties": true
335
+ "additionalProperties": true,
336
+ "properties": {
337
+ "created-on": {
338
+ "type": "string",
339
+ "format": "date-time"
340
+ },
341
+ "last-modified": {
342
+ "type": "string",
343
+ "format": "date-time"
344
+ }
345
+ }
346
+ },
347
+ "body": {
348
+ "$ref": "/ledger/v1/schemas/definitions/NewAccount"
448
349
  }
449
350
  },
450
- "required": ["params", "query"],
351
+ "required": ["params", "body"],
451
352
  "additionalProperties": false
452
353
  },
453
354
  "responses": {
454
- "200": {
355
+ "204": {
455
356
  "$schema": "https://json-schema.org/draft/2020-12/schema",
456
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment2ResponseOK",
357
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseNoContent",
457
358
  "type": "object",
458
359
  "properties": {
459
360
  "headers": {
@@ -473,17 +374,14 @@
473
374
  }
474
375
  },
475
376
  "required": ["created-on", "updated-on", "last-modified"]
476
- },
477
- "body": {
478
- "$ref": "/ledger/v1/schemas/definitions/Account"
479
377
  }
480
378
  },
481
- "required": ["headers", "body"],
379
+ "required": ["headers"],
482
380
  "additionalProperties": false
483
381
  },
484
- "404": {
382
+ "409": {
485
383
  "$schema": "https://json-schema.org/draft/2020-12/schema",
486
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment2ResponseNotFound",
384
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseConflict",
487
385
  "type": "object",
488
386
  "properties": {
489
387
  "headers": {
@@ -496,7 +394,7 @@
496
394
  },
497
395
  "default": {
498
396
  "$schema": "https://json-schema.org/draft/2020-12/schema",
499
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment2ResponseDefault",
397
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseDefault",
500
398
  "type": "object",
501
399
  "properties": {
502
400
  "headers": {
@@ -511,33 +409,33 @@
511
409
  "additionalProperties": false
512
410
  }
513
411
  }
514
- },
412
+ }
413
+ },
414
+ "/ledger/v1/account-entries": {},
415
+ "/ledger/v1/entry/:entryId": {
515
416
  "put": {
516
417
  "request": {
517
418
  "$schema": "https://json-schema.org/draft/2020-12/schema",
518
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2RequestContext",
419
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutRequestContext",
519
420
  "type": "object",
520
421
  "properties": {
521
422
  "params": {
522
423
  "type": "object",
523
424
  "additionalProperties": false,
524
425
  "properties": {
525
- "accountId": {
526
- "type": "string"
527
- },
528
- "idFragment1": {
529
- "type": "string"
530
- },
531
- "idFragment2": {
426
+ "entryId": {
532
427
  "type": "string"
533
428
  }
534
429
  },
535
- "required": ["accountId", "idFragment1", "idFragment2"]
430
+ "required": ["entryId"]
536
431
  },
537
432
  "headers": {
538
433
  "type": "object",
539
434
  "additionalProperties": true,
540
435
  "properties": {
436
+ "if-match": {
437
+ "type": "string"
438
+ },
541
439
  "created-on": {
542
440
  "type": "string",
543
441
  "format": "date-time"
@@ -549,7 +447,7 @@
549
447
  }
550
448
  },
551
449
  "body": {
552
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
450
+ "$ref": "/ledger/v1/schemas/definitions/NewEntry"
553
451
  }
554
452
  },
555
453
  "required": ["params", "body"],
@@ -558,7 +456,7 @@
558
456
  "responses": {
559
457
  "204": {
560
458
  "$schema": "https://json-schema.org/draft/2020-12/schema",
561
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseNoContent",
459
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseNoContent",
562
460
  "type": "object",
563
461
  "properties": {
564
462
  "headers": {
@@ -585,7 +483,20 @@
585
483
  },
586
484
  "409": {
587
485
  "$schema": "https://json-schema.org/draft/2020-12/schema",
588
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseConflict",
486
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseConflict",
487
+ "type": "object",
488
+ "properties": {
489
+ "headers": {
490
+ "type": "object",
491
+ "additionalProperties": true
492
+ }
493
+ },
494
+ "required": [],
495
+ "additionalProperties": false
496
+ },
497
+ "412": {
498
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
499
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponsePreconditionFailed",
589
500
  "type": "object",
590
501
  "properties": {
591
502
  "headers": {
@@ -598,7 +509,7 @@
598
509
  },
599
510
  "default": {
600
511
  "$schema": "https://json-schema.org/draft/2020-12/schema",
601
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment2ResponseDefault",
512
+ "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseDefault",
602
513
  "type": "object",
603
514
  "properties": {
604
515
  "headers": {
@@ -615,691 +526,8 @@
615
526
  }
616
527
  }
617
528
  },
618
- "/ledger/v1/account/:accountId/:idFragment1/:idFragment2/:idFragment3": {
619
- "get": {
620
- "request": {
621
- "$schema": "https://json-schema.org/draft/2020-12/schema",
622
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment3RequestContext",
623
- "type": "object",
624
- "properties": {
625
- "params": {
626
- "type": "object",
627
- "additionalProperties": false,
628
- "properties": {
629
- "at": {
630
- "type": "string",
631
- "format": "date-time"
632
- }
633
- },
634
- "required": ["at"]
635
- },
636
- "headers": {
637
- "type": "object",
638
- "additionalProperties": true
639
- }
640
- },
641
- "required": ["params", "query"],
642
- "additionalProperties": false
643
- },
644
- "responses": {
645
- "200": {
646
- "$schema": "https://json-schema.org/draft/2020-12/schema",
647
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment3ResponseOK",
648
- "type": "object",
649
- "properties": {
650
- "headers": {
651
- "type": "object",
652
- "properties": {
653
- "created-on": {
654
- "type": "string",
655
- "format": "date-time"
656
- },
657
- "updated-on": {
658
- "type": "string",
659
- "format": "date-time"
660
- },
661
- "last-modified": {
662
- "type": "string",
663
- "format": "date-time"
664
- }
665
- },
666
- "required": ["created-on", "updated-on", "last-modified"]
667
- },
668
- "body": {
669
- "$ref": "/ledger/v1/schemas/definitions/Account"
670
- }
671
- },
672
- "required": ["headers", "body"],
673
- "additionalProperties": false
674
- },
675
- "404": {
676
- "$schema": "https://json-schema.org/draft/2020-12/schema",
677
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment3ResponseNotFound",
678
- "type": "object",
679
- "properties": {
680
- "headers": {
681
- "type": "object",
682
- "additionalProperties": true
683
- }
684
- },
685
- "required": [],
686
- "additionalProperties": false
687
- },
688
- "default": {
689
- "$schema": "https://json-schema.org/draft/2020-12/schema",
690
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountGetFragment3ResponseDefault",
691
- "type": "object",
692
- "properties": {
693
- "headers": {
694
- "type": "object",
695
- "additionalProperties": true
696
- },
697
- "body": {
698
- "$ref": "/ledger/v1/schemas/definitions/Error"
699
- }
700
- },
701
- "required": ["body"],
702
- "additionalProperties": false
703
- }
704
- }
705
- },
706
- "put": {
707
- "request": {
708
- "$schema": "https://json-schema.org/draft/2020-12/schema",
709
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3RequestContext",
710
- "type": "object",
711
- "properties": {
712
- "params": {
713
- "type": "object",
714
- "additionalProperties": false,
715
- "properties": {
716
- "accountId": {
717
- "type": "string"
718
- },
719
- "idFragment1": {
720
- "type": "string"
721
- },
722
- "idFragment2": {
723
- "type": "string"
724
- },
725
- "idFragment3": {
726
- "type": "string"
727
- }
728
- },
729
- "required": ["accountId", "idFragment1", "idFragment2", "idFragment3"]
730
- },
731
- "headers": {
732
- "type": "object",
733
- "additionalProperties": true,
734
- "properties": {
735
- "created-on": {
736
- "type": "string",
737
- "format": "date-time"
738
- },
739
- "last-modified": {
740
- "type": "string",
741
- "format": "date-time"
742
- }
743
- }
744
- },
745
- "body": {
746
- "$ref": "/ledger/v1/schemas/definitions/NewAccount"
747
- }
748
- },
749
- "required": ["params", "body"],
750
- "additionalProperties": false
751
- },
752
- "responses": {
753
- "204": {
754
- "$schema": "https://json-schema.org/draft/2020-12/schema",
755
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseNoContent",
756
- "type": "object",
757
- "properties": {
758
- "headers": {
759
- "type": "object",
760
- "properties": {
761
- "created-on": {
762
- "type": "string",
763
- "format": "date-time"
764
- },
765
- "updated-on": {
766
- "type": "string",
767
- "format": "date-time"
768
- },
769
- "last-modified": {
770
- "type": "string",
771
- "format": "date-time"
772
- }
773
- },
774
- "required": ["created-on", "updated-on", "last-modified"]
775
- }
776
- },
777
- "required": ["headers"],
778
- "additionalProperties": false
779
- },
780
- "409": {
781
- "$schema": "https://json-schema.org/draft/2020-12/schema",
782
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseConflict",
783
- "type": "object",
784
- "properties": {
785
- "headers": {
786
- "type": "object",
787
- "additionalProperties": true
788
- }
789
- },
790
- "required": [],
791
- "additionalProperties": false
792
- },
793
- "default": {
794
- "$schema": "https://json-schema.org/draft/2020-12/schema",
795
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountPutFragment3ResponseDefault",
796
- "type": "object",
797
- "properties": {
798
- "headers": {
799
- "type": "object",
800
- "additionalProperties": true
801
- },
802
- "body": {
803
- "$ref": "/ledger/v1/schemas/definitions/Error"
804
- }
805
- },
806
- "required": ["body"],
807
- "additionalProperties": false
808
- }
809
- }
810
- }
811
- },
812
- "/ledger/v1/account-entries": {
813
- "get": {
814
- "request": {
815
- "$schema": "https://json-schema.org/draft/2020-12/schema",
816
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountEntriesQueryGetRequestContext",
817
- "type": "object",
818
- "properties": {
819
- "params": {
820
- "type": "object",
821
- "additionalProperties": false,
822
- "properties": {
823
- "toDate": {
824
- "type": "string",
825
- "format": "date-time"
826
- },
827
- "fromDate": {
828
- "type": "string",
829
- "format": "date-time"
830
- },
831
- "accountIds": {
832
- "type": "array",
833
- "minItems": 1,
834
- "items": {
835
- "type": "string"
836
- }
837
- }
838
- },
839
- "required": ["toDate", "accountIds"]
840
- },
841
- "headers": {
842
- "type": "object",
843
- "additionalProperties": true
844
- }
845
- },
846
- "required": ["query"],
847
- "additionalProperties": false
848
- },
849
- "responses": {
850
- "200": {
851
- "$schema": "https://json-schema.org/draft/2020-12/schema",
852
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountEntriesQueryGetResponseOK",
853
- "type": "object",
854
- "properties": {
855
- "headers": {
856
- "type": "object",
857
- "additionalProperties": true
858
- },
859
- "body": {
860
- "$ref": "/ledger/v1/schemas/definitions/EntriesList"
861
- }
862
- },
863
- "required": ["body"],
864
- "additionalProperties": false
865
- },
866
- "404": {
867
- "$schema": "https://json-schema.org/draft/2020-12/schema",
868
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountEntriesQueryGetResponseNotFound",
869
- "type": "object",
870
- "properties": {
871
- "headers": {
872
- "type": "object",
873
- "additionalProperties": true
874
- }
875
- },
876
- "required": [],
877
- "additionalProperties": false
878
- },
879
- "default": {
880
- "$schema": "https://json-schema.org/draft/2020-12/schema",
881
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/AccountEntriesQueryGetResponseDefault",
882
- "type": "object",
883
- "properties": {
884
- "headers": {
885
- "type": "object",
886
- "additionalProperties": true
887
- },
888
- "body": {
889
- "$ref": "/ledger/v1/schemas/definitions/Error"
890
- }
891
- },
892
- "required": ["body"],
893
- "additionalProperties": false
894
- }
895
- }
896
- }
897
- },
898
- "/ledger/v1/entry/:entryId": {
899
- "get": {
900
- "request": {
901
- "$schema": "https://json-schema.org/draft/2020-12/schema",
902
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryGetRequestContext",
903
- "type": "object",
904
- "properties": {
905
- "params": {
906
- "type": "object",
907
- "additionalProperties": false,
908
- "properties": {
909
- "at": {
910
- "type": "string",
911
- "format": "date-time"
912
- }
913
- },
914
- "required": ["at"]
915
- },
916
- "headers": {
917
- "type": "object",
918
- "additionalProperties": true
919
- }
920
- },
921
- "required": ["params", "query"],
922
- "additionalProperties": false
923
- },
924
- "responses": {
925
- "200": {
926
- "$schema": "https://json-schema.org/draft/2020-12/schema",
927
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryGetResponseOK",
928
- "type": "object",
929
- "properties": {
930
- "headers": {
931
- "type": "object",
932
- "properties": {
933
- "created-on": {
934
- "type": "string",
935
- "format": "date-time"
936
- },
937
- "updated-on": {
938
- "type": "string",
939
- "format": "date-time"
940
- },
941
- "last-modified": {
942
- "type": "string",
943
- "format": "date-time"
944
- }
945
- },
946
- "required": ["created-on", "updated-on", "last-modified"]
947
- },
948
- "body": {
949
- "$ref": "/ledger/v1/schemas/definitions/ResponseEntry"
950
- }
951
- },
952
- "required": ["headers", "body"],
953
- "additionalProperties": false
954
- },
955
- "404": {
956
- "$schema": "https://json-schema.org/draft/2020-12/schema",
957
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryGetResponseNotFound",
958
- "type": "object",
959
- "properties": {
960
- "headers": {
961
- "type": "object",
962
- "additionalProperties": true
963
- }
964
- },
965
- "required": [],
966
- "additionalProperties": false
967
- },
968
- "default": {
969
- "$schema": "https://json-schema.org/draft/2020-12/schema",
970
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryGetResponseDefault",
971
- "type": "object",
972
- "properties": {
973
- "headers": {
974
- "type": "object",
975
- "additionalProperties": true
976
- },
977
- "body": {
978
- "$ref": "/ledger/v1/schemas/definitions/Error"
979
- }
980
- },
981
- "required": ["body"],
982
- "additionalProperties": false
983
- }
984
- }
985
- },
986
- "put": {
987
- "request": {
988
- "$schema": "https://json-schema.org/draft/2020-12/schema",
989
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutRequestContext",
990
- "type": "object",
991
- "properties": {
992
- "params": {
993
- "type": "object",
994
- "additionalProperties": false,
995
- "properties": {
996
- "entryId": {
997
- "type": "string"
998
- }
999
- },
1000
- "required": ["entryId"]
1001
- },
1002
- "headers": {
1003
- "type": "object",
1004
- "additionalProperties": true,
1005
- "properties": {
1006
- "if-match": {
1007
- "type": "string"
1008
- },
1009
- "created-on": {
1010
- "type": "string",
1011
- "format": "date-time"
1012
- },
1013
- "last-modified": {
1014
- "type": "string",
1015
- "format": "date-time"
1016
- }
1017
- }
1018
- },
1019
- "body": {
1020
- "$ref": "/ledger/v1/schemas/definitions/NewEntry"
1021
- }
1022
- },
1023
- "required": ["params", "body"],
1024
- "additionalProperties": false
1025
- },
1026
- "responses": {
1027
- "204": {
1028
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1029
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseNoContent",
1030
- "type": "object",
1031
- "properties": {
1032
- "headers": {
1033
- "type": "object",
1034
- "properties": {
1035
- "created-on": {
1036
- "type": "string",
1037
- "format": "date-time"
1038
- },
1039
- "updated-on": {
1040
- "type": "string",
1041
- "format": "date-time"
1042
- },
1043
- "last-modified": {
1044
- "type": "string",
1045
- "format": "date-time"
1046
- }
1047
- },
1048
- "required": ["created-on", "updated-on", "last-modified"]
1049
- }
1050
- },
1051
- "required": ["headers"],
1052
- "additionalProperties": false
1053
- },
1054
- "409": {
1055
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1056
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseConflict",
1057
- "type": "object",
1058
- "properties": {
1059
- "headers": {
1060
- "type": "object",
1061
- "additionalProperties": true
1062
- }
1063
- },
1064
- "required": [],
1065
- "additionalProperties": false
1066
- },
1067
- "412": {
1068
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1069
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponsePreconditionFailed",
1070
- "type": "object",
1071
- "properties": {
1072
- "headers": {
1073
- "type": "object",
1074
- "additionalProperties": true
1075
- }
1076
- },
1077
- "required": [],
1078
- "additionalProperties": false
1079
- },
1080
- "default": {
1081
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1082
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/EntryPutResponseDefault",
1083
- "type": "object",
1084
- "properties": {
1085
- "headers": {
1086
- "type": "object",
1087
- "additionalProperties": true
1088
- },
1089
- "body": {
1090
- "$ref": "/ledger/v1/schemas/definitions/Error"
1091
- }
1092
- },
1093
- "required": ["body"],
1094
- "additionalProperties": false
1095
- }
1096
- }
1097
- }
1098
- },
1099
- "/ledger/v1/balance": {
1100
- "get": {
1101
- "request": {
1102
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1103
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/BalanceGetRequestContext",
1104
- "type": "object",
1105
- "properties": {
1106
- "params": {
1107
- "type": "object",
1108
- "additionalProperties": false,
1109
- "properties": {
1110
- "accountIds": {
1111
- "type": "array",
1112
- "minItems": 1,
1113
- "items": {
1114
- "type": "string"
1115
- }
1116
- },
1117
- "at": {
1118
- "type": "string",
1119
- "format": "date-time"
1120
- }
1121
- },
1122
- "required": ["accountIds", "at"]
1123
- },
1124
- "headers": {
1125
- "type": "object",
1126
- "additionalProperties": true,
1127
- "properties": {
1128
- "if-none-match": {
1129
- "type": "string"
1130
- }
1131
- }
1132
- }
1133
- },
1134
- "required": ["query"],
1135
- "additionalProperties": false
1136
- },
1137
- "responses": {
1138
- "200": {
1139
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1140
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/BalanceGetResponseOK",
1141
- "type": "object",
1142
- "properties": {
1143
- "headers": {
1144
- "type": "object",
1145
- "properties": {
1146
- "etag": {
1147
- "type": "string"
1148
- }
1149
- },
1150
- "required": ["etag"]
1151
- },
1152
- "body": {
1153
- "$ref": "/ledger/v1/schemas/definitions/BalanceList"
1154
- }
1155
- },
1156
- "required": ["headers", "body"],
1157
- "additionalProperties": false
1158
- },
1159
- "400": {
1160
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1161
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/BalanceGetResponseBadRequest",
1162
- "type": "object",
1163
- "properties": {
1164
- "headers": {
1165
- "type": "object",
1166
- "additionalProperties": true
1167
- },
1168
- "body": {
1169
- "$ref": "/ledger/v1/schemas/definitions/Error"
1170
- }
1171
- },
1172
- "required": ["body"],
1173
- "additionalProperties": false
1174
- },
1175
- "default": {
1176
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1177
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/BalanceGetResponseDefault",
1178
- "type": "object",
1179
- "properties": {
1180
- "headers": {
1181
- "type": "object",
1182
- "additionalProperties": true
1183
- },
1184
- "body": {
1185
- "$ref": "/ledger/v1/schemas/definitions/Error"
1186
- }
1187
- },
1188
- "required": ["body"],
1189
- "additionalProperties": false
1190
- }
1191
- }
1192
- }
1193
- },
1194
- "/ledger/v1/total": {
1195
- "get": {
1196
- "request": {
1197
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1198
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/TotalGetRequestContext",
1199
- "type": "object",
1200
- "properties": {
1201
- "params": {
1202
- "type": "object",
1203
- "additionalProperties": false,
1204
- "properties": {
1205
- "accountIds": {
1206
- "type": "array",
1207
- "minItems": 1,
1208
- "items": {
1209
- "type": "string"
1210
- }
1211
- },
1212
- "filteredAccounts": {
1213
- "type": "array",
1214
- "minItems": 1,
1215
- "items": {
1216
- "type": "string"
1217
- }
1218
- },
1219
- "fromDate": {
1220
- "type": "string",
1221
- "format": "date-time"
1222
- },
1223
- "toDate": {
1224
- "type": "string",
1225
- "format": "date-time"
1226
- }
1227
- },
1228
- "required": ["accountIds", "toDate"]
1229
- },
1230
- "headers": {
1231
- "type": "object",
1232
- "additionalProperties": true
1233
- }
1234
- },
1235
- "required": ["query"],
1236
- "additionalProperties": false
1237
- },
1238
- "responses": {
1239
- "200": {
1240
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1241
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/TotalGetResponseOK",
1242
- "type": "object",
1243
- "properties": {
1244
- "headers": {
1245
- "type": "object",
1246
- "additionalProperties": true
1247
- },
1248
- "body": {
1249
- "$ref": "/ledger/v1/schemas/definitions/TotalsList"
1250
- }
1251
- },
1252
- "required": ["body"],
1253
- "additionalProperties": false
1254
- },
1255
- "400": {
1256
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1257
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/TotalGetResponseBadRequest",
1258
- "type": "object",
1259
- "properties": {
1260
- "headers": {
1261
- "type": "object",
1262
- "additionalProperties": true
1263
- },
1264
- "body": {
1265
- "$ref": "/ledger/v1/schemas/definitions/Error"
1266
- }
1267
- },
1268
- "required": ["body"],
1269
- "additionalProperties": false
1270
- },
1271
- "404": {
1272
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1273
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/TotalGetResponseNotFound",
1274
- "type": "object",
1275
- "properties": {
1276
- "headers": {
1277
- "type": "object",
1278
- "additionalProperties": true
1279
- }
1280
- },
1281
- "required": [],
1282
- "additionalProperties": false
1283
- },
1284
- "default": {
1285
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1286
- "$id": "https://eslint-plugin.checkdigit/ledger/v1/schemas/api/TotalGetResponseDefault",
1287
- "type": "object",
1288
- "properties": {
1289
- "headers": {
1290
- "type": "object",
1291
- "additionalProperties": true
1292
- },
1293
- "body": {
1294
- "$ref": "/ledger/v1/schemas/definitions/Error"
1295
- }
1296
- },
1297
- "required": ["body"],
1298
- "additionalProperties": false
1299
- }
1300
- }
1301
- }
1302
- }
529
+ "/ledger/v1/balance": {},
530
+ "/ledger/v1/total": {}
1303
531
  },
1304
532
  "definitions": {
1305
533
  "Ping": {