UNPKG

@danielbiegler/vendure-plugin-user-registration-guard

Version:

Let's you flexibly customize if and how you prevent users from registering with your Vendure instance.

39 lines (38 loc) 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BlockedCreateAdministratorEvent = exports.BlockedCustomerRegistrationEvent = void 0; const core_1 = require("@vendure/core"); /** * This event is fired whenever a customer registration was blocked. * * Override the generic in case you extended your Graphql types. */ class BlockedCustomerRegistrationEvent extends core_1.VendureEvent { ctx; args; assertions; constructor(ctx, args, assertions) { super(); this.ctx = ctx; this.args = args; this.assertions = assertions; } } exports.BlockedCustomerRegistrationEvent = BlockedCustomerRegistrationEvent; /** * This event is fired whenever the creation of a new admin was blocked. * * Override the generic in case you extended your Graphql types. */ class BlockedCreateAdministratorEvent extends core_1.VendureEvent { ctx; args; assertions; constructor(ctx, args, assertions) { super(); this.ctx = ctx; this.args = args; this.assertions = assertions; } } exports.BlockedCreateAdministratorEvent = BlockedCreateAdministratorEvent;