@redocly/config 0.30.0 → 0.31.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 +92 -1
- package/lib/entities-catalog-config-schema.d.ts +92 -1
- package/lib/entities-catalog-config-schema.js +1 -1
- package/lib/reunite-config-schema.d.ts +0 -7
- package/lib/reunite-config-schema.js +0 -4
- package/lib/root-config-schema.d.ts +676 -230
- package/lib/types/catalog-entity-types.d.ts +16 -0
- package/lib/types/config-types.d.ts +2 -2
- package/lib-esm/default-theme-config-schema.d.ts +92 -1
- package/lib-esm/entities-catalog-config-schema.d.ts +92 -1
- package/lib-esm/entities-catalog-config-schema.js +1 -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 +676 -230
- package/lib-esm/types/catalog-entity-types.d.ts +16 -0
- package/lib-esm/types/config-types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
import type { entityCatalogSpecificCatalogSchema } from '../entities-catalog-config-schema';
|
|
3
|
+
export type EntityCatalogSpecificCatalogConfig = FromSchema<typeof entityCatalogSpecificCatalogSchema>;
|
|
1
4
|
export type CatalogConfigEntityExclude = {
|
|
2
5
|
key: string;
|
|
3
6
|
};
|
|
@@ -27,3 +30,16 @@ export type CatalogEntityConfig = {
|
|
|
27
30
|
descriptionTranslationKey?: string;
|
|
28
31
|
catalogSwitcherLabelTranslationKey?: string;
|
|
29
32
|
};
|
|
33
|
+
export type EntitiesCatalogConfigTypes = {
|
|
34
|
+
catalogs?: {
|
|
35
|
+
all?: EntityCatalogSpecificCatalogConfig;
|
|
36
|
+
services?: EntityCatalogSpecificCatalogConfig;
|
|
37
|
+
domains?: EntityCatalogSpecificCatalogConfig;
|
|
38
|
+
teams?: EntityCatalogSpecificCatalogConfig;
|
|
39
|
+
users?: EntityCatalogSpecificCatalogConfig;
|
|
40
|
+
apiDescriptions?: EntityCatalogSpecificCatalogConfig;
|
|
41
|
+
dataSchemas?: EntityCatalogSpecificCatalogConfig;
|
|
42
|
+
apiOperations?: EntityCatalogSpecificCatalogConfig;
|
|
43
|
+
[catalogName: string]: EntityCatalogSpecificCatalogConfig | undefined;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -7,7 +7,7 @@ import type { GraphQLConfigTypes } from './graphql-types';
|
|
|
7
7
|
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from '../ex-theme-config-schemas';
|
|
8
8
|
import type { reuniteConfigSchema } from '../reunite-config-schema';
|
|
9
9
|
import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
|
|
10
|
-
import type {
|
|
10
|
+
import type { EntitiesCatalogConfigTypes } from './catalog-entity-types';
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated left for backwards compatibility. To be removed in Realm 1.0
|
|
13
13
|
*/
|
|
@@ -25,7 +25,7 @@ export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSch
|
|
|
25
25
|
export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
|
|
26
26
|
export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
|
|
27
27
|
export type CatalogConfig = FromSchema<typeof catalogSchema>;
|
|
28
|
-
export type EntitiesCatalogConfig =
|
|
28
|
+
export type EntitiesCatalogConfig = EntitiesCatalogConfigTypes;
|
|
29
29
|
export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
|
|
30
30
|
export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
|
|
31
31
|
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|