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

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.
Files changed (33) hide show
  1. package/dist-mjs/athena/api-locator.mjs +9 -3
  2. package/dist-mjs/athena/api-matcher.mjs +4 -2
  3. package/dist-mjs/athena/athena.mjs +5 -5
  4. package/dist-mjs/openapi/generate-schema.mjs +9 -1
  5. package/dist-mjs/openapi/service-schema-generator.mjs +40 -18
  6. package/dist-types/athena/api-locator.d.ts +1 -1
  7. package/package.json +1 -1
  8. package/src/api/v1/swagger.yml +81 -0
  9. package/src/athena/api-locator.ts +9 -2
  10. package/src/athena/api-matcher.ts +3 -1
  11. package/src/athena/athena.ts +4 -4
  12. package/src/openapi/generate-schema.ts +12 -0
  13. package/src/openapi/service-schema-generator.ts +46 -19
  14. package/src/services/eslintPlugin/v1/swagger.schema.deref.json +167 -0
  15. package/src/services/interchange/v1/swagger.schema.deref.json +1 -75
  16. package/src/services/interchange/v1/swagger.schema.json +1 -51
  17. package/src/services/ledger/v1/swagger.schema.deref.json +49 -2610
  18. package/src/services/ledger/v1/swagger.schema.json +106 -878
  19. package/src/services/link/v1/swagger.schema.deref.json +3 -426
  20. package/src/services/link/v1/swagger.schema.json +3 -261
  21. package/src/services/message/v1/swagger.schema.deref.json +1669 -8447
  22. package/src/services/message/v1/swagger.schema.json +5 -531
  23. package/src/services/message/v2/swagger.schema.deref.json +5125 -27716
  24. package/src/services/message/v2/swagger.schema.json +5 -523
  25. package/src/services/paymentCard/v1/swagger.schema.deref.json +36 -1185
  26. package/src/services/paymentCard/v1/swagger.schema.json +5 -499
  27. package/src/services/paymentCard/v2/swagger.schema.deref.json +60 -1186
  28. package/src/services/paymentCard/v2/swagger.schema.json +5 -511
  29. package/src/services/person/v1/swagger.schema.deref.json +510 -2348
  30. package/src/services/person/v1/swagger.schema.json +4 -470
  31. package/src/services/teampayClientManagement/v1/swagger.schema.deref.json +155 -1254
  32. package/src/services/teampayClientManagement/v1/swagger.schema.json +3 -369
  33. package/src/services/vault/v2/swagger.schema.deref.json +2048 -0
@@ -1,297 +1,9 @@
1
1
  {
2
2
  "apis": {
3
- "/message/v1/ping": {
4
- "get": {
5
- "request": {
6
- "$schema": "https://json-schema.org/draft/2020-12/schema",
7
- "$id": "https://eslint-plugin.checkdigit/message/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/message/v1/schemas/api/PingGetResponseOK",
22
- "type": "object",
23
- "properties": {
24
- "headers": {
25
- "type": "object",
26
- "additionalProperties": true
27
- },
28
- "body": {
29
- "$ref": "/message/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/message/v1/schemas/api/PingGetResponseDefault",
38
- "type": "object",
39
- "properties": {
40
- "headers": {
41
- "type": "object",
42
- "additionalProperties": true
43
- },
44
- "body": {
45
- "$ref": "/message/v1/schemas/definitions/Error"
46
- }
47
- },
48
- "required": ["body"],
49
- "additionalProperties": false
50
- }
51
- }
52
- }
53
- },
54
- "/message/v1/request": {
55
- "get": {
56
- "request": {
57
- "$schema": "https://json-schema.org/draft/2020-12/schema",
58
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestQueryGetRequestContext",
59
- "type": "object",
60
- "properties": {
61
- "params": {
62
- "type": "object",
63
- "additionalProperties": false,
64
- "properties": {
65
- "cardId": {
66
- "type": "array",
67
- "minItems": 1,
68
- "items": {
69
- "type": "string"
70
- }
71
- },
72
- "toDate": {
73
- "type": "string",
74
- "format": "date-time"
75
- },
76
- "fromDate": {
77
- "type": "string",
78
- "format": "date-time"
79
- }
80
- },
81
- "required": ["cardId", "toDate"]
82
- },
83
- "headers": {
84
- "type": "object",
85
- "additionalProperties": true
86
- }
87
- },
88
- "required": ["query"],
89
- "additionalProperties": false
90
- },
91
- "responses": {
92
- "200": {
93
- "$schema": "https://json-schema.org/draft/2020-12/schema",
94
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestQueryGetResponseOK",
95
- "type": "object",
96
- "properties": {
97
- "headers": {
98
- "type": "object",
99
- "additionalProperties": true
100
- },
101
- "body": {
102
- "$ref": "/message/v1/schemas/definitions/RequestResponse"
103
- }
104
- },
105
- "required": ["body"],
106
- "additionalProperties": false
107
- },
108
- "default": {
109
- "$schema": "https://json-schema.org/draft/2020-12/schema",
110
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestQueryGetResponseDefault",
111
- "type": "object",
112
- "properties": {
113
- "headers": {
114
- "type": "object",
115
- "additionalProperties": true
116
- },
117
- "body": {
118
- "$ref": "/message/v1/schemas/definitions/Error"
119
- }
120
- },
121
- "required": ["body"],
122
- "additionalProperties": false
123
- }
124
- }
125
- }
126
- },
127
- "/message/v1/picked-request": {
128
- "get": {
129
- "request": {
130
- "$schema": "https://json-schema.org/draft/2020-12/schema",
131
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedRequestGetRequestContext",
132
- "type": "object",
133
- "properties": {
134
- "params": {
135
- "type": "object",
136
- "additionalProperties": false,
137
- "properties": {
138
- "cardId": {
139
- "type": "array",
140
- "minItems": 1,
141
- "items": {
142
- "type": "string"
143
- }
144
- },
145
- "toDate": {
146
- "type": "string",
147
- "format": "date-time"
148
- },
149
- "fromDate": {
150
- "type": "string",
151
- "format": "date-time"
152
- },
153
- "fields": {
154
- "type": "array",
155
- "minItems": 1,
156
- "items": {
157
- "$ref": "/message/v1/schemas/definitions/RequestField"
158
- }
159
- }
160
- },
161
- "required": ["cardId", "toDate", "fields"]
162
- },
163
- "headers": {
164
- "type": "object",
165
- "additionalProperties": true
166
- }
167
- },
168
- "required": ["query"],
169
- "additionalProperties": false
170
- },
171
- "responses": {
172
- "200": {
173
- "$schema": "https://json-schema.org/draft/2020-12/schema",
174
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedRequestGetResponseOK",
175
- "type": "object",
176
- "properties": {
177
- "headers": {
178
- "type": "object",
179
- "additionalProperties": true
180
- },
181
- "body": {
182
- "$ref": "/message/v1/schemas/definitions/PickedRequestResponse"
183
- }
184
- },
185
- "required": ["body"],
186
- "additionalProperties": false
187
- },
188
- "default": {
189
- "$schema": "https://json-schema.org/draft/2020-12/schema",
190
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedRequestGetResponseDefault",
191
- "type": "object",
192
- "properties": {
193
- "headers": {
194
- "type": "object",
195
- "additionalProperties": true
196
- },
197
- "body": {
198
- "$ref": "/message/v1/schemas/definitions/Error"
199
- }
200
- },
201
- "required": ["body"],
202
- "additionalProperties": false
203
- }
204
- }
205
- }
206
- },
3
+ "/message/v1/ping": {},
4
+ "/message/v1/request": {},
5
+ "/message/v1/picked-request": {},
207
6
  "/message/v1/request/:messageId": {
208
- "get": {
209
- "request": {
210
- "$schema": "https://json-schema.org/draft/2020-12/schema",
211
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestGetRequestContext",
212
- "type": "object",
213
- "properties": {
214
- "params": {
215
- "type": "object",
216
- "additionalProperties": false,
217
- "properties": {
218
- "at": {
219
- "type": "string",
220
- "format": "date-time"
221
- }
222
- },
223
- "required": ["at"]
224
- },
225
- "headers": {
226
- "type": "object",
227
- "additionalProperties": true
228
- }
229
- },
230
- "required": ["params", "query"],
231
- "additionalProperties": false
232
- },
233
- "responses": {
234
- "200": {
235
- "$schema": "https://json-schema.org/draft/2020-12/schema",
236
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestGetResponseOK",
237
- "type": "object",
238
- "properties": {
239
- "headers": {
240
- "type": "object",
241
- "properties": {
242
- "last-modified": {
243
- "type": "string",
244
- "format": "date-time"
245
- },
246
- "created-on": {
247
- "type": "string",
248
- "format": "date-time"
249
- },
250
- "updated-on": {
251
- "type": "string",
252
- "format": "date-time"
253
- }
254
- },
255
- "required": ["last-modified", "created-on", "updated-on"]
256
- },
257
- "body": {
258
- "$ref": "/message/v1/schemas/definitions/Request"
259
- }
260
- },
261
- "required": ["headers", "body"],
262
- "additionalProperties": false
263
- },
264
- "404": {
265
- "$schema": "https://json-schema.org/draft/2020-12/schema",
266
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestGetResponseNotFound",
267
- "type": "object",
268
- "properties": {
269
- "headers": {
270
- "type": "object",
271
- "additionalProperties": true
272
- }
273
- },
274
- "required": [],
275
- "additionalProperties": false
276
- },
277
- "default": {
278
- "$schema": "https://json-schema.org/draft/2020-12/schema",
279
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/RequestGetResponseDefault",
280
- "type": "object",
281
- "properties": {
282
- "headers": {
283
- "type": "object",
284
- "additionalProperties": true
285
- },
286
- "body": {
287
- "$ref": "/message/v1/schemas/definitions/Error"
288
- }
289
- },
290
- "required": ["body"],
291
- "additionalProperties": false
292
- }
293
- }
294
- },
295
7
  "put": {
296
8
  "request": {
297
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -389,247 +101,9 @@
389
101
  }
390
102
  }
391
103
  },
392
- "/message/v1/response": {
393
- "get": {
394
- "request": {
395
- "$schema": "https://json-schema.org/draft/2020-12/schema",
396
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseQueryGetRequestContext",
397
- "type": "object",
398
- "properties": {
399
- "params": {
400
- "type": "object",
401
- "additionalProperties": false,
402
- "properties": {
403
- "cardId": {
404
- "type": "array",
405
- "minItems": 1,
406
- "items": {
407
- "type": "string"
408
- }
409
- },
410
- "toDate": {
411
- "type": "string",
412
- "format": "date-time"
413
- },
414
- "fromDate": {
415
- "type": "string",
416
- "format": "date-time"
417
- }
418
- },
419
- "required": ["cardId", "toDate"]
420
- },
421
- "headers": {
422
- "type": "object",
423
- "additionalProperties": true
424
- }
425
- },
426
- "required": ["query"],
427
- "additionalProperties": false
428
- },
429
- "responses": {
430
- "200": {
431
- "$schema": "https://json-schema.org/draft/2020-12/schema",
432
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseQueryGetResponseOK",
433
- "type": "object",
434
- "properties": {
435
- "headers": {
436
- "type": "object",
437
- "additionalProperties": true
438
- },
439
- "body": {
440
- "$ref": "/message/v1/schemas/definitions/ResponseResponse"
441
- }
442
- },
443
- "required": ["body"],
444
- "additionalProperties": false
445
- },
446
- "default": {
447
- "$schema": "https://json-schema.org/draft/2020-12/schema",
448
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseQueryGetResponseDefault",
449
- "type": "object",
450
- "properties": {
451
- "headers": {
452
- "type": "object",
453
- "additionalProperties": true
454
- },
455
- "body": {
456
- "$ref": "/message/v1/schemas/definitions/Error"
457
- }
458
- },
459
- "required": ["body"],
460
- "additionalProperties": false
461
- }
462
- }
463
- }
464
- },
465
- "/message/v1/picked-response": {
466
- "get": {
467
- "request": {
468
- "$schema": "https://json-schema.org/draft/2020-12/schema",
469
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedResponseGetRequestContext",
470
- "type": "object",
471
- "properties": {
472
- "params": {
473
- "type": "object",
474
- "additionalProperties": false,
475
- "properties": {
476
- "cardId": {
477
- "type": "array",
478
- "minItems": 1,
479
- "items": {
480
- "type": "string"
481
- }
482
- },
483
- "toDate": {
484
- "type": "string",
485
- "format": "date-time"
486
- },
487
- "fromDate": {
488
- "type": "string",
489
- "format": "date-time"
490
- },
491
- "fields": {
492
- "type": "array",
493
- "minItems": 1,
494
- "items": {
495
- "$ref": "/message/v1/schemas/definitions/ResponseField"
496
- }
497
- }
498
- },
499
- "required": ["cardId", "toDate", "fields"]
500
- },
501
- "headers": {
502
- "type": "object",
503
- "additionalProperties": true
504
- }
505
- },
506
- "required": ["query"],
507
- "additionalProperties": false
508
- },
509
- "responses": {
510
- "200": {
511
- "$schema": "https://json-schema.org/draft/2020-12/schema",
512
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedResponseGetResponseOK",
513
- "type": "object",
514
- "properties": {
515
- "headers": {
516
- "type": "object",
517
- "additionalProperties": true
518
- },
519
- "body": {
520
- "$ref": "/message/v1/schemas/definitions/PickedResponseResponse"
521
- }
522
- },
523
- "required": ["body"],
524
- "additionalProperties": false
525
- },
526
- "default": {
527
- "$schema": "https://json-schema.org/draft/2020-12/schema",
528
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/PickedResponseGetResponseDefault",
529
- "type": "object",
530
- "properties": {
531
- "headers": {
532
- "type": "object",
533
- "additionalProperties": true
534
- },
535
- "body": {
536
- "$ref": "/message/v1/schemas/definitions/Error"
537
- }
538
- },
539
- "required": ["body"],
540
- "additionalProperties": false
541
- }
542
- }
543
- }
544
- },
104
+ "/message/v1/response": {},
105
+ "/message/v1/picked-response": {},
545
106
  "/message/v1/response/:messageId": {
546
- "get": {
547
- "request": {
548
- "$schema": "https://json-schema.org/draft/2020-12/schema",
549
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseGetRequestContext",
550
- "type": "object",
551
- "properties": {
552
- "params": {
553
- "type": "object",
554
- "additionalProperties": false,
555
- "properties": {
556
- "at": {
557
- "type": "string",
558
- "format": "date-time"
559
- }
560
- },
561
- "required": ["at"]
562
- },
563
- "headers": {
564
- "type": "object",
565
- "additionalProperties": true
566
- }
567
- },
568
- "required": ["params", "query"],
569
- "additionalProperties": false
570
- },
571
- "responses": {
572
- "200": {
573
- "$schema": "https://json-schema.org/draft/2020-12/schema",
574
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseGetResponseOK",
575
- "type": "object",
576
- "properties": {
577
- "headers": {
578
- "type": "object",
579
- "properties": {
580
- "last-modified": {
581
- "type": "string",
582
- "format": "date-time"
583
- },
584
- "created-on": {
585
- "type": "string",
586
- "format": "date-time"
587
- },
588
- "updated-on": {
589
- "type": "string",
590
- "format": "date-time"
591
- }
592
- },
593
- "required": ["last-modified", "created-on", "updated-on"]
594
- },
595
- "body": {
596
- "$ref": "/message/v1/schemas/definitions/Response"
597
- }
598
- },
599
- "required": ["headers", "body"],
600
- "additionalProperties": false
601
- },
602
- "404": {
603
- "$schema": "https://json-schema.org/draft/2020-12/schema",
604
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseGetResponseNotFound",
605
- "type": "object",
606
- "properties": {
607
- "headers": {
608
- "type": "object",
609
- "additionalProperties": true
610
- }
611
- },
612
- "required": [],
613
- "additionalProperties": false
614
- },
615
- "default": {
616
- "$schema": "https://json-schema.org/draft/2020-12/schema",
617
- "$id": "https://eslint-plugin.checkdigit/message/v1/schemas/api/ResponseGetResponseDefault",
618
- "type": "object",
619
- "properties": {
620
- "headers": {
621
- "type": "object",
622
- "additionalProperties": true
623
- },
624
- "body": {
625
- "$ref": "/message/v1/schemas/definitions/Error"
626
- }
627
- },
628
- "required": ["body"],
629
- "additionalProperties": false
630
- }
631
- }
632
- },
633
107
  "put": {
634
108
  "request": {
635
109
  "$schema": "https://json-schema.org/draft/2020-12/schema",