@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,432 +1,9 @@
1
1
  {
2
2
  "apis": {
3
- "/link/v1/ping": {
4
- "get": {
5
- "request": {
6
- "$schema": "https://json-schema.org/draft/2020-12/schema",
7
- "$id": "https://eslint-plugin.checkdigit/link/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/link/v1/schemas/api/PingGetResponseOK",
22
- "type": "object",
23
- "properties": {
24
- "headers": {
25
- "type": "object",
26
- "additionalProperties": true
27
- },
28
- "body": {
29
- "$schema": "https://json-schema.org/draft/2020-12/schema",
30
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Ping",
31
- "type": "object",
32
- "additionalProperties": false,
33
- "required": ["serverTime"],
34
- "properties": {
35
- "serverTime": {
36
- "type": "string",
37
- "format": "date-time",
38
- "description": "Current server time"
39
- }
40
- }
41
- }
42
- },
43
- "required": ["body"],
44
- "additionalProperties": false
45
- },
46
- "default": {
47
- "$schema": "https://json-schema.org/draft/2020-12/schema",
48
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/PingGetResponseDefault",
49
- "type": "object",
50
- "properties": {
51
- "headers": {
52
- "type": "object",
53
- "additionalProperties": true
54
- },
55
- "body": {
56
- "$schema": "https://json-schema.org/draft/2020-12/schema",
57
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Error",
58
- "type": "object",
59
- "additionalProperties": false,
60
- "required": ["message"],
61
- "description": "Error message.",
62
- "properties": {
63
- "message": {
64
- "type": "string"
65
- },
66
- "code": {
67
- "type": "string"
68
- }
69
- }
70
- }
71
- },
72
- "required": ["body"],
73
- "additionalProperties": false
74
- }
75
- }
76
- }
77
- },
78
- "/link/v1/link/:subjectId": {
79
- "get": {
80
- "request": {
81
- "$schema": "https://json-schema.org/draft/2020-12/schema",
82
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectGetRequestContext",
83
- "type": "object",
84
- "properties": {
85
- "params": {
86
- "type": "object",
87
- "additionalProperties": false,
88
- "properties": {
89
- "at": {
90
- "type": "string",
91
- "format": "date-time"
92
- }
93
- },
94
- "required": ["at"]
95
- },
96
- "headers": {
97
- "type": "object",
98
- "additionalProperties": true
99
- }
100
- },
101
- "required": ["params", "query"],
102
- "additionalProperties": false
103
- },
104
- "responses": {
105
- "200": {
106
- "$schema": "https://json-schema.org/draft/2020-12/schema",
107
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectGetResponseOK",
108
- "type": "object",
109
- "properties": {
110
- "headers": {
111
- "type": "object",
112
- "additionalProperties": true
113
- },
114
- "body": {
115
- "$schema": "https://json-schema.org/draft/2020-12/schema",
116
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Linkages",
117
- "type": "object",
118
- "additionalProperties": false,
119
- "required": ["links"],
120
- "properties": {
121
- "links": {
122
- "type": "array",
123
- "items": {
124
- "$schema": "https://json-schema.org/draft/2020-12/schema",
125
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Link",
126
- "type": "object",
127
- "additionalProperties": false,
128
- "required": ["subjectId", "predicate", "objectId", "createdOn"],
129
- "properties": {
130
- "subjectId": {
131
- "type": "string",
132
- "description": "Unique identifier for the subject.",
133
- "minLength": 1
134
- },
135
- "predicate": {
136
- "type": "string",
137
- "description": "Predicate linking the subject to the object.",
138
- "minLength": 1
139
- },
140
- "objectId": {
141
- "type": "string",
142
- "description": "Unique identifier for the object.",
143
- "minLength": 1
144
- },
145
- "createdOn": {
146
- "type": "string",
147
- "description": "Date linkage was created",
148
- "minLength": 1
149
- }
150
- }
151
- }
152
- }
153
- }
154
- }
155
- },
156
- "required": ["body"],
157
- "additionalProperties": false
158
- },
159
- "default": {
160
- "$schema": "https://json-schema.org/draft/2020-12/schema",
161
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectGetResponseDefault",
162
- "type": "object",
163
- "properties": {
164
- "headers": {
165
- "type": "object",
166
- "additionalProperties": true
167
- },
168
- "body": {
169
- "$schema": "https://json-schema.org/draft/2020-12/schema",
170
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Error",
171
- "type": "object",
172
- "additionalProperties": false,
173
- "required": ["message"],
174
- "description": "Error message.",
175
- "properties": {
176
- "message": {
177
- "type": "string"
178
- },
179
- "code": {
180
- "type": "string"
181
- }
182
- }
183
- }
184
- },
185
- "required": ["body"],
186
- "additionalProperties": false
187
- }
188
- }
189
- }
190
- },
191
- "/link/v1/link/:subjectId/:predicate": {
192
- "get": {
193
- "request": {
194
- "$schema": "https://json-schema.org/draft/2020-12/schema",
195
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateGetRequestContext",
196
- "type": "object",
197
- "properties": {
198
- "params": {
199
- "type": "object",
200
- "additionalProperties": false,
201
- "properties": {
202
- "at": {
203
- "type": "string",
204
- "format": "date-time"
205
- }
206
- },
207
- "required": ["at"]
208
- },
209
- "headers": {
210
- "type": "object",
211
- "additionalProperties": true
212
- }
213
- },
214
- "required": ["params", "query"],
215
- "additionalProperties": false
216
- },
217
- "responses": {
218
- "200": {
219
- "$schema": "https://json-schema.org/draft/2020-12/schema",
220
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateGetResponseOK",
221
- "type": "object",
222
- "properties": {
223
- "headers": {
224
- "type": "object",
225
- "additionalProperties": true
226
- },
227
- "body": {
228
- "$schema": "https://json-schema.org/draft/2020-12/schema",
229
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Linkages",
230
- "type": "object",
231
- "additionalProperties": false,
232
- "required": ["links"],
233
- "properties": {
234
- "links": {
235
- "type": "array",
236
- "items": {
237
- "$schema": "https://json-schema.org/draft/2020-12/schema",
238
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Link",
239
- "type": "object",
240
- "additionalProperties": false,
241
- "required": ["subjectId", "predicate", "objectId", "createdOn"],
242
- "properties": {
243
- "subjectId": {
244
- "type": "string",
245
- "description": "Unique identifier for the subject.",
246
- "minLength": 1
247
- },
248
- "predicate": {
249
- "type": "string",
250
- "description": "Predicate linking the subject to the object.",
251
- "minLength": 1
252
- },
253
- "objectId": {
254
- "type": "string",
255
- "description": "Unique identifier for the object.",
256
- "minLength": 1
257
- },
258
- "createdOn": {
259
- "type": "string",
260
- "description": "Date linkage was created",
261
- "minLength": 1
262
- }
263
- }
264
- }
265
- }
266
- }
267
- }
268
- },
269
- "required": ["body"],
270
- "additionalProperties": false
271
- },
272
- "default": {
273
- "$schema": "https://json-schema.org/draft/2020-12/schema",
274
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateGetResponseDefault",
275
- "type": "object",
276
- "properties": {
277
- "headers": {
278
- "type": "object",
279
- "additionalProperties": true
280
- },
281
- "body": {
282
- "$schema": "https://json-schema.org/draft/2020-12/schema",
283
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Error",
284
- "type": "object",
285
- "additionalProperties": false,
286
- "required": ["message"],
287
- "description": "Error message.",
288
- "properties": {
289
- "message": {
290
- "type": "string"
291
- },
292
- "code": {
293
- "type": "string"
294
- }
295
- }
296
- }
297
- },
298
- "required": ["body"],
299
- "additionalProperties": false
300
- }
301
- }
302
- }
303
- },
3
+ "/link/v1/ping": {},
4
+ "/link/v1/link/:subjectId": {},
5
+ "/link/v1/link/:subjectId/:predicate": {},
304
6
  "/link/v1/link/:subjectId/:predicate/:objectId": {
305
- "get": {
306
- "request": {
307
- "$schema": "https://json-schema.org/draft/2020-12/schema",
308
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateObjectGetRequestContext",
309
- "type": "object",
310
- "properties": {
311
- "params": {
312
- "type": "object",
313
- "additionalProperties": false,
314
- "properties": {
315
- "at": {
316
- "type": "string",
317
- "format": "date-time"
318
- }
319
- },
320
- "required": ["at"]
321
- },
322
- "headers": {
323
- "type": "object",
324
- "additionalProperties": true
325
- }
326
- },
327
- "required": ["params", "query"],
328
- "additionalProperties": false
329
- },
330
- "responses": {
331
- "200": {
332
- "$schema": "https://json-schema.org/draft/2020-12/schema",
333
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateObjectGetResponseOK",
334
- "type": "object",
335
- "properties": {
336
- "headers": {
337
- "type": "object",
338
- "properties": {
339
- "last-modified": {
340
- "type": "string",
341
- "format": "date-time"
342
- },
343
- "created-on": {
344
- "type": "string",
345
- "format": "date-time"
346
- },
347
- "updated-on": {
348
- "type": "string",
349
- "format": "date-time"
350
- }
351
- }
352
- },
353
- "body": {
354
- "$schema": "https://json-schema.org/draft/2020-12/schema",
355
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Link",
356
- "type": "object",
357
- "additionalProperties": false,
358
- "required": ["subjectId", "predicate", "objectId", "createdOn"],
359
- "properties": {
360
- "subjectId": {
361
- "type": "string",
362
- "description": "Unique identifier for the subject.",
363
- "minLength": 1
364
- },
365
- "predicate": {
366
- "type": "string",
367
- "description": "Predicate linking the subject to the object.",
368
- "minLength": 1
369
- },
370
- "objectId": {
371
- "type": "string",
372
- "description": "Unique identifier for the object.",
373
- "minLength": 1
374
- },
375
- "createdOn": {
376
- "type": "string",
377
- "description": "Date linkage was created",
378
- "minLength": 1
379
- }
380
- }
381
- }
382
- },
383
- "required": ["body"],
384
- "additionalProperties": false
385
- },
386
- "404": {
387
- "$schema": "https://json-schema.org/draft/2020-12/schema",
388
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateObjectGetResponseNotFound",
389
- "type": "object",
390
- "properties": {
391
- "headers": {
392
- "type": "object",
393
- "additionalProperties": true
394
- }
395
- },
396
- "required": [],
397
- "additionalProperties": false
398
- },
399
- "default": {
400
- "$schema": "https://json-schema.org/draft/2020-12/schema",
401
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/api/LinkSubjectPredicateObjectGetResponseDefault",
402
- "type": "object",
403
- "properties": {
404
- "headers": {
405
- "type": "object",
406
- "additionalProperties": true
407
- },
408
- "body": {
409
- "$schema": "https://json-schema.org/draft/2020-12/schema",
410
- "$id": "https://eslint-plugin.checkdigit/link/v1/schemas/definitions/Error",
411
- "type": "object",
412
- "additionalProperties": false,
413
- "required": ["message"],
414
- "description": "Error message.",
415
- "properties": {
416
- "message": {
417
- "type": "string"
418
- },
419
- "code": {
420
- "type": "string"
421
- }
422
- }
423
- }
424
- },
425
- "required": ["body"],
426
- "additionalProperties": false
427
- }
428
- }
429
- },
430
7
  "put": {
431
8
  "request": {
432
9
  "$schema": "https://json-schema.org/draft/2020-12/schema",