@redocly/config 0.26.2 → 0.26.3-rc.1

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 (39) 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 +586 -4329
  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 +68 -3
  8. package/lib/ex-theme-config-schemas.js +3 -2
  9. package/lib/graphql-config-schema.d.ts +9 -0
  10. package/lib/graphql-config-schema.js +9 -0
  11. package/lib/product-override-schema.d.ts +19 -1
  12. package/lib/root-config-schema.d.ts +3597 -221
  13. package/lib/root-config-schema.js +2 -1
  14. package/lib/types/catalog-entity-types.d.ts +29 -0
  15. package/lib/types/catalog-entity-types.js +3 -0
  16. package/lib/types/config-types.d.ts +2 -0
  17. package/lib/types/index.d.ts +1 -0
  18. package/lib/types/index.js +1 -0
  19. package/lib/types/portal-shared-types.d.ts +12 -1
  20. package/lib-esm/common.d.ts +1 -1
  21. package/lib-esm/common.js +1 -1
  22. package/lib-esm/default-theme-config-schema.d.ts +586 -4329
  23. package/lib-esm/default-theme-config-schema.js +2 -1
  24. package/lib-esm/entities-catalog-config-schema.d.ts +718 -0
  25. package/lib-esm/entities-catalog-config-schema.js +81 -0
  26. package/lib-esm/ex-theme-config-schemas.d.ts +68 -3
  27. package/lib-esm/ex-theme-config-schemas.js +4 -3
  28. package/lib-esm/graphql-config-schema.d.ts +9 -0
  29. package/lib-esm/graphql-config-schema.js +9 -0
  30. package/lib-esm/product-override-schema.d.ts +19 -1
  31. package/lib-esm/root-config-schema.d.ts +8971 -5135
  32. package/lib-esm/root-config-schema.js +2 -1
  33. package/lib-esm/types/catalog-entity-types.d.ts +29 -0
  34. package/lib-esm/types/catalog-entity-types.js +2 -0
  35. package/lib-esm/types/config-types.d.ts +2 -0
  36. package/lib-esm/types/index.d.ts +1 -0
  37. package/lib-esm/types/index.js +1 -0
  38. package/lib-esm/types/portal-shared-types.d.ts +12 -1
  39. 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: {
@@ -4237,15 +4301,16 @@ export declare const scorecardConfigSchema: {
4237
4301
  readonly type: "object";
4238
4302
  readonly additionalProperties: true;
4239
4303
  };
4304
+ readonly ignore: {
4305
+ readonly type: "boolean";
4306
+ };
4240
4307
  readonly where: {
4241
4308
  readonly type: "object";
4242
4309
  readonly required: readonly ["metadata"];
4243
4310
  readonly properties: {
4244
4311
  readonly metadata: {
4245
4312
  readonly type: "object";
4246
- readonly additionalProperties: {
4247
- readonly type: "string";
4248
- };
4313
+ readonly additionalProperties: {};
4249
4314
  };
4250
4315
  };
4251
4316
  readonly additionalProperties: false;
@@ -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
  },
@@ -580,11 +580,12 @@ exports.scorecardConfigSchema = {
580
580
  properties: {
581
581
  minimumLevel: { type: 'string' },
582
582
  rules: { type: 'object', additionalProperties: true },
583
+ ignore: { type: 'boolean' },
583
584
  where: {
584
585
  type: 'object',
585
586
  required: ['metadata'],
586
587
  properties: {
587
- metadata: { type: 'object', additionalProperties: { type: 'string' } },
588
+ metadata: { type: 'object', additionalProperties: {} },
588
589
  },
589
590
  additionalProperties: false,
590
591
  },
@@ -177,6 +177,15 @@ export declare const graphqlConfigSchema: {
177
177
  readonly baseUrlPath: {
178
178
  readonly type: "string";
179
179
  };
180
+ readonly metadata: {
181
+ readonly type: "object";
182
+ readonly properties: {
183
+ readonly apiId: {
184
+ readonly type: "string";
185
+ };
186
+ };
187
+ readonly additionalProperties: true;
188
+ };
180
189
  readonly feedback: {
181
190
  readonly type: "object";
182
191
  readonly properties: {
@@ -104,6 +104,15 @@ exports.graphqlConfigSchema = {
104
104
  baseUrlPath: {
105
105
  type: 'string',
106
106
  },
107
+ metadata: {
108
+ type: 'object',
109
+ properties: {
110
+ apiId: {
111
+ type: 'string',
112
+ },
113
+ },
114
+ additionalProperties: true,
115
+ },
107
116
  feedback: feedback_config_schema_1.feedbackConfigSchema,
108
117
  },
109
118
  additionalProperties: false,
@@ -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
  };
@@ -4864,6 +4864,15 @@ export declare const productConfigOverrideSchema: {
4864
4864
  readonly baseUrlPath: {
4865
4865
  readonly type: "string";
4866
4866
  };
4867
+ readonly metadata: {
4868
+ readonly type: "object";
4869
+ readonly properties: {
4870
+ readonly apiId: {
4871
+ readonly type: "string";
4872
+ };
4873
+ };
4874
+ readonly additionalProperties: true;
4875
+ };
4867
4876
  readonly feedback: {
4868
4877
  readonly type: "object";
4869
4878
  readonly properties: {
@@ -7093,6 +7102,15 @@ export declare const productConfigOverrideSchema: {
7093
7102
  readonly baseUrlPath: {
7094
7103
  readonly type: "string";
7095
7104
  };
7105
+ readonly metadata: {
7106
+ readonly type: "object";
7107
+ readonly properties: {
7108
+ readonly apiId: {
7109
+ readonly type: "string";
7110
+ };
7111
+ };
7112
+ readonly additionalProperties: true;
7113
+ };
7096
7114
  readonly feedback: {
7097
7115
  readonly type: "object";
7098
7116
  readonly properties: {