UNPKG

@redocly/graphql-docs

Version:

Redocly GraphQL docs

2 lines (1 loc) 1 kB
const i={queries:{name:"Queries",labelTranslationKey:"graphql.queries"},mutations:{name:"Mutations",labelTranslationKey:"graphql.mutations"},subscriptions:{name:"Subscriptions",labelTranslationKey:"graphql.subscriptions"},directives:{name:"Directives",labelTranslationKey:"graphql.directives"},objects:{name:"Objects",labelTranslationKey:"graphql.objects"},interfaces:{name:"Interfaces",labelTranslationKey:"graphql.interfaces"},unions:{name:"Unions",labelTranslationKey:"graphql.unions"},enums:{name:"Enums",labelTranslationKey:"graphql.enums"},inputs:{name:"Inputs",labelTranslationKey:"graphql.inputs"},scalars:{name:"Scalars",labelTranslationKey:"graphql.scalars"}};function t(a,n){return{id:a,name:n||a,typeGroups:new Map}}function r(a,n,e){return{id:l(a,n,e),name:i[n].name,items:[],typeGroupId:n,labelTranslationKey:i[n].labelTranslationKey}}function l(a,n,e){return e.groups.length?`${a}/${n}`:n}export{i as TYPE_GROUP_NAMES,t as getInitialMenuGroup,r as getInitialTypeGroup,l as getTypeGroupId};