turf-common 1.3.1-beta.9 → 1.3.1

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 (433) hide show
  1. package/build/jest.config.d.ts +3 -0
  2. package/build/jest.config.js +10 -0
  3. package/build/src/@enums/socket-io.d.ts +1 -0
  4. package/build/src/@enums/socket-io.js +17 -0
  5. package/build/src/@types/socket-io.d.ts +1 -0
  6. package/build/src/@types/socket-io.js +17 -0
  7. package/build/src/enums/availability-view.enum.d.ts +4 -0
  8. package/build/src/enums/availability-view.enum.js +8 -0
  9. package/build/src/enums/booking-details-status.enum.d.ts +4 -0
  10. package/build/src/enums/booking-details-status.enum.js +8 -0
  11. package/build/src/enums/booking-fetch-filter.enum.d.ts +5 -0
  12. package/build/src/enums/booking-fetch-filter.enum.js +9 -0
  13. package/build/src/enums/booking-history-operation-type.enum.d.ts +12 -0
  14. package/build/src/enums/booking-history-operation-type.enum.js +20 -0
  15. package/build/src/enums/bookings-status.enum.d.ts +5 -0
  16. package/build/src/enums/bookings-status.enum.js +9 -0
  17. package/build/src/enums/configuration-description.enum.d.ts +5 -0
  18. package/build/src/enums/configuration-description.enum.js +9 -0
  19. package/build/src/enums/configuration-key.enum.d.ts +10 -0
  20. package/build/src/enums/configuration-key.enum.js +29 -0
  21. package/build/src/enums/configuration-text.enum.d.ts +5 -0
  22. package/build/src/enums/configuration-text.enum.js +9 -0
  23. package/build/src/enums/cron-jobs-name.enum.d.ts +5 -0
  24. package/build/src/enums/cron-jobs-name.enum.js +9 -0
  25. package/build/src/enums/cron-jobs-status.enum.d.ts +5 -0
  26. package/build/src/enums/cron-jobs-status.enum.js +9 -0
  27. package/build/src/enums/environment.enum.d.ts +5 -0
  28. package/build/src/enums/environment.enum.js +9 -0
  29. package/build/src/enums/faqs-status.enum.d.ts +3 -0
  30. package/build/src/enums/faqs-status.enum.js +7 -0
  31. package/build/src/enums/modification-discount-policy.enum.d.ts +5 -0
  32. package/build/src/enums/modification-discount-policy.enum.js +9 -0
  33. package/build/src/enums/organization-status.enum.d.ts +15 -0
  34. package/build/src/enums/organization-status.enum.js +31 -0
  35. package/build/src/enums/organization-type.enum.d.ts +5 -0
  36. package/build/src/enums/organization-type.enum.js +9 -0
  37. package/build/src/enums/payment-mode.enum.d.ts +4 -0
  38. package/build/src/enums/payment-mode.enum.js +8 -0
  39. package/build/src/enums/pitch-operation.enum.d.ts +5 -0
  40. package/build/src/enums/pitch-operation.enum.js +9 -0
  41. package/build/src/enums/pitch-sports.enum.d.ts +7 -0
  42. package/build/src/enums/pitch-sports.enum.js +11 -0
  43. package/build/src/enums/pitch-status.enum.d.ts +12 -0
  44. package/build/src/enums/pitch-status.enum.js +13 -0
  45. package/build/src/enums/pricing-plan-status.enum.d.ts +4 -0
  46. package/build/src/enums/pricing-plan-status.enum.js +8 -0
  47. package/build/src/enums/registration-status-enum.d.ts +12 -0
  48. package/build/src/enums/registration-status-enum.js +16 -0
  49. package/build/src/enums/socket-io-booking-operation.enum.d.ts +6 -0
  50. package/build/src/enums/socket-io-booking-operation.enum.js +10 -0
  51. package/build/src/enums/subscription-status.enum.d.ts +23 -0
  52. package/build/src/enums/subscription-status.enum.js +40 -0
  53. package/build/src/enums/timezone.enum.d.ts +3 -0
  54. package/build/src/enums/timezone.enum.js +7 -0
  55. package/build/src/enums/transaction-type.enum.d.ts +7 -0
  56. package/build/src/enums/transaction-type.enum.js +11 -0
  57. package/build/src/enums/user-status.enum.d.ts +11 -0
  58. package/build/src/enums/user-status.enum.js +15 -0
  59. package/build/src/enums/valid-coupon-type.enum.d.ts +6 -0
  60. package/build/src/enums/valid-coupon-type.enum.js +10 -0
  61. package/build/src/enums/valid-type.enum.d.ts +6 -0
  62. package/build/src/enums/valid-type.enum.js +10 -0
  63. package/build/src/exceptions/app-badrequest.exception.d.ts +4 -0
  64. package/build/src/exceptions/app-badrequest.exception.js +28 -0
  65. package/build/src/interface/api/activate-subscription.interface.d.ts +10 -0
  66. package/build/src/interface/api/activate-subscription.interface.js +2 -0
  67. package/build/src/interface/api/booking-availablity-by-pitch.interface.d.ts +39 -0
  68. package/build/src/interface/api/booking-availablity-by-pitch.interface.js +2 -0
  69. package/build/src/interface/api/cancellation-charges.interface.d.ts +17 -0
  70. package/build/src/interface/api/cancellation-charges.interface.js +2 -0
  71. package/build/src/interface/api/create-bank-details.interface.d.ts +22 -0
  72. package/build/src/interface/api/create-bank-details.interface.js +2 -0
  73. package/build/src/interface/api/create-cancellation-policy.interface.d.ts +12 -0
  74. package/build/src/interface/api/create-cancellation-policy.interface.js +2 -0
  75. package/build/src/interface/api/create-coupon.interface.d.ts +11 -0
  76. package/build/src/interface/api/create-coupon.interface.js +2 -0
  77. package/build/src/interface/api/create-faqs.interface.d.ts +15 -0
  78. package/build/src/interface/api/create-faqs.interface.js +2 -0
  79. package/build/src/interface/api/create-organization.interface.d.ts +21 -0
  80. package/build/src/interface/api/create-organization.interface.js +2 -0
  81. package/build/src/interface/api/create-pricing-plan.interface.d.ts +16 -0
  82. package/build/src/interface/api/create-pricing-plan.interface.js +2 -0
  83. package/build/src/interface/api/create-recurring-slot-booking.interface.d.ts +29 -0
  84. package/build/src/interface/api/create-recurring-slot-booking.interface.js +2 -0
  85. package/build/src/interface/api/create-registration-interface.d.ts +13 -0
  86. package/build/src/interface/api/create-registration-interface.js +2 -0
  87. package/build/src/interface/api/create-registration-transaction-output.interface.d.ts +2 -0
  88. package/build/src/interface/api/create-registration-transaction-output.interface.js +2 -0
  89. package/build/src/interface/api/create-subscription.interface.d.ts +18 -0
  90. package/build/src/interface/api/create-subscription.interface.js +2 -0
  91. package/build/src/interface/api/create-turf.interface.d.ts +13 -0
  92. package/build/src/interface/api/create-turf.interface.js +2 -0
  93. package/build/src/interface/api/create-user.interface.d.ts +10 -0
  94. package/build/src/interface/api/create-user.interface.js +2 -0
  95. package/build/src/interface/api/delete-bank-details-by-id.interface.d.ts +6 -0
  96. package/build/src/interface/api/delete-bank-details-by-id.interface.js +2 -0
  97. package/build/src/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
  98. package/build/src/interface/api/delete-booking-by-codes.interface.js +2 -0
  99. package/build/src/interface/api/delete-booking-info.interface.d.ts +3 -0
  100. package/build/src/interface/api/delete-booking-info.interface.js +2 -0
  101. package/build/src/interface/api/delete-pricing-plan.interface.d.ts +6 -0
  102. package/build/src/interface/api/delete-pricing-plan.interface.js +2 -0
  103. package/build/src/interface/api/get-all-booking-of-turf.interface.d.ts +23 -0
  104. package/build/src/interface/api/get-all-booking-of-turf.interface.js +2 -0
  105. package/build/src/interface/api/get-availability-by-turf.interface.d.ts +29 -0
  106. package/build/src/interface/api/get-availability-by-turf.interface.js +2 -0
  107. package/build/src/interface/api/get-bank-detail-by-id.interface.d.ts +6 -0
  108. package/build/src/interface/api/get-bank-detail-by-id.interface.js +2 -0
  109. package/build/src/interface/api/get-bank-detail-entities.interface.d.ts +6 -0
  110. package/build/src/interface/api/get-bank-detail-entities.interface.js +2 -0
  111. package/build/src/interface/api/get-booking-by-organization-id.interface.d.ts +30 -0
  112. package/build/src/interface/api/get-booking-by-organization-id.interface.js +2 -0
  113. package/build/src/interface/api/get-booking-customers.interface.d.ts +3 -0
  114. package/build/src/interface/api/get-booking-customers.interface.js +2 -0
  115. package/build/src/interface/api/get-booking-details-by-id.interface.d.ts +4 -0
  116. package/build/src/interface/api/get-booking-details-by-id.interface.js +2 -0
  117. package/build/src/interface/api/get-booking-history.interface.d.ts +4 -0
  118. package/build/src/interface/api/get-booking-history.interface.js +2 -0
  119. package/build/src/interface/api/get-booking-info.interface.d.ts +11 -0
  120. package/build/src/interface/api/get-booking-info.interface.js +2 -0
  121. package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +15 -0
  122. package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.js +2 -0
  123. package/build/src/interface/api/get-cancelled-booking.interface.d.ts +7 -0
  124. package/build/src/interface/api/get-cancelled-booking.interface.js +2 -0
  125. package/build/src/interface/api/get-collection.interface.d.ts +24 -0
  126. package/build/src/interface/api/get-collection.interface.js +2 -0
  127. package/build/src/interface/api/get-configuration.interface.d.ts +4 -0
  128. package/build/src/interface/api/get-configuration.interface.js +2 -0
  129. package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +12 -0
  130. package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.js +2 -0
  131. package/build/src/interface/api/get-current-subscription.interface.d.ts +18 -0
  132. package/build/src/interface/api/get-current-subscription.interface.js +2 -0
  133. package/build/src/interface/api/get-organization-by-orgid.interface.d.ts +15 -0
  134. package/build/src/interface/api/get-organization-by-orgid.interface.js +2 -0
  135. package/build/src/interface/api/get-price-by-organization-response.interface.d.ts +6 -0
  136. package/build/src/interface/api/get-price-by-organization-response.interface.js +2 -0
  137. package/build/src/interface/api/get-price-entity.interface.d.ts +10 -0
  138. package/build/src/interface/api/get-price-entity.interface.js +2 -0
  139. package/build/src/interface/api/get-price-query.interface.d.ts +10 -0
  140. package/build/src/interface/api/get-price-query.interface.js +2 -0
  141. package/build/src/interface/api/get-pricing-plan-by-date-response.interface.d.ts +23 -0
  142. package/build/src/interface/api/get-pricing-plan-by-date-response.interface.js +2 -0
  143. package/build/src/interface/api/get-pricing-plan-by-id.interface.d.ts +3 -0
  144. package/build/src/interface/api/get-pricing-plan-by-id.interface.js +2 -0
  145. package/build/src/interface/api/get-pricing-plan-entities.interface.d.ts +3 -0
  146. package/build/src/interface/api/get-pricing-plan-entities.interface.js +2 -0
  147. package/build/src/interface/api/get-registration-by-id.types.d.ts +20 -0
  148. package/build/src/interface/api/get-registration-by-id.types.js +2 -0
  149. package/build/src/interface/api/get-registration-entities.interface.d.ts +30 -0
  150. package/build/src/interface/api/get-registration-entities.interface.js +2 -0
  151. package/build/src/interface/api/get-sports.interface.d.ts +4 -0
  152. package/build/src/interface/api/get-sports.interface.js +2 -0
  153. package/build/src/interface/api/get-subscription-by-org-id.interface.d.ts +6 -0
  154. package/build/src/interface/api/get-subscription-by-org-id.interface.js +2 -0
  155. package/build/src/interface/api/get-subscription-entities.interface.d.ts +8 -0
  156. package/build/src/interface/api/get-subscription-entities.interface.js +2 -0
  157. package/build/src/interface/api/get-tournament.interface.d.ts +4 -0
  158. package/build/src/interface/api/get-tournament.interface.js +2 -0
  159. package/build/src/interface/api/get-turf-by-organization.interface.d.ts +6 -0
  160. package/build/src/interface/api/get-turf-by-organization.interface.js +2 -0
  161. package/build/src/interface/api/get-turf-entity-response.interface.d.ts +10 -0
  162. package/build/src/interface/api/get-turf-entity-response.interface.js +2 -0
  163. package/build/src/interface/api/index.d.ts +78 -0
  164. package/build/src/interface/api/index.js +96 -0
  165. package/build/src/interface/api/list-of-coupons.interface.d.ts +14 -0
  166. package/build/src/interface/api/list-of-coupons.interface.js +2 -0
  167. package/build/src/interface/api/login-response.interface.d.ts +22 -0
  168. package/build/src/interface/api/login-response.interface.js +2 -0
  169. package/build/src/interface/api/manual-trigger-cron-job.interface.d.ts +5 -0
  170. package/build/src/interface/api/manual-trigger-cron-job.interface.js +2 -0
  171. package/build/src/interface/api/one-slot-booking.interface.d.ts +24 -0
  172. package/build/src/interface/api/one-slot-booking.interface.js +2 -0
  173. package/build/src/interface/api/renew-subscription.interface.d.ts +19 -0
  174. package/build/src/interface/api/renew-subscription.interface.js +2 -0
  175. package/build/src/interface/api/set-price.interface.d.ts +6 -0
  176. package/build/src/interface/api/set-price.interface.js +2 -0
  177. package/build/src/interface/api/setup-registration.interface.d.ts +5 -0
  178. package/build/src/interface/api/setup-registration.interface.js +2 -0
  179. package/build/src/interface/api/staff-member-list.interface.d.ts +9 -0
  180. package/build/src/interface/api/staff-member-list.interface.js +2 -0
  181. package/build/src/interface/api/update-bank-detail.interface.d.ts +17 -0
  182. package/build/src/interface/api/update-bank-detail.interface.js +2 -0
  183. package/build/src/interface/api/update-booking-by-code-response.interface.d.ts +7 -0
  184. package/build/src/interface/api/update-booking-by-code-response.interface.js +2 -0
  185. package/build/src/interface/api/update-configuration.interface.d.ts +10 -0
  186. package/build/src/interface/api/update-configuration.interface.js +2 -0
  187. package/build/src/interface/api/update-coupon.interface.d.ts +9 -0
  188. package/build/src/interface/api/update-coupon.interface.js +2 -0
  189. package/build/src/interface/api/update-faqs-steps.interface.d.ts +11 -0
  190. package/build/src/interface/api/update-faqs-steps.interface.js +2 -0
  191. package/build/src/interface/api/update-faqs.interface.d.ts +6 -0
  192. package/build/src/interface/api/update-faqs.interface.js +2 -0
  193. package/build/src/interface/api/update-organization.interface.d.ts +21 -0
  194. package/build/src/interface/api/update-organization.interface.js +2 -0
  195. package/build/src/interface/api/update-pricing-plan-by-id.interface.d.ts +20 -0
  196. package/build/src/interface/api/update-pricing-plan-by-id.interface.js +2 -0
  197. package/build/src/interface/api/update-recurring-booking.interface.d.ts +52 -0
  198. package/build/src/interface/api/update-recurring-booking.interface.js +2 -0
  199. package/build/src/interface/api/update-registration-entities.interface.d.ts +8 -0
  200. package/build/src/interface/api/update-registration-entities.interface.js +2 -0
  201. package/build/src/interface/api/update-sports-interface.d.ts +3 -0
  202. package/build/src/interface/api/update-sports-interface.js +2 -0
  203. package/build/src/interface/api/update-staff-member.interface.d.ts +16 -0
  204. package/build/src/interface/api/update-staff-member.interface.js +2 -0
  205. package/build/src/interface/api/update-subscription.interface.d.ts +23 -0
  206. package/build/src/interface/api/update-subscription.interface.js +2 -0
  207. package/build/src/interface/api/update-turf-details.interface.d.ts +20 -0
  208. package/build/src/interface/api/update-turf-details.interface.js +2 -0
  209. package/build/src/interface/api/update-turf-transaction-output.d.ts +3 -0
  210. package/build/src/interface/api/update-turf-transaction-output.js +2 -0
  211. package/build/src/interface/api/upgrade-renew-subscription.interface.d.ts +10 -0
  212. package/build/src/interface/api/upgrade-renew-subscription.interface.js +2 -0
  213. package/build/src/interface/api/upgrade-subscription.interface.d.ts +21 -0
  214. package/build/src/interface/api/upgrade-subscription.interface.js +2 -0
  215. package/build/src/interface/api/userentity-without-password.interface.d.ts +5 -0
  216. package/build/src/interface/api/userentity-without-password.interface.js +2 -0
  217. package/build/src/interface/api/utils.d.ts +18 -0
  218. package/build/src/interface/api/utils.js +48 -0
  219. package/build/src/interface/billing-cycle-dto.interface.d.ts +8 -0
  220. package/build/src/interface/billing-cycle-dto.interface.js +2 -0
  221. package/build/src/interface/billing-cycle.interface.d.ts +7 -0
  222. package/build/src/interface/billing-cycle.interface.js +2 -0
  223. package/build/src/interface/booking-details-with-code.interface.d.ts +34 -0
  224. package/build/src/interface/booking-details-with-code.interface.js +2 -0
  225. package/build/src/interface/controller.interface.d.ts +6 -0
  226. package/build/src/interface/controller.interface.js +2 -0
  227. package/build/src/interface/convert-to-midnight-time.interface.d.ts +5 -0
  228. package/build/src/interface/convert-to-midnight-time.interface.js +2 -0
  229. package/build/src/interface/date-formatter.interface.d.ts +4 -0
  230. package/build/src/interface/date-formatter.interface.js +2 -0
  231. package/build/src/interface/dto/delete-booking-by-codes-dto.interface.d.ts +7 -0
  232. package/build/src/interface/dto/delete-booking-by-codes-dto.interface.js +2 -0
  233. package/build/src/interface/dto/update-booking-by-code-dto.interface.d.ts +13 -0
  234. package/build/src/interface/dto/update-booking-by-code-dto.interface.js +2 -0
  235. package/build/src/interface/entity/bank-details-entity.interface.d.ts +12 -0
  236. package/build/src/interface/entity/bank-details-entity.interface.js +2 -0
  237. package/build/src/interface/entity/booking-cancellation-entity.interface.d.ts +32 -0
  238. package/build/src/interface/entity/booking-cancellation-entity.interface.js +2 -0
  239. package/build/src/interface/entity/booking-customer-entity.interface.d.ts +8 -0
  240. package/build/src/interface/entity/booking-customer-entity.interface.js +2 -0
  241. package/build/src/interface/entity/booking-details-entity.interface.d.ts +29 -0
  242. package/build/src/interface/entity/booking-details-entity.interface.js +2 -0
  243. package/build/src/interface/entity/booking-history-entity.interface.d.ts +35 -0
  244. package/build/src/interface/entity/booking-history-entity.interface.js +2 -0
  245. package/build/src/interface/entity/booking-payment-history-entity.interface.d.ts +13 -0
  246. package/build/src/interface/entity/booking-payment-history-entity.interface.js +2 -0
  247. package/build/src/interface/entity/bookings-entity.interface.d.ts +6 -0
  248. package/build/src/interface/entity/bookings-entity.interface.js +2 -0
  249. package/build/src/interface/entity/cancellation-policy-entity.interface.d.ts +8 -0
  250. package/build/src/interface/entity/cancellation-policy-entity.interface.js +2 -0
  251. package/build/src/interface/entity/configurations-entity.interface.d.ts +9 -0
  252. package/build/src/interface/entity/configurations-entity.interface.js +2 -0
  253. package/build/src/interface/entity/coupon.entity.interface.d.ts +10 -0
  254. package/build/src/interface/entity/coupon.entity.interface.js +2 -0
  255. package/build/src/interface/entity/cron-jobs-entity.interface.d.ts +12 -0
  256. package/build/src/interface/entity/cron-jobs-entity.interface.js +2 -0
  257. package/build/src/interface/entity/entity-audit-column.interface.d.ts +12 -0
  258. package/build/src/interface/entity/entity-audit-column.interface.js +9 -0
  259. package/build/src/interface/entity/faqs-entity.interface.d.ts +10 -0
  260. package/build/src/interface/entity/faqs-entity.interface.js +2 -0
  261. package/build/src/interface/entity/index.d.ts +23 -0
  262. package/build/src/interface/entity/index.js +39 -0
  263. package/build/src/interface/entity/organization-entity.interface.d.ts +24 -0
  264. package/build/src/interface/entity/organization-entity.interface.js +2 -0
  265. package/build/src/interface/entity/pitch-entity.interface.d.ts +9 -0
  266. package/build/src/interface/entity/pitch-entity.interface.js +2 -0
  267. package/build/src/interface/entity/price-entity.interface.d.ts +5 -0
  268. package/build/src/interface/entity/price-entity.interface.js +2 -0
  269. package/build/src/interface/entity/pricing-plan-entity.interface.d.ts +16 -0
  270. package/build/src/interface/entity/pricing-plan-entity.interface.js +2 -0
  271. package/build/src/interface/entity/registration-entity.interface.d.ts +12 -0
  272. package/build/src/interface/entity/registration-entity.interface.js +2 -0
  273. package/build/src/interface/entity/sports-entity.interface.d.ts +6 -0
  274. package/build/src/interface/entity/sports-entity.interface.js +2 -0
  275. package/build/src/interface/entity/subscription-entity.interface.d.ts +26 -0
  276. package/build/src/interface/entity/subscription-entity.interface.js +2 -0
  277. package/build/src/interface/entity/subscription-pitch-mapping.interface.d.ts +8 -0
  278. package/build/src/interface/entity/subscription-pitch-mapping.interface.js +2 -0
  279. package/build/src/interface/entity/turf-entity.interface.d.ts +17 -0
  280. package/build/src/interface/entity/turf-entity.interface.js +2 -0
  281. package/build/src/interface/entity/user-entity.interface.d.ts +24 -0
  282. package/build/src/interface/entity/user-entity.interface.js +2 -0
  283. package/build/src/interface/formate-date-and-time.interface.d.ts +6 -0
  284. package/build/src/interface/formate-date-and-time.interface.js +2 -0
  285. package/build/src/interface/get-booking-by-id.interface.d.ts +56 -0
  286. package/build/src/interface/get-booking-by-id.interface.js +2 -0
  287. package/build/src/interface/get-booking-codes-per-thirty-min.interface.d.ts +4 -0
  288. package/build/src/interface/get-booking-codes-per-thirty-min.interface.js +2 -0
  289. package/build/src/interface/get-pricing-plan-by-date-response.interface.d.ts +23 -0
  290. package/build/src/interface/get-pricing-plan-by-date-response.interface.js +2 -0
  291. package/build/src/interface/get-turf-entity.interface.d.ts +34 -0
  292. package/build/src/interface/get-turf-entity.interface.js +2 -0
  293. package/build/src/interface/key-value.interface.d.ts +3 -0
  294. package/build/src/interface/key-value.interface.js +2 -0
  295. package/build/src/interface/model/booking-details-model.interface.d.ts +5 -0
  296. package/build/src/interface/model/booking-details-model.interface.js +2 -0
  297. package/build/src/interface/model/booking-entity-model.interface.d.ts +8 -0
  298. package/build/src/interface/model/booking-entity-model.interface.js +2 -0
  299. package/build/src/interface/model/cancellation-policy-model.interface.d.ts +4 -0
  300. package/build/src/interface/model/cancellation-policy-model.interface.js +2 -0
  301. package/build/src/interface/model/charge-model.interface.d.ts +13 -0
  302. package/build/src/interface/model/charge-model.interface.js +2 -0
  303. package/build/src/interface/model/configuration-model.interface.d.ts +4 -0
  304. package/build/src/interface/model/configuration-model.interface.js +2 -0
  305. package/build/src/interface/model/index.d.ts +10 -0
  306. package/build/src/interface/model/index.js +26 -0
  307. package/build/src/interface/model/price-model.interface.d.ts +3 -0
  308. package/build/src/interface/model/price-model.interface.js +2 -0
  309. package/build/src/interface/model/pricing-plan-entity-model.interface.d.ts +13 -0
  310. package/build/src/interface/model/pricing-plan-entity-model.interface.js +2 -0
  311. package/build/src/interface/model/pricing-plan-model.interface.d.ts +15 -0
  312. package/build/src/interface/model/pricing-plan-model.interface.js +2 -0
  313. package/build/src/interface/model/turf-model.interface.d.ts +7 -0
  314. package/build/src/interface/model/turf-model.interface.js +2 -0
  315. package/build/src/interface/model/user-model.interface.d.ts +3 -0
  316. package/build/src/interface/model/user-model.interface.js +2 -0
  317. package/build/src/interface/modify-entity.interface.d.ts +5 -0
  318. package/build/src/interface/modify-entity.interface.js +2 -0
  319. package/build/src/interface/modify-turf.interface.d.ts +7 -0
  320. package/build/src/interface/modify-turf.interface.js +2 -0
  321. package/build/src/interface/modify.interface.d.ts +1 -0
  322. package/build/src/interface/modify.interface.js +2 -0
  323. package/build/src/interface/ng-date-structure.interface.d.ts +5 -0
  324. package/build/src/interface/ng-date-structure.interface.js +2 -0
  325. package/build/src/interface/pitch-slab-dto.interface.d.ts +8 -0
  326. package/build/src/interface/pitch-slab-dto.interface.js +2 -0
  327. package/build/src/interface/pitch-slab.interface.d.ts +5 -0
  328. package/build/src/interface/pitch-slab.interface.js +2 -0
  329. package/build/src/interface/pricing-plan.interface.d.ts +15 -0
  330. package/build/src/interface/pricing-plan.interface.js +2 -0
  331. package/build/src/interface/socket-io-bookings.interface.d.ts +12 -0
  332. package/build/src/interface/socket-io-bookings.interface.js +2 -0
  333. package/build/src/interface/time-formatter.interface.d.ts +4 -0
  334. package/build/src/interface/time-formatter.interface.js +2 -0
  335. package/build/src/interface/ui/booking-data.interface.d.ts +6 -0
  336. package/build/src/interface/ui/booking-data.interface.js +2 -0
  337. package/build/src/interface/ui/upgrade-subscription-data.interface.d.ts +15 -0
  338. package/build/src/interface/ui/upgrade-subscription-data.interface.js +2 -0
  339. package/build/src/interface/upload-multer-file.interface.d.ts +9 -0
  340. package/build/src/interface/upload-multer-file.interface.js +2 -0
  341. package/build/src/interface/user-info-dto.interface.d.ts +16 -0
  342. package/build/src/interface/user-info-dto.interface.js +2 -0
  343. package/build/src/interface/without-token-registration-entity.types.d.ts +3 -0
  344. package/build/src/interface/without-token-registration-entity.types.js +2 -0
  345. package/build/src/models/billing-cycle-model.d.ts +11 -0
  346. package/build/src/models/billing-cycle-model.js +27 -0
  347. package/build/src/models/booking-code-model.d.ts +139 -0
  348. package/build/src/models/booking-code-model.js +624 -0
  349. package/build/src/models/charge-model.d.ts +34 -0
  350. package/build/src/models/charge-model.js +275 -0
  351. package/build/src/models/entity/booking-details-model.d.ts +41 -0
  352. package/build/src/models/entity/booking-details-model.js +69 -0
  353. package/build/src/models/entity/booking-entity-model.d.ts +21 -0
  354. package/build/src/models/entity/booking-entity-model.js +47 -0
  355. package/build/src/models/entity/booking-payment-history-model.d.ts +20 -0
  356. package/build/src/models/entity/booking-payment-history-model.js +36 -0
  357. package/build/src/models/entity/cancellation-policy-model.d.ts +18 -0
  358. package/build/src/models/entity/cancellation-policy-model.js +32 -0
  359. package/build/src/models/entity/configuration-model.d.ts +17 -0
  360. package/build/src/models/entity/configuration-model.js +17 -0
  361. package/build/src/models/entity/index.d.ts +10 -0
  362. package/build/src/models/entity/index.js +26 -0
  363. package/build/src/models/entity/price-model.d.ts +11 -0
  364. package/build/src/models/entity/price-model.js +15 -0
  365. package/build/src/models/entity/pricing-plan-entity-model.d.ts +47 -0
  366. package/build/src/models/entity/pricing-plan-entity-model.js +128 -0
  367. package/build/src/models/entity/subscription-model.d.ts +44 -0
  368. package/build/src/models/entity/subscription-model.js +154 -0
  369. package/build/src/models/entity/turf-model.d.ts +36 -0
  370. package/build/src/models/entity/turf-model.js +116 -0
  371. package/build/src/models/entity/user-model.d.ts +32 -0
  372. package/build/src/models/entity/user-model.js +19 -0
  373. package/build/src/models/pitch-slab-model.d.ts +9 -0
  374. package/build/src/models/pitch-slab-model.js +21 -0
  375. package/build/src/models/pricing-plan-model.d.ts +27 -0
  376. package/build/src/models/pricing-plan-model.js +89 -0
  377. package/build/src/models/subscribed-pricing-plan-model.d.ts +37 -0
  378. package/build/src/models/subscribed-pricing-plan-model.js +122 -0
  379. package/build/src/models/time-slot-model.d.ts +19 -0
  380. package/build/src/models/time-slot-model.js +98 -0
  381. package/build/src/models/turf-availability-model.d.ts +57 -0
  382. package/build/src/models/turf-availability-model.js +239 -0
  383. package/build/src/types/app-badrequest-exception.type.d.ts +4 -0
  384. package/build/src/types/app-badrequest-exception.type.js +2 -0
  385. package/build/src/types/booking-modification.type.d.ts +6 -0
  386. package/build/src/types/booking-modification.type.js +2 -0
  387. package/build/src/types/bookingdetails-with-booking.type.d.ts +9 -0
  388. package/build/src/types/bookingdetails-with-booking.type.js +2 -0
  389. package/build/src/types/date-wise-payment-history-data.types.d.ts +9 -0
  390. package/build/src/types/date-wise-payment-history-data.types.js +2 -0
  391. package/build/src/utils/constant.d.ts +5 -0
  392. package/build/src/utils/constant.js +8 -0
  393. package/build/src/utils/date-util.d.ts +56 -0
  394. package/build/src/utils/date-util.js +157 -0
  395. package/build/src/utils/math-util.d.ts +14 -0
  396. package/build/src/utils/math-util.js +39 -0
  397. package/build/src/utils/string-utils.d.ts +31 -0
  398. package/build/src/utils/string-utils.js +82 -0
  399. package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.d.ts +1 -0
  400. package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.js +114 -0
  401. package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.d.ts +1 -0
  402. package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.js +114 -0
  403. package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.d.ts +1 -0
  404. package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.js +114 -0
  405. package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.d.ts +1 -0
  406. package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.js +114 -0
  407. package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.d.ts +1 -0
  408. package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.js +221 -0
  409. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.d.ts +1 -0
  410. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.js +518 -0
  411. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.d.ts +1 -0
  412. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.js +470 -0
  413. package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.d.ts +1 -0
  414. package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.js +263 -0
  415. package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.d.ts +1 -0
  416. package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.js +223 -0
  417. package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.d.ts +1 -0
  418. package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.js +509 -0
  419. package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.d.ts +1 -0
  420. package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.js +148 -0
  421. package/build/tests/utils/models/booking-entity-test.d.ts +9 -0
  422. package/build/tests/utils/models/booking-entity-test.js +28 -0
  423. package/package.json +6 -2
  424. /package/build/{@enum.d.ts → src/@enum.d.ts} +0 -0
  425. /package/build/{@enum.js → src/@enum.js} +0 -0
  426. /package/build/{@model.d.ts → src/@model.d.ts} +0 -0
  427. /package/build/{@model.js → src/@model.js} +0 -0
  428. /package/build/{@type.d.ts → src/@type.d.ts} +0 -0
  429. /package/build/{@type.js → src/@type.js} +0 -0
  430. /package/build/{@utils.d.ts → src/@utils.d.ts} +0 -0
  431. /package/build/{@utils.js → src/@utils.js} +0 -0
  432. /package/build/{index.d.ts → src/index.d.ts} +0 -0
  433. /package/build/{index.js → src/index.js} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { PaymentMode, BookingDetailsStatus } from "../../@enum";
2
+ import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
3
+ export interface ICreateOneSlotBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
4
+ }
5
+ export interface ICreateOneSlotBookingDetailsRequest {
6
+ customerName: string;
7
+ contact: number;
8
+ email?: string | null;
9
+ paymentMode: PaymentMode;
10
+ couponCode: string;
11
+ totalCost?: number;
12
+ discountedCost: number;
13
+ amountPaid: number;
14
+ pitchId: number;
15
+ status: BookingDetailsStatus;
16
+ sport: string;
17
+ remarks?: string | null;
18
+ slot: ICreateOneSlot[];
19
+ }
20
+ export interface ICreateOneSlot {
21
+ date: number;
22
+ from: string;
23
+ to: string;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { ISubscriptionEntity, IUpgrade_details, Modify } from "../../@type";
2
+ export interface IRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IRenewSubscriptionRequest {
8
+ from: string;
9
+ to: string;
10
+ pricingPlanId: number;
11
+ type: string;
12
+ grossAmount: number;
13
+ discount: string;
14
+ netAmount: number;
15
+ amountPaid: number;
16
+ remarks?: string;
17
+ pitchCount?: number;
18
+ upgrade_details?: IUpgrade_details[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface ISetPriceRequest {
2
+ from: string;
3
+ to: string;
4
+ monthWeekDays: number[];
5
+ price: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface ISetupRegistrationResponse {
2
+ turf: boolean;
3
+ 'organization-profile': boolean;
4
+ subscription: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { UserStatus } from "../../@enum";
2
+ export interface IStaffMemberListResponse {
3
+ id: number;
4
+ firstname: string;
5
+ phone: string;
6
+ email: string;
7
+ status: UserStatus;
8
+ turfIds: string[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { Files, IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
2
+ export interface IUpdateBankDetailResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IUpdateBankDetailRequest {
8
+ qrCode?: IUploadedMulterFile;
9
+ bankName?: string;
10
+ accountName?: string;
11
+ accountNo?: string;
12
+ ifscCode?: string;
13
+ upiId?: string;
14
+ bankAddress?: string;
15
+ branch?: string;
16
+ files: Files[];
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { PaymentMode } from "../../@enum";
2
+ import { IUpdateBookingByCodesDto } from "../dto/update-booking-by-code-dto.interface";
3
+ export interface IUpdateBookingByCodeResponse extends IUpdateBookingByCodesDto {
4
+ cancellation_amount: number;
5
+ refund_amount: number;
6
+ refund_mode: PaymentMode;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { ConfigurationKey } from "../../@enum";
2
+ import { IConfigurationsEntity, IModifyEntity } from "../../@type";
3
+ export interface IUpdateConfigurationResponse extends Array<IModifyEntity<IConfigurationsEntity>> {
4
+ }
5
+ export interface IUpdateConfigurationRequest {
6
+ key: ConfigurationKey;
7
+ value: string;
8
+ description?: string;
9
+ text?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { ICouponEntity, Modify } from "../../@type";
2
+ export interface IUpdateCouponResponse extends Modify<ICouponEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IUpdateCouponRequest {
8
+ value: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface IUpdateFaqsStepsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IUpdateFaqsRequest {
8
+ module?: string;
9
+ question?: string;
10
+ text?: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface IUpdateFaqsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { OrganizationStatus } from "../../@enum";
2
+ import { IOrganizationEntity, Modify } from "../../@type";
3
+ import { IUserInfo } from "../user-info-dto.interface";
4
+ export interface IUpdateOrganizationResponse extends Modify<IOrganizationEntity, {
5
+ createdOn: string;
6
+ updatedOn: string;
7
+ }> {
8
+ imageUrl?: string;
9
+ owners?: IUserInfo[];
10
+ }
11
+ export interface IUpdateOrganizationRequest {
12
+ name?: string;
13
+ owners?: IUserInfo[];
14
+ email?: string;
15
+ phone?: number;
16
+ type?: string;
17
+ pan?: string;
18
+ gst?: string;
19
+ deed?: string;
20
+ status?: OrganizationStatus;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { IPitchSlab, IPricingPlanEntity, Modify } from "../../@type";
2
+ import { IPitchSlabDto } from "../pitch-slab-dto.interface";
3
+ import { IBillingCycleDto } from "../billing-cycle-dto.interface";
4
+ export interface IUpdatePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
5
+ createdOn: string;
6
+ updatedOn: string;
7
+ }> {
8
+ pitch_slab?: IPitchSlabDto;
9
+ billing_cycle?: IBillingCycleDto;
10
+ }
11
+ export interface IUpdatePricingPlanByIdRequest {
12
+ effective_from_date?: number;
13
+ effective_to_date?: number;
14
+ base_price?: number;
15
+ unit?: string;
16
+ pitch_slab?: {
17
+ [key: string]: IPitchSlab;
18
+ };
19
+ billing_cycle?: IBillingCycleDto;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,52 @@
1
+ import { BookingDetailsStatus, PaymentMode } from "../../@enum";
2
+ import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
3
+ import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
4
+ import { IUpdateBookingByCodesDto } from "../dto/update-booking-by-code-dto.interface";
5
+ export interface IUpdateRecurringBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
6
+ id: number;
7
+ turfId: number;
8
+ pitchId: number;
9
+ customerName: string;
10
+ contact: string;
11
+ paymentMode: string;
12
+ couponCode: string;
13
+ totalCost: number;
14
+ discountedCost: number;
15
+ amountPaid: number;
16
+ createdOn: string;
17
+ updatedOn: string;
18
+ createdBy: number;
19
+ updatedBy: number;
20
+ email: string | null;
21
+ status: BookingDetailsStatus;
22
+ sport: string;
23
+ initialBookingGrossAmount: number;
24
+ additionalBookingGrossAmount: number;
25
+ discountAmount: number;
26
+ cancelledBookingGrossAmount: number;
27
+ totalCancellationCharges: number;
28
+ netTotal: number;
29
+ amountPayable: number;
30
+ refundPayable: number;
31
+ totalRefundedAmount: number;
32
+ refundedMode?: string;
33
+ advancePayment?: number;
34
+ discountPolicy?: string;
35
+ delete_slot?: IDeleteBookingByCodesDto;
36
+ update_slot?: IUpdateBookingByCodesDto;
37
+ }
38
+ export interface IUpdateRecurringSlotBookingDetailsRequest {
39
+ customerName?: string;
40
+ contact?: number;
41
+ email?: string;
42
+ paymentMode?: PaymentMode;
43
+ couponCode?: string;
44
+ amountPaid?: number;
45
+ status?: BookingDetailsStatus;
46
+ advancePayment?: number;
47
+ refundedAmount?: number;
48
+ refundedMode?: PaymentMode;
49
+ delete_slot?: IDeleteBookingByCodesDto;
50
+ update_slot?: IUpdateBookingByCodesDto;
51
+ remarks?: string | null;
52
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { RegistrationStatus } from "../../@enum";
2
+ import { IModifyEntity } from "../../@type";
3
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
4
+ export interface IUpdateRegistrationEntitiesResponse extends IModifyEntity<IWithoutTokenRegistrationEntity> {
5
+ }
6
+ export interface IUpdateRegistrationRequest {
7
+ status?: RegistrationStatus;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 });
@@ -0,0 +1,16 @@
1
+ import { IUserEntity } from "../entity";
2
+ import { Modify } from "../modify.interface";
3
+ export interface IUpdateStaffMemberResponse extends Modify<Omit<IUserEntity, "password" | "turf">, {
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ }> {
7
+ turfids?: string[];
8
+ }
9
+ export interface IUpdateStaffMemberRequest {
10
+ firstname?: string;
11
+ lastname?: string;
12
+ phone?: number;
13
+ turfids?: string[];
14
+ email?: string;
15
+ password?: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { SubscriptionStatus } from "../../@enum";
2
+ import { ISubscriptionEntity, Modify } from "../../@type";
3
+ export interface IUpdateSubscriptionResponse extends Modify<ISubscriptionEntity, {
4
+ from: string;
5
+ to: string;
6
+ createdOn: string;
7
+ updatedOn: string;
8
+ }> {
9
+ advanceAmount?: number;
10
+ }
11
+ export interface IUpdateSubscriptionRequest {
12
+ from?: string;
13
+ to?: string;
14
+ type?: string;
15
+ grossAmount?: number;
16
+ discount?: string;
17
+ netAmount?: number;
18
+ amountPaid?: number;
19
+ advanceAmount?: number;
20
+ status?: SubscriptionStatus;
21
+ noOfPitches?: number;
22
+ remarks?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { PitchOperations } from "../../enums/pitch-operation.enum";
2
+ import { ITurfEntity } from "../entity";
3
+ import { IModifyEntity } from "../../@type";
4
+ export interface IUpdateTurfDetailsResponse extends IModifyEntity<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: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { ITurfEntity } from "../../@type";
2
+ export interface IUpdateTurfTransactionOutput extends ITurfEntity {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { IRenewSubscriptionRequest, ISubscriptionEntity, IUpgradeSubscriptionRequest, Modify } from "../../@type";
2
+ export interface IUpgradeRenewSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IUpgradeRenewSubscriptionRequest {
8
+ upgradeSubscription: IUpgradeSubscriptionRequest;
9
+ renewSubscription: IRenewSubscriptionRequest;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { ISubscriptionEntity, IUpdatePitches, Modify } from "../../@type";
2
+ export interface IUpgradeSubscriptionResponse extends Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface IUpgradeSubscriptionRequest {
8
+ pricingPlanId: number;
9
+ pitchCount: number;
10
+ grossAmount: number;
11
+ netAmount: number;
12
+ discount: string;
13
+ upgrade_details?: IUpgrade_details[];
14
+ }
15
+ export interface IUpgrade_details {
16
+ turfId?: number;
17
+ turfName?: string;
18
+ status?: string;
19
+ pitches?: IUpdatePitches[];
20
+ address?: string;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IModifyEntity, IUserEntity } from "../../@type";
2
+ export interface IUserEntityWithoutPassword extends Omit<IUserEntity, "password"> {
3
+ }
4
+ export interface IUserEntityWithoutPasswordsResponse extends IModifyEntity<IUserEntityWithoutPassword> {
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { IKeyValue, IModifyEntity, Modify } from "../../@type";
2
+ export declare function ConvertCommonEntries<T extends {
3
+ createdOn: Date;
4
+ updatedOn: Date;
5
+ }>(inputObject: {
6
+ [key: string]: T;
7
+ }): IKeyValue<IModifyEntity<T>>;
8
+ export declare function ConvertToCommonEntities<T extends {
9
+ createdOn: Date;
10
+ updatedOn: Date;
11
+ }>(inputObject: T[]): IModifyEntity<T>[];
12
+ export declare function ConvertToCommonEntity<T extends {
13
+ createdOn: Date;
14
+ updatedOn: Date;
15
+ }, R extends Modify<T, {
16
+ createdOn: string;
17
+ updatedOn: string;
18
+ }>>(obj: T): R;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ConvertToCommonEntity = exports.ConvertToCommonEntities = exports.ConvertCommonEntries = void 0;
26
+ //key - value converter
27
+ function ConvertCommonEntries(inputObject) {
28
+ return Object.entries(inputObject).reduce(function (acc, _a) {
29
+ var key = _a[0], value = _a[1];
30
+ acc[key] = ConvertToCommonEntity(value);
31
+ return acc;
32
+ }, {});
33
+ }
34
+ exports.ConvertCommonEntries = ConvertCommonEntries;
35
+ function ConvertToCommonEntities(inputObject) {
36
+ return inputObject.reduce(function (acc, value) {
37
+ var modifiedEntity = ConvertToCommonEntity(value);
38
+ acc.push(modifiedEntity);
39
+ return acc;
40
+ }, []);
41
+ }
42
+ exports.ConvertToCommonEntities = ConvertToCommonEntities;
43
+ function ConvertToCommonEntity(obj) {
44
+ var _a, _b;
45
+ var _ = obj.createdOn, __ = obj.updatedOn, objectToAssign = __rest(obj, ["createdOn", "updatedOn"]);
46
+ return __assign({ createdOn: (_a = obj.createdOn) === null || _a === void 0 ? void 0 : _a.toISOString(), updatedOn: (_b = obj.updatedOn) === null || _b === void 0 ? void 0 : _b.toISOString() }, objectToAssign);
47
+ }
48
+ exports.ConvertToCommonEntity = ConvertToCommonEntity;
@@ -0,0 +1,8 @@
1
+ export interface IBillingCycleDto {
2
+ [key: string]: {
3
+ from: number;
4
+ to: number;
5
+ discount: string;
6
+ name: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface IBillingCycleModel {
2
+ from: number;
3
+ to: number;
4
+ discount: string;
5
+ name: string;
6
+ key: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ import { BookingDetailsStatus } from "../@enum";
2
+ import { IBookingDetailsEntity } from "./entity";
3
+ export interface IBookingDetailsWithCode extends IBookingDetailsEntity {
4
+ id: number;
5
+ turfId: number;
6
+ pitchId: number;
7
+ customerName: string;
8
+ contact: string;
9
+ paymentMode: string;
10
+ couponCode: string;
11
+ totalCost: number;
12
+ discountedCost: number;
13
+ amountPaid: number;
14
+ createdOn: Date;
15
+ updatedOn: Date;
16
+ createdBy: number;
17
+ updatedBy: number;
18
+ email: string | null;
19
+ status: BookingDetailsStatus;
20
+ sport: string;
21
+ remarks: string | null;
22
+ initialBookingGrossAmount: number;
23
+ additionalBookingGrossAmount: number;
24
+ discountAmount: number;
25
+ cancelledBookingGrossAmount: number;
26
+ totalCancellationCharges: number;
27
+ netTotal: number;
28
+ amountPayable: number;
29
+ refundPayable: number;
30
+ totalRefundedAmount: number;
31
+ code: string;
32
+ slot_cost: string;
33
+ extendedDays: number;
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IController<T> {
2
+ success: boolean;
3
+ statusCode: number;
4
+ data: T;
5
+ timeStamp: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IConvertToMidNightTime {
2
+ hour: number;
3
+ minute: number;
4
+ second?: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,7 @@
1
+ import { PaymentMode } from "../../@enum";
2
+ export interface IDeleteBookingByCodesDto {
3
+ bookingCodes: string;
4
+ cancellation_amount?: number;
5
+ refund_amount?: number;
6
+ refund_mode?: PaymentMode;
7
+ }