{ "version": 3, "sources": ["src/app/shared/services/news/news.gql.service.ts"], "sourcesContent": ["import { Query, gql } from 'apollo-angular';\r\nimport { Injectable } from '@angular/core';\r\n\r\n\r\nimport { IPage } from '@collections/common/interfaces';\r\nimport { NewsStatusEnum, NewsTypeEnum } from '@collections/news/enums/news.enums';\r\nimport { newsFragment } from './fragments/news.fragment';\r\nimport { pageInfoFragment } from '../common/fragments/page-info.fragment';\r\nimport { INews } from '@collections/news/interfaces/news.interface';\r\n\r\n\r\nexport interface NewsResponse {\r\n news: IPage;\r\n}\r\n\r\nexport interface NewsParams {\r\n lang: string;\r\n newsType: NewsTypeEnum;\r\n newsStatus: NewsStatusEnum;\r\n tag: string;\r\n search: string;\r\n}\r\n\r\n@Injectable()\r\nexport class NewsGQL extends Query {\r\n document = gql`\r\n query getNews ($first: Int, $after: String, $lang: String!, $newsType: String!, $newsStatus: String!,\r\n $unpublished: Boolean, $companyId: ObjectId, $tag: String, $search: String,\r\n $fieldsOfRelevance: [String!], $category: String) {\r\n news(first: $first, after: $after, lang: $lang, newsType: $newsType, newsStatus: $newsStatus, unpublished: $unpublished,\r\n companyId: $companyId, tag: $tag, search: $search, fieldsOfRelevance: $fieldsOfRelevance, category: $category) {\r\n totalCount\r\n edges {\r\n cursor\r\n node {\r\n ...news\r\n summary\r\n }\r\n }\r\n pageInfo {\r\n ...pageInfo\r\n }\r\n\r\n }\r\n }\r\n ${newsFragment},\r\n ${pageInfoFragment}\r\n `;\r\n}\r\n"], "mappings": "gLAwBA,IAAaA,GAAQ,IAAA,CAAf,IAAOA,EAAP,MAAOA,UAAgBC,CAAmB,CADhDC,aAAA,qBAEE,KAAAC,SAAWC;;;;;;;;;;;;;;;;;;;;IAoBTC,CAAY;IACZC,CAAgB;gEAtBPN,CAAO,IAAAO,GAAPP,CAAO,CAAA,CAAA,GAAA,wBAAPA,EAAOQ,QAAPR,EAAOS,SAAA,CAAA,EAAd,IAAOT,EAAPU,SAAOV,CAAQ,GAAA", "names": ["NewsGQL", "Query", "constructor", "document", "gql", "newsFragment", "pageInfoFragment", "t", "factory", "\u0275fac", "_NewsGQL"] }