turf-common 1.0.18-beta.9 → 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.
- package/build/interface/api/create-recurring-slot-booking.interface.d.ts +2 -2
- package/build/interface/api/create-registration-interface.d.ts +12 -0
- package/build/interface/api/create-registration-interface.js +2 -0
- package/build/interface/api/create-registration-transaction-output.interface.d.ts +1 -10
- package/build/interface/api/create-subscription.interface.d.ts +1 -1
- package/build/interface/api/create-turf.interface.d.ts +1 -1
- package/build/interface/api/delete-bank-details-by-id.interface.d.ts +1 -1
- package/build/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
- package/build/interface/api/delete-booking-by-codes.interface.js +2 -0
- package/build/interface/api/delete-booking-info.interface.d.ts +1 -1
- package/build/interface/api/delete-pricing-plan.interface.d.ts +1 -1
- package/build/interface/api/get-all-booking-of-turf.interface.d.ts +1 -1
- package/build/interface/api/get-bank-detail-by-id.interface.d.ts +1 -1
- package/build/interface/api/get-bank-detail-entities.interface.d.ts +1 -1
- package/build/interface/api/get-booking-by-organization-id.interface.d.ts +1 -1
- package/build/interface/api/get-booking-customers.interface.d.ts +1 -1
- package/build/interface/api/get-booking-details-by-id.interface.d.ts +1 -1
- package/build/interface/api/get-booking-info.interface.d.ts +1 -1
- package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +1 -1
- package/build/interface/api/get-collection.interface.d.ts +1 -1
- package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +1 -1
- package/build/interface/api/get-current-subscription.interface.d.ts +1 -1
- package/build/interface/api/get-organization-by-orgid.interface.d.ts +3 -3
- package/build/interface/api/get-price-by-organization-response.interface.d.ts +1 -1
- package/build/interface/api/get-price-entity.interface.d.ts +1 -1
- package/build/interface/api/get-price-query.interface.d.ts +1 -1
- package/build/interface/api/get-pricing-plan-by-id.interface.d.ts +1 -1
- package/build/interface/api/get-pricing-plan-entities.interface.d.ts +1 -1
- package/build/interface/api/get-registration-by-id.types.d.ts +3 -3
- package/build/interface/api/get-registration-entities.interface.d.ts +3 -3
- package/build/interface/api/get-subscription-by-org-id.interface.d.ts +1 -1
- package/build/interface/api/get-subscription-entities.interface.d.ts +1 -1
- package/build/interface/api/get-turf-by-organization.interface.d.ts +1 -1
- package/build/interface/api/index.d.ts +3 -1
- package/build/interface/api/index.js +3 -1
- package/build/interface/api/list-of-coupons.interface.d.ts +1 -1
- package/build/interface/api/one-slot-booking.interface.d.ts +1 -1
- package/build/interface/api/renew-subscription.interface.d.ts +1 -1
- package/build/interface/api/setup-registration.interface.d.ts +1 -1
- package/build/interface/api/staff-member-list.interface.d.ts +1 -1
- package/build/interface/api/update-bank-detail.interface.d.ts +1 -1
- package/build/interface/api/update-configuration.interface.d.ts +1 -1
- package/build/interface/api/update-coupon.interface.d.ts +1 -1
- package/build/interface/api/update-faqs-steps.interface.d.ts +1 -1
- package/build/interface/api/update-faqs.interface.d.ts +1 -1
- package/build/interface/api/update-organization.interface.d.ts +1 -1
- package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +1 -1
- package/build/interface/api/update-recurring-booking.interface.d.ts +1 -1
- package/build/interface/api/update-registration-entities.interface.d.ts +1 -1
- package/build/interface/api/update-staff-member.interface.d.ts +2 -2
- package/build/interface/api/update-staff-member.interface.js +5 -5
- package/build/interface/api/update-subscription.interface.d.ts +2 -2
- package/build/interface/api/update-turf-details.interface.d.ts +20 -0
- package/build/interface/api/update-turf-details.interface.js +2 -0
- package/build/interface/api/update-turf-transaction-output.d.ts +1 -18
- package/build/interface/api/upgrade-renew-subscription.interface.d.ts +1 -1
- package/build/interface/api/upgrade-subscription.interface.d.ts +1 -1
- package/build/interface/api/userentity-without-password.interface.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PaymentMode, BookingDetailsStatus } from "../../@enum";
|
|
2
2
|
import { IBookingDetailsEntity } from "../../@type";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ICreateRecurringSlotBookingResponse extends IBookingDetailsEntity {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
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
|
+
}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { OrganizationStatus } from "../../@enum";
|
|
2
1
|
import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
|
|
3
|
-
export type
|
|
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
|
|
2
|
+
export interface ICreateSubscriptionResponse extends Array<ISubscriptionEntity> {
|
|
3
3
|
}
|
|
4
4
|
export interface ICreateSubscriptionRequest {
|
|
5
5
|
from: string;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
|
5
|
+
export interface IGetBookingsByOrganizationIdResponse {
|
|
6
6
|
turfs: {
|
|
7
7
|
[turfId: number]: ITurf;
|
|
8
8
|
};
|
|
@@ -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
|
|
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
|
|
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
|
|
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 {
|
|
3
|
-
export interface
|
|
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?:
|
|
19
|
+
owners?: IUserEntityWithoutPasswordResponse[];
|
|
20
20
|
turfs?: ITurfEntity[];
|
|
21
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
|
|
2
2
|
import { OrganizationStatus } from "../../@enum";
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
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]:
|
|
30
|
+
[userId: string]: IUserEntityWithoutPasswordResponse;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRegistrationEntity, ISubscriptionEntity, ITurf } from "../../@type";
|
|
2
|
-
import {
|
|
2
|
+
import { IUserEntityWithoutPasswordResponse } from "./userentity-without-password.interface";
|
|
3
3
|
import { OrganizationStatus } from "../../@enum";
|
|
4
|
-
export interface
|
|
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]:
|
|
29
|
+
[userId: string]: IUserEntityWithoutPasswordResponse;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -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
|
|
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
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { PaymentMode, BookingDetailsStatus } from "../../@enum";
|
|
2
2
|
import { IBookingDetailsEntity } from "../../@type";
|
|
3
|
-
export interface
|
|
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
|
|
2
|
+
export interface IRenewSubscriptionResponse extends ISubscriptionEntity {
|
|
3
3
|
}
|
|
4
4
|
export interface IRenewSubscriptionRequest {
|
|
5
5
|
from: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBankDetailsEntity, IUploadedMulterFile } from "../../@type";
|
|
2
|
-
export interface
|
|
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
|
|
3
|
+
export interface IUpdateConfigurationResponse extends Array<IConfigurationsEntity> {
|
|
4
4
|
}
|
|
5
5
|
export interface IUpdateConfigurationRequest {
|
|
6
6
|
key: ConfigurationKey;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
4
|
-
var
|
|
5
|
-
function
|
|
3
|
+
exports.IUpdateStaffMemberRequest = void 0;
|
|
4
|
+
var IUpdateStaffMemberRequest = /** @class */ (function () {
|
|
5
|
+
function IUpdateStaffMemberRequest() {
|
|
6
6
|
}
|
|
7
|
-
return
|
|
7
|
+
return IUpdateStaffMemberRequest;
|
|
8
8
|
}());
|
|
9
|
-
exports.
|
|
9
|
+
exports.IUpdateStaffMemberRequest = IUpdateStaffMemberRequest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SubscriptionStatus } from "../../@enum";
|
|
2
2
|
import { ISubscriptionEntity } from "../../@type";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IUpdateSubscriptionResponse extends ISubscriptionEntity {
|
|
4
4
|
advanceAmount?: number;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
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
|
+
}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
import { ITurfEntity } from "../../@type";
|
|
2
|
-
|
|
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
|
|
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
|
|
2
|
+
export interface IUpgradeSubscriptionResponse extends ISubscriptionEntity {
|
|
3
3
|
}
|
|
4
4
|
export interface IUpgradeSubscriptionRequest {
|
|
5
5
|
pricingPlanId: number;
|