@bondsports/types 2.0.79 → 2.0.80
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +1 -0
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +3 -2
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -0
- package/dist/types/entity/LineItems.d.ts +1 -0
- package/dist/types/entity/LineItems.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +3 -3
- package/dist/types/purchase/dto/purchase.dto.d.ts +3 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +13 -8
- package/dist/types/reservations/dto/reservation.dto.d.ts +5 -5
- package/dist/types/reservations/dto/reservation.dto.js +1 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +1 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAwD7D;AAxDD,4BAwDC"}
|
|
@@ -13,10 +13,11 @@ export declare class Cart extends OrganizationConnectionBaseEntity {
|
|
|
13
13
|
creatorId: number;
|
|
14
14
|
ownerId: number;
|
|
15
15
|
owner: User;
|
|
16
|
-
|
|
16
|
+
platform?: PlatformsEnum;
|
|
17
17
|
currency: CurrencyEnum;
|
|
18
18
|
shiftId?: number;
|
|
19
|
-
|
|
19
|
+
parentId?: number;
|
|
20
|
+
invoiceId?: number;
|
|
20
21
|
answers?: UserAnswersDto[];
|
|
21
22
|
lastActiveTime: Date;
|
|
22
23
|
lastFetchedTime: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAQjG,MAAa,IAAK,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAQjG,MAAa,IAAK,SAAQ,mEAAgC;CA4CzD;AA5CD,oBA4CC"}
|
|
@@ -31,6 +31,7 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
|
|
|
31
31
|
productSubType?: ProductSubTypesEnum;
|
|
32
32
|
type?: LineItemsStatusEnum;
|
|
33
33
|
ordinal?: number;
|
|
34
|
+
parentOrdinal?: number;
|
|
34
35
|
entitlementGroupId?: number;
|
|
35
36
|
entitlementGroups: EntitlementGroup;
|
|
36
37
|
parentLineItemId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAWA,yFAAsF;AAMtF,MAAa,SAAU,SAAQ,mEAAgC;
|
|
1
|
+
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AAWA,yFAAsF;AAMtF,MAAa,SAAU,SAAQ,mEAAgC;CA2H9D;AA3HD,8BA2HC"}
|
|
@@ -67,13 +67,13 @@ export interface ISplitedLineItems {
|
|
|
67
67
|
parentLineItems: LineItems[];
|
|
68
68
|
lineItemsMap: Map<number, LineItems>;
|
|
69
69
|
}
|
|
70
|
-
export interface
|
|
70
|
+
export interface IPayPaymentResult {
|
|
71
71
|
paymentIntent?: Stripe.PaymentIntent;
|
|
72
72
|
customer?: Customer;
|
|
73
73
|
}
|
|
74
|
-
export interface
|
|
74
|
+
export interface ISaveInvoicePayment {
|
|
75
75
|
purchasingUserId?: number;
|
|
76
|
-
|
|
76
|
+
paymentInfo?: IPurchasePayment;
|
|
77
77
|
platform?: PlatformsEnum;
|
|
78
78
|
shiftId?: number;
|
|
79
79
|
installmentId?: number;
|
|
@@ -16,7 +16,7 @@ export declare class ChargeRentalsReuqestDto {
|
|
|
16
16
|
userId?: number;
|
|
17
17
|
customerId?: number;
|
|
18
18
|
invoiceId: number;
|
|
19
|
-
paymentData
|
|
19
|
+
paymentData?: PurchasePaymentDto;
|
|
20
20
|
amountToPay: number;
|
|
21
21
|
total: number;
|
|
22
22
|
platform: PlatformsEnum;
|
|
@@ -36,6 +36,7 @@ export declare class PurchaseRequestDto {
|
|
|
36
36
|
installments?: ScheduledPaymentDto[];
|
|
37
37
|
shiftId?: number;
|
|
38
38
|
invoiceId?: number;
|
|
39
|
+
existingInvoiceId?: number;
|
|
39
40
|
installmentId?: number;
|
|
40
41
|
}
|
|
41
42
|
export declare class PurchaseResourceDto extends ResourceDto {
|
|
@@ -98,6 +99,7 @@ export declare class PurchaseCartDto {
|
|
|
98
99
|
amountToPay?: number;
|
|
99
100
|
existingInvoiceId?: number;
|
|
100
101
|
existingInvoiceToken?: string;
|
|
102
|
+
shiftId?: number;
|
|
101
103
|
installments?: ScheduledPaymentDto[];
|
|
102
104
|
parentPurchasedId?: number;
|
|
103
105
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAYA,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAYA,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA8B9B;AA9BD,gDA8BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAAG;AAAvD,kDAAuD;AAEvD,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
|
|
1
2
|
import { Customer } from '../../../entity/Customer';
|
|
2
3
|
import { Invoice } from '../../../entity/Invoice';
|
|
3
|
-
import {
|
|
4
|
+
import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
|
|
4
5
|
import { Payment } from '../../../payment/entities/Payment';
|
|
5
6
|
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../../../payment/types/enums/payment.enums';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
|
|
8
|
+
import { Product } from '../../../product-pricing/entities/Product';
|
|
9
|
+
import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
10
|
+
import { ResourceDto } from '../../../spaces/dto/resource.dto';
|
|
8
11
|
export type UserCount = {
|
|
9
12
|
male: number;
|
|
10
13
|
female: number;
|
|
@@ -30,8 +33,12 @@ export interface ILineItem {
|
|
|
30
33
|
quantity: number;
|
|
31
34
|
totalPrice?: number;
|
|
32
35
|
}
|
|
33
|
-
export interface
|
|
34
|
-
amountToPay
|
|
36
|
+
export interface IChargeInvoice extends ISaveInvoicePayment {
|
|
37
|
+
amountToPay?: number;
|
|
38
|
+
resources?: ResourceDto[];
|
|
39
|
+
installments?: ScheduledPaymentDto[];
|
|
40
|
+
parentPurchasedId?: number;
|
|
41
|
+
parentPurchasedType?: ResourceNameTypeEnum;
|
|
35
42
|
}
|
|
36
43
|
export interface ChargeInvoiceResult {
|
|
37
44
|
status: FuturePaymentStatusEnum;
|
|
@@ -39,9 +46,7 @@ export interface ChargeInvoiceResult {
|
|
|
39
46
|
payment: Payment;
|
|
40
47
|
customer?: Customer;
|
|
41
48
|
}
|
|
42
|
-
export interface
|
|
43
|
-
overridePrice?: boolean;
|
|
44
|
-
skipValidations?: boolean;
|
|
49
|
+
export interface IPurchaseOptions extends IValidateCartOptions {
|
|
45
50
|
skipMail?: boolean;
|
|
46
51
|
isFail?: boolean;
|
|
47
52
|
isImport?: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { FindByFacilityIdAndOrganizationIdDto } from '../../dto/events.dto';
|
|
1
2
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
-
import { Product } from '../../product-pricing/entities/Product';
|
|
3
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
4
4
|
import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto';
|
|
5
|
+
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
6
|
+
import { Product } from '../../product-pricing/entities/Product';
|
|
5
7
|
import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
|
|
6
8
|
import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, ResourceNameTypeEnum, ResourceTypeEnum, SlotTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
|
7
9
|
import { Reservation } from '../entities/Reservations';
|
|
8
10
|
import { AddonDto } from './addon.dto';
|
|
11
|
+
import { InvoiceDto } from './invoice.dto';
|
|
9
12
|
import { SegmentDto } from './segment.dto';
|
|
10
13
|
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
|
11
|
-
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
12
|
-
import { FindByFacilityIdAndOrganizationIdDto } from '../../dto/events.dto';
|
|
13
|
-
import { InvoiceDto } from './invoice.dto';
|
|
14
14
|
export declare class ProductPricesDto {
|
|
15
15
|
productId: number;
|
|
16
16
|
product?: Product;
|
|
@@ -81,7 +81,7 @@ export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
|
|
|
81
81
|
export declare class BookingData {
|
|
82
82
|
platform: PlatformsEnum;
|
|
83
83
|
shiftId?: number;
|
|
84
|
-
paymentData
|
|
84
|
+
paymentData?: PurchasePaymentDto;
|
|
85
85
|
amountToPay: number;
|
|
86
86
|
total: number;
|
|
87
87
|
purchasingUserId: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
|
4
|
+
const events_dto_1 = require("../../dto/events.dto");
|
|
4
5
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
7
|
const purchase_dto_1 = require("../../purchase/dto/purchase.dto");
|
|
7
|
-
const events_dto_1 = require("../../dto/events.dto");
|
|
8
8
|
const MAX_SLOTS_REQUEST_LIMIT = 5000;
|
|
9
9
|
class ProductPricesDto {
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,qDAA4E;AAC5E,uDAAwD;AACxD,8EAA8E;AAI9E,kEAAwF;AAsBxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,y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@ -81,11 +81,6 @@ export declare class EventAsSeasonSegment extends Event {
|
|
|
81
81
|
export interface ITokenResonse {
|
|
82
82
|
token: string;
|
|
83
83
|
}
|
|
84
|
-
export interface IPartialPaymentData {
|
|
85
|
-
purchasingUserId: number;
|
|
86
|
-
paymentData: PurchasePaymentDto;
|
|
87
|
-
amountToPay: number;
|
|
88
|
-
}
|
|
89
84
|
export interface IPayment {
|
|
90
85
|
id: number;
|
|
91
86
|
total: number;
|
|
@@ -354,7 +349,7 @@ export interface ISessionLandingPageProduct extends ISlimAddons {
|
|
|
354
349
|
}
|
|
355
350
|
export interface CreatePaymentIntent {
|
|
356
351
|
amountToPay: number;
|
|
357
|
-
|
|
352
|
+
paymentInfo?: PurchasePaymentDto;
|
|
358
353
|
destinationId?: string;
|
|
359
354
|
stripeCustomerId?: string;
|
|
360
355
|
fee?: number;
|