@vendure/core 1.3.3 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/common/validate-custom-field-value.d.ts +1 -1
- package/dist/api/common/validate-custom-field-value.js +12 -2
- package/dist/api/common/validate-custom-field-value.js.map +1 -1
- package/dist/api/config/configure-graphql-module.js +2 -0
- package/dist/api/config/configure-graphql-module.js.map +1 -1
- package/dist/api/config/generate-list-options.js +7 -2
- package/dist/api/config/generate-list-options.js.map +1 -1
- package/dist/api/config/graphql-custom-fields.d.ts +2 -0
- package/dist/api/config/graphql-custom-fields.js +155 -113
- package/dist/api/config/graphql-custom-fields.js.map +1 -1
- package/dist/api/resolvers/admin/search.resolver.js +1 -1
- package/dist/api/resolvers/admin/search.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/tax-category.resolver.js +2 -2
- package/dist/api/resolvers/admin/tax-category.resolver.js.map +1 -1
- package/dist/api/resolvers/admin/tax-rate.resolver.js +2 -2
- package/dist/api/resolvers/admin/tax-rate.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/order.api.graphql +4 -1
- package/dist/api/schema/common/common-types.graphql +12 -0
- package/dist/api/schema/common/custom-field-types.graphql +9 -0
- package/dist/api/schema/{admin-api → common}/payment-method.type.graphql +1 -0
- package/dist/api/schema/shop-api/shop.api.graphql +1 -1
- package/dist/common/configurable-operation.d.ts +2 -24
- package/dist/common/configurable-operation.js +1 -1
- package/dist/common/configurable-operation.js.map +1 -1
- package/dist/common/self-refreshing-cache.d.ts +9 -4
- package/dist/common/self-refreshing-cache.js +26 -20
- package/dist/common/self-refreshing-cache.js.map +1 -1
- package/dist/common/types/entity-relation-paths.d.ts +1 -1
- package/dist/config/auth/bcrypt-password-hashing-strategy.d.ts +1 -1
- package/dist/config/auth/bcrypt-password-hashing-strategy.js +11 -7
- package/dist/config/auth/bcrypt-password-hashing-strategy.js.map +1 -1
- package/dist/config/catalog/collection-filter.d.ts +1 -1
- package/dist/config/catalog/collection-filter.js +1 -1
- package/dist/config/catalog/default-collection-filters.d.ts +4 -4
- package/dist/config/catalog/default-collection-filters.js +4 -2
- package/dist/config/catalog/default-collection-filters.js.map +1 -1
- package/dist/config/custom-field/custom-field-types.d.ts +16 -8
- package/dist/config/default-config.js +8 -1
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/merge-config.d.ts +7 -0
- package/dist/config/merge-config.js +7 -0
- package/dist/config/merge-config.js.map +1 -1
- package/dist/config/payment/payment-method-handler.d.ts +2 -2
- package/dist/config/promotion/actions/buy-x-get-y-free-action.d.ts +2 -2
- package/dist/config/promotion/actions/facet-values-percentage-discount-action.d.ts +2 -2
- package/dist/config/promotion/actions/order-fixed-discount-action.d.ts +1 -1
- package/dist/config/promotion/actions/order-percentage-discount-action.d.ts +1 -1
- package/dist/config/promotion/actions/product-percentage-discount-action.d.ts +2 -2
- package/dist/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +2 -2
- package/dist/config/promotion/conditions/contains-products-condition.d.ts +1 -1
- package/dist/config/promotion/conditions/customer-group-condition.d.ts +1 -1
- package/dist/config/promotion/conditions/has-facet-values-condition.d.ts +1 -1
- package/dist/config/promotion/conditions/min-order-amount-condition.d.ts +1 -1
- package/dist/config/promotion/index.d.ts +13 -21
- package/dist/config/shipping-method/default-shipping-calculator.d.ts +4 -4
- package/dist/config/shipping-method/default-shipping-eligibility-checker.d.ts +1 -1
- package/dist/connection/connection.module.d.ts +1 -1
- package/dist/connection/transaction-subscriber.js +8 -1
- package/dist/connection/transaction-subscriber.js.map +1 -1
- package/dist/data-import/providers/import-parser/import-parser.d.ts +40 -40
- package/dist/data-import/providers/import-parser/import-parser.js +343 -56
- package/dist/data-import/providers/import-parser/import-parser.js.map +1 -1
- package/dist/data-import/providers/importer/importer.d.ts +1 -0
- package/dist/data-import/providers/importer/importer.js +69 -41
- package/dist/data-import/providers/importer/importer.js.map +1 -1
- package/dist/entity/country/country-translation.entity.d.ts +4 -1
- package/dist/entity/country/country-translation.entity.js +5 -0
- package/dist/entity/country/country-translation.entity.js.map +1 -1
- package/dist/entity/country/country.entity.d.ts +4 -1
- package/dist/entity/country/country.entity.js +5 -0
- package/dist/entity/country/country.entity.js.map +1 -1
- package/dist/entity/custom-entity-fields.d.ts +28 -12
- package/dist/entity/custom-entity-fields.js +44 -20
- package/dist/entity/custom-entity-fields.js.map +1 -1
- package/dist/entity/customer-group/customer-group.entity.d.ts +4 -1
- package/dist/entity/customer-group/customer-group.entity.js +6 -1
- package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
- package/dist/entity/payment-method/payment-method.entity.d.ts +4 -1
- package/dist/entity/payment-method/payment-method.entity.js +5 -0
- package/dist/entity/payment-method/payment-method.entity.js.map +1 -1
- package/dist/entity/promotion/promotion.entity.d.ts +4 -1
- package/dist/entity/promotion/promotion.entity.js +5 -0
- package/dist/entity/promotion/promotion.entity.js.map +1 -1
- package/dist/entity/register-custom-entity-fields.js +9 -1
- package/dist/entity/register-custom-entity-fields.js.map +1 -1
- package/dist/entity/tax-category/tax-category.entity.d.ts +4 -1
- package/dist/entity/tax-category/tax-category.entity.js +5 -0
- package/dist/entity/tax-category/tax-category.entity.js.map +1 -1
- package/dist/entity/tax-rate/tax-rate.entity.d.ts +4 -1
- package/dist/entity/tax-rate/tax-rate.entity.js +5 -0
- package/dist/entity/tax-rate/tax-rate.entity.js.map +1 -1
- package/dist/entity/zone/zone.entity.d.ts +4 -1
- package/dist/entity/zone/zone.entity.js +5 -0
- package/dist/entity/zone/zone.entity.js.map +1 -1
- package/dist/event-bus/events/account-verified-event.d.ts +16 -0
- package/dist/event-bus/events/account-verified-event.js +21 -0
- package/dist/event-bus/events/account-verified-event.js.map +1 -0
- package/dist/event-bus/events/administrator-event.d.ts +18 -0
- package/dist/event-bus/events/administrator-event.js +19 -0
- package/dist/event-bus/events/administrator-event.js.map +1 -0
- package/dist/event-bus/events/asset-event.d.ts +17 -9
- package/dist/event-bus/events/asset-event.js +15 -9
- package/dist/event-bus/events/asset-event.js.map +1 -1
- package/dist/event-bus/events/change-channel-event.d.ts +22 -0
- package/dist/event-bus/events/change-channel-event.js +25 -0
- package/dist/event-bus/events/change-channel-event.js.map +1 -0
- package/dist/event-bus/events/channel-event.d.ts +18 -0
- package/dist/event-bus/events/channel-event.js +19 -0
- package/dist/event-bus/events/channel-event.js.map +1 -0
- package/dist/event-bus/events/collection-event.d.ts +18 -0
- package/dist/event-bus/events/collection-event.js +19 -0
- package/dist/event-bus/events/collection-event.js.map +1 -0
- package/dist/event-bus/events/country-event.d.ts +18 -0
- package/dist/event-bus/events/country-event.js +19 -0
- package/dist/event-bus/events/country-event.js.map +1 -0
- package/dist/event-bus/events/coupon-code-event.d.ts +19 -0
- package/dist/event-bus/events/coupon-code-event.js +24 -0
- package/dist/event-bus/events/coupon-code-event.js.map +1 -0
- package/dist/event-bus/events/customer-address-event.d.ts +21 -6
- package/dist/event-bus/events/customer-address-event.js +16 -6
- package/dist/event-bus/events/customer-address-event.js.map +1 -1
- package/dist/event-bus/events/customer-event.d.ts +16 -6
- package/dist/event-bus/events/customer-event.js +13 -7
- package/dist/event-bus/events/customer-event.js.map +1 -1
- package/dist/event-bus/events/customer-group-entity-event.d.ts +19 -0
- package/dist/event-bus/events/customer-group-entity-event.js +21 -0
- package/dist/event-bus/events/customer-group-entity-event.js.map +1 -0
- package/dist/event-bus/events/customer-group-event.d.ts +17 -0
- package/dist/event-bus/events/customer-group-event.js +21 -1
- package/dist/event-bus/events/customer-group-event.js.map +1 -1
- package/dist/event-bus/events/facet-event.d.ts +18 -0
- package/dist/event-bus/events/facet-event.js +19 -0
- package/dist/event-bus/events/facet-event.js.map +1 -0
- package/dist/event-bus/events/facet-value-event.d.ts +18 -0
- package/dist/event-bus/events/facet-value-event.js +19 -0
- package/dist/event-bus/events/facet-value-event.js.map +1 -0
- package/dist/event-bus/events/fulfillment-event.d.ts +27 -0
- package/dist/event-bus/events/fulfillment-event.js +19 -0
- package/dist/event-bus/events/fulfillment-event.js.map +1 -0
- package/dist/event-bus/events/global-settings-event.d.ts +16 -0
- package/dist/event-bus/events/global-settings-event.js +20 -0
- package/dist/event-bus/events/global-settings-event.js.map +1 -0
- package/dist/event-bus/events/history-entry-event.d.ts +22 -0
- package/dist/event-bus/events/history-entry-event.js +20 -0
- package/dist/event-bus/events/history-entry-event.js.map +1 -0
- package/dist/event-bus/events/order-placed-event.d.ts +22 -0
- package/dist/event-bus/events/order-placed-event.js +26 -0
- package/dist/event-bus/events/order-placed-event.js.map +1 -0
- package/dist/event-bus/events/order-state-transition-event.js.map +1 -1
- package/dist/event-bus/events/password-reset-verified-event.d.ts +16 -0
- package/dist/event-bus/events/password-reset-verified-event.js +21 -0
- package/dist/event-bus/events/password-reset-verified-event.js.map +1 -0
- package/dist/event-bus/events/payment-method-event.d.ts +18 -0
- package/dist/event-bus/events/payment-method-event.js +19 -0
- package/dist/event-bus/events/payment-method-event.js.map +1 -0
- package/dist/event-bus/events/product-event.d.ts +14 -6
- package/dist/event-bus/events/product-event.js +13 -7
- package/dist/event-bus/events/product-event.js.map +1 -1
- package/dist/event-bus/events/product-option-event.d.ts +18 -0
- package/dist/event-bus/events/product-option-event.js +19 -0
- package/dist/event-bus/events/product-option-event.js.map +1 -0
- package/dist/event-bus/events/product-option-group-change-event.d.ts +19 -0
- package/dist/event-bus/events/product-option-group-change-event.js +23 -0
- package/dist/event-bus/events/product-option-group-change-event.js.map +1 -0
- package/dist/event-bus/events/product-option-group-event.d.ts +18 -0
- package/dist/event-bus/events/product-option-group-event.js +19 -0
- package/dist/event-bus/events/product-option-group-event.js.map +1 -0
- package/dist/event-bus/events/product-variant-event.d.ts +14 -6
- package/dist/event-bus/events/product-variant-event.js +13 -7
- package/dist/event-bus/events/product-variant-event.js.map +1 -1
- package/dist/event-bus/events/promotion-event.d.ts +18 -0
- package/dist/event-bus/events/promotion-event.js +19 -0
- package/dist/event-bus/events/promotion-event.js.map +1 -0
- package/dist/event-bus/events/role-change-event.d.ts +20 -0
- package/dist/event-bus/events/role-change-event.js +24 -0
- package/dist/event-bus/events/role-change-event.js.map +1 -0
- package/dist/event-bus/events/role-event.d.ts +18 -0
- package/dist/event-bus/events/role-event.js +19 -0
- package/dist/event-bus/events/role-event.js.map +1 -0
- package/dist/event-bus/events/shipping-method-event.d.ts +18 -0
- package/dist/event-bus/events/shipping-method-event.js +19 -0
- package/dist/event-bus/events/shipping-method-event.js.map +1 -0
- package/dist/event-bus/events/tax-category-event.d.ts +18 -0
- package/dist/event-bus/events/tax-category-event.js +19 -0
- package/dist/event-bus/events/tax-category-event.js.map +1 -0
- package/dist/event-bus/events/tax-rate-event.d.ts +18 -0
- package/dist/event-bus/events/tax-rate-event.js +19 -0
- package/dist/event-bus/events/tax-rate-event.js.map +1 -0
- package/dist/event-bus/events/tax-rate-modification-event.d.ts +1 -0
- package/dist/event-bus/events/tax-rate-modification-event.js +1 -0
- package/dist/event-bus/events/tax-rate-modification-event.js.map +1 -1
- package/dist/event-bus/events/zone-event.d.ts +18 -0
- package/dist/event-bus/events/zone-event.js +19 -0
- package/dist/event-bus/events/zone-event.js.map +1 -0
- package/dist/event-bus/events/zone-members-event.d.ts +19 -0
- package/dist/event-bus/events/zone-members-event.js +23 -0
- package/dist/event-bus/events/zone-members-event.js.map +1 -0
- package/dist/event-bus/index.d.ts +32 -4
- package/dist/event-bus/index.js +32 -4
- package/dist/event-bus/index.js.map +1 -1
- package/dist/event-bus/vendure-entity-event.d.ts +17 -0
- package/dist/event-bus/vendure-entity-event.js +23 -0
- package/dist/event-bus/vendure-entity-event.js.map +1 -0
- package/dist/i18n/messages/en.json +2 -1
- package/dist/plugin/default-search-plugin/api/fulltext-search.resolver.js +1 -1
- package/dist/plugin/default-search-plugin/api/fulltext-search.resolver.js.map +1 -1
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js +1 -1
- package/dist/plugin/default-search-plugin/indexer/indexer.controller.js.map +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +1 -1
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.d.ts +7 -0
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +28 -1
- package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +1 -3
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +2 -10
- package/dist/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +1 -1
- package/dist/service/helpers/order-calculator/order-calculator.js +3 -0
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.d.ts +3 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.js +10 -2
- package/dist/service/helpers/order-state-machine/order-state-machine.js.map +1 -1
- package/dist/service/helpers/product-price-applicator/product-price-applicator.js +1 -1
- package/dist/service/services/administrator.service.d.ts +3 -1
- package/dist/service/services/administrator.service.js +16 -2
- package/dist/service/services/administrator.service.js.map +1 -1
- package/dist/service/services/asset.service.js +14 -6
- package/dist/service/services/asset.service.js.map +1 -1
- package/dist/service/services/channel.service.d.ts +4 -2
- package/dist/service/services/channel.service.js +14 -3
- package/dist/service/services/channel.service.js.map +1 -1
- package/dist/service/services/collection.service.js +11 -4
- package/dist/service/services/collection.service.js.map +1 -1
- package/dist/service/services/country.service.d.ts +3 -3
- package/dist/service/services/country.service.js +8 -4
- package/dist/service/services/country.service.js.map +1 -1
- package/dist/service/services/customer-group.service.js +8 -1
- package/dist/service/services/customer-group.service.js.map +1 -1
- package/dist/service/services/customer.service.js +13 -8
- package/dist/service/services/customer.service.js.map +1 -1
- package/dist/service/services/facet-value.service.d.ts +3 -1
- package/dist/service/services/facet-value.service.js +10 -3
- package/dist/service/services/facet-value.service.js.map +1 -1
- package/dist/service/services/facet.service.d.ts +3 -1
- package/dist/service/services/facet.service.js +10 -3
- package/dist/service/services/facet.service.js.map +1 -1
- package/dist/service/services/fulfillment.service.js +7 -1
- package/dist/service/services/fulfillment.service.js.map +1 -1
- package/dist/service/services/global-settings.service.d.ts +3 -1
- package/dist/service/services/global-settings.service.js +7 -2
- package/dist/service/services/global-settings.service.js.map +1 -1
- package/dist/service/services/history.service.d.ts +3 -1
- package/dist/service/services/history.service.js +20 -6
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/order.service.d.ts +4 -1
- package/dist/service/services/order.service.js +69 -20
- package/dist/service/services/order.service.js.map +1 -1
- package/dist/service/services/payment-method.service.js +10 -1
- package/dist/service/services/payment-method.service.js.map +1 -1
- package/dist/service/services/product-option-group.service.d.ts +3 -1
- package/dist/service/services/product-option-group.service.js +9 -3
- package/dist/service/services/product-option-group.service.js.map +1 -1
- package/dist/service/services/product-option.service.d.ts +3 -1
- package/dist/service/services/product-option.service.js +9 -3
- package/dist/service/services/product-option.service.js.map +1 -1
- package/dist/service/services/product-variant.service.js +5 -4
- package/dist/service/services/product-variant.service.js.map +1 -1
- package/dist/service/services/product.service.d.ts +1 -1
- package/dist/service/services/product.service.js +8 -5
- package/dist/service/services/product.service.js.map +1 -1
- package/dist/service/services/promotion.service.d.ts +3 -1
- package/dist/service/services/promotion.service.js +10 -3
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/role.service.d.ts +3 -1
- package/dist/service/services/role.service.js +12 -4
- package/dist/service/services/role.service.js.map +1 -1
- package/dist/service/services/shipping-method.service.d.ts +3 -1
- package/dist/service/services/shipping-method.service.js +10 -3
- package/dist/service/services/shipping-method.service.js.map +1 -1
- package/dist/service/services/stock-movement.service.d.ts +11 -0
- package/dist/service/services/stock-movement.service.js +15 -5
- package/dist/service/services/stock-movement.service.js.map +1 -1
- package/dist/service/services/tax-category.service.d.ts +3 -1
- package/dist/service/services/tax-category.service.js +8 -2
- package/dist/service/services/tax-category.service.js.map +1 -1
- package/dist/service/services/tax-rate.service.js +4 -0
- package/dist/service/services/tax-rate.service.js.map +1 -1
- package/dist/service/services/zone.service.d.ts +5 -3
- package/dist/service/services/zone.service.js +24 -12
- package/dist/service/services/zone.service.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-state-transition-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/order-state-transition-event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"order-state-transition-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/order-state-transition-event.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAEhD;;;;;;GAMG;AACH,MAAa,yBAA0B,SAAQ,4BAAY;IACvD,YACW,SAAqB,EACrB,OAAmB,EACnB,GAAmB,EACnB,KAAY;QAEnB,KAAK,EAAE,CAAC;QALD,cAAS,GAAT,SAAS,CAAY;QACrB,YAAO,GAAP,OAAO,CAAY;QACnB,QAAG,GAAH,GAAG,CAAgB;QACnB,UAAK,GAAL,KAAK,CAAO;IAGvB,CAAC;CACJ;AATD,8DASC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
2
|
+
import { User } from '../../entity/user/user.entity';
|
|
3
|
+
import { VendureEvent } from '../vendure-event';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* This event is fired when a password reset is executed with a verified token.
|
|
7
|
+
*
|
|
8
|
+
* @docsCategory events
|
|
9
|
+
* @docsPage Event Types
|
|
10
|
+
* @since 1.4
|
|
11
|
+
*/
|
|
12
|
+
export declare class PasswordResetVerifiedEvent extends VendureEvent {
|
|
13
|
+
ctx: RequestContext;
|
|
14
|
+
user: User;
|
|
15
|
+
constructor(ctx: RequestContext, user: User);
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordResetVerifiedEvent = void 0;
|
|
4
|
+
const vendure_event_1 = require("../vendure-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired when a password reset is executed with a verified token.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class PasswordResetVerifiedEvent extends vendure_event_1.VendureEvent {
|
|
14
|
+
constructor(ctx, user) {
|
|
15
|
+
super();
|
|
16
|
+
this.ctx = ctx;
|
|
17
|
+
this.user = user;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PasswordResetVerifiedEvent = PasswordResetVerifiedEvent;
|
|
21
|
+
//# sourceMappingURL=password-reset-verified-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-reset-verified-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/password-reset-verified-event.ts"],"names":[],"mappings":";;;AAEA,oDAAgD;AAEhD;;;;;;;GAOG;AACH,MAAa,0BAA2B,SAAQ,4BAAY;IACxD,YAAmB,GAAmB,EAAS,IAAU;QACrD,KAAK,EAAE,CAAC;QADO,QAAG,GAAH,GAAG,CAAgB;QAAS,SAAI,GAAJ,IAAI,CAAM;IAEzD,CAAC;CACJ;AAJD,gEAIC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreatePaymentMethodInput, UpdatePaymentMethodInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { PaymentMethod } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type PaymentMethodInputTypes = CreatePaymentMethodInput | UpdatePaymentMethodInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link PaymentMethod} is added, updated
|
|
10
|
+
* or deleted.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
*/
|
|
15
|
+
export declare class PaymentMethodEvent extends VendureEntityEvent<PaymentMethod, PaymentMethodInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: PaymentMethod, type: 'created' | 'updated' | 'deleted', input?: PaymentMethodInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link PaymentMethod} is added, updated
|
|
8
|
+
* or deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
*/
|
|
13
|
+
class PaymentMethodEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.PaymentMethodEvent = PaymentMethodEvent;
|
|
19
|
+
//# sourceMappingURL=payment-method-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/payment-method-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,kBAAmB,SAAQ,yCAA0D;IAC9F,YACI,GAAmB,EACnB,MAAqB,EACrB,IAAuC,EACvC,KAA+B;QAE/B,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,gDASC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { CreateProductInput, UpdateProductInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
1
3
|
import { RequestContext } from '../../api/common/request-context';
|
|
2
4
|
import { Product } from '../../entity';
|
|
3
|
-
import {
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type ProductInputTypes = CreateProductInput | UpdateProductInput | ID;
|
|
4
7
|
/**
|
|
5
8
|
* @description
|
|
6
9
|
* This event is fired whenever a {@link Product} is added, updated
|
|
@@ -9,9 +12,14 @@ import { VendureEvent } from '../vendure-event';
|
|
|
9
12
|
* @docsCategory events
|
|
10
13
|
* @docsPage Event Types
|
|
11
14
|
*/
|
|
12
|
-
export declare class ProductEvent extends
|
|
13
|
-
ctx: RequestContext;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export declare class ProductEvent extends VendureEntityEvent<Product, ProductInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: Product, type: 'created' | 'updated' | 'deleted', input?: ProductInputTypes);
|
|
17
|
+
/**
|
|
18
|
+
* Return an product field to become compatible with the
|
|
19
|
+
* deprecated old version of ProductEvent
|
|
20
|
+
* @deprecated Use `entity` instead
|
|
21
|
+
* @since 1.4
|
|
22
|
+
*/
|
|
23
|
+
get product(): Product;
|
|
17
24
|
}
|
|
25
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProductEvent = void 0;
|
|
4
|
-
const
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* This event is fired whenever a {@link Product} is added, updated
|
|
@@ -10,12 +10,18 @@ const vendure_event_1 = require("../vendure-event");
|
|
|
10
10
|
* @docsCategory events
|
|
11
11
|
* @docsPage Event Types
|
|
12
12
|
*/
|
|
13
|
-
class ProductEvent extends
|
|
14
|
-
constructor(ctx,
|
|
15
|
-
super();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
class ProductEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Return an product field to become compatible with the
|
|
19
|
+
* deprecated old version of ProductEvent
|
|
20
|
+
* @deprecated Use `entity` instead
|
|
21
|
+
* @since 1.4
|
|
22
|
+
*/
|
|
23
|
+
get product() {
|
|
24
|
+
return this.entity;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
exports.ProductEvent = ProductEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"product-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,YAAa,SAAQ,yCAA8C;IAC5E,YACI,GAAmB,EACnB,MAAe,EACf,IAAuC,EACvC,KAAyB;QAEzB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACH,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAnBD,oCAmBC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateGroupOptionInput, CreateProductOptionInput, UpdateProductOptionInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { ProductOption } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type ProductOptionInputTypes = CreateGroupOptionInput | CreateProductOptionInput | UpdateProductOptionInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link ProductOption} is added or updated.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory events
|
|
12
|
+
* @docsPage Event Types
|
|
13
|
+
* @since 1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare class ProductOptionEvent extends VendureEntityEvent<ProductOption, ProductOptionInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: ProductOption, type: 'created' | 'updated', input?: ProductOptionInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductOptionEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductOption} is added or updated.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class ProductOptionEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ProductOptionEvent = ProductOptionEvent;
|
|
19
|
+
//# sourceMappingURL=product-option-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-option-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-option-event.ts"],"names":[],"mappings":";;;AASA,kEAA6D;AAQ7D;;;;;;;GAOG;AACH,MAAa,kBAAmB,SAAQ,yCAA0D;IAC9F,YACI,GAAmB,EACnB,MAAqB,EACrB,IAA2B,EAC3B,KAA+B;QAE/B,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,gDASC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
2
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
3
|
+
import { Product } from '../../entity';
|
|
4
|
+
import { VendureEvent } from '../vendure-event';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductOptionGroup} is assigned or removed from a {@link Product}.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
export declare class ProductOptionGroupChangeEvent extends VendureEvent {
|
|
14
|
+
ctx: RequestContext;
|
|
15
|
+
product: Product;
|
|
16
|
+
optionGroupId: ID;
|
|
17
|
+
type: 'assigned' | 'removed';
|
|
18
|
+
constructor(ctx: RequestContext, product: Product, optionGroupId: ID, type: 'assigned' | 'removed');
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductOptionGroupChangeEvent = void 0;
|
|
4
|
+
const vendure_event_1 = require("../vendure-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductOptionGroup} is assigned or removed from a {@link Product}.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class ProductOptionGroupChangeEvent extends vendure_event_1.VendureEvent {
|
|
14
|
+
constructor(ctx, product, optionGroupId, type) {
|
|
15
|
+
super();
|
|
16
|
+
this.ctx = ctx;
|
|
17
|
+
this.product = product;
|
|
18
|
+
this.optionGroupId = optionGroupId;
|
|
19
|
+
this.type = type;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ProductOptionGroupChangeEvent = ProductOptionGroupChangeEvent;
|
|
23
|
+
//# sourceMappingURL=product-option-group-change-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-option-group-change-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-option-group-change-event.ts"],"names":[],"mappings":";;;AAIA,oDAAgD;AAEhD;;;;;;;GAOG;AACH,MAAa,6BAA8B,SAAQ,4BAAY;IAC3D,YACW,GAAmB,EACnB,OAAgB,EAChB,aAAiB,EACjB,IAA4B;QAEnC,KAAK,EAAE,CAAC;QALD,QAAG,GAAH,GAAG,CAAgB;QACnB,YAAO,GAAP,OAAO,CAAS;QAChB,kBAAa,GAAb,aAAa,CAAI;QACjB,SAAI,GAAJ,IAAI,CAAwB;IAGvC,CAAC;CACJ;AATD,sEASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateProductOptionGroupInput, UpdateProductOptionGroupInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { ProductOptionGroup } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type ProductOptionGroupInputTypes = CreateProductOptionGroupInput | UpdateProductOptionGroupInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link ProductOptionGroup} is added or updated.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory events
|
|
12
|
+
* @docsPage Event Types
|
|
13
|
+
* @since 1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare class ProductOptionGroupEvent extends VendureEntityEvent<ProductOptionGroup, ProductOptionGroupInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: ProductOptionGroup, type: 'created' | 'updated', input?: ProductOptionGroupInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductOptionGroupEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ProductOptionGroup} is added or updated.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class ProductOptionGroupEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ProductOptionGroupEvent = ProductOptionGroupEvent;
|
|
19
|
+
//# sourceMappingURL=product-option-group-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-option-group-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-option-group-event.ts"],"names":[],"mappings":";;;AAQA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,uBAAwB,SAAQ,yCAG5C;IACG,YACI,GAAmB,EACnB,MAA0B,EAC1B,IAA2B,EAC3B,KAAoC;QAEpC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AAZD,0DAYC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { CreateProductVariantInput, UpdateProductVariantInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
1
3
|
import { RequestContext } from '../../api/common/request-context';
|
|
2
4
|
import { ProductVariant } from '../../entity';
|
|
3
|
-
import {
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type ProductVariantInputTypes = CreateProductVariantInput[] | UpdateProductVariantInput[] | ID | ID[];
|
|
4
7
|
/**
|
|
5
8
|
* @description
|
|
6
9
|
* This event is fired whenever a {@link ProductVariant} is added, updated
|
|
@@ -9,9 +12,14 @@ import { VendureEvent } from '../vendure-event';
|
|
|
9
12
|
* @docsCategory events
|
|
10
13
|
* @docsPage Event Types
|
|
11
14
|
*/
|
|
12
|
-
export declare class ProductVariantEvent extends
|
|
13
|
-
ctx: RequestContext;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export declare class ProductVariantEvent extends VendureEntityEvent<ProductVariant[], ProductVariantInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: ProductVariant[], type: 'created' | 'updated' | 'deleted', input?: ProductVariantInputTypes);
|
|
17
|
+
/**
|
|
18
|
+
* Return an variants field to become compatible with the
|
|
19
|
+
* deprecated old version of ProductEvent
|
|
20
|
+
* @deprecated Use `entity` instead
|
|
21
|
+
* @since 1.4
|
|
22
|
+
*/
|
|
23
|
+
get variants(): ProductVariant[];
|
|
17
24
|
}
|
|
25
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProductVariantEvent = void 0;
|
|
4
|
-
const
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
7
|
* This event is fired whenever a {@link ProductVariant} is added, updated
|
|
@@ -10,12 +10,18 @@ const vendure_event_1 = require("../vendure-event");
|
|
|
10
10
|
* @docsCategory events
|
|
11
11
|
* @docsPage Event Types
|
|
12
12
|
*/
|
|
13
|
-
class ProductVariantEvent extends
|
|
14
|
-
constructor(ctx,
|
|
15
|
-
super();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
class ProductVariantEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Return an variants field to become compatible with the
|
|
19
|
+
* deprecated old version of ProductEvent
|
|
20
|
+
* @deprecated Use `entity` instead
|
|
21
|
+
* @since 1.4
|
|
22
|
+
*/
|
|
23
|
+
get variants() {
|
|
24
|
+
return this.entity;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
exports.ProductVariantEvent = ProductVariantEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variant-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-variant-event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"product-variant-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/product-variant-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,yCAA8D;IACnG,YACI,GAAmB,EACnB,MAAwB,EACxB,IAAuC,EACvC,KAAgC;QAEhC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACH,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAnBD,kDAmBC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreatePromotionInput, UpdatePromotionInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { Promotion } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type PromotionInputTypes = CreatePromotionInput | UpdatePromotionInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link Promotion} is added, updated
|
|
10
|
+
* or deleted.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
*/
|
|
15
|
+
export declare class PromotionEvent extends VendureEntityEvent<Promotion, PromotionInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: Promotion, type: 'created' | 'updated' | 'deleted', input?: PromotionInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromotionEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link Promotion} is added, updated
|
|
8
|
+
* or deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
*/
|
|
13
|
+
class PromotionEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.PromotionEvent = PromotionEvent;
|
|
19
|
+
//# sourceMappingURL=promotion-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/promotion-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,cAAe,SAAQ,yCAAkD;IAClF,YACI,GAAmB,EACnB,MAAiB,EACjB,IAAuC,EACvC,KAA2B;QAE3B,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,wCASC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
2
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
3
|
+
import { Administrator } from '../../entity';
|
|
4
|
+
import { VendureEvent } from '../vendure-event';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever one {@link Role} is assigned or removed from a user.
|
|
8
|
+
* The property `roleIds` only contains the removed or assigned role ids.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
export declare class RoleChangeEvent extends VendureEvent {
|
|
15
|
+
ctx: RequestContext;
|
|
16
|
+
admin: Administrator;
|
|
17
|
+
roleIds: ID[];
|
|
18
|
+
type: 'assigned' | 'removed';
|
|
19
|
+
constructor(ctx: RequestContext, admin: Administrator, roleIds: ID[], type: 'assigned' | 'removed');
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleChangeEvent = void 0;
|
|
4
|
+
const vendure_event_1 = require("../vendure-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever one {@link Role} is assigned or removed from a user.
|
|
8
|
+
* The property `roleIds` only contains the removed or assigned role ids.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
class RoleChangeEvent extends vendure_event_1.VendureEvent {
|
|
15
|
+
constructor(ctx, admin, roleIds, type) {
|
|
16
|
+
super();
|
|
17
|
+
this.ctx = ctx;
|
|
18
|
+
this.admin = admin;
|
|
19
|
+
this.roleIds = roleIds;
|
|
20
|
+
this.type = type;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.RoleChangeEvent = RoleChangeEvent;
|
|
24
|
+
//# sourceMappingURL=role-change-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-change-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/role-change-event.ts"],"names":[],"mappings":";;;AAIA,oDAAgD;AAEhD;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,4BAAY;IAC7C,YACW,GAAmB,EACnB,KAAoB,EACpB,OAAa,EACb,IAA4B;QAEnC,KAAK,EAAE,CAAC;QALD,QAAG,GAAH,GAAG,CAAgB;QACnB,UAAK,GAAL,KAAK,CAAe;QACpB,YAAO,GAAP,OAAO,CAAM;QACb,SAAI,GAAJ,IAAI,CAAwB;IAGvC,CAAC;CACJ;AATD,0CASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateRoleInput, UpdateRoleInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { Role } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type RoleInputTypes = CreateRoleInput | UpdateRoleInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever one {@link Role} is is added, updated or deleted.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory events
|
|
12
|
+
* @docsPage Event Types
|
|
13
|
+
* @since 1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare class RoleEvent extends VendureEntityEvent<Role, RoleInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: Role, type: 'created' | 'updated' | 'deleted', input?: RoleInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoleEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever one {@link Role} is is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class RoleEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RoleEvent = RoleEvent;
|
|
19
|
+
//# sourceMappingURL=role-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/role-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,SAAU,SAAQ,yCAAwC;IACnE,YACI,GAAmB,EACnB,MAAY,EACZ,IAAuC,EACvC,KAAsB;QAEtB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,8BASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateShippingMethodInput, UpdateShippingMethodInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { ShippingMethod } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type ShippingMethodInputTypes = CreateShippingMethodInput | UpdateShippingMethodInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link ShippingMethod} is added, updated
|
|
10
|
+
* or deleted.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
*/
|
|
15
|
+
export declare class ShippingMethodEvent extends VendureEntityEvent<ShippingMethod, ShippingMethodInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: ShippingMethod, type: 'created' | 'updated' | 'deleted', input?: ShippingMethodInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippingMethodEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link ShippingMethod} is added, updated
|
|
8
|
+
* or deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
*/
|
|
13
|
+
class ShippingMethodEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ShippingMethodEvent = ShippingMethodEvent;
|
|
19
|
+
//# sourceMappingURL=shipping-method-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipping-method-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/shipping-method-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,yCAA4D;IACjG,YACI,GAAmB,EACnB,MAAsB,EACtB,IAAuC,EACvC,KAAgC;QAEhC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,kDASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateTaxCategoryInput, UpdateTaxCategoryInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { TaxCategory } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type TaxCategoryInputTypes = CreateTaxCategoryInput | UpdateTaxCategoryInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link TaxCategory} is added, updated
|
|
10
|
+
* or deleted.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
*/
|
|
15
|
+
export declare class TaxCategoryEvent extends VendureEntityEvent<TaxCategory, TaxCategoryInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: TaxCategory, type: 'created' | 'updated' | 'deleted', input?: TaxCategoryInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxCategoryEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link TaxCategory} is added, updated
|
|
8
|
+
* or deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
*/
|
|
13
|
+
class TaxCategoryEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TaxCategoryEvent = TaxCategoryEvent;
|
|
19
|
+
//# sourceMappingURL=tax-category-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax-category-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/tax-category-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,gBAAiB,SAAQ,yCAAsD;IACxF,YACI,GAAmB,EACnB,MAAmB,EACnB,IAAuC,EACvC,KAA6B;QAE7B,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,4CASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateTaxRateInput, UpdateTaxRateInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
4
|
+
import { TaxRate } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type TaxRateInputTypes = CreateTaxRateInput | UpdateTaxRateInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link TaxRate} is added, updated
|
|
10
|
+
* or deleted.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
*/
|
|
15
|
+
export declare class TaxRateEvent extends VendureEntityEvent<TaxRate, TaxRateInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: TaxRate, type: 'created' | 'updated' | 'deleted', input?: TaxRateInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|