persona-community-5/.pnpm-store/v3/files/68/5c7b190f426da03ab32d9871a134c83c15d7351009ae20c2a307f6dce2eb27c2dd2b899580a656b816c9afbb955d1ab8585eca9beec1fabb0b3885008b45a5
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

108 lines
2.6 KiB
Plaintext

import { feedbackConfigSchema } from './feedback-config-schema';
const typeGroupConfig = {
type: 'object',
properties: {
includeByName: {
type: 'array',
items: {
type: 'string',
},
},
excludeByName: {
type: 'array',
items: {
type: 'string',
},
},
},
additionalProperties: false,
};
const menuGroupConfig = {
type: 'object',
properties: {
name: {
type: 'string',
},
items: typeGroupConfig,
queries: typeGroupConfig,
mutations: typeGroupConfig,
subscriptions: typeGroupConfig,
types: typeGroupConfig,
directives: typeGroupConfig,
},
required: ['name'],
additionalProperties: false,
};
const menuGroupingConfig = {
type: 'object',
properties: {
requireExactGroups: {
type: 'boolean',
},
groups: {
type: 'array',
items: menuGroupConfig,
},
otherItemsGroupName: {
type: 'string',
},
},
required: ['requireExactGroups', 'groups', 'otherItemsGroupName'],
additionalProperties: false,
};
export const graphqlConfigSchema = {
type: 'object',
properties: {
hidePaginationButtons: {
type: 'boolean',
},
menu: {
type: 'object',
properties: Object.assign({}, menuGroupingConfig.properties),
additionalProperties: false,
},
sidebar: {
type: 'object',
properties: {
hide: {
type: 'boolean',
},
},
},
apiLogo: {
type: 'object',
properties: {
imageUrl: {
type: 'string',
},
href: {
type: 'string',
},
altText: {
type: 'string',
},
backgroundColor: {
type: 'string',
},
},
},
jsonSamplesDepth: {
type: 'number',
},
samplesMaxInlineArgs: {
type: 'number',
},
licenseKey: {
type: 'string',
},
fieldExpandLevel: {
type: 'number',
},
baseUrlPath: {
type: 'string',
},
feedback: feedbackConfigSchema,
},
additionalProperties: false,
};
//# sourceMappingURL=graphql-config-schema.js.map