@redocly/config 0.26.2 → 0.26.3

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 (35) hide show
  1. package/lib/common.d.ts +1 -1
  2. package/lib/common.js +1 -1
  3. package/lib/default-theme-config-schema.d.ts +573 -4326
  4. package/lib/default-theme-config-schema.js +3 -2
  5. package/lib/entities-catalog-config-schema.d.ts +718 -0
  6. package/lib/entities-catalog-config-schema.js +84 -0
  7. package/lib/ex-theme-config-schemas.d.ts +64 -0
  8. package/lib/ex-theme-config-schemas.js +1 -1
  9. package/lib/product-override-schema.d.ts +1 -1
  10. package/lib/root-config-schema.d.ts +3449 -209
  11. package/lib/root-config-schema.js +2 -1
  12. package/lib/types/catalog-entity-types.d.ts +29 -0
  13. package/lib/types/catalog-entity-types.js +3 -0
  14. package/lib/types/config-types.d.ts +2 -0
  15. package/lib/types/index.d.ts +1 -0
  16. package/lib/types/index.js +1 -0
  17. package/lib/types/portal-shared-types.d.ts +12 -1
  18. package/lib-esm/common.d.ts +1 -1
  19. package/lib-esm/common.js +1 -1
  20. package/lib-esm/default-theme-config-schema.d.ts +573 -4326
  21. package/lib-esm/default-theme-config-schema.js +2 -1
  22. package/lib-esm/entities-catalog-config-schema.d.ts +718 -0
  23. package/lib-esm/entities-catalog-config-schema.js +81 -0
  24. package/lib-esm/ex-theme-config-schemas.d.ts +64 -0
  25. package/lib-esm/ex-theme-config-schemas.js +2 -2
  26. package/lib-esm/product-override-schema.d.ts +1 -1
  27. package/lib-esm/root-config-schema.d.ts +3449 -209
  28. package/lib-esm/root-config-schema.js +2 -1
  29. package/lib-esm/types/catalog-entity-types.d.ts +29 -0
  30. package/lib-esm/types/catalog-entity-types.js +2 -0
  31. package/lib-esm/types/config-types.d.ts +2 -0
  32. package/lib-esm/types/index.d.ts +1 -0
  33. package/lib-esm/types/index.js +1 -0
  34. package/lib-esm/types/portal-shared-types.d.ts +12 -1
  35. package/package.json +2 -2
@@ -0,0 +1,81 @@
1
+ export const entityCatalogExcludeSchema = {
2
+ type: 'object',
3
+ required: ['key'],
4
+ properties: {
5
+ key: { type: 'string' },
6
+ },
7
+ additionalProperties: false,
8
+ };
9
+ export const entityCatalogIncludeSchema = {
10
+ type: 'object',
11
+ required: ['type'],
12
+ properties: {
13
+ type: { type: 'string' },
14
+ },
15
+ additionalProperties: false,
16
+ };
17
+ export const entityCatalogFilterSchema = {
18
+ type: 'object',
19
+ required: ['property', 'title'],
20
+ properties: {
21
+ property: { type: 'string' },
22
+ hide: { type: 'boolean' },
23
+ label: { type: 'string' },
24
+ options: {
25
+ type: 'array',
26
+ items: { type: 'string' },
27
+ },
28
+ type: {
29
+ type: 'string',
30
+ enum: ['select', 'checkboxes', 'date-range'],
31
+ default: 'checkboxes',
32
+ },
33
+ title: { type: 'string' },
34
+ titleTranslationKey: { type: 'string' },
35
+ parentFilter: { type: 'string' },
36
+ valuesMapping: { type: 'object', additionalProperties: { type: 'string' } },
37
+ },
38
+ additionalProperties: false,
39
+ };
40
+ export const entityCatalogSpecificCatalogSchema = {
41
+ type: 'object',
42
+ properties: {
43
+ slug: { type: 'string' },
44
+ hide: { type: 'boolean' },
45
+ includes: {
46
+ type: 'array',
47
+ items: entityCatalogIncludeSchema,
48
+ },
49
+ excludes: {
50
+ type: 'array',
51
+ items: entityCatalogExcludeSchema,
52
+ },
53
+ filters: {
54
+ type: 'array',
55
+ items: entityCatalogFilterSchema,
56
+ },
57
+ titleTranslationKey: { type: 'string' },
58
+ descriptionTranslationKey: { type: 'string' },
59
+ catalogSwitcherLabelTranslationKey: { type: 'string' },
60
+ },
61
+ additionalProperties: false,
62
+ };
63
+ export const entitiesCatalogConfigSchema = {
64
+ type: 'object',
65
+ properties: {
66
+ catalogs: {
67
+ type: 'object',
68
+ properties: {
69
+ all: entityCatalogSpecificCatalogSchema,
70
+ services: entityCatalogSpecificCatalogSchema,
71
+ domains: entityCatalogSpecificCatalogSchema,
72
+ teams: entityCatalogSpecificCatalogSchema,
73
+ users: entityCatalogSpecificCatalogSchema,
74
+ apiDescriptions: entityCatalogSpecificCatalogSchema,
75
+ },
76
+ additionalProperties: false,
77
+ },
78
+ },
79
+ additionalProperties: false,
80
+ };
81
+ //# sourceMappingURL=entities-catalog-config-schema.js.map
@@ -4128,6 +4128,70 @@ export declare const scorecardConfigSchema: {
4128
4128
  readonly type: "object";
4129
4129
  readonly required: readonly ["name"];
4130
4130
  readonly properties: {
4131
+ readonly decorators: {
4132
+ readonly type: "object";
4133
+ readonly additionalProperties: true;
4134
+ };
4135
+ readonly oas2Decorators: {
4136
+ readonly type: "object";
4137
+ readonly additionalProperties: true;
4138
+ };
4139
+ readonly oas3_0Decorators: {
4140
+ readonly type: "object";
4141
+ readonly additionalProperties: true;
4142
+ };
4143
+ readonly oas3_1Decorators: {
4144
+ readonly type: "object";
4145
+ readonly additionalProperties: true;
4146
+ };
4147
+ readonly async2Decorators: {
4148
+ readonly type: "object";
4149
+ readonly additionalProperties: true;
4150
+ };
4151
+ readonly async3Decorators: {
4152
+ readonly type: "object";
4153
+ readonly additionalProperties: true;
4154
+ };
4155
+ readonly arazzo1Decorators: {
4156
+ readonly type: "object";
4157
+ readonly additionalProperties: true;
4158
+ };
4159
+ readonly overlay1Decorators: {
4160
+ readonly type: "object";
4161
+ readonly additionalProperties: true;
4162
+ };
4163
+ readonly preprocessors: {
4164
+ readonly type: "object";
4165
+ readonly additionalProperties: true;
4166
+ };
4167
+ readonly oas2Preprocessors: {
4168
+ readonly type: "object";
4169
+ readonly additionalProperties: true;
4170
+ };
4171
+ readonly oas3_0Preprocessors: {
4172
+ readonly type: "object";
4173
+ readonly additionalProperties: true;
4174
+ };
4175
+ readonly oas3_1Preprocessors: {
4176
+ readonly type: "object";
4177
+ readonly additionalProperties: true;
4178
+ };
4179
+ readonly async2Preprocessors: {
4180
+ readonly type: "object";
4181
+ readonly additionalProperties: true;
4182
+ };
4183
+ readonly async3Preprocessors: {
4184
+ readonly type: "object";
4185
+ readonly additionalProperties: true;
4186
+ };
4187
+ readonly arazzo1Preprocessors: {
4188
+ readonly type: "object";
4189
+ readonly additionalProperties: true;
4190
+ };
4191
+ readonly overlay1Preprocessors: {
4192
+ readonly type: "object";
4193
+ readonly additionalProperties: true;
4194
+ };
4131
4195
  readonly rules: {
4132
4196
  readonly type: "object";
4133
4197
  readonly additionalProperties: {
@@ -1,6 +1,6 @@
1
1
  import { redocConfigSchema } from './redoc-config-schema';
2
2
  import { deprecatedRefDocsSchema } from './reference-docs-config-schema';
3
- import { ruleSchemas } from './common';
3
+ import { decoratorsSchemas, preprocessorSchemas, ruleSchemas } from './common';
4
4
  const hideConfigSchema = {
5
5
  type: 'object',
6
6
  properties: {
@@ -565,7 +565,7 @@ export const scorecardConfigSchema = {
565
565
  items: {
566
566
  type: 'object',
567
567
  required: ['name'],
568
- properties: Object.assign({ name: { type: 'string' }, color: { type: 'string' }, extends: { type: 'array', items: { type: 'string' } } }, ruleSchemas),
568
+ properties: Object.assign(Object.assign(Object.assign({ name: { type: 'string' }, color: { type: 'string' }, extends: { type: 'array', items: { type: 'string' } } }, ruleSchemas), preprocessorSchemas), decoratorsSchemas),
569
569
  additionalProperties: false,
570
570
  },
571
571
  },
@@ -2778,7 +2778,7 @@ export declare const productConfigOverrideSchema: {
2778
2778
  readonly type: "object";
2779
2779
  readonly additionalProperties: true;
2780
2780
  };
2781
- readonly arazzoPreprocessors: {
2781
+ readonly arazzo1Preprocessors: {
2782
2782
  readonly type: "object";
2783
2783
  readonly additionalProperties: true;
2784
2784
  };