@bondsports/types 2.0.67 → 2.0.69
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/dto/cart.dto.d.ts +3 -0
- package/dist/types/cart/dto/cart.dto.js +1 -0
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +1 -2
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -0
- package/dist/types/dto/application.dto.js.map +1 -1
- package/dist/types/payment/dto/payment-plan.dto.d.ts +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -2
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -3
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/consts/purchase.consts.d.ts +1 -0
- package/dist/types/purchase/types/consts/purchase.consts.js +11 -1
- package/dist/types/purchase/types/consts/purchase.consts.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +6 -1
- package/dist/types/spaces/dto/resource.dto.d.ts +2 -2
- package/dist/types/spaces/dto/resource.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserAnswersDto } from '../../dto/application.dto';
|
|
1
2
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
3
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
3
4
|
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
@@ -15,6 +16,7 @@ export declare class CartDto extends OrganizationBaseEntityDto {
|
|
|
15
16
|
currency: CurrencyEnum;
|
|
16
17
|
shiftId?: number;
|
|
17
18
|
platform: PlatformsEnum;
|
|
19
|
+
answers?: UserAnswersDto[];
|
|
18
20
|
lastActiveTime: Date;
|
|
19
21
|
lastFetchedTime: Date;
|
|
20
22
|
cartItems: CartItemDto[];
|
|
@@ -23,6 +25,7 @@ export declare class UpdateCartDto {
|
|
|
23
25
|
constructor(updateCart?: Partial<UpdateCartDto>);
|
|
24
26
|
ownerId?: number;
|
|
25
27
|
currency?: CurrencyEnum;
|
|
28
|
+
answers?: UserAnswersDto[];
|
|
26
29
|
}
|
|
27
30
|
export declare class CreateCartDto extends UpdateCartDto {
|
|
28
31
|
platform: PlatformsEnum;
|
|
@@ -11,6 +11,7 @@ class UpdateCartDto {
|
|
|
11
11
|
constructor(updateCart) {
|
|
12
12
|
this.ownerId = updateCart === null || updateCart === void 0 ? void 0 : updateCart.ownerId;
|
|
13
13
|
this.currency = updateCart === null || updateCart === void 0 ? void 0 : updateCart.currency;
|
|
14
|
+
this.answers = updateCart === null || updateCart === void 0 ? void 0 : updateCart.answers;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
exports.UpdateCartDto = UpdateCartDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAAoF;AAEpF,sDAAkF;AAIlF,MAAa,OAAQ,SAAQ,4CAAyB;CA4BrD;AA5BD,0BA4BC;AAED,MAAa,aAAa;IACzB,YAAY,UAAmC;QAC9C,IAAI,CAAC,OAAO,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC;IACpC,CAAC;CAOD;AAZD,sCAYC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAQtD;AARD,gDAQC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UserAnswersDto } from '../../dto/application.dto';
|
|
2
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
3
|
-
import { Answer } from '../../questionnaires/entities/Answer';
|
|
4
3
|
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
|
5
4
|
import { User } from '../../user/entities/User';
|
|
6
5
|
import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
|
|
@@ -17,8 +16,8 @@ export declare class Cart extends OrganizationConnectionBaseEntity {
|
|
|
17
16
|
currency: CurrencyEnum;
|
|
18
17
|
shiftId?: number;
|
|
19
18
|
platform?: PlatformsEnum;
|
|
19
|
+
answers?: UserAnswersDto[];
|
|
20
20
|
lastActiveTime: Date;
|
|
21
21
|
lastFetchedTime: Date;
|
|
22
22
|
cartItems: CartItem[];
|
|
23
|
-
answers: Answer[] | UserAnswersDto[];
|
|
24
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,IAAK,SAAQ,mEAAgC;CA8BzD;AA9BD,oBA8BC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserAnswersDto } from '../../../dto/application.dto';
|
|
1
2
|
import { Product } from '../../../entity/Product';
|
|
2
3
|
import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
|
|
3
4
|
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
@@ -9,6 +10,7 @@ export interface ICreateCart {
|
|
|
9
10
|
currency?: CurrencyEnum;
|
|
10
11
|
shiftId?: number;
|
|
11
12
|
parentId?: number;
|
|
13
|
+
answers?: UserAnswersDto[];
|
|
12
14
|
cartItems?: ICreateCartItem[];
|
|
13
15
|
}
|
|
14
16
|
export interface IAddCartItems {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.dto.js","sourceRoot":"","sources":["../../../src/types/dto/application.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"application.dto.js","sourceRoot":"","sources":["../../../src/types/dto/application.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
|
|
@@ -30,9 +30,9 @@ export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto
|
|
|
30
30
|
payemntMethodId: string;
|
|
31
31
|
}
|
|
32
32
|
export declare class ScheduledPaymentDto {
|
|
33
|
+
price: number;
|
|
33
34
|
plannedDate: Date;
|
|
34
35
|
originalPlannedDate?: Date;
|
|
35
|
-
price: number;
|
|
36
36
|
}
|
|
37
37
|
export declare class FutureInstallmentsIdsDto {
|
|
38
38
|
paymentsIds: number[];
|
|
@@ -2,7 +2,7 @@ import { Stripe } from 'stripe';
|
|
|
2
2
|
import { Customer } from '../../../entity/Customer';
|
|
3
3
|
import { LineItems } from '../../../entity/LineItems';
|
|
4
4
|
import { FeeDto } from '../../../fee/dto/fee.dto';
|
|
5
|
-
import {
|
|
5
|
+
import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
|
|
6
6
|
import { PlatformsEnum } from '../../../services/enums.service';
|
|
7
7
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
|
8
8
|
import { Payment } from '../../entities/Payment';
|
|
@@ -73,7 +73,7 @@ export interface PayPaymentResult {
|
|
|
73
73
|
}
|
|
74
74
|
export interface SaveInvoicePayment {
|
|
75
75
|
purchasingUserId?: number;
|
|
76
|
-
paymentData?:
|
|
76
|
+
paymentData?: IPurchasePayment;
|
|
77
77
|
platform?: PlatformsEnum;
|
|
78
78
|
shiftId?: number;
|
|
79
79
|
installmentId?: number;
|
|
@@ -4,13 +4,12 @@ import { Invoice } from '../../entity/Invoice';
|
|
|
4
4
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
5
5
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
|
6
6
|
import { Payment } from '../../payment/entities/Payment';
|
|
7
|
-
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum
|
|
7
|
+
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
8
8
|
import { PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
9
9
|
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
10
10
|
export declare class PurchasePaymentDto {
|
|
11
|
-
token?: string;
|
|
12
11
|
type: PaymentMethodTypeEnum;
|
|
13
|
-
|
|
12
|
+
token?: string;
|
|
14
13
|
}
|
|
15
14
|
export declare class ChargeRentalsReuqestDto {
|
|
16
15
|
organizationId: number;
|
|
@@ -94,3 +93,12 @@ export declare class PurchaseResultDto {
|
|
|
94
93
|
customer?: Customer;
|
|
95
94
|
productUsers?: ProductsUsers[];
|
|
96
95
|
}
|
|
96
|
+
export declare class PurchaseCartDto {
|
|
97
|
+
paymentInfo?: PurchasePaymentDto;
|
|
98
|
+
amountToPay?: number;
|
|
99
|
+
existingInvoiceId?: number;
|
|
100
|
+
existingInvoiceToken?: string;
|
|
101
|
+
installments?: ScheduledPaymentDto[];
|
|
102
|
+
parentPurchasedId?: number;
|
|
103
|
+
parentPurchasedType?: ResourceNameTypeEnum;
|
|
104
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
3
|
+
exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
4
4
|
const resource_dto_1 = require("../../spaces/dto/resource.dto");
|
|
5
5
|
class PurchasePaymentDto {
|
|
6
6
|
}
|
|
@@ -39,4 +39,7 @@ exports.ValidateParticipantDto = ValidateParticipantDto;
|
|
|
39
39
|
class PurchaseResultDto {
|
|
40
40
|
}
|
|
41
41
|
exports.PurchaseResultDto = PurchaseResultDto;
|
|
42
|
+
class PurchaseCartDto {
|
|
43
|
+
}
|
|
44
|
+
exports.PurchaseCartDto = PurchaseCartDto;
|
|
42
45
|
//# sourceMappingURL=purchase.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;
|
|
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;CA4B9B;AA5BD,gDA4BC;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;CAc3B;AAdD,0CAcC"}
|
|
@@ -3,3 +3,4 @@ import { UserCount } from '../interfaces/purchase.interfaces';
|
|
|
3
3
|
export declare const ALLOWED_PAYMENT_INTENT_STATUSES: string[];
|
|
4
4
|
export declare const USER_COUNT_BY_GENDER_DEFAULT: UserCount;
|
|
5
5
|
export declare const CONSUMER_ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
|
|
6
|
+
export declare const ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
|
|
3
|
+
exports.ALLOWED_PAYMENT_METHODS = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
|
|
4
4
|
const payment_enums_1 = require("../../../payment/types/enums/payment.enums");
|
|
5
5
|
exports.ALLOWED_PAYMENT_INTENT_STATUSES = ['processing', 'succeeded'];
|
|
6
6
|
exports.USER_COUNT_BY_GENDER_DEFAULT = { male: 0, female: 0, other: 1 };
|
|
@@ -9,4 +9,14 @@ exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
|
|
|
9
9
|
payment_enums_1.PaymentMethodTypeEnum.CARD,
|
|
10
10
|
payment_enums_1.PaymentMethodTypeEnum.BALANCE,
|
|
11
11
|
];
|
|
12
|
+
exports.ALLOWED_PAYMENT_METHODS = [
|
|
13
|
+
payment_enums_1.PaymentMethodTypeEnum.CARD,
|
|
14
|
+
payment_enums_1.PaymentMethodTypeEnum.ACH,
|
|
15
|
+
payment_enums_1.PaymentMethodTypeEnum.CASH,
|
|
16
|
+
payment_enums_1.PaymentMethodTypeEnum.CHECK,
|
|
17
|
+
payment_enums_1.PaymentMethodTypeEnum.BALANCE,
|
|
18
|
+
payment_enums_1.PaymentMethodTypeEnum.CARD_ON_TERMINAL,
|
|
19
|
+
payment_enums_1.PaymentMethodTypeEnum.GIFT_CARD,
|
|
20
|
+
payment_enums_1.PaymentMethodTypeEnum.OTHER,
|
|
21
|
+
];
|
|
12
22
|
//# sourceMappingURL=purchase.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AAAA,8EAAmF;AAGtE,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAE9D,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AAAA,8EAAmF;AAGtE,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAE9D,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACtC,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,KAAK;IAC3B,qCAAqB,CAAC,OAAO;IAC7B,qCAAqB,CAAC,gBAAgB;IACtC,qCAAqB,CAAC,SAAS;IAC/B,qCAAqB,CAAC,KAAK;CAC3B,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Customer } from '../../../entity/Customer';
|
|
|
2
2
|
import { Invoice } from '../../../entity/Invoice';
|
|
3
3
|
import { Product } from '../../../entity/Product';
|
|
4
4
|
import { Payment } from '../../../payment/entities/Payment';
|
|
5
|
-
import { FuturePaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
5
|
+
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../../../payment/types/enums/payment.enums';
|
|
6
6
|
import { SaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
|
|
7
7
|
import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../../services/enums.service';
|
|
8
8
|
export type UserCount = {
|
|
@@ -47,3 +47,8 @@ export interface IPurchaseInfo {
|
|
|
47
47
|
isImport?: boolean;
|
|
48
48
|
overrideQuantity?: number;
|
|
49
49
|
}
|
|
50
|
+
export interface IPurchasePayment {
|
|
51
|
+
type: PaymentMethodTypeEnum;
|
|
52
|
+
subType?: SubPaymentMethodTypeEnum;
|
|
53
|
+
token?: string;
|
|
54
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
|
2
1
|
import { IdAndNameDto } from '../../dto/general.dto';
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
|
3
3
|
export declare class ResourceDto {
|
|
4
|
-
type: ResourceNameTypeEnum;
|
|
5
4
|
id: number;
|
|
5
|
+
type: ResourceNameTypeEnum;
|
|
6
6
|
}
|
|
7
7
|
export declare class SimpleResourceDto extends IdAndNameDto {
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/spaces/dto/resource.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/spaces/dto/resource.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAGrD,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD"}
|