UNPKG

@sourceloop/ctrl-plane-tenant-management-service

Version:

Tenant Management microservice for SaaS control plane

50 lines 2.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostWebhookHandlerServiceKey = exports.EventConnectorBinding = exports.WebhookNotificationService = exports.asWebhookHandler = exports.WebhookHandlerEP = exports.CALLABCK_VERIFIER = exports.WEBHOOK_VERIFIER = exports.WEBHOOK_CONFIG = exports.SYSTEM_USER = exports.LEAD_TOKEN_VERIFIER = exports.TenantManagementServiceBindings = void 0; const core_1 = require("@loopback/core"); const core_2 = require("@sourceloop/core"); var TenantManagementServiceBindings; (function (TenantManagementServiceBindings) { TenantManagementServiceBindings.Config = core_1.BindingKey.create(`${core_2.BINDING_PREFIX}.chat.config`); /** * Binding key for the Idp keycloak provider. */ TenantManagementServiceBindings.IDP_KEYCLOAK = core_1.BindingKey.create('sf.user.idp.keycloak'); /** * Binding key for the Idp Auth0 provider. */ TenantManagementServiceBindings.IDP_AUTH0 = core_1.BindingKey.create('sf.user.idp.auth0'); })(TenantManagementServiceBindings || (exports.TenantManagementServiceBindings = TenantManagementServiceBindings = {})); /** * Binding key for the lead token verifier. */ exports.LEAD_TOKEN_VERIFIER = core_1.BindingKey.create('sf.user.lead.verifier'); /** * Binding key for the system user. */ exports.SYSTEM_USER = core_1.BindingKey.create('sf.user.system'); /** * Binding key for the webhook configuration. */ exports.WEBHOOK_CONFIG = core_1.BindingKey.create('sf.webhook.config'); /** * Binding key for the webhook verifier. */ exports.WEBHOOK_VERIFIER = core_1.BindingKey.create('sf.webhook.verifier'); exports.CALLABCK_VERIFIER = core_1.BindingKey.create('sf.callback.verifier'); /** * Binding key for the webhook handler extension point. */ exports.WebhookHandlerEP = core_1.BindingKey.create(`sf.webhook.handler.extensionpoint`); /** * Binding template for the webhook handler. */ const asWebhookHandler = binding => { (0, core_1.extensionFor)(exports.WebhookHandlerEP.key)(binding); binding.tag({ namespace: exports.WebhookHandlerEP.key }); }; exports.asWebhookHandler = asWebhookHandler; exports.WebhookNotificationService = core_1.BindingKey.create('sf.webhook.handler.notification.service'); exports.EventConnectorBinding = core_1.BindingKey.create('arc-saas.services.tenant-management.event-connector'); exports.PostWebhookHandlerServiceKey = core_1.BindingKey.create('services.PostWebhookHandlerService'); //# sourceMappingURL=keys.js.map