@redocly/config 0.5.0 → 0.6.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.
- package/lib/default-theme-config-schema.d.ts +605 -14
- package/lib/default-theme-config-schema.js +14 -8
- package/lib/feedback-config-schema.d.ts +102 -0
- package/lib/feedback-config-schema.js +71 -0
- package/lib/graphql-config-schema.d.ts +303 -0
- package/lib/graphql-config-schema.js +129 -0
- package/lib/graphql-types.d.ts +9 -0
- package/lib/graphql-types.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/portal-shared-types.d.ts +19 -7
- package/lib/redoc-config-schema.d.ts +298 -0
- package/lib/redoc-config-schema.js +120 -0
- package/lib/redoc-types.d.ts +84 -0
- package/lib/redoc-types.js +3 -0
- package/lib/remove-property-recursively.d.ts +5 -0
- package/lib/remove-property-recursively.js +26 -0
- package/lib/root-config-schema.d.ts +7117 -3808
- package/lib/root-config-schema.js +12 -2
- package/lib/types.d.ts +4 -0
- package/lib-esm/default-theme-config-schema.d.ts +605 -14
- package/lib-esm/default-theme-config-schema.js +14 -8
- package/lib-esm/feedback-config-schema.d.ts +102 -0
- package/lib-esm/feedback-config-schema.js +68 -0
- package/lib-esm/graphql-config-schema.d.ts +303 -0
- package/lib-esm/graphql-config-schema.js +126 -0
- package/lib-esm/graphql-types.d.ts +9 -0
- package/lib-esm/graphql-types.js +2 -0
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/portal-shared-types.d.ts +19 -7
- package/lib-esm/redoc-config-schema.d.ts +298 -0
- package/lib-esm/redoc-config-schema.js +117 -0
- package/lib-esm/redoc-types.d.ts +84 -0
- package/lib-esm/redoc-types.js +2 -0
- package/lib-esm/remove-property-recursively.d.ts +5 -0
- package/lib-esm/remove-property-recursively.js +22 -0
- package/lib-esm/root-config-schema.d.ts +7117 -3808
- package/lib-esm/root-config-schema.js +12 -2
- package/lib-esm/types.d.ts +4 -0
- package/package.json +5 -4
- package/CHANGELOG.md +0 -68
- package/README_INTERNAL.md +0 -36
- package/lib/.tsbuildinfo +0 -1
- package/lib/constants.js.map +0 -1
- package/lib/default-theme-config-schema.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/portal-shared-types.js.map +0 -1
- package/lib/reunite-config-schema.js.map +0 -1
- package/lib/root-config-schema.js.map +0 -1
- package/lib/types.js.map +0 -1
- package/lib-esm/.tsbuildinfo +0 -1
- package/lib-esm/constants.js.map +0 -1
- package/lib-esm/default-theme-config-schema.js.map +0 -1
- package/lib-esm/index.js.map +0 -1
- package/lib-esm/portal-shared-types.js.map +0 -1
- package/lib-esm/reunite-config-schema.js.map +0 -1
- package/lib-esm/root-config-schema.js.map +0 -1
- package/lib-esm/types.js.map +0 -1
- package/src/constants.ts +0 -18
- package/src/default-theme-config-schema.ts +0 -752
- package/src/index.ts +0 -14
- package/src/portal-shared-types.ts +0 -319
- package/src/reunite-config-schema.ts +0 -7
- package/src/root-config-schema.ts +0 -395
- package/src/types.ts +0 -84
- package/tsconfig.build.json +0 -12
- package/tsconfig.json +0 -10
- package/tsconfig.lib-esm.json +0 -15
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { redocConfigSchema } from './redoc-config-schema';
|
|
2
|
+
import { graphqlConfigSchema } from './graphql-config-schema';
|
|
1
3
|
const logoConfigSchema = {
|
|
2
4
|
type: 'object',
|
|
3
5
|
properties: {
|
|
@@ -281,7 +283,11 @@ export const catalogFilterSchema = {
|
|
|
281
283
|
additionalProperties: false,
|
|
282
284
|
required: ['title', 'property'],
|
|
283
285
|
properties: {
|
|
284
|
-
type: {
|
|
286
|
+
type: {
|
|
287
|
+
type: 'string',
|
|
288
|
+
enum: ['select', 'checkboxes', 'date-range'],
|
|
289
|
+
default: 'checkboxes',
|
|
290
|
+
},
|
|
285
291
|
title: { type: 'string' },
|
|
286
292
|
titleTranslationKey: { type: 'string' },
|
|
287
293
|
property: { type: 'string' },
|
|
@@ -510,13 +516,13 @@ export const themeConfigSchema = {
|
|
|
510
516
|
properties: {
|
|
511
517
|
nextButton: {
|
|
512
518
|
type: 'object',
|
|
513
|
-
properties: Object.assign({ text: { type: 'string', default: 'Next
|
|
519
|
+
properties: Object.assign({ text: { type: 'string', default: 'Next page' } }, hideConfigSchema.properties),
|
|
514
520
|
additionalProperties: false,
|
|
515
521
|
default: {},
|
|
516
522
|
},
|
|
517
523
|
previousButton: {
|
|
518
524
|
type: 'object',
|
|
519
|
-
properties: Object.assign({ text: { type: 'string', default: '
|
|
525
|
+
properties: Object.assign({ text: { type: 'string', default: 'Previous page' } }, hideConfigSchema.properties),
|
|
520
526
|
additionalProperties: false,
|
|
521
527
|
default: {},
|
|
522
528
|
},
|
|
@@ -557,8 +563,8 @@ export const themeConfigSchema = {
|
|
|
557
563
|
default: {},
|
|
558
564
|
},
|
|
559
565
|
markdown: markdownConfigSchema,
|
|
560
|
-
openapi:
|
|
561
|
-
graphql:
|
|
566
|
+
openapi: redocConfigSchema,
|
|
567
|
+
graphql: graphqlConfigSchema,
|
|
562
568
|
analytics: {
|
|
563
569
|
type: 'object',
|
|
564
570
|
properties: {
|
|
@@ -572,9 +578,9 @@ export const themeConfigSchema = {
|
|
|
572
578
|
ga: googleAnalyticsConfigSchema,
|
|
573
579
|
},
|
|
574
580
|
},
|
|
575
|
-
|
|
581
|
+
userMenu: {
|
|
576
582
|
type: 'object',
|
|
577
|
-
properties: Object.assign({
|
|
583
|
+
properties: Object.assign({ items: {
|
|
578
584
|
type: 'array',
|
|
579
585
|
items: {
|
|
580
586
|
type: 'object',
|
|
@@ -587,7 +593,7 @@ export const themeConfigSchema = {
|
|
|
587
593
|
additionalProperties: true,
|
|
588
594
|
},
|
|
589
595
|
default: [],
|
|
590
|
-
} }, hideConfigSchema.properties),
|
|
596
|
+
}, hideLoginButton: { type: 'boolean' } }, hideConfigSchema.properties),
|
|
591
597
|
additionalProperties: false,
|
|
592
598
|
default: {},
|
|
593
599
|
},
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const feedbackConfigSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly hide: {
|
|
5
|
+
readonly type: "boolean";
|
|
6
|
+
readonly default: false;
|
|
7
|
+
};
|
|
8
|
+
readonly type: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
|
|
11
|
+
readonly default: "sentiment";
|
|
12
|
+
};
|
|
13
|
+
readonly settings: {
|
|
14
|
+
readonly type: "object";
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly label: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
};
|
|
19
|
+
readonly submitText: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
};
|
|
22
|
+
readonly buttonText: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
};
|
|
25
|
+
readonly component: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
28
|
+
readonly default: "checkbox";
|
|
29
|
+
};
|
|
30
|
+
readonly items: {
|
|
31
|
+
readonly type: "array";
|
|
32
|
+
readonly items: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
};
|
|
35
|
+
readonly minItems: 1;
|
|
36
|
+
};
|
|
37
|
+
readonly leftScaleLabel: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
readonly rightScaleLabel: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
};
|
|
43
|
+
readonly reasons: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly properties: {
|
|
46
|
+
readonly hide: {
|
|
47
|
+
readonly type: "boolean";
|
|
48
|
+
readonly default: false;
|
|
49
|
+
};
|
|
50
|
+
readonly component: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
53
|
+
readonly default: "checkbox";
|
|
54
|
+
};
|
|
55
|
+
readonly label: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
};
|
|
58
|
+
readonly items: {
|
|
59
|
+
readonly type: "array";
|
|
60
|
+
readonly items: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly additionalProperties: false;
|
|
66
|
+
};
|
|
67
|
+
readonly comment: {
|
|
68
|
+
readonly type: "object";
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly hide: {
|
|
71
|
+
readonly type: "boolean";
|
|
72
|
+
readonly default: false;
|
|
73
|
+
};
|
|
74
|
+
readonly label: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
};
|
|
77
|
+
readonly likeLabel: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
readonly dislikeLabel: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
};
|
|
83
|
+
readonly satisfiedLabel: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly neutralLabel: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
};
|
|
89
|
+
readonly dissatisfiedLabel: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly additionalProperties: false;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
readonly default: null;
|
|
101
|
+
readonly nullable: true;
|
|
102
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export const feedbackConfigSchema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
properties: {
|
|
4
|
+
hide: {
|
|
5
|
+
type: 'boolean',
|
|
6
|
+
default: false,
|
|
7
|
+
},
|
|
8
|
+
type: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'],
|
|
11
|
+
default: 'sentiment',
|
|
12
|
+
},
|
|
13
|
+
settings: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
label: { type: 'string' },
|
|
17
|
+
submitText: { type: 'string' },
|
|
18
|
+
buttonText: { type: 'string' },
|
|
19
|
+
component: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
enum: ['radio', 'checkbox'],
|
|
22
|
+
default: 'checkbox',
|
|
23
|
+
},
|
|
24
|
+
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
25
|
+
leftScaleLabel: { type: 'string' },
|
|
26
|
+
rightScaleLabel: { type: 'string' },
|
|
27
|
+
reasons: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
hide: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
default: false,
|
|
33
|
+
},
|
|
34
|
+
component: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
enum: ['radio', 'checkbox'],
|
|
37
|
+
default: 'checkbox',
|
|
38
|
+
},
|
|
39
|
+
label: { type: 'string' },
|
|
40
|
+
items: { type: 'array', items: { type: 'string' } },
|
|
41
|
+
},
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
},
|
|
44
|
+
comment: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: {
|
|
47
|
+
hide: {
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
default: false,
|
|
50
|
+
},
|
|
51
|
+
label: { type: 'string' },
|
|
52
|
+
likeLabel: { type: 'string' },
|
|
53
|
+
dislikeLabel: { type: 'string' },
|
|
54
|
+
satisfiedLabel: { type: 'string' },
|
|
55
|
+
neutralLabel: { type: 'string' },
|
|
56
|
+
dissatisfiedLabel: { type: 'string' },
|
|
57
|
+
},
|
|
58
|
+
additionalProperties: false,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
additionalProperties: false,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
additionalProperties: false,
|
|
65
|
+
default: null,
|
|
66
|
+
nullable: true,
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=feedback-config-schema.js.map
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
export declare const graphqlConfigSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly pagination: {
|
|
5
|
+
readonly type: "string";
|
|
6
|
+
readonly enum: readonly ["none", "section", "item"];
|
|
7
|
+
};
|
|
8
|
+
readonly navigation: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly contentPrefix: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
};
|
|
14
|
+
readonly menuPrefix: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly hidePaginationButtons: {
|
|
20
|
+
readonly type: "boolean";
|
|
21
|
+
};
|
|
22
|
+
readonly menu: {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly requireExactGroups: {
|
|
26
|
+
readonly type: "boolean";
|
|
27
|
+
};
|
|
28
|
+
readonly groups: {
|
|
29
|
+
readonly type: "array";
|
|
30
|
+
readonly items: {
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly properties: {
|
|
33
|
+
readonly name: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
};
|
|
36
|
+
readonly items: {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly includeByName: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
readonly items: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly excludeByName: {
|
|
46
|
+
readonly type: "array";
|
|
47
|
+
readonly items: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
};
|
|
54
|
+
readonly queries: {
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly includeByName: {
|
|
58
|
+
readonly type: "array";
|
|
59
|
+
readonly items: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly excludeByName: {
|
|
64
|
+
readonly type: "array";
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly additionalProperties: false;
|
|
71
|
+
};
|
|
72
|
+
readonly mutations: {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly includeByName: {
|
|
76
|
+
readonly type: "array";
|
|
77
|
+
readonly items: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly excludeByName: {
|
|
82
|
+
readonly type: "array";
|
|
83
|
+
readonly items: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
};
|
|
90
|
+
readonly subscriptions: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly includeByName: {
|
|
94
|
+
readonly type: "array";
|
|
95
|
+
readonly items: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly excludeByName: {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
};
|
|
108
|
+
readonly types: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly includeByName: {
|
|
112
|
+
readonly type: "array";
|
|
113
|
+
readonly items: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly excludeByName: {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly items: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
};
|
|
126
|
+
readonly directives: {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly properties: {
|
|
129
|
+
readonly includeByName: {
|
|
130
|
+
readonly type: "array";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly excludeByName: {
|
|
136
|
+
readonly type: "array";
|
|
137
|
+
readonly items: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly required: readonly ["name"];
|
|
146
|
+
readonly additionalProperties: false;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly otherItemsGroupName: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
readonly initialLoadState: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly enum: readonly ["all-expanded", "default"];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly additionalProperties: false;
|
|
158
|
+
};
|
|
159
|
+
readonly sidebar: {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly hide: {
|
|
163
|
+
readonly type: "boolean";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly apiLogo: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly imageUrl: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
readonly href: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
};
|
|
176
|
+
readonly altText: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
};
|
|
179
|
+
readonly backgroundColor: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly jsonSamplesExpandLevel: {
|
|
185
|
+
readonly type: "number";
|
|
186
|
+
};
|
|
187
|
+
readonly sampleMaxInlineArgs: {
|
|
188
|
+
readonly type: "number";
|
|
189
|
+
};
|
|
190
|
+
readonly licenseKey: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
};
|
|
193
|
+
readonly fieldExpandLevel: {
|
|
194
|
+
readonly type: "number";
|
|
195
|
+
};
|
|
196
|
+
readonly baseUrlPath: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
};
|
|
199
|
+
readonly feedback: {
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly hide: {
|
|
203
|
+
readonly type: "boolean";
|
|
204
|
+
readonly default: false;
|
|
205
|
+
};
|
|
206
|
+
readonly type: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
|
|
209
|
+
readonly default: "sentiment";
|
|
210
|
+
};
|
|
211
|
+
readonly settings: {
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly label: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
readonly submitText: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
readonly buttonText: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
};
|
|
223
|
+
readonly component: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
226
|
+
readonly default: "checkbox";
|
|
227
|
+
};
|
|
228
|
+
readonly items: {
|
|
229
|
+
readonly type: "array";
|
|
230
|
+
readonly items: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
};
|
|
233
|
+
readonly minItems: 1;
|
|
234
|
+
};
|
|
235
|
+
readonly leftScaleLabel: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
};
|
|
238
|
+
readonly rightScaleLabel: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
};
|
|
241
|
+
readonly reasons: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly hide: {
|
|
245
|
+
readonly type: "boolean";
|
|
246
|
+
readonly default: false;
|
|
247
|
+
};
|
|
248
|
+
readonly component: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
251
|
+
readonly default: "checkbox";
|
|
252
|
+
};
|
|
253
|
+
readonly label: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
};
|
|
256
|
+
readonly items: {
|
|
257
|
+
readonly type: "array";
|
|
258
|
+
readonly items: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly additionalProperties: false;
|
|
264
|
+
};
|
|
265
|
+
readonly comment: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly properties: {
|
|
268
|
+
readonly hide: {
|
|
269
|
+
readonly type: "boolean";
|
|
270
|
+
readonly default: false;
|
|
271
|
+
};
|
|
272
|
+
readonly label: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
};
|
|
275
|
+
readonly likeLabel: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
};
|
|
278
|
+
readonly dislikeLabel: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
readonly satisfiedLabel: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
};
|
|
284
|
+
readonly neutralLabel: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
};
|
|
287
|
+
readonly dissatisfiedLabel: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
readonly additionalProperties: false;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
readonly additionalProperties: false;
|
|
298
|
+
readonly default: null;
|
|
299
|
+
readonly nullable: true;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
2
|
+
const typeGroupConfig = {
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
includeByName: {
|
|
6
|
+
type: 'array',
|
|
7
|
+
items: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
excludeByName: {
|
|
12
|
+
type: 'array',
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
additionalProperties: false,
|
|
19
|
+
};
|
|
20
|
+
const menuGroupConfig = {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
name: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
items: typeGroupConfig,
|
|
27
|
+
queries: typeGroupConfig,
|
|
28
|
+
mutations: typeGroupConfig,
|
|
29
|
+
subscriptions: typeGroupConfig,
|
|
30
|
+
types: typeGroupConfig,
|
|
31
|
+
directives: typeGroupConfig,
|
|
32
|
+
},
|
|
33
|
+
required: ['name'],
|
|
34
|
+
additionalProperties: false,
|
|
35
|
+
};
|
|
36
|
+
const menuGroupingConfig = {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
requireExactGroups: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
},
|
|
42
|
+
groups: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
items: menuGroupConfig,
|
|
45
|
+
},
|
|
46
|
+
otherItemsGroupName: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
required: ['requireExactGroups', 'groups', 'otherItemsGroupName'],
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
};
|
|
53
|
+
export const graphqlConfigSchema = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
pagination: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
enum: ['none', 'section', 'item'],
|
|
59
|
+
},
|
|
60
|
+
navigation: {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
contentPrefix: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
},
|
|
66
|
+
menuPrefix: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
hidePaginationButtons: {
|
|
72
|
+
type: 'boolean',
|
|
73
|
+
},
|
|
74
|
+
menu: {
|
|
75
|
+
type: 'object',
|
|
76
|
+
properties: Object.assign({ initialLoadState: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
enum: ['all-expanded', 'default'],
|
|
79
|
+
} }, menuGroupingConfig.properties),
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
},
|
|
82
|
+
sidebar: {
|
|
83
|
+
type: 'object',
|
|
84
|
+
properties: {
|
|
85
|
+
hide: {
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
apiLogo: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
imageUrl: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
},
|
|
96
|
+
href: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
},
|
|
99
|
+
altText: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
102
|
+
backgroundColor: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
jsonSamplesExpandLevel: {
|
|
108
|
+
type: 'number',
|
|
109
|
+
},
|
|
110
|
+
sampleMaxInlineArgs: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
},
|
|
113
|
+
licenseKey: {
|
|
114
|
+
type: 'string',
|
|
115
|
+
},
|
|
116
|
+
fieldExpandLevel: {
|
|
117
|
+
type: 'number',
|
|
118
|
+
},
|
|
119
|
+
baseUrlPath: {
|
|
120
|
+
type: 'string',
|
|
121
|
+
},
|
|
122
|
+
feedback: feedbackConfigSchema,
|
|
123
|
+
},
|
|
124
|
+
additionalProperties: false,
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=graphql-config-schema.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
import type { Location } from 'react-router-dom';
|
|
3
|
+
import type { graphqlConfigSchema } from './graphql-config-schema';
|
|
4
|
+
export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
|
|
5
|
+
markdown?: {
|
|
6
|
+
parser: (md: string) => string;
|
|
7
|
+
};
|
|
8
|
+
onLocationChange?: (location: Partial<Location>) => void;
|
|
9
|
+
};
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'
|
|
|
2
2
|
export { productThemeOverrideSchema, productConfigOverrideSchema, } from './default-theme-config-schema';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './portal-shared-types';
|
|
5
|
-
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|
|
5
|
+
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|