{"version":3,"sources":["node_modules/@vendasta/platform-integrations/fesm2020/vendasta-platform-integrations.mjs","libs/platform-integrations/shared/src/lib/constant.ts"],"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';\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'platform-integrations-api.vendasta-local.com',\n 'test': '',\n 'demo': 'platform-integrations-demo.apigateway.co',\n 'prod': 'platform-integrations-prod.apigateway.co',\n 'production': 'platform-integrations-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// Enums.\n// *********************************\nvar ConnectionMethods = /*#__PURE__*/function (ConnectionMethods) {\n ConnectionMethods[ConnectionMethods[\"UNSPECIFIED\"] = 0] = \"UNSPECIFIED\";\n ConnectionMethods[ConnectionMethods[\"OAUTH2\"] = 1] = \"OAUTH2\";\n ConnectionMethods[ConnectionMethods[\"APIKEY\"] = 2] = \"APIKEY\";\n ConnectionMethods[ConnectionMethods[\"VENDOR_MANAGED\"] = 3] = \"VENDOR_MANAGED\";\n return ConnectionMethods;\n}(ConnectionMethods || {});\nvar ConnectionStatus = /*#__PURE__*/function (ConnectionStatus) {\n ConnectionStatus[ConnectionStatus[\"UNSPECIFIED_STATUS\"] = 0] = \"UNSPECIFIED_STATUS\";\n ConnectionStatus[ConnectionStatus[\"PRECONNECTED\"] = 1] = \"PRECONNECTED\";\n ConnectionStatus[ConnectionStatus[\"CONNECTED\"] = 2] = \"CONNECTED\";\n ConnectionStatus[ConnectionStatus[\"DISCONNECTED\"] = 3] = \"DISCONNECTED\";\n ConnectionStatus[ConnectionStatus[\"DELETED\"] = 4] = \"DELETED\";\n return ConnectionStatus;\n}(ConnectionStatus || {});\nvar SupportedContexts = /*#__PURE__*/function (SupportedContexts) {\n SupportedContexts[SupportedContexts[\"PI_CONTEXT_UNSET\"] = 0] = \"PI_CONTEXT_UNSET\";\n SupportedContexts[SupportedContexts[\"PI_CONTEXT_PARTNER\"] = 1] = \"PI_CONTEXT_PARTNER\";\n SupportedContexts[SupportedContexts[\"PI_CONTEXT_SMB\"] = 2] = \"PI_CONTEXT_SMB\";\n return SupportedContexts;\n}(SupportedContexts || {});\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 FieldMask {\n static fromProto(proto) {\n let m = new FieldMask();\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.paths !== 'undefined') {\n toReturn['paths'] = this.paths;\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 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$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass AdditionalInfo {\n static fromProto(proto) {\n let m = new AdditionalInfo();\n m = Object.assign(m, proto);\n if (proto.websites) {\n m.websites = proto.websites.map(WebsiteInfo.fromProto);\n }\n if (proto.resources) {\n m.resources = proto.resources.map(ResourceInfo.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.provider !== 'undefined') {\n toReturn['provider'] = this.provider;\n }\n if (typeof this.categories !== 'undefined') {\n toReturn['categories'] = this.categories;\n }\n if (typeof this.websites !== 'undefined' && this.websites !== null) {\n toReturn['websites'] = 'toApiJson' in this.websites ? this.websites.toApiJson() : this.websites;\n }\n if (typeof this.requirements !== 'undefined') {\n toReturn['requirements'] = this.requirements;\n }\n if (typeof this.resources !== 'undefined' && this.resources !== null) {\n toReturn['resources'] = 'toApiJson' in this.resources ? this.resources.toApiJson() : this.resources;\n }\n if (typeof this.businesses !== 'undefined') {\n toReturn['businesses'] = this.businesses;\n }\n if (typeof this.billing !== 'undefined') {\n toReturn['billing'] = this.billing;\n }\n return toReturn;\n }\n}\nclass ConnectionResponse {\n static fromProto(proto) {\n let m = new ConnectionResponse();\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 if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n if (proto.status) {\n m.status = enumStringToValue$1(ConnectionStatus, proto.status);\n }\n if (proto.customFields) {\n m.customFields = proto.customFields.map(CustomFields.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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\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.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n return toReturn;\n }\n}\nclass CreateConnectionRequest {\n static fromProto(proto) {\n let m = new CreateConnectionRequest();\n m = Object.assign(m, proto);\n if (proto.customFields) {\n m.customFields = proto.customFields.map(CustomFields.fromProto);\n }\n if (proto.context) {\n m.context = enumStringToValue$1(SupportedContexts, proto.context);\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n if (typeof this.context !== 'undefined') {\n toReturn['context'] = this.context;\n }\n return toReturn;\n }\n}\nclass CreateConnectionResponse {\n static fromProto(proto) {\n let m = new CreateConnectionResponse();\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n return toReturn;\n }\n}\nclass CreateIntegrationRequest {\n static fromProto(proto) {\n let m = new CreateIntegrationRequest();\n m = Object.assign(m, proto);\n if (proto.connectionMethod) {\n m.connectionMethod = enumStringToValue$1(ConnectionMethods, proto.connectionMethod);\n }\n if (proto.additionalInfo) {\n m.additionalInfo = AdditionalInfo.fromProto(proto.additionalInfo);\n }\n if (proto.maxConnections) {\n m.maxConnections = parseInt(proto.maxConnections, 10);\n }\n if (proto.supportedContexts) {\n m.supportedContexts = proto.supportedContexts.map(v => enumStringToValue$1(SupportedContexts, v));\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.logo !== 'undefined') {\n toReturn['logo'] = this.logo;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.integrationType !== 'undefined') {\n toReturn['integrationType'] = this.integrationType;\n }\n if (typeof this.connectionMethod !== 'undefined') {\n toReturn['connectionMethod'] = this.connectionMethod;\n }\n if (typeof this.clientId !== 'undefined') {\n toReturn['clientId'] = this.clientId;\n }\n if (typeof this.clientSecret !== 'undefined') {\n toReturn['clientSecret'] = this.clientSecret;\n }\n if (typeof this.apiKey !== 'undefined') {\n toReturn['apiKey'] = this.apiKey;\n }\n if (typeof this.authenticationUrl !== 'undefined') {\n toReturn['authenticationUrl'] = this.authenticationUrl;\n }\n if (typeof this.tokenUrl !== 'undefined') {\n toReturn['tokenUrl'] = this.tokenUrl;\n }\n if (typeof this.longDescription !== 'undefined') {\n toReturn['longDescription'] = this.longDescription;\n }\n if (typeof this.additionalInfo !== 'undefined' && this.additionalInfo !== null) {\n toReturn['additionalInfo'] = 'toApiJson' in this.additionalInfo ? this.additionalInfo.toApiJson() : this.additionalInfo;\n }\n if (typeof this.baseUrl !== 'undefined') {\n toReturn['baseUrl'] = this.baseUrl;\n }\n if (typeof this.maxConnections !== 'undefined') {\n toReturn['maxConnections'] = this.maxConnections;\n }\n if (typeof this.webhookVerifierToken !== 'undefined') {\n toReturn['webhookVerifierToken'] = this.webhookVerifierToken;\n }\n if (typeof this.supportedContexts !== 'undefined') {\n toReturn['supportedContexts'] = this.supportedContexts;\n }\n return toReturn;\n }\n}\nclass CreateIntegrationResponse {\n static fromProto(proto) {\n let m = new CreateIntegrationResponse();\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n return toReturn;\n }\n}\nclass CustomFields {\n static fromProto(proto) {\n let m = new CustomFields();\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.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass DeleteConnectionRequest {\n static fromProto(proto) {\n let m = new DeleteConnectionRequest();\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\nclass DeleteIntegrationRequest {\n static fromProto(proto) {\n let m = new DeleteIntegrationRequest();\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\nclass EmitEventRequest {\n static fromProto(proto) {\n let m = new EmitEventRequest();\n m = Object.assign(m, proto);\n if (proto.emittedAt) {\n m.emittedAt = new Date(proto.emittedAt);\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.topic !== 'undefined') {\n toReturn['topic'] = this.topic;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.payload !== 'undefined') {\n toReturn['payload'] = this.payload;\n }\n if (typeof this.eventId !== 'undefined') {\n toReturn['eventId'] = this.eventId;\n }\n if (typeof this.emittedAt !== 'undefined' && this.emittedAt !== null) {\n toReturn['emittedAt'] = 'toApiJson' in this.emittedAt ? this.emittedAt.toApiJson() : this.emittedAt;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n return toReturn;\n }\n}\nclass EmitEventResponse {\n static fromProto(proto) {\n let m = new EmitEventResponse();\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.eventId !== 'undefined') {\n toReturn['eventId'] = this.eventId;\n }\n return toReturn;\n }\n}\nclass GetConnectionRequest {\n static fromProto(proto) {\n let m = new GetConnectionRequest();\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\nclass GetConnectionResponse {\n static fromProto(proto) {\n let m = new GetConnectionResponse();\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 if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n if (proto.status) {\n m.status = enumStringToValue$1(ConnectionStatus, proto.status);\n }\n if (proto.customFields) {\n m.customFields = proto.customFields.map(CustomFields.fromProto);\n }\n if (proto.context) {\n m.context = enumStringToValue$1(SupportedContexts, proto.context);\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\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.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.label !== 'undefined') {\n toReturn['label'] = this.label;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n if (typeof this.context !== 'undefined') {\n toReturn['context'] = this.context;\n }\n return toReturn;\n }\n}\nclass GetIntegrationMarketingRequest {\n static fromProto(proto) {\n let m = new GetIntegrationMarketingRequest();\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n return toReturn;\n }\n}\nclass GetIntegrationRequest {\n static fromProto(proto) {\n let m = new GetIntegrationRequest();\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n return toReturn;\n }\n}\nclass GetIntegrationResponse {\n static fromProto(proto) {\n let m = new GetIntegrationResponse();\n m = Object.assign(m, proto);\n if (proto.connectionMethod) {\n m.connectionMethod = enumStringToValue$1(ConnectionMethods, proto.connectionMethod);\n }\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 if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n if (proto.additionalInfo) {\n m.additionalInfo = AdditionalInfo.fromProto(proto.additionalInfo);\n }\n if (proto.maxConnections) {\n m.maxConnections = parseInt(proto.maxConnections, 10);\n }\n if (proto.supportedContexts) {\n m.supportedContexts = proto.supportedContexts.map(v => enumStringToValue$1(SupportedContexts, v));\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.logo !== 'undefined') {\n toReturn['logo'] = this.logo;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.integrationType !== 'undefined') {\n toReturn['integrationType'] = this.integrationType;\n }\n if (typeof this.clientId !== 'undefined') {\n toReturn['clientId'] = this.clientId;\n }\n if (typeof this.clientSecret !== 'undefined') {\n toReturn['clientSecret'] = this.clientSecret;\n }\n if (typeof this.apiKey !== 'undefined') {\n toReturn['apiKey'] = this.apiKey;\n }\n if (typeof this.authenticationUrl !== 'undefined') {\n toReturn['authenticationUrl'] = this.authenticationUrl;\n }\n if (typeof this.tokenUrl !== 'undefined') {\n toReturn['tokenUrl'] = this.tokenUrl;\n }\n if (typeof this.connectionMethod !== 'undefined') {\n toReturn['connectionMethod'] = this.connectionMethod;\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.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.longDescription !== 'undefined') {\n toReturn['longDescription'] = this.longDescription;\n }\n if (typeof this.additionalInfo !== 'undefined' && this.additionalInfo !== null) {\n toReturn['additionalInfo'] = 'toApiJson' in this.additionalInfo ? this.additionalInfo.toApiJson() : this.additionalInfo;\n }\n if (typeof this.baseUrl !== 'undefined') {\n toReturn['baseUrl'] = this.baseUrl;\n }\n if (typeof this.maxConnections !== 'undefined') {\n toReturn['maxConnections'] = this.maxConnections;\n }\n if (typeof this.webhookVerifierToken !== 'undefined') {\n toReturn['webhookVerifierToken'] = this.webhookVerifierToken;\n }\n if (typeof this.supportedContexts !== 'undefined') {\n toReturn['supportedContexts'] = this.supportedContexts;\n }\n return toReturn;\n }\n}\nclass GetMultiIntegrationMarketingRequest {\n static fromProto(proto) {\n let m = new GetMultiIntegrationMarketingRequest();\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.integrationIds !== 'undefined') {\n toReturn['integrationIds'] = this.integrationIds;\n }\n return toReturn;\n }\n}\nclass GetMultiIntegrationMarketingResponse {\n static fromProto(proto) {\n let m = new GetMultiIntegrationMarketingResponse();\n m = Object.assign(m, proto);\n if (proto.integrations) {\n m.integrations = proto.integrations.map(IntegrationMarketingResponse.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.integrations !== 'undefined' && this.integrations !== null) {\n toReturn['integrations'] = 'toApiJson' in this.integrations ? this.integrations.toApiJson() : this.integrations;\n }\n return toReturn;\n }\n}\nclass IntegrationMarketingResponse {\n static fromProto(proto) {\n let m = new IntegrationMarketingResponse();\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 if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\n }\n if (proto.additionalInfo) {\n m.additionalInfo = AdditionalInfo.fromProto(proto.additionalInfo);\n }\n if (proto.maxConnections) {\n m.maxConnections = parseInt(proto.maxConnections, 10);\n }\n if (proto.connectionMethod) {\n m.connectionMethod = enumStringToValue$1(ConnectionMethods, proto.connectionMethod);\n }\n if (proto.supportedContexts) {\n m.supportedContexts = proto.supportedContexts.map(v => enumStringToValue$1(SupportedContexts, v));\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.logo !== 'undefined') {\n toReturn['logo'] = this.logo;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.integrationType !== 'undefined') {\n toReturn['integrationType'] = this.integrationType;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\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.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n if (typeof this.longDescription !== 'undefined') {\n toReturn['longDescription'] = this.longDescription;\n }\n if (typeof this.additionalInfo !== 'undefined' && this.additionalInfo !== null) {\n toReturn['additionalInfo'] = 'toApiJson' in this.additionalInfo ? this.additionalInfo.toApiJson() : this.additionalInfo;\n }\n if (typeof this.maxConnections !== 'undefined') {\n toReturn['maxConnections'] = this.maxConnections;\n }\n if (typeof this.connectionMethod !== 'undefined') {\n toReturn['connectionMethod'] = this.connectionMethod;\n }\n if (typeof this.supportedContexts !== 'undefined') {\n toReturn['supportedContexts'] = this.supportedContexts;\n }\n return toReturn;\n }\n}\nclass IntegrationsFilters {\n static fromProto(proto) {\n let m = new IntegrationsFilters();\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.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n return toReturn;\n }\n}\nclass ListConnectionRequest {\n static fromProto(proto) {\n let m = new ListConnectionRequest();\n m = Object.assign(m, proto);\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n return toReturn;\n }\n}\nclass ListConnectionResponse {\n static fromProto(proto) {\n let m = new ListConnectionResponse();\n m = Object.assign(m, proto);\n if (proto.connections) {\n m.connections = proto.connections.map(ConnectionResponse.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\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.connections !== 'undefined' && this.connections !== null) {\n toReturn['connections'] = 'toApiJson' in this.connections ? this.connections.toApiJson() : this.connections;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass ListIntegrationMarketingRequest {\n static fromProto(proto) {\n let m = new ListIntegrationMarketingRequest();\n m = Object.assign(m, proto);\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n if (proto.filters) {\n m.filters = IntegrationsFilters.fromProto(proto.filters);\n }\n if (proto.supportedContexts) {\n m.supportedContexts = enumStringToValue$1(SupportedContexts, proto.supportedContexts);\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.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\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.supportedContexts !== 'undefined') {\n toReturn['supportedContexts'] = this.supportedContexts;\n }\n return toReturn;\n }\n}\nclass ListIntegrationMarketingResponse {\n static fromProto(proto) {\n let m = new ListIntegrationMarketingResponse();\n m = Object.assign(m, proto);\n if (proto.integrations) {\n m.integrations = proto.integrations.map(IntegrationMarketingResponse.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\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.integrations !== 'undefined' && this.integrations !== null) {\n toReturn['integrations'] = 'toApiJson' in this.integrations ? this.integrations.toApiJson() : this.integrations;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass ListIntegrationRequest {\n static fromProto(proto) {\n let m = new ListIntegrationRequest();\n m = Object.assign(m, proto);\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n if (proto.filters) {\n m.filters = IntegrationsFilters.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.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n return toReturn;\n }\n}\nclass ListIntegrationResponse {\n static fromProto(proto) {\n let m = new ListIntegrationResponse();\n m = Object.assign(m, proto);\n if (proto.integrations) {\n m.integrations = proto.integrations.map(GetIntegrationResponse.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\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.integrations !== 'undefined' && this.integrations !== null) {\n toReturn['integrations'] = 'toApiJson' in this.integrations ? this.integrations.toApiJson() : this.integrations;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass PagedRequestOptions {\n static fromProto(proto) {\n let m = new PagedRequestOptions();\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.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 PagedResponseMetadata {\n static fromProto(proto) {\n let m = new PagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 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.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass ResourceInfo {\n static fromProto(proto) {\n let m = new ResourceInfo();\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.resourceName !== 'undefined') {\n toReturn['resourceName'] = this.resourceName;\n }\n if (typeof this.resourceUrl !== 'undefined') {\n toReturn['resourceUrl'] = this.resourceUrl;\n }\n return toReturn;\n }\n}\nclass UpdateConnectionRequest {\n static fromProto(proto) {\n let m = new UpdateConnectionRequest();\n m = Object.assign(m, proto);\n if (proto.updateFields) {\n m.updateFields = UpdateConnectionRequestUpdateFields.fromProto(proto.updateFields);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.updateFields !== 'undefined' && this.updateFields !== null) {\n toReturn['updateFields'] = 'toApiJson' in this.updateFields ? this.updateFields.toApiJson() : this.updateFields;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nclass UpdateIntegrationRequestUpdateFields {\n static fromProto(proto) {\n let m = new UpdateIntegrationRequestUpdateFields();\n m = Object.assign(m, proto);\n if (proto.connectionMethod) {\n m.connectionMethod = enumStringToValue$1(ConnectionMethods, proto.connectionMethod);\n }\n if (proto.additionalInfo) {\n m.additionalInfo = AdditionalInfo.fromProto(proto.additionalInfo);\n }\n if (proto.maxConnections) {\n m.maxConnections = parseInt(proto.maxConnections, 10);\n }\n if (proto.supportedContexts) {\n m.supportedContexts = proto.supportedContexts.map(v => enumStringToValue$1(SupportedContexts, v));\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.logo !== 'undefined') {\n toReturn['logo'] = this.logo;\n }\n if (typeof this.displayName !== 'undefined') {\n toReturn['displayName'] = this.displayName;\n }\n if (typeof this.description !== 'undefined') {\n toReturn['description'] = this.description;\n }\n if (typeof this.integrationType !== 'undefined') {\n toReturn['integrationType'] = this.integrationType;\n }\n if (typeof this.clientId !== 'undefined') {\n toReturn['clientId'] = this.clientId;\n }\n if (typeof this.clientSecret !== 'undefined') {\n toReturn['clientSecret'] = this.clientSecret;\n }\n if (typeof this.apiKey !== 'undefined') {\n toReturn['apiKey'] = this.apiKey;\n }\n if (typeof this.connectionMethod !== 'undefined') {\n toReturn['connectionMethod'] = this.connectionMethod;\n }\n if (typeof this.authenticationUrl !== 'undefined') {\n toReturn['authenticationUrl'] = this.authenticationUrl;\n }\n if (typeof this.tokenUrl !== 'undefined') {\n toReturn['tokenUrl'] = this.tokenUrl;\n }\n if (typeof this.longDescription !== 'undefined') {\n toReturn['longDescription'] = this.longDescription;\n }\n if (typeof this.additionalInfo !== 'undefined' && this.additionalInfo !== null) {\n toReturn['additionalInfo'] = 'toApiJson' in this.additionalInfo ? this.additionalInfo.toApiJson() : this.additionalInfo;\n }\n if (typeof this.baseUrl !== 'undefined') {\n toReturn['baseUrl'] = this.baseUrl;\n }\n if (typeof this.maxConnections !== 'undefined') {\n toReturn['maxConnections'] = this.maxConnections;\n }\n if (typeof this.webhookVerifierToken !== 'undefined') {\n toReturn['webhookVerifierToken'] = this.webhookVerifierToken;\n }\n if (typeof this.supportedContexts !== 'undefined') {\n toReturn['supportedContexts'] = this.supportedContexts;\n }\n return toReturn;\n }\n}\nclass UpdateConnectionRequestUpdateFields {\n static fromProto(proto) {\n let m = new UpdateConnectionRequestUpdateFields();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$1(ConnectionStatus, proto.status);\n }\n if (proto.customFields) {\n m.customFields = proto.customFields.map(CustomFields.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.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.customFields !== 'undefined' && this.customFields !== null) {\n toReturn['customFields'] = 'toApiJson' in this.customFields ? this.customFields.toApiJson() : this.customFields;\n }\n return toReturn;\n }\n}\nclass UpdateIntegrationRequest {\n static fromProto(proto) {\n let m = new UpdateIntegrationRequest();\n m = Object.assign(m, proto);\n if (proto.updateFields) {\n m.updateFields = UpdateIntegrationRequestUpdateFields.fromProto(proto.updateFields);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\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.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.updateFields !== 'undefined' && this.updateFields !== null) {\n toReturn['updateFields'] = 'toApiJson' in this.updateFields ? this.updateFields.toApiJson() : this.updateFields;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nclass WebsiteInfo {\n static fromProto(proto) {\n let m = new WebsiteInfo();\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.siteName !== 'undefined') {\n toReturn['siteName'] = this.siteName;\n }\n if (typeof this.siteUrl !== 'undefined') {\n toReturn['siteUrl'] = this.siteUrl;\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 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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.integrationId !== 'undefined') {\n toReturn['integrationId'] = this.integrationId;\n }\n if (typeof this.baseUrl !== 'undefined') {\n toReturn['baseUrl'] = this.baseUrl;\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 RevokeAccessTokenAndDeleteRequest {\n static fromProto(proto) {\n let m = new RevokeAccessTokenAndDeleteRequest();\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.connectionId !== 'undefined') {\n toReturn['connectionId'] = this.connectionId;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet ConnectionsApiService = /*#__PURE__*/(() => {\n class ConnectionsApiService {\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 CreateConnectionRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.ConnectionsService/Create\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateConnectionResponse.fromProto(resp)));\n }\n update(r) {\n const request = r.toApiJson ? r : new UpdateConnectionRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.ConnectionsService/Update\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n get(r) {\n const request = r.toApiJson ? r : new GetConnectionRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.ConnectionsService/Get\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetConnectionResponse.fromProto(resp)));\n }\n list(r) {\n const request = r.toApiJson ? r : new ListConnectionRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.ConnectionsService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListConnectionResponse.fromProto(resp)));\n }\n delete(r) {\n const request = r.toApiJson ? r : new DeleteConnectionRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.ConnectionsService/Delete\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n ConnectionsApiService.ɵfac = function ConnectionsApiService_Factory(t) {\n return new (t || ConnectionsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n ConnectionsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ConnectionsApiService,\n factory: ConnectionsApiService.ɵfac,\n providedIn: 'root'\n });\n return ConnectionsApiService;\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 IntegrationManagementApiService = /*#__PURE__*/(() => {\n class IntegrationManagementApiService {\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 CreateIntegrationRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/Create\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateIntegrationResponse.fromProto(resp)));\n }\n update(r) {\n const request = r.toApiJson ? r : new UpdateIntegrationRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/Update\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n list(r) {\n const request = r.toApiJson ? r : new ListIntegrationRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListIntegrationResponse.fromProto(resp)));\n }\n delete(r) {\n const request = r.toApiJson ? r : new DeleteIntegrationRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/Delete\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n get(r) {\n const request = r.toApiJson ? r : new GetIntegrationRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/Get\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetIntegrationResponse.fromProto(resp)));\n }\n emitEvent(r) {\n const request = r.toApiJson ? r : new EmitEventRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationManagementService/EmitEvent\", request.toApiJson(), this.apiOptions()).pipe(map(resp => EmitEventResponse.fromProto(resp)));\n }\n }\n IntegrationManagementApiService.ɵfac = function IntegrationManagementApiService_Factory(t) {\n return new (t || IntegrationManagementApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n IntegrationManagementApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: IntegrationManagementApiService,\n factory: IntegrationManagementApiService.ɵfac,\n providedIn: 'root'\n });\n return IntegrationManagementApiService;\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 IntegrationMarketingApiService = /*#__PURE__*/(() => {\n class IntegrationMarketingApiService {\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 list(r) {\n const request = r.toApiJson ? r : new ListIntegrationMarketingRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationMarketingService/List\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListIntegrationMarketingResponse.fromProto(resp)));\n }\n get(r) {\n const request = r.toApiJson ? r : new GetIntegrationMarketingRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationMarketingService/Get\", request.toApiJson(), this.apiOptions()).pipe(map(resp => IntegrationMarketingResponse.fromProto(resp)));\n }\n getMulti(r) {\n const request = r.toApiJson ? r : new GetMultiIntegrationMarketingRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.IntegrationMarketingService/GetMulti\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiIntegrationMarketingResponse.fromProto(resp)));\n }\n }\n IntegrationMarketingApiService.ɵfac = function IntegrationMarketingApiService_Factory(t) {\n return new (t || IntegrationMarketingApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n IntegrationMarketingApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: IntegrationMarketingApiService,\n factory: IntegrationMarketingApiService.ɵfac,\n providedIn: 'root'\n });\n return IntegrationMarketingApiService;\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 OAuthApiService = /*#__PURE__*/(() => {\n class OAuthApiService {\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 + \"/platform_integrations.v1.OAuthService/GetAuthorizationCodeRedirectURL\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAuthorizationCodeRedirectURLResponse.fromProto(resp)));\n }\n revokeAccessTokenAndDelete(r) {\n const request = r.toApiJson ? r : new RevokeAccessTokenAndDeleteRequest(r);\n return this.http.post(this._host + \"/platform_integrations.v1.OAuthService/RevokeAccessTokenAndDelete\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n OAuthApiService.ɵfac = function OAuthApiService_Factory(t) {\n return new (t || OAuthApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n OAuthApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OAuthApiService,\n factory: OAuthApiService.ɵfac,\n providedIn: 'root'\n });\n return OAuthApiService;\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 { Access, AdditionalInfo, ConnectionMethods, ConnectionResponse, ConnectionStatus, ConnectionsApiService, CreateConnectionRequest, CreateConnectionResponse, CreateIntegrationRequest, CreateIntegrationResponse, CustomFields, DeleteConnectionRequest, DeleteIntegrationRequest, EmitEventRequest, EmitEventResponse, FieldMask, GetAuthorizationCodeRedirectURLRequest, GetAuthorizationCodeRedirectURLResponse, GetConnectionRequest, GetConnectionResponse, GetIntegrationMarketingRequest, GetIntegrationRequest, GetIntegrationResponse, GetMultiIntegrationMarketingRequest, GetMultiIntegrationMarketingResponse, HostService, IntegrationManagementApiService, IntegrationMarketingApiService, IntegrationMarketingResponse, IntegrationsFilters, ListConnectionRequest, ListConnectionResponse, ListIntegrationMarketingRequest, ListIntegrationMarketingResponse, ListIntegrationRequest, ListIntegrationResponse, OAuthApiService, PagedRequestOptions, PagedResponseMetadata, ResourceInfo, RevokeAccessTokenAndDeleteRequest, SupportedContexts, UpdateConnectionRequest, UpdateConnectionRequestUpdateFields, UpdateIntegrationRequest, UpdateIntegrationRequestUpdateFields, WebsiteInfo };\n","export const PLATFORM_INTEGRATIONS_PARTNER_ID_INJECTION_TOKEN$ = 'PI_PARTNER_ID';\nexport const PLATFORM_INTEGRATIONS_NAMESPACE_INJECTION_TOKEN$ = 'PI_NAMESPACE';\nexport const PLATFORM_INTEGRATIONS_CONTEXT_INJECTION_TOKEN$ = 'PI_CONTEXT';\n\nexport const PLATFORM_INTEGRATIONS_MARKET_ID_INJECTION_TOKEN$ = 'AUTOMATION_MARKET_ID';\n"],"mappings":"sJAKA,IAAMA,GAAe,OAAS,OAAO,YAAiB,SAAW,OAC3DC,EAAU,CACd,MAAS,+CACT,KAAQ,GACR,KAAQ,2CACR,KAAQ,2CACR,WAAc,0CAChB,EACIC,GAA4B,IAAM,CACpC,MAAMA,CAAY,CAChB,IAAI,MAAO,CACT,OAAOD,EAAQD,EAAY,YAAY,CAAC,CAC1C,CACA,IAAI,gBAAiB,CACnB,MAAO,WAAa,KAAK,IAC3B,CACF,CACA,OAAAE,EAAY,UAAO,SAA6BC,EAAG,CACjD,OAAO,IAAKA,GAAKD,EACnB,EACAA,EAAY,WAA0BE,EAAmB,CACvD,MAAOF,EACP,QAASA,EAAY,UACrB,WAAY,MACd,CAA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gB,EAAuChB,CAAC,EAC9E,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,yEAA0EC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKE,EAAIC,GAAQa,EAAwC,UAAUb,CAAI,CAAC,CAAC,CAChO,CACA,2BAA2BJ,EAAG,CAC5B,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIkB,EAAkClB,CAAC,EACzE,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,oEAAqEC,EAAQ,UAAU,EAAGkB,EAAAC,EAAA,GACxH,KAAK,WAAW,GADwG,CAE3H,QAAS,UACX,EAAC,CACH,CACF,CACA,OAAAL,EAAgB,UAAO,SAAiCL,EAAG,CACzD,OAAO,IAAKA,GAAKK,GAAoBJ,EAAYC,CAAU,EAAMD,EAASE,CAAW,CAAC,CACxF,EACAE,EAAgB,WAA0BD,EAAmB,CAC3D,MAAOC,EACP,QAASA,EAAgB,UACzB,WAAY,MACd,CAAC,EACMA,CACT,GAAG,ECvnDI,IAAMM,GAAoD,gBACpDC,GAAmD,eACnDC,GAAiD,aAEjDC,GAAmD","names":["environment","hostMap","HostService","t","ɵɵdefineInjectable","ConnectionMethods","ConnectionStatus","SupportedContexts","FieldMask","_FieldMask","proto","m","kwargs","toReturn","enumStringToValue$1","enumRef","value","AdditionalInfo","_AdditionalInfo","proto","m","WebsiteInfo","ResourceInfo","kwargs","toReturn","ConnectionResponse","_ConnectionResponse","ConnectionStatus","CustomFields","CreateConnectionRequest","_CreateConnectionRequest","SupportedContexts","CreateConnectionResponse","_CreateConnectionResponse","CustomFields","_CustomFields","proto","m","kwargs","toReturn","DeleteConnectionRequest","_DeleteConnectionRequest","GetConnectionRequest","_GetConnectionRequest","proto","m","kwargs","toReturn","GetConnectionResponse","_GetConnectionResponse","enumStringToValue$1","ConnectionStatus","CustomFields","SupportedContexts","GetIntegrationMarketingRequest","_GetIntegrationMarketingRequest","GetMultiIntegrationMarketingRequest","_GetMultiIntegrationMarketingRequest","proto","m","kwargs","toReturn","GetMultiIntegrationMarketingResponse","_GetMultiIntegrationMarketingResponse","IntegrationMarketingResponse","_IntegrationMarketingResponse","AdditionalInfo","enumStringToValue$1","ConnectionMethods","v","SupportedContexts","IntegrationsFilters","_IntegrationsFilters","ListConnectionRequest","_ListConnectionRequest","PagedRequestOptions","ListConnectionResponse","_ListConnectionResponse","ConnectionResponse","PagedResponseMetadata","ListIntegrationMarketingRequest","_ListIntegrationMarketingRequest","ListIntegrationMarketingResponse","_ListIntegrationMarketingResponse","PagedRequestOptions","_PagedRequestOptions","proto","m","kwargs","toReturn","PagedResponseMetadata","_PagedResponseMetadata","ResourceInfo","_ResourceInfo","UpdateConnectionRequest","_UpdateConnectionRequest","UpdateConnectionRequestUpdateFields","FieldMask","UpdateConnectionRequestUpdateFields","_UpdateConnectionRequestUpdateFields","proto","m","enumStringToValue$1","ConnectionStatus","CustomFields","kwargs","toReturn","WebsiteInfo","_WebsiteInfo","proto","m","kwargs","toReturn","GetAuthorizationCodeRedirectURLRequest","_GetAuthorizationCodeRedirectURLRequest","proto","m","kwargs","toReturn","GetAuthorizationCodeRedirectURLResponse","_GetAuthorizationCodeRedirectURLResponse","RevokeAccessTokenAndDeleteRequest","_RevokeAccessTokenAndDeleteRequest","ConnectionsApiService","http","hostService","HttpHeaders","r","request","CreateConnectionRequest","map","resp","CreateConnectionResponse","UpdateConnectionRequest","__spreadProps","__spreadValues","GetConnectionRequest","GetConnectionResponse","ListConnectionRequest","ListConnectionResponse","DeleteConnectionRequest","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","IntegrationMarketingApiService","http","hostService","HttpHeaders","r","request","ListIntegrationMarketingRequest","map","resp","ListIntegrationMarketingResponse","GetIntegrationMarketingRequest","IntegrationMarketingResponse","GetMultiIntegrationMarketingRequest","GetMultiIntegrationMarketingResponse","t","ɵɵinject","HttpClient","HostService","ɵɵdefineInjectable","OAuthApiService","GetAuthorizationCodeRedirectURLRequest","GetAuthorizationCodeRedirectURLResponse","RevokeAccessTokenAndDeleteRequest","__spreadProps","__spreadValues","PLATFORM_INTEGRATIONS_PARTNER_ID_INJECTION_TOKEN$","PLATFORM_INTEGRATIONS_NAMESPACE_INJECTION_TOKEN$","PLATFORM_INTEGRATIONS_CONTEXT_INJECTION_TOKEN$","PLATFORM_INTEGRATIONS_MARKET_ID_INJECTION_TOKEN$"],"x_google_ignoreList":[0]}