{"version":3,"sources":["node_modules/@vendasta/google-analytics/fesm2020/vendasta-google-analytics.mjs","node_modules/@vendasta/quickbooks/fesm2020/vendasta-quickbooks.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';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar Category = /*#__PURE__*/function (Category) {\n Category[Category[\"CATEGORY_INVALID\"] = 0] = \"CATEGORY_INVALID\";\n Category[Category[\"CATEGORY_WEBSITE\"] = 1] = \"CATEGORY_WEBSITE\";\n Category[Category[\"CATEGORY_ADINTEL\"] = 2] = \"CATEGORY_ADINTEL\";\n Category[Category[\"CATEGORY_ALL\"] = 3] = \"CATEGORY_ALL\";\n return Category;\n}(Category || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar StatAggregation = /*#__PURE__*/function (StatAggregation) {\n StatAggregation[StatAggregation[\"STAT_AGGREGATION_UNSET\"] = 0] = \"STAT_AGGREGATION_UNSET\";\n StatAggregation[StatAggregation[\"STAT_AGGREGATION_DAILY\"] = 1] = \"STAT_AGGREGATION_DAILY\";\n StatAggregation[StatAggregation[\"STAT_AGGREGATION_WEEKLY\"] = 2] = \"STAT_AGGREGATION_WEEKLY\";\n StatAggregation[StatAggregation[\"STAT_AGGREGATION_MONTHLY\"] = 3] = \"STAT_AGGREGATION_MONTHLY\";\n return StatAggregation;\n}(StatAggregation || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ConnectedProperty {\n static fromProto(proto) {\n let m = new ConnectedProperty();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.propertyId !== 'undefined') {\n toReturn['propertyId'] = this.propertyId;\n }\n if (typeof this.propertyName !== 'undefined') {\n toReturn['propertyName'] = this.propertyName;\n }\n if (typeof this.accountName !== 'undefined') {\n toReturn['accountName'] = this.accountName;\n }\n if (typeof this.accountId !== 'undefined') {\n toReturn['accountId'] = this.accountId;\n }\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n if (typeof this.isBroken !== 'undefined') {\n toReturn['isBroken'] = this.isBroken;\n }\n if (typeof this.campaigns !== 'undefined') {\n toReturn['campaigns'] = this.campaigns;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n return toReturn;\n }\n}\nclass DeletePropertyRequest {\n static fromProto(proto) {\n let m = new DeletePropertyRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n return toReturn;\n }\n}\nclass GetAvailablePropertiesRequest {\n static fromProto(proto) {\n let m = new GetAvailablePropertiesRequest();\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 GetAvailablePropertiesResponse {\n static fromProto(proto) {\n let m = new GetAvailablePropertiesResponse();\n m = Object.assign(m, proto);\n if (proto.properties) {\n m.properties = proto.properties.map(ConnectedProperty.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.properties !== 'undefined' && this.properties !== null) {\n toReturn['properties'] = 'toApiJson' in this.properties ? this.properties.toApiJson() : this.properties;\n }\n return toReturn;\n }\n}\nclass GetCampaignInfoForPropertyRequest {\n static fromProto(proto) {\n let m = new GetCampaignInfoForPropertyRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.propertyId !== 'undefined') {\n toReturn['propertyId'] = this.propertyId;\n }\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n return toReturn;\n }\n}\nclass GetCampaignInfoForPropertyResponse {\n static fromProto(proto) {\n let m = new GetCampaignInfoForPropertyResponse();\n m = Object.assign(m, proto);\n if (proto.campaignInfo) {\n m.campaignInfo = proto.campaignInfo.map(PropertyCampaignInfo.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.campaignInfo !== 'undefined' && this.campaignInfo !== null) {\n toReturn['campaignInfo'] = 'toApiJson' in this.campaignInfo ? this.campaignInfo.toApiJson() : this.campaignInfo;\n }\n return toReturn;\n }\n}\nclass GetPropertyRequest {\n static fromProto(proto) {\n let m = new GetPropertyRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n return toReturn;\n }\n}\nclass GetPropertyResponse {\n static fromProto(proto) {\n let m = new GetPropertyResponse();\n m = Object.assign(m, proto);\n if (proto.property) {\n m.property = ConnectedProperty.fromProto(proto.property);\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.property !== 'undefined' && this.property !== null) {\n toReturn['property'] = 'toApiJson' in this.property ? this.property.toApiJson() : this.property;\n }\n return toReturn;\n }\n}\nclass LookupPropertiesRequest {\n static fromProto(proto) {\n let m = new LookupPropertiesRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n return toReturn;\n }\n}\nclass LookupPropertiesResponse {\n static fromProto(proto) {\n let m = new LookupPropertiesResponse();\n m = Object.assign(m, proto);\n if (proto.properties) {\n m.properties = proto.properties.map(ConnectedProperty.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.properties !== 'undefined' && this.properties !== null) {\n toReturn['properties'] = 'toApiJson' in this.properties ? this.properties.toApiJson() : this.properties;\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 PropertyCampaignInfo {\n static fromProto(proto) {\n let m = new PropertyCampaignInfo();\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.campaignId !== 'undefined') {\n toReturn['campaignId'] = this.campaignId;\n }\n if (typeof this.campaignName !== 'undefined') {\n toReturn['campaignName'] = this.campaignName;\n }\n return toReturn;\n }\n}\nclass SetPropertyMultiRequest {\n static fromProto(proto) {\n let m = new SetPropertyMultiRequest();\n m = Object.assign(m, proto);\n if (proto.properties) {\n m.properties = proto.properties.map(ConnectedProperty.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.properties !== 'undefined' && this.properties !== null) {\n toReturn['properties'] = 'toApiJson' in this.properties ? this.properties.toApiJson() : this.properties;\n }\n return toReturn;\n }\n}\nclass UpdatePropertyRequest {\n static fromProto(proto) {\n let m = new UpdatePropertyRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$3(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.campaigns !== 'undefined') {\n toReturn['campaigns'] = this.campaigns;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ConnectedView {\n static fromProto(proto) {\n let m = new ConnectedView();\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.gaViewId !== 'undefined') {\n toReturn['gaViewId'] = this.gaViewId;\n }\n if (typeof this.gaViewName !== 'undefined') {\n toReturn['gaViewName'] = this.gaViewName;\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.campaigns !== 'undefined') {\n toReturn['campaigns'] = this.campaigns;\n }\n return toReturn;\n }\n}\nclass View {\n static fromProto(proto) {\n let m = new View();\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.gaViewName !== 'undefined') {\n toReturn['gaViewName'] = this.gaViewName;\n }\n if (typeof this.gaViewId !== 'undefined') {\n toReturn['gaViewId'] = this.gaViewId;\n }\n if (typeof this.gaAccountName !== 'undefined') {\n toReturn['gaAccountName'] = this.gaAccountName;\n }\n if (typeof this.gaAccountId !== 'undefined') {\n toReturn['gaAccountId'] = this.gaAccountId;\n }\n if (typeof this.gaWebPropertyName !== 'undefined') {\n toReturn['gaWebPropertyName'] = this.gaWebPropertyName;\n }\n if (typeof this.gaWebPropertyId !== 'undefined') {\n toReturn['gaWebPropertyId'] = this.gaWebPropertyId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Attribute {\n static fromProto(proto) {\n let m = new Attribute();\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass GetViewStatsResponseCampaignStatsEntry {\n static fromProto(proto) {\n let m = new GetViewStatsResponseCampaignStatsEntry();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = StatsSet.fromProto(proto.value);\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined' && this.value !== null) {\n toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;\n }\n return toReturn;\n }\n}\nclass GetCampaignInfoForViewResponseCampaignsEntry {\n static fromProto(proto) {\n let m = new GetCampaignInfoForViewResponseCampaignsEntry();\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass DataPoint {\n static fromProto(proto) {\n let m = new DataPoint();\n m = Object.assign(m, proto);\n if (proto.name) {\n m.name = new Date(proto.name);\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.name !== 'undefined' && this.name !== null) {\n toReturn['name'] = 'toApiJson' in this.name ? this.name.toApiJson() : this.name;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass DataSet {\n static fromProto(proto) {\n let m = new DataSet();\n m = Object.assign(m, proto);\n if (proto.series) {\n m.series = proto.series.map(DataPoint.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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.series !== 'undefined' && this.series !== null) {\n toReturn['series'] = 'toApiJson' in this.series ? this.series.toApiJson() : this.series;\n }\n return toReturn;\n }\n}\nclass GetCampaignInfoForViewRequest {\n static fromProto(proto) {\n let m = new GetCampaignInfoForViewRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$1(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.viewId !== 'undefined') {\n toReturn['viewId'] = this.viewId;\n }\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n return toReturn;\n }\n}\nclass GetCampaignInfoForViewResponse {\n static fromProto(proto) {\n let m = new GetCampaignInfoForViewResponse();\n m = Object.assign(m, proto);\n if (proto.campaigns) {\n m.campaigns = Object.keys(proto.campaigns).reduce((obj, k) => {\n obj[k] = proto.campaigns[k];\n return obj;\n }, {});\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.campaigns !== 'undefined' && this.campaigns !== null) {\n toReturn['campaigns'] = 'toApiJson' in this.campaigns ? this.campaigns.toApiJson() : this.campaigns;\n }\n return toReturn;\n }\n}\nclass GetHistoricalPropertyStatsRequest {\n static fromProto(proto) {\n let m = new GetHistoricalPropertyStatsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$1(Category, proto.category);\n }\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 if (proto.aggregation) {\n m.aggregation = enumStringToValue$1(StatAggregation, proto.aggregation);\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategories !== 'undefined') {\n toReturn['subcategories'] = this.subcategories;\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 if (typeof this.aggregation !== 'undefined') {\n toReturn['aggregation'] = this.aggregation;\n }\n if (typeof this.stats !== 'undefined') {\n toReturn['stats'] = this.stats;\n }\n if (typeof this.bypassCache !== 'undefined') {\n toReturn['bypassCache'] = this.bypassCache;\n }\n return toReturn;\n }\n}\nclass GetHistoricalPropertyStatsResponse {\n static fromProto(proto) {\n let m = new GetHistoricalPropertyStatsResponse();\n m = Object.assign(m, proto);\n if (proto.stats) {\n m.stats = proto.stats.map(HistoricalStats.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.stats !== 'undefined' && this.stats !== null) {\n toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;\n }\n return toReturn;\n }\n}\nclass GetPropertyStatsRequest {\n static fromProto(proto) {\n let m = new GetPropertyStatsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$1(Category, proto.category);\n }\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.dimensions !== 'undefined') {\n toReturn['dimensions'] = this.dimensions;\n }\n if (typeof this.stats !== 'undefined') {\n toReturn['stats'] = this.stats;\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 if (typeof this.bypassCache !== 'undefined') {\n toReturn['bypassCache'] = this.bypassCache;\n }\n return toReturn;\n }\n}\nclass GetPropertyStatsResponse {\n static fromProto(proto) {\n let m = new GetPropertyStatsResponse();\n m = Object.assign(m, proto);\n if (proto.stats) {\n m.stats = proto.stats.map(StatRow.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.stats !== 'undefined' && this.stats !== null) {\n toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;\n }\n return toReturn;\n }\n}\nclass GetSourceMediumStatsForCampaignRequest {\n static fromProto(proto) {\n let m = new GetSourceMediumStatsForCampaignRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$1(Category, proto.category);\n }\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.campaign !== 'undefined') {\n toReturn['campaign'] = this.campaign;\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 GetSourceMediumStatsForCampaignResponse {\n static fromProto(proto) {\n let m = new GetSourceMediumStatsForCampaignResponse();\n m = Object.assign(m, proto);\n if (proto.sourceMediumStats) {\n m.sourceMediumStats = Object.keys(proto.sourceMediumStats).reduce((obj, k) => {\n obj[k] = StatsSet.fromProto(proto.sourceMediumStats[k]);\n return obj;\n }, {});\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.sourceMediumStats !== 'undefined' && this.sourceMediumStats !== null) {\n toReturn['sourceMediumStats'] = 'toApiJson' in this.sourceMediumStats ? this.sourceMediumStats.toApiJson() : this.sourceMediumStats;\n }\n return toReturn;\n }\n}\nclass GetViewStatsRequest {\n static fromProto(proto) {\n let m = new GetViewStatsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue$1(Category, proto.category);\n }\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\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 GetViewStatsResponse {\n static fromProto(proto) {\n let m = new GetViewStatsResponse();\n m = Object.assign(m, proto);\n if (proto.totals) {\n m.totals = StatsSet.fromProto(proto.totals);\n }\n if (proto.campaignStats) {\n m.campaignStats = Object.keys(proto.campaignStats).reduce((obj, k) => {\n obj[k] = StatsSet.fromProto(proto.campaignStats[k]);\n return obj;\n }, {});\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.totals !== 'undefined' && this.totals !== null) {\n toReturn['totals'] = 'toApiJson' in this.totals ? this.totals.toApiJson() : this.totals;\n }\n if (typeof this.campaignStats !== 'undefined' && this.campaignStats !== null) {\n toReturn['campaignStats'] = 'toApiJson' in this.campaignStats ? this.campaignStats.toApiJson() : this.campaignStats;\n }\n return toReturn;\n }\n}\nclass StatsSetGoalBreakdownEntry {\n static fromProto(proto) {\n let m = new StatsSetGoalBreakdownEntry();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = parseInt(proto.value, 10);\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass HistoricalStats {\n static fromProto(proto) {\n let m = new HistoricalStats();\n m = Object.assign(m, proto);\n if (proto.values) {\n m.values = DataSet.fromProto(proto.values);\n }\n if (proto.total) {\n m.total = Stat.fromProto(proto.total);\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.propertyId !== 'undefined') {\n toReturn['propertyId'] = this.propertyId;\n }\n if (typeof this.values !== 'undefined' && this.values !== null) {\n toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;\n }\n if (typeof this.total !== 'undefined' && this.total !== null) {\n toReturn['total'] = 'toApiJson' in this.total ? this.total.toApiJson() : this.total;\n }\n return toReturn;\n }\n}\nclass GetSourceMediumStatsForCampaignResponseSourceMediumStatsEntry {\n static fromProto(proto) {\n let m = new GetSourceMediumStatsForCampaignResponseSourceMediumStatsEntry();\n m = Object.assign(m, proto);\n if (proto.value) {\n m.value = StatsSet.fromProto(proto.value);\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined' && this.value !== null) {\n toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;\n }\n return toReturn;\n }\n}\nclass Stat {\n static fromProto(proto) {\n let m = new Stat();\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass StatRow {\n static fromProto(proto) {\n let m = new StatRow();\n m = Object.assign(m, proto);\n if (proto.attributes) {\n m.attributes = proto.attributes.map(Attribute.fromProto);\n }\n if (proto.stats) {\n m.stats = proto.stats.map(Stat.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.attributes !== 'undefined' && this.attributes !== null) {\n toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;\n }\n if (typeof this.stats !== 'undefined' && this.stats !== null) {\n toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;\n }\n return toReturn;\n }\n}\nclass StatsSet {\n static fromProto(proto) {\n let m = new StatsSet();\n m = Object.assign(m, proto);\n if (proto.sessions) {\n m.sessions = parseInt(proto.sessions, 10);\n }\n if (proto.users) {\n m.users = parseInt(proto.users, 10);\n }\n if (proto.newUsers) {\n m.newUsers = parseInt(proto.newUsers, 10);\n }\n if (proto.goalCompletions) {\n m.goalCompletions = parseInt(proto.goalCompletions, 10);\n }\n if (proto.goalBreakdown) {\n m.goalBreakdown = Object.keys(proto.goalBreakdown).reduce((obj, k) => {\n obj[k] = parseInt(proto.goalBreakdown[k], 10);\n return obj;\n }, {});\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.sessions !== 'undefined') {\n toReturn['sessions'] = this.sessions;\n }\n if (typeof this.users !== 'undefined') {\n toReturn['users'] = this.users;\n }\n if (typeof this.newUsers !== 'undefined') {\n toReturn['newUsers'] = this.newUsers;\n }\n if (typeof this.bounceRate !== 'undefined') {\n toReturn['bounceRate'] = this.bounceRate;\n }\n if (typeof this.pageViewsPerSession !== 'undefined') {\n toReturn['pageViewsPerSession'] = this.pageViewsPerSession;\n }\n if (typeof this.averageSessionSeconds !== 'undefined') {\n toReturn['averageSessionSeconds'] = this.averageSessionSeconds;\n }\n if (typeof this.goalCompletions !== 'undefined') {\n toReturn['goalCompletions'] = this.goalCompletions;\n }\n if (typeof this.goalBreakdown !== 'undefined' && this.goalBreakdown !== null) {\n toReturn['goalBreakdown'] = 'toApiJson' in this.goalBreakdown ? this.goalBreakdown.toApiJson() : this.goalBreakdown;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass CollectRecordsRequest {\n static fromProto(proto) {\n let m = new CollectRecordsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\n }\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\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 DeleteViewRequest {\n static fromProto(proto) {\n let m = new DeleteViewRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n return toReturn;\n }\n}\nclass DeleteViewResponse {\n static fromProto(proto) {\n let m = new DeleteViewResponse();\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 GetAvailableGAViewsRequest {\n static fromProto(proto) {\n let m = new GetAvailableGAViewsRequest();\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 GetAvailableGAViewsResponse {\n static fromProto(proto) {\n let m = new GetAvailableGAViewsResponse();\n m = Object.assign(m, proto);\n if (proto.views) {\n m.views = proto.views.map(View.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.views !== 'undefined' && this.views !== null) {\n toReturn['views'] = 'toApiJson' in this.views ? this.views.toApiJson() : this.views;\n }\n return toReturn;\n }\n}\nclass GetViewRequest {\n static fromProto(proto) {\n let m = new GetViewRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n return toReturn;\n }\n}\nclass GetViewResponse {\n static fromProto(proto) {\n let m = new GetViewResponse();\n m = Object.assign(m, proto);\n if (proto.view) {\n m.view = View.fromProto(proto.view);\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.view !== 'undefined' && this.view !== null) {\n toReturn['view'] = 'toApiJson' in this.view ? this.view.toApiJson() : this.view;\n }\n return toReturn;\n }\n}\nclass LookupViewsRequest {\n static fromProto(proto) {\n let m = new LookupViewsRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n return toReturn;\n }\n}\nclass LookupViewsResponse {\n static fromProto(proto) {\n let m = new LookupViewsResponse();\n m = Object.assign(m, proto);\n if (proto.views) {\n m.views = proto.views.map(ConnectedView.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.views !== 'undefined' && this.views !== null) {\n toReturn['views'] = 'toApiJson' in this.views ? this.views.toApiJson() : this.views;\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 SetViewMultiRequest {\n static fromProto(proto) {\n let m = new SetViewMultiRequest();\n m = Object.assign(m, proto);\n if (proto.requests) {\n m.requests = proto.requests.map(SetViewRequest.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.requests !== 'undefined' && this.requests !== null) {\n toReturn['requests'] = 'toApiJson' in this.requests ? this.requests.toApiJson() : this.requests;\n }\n return toReturn;\n }\n}\nclass SetViewRequest {\n static fromProto(proto) {\n let m = new SetViewRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.gaAccountId !== 'undefined') {\n toReturn['gaAccountId'] = this.gaAccountId;\n }\n if (typeof this.gaPropertyId !== 'undefined') {\n toReturn['gaPropertyId'] = this.gaPropertyId;\n }\n if (typeof this.gaViewId !== 'undefined') {\n toReturn['gaViewId'] = this.gaViewId;\n }\n if (typeof this.googleUserId !== 'undefined') {\n toReturn['googleUserId'] = this.googleUserId;\n }\n if (typeof this.campaigns !== 'undefined') {\n toReturn['campaigns'] = this.campaigns;\n }\n return toReturn;\n }\n}\nclass SetViewResponse {\n static fromProto(proto) {\n let m = new SetViewResponse();\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 UpdateViewRequest {\n static fromProto(proto) {\n let m = new UpdateViewRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = enumStringToValue(Category, proto.category);\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.category !== 'undefined') {\n toReturn['category'] = this.category;\n }\n if (typeof this.subcategory !== 'undefined') {\n toReturn['subcategory'] = this.subcategory;\n }\n if (typeof this.campaigns !== 'undefined') {\n toReturn['campaigns'] = this.campaigns;\n }\n return toReturn;\n }\n}\nclass UpdateViewResponse {\n static fromProto(proto) {\n let m = new UpdateViewResponse();\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// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'google-analytics-api.vendasta-local.com',\n 'test': '',\n 'demo': 'google-analytics-api-demo.apigateway.co',\n 'prod': 'google-analytics-api-prod.apigateway.co',\n 'production': 'google-analytics-api-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// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet ViewsApiService = /*#__PURE__*/(() => {\n class ViewsApiService {\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 getView(r) {\n const request = r.toApiJson ? r : new GetViewRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/GetView\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetViewResponse.fromProto(resp)));\n }\n setView(r) {\n const request = r.toApiJson ? r : new SetViewRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/SetView\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SetViewResponse.fromProto(resp)));\n }\n deleteView(r) {\n const request = r.toApiJson ? r : new DeleteViewRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/DeleteView\", request.toApiJson(), this.apiOptions()).pipe(map(resp => DeleteViewResponse.fromProto(resp)));\n }\n lookupViews(r) {\n const request = r.toApiJson ? r : new LookupViewsRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/LookupViews\", request.toApiJson(), this.apiOptions()).pipe(map(resp => LookupViewsResponse.fromProto(resp)));\n }\n getAvailableViews(r) {\n const request = r.toApiJson ? r : new GetAvailableGAViewsRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/GetAvailableViews\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAvailableGAViewsResponse.fromProto(resp)));\n }\n setViewMulti(r) {\n const request = r.toApiJson ? r : new SetViewMultiRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/SetViewMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SetViewResponse.fromProto(resp)));\n }\n updateView(r) {\n const request = r.toApiJson ? r : new UpdateViewRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Views/UpdateView\", request.toApiJson(), this.apiOptions()).pipe(map(resp => UpdateViewResponse.fromProto(resp)));\n }\n }\n ViewsApiService.ɵfac = function ViewsApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ViewsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n ViewsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ViewsApiService,\n factory: ViewsApiService.ɵfac,\n providedIn: 'root'\n });\n return ViewsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ViewService = /*#__PURE__*/(() => {\n class ViewService {\n constructor(api) {\n this.api = api;\n }\n getConnectedView(partnerId, businessId, category, subcategory) {\n return this.api.getView({\n partnerId: partnerId,\n businessId: businessId,\n category: category,\n subcategory: subcategory\n }).pipe(map(resp => resp.view));\n }\n lookupViews(partnerId, businessId, category, cursor) {\n return this.api.lookupViews({\n partnerId: partnerId,\n businessId: businessId,\n category: category,\n cursor: cursor\n });\n }\n getAvailableViews(googleUserId) {\n return this.api.getAvailableViews({\n googleUserId: googleUserId\n }).pipe(map(resp => resp.views));\n }\n setView(req) {\n return this.api.setView(req).pipe(map(resp => resp.success));\n }\n deleteView(partnerId, businessId, category, subcategory) {\n return this.api.deleteView({\n partnerId,\n businessId,\n category,\n subcategory\n }).pipe(map(resp => resp.success));\n }\n }\n ViewService.ɵfac = function ViewService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ViewService)(i0.ɵɵinject(ViewsApiService));\n };\n ViewService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ViewService,\n factory: ViewService.ɵfac,\n providedIn: 'root'\n });\n return ViewService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet StatsApiService = /*#__PURE__*/(() => {\n class StatsApiService {\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 getCampaignInfoForView(r) {\n const request = r.toApiJson ? r : new GetCampaignInfoForViewRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Stats/GetCampaignInfoForView\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCampaignInfoForViewResponse.fromProto(resp)));\n }\n getViewStats(r) {\n const request = r.toApiJson ? r : new GetViewStatsRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Stats/GetViewStats\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetViewStatsResponse.fromProto(resp)));\n }\n getSourceMediumStatsForCampaign(r) {\n const request = r.toApiJson ? r : new GetSourceMediumStatsForCampaignRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Stats/GetSourceMediumStatsForCampaign\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetSourceMediumStatsForCampaignResponse.fromProto(resp)));\n }\n getPropertyStats(r) {\n const request = r.toApiJson ? r : new GetPropertyStatsRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Stats/GetPropertyStats\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetPropertyStatsResponse.fromProto(resp)));\n }\n getHistoricalPropertyStats(r) {\n const request = r.toApiJson ? r : new GetHistoricalPropertyStatsRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.Stats/GetHistoricalPropertyStats\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetHistoricalPropertyStatsResponse.fromProto(resp)));\n }\n }\n StatsApiService.ɵfac = function StatsApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || StatsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n StatsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: StatsApiService,\n factory: StatsApiService.ɵfac,\n providedIn: 'root'\n });\n return StatsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet GA4PropertiesApiService = /*#__PURE__*/(() => {\n class GA4PropertiesApiService {\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 getProperty(r) {\n const request = r.toApiJson ? r : new GetPropertyRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/GetProperty\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetPropertyResponse.fromProto(resp)));\n }\n setPropertyMulti(r) {\n const request = r.toApiJson ? r : new SetPropertyMultiRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/SetPropertyMulti\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n deleteProperty(r) {\n const request = r.toApiJson ? r : new DeletePropertyRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/DeleteProperty\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n lookupProperties(r) {\n const request = r.toApiJson ? r : new LookupPropertiesRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/LookupProperties\", request.toApiJson(), this.apiOptions()).pipe(map(resp => LookupPropertiesResponse.fromProto(resp)));\n }\n getAvailableProperties(r) {\n const request = r.toApiJson ? r : new GetAvailablePropertiesRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/GetAvailableProperties\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAvailablePropertiesResponse.fromProto(resp)));\n }\n updateProperty(r) {\n const request = r.toApiJson ? r : new UpdatePropertyRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/UpdateProperty\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getCampaignInfoForProperty(r) {\n const request = r.toApiJson ? r : new GetCampaignInfoForPropertyRequest(r);\n return this.http.post(this._host + \"/googleanalytics.v2.GA4Properties/GetCampaignInfoForProperty\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCampaignInfoForPropertyResponse.fromProto(resp)));\n }\n }\n GA4PropertiesApiService.ɵfac = function GA4PropertiesApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || GA4PropertiesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n GA4PropertiesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: GA4PropertiesApiService,\n factory: GA4PropertiesApiService.ɵfac,\n providedIn: 'root'\n });\n return GA4PropertiesApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Attribute, Category, CollectRecordsRequest, CollectRecordsResponse, ConnectedProperty, ConnectedView, DataPoint, DataSet, DeletePropertyRequest, DeleteViewRequest, DeleteViewResponse, GA4PropertiesApiService, GetAvailableGAViewsRequest, GetAvailableGAViewsResponse, GetAvailablePropertiesRequest, GetAvailablePropertiesResponse, GetCampaignInfoForPropertyRequest, GetCampaignInfoForPropertyResponse, GetCampaignInfoForViewRequest, GetCampaignInfoForViewResponse, GetCampaignInfoForViewResponseCampaignsEntry, GetHistoricalPropertyStatsRequest, GetHistoricalPropertyStatsResponse, GetPropertyRequest, GetPropertyResponse, GetPropertyStatsRequest, GetPropertyStatsResponse, GetSourceMediumStatsForCampaignRequest, GetSourceMediumStatsForCampaignResponse, GetSourceMediumStatsForCampaignResponseSourceMediumStatsEntry, GetViewRequest, GetViewResponse, GetViewStatsRequest, GetViewStatsResponse, GetViewStatsResponseCampaignStatsEntry, HistoricalStats, LookupPropertiesRequest, LookupPropertiesResponse, LookupViewsRequest, LookupViewsResponse, PropertyCampaignInfo, SetPropertyMultiRequest, SetViewMultiRequest, SetViewRequest, SetViewResponse, Stat, StatAggregation, StatRow, StatsApiService, StatsSet, StatsSetGoalBreakdownEntry, UpdatePropertyRequest, UpdateViewRequest, UpdateViewResponse, View, ViewService, ViewsApiService };\n","import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport { map } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nclass GetProfitAndLossResponseSectionRowColumnData {\n static fromProto(proto) {\n let m = new GetProfitAndLossResponseSectionRowColumnData();\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.title !== 'undefined') {\n toReturn['title'] = this.title;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass Company {\n static fromProto(proto) {\n let m = new Company();\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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass ConnectionInfo {\n static fromProto(proto) {\n let m = new ConnectionInfo();\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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.logoUrl !== 'undefined') {\n toReturn['logoUrl'] = this.logoUrl;\n }\n if (typeof this.serviceProviderId !== 'undefined') {\n toReturn['serviceProviderId'] = this.serviceProviderId;\n }\n if (typeof this.entryUrl !== 'undefined') {\n toReturn['entryUrl'] = this.entryUrl;\n }\n return toReturn;\n }\n}\nclass GetAgingSummaryRequest {\n static fromProto(proto) {\n let m = new GetAgingSummaryRequest();\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass GetAgingSummaryResponse {\n static fromProto(proto) {\n let m = new GetAgingSummaryResponse();\n m = Object.assign(m, proto);\n if (proto.row) {\n m.row = proto.row.map(GetAgingSummaryResponseRow.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.currency !== 'undefined') {\n toReturn['currency'] = this.currency;\n }\n if (typeof this.row !== 'undefined' && this.row !== null) {\n toReturn['row'] = 'toApiJson' in this.row ? this.row.toApiJson() : this.row;\n }\n return toReturn;\n }\n}\nclass GetAuthorizationCodeRedirectURLRequest {\n static fromProto(proto) {\n let m = new GetAuthorizationCodeRedirectURLRequest();\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass GetAuthorizationCodeRedirectURLResponse {\n static fromProto(proto) {\n let m = new GetAuthorizationCodeRedirectURLResponse();\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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n return toReturn;\n }\n}\nclass GetConnectedCompanyRequest {\n static fromProto(proto) {\n let m = new GetConnectedCompanyRequest();\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass GetConnectedCompanyResponse {\n static fromProto(proto) {\n let m = new GetConnectedCompanyResponse();\n m = Object.assign(m, proto);\n if (proto.company) {\n m.company = Company.fromProto(proto.company);\n }\n if (proto.connectionInfo) {\n m.connectionInfo = ConnectionInfo.fromProto(proto.connectionInfo);\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.company !== 'undefined' && this.company !== null) {\n toReturn['company'] = 'toApiJson' in this.company ? this.company.toApiJson() : this.company;\n }\n if (typeof this.connectionInfo !== 'undefined' && this.connectionInfo !== null) {\n toReturn['connectionInfo'] = 'toApiJson' in this.connectionInfo ? this.connectionInfo.toApiJson() : this.connectionInfo;\n }\n return toReturn;\n }\n}\nclass GetProfitAndLossRequest {\n static fromProto(proto) {\n let m = new GetProfitAndLossRequest();\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\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 GetProfitAndLossResponse {\n static fromProto(proto) {\n let m = new GetProfitAndLossResponse();\n m = Object.assign(m, proto);\n if (proto.income) {\n m.income = GetProfitAndLossResponseSection.fromProto(proto.income);\n }\n if (proto.expenses) {\n m.expenses = GetProfitAndLossResponseSection.fromProto(proto.expenses);\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.currency !== 'undefined') {\n toReturn['currency'] = this.currency;\n }\n if (typeof this.income !== 'undefined' && this.income !== null) {\n toReturn['income'] = 'toApiJson' in this.income ? this.income.toApiJson() : this.income;\n }\n if (typeof this.expenses !== 'undefined' && this.expenses !== null) {\n toReturn['expenses'] = 'toApiJson' in this.expenses ? this.expenses.toApiJson() : this.expenses;\n }\n return toReturn;\n }\n}\nclass RevokeAccessTokenRequest {\n static fromProto(proto) {\n let m = new RevokeAccessTokenRequest();\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.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nclass GetProfitAndLossResponseSectionRow {\n static fromProto(proto) {\n let m = new GetProfitAndLossResponseSectionRow();\n m = Object.assign(m, proto);\n if (proto.column) {\n m.column = GetProfitAndLossResponseSectionRowColumnData.fromProto(proto.column);\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.column !== 'undefined' && this.column !== null) {\n toReturn['column'] = 'toApiJson' in this.column ? this.column.toApiJson() : this.column;\n }\n return toReturn;\n }\n}\nclass GetAgingSummaryResponseRow {\n static fromProto(proto) {\n let m = new GetAgingSummaryResponseRow();\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.columnValue !== 'undefined') {\n toReturn['columnValue'] = this.columnValue;\n }\n return toReturn;\n }\n}\nclass GetProfitAndLossResponseSection {\n static fromProto(proto) {\n let m = new GetProfitAndLossResponseSection();\n m = Object.assign(m, proto);\n if (proto.rows) {\n m.rows = proto.rows.map(GetProfitAndLossResponseSectionRow.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.rows !== 'undefined' && this.rows !== null) {\n toReturn['rows'] = 'toApiJson' in this.rows ? this.rows.toApiJson() : this.rows;\n }\n if (typeof this.total !== 'undefined') {\n toReturn['total'] = this.total;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'quickbooks-api.vendasta-local.com',\n 'test': '',\n 'demo': 'quickbooks-demo.apigateway.co',\n 'prod': 'quickbooks-prod.apigateway.co',\n 'production': 'quickbooks-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// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet QuickBooksApiService = /*#__PURE__*/(() => {\n class QuickBooksApiService {\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 getAuthorizationCodeRedirectUrl(r) {\n const request = r.toApiJson ? r : new GetAuthorizationCodeRedirectURLRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/GetAuthorizationCodeRedirectURL\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAuthorizationCodeRedirectURLResponse.fromProto(resp)));\n }\n revokeAccessToken(r) {\n const request = r.toApiJson ? r : new RevokeAccessTokenRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/RevokeAccessToken\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getConnectedCompany(r) {\n const request = r.toApiJson ? r : new GetConnectedCompanyRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/GetConnectedCompany\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetConnectedCompanyResponse.fromProto(resp)));\n }\n getAccountsReceivableAgingSummary(r) {\n const request = r.toApiJson ? r : new GetAgingSummaryRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/GetAccountsReceivableAgingSummary\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAgingSummaryResponse.fromProto(resp)));\n }\n getAccountsPayableAgingSummary(r) {\n const request = r.toApiJson ? r : new GetAgingSummaryRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/GetAccountsPayableAgingSummary\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAgingSummaryResponse.fromProto(resp)));\n }\n getProfitAndLoss(r) {\n const request = r.toApiJson ? r : new GetProfitAndLossRequest(r);\n return this.http.post(this._host + \"/quickbooks.v1.QuickBooks/GetProfitAndLoss\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetProfitAndLossResponse.fromProto(resp)));\n }\n }\n QuickBooksApiService.ɵfac = function QuickBooksApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || QuickBooksApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n QuickBooksApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: QuickBooksApiService,\n factory: QuickBooksApiService.ɵfac,\n providedIn: 'root'\n });\n return QuickBooksApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet QuickBooksService = /*#__PURE__*/(() => {\n class QuickBooksService {\n constructor(quickBooksApiService) {\n this.quickBooksApiService = quickBooksApiService;\n }\n getAccountsReceivableAgingSummary(businessId, userId) {\n return this.quickBooksApiService.getAccountsReceivableAgingSummary(new GetAgingSummaryRequest({\n businessId: businessId,\n userId: userId\n }));\n }\n getAccountsPayableAgingSummary(businessId, userId) {\n return this.quickBooksApiService.getAccountsPayableAgingSummary(new GetAgingSummaryRequest({\n businessId: businessId,\n userId: userId\n }));\n }\n getProfitAndLoss(businessId, userId, startDate, endDate) {\n return this.quickBooksApiService.getProfitAndLoss(new GetProfitAndLossRequest({\n businessId: businessId,\n userId: userId,\n startDate: startDate,\n endDate: endDate\n }));\n }\n getConnectedCompany(businessId, userId) {\n return this.quickBooksApiService.getConnectedCompany(new GetConnectedCompanyRequest({\n businessId: businessId,\n userId: userId\n })).pipe(map(resp => {\n return resp.company;\n }));\n }\n getAuthorizationCodeRedirectUrl(businessId, userId) {\n return this.quickBooksApiService.getAuthorizationCodeRedirectUrl(new GetAuthorizationCodeRedirectURLRequest({\n businessId: businessId,\n userId: userId\n })).pipe(map(resp => {\n return resp.url;\n }));\n }\n revokeAccessToken(businessId, userId) {\n return this.quickBooksApiService.revokeAccessToken(new RevokeAccessTokenRequest({\n businessId: businessId,\n userId: userId\n })).pipe(map(() => true));\n }\n }\n QuickBooksService.ɵfac = function QuickBooksService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || QuickBooksService)(i0.ɵɵinject(QuickBooksApiService));\n };\n QuickBooksService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: QuickBooksService,\n factory: QuickBooksService.ɵfac,\n providedIn: 'root'\n });\n return QuickBooksService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Company, ConnectionInfo, GetAgingSummaryRequest, GetAgingSummaryResponse, GetAgingSummaryResponseRow, GetAuthorizationCodeRedirectURLRequest, GetAuthorizationCodeRedirectURLResponse, GetConnectedCompanyRequest, GetConnectedCompanyResponse, GetProfitAndLossRequest, GetProfitAndLossResponse, GetProfitAndLossResponseSection, GetProfitAndLossResponseSectionRow, GetProfitAndLossResponseSectionRowColumnData, QuickBooksApiService, QuickBooksService, RevokeAccessTokenRequest };\n"],"mappings":"oLAuCA,SAASA,EAAoBC,EAASC,EAAO,CAC3C,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CA5CA,IAYIC,EAiCEC,EA2DAC,EAgCAC,EAoBAC,EAuBAC,EAsCAC,EAuBAC,EAgCAC,EAuBAC,EAgCAC,EA6BAC,EAuBAC,EAuBAC,EAwuCAC,EACAC,EAOFC,EAwMAC,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AqB,gCAAgC,IAAItD,EAAuC,CAC1G,WAAYqD,EACZ,OAAQC,CACV,CAAC,CAAC,EAAE,KAAKR,EAAIC,GACJA,EAAK,GACb,CAAC,CACJ,CACA,kBAAkBM,EAAYC,EAAQ,CACpC,OAAO,KAAK,qBAAqB,kBAAkB,IAAIhD,EAAyB,CAC9E,WAAY+C,EACZ,OAAQC,CACV,CAAC,CAAC,EAAE,KAAKR,EAAI,IAAM,EAAI,CAAC,CAC1B,CACF,CACA,OAAAhC,EAAkB,UAAO,SAAmCyB,EAAmB,CAC7E,OAAO,IAAKA,GAAqBzB,GAAsBoC,EAASrC,EAAoB,CAAC,CACvF,EACAC,EAAkB,WAA0B0B,EAAmB,CAC7D,MAAO1B,EACP,QAASA,EAAkB,UAC3B,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["enumStringToValue$3","enumRef","value","Category","ConnectedProperty","DeletePropertyRequest","GetAvailablePropertiesRequest","GetAvailablePropertiesResponse","GetCampaignInfoForPropertyRequest","GetCampaignInfoForPropertyResponse","GetPropertyRequest","GetPropertyResponse","LookupPropertiesRequest","LookupPropertiesResponse","PropertyCampaignInfo","SetPropertyMultiRequest","UpdatePropertyRequest","environment","hostMap","HostService","GA4PropertiesApiService","init_vendasta_google_analytics","__esmMin","init_core","init_http","init_operators","_ConnectedProperty","proto","m","kwargs","toReturn","_DeletePropertyRequest","_GetAvailablePropertiesRequest","_GetAvailablePropertiesResponse","_GetCampaignInfoForPropertyRequest","_GetCampaignInfoForPropertyResponse","_GetPropertyRequest","_GetPropertyResponse","_LookupPropertiesRequest","_LookupPropertiesResponse","_PropertyCampaignInfo","_SetPropertyMultiRequest","_UpdatePropertyRequest","__ngFactoryType__","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","map","resp","__spreadProps","__spreadValues","ɵɵinject","HttpClient","GetProfitAndLossResponseSectionRowColumnData","Company","ConnectionInfo","GetAgingSummaryRequest","GetAgingSummaryResponse","GetAuthorizationCodeRedirectURLRequest","GetAuthorizationCodeRedirectURLResponse","GetConnectedCompanyRequest","GetConnectedCompanyResponse","GetProfitAndLossRequest","GetProfitAndLossResponse","RevokeAccessTokenRequest","GetProfitAndLossResponseSectionRow","GetAgingSummaryResponseRow","GetProfitAndLossResponseSection","environment","hostMap","HostService","QuickBooksApiService","QuickBooksService","init_vendasta_quickbooks","__esmMin","init_core","init_operators","init_http","_GetProfitAndLossResponseSectionRowColumnData","proto","m","kwargs","toReturn","_Company","_ConnectionInfo","_GetAgingSummaryRequest","_GetAgingSummaryResponse","_GetAuthorizationCodeRedirectURLRequest","_GetAuthorizationCodeRedirectURLResponse","_GetConnectedCompanyRequest","_GetConnectedCompanyResponse","_GetProfitAndLossRequest","_GetProfitAndLossResponse","_RevokeAccessTokenRequest","_GetProfitAndLossResponseSectionRow","_GetAgingSummaryResponseRow","_GetProfitAndLossResponseSection","__ngFactoryType__","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","map","resp","__spreadProps","__spreadValues","ɵɵinject","HttpClient","quickBooksApiService","businessId","userId","startDate","endDate"],"x_google_ignoreList":[0,1]}