turf-common 1.0.18-beta.8 → 1.0.18

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.
Files changed (68) hide show
  1. package/build/interface/api/activate-subscription.interface.d.ts +1 -1
  2. package/build/interface/api/booking-availablity-by-pitch.interface.d.ts +1 -1
  3. package/build/interface/api/cancellation-charges.interface.d.ts +1 -1
  4. package/build/interface/api/create-bank-details.interface.d.ts +1 -1
  5. package/build/interface/api/create-cancellation-policy.interface.d.ts +1 -1
  6. package/build/interface/api/create-coupon.interface.d.ts +1 -1
  7. package/build/interface/api/create-faqs.interface.d.ts +1 -1
  8. package/build/interface/api/create-organization.interface.d.ts +1 -1
  9. package/build/interface/api/create-pricing-plan.interface.d.ts +1 -1
  10. package/build/interface/api/create-recurring-slot-booking.interface.d.ts +2 -2
  11. package/build/interface/api/create-registration-interface.d.ts +12 -0
  12. package/build/interface/api/create-registration-interface.js +2 -0
  13. package/build/interface/api/create-registration-transaction-output.interface.d.ts +1 -10
  14. package/build/interface/api/create-subscription.interface.d.ts +1 -1
  15. package/build/interface/api/create-turf.interface.d.ts +1 -1
  16. package/build/interface/api/delete-bank-details-by-id.interface.d.ts +1 -1
  17. package/build/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
  18. package/build/interface/api/delete-booking-by-codes.interface.js +2 -0
  19. package/build/interface/api/delete-booking-info.interface.d.ts +1 -1
  20. package/build/interface/api/delete-pricing-plan.interface.d.ts +1 -1
  21. package/build/interface/api/get-all-booking-of-turf.interface.d.ts +1 -1
  22. package/build/interface/api/get-bank-detail-by-id.interface.d.ts +1 -1
  23. package/build/interface/api/get-bank-detail-entities.interface.d.ts +1 -1
  24. package/build/interface/api/get-booking-by-organization-id.interface.d.ts +1 -1
  25. package/build/interface/api/get-booking-customers.interface.d.ts +1 -1
  26. package/build/interface/api/get-booking-details-by-id.interface.d.ts +1 -1
  27. package/build/interface/api/get-booking-info.interface.d.ts +1 -1
  28. package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +1 -1
  29. package/build/interface/api/get-collection.interface.d.ts +1 -1
  30. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +1 -1
  31. package/build/interface/api/get-current-subscription.interface.d.ts +1 -1
  32. package/build/interface/api/get-organization-by-orgid.interface.d.ts +3 -3
  33. package/build/interface/api/get-price-by-organization-response.interface.d.ts +1 -1
  34. package/build/interface/api/get-price-entity.interface.d.ts +1 -1
  35. package/build/interface/api/get-price-query.interface.d.ts +1 -1
  36. package/build/interface/api/get-pricing-plan-by-id.interface.d.ts +1 -1
  37. package/build/interface/api/get-pricing-plan-entities.interface.d.ts +1 -1
  38. package/build/interface/api/get-registration-by-id.types.d.ts +3 -3
  39. package/build/interface/api/get-registration-entities.interface.d.ts +3 -3
  40. package/build/interface/api/get-subscription-by-org-id.interface.d.ts +1 -1
  41. package/build/interface/api/get-subscription-entities.interface.d.ts +1 -1
  42. package/build/interface/api/get-turf-by-organization.interface.d.ts +1 -1
  43. package/build/interface/api/index.d.ts +3 -1
  44. package/build/interface/api/index.js +3 -1
  45. package/build/interface/api/list-of-coupons.interface.d.ts +1 -1
  46. package/build/interface/api/one-slot-booking.interface.d.ts +1 -1
  47. package/build/interface/api/renew-subscription.interface.d.ts +1 -1
  48. package/build/interface/api/setup-registration.interface.d.ts +1 -1
  49. package/build/interface/api/staff-member-list.interface.d.ts +1 -1
  50. package/build/interface/api/update-bank-detail.interface.d.ts +1 -1
  51. package/build/interface/api/update-configuration.interface.d.ts +1 -1
  52. package/build/interface/api/update-coupon.interface.d.ts +1 -1
  53. package/build/interface/api/update-faqs-steps.interface.d.ts +1 -1
  54. package/build/interface/api/update-faqs.interface.d.ts +1 -1
  55. package/build/interface/api/update-organization.interface.d.ts +1 -1
  56. package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +1 -1
  57. package/build/interface/api/update-recurring-booking.interface.d.ts +1 -1
  58. package/build/interface/api/update-registration-entities.interface.d.ts +1 -1
  59. package/build/interface/api/update-staff-member.interface.d.ts +2 -2
  60. package/build/interface/api/update-staff-member.interface.js +5 -5
  61. package/build/interface/api/update-subscription.interface.d.ts +2 -2
  62. package/build/interface/api/update-turf-details.interface.d.ts +20 -0
  63. package/build/interface/api/update-turf-details.interface.js +2 -0
  64. package/build/interface/api/update-turf-transaction-output.d.ts +1 -18
  65. package/build/interface/api/upgrade-renew-subscription.interface.d.ts +1 -1
  66. package/build/interface/api/upgrade-subscription.interface.d.ts +1 -1
  67. package/build/interface/api/userentity-without-password.interface.d.ts +1 -1
  68. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
- export interface IActivateSubscription extends Array<ISubscriptionEntity> {
2
+ export interface IActivateSubscriptionResponse extends Array<ISubscriptionEntity> {
3
3
  }
4
4
  export interface IActivateSubscriptionRequest {
5
5
  dateCode?: number;
@@ -1,4 +1,4 @@
1
- export interface IBookingAvailabilityByPitch {
1
+ export interface IBookingAvailabilityByPitchResponse {
2
2
  available: {
3
3
  [key: string]: {
4
4
  from: string;
@@ -1,4 +1,4 @@
1
- export interface ICancellationCharges {
1
+ export interface ICancellationChargesResponse {
2
2
  [key: string]: {
3
3
  cancellationCharges: number;
4
4
  cancellationUnit: string;
@@ -1,5 +1,5 @@
1
1
  import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
- export interface ICreateBankDetail extends IBankDetailsEntity {
2
+ export interface ICreateBankDetailResponse extends IBankDetailsEntity {
3
3
  }
4
4
  export interface ICreateBankDetailRequest {
5
5
  qrCode?: IUploadedMulterFile;
@@ -1,5 +1,5 @@
1
1
  import { ICancellationPolicyEntity } from "../../@type";
2
- export interface ICreateCancellationPolicy extends Array<ICancellationPolicyEntity> {
2
+ export interface ICreateCancellationPolicyResponse extends Array<ICancellationPolicyEntity> {
3
3
  }
4
4
  export interface ICreateCancellationPolicyDtoRequest {
5
5
  adhocRefund: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ICouponEntity } from "../../@type";
2
2
  import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
3
- export interface ICreateCoupon extends ICouponEntity {
3
+ export interface ICreateCouponResponse extends ICouponEntity {
4
4
  }
5
5
  export interface ICreateCouponDtoRequest {
6
6
  type: ValidCouponType;
@@ -1,5 +1,5 @@
1
1
  import { IFaqsEntity } from "../../@type";
2
- export interface ICreateFaqs extends IFaqsEntity {
2
+ export interface ICreateFaqsResponse extends IFaqsEntity {
3
3
  }
4
4
  export interface ICreateFaqsRequest {
5
5
  module: string;
@@ -1,5 +1,5 @@
1
1
  import { IOrganizationEntity } from "../../@type";
2
- export interface ICreateOrganization extends IOrganizationEntity {
2
+ export interface ICreateOrganizationResponse extends IOrganizationEntity {
3
3
  }
4
4
  export interface ICreateOrganizationRequest {
5
5
  name: string;
@@ -1,5 +1,5 @@
1
1
  import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab } from "../../@type";
2
- export interface ICreatePricingPlan extends IPricingPlanEntity {
2
+ export interface ICreatePricingPlanResponse extends IPricingPlanEntity {
3
3
  }
4
4
  export interface ICreatePricingPlanDtoRequest {
5
5
  effective_from_date: number;
@@ -1,8 +1,8 @@
1
1
  import { PaymentMode, BookingDetailsStatus } from "../../@enum";
2
2
  import { IBookingDetailsEntity } from "../../@type";
3
- export interface ICreateRecurringSlotBooking extends IBookingDetailsEntity {
3
+ export interface ICreateRecurringSlotBookingResponse extends IBookingDetailsEntity {
4
4
  }
5
- export interface ICreateRecurringSlotsBookingDetailsResponse {
5
+ export interface ICreateRecurringSlotsBookingDetailsRequest {
6
6
  customerName: string;
7
7
  contact: number;
8
8
  email?: string | null;
@@ -0,0 +1,12 @@
1
+ import { OrganizationStatus } from "../../@enum";
2
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
3
+ export interface ICreateRegistrationResponse extends IWithoutTokenRegistrationEntity {
4
+ }
5
+ export interface ICreateRegistrationRequest {
6
+ name: string;
7
+ contact: string;
8
+ email: string;
9
+ pitchPlan: string;
10
+ status: OrganizationStatus;
11
+ comments?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,2 @@
1
- import { OrganizationStatus } from "../../@enum";
2
1
  import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
3
- export type CreateRegistrationTransactionOutput = IWithoutTokenRegistrationEntity;
4
- export interface ICreateRegistrationRequest {
5
- name: string;
6
- contact: string;
7
- email: string;
8
- pitchPlan: string;
9
- status: OrganizationStatus;
10
- comments?: string;
11
- }
2
+ export type ICreateRegistrationTransactionOutput = IWithoutTokenRegistrationEntity;
@@ -1,5 +1,5 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
- export interface ICreateSubscription extends Array<ISubscriptionEntity> {
2
+ export interface ICreateSubscriptionResponse extends Array<ISubscriptionEntity> {
3
3
  }
4
4
  export interface ICreateSubscriptionRequest {
5
5
  from: string;
@@ -1,5 +1,5 @@
1
1
  import { PitchSports } from "../../enums/pitch-sports.enum";
2
- export interface ICreateTurfResponse {
2
+ export interface ICreateTurfRequest {
3
3
  turfName: string;
4
4
  numberOfPitches: number;
5
5
  pitches: IPitches[];
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from '../../@type';
2
- export interface IDeleteBankDetailsById extends IBankDetailsEntity {
2
+ export interface IDeleteBankDetailsByIdResponse extends IBankDetailsEntity {
3
3
  }
@@ -0,0 +1,7 @@
1
+ import { PaymentMode } from "../../@enum";
2
+ import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
3
+ export interface IDeleteBookingByCodesResponse extends IDeleteBookingByCodesDto {
4
+ cancellation_amount: number;
5
+ refund_amount: number;
6
+ refund_mode: PaymentMode;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
1
  import { IBookingDetailsEntity } from "../../@type";
2
- export interface IDeleteBookingInfo extends IBookingDetailsEntity {
2
+ export interface IDeleteBookingInfoResponse extends IBookingDetailsEntity {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IPricingPlanEntity } from "../../@type";
2
- export interface IRemovePricingPlanById extends IPricingPlanEntity {
2
+ export interface IRemovePricingPlanByIdResponse extends IPricingPlanEntity {
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import { ITurf } from "../../@type";
2
2
  import { IBookingDetailsWithCode } from "../booking-details-with-code.interface";
3
- export interface IGetAllBookingOfTurf {
3
+ export interface IGetAllBookingOfTurfResponse {
4
4
  turfs: {
5
5
  [turfId: number]: ITurf;
6
6
  };
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from "../../@type";
2
- export interface IGetBankDetailById extends IBankDetailsEntity {
2
+ export interface IGetBankDetailByIdResponse extends IBankDetailsEntity {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IBankDetailsEntity } from "../../@type";
2
- export interface IGetBankDetailsEntities extends IBankDetailsEntity {
2
+ export interface IGetBankDetailsEntitiesResponse extends IBankDetailsEntity {
3
3
  }
@@ -2,7 +2,7 @@ import { ITurf } from "../../@type";
2
2
  import { IBookingDetailsWithBooking } from "../../types/bookingdetails-with-booking.type";
3
3
  import { UserType } from "../../enums/valid-type.enum";
4
4
  import { BookingFetchFilter } from "../../enums/booking-fetch-filter.enum";
5
- export interface IGetBookingsByOrganizationId {
5
+ export interface IGetBookingsByOrganizationIdResponse {
6
6
  turfs: {
7
7
  [turfId: number]: ITurf;
8
8
  };
@@ -1,3 +1,3 @@
1
1
  import { IBookingCustomerEntity } from "../../@type";
2
- export interface IGetBookingCustomers extends Array<IBookingCustomerEntity> {
2
+ export interface IGetBookingCustomersResponse extends Array<IBookingCustomerEntity> {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IGetBookingById } from '../get-booking-by-id.interface';
2
- export interface IGetBookingDetailsById extends IGetBookingById {
2
+ export interface IGetBookingDetailsByIdResponse extends IGetBookingById {
3
3
  }
@@ -1,5 +1,5 @@
1
1
  import { BookingDetailsStatus } from "../../enums/booking-details-status.enum";
2
- export interface IGetBookingInfo {
2
+ export interface IGetBookingInfoResponse {
3
3
  [date: string]: {
4
4
  [time: string]: {
5
5
  price?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { ICancellationPolicyEntity, ITurfEntity } from "../../@type";
2
- export interface IGetCancellationPolicyByOrgId {
2
+ export interface IGetCancellationPolicyByOrgIdResponse {
3
3
  turfs: {
4
4
  [turfId: number]: ITurfEntity;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { IBookingPaymentHistoryEntity, ITurfEntity, IUserEntity } from "../../@type";
2
2
  import { IDateWisePaymentHistoryData } from "../../types/date-wise-payment-history-data.types";
3
- export interface IGetCollection {
3
+ export interface IGetCollectionResponse {
4
4
  turfs: {
5
5
  [turfId: number]: ITurfEntity;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { CronJobsNames, CronJobsStatus } from "../../@enum";
2
2
  import { ICronJobsEntity } from "../../@type";
3
- export interface IGetCronJobByDateRangeNameStatus extends Array<ICronJobsEntity> {
3
+ export interface IGetCronJobByDateRangeNameStatusResponse extends Array<ICronJobsEntity> {
4
4
  }
5
5
  export interface IGetCronJobByDateRangeNameStatusRequest {
6
6
  dateRange?: string;
@@ -1,5 +1,5 @@
1
1
  import { ISubscriptionEntity, ISubscriptionPitchMappingEntity } from "../../@type";
2
- export interface IGetCurrentSubscription extends ISubscriptionEntity {
2
+ export interface IGetCurrentSubscriptionResponse extends ISubscriptionEntity {
3
3
  details: ISubscriptionPitchMappingEntity[];
4
4
  next: ISubscriptionEntity | null;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ITurfEntity } from "../../@type";
2
- import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
3
- export interface IGetOrganizationByOrgId {
2
+ import { IUserEntityWithoutPasswordResponse } from "./userentity-without-password.interface";
3
+ export interface IGetOrganizationByOrgIdResponse {
4
4
  id: number;
5
5
  name: string;
6
6
  email: string | null;
@@ -16,6 +16,6 @@ export interface IGetOrganizationByOrgId {
16
16
  updatedOn: Date;
17
17
  createdBy: number;
18
18
  updatedBy: number;
19
- owners?: IUserEntityWithoutPassword[];
19
+ owners?: IUserEntityWithoutPasswordResponse[];
20
20
  turfs?: ITurfEntity[];
21
21
  }
@@ -1,4 +1,4 @@
1
- export interface GetPriceByOrganization {
1
+ export interface IGetPriceByOrganizationResponse {
2
2
  [key: string]: {
3
3
  name: string;
4
4
  price: Record<string, Record<string, Record<string, string[]>>>;
@@ -1,4 +1,4 @@
1
- export type IGetPriceEntity = {
1
+ export type IGetPriceEntityResponse = {
2
2
  [date: string]: {
3
3
  [time: string]: number;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { ISetPriceRequest } from "./set-price.interface";
2
- export interface IGetPriceQuery {
2
+ export interface IGetPriceQueryResponse {
3
3
  [turfId: string]: {
4
4
  [code: string]: {
5
5
  [time: string]: number;
@@ -1,3 +1,3 @@
1
1
  import { IGetPricingPlanByDateResponse } from './get-pricing-plan-by-date-response.interface';
2
- export interface IGetPricingPlanById extends IGetPricingPlanByDateResponse {
2
+ export interface IGetPricingPlanByIdResponse extends IGetPricingPlanByDateResponse {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { IGetPricingPlanByDateResponse } from './get-pricing-plan-by-date-response.interface';
2
- export interface IGetPricingPlanEntities extends IGetPricingPlanByDateResponse {
2
+ export interface IGetPricingPlanEntitiesResponse extends IGetPricingPlanByDateResponse {
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
2
2
  import { OrganizationStatus } from "../../@enum";
3
- import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
4
- export interface IGetRegistration {
3
+ import { IUserEntityWithoutPasswordResponse } from "./userentity-without-password.interface";
4
+ export interface IGetRegistrationResponse {
5
5
  [registrationId: string]: {
6
6
  registration: IRegistrationEntity;
7
7
  organization: {
@@ -27,7 +27,7 @@ export interface IGetRegistration {
27
27
  [turfId: string]: ITurf;
28
28
  };
29
29
  owners: {
30
- [userId: string]: IUserEntityWithoutPassword;
30
+ [userId: string]: IUserEntityWithoutPasswordResponse;
31
31
  };
32
32
  };
33
33
  };
@@ -1,7 +1,7 @@
1
1
  import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
2
- import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
2
+ import { IUserEntityWithoutPasswordResponse } from "./userentity-without-password.interface";
3
3
  import { OrganizationStatus } from "../../@enum";
4
- export interface IGetRegistrationEntityById {
4
+ export interface IGetRegistrationEntityByIdResponse {
5
5
  registration: IRegistrationEntity;
6
6
  organization: {
7
7
  [id: string]: {
@@ -26,7 +26,7 @@ export interface IGetRegistrationEntityById {
26
26
  [turfId: string]: ITurf;
27
27
  };
28
28
  owners: {
29
- [userId: string]: IUserEntityWithoutPassword;
29
+ [userId: string]: IUserEntityWithoutPasswordResponse;
30
30
  };
31
31
  };
32
32
  };
@@ -1,3 +1,3 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
- export interface IGetSubscriptionByOrgId extends Array<ISubscriptionEntity> {
2
+ export interface IGetSubscriptionByOrgIdResponse extends Array<ISubscriptionEntity> {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { ISubscriptionEntity } from "../../@type";
2
- export interface IGetSubscriptionEntities extends Array<ISubscriptionEntity> {
2
+ export interface IGetSubscriptionEntitiesResponse extends Array<ISubscriptionEntity> {
3
3
  }
@@ -1,3 +1,3 @@
1
1
  import { ITurfEntity } from "../../@type";
2
- export interface IGetTurfByOrganization extends ITurfEntity {
2
+ export interface IGetTurfByOrganizationResponse extends ITurfEntity {
3
3
  }
@@ -59,10 +59,12 @@ export * from "./upgrade-renew-subscription.interface";
59
59
  export * from "./upgrade-subscription.interface";
60
60
  export * from "./userentity-without-password.interface";
61
61
  export * from "./update-registration-entities.interface";
62
- export * from "./delete-booking-by-codes-response.interface";
62
+ export * from "./delete-booking-by-codes.interface";
63
63
  export * from "./update-booking-by-code-response.interface";
64
64
  export * from "./login-response.interface";
65
65
  export * from "./create-turf.interface";
66
66
  export * from "./set-price.interface";
67
67
  export * from "./manual-trigger-cron-job.interface";
68
68
  export * from "./create-user.interface";
69
+ export * from "./update-turf-details.interface";
70
+ export * from "./create-registration-interface";
@@ -77,10 +77,12 @@ __exportStar(require("./upgrade-renew-subscription.interface"), exports);
77
77
  __exportStar(require("./upgrade-subscription.interface"), exports);
78
78
  __exportStar(require("./userentity-without-password.interface"), exports);
79
79
  __exportStar(require("./update-registration-entities.interface"), exports);
80
- __exportStar(require("./delete-booking-by-codes-response.interface"), exports);
80
+ __exportStar(require("./delete-booking-by-codes.interface"), exports);
81
81
  __exportStar(require("./update-booking-by-code-response.interface"), exports);
82
82
  __exportStar(require("./login-response.interface"), exports);
83
83
  __exportStar(require("./create-turf.interface"), exports);
84
84
  __exportStar(require("./set-price.interface"), exports);
85
85
  __exportStar(require("./manual-trigger-cron-job.interface"), exports);
86
86
  __exportStar(require("./create-user.interface"), exports);
87
+ __exportStar(require("./update-turf-details.interface"), exports);
88
+ __exportStar(require("./create-registration-interface"), exports);
@@ -1,4 +1,4 @@
1
- export interface IListOfCoupons {
1
+ export interface IListOfCouponsResponse {
2
2
  percentage: {
3
3
  values: number[];
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { PaymentMode, BookingDetailsStatus } from "../../@enum";
2
2
  import { IBookingDetailsEntity } from "../../@type";
3
- export interface IOneSlotBooking extends IBookingDetailsEntity {
3
+ export interface ICreateOneSlotBookingResponse extends IBookingDetailsEntity {
4
4
  }
5
5
  export interface ICreateOneSlotBookingDetailsRequest {
6
6
  customerName: string;
@@ -1,5 +1,5 @@
1
1
  import { ISubscriptionEntity, IUpgrade_details } from "../../@type";
2
- export interface IRenewSubscription extends ISubscriptionEntity {
2
+ export interface IRenewSubscriptionResponse extends ISubscriptionEntity {
3
3
  }
4
4
  export interface IRenewSubscriptionRequest {
5
5
  from: string;
@@ -1,4 +1,4 @@
1
- export interface ISetupRegistration {
1
+ export interface ISetupRegistrationResponse {
2
2
  turf: boolean;
3
3
  'organization-profile': boolean;
4
4
  subscription: boolean;
@@ -1,5 +1,5 @@
1
1
  import { UserStatus } from "../../@enum";
2
- export interface IStaffMemberList {
2
+ export interface IStaffMemberListResponse {
3
3
  id: number;
4
4
  firstname: string;
5
5
  lastname: string;
@@ -1,5 +1,5 @@
1
1
  import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
2
- export interface IUpdateBankDetail extends IBankDetailsEntity {
2
+ export interface IUpdateBankDetailResponse extends IBankDetailsEntity {
3
3
  }
4
4
  export interface IUpdateBankDetailRequest {
5
5
  qrCode?: IUploadedMulterFile;
@@ -1,6 +1,6 @@
1
1
  import { ConfigurationKey } from "../../@enum";
2
2
  import { IConfigurationsEntity } from "../../@type";
3
- export interface IUpdateConfiguration extends Array<IConfigurationsEntity> {
3
+ export interface IUpdateConfigurationResponse extends Array<IConfigurationsEntity> {
4
4
  }
5
5
  export interface IUpdateConfigurationRequest {
6
6
  key: ConfigurationKey;
@@ -1,5 +1,5 @@
1
1
  import { ICouponEntity } from "../../@type";
2
- export interface IUpdateCoupon extends ICouponEntity {
2
+ export interface IUpdateCouponResponse extends ICouponEntity {
3
3
  }
4
4
  export interface IUpdateCouponRequest {
5
5
  value: number;
@@ -1,5 +1,5 @@
1
1
  import { IFaqsEntity } from "../../@type";
2
- export interface IUpdateFaqsSteps extends IFaqsEntity {
2
+ export interface IUpdateFaqsStepsResponse extends IFaqsEntity {
3
3
  }
4
4
  export interface IUpdateFaqsRequest {
5
5
  module?: string;
@@ -1,3 +1,3 @@
1
1
  import { IFaqsEntity } from "../../@type";
2
- export interface IUpdateFaqs extends IFaqsEntity {
2
+ export interface IUpdateFaqsResponse extends IFaqsEntity {
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import { OrganizationStatus } from "../../@enum";
2
2
  import { IOrganizationEntity } from "../../@type";
3
3
  import { IUserInfo } from "../user-info-dto.interface";
4
- export interface IUpdateOrganization extends IOrganizationEntity {
4
+ export interface IUpdateOrganizationResponse extends IOrganizationEntity {
5
5
  imageUrl?: string;
6
6
  owners?: IUserInfo[];
7
7
  }
@@ -1,7 +1,7 @@
1
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
- export interface IUpdatePricingPlanById extends IPricingPlanEntity {
4
+ export interface IUpdatePricingPlanByIdResponse extends IPricingPlanEntity {
5
5
  pitch_slab?: IPitchSlabDto;
6
6
  billing_cycle?: IBillingCycleDto;
7
7
  }
@@ -2,7 +2,7 @@ import { BookingDetailsStatus, PaymentMode } from "../../@enum";
2
2
  import { IBookingDetailsEntity } from "../../@type";
3
3
  import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
4
4
  import { IUpdateBookingByCodesDto } from "../dto/update-booking-by-code-dto.interface";
5
- export interface IUpdateRecurringBooking extends IBookingDetailsEntity {
5
+ export interface IUpdateRecurringBookingResponse extends IBookingDetailsEntity {
6
6
  id: number;
7
7
  turfId: number;
8
8
  pitchId: number;
@@ -1,6 +1,6 @@
1
1
  import { RegistrationStatus } from "../../@enum";
2
2
  import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
3
- export interface IUpdateRegistrationEntities extends IWithoutTokenRegistrationEntity {
3
+ export interface IUpdateRegistrationEntitiesResponse extends IWithoutTokenRegistrationEntity {
4
4
  }
5
5
  export interface IUpdateRegistrationRequest {
6
6
  status?: RegistrationStatus;
@@ -1,5 +1,5 @@
1
1
  import { UserStatus, UserType } from "../../@enum";
2
- export interface IUpdateStaffMember {
2
+ export interface IUpdateStaffMemberResponse {
3
3
  createdOn: Date;
4
4
  updatedOn: Date;
5
5
  createdBy: number;
@@ -21,7 +21,7 @@ export interface IUpdateStaffMember {
21
21
  imageUrl: null | string;
22
22
  turfids?: string[];
23
23
  }
24
- export declare class IUpdateStaffMemberDtoRequest {
24
+ export declare class IUpdateStaffMemberRequest {
25
25
  firstname?: string;
26
26
  lastname?: string;
27
27
  phone?: number;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IUpdateStaffMemberDtoRequest = void 0;
4
- var IUpdateStaffMemberDtoRequest = /** @class */ (function () {
5
- function IUpdateStaffMemberDtoRequest() {
3
+ exports.IUpdateStaffMemberRequest = void 0;
4
+ var IUpdateStaffMemberRequest = /** @class */ (function () {
5
+ function IUpdateStaffMemberRequest() {
6
6
  }
7
- return IUpdateStaffMemberDtoRequest;
7
+ return IUpdateStaffMemberRequest;
8
8
  }());
9
- exports.IUpdateStaffMemberDtoRequest = IUpdateStaffMemberDtoRequest;
9
+ exports.IUpdateStaffMemberRequest = IUpdateStaffMemberRequest;
@@ -1,9 +1,9 @@
1
1
  import { SubscriptionStatus } from "../../@enum";
2
2
  import { ISubscriptionEntity } from "../../@type";
3
- export interface IUpdateSubscription extends ISubscriptionEntity {
3
+ export interface IUpdateSubscriptionResponse extends ISubscriptionEntity {
4
4
  advanceAmount?: number;
5
5
  }
6
- export interface IUpdateSubscriptionDtoRequest {
6
+ export interface IUpdateSubscriptionRequest {
7
7
  from?: string;
8
8
  to?: string;
9
9
  type?: string;
@@ -0,0 +1,20 @@
1
+ import { PitchOperations } from "../../enums/pitch-operation.enum";
2
+ import { PitchSports } from "../../enums/pitch-sports.enum";
3
+ import { ITurfEntity } from "../entity";
4
+ export interface IUpdateTurfDetailsResponse extends ITurfEntity {
5
+ }
6
+ export interface IUpdateTurfDetailsRequest {
7
+ turfName?: string;
8
+ pitches?: IUpdatePitches[];
9
+ address?: string;
10
+ }
11
+ export interface IUpdatePitches {
12
+ number?: number;
13
+ name?: string;
14
+ operations?: PitchOperations;
15
+ status?: string;
16
+ sports?: IUpdateSports[];
17
+ }
18
+ export interface IUpdateSports {
19
+ name: PitchSports;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +1,3 @@
1
1
  import { ITurfEntity } from "../../@type";
2
- import { PitchOperations } from "../../enums/pitch-operation.enum";
3
- import { PitchSports } from "../../enums/pitch-sports.enum";
4
- export interface UpdateTurfTransactionOutput extends ITurfEntity {
5
- }
6
- export interface UpdateTurfDetailsRequest {
7
- turfName?: string;
8
- pitches?: IUpdatePitches[];
9
- address?: string;
10
- }
11
- export interface IUpdatePitches {
12
- number?: number;
13
- name?: string;
14
- operations?: PitchOperations;
15
- status?: string;
16
- sports?: IUpdateSports[];
17
- }
18
- export interface IUpdateSports {
19
- name: PitchSports;
2
+ export interface IUpdateTurfTransactionOutput extends ITurfEntity {
20
3
  }
@@ -1,5 +1,5 @@
1
1
  import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest } from "../../@type";
2
- export interface IUpgradeRenewSubscription extends ISubscriptionEntity {
2
+ export interface IUpgradeRenewSubscriptionResponse extends ISubscriptionEntity {
3
3
  }
4
4
  export interface IUpgradeRenewSubscriptionRequest {
5
5
  upgradeSubscription: IUpgradeSubscriptionRequest;
@@ -1,5 +1,5 @@
1
1
  import { ISubscriptionEntity, IUpdatePitches } from "../../@type";
2
- export interface IUpgradeSubscription extends ISubscriptionEntity {
2
+ export interface IUpgradeSubscriptionResponse extends ISubscriptionEntity {
3
3
  }
4
4
  export interface IUpgradeSubscriptionRequest {
5
5
  pricingPlanId: number;
@@ -1,3 +1,3 @@
1
1
  import { IUserEntity } from "../../@type";
2
- export interface IUserEntityWithoutPassword extends Omit<IUserEntity, "password"> {
2
+ export interface IUserEntityWithoutPasswordResponse extends Omit<IUserEntity, "password"> {
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.0.18-beta.8",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",