{"version":3,"sources":["node_modules/@vendasta/templates/fesm2020/vendasta-templates.mjs","libs/email-ui/email-builder/src/services/app-listing-service.interface.ts"],"sourcesContent":["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';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar TemplateType = /*#__PURE__*/function (TemplateType) {\n TemplateType[TemplateType[\"TEMPLATE_TYPE_GOLANG\"] = 0] = \"TEMPLATE_TYPE_GOLANG\";\n TemplateType[TemplateType[\"TEMPLATE_TYPE_DJANGO\"] = 1] = \"TEMPLATE_TYPE_DJANGO\";\n TemplateType[TemplateType[\"TEMPLATE_TYPE_GOLANG_TEXT\"] = 2] = \"TEMPLATE_TYPE_GOLANG_TEXT\";\n return TemplateType;\n}(TemplateType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$4(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Access {\n static fromProto(proto) {\n let m = new Access();\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.scope !== 'undefined') {\n toReturn['scope'] = this.scope;\n }\n if (typeof this.public !== 'undefined') {\n toReturn['public'] = this.public;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass InflatedAccountGroupsAccountGroup {\n static fromProto(proto) {\n let m = new InflatedAccountGroupsAccountGroup();\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.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.address !== 'undefined') {\n toReturn['address'] = this.address;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.zip !== 'undefined') {\n toReturn['zip'] = this.zip;\n }\n return toReturn;\n }\n}\nclass AccountGroupsHydrationOption {\n static fromProto(proto) {\n let m = new AccountGroupsHydrationOption();\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.accountGroupIds !== 'undefined') {\n toReturn['accountGroupIds'] = this.accountGroupIds;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedAppsApp {\n static fromProto(proto) {\n let m = new InflatedAppsApp();\n m = Object.assign(m, proto);\n if (proto.appKey) {\n m.appKey = AppKey.fromProto(proto.appKey);\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.appKey !== 'undefined' && this.appKey !== null) {\n toReturn['appKey'] = 'toApiJson' in this.appKey ? this.appKey.toApiJson() : this.appKey;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.editionName !== 'undefined') {\n toReturn['editionName'] = this.editionName;\n }\n return toReturn;\n }\n}\nclass AppKey {\n static fromProto(proto) {\n let m = new AppKey();\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.appId !== 'undefined') {\n toReturn['appId'] = this.appId;\n }\n if (typeof this.editionId !== 'undefined') {\n toReturn['editionId'] = this.editionId;\n }\n return toReturn;\n }\n}\nclass InflatedBrandingBrandingApps {\n static fromProto(proto) {\n let m = new InflatedBrandingBrandingApps();\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.identifier !== 'undefined') {\n toReturn['identifier'] = this.identifier;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass AppsHydrationOption {\n static fromProto(proto) {\n let m = new AppsHydrationOption();\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.appKeys !== 'undefined') {\n toReturn['appKeys'] = this.appKeys;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedBrandingBrandingAssets {\n static fromProto(proto) {\n let m = new InflatedBrandingBrandingAssets();\n m = Object.assign(m, proto);\n if (proto.logoUrl) {\n m.logoUrl = InflatedBrandingBrandingAssetsUrl.fromProto(proto.logoUrl);\n }\n if (proto.shortcutIconUrl) {\n m.shortcutIconUrl = InflatedBrandingBrandingAssetsUrl.fromProto(proto.shortcutIconUrl);\n }\n if (proto.faviconUrl) {\n m.faviconUrl = InflatedBrandingBrandingAssetsUrl.fromProto(proto.faviconUrl);\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.logoUrl !== 'undefined' && this.logoUrl !== null) {\n toReturn['logoUrl'] = 'toApiJson' in this.logoUrl ? this.logoUrl.toApiJson() : this.logoUrl;\n }\n if (typeof this.shortcutIconUrl !== 'undefined' && this.shortcutIconUrl !== null) {\n toReturn['shortcutIconUrl'] = 'toApiJson' in this.shortcutIconUrl ? this.shortcutIconUrl.toApiJson() : this.shortcutIconUrl;\n }\n if (typeof this.faviconUrl !== 'undefined' && this.faviconUrl !== null) {\n toReturn['faviconUrl'] = 'toApiJson' in this.faviconUrl ? this.faviconUrl.toApiJson() : this.faviconUrl;\n }\n return toReturn;\n }\n}\nclass InflatedBrandingBranding {\n static fromProto(proto) {\n let m = new InflatedBrandingBranding();\n m = Object.assign(m, proto);\n if (proto.assets) {\n m.assets = InflatedBrandingBrandingAssets.fromProto(proto.assets);\n }\n if (proto.apps) {\n m.apps = InflatedBrandingBrandingApps.fromProto(proto.apps);\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.primaryColor !== 'undefined') {\n toReturn['primaryColor'] = this.primaryColor;\n }\n if (typeof this.assets !== 'undefined' && this.assets !== null) {\n toReturn['assets'] = 'toApiJson' in this.assets ? this.assets.toApiJson() : this.assets;\n }\n if (typeof this.apps !== 'undefined' && this.apps !== null) {\n toReturn['apps'] = 'toApiJson' in this.apps ? this.apps.toApiJson() : this.apps;\n }\n return toReturn;\n }\n}\nclass BrandingHydrationOption {\n static fromProto(proto) {\n let m = new BrandingHydrationOption();\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.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass HydrationOptions {\n static fromProto(proto) {\n let m = new HydrationOptions();\n m = Object.assign(m, proto);\n if (proto.accountGroups) {\n m.accountGroups = AccountGroupsHydrationOption.fromProto(proto.accountGroups);\n }\n if (proto.apps) {\n m.apps = AppsHydrationOption.fromProto(proto.apps);\n }\n if (proto.packages) {\n m.packages = PackagesHydrationOption.fromProto(proto.packages);\n }\n if (proto.branding) {\n m.branding = BrandingHydrationOption.fromProto(proto.branding);\n }\n if (proto.users) {\n m.users = UsersHydrationOption.fromProto(proto.users);\n }\n if (proto.salesActivities) {\n m.salesActivities = SalesActivitiesHydrationOption.fromProto(proto.salesActivities);\n }\n if (proto.partnerConfig) {\n m.partnerConfig = PartnerConfigHydrationOption.fromProto(proto.partnerConfig);\n }\n if (proto.task) {\n m.task = TasksHydrationOption.fromProto(proto.task);\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.accountGroups !== 'undefined' && this.accountGroups !== null) {\n toReturn['accountGroups'] = 'toApiJson' in this.accountGroups ? this.accountGroups.toApiJson() : this.accountGroups;\n }\n if (typeof this.apps !== 'undefined' && this.apps !== null) {\n toReturn['apps'] = 'toApiJson' in this.apps ? this.apps.toApiJson() : this.apps;\n }\n if (typeof this.packages !== 'undefined' && this.packages !== null) {\n toReturn['packages'] = 'toApiJson' in this.packages ? this.packages.toApiJson() : this.packages;\n }\n if (typeof this.branding !== 'undefined' && this.branding !== null) {\n toReturn['branding'] = 'toApiJson' in this.branding ? this.branding.toApiJson() : this.branding;\n }\n if (typeof this.users !== 'undefined' && this.users !== null) {\n toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;\n }\n if (typeof this.salesActivities !== 'undefined' && this.salesActivities !== null) {\n toReturn['salesActivities'] = 'toApiJson' in this.salesActivities ? this.salesActivities.toApiJson() : this.salesActivities;\n }\n if (typeof this.partnerConfig !== 'undefined' && this.partnerConfig !== null) {\n toReturn['partnerConfig'] = 'toApiJson' in this.partnerConfig ? this.partnerConfig.toApiJson() : this.partnerConfig;\n }\n if (typeof this.task !== 'undefined' && this.task !== null) {\n toReturn['task'] = 'toApiJson' in this.task ? this.task.toApiJson() : this.task;\n }\n return toReturn;\n }\n}\nclass InflatedAccountGroups {\n static fromProto(proto) {\n let m = new InflatedAccountGroups();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedAccountGroupsAccountGroup.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedApps {\n static fromProto(proto) {\n let m = new InflatedApps();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedAppsApp.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedBranding {\n static fromProto(proto) {\n let m = new InflatedBranding();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = InflatedBrandingBranding.fromProto(proto.inflatedPropertyName);\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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedPacklages {\n static fromProto(proto) {\n let m = new InflatedPacklages();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedPacklagesPackage.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedSalesActivities {\n static fromProto(proto) {\n let m = new InflatedSalesActivities();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedSalesActivitiesSalesActivity.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedSalesConfig {\n static fromProto(proto) {\n let m = new InflatedSalesConfig();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = InflatedSalesConfigPartnerConfiguration.fromProto(proto.inflatedPropertyName);\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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedTasks {\n static fromProto(proto) {\n let m = new InflatedTasks();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedTasksTask.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedUsers {\n static fromProto(proto) {\n let m = new InflatedUsers();\n m = Object.assign(m, proto);\n if (proto.inflatedPropertyName) {\n m.inflatedPropertyName = proto.inflatedPropertyName.map(InflatedUsersUser.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.inflatedPropertyName !== 'undefined' && this.inflatedPropertyName !== null) {\n toReturn['inflatedPropertyName'] = 'toApiJson' in this.inflatedPropertyName ? this.inflatedPropertyName.toApiJson() : this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedPacklagesPackage {\n static fromProto(proto) {\n let m = new InflatedPacklagesPackage();\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.packageId !== 'undefined') {\n toReturn['packageId'] = this.packageId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass PackagesHydrationOption {\n static fromProto(proto) {\n let m = new PackagesHydrationOption();\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.packageIds !== 'undefined') {\n toReturn['packageIds'] = this.packageIds;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass PartnerConfigHydrationOption {\n static fromProto(proto) {\n let m = new PartnerConfigHydrationOption();\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.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedSalesConfigPartnerConfiguration {\n static fromProto(proto) {\n let m = new InflatedSalesConfigPartnerConfiguration();\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.defaultCurrency !== 'undefined') {\n toReturn['defaultCurrency'] = this.defaultCurrency;\n }\n return toReturn;\n }\n}\nclass SalesActivitiesHydrationOption {\n static fromProto(proto) {\n let m = new SalesActivitiesHydrationOption();\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.salesActivityKeys !== 'undefined') {\n toReturn['salesActivityKeys'] = this.salesActivityKeys;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedSalesActivitiesSalesActivity {\n static fromProto(proto) {\n let m = new InflatedSalesActivitiesSalesActivity();\n m = Object.assign(m, proto);\n if (proto.salesActivityKey) {\n m.salesActivityKey = SalesActivityKey.fromProto(proto.salesActivityKey);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.lastEdited) {\n m.lastEdited = new Date(proto.lastEdited);\n }\n if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\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.salesActivityKey !== 'undefined' && this.salesActivityKey !== null) {\n toReturn['salesActivityKey'] = 'toApiJson' in this.salesActivityKey ? this.salesActivityKey.toApiJson() : this.salesActivityKey;\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.lastEdited !== 'undefined' && this.lastEdited !== null) {\n toReturn['lastEdited'] = 'toApiJson' in this.lastEdited ? this.lastEdited.toApiJson() : this.lastEdited;\n }\n if (typeof this.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.opportunityId !== 'undefined') {\n toReturn['opportunityId'] = this.opportunityId;\n }\n if (typeof this.salesStatus !== 'undefined') {\n toReturn['salesStatus'] = this.salesStatus;\n }\n if (typeof this.previousSalesStatus !== 'undefined') {\n toReturn['previousSalesStatus'] = this.previousSalesStatus;\n }\n if (typeof this.salespersonAction !== 'undefined') {\n toReturn['salespersonAction'] = this.salespersonAction;\n }\n if (typeof this.customActionName !== 'undefined') {\n toReturn['customActionName'] = this.customActionName;\n }\n if (typeof this.salespersonId !== 'undefined') {\n toReturn['salespersonId'] = this.salespersonId;\n }\n if (typeof this.productName !== 'undefined') {\n toReturn['productName'] = this.productName;\n }\n if (typeof this.productPrice !== 'undefined') {\n toReturn['productPrice'] = this.productPrice;\n }\n if (typeof this.connected !== 'undefined') {\n toReturn['connected'] = this.connected;\n }\n if (typeof this.notes !== 'undefined') {\n toReturn['notes'] = this.notes;\n }\n if (typeof this.closedLostReason !== 'undefined') {\n toReturn['closedLostReason'] = this.closedLostReason;\n }\n if (typeof this.audioKey !== 'undefined') {\n toReturn['audioKey'] = this.audioKey;\n }\n if (typeof this.opportunityName !== 'undefined') {\n toReturn['opportunityName'] = this.opportunityName;\n }\n if (typeof this.audioUrl !== 'undefined') {\n toReturn['audioUrl'] = this.audioUrl;\n }\n if (typeof this.salesPersonFirstName !== 'undefined') {\n toReturn['salesPersonFirstName'] = this.salesPersonFirstName;\n }\n if (typeof this.salesPersonLastName !== 'undefined') {\n toReturn['salesPersonLastName'] = this.salesPersonLastName;\n }\n return toReturn;\n }\n}\nclass SalesActivityKey {\n static fromProto(proto) {\n let m = new SalesActivityKey();\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.salesActivityId !== 'undefined') {\n toReturn['salesActivityId'] = this.salesActivityId;\n }\n if (typeof this.businessId !== 'undefined') {\n toReturn['businessId'] = this.businessId;\n }\n return toReturn;\n }\n}\nclass InflatedTasksTask {\n static fromProto(proto) {\n let m = new InflatedTasksTask();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.dueDate) {\n m.dueDate = new Date(proto.dueDate);\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.title !== 'undefined') {\n toReturn['title'] = this.title;\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.dueDate !== 'undefined' && this.dueDate !== null) {\n toReturn['dueDate'] = 'toApiJson' in this.dueDate ? this.dueDate.toApiJson() : this.dueDate;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n return toReturn;\n }\n}\nclass TaskKeys {\n static fromProto(proto) {\n let m = new TaskKeys();\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.parentPath !== 'undefined') {\n toReturn['parentPath'] = this.parentPath;\n }\n if (typeof this.taskId !== 'undefined') {\n toReturn['taskId'] = this.taskId;\n }\n return toReturn;\n }\n}\nclass TasksHydrationOption {\n static fromProto(proto) {\n let m = new TasksHydrationOption();\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.taskKeys !== 'undefined') {\n toReturn['taskKeys'] = this.taskKeys;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\n }\n return toReturn;\n }\n}\nclass InflatedBrandingBrandingAssetsUrl {\n static fromProto(proto) {\n let m = new InflatedBrandingBrandingAssetsUrl();\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.insecure !== 'undefined') {\n toReturn['insecure'] = this.insecure;\n }\n if (typeof this.secure !== 'undefined') {\n toReturn['secure'] = this.secure;\n }\n return toReturn;\n }\n}\nclass InflatedUsersUser {\n static fromProto(proto) {\n let m = new InflatedUsersUser();\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.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n return toReturn;\n }\n}\nclass UsersHydrationOption {\n static fromProto(proto) {\n let m = new UsersHydrationOption();\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.userIds !== 'undefined') {\n toReturn['userIds'] = this.userIds;\n }\n if (typeof this.inflatedPropertyName !== 'undefined') {\n toReturn['inflatedPropertyName'] = this.inflatedPropertyName;\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 RawTemplate {\n static fromProto(proto) {\n let m = new RawTemplate();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue$2(TemplateType, proto.type);\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.templateContent !== 'undefined') {\n toReturn['templateContent'] = this.templateContent;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n return toReturn;\n }\n}\nclass Template {\n static fromProto(proto) {\n let m = new Template();\n m = Object.assign(m, proto);\n if (proto.hydrationOptions) {\n m.hydrationOptions = HydrationOptions.fromProto(proto.hydrationOptions);\n }\n if (proto.type) {\n m.type = enumStringToValue$2(TemplateType, proto.type);\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.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.metadata !== 'undefined') {\n toReturn['metadata'] = this.metadata;\n }\n if (typeof this.content !== 'undefined') {\n toReturn['content'] = this.content;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.hydrationOptions !== 'undefined' && this.hydrationOptions !== null) {\n toReturn['hydrationOptions'] = 'toApiJson' in this.hydrationOptions ? this.hydrationOptions.toApiJson() : this.hydrationOptions;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\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 TemplateIdentifier {\n static fromProto(proto) {\n let m = new TemplateIdentifier();\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\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 SubstitutionParameter {\n static fromProto(proto) {\n let m = new SubstitutionParameter();\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.replacementTag !== 'undefined') {\n toReturn['replacementTag'] = this.replacementTag;\n }\n if (typeof this.requiredOptions !== 'undefined') {\n toReturn['requiredOptions'] = this.requiredOptions;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.isHtml !== 'undefined') {\n toReturn['isHtml'] = this.isHtml;\n }\n if (typeof this.isDeprecated !== 'undefined') {\n toReturn['isDeprecated'] = this.isDeprecated;\n }\n return toReturn;\n }\n}\nclass SubstitutionParameterError {\n static fromProto(proto) {\n let m = new SubstitutionParameterError();\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.replacementTag !== 'undefined') {\n toReturn['replacementTag'] = this.replacementTag;\n }\n if (typeof this.reason !== 'undefined') {\n toReturn['reason'] = this.reason;\n }\n return toReturn;\n }\n}\nclass SubstitutionParameterOptions {\n static fromProto(proto) {\n let m = new SubstitutionParameterOptions();\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.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.orderId !== 'undefined') {\n toReturn['orderId'] = this.orderId;\n }\n if (typeof this.contactId !== 'undefined') {\n toReturn['contactId'] = this.contactId;\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 AddTemplateLocaleRequest {\n static fromProto(proto) {\n let m = new AddTemplateLocaleRequest();\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass CreateTemplateRequest {\n static fromProto(proto) {\n let m = new CreateTemplateRequest();\n m = Object.assign(m, proto);\n if (proto.template) {\n m.template = Template.fromProto(proto.template);\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.template !== 'undefined' && this.template !== null) {\n toReturn['template'] = 'toApiJson' in this.template ? this.template.toApiJson() : this.template;\n }\n return toReturn;\n }\n}\nclass DeleteTemplateRequest {\n static fromProto(proto) {\n let m = new DeleteTemplateRequest();\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n return toReturn;\n }\n}\nclass ListSubstitutionParametersRequestFilters {\n static fromProto(proto) {\n let m = new ListSubstitutionParametersRequestFilters();\n m = Object.assign(m, proto);\n if (proto.forRequiredOptions) {\n m.forRequiredOptions = SubstitutionParameterOptions.fromProto(proto.forRequiredOptions);\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.includeHtml !== 'undefined') {\n toReturn['includeHtml'] = this.includeHtml;\n }\n if (typeof this.includeDeprecated !== 'undefined') {\n toReturn['includeDeprecated'] = this.includeDeprecated;\n }\n if (typeof this.forRequiredOptions !== 'undefined' && this.forRequiredOptions !== null) {\n toReturn['forRequiredOptions'] = 'toApiJson' in this.forRequiredOptions ? this.forRequiredOptions.toApiJson() : this.forRequiredOptions;\n }\n return toReturn;\n }\n}\nclass GetAllSubstitutionParametersRequest {\n static fromProto(proto) {\n let m = new GetAllSubstitutionParametersRequest();\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetAllSubstitutionParametersResponse {\n static fromProto(proto) {\n let m = new GetAllSubstitutionParametersResponse();\n m = Object.assign(m, proto);\n if (proto.substitutionParameters) {\n m.substitutionParameters = proto.substitutionParameters.map(SubstitutionParameter.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.substitutionParameters !== 'undefined' && this.substitutionParameters !== null) {\n toReturn['substitutionParameters'] = 'toApiJson' in this.substitutionParameters ? this.substitutionParameters.toApiJson() : this.substitutionParameters;\n }\n return toReturn;\n }\n}\nclass GetMultiTemplateRequest {\n static fromProto(proto) {\n let m = new GetMultiTemplateRequest();\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateIds !== 'undefined') {\n toReturn['templateIds'] = this.templateIds;\n }\n return toReturn;\n }\n}\nclass GetMultiTemplateResponse {\n static fromProto(proto) {\n let m = new GetMultiTemplateResponse();\n m = Object.assign(m, proto);\n if (proto.templates) {\n m.templates = proto.templates.map(GetMultiTemplateResponseGetOrError.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.templates !== 'undefined' && this.templates !== null) {\n toReturn['templates'] = 'toApiJson' in this.templates ? this.templates.toApiJson() : this.templates;\n }\n return toReturn;\n }\n}\nclass GetMultiTemplateResponseGetOrError {\n static fromProto(proto) {\n let m = new GetMultiTemplateResponseGetOrError();\n m = Object.assign(m, proto);\n if (proto.template) {\n m.template = Template.fromProto(proto.template);\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.template !== 'undefined' && this.template !== null) {\n toReturn['template'] = 'toApiJson' in this.template ? this.template.toApiJson() : this.template;\n }\n if (typeof this.errorDescription !== 'undefined') {\n toReturn['errorDescription'] = this.errorDescription;\n }\n return toReturn;\n }\n}\nclass GetTemplateRequest {\n static fromProto(proto) {\n let m = new GetTemplateRequest();\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetTemplateResponse {\n static fromProto(proto) {\n let m = new GetTemplateResponse();\n m = Object.assign(m, proto);\n if (proto.template) {\n m.template = Template.fromProto(proto.template);\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.template !== 'undefined' && this.template !== null) {\n toReturn['template'] = 'toApiJson' in this.template ? this.template.toApiJson() : this.template;\n }\n return toReturn;\n }\n}\nclass ListSubstitutionParametersRequest {\n static fromProto(proto) {\n let m = new ListSubstitutionParametersRequest();\n m = Object.assign(m, proto);\n if (proto.filters) {\n m.filters = ListSubstitutionParametersRequestFilters.fromProto(proto.filters);\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.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass ListSubstitutionParametersResponse {\n static fromProto(proto) {\n let m = new ListSubstitutionParametersResponse();\n m = Object.assign(m, proto);\n if (proto.substitutionParameters) {\n m.substitutionParameters = proto.substitutionParameters.map(SubstitutionParameter.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.substitutionParameters !== 'undefined' && this.substitutionParameters !== null) {\n toReturn['substitutionParameters'] = 'toApiJson' in this.substitutionParameters ? this.substitutionParameters.toApiJson() : this.substitutionParameters;\n }\n return toReturn;\n }\n}\nclass ListTemplateRequest {\n static fromProto(proto) {\n let m = new ListTemplateRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.prefix !== 'undefined') {\n toReturn['prefix'] = this.prefix;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass ListTemplateResponse {\n static fromProto(proto) {\n let m = new ListTemplateResponse();\n m = Object.assign(m, proto);\n if (proto.templates) {\n m.templates = proto.templates.map(Template.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.templates !== 'undefined' && this.templates !== null) {\n toReturn['templates'] = 'toApiJson' in this.templates ? this.templates.toApiJson() : this.templates;\n }\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass RenderTemplateMultiRequestParameterizedTemplates {\n static fromProto(proto) {\n let m = new RenderTemplateMultiRequestParameterizedTemplates();\n m = Object.assign(m, proto);\n if (proto.substitutionParameterOptions) {\n m.substitutionParameterOptions = SubstitutionParameterOptions.fromProto(proto.substitutionParameterOptions);\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.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n if (typeof this.parameters !== 'undefined') {\n toReturn['parameters'] = this.parameters;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.substitutionParameterOptions !== 'undefined' && this.substitutionParameterOptions !== null) {\n toReturn['substitutionParameterOptions'] = 'toApiJson' in this.substitutionParameterOptions ? this.substitutionParameterOptions.toApiJson() : this.substitutionParameterOptions;\n }\n return toReturn;\n }\n}\nclass RenderMultiRequestRender {\n static fromProto(proto) {\n let m = new RenderMultiRequestRender();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(TemplateType, proto.type);\n }\n if (proto.hydrationOptions) {\n m.hydrationOptions = HydrationOptions.fromProto(proto.hydrationOptions);\n }\n if (proto.substitutionParameterOptions) {\n m.substitutionParameterOptions = SubstitutionParameterOptions.fromProto(proto.substitutionParameterOptions);\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.templateContent !== 'undefined') {\n toReturn['templateContent'] = this.templateContent;\n }\n if (typeof this.parameters !== 'undefined') {\n toReturn['parameters'] = this.parameters;\n }\n if (typeof this.errorOnMissingParam !== 'undefined') {\n toReturn['errorOnMissingParam'] = this.errorOnMissingParam;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.hydrationOptions !== 'undefined' && this.hydrationOptions !== null) {\n toReturn['hydrationOptions'] = 'toApiJson' in this.hydrationOptions ? this.hydrationOptions.toApiJson() : this.hydrationOptions;\n }\n if (typeof this.substitutionParameterOptions !== 'undefined' && this.substitutionParameterOptions !== null) {\n toReturn['substitutionParameterOptions'] = 'toApiJson' in this.substitutionParameterOptions ? this.substitutionParameterOptions.toApiJson() : this.substitutionParameterOptions;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.renderFakeData !== 'undefined') {\n toReturn['renderFakeData'] = this.renderFakeData;\n }\n return toReturn;\n }\n}\nclass RenderMultiRequest {\n static fromProto(proto) {\n let m = new RenderMultiRequest();\n m = Object.assign(m, proto);\n if (proto.renderRequests) {\n m.renderRequests = proto.renderRequests.map(RenderMultiRequestRender.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.renderRequests !== 'undefined' && this.renderRequests !== null) {\n toReturn['renderRequests'] = 'toApiJson' in this.renderRequests ? this.renderRequests.toApiJson() : this.renderRequests;\n }\n return toReturn;\n }\n}\nclass RenderMultiResponse {\n static fromProto(proto) {\n let m = new RenderMultiResponse();\n m = Object.assign(m, proto);\n if (proto.renders) {\n m.renders = proto.renders.map(RenderMultiResponseRenderOrError.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.renders !== 'undefined' && this.renders !== null) {\n toReturn['renders'] = 'toApiJson' in this.renders ? this.renders.toApiJson() : this.renders;\n }\n return toReturn;\n }\n}\nclass RenderMultiResponseRenderOrError {\n static fromProto(proto) {\n let m = new RenderMultiResponseRenderOrError();\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.renderedTemplate !== 'undefined') {\n toReturn['renderedTemplate'] = this.renderedTemplate;\n }\n if (typeof this.errorDescription !== 'undefined') {\n toReturn['errorDescription'] = this.errorDescription;\n }\n return toReturn;\n }\n}\nclass RenderRequest {\n static fromProto(proto) {\n let m = new RenderRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(TemplateType, proto.type);\n }\n if (proto.hydrationOptions) {\n m.hydrationOptions = HydrationOptions.fromProto(proto.hydrationOptions);\n }\n if (proto.substitutionParameterOptions) {\n m.substitutionParameterOptions = SubstitutionParameterOptions.fromProto(proto.substitutionParameterOptions);\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.templateContent !== 'undefined') {\n toReturn['templateContent'] = this.templateContent;\n }\n if (typeof this.parameters !== 'undefined') {\n toReturn['parameters'] = this.parameters;\n }\n if (typeof this.errorOnMissingParam !== 'undefined') {\n toReturn['errorOnMissingParam'] = this.errorOnMissingParam;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.hydrationOptions !== 'undefined' && this.hydrationOptions !== null) {\n toReturn['hydrationOptions'] = 'toApiJson' in this.hydrationOptions ? this.hydrationOptions.toApiJson() : this.hydrationOptions;\n }\n if (typeof this.substitutionParameterOptions !== 'undefined' && this.substitutionParameterOptions !== null) {\n toReturn['substitutionParameterOptions'] = 'toApiJson' in this.substitutionParameterOptions ? this.substitutionParameterOptions.toApiJson() : this.substitutionParameterOptions;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.renderFakeData !== 'undefined') {\n toReturn['renderFakeData'] = this.renderFakeData;\n }\n return toReturn;\n }\n}\nclass RenderResponse {\n static fromProto(proto) {\n let m = new RenderResponse();\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.renderedTemplate !== 'undefined') {\n toReturn['renderedTemplate'] = this.renderedTemplate;\n }\n return toReturn;\n }\n}\nclass RenderTemplateMultiRequest {\n static fromProto(proto) {\n let m = new RenderTemplateMultiRequest();\n m = Object.assign(m, proto);\n if (proto.templatesToRender) {\n m.templatesToRender = proto.templatesToRender.map(RenderTemplateMultiRequestParameterizedTemplates.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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templatesToRender !== 'undefined' && this.templatesToRender !== null) {\n toReturn['templatesToRender'] = 'toApiJson' in this.templatesToRender ? this.templatesToRender.toApiJson() : this.templatesToRender;\n }\n if (typeof this.errorOnMissingParam !== 'undefined') {\n toReturn['errorOnMissingParam'] = this.errorOnMissingParam;\n }\n return toReturn;\n }\n}\nclass RenderTemplateRequest {\n static fromProto(proto) {\n let m = new RenderTemplateRequest();\n m = Object.assign(m, proto);\n if (proto.substitutionParameterOptions) {\n m.substitutionParameterOptions = SubstitutionParameterOptions.fromProto(proto.substitutionParameterOptions);\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.templateId !== 'undefined') {\n toReturn['templateId'] = this.templateId;\n }\n if (typeof this.parameters !== 'undefined') {\n toReturn['parameters'] = this.parameters;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.errorOnMissingParam !== 'undefined') {\n toReturn['errorOnMissingParam'] = this.errorOnMissingParam;\n }\n if (typeof this.substitutionParameterOptions !== 'undefined' && this.substitutionParameterOptions !== null) {\n toReturn['substitutionParameterOptions'] = 'toApiJson' in this.substitutionParameterOptions ? this.substitutionParameterOptions.toApiJson() : this.substitutionParameterOptions;\n }\n return toReturn;\n }\n}\nclass ReplaceTemplateRequest {\n static fromProto(proto) {\n let m = new ReplaceTemplateRequest();\n m = Object.assign(m, proto);\n if (proto.template) {\n m.template = Template.fromProto(proto.template);\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.template !== 'undefined' && this.template !== null) {\n toReturn['template'] = 'toApiJson' in this.template ? this.template.toApiJson() : this.template;\n }\n return toReturn;\n }\n}\nclass UpdateTemplateRequest {\n static fromProto(proto) {\n let m = new UpdateTemplateRequest();\n m = Object.assign(m, proto);\n if (proto.template) {\n m.template = Template.fromProto(proto.template);\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.applicationId !== 'undefined') {\n toReturn['applicationId'] = this.applicationId;\n }\n if (typeof this.template !== 'undefined' && this.template !== null) {\n toReturn['template'] = 'toApiJson' in this.template ? this.template.toApiJson() : this.template;\n }\n return toReturn;\n }\n}\nclass VerifySubstitutionParametersRequest {\n static fromProto(proto) {\n let m = new VerifySubstitutionParametersRequest();\n m = Object.assign(m, proto);\n if (proto.rawTemplate) {\n m.rawTemplate = RawTemplate.fromProto(proto.rawTemplate);\n }\n if (proto.templateIdentifier) {\n m.templateIdentifier = TemplateIdentifier.fromProto(proto.templateIdentifier);\n }\n if (proto.substitutionParameterOptions) {\n m.substitutionParameterOptions = SubstitutionParameterOptions.fromProto(proto.substitutionParameterOptions);\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.rawTemplate !== 'undefined' && this.rawTemplate !== null) {\n toReturn['rawTemplate'] = 'toApiJson' in this.rawTemplate ? this.rawTemplate.toApiJson() : this.rawTemplate;\n }\n if (typeof this.templateIdentifier !== 'undefined' && this.templateIdentifier !== null) {\n toReturn['templateIdentifier'] = 'toApiJson' in this.templateIdentifier ? this.templateIdentifier.toApiJson() : this.templateIdentifier;\n }\n if (typeof this.substitutionParameterOptions !== 'undefined' && this.substitutionParameterOptions !== null) {\n toReturn['substitutionParameterOptions'] = 'toApiJson' in this.substitutionParameterOptions ? this.substitutionParameterOptions.toApiJson() : this.substitutionParameterOptions;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.parameters !== 'undefined') {\n toReturn['parameters'] = this.parameters;\n }\n return toReturn;\n }\n}\nclass VerifySubstitutionParametersResponse {\n static fromProto(proto) {\n let m = new VerifySubstitutionParametersResponse();\n m = Object.assign(m, proto);\n if (proto.errors) {\n m.errors = proto.errors.map(SubstitutionParameterError.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.errors !== 'undefined' && this.errors !== null) {\n toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;\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': 'templates-api.vendasta-local.com',\n 'test': '',\n 'demo': 'templates-api-demo.apigateway.co',\n 'prod': 'templates-api-prod.apigateway.co',\n 'production': 'templates-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(t) {\n return new (t || 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 TemplatesApiService = /*#__PURE__*/(() => {\n class TemplatesApiService {\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 create(r) {\n const request = r.toApiJson ? r : new CreateTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Create\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n get(r) {\n const request = r.toApiJson ? r : new GetTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Get\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetTemplateResponse.fromProto(resp)));\n }\n getMulti(r) {\n const request = r.toApiJson ? r : new GetMultiTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/GetMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiTemplateResponse.fromProto(resp)));\n }\n list(r) {\n const request = r.toApiJson ? r : new ListTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListTemplateResponse.fromProto(resp)));\n }\n delete(r) {\n const request = r.toApiJson ? r : new DeleteTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Delete\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n update(r) {\n const request = r.toApiJson ? r : new UpdateTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Update\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n replace(r) {\n const request = r.toApiJson ? r : new ReplaceTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Replace\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n addTemplateLocale(r) {\n const request = r.toApiJson ? r : new AddTemplateLocaleRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/AddTemplateLocale\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n renderTemplate(r) {\n const request = r.toApiJson ? r : new RenderTemplateRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/RenderTemplate\", request.toApiJson(), this.apiOptions()).pipe(map(resp => RenderResponse.fromProto(resp)));\n }\n renderTemplateMulti(r) {\n const request = r.toApiJson ? r : new RenderTemplateMultiRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/RenderTemplateMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => RenderMultiResponse.fromProto(resp)));\n }\n render(r) {\n const request = r.toApiJson ? r : new RenderRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/Render\", request.toApiJson(), this.apiOptions()).pipe(map(resp => RenderResponse.fromProto(resp)));\n }\n renderMulti(r) {\n const request = r.toApiJson ? r : new RenderMultiRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/RenderMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => RenderMultiResponse.fromProto(resp)));\n }\n getAllSubstitutionParameters(r) {\n const request = r.toApiJson ? r : new GetAllSubstitutionParametersRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/GetAllSubstitutionParameters\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAllSubstitutionParametersResponse.fromProto(resp)));\n }\n listSubstitutionParameters(r) {\n const request = r.toApiJson ? r : new ListSubstitutionParametersRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/ListSubstitutionParameters\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListSubstitutionParametersResponse.fromProto(resp)));\n }\n verifySubstitutionParameters(r) {\n const request = r.toApiJson ? r : new VerifySubstitutionParametersRequest(r);\n return this.http.post(this._host + \"/templates.v1.TemplatesService/VerifySubstitutionParameters\", request.toApiJson(), this.apiOptions()).pipe(map(resp => VerifySubstitutionParametersResponse.fromProto(resp)));\n }\n }\n TemplatesApiService.ɵfac = function TemplatesApiService_Factory(t) {\n return new (t || TemplatesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n TemplatesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TemplatesApiService,\n factory: TemplatesApiService.ɵfac,\n providedIn: 'root'\n });\n return TemplatesApiService;\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// *********************************\nlet TemplatesService = /*#__PURE__*/(() => {\n class TemplatesService {\n constructor(client) {\n this.client = client;\n }\n get(applicationId, templateId, locale) {\n return this.client.get({\n applicationId,\n templateId,\n locale\n }).pipe(map(resp => resp.template));\n }\n getMulti(applicationId, templateIds) {\n return this.client.getMulti({\n applicationId,\n templateIds\n }).pipe(map(resp => resp.templates));\n }\n create(applicationId, template) {\n return this.client.create({\n applicationId,\n template\n }).pipe(map(() => true));\n }\n update(applicationId, template) {\n return this.client.update({\n applicationId,\n template\n }).pipe(map(() => true));\n }\n /**\n * Render any text content using template hydration\n * @param templateContent The content to render - including substitution tags (Default is GoLang style, but can be overridden)\n * @param parameters Typically contains IDs used for hydration (e.g. partner ID, user ID) using keys of your choosing\n * @param subParamOpts Used for mapping the keys provided in `parameters` to the ones expected by templates microservice\n * @param templateType The templating engine to use.\n * @param locale The locale to use for localizable hydrations (e.g. dates, addresses) - optional\n * @param renderFakeData If true, will return fake data if real data cannot be rendered\n */\n render(templateContent, parameters, templateType = TemplateType.TEMPLATE_TYPE_GOLANG, subParamOpts, locale, errorOnMissingParam, options, renderFakeData) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const request = new RenderRequest({\n templateContent: templateContent,\n errorOnMissingParam: errorOnMissingParam,\n locale: locale,\n parameters: parameters,\n substitutionParameterOptions: subParamOpts,\n hydrationOptions: options,\n type: templateType,\n renderFakeData: renderFakeData\n });\n return this.client.render(request).pipe(map(resp => resp.renderedTemplate || ''));\n }\n renderTemplate(applicationId, templateId, parameters, locale, errorOnMissingParam) {\n return this.client.renderTemplate({\n applicationId: applicationId,\n templateId: templateId,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n parameters: parameters,\n locale: locale,\n errorOnMissingParam: errorOnMissingParam\n }).pipe(map(resp => resp.renderedTemplate || ''));\n }\n listSubstitutionParameters(filters) {\n return this.client.listSubstitutionParameters({\n filters: filters\n }).pipe(map(resp => resp.substitutionParameters));\n }\n }\n TemplatesService.ɵfac = function TemplatesService_Factory(t) {\n return new (t || TemplatesService)(i0.ɵɵinject(TemplatesApiService));\n };\n TemplatesService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TemplatesService,\n factory: TemplatesService.ɵfac,\n providedIn: 'root'\n });\n return TemplatesService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CreateTemplateRequest, DeleteTemplateRequest, GetMultiTemplateRequest, GetTemplateRequest, GetTemplateResponse, ListTemplateRequest, RenderMultiResponse, RenderRequest, RenderResponse, RenderTemplateMultiRequest, RenderTemplateRequest, SubstitutionParameter, Template, TemplateType, TemplatesApiService, TemplatesService, UpdateTemplateRequest };\n","import { ActivatableApp } from '@vendasta/marketplace-packages';\nimport { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport interface AppListingServiceInterface {\n listAllActivatableApps(): Observable;\n}\n\nexport const EMAIL_BUILDER_APP_LISTING_SERVICE_TOKEN = new InjectionToken(\n '[AppListingServiceInterface]: token for app listing service',\n);\n"],"mappings":"mMA47BA,SAASA,GAAoBC,EAASC,EAAO,CAC3C,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CAoMA,SAASC,GAAkBF,EAASC,EAAO,CACzC,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CA1oCA,IAYIE,EAsFEC,EAkGAC,EAmGAC,EA0BAC,EAgRAC,EAuBAC,EA8CAC,EAuMAC,EAwEAC,EA6BAC,EA0BAC,EAkDAC,EA6BAC,EAgCAC,EAuBAC,EAyCAC,EA0BAC,EA0BAC,EAuBAC,EA6BAC,EAoBAC,EAuBAC,EAuBAC,EAuBAC,EA0BAC,EA0BAC,EAuBAC,EA0BAC,EAuBAC,EAgCAC,EA6BAC,EAgCAC,EAkDAC,EAuBAC,EAuBAC,EAuBAC,EAkDAC,EAoBAC,EA6BAC,EAsCAC,EA0BAC,GA0BAC,GAyCAC,GA+BAC,GACAC,GAOFC,GA6BAC,GA+GAC,GArjEJC,GAAAC,GAAA,KAAAC,KAEAC,KACAC,KACAA,KAQIrD,EAA4B,SAAUA,EAAc,CACtD,OAAAA,EAAaA,EAAa,qBAA0B,CAAC,EAAI,uBACzDA,EAAaA,EAAa,qBAA0B,CAAC,EAAI,uBACzDA,EAAaA,EAAa,0BAA+B,CAAC,EAAI,4BACvDA,CACT,EAAEA,GAAgB,CAAC,CAAC,EAiFdC,EAAN,MAAMqD,CAA6B,CACjC,OAAO,UAAUC,EAAO,CACtB,IAAIC,EAAI,IAAIF,EACZ,OAAAE,EAAI,OAAO,OAAOA,EAAGD,CAAK,EACnBC,CACT,CACA,YAAYC,EAAQ,CACbA,GAGL,OAAO,OAAO,KAAMA,CAAM,CAC5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CAClD,CACA,2BAA2BgB,EAAS,CAClC,OAAO,KAAK,OAAO,2BAA2B,CAC5C,QAASA,CACX,CAAC,EAAE,KAAKjB,EAAIC,GAAQA,EAAK,sBAAsB,CAAC,CAClD,CACF,CACA,OAAA/D,EAAiB,UAAO,SAAkCqD,EAAG,CAC3D,OAAO,IAAKA,GAAKrD,GAAqBgE,EAASjE,EAAmB,CAAC,CACrE,EACAC,EAAiB,WAA0BsD,EAAmB,CAC5D,MAAOtD,EACP,QAASA,EAAiB,UAC1B,WAAY,MACd,CAAC,EACMA,CACT,GAAG,ICloEH,IAOagF,GAPbC,GAAAC,GAAA,KAAAC,KAOaH,GAA0C,IAAII,GACzD,6DAA6D","names":["enumStringToValue$2","enumRef","value","enumStringToValue","TemplateType","AccountGroupsHydrationOption","AppsHydrationOption","BrandingHydrationOption","HydrationOptions","PackagesHydrationOption","PartnerConfigHydrationOption","SalesActivitiesHydrationOption","TasksHydrationOption","UsersHydrationOption","RawTemplate","Template","TemplateIdentifier","SubstitutionParameter","SubstitutionParameterError","SubstitutionParameterOptions","AddTemplateLocaleRequest","CreateTemplateRequest","DeleteTemplateRequest","ListSubstitutionParametersRequestFilters","GetAllSubstitutionParametersRequest","GetAllSubstitutionParametersResponse","GetMultiTemplateRequest","GetMultiTemplateResponse","GetMultiTemplateResponseGetOrError","GetTemplateRequest","GetTemplateResponse","ListSubstitutionParametersRequest","ListSubstitutionParametersResponse","ListTemplateRequest","ListTemplateResponse","RenderTemplateMultiRequestParameterizedTemplates","RenderMultiRequestRender","RenderMultiRequest","RenderMultiResponse","RenderMultiResponseRenderOrError","RenderRequest","RenderResponse","RenderTemplateMultiRequest","RenderTemplateRequest","ReplaceTemplateRequest","UpdateTemplateRequest","VerifySubstitutionParametersRequest","VerifySubstitutionParametersResponse","environment","hostMap","HostService","TemplatesApiService","TemplatesService","init_vendasta_templates","__esmMin","init_core","init_operators","init_http","_AccountGroupsHydrationOption","proto","m","kwargs","toReturn","_AppsHydrationOption","_BrandingHydrationOption","_HydrationOptions","_PackagesHydrationOption","_PartnerConfigHydrationOption","_SalesActivitiesHydrationOption","_TasksHydrationOption","_UsersHydrationOption","_RawTemplate","_Template","_TemplateIdentifier","_SubstitutionParameter","_SubstitutionParameterError","_SubstitutionParameterOptions","_AddTemplateLocaleRequest","_CreateTemplateRequest","_DeleteTemplateRequest","_ListSubstitutionParametersRequestFilters","_GetAllSubstitutionParametersRequest","_GetAllSubstitutionParametersResponse","_GetMultiTemplateRequest","_GetMultiTemplateResponse","_GetMultiTemplateResponseGetOrError","_GetTemplateRequest","_GetTemplateResponse","_ListSubstitutionParametersRequest","_ListSubstitutionParametersResponse","_ListTemplateRequest","_ListTemplateResponse","_RenderTemplateMultiRequestParameterizedTemplates","_RenderMultiRequestRender","_RenderMultiRequest","_RenderMultiResponse","_RenderMultiResponseRenderOrError","_RenderRequest","_RenderResponse","_RenderTemplateMultiRequest","_RenderTemplateRequest","_ReplaceTemplateRequest","_UpdateTemplateRequest","_VerifySubstitutionParametersRequest","_VerifySubstitutionParametersResponse","t","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","__spreadProps","__spreadValues","map","resp","ɵɵinject","HttpClient","client","applicationId","templateId","locale","templateIds","template","templateContent","parameters","templateType","subParamOpts","errorOnMissingParam","options","renderFakeData","filters","EMAIL_BUILDER_APP_LISTING_SERVICE_TOKEN","init_app_listing_service_interface","__esmMin","init_core","InjectionToken"],"x_google_ignoreList":[0]}