turf-common 1.0.18-beta.4 → 1.0.18-beta.5
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/build/@enum.d.ts +1 -0
- package/build/@enum.js +1 -0
- package/build/enums/valid-coupon-type.enum.d.ts +4 -0
- package/build/enums/valid-coupon-type.enum.js +8 -0
- package/build/interface/api/activate-subscription.interface.d.ts +4 -0
- package/build/interface/api/create-bank-details.interface.d.ts +11 -1
- package/build/interface/api/create-coupon.interface.d.ts +6 -1
- package/build/interface/api/create-faqs.interface.d.ts +10 -1
- package/build/interface/api/create-organization.interface.d.ts +17 -1
- package/build/interface/api/create-subscription.interface.d.ts +13 -1
- package/build/interface/api/get-collection.interface.d.ts +6 -0
- package/build/interface/api/renew-subscription.interface.d.ts +14 -1
- package/build/interface/api/update-bank-detail.interface.d.ts +11 -1
- package/build/interface/api/update-coupon.interface.d.ts +3 -0
- package/build/interface/api/update-faqs-steps.interface.d.ts +5 -0
- package/build/interface/api/update-organization.interface.d.ts +12 -0
- package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +11 -1
- package/build/interface/api/update-subscription.interface.d.ts +14 -0
- package/build/interface/api/upgrade-renew-subscription.interface.d.ts +5 -1
- package/build/interface/api/upgrade-subscription.interface.d.ts +16 -1
- package/package.json +1 -1
package/build/@enum.d.ts
CHANGED
package/build/@enum.js
CHANGED
|
@@ -31,3 +31,4 @@ __exportStar(require("./enums/transaction-type.enum"), exports);
|
|
|
31
31
|
__exportStar(require("./enums/user-status.enum"), exports);
|
|
32
32
|
__exportStar(require("./enums/valid-type.enum"), exports);
|
|
33
33
|
__exportStar(require("./enums/modification-discount-policy.enum"), exports);
|
|
34
|
+
__exportStar(require("./enums/valid-coupon-type.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidCouponType = void 0;
|
|
4
|
+
var ValidCouponType;
|
|
5
|
+
(function (ValidCouponType) {
|
|
6
|
+
ValidCouponType["PERCENTAGE"] = "percentage";
|
|
7
|
+
ValidCouponType["UNIT"] = "unit";
|
|
8
|
+
})(ValidCouponType || (exports.ValidCouponType = ValidCouponType = {}));
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import { IBankDetailsEntity } from
|
|
1
|
+
import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
|
|
2
2
|
export interface ICreateBankDetail extends IBankDetailsEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface ICreateBankDetailRequest {
|
|
5
|
+
qrCode?: IUploadedMulterFile;
|
|
6
|
+
bankName: string;
|
|
7
|
+
accountName: string;
|
|
8
|
+
accountNo: string;
|
|
9
|
+
ifscCode: string;
|
|
10
|
+
upiId?: string;
|
|
11
|
+
bankAddress?: string;
|
|
12
|
+
branch: string;
|
|
13
|
+
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { ICouponEntity } from
|
|
1
|
+
import { ICouponEntity } from "../../@type";
|
|
2
|
+
import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
|
|
2
3
|
export interface ICreateCoupon extends ICouponEntity {
|
|
3
4
|
}
|
|
5
|
+
export interface ICreateCouponDtoRequest {
|
|
6
|
+
type: ValidCouponType;
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import { IFaqsEntity } from
|
|
1
|
+
import { IFaqsEntity } from "../../@type";
|
|
2
2
|
export interface ICreateFaqs extends IFaqsEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface ICreateFaqsRequest {
|
|
5
|
+
module: string;
|
|
6
|
+
question: string;
|
|
7
|
+
index: string;
|
|
8
|
+
steps: IStepsRequest[];
|
|
9
|
+
}
|
|
10
|
+
export interface IStepsRequest {
|
|
11
|
+
text: string;
|
|
12
|
+
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import { IOrganizationEntity } from
|
|
1
|
+
import { IOrganizationEntity } from "../../@type";
|
|
2
2
|
export interface ICreateOrganization extends IOrganizationEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface ICreateOrganizationRequest {
|
|
5
|
+
name: string;
|
|
6
|
+
owner: ICreateOrganizationUserInfo[];
|
|
7
|
+
email?: string;
|
|
8
|
+
phone?: number;
|
|
9
|
+
type: string;
|
|
10
|
+
pan: string;
|
|
11
|
+
gst?: string;
|
|
12
|
+
deed?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ICreateOrganizationUserInfo {
|
|
15
|
+
first_name: string;
|
|
16
|
+
last_name: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
phone?: number;
|
|
19
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from
|
|
1
|
+
import { ISubscriptionEntity } from "../../@type";
|
|
2
2
|
export interface ICreateSubscription extends Array<ISubscriptionEntity> {
|
|
3
3
|
}
|
|
4
|
+
export interface ICreateSubscriptionRequest {
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
7
|
+
pricingPlanId: number;
|
|
8
|
+
type: string;
|
|
9
|
+
grossAmount: number;
|
|
10
|
+
discount: string;
|
|
11
|
+
netAmount: number;
|
|
12
|
+
amountPaid: number;
|
|
13
|
+
noOfPitches: number;
|
|
14
|
+
remarks?: string;
|
|
15
|
+
}
|
|
@@ -10,3 +10,9 @@ export interface IGetCollection {
|
|
|
10
10
|
total: IDateWisePaymentHistoryData;
|
|
11
11
|
payments: IBookingPaymentHistoryEntity[];
|
|
12
12
|
}
|
|
13
|
+
export interface IGetCollectionRequest {
|
|
14
|
+
fromDateCode?: string;
|
|
15
|
+
toDateCode?: string;
|
|
16
|
+
turfIds?: number[];
|
|
17
|
+
total?: boolean;
|
|
18
|
+
}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
1
|
+
import { ISubscriptionEntity, IUpgrade_details } from "../../@type";
|
|
2
2
|
export interface IRenewSubscription extends ISubscriptionEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface IRenewSubscriptionRequest {
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
7
|
+
pricingPlanId: number;
|
|
8
|
+
type: string;
|
|
9
|
+
grossAmount: number;
|
|
10
|
+
discount: string;
|
|
11
|
+
netAmount: number;
|
|
12
|
+
amountPaid: number;
|
|
13
|
+
remarks?: string;
|
|
14
|
+
pitchCount?: number;
|
|
15
|
+
upgrade_details?: IUpgrade_details[];
|
|
16
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import { IBankDetailsEntity } from "../../@type";
|
|
1
|
+
import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
|
|
2
2
|
export interface IUpdateBankDetail extends IBankDetailsEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface IUpdateBankDetailRequest {
|
|
5
|
+
qrCode?: IUploadedMulterFile;
|
|
6
|
+
bankName: string;
|
|
7
|
+
accountName: string;
|
|
8
|
+
accountNo: string;
|
|
9
|
+
ifscCode: string;
|
|
10
|
+
upiId?: string;
|
|
11
|
+
bankAddress?: string;
|
|
12
|
+
branch: string;
|
|
13
|
+
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import { OrganizationStatus } from "../../@enum";
|
|
1
2
|
import { IOrganizationEntity } from "../../@type";
|
|
2
3
|
import { IUserInfo } from "../user-info-dto.interface";
|
|
3
4
|
export interface IUpdateOrganization extends IOrganizationEntity {
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
owners?: IUserInfo[];
|
|
6
7
|
}
|
|
8
|
+
export interface IUpdateOrganizationRequest {
|
|
9
|
+
name?: string;
|
|
10
|
+
owners?: IUserInfo[];
|
|
11
|
+
email?: string;
|
|
12
|
+
phone?: number;
|
|
13
|
+
type?: string;
|
|
14
|
+
pan?: string;
|
|
15
|
+
gst?: string;
|
|
16
|
+
deed?: string;
|
|
17
|
+
status?: OrganizationStatus;
|
|
18
|
+
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { IPricingPlanEntity } from "../../@type";
|
|
1
|
+
import { IPitchSlab, IPricingPlanEntity } from "../../@type";
|
|
2
2
|
import { IPitchSlabDto } from "../pitch-slab-dto.interface";
|
|
3
3
|
import { IBillingCycleDto } from "../billing-cycle-dto.interface";
|
|
4
4
|
export interface IUpdatePricingPlanById extends IPricingPlanEntity {
|
|
5
5
|
pitch_slab?: IPitchSlabDto;
|
|
6
6
|
billing_cycle?: IBillingCycleDto;
|
|
7
7
|
}
|
|
8
|
+
export interface IUpdatePricingPlanByIdRequest {
|
|
9
|
+
effective_from_date?: number;
|
|
10
|
+
effective_to_date?: number;
|
|
11
|
+
base_price?: number;
|
|
12
|
+
unit?: string;
|
|
13
|
+
pitch_slab?: {
|
|
14
|
+
[key: string]: IPitchSlab;
|
|
15
|
+
};
|
|
16
|
+
billing_cycle?: IBillingCycleDto;
|
|
17
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import { SubscriptionStatus } from "../../@enum";
|
|
1
2
|
import { ISubscriptionEntity } from "../../@type";
|
|
2
3
|
export interface IUpdateSubscription extends ISubscriptionEntity {
|
|
3
4
|
advanceAmount?: number;
|
|
4
5
|
}
|
|
6
|
+
export interface IUpdateSubscriptionDtoRequest {
|
|
7
|
+
from?: string;
|
|
8
|
+
to?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
grossAmount?: number;
|
|
11
|
+
discount?: string;
|
|
12
|
+
netAmount?: number;
|
|
13
|
+
amountPaid?: number;
|
|
14
|
+
advanceAmount?: number;
|
|
15
|
+
status?: SubscriptionStatus;
|
|
16
|
+
noOfPitches?: number;
|
|
17
|
+
remarks?: string;
|
|
18
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
1
|
+
import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest } from "../../@type";
|
|
2
2
|
export interface IUpgradeRenewSubscription extends ISubscriptionEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface IUpgradeRenewSubscriptionRequest {
|
|
5
|
+
upgradeSubscription: IUpgradeSubscriptionRequest;
|
|
6
|
+
renewSubscription: IRenewSubscriptionRequest;
|
|
7
|
+
}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
import { ISubscriptionEntity } from "../../@type";
|
|
1
|
+
import { ISubscriptionEntity, IUpdatePitches } from "../../@type";
|
|
2
2
|
export interface IUpgradeSubscription extends ISubscriptionEntity {
|
|
3
3
|
}
|
|
4
|
+
export interface IUpgradeSubscriptionRequest {
|
|
5
|
+
pricingPlanId: number;
|
|
6
|
+
pitchCount: number;
|
|
7
|
+
grossAmount: number;
|
|
8
|
+
netAmount: number;
|
|
9
|
+
discount: string;
|
|
10
|
+
upgrade_details?: IUpgrade_details[];
|
|
11
|
+
}
|
|
12
|
+
export interface IUpgrade_details {
|
|
13
|
+
turfId?: number;
|
|
14
|
+
turfName?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
pitches?: IUpdatePitches[];
|
|
17
|
+
address?: string;
|
|
18
|
+
}
|