{"version":3,"sources":["node_modules/@vendasta/google-search-console/fesm2020/vendasta-google-search-console.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nimport { map } from 'rxjs/operators';\nclass ConnectedSite {\n static fromProto(proto) {\n let m = new ConnectedSite();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.gscSiteUrl !== 'undefined') {\n toReturn['gscSiteUrl'] = this.gscSiteUrl;\n }\n if (typeof this.gscUserId !== 'undefined') {\n toReturn['gscUserId'] = this.gscUserId;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.isBroken !== 'undefined') {\n toReturn['isBroken'] = this.isBroken;\n }\n if (typeof this.deleted !== 'undefined') {\n toReturn['deleted'] = this.deleted;\n }\n return toReturn;\n }\n}\nclass CollectRecordsRequest {\n static fromProto(proto) {\n let m = new CollectRecordsRequest();\n m = Object.assign(m, proto);\n if (proto.startDate) {\n m.startDate = new Date(proto.startDate);\n }\n if (proto.endDate) {\n m.endDate = new Date(proto.endDate);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.startDate !== 'undefined' && this.startDate !== null) {\n toReturn['startDate'] = 'toApiJson' in this.startDate ? this.startDate.toApiJson() : this.startDate;\n }\n if (typeof this.endDate !== 'undefined' && this.endDate !== null) {\n toReturn['endDate'] = 'toApiJson' in this.endDate ? this.endDate.toApiJson() : this.endDate;\n }\n return toReturn;\n }\n}\nclass CollectRecordsResponse {\n static fromProto(proto) {\n let m = new CollectRecordsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.success !== 'undefined') {\n toReturn['success'] = this.success;\n }\n return toReturn;\n }\n}\nclass DeleteSiteRequest {\n static fromProto(proto) {\n let m = new DeleteSiteRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass DeleteSiteResponse {\n static fromProto(proto) {\n let m = new DeleteSiteResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.success !== 'undefined') {\n toReturn['success'] = this.success;\n }\n return toReturn;\n }\n}\nclass GetAvailableGSCSitesRequest {\n static fromProto(proto) {\n let m = new GetAvailableGSCSitesRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n return toReturn;\n }\n}\nclass GetAvailableGSCSitesResponse {\n static fromProto(proto) {\n let m = new GetAvailableGSCSitesResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.sites !== 'undefined') {\n toReturn['sites'] = this.sites;\n }\n return toReturn;\n }\n}\nclass GetKeywordsRequest {\n static fromProto(proto) {\n let m = new GetKeywordsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass GetKeywordsResponse {\n static fromProto(proto) {\n let m = new GetKeywordsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.keywords !== 'undefined') {\n toReturn['keywords'] = this.keywords;\n }\n return toReturn;\n }\n}\nclass GetSiteRequest {\n static fromProto(proto) {\n let m = new GetSiteRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass GetSiteResponse {\n static fromProto(proto) {\n let m = new GetSiteResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.site !== 'undefined') {\n toReturn['site'] = this.site;\n }\n return toReturn;\n }\n}\nclass LookupSitesRequest {\n static fromProto(proto) {\n let m = new LookupSitesRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n return toReturn;\n }\n}\nclass LookupSitesResponse {\n static fromProto(proto) {\n let m = new LookupSitesResponse();\n m = Object.assign(m, proto);\n if (proto.sites) {\n m.sites = proto.sites.map(ConnectedSite.fromProto);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.sites !== 'undefined' && this.sites !== null) {\n toReturn['sites'] = 'toApiJson' in this.sites ? this.sites.toApiJson() : this.sites;\n }\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass SetInitialKeywordsRequest {\n static fromProto(proto) {\n let m = new SetInitialKeywordsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass SetInitialKeywordsResponse {\n static fromProto(proto) {\n let m = new SetInitialKeywordsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.success !== 'undefined') {\n toReturn['success'] = this.success;\n }\n return toReturn;\n }\n}\nclass SetKeywordsRequest {\n static fromProto(proto) {\n let m = new SetKeywordsRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.keyword !== 'undefined') {\n toReturn['keyword'] = this.keyword;\n }\n return toReturn;\n }\n}\nclass SetKeywordsResponse {\n static fromProto(proto) {\n let m = new SetKeywordsResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.success !== 'undefined') {\n toReturn['success'] = this.success;\n }\n return toReturn;\n }\n}\nclass SetSiteRequest {\n static fromProto(proto) {\n let m = new SetSiteRequest();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.gscSiteUrl !== 'undefined') {\n toReturn['gscSiteUrl'] = this.gscSiteUrl;\n }\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n return toReturn;\n }\n}\nclass SetSiteResponse {\n static fromProto(proto) {\n let m = new SetSiteResponse();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.success !== 'undefined') {\n toReturn['success'] = this.success;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'google-search-console-api.vendasta-local.com',\n 'test': '',\n 'demo': 'google-search-console-demo.apigateway.co',\n 'prod': 'google-search-console-prod.apigateway.co',\n 'production': 'google-search-console-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n class HostService {\n get host() {\n return hostMap[environment.toLowerCase()];\n }\n get hostWithScheme() {\n return 'https://' + this.host;\n }\n }\n HostService.ɵfac = function HostService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || HostService)();\n };\n HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HostService,\n factory: HostService.ɵfac,\n providedIn: 'root'\n });\n return HostService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet RecordsApiService = /*#__PURE__*/(() => {\n class RecordsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n collectRecords(r) {\n const request = r.toApiJson ? r : new CollectRecordsRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Records/CollectRecords\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CollectRecordsResponse.fromProto(resp)));\n }\n setInitialKeywords(r) {\n const request = r.toApiJson ? r : new SetInitialKeywordsRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Records/SetInitialKeywords\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SetInitialKeywordsResponse.fromProto(resp)));\n }\n setKeywords(r) {\n const request = r.toApiJson ? r : new SetKeywordsRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Records/SetKeywords\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SetKeywordsResponse.fromProto(resp)));\n }\n getKeywords(r) {\n const request = r.toApiJson ? r : new GetKeywordsRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Records/GetKeywords\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetKeywordsResponse.fromProto(resp)));\n }\n }\n RecordsApiService.ɵfac = function RecordsApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RecordsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n RecordsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: RecordsApiService,\n factory: RecordsApiService.ɵfac,\n providedIn: 'root'\n });\n return RecordsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet RecordService = /*#__PURE__*/(() => {\n class RecordService {\n constructor(api) {\n this.api = api;\n }\n getKeywords(partnerID, businessID) {\n const req = new GetKeywordsRequest({\n partnerId: partnerID,\n businessId: businessID\n });\n return this.api.getKeywords(req).pipe(map(resp => resp.keywords));\n }\n setKeywords(partnerID, businessID, keywords) {\n const req = new SetKeywordsRequest({\n partnerId: partnerID,\n businessId: businessID,\n keyword: keywords\n });\n return this.api.setKeywords(req).pipe(map(resp => resp.success));\n }\n }\n RecordService.ɵfac = function RecordService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RecordService)(i0.ɵɵinject(RecordsApiService));\n };\n RecordService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: RecordService,\n factory: RecordService.ɵfac,\n providedIn: 'root'\n });\n return RecordService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet SitesApiService = /*#__PURE__*/(() => {\n class SitesApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getSite(r) {\n const request = r.toApiJson ? r : new GetSiteRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Sites/GetSite\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetSiteResponse.fromProto(resp)));\n }\n setSite(r) {\n const request = r.toApiJson ? r : new SetSiteRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Sites/SetSite\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SetSiteResponse.fromProto(resp)));\n }\n deleteSite(r) {\n const request = r.toApiJson ? r : new DeleteSiteRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Sites/DeleteSite\", request.toApiJson(), this.apiOptions()).pipe(map(resp => DeleteSiteResponse.fromProto(resp)));\n }\n lookupSites(r) {\n const request = r.toApiJson ? r : new LookupSitesRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Sites/LookupSites\", request.toApiJson(), this.apiOptions()).pipe(map(resp => LookupSitesResponse.fromProto(resp)));\n }\n getAvailableSites(r) {\n const request = r.toApiJson ? r : new GetAvailableGSCSitesRequest(r);\n return this.http.post(this._host + \"/googlesearchconsole.v1.Sites/GetAvailableSites\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAvailableGSCSitesResponse.fromProto(resp)));\n }\n }\n SitesApiService.ɵfac = function SitesApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SitesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SitesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SitesApiService,\n factory: SitesApiService.ɵfac,\n providedIn: 'root'\n });\n return SitesApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { GetKeywordsRequest, GetKeywordsResponse, RecordService, SetKeywordsRequest, SetKeywordsResponse };\n"],"mappings":"sKAAA,IAoDMA,EAmCAC,EAuGAC,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UAAO,SAAmCmB,EAAmB,CAC7E,OAAO,IAAKA,GAAqBnB,GAAsB4B,EAAYC,CAAU,EAAMD,EAAS7B,CAAW,CAAC,CAC1G,EACAC,EAAkB,WAA0BoB,EAAmB,CAC7D,MAAOpB,EACP,QAASA,EAAkB,UAC3B,WAAY,MACd,CAAC,EACMA,CACT,GAAG,EAICC,GAA8B,IAAM,CACtC,MAAMA,CAAc,CAClB,YAAY6B,EAAK,CACf,KAAK,IAAMA,CACb,CACA,YAAYC,EAAWC,EAAY,CACjC,IAAMC,EAAM,IAAI1C,EAAmB,CACjC,UAAWwC,EACX,WAAYC,CACd,CAAC,EACD,OAAO,KAAK,IAAI,YAAYC,CAAG,EAAE,KAAKP,EAAIC,GAAQA,EAAK,QAAQ,CAAC,CAClE,CACA,YAAYI,EAAWC,EAAYE,EAAU,CAC3C,IAAMD,EAAM,IAAItC,EAAmB,CACjC,UAAWoC,EACX,WAAYC,EACZ,QAASE,CACX,CAAC,EACD,OAAO,KAAK,IAAI,YAAYD,CAAG,EAAE,KAAKP,EAAIC,GAAQA,EAAK,OAAO,CAAC,CACjE,CACF,CACA,OAAA1B,EAAc,UAAO,SAA+BkB,EAAmB,CACrE,OAAO,IAAKA,GAAqBlB,GAAkB2B,EAAS5B,CAAiB,CAAC,CAChF,EACAC,EAAc,WAA0BmB,EAAmB,CACzD,MAAOnB,EACP,QAASA,EAAc,UACvB,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["CollectRecordsRequest","CollectRecordsResponse","GetKeywordsRequest","GetKeywordsResponse","SetInitialKeywordsRequest","SetInitialKeywordsResponse","SetKeywordsRequest","SetKeywordsResponse","environment","hostMap","HostService","RecordsApiService","RecordService","init_vendasta_google_search_console","__esmMin","init_core","init_http","init_operators","_CollectRecordsRequest","proto","m","kwargs","toReturn","_CollectRecordsResponse","_GetKeywordsRequest","_GetKeywordsResponse","_SetInitialKeywordsRequest","_SetInitialKeywordsResponse","_SetKeywordsRequest","_SetKeywordsResponse","__ngFactoryType__","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","map","resp","ɵɵinject","HttpClient","api","partnerID","businessID","req","keywords"],"x_google_ignoreList":[0]}