| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import gql from 'graphql-tag';
- export const adminApiExtensions = gql`
- type GlobalSearchResultItem {
- id: ID!
- name: String!
- data: JSON
- entityType: String!
- entityId: ID!
- entityCreatedAt: DateTime!
- entityUpdatedAt: DateTime!
- languageCode: LanguageCode!
- }
- type GlobalSearchResult {
- items: [GlobalSearchResultItem!]!
- totalItems: Int!
- }
- enum GlobalSearchSortField {
- id
- name
- entityCreatedAt
- entityUpdatedAt
- }
- enum GlobalSearchSortDirection {
- ASC
- DESC
- }
- input GlobalSearchInput {
- query: String
- enabledOnly: Boolean
- entityTypes: [String!]
- sortField: GlobalSearchSortField
- sortDirection: GlobalSearchSortDirection
- take: Int
- skip: Int
- }
- extend type Query {
- globalSearch(input: GlobalSearchInput!): GlobalSearchResult!
- globalSearchIndexableEntities: [String!]!
- }
- extend type Mutation {
- triggerGlobalSearchBuildIndex: Boolean!
- triggerGlobalSearchRebuildIndex: Boolean!
- }
- `;
|