@bondsports/types 2.5.13 → 2.5.14

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.
@@ -1,3 +1,5 @@
1
+ import type { CartItem } from '../../../cart/entities/cart-item.entity';
2
+ import type { Cart } from '../../../cart/entities/cart.entity';
1
3
  import { IUpdateCartPrices, IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
2
4
  import { UserAnswersDto } from '../../../dto/application.dto';
3
5
  import { Customer } from '../../../entity/Customer';
@@ -12,6 +14,7 @@ import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.i
12
14
  import { ISaveCardTerminalInput } from '../../../payment/types/interfaces/user-payment-method.interfaces';
13
15
  import { Product } from '../../../product-pricing/entities/product.entity';
14
16
  import { IResource } from '../../../product-pricing/types/interfaces/product-resource.interfaces';
17
+ import type { Reservation } from '../../../reservations/entities/reservation.entity';
15
18
  import { CurrencyEnum, GenderEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
16
19
  import { Tax } from '../../../taxes/entities/Tax';
17
20
  import { User } from '../../../user/entities/User';
@@ -115,3 +118,4 @@ export interface IChargeCallbacks {
115
118
  onBeforeCharge?: (invoice: Invoice) => Promise<void>;
116
119
  onInvoiceReady?: (invoice: ChargeInvoiceResult) => Promise<void> | void;
117
120
  }
121
+ export type TFinalizeReservationHook = (organizationId: number, draftReservationId: string, cart: Cart, invoice: Invoice, relatedItems: CartItem[]) => Promise<Reservation>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.5.13",
3
+ "version": "2.5.14",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {