turf-common 1.0.19-beta.3 → 1.0.19-beta.4

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,5 +1,8 @@
1
- import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
- export interface ICreateBankDetailResponse extends IBankDetailsEntity {
1
+ import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
2
+ export interface ICreateBankDetailResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface ICreateBankDetailRequest {
5
8
  qrCode?: IUploadedMulterFile;
@@ -1,6 +1,9 @@
1
- import { ICouponEntity } from "../../@type";
1
+ import { ICouponEntity, Modify } from "../../@type";
2
2
  import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
3
- export interface ICreateCouponResponse extends ICouponEntity {
3
+ export interface ICreateCouponResponse extends Modify<ICouponEntity, {
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ }> {
4
7
  }
5
8
  export interface ICreateCouponDtoRequest {
6
9
  type: ValidCouponType;
@@ -1,5 +1,8 @@
1
- import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab } from "../../@type";
2
- export interface ICreatePricingPlanResponse extends IPricingPlanEntity {
1
+ import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab, Modify } from "../../@type";
2
+ export interface ICreatePricingPlanResponse extends Modify<IPricingPlanEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface ICreatePricingPlanDtoRequest {
5
8
  effective_from_date: number;
@@ -1,5 +1,8 @@
1
- import { ISubscriptionEntity } from "../../@type";
2
- export interface ICreateSubscriptionResponse extends Array<ISubscriptionEntity> {
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface ICreateSubscriptionRequest {
5
8
  from: string;
@@ -1,3 +1,6 @@
1
- import { IBankDetailsEntity } from '../../@type';
2
- export interface IDeleteBankDetailsByIdResponse extends IBankDetailsEntity {
1
+ import { IBankDetailsEntity, Modify } from "../../@type";
2
+ export interface IDeleteBankDetailsByIdResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,3 +1,6 @@
1
- import { IPricingPlanEntity } from "../../@type";
2
- export interface IRemovePricingPlanByIdResponse extends IPricingPlanEntity {
1
+ import { IPricingPlanEntity, Modify } from "../../@type";
2
+ export interface IRemovePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,3 +1,6 @@
1
- import { IBankDetailsEntity } from "../../@type";
2
- export interface IGetBankDetailsEntitiesResponse extends IBankDetailsEntity {
1
+ import { IBankDetailsEntity, Modify } from "../../@type";
2
+ export interface IGetBankDetailsEntitiesResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,14 +1,23 @@
1
- import { IBookingPaymentHistoryEntity, ITurfEntity, IUserEntity } from "../../@type";
1
+ import { IBookingPaymentHistoryEntity, ITurfEntity, IUserEntity, Modify } from "../../@type";
2
2
  import { IDateWisePaymentHistoryData } from "../../types/date-wise-payment-history-data.types";
3
3
  export interface IGetCollectionResponse {
4
4
  turfs: {
5
- [turfId: number]: ITurfEntity;
5
+ [turfId: number]: Modify<ITurfEntity, {
6
+ createdOn: string;
7
+ updatedOn: string;
8
+ }>;
6
9
  };
7
10
  users: {
8
- [key: number]: IUserEntity;
11
+ [key: number]: Modify<IUserEntity, {
12
+ createdOn: string;
13
+ updatedOn: string;
14
+ }>;
9
15
  };
10
16
  total: IDateWisePaymentHistoryData;
11
- payments: IBookingPaymentHistoryEntity[];
17
+ payments: Modify<IBookingPaymentHistoryEntity, {
18
+ createdOn: string;
19
+ updatedOn: string;
20
+ }>[];
12
21
  }
13
22
  export interface IGetCollectionRequest {
14
23
  fromDateCode?: string;
@@ -1,3 +1,6 @@
1
- import { ISubscriptionEntity } from "../../@type";
2
- export interface IGetSubscriptionByOrgIdResponse extends Array<ISubscriptionEntity> {
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface IGetSubscriptionByOrgIdResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,3 +1,6 @@
1
- import { ISubscriptionEntity } from "../../@type";
2
- export interface IGetSubscriptionEntitiesResponse extends Array<ISubscriptionEntity> {
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface IGetSubscriptionEntitiesResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,3 +1,6 @@
1
- import { ITurfEntity } from "../../@type";
2
- export interface IGetTurfByOrganizationResponse extends ITurfEntity {
1
+ import { ITurfEntity, Modify } from "../../@type";
2
+ export interface IGetTurfByOrganizationResponse extends Modify<ITurfEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
@@ -1,5 +1,8 @@
1
- import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
- export interface IUpdateBankDetailResponse extends IBankDetailsEntity {
1
+ import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
2
+ export interface IUpdateBankDetailResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IUpdateBankDetailRequest {
5
8
  qrCode?: IUploadedMulterFile;
@@ -1,5 +1,8 @@
1
- import { ICouponEntity } from "../../@type";
2
- export interface IUpdateCouponResponse extends ICouponEntity {
1
+ import { ICouponEntity, Modify } from "../../@type";
2
+ export interface IUpdateCouponResponse extends Modify<ICouponEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
3
6
  }
4
7
  export interface IUpdateCouponRequest {
5
8
  value: number;
@@ -1,7 +1,10 @@
1
- import { IPitchSlab, IPricingPlanEntity } from "../../@type";
1
+ import { IPitchSlab, IPricingPlanEntity, Modify } from "../../@type";
2
2
  import { IPitchSlabDto } from "../pitch-slab-dto.interface";
3
3
  import { IBillingCycleDto } from "../billing-cycle-dto.interface";
4
- export interface IUpdatePricingPlanByIdResponse extends IPricingPlanEntity {
4
+ export interface IUpdatePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
5
+ createdOn: string;
6
+ updatedOn: string;
7
+ }> {
5
8
  pitch_slab?: IPitchSlabDto;
6
9
  billing_cycle?: IBillingCycleDto;
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.19-beta.3",
3
+ "version": "1.0.19-beta.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",