turf-common 1.3.2-beta.0 → 1.4.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-booking-TURF-476.spec.js +2 -2
  2. package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.js +2 -2
  3. package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-discount-TURF-476.spec.js +2 -2
  4. package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.js +2 -2
  5. package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.js +2 -2
  6. package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.js +2 -2
  7. package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.js +2 -2
  8. package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid.spec.js +2 -2
  9. package/build/{tests → src/tests}/unit/charges/discount-conditional/basic.-amount-not-paid.spec.js +2 -2
  10. package/build/{tests → src/tests}/unit/charges/discount-conditional/decimal-discount.spec.js +2 -2
  11. package/build/{tests → src/tests}/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.js +2 -2
  12. package/build/{tests → src/tests}/utils/models/booking-entity-test.d.ts +1 -1
  13. package/build/{tests → src/tests}/utils/models/booking-entity-test.js +3 -3
  14. package/package.json +2 -2
  15. package/build/@enums/socket-io.d.ts +0 -1
  16. package/build/@enums/socket-io.js +0 -17
  17. package/build/@types/socket-io.d.ts +0 -1
  18. package/build/@types/socket-io.js +0 -17
  19. package/build/enums/availability-view.enum.d.ts +0 -4
  20. package/build/enums/availability-view.enum.js +0 -8
  21. package/build/enums/booking-details-status.enum.d.ts +0 -4
  22. package/build/enums/booking-details-status.enum.js +0 -8
  23. package/build/enums/booking-fetch-filter.enum.d.ts +0 -5
  24. package/build/enums/booking-fetch-filter.enum.js +0 -9
  25. package/build/enums/booking-history-operation-type.enum.d.ts +0 -12
  26. package/build/enums/booking-history-operation-type.enum.js +0 -20
  27. package/build/enums/bookings-status.enum.d.ts +0 -5
  28. package/build/enums/bookings-status.enum.js +0 -9
  29. package/build/enums/configuration-description.enum.d.ts +0 -5
  30. package/build/enums/configuration-description.enum.js +0 -9
  31. package/build/enums/configuration-key.enum.d.ts +0 -10
  32. package/build/enums/configuration-key.enum.js +0 -29
  33. package/build/enums/configuration-text.enum.d.ts +0 -5
  34. package/build/enums/configuration-text.enum.js +0 -9
  35. package/build/enums/cron-jobs-name.enum.d.ts +0 -5
  36. package/build/enums/cron-jobs-name.enum.js +0 -9
  37. package/build/enums/cron-jobs-status.enum.d.ts +0 -5
  38. package/build/enums/cron-jobs-status.enum.js +0 -9
  39. package/build/enums/environment.enum.d.ts +0 -5
  40. package/build/enums/environment.enum.js +0 -9
  41. package/build/enums/faqs-status.enum.d.ts +0 -3
  42. package/build/enums/faqs-status.enum.js +0 -7
  43. package/build/enums/modification-discount-policy.enum.d.ts +0 -5
  44. package/build/enums/modification-discount-policy.enum.js +0 -9
  45. package/build/enums/organization-status.enum.d.ts +0 -15
  46. package/build/enums/organization-status.enum.js +0 -31
  47. package/build/enums/organization-type.enum.d.ts +0 -5
  48. package/build/enums/organization-type.enum.js +0 -9
  49. package/build/enums/payment-mode.enum.d.ts +0 -4
  50. package/build/enums/payment-mode.enum.js +0 -8
  51. package/build/enums/pitch-operation.enum.d.ts +0 -5
  52. package/build/enums/pitch-operation.enum.js +0 -9
  53. package/build/enums/pitch-sports.enum.d.ts +0 -7
  54. package/build/enums/pitch-sports.enum.js +0 -11
  55. package/build/enums/pitch-status.enum.d.ts +0 -12
  56. package/build/enums/pitch-status.enum.js +0 -13
  57. package/build/enums/pricing-plan-status.enum.d.ts +0 -4
  58. package/build/enums/pricing-plan-status.enum.js +0 -8
  59. package/build/enums/registration-status-enum.d.ts +0 -12
  60. package/build/enums/registration-status-enum.js +0 -16
  61. package/build/enums/socket-io-booking-operation.enum.d.ts +0 -6
  62. package/build/enums/socket-io-booking-operation.enum.js +0 -10
  63. package/build/enums/subscription-status.enum.d.ts +0 -23
  64. package/build/enums/subscription-status.enum.js +0 -40
  65. package/build/enums/timezone.enum.d.ts +0 -3
  66. package/build/enums/timezone.enum.js +0 -7
  67. package/build/enums/transaction-type.enum.d.ts +0 -7
  68. package/build/enums/transaction-type.enum.js +0 -11
  69. package/build/enums/user-status.enum.d.ts +0 -11
  70. package/build/enums/user-status.enum.js +0 -15
  71. package/build/enums/valid-coupon-type.enum.d.ts +0 -6
  72. package/build/enums/valid-coupon-type.enum.js +0 -10
  73. package/build/enums/valid-type.enum.d.ts +0 -6
  74. package/build/enums/valid-type.enum.js +0 -10
  75. package/build/exceptions/app-badrequest.exception.d.ts +0 -4
  76. package/build/exceptions/app-badrequest.exception.js +0 -28
  77. package/build/interface/api/activate-subscription.interface.d.ts +0 -10
  78. package/build/interface/api/activate-subscription.interface.js +0 -2
  79. package/build/interface/api/booking-availablity-by-pitch.interface.d.ts +0 -39
  80. package/build/interface/api/booking-availablity-by-pitch.interface.js +0 -2
  81. package/build/interface/api/cancellation-charges.interface.d.ts +0 -17
  82. package/build/interface/api/cancellation-charges.interface.js +0 -2
  83. package/build/interface/api/create-bank-details.interface.d.ts +0 -22
  84. package/build/interface/api/create-bank-details.interface.js +0 -2
  85. package/build/interface/api/create-cancellation-policy.interface.d.ts +0 -12
  86. package/build/interface/api/create-cancellation-policy.interface.js +0 -2
  87. package/build/interface/api/create-coupon.interface.d.ts +0 -11
  88. package/build/interface/api/create-coupon.interface.js +0 -2
  89. package/build/interface/api/create-faqs.interface.d.ts +0 -15
  90. package/build/interface/api/create-faqs.interface.js +0 -2
  91. package/build/interface/api/create-organization.interface.d.ts +0 -21
  92. package/build/interface/api/create-organization.interface.js +0 -2
  93. package/build/interface/api/create-pricing-plan.interface.d.ts +0 -16
  94. package/build/interface/api/create-pricing-plan.interface.js +0 -2
  95. package/build/interface/api/create-recurring-slot-booking.interface.d.ts +0 -29
  96. package/build/interface/api/create-recurring-slot-booking.interface.js +0 -2
  97. package/build/interface/api/create-registration-interface.d.ts +0 -13
  98. package/build/interface/api/create-registration-interface.js +0 -2
  99. package/build/interface/api/create-registration-transaction-output.interface.d.ts +0 -2
  100. package/build/interface/api/create-registration-transaction-output.interface.js +0 -2
  101. package/build/interface/api/create-subscription.interface.d.ts +0 -18
  102. package/build/interface/api/create-subscription.interface.js +0 -2
  103. package/build/interface/api/create-turf.interface.d.ts +0 -13
  104. package/build/interface/api/create-turf.interface.js +0 -2
  105. package/build/interface/api/create-user.interface.d.ts +0 -10
  106. package/build/interface/api/create-user.interface.js +0 -2
  107. package/build/interface/api/delete-bank-details-by-id.interface.d.ts +0 -6
  108. package/build/interface/api/delete-bank-details-by-id.interface.js +0 -2
  109. package/build/interface/api/delete-booking-by-codes.interface.d.ts +0 -7
  110. package/build/interface/api/delete-booking-by-codes.interface.js +0 -2
  111. package/build/interface/api/delete-booking-info.interface.d.ts +0 -3
  112. package/build/interface/api/delete-booking-info.interface.js +0 -2
  113. package/build/interface/api/delete-pricing-plan.interface.d.ts +0 -6
  114. package/build/interface/api/delete-pricing-plan.interface.js +0 -2
  115. package/build/interface/api/get-all-booking-of-turf.interface.d.ts +0 -23
  116. package/build/interface/api/get-all-booking-of-turf.interface.js +0 -2
  117. package/build/interface/api/get-availability-by-turf.interface.d.ts +0 -29
  118. package/build/interface/api/get-availability-by-turf.interface.js +0 -2
  119. package/build/interface/api/get-bank-detail-by-id.interface.d.ts +0 -6
  120. package/build/interface/api/get-bank-detail-by-id.interface.js +0 -2
  121. package/build/interface/api/get-bank-detail-entities.interface.d.ts +0 -6
  122. package/build/interface/api/get-bank-detail-entities.interface.js +0 -2
  123. package/build/interface/api/get-booking-by-organization-id.interface.d.ts +0 -30
  124. package/build/interface/api/get-booking-by-organization-id.interface.js +0 -2
  125. package/build/interface/api/get-booking-customers.interface.d.ts +0 -3
  126. package/build/interface/api/get-booking-customers.interface.js +0 -2
  127. package/build/interface/api/get-booking-details-by-id.interface.d.ts +0 -4
  128. package/build/interface/api/get-booking-details-by-id.interface.js +0 -2
  129. package/build/interface/api/get-booking-history.interface.d.ts +0 -4
  130. package/build/interface/api/get-booking-history.interface.js +0 -2
  131. package/build/interface/api/get-booking-info.interface.d.ts +0 -11
  132. package/build/interface/api/get-booking-info.interface.js +0 -2
  133. package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.d.ts +0 -15
  134. package/build/interface/api/get-cancellation-policy-entity-by-org-id.interface.js +0 -2
  135. package/build/interface/api/get-cancelled-booking.interface.d.ts +0 -7
  136. package/build/interface/api/get-cancelled-booking.interface.js +0 -2
  137. package/build/interface/api/get-collection.interface.d.ts +0 -24
  138. package/build/interface/api/get-collection.interface.js +0 -2
  139. package/build/interface/api/get-configuration.interface.d.ts +0 -4
  140. package/build/interface/api/get-configuration.interface.js +0 -2
  141. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.d.ts +0 -12
  142. package/build/interface/api/get-cron-job-by-date-range-name-status.interface.js +0 -2
  143. package/build/interface/api/get-current-subscription.interface.d.ts +0 -18
  144. package/build/interface/api/get-current-subscription.interface.js +0 -2
  145. package/build/interface/api/get-organization-by-orgid.interface.d.ts +0 -15
  146. package/build/interface/api/get-organization-by-orgid.interface.js +0 -2
  147. package/build/interface/api/get-price-by-organization-response.interface.d.ts +0 -6
  148. package/build/interface/api/get-price-by-organization-response.interface.js +0 -2
  149. package/build/interface/api/get-price-entity.interface.d.ts +0 -10
  150. package/build/interface/api/get-price-entity.interface.js +0 -2
  151. package/build/interface/api/get-price-query.interface.d.ts +0 -10
  152. package/build/interface/api/get-price-query.interface.js +0 -2
  153. package/build/interface/api/get-pricing-plan-by-date-response.interface.d.ts +0 -23
  154. package/build/interface/api/get-pricing-plan-by-date-response.interface.js +0 -2
  155. package/build/interface/api/get-pricing-plan-by-id.interface.d.ts +0 -3
  156. package/build/interface/api/get-pricing-plan-by-id.interface.js +0 -2
  157. package/build/interface/api/get-pricing-plan-entities.interface.d.ts +0 -3
  158. package/build/interface/api/get-pricing-plan-entities.interface.js +0 -2
  159. package/build/interface/api/get-registration-by-id.types.d.ts +0 -20
  160. package/build/interface/api/get-registration-by-id.types.js +0 -2
  161. package/build/interface/api/get-registration-entities.interface.d.ts +0 -30
  162. package/build/interface/api/get-registration-entities.interface.js +0 -2
  163. package/build/interface/api/get-sports.interface.d.ts +0 -4
  164. package/build/interface/api/get-sports.interface.js +0 -2
  165. package/build/interface/api/get-subscription-by-org-id.interface.d.ts +0 -6
  166. package/build/interface/api/get-subscription-by-org-id.interface.js +0 -2
  167. package/build/interface/api/get-subscription-entities.interface.d.ts +0 -8
  168. package/build/interface/api/get-subscription-entities.interface.js +0 -2
  169. package/build/interface/api/get-tournament.interface.d.ts +0 -4
  170. package/build/interface/api/get-tournament.interface.js +0 -2
  171. package/build/interface/api/get-turf-by-organization.interface.d.ts +0 -6
  172. package/build/interface/api/get-turf-by-organization.interface.js +0 -2
  173. package/build/interface/api/get-turf-entity-response.interface.d.ts +0 -10
  174. package/build/interface/api/get-turf-entity-response.interface.js +0 -2
  175. package/build/interface/api/index.d.ts +0 -78
  176. package/build/interface/api/index.js +0 -96
  177. package/build/interface/api/list-of-coupons.interface.d.ts +0 -14
  178. package/build/interface/api/list-of-coupons.interface.js +0 -2
  179. package/build/interface/api/login-response.interface.d.ts +0 -22
  180. package/build/interface/api/login-response.interface.js +0 -2
  181. package/build/interface/api/manual-trigger-cron-job.interface.d.ts +0 -5
  182. package/build/interface/api/manual-trigger-cron-job.interface.js +0 -2
  183. package/build/interface/api/one-slot-booking.interface.d.ts +0 -24
  184. package/build/interface/api/one-slot-booking.interface.js +0 -2
  185. package/build/interface/api/renew-subscription.interface.d.ts +0 -19
  186. package/build/interface/api/renew-subscription.interface.js +0 -2
  187. package/build/interface/api/set-price.interface.d.ts +0 -6
  188. package/build/interface/api/set-price.interface.js +0 -2
  189. package/build/interface/api/setup-registration.interface.d.ts +0 -5
  190. package/build/interface/api/setup-registration.interface.js +0 -2
  191. package/build/interface/api/staff-member-list.interface.d.ts +0 -9
  192. package/build/interface/api/staff-member-list.interface.js +0 -2
  193. package/build/interface/api/update-bank-detail.interface.d.ts +0 -17
  194. package/build/interface/api/update-bank-detail.interface.js +0 -2
  195. package/build/interface/api/update-booking-by-code-response.interface.d.ts +0 -7
  196. package/build/interface/api/update-booking-by-code-response.interface.js +0 -2
  197. package/build/interface/api/update-configuration.interface.d.ts +0 -10
  198. package/build/interface/api/update-configuration.interface.js +0 -2
  199. package/build/interface/api/update-coupon.interface.d.ts +0 -9
  200. package/build/interface/api/update-coupon.interface.js +0 -2
  201. package/build/interface/api/update-faqs-steps.interface.d.ts +0 -11
  202. package/build/interface/api/update-faqs-steps.interface.js +0 -2
  203. package/build/interface/api/update-faqs.interface.d.ts +0 -6
  204. package/build/interface/api/update-faqs.interface.js +0 -2
  205. package/build/interface/api/update-organization.interface.d.ts +0 -21
  206. package/build/interface/api/update-organization.interface.js +0 -2
  207. package/build/interface/api/update-pricing-plan-by-id.interface.d.ts +0 -20
  208. package/build/interface/api/update-pricing-plan-by-id.interface.js +0 -2
  209. package/build/interface/api/update-recurring-booking.interface.d.ts +0 -52
  210. package/build/interface/api/update-recurring-booking.interface.js +0 -2
  211. package/build/interface/api/update-registration-entities.interface.d.ts +0 -8
  212. package/build/interface/api/update-registration-entities.interface.js +0 -2
  213. package/build/interface/api/update-sports-interface.d.ts +0 -3
  214. package/build/interface/api/update-sports-interface.js +0 -2
  215. package/build/interface/api/update-staff-member.interface.d.ts +0 -16
  216. package/build/interface/api/update-staff-member.interface.js +0 -2
  217. package/build/interface/api/update-subscription.interface.d.ts +0 -23
  218. package/build/interface/api/update-subscription.interface.js +0 -2
  219. package/build/interface/api/update-turf-details.interface.d.ts +0 -20
  220. package/build/interface/api/update-turf-details.interface.js +0 -2
  221. package/build/interface/api/update-turf-transaction-output.d.ts +0 -3
  222. package/build/interface/api/update-turf-transaction-output.js +0 -2
  223. package/build/interface/api/upgrade-renew-subscription.interface.d.ts +0 -10
  224. package/build/interface/api/upgrade-renew-subscription.interface.js +0 -2
  225. package/build/interface/api/upgrade-subscription.interface.d.ts +0 -21
  226. package/build/interface/api/upgrade-subscription.interface.js +0 -2
  227. package/build/interface/api/userentity-without-password.interface.d.ts +0 -5
  228. package/build/interface/api/userentity-without-password.interface.js +0 -2
  229. package/build/interface/api/utils.d.ts +0 -18
  230. package/build/interface/api/utils.js +0 -48
  231. package/build/interface/billing-cycle-dto.interface.d.ts +0 -8
  232. package/build/interface/billing-cycle-dto.interface.js +0 -2
  233. package/build/interface/billing-cycle.interface.d.ts +0 -7
  234. package/build/interface/billing-cycle.interface.js +0 -2
  235. package/build/interface/booking-details-with-code.interface.d.ts +0 -34
  236. package/build/interface/booking-details-with-code.interface.js +0 -2
  237. package/build/interface/controller.interface.d.ts +0 -6
  238. package/build/interface/controller.interface.js +0 -2
  239. package/build/interface/convert-to-midnight-time.interface.d.ts +0 -5
  240. package/build/interface/convert-to-midnight-time.interface.js +0 -2
  241. package/build/interface/date-formatter.interface.d.ts +0 -4
  242. package/build/interface/date-formatter.interface.js +0 -2
  243. package/build/interface/dto/delete-booking-by-codes-dto.interface.d.ts +0 -7
  244. package/build/interface/dto/delete-booking-by-codes-dto.interface.js +0 -2
  245. package/build/interface/dto/update-booking-by-code-dto.interface.d.ts +0 -13
  246. package/build/interface/dto/update-booking-by-code-dto.interface.js +0 -2
  247. package/build/interface/entity/bank-details-entity.interface.d.ts +0 -12
  248. package/build/interface/entity/bank-details-entity.interface.js +0 -2
  249. package/build/interface/entity/booking-cancellation-entity.interface.d.ts +0 -32
  250. package/build/interface/entity/booking-cancellation-entity.interface.js +0 -2
  251. package/build/interface/entity/booking-customer-entity.interface.d.ts +0 -8
  252. package/build/interface/entity/booking-customer-entity.interface.js +0 -2
  253. package/build/interface/entity/booking-details-entity.interface.d.ts +0 -29
  254. package/build/interface/entity/booking-details-entity.interface.js +0 -2
  255. package/build/interface/entity/booking-history-entity.interface.d.ts +0 -35
  256. package/build/interface/entity/booking-history-entity.interface.js +0 -2
  257. package/build/interface/entity/booking-payment-history-entity.interface.d.ts +0 -13
  258. package/build/interface/entity/booking-payment-history-entity.interface.js +0 -2
  259. package/build/interface/entity/bookings-entity.interface.d.ts +0 -6
  260. package/build/interface/entity/bookings-entity.interface.js +0 -2
  261. package/build/interface/entity/cancellation-policy-entity.interface.d.ts +0 -8
  262. package/build/interface/entity/cancellation-policy-entity.interface.js +0 -2
  263. package/build/interface/entity/configurations-entity.interface.d.ts +0 -9
  264. package/build/interface/entity/configurations-entity.interface.js +0 -2
  265. package/build/interface/entity/coupon.entity.interface.d.ts +0 -10
  266. package/build/interface/entity/coupon.entity.interface.js +0 -2
  267. package/build/interface/entity/cron-jobs-entity.interface.d.ts +0 -12
  268. package/build/interface/entity/cron-jobs-entity.interface.js +0 -2
  269. package/build/interface/entity/entity-audit-column.interface.d.ts +0 -12
  270. package/build/interface/entity/entity-audit-column.interface.js +0 -9
  271. package/build/interface/entity/faqs-entity.interface.d.ts +0 -10
  272. package/build/interface/entity/faqs-entity.interface.js +0 -2
  273. package/build/interface/entity/index.d.ts +0 -23
  274. package/build/interface/entity/index.js +0 -39
  275. package/build/interface/entity/organization-entity.interface.d.ts +0 -24
  276. package/build/interface/entity/organization-entity.interface.js +0 -2
  277. package/build/interface/entity/pitch-entity.interface.d.ts +0 -9
  278. package/build/interface/entity/pitch-entity.interface.js +0 -2
  279. package/build/interface/entity/price-entity.interface.d.ts +0 -5
  280. package/build/interface/entity/price-entity.interface.js +0 -2
  281. package/build/interface/entity/pricing-plan-entity.interface.d.ts +0 -16
  282. package/build/interface/entity/pricing-plan-entity.interface.js +0 -2
  283. package/build/interface/entity/registration-entity.interface.d.ts +0 -12
  284. package/build/interface/entity/registration-entity.interface.js +0 -2
  285. package/build/interface/entity/sports-entity.interface.d.ts +0 -6
  286. package/build/interface/entity/sports-entity.interface.js +0 -2
  287. package/build/interface/entity/subscription-entity.interface.d.ts +0 -26
  288. package/build/interface/entity/subscription-entity.interface.js +0 -2
  289. package/build/interface/entity/subscription-pitch-mapping.interface.d.ts +0 -8
  290. package/build/interface/entity/subscription-pitch-mapping.interface.js +0 -2
  291. package/build/interface/entity/turf-entity.interface.d.ts +0 -17
  292. package/build/interface/entity/turf-entity.interface.js +0 -2
  293. package/build/interface/entity/user-entity.interface.d.ts +0 -24
  294. package/build/interface/entity/user-entity.interface.js +0 -2
  295. package/build/interface/formate-date-and-time.interface.d.ts +0 -6
  296. package/build/interface/formate-date-and-time.interface.js +0 -2
  297. package/build/interface/get-booking-by-id.interface.d.ts +0 -56
  298. package/build/interface/get-booking-by-id.interface.js +0 -2
  299. package/build/interface/get-booking-codes-per-thirty-min.interface.d.ts +0 -4
  300. package/build/interface/get-booking-codes-per-thirty-min.interface.js +0 -2
  301. package/build/interface/get-pricing-plan-by-date-response.interface.d.ts +0 -23
  302. package/build/interface/get-pricing-plan-by-date-response.interface.js +0 -2
  303. package/build/interface/get-turf-entity.interface.d.ts +0 -34
  304. package/build/interface/get-turf-entity.interface.js +0 -2
  305. package/build/interface/key-value.interface.d.ts +0 -3
  306. package/build/interface/key-value.interface.js +0 -2
  307. package/build/interface/model/booking-details-model.interface.d.ts +0 -5
  308. package/build/interface/model/booking-details-model.interface.js +0 -2
  309. package/build/interface/model/booking-entity-model.interface.d.ts +0 -8
  310. package/build/interface/model/booking-entity-model.interface.js +0 -2
  311. package/build/interface/model/cancellation-policy-model.interface.d.ts +0 -4
  312. package/build/interface/model/cancellation-policy-model.interface.js +0 -2
  313. package/build/interface/model/charge-model.interface.d.ts +0 -13
  314. package/build/interface/model/charge-model.interface.js +0 -2
  315. package/build/interface/model/configuration-model.interface.d.ts +0 -4
  316. package/build/interface/model/configuration-model.interface.js +0 -2
  317. package/build/interface/model/index.d.ts +0 -10
  318. package/build/interface/model/index.js +0 -26
  319. package/build/interface/model/price-model.interface.d.ts +0 -3
  320. package/build/interface/model/price-model.interface.js +0 -2
  321. package/build/interface/model/pricing-plan-entity-model.interface.d.ts +0 -13
  322. package/build/interface/model/pricing-plan-entity-model.interface.js +0 -2
  323. package/build/interface/model/pricing-plan-model.interface.d.ts +0 -15
  324. package/build/interface/model/pricing-plan-model.interface.js +0 -2
  325. package/build/interface/model/turf-model.interface.d.ts +0 -7
  326. package/build/interface/model/turf-model.interface.js +0 -2
  327. package/build/interface/model/user-model.interface.d.ts +0 -3
  328. package/build/interface/model/user-model.interface.js +0 -2
  329. package/build/interface/modify-entity.interface.d.ts +0 -5
  330. package/build/interface/modify-entity.interface.js +0 -2
  331. package/build/interface/modify-turf.interface.d.ts +0 -7
  332. package/build/interface/modify-turf.interface.js +0 -2
  333. package/build/interface/modify.interface.d.ts +0 -1
  334. package/build/interface/modify.interface.js +0 -2
  335. package/build/interface/ng-date-structure.interface.d.ts +0 -5
  336. package/build/interface/ng-date-structure.interface.js +0 -2
  337. package/build/interface/pitch-slab-dto.interface.d.ts +0 -8
  338. package/build/interface/pitch-slab-dto.interface.js +0 -2
  339. package/build/interface/pitch-slab.interface.d.ts +0 -5
  340. package/build/interface/pitch-slab.interface.js +0 -2
  341. package/build/interface/pricing-plan.interface.d.ts +0 -15
  342. package/build/interface/pricing-plan.interface.js +0 -2
  343. package/build/interface/socket-io-bookings.interface.d.ts +0 -12
  344. package/build/interface/socket-io-bookings.interface.js +0 -2
  345. package/build/interface/time-formatter.interface.d.ts +0 -4
  346. package/build/interface/time-formatter.interface.js +0 -2
  347. package/build/interface/ui/booking-data.interface.d.ts +0 -6
  348. package/build/interface/ui/booking-data.interface.js +0 -2
  349. package/build/interface/ui/upgrade-subscription-data.interface.d.ts +0 -15
  350. package/build/interface/ui/upgrade-subscription-data.interface.js +0 -2
  351. package/build/interface/upload-multer-file.interface.d.ts +0 -9
  352. package/build/interface/upload-multer-file.interface.js +0 -2
  353. package/build/interface/user-info-dto.interface.d.ts +0 -16
  354. package/build/interface/user-info-dto.interface.js +0 -2
  355. package/build/interface/without-token-registration-entity.types.d.ts +0 -3
  356. package/build/interface/without-token-registration-entity.types.js +0 -2
  357. package/build/models/billing-cycle-model.d.ts +0 -11
  358. package/build/models/billing-cycle-model.js +0 -27
  359. package/build/models/booking-code-model.d.ts +0 -139
  360. package/build/models/booking-code-model.js +0 -624
  361. package/build/models/charge-model.d.ts +0 -34
  362. package/build/models/charge-model.js +0 -275
  363. package/build/models/entity/booking-details-model.d.ts +0 -41
  364. package/build/models/entity/booking-details-model.js +0 -69
  365. package/build/models/entity/booking-entity-model.d.ts +0 -21
  366. package/build/models/entity/booking-entity-model.js +0 -47
  367. package/build/models/entity/booking-payment-history-model.d.ts +0 -20
  368. package/build/models/entity/booking-payment-history-model.js +0 -36
  369. package/build/models/entity/cancellation-policy-model.d.ts +0 -18
  370. package/build/models/entity/cancellation-policy-model.js +0 -32
  371. package/build/models/entity/configuration-model.d.ts +0 -17
  372. package/build/models/entity/configuration-model.js +0 -17
  373. package/build/models/entity/index.d.ts +0 -10
  374. package/build/models/entity/index.js +0 -26
  375. package/build/models/entity/price-model.d.ts +0 -11
  376. package/build/models/entity/price-model.js +0 -15
  377. package/build/models/entity/pricing-plan-entity-model.d.ts +0 -47
  378. package/build/models/entity/pricing-plan-entity-model.js +0 -128
  379. package/build/models/entity/subscription-model.d.ts +0 -44
  380. package/build/models/entity/subscription-model.js +0 -154
  381. package/build/models/entity/turf-model.d.ts +0 -36
  382. package/build/models/entity/turf-model.js +0 -116
  383. package/build/models/entity/user-model.d.ts +0 -32
  384. package/build/models/entity/user-model.js +0 -19
  385. package/build/models/pitch-slab-model.d.ts +0 -9
  386. package/build/models/pitch-slab-model.js +0 -21
  387. package/build/models/pricing-plan-model.d.ts +0 -27
  388. package/build/models/pricing-plan-model.js +0 -89
  389. package/build/models/subscribed-pricing-plan-model.d.ts +0 -37
  390. package/build/models/subscribed-pricing-plan-model.js +0 -122
  391. package/build/models/time-slot-model.d.ts +0 -19
  392. package/build/models/time-slot-model.js +0 -98
  393. package/build/models/turf-availability-model.d.ts +0 -57
  394. package/build/models/turf-availability-model.js +0 -239
  395. package/build/types/app-badrequest-exception.type.d.ts +0 -4
  396. package/build/types/app-badrequest-exception.type.js +0 -2
  397. package/build/types/booking-modification.type.d.ts +0 -6
  398. package/build/types/booking-modification.type.js +0 -2
  399. package/build/types/bookingdetails-with-booking.type.d.ts +0 -9
  400. package/build/types/bookingdetails-with-booking.type.js +0 -2
  401. package/build/types/date-wise-payment-history-data.types.d.ts +0 -9
  402. package/build/types/date-wise-payment-history-data.types.js +0 -2
  403. package/build/utils/constant.d.ts +0 -5
  404. package/build/utils/constant.js +0 -8
  405. package/build/utils/date-util.d.ts +0 -56
  406. package/build/utils/date-util.js +0 -157
  407. package/build/utils/math-util.d.ts +0 -14
  408. package/build/utils/math-util.js +0 -39
  409. package/build/utils/string-utils.d.ts +0 -31
  410. package/build/utils/string-utils.js +0 -82
  411. /package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-booking-TURF-476.spec.d.ts +0 -0
  412. /package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-booking-without-discount-TURF-476.e2e-spec.d.ts +0 -0
  413. /package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-discount-TURF-476.spec.d.ts +0 -0
  414. /package/build/{tests → src/tests}/unit/charges/across-dates/across-dates-extend-remove-TURF-476.spec.d.ts +0 -0
  415. /package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-half-amount-paid.spec.d.ts +0 -0
  416. /package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid-cancellation-not-present.spec.d.ts +0 -0
  417. /package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid-refund-amount-paid.spec.d.ts +0 -0
  418. /package/build/{tests → src/tests}/unit/charges/discount-conditional/basic-amount-paid.spec.d.ts +0 -0
  419. /package/build/{tests → src/tests}/unit/charges/discount-conditional/basic.-amount-not-paid.spec.d.ts +0 -0
  420. /package/build/{tests → src/tests}/unit/charges/discount-conditional/decimal-discount.spec.d.ts +0 -0
  421. /package/build/{tests → src/tests}/unit/charges/per-hour-unit/phu-basic-amount-not-paid-TURF-486.spec.d.ts +0 -0
@@ -1,12 +0,0 @@
1
- export declare enum PitchStatus {
2
- ACTIVE = "active",
3
- DELETE = "delete",
4
- DEACTIVE = "deactive",
5
- NEW = "new",
6
- SETUP_INVALID = "setup_invalid",
7
- PAYMENT_INVALID = "payment_invalid",
8
- ACCOUNT_SUSPENDED = "account_suspended"
9
- }
10
- export type IPitchStatus = {
11
- [key in PitchStatus]: number;
12
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PitchStatus = void 0;
4
- var PitchStatus;
5
- (function (PitchStatus) {
6
- PitchStatus["ACTIVE"] = "active";
7
- PitchStatus["DELETE"] = "delete";
8
- PitchStatus["DEACTIVE"] = "deactive";
9
- PitchStatus["NEW"] = "new";
10
- PitchStatus["SETUP_INVALID"] = "setup_invalid";
11
- PitchStatus["PAYMENT_INVALID"] = "payment_invalid";
12
- PitchStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
13
- })(PitchStatus || (exports.PitchStatus = PitchStatus = {}));
@@ -1,4 +0,0 @@
1
- export declare enum PricingPlanStatus {
2
- ACTIVE = "active",
3
- DEACTIVE = "deactive"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PricingPlanStatus = void 0;
4
- var PricingPlanStatus;
5
- (function (PricingPlanStatus) {
6
- PricingPlanStatus["ACTIVE"] = "active";
7
- PricingPlanStatus["DEACTIVE"] = "deactive";
8
- })(PricingPlanStatus || (exports.PricingPlanStatus = PricingPlanStatus = {}));
@@ -1,12 +0,0 @@
1
- export declare enum RegistrationStatus {
2
- REGISTRATION = "registration",
3
- REGISTRATION_INVALID = "registration_invalid",
4
- REGISTRATION_APPROVED = "registration_approved",
5
- SETUP_INVALID = "setup_invalid",
6
- SETUP_DONE = "setup_done",
7
- PAYMENT_INVALID = "payment_invalid",
8
- PAYMENT_DONE = "payment_done",
9
- ACCOUNT_ACTIVE = "account_active",
10
- ACCOUNT_SUSPENDED = "account_suspended",
11
- ACTIVE = "active"
12
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegistrationStatus = void 0;
4
- var RegistrationStatus;
5
- (function (RegistrationStatus) {
6
- RegistrationStatus["REGISTRATION"] = "registration";
7
- RegistrationStatus["REGISTRATION_INVALID"] = "registration_invalid";
8
- RegistrationStatus["REGISTRATION_APPROVED"] = "registration_approved";
9
- RegistrationStatus["SETUP_INVALID"] = "setup_invalid";
10
- RegistrationStatus["SETUP_DONE"] = "setup_done";
11
- RegistrationStatus["PAYMENT_INVALID"] = "payment_invalid";
12
- RegistrationStatus["PAYMENT_DONE"] = "payment_done";
13
- RegistrationStatus["ACCOUNT_ACTIVE"] = "account_active";
14
- RegistrationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
15
- RegistrationStatus["ACTIVE"] = "active";
16
- })(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
@@ -1,6 +0,0 @@
1
- export declare enum BookingOperations {
2
- BOOKED = "booked",
3
- BLOCKED = "blocked",
4
- DELETE = "delete",
5
- MODIFY = "modify"
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BookingOperations = void 0;
4
- var BookingOperations;
5
- (function (BookingOperations) {
6
- BookingOperations["BOOKED"] = "booked";
7
- BookingOperations["BLOCKED"] = "blocked";
8
- BookingOperations["DELETE"] = "delete";
9
- BookingOperations["MODIFY"] = "modify";
10
- })(BookingOperations || (exports.BookingOperations = BookingOperations = {}));
@@ -1,23 +0,0 @@
1
- export declare enum SubscriptionStatus {
2
- ACTIVE = "active",
3
- DEACTIVE = "deactive",
4
- SUSPENDED = "suspended",
5
- ONHOLD = "onhold",
6
- UPGRADE = "upgrade",
7
- UPGRADED = "upgraded",
8
- PAYMENT_DONE = "payment_done",
9
- PAYMENT_PENDING = "payment_pending",
10
- DEACTIVE_ACCOUNT_SUSPENDED = "deactive_account_suspended",
11
- DEACTIVE_EXPIRED = "deactive_expired",
12
- UPGRADE_PAYMENT_PENDING = "upgrade_payment_pending",
13
- UPGRADE_PAYMENT_DONE = "upgrade_payment_done",
14
- UPGRADE_RENEW_PAYMENT_PENDING = "upgrade_renew_payment_pending",
15
- UPGRADE_RENEW_PAYMENT_DONE = "upgrade_renew_payment_done",
16
- REJECT = "reject",
17
- SETUP_INVALID = "setup_invalid",
18
- PAYMENT_INVALID = "payment_invalid",
19
- ACCOUNT_SUSPENDED = "account_suspended"
20
- }
21
- export declare namespace SubscriptionStatus {
22
- function InProcessStatus(): SubscriptionStatus[];
23
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionStatus = void 0;
4
- var SubscriptionStatus;
5
- (function (SubscriptionStatus) {
6
- SubscriptionStatus["ACTIVE"] = "active";
7
- SubscriptionStatus["DEACTIVE"] = "deactive";
8
- SubscriptionStatus["SUSPENDED"] = "suspended";
9
- SubscriptionStatus["ONHOLD"] = "onhold";
10
- SubscriptionStatus["UPGRADE"] = "upgrade";
11
- SubscriptionStatus["UPGRADED"] = "upgraded";
12
- SubscriptionStatus["PAYMENT_DONE"] = "payment_done";
13
- SubscriptionStatus["PAYMENT_PENDING"] = "payment_pending";
14
- SubscriptionStatus["DEACTIVE_ACCOUNT_SUSPENDED"] = "deactive_account_suspended";
15
- SubscriptionStatus["DEACTIVE_EXPIRED"] = "deactive_expired";
16
- SubscriptionStatus["UPGRADE_PAYMENT_PENDING"] = "upgrade_payment_pending";
17
- SubscriptionStatus["UPGRADE_PAYMENT_DONE"] = "upgrade_payment_done";
18
- SubscriptionStatus["UPGRADE_RENEW_PAYMENT_PENDING"] = "upgrade_renew_payment_pending";
19
- SubscriptionStatus["UPGRADE_RENEW_PAYMENT_DONE"] = "upgrade_renew_payment_done";
20
- SubscriptionStatus["REJECT"] = "reject";
21
- SubscriptionStatus["SETUP_INVALID"] = "setup_invalid";
22
- SubscriptionStatus["PAYMENT_INVALID"] = "payment_invalid";
23
- SubscriptionStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
24
- })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
25
- // eslint-disable-next-line @typescript-eslint/no-namespace
26
- (function (SubscriptionStatus) {
27
- function InProcessStatus() {
28
- var inProcessStatus = [
29
- SubscriptionStatus.PAYMENT_DONE,
30
- SubscriptionStatus.PAYMENT_PENDING,
31
- SubscriptionStatus.UPGRADE_PAYMENT_DONE,
32
- SubscriptionStatus.UPGRADE_PAYMENT_PENDING,
33
- // SubscriptionStatus.ACTIVE,
34
- ];
35
- return Object.values(SubscriptionStatus).filter(function (status) {
36
- return inProcessStatus.includes(status);
37
- });
38
- }
39
- SubscriptionStatus.InProcessStatus = InProcessStatus;
40
- })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
@@ -1,3 +0,0 @@
1
- export declare enum Timezone {
2
- ASIA_KOLKATA = "Asia/Kolkata"
3
- }
@@ -1,7 +0,0 @@
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 = {}));
@@ -1,7 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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 = {}));
@@ -1,11 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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 = {}));
@@ -1,6 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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 = {}));
@@ -1,6 +0,0 @@
1
- export declare enum UserType {
2
- STAFF = "staff",
3
- OWNER = "owner",
4
- SUPERADMIN = "superadmin",
5
- BOT_USER = "bot_user"
6
- }
@@ -1,10 +0,0 @@
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 = {}));
@@ -1,4 +0,0 @@
1
- import { IAppBadRequestException } from "../types/app-badrequest-exception.type";
2
- export declare class AppBadRequestException extends Error {
3
- constructor(appBadRequestException: IAppBadRequestException);
4
- }
@@ -1,28 +0,0 @@
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;
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,29 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IWithoutTokenRegistrationEntity } from "../without-token-registration-entity.types";
2
- export type ICreateRegistrationTransactionOutput = IWithoutTokenRegistrationEntity;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });