turf-common 1.1.1-beta.8 → 1.2.1-beta.0

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 (102) hide show
  1. package/build/@enum.d.ts +4 -0
  2. package/build/@enum.js +4 -0
  3. package/build/@enums/socket-io.d.ts +1 -0
  4. package/build/@enums/socket-io.js +17 -0
  5. package/build/@type.d.ts +2 -0
  6. package/build/@type.js +3 -0
  7. package/build/@types/socket-io.d.ts +1 -0
  8. package/build/@types/socket-io.js +17 -0
  9. package/build/@utils.d.ts +3 -0
  10. package/build/@utils.js +3 -0
  11. package/build/enums/bookings-status.enum.d.ts +5 -0
  12. package/build/enums/bookings-status.enum.js +9 -0
  13. package/build/enums/configuration-description.enum.d.ts +2 -1
  14. package/build/enums/configuration-description.enum.js +1 -0
  15. package/build/enums/configuration-key.enum.d.ts +2 -1
  16. package/build/enums/configuration-key.enum.js +2 -0
  17. package/build/enums/configuration-text.enum.d.ts +2 -1
  18. package/build/enums/configuration-text.enum.js +1 -0
  19. package/build/enums/cron-jobs-name.enum.d.ts +2 -1
  20. package/build/enums/cron-jobs-name.enum.js +1 -0
  21. package/build/enums/organization-type.enum.d.ts +5 -0
  22. package/build/enums/organization-type.enum.js +9 -0
  23. package/build/enums/socket-io-booking-operation.enum.d.ts +6 -0
  24. package/build/enums/socket-io-booking-operation.enum.js +10 -0
  25. package/build/enums/timezone.enum.d.ts +3 -0
  26. package/build/enums/timezone.enum.js +7 -0
  27. package/build/interface/api/create-bank-details.interface.d.ts +6 -0
  28. package/build/interface/api/create-coupon.interface.d.ts +1 -1
  29. package/build/interface/api/create-organization.interface.d.ts +0 -1
  30. package/build/interface/api/create-turf.interface.d.ts +1 -2
  31. package/build/interface/api/create-user.interface.d.ts +1 -2
  32. package/build/interface/api/get-booking-by-organization-id.interface.d.ts +3 -2
  33. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +5 -2
  34. package/build/interface/api/get-current-subscription.interface.d.ts +4 -0
  35. package/build/interface/api/get-organization-by-orgid.interface.d.ts +5 -17
  36. package/build/interface/api/get-registration-by-id.types.d.ts +11 -36
  37. package/build/interface/api/get-registration-entities.interface.d.ts +21 -34
  38. package/build/interface/api/get-sports.interface.d.ts +4 -0
  39. package/build/interface/api/get-sports.interface.js +2 -0
  40. package/build/interface/api/get-subscription-entities.interface.d.ts +2 -0
  41. package/build/interface/api/index.d.ts +3 -0
  42. package/build/interface/api/index.js +3 -0
  43. package/build/interface/api/login-response.interface.d.ts +0 -1
  44. package/build/interface/api/staff-member-list.interface.d.ts +0 -1
  45. package/build/interface/api/update-bank-detail.interface.d.ts +2 -1
  46. package/build/interface/api/update-sports-interface.d.ts +3 -0
  47. package/build/interface/api/update-sports-interface.js +2 -0
  48. package/build/interface/api/update-staff-member.interface.d.ts +5 -20
  49. package/build/interface/api/update-subscription.interface.d.ts +2 -0
  50. package/build/interface/api/update-turf-details.interface.d.ts +1 -2
  51. package/build/interface/booking-details-with-code.interface.d.ts +2 -1
  52. package/build/interface/date-formatter.interface.d.ts +4 -0
  53. package/build/interface/date-formatter.interface.js +2 -0
  54. package/build/interface/entity/organization-entity.interface.d.ts +2 -1
  55. package/build/interface/entity/sports-entity.interface.d.ts +6 -0
  56. package/build/interface/entity/sports-entity.interface.js +2 -0
  57. package/build/interface/entity/subscription-entity.interface.d.ts +5 -1
  58. package/build/interface/entity/subscription-pitch-mapping.interface.d.ts +2 -1
  59. package/build/interface/entity/subscription-pitch-mapping.interface.js +0 -1
  60. package/build/interface/entity/user-entity.interface.d.ts +0 -1
  61. package/build/interface/formate-date-and-time.interface.d.ts +6 -0
  62. package/build/interface/formate-date-and-time.interface.js +2 -0
  63. package/build/interface/get-booking-by-id.interface.d.ts +1 -3
  64. package/build/interface/modify-turf.interface.d.ts +7 -0
  65. package/build/interface/modify-turf.interface.js +2 -0
  66. package/build/interface/socket-io-bookings.interface.d.ts +12 -0
  67. package/build/interface/socket-io-bookings.interface.js +2 -0
  68. package/build/interface/time-formatter.interface.d.ts +4 -0
  69. package/build/interface/time-formatter.interface.js +2 -0
  70. package/build/interface/ui/booking-data.interface.d.ts +4 -0
  71. package/build/interface/ui/booking-data.interface.js +2 -0
  72. package/build/interface/ui/upgrade-subscription-data.interface.d.ts +15 -0
  73. package/build/interface/ui/upgrade-subscription-data.interface.js +2 -0
  74. package/build/models/billing-cycle-model.d.ts +1 -0
  75. package/build/models/billing-cycle-model.js +7 -0
  76. package/build/models/booking-code-model.d.ts +21 -4
  77. package/build/models/booking-code-model.js +112 -17
  78. package/build/models/charge-model.d.ts +7 -0
  79. package/build/models/charge-model.js +47 -0
  80. package/build/models/entity/subscription-model.d.ts +12 -0
  81. package/build/models/entity/subscription-model.js +106 -3
  82. package/build/models/entity/turf-model.d.ts +4 -2
  83. package/build/models/entity/turf-model.js +29 -1
  84. package/build/models/entity/user-model.d.ts +0 -1
  85. package/build/models/pricing-plan-model.d.ts +3 -0
  86. package/build/models/pricing-plan-model.js +22 -0
  87. package/build/models/subscribed-pricing-plan-model.d.ts +13 -2
  88. package/build/models/subscribed-pricing-plan-model.js +45 -11
  89. package/build/models/time-slot-model.d.ts +1 -0
  90. package/build/models/time-slot-model.js +3 -0
  91. package/build/types/bookingdetails-with-booking.type.d.ts +2 -28
  92. package/build/utils/constant.d.ts +1 -0
  93. package/build/utils/constant.js +4 -0
  94. package/build/utils/date-util.d.ts +16 -0
  95. package/build/utils/date-util.js +69 -0
  96. package/build/utils/format-string-with-hyphens.d.ts +1 -0
  97. package/build/utils/format-string-with-hyphens.js +7 -0
  98. package/build/utils/math-util.d.ts +14 -0
  99. package/build/utils/math-util.js +39 -0
  100. package/build/utils/string-utils.d.ts +19 -0
  101. package/build/utils/string-utils.js +29 -0
  102. package/package.json +5 -1
package/build/@enum.d.ts CHANGED
@@ -18,3 +18,7 @@ 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";
24
+ export * from "./enums/organization-type.enum";
package/build/@enum.js CHANGED
@@ -34,3 +34,7 @@ __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);
40
+ __exportStar(require("./enums/organization-type.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,5 @@ 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";
31
+ export * from "./interface/ui/booking-data.interface";
package/build/@type.js CHANGED
@@ -43,3 +43,6 @@ __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);
48
+ __exportStar(require("./interface/ui/booking-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);
package/build/@utils.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  export * from "./interface/api/utils";
2
+ export * from "./utils/string-utils";
3
+ export * from "./utils/date-util";
4
+ export * from "./utils/math-util";
package/build/@utils.js CHANGED
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./interface/api/utils"), exports);
18
+ __exportStar(require("./utils/string-utils"), exports);
19
+ __exportStar(require("./utils/date-util"), exports);
20
+ __exportStar(require("./utils/math-util"), 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,4 +1,5 @@
1
1
  export declare enum ConfigurationDescription {
2
2
  SEND_DAILY_COLLECTION = "Daily payment collection will be sent by email to the owner",
3
- SUBSCRIPTION_REMINDER = "Send reminder to owners"
3
+ SUBSCRIPTION_REMINDER = "Send reminder to owners",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
4
5
  }
@@ -5,4 +5,5 @@ var ConfigurationDescription;
5
5
  (function (ConfigurationDescription) {
6
6
  ConfigurationDescription["SEND_DAILY_COLLECTION"] = "Daily payment collection will be sent by email to the owner";
7
7
  ConfigurationDescription["SUBSCRIPTION_REMINDER"] = "Send reminder to owners";
8
+ ConfigurationDescription["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
8
9
  })(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
@@ -1,7 +1,8 @@
1
1
  import { CronJobsNames } from "./cron-jobs-name.enum";
2
2
  export declare enum ConfigurationKey {
3
3
  SEND_DAILY_COLLECTION = "send_daily_collection",
4
- SUBSCRIPTION_REMINDER = "subscription_reminder"
4
+ SUBSCRIPTION_REMINDER = "subscription_reminder",
5
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
5
6
  }
6
7
  export declare namespace ConfigurationKey {
7
8
  function CronJobsConfigurationsKeys(key: ConfigurationKey): boolean;
@@ -6,6 +6,7 @@ var ConfigurationKey;
6
6
  (function (ConfigurationKey) {
7
7
  ConfigurationKey["SEND_DAILY_COLLECTION"] = "send_daily_collection";
8
8
  ConfigurationKey["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
9
+ ConfigurationKey["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
9
10
  })(ConfigurationKey || (exports.ConfigurationKey = ConfigurationKey = {}));
10
11
  // eslint-disable-next-line @typescript-eslint/no-namespace
11
12
  (function (ConfigurationKey) {
@@ -20,6 +21,7 @@ var ConfigurationKey;
20
21
  var cronJobConfigurationKeyMapping = (_a = {},
21
22
  _a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
22
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,
23
25
  _a);
24
26
  return cronJobConfigurationKeyMapping[configurationKey];
25
27
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum ConfigurationText {
2
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"
3
+ SUBSCRIPTION_REMINDER = "Send reminder to owners on specific days",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
4
5
  }
@@ -5,4 +5,5 @@ var ConfigurationText;
5
5
  (function (ConfigurationText) {
6
6
  ConfigurationText["SEND_DAILY_COLLECTION"] = "A daily payment collection email will be sent to the owner";
7
7
  ConfigurationText["SUBSCRIPTION_REMINDER"] = "Send reminder to owners on specific days";
8
+ ConfigurationText["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
8
9
  })(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
@@ -1,4 +1,5 @@
1
1
  export declare enum CronJobsNames {
2
2
  SEND_DAILY_COLLECTION = "send_daily_collection",
3
- SUBSCRIPTION_REMINDER = "subscription_reminder"
3
+ SUBSCRIPTION_REMINDER = "subscription_reminder",
4
+ SUBSCRIPTION_ACTIVATION = "subscription_activation"
4
5
  }
@@ -5,4 +5,5 @@ var CronJobsNames;
5
5
  (function (CronJobsNames) {
6
6
  CronJobsNames["SEND_DAILY_COLLECTION"] = "send_daily_collection";
7
7
  CronJobsNames["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
8
+ CronJobsNames["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
8
9
  })(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum OrganizationType {
2
+ PARTNERSHIP = "partnership",
3
+ COMPANY = "company",
4
+ PROPRIETOR = "proprietor"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationType = void 0;
4
+ var OrganizationType;
5
+ (function (OrganizationType) {
6
+ OrganizationType["PARTNERSHIP"] = "partnership";
7
+ OrganizationType["COMPANY"] = "company";
8
+ OrganizationType["PROPRIETOR"] = "proprietor";
9
+ })(OrganizationType || (exports.OrganizationType = OrganizationType = {}));
@@ -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,5 +1,5 @@
1
+ import { ValidCouponType } from "../../@enum";
1
2
  import { ICouponEntity, Modify } from "../../@type";
2
- import { ValidCouponType } from "../../enums/valid-coupon-type.enum";
3
3
  export interface ICreateCouponResponse extends Modify<ICouponEntity, {
4
4
  createdOn: string;
5
5
  updatedOn: string;
@@ -16,7 +16,6 @@ export interface ICreateOrganizationRequest {
16
16
  }
17
17
  export interface ICreateOrganizationUserInfo {
18
18
  first_name: string;
19
- last_name: string;
20
19
  email?: string;
21
20
  phone?: number;
22
21
  }
@@ -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,9 @@
1
1
  import { UserType } from "../../@enum";
2
2
  export interface IUserRequest {
3
3
  firstname: string;
4
- lastname: string;
5
4
  password: string;
6
5
  phone: number;
7
- email: string;
6
+ email?: string;
8
7
  turfids: string[];
9
8
  type: UserType;
10
9
  comments?: string;
@@ -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,6 @@ 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";
75
+ export * from "../api/update-sports-interface";
@@ -88,3 +88,6 @@ __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);
93
+ __exportStar(require("../api/update-sports-interface"), exports);
@@ -4,7 +4,6 @@ export interface ILoginResponse {
4
4
  accessToken: string;
5
5
  id: string;
6
6
  firstname: string;
7
- lastname: string;
8
7
  status: string;
9
8
  requireNewPassword: boolean;
10
9
  userId: number;
@@ -2,7 +2,6 @@ import { UserStatus } from "../../@enum";
2
2
  export interface IStaffMemberListResponse {
3
3
  id: number;
4
4
  firstname: string;
5
- lastname: string;
6
5
  phone: string;
7
6
  email: string;
8
7
  status: UserStatus;
@@ -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
  }
@@ -0,0 +1,3 @@
1
+ export interface IUpdateSportsRequest {
2
+ sports: string[];
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +1,9 @@
1
- import { UserStatus, UserType } from "../../@enum";
2
- export interface IUpdateStaffMemberResponse {
1
+ import { IUserEntity } from "../entity";
2
+ import { Modify } from "../modify.interface";
3
+ export interface IUpdateStaffMemberResponse extends Modify<Omit<IUserEntity, "password" | "turf">, {
3
4
  createdOn: string;
4
5
  updatedOn: string;
5
- createdBy: number;
6
- updatedBy: number;
7
- id: number;
8
- firstname: string;
9
- lastname: string;
10
- phone: string;
11
- email: string;
12
- status: UserStatus;
13
- is_email_verified: boolean;
14
- is_mobile_verified: boolean;
15
- is_account_verified: boolean;
16
- require_new_password: boolean;
17
- organization_id: number;
18
- type: UserType;
19
- registrationId: number;
20
- comments: null | string;
21
- imageUrl: null | string;
6
+ }> {
22
7
  turfids?: string[];
23
8
  }
24
9
  export interface IUpdateStaffMemberRequest {
@@ -26,6 +11,6 @@ export interface IUpdateStaffMemberRequest {
26
11
  lastname?: string;
27
12
  phone?: number;
28
13
  turfids?: string[];
29
- email?: string[];
14
+ email?: string;
30
15
  password?: string;
31
16
  }
@@ -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
  }