@redocly/config 0.30.0 → 0.32.0
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/lib/default-theme-config-schema.d.ts +195 -1
- package/lib/entities-catalog-config-schema.d.ts +518 -1
- package/lib/entities-catalog-config-schema.js +101 -2
- package/lib/reunite-config-schema.d.ts +0 -7
- package/lib/reunite-config-schema.js +0 -4
- package/lib/root-config-schema.d.ts +1246 -275
- package/lib/root-config-schema.js +1 -1
- package/lib/types/api-functions-types.d.ts +1 -1
- package/lib/types/catalog-entity-types.d.ts +18 -0
- package/lib/types/config-types.d.ts +0 -2
- package/lib/types/portal-shared-types.d.ts +1 -1
- package/lib-esm/default-theme-config-schema.d.ts +195 -1
- package/lib-esm/entities-catalog-config-schema.d.ts +518 -1
- package/lib-esm/entities-catalog-config-schema.js +100 -1
- package/lib-esm/reunite-config-schema.d.ts +0 -7
- package/lib-esm/reunite-config-schema.js +0 -4
- package/lib-esm/root-config-schema.d.ts +1246 -275
- package/lib-esm/root-config-schema.js +1 -1
- package/lib-esm/types/api-functions-types.d.ts +1 -1
- package/lib-esm/types/catalog-entity-types.d.ts +18 -0
- package/lib-esm/types/config-types.d.ts +0 -2
- package/lib-esm/types/portal-shared-types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -152,9 +152,435 @@ export declare const entityCatalogSpecificCatalogSchema: {
|
|
|
152
152
|
};
|
|
153
153
|
readonly additionalProperties: false;
|
|
154
154
|
};
|
|
155
|
+
export declare const entityCatalogMetadataSchemaPropertySchema: {
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly properties: {
|
|
158
|
+
readonly type: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly enum: readonly ["string", "number", "boolean", "array", "object"];
|
|
161
|
+
};
|
|
162
|
+
readonly description: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
readonly example: {
|
|
166
|
+
readonly oneOf: readonly [{
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "number";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "boolean";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "array";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
}];
|
|
177
|
+
};
|
|
178
|
+
readonly enum: {
|
|
179
|
+
readonly type: "array";
|
|
180
|
+
readonly items: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly pattern: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
};
|
|
187
|
+
readonly format: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
};
|
|
190
|
+
readonly minimum: {
|
|
191
|
+
readonly type: "number";
|
|
192
|
+
};
|
|
193
|
+
readonly maximum: {
|
|
194
|
+
readonly type: "number";
|
|
195
|
+
};
|
|
196
|
+
readonly items: {
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly additionalProperties: true;
|
|
201
|
+
};
|
|
202
|
+
export declare const entityCatalogMetadataSchema: {
|
|
203
|
+
readonly type: "object";
|
|
204
|
+
readonly required: readonly ["type", "properties"];
|
|
205
|
+
readonly properties: {
|
|
206
|
+
readonly type: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["object"];
|
|
209
|
+
};
|
|
210
|
+
readonly description: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
};
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly additionalProperties: {
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly properties: {
|
|
218
|
+
readonly type: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly enum: readonly ["string", "number", "boolean", "array", "object"];
|
|
221
|
+
};
|
|
222
|
+
readonly description: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
};
|
|
225
|
+
readonly example: {
|
|
226
|
+
readonly oneOf: readonly [{
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
}, {
|
|
229
|
+
readonly type: "number";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "boolean";
|
|
232
|
+
}, {
|
|
233
|
+
readonly type: "array";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "object";
|
|
236
|
+
}];
|
|
237
|
+
};
|
|
238
|
+
readonly enum: {
|
|
239
|
+
readonly type: "array";
|
|
240
|
+
readonly items: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly pattern: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
};
|
|
247
|
+
readonly format: {
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
};
|
|
250
|
+
readonly minimum: {
|
|
251
|
+
readonly type: "number";
|
|
252
|
+
};
|
|
253
|
+
readonly maximum: {
|
|
254
|
+
readonly type: "number";
|
|
255
|
+
};
|
|
256
|
+
readonly items: {
|
|
257
|
+
readonly type: "object";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly additionalProperties: true;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly required: {
|
|
264
|
+
readonly type: "array";
|
|
265
|
+
readonly items: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
readonly additionalProperties: {
|
|
270
|
+
readonly type: "boolean";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly additionalProperties: true;
|
|
274
|
+
};
|
|
275
|
+
export declare const entityCatalogEntityTypeSchema: {
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly required: readonly ["name", "description", "metadataSchema"];
|
|
278
|
+
readonly properties: {
|
|
279
|
+
readonly name: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly description: "Display name of the entity type";
|
|
282
|
+
};
|
|
283
|
+
readonly description: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly description: "Description of the entity type";
|
|
286
|
+
};
|
|
287
|
+
readonly metadataSchema: {
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly required: readonly ["type", "properties"];
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly type: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly enum: readonly ["object"];
|
|
294
|
+
};
|
|
295
|
+
readonly description: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
};
|
|
298
|
+
readonly properties: {
|
|
299
|
+
readonly type: "object";
|
|
300
|
+
readonly additionalProperties: {
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly properties: {
|
|
303
|
+
readonly type: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly enum: readonly ["string", "number", "boolean", "array", "object"];
|
|
306
|
+
};
|
|
307
|
+
readonly description: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
};
|
|
310
|
+
readonly example: {
|
|
311
|
+
readonly oneOf: readonly [{
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
}, {
|
|
314
|
+
readonly type: "number";
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "boolean";
|
|
317
|
+
}, {
|
|
318
|
+
readonly type: "array";
|
|
319
|
+
}, {
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
}];
|
|
322
|
+
};
|
|
323
|
+
readonly enum: {
|
|
324
|
+
readonly type: "array";
|
|
325
|
+
readonly items: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly pattern: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
};
|
|
332
|
+
readonly format: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
};
|
|
335
|
+
readonly minimum: {
|
|
336
|
+
readonly type: "number";
|
|
337
|
+
};
|
|
338
|
+
readonly maximum: {
|
|
339
|
+
readonly type: "number";
|
|
340
|
+
};
|
|
341
|
+
readonly items: {
|
|
342
|
+
readonly type: "object";
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
readonly additionalProperties: true;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly required: {
|
|
349
|
+
readonly type: "array";
|
|
350
|
+
readonly items: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly additionalProperties: {
|
|
355
|
+
readonly type: "boolean";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
readonly additionalProperties: true;
|
|
359
|
+
};
|
|
360
|
+
readonly icon: {
|
|
361
|
+
readonly type: "object";
|
|
362
|
+
readonly properties: {
|
|
363
|
+
readonly src: {
|
|
364
|
+
readonly type: "string";
|
|
365
|
+
};
|
|
366
|
+
readonly srcSet: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly additionalProperties: false;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly additionalProperties: false;
|
|
374
|
+
};
|
|
375
|
+
export declare const entityCatalogEntityTypesSchema: {
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly additionalProperties: {
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
readonly required: readonly ["name", "description", "metadataSchema"];
|
|
380
|
+
readonly properties: {
|
|
381
|
+
readonly name: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly description: "Display name of the entity type";
|
|
384
|
+
};
|
|
385
|
+
readonly description: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
readonly description: "Description of the entity type";
|
|
388
|
+
};
|
|
389
|
+
readonly metadataSchema: {
|
|
390
|
+
readonly type: "object";
|
|
391
|
+
readonly required: readonly ["type", "properties"];
|
|
392
|
+
readonly properties: {
|
|
393
|
+
readonly type: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
readonly enum: readonly ["object"];
|
|
396
|
+
};
|
|
397
|
+
readonly description: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
};
|
|
400
|
+
readonly properties: {
|
|
401
|
+
readonly type: "object";
|
|
402
|
+
readonly additionalProperties: {
|
|
403
|
+
readonly type: "object";
|
|
404
|
+
readonly properties: {
|
|
405
|
+
readonly type: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly enum: readonly ["string", "number", "boolean", "array", "object"];
|
|
408
|
+
};
|
|
409
|
+
readonly description: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
};
|
|
412
|
+
readonly example: {
|
|
413
|
+
readonly oneOf: readonly [{
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
}, {
|
|
416
|
+
readonly type: "number";
|
|
417
|
+
}, {
|
|
418
|
+
readonly type: "boolean";
|
|
419
|
+
}, {
|
|
420
|
+
readonly type: "array";
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "object";
|
|
423
|
+
}];
|
|
424
|
+
};
|
|
425
|
+
readonly enum: {
|
|
426
|
+
readonly type: "array";
|
|
427
|
+
readonly items: {
|
|
428
|
+
readonly type: "string";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly pattern: {
|
|
432
|
+
readonly type: "string";
|
|
433
|
+
};
|
|
434
|
+
readonly format: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
};
|
|
437
|
+
readonly minimum: {
|
|
438
|
+
readonly type: "number";
|
|
439
|
+
};
|
|
440
|
+
readonly maximum: {
|
|
441
|
+
readonly type: "number";
|
|
442
|
+
};
|
|
443
|
+
readonly items: {
|
|
444
|
+
readonly type: "object";
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
readonly additionalProperties: true;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly required: {
|
|
451
|
+
readonly type: "array";
|
|
452
|
+
readonly items: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly additionalProperties: {
|
|
457
|
+
readonly type: "boolean";
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
readonly additionalProperties: true;
|
|
461
|
+
};
|
|
462
|
+
readonly icon: {
|
|
463
|
+
readonly type: "object";
|
|
464
|
+
readonly properties: {
|
|
465
|
+
readonly src: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
};
|
|
468
|
+
readonly srcSet: {
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly additionalProperties: false;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
readonly additionalProperties: false;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
155
478
|
export declare const entitiesCatalogConfigSchema: {
|
|
156
479
|
readonly type: "object";
|
|
157
480
|
readonly properties: {
|
|
481
|
+
readonly entityTypes: {
|
|
482
|
+
readonly type: "object";
|
|
483
|
+
readonly additionalProperties: {
|
|
484
|
+
readonly type: "object";
|
|
485
|
+
readonly required: readonly ["name", "description", "metadataSchema"];
|
|
486
|
+
readonly properties: {
|
|
487
|
+
readonly name: {
|
|
488
|
+
readonly type: "string";
|
|
489
|
+
readonly description: "Display name of the entity type";
|
|
490
|
+
};
|
|
491
|
+
readonly description: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly description: "Description of the entity type";
|
|
494
|
+
};
|
|
495
|
+
readonly metadataSchema: {
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly required: readonly ["type", "properties"];
|
|
498
|
+
readonly properties: {
|
|
499
|
+
readonly type: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
readonly enum: readonly ["object"];
|
|
502
|
+
};
|
|
503
|
+
readonly description: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
};
|
|
506
|
+
readonly properties: {
|
|
507
|
+
readonly type: "object";
|
|
508
|
+
readonly additionalProperties: {
|
|
509
|
+
readonly type: "object";
|
|
510
|
+
readonly properties: {
|
|
511
|
+
readonly type: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly enum: readonly ["string", "number", "boolean", "array", "object"];
|
|
514
|
+
};
|
|
515
|
+
readonly description: {
|
|
516
|
+
readonly type: "string";
|
|
517
|
+
};
|
|
518
|
+
readonly example: {
|
|
519
|
+
readonly oneOf: readonly [{
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
}, {
|
|
522
|
+
readonly type: "number";
|
|
523
|
+
}, {
|
|
524
|
+
readonly type: "boolean";
|
|
525
|
+
}, {
|
|
526
|
+
readonly type: "array";
|
|
527
|
+
}, {
|
|
528
|
+
readonly type: "object";
|
|
529
|
+
}];
|
|
530
|
+
};
|
|
531
|
+
readonly enum: {
|
|
532
|
+
readonly type: "array";
|
|
533
|
+
readonly items: {
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
readonly pattern: {
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
};
|
|
540
|
+
readonly format: {
|
|
541
|
+
readonly type: "string";
|
|
542
|
+
};
|
|
543
|
+
readonly minimum: {
|
|
544
|
+
readonly type: "number";
|
|
545
|
+
};
|
|
546
|
+
readonly maximum: {
|
|
547
|
+
readonly type: "number";
|
|
548
|
+
};
|
|
549
|
+
readonly items: {
|
|
550
|
+
readonly type: "object";
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
readonly additionalProperties: true;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
readonly required: {
|
|
557
|
+
readonly type: "array";
|
|
558
|
+
readonly items: {
|
|
559
|
+
readonly type: "string";
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
readonly additionalProperties: {
|
|
563
|
+
readonly type: "boolean";
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
readonly additionalProperties: true;
|
|
567
|
+
};
|
|
568
|
+
readonly icon: {
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly properties: {
|
|
571
|
+
readonly src: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
};
|
|
574
|
+
readonly srcSet: {
|
|
575
|
+
readonly type: "string";
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
readonly additionalProperties: false;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
readonly additionalProperties: false;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
158
584
|
readonly catalogs: {
|
|
159
585
|
readonly type: "object";
|
|
160
586
|
readonly properties: {
|
|
@@ -895,7 +1321,98 @@ export declare const entitiesCatalogConfigSchema: {
|
|
|
895
1321
|
readonly additionalProperties: false;
|
|
896
1322
|
};
|
|
897
1323
|
};
|
|
898
|
-
readonly additionalProperties:
|
|
1324
|
+
readonly additionalProperties: {
|
|
1325
|
+
readonly type: "object";
|
|
1326
|
+
readonly properties: {
|
|
1327
|
+
readonly slug: {
|
|
1328
|
+
readonly type: "string";
|
|
1329
|
+
};
|
|
1330
|
+
readonly hide: {
|
|
1331
|
+
readonly type: "boolean";
|
|
1332
|
+
};
|
|
1333
|
+
readonly includes: {
|
|
1334
|
+
readonly type: "array";
|
|
1335
|
+
readonly items: {
|
|
1336
|
+
readonly type: "object";
|
|
1337
|
+
readonly required: readonly ["type"];
|
|
1338
|
+
readonly properties: {
|
|
1339
|
+
readonly type: {
|
|
1340
|
+
readonly type: "string";
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
readonly additionalProperties: false;
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
readonly excludes: {
|
|
1347
|
+
readonly type: "array";
|
|
1348
|
+
readonly items: {
|
|
1349
|
+
readonly type: "object";
|
|
1350
|
+
readonly required: readonly ["key"];
|
|
1351
|
+
readonly properties: {
|
|
1352
|
+
readonly key: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
readonly additionalProperties: false;
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
readonly filters: {
|
|
1360
|
+
readonly type: "array";
|
|
1361
|
+
readonly items: {
|
|
1362
|
+
readonly type: "object";
|
|
1363
|
+
readonly required: readonly ["property", "title"];
|
|
1364
|
+
readonly properties: {
|
|
1365
|
+
readonly property: {
|
|
1366
|
+
readonly type: "string";
|
|
1367
|
+
};
|
|
1368
|
+
readonly hide: {
|
|
1369
|
+
readonly type: "boolean";
|
|
1370
|
+
};
|
|
1371
|
+
readonly label: {
|
|
1372
|
+
readonly type: "string";
|
|
1373
|
+
};
|
|
1374
|
+
readonly options: {
|
|
1375
|
+
readonly type: "array";
|
|
1376
|
+
readonly items: {
|
|
1377
|
+
readonly type: "string";
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
readonly type: {
|
|
1381
|
+
readonly type: "string";
|
|
1382
|
+
readonly enum: readonly ["select", "checkboxes", "date-range"];
|
|
1383
|
+
readonly default: "checkboxes";
|
|
1384
|
+
};
|
|
1385
|
+
readonly title: {
|
|
1386
|
+
readonly type: "string";
|
|
1387
|
+
};
|
|
1388
|
+
readonly titleTranslationKey: {
|
|
1389
|
+
readonly type: "string";
|
|
1390
|
+
};
|
|
1391
|
+
readonly parentFilter: {
|
|
1392
|
+
readonly type: "string";
|
|
1393
|
+
};
|
|
1394
|
+
readonly valuesMapping: {
|
|
1395
|
+
readonly type: "object";
|
|
1396
|
+
readonly additionalProperties: {
|
|
1397
|
+
readonly type: "string";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
readonly additionalProperties: false;
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
readonly titleTranslationKey: {
|
|
1405
|
+
readonly type: "string";
|
|
1406
|
+
};
|
|
1407
|
+
readonly descriptionTranslationKey: {
|
|
1408
|
+
readonly type: "string";
|
|
1409
|
+
};
|
|
1410
|
+
readonly catalogSwitcherLabelTranslationKey: {
|
|
1411
|
+
readonly type: "string";
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
readonly additionalProperties: false;
|
|
1415
|
+
};
|
|
899
1416
|
};
|
|
900
1417
|
};
|
|
901
1418
|
readonly additionalProperties: false;
|
|
@@ -60,9 +60,108 @@ export const entityCatalogSpecificCatalogSchema = {
|
|
|
60
60
|
},
|
|
61
61
|
additionalProperties: false,
|
|
62
62
|
};
|
|
63
|
+
export const entityCatalogMetadataSchemaPropertySchema = {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: {
|
|
66
|
+
type: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
enum: ['string', 'number', 'boolean', 'array', 'object'],
|
|
69
|
+
},
|
|
70
|
+
description: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
},
|
|
73
|
+
example: {
|
|
74
|
+
oneOf: [
|
|
75
|
+
{ type: 'string' },
|
|
76
|
+
{ type: 'number' },
|
|
77
|
+
{ type: 'boolean' },
|
|
78
|
+
{ type: 'array' },
|
|
79
|
+
{ type: 'object' },
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
enum: {
|
|
83
|
+
type: 'array',
|
|
84
|
+
items: { type: 'string' },
|
|
85
|
+
},
|
|
86
|
+
pattern: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
},
|
|
89
|
+
format: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
},
|
|
92
|
+
minimum: {
|
|
93
|
+
type: 'number',
|
|
94
|
+
},
|
|
95
|
+
maximum: {
|
|
96
|
+
type: 'number',
|
|
97
|
+
},
|
|
98
|
+
items: {
|
|
99
|
+
type: 'object',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
additionalProperties: true,
|
|
103
|
+
};
|
|
104
|
+
export const entityCatalogMetadataSchema = {
|
|
105
|
+
type: 'object',
|
|
106
|
+
required: ['type', 'properties'],
|
|
107
|
+
properties: {
|
|
108
|
+
type: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
enum: ['object'],
|
|
111
|
+
},
|
|
112
|
+
description: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
},
|
|
115
|
+
properties: {
|
|
116
|
+
type: 'object',
|
|
117
|
+
additionalProperties: entityCatalogMetadataSchemaPropertySchema,
|
|
118
|
+
},
|
|
119
|
+
required: {
|
|
120
|
+
type: 'array',
|
|
121
|
+
items: { type: 'string' },
|
|
122
|
+
},
|
|
123
|
+
additionalProperties: {
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
additionalProperties: true,
|
|
128
|
+
};
|
|
129
|
+
export const entityCatalogEntityTypeSchema = {
|
|
130
|
+
type: 'object',
|
|
131
|
+
required: ['name', 'description', 'metadataSchema'],
|
|
132
|
+
properties: {
|
|
133
|
+
name: {
|
|
134
|
+
type: 'string',
|
|
135
|
+
description: 'Display name of the entity type',
|
|
136
|
+
},
|
|
137
|
+
description: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
description: 'Description of the entity type',
|
|
140
|
+
},
|
|
141
|
+
metadataSchema: entityCatalogMetadataSchema,
|
|
142
|
+
icon: {
|
|
143
|
+
type: 'object',
|
|
144
|
+
properties: {
|
|
145
|
+
src: {
|
|
146
|
+
type: 'string',
|
|
147
|
+
},
|
|
148
|
+
srcSet: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
additionalProperties: false,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
additionalProperties: false,
|
|
156
|
+
};
|
|
157
|
+
export const entityCatalogEntityTypesSchema = {
|
|
158
|
+
type: 'object',
|
|
159
|
+
additionalProperties: entityCatalogEntityTypeSchema,
|
|
160
|
+
};
|
|
63
161
|
export const entitiesCatalogConfigSchema = {
|
|
64
162
|
type: 'object',
|
|
65
163
|
properties: {
|
|
164
|
+
entityTypes: entityCatalogEntityTypesSchema,
|
|
66
165
|
catalogs: {
|
|
67
166
|
type: 'object',
|
|
68
167
|
properties: {
|
|
@@ -75,7 +174,7 @@ export const entitiesCatalogConfigSchema = {
|
|
|
75
174
|
dataSchemas: entityCatalogSpecificCatalogSchema,
|
|
76
175
|
apiOperations: entityCatalogSpecificCatalogSchema,
|
|
77
176
|
},
|
|
78
|
-
additionalProperties:
|
|
177
|
+
additionalProperties: entityCatalogSpecificCatalogSchema,
|
|
79
178
|
},
|
|
80
179
|
},
|
|
81
180
|
additionalProperties: false,
|
|
@@ -104,13 +104,6 @@ export declare const reuniteConfigSchema: {
|
|
|
104
104
|
readonly additionalProperties: false;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
-
/**
|
|
108
|
-
* @deprecated Should use `scorecard.fromProjectUrl` instead
|
|
109
|
-
*/
|
|
110
|
-
readonly projectUrl: {
|
|
111
|
-
readonly type: "string";
|
|
112
|
-
readonly format: "uri";
|
|
113
|
-
};
|
|
114
107
|
};
|
|
115
108
|
readonly additionalProperties: false;
|
|
116
109
|
};
|