@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,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entitiesCatalogConfigSchema = exports.entityCatalogSpecificCatalogSchema = exports.entityCatalogFilterSchema = exports.entityCatalogIncludeSchema = exports.entityCatalogExcludeSchema = void 0;
4
+ exports.entityCatalogExcludeSchema = {
5
+ type: 'object',
6
+ required: ['key'],
7
+ properties: {
8
+ key: { type: 'string' },
9
+ },
10
+ additionalProperties: false,
11
+ };
12
+ exports.entityCatalogIncludeSchema = {
13
+ type: 'object',
14
+ required: ['type'],
15
+ properties: {
16
+ type: { type: 'string' },
17
+ },
18
+ additionalProperties: false,
19
+ };
20
+ exports.entityCatalogFilterSchema = {
21
+ type: 'object',
22
+ required: ['property', 'title'],
23
+ properties: {
24
+ property: { type: 'string' },
25
+ hide: { type: 'boolean' },
26
+ label: { type: 'string' },
27
+ options: {
28
+ type: 'array',
29
+ items: { type: 'string' },
30
+ },
31
+ type: {
32
+ type: 'string',
33
+ enum: ['select', 'checkboxes', 'date-range'],
34
+ default: 'checkboxes',
35
+ },
36
+ title: { type: 'string' },
37
+ titleTranslationKey: { type: 'string' },
38
+ parentFilter: { type: 'string' },
39
+ valuesMapping: { type: 'object', additionalProperties: { type: 'string' } },
40
+ },
41
+ additionalProperties: false,
42
+ };
43
+ exports.entityCatalogSpecificCatalogSchema = {
44
+ type: 'object',
45
+ properties: {
46
+ slug: { type: 'string' },
47
+ hide: { type: 'boolean' },
48
+ includes: {
49
+ type: 'array',
50
+ items: exports.entityCatalogIncludeSchema,
51
+ },
52
+ excludes: {
53
+ type: 'array',
54
+ items: exports.entityCatalogExcludeSchema,
55
+ },
56
+ filters: {
57
+ type: 'array',
58
+ items: exports.entityCatalogFilterSchema,
59
+ },
60
+ titleTranslationKey: { type: 'string' },
61
+ descriptionTranslationKey: { type: 'string' },
62
+ catalogSwitcherLabelTranslationKey: { type: 'string' },
63
+ },
64
+ additionalProperties: false,
65
+ };
66
+ exports.entitiesCatalogConfigSchema = {
67
+ type: 'object',
68
+ properties: {
69
+ catalogs: {
70
+ type: 'object',
71
+ properties: {
72
+ all: exports.entityCatalogSpecificCatalogSchema,
73
+ services: exports.entityCatalogSpecificCatalogSchema,
74
+ domains: exports.entityCatalogSpecificCatalogSchema,
75
+ teams: exports.entityCatalogSpecificCatalogSchema,
76
+ users: exports.entityCatalogSpecificCatalogSchema,
77
+ apiDescriptions: exports.entityCatalogSpecificCatalogSchema,
78
+ },
79
+ additionalProperties: false,
80
+ },
81
+ },
82
+ additionalProperties: false,
83
+ };
84
+ //# 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: {
@@ -568,7 +568,7 @@ exports.scorecardConfigSchema = {
568
568
  items: {
569
569
  type: 'object',
570
570
  required: ['name'],
571
- properties: Object.assign({ name: { type: 'string' }, color: { type: 'string' }, extends: { type: 'array', items: { type: 'string' } } }, common_1.ruleSchemas),
571
+ properties: Object.assign(Object.assign(Object.assign({ name: { type: 'string' }, color: { type: 'string' }, extends: { type: 'array', items: { type: 'string' } } }, common_1.ruleSchemas), common_1.preprocessorSchemas), common_1.decoratorsSchemas),
572
572
  additionalProperties: false,
573
573
  },
574
574
  },
@@ -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
  };