UNPKG

47.7 kBSource Map (JSON)View Raw
1{"version":3,"file":"ngApollo.umd.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/utils.ts","../../src/query-ref.ts","../../src/tokens.ts","../../src/apollo.ts","../../src/query.ts","../../src/mutation.ts","../../src/subscription.ts","../../src/ngApollo.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {NgZone} from '@angular/core';\nimport {observeOn} from 'rxjs/operators';\nimport {\n ObservableQuery,\n ApolloQueryResult,\n Observable as AObservable,\n} from '@apollo/client/core';\nimport {\n Observable,\n Subscription,\n queueScheduler,\n SchedulerLike,\n SchedulerAction,\n observable,\n} from 'rxjs';\n\nexport function fromPromise<T>(promiseFn: () => Promise<T>): Observable<T> {\n return new Observable<T>((subscriber) => {\n promiseFn().then(\n (result) => {\n if (!subscriber.closed) {\n subscriber.next(result);\n subscriber.complete();\n }\n },\n (error) => {\n if (!subscriber.closed) {\n subscriber.error(error);\n }\n },\n );\n\n return () => subscriber.unsubscribe();\n });\n}\n\nexport class ZoneScheduler implements SchedulerLike {\n constructor(private zone: NgZone) {}\n\n public now = Date.now ? Date.now : () => +new Date();\n\n public schedule<T>(\n work: (this: SchedulerAction<T>, state?: T) => void,\n delay: number = 0,\n state?: T,\n ): Subscription {\n return this.zone.run(() =>\n queueScheduler.schedule(work, delay, state),\n ) as Subscription;\n }\n}\n\n// XXX: Apollo's QueryObservable is not compatible with RxJS\n// TODO: remove it in one of future releases\n// https://github.com/ReactiveX/rxjs/blob/9fb0ce9e09c865920cf37915cc675e3b3a75050b/src/internal/util/subscribeTo.ts#L32\nexport function fixObservable<T>(\n obs: ObservableQuery<T>,\n): Observable<ApolloQueryResult<T>>;\nexport function fixObservable<T>(obs: AObservable<T>): Observable<T>;\nexport function fixObservable<T>(\n obs: AObservable<T> | ObservableQuery<T>,\n): Observable<ApolloQueryResult<T>> | Observable<T> {\n (obs as any)[observable] = () => obs;\n return obs as any;\n}\n\nexport function wrapWithZone<T>(\n obs: Observable<T>,\n ngZone: NgZone,\n): Observable<T> {\n return obs.pipe(observeOn(new ZoneScheduler(ngZone)));\n}\n\nexport function pickFlag<TFlags, K extends keyof TFlags>(\n flags: TFlags | undefined,\n flag: K,\n defaultValue: TFlags[K],\n): TFlags[K] {\n return flags && typeof flags[flag] !== 'undefined'\n ? flags[flag]\n : defaultValue;\n}\n","import {NgZone} from '@angular/core';\nimport {\n ApolloQueryResult,\n ObservableQuery,\n ApolloError,\n FetchMoreQueryOptions,\n FetchMoreOptions,\n SubscribeToMoreOptions,\n UpdateQueryOptions,\n} from '@apollo/client/core';\nimport {Observable, from} from 'rxjs';\n\nimport {wrapWithZone, fixObservable} from './utils';\nimport {WatchQueryOptions, EmptyObject} from './types';\nimport {startWith} from 'rxjs/operators';\n\nexport class QueryRef<T, V = EmptyObject> {\n public valueChanges: Observable<ApolloQueryResult<T>>;\n public options: ObservableQuery<T, V>['options'];\n public queryId: ObservableQuery<T, V>['queryId'];\n public variables: V;\n\n constructor(\n private obsQuery: ObservableQuery<T, V>,\n ngZone: NgZone,\n options: WatchQueryOptions<V>,\n ) {\n const wrapped = wrapWithZone(from(fixObservable(this.obsQuery)), ngZone);\n\n this.valueChanges = options.useInitialLoading\n ? wrapped.pipe(\n startWith({\n ...this.obsQuery.getCurrentResult(),\n error: undefined,\n partial: undefined,\n stale: true,\n }),\n )\n : wrapped;\n this.queryId = this.obsQuery.queryId;\n }\n\n // ObservableQuery's methods\n\n public result(): Promise<ApolloQueryResult<T>> {\n return this.obsQuery.result();\n }\n\n public getLastResult(): ApolloQueryResult<T> {\n return this.obsQuery.getLastResult();\n }\n\n public getLastError(): ApolloError {\n return this.obsQuery.getLastError();\n }\n\n public resetLastResults(): void {\n return this.obsQuery.resetLastResults();\n }\n\n public refetch(variables?: V): Promise<ApolloQueryResult<T>> {\n return this.obsQuery.refetch(variables);\n }\n\n public fetchMore<K extends keyof V>(\n fetchMoreOptions: FetchMoreQueryOptions<V, K> & FetchMoreOptions<T, V>,\n ): Promise<ApolloQueryResult<T>> {\n return this.obsQuery.fetchMore(fetchMoreOptions);\n }\n\n public subscribeToMore<MT = any, MV = EmptyObject>(\n options: SubscribeToMoreOptions<T, MV, MT>,\n ): () => void {\n // XXX: there's a bug in apollo-client typings\n // it should not inherit types from ObservableQuery\n return this.obsQuery.subscribeToMore(options as any);\n }\n public updateQuery(\n mapFn: (previousQueryResult: T, options: UpdateQueryOptions<V>) => T,\n ): void {\n return this.obsQuery.updateQuery(mapFn);\n }\n\n public stopPolling(): void {\n return this.obsQuery.stopPolling();\n }\n\n public startPolling(pollInterval: number): void {\n return this.obsQuery.startPolling(pollInterval);\n }\n\n public setOptions(opts: any) {\n return this.obsQuery.setOptions(opts);\n }\n\n public setVariables(variables: V) {\n return this.obsQuery.setVariables(variables);\n }\n}\n","import {InjectionToken} from '@angular/core';\nimport {ApolloClientOptions} from '@apollo/client/core';\nimport {NamedOptions, Flags} from './types';\n\nexport const APOLLO_FLAGS = new InjectionToken<Flags>('APOLLO_FLAGS');\n\nexport const APOLLO_OPTIONS = new InjectionToken<ApolloClientOptions<any>>(\n 'APOLLO_OPTIONS',\n);\n\nexport const APOLLO_NAMED_OPTIONS = new InjectionToken<NamedOptions>(\n 'APOLLO_NAMED_OPTIONS',\n);\n","import {Injectable, Optional, Inject, NgZone} from '@angular/core';\nimport {\n ApolloClient,\n QueryOptions,\n MutationOptions,\n ApolloQueryResult,\n SubscriptionOptions,\n ApolloClientOptions,\n ObservableQuery,\n FetchResult,\n} from '@apollo/client/core';\nimport {Observable, from} from 'rxjs';\n\nimport {QueryRef} from './query-ref';\nimport {\n WatchQueryOptions,\n ExtraSubscriptionOptions,\n EmptyObject,\n NamedOptions,\n Flags,\n} from './types';\nimport {APOLLO_OPTIONS, APOLLO_NAMED_OPTIONS, APOLLO_FLAGS} from './tokens';\nimport {fromPromise, wrapWithZone, fixObservable, pickFlag} from './utils';\n\nexport class ApolloBase<TCacheShape = any> {\n private useInitialLoading: boolean;\n\n constructor(\n protected ngZone: NgZone,\n protected flags?: Flags,\n protected _client?: ApolloClient<TCacheShape>,\n ) {\n this.useInitialLoading = pickFlag(flags, 'useInitialLoading', false);\n }\n\n public watchQuery<TData, TVariables = EmptyObject>(\n options: WatchQueryOptions<TVariables>,\n ): QueryRef<TData, TVariables> {\n return new QueryRef<TData, TVariables>(\n this.ensureClient().watchQuery<TData, TVariables>({\n ...options,\n }) as ObservableQuery<TData, TVariables>,\n this.ngZone,\n {\n useInitialLoading: this.useInitialLoading,\n ...options,\n },\n );\n }\n\n public query<T, V = EmptyObject>(\n options: QueryOptions<V>,\n ): Observable<ApolloQueryResult<T>> {\n return fromPromise<ApolloQueryResult<T>>(() =>\n this.ensureClient().query<T, V>({...options}),\n );\n }\n\n public mutate<T, V = EmptyObject>(\n options: MutationOptions<T, V>,\n ): Observable<FetchResult<T>> {\n return fromPromise<FetchResult<T>>(() =>\n this.ensureClient().mutate<T, V>({...options}),\n );\n }\n\n public subscribe<T, V = EmptyObject>(\n options: SubscriptionOptions<V>,\n extra?: ExtraSubscriptionOptions,\n ): Observable<FetchResult<T>> {\n const obs = from(\n fixObservable(\n this.ensureClient().subscribe<T, V>({...options}),\n ),\n );\n\n return extra && extra.useZone !== true\n ? obs\n : wrapWithZone(obs, this.ngZone);\n }\n\n /**\n * Get an access to an instance of ApolloClient\n * @deprecated use `apollo.client` instead\n */\n public getClient() {\n return this.client;\n }\n\n /**\n * Set a new instance of ApolloClient\n * Remember to clean up the store before setting a new client.\n * @deprecated use `apollo.client = client` instead\n *\n * @param client ApolloClient instance\n */\n public setClient(client: ApolloClient<TCacheShape>) {\n this.client = client;\n }\n\n /**\n * Get an access to an instance of ApolloClient\n */\n public get client(): ApolloClient<TCacheShape> {\n return this._client;\n }\n\n /**\n * Set a new instance of ApolloClient\n * Remember to clean up the store before setting a new client.\n *\n * @param client ApolloClient instance\n */\n public set client(client: ApolloClient<TCacheShape>) {\n if (this._client) {\n throw new Error('Client has been already defined');\n }\n\n this._client = client;\n }\n\n private ensureClient() {\n this.checkInstance();\n\n return this._client;\n }\n\n private checkInstance(): void {\n if (!this._client) {\n throw new Error('Client has not been defined yet');\n }\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class Apollo extends ApolloBase<any> {\n private map: Map<string, ApolloBase<any>> = new Map<\n string,\n ApolloBase<any>\n >();\n\n constructor(\n private _ngZone: NgZone,\n @Optional()\n @Inject(APOLLO_OPTIONS)\n apolloOptions?: ApolloClientOptions<any>,\n @Optional()\n @Inject(APOLLO_NAMED_OPTIONS)\n apolloNamedOptions?: NamedOptions,\n @Optional() @Inject(APOLLO_FLAGS) flags?: Flags,\n ) {\n super(_ngZone, flags);\n\n if (apolloOptions) {\n this.createDefault(apolloOptions);\n }\n\n if (apolloNamedOptions && typeof apolloNamedOptions === 'object') {\n for (const name in apolloNamedOptions) {\n if (apolloNamedOptions.hasOwnProperty(name)) {\n const options = apolloNamedOptions[name];\n this.createNamed(name, options);\n }\n }\n }\n }\n\n /**\n * Create an instance of ApolloClient\n * @param options Options required to create ApolloClient\n * @param name client's name\n */\n public create<TCacheShape>(\n options: ApolloClientOptions<TCacheShape>,\n name?: string,\n ): void {\n if (isDefault(name)) {\n this.createDefault<TCacheShape>(options);\n } else {\n this.createNamed<TCacheShape>(name, options);\n }\n }\n\n /**\n * Use a default ApolloClient\n */\n public default(): ApolloBase<any> {\n return this;\n }\n\n /**\n * Use a named ApolloClient\n * @param name client's name\n */\n public use(name: string): ApolloBase<any> {\n if (isDefault(name)) {\n return this.default();\n }\n return this.map.get(name);\n }\n\n /**\n * Create a default ApolloClient, same as `apollo.create(options)`\n * @param options ApolloClient's options\n */\n public createDefault<TCacheShape>(\n options: ApolloClientOptions<TCacheShape>,\n ): void {\n if (this.getClient()) {\n throw new Error('Apollo has been already created.');\n }\n\n return this.setClient(new ApolloClient<TCacheShape>(options));\n }\n\n /**\n * Create a named ApolloClient, same as `apollo.create(options, name)`\n * @param name client's name\n * @param options ApolloClient's options\n */\n public createNamed<TCacheShape>(\n name: string,\n options: ApolloClientOptions<TCacheShape>,\n ): void {\n if (this.map.has(name)) {\n throw new Error(`Client ${name} has been already created`);\n }\n this.map.set(\n name,\n new ApolloBase(\n this._ngZone,\n this.flags,\n new ApolloClient<TCacheShape>(options),\n ),\n );\n }\n\n /**\n * Remember to clean up the store before removing a client\n * @param name client's name\n */\n public removeClient(name?: string): void {\n if (isDefault(name)) {\n this._client = undefined;\n } else {\n this.map.delete(name);\n }\n }\n}\n\nfunction isDefault(name?: string): boolean {\n return !name || name === 'default';\n}\n","import {Injectable} from '@angular/core';\nimport {DocumentNode} from 'graphql';\nimport {ApolloQueryResult} from '@apollo/client/core';\nimport {Observable} from 'rxjs';\n\nimport {Apollo} from './apollo';\nimport {QueryRef} from './query-ref';\nimport {WatchQueryOptionsAlone, QueryOptionsAlone, EmptyObject} from './types';\n\n@Injectable()\nexport class Query<T = {}, V = EmptyObject> {\n public readonly document: DocumentNode;\n public client = 'default';\n\n constructor(protected apollo: Apollo) {}\n\n public watch(\n variables?: V,\n options?: WatchQueryOptionsAlone<V>,\n ): QueryRef<T, V> {\n return this.apollo.use(this.client).watchQuery<T, V>({\n ...options,\n variables,\n query: this.document,\n });\n }\n\n public fetch(\n variables?: V,\n options?: QueryOptionsAlone<V>,\n ): Observable<ApolloQueryResult<T>> {\n return this.apollo.use(this.client).query<T, V>({\n ...options,\n variables,\n query: this.document,\n });\n }\n}\n","import {Injectable} from '@angular/core';\nimport {DocumentNode} from 'graphql';\nimport {Observable} from 'rxjs';\nimport {FetchResult} from '@apollo/client/core';\n\nimport {Apollo} from './apollo';\nimport {MutationOptionsAlone, EmptyObject} from './types';\n\n@Injectable()\nexport class Mutation<T = {}, V = EmptyObject> {\n public readonly document: DocumentNode;\n public client = 'default';\n\n constructor(protected apollo: Apollo) {}\n\n public mutate(\n variables?: V,\n options?: MutationOptionsAlone<T, V>,\n ): Observable<FetchResult<T>> {\n return this.apollo.use(this.client).mutate<T, V>({\n ...options,\n variables,\n mutation: this.document,\n });\n }\n}\n","import {Injectable} from '@angular/core';\nimport {DocumentNode} from 'graphql';\nimport {Observable} from 'rxjs';\n\nimport {Apollo} from './apollo';\nimport {\n SubscriptionOptionsAlone,\n ExtraSubscriptionOptions,\n SubscriptionResult,\n EmptyObject,\n} from './types';\n\n@Injectable()\nexport class Subscription<T = any, V = EmptyObject> {\n public readonly document: DocumentNode;\n public client = 'default';\n\n constructor(protected apollo: Apollo) {}\n\n public subscribe(\n variables?: V,\n options?: SubscriptionOptionsAlone<V>,\n extra?: ExtraSubscriptionOptions,\n ): Observable<SubscriptionResult<T>> {\n return this.apollo.use(this.client).subscribe<T, V>(\n {\n ...options,\n variables,\n query: this.document,\n },\n extra,\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Observable","queueScheduler","observable","observeOn","from","startWith","InjectionToken","ApolloClient","Injectable","NgZone","Optional","Inject"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,aAAa,CAAC,C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