turf-common 1.0.18-beta.10 → 1.0.18-beta.12

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 (38) hide show
  1. package/build/interface/api/get-booking-details-by-id.interface.d.ts +1 -1
  2. package/build/interface/api/get-booking-info.interface.d.ts +1 -1
  3. package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +1 -1
  4. package/build/interface/api/get-collection.interface.d.ts +1 -1
  5. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +1 -1
  6. package/build/interface/api/get-current-subscription.interface.d.ts +1 -1
  7. package/build/interface/api/get-organization-by-orgid.interface.d.ts +3 -3
  8. package/build/interface/api/get-price-by-organization-response.interface.d.ts +1 -1
  9. package/build/interface/api/get-price-entity.interface.d.ts +1 -1
  10. package/build/interface/api/get-price-query.interface.d.ts +1 -1
  11. package/build/interface/api/get-pricing-plan-by-id.interface.d.ts +1 -1
  12. package/build/interface/api/get-pricing-plan-entities.interface.d.ts +1 -1
  13. package/build/interface/api/get-registration-by-id.types.d.ts +3 -3
  14. package/build/interface/api/get-registration-entities.interface.d.ts +3 -3
  15. package/build/interface/api/get-subscription-by-org-id.interface.d.ts +1 -1
  16. package/build/interface/api/get-subscription-entities.interface.d.ts +1 -1
  17. package/build/interface/api/get-turf-by-organization.interface.d.ts +1 -1
  18. package/build/interface/api/list-of-coupons.interface.d.ts +1 -1
  19. package/build/interface/api/one-slot-booking.interface.d.ts +1 -1
  20. package/build/interface/api/renew-subscription.interface.d.ts +1 -1
  21. package/build/interface/api/setup-registration.interface.d.ts +1 -1
  22. package/build/interface/api/staff-member-list.interface.d.ts +1 -1
  23. package/build/interface/api/update-bank-detail.interface.d.ts +1 -1
  24. package/build/interface/api/update-configuration.interface.d.ts +1 -1
  25. package/build/interface/api/update-coupon.interface.d.ts +1 -1
  26. package/build/interface/api/update-faqs-steps.interface.d.ts +1 -1
  27. package/build/interface/api/update-faqs.interface.d.ts +1 -1
  28. package/build/interface/api/update-organization.interface.d.ts +1 -1
  29. package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +1 -1
  30. package/build/interface/api/update-recurring-booking.interface.d.ts +1 -1
  31. package/build/interface/api/update-registration-entities.interface.d.ts +1 -1
  32. package/build/interface/api/update-staff-member.interface.d.ts +2 -2
  33. package/build/interface/api/update-staff-member.interface.js +5 -5
  34. package/build/interface/api/update-subscription.interface.d.ts +2 -2
  35. package/build/interface/api/upgrade-renew-subscription.interface.d.ts +1 -1
  36. package/build/interface/api/upgrade-subscription.interface.d.ts +1 -1
  37. package/build/interface/api/userentity-without-password.interface.d.ts +1 -1
  38. package/package.json +1 -1
@@ -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
  }
@@ -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;
@@ -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.10",
3
+ "version": "1.0.18-beta.12",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",