turf-common 1.0.18-beta.4 → 1.0.18-beta.6

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 CHANGED
@@ -15,3 +15,4 @@ export * from "./enums/transaction-type.enum";
15
15
  export * from "./enums/user-status.enum";
16
16
  export * from "./enums/valid-type.enum";
17
17
  export * from "./enums/modification-discount-policy.enum";
18
+ export * from "./enums/valid-coupon-type.enum";
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,4 @@
1
+ export declare enum ValidCouponType {
2
+ PERCENTAGE = "percentage",
3
+ UNIT = "unit"
4
+ }
@@ -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,7 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
2
  export interface IActivateSubscription extends Array<ISubscriptionEntity> {
3
3
  }
4
+ export interface IActivateSubscriptionRequest {
5
+ dateCode?: number;
6
+ organizationId?: number;
7
+ }
@@ -1,3 +1,13 @@
1
- import { IBankDetailsEntity } from '../../@type';
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 '../../@type';
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 '../../@type';
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 '../../@type';
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,13 @@
1
- import { IPricingPlanEntity } from '../../@type';
1
+ import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab } from "../../@type";
2
2
  export interface ICreatePricingPlan extends IPricingPlanEntity {
3
3
  }
4
+ export interface ICreatePricingPlanDtoRequest {
5
+ effective_from_date: number;
6
+ effective_to_date: number;
7
+ base_price: number;
8
+ unit: string;
9
+ pitch_slab: {
10
+ [key: string]: IPitchSlab;
11
+ };
12
+ billing_cycle: IBillingCycleDto;
13
+ }
@@ -1,3 +1,15 @@
1
- import { ISubscriptionEntity } from '../../@type';
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,3 +1,6 @@
1
1
  import { ICouponEntity } from "../../@type";
2
2
  export interface IUpdateCoupon extends ICouponEntity {
3
3
  }
4
+ export interface IUpdateCouponRequest {
5
+ value: number;
6
+ }
@@ -1,3 +1,8 @@
1
1
  import { IFaqsEntity } from "../../@type";
2
2
  export interface IUpdateFaqsSteps extends IFaqsEntity {
3
3
  }
4
+ export interface IUpdateFaqsRequest {
5
+ module?: string;
6
+ question?: string;
7
+ text?: string;
8
+ }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.18-beta.4",
3
+ "version": "1.0.18-beta.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",