turf-common 1.3.1-beta.8 → 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 (434) hide show
  1. package/build/interface/api/get-collection.interface.d.ts +1 -4
  2. package/build/jest.config.d.ts +3 -0
  3. package/build/jest.config.js +10 -0
  4. package/build/src/@enums/socket-io.d.ts +1 -0
  5. package/build/src/@enums/socket-io.js +17 -0
  6. package/build/src/@types/socket-io.d.ts +1 -0
  7. package/build/src/@types/socket-io.js +17 -0
  8. package/build/src/enums/availability-view.enum.d.ts +4 -0
  9. package/build/src/enums/availability-view.enum.js +8 -0
  10. package/build/src/enums/booking-details-status.enum.d.ts +4 -0
  11. package/build/src/enums/booking-details-status.enum.js +8 -0
  12. package/build/src/enums/booking-fetch-filter.enum.d.ts +5 -0
  13. package/build/src/enums/booking-fetch-filter.enum.js +9 -0
  14. package/build/src/enums/booking-history-operation-type.enum.d.ts +12 -0
  15. package/build/src/enums/booking-history-operation-type.enum.js +20 -0
  16. package/build/src/enums/bookings-status.enum.d.ts +5 -0
  17. package/build/src/enums/bookings-status.enum.js +9 -0
  18. package/build/src/enums/configuration-description.enum.d.ts +5 -0
  19. package/build/src/enums/configuration-description.enum.js +9 -0
  20. package/build/src/enums/configuration-key.enum.d.ts +10 -0
  21. package/build/src/enums/configuration-key.enum.js +29 -0
  22. package/build/src/enums/configuration-text.enum.d.ts +5 -0
  23. package/build/src/enums/configuration-text.enum.js +9 -0
  24. package/build/src/enums/cron-jobs-name.enum.d.ts +5 -0
  25. package/build/src/enums/cron-jobs-name.enum.js +9 -0
  26. package/build/src/enums/cron-jobs-status.enum.d.ts +5 -0
  27. package/build/src/enums/cron-jobs-status.enum.js +9 -0
  28. package/build/src/enums/environment.enum.d.ts +5 -0
  29. package/build/src/enums/environment.enum.js +9 -0
  30. package/build/src/enums/faqs-status.enum.d.ts +3 -0
  31. package/build/src/enums/faqs-status.enum.js +7 -0
  32. package/build/src/enums/modification-discount-policy.enum.d.ts +5 -0
  33. package/build/src/enums/modification-discount-policy.enum.js +9 -0
  34. package/build/src/enums/organization-status.enum.d.ts +15 -0
  35. package/build/src/enums/organization-status.enum.js +31 -0
  36. package/build/src/enums/organization-type.enum.d.ts +5 -0
  37. package/build/src/enums/organization-type.enum.js +9 -0
  38. package/build/src/enums/payment-mode.enum.d.ts +4 -0
  39. package/build/src/enums/payment-mode.enum.js +8 -0
  40. package/build/src/enums/pitch-operation.enum.d.ts +5 -0
  41. package/build/src/enums/pitch-operation.enum.js +9 -0
  42. package/build/src/enums/pitch-sports.enum.d.ts +7 -0
  43. package/build/src/enums/pitch-sports.enum.js +11 -0
  44. package/build/src/enums/pitch-status.enum.d.ts +12 -0
  45. package/build/src/enums/pitch-status.enum.js +13 -0
  46. package/build/src/enums/pricing-plan-status.enum.d.ts +4 -0
  47. package/build/src/enums/pricing-plan-status.enum.js +8 -0
  48. package/build/src/enums/registration-status-enum.d.ts +12 -0
  49. package/build/src/enums/registration-status-enum.js +16 -0
  50. package/build/src/enums/socket-io-booking-operation.enum.d.ts +6 -0
  51. package/build/src/enums/socket-io-booking-operation.enum.js +10 -0
  52. package/build/src/enums/subscription-status.enum.d.ts +23 -0
  53. package/build/src/enums/subscription-status.enum.js +40 -0
  54. package/build/src/enums/timezone.enum.d.ts +3 -0
  55. package/build/src/enums/timezone.enum.js +7 -0
  56. package/build/src/enums/transaction-type.enum.d.ts +7 -0
  57. package/build/src/enums/transaction-type.enum.js +11 -0
  58. package/build/src/enums/user-status.enum.d.ts +11 -0
  59. package/build/src/enums/user-status.enum.js +15 -0
  60. package/build/src/enums/valid-coupon-type.enum.d.ts +6 -0
  61. package/build/src/enums/valid-coupon-type.enum.js +10 -0
  62. package/build/src/enums/valid-type.enum.d.ts +6 -0
  63. package/build/src/enums/valid-type.enum.js +10 -0
  64. package/build/src/exceptions/app-badrequest.exception.d.ts +4 -0
  65. package/build/src/exceptions/app-badrequest.exception.js +28 -0
  66. package/build/src/interface/api/activate-subscription.interface.d.ts +10 -0
  67. package/build/src/interface/api/activate-subscription.interface.js +2 -0
  68. package/build/src/interface/api/booking-availablity-by-pitch.interface.d.ts +39 -0
  69. package/build/src/interface/api/booking-availablity-by-pitch.interface.js +2 -0
  70. package/build/src/interface/api/cancellation-charges.interface.d.ts +17 -0
  71. package/build/src/interface/api/cancellation-charges.interface.js +2 -0
  72. package/build/src/interface/api/create-bank-details.interface.d.ts +22 -0
  73. package/build/src/interface/api/create-bank-details.interface.js +2 -0
  74. package/build/src/interface/api/create-cancellation-policy.interface.d.ts +12 -0
  75. package/build/src/interface/api/create-cancellation-policy.interface.js +2 -0
  76. package/build/src/interface/api/create-coupon.interface.d.ts +11 -0
  77. package/build/src/interface/api/create-coupon.interface.js +2 -0
  78. package/build/src/interface/api/create-faqs.interface.d.ts +15 -0
  79. package/build/src/interface/api/create-faqs.interface.js +2 -0
  80. package/build/src/interface/api/create-organization.interface.d.ts +21 -0
  81. package/build/src/interface/api/create-organization.interface.js +2 -0
  82. package/build/src/interface/api/create-pricing-plan.interface.d.ts +16 -0
  83. package/build/src/interface/api/create-pricing-plan.interface.js +2 -0
  84. package/build/src/interface/api/create-recurring-slot-booking.interface.d.ts +29 -0
  85. package/build/src/interface/api/create-recurring-slot-booking.interface.js +2 -0
  86. package/build/src/interface/api/create-registration-interface.d.ts +13 -0
  87. package/build/src/interface/api/create-registration-interface.js +2 -0
  88. package/build/src/interface/api/create-registration-transaction-output.interface.d.ts +2 -0
  89. package/build/src/interface/api/create-registration-transaction-output.interface.js +2 -0
  90. package/build/src/interface/api/create-subscription.interface.d.ts +18 -0
  91. package/build/src/interface/api/create-subscription.interface.js +2 -0
  92. package/build/src/interface/api/create-turf.interface.d.ts +13 -0
  93. package/build/src/interface/api/create-turf.interface.js +2 -0
  94. package/build/src/interface/api/create-user.interface.d.ts +10 -0
  95. package/build/src/interface/api/create-user.interface.js +2 -0
  96. package/build/src/interface/api/delete-bank-details-by-id.interface.d.ts +6 -0
  97. package/build/src/interface/api/delete-bank-details-by-id.interface.js +2 -0
  98. package/build/src/interface/api/delete-booking-by-codes.interface.d.ts +7 -0
  99. package/build/src/interface/api/delete-booking-by-codes.interface.js +2 -0
  100. package/build/src/interface/api/delete-booking-info.interface.d.ts +3 -0
  101. package/build/src/interface/api/delete-booking-info.interface.js +2 -0
  102. package/build/src/interface/api/delete-pricing-plan.interface.d.ts +6 -0
  103. package/build/src/interface/api/delete-pricing-plan.interface.js +2 -0
  104. package/build/src/interface/api/get-all-booking-of-turf.interface.d.ts +23 -0
  105. package/build/src/interface/api/get-all-booking-of-turf.interface.js +2 -0
  106. package/build/src/interface/api/get-availability-by-turf.interface.d.ts +29 -0
  107. package/build/src/interface/api/get-availability-by-turf.interface.js +2 -0
  108. package/build/src/interface/api/get-bank-detail-by-id.interface.d.ts +6 -0
  109. package/build/src/interface/api/get-bank-detail-by-id.interface.js +2 -0
  110. package/build/src/interface/api/get-bank-detail-entities.interface.d.ts +6 -0
  111. package/build/src/interface/api/get-bank-detail-entities.interface.js +2 -0
  112. package/build/src/interface/api/get-booking-by-organization-id.interface.d.ts +30 -0
  113. package/build/src/interface/api/get-booking-by-organization-id.interface.js +2 -0
  114. package/build/src/interface/api/get-booking-customers.interface.d.ts +3 -0
  115. package/build/src/interface/api/get-booking-customers.interface.js +2 -0
  116. package/build/src/interface/api/get-booking-details-by-id.interface.d.ts +4 -0
  117. package/build/src/interface/api/get-booking-details-by-id.interface.js +2 -0
  118. package/build/src/interface/api/get-booking-history.interface.d.ts +4 -0
  119. package/build/src/interface/api/get-booking-history.interface.js +2 -0
  120. package/build/src/interface/api/get-booking-info.interface.d.ts +11 -0
  121. package/build/src/interface/api/get-booking-info.interface.js +2 -0
  122. package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +15 -0
  123. package/build/src/interface/api/get-cancellation-policy-entity-by-org-id.interface.js +2 -0
  124. package/build/src/interface/api/get-cancelled-booking.interface.d.ts +7 -0
  125. package/build/src/interface/api/get-cancelled-booking.interface.js +2 -0
  126. package/build/src/interface/api/get-collection.interface.d.ts +24 -0
  127. package/build/src/interface/api/get-collection.interface.js +2 -0
  128. package/build/src/interface/api/get-configuration.interface.d.ts +4 -0
  129. package/build/src/interface/api/get-configuration.interface.js +2 -0
  130. package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +12 -0
  131. package/build/src/interface/api/get-cron-job-by-date-range-name-status.interface.js +2 -0
  132. package/build/src/interface/api/get-current-subscription.interface.d.ts +18 -0
  133. package/build/src/interface/api/get-current-subscription.interface.js +2 -0
  134. package/build/src/interface/api/get-organization-by-orgid.interface.d.ts +15 -0
  135. package/build/src/interface/api/get-organization-by-orgid.interface.js +2 -0
  136. package/build/src/interface/api/get-price-by-organization-response.interface.d.ts +6 -0
  137. package/build/src/interface/api/get-price-by-organization-response.interface.js +2 -0
  138. package/build/src/interface/api/get-price-entity.interface.d.ts +10 -0
  139. package/build/src/interface/api/get-price-entity.interface.js +2 -0
  140. package/build/src/interface/api/get-price-query.interface.d.ts +10 -0
  141. package/build/src/interface/api/get-price-query.interface.js +2 -0
  142. package/build/src/interface/api/get-pricing-plan-by-date-response.interface.d.ts +23 -0
  143. package/build/src/interface/api/get-pricing-plan-by-date-response.interface.js +2 -0
  144. package/build/src/interface/api/get-pricing-plan-by-id.interface.d.ts +3 -0
  145. package/build/src/interface/api/get-pricing-plan-by-id.interface.js +2 -0
  146. package/build/src/interface/api/get-pricing-plan-entities.interface.d.ts +3 -0
  147. package/build/src/interface/api/get-pricing-plan-entities.interface.js +2 -0
  148. package/build/src/interface/api/get-registration-by-id.types.d.ts +20 -0
  149. package/build/src/interface/api/get-registration-by-id.types.js +2 -0
  150. package/build/src/interface/api/get-registration-entities.interface.d.ts +30 -0
  151. package/build/src/interface/api/get-registration-entities.interface.js +2 -0
  152. package/build/src/interface/api/get-sports.interface.d.ts +4 -0
  153. package/build/src/interface/api/get-sports.interface.js +2 -0
  154. package/build/src/interface/api/get-subscription-by-org-id.interface.d.ts +6 -0
  155. package/build/src/interface/api/get-subscription-by-org-id.interface.js +2 -0
  156. package/build/src/interface/api/get-subscription-entities.interface.d.ts +8 -0
  157. package/build/src/interface/api/get-subscription-entities.interface.js +2 -0
  158. package/build/src/interface/api/get-tournament.interface.d.ts +4 -0
  159. package/build/src/interface/api/get-tournament.interface.js +2 -0
  160. package/build/src/interface/api/get-turf-by-organization.interface.d.ts +6 -0
  161. package/build/src/interface/api/get-turf-by-organization.interface.js +2 -0
  162. package/build/src/interface/api/get-turf-entity-response.interface.d.ts +10 -0
  163. package/build/src/interface/api/get-turf-entity-response.interface.js +2 -0
  164. package/build/src/interface/api/index.d.ts +78 -0
  165. package/build/src/interface/api/index.js +96 -0
  166. package/build/src/interface/api/list-of-coupons.interface.d.ts +14 -0
  167. package/build/src/interface/api/list-of-coupons.interface.js +2 -0
  168. package/build/src/interface/api/login-response.interface.d.ts +22 -0
  169. package/build/src/interface/api/login-response.interface.js +2 -0
  170. package/build/src/interface/api/manual-trigger-cron-job.interface.d.ts +5 -0
  171. package/build/src/interface/api/manual-trigger-cron-job.interface.js +2 -0
  172. package/build/src/interface/api/one-slot-booking.interface.d.ts +24 -0
  173. package/build/src/interface/api/one-slot-booking.interface.js +2 -0
  174. package/build/src/interface/api/renew-subscription.interface.d.ts +19 -0
  175. package/build/src/interface/api/renew-subscription.interface.js +2 -0
  176. package/build/src/interface/api/set-price.interface.d.ts +6 -0
  177. package/build/src/interface/api/set-price.interface.js +2 -0
  178. package/build/src/interface/api/setup-registration.interface.d.ts +5 -0
  179. package/build/src/interface/api/setup-registration.interface.js +2 -0
  180. package/build/src/interface/api/staff-member-list.interface.d.ts +9 -0
  181. package/build/src/interface/api/staff-member-list.interface.js +2 -0
  182. package/build/src/interface/api/update-bank-detail.interface.d.ts +17 -0
  183. package/build/src/interface/api/update-bank-detail.interface.js +2 -0
  184. package/build/src/interface/api/update-booking-by-code-response.interface.d.ts +7 -0
  185. package/build/src/interface/api/update-booking-by-code-response.interface.js +2 -0
  186. package/build/src/interface/api/update-configuration.interface.d.ts +10 -0
  187. package/build/src/interface/api/update-configuration.interface.js +2 -0
  188. package/build/src/interface/api/update-coupon.interface.d.ts +9 -0
  189. package/build/src/interface/api/update-coupon.interface.js +2 -0
  190. package/build/src/interface/api/update-faqs-steps.interface.d.ts +11 -0
  191. package/build/src/interface/api/update-faqs-steps.interface.js +2 -0
  192. package/build/src/interface/api/update-faqs.interface.d.ts +6 -0
  193. package/build/src/interface/api/update-faqs.interface.js +2 -0
  194. package/build/src/interface/api/update-organization.interface.d.ts +21 -0
  195. package/build/src/interface/api/update-organization.interface.js +2 -0
  196. package/build/src/interface/api/update-pricing-plan-by-id.interface.d.ts +20 -0
  197. package/build/src/interface/api/update-pricing-plan-by-id.interface.js +2 -0
  198. package/build/src/interface/api/update-recurring-booking.interface.d.ts +52 -0
  199. package/build/src/interface/api/update-recurring-booking.interface.js +2 -0
  200. package/build/src/interface/api/update-registration-entities.interface.d.ts +8 -0
  201. package/build/src/interface/api/update-registration-entities.interface.js +2 -0
  202. package/build/src/interface/api/update-sports-interface.d.ts +3 -0
  203. package/build/src/interface/api/update-sports-interface.js +2 -0
  204. package/build/src/interface/api/update-staff-member.interface.d.ts +16 -0
  205. package/build/src/interface/api/update-staff-member.interface.js +2 -0
  206. package/build/src/interface/api/update-subscription.interface.d.ts +23 -0
  207. package/build/src/interface/api/update-subscription.interface.js +2 -0
  208. package/build/src/interface/api/update-turf-details.interface.d.ts +20 -0
  209. package/build/src/interface/api/update-turf-details.interface.js +2 -0
  210. package/build/src/interface/api/update-turf-transaction-output.d.ts +3 -0
  211. package/build/src/interface/api/update-turf-transaction-output.js +2 -0
  212. package/build/src/interface/api/upgrade-renew-subscription.interface.d.ts +10 -0
  213. package/build/src/interface/api/upgrade-renew-subscription.interface.js +2 -0
  214. package/build/src/interface/api/upgrade-subscription.interface.d.ts +21 -0
  215. package/build/src/interface/api/upgrade-subscription.interface.js +2 -0
  216. package/build/src/interface/api/userentity-without-password.interface.d.ts +5 -0
  217. package/build/src/interface/api/userentity-without-password.interface.js +2 -0
  218. package/build/src/interface/api/utils.d.ts +18 -0
  219. package/build/src/interface/api/utils.js +48 -0
  220. package/build/src/interface/billing-cycle-dto.interface.d.ts +8 -0
  221. package/build/src/interface/billing-cycle-dto.interface.js +2 -0
  222. package/build/src/interface/billing-cycle.interface.d.ts +7 -0
  223. package/build/src/interface/billing-cycle.interface.js +2 -0
  224. package/build/src/interface/booking-details-with-code.interface.d.ts +34 -0
  225. package/build/src/interface/booking-details-with-code.interface.js +2 -0
  226. package/build/src/interface/controller.interface.d.ts +6 -0
  227. package/build/src/interface/controller.interface.js +2 -0
  228. package/build/src/interface/convert-to-midnight-time.interface.d.ts +5 -0
  229. package/build/src/interface/convert-to-midnight-time.interface.js +2 -0
  230. package/build/src/interface/date-formatter.interface.d.ts +4 -0
  231. package/build/src/interface/date-formatter.interface.js +2 -0
  232. package/build/src/interface/dto/delete-booking-by-codes-dto.interface.d.ts +7 -0
  233. package/build/src/interface/dto/delete-booking-by-codes-dto.interface.js +2 -0
  234. package/build/src/interface/dto/update-booking-by-code-dto.interface.d.ts +13 -0
  235. package/build/src/interface/dto/update-booking-by-code-dto.interface.js +2 -0
  236. package/build/src/interface/entity/bank-details-entity.interface.d.ts +12 -0
  237. package/build/src/interface/entity/bank-details-entity.interface.js +2 -0
  238. package/build/src/interface/entity/booking-cancellation-entity.interface.d.ts +32 -0
  239. package/build/src/interface/entity/booking-cancellation-entity.interface.js +2 -0
  240. package/build/src/interface/entity/booking-customer-entity.interface.d.ts +8 -0
  241. package/build/src/interface/entity/booking-customer-entity.interface.js +2 -0
  242. package/build/src/interface/entity/booking-details-entity.interface.d.ts +29 -0
  243. package/build/src/interface/entity/booking-details-entity.interface.js +2 -0
  244. package/build/src/interface/entity/booking-history-entity.interface.d.ts +35 -0
  245. package/build/src/interface/entity/booking-history-entity.interface.js +2 -0
  246. package/build/src/interface/entity/booking-payment-history-entity.interface.d.ts +13 -0
  247. package/build/src/interface/entity/booking-payment-history-entity.interface.js +2 -0
  248. package/build/src/interface/entity/bookings-entity.interface.d.ts +6 -0
  249. package/build/src/interface/entity/bookings-entity.interface.js +2 -0
  250. package/build/src/interface/entity/cancellation-policy-entity.interface.d.ts +8 -0
  251. package/build/src/interface/entity/cancellation-policy-entity.interface.js +2 -0
  252. package/build/src/interface/entity/configurations-entity.interface.d.ts +9 -0
  253. package/build/src/interface/entity/configurations-entity.interface.js +2 -0
  254. package/build/src/interface/entity/coupon.entity.interface.d.ts +10 -0
  255. package/build/src/interface/entity/coupon.entity.interface.js +2 -0
  256. package/build/src/interface/entity/cron-jobs-entity.interface.d.ts +12 -0
  257. package/build/src/interface/entity/cron-jobs-entity.interface.js +2 -0
  258. package/build/src/interface/entity/entity-audit-column.interface.d.ts +12 -0
  259. package/build/src/interface/entity/entity-audit-column.interface.js +9 -0
  260. package/build/src/interface/entity/faqs-entity.interface.d.ts +10 -0
  261. package/build/src/interface/entity/faqs-entity.interface.js +2 -0
  262. package/build/src/interface/entity/index.d.ts +23 -0
  263. package/build/src/interface/entity/index.js +39 -0
  264. package/build/src/interface/entity/organization-entity.interface.d.ts +24 -0
  265. package/build/src/interface/entity/organization-entity.interface.js +2 -0
  266. package/build/src/interface/entity/pitch-entity.interface.d.ts +9 -0
  267. package/build/src/interface/entity/pitch-entity.interface.js +2 -0
  268. package/build/src/interface/entity/price-entity.interface.d.ts +5 -0
  269. package/build/src/interface/entity/price-entity.interface.js +2 -0
  270. package/build/src/interface/entity/pricing-plan-entity.interface.d.ts +16 -0
  271. package/build/src/interface/entity/pricing-plan-entity.interface.js +2 -0
  272. package/build/src/interface/entity/registration-entity.interface.d.ts +12 -0
  273. package/build/src/interface/entity/registration-entity.interface.js +2 -0
  274. package/build/src/interface/entity/sports-entity.interface.d.ts +6 -0
  275. package/build/src/interface/entity/sports-entity.interface.js +2 -0
  276. package/build/src/interface/entity/subscription-entity.interface.d.ts +26 -0
  277. package/build/src/interface/entity/subscription-entity.interface.js +2 -0
  278. package/build/src/interface/entity/subscription-pitch-mapping.interface.d.ts +8 -0
  279. package/build/src/interface/entity/subscription-pitch-mapping.interface.js +2 -0
  280. package/build/src/interface/entity/turf-entity.interface.d.ts +17 -0
  281. package/build/src/interface/entity/turf-entity.interface.js +2 -0
  282. package/build/src/interface/entity/user-entity.interface.d.ts +24 -0
  283. package/build/src/interface/entity/user-entity.interface.js +2 -0
  284. package/build/src/interface/formate-date-and-time.interface.d.ts +6 -0
  285. package/build/src/interface/formate-date-and-time.interface.js +2 -0
  286. package/build/src/interface/get-booking-by-id.interface.d.ts +56 -0
  287. package/build/src/interface/get-booking-by-id.interface.js +2 -0
  288. package/build/src/interface/get-booking-codes-per-thirty-min.interface.d.ts +4 -0
  289. package/build/src/interface/get-booking-codes-per-thirty-min.interface.js +2 -0
  290. package/build/src/interface/get-pricing-plan-by-date-response.interface.d.ts +23 -0
  291. package/build/src/interface/get-pricing-plan-by-date-response.interface.js +2 -0
  292. package/build/src/interface/get-turf-entity.interface.d.ts +34 -0
  293. package/build/src/interface/get-turf-entity.interface.js +2 -0
  294. package/build/src/interface/key-value.interface.d.ts +3 -0
  295. package/build/src/interface/key-value.interface.js +2 -0
  296. package/build/src/interface/model/booking-details-model.interface.d.ts +5 -0
  297. package/build/src/interface/model/booking-details-model.interface.js +2 -0
  298. package/build/src/interface/model/booking-entity-model.interface.d.ts +8 -0
  299. package/build/src/interface/model/booking-entity-model.interface.js +2 -0
  300. package/build/src/interface/model/cancellation-policy-model.interface.d.ts +4 -0
  301. package/build/src/interface/model/cancellation-policy-model.interface.js +2 -0
  302. package/build/src/interface/model/charge-model.interface.d.ts +13 -0
  303. package/build/src/interface/model/charge-model.interface.js +2 -0
  304. package/build/src/interface/model/configuration-model.interface.d.ts +4 -0
  305. package/build/src/interface/model/configuration-model.interface.js +2 -0
  306. package/build/src/interface/model/index.d.ts +10 -0
  307. package/build/src/interface/model/index.js +26 -0
  308. package/build/src/interface/model/price-model.interface.d.ts +3 -0
  309. package/build/src/interface/model/price-model.interface.js +2 -0
  310. package/build/src/interface/model/pricing-plan-entity-model.interface.d.ts +13 -0
  311. package/build/src/interface/model/pricing-plan-entity-model.interface.js +2 -0
  312. package/build/src/interface/model/pricing-plan-model.interface.d.ts +15 -0
  313. package/build/src/interface/model/pricing-plan-model.interface.js +2 -0
  314. package/build/src/interface/model/turf-model.interface.d.ts +7 -0
  315. package/build/src/interface/model/turf-model.interface.js +2 -0
  316. package/build/src/interface/model/user-model.interface.d.ts +3 -0
  317. package/build/src/interface/model/user-model.interface.js +2 -0
  318. package/build/src/interface/modify-entity.interface.d.ts +5 -0
  319. package/build/src/interface/modify-entity.interface.js +2 -0
  320. package/build/src/interface/modify-turf.interface.d.ts +7 -0
  321. package/build/src/interface/modify-turf.interface.js +2 -0
  322. package/build/src/interface/modify.interface.d.ts +1 -0
  323. package/build/src/interface/modify.interface.js +2 -0
  324. package/build/src/interface/ng-date-structure.interface.d.ts +5 -0
  325. package/build/src/interface/ng-date-structure.interface.js +2 -0
  326. package/build/src/interface/pitch-slab-dto.interface.d.ts +8 -0
  327. package/build/src/interface/pitch-slab-dto.interface.js +2 -0
  328. package/build/src/interface/pitch-slab.interface.d.ts +5 -0
  329. package/build/src/interface/pitch-slab.interface.js +2 -0
  330. package/build/src/interface/pricing-plan.interface.d.ts +15 -0
  331. package/build/src/interface/pricing-plan.interface.js +2 -0
  332. package/build/src/interface/socket-io-bookings.interface.d.ts +12 -0
  333. package/build/src/interface/socket-io-bookings.interface.js +2 -0
  334. package/build/src/interface/time-formatter.interface.d.ts +4 -0
  335. package/build/src/interface/time-formatter.interface.js +2 -0
  336. package/build/src/interface/ui/booking-data.interface.d.ts +6 -0
  337. package/build/src/interface/ui/booking-data.interface.js +2 -0
  338. package/build/src/interface/ui/upgrade-subscription-data.interface.d.ts +15 -0
  339. package/build/src/interface/ui/upgrade-subscription-data.interface.js +2 -0
  340. package/build/src/interface/upload-multer-file.interface.d.ts +9 -0
  341. package/build/src/interface/upload-multer-file.interface.js +2 -0
  342. package/build/src/interface/user-info-dto.interface.d.ts +16 -0
  343. package/build/src/interface/user-info-dto.interface.js +2 -0
  344. package/build/src/interface/without-token-registration-entity.types.d.ts +3 -0
  345. package/build/src/interface/without-token-registration-entity.types.js +2 -0
  346. package/build/src/models/billing-cycle-model.d.ts +11 -0
  347. package/build/src/models/billing-cycle-model.js +27 -0
  348. package/build/src/models/booking-code-model.d.ts +139 -0
  349. package/build/src/models/booking-code-model.js +624 -0
  350. package/build/src/models/charge-model.d.ts +34 -0
  351. package/build/src/models/charge-model.js +275 -0
  352. package/build/src/models/entity/booking-details-model.d.ts +41 -0
  353. package/build/src/models/entity/booking-details-model.js +69 -0
  354. package/build/src/models/entity/booking-entity-model.d.ts +21 -0
  355. package/build/src/models/entity/booking-entity-model.js +47 -0
  356. package/build/src/models/entity/booking-payment-history-model.d.ts +20 -0
  357. package/build/src/models/entity/booking-payment-history-model.js +36 -0
  358. package/build/src/models/entity/cancellation-policy-model.d.ts +18 -0
  359. package/build/src/models/entity/cancellation-policy-model.js +32 -0
  360. package/build/src/models/entity/configuration-model.d.ts +17 -0
  361. package/build/src/models/entity/configuration-model.js +17 -0
  362. package/build/src/models/entity/index.d.ts +10 -0
  363. package/build/src/models/entity/index.js +26 -0
  364. package/build/src/models/entity/price-model.d.ts +11 -0
  365. package/build/src/models/entity/price-model.js +15 -0
  366. package/build/src/models/entity/pricing-plan-entity-model.d.ts +47 -0
  367. package/build/src/models/entity/pricing-plan-entity-model.js +128 -0
  368. package/build/src/models/entity/subscription-model.d.ts +44 -0
  369. package/build/src/models/entity/subscription-model.js +154 -0
  370. package/build/src/models/entity/turf-model.d.ts +36 -0
  371. package/build/src/models/entity/turf-model.js +116 -0
  372. package/build/src/models/entity/user-model.d.ts +32 -0
  373. package/build/src/models/entity/user-model.js +19 -0
  374. package/build/src/models/pitch-slab-model.d.ts +9 -0
  375. package/build/src/models/pitch-slab-model.js +21 -0
  376. package/build/src/models/pricing-plan-model.d.ts +27 -0
  377. package/build/src/models/pricing-plan-model.js +89 -0
  378. package/build/src/models/subscribed-pricing-plan-model.d.ts +37 -0
  379. package/build/src/models/subscribed-pricing-plan-model.js +122 -0
  380. package/build/src/models/time-slot-model.d.ts +19 -0
  381. package/build/src/models/time-slot-model.js +98 -0
  382. package/build/src/models/turf-availability-model.d.ts +57 -0
  383. package/build/src/models/turf-availability-model.js +239 -0
  384. package/build/src/types/app-badrequest-exception.type.d.ts +4 -0
  385. package/build/src/types/app-badrequest-exception.type.js +2 -0
  386. package/build/src/types/booking-modification.type.d.ts +6 -0
  387. package/build/src/types/booking-modification.type.js +2 -0
  388. package/build/src/types/bookingdetails-with-booking.type.d.ts +9 -0
  389. package/build/src/types/bookingdetails-with-booking.type.js +2 -0
  390. package/build/src/types/date-wise-payment-history-data.types.d.ts +9 -0
  391. package/build/src/types/date-wise-payment-history-data.types.js +2 -0
  392. package/build/src/utils/constant.d.ts +5 -0
  393. package/build/src/utils/constant.js +8 -0
  394. package/build/src/utils/date-util.d.ts +56 -0
  395. package/build/src/utils/date-util.js +157 -0
  396. package/build/src/utils/math-util.d.ts +14 -0
  397. package/build/src/utils/math-util.js +39 -0
  398. package/build/src/utils/string-utils.d.ts +31 -0
  399. package/build/src/utils/string-utils.js +82 -0
  400. package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.d.ts +1 -0
  401. package/build/tests/unit/charges/across-dates/across-dates-booking-TURF-476.spec.js +114 -0
  402. package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.d.ts +1 -0
  403. package/build/tests/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.js +114 -0
  404. package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.d.ts +1 -0
  405. package/build/tests/unit/charges/across-dates/across-dates-discount-TURF-476.spec.js +114 -0
  406. package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.d.ts +1 -0
  407. package/build/tests/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.js +114 -0
  408. package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.d.ts +1 -0
  409. package/build/tests/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.js +221 -0
  410. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.d.ts +1 -0
  411. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.js +518 -0
  412. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.d.ts +1 -0
  413. package/build/tests/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.js +470 -0
  414. package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.d.ts +1 -0
  415. package/build/tests/unit/charges/discount-conditional/basic-amount-paid.spec.js +263 -0
  416. package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.d.ts +1 -0
  417. package/build/tests/unit/charges/discount-conditional/basic.-amount-not-paid.spec.js +223 -0
  418. package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.d.ts +1 -0
  419. package/build/tests/unit/charges/discount-conditional/decimal-discount.spec.js +509 -0
  420. package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.d.ts +1 -0
  421. package/build/tests/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.js +148 -0
  422. package/build/tests/utils/models/booking-entity-test.d.ts +9 -0
  423. package/build/tests/utils/models/booking-entity-test.js +28 -0
  424. package/package.json +6 -2
  425. /package/build/{@enum.d.ts → src/@enum.d.ts} +0 -0
  426. /package/build/{@enum.js → src/@enum.js} +0 -0
  427. /package/build/{@model.d.ts → src/@model.d.ts} +0 -0
  428. /package/build/{@model.js → src/@model.js} +0 -0
  429. /package/build/{@type.d.ts → src/@type.d.ts} +0 -0
  430. /package/build/{@type.js → src/@type.js} +0 -0
  431. /package/build/{@utils.d.ts → src/@utils.d.ts} +0 -0
  432. /package/build/{@utils.js → src/@utils.js} +0 -0
  433. /package/build/{index.d.ts → src/index.d.ts} +0 -0
  434. /package/build/{index.js → src/index.js} +0 -0
@@ -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 = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum BookingPaymentTransactionType {
2
+ CUSTOMER_PAYMENT = "customer_payment",
3
+ CUSTOMER_REFUND = "customer_refund",
4
+ CUSTOMER_REFUND_INPROCESS = "customer_refund_inprocess",
5
+ CUSTOMER_REFUND_REJECT = "customer_refund_reject",
6
+ CUSTOMER_CANCELLATION = "customer_cancellation"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookingPaymentTransactionType = void 0;
4
+ var BookingPaymentTransactionType;
5
+ (function (BookingPaymentTransactionType) {
6
+ BookingPaymentTransactionType["CUSTOMER_PAYMENT"] = "customer_payment";
7
+ BookingPaymentTransactionType["CUSTOMER_REFUND"] = "customer_refund";
8
+ BookingPaymentTransactionType["CUSTOMER_REFUND_INPROCESS"] = "customer_refund_inprocess";
9
+ BookingPaymentTransactionType["CUSTOMER_REFUND_REJECT"] = "customer_refund_reject";
10
+ BookingPaymentTransactionType["CUSTOMER_CANCELLATION"] = "customer_cancellation";
11
+ })(BookingPaymentTransactionType || (exports.BookingPaymentTransactionType = BookingPaymentTransactionType = {}));
@@ -0,0 +1,11 @@
1
+ export declare enum UserStatus {
2
+ ACTIVE = "active",
3
+ DEACTIVE = "deactive",
4
+ SUSPENDED = "suspended",
5
+ REGISTRATION_APPROVED = "registration_approved",
6
+ SETUP_INVALID = "setup_invalid",
7
+ PAYMENT_INVALID = "payment_invalid",
8
+ ACCOUNT_SUSPENDED = "account_suspended",
9
+ SETUP_DONE = "setup_done",
10
+ PAYMENT_DONE = "payment_done"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserStatus = void 0;
4
+ var UserStatus;
5
+ (function (UserStatus) {
6
+ UserStatus["ACTIVE"] = "active";
7
+ UserStatus["DEACTIVE"] = "deactive";
8
+ UserStatus["SUSPENDED"] = "suspended";
9
+ UserStatus["REGISTRATION_APPROVED"] = "registration_approved";
10
+ UserStatus["SETUP_INVALID"] = "setup_invalid";
11
+ UserStatus["PAYMENT_INVALID"] = "payment_invalid";
12
+ UserStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
13
+ UserStatus["SETUP_DONE"] = "setup_done";
14
+ UserStatus["PAYMENT_DONE"] = "payment_done";
15
+ })(UserStatus || (exports.UserStatus = UserStatus = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum ValidCouponType {
2
+ PERCENTAGE = "percentage",
3
+ UNIT = "unit",
4
+ PER_HOUR_UNIT = "per hour unit",
5
+ PER_HOUR_PERCENTAGE = "per hour percentage"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidCouponType = void 0;
4
+ var ValidCouponType;
5
+ (function (ValidCouponType) {
6
+ ValidCouponType["PERCENTAGE"] = "percentage";
7
+ ValidCouponType["UNIT"] = "unit";
8
+ ValidCouponType["PER_HOUR_UNIT"] = "per hour unit";
9
+ ValidCouponType["PER_HOUR_PERCENTAGE"] = "per hour percentage";
10
+ })(ValidCouponType || (exports.ValidCouponType = ValidCouponType = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum UserType {
2
+ STAFF = "staff",
3
+ OWNER = "owner",
4
+ SUPERADMIN = "superadmin",
5
+ BOT_USER = "bot_user"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserType = void 0;
4
+ var UserType;
5
+ (function (UserType) {
6
+ UserType["STAFF"] = "staff";
7
+ UserType["OWNER"] = "owner";
8
+ UserType["SUPERADMIN"] = "superadmin";
9
+ UserType["BOT_USER"] = "bot_user";
10
+ })(UserType || (exports.UserType = UserType = {}));
@@ -0,0 +1,4 @@
1
+ import { IAppBadRequestException } from "../types/app-badrequest-exception.type";
2
+ export declare class AppBadRequestException extends Error {
3
+ constructor(appBadRequestException: IAppBadRequestException);
4
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.AppBadRequestException = void 0;
19
+ var AppBadRequestException = /** @class */ (function (_super) {
20
+ __extends(AppBadRequestException, _super);
21
+ function AppBadRequestException(appBadRequestException) {
22
+ var _this = _super.call(this) || this;
23
+ _this.message = appBadRequestException.message.join(",");
24
+ return _this;
25
+ }
26
+ return AppBadRequestException;
27
+ }(Error));
28
+ exports.AppBadRequestException = AppBadRequestException;
@@ -0,0 +1,10 @@
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface IActivateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }>> {
6
+ }
7
+ export interface IActivateSubscriptionRequest {
8
+ dateCode?: number;
9
+ organizationId?: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ export interface IBookingAvailabilityByPitchResponse {
2
+ available: {
3
+ [key: string]: {
4
+ from: string;
5
+ to: string;
6
+ pitch: number[];
7
+ price: number;
8
+ }[];
9
+ };
10
+ notavailable: {
11
+ [key: string]: IBookingByPitches[];
12
+ };
13
+ pricenotavailable: {
14
+ [key: string]: IBookingByPitches[];
15
+ };
16
+ totalPrice: number;
17
+ activePitches: {
18
+ [key: number]: {
19
+ name: string;
20
+ sports: string;
21
+ };
22
+ };
23
+ }
24
+ export interface IBookingByPitches {
25
+ from: string;
26
+ to: string;
27
+ pitch: number[];
28
+ }
29
+ export interface IBookingAvailabilityByPitchRequest {
30
+ slot: IBookingAvailabilitySlotRequest[];
31
+ bookingCode?: string;
32
+ }
33
+ export interface IBookingAvailabilitySlotRequest {
34
+ fromDate: number;
35
+ toDate: number;
36
+ weekdays: number[];
37
+ from: string;
38
+ to: string;
39
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface ICancellationChargesResponse {
2
+ [key: string]: {
3
+ cancellationCharges: number;
4
+ cancellationUnit: string;
5
+ };
6
+ }
7
+ export interface ICancellationChargesDtoRequest {
8
+ data?: {
9
+ [key: string]: string;
10
+ };
11
+ new_slot?: ICancellationChargesSlot;
12
+ }
13
+ export interface ICancellationChargesSlot {
14
+ date: number;
15
+ from: string;
16
+ to: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { IBankDetailsEntity, IUploadedMulterFile, Modify } from "../../@type";
2
+ export interface ICreateBankDetailResponse extends Modify<IBankDetailsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface ICreateBankDetailRequest {
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
+ }
18
+ export interface Files {
19
+ key: string;
20
+ value: File;
21
+ name: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { ICancellationPolicyEntity, IModifyEntity } from "../../@type";
2
+ export interface ICreateCancellationPolicyResponse extends Array<IModifyEntity<ICancellationPolicyEntity>> {
3
+ }
4
+ export interface ICreateCancellationPolicyDtoRequest {
5
+ adhocRefund: boolean;
6
+ cancellationPolicy?: ICancellationPolicyDetailsRequest[];
7
+ }
8
+ export interface ICancellationPolicyDetailsRequest {
9
+ from: number;
10
+ to: number;
11
+ charges: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { ValidCouponType } from "../../@enum";
2
+ import { ICouponEntity, Modify } from "../../@type";
3
+ export interface ICreateCouponResponse extends Modify<ICouponEntity, {
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ }> {
7
+ }
8
+ export interface ICreateCouponDtoRequest {
9
+ type: ValidCouponType;
10
+ value: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { IFaqsEntity, Modify } from "../../@type";
2
+ export interface ICreateFaqsResponse extends Modify<IFaqsEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface ICreateFaqsRequest {
8
+ module: string;
9
+ question: string;
10
+ index: string;
11
+ steps: IStepsRequest[];
12
+ }
13
+ export interface IStepsRequest {
14
+ text: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { IOrganizationEntity, Modify } from "../../@type";
2
+ export interface ICreateOrganizationResponse extends Modify<IOrganizationEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface ICreateOrganizationRequest {
8
+ name: string;
9
+ owner: ICreateOrganizationUserInfo[];
10
+ email?: string;
11
+ phone?: number;
12
+ type: string;
13
+ pan: string;
14
+ gst?: string;
15
+ deed?: string;
16
+ }
17
+ export interface ICreateOrganizationUserInfo {
18
+ first_name: string;
19
+ email?: string;
20
+ phone?: number;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { IPricingPlanEntity, IBillingCycleDto, IPitchSlab, Modify } from "../../@type";
2
+ export interface ICreatePricingPlanResponse extends Modify<IPricingPlanEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }> {
6
+ }
7
+ export interface ICreatePricingPlanDtoRequest {
8
+ effective_from_date: number;
9
+ effective_to_date?: number;
10
+ base_price: number;
11
+ unit: string;
12
+ pitch_slab: {
13
+ [key: string]: IPitchSlab;
14
+ };
15
+ billing_cycle: IBillingCycleDto;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { PaymentMode, BookingDetailsStatus } from "../../@enum";
2
+ import { IBookingDetailsEntity, IGetAvailabilityByTurf, IModifyEntity } from "../../@type";
3
+ export interface ICreateRecurringSlotBookingResponse extends IModifyEntity<IBookingDetailsEntity> {
4
+ }
5
+ export interface ICreateRecurringSlotsBookingDetailsRequest {
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: IRecurringSlot[];
19
+ turf_slot?: {
20
+ availability_details: IGetAvailabilityByTurf;
21
+ };
22
+ }
23
+ export declare class IRecurringSlot {
24
+ fromDate: number;
25
+ toDate: number;
26
+ weekdays: number[];
27
+ from: string;
28
+ to: string;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { OrganizationStatus } from "../../@enum";
2
+ import { IModifyEntity } from "../../@type";
3
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
4
+ export interface ICreateRegistrationResponse extends IModifyEntity<IWithoutTokenRegistrationEntity> {
5
+ }
6
+ export interface ICreateRegistrationRequest {
7
+ name: string;
8
+ contact: string;
9
+ email: string;
10
+ pitchPlan: string;
11
+ status: OrganizationStatus;
12
+ comments?: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
2
+ export type ICreateRegistrationTransactionOutput = IWithoutTokenRegistrationEntity;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { ISubscriptionEntity, Modify } from "../../@type";
2
+ export interface ICreateSubscriptionResponse extends Array<Modify<ISubscriptionEntity, {
3
+ createdOn: string;
4
+ updatedOn: string;
5
+ }>> {
6
+ }
7
+ export interface ICreateSubscriptionRequest {
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
+ noOfPitches: number;
17
+ remarks?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export interface ICreateTurfRequest {
2
+ turfName: string;
3
+ numberOfPitches: number;
4
+ pitches: IPitches[];
5
+ address: string;
6
+ }
7
+ export interface IPitches {
8
+ name: string;
9
+ sports: ISports[];
10
+ }
11
+ export interface ISports {
12
+ name: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { UserType } from "../../@enum";
2
+ export interface IUserRequest {
3
+ firstname: string;
4
+ password: string;
5
+ phone: number;
6
+ email?: string;
7
+ turfids: string[];
8
+ type: UserType;
9
+ comments?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IBankDetailsEntity, Modify } from "../../@type";
2
+ export interface IDeleteBankDetailsByIdResponse extends Modify<IBankDetailsEntity, {
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,7 @@
1
+ import { PaymentMode } from "../../@enum";
2
+ import { IDeleteBookingByCodesDto } from "../dto/delete-booking-by-codes-dto.interface";
3
+ export interface IDeleteBookingByCodesResponse extends IDeleteBookingByCodesDto {
4
+ cancellation_amount: number;
5
+ refund_amount: number;
6
+ refund_mode: PaymentMode;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IBookingDetailsEntity, IModifyEntity } from "../../@type";
2
+ export interface IDeleteBookingInfoResponse extends IModifyEntity<IBookingDetailsEntity> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IPricingPlanEntity, Modify } from "../../@type";
2
+ export interface IRemovePricingPlanByIdResponse extends Modify<IPricingPlanEntity, {
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,23 @@
1
+ import { IModifyEntity, IPitch, ITurf, Modify } from "../../@type";
2
+ import { IBookingDetailsWithCode } from "../booking-details-with-code.interface";
3
+ export interface IGetAllBookingOfTurfResponse {
4
+ turfs: {
5
+ [turfId: number]: Modify<ITurf, {
6
+ createdOn: string;
7
+ updatedOn: string;
8
+ pitches: Modify<IPitch, {
9
+ createdOn: string;
10
+ updatedOn: string;
11
+ }>[];
12
+ }>;
13
+ };
14
+ bookings: {
15
+ [turfId: string]: {
16
+ [pitchCode: string]: {
17
+ [date: string]: {
18
+ [timeSlotCode: string]: IModifyEntity<IBookingDetailsWithCode>;
19
+ };
20
+ };
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { BookingDetailsStatus } from "../../@enum";
2
+ import { AvailabilityView } from "../../enums/availability-view.enum";
3
+ export interface IGetAvailabilityByTurfRequest {
4
+ dateRange: string;
5
+ timeRange?: string;
6
+ pitch: string;
7
+ view: AvailabilityView;
8
+ weekDays: number[];
9
+ }
10
+ export interface IGetAvailabilityByTurf {
11
+ [dateCode: string]: IAvailabilityData;
12
+ }
13
+ export interface ITurfAvailabilityDetails {
14
+ [pitchId: string]: ITurfAvailabilityDetail;
15
+ }
16
+ export interface ITurfAvailabilityDetail {
17
+ price: number;
18
+ bookingId?: number;
19
+ status?: BookingDetailsStatus;
20
+ priceSlot?: string;
21
+ }
22
+ export interface IAvailabilityData {
23
+ [timeSlot: string]: ITurfAvailabilityBooking;
24
+ }
25
+ export interface ITurfAvailabilityBooking {
26
+ available: number[];
27
+ notavailable: number[];
28
+ details: ITurfAvailabilityDetails;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IBankDetailsEntity, Modify } from "../../@type";
2
+ export interface IGetBankDetailByIdResponse extends Modify<IBankDetailsEntity, {
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,6 @@
1
+ import { IBankDetailsEntity, Modify } from "../../@type";
2
+ export interface IGetBankDetailsEntitiesResponse extends Modify<IBankDetailsEntity, {
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,30 @@
1
+ import { IModifyEntity } from "../../@type";
2
+ import { IBookingDetailsWithBookingCodes } from "../../types/bookingdetails-with-booking.type";
3
+ import { UserType } from "../../enums/valid-type.enum";
4
+ import { BookingFetchFilter } from "../../enums/booking-fetch-filter.enum";
5
+ import { IModifyTurf } from "../modify-turf.interface";
6
+ export interface IGetBookingsByOrganizationIdResponse {
7
+ turfs: {
8
+ [turfId: number]: IModifyTurf;
9
+ };
10
+ pending_refund: {
11
+ [id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
12
+ };
13
+ full_refund: {
14
+ [id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
15
+ };
16
+ pending_payment: {
17
+ [id: string]: IModifyEntity<IBookingDetailsWithBookingCodes>;
18
+ };
19
+ user: {
20
+ [userId: string]: {
21
+ id: number;
22
+ firstname: string;
23
+ email: string;
24
+ type: UserType;
25
+ };
26
+ };
27
+ }
28
+ export interface IGetBookingsByOrganizationIdRequest {
29
+ fetch: BookingFetchFilter[];
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });