{ "version": 3, "sources": ["src/app/shared/services/news/news-soft-delete.gql.service.ts"], "sourcesContent": ["import { INews } from '@collections/news/interfaces/news.interface';\r\nimport {Injectable} from '@angular/core';\r\nimport {Mutation, gql} from 'apollo-angular';\r\n\r\nexport interface ISoftDeleteNewsResponse {\r\n softDeleteNews: INews;\r\n}\r\n\r\n@Injectable()\r\nexport class SoftDeleteNewsGQL extends Mutation {\r\n document = gql`\r\n mutation softDeleteNews($companyId: ObjectId, $id: ObjectId!) {\r\n softDeleteNews(companyId: $companyId, id: $id) {\r\n _id\r\n deleted\r\n }\r\n }\r\n `;\r\n}\r\n\r\nexport interface IRestoreDeletedNewsResponse {\r\n restoreDeletedNews: INews;\r\n}\r\n\r\n@Injectable()\r\nexport class RestoreDeletedNewsGQL extends Mutation {\r\n document = gql`\r\n mutation restoreDeletedNews($companyId: ObjectId, $id: ObjectId!) {\r\n restoreDeletedNews(companyId: $companyId, id: $id) {\r\n _id\r\n deleted\r\n }\r\n }\r\n `;\r\n}\r\n\r\nexport interface IHardDeleteNewsResponse {\r\n hardDeleteNews: INews;\r\n}\r\n\r\n@Injectable()\r\nexport class HardDeleteNewsGQL extends Mutation {\r\n document = gql`\r\n mutation hardDeleteNews($id: ObjectId!) {\r\n hardDeleteNews(id: $id) {\r\n _id\r\n }\r\n }\r\n `;\r\n}\r\n"], "mappings": "2FASA,IAAaA,GAAkB,IAAA,CAAzB,IAAOA,EAAP,MAAOA,UAA0BC,CAAiC,CADxEC,aAAA,qBAEE,KAAAC,SAAWC;;;;;;;gEADAJ,CAAiB,IAAAK,GAAjBL,CAAiB,CAAA,CAAA,GAAA,wBAAjBA,EAAiBM,QAAjBN,EAAiBO,SAAA,CAAA,EAAxB,IAAOP,EAAPQ,SAAOR,CAAkB,GAAA,EAgBlBS,GAAsB,IAAA,CAA7B,IAAOA,EAAP,MAAOA,UAA8BR,CAAqC,CADhFC,aAAA,qBAEE,KAAAC,SAAWC;;;;;;;gEADAK,CAAqB,IAAAJ,GAArBI,CAAqB,CAAA,CAAA,GAAA,wBAArBA,EAAqBH,QAArBG,EAAqBF,SAAA,CAAA,EAA5B,IAAOE,EAAPC,SAAOD,CAAsB,GAAA,EAgBtBE,GAAkB,IAAA,CAAzB,IAAOA,EAAP,MAAOA,UAA0BV,CAAiC,CADxEC,aAAA,qBAEE,KAAAC,SAAWC;;;;;;gEADAO,CAAiB,IAAAN,GAAjBM,CAAiB,CAAA,CAAA,GAAA,wBAAjBA,EAAiBL,QAAjBK,EAAiBJ,SAAA,CAAA,EAAxB,IAAOI,EAAPC,SAAOD,CAAkB,GAAA", "names": ["SoftDeleteNewsGQL", "Mutation", "constructor", "document", "gql", "t", "factory", "\u0275fac", "_SoftDeleteNewsGQL", "RestoreDeletedNewsGQL", "_RestoreDeletedNewsGQL", "HardDeleteNewsGQL", "_HardDeleteNewsGQL"] }