@redocly/config 0.6.0 → 0.6.2
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 +300 -1
- package/lib/default-theme-config-schema.js +2 -1
- 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/redoc-config-schema.js +2 -67
- package/lib/root-config-schema.d.ts +3587 -1837
- package/lib/root-config-schema.js +11 -7
- package/lib/types.d.ts +2 -0
- package/lib-esm/default-theme-config-schema.d.ts +300 -1
- package/lib-esm/default-theme-config-schema.js +2 -1
- 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/redoc-config-schema.js +2 -67
- package/lib-esm/root-config-schema.d.ts +3587 -1837
- package/lib-esm/root-config-schema.js +11 -7
- package/lib-esm/types.d.ts +2 -0
- package/package.json +3 -2
- package/CHANGELOG.md +0 -74
- 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/redoc-config-schema.js.map +0 -1
- package/lib/redoc-types.js.map +0 -1
- package/lib/remove-property-recursively.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/redoc-config-schema.js.map +0 -1
- package/lib-esm/redoc-types.js.map +0 -1
- package/lib-esm/remove-property-recursively.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 -757
- package/src/index.ts +0 -14
- package/src/portal-shared-types.ts +0 -330
- package/src/redoc-config-schema.ts +0 -183
- package/src/redoc-types.ts +0 -80
- package/src/remove-property-recursively.ts +0 -39
- package/src/reunite-config-schema.ts +0 -7
- package/src/root-config-schema.ts +0 -404
- package/src/types.ts +0 -86
- package/tsconfig.build.json +0 -12
- package/tsconfig.json +0 -10
- package/tsconfig.lib-esm.json +0 -15
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -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,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.graphqlConfigSchema = void 0;
|
|
4
|
+
const feedback_config_schema_1 = require("./feedback-config-schema");
|
|
5
|
+
const typeGroupConfig = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
includeByName: {
|
|
9
|
+
type: 'array',
|
|
10
|
+
items: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
excludeByName: {
|
|
15
|
+
type: 'array',
|
|
16
|
+
items: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
additionalProperties: false,
|
|
22
|
+
};
|
|
23
|
+
const menuGroupConfig = {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
name: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
},
|
|
29
|
+
items: typeGroupConfig,
|
|
30
|
+
queries: typeGroupConfig,
|
|
31
|
+
mutations: typeGroupConfig,
|
|
32
|
+
subscriptions: typeGroupConfig,
|
|
33
|
+
types: typeGroupConfig,
|
|
34
|
+
directives: typeGroupConfig,
|
|
35
|
+
},
|
|
36
|
+
required: ['name'],
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
};
|
|
39
|
+
const menuGroupingConfig = {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
requireExactGroups: {
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
},
|
|
45
|
+
groups: {
|
|
46
|
+
type: 'array',
|
|
47
|
+
items: menuGroupConfig,
|
|
48
|
+
},
|
|
49
|
+
otherItemsGroupName: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ['requireExactGroups', 'groups', 'otherItemsGroupName'],
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
};
|
|
56
|
+
exports.graphqlConfigSchema = {
|
|
57
|
+
type: 'object',
|
|
58
|
+
properties: {
|
|
59
|
+
pagination: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
enum: ['none', 'section', 'item'],
|
|
62
|
+
},
|
|
63
|
+
navigation: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: {
|
|
66
|
+
contentPrefix: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
},
|
|
69
|
+
menuPrefix: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
hidePaginationButtons: {
|
|
75
|
+
type: 'boolean',
|
|
76
|
+
},
|
|
77
|
+
menu: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: Object.assign({ initialLoadState: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
enum: ['all-expanded', 'default'],
|
|
82
|
+
} }, menuGroupingConfig.properties),
|
|
83
|
+
additionalProperties: false,
|
|
84
|
+
},
|
|
85
|
+
sidebar: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
hide: {
|
|
89
|
+
type: 'boolean',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
apiLogo: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
properties: {
|
|
96
|
+
imageUrl: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
},
|
|
99
|
+
href: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
102
|
+
altText: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
},
|
|
105
|
+
backgroundColor: {
|
|
106
|
+
type: 'string',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
jsonSamplesExpandLevel: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
},
|
|
113
|
+
sampleMaxInlineArgs: {
|
|
114
|
+
type: 'number',
|
|
115
|
+
},
|
|
116
|
+
licenseKey: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
},
|
|
119
|
+
fieldExpandLevel: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
},
|
|
122
|
+
baseUrlPath: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
},
|
|
125
|
+
feedback: feedback_config_schema_1.feedbackConfigSchema,
|
|
126
|
+
},
|
|
127
|
+
additionalProperties: false,
|
|
128
|
+
};
|
|
129
|
+
//# 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/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';
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.LayoutVariant = exports.AuthProviderType = exports.ApigeeDevOnboardingIntegrationAuthType = exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.rootRedoclyConfigSchema = exports.rbacConfigSchema = void 0;
|
|
17
|
+
exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.LayoutVariant = exports.DEFAULT_TEAM_CLAIM_NAME = exports.AuthProviderType = exports.ApigeeDevOnboardingIntegrationAuthType = exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.rootRedoclyConfigSchema = exports.rbacConfigSchema = void 0;
|
|
18
18
|
var root_config_schema_1 = require("./root-config-schema");
|
|
19
19
|
Object.defineProperty(exports, "rbacConfigSchema", { enumerable: true, get: function () { return root_config_schema_1.rbacConfigSchema; } });
|
|
20
20
|
Object.defineProperty(exports, "rootRedoclyConfigSchema", { enumerable: true, get: function () { return root_config_schema_1.rootRedoclyConfigSchema; } });
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./portal-shared-types"), exports);
|
|
|
26
26
|
var constants_1 = require("./constants");
|
|
27
27
|
Object.defineProperty(exports, "ApigeeDevOnboardingIntegrationAuthType", { enumerable: true, get: function () { return constants_1.ApigeeDevOnboardingIntegrationAuthType; } });
|
|
28
28
|
Object.defineProperty(exports, "AuthProviderType", { enumerable: true, get: function () { return constants_1.AuthProviderType; } });
|
|
29
|
+
Object.defineProperty(exports, "DEFAULT_TEAM_CLAIM_NAME", { enumerable: true, get: function () { return constants_1.DEFAULT_TEAM_CLAIM_NAME; } });
|
|
29
30
|
Object.defineProperty(exports, "LayoutVariant", { enumerable: true, get: function () { return constants_1.LayoutVariant; } });
|
|
30
31
|
Object.defineProperty(exports, "REDOCLY_TEAMS_RBAC", { enumerable: true, get: function () { return constants_1.REDOCLY_TEAMS_RBAC; } });
|
|
31
32
|
Object.defineProperty(exports, "REDOCLY_ROUTE_RBAC", { enumerable: true, get: function () { return constants_1.REDOCLY_ROUTE_RBAC; } });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.redocConfigSchema = void 0;
|
|
4
|
+
const feedback_config_schema_1 = require("./feedback-config-schema");
|
|
4
5
|
const codeSamplesConfigSchema = {
|
|
5
6
|
type: 'object',
|
|
6
7
|
properties: {
|
|
@@ -72,73 +73,7 @@ exports.redocConfigSchema = {
|
|
|
72
73
|
hideLoading: { type: 'boolean' },
|
|
73
74
|
disableRouter: { type: 'boolean' },
|
|
74
75
|
hideSidebar: { type: 'boolean' },
|
|
75
|
-
feedback:
|
|
76
|
-
type: 'object',
|
|
77
|
-
properties: {
|
|
78
|
-
hide: {
|
|
79
|
-
type: 'boolean',
|
|
80
|
-
default: false,
|
|
81
|
-
},
|
|
82
|
-
type: {
|
|
83
|
-
type: 'string',
|
|
84
|
-
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'],
|
|
85
|
-
default: 'sentiment',
|
|
86
|
-
},
|
|
87
|
-
settings: {
|
|
88
|
-
type: 'object',
|
|
89
|
-
properties: {
|
|
90
|
-
label: { type: 'string' },
|
|
91
|
-
submitText: { type: 'string' },
|
|
92
|
-
buttonText: { type: 'string' },
|
|
93
|
-
component: {
|
|
94
|
-
type: 'string',
|
|
95
|
-
enum: ['radio', 'checkbox'],
|
|
96
|
-
default: 'checkbox',
|
|
97
|
-
},
|
|
98
|
-
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
99
|
-
leftScaleLabel: { type: 'string' },
|
|
100
|
-
rightScaleLabel: { type: 'string' },
|
|
101
|
-
reasons: {
|
|
102
|
-
type: 'object',
|
|
103
|
-
properties: {
|
|
104
|
-
hide: {
|
|
105
|
-
type: 'boolean',
|
|
106
|
-
default: false,
|
|
107
|
-
},
|
|
108
|
-
component: {
|
|
109
|
-
type: 'string',
|
|
110
|
-
enum: ['radio', 'checkbox'],
|
|
111
|
-
default: 'checkbox',
|
|
112
|
-
},
|
|
113
|
-
label: { type: 'string' },
|
|
114
|
-
items: { type: 'array', items: { type: 'string' } },
|
|
115
|
-
},
|
|
116
|
-
additionalProperties: false,
|
|
117
|
-
},
|
|
118
|
-
comment: {
|
|
119
|
-
type: 'object',
|
|
120
|
-
properties: {
|
|
121
|
-
hide: {
|
|
122
|
-
type: 'boolean',
|
|
123
|
-
default: false,
|
|
124
|
-
},
|
|
125
|
-
label: { type: 'string' },
|
|
126
|
-
likeLabel: { type: 'string' },
|
|
127
|
-
dislikeLabel: { type: 'string' },
|
|
128
|
-
satisfiedLabel: { type: 'string' },
|
|
129
|
-
neutralLabel: { type: 'string' },
|
|
130
|
-
dissatisfiedLabel: { type: 'string' },
|
|
131
|
-
},
|
|
132
|
-
additionalProperties: false,
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
additionalProperties: false,
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
additionalProperties: false,
|
|
139
|
-
default: null,
|
|
140
|
-
nullable: true,
|
|
141
|
-
},
|
|
76
|
+
feedback: feedback_config_schema_1.feedbackConfigSchema,
|
|
142
77
|
hideReplay: { type: 'boolean' },
|
|
143
78
|
oAuth2RedirectURI: { type: 'string', nullable: true },
|
|
144
79
|
corsProxyUrl: { type: 'string' },
|