@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountryEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link Country} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class CountryEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.CountryEvent = CountryEvent;
|
|
19
|
+
//# sourceMappingURL=country-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/country-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;CACJ;AATD,oCASC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
2
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
3
|
+
import { VendureEvent } from '../vendure-event';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* This event is fired whenever an coupon code of an active {@link Promotion}
|
|
7
|
+
* is assigned or removed to an {@link Order}.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
export declare class CouponCodeEvent extends VendureEvent {
|
|
14
|
+
ctx: RequestContext;
|
|
15
|
+
couponCode: string;
|
|
16
|
+
orderId: ID;
|
|
17
|
+
type: 'assigned' | 'removed';
|
|
18
|
+
constructor(ctx: RequestContext, couponCode: string, orderId: ID, type: 'assigned' | 'removed');
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CouponCodeEvent = void 0;
|
|
4
|
+
const vendure_event_1 = require("../vendure-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever an coupon code of an active {@link Promotion}
|
|
8
|
+
* is assigned or removed to an {@link Order}.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
class CouponCodeEvent extends vendure_event_1.VendureEvent {
|
|
15
|
+
constructor(ctx, couponCode, orderId, type) {
|
|
16
|
+
super();
|
|
17
|
+
this.ctx = ctx;
|
|
18
|
+
this.couponCode = couponCode;
|
|
19
|
+
this.orderId = orderId;
|
|
20
|
+
this.type = type;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.CouponCodeEvent = CouponCodeEvent;
|
|
24
|
+
//# sourceMappingURL=coupon-code-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-code-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/coupon-code-event.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAEhD;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,4BAAY;IAC7C,YACW,GAAmB,EACnB,UAAkB,EAClB,OAAW,EACX,IAA4B;QAEnC,KAAK,EAAE,CAAC;QALD,QAAG,GAAH,GAAG,CAAgB;QACnB,eAAU,GAAV,UAAU,CAAQ;QAClB,YAAO,GAAP,OAAO,CAAI;QACX,SAAI,GAAJ,IAAI,CAAwB;IAGvC,CAAC;CACJ;AATD,0CASC"}
|
|
@@ -1,17 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAddressInput, UpdateAddressInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api';
|
|
2
4
|
import { Address } from '../../entity/address/address.entity';
|
|
3
|
-
import {
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
/**
|
|
7
|
+
* Possible input types for Address mutations
|
|
8
|
+
*/
|
|
9
|
+
declare type CustomerAddressInputTypes = CreateAddressInput | UpdateAddressInput | ID;
|
|
4
10
|
/**
|
|
5
11
|
* @description
|
|
6
|
-
* This event is fired whenever a {@link
|
|
12
|
+
* This event is fired whenever a {@link Address} is added, updated
|
|
7
13
|
* or deleted.
|
|
8
14
|
*
|
|
9
15
|
* @docsCategory events
|
|
10
16
|
* @docsPage Event Types
|
|
17
|
+
* @since 1.4
|
|
11
18
|
*/
|
|
12
|
-
export declare class CustomerAddressEvent extends
|
|
19
|
+
export declare class CustomerAddressEvent extends VendureEntityEvent<Address, CustomerAddressInputTypes> {
|
|
13
20
|
ctx: RequestContext;
|
|
14
|
-
|
|
21
|
+
entity: Address;
|
|
15
22
|
type: 'created' | 'updated' | 'deleted';
|
|
16
|
-
|
|
23
|
+
input?: CustomerAddressInputTypes | undefined;
|
|
24
|
+
constructor(ctx: RequestContext, entity: Address, type: 'created' | 'updated' | 'deleted', input?: CustomerAddressInputTypes | undefined);
|
|
25
|
+
/**
|
|
26
|
+
* Return an address field to become compatible with the
|
|
27
|
+
* deprecated old version of CustomerAddressEvent
|
|
28
|
+
* @deprecated Use `entity` instead
|
|
29
|
+
*/
|
|
30
|
+
get address(): Address;
|
|
17
31
|
}
|
|
32
|
+
export {};
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerAddressEvent = void 0;
|
|
4
|
-
const
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
7
|
-
* This event is fired whenever a {@link
|
|
7
|
+
* This event is fired whenever a {@link Address} is added, updated
|
|
8
8
|
* or deleted.
|
|
9
9
|
*
|
|
10
10
|
* @docsCategory events
|
|
11
11
|
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
12
13
|
*/
|
|
13
|
-
class CustomerAddressEvent extends
|
|
14
|
-
constructor(ctx,
|
|
15
|
-
super();
|
|
14
|
+
class CustomerAddressEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
15
|
+
constructor(ctx, entity, type, input) {
|
|
16
|
+
super(entity, type, ctx, input);
|
|
16
17
|
this.ctx = ctx;
|
|
17
|
-
this.
|
|
18
|
+
this.entity = entity;
|
|
18
19
|
this.type = type;
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Return an address field to become compatible with the
|
|
24
|
+
* deprecated old version of CustomerAddressEvent
|
|
25
|
+
* @deprecated Use `entity` instead
|
|
26
|
+
*/
|
|
27
|
+
get address() {
|
|
28
|
+
return this.entity;
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
31
|
exports.CustomerAddressEvent = CustomerAddressEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-address-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-address-event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"customer-address-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-address-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAO7D;;;;;;;;GAQG;AACH,MAAa,oBAAqB,SAAQ,yCAAsD;IAC5F,YACW,GAAmB,EACnB,MAAe,EACf,IAAuC,EACvC,KAAiC;QAExC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QALzB,QAAG,GAAH,GAAG,CAAgB;QACnB,WAAM,GAAN,MAAM,CAAS;QACf,SAAI,GAAJ,IAAI,CAAmC;QACvC,UAAK,GAAL,KAAK,CAA4B;IAG5C,CAAC;IAED;;;;OAIG;IACH,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAlBD,oDAkBC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { CreateCustomerInput, UpdateCustomerInput } 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 { Customer } from '../../entity/customer/customer.entity';
|
|
3
|
-
import {
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type CustomerInputTypes = CreateCustomerInput | UpdateCustomerInput | (Partial<CreateCustomerInput> & {
|
|
7
|
+
emailAddress: string;
|
|
8
|
+
}) | ID;
|
|
4
9
|
/**
|
|
5
10
|
* @description
|
|
6
11
|
* This event is fired whenever a {@link Customer} is added, updated
|
|
@@ -9,9 +14,14 @@ import { VendureEvent } from '../vendure-event';
|
|
|
9
14
|
* @docsCategory events
|
|
10
15
|
* @docsPage Event Types
|
|
11
16
|
*/
|
|
12
|
-
export declare class CustomerEvent extends
|
|
13
|
-
ctx: RequestContext;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
export declare class CustomerEvent extends VendureEntityEvent<Customer, CustomerInputTypes> {
|
|
18
|
+
constructor(ctx: RequestContext, entity: Customer, type: 'created' | 'updated' | 'deleted', input?: CustomerInputTypes);
|
|
19
|
+
/**
|
|
20
|
+
* Return an customer field to become compatible with the
|
|
21
|
+
* deprecated old version of CustomerEvent
|
|
22
|
+
* @deprecated Use `entity` instead
|
|
23
|
+
* @since 1.4
|
|
24
|
+
*/
|
|
25
|
+
get customer(): Customer;
|
|
17
26
|
}
|
|
27
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerEvent = 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 Customer} 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 CustomerEvent extends
|
|
14
|
-
constructor(ctx,
|
|
15
|
-
super();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
class CustomerEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Return an customer field to become compatible with the
|
|
19
|
+
* deprecated old version of CustomerEvent
|
|
20
|
+
* @deprecated Use `entity` instead
|
|
21
|
+
* @since 1.4
|
|
22
|
+
*/
|
|
23
|
+
get customer() {
|
|
24
|
+
return this.entity;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
exports.CustomerEvent = CustomerEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"customer-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAQ7D;;;;;;;GAOG;AACH,MAAa,aAAc,SAAQ,yCAAgD;IAC/E,YACI,GAAmB,EACnB,MAAgB,EAChB,IAAuC,EACvC,KAA0B;QAE1B,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,sCAmBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CreateCustomerGroupInput, UpdateCustomerGroupInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api';
|
|
4
|
+
import { CustomerGroup } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type CustomerGroupInputTypes = CreateCustomerGroupInput | UpdateCustomerGroupInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link CustomerGroup} is added, updated or deleted.
|
|
10
|
+
* Use this event instead of {@link CustomerGroupEvent} until the next major version!
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory events
|
|
13
|
+
* @docsPage Event Types
|
|
14
|
+
* @since 1.4
|
|
15
|
+
*/
|
|
16
|
+
export declare class CustomerGroupEntityEvent extends VendureEntityEvent<CustomerGroup, CustomerGroupInputTypes> {
|
|
17
|
+
constructor(ctx: RequestContext, entity: CustomerGroup, type: 'created' | 'updated' | 'deleted', input?: CustomerGroupInputTypes);
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerGroupEntityEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link CustomerGroup} is added, updated or deleted.
|
|
8
|
+
* Use this event instead of {@link CustomerGroupEvent} until the next major version!
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
class CustomerGroupEntityEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
15
|
+
// TODO: Rename to CustomerGroupEvent in v2
|
|
16
|
+
constructor(ctx, entity, type, input) {
|
|
17
|
+
super(entity, type, ctx, input);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CustomerGroupEntityEvent = CustomerGroupEntityEvent;
|
|
21
|
+
//# sourceMappingURL=customer-group-entity-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-group-entity-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-group-entity-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;;GAQG;AACH,MAAa,wBAAyB,SAAQ,yCAA0D;IACpG,2CAA2C;IAC3C,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;AAVD,4DAUC"}
|
|
@@ -9,6 +9,7 @@ import { VendureEvent } from '../vendure-event';
|
|
|
9
9
|
*
|
|
10
10
|
* @docsCategory events
|
|
11
11
|
* @docsPage Event Types
|
|
12
|
+
* @deprecated Use {@link CustomerGroupChangeEvent} instead
|
|
12
13
|
*/
|
|
13
14
|
export declare class CustomerGroupEvent extends VendureEvent {
|
|
14
15
|
ctx: RequestContext;
|
|
@@ -17,3 +18,19 @@ export declare class CustomerGroupEvent extends VendureEvent {
|
|
|
17
18
|
type: 'assigned' | 'removed';
|
|
18
19
|
constructor(ctx: RequestContext, customers: Customer[], customGroup: CustomerGroup, type: 'assigned' | 'removed');
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @description
|
|
23
|
+
* This event is fired whenever one or more {@link Customer} is assigned to or removed from a
|
|
24
|
+
* {@link CustomerGroup}.
|
|
25
|
+
*
|
|
26
|
+
* @docsCategory events
|
|
27
|
+
* @docsPage Event Types
|
|
28
|
+
* @since 1.4
|
|
29
|
+
*/
|
|
30
|
+
export declare class CustomerGroupChangeEvent extends VendureEvent {
|
|
31
|
+
ctx: RequestContext;
|
|
32
|
+
customers: Customer[];
|
|
33
|
+
customGroup: CustomerGroup;
|
|
34
|
+
type: 'assigned' | 'removed';
|
|
35
|
+
constructor(ctx: RequestContext, customers: Customer[], customGroup: CustomerGroup, type: 'assigned' | 'removed');
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerGroupEvent = void 0;
|
|
3
|
+
exports.CustomerGroupChangeEvent = exports.CustomerGroupEvent = void 0;
|
|
4
4
|
const vendure_event_1 = require("../vendure-event");
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -9,6 +9,7 @@ const vendure_event_1 = require("../vendure-event");
|
|
|
9
9
|
*
|
|
10
10
|
* @docsCategory events
|
|
11
11
|
* @docsPage Event Types
|
|
12
|
+
* @deprecated Use {@link CustomerGroupChangeEvent} instead
|
|
12
13
|
*/
|
|
13
14
|
class CustomerGroupEvent extends vendure_event_1.VendureEvent {
|
|
14
15
|
constructor(ctx, customers, customGroup, type) {
|
|
@@ -20,4 +21,23 @@ class CustomerGroupEvent extends vendure_event_1.VendureEvent {
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
exports.CustomerGroupEvent = CustomerGroupEvent;
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* This event is fired whenever one or more {@link Customer} is assigned to or removed from a
|
|
27
|
+
* {@link CustomerGroup}.
|
|
28
|
+
*
|
|
29
|
+
* @docsCategory events
|
|
30
|
+
* @docsPage Event Types
|
|
31
|
+
* @since 1.4
|
|
32
|
+
*/
|
|
33
|
+
class CustomerGroupChangeEvent extends vendure_event_1.VendureEvent {
|
|
34
|
+
constructor(ctx, customers, customGroup, type) {
|
|
35
|
+
super();
|
|
36
|
+
this.ctx = ctx;
|
|
37
|
+
this.customers = customers;
|
|
38
|
+
this.customGroup = customGroup;
|
|
39
|
+
this.type = type;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CustomerGroupChangeEvent = CustomerGroupChangeEvent;
|
|
23
43
|
//# sourceMappingURL=customer-group-event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-group-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-group-event.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"customer-group-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/customer-group-event.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAEhD;;;;;;;;GAQG;AACH,MAAa,kBAAmB,SAAQ,4BAAY;IAChD,YACW,GAAmB,EACnB,SAAqB,EACrB,WAA0B,EAC1B,IAA4B;QAEnC,KAAK,EAAE,CAAC;QALD,QAAG,GAAH,GAAG,CAAgB;QACnB,cAAS,GAAT,SAAS,CAAY;QACrB,gBAAW,GAAX,WAAW,CAAe;QAC1B,SAAI,GAAJ,IAAI,CAAwB;IAGvC,CAAC;CACJ;AATD,gDASC;AAED;;;;;;;;GAQG;AACH,MAAa,wBAAyB,SAAQ,4BAAY;IACtD,YACW,GAAmB,EACnB,SAAqB,EACrB,WAA0B,EAC1B,IAA4B;QAEnC,KAAK,EAAE,CAAC;QALD,QAAG,GAAH,GAAG,CAAgB;QACnB,cAAS,GAAT,SAAS,CAAY;QACrB,gBAAW,GAAX,WAAW,CAAe;QAC1B,SAAI,GAAJ,IAAI,CAAwB;IAGvC,CAAC;CACJ;AATD,4DASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateFacetInput, UpdateFacetInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api';
|
|
4
|
+
import { Facet } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type FacetInputTypes = CreateFacetInput | UpdateFacetInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link Facet} is added, updated or deleted.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory events
|
|
12
|
+
* @docsPage Event Types
|
|
13
|
+
* @since 1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare class FacetEvent extends VendureEntityEvent<Facet, FacetInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: Facet, type: 'created' | 'updated' | 'deleted', input?: FacetInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FacetEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link Facet} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class FacetEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.FacetEvent = FacetEvent;
|
|
19
|
+
//# sourceMappingURL=facet-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/facet-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAI7D;;;;;;;GAOG;AACH,MAAa,UAAW,SAAQ,yCAA0C;IACtE,YACI,GAAmB,EACnB,MAAa,EACb,IAAuC,EACvC,KAAuB;QAEvB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,gCASC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateFacetValueInput, CreateFacetValueWithFacetInput, UpdateFacetValueInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { ID } from '@vendure/common/lib/shared-types';
|
|
3
|
+
import { RequestContext } from '../../api';
|
|
4
|
+
import { FacetValue } from '../../entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type FacetValueInputTypes = CreateFacetValueInput | CreateFacetValueWithFacetInput | UpdateFacetValueInput | ID;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* This event is fired whenever a {@link FacetValue} is added, updated or deleted.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory events
|
|
12
|
+
* @docsPage Event Types
|
|
13
|
+
* @since 1.4
|
|
14
|
+
*/
|
|
15
|
+
export declare class FacetValueEvent extends VendureEntityEvent<FacetValue, FacetValueInputTypes> {
|
|
16
|
+
constructor(ctx: RequestContext, entity: FacetValue, type: 'created' | 'updated' | 'deleted', input?: FacetValueInputTypes);
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FacetValueEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link FacetValue} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class FacetValueEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.FacetValueEvent = FacetValueEvent;
|
|
19
|
+
//# sourceMappingURL=facet-value-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet-value-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/facet-value-event.ts"],"names":[],"mappings":";;;AASA,kEAA6D;AAQ7D;;;;;;;GAOG;AACH,MAAa,eAAgB,SAAQ,yCAAoD;IACrF,YACI,GAAmB,EACnB,MAAkB,EAClB,IAAuC,EACvC,KAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;CACJ;AATD,0CASC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ConfigurableOperationInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { RequestContext } from '../../api';
|
|
3
|
+
import { Order, OrderItem } from '../../entity';
|
|
4
|
+
import { Fulfillment } from '../../entity/fulfillment/fulfillment.entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
* The inputs used to create a new fulfillment
|
|
9
|
+
* @since 1.4
|
|
10
|
+
*/
|
|
11
|
+
declare type CreateFulfillmentInput = {
|
|
12
|
+
orders: Order[];
|
|
13
|
+
items: OrderItem[];
|
|
14
|
+
handler: ConfigurableOperationInput;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* This event is fired whenever a {@link Fulfillment} is added. The type is always `created`.
|
|
19
|
+
*
|
|
20
|
+
* @docsCategory events
|
|
21
|
+
* @docsPage Event Types
|
|
22
|
+
* @since 1.4
|
|
23
|
+
*/
|
|
24
|
+
export declare class FulfillmentEvent extends VendureEntityEvent<Fulfillment, CreateFulfillmentInput> {
|
|
25
|
+
constructor(ctx: RequestContext, entity: Fulfillment, input?: CreateFulfillmentInput);
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FulfillmentEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link Fulfillment} is added. The type is always `created`.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class FulfillmentEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, input) {
|
|
15
|
+
super(entity, 'created', ctx, input);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.FulfillmentEvent = FulfillmentEvent;
|
|
19
|
+
//# sourceMappingURL=fulfillment-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fulfillment-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/fulfillment-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAa7D;;;;;;;GAOG;AACH,MAAa,gBAAiB,SAAQ,yCAAuD;IACzF,YAAY,GAAmB,EAAE,MAAmB,EAAE,KAA8B;QAChF,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;CACJ;AAJD,4CAIC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UpdateGlobalSettingsInput } from '@vendure/common/lib/generated-types';
|
|
2
|
+
import { RequestContext } from '../../api';
|
|
3
|
+
import { GlobalSettings } from '../../entity/global-settings/global-settings.entity';
|
|
4
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link GlobalSettings} is added. The type is always `updated`, because it's
|
|
8
|
+
* only created once and never deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
export declare class GlobalSettingsEvent extends VendureEntityEvent<GlobalSettings, UpdateGlobalSettingsInput> {
|
|
15
|
+
constructor(ctx: RequestContext, entity: GlobalSettings, input?: UpdateGlobalSettingsInput);
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalSettingsEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever a {@link GlobalSettings} is added. The type is always `updated`, because it's
|
|
8
|
+
* only created once and never deleted.
|
|
9
|
+
*
|
|
10
|
+
* @docsCategory events
|
|
11
|
+
* @docsPage Event Types
|
|
12
|
+
* @since 1.4
|
|
13
|
+
*/
|
|
14
|
+
class GlobalSettingsEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
15
|
+
constructor(ctx, entity, input) {
|
|
16
|
+
super(entity, 'updated', ctx, input);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.GlobalSettingsEvent = GlobalSettingsEvent;
|
|
20
|
+
//# sourceMappingURL=global-settings-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-settings-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/global-settings-event.ts"],"names":[],"mappings":";;;AAIA,kEAA6D;AAE7D;;;;;;;;GAQG;AACH,MAAa,mBAAoB,SAAQ,yCAA6D;IAClG,YAAY,GAAmB,EAAE,MAAsB,EAAE,KAAiC;QACtF,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;CACJ;AAJD,kDAIC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HistoryEntryType } 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 { HistoryEntry } from '../../entity/history-entry/history-entry.entity';
|
|
5
|
+
import { VendureEntityEvent } from '../vendure-entity-event';
|
|
6
|
+
declare type HistoryInput = {
|
|
7
|
+
type: HistoryEntryType;
|
|
8
|
+
data?: any;
|
|
9
|
+
} | ID;
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* This event is fired whenever one {@link HistoryEntry} is added, updated or deleted.
|
|
13
|
+
*
|
|
14
|
+
* @docsCategory events
|
|
15
|
+
* @docsPage Event Types
|
|
16
|
+
* @since 1.4
|
|
17
|
+
*/
|
|
18
|
+
export declare class HistoryEntryEvent extends VendureEntityEvent<HistoryEntry, HistoryInput> {
|
|
19
|
+
readonly historyType: 'order' | 'customer' | string;
|
|
20
|
+
constructor(ctx: RequestContext, entity: HistoryEntry, type: 'created' | 'updated' | 'deleted', historyType: 'order' | 'customer' | string, input?: HistoryInput);
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HistoryEntryEvent = void 0;
|
|
4
|
+
const vendure_entity_event_1 = require("../vendure-entity-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever one {@link HistoryEntry} is added, updated or deleted.
|
|
8
|
+
*
|
|
9
|
+
* @docsCategory events
|
|
10
|
+
* @docsPage Event Types
|
|
11
|
+
* @since 1.4
|
|
12
|
+
*/
|
|
13
|
+
class HistoryEntryEvent extends vendure_entity_event_1.VendureEntityEvent {
|
|
14
|
+
constructor(ctx, entity, type, historyType, input) {
|
|
15
|
+
super(entity, type, ctx, input);
|
|
16
|
+
this.historyType = historyType;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.HistoryEntryEvent = HistoryEntryEvent;
|
|
20
|
+
//# sourceMappingURL=history-entry-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-entry-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/history-entry-event.ts"],"names":[],"mappings":";;;AAKA,kEAA6D;AAS7D;;;;;;;GAOG;AACH,MAAa,iBAAkB,SAAQ,yCAA8C;IAGjF,YACI,GAAmB,EACnB,MAAoB,EACpB,IAAuC,EACvC,WAA0C,EAC1C,KAAoB;QAEpB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;CACJ;AAbD,8CAaC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RequestContext } from '../../api/common/request-context';
|
|
2
|
+
import { Order } from '../../entity/order/order.entity';
|
|
3
|
+
import { OrderState } from '../../service/helpers/order-state-machine/order-state';
|
|
4
|
+
import { VendureEvent } from '../vendure-event';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever an {@link Order} is set as "placed", which by default is
|
|
8
|
+
* when it transitions from 'ArrangingPayment' to either 'PaymentAuthorized' or 'PaymentSettled'.
|
|
9
|
+
*
|
|
10
|
+
* Note that the exact point that it is set as "placed" can be configured according to the
|
|
11
|
+
* {@link OrderPlacedStrategy}.
|
|
12
|
+
*
|
|
13
|
+
* @docsCategory events
|
|
14
|
+
* @docsPage Event Types
|
|
15
|
+
*/
|
|
16
|
+
export declare class OrderPlacedEvent extends VendureEvent {
|
|
17
|
+
fromState: OrderState;
|
|
18
|
+
toState: OrderState;
|
|
19
|
+
ctx: RequestContext;
|
|
20
|
+
order: Order;
|
|
21
|
+
constructor(fromState: OrderState, toState: OrderState, ctx: RequestContext, order: Order);
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderPlacedEvent = void 0;
|
|
4
|
+
const vendure_event_1 = require("../vendure-event");
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* This event is fired whenever an {@link Order} is set as "placed", which by default is
|
|
8
|
+
* when it transitions from 'ArrangingPayment' to either 'PaymentAuthorized' or 'PaymentSettled'.
|
|
9
|
+
*
|
|
10
|
+
* Note that the exact point that it is set as "placed" can be configured according to the
|
|
11
|
+
* {@link OrderPlacedStrategy}.
|
|
12
|
+
*
|
|
13
|
+
* @docsCategory events
|
|
14
|
+
* @docsPage Event Types
|
|
15
|
+
*/
|
|
16
|
+
class OrderPlacedEvent extends vendure_event_1.VendureEvent {
|
|
17
|
+
constructor(fromState, toState, ctx, order) {
|
|
18
|
+
super();
|
|
19
|
+
this.fromState = fromState;
|
|
20
|
+
this.toState = toState;
|
|
21
|
+
this.ctx = ctx;
|
|
22
|
+
this.order = order;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.OrderPlacedEvent = OrderPlacedEvent;
|
|
26
|
+
//# sourceMappingURL=order-placed-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-placed-event.js","sourceRoot":"","sources":["../../../src/event-bus/events/order-placed-event.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAEhD;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,4BAAY;IAC9C,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,4CASC"}
|