turf-common 1.1.1-beta.5 → 1.1.1-beta.52

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 (77) hide show
  1. package/README.md +20 -20
  2. package/build/@enum.d.ts +3 -0
  3. package/build/@enum.js +3 -0
  4. package/build/@enums/socket-io.d.ts +1 -0
  5. package/build/@enums/socket-io.js +17 -0
  6. package/build/@type.d.ts +1 -0
  7. package/build/@type.js +2 -0
  8. package/build/@types/socket-io.d.ts +1 -0
  9. package/build/@types/socket-io.js +17 -0
  10. package/build/enums/bookings-status.enum.d.ts +5 -0
  11. package/build/enums/bookings-status.enum.js +9 -0
  12. package/build/enums/configuration-description.enum.d.ts +3 -1
  13. package/build/enums/configuration-description.enum.js +2 -0
  14. package/build/enums/configuration-key.enum.d.ts +4 -2
  15. package/build/enums/configuration-key.enum.js +4 -0
  16. package/build/enums/configuration-text.enum.d.ts +3 -1
  17. package/build/enums/configuration-text.enum.js +2 -0
  18. package/build/enums/cron-jobs-name.enum.d.ts +3 -1
  19. package/build/enums/cron-jobs-name.enum.js +2 -0
  20. package/build/enums/socket-io-booking-operation.enum.d.ts +6 -0
  21. package/build/enums/socket-io-booking-operation.enum.js +10 -0
  22. package/build/enums/timezone.enum.d.ts +3 -0
  23. package/build/enums/timezone.enum.js +7 -0
  24. package/build/interface/api/create-bank-details.interface.d.ts +6 -0
  25. package/build/interface/api/create-turf.interface.d.ts +1 -2
  26. package/build/interface/api/get-booking-by-organization-id.interface.d.ts +3 -2
  27. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +5 -2
  28. package/build/interface/api/get-current-subscription.interface.d.ts +4 -0
  29. package/build/interface/api/get-organization-by-orgid.interface.d.ts +5 -17
  30. package/build/interface/api/get-registration-by-id.types.d.ts +11 -36
  31. package/build/interface/api/get-registration-entities.interface.d.ts +21 -34
  32. package/build/interface/api/get-sports.interface.d.ts +4 -0
  33. package/build/interface/api/get-sports.interface.js +2 -0
  34. package/build/interface/api/get-subscription-entities.interface.d.ts +2 -0
  35. package/build/interface/api/index.d.ts +2 -0
  36. package/build/interface/api/index.js +2 -0
  37. package/build/interface/api/update-bank-detail.interface.d.ts +2 -1
  38. package/build/interface/api/update-staff-member.interface.d.ts +1 -1
  39. package/build/interface/api/update-subscription.interface.d.ts +2 -0
  40. package/build/interface/api/update-turf-details.interface.d.ts +1 -2
  41. package/build/interface/booking-details-with-code.interface.d.ts +2 -1
  42. package/build/interface/date-formatter.interface.d.ts +4 -0
  43. package/build/interface/date-formatter.interface.js +2 -0
  44. package/build/interface/entity/sports-entity.interface.d.ts +6 -0
  45. package/build/interface/entity/sports-entity.interface.js +2 -0
  46. package/build/interface/entity/subscription-pitch-mapping.interface.d.ts +2 -1
  47. package/build/interface/entity/subscription-pitch-mapping.interface.js +0 -1
  48. package/build/interface/formate-date-and-time.interface.d.ts +6 -0
  49. package/build/interface/formate-date-and-time.interface.js +2 -0
  50. package/build/interface/modify-turf.interface.d.ts +7 -0
  51. package/build/interface/modify-turf.interface.js +2 -0
  52. package/build/interface/socket-io-bookings.interface.d.ts +12 -0
  53. package/build/interface/socket-io-bookings.interface.js +2 -0
  54. package/build/interface/time-formatter.interface.d.ts +4 -0
  55. package/build/interface/time-formatter.interface.js +2 -0
  56. package/build/interface/ui/upgrade-subscription-data.interface.d.ts +15 -0
  57. package/build/interface/ui/upgrade-subscription-data.interface.js +2 -0
  58. package/build/models/billing-cycle-model.d.ts +1 -0
  59. package/build/models/billing-cycle-model.js +7 -0
  60. package/build/models/booking-code-model.d.ts +21 -4
  61. package/build/models/booking-code-model.js +112 -17
  62. package/build/models/entity/subscription-model.d.ts +11 -0
  63. package/build/models/entity/subscription-model.js +106 -3
  64. package/build/models/entity/turf-model.d.ts +4 -2
  65. package/build/models/entity/turf-model.js +29 -1
  66. package/build/models/pricing-plan-model.d.ts +3 -0
  67. package/build/models/pricing-plan-model.js +22 -0
  68. package/build/models/subscribed-pricing-plan-model.d.ts +11 -2
  69. package/build/models/subscribed-pricing-plan-model.js +45 -11
  70. package/build/models/time-slot-model.d.ts +1 -0
  71. package/build/models/time-slot-model.js +3 -0
  72. package/build/types/bookingdetails-with-booking.type.d.ts +2 -28
  73. package/build/utils/constant.d.ts +1 -0
  74. package/build/utils/constant.js +4 -0
  75. package/build/utils/date-util.d.ts +15 -0
  76. package/build/utils/date-util.js +63 -0
  77. package/package.json +38 -34
package/README.md CHANGED
@@ -1,20 +1,20 @@
1
- ## 1 npm init -y
2
-
3
- ## 2 npm login
4
-
5
- ## 3 npm version patch
6
-
7
- # //it increase version
8
-
9
- ## 3 npm publish --access public
10
-
11
- # //npm publish by default --access public
12
-
13
- ## 4 npm run version:deploy
14
-
15
- ### deploy version
16
-
17
- ## Client side
18
-
19
- update package command <br />
20
- npm update turf-comman
1
+ ## 1 npm init -y
2
+
3
+ ## 2 npm login
4
+
5
+ ## 3 npm version patch
6
+
7
+ # //it increase version
8
+
9
+ ## 3 npm publish --access public
10
+
11
+ # //npm publish by default --access public
12
+
13
+ ## 4 npm run version:deploy
14
+
15
+ ### deploy version
16
+
17
+ ## Client side
18
+
19
+ update package command <br />
20
+ npm update turf-comman
package/build/@enum.d.ts CHANGED
@@ -18,3 +18,6 @@ export * from "./enums/modification-discount-policy.enum";
18
18
  export * from "./enums/valid-coupon-type.enum";
19
19
  export * from "./enums/configuration-description.enum";
20
20
  export * from "./enums/configuration-text.enum";
21
+ export * from "./enums/booking-fetch-filter.enum";
22
+ export * from "./enums/timezone.enum";
23
+ export * from "./enums/bookings-status.enum";
package/build/@enum.js CHANGED
@@ -34,3 +34,6 @@ __exportStar(require("./enums/modification-discount-policy.enum"), exports);
34
34
  __exportStar(require("./enums/valid-coupon-type.enum"), exports);
35
35
  __exportStar(require("./enums/configuration-description.enum"), exports);
36
36
  __exportStar(require("./enums/configuration-text.enum"), exports);
37
+ __exportStar(require("./enums/booking-fetch-filter.enum"), exports);
38
+ __exportStar(require("./enums/timezone.enum"), exports);
39
+ __exportStar(require("./enums/bookings-status.enum"), exports);
@@ -0,0 +1 @@
1
+ export * from "../enums/socket-io-booking-operation.enum";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../enums/socket-io-booking-operation.enum"), exports);
package/build/@type.d.ts CHANGED
@@ -27,3 +27,4 @@ export * from "./interface/without-token-registration-entity.types";
27
27
  export * from "./interface/modify.interface";
28
28
  export * from "./interface/modify-entity.interface";
29
29
  export * from "./interface/key-value.interface";
30
+ export * from "./interface/ui/upgrade-subscription-data.interface";
package/build/@type.js CHANGED
@@ -43,3 +43,5 @@ __exportStar(require("./interface/without-token-registration-entity.types"), exp
43
43
  __exportStar(require("./interface/modify.interface"), exports);
44
44
  __exportStar(require("./interface/modify-entity.interface"), exports);
45
45
  __exportStar(require("./interface/key-value.interface"), exports);
46
+ // changes for the ui
47
+ __exportStar(require("./interface/ui/upgrade-subscription-data.interface"), exports);
@@ -0,0 +1 @@
1
+ export * from "../interface/socket-io-bookings.interface";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../interface/socket-io-bookings.interface"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum BookingsStatus {
2
+ BOOKED = "booked",
3
+ BLOCKED = "blocked",
4
+ DELETE = "delete"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookingsStatus = void 0;
4
+ var BookingsStatus;
5
+ (function (BookingsStatus) {
6
+ BookingsStatus["BOOKED"] = "booked";
7
+ BookingsStatus["BLOCKED"] = "blocked";
8
+ BookingsStatus["DELETE"] = "delete";
9
+ })(BookingsStatus || (exports.BookingsStatus = BookingsStatus = {}));
@@ -1,3 +1,5 @@
1
1
  export declare enum ConfigurationDescription {
2
- SEND_DAILY_COLLECTION = "Daily payment collection will be sent by email to the owner"
2
+ SEND_DAILY_COLLECTION = "Daily payment collection will be sent by email to the owner",
3
+ SUBSCRIPTION_REMINDER = "Send reminder to owners",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
3
5
  }
@@ -4,4 +4,6 @@ exports.ConfigurationDescription = void 0;
4
4
  var ConfigurationDescription;
5
5
  (function (ConfigurationDescription) {
6
6
  ConfigurationDescription["SEND_DAILY_COLLECTION"] = "Daily payment collection will be sent by email to the owner";
7
+ ConfigurationDescription["SUBSCRIPTION_REMINDER"] = "Send reminder to owners";
8
+ ConfigurationDescription["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
7
9
  })(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
@@ -1,6 +1,8 @@
1
- import { CronJobsNames } from './cron-jobs-name.enum';
1
+ import { CronJobsNames } from "./cron-jobs-name.enum";
2
2
  export declare enum ConfigurationKey {
3
- SEND_DAILY_COLLECTION = "send_daily_collection"
3
+ SEND_DAILY_COLLECTION = "send_daily_collection",
4
+ SUBSCRIPTION_REMINDER = "subscription_reminder",
5
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
4
6
  }
5
7
  export declare namespace ConfigurationKey {
6
8
  function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
@@ -5,6 +5,8 @@ var cron_jobs_name_enum_1 = require("./cron-jobs-name.enum");
5
5
  var ConfigurationKey;
6
6
  (function (ConfigurationKey) {
7
7
  ConfigurationKey["SEND_DAILY_COLLECTION"] = "send_daily_collection";
8
+ ConfigurationKey["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
9
+ ConfigurationKey["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
8
10
  })(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
9
11
  // eslint-disable-next-line @typescript-eslint/no-namespace
10
12
  (function (ConfigurationKey) {
@@ -18,6 +20,8 @@ var ConfigurationKey;
18
20
  var _a;
19
21
  var cronJobConfigurationKeyMapping = (_a = {},
20
22
  _a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
23
+ _a[ConfigurationKey.SUBSCRIPTION_REMINDER] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_REMINDER,
24
+ _a[ConfigurationKey.SUBSCRIPTION_ACTIVATION] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_ACTIVATION,
21
25
  _a);
22
26
  return cronJobConfigurationKeyMapping[configurationKey];
23
27
  }
@@ -1,3 +1,5 @@
1
1
  export declare enum ConfigurationText {
2
- SEND_DAILY_COLLECTION = "A daily payment collection email will be sent to the owner"
2
+ SEND_DAILY_COLLECTION = "A daily payment collection email will be sent to the owner",
3
+ SUBSCRIPTION_REMINDER = "Send reminder to owners on specific days",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
3
5
  }
@@ -4,4 +4,6 @@ exports.ConfigurationText = void 0;
4
4
  var ConfigurationText;
5
5
  (function (ConfigurationText) {
6
6
  ConfigurationText["SEND_DAILY_COLLECTION"] = "A daily payment collection email will be sent to the owner";
7
+ ConfigurationText["SUBSCRIPTION_REMINDER"] = "Send reminder to owners on specific days";
8
+ ConfigurationText["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
7
9
  })(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
@@ -1,3 +1,5 @@
1
1
  export declare enum CronJobsNames {
2
- SEND_DAILY_COLLECTION = "send_daily_collection"
2
+ SEND_DAILY_COLLECTION = "send_daily_collection",
3
+ SUBSCRIPTION_REMINDER = "subscription_reminder",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
3
5
  }
@@ -4,4 +4,6 @@ exports.CronJobsNames = void 0;
4
4
  var CronJobsNames;
5
5
  (function (CronJobsNames) {
6
6
  CronJobsNames["SEND_DAILY_COLLECTION"] = "send_daily_collection";
7
+ CronJobsNames["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
8
+ CronJobsNames["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
7
9
  })(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum BookingOperations {
2
+ BOOKED = "booked",
3
+ BLOCKED = "blocked",
4
+ DELETE = "delete",
5
+ MODIFY = "modify"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookingOperations = void 0;
4
+ var BookingOperations;
5
+ (function (BookingOperations) {
6
+ BookingOperations["BOOKED"] = "booked";
7
+ BookingOperations["BLOCKED"] = "blocked";
8
+ BookingOperations["DELETE"] = "delete";
9
+ BookingOperations["MODIFY"] = "modify";
10
+ })(BookingOperations || (exports.BookingOperations = BookingOperations = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum Timezone {
2
+ ASIA_KOLKATA = "Asia/Kolkata"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Timezone = void 0;
4
+ var Timezone;
5
+ (function (Timezone) {
6
+ Timezone["ASIA_KOLKATA"] = "Asia/Kolkata";
7
+ })(Timezone || (exports.Timezone = Timezone = {}));
@@ -13,4 +13,10 @@ export interface ICreateBankDetailRequest {
13
13
  upiId?: string;
14
14
  bankAddress?: string;
15
15
  branch: string;
16
+ files: Files[];
17
+ }
18
+ export interface Files {
19
+ key: string;
20
+ value: File;
21
+ name: string;
16
22
  }
@@ -1,4 +1,3 @@
1
- import { PitchSports } from "../../enums/pitch-sports.enum";
2
1
  export interface ICreateTurfRequest {
3
2
  turfName: string;
4
3
  numberOfPitches: number;
@@ -10,5 +9,5 @@ export interface IPitches {
10
9
  sports: ISports[];
11
10
  }
12
11
  export interface ISports {
13
- name: PitchSports;
12
+ name: string;
14
13
  }
@@ -1,10 +1,11 @@
1
- import { IModifyEntity, ITurf } from "../../@type";
1
+ import { IModifyEntity } from "../../@type";
2
2
  import { IBookingDetailsWithBookingCodes } 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
+ import { IModifyTurf } from "../modify-turf.interface";
5
6
  export interface IGetBookingsByOrganizationIdResponse {
6
7
  turfs: {
7
- [turfId: number]: ITurf;
8
+ [turfId: number]: IModifyTurf;
8
9
  };
9
10
  pending_refund: {
10
11
  [id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
@@ -1,6 +1,9 @@
1
1
  import { CronJobsNames, CronJobsStatus } from "../../@enum";
2
- import { ICronJobsEntity } from "../../@type";
3
- export interface IGetCronJobByDateRangeNameStatusResponse extends Array<ICronJobsEntity> {
2
+ import { ICronJobsEntity, Modify } from "../../@type";
3
+ export interface IGetCronJobByDateRangeNameStatusResponse extends Array<Modify<ICronJobsEntity, {
4
+ startTime: string;
5
+ endTime: string | null;
6
+ }>> {
4
7
  }
5
8
  export interface IGetCronJobByDateRangeNameStatusRequest {
6
9
  dateRange?: string;
@@ -2,6 +2,8 @@ import { ISubscriptionEntity, ISubscriptionPitchMappingEntity, Modify } from "..
2
2
  export interface IGetCurrentSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
3
  createdOn: string;
4
4
  updatedOn: string;
5
+ from: string;
6
+ to: string;
5
7
  }> {
6
8
  details: Modify<ISubscriptionPitchMappingEntity, {
7
9
  createdOn: string;
@@ -10,5 +12,7 @@ export interface IGetCurrentSubscriptionResponse extends Modify<ISubscriptionEnt
10
12
  next: Modify<ISubscriptionEntity, {
11
13
  createdOn: string;
12
14
  updatedOn: string;
15
+ from: string;
16
+ to: string;
13
17
  }> | null;
14
18
  }
@@ -1,26 +1,14 @@
1
- import { ITurfEntity, Modify } from "../../@type";
1
+ import { IOrganizationEntity, ITurfEntity, Modify } from "../../@type";
2
2
  import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
3
- export interface IGetOrganizationByOrgIdResponse {
4
- id: number;
5
- name: string;
6
- email: string | null;
7
- contact_no: string | null;
8
- type: string;
9
- pan_no: string;
10
- pan_file_path: string;
11
- gst_no: string | null;
12
- gst_file_path: string | null;
13
- deed: string | null;
14
- deed_file_path: string | null;
3
+ export interface IGetOrganizationByOrgIdResponse extends Modify<IOrganizationEntity, {
15
4
  createdOn: string;
16
5
  updatedOn: string;
17
- createdBy: number;
18
- updatedBy: number;
19
- owners?: Modify<IUserEntityWithoutPassword, {
6
+ turfs: Modify<ITurfEntity, {
20
7
  createdOn: string;
21
8
  updatedOn: string;
22
9
  }>[];
23
- turfs?: Modify<ITurfEntity, {
10
+ }> {
11
+ owners?: Modify<IUserEntityWithoutPassword, {
24
12
  createdOn: string;
25
13
  updatedOn: string;
26
14
  }>[];
@@ -1,45 +1,20 @@
1
- import { IModifyEntity, IPitch, IRegistrationEntity, ISubscriptionEntity, ITurf, Modify } from "../../@type";
2
- import { OrganizationStatus } from "../../@enum";
3
- import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
1
+ import { IRegistrationEntity, ISubscriptionEntity } from "../entity";
2
+ import { IModifyEntity } from "../modify-entity.interface";
3
+ import { Modify } from "../modify.interface";
4
+ import { IOrganizationWithTurfAndOwners } from "./get-registration-entities.interface";
4
5
  export interface IGetRegistrationResponse {
5
6
  [registrationId: string]: {
6
7
  registration: IModifyEntity<IRegistrationEntity>;
7
8
  organization: {
8
- [id: string]: {
9
- id: number;
10
- name: string;
11
- email: string | null;
12
- contact_no: string | null;
13
- type: string;
14
- pan_no: string;
15
- pan_file_path: string;
16
- gst_no: string | null;
17
- gst_file_path: string | null;
18
- deed: string | null;
19
- deed_file_path: string | null;
20
- createdBy: number;
21
- createdOn: string;
22
- updatedBy: number;
23
- updatedOn: string;
24
- status: OrganizationStatus;
25
- registrationId: number;
26
- turfs: {
27
- [turfId: string]: Modify<ITurf, {
28
- createdOn: string;
29
- updatedOn: string;
30
- pitches: Modify<IPitch, {
31
- createdOn: string;
32
- updatedOn: string;
33
- }>[];
34
- }>;
35
- };
36
- owners: {
37
- [userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
38
- };
39
- };
9
+ [id: string]: IOrganizationWithTurfAndOwners;
40
10
  };
41
11
  subscription: {
42
- [id: string]: IModifyEntity<ISubscriptionEntity>;
12
+ [id: string]: Modify<ISubscriptionEntity, {
13
+ from: string;
14
+ to: string;
15
+ createdOn: string;
16
+ updatedOn: string;
17
+ }>;
43
18
  };
44
19
  };
45
20
  }
@@ -1,43 +1,30 @@
1
- import { IModifyEntity, IPitch, IRegistrationEntity, ISubscriptionEntity, ITurf, Modify } from "../../@type";
1
+ import { IOrganizationEntity, IRegistrationEntity, ISubscriptionEntity } from "../entity";
2
+ import { IModifyEntity } from "../modify-entity.interface";
3
+ import { IModifyTurf } from "../modify-turf.interface";
4
+ import { Modify } from "../modify.interface";
2
5
  import { IUserEntityWithoutPassword } from "./userentity-without-password.interface";
3
- import { OrganizationStatus } from "../../@enum";
4
6
  export interface IGetRegistrationEntityByIdResponse {
5
7
  registration: IModifyEntity<IRegistrationEntity>;
6
8
  organization: {
7
- [id: string]: {
8
- id: number;
9
- name: string;
10
- email: string | null;
11
- contact_no: string | null;
12
- type: string;
13
- pan_no: string;
14
- pan_file_path: string;
15
- gst_no: string | null;
16
- gst_file_path: string | null;
17
- deed: string | null;
18
- deed_file_path: string | null;
19
- createdBy: number;
9
+ [id: string]: IOrganizationWithTurfAndOwners;
10
+ };
11
+ subscription: {
12
+ [id: string]: Modify<ISubscriptionEntity, {
13
+ from: string;
14
+ to: string;
20
15
  createdOn: string;
21
- updatedBy: number;
22
16
  updatedOn: string;
23
- status: OrganizationStatus;
24
- registrationId: number;
25
- turfs: {
26
- [turfId: string]: Modify<ITurf, {
27
- createdOn: string;
28
- updatedOn: string;
29
- pitches: Modify<IPitch, {
30
- createdOn: string;
31
- updatedOn: string;
32
- }>[];
33
- }>;
34
- };
35
- owners: {
36
- [userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
37
- };
38
- };
17
+ }>;
39
18
  };
40
- subscription: {
41
- [id: string]: IModifyEntity<ISubscriptionEntity>;
19
+ }
20
+ export interface IOrganizationWithTurfAndOwners extends Modify<IOrganizationEntity, {
21
+ createdOn: string;
22
+ updatedOn: string;
23
+ turfs: {
24
+ [turfId: string]: IModifyTurf;
25
+ };
26
+ }> {
27
+ owners: {
28
+ [userId: string]: IModifyEntity<IUserEntityWithoutPassword>;
42
29
  };
43
30
  }
@@ -0,0 +1,4 @@
1
+ import { ISportsEntity } from "../entity/sports-entity.interface";
2
+ export interface IGetSports {
3
+ [sportName: string]: ISportsEntity;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,7 @@
1
1
  import { ISubscriptionEntity, Modify } from "../../@type";
2
2
  export interface IGetSubscriptionEntitiesResponse extends Array<Modify<ISubscriptionEntity, {
3
+ from: string;
4
+ to: string;
3
5
  createdOn: string;
4
6
  updatedOn: string;
5
7
  }>> {
@@ -70,3 +70,5 @@ export * from "./update-turf-details.interface";
70
70
  export * from "./create-registration-interface";
71
71
  export * from "./get-configuration.interface";
72
72
  export * from "./get-cancelled-booking.interface";
73
+ export * from "./get-sports.interface";
74
+ export * from "../entity/sports-entity.interface";
@@ -88,3 +88,5 @@ __exportStar(require("./update-turf-details.interface"), exports);
88
88
  __exportStar(require("./create-registration-interface"), exports);
89
89
  __exportStar(require("./get-configuration.interface"), exports);
90
90
  __exportStar(require("./get-cancelled-booking.interface"), exports);
91
+ __exportStar(require("./get-sports.interface"), exports);
92
+ __exportStar(require("../entity/sports-entity.interface"), exports);
@@ -1,4 +1,4 @@
1
- import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
1
+ import { Files, IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
2
2
  export interface IUpdateBankDetailResponse extends Modify<IBankDetailsEntity, {
3
3
  createdOn: string;
4
4
  updatedOn: string;
@@ -13,4 +13,5 @@ export interface IUpdateBankDetailRequest {
13
13
  upiId?: string;
14
14
  bankAddress?: string;
15
15
  branch?: string;
16
+ files: Files[];
16
17
  }
@@ -26,6 +26,6 @@ export interface IUpdateStaffMemberRequest {
26
26
  lastname?: string;
27
27
  phone?: number;
28
28
  turfids?: string[];
29
- email?: string[];
29
+ email?: string;
30
30
  password?: string;
31
31
  }
@@ -1,6 +1,8 @@
1
1
  import { SubscriptionStatus } from "../../@enum";
2
2
  import { ISubscriptionEntity, Modify } from "../../@type";
3
3
  export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
4
+ from: string;
5
+ to: string;
4
6
  createdOn: string;
5
7
  updatedOn: string;
6
8
  }> {
@@ -1,5 +1,4 @@
1
1
  import { PitchOperations } from "../../enums/pitch-operation.enum";
2
- import { PitchSports } from "../../enums/pitch-sports.enum";
3
2
  import { ITurfEntity } from "../entity";
4
3
  import { IModifyEntity } from "../../@type";
5
4
  export interface IUpdateTurfDetailsResponse extends IModifyEntity<ITurfEntity> {
@@ -17,5 +16,5 @@ export interface IUpdatePitches {
17
16
  sports?: IUpdateSports[];
18
17
  }
19
18
  export interface IUpdateSports {
20
- name: PitchSports;
19
+ name: string;
21
20
  }
@@ -1,5 +1,6 @@
1
1
  import { BookingDetailsStatus } from "../@enum";
2
- export interface IBookingDetailsWithCode {
2
+ import { IBookingDetailsEntity } from "./entity";
3
+ export interface IBookingDetailsWithCode extends IBookingDetailsEntity {
3
4
  id: number;
4
5
  turfId: number;
5
6
  pitchId: number;
@@ -0,0 +1,4 @@
1
+ export interface IDateFormatter {
2
+ dateFormat: string;
3
+ dateCode: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IEntityAuditColumn } from "./entity-audit-column.interface";
2
+ export interface ISportsEntity extends IEntityAuditColumn {
3
+ id: number;
4
+ name: string;
5
+ key: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
- export interface ISubscriptionPitchMappingEntity {
1
+ import { IEntityAuditColumn } from "./entity-audit-column.interface";
2
+ export interface ISubscriptionPitchMappingEntity extends IEntityAuditColumn {
2
3
  pitchId: number;
3
4
  turfId: number;
4
5
  subscriptionId: number;
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
@@ -0,0 +1,6 @@
1
+ export interface IFormateDateAndTime {
2
+ dateFormat: string;
3
+ timeFormat: string;
4
+ separator: string;
5
+ timeSeparator: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { IModifyEntity, IPitch, ITurf, Modify } from "../@type";
2
+ export interface IModifyTurf extends Modify<ITurf, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ pitches: IModifyEntity<IPitch>[];
6
+ }> {
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { BookingsStatus } from "../@enum";
2
+ import { BookingOperations } from "../@enums/socket-io";
3
+ export interface IBookings {
4
+ operation: BookingOperations;
5
+ bookingDetailId: number;
6
+ bookingCodes: IBookingCodes[];
7
+ }
8
+ export interface IBookingCodes {
9
+ code: string;
10
+ cost: string;
11
+ status?: BookingsStatus;
12
+ }