@xoxno/types 1.0.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 (543) hide show
  1. package/dist/cache/keys.d.ts +642 -0
  2. package/dist/cache/keys.js +654 -0
  3. package/dist/cache/ttl.d.ts +13 -0
  4. package/dist/cache/ttl.js +16 -0
  5. package/dist/common/enums.d.ts +52 -0
  6. package/dist/common/enums.js +61 -0
  7. package/dist/common/kusto/kusto-db.enum.d.ts +7 -0
  8. package/dist/common/kusto/kusto-db.enum.js +12 -0
  9. package/dist/common/kusto/lending-market-analytics.d.ts +19 -0
  10. package/dist/common/kusto/lending-market-analytics.js +171 -0
  11. package/dist/common/kusto/lending-overall-stats.d.ts +11 -0
  12. package/dist/common/kusto/lending-overall-stats.js +72 -0
  13. package/dist/common/kusto/lending-position-status.d.ts +10 -0
  14. package/dist/common/kusto/lending-position-status.js +63 -0
  15. package/dist/common/kusto/order-by-column.enum.d.ts +8 -0
  16. package/dist/common/kusto/order-by-column.enum.js +13 -0
  17. package/dist/common/kusto/order-direction.enum.d.ts +4 -0
  18. package/dist/common/kusto/order-direction.enum.js +8 -0
  19. package/dist/common/kusto/trading-stats.d.ts +28 -0
  20. package/dist/common/kusto/trading-stats.js +35 -0
  21. package/dist/common/kusto/user-trading-summary.d.ts +20 -0
  22. package/dist/common/kusto/user-trading-summary.js +6 -0
  23. package/dist/common/kusto/volume-graph.d.ts +16 -0
  24. package/dist/common/kusto/volume-graph.js +57 -0
  25. package/dist/common/kusto/wallet-stats.d.ts +36 -0
  26. package/dist/common/kusto/wallet-stats.js +66 -0
  27. package/dist/common/owner.dto.d.ts +14 -0
  28. package/dist/common/owner.dto.js +37 -0
  29. package/dist/common/socials.d.ts +11 -0
  30. package/dist/common/socials.js +53 -0
  31. package/dist/common/statistics.d.ts +11 -0
  32. package/dist/common/statistics.js +49 -0
  33. package/dist/common/tokenPayent.d.ts +9 -0
  34. package/dist/common/tokenPayent.js +50 -0
  35. package/dist/cosmos-db/cosmos-db-container.enum.d.ts +13 -0
  36. package/dist/cosmos-db/cosmos-db-container.enum.js +17 -0
  37. package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +16 -0
  38. package/dist/cosmos-db/cosmos-db-generic-filter.js +72 -0
  39. package/dist/cosmos-db/cosmos-db-paginated-response.dto.d.ts +13 -0
  40. package/dist/cosmos-db/cosmos-db-paginated-response.dto.js +62 -0
  41. package/dist/cosmos-db/cosmos-db-query.d.ts +81 -0
  42. package/dist/cosmos-db/cosmos-db-query.js +435 -0
  43. package/dist/cosmos-db/documents/activity/chain-activity.enum.d.ts +4 -0
  44. package/dist/cosmos-db/documents/activity/chain-activity.enum.js +5 -0
  45. package/dist/cosmos-db/documents/activity/event-source.enum.d.ts +15 -0
  46. package/dist/cosmos-db/documents/activity/event-source.enum.js +19 -0
  47. package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +22 -0
  48. package/dist/cosmos-db/documents/activity/nft-activity-data.js +2 -0
  49. package/dist/cosmos-db/documents/activity/nft-activity-type.enum.d.ts +28 -0
  50. package/dist/cosmos-db/documents/activity/nft-activity-type.enum.js +36 -0
  51. package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +20 -0
  52. package/dist/cosmos-db/documents/activity/nft-activity.doc.js +121 -0
  53. package/dist/cosmos-db/documents/chat/block-user.dto.d.ts +3 -0
  54. package/dist/cosmos-db/documents/chat/block-user.dto.js +20 -0
  55. package/dist/cosmos-db/documents/chat/blocked-user.dto.d.ts +14 -0
  56. package/dist/cosmos-db/documents/chat/blocked-user.dto.js +57 -0
  57. package/dist/cosmos-db/documents/chat/chat-conversation.d.ts +39 -0
  58. package/dist/cosmos-db/documents/chat/chat-conversation.js +109 -0
  59. package/dist/cosmos-db/documents/chat/chat-data-type.enum.d.ts +6 -0
  60. package/dist/cosmos-db/documents/chat/chat-data-type.enum.js +10 -0
  61. package/dist/cosmos-db/documents/chat/chat-message-content-type.enum.d.ts +6 -0
  62. package/dist/cosmos-db/documents/chat/chat-message-content-type.enum.js +10 -0
  63. package/dist/cosmos-db/documents/chat/chat-message-content.dto.d.ts +6 -0
  64. package/dist/cosmos-db/documents/chat/chat-message-content.dto.js +42 -0
  65. package/dist/cosmos-db/documents/chat/chat-message-reply.dto.d.ts +7 -0
  66. package/dist/cosmos-db/documents/chat/chat-message-reply.dto.js +41 -0
  67. package/dist/cosmos-db/documents/chat/chat-message.doc.d.ts +44 -0
  68. package/dist/cosmos-db/documents/chat/chat-message.doc.js +17 -0
  69. package/dist/cosmos-db/documents/chat/chat-message.dto.d.ts +47 -0
  70. package/dist/cosmos-db/documents/chat/chat-message.dto.js +160 -0
  71. package/dist/cosmos-db/documents/chat/global-conversation-summary.dto.d.ts +10 -0
  72. package/dist/cosmos-db/documents/chat/global-conversation-summary.dto.js +38 -0
  73. package/dist/cosmos-db/documents/chat/group-chat-profile.doc.d.ts +13 -0
  74. package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +14 -0
  75. package/dist/cosmos-db/documents/chat/user-block.doc.d.ts +10 -0
  76. package/dist/cosmos-db/documents/chat/user-block.doc.js +14 -0
  77. package/dist/cosmos-db/documents/chat/user-conversation.doc.d.ts +16 -0
  78. package/dist/cosmos-db/documents/chat/user-conversation.doc.js +13 -0
  79. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +15 -0
  80. package/dist/cosmos-db/documents/collection/collectionConfig.js +19 -0
  81. package/dist/cosmos-db/documents/collection/dataTypes.d.ts +8 -0
  82. package/dist/cosmos-db/documents/collection/dataTypes.js +12 -0
  83. package/dist/cosmos-db/documents/collection/globalOffer.d.ts +27 -0
  84. package/dist/cosmos-db/documents/collection/globalOffer.js +174 -0
  85. package/dist/cosmos-db/documents/collection/mintProfile.d.ts +36 -0
  86. package/dist/cosmos-db/documents/collection/mintProfile.js +241 -0
  87. package/dist/cosmos-db/documents/collection/mintStage.d.ts +20 -0
  88. package/dist/cosmos-db/documents/collection/mintStage.js +13 -0
  89. package/dist/cosmos-db/documents/collection/profile.d.ts +52 -0
  90. package/dist/cosmos-db/documents/collection/profile.js +330 -0
  91. package/dist/cosmos-db/documents/collection/stats.d.ts +45 -0
  92. package/dist/cosmos-db/documents/collection/stats.js +286 -0
  93. package/dist/cosmos-db/documents/collection/verification.d.ts +11 -0
  94. package/dist/cosmos-db/documents/collection/verification.js +72 -0
  95. package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +46 -0
  96. package/dist/cosmos-db/documents/external-payment/binance-hook.js +16 -0
  97. package/dist/cosmos-db/documents/external-payment/binance-request.d.ts +30 -0
  98. package/dist/cosmos-db/documents/external-payment/binance-request.js +36 -0
  99. package/dist/cosmos-db/documents/external-payment/external-payment-request.d.ts +52 -0
  100. package/dist/cosmos-db/documents/external-payment/external-payment-request.js +236 -0
  101. package/dist/cosmos-db/documents/external-payment/external-payment-status.enum.d.ts +18 -0
  102. package/dist/cosmos-db/documents/external-payment/external-payment-status.enum.js +22 -0
  103. package/dist/cosmos-db/documents/external-payment/external-payment.doc.d.ts +42 -0
  104. package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +10 -0
  105. package/dist/cosmos-db/documents/external-payment/payment-provider.enum.d.ts +6 -0
  106. package/dist/cosmos-db/documents/external-payment/payment-provider.enum.js +10 -0
  107. package/dist/cosmos-db/documents/external-payment/purchase-type.enum.d.ts +14 -0
  108. package/dist/cosmos-db/documents/external-payment/purchase-type.enum.js +18 -0
  109. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +126 -0
  110. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +2 -0
  111. package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +13 -0
  112. package/dist/cosmos-db/documents/external-payment/twispay-cart.js +8 -0
  113. package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +14 -0
  114. package/dist/cosmos-db/documents/external-payment/twispay-customer.js +2 -0
  115. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +15 -0
  116. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +2 -0
  117. package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +50 -0
  118. package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +48 -0
  119. package/dist/cosmos-db/documents/lending/lending-account-profile.d.ts +35 -0
  120. package/dist/cosmos-db/documents/lending/lending-account-profile.js +258 -0
  121. package/dist/cosmos-db/documents/lending/lending-data-type.enum.d.ts +6 -0
  122. package/dist/cosmos-db/documents/lending/lending-data-type.enum.js +10 -0
  123. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +20 -0
  124. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +66 -0
  125. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +82 -0
  126. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +372 -0
  127. package/dist/cosmos-db/documents/lending/lending-nft-attributes.d.ts +16 -0
  128. package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +17 -0
  129. package/dist/cosmos-db/documents/lending/lending-position-type.enum.d.ts +5 -0
  130. package/dist/cosmos-db/documents/lending/lending-position-type.enum.js +9 -0
  131. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +13 -0
  132. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +59 -0
  133. package/dist/cosmos-db/documents/notification/notification-asset-type.enum.d.ts +4 -0
  134. package/dist/cosmos-db/documents/notification/notification-asset-type.enum.js +8 -0
  135. package/dist/cosmos-db/documents/notification/notification-data-type.enum.d.ts +3 -0
  136. package/dist/cosmos-db/documents/notification/notification-data-type.enum.js +7 -0
  137. package/dist/cosmos-db/documents/notification/notification.doc.d.ts +35 -0
  138. package/dist/cosmos-db/documents/notification/notification.doc.js +13 -0
  139. package/dist/cosmos-db/documents/staking/staking-creator.d.ts +11 -0
  140. package/dist/cosmos-db/documents/staking/staking-creator.js +13 -0
  141. package/dist/cosmos-db/documents/staking/staking-data-type.enum.d.ts +5 -0
  142. package/dist/cosmos-db/documents/staking/staking-data-type.enum.js +9 -0
  143. package/dist/cosmos-db/documents/staking/staking-delegator-doc.d.ts +15 -0
  144. package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +15 -0
  145. package/dist/cosmos-db/documents/staking/staking-issuing-type-string.enum.d.ts +5 -0
  146. package/dist/cosmos-db/documents/staking/staking-issuing-type-string.enum.js +9 -0
  147. package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +93 -0
  148. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +265 -0
  149. package/dist/cosmos-db/documents/staking/staking-pool-type-string.enum.d.ts +6 -0
  150. package/dist/cosmos-db/documents/staking/staking-pool-type-string.enum.js +10 -0
  151. package/dist/cosmos-db/documents/ticketing/discount-code-validation-response.d.ts +6 -0
  152. package/dist/cosmos-db/documents/ticketing/discount-code-validation-response.js +38 -0
  153. package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.d.ts +6 -0
  154. package/dist/cosmos-db/documents/ticketing/entities/discount-code-validation-response.js +38 -0
  155. package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.d.ts +90 -0
  156. package/dist/cosmos-db/documents/ticketing/entities/event-category.enum.js +99 -0
  157. package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.d.ts +4 -0
  158. package/dist/cosmos-db/documents/ticketing/entities/event-guest-approve.dto.js +32 -0
  159. package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.d.ts +25 -0
  160. package/dist/cosmos-db/documents/ticketing/entities/event-guest-doc.filter.js +91 -0
  161. package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.d.ts +23 -0
  162. package/dist/cosmos-db/documents/ticketing/entities/event-guest-registration.dto.js +196 -0
  163. package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.d.ts +10 -0
  164. package/dist/cosmos-db/documents/ticketing/entities/event-guest-status.enum.js +14 -0
  165. package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.d.ts +64 -0
  166. package/dist/cosmos-db/documents/ticketing/entities/event-guest.doc.js +387 -0
  167. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.d.ts +12 -0
  168. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-create.dto.js +74 -0
  169. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.d.ts +31 -0
  170. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-doc.filter.js +99 -0
  171. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.d.ts +6 -0
  172. package/dist/cosmos-db/documents/ticketing/entities/event-invitation-status.enum.js +10 -0
  173. package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.d.ts +32 -0
  174. package/dist/cosmos-db/documents/ticketing/entities/event-invitation.doc.js +206 -0
  175. package/dist/cosmos-db/documents/ticketing/entities/event-location.d.ts +14 -0
  176. package/dist/cosmos-db/documents/ticketing/entities/event-location.js +68 -0
  177. package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.d.ts +47 -0
  178. package/dist/cosmos-db/documents/ticketing/entities/event-profile-create.dto.js +269 -0
  179. package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.d.ts +41 -0
  180. package/dist/cosmos-db/documents/ticketing/entities/event-profile-doc.filter.js +129 -0
  181. package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.d.ts +14 -0
  182. package/dist/cosmos-db/documents/ticketing/entities/event-profile-edit.dto.js +108 -0
  183. package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.d.ts +93 -0
  184. package/dist/cosmos-db/documents/ticketing/entities/event-profile.doc.js +544 -0
  185. package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.d.ts +9 -0
  186. package/dist/cosmos-db/documents/ticketing/entities/event-question-answer-type.enum.js +13 -0
  187. package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.d.ts +23 -0
  188. package/dist/cosmos-db/documents/ticketing/entities/event-question-answer.doc.js +127 -0
  189. package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.d.ts +8 -0
  190. package/dist/cosmos-db/documents/ticketing/entities/event-question-create.dto.js +61 -0
  191. package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.d.ts +8 -0
  192. package/dist/cosmos-db/documents/ticketing/entities/event-question-edit.dto.js +65 -0
  193. package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.d.ts +4 -0
  194. package/dist/cosmos-db/documents/ticketing/entities/event-question-validator.js +32 -0
  195. package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.d.ts +15 -0
  196. package/dist/cosmos-db/documents/ticketing/entities/event-question.doc.js +87 -0
  197. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.d.ts +8 -0
  198. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-create.dto.js +58 -0
  199. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.d.ts +5 -0
  200. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-edit.dto.js +8 -0
  201. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.d.ts +23 -0
  202. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-filter.doc.js +116 -0
  203. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.d.ts +6 -0
  204. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config-query.doc.js +38 -0
  205. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.d.ts +27 -0
  206. package/dist/cosmos-db/documents/ticketing/entities/event-referral-config.doc.js +148 -0
  207. package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.d.ts +4 -0
  208. package/dist/cosmos-db/documents/ticketing/entities/event-referral-create.dto.js +31 -0
  209. package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.d.ts +4 -0
  210. package/dist/cosmos-db/documents/ticketing/entities/event-referral-edit.dto.js +36 -0
  211. package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.d.ts +31 -0
  212. package/dist/cosmos-db/documents/ticketing/entities/event-referral-filter.doc.js +161 -0
  213. package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.d.ts +6 -0
  214. package/dist/cosmos-db/documents/ticketing/entities/event-referral-query.doc.js +38 -0
  215. package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.d.ts +16 -0
  216. package/dist/cosmos-db/documents/ticketing/entities/event-referral-usage.doc.js +100 -0
  217. package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.d.ts +14 -0
  218. package/dist/cosmos-db/documents/ticketing/entities/event-referral.doc.js +92 -0
  219. package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.d.ts +24 -0
  220. package/dist/cosmos-db/documents/ticketing/entities/event-scan-status.enum.js +46 -0
  221. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.d.ts +13 -0
  222. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-create.dto.js +109 -0
  223. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.d.ts +8 -0
  224. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile-edit.dto.js +48 -0
  225. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.d.ts +21 -0
  226. package/dist/cosmos-db/documents/ticketing/entities/event-stage-profile.doc.js +168 -0
  227. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.d.ts +8 -0
  228. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-create.dto.js +74 -0
  229. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.d.ts +7 -0
  230. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile-edit.dto.js +31 -0
  231. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.d.ts +25 -0
  232. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-profile.doc.js +166 -0
  233. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.d.ts +43 -0
  234. package/dist/cosmos-db/documents/ticketing/entities/event-ticket-qr-type.enum.js +201 -0
  235. package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.d.ts +9 -0
  236. package/dist/cosmos-db/documents/ticketing/entities/event-user-role-create.dto.js +69 -0
  237. package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.d.ts +25 -0
  238. package/dist/cosmos-db/documents/ticketing/entities/event-user-role.doc.js +130 -0
  239. package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.d.ts +15 -0
  240. package/dist/cosmos-db/documents/ticketing/entities/event-user-roles.enum.js +20 -0
  241. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.d.ts +15 -0
  242. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-create.dto.js +116 -0
  243. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.d.ts +8 -0
  244. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-edit.dto.js +48 -0
  245. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.d.ts +33 -0
  246. package/dist/cosmos-db/documents/ticketing/entities/event-voucher-filter.doc.js +173 -0
  247. package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.d.ts +33 -0
  248. package/dist/cosmos-db/documents/ticketing/entities/event-voucher.doc.js +189 -0
  249. package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.d.ts +5 -0
  250. package/dist/cosmos-db/documents/ticketing/entities/manual-check-in.dto.js +38 -0
  251. package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.d.ts +6 -0
  252. package/dist/cosmos-db/documents/ticketing/entities/ticket-calculation-request.dto.js +38 -0
  253. package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.d.ts +14 -0
  254. package/dist/cosmos-db/documents/ticketing/entities/ticket-prices-response.js +74 -0
  255. package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.d.ts +14 -0
  256. package/dist/cosmos-db/documents/ticketing/entities/ticketing-data-type.enum.js +18 -0
  257. package/dist/cosmos-db/documents/ticketing/event-category.enum.d.ts +90 -0
  258. package/dist/cosmos-db/documents/ticketing/event-category.enum.js +99 -0
  259. package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.d.ts +4 -0
  260. package/dist/cosmos-db/documents/ticketing/event-guest-approve.dto.js +33 -0
  261. package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +25 -0
  262. package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.js +91 -0
  263. package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +28 -0
  264. package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +217 -0
  265. package/dist/cosmos-db/documents/ticketing/event-guest-status.enum.d.ts +10 -0
  266. package/dist/cosmos-db/documents/ticketing/event-guest-status.enum.js +14 -0
  267. package/dist/cosmos-db/documents/ticketing/event-guest.doc.d.ts +71 -0
  268. package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +395 -0
  269. package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.d.ts +12 -0
  270. package/dist/cosmos-db/documents/ticketing/event-invitation-create.dto.js +74 -0
  271. package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +31 -0
  272. package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +99 -0
  273. package/dist/cosmos-db/documents/ticketing/event-invitation-status.enum.d.ts +6 -0
  274. package/dist/cosmos-db/documents/ticketing/event-invitation-status.enum.js +10 -0
  275. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.d.ts +38 -0
  276. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +206 -0
  277. package/dist/cosmos-db/documents/ticketing/event-location.d.ts +14 -0
  278. package/dist/cosmos-db/documents/ticketing/event-location.js +68 -0
  279. package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.d.ts +47 -0
  280. package/dist/cosmos-db/documents/ticketing/event-profile-create.dto.js +269 -0
  281. package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +42 -0
  282. package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.js +130 -0
  283. package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.d.ts +14 -0
  284. package/dist/cosmos-db/documents/ticketing/event-profile-edit.dto.js +108 -0
  285. package/dist/cosmos-db/documents/ticketing/event-profile.doc.d.ts +104 -0
  286. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +541 -0
  287. package/dist/cosmos-db/documents/ticketing/event-question-answer-type.enum.d.ts +9 -0
  288. package/dist/cosmos-db/documents/ticketing/event-question-answer-type.enum.js +13 -0
  289. package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.d.ts +23 -0
  290. package/dist/cosmos-db/documents/ticketing/event-question-answer.doc.js +127 -0
  291. package/dist/cosmos-db/documents/ticketing/event-question-create.dto.d.ts +8 -0
  292. package/dist/cosmos-db/documents/ticketing/event-question-create.dto.js +61 -0
  293. package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.d.ts +8 -0
  294. package/dist/cosmos-db/documents/ticketing/event-question-edit.dto.js +66 -0
  295. package/dist/cosmos-db/documents/ticketing/event-question-validator.d.ts +4 -0
  296. package/dist/cosmos-db/documents/ticketing/event-question-validator.js +33 -0
  297. package/dist/cosmos-db/documents/ticketing/event-question.doc.d.ts +15 -0
  298. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +88 -0
  299. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.d.ts +8 -0
  300. package/dist/cosmos-db/documents/ticketing/event-referral-config-create.dto.js +58 -0
  301. package/dist/cosmos-db/documents/ticketing/event-referral-config-edit.dto.d.ts +5 -0
  302. package/dist/cosmos-db/documents/ticketing/event-referral-config-edit.dto.js +8 -0
  303. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +23 -0
  304. package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.js +116 -0
  305. package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.d.ts +6 -0
  306. package/dist/cosmos-db/documents/ticketing/event-referral-config-query.doc.js +38 -0
  307. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.d.ts +27 -0
  308. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +149 -0
  309. package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.d.ts +4 -0
  310. package/dist/cosmos-db/documents/ticketing/event-referral-create.dto.js +31 -0
  311. package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.d.ts +4 -0
  312. package/dist/cosmos-db/documents/ticketing/event-referral-edit.dto.js +36 -0
  313. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +31 -0
  314. package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.js +162 -0
  315. package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.d.ts +6 -0
  316. package/dist/cosmos-db/documents/ticketing/event-referral-query.doc.js +41 -0
  317. package/dist/cosmos-db/documents/ticketing/event-referral-usage.doc.d.ts +16 -0
  318. package/dist/cosmos-db/documents/ticketing/event-referral-usage.doc.js +100 -0
  319. package/dist/cosmos-db/documents/ticketing/event-referral.doc.d.ts +14 -0
  320. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +92 -0
  321. package/dist/cosmos-db/documents/ticketing/event-scan-status.enum.d.ts +24 -0
  322. package/dist/cosmos-db/documents/ticketing/event-scan-status.enum.js +46 -0
  323. package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.d.ts +13 -0
  324. package/dist/cosmos-db/documents/ticketing/event-stage-profile-create.dto.js +109 -0
  325. package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.d.ts +8 -0
  326. package/dist/cosmos-db/documents/ticketing/event-stage-profile-edit.dto.js +48 -0
  327. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.d.ts +21 -0
  328. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +168 -0
  329. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.d.ts +8 -0
  330. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-create.dto.js +74 -0
  331. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.d.ts +7 -0
  332. package/dist/cosmos-db/documents/ticketing/event-ticket-profile-edit.dto.js +31 -0
  333. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.d.ts +25 -0
  334. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +164 -0
  335. package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.d.ts +43 -0
  336. package/dist/cosmos-db/documents/ticketing/event-ticket-qr-type.enum.js +202 -0
  337. package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.d.ts +9 -0
  338. package/dist/cosmos-db/documents/ticketing/event-user-role-create.dto.js +69 -0
  339. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.d.ts +25 -0
  340. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +131 -0
  341. package/dist/cosmos-db/documents/ticketing/event-user-roles.enum.d.ts +15 -0
  342. package/dist/cosmos-db/documents/ticketing/event-user-roles.enum.js +20 -0
  343. package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.d.ts +15 -0
  344. package/dist/cosmos-db/documents/ticketing/event-voucher-create.dto.js +117 -0
  345. package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.d.ts +8 -0
  346. package/dist/cosmos-db/documents/ticketing/event-voucher-edit.dto.js +48 -0
  347. package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +33 -0
  348. package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.js +167 -0
  349. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.d.ts +39 -0
  350. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +191 -0
  351. package/dist/cosmos-db/documents/ticketing/manual-check-in.dto.d.ts +5 -0
  352. package/dist/cosmos-db/documents/ticketing/manual-check-in.dto.js +38 -0
  353. package/dist/cosmos-db/documents/ticketing/ticket-calculation-request.dto.d.ts +6 -0
  354. package/dist/cosmos-db/documents/ticketing/ticket-calculation-request.dto.js +41 -0
  355. package/dist/cosmos-db/documents/ticketing/ticket-prices-response.d.ts +14 -0
  356. package/dist/cosmos-db/documents/ticketing/ticket-prices-response.js +74 -0
  357. package/dist/cosmos-db/documents/ticketing/ticketing-data-type.enum.d.ts +14 -0
  358. package/dist/cosmos-db/documents/ticketing/ticketing-data-type.enum.js +18 -0
  359. package/dist/cosmos-db/documents/token/nft-details.doc.d.ts +79 -0
  360. package/dist/cosmos-db/documents/token/nft-details.doc.js +436 -0
  361. package/dist/cosmos-db/documents/token/nft-extra-attributes.type.d.ts +3 -0
  362. package/dist/cosmos-db/documents/token/nft-extra-attributes.type.js +7 -0
  363. package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.d.ts +11 -0
  364. package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +12 -0
  365. package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +6 -0
  366. package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +28 -0
  367. package/dist/cosmos-db/documents/token/nft-metadata.d.ts +13 -0
  368. package/dist/cosmos-db/documents/token/nft-metadata.js +62 -0
  369. package/dist/cosmos-db/documents/token/nft-offer.doc.d.ts +34 -0
  370. package/dist/cosmos-db/documents/token/nft-offer.doc.js +220 -0
  371. package/dist/cosmos-db/documents/token/nft-sale-info.d.ts +23 -0
  372. package/dist/cosmos-db/documents/token/nft-sale-info.js +109 -0
  373. package/dist/cosmos-db/documents/token/sft-owner-doc.d.ts +13 -0
  374. package/dist/cosmos-db/documents/token/sft-owner-doc.js +18 -0
  375. package/dist/cosmos-db/documents/token/token-data.enum.d.ts +8 -0
  376. package/dist/cosmos-db/documents/token/token-data.enum.js +12 -0
  377. package/dist/cosmos-db/documents/token-data/nft-details.doc.d.ts +56 -0
  378. package/dist/cosmos-db/documents/token-data/nft-details.doc.js +31 -0
  379. package/dist/cosmos-db/documents/user/account-on-network.d.ts +21 -0
  380. package/dist/cosmos-db/documents/user/account-on-network.js +36 -0
  381. package/dist/cosmos-db/documents/user/notification-preferences.dto.d.ts +8 -0
  382. package/dist/cosmos-db/documents/user/notification-preferences.dto.js +73 -0
  383. package/dist/cosmos-db/documents/user/user-creator-profile.doc.d.ts +18 -0
  384. package/dist/cosmos-db/documents/user/user-creator-profile.doc.js +105 -0
  385. package/dist/cosmos-db/documents/user/user-data.type.d.ts +6 -0
  386. package/dist/cosmos-db/documents/user/user-data.type.js +10 -0
  387. package/dist/cosmos-db/documents/user/user-deposit.d.ts +9 -0
  388. package/dist/cosmos-db/documents/user/user-deposit.js +54 -0
  389. package/dist/cosmos-db/documents/user/user-favorite-type.enum.d.ts +5 -0
  390. package/dist/cosmos-db/documents/user/user-favorite-type.enum.js +9 -0
  391. package/dist/cosmos-db/documents/user/user-favorite.doc.d.ts +18 -0
  392. package/dist/cosmos-db/documents/user/user-favorite.doc.js +56 -0
  393. package/dist/cosmos-db/documents/user/user-profile.doc.d.ts +25 -0
  394. package/dist/cosmos-db/documents/user/user-profile.doc.js +133 -0
  395. package/dist/cosmos-db/documents/user/user-settings.doc.d.ts +63 -0
  396. package/dist/cosmos-db/documents/user/user-settings.doc.js +267 -0
  397. package/dist/index.d.ts +273 -0
  398. package/dist/index.js +300 -0
  399. package/dist/redis/keys.d.ts +11 -0
  400. package/dist/redis/keys.js +12 -0
  401. package/dist/redis/ttl.d.ts +10 -0
  402. package/dist/redis/ttl.js +11 -0
  403. package/dist/requests/aggregator/ar-da-swap-result.dto.d.ts +9 -0
  404. package/dist/requests/aggregator/ar-da-swap-result.dto.js +80 -0
  405. package/dist/requests/aggregator/swap.d.ts +65 -0
  406. package/dist/requests/aggregator/swap.js +240 -0
  407. package/dist/requests/chat/azure-ws-event-name.enum.d.ts +5 -0
  408. package/dist/requests/chat/azure-ws-event-name.enum.js +9 -0
  409. package/dist/requests/chat/azure-ws-hub-name.enum.d.ts +4 -0
  410. package/dist/requests/chat/azure-ws-hub-name.enum.js +8 -0
  411. package/dist/requests/chat/chat-token.d.ts +3 -0
  412. package/dist/requests/chat/chat-token.js +22 -0
  413. package/dist/requests/collection/attributes.d.ts +22 -0
  414. package/dist/requests/collection/attributes.js +80 -0
  415. package/dist/requests/collection/collection-attributes-fp.d.ts +12 -0
  416. package/dist/requests/collection/collection-attributes-fp.js +2 -0
  417. package/dist/requests/collection/collection-attributes-map.d.ts +24 -0
  418. package/dist/requests/collection/collection-attributes-map.js +6 -0
  419. package/dist/requests/collection/collection-holders.d.ts +25 -0
  420. package/dist/requests/collection/collection-holders.js +35 -0
  421. package/dist/requests/collection/collection-info.dto.d.ts +6 -0
  422. package/dist/requests/collection/collection-info.dto.js +33 -0
  423. package/dist/requests/collection/collection-mint-profile.filter.d.ts +19 -0
  424. package/dist/requests/collection/collection-mint-profile.filter.js +40 -0
  425. package/dist/requests/collection/collection-mint-stage.doc.d.ts +19 -0
  426. package/dist/requests/collection/collection-mint-stage.doc.js +12 -0
  427. package/dist/requests/collection/collection-offers.filter.d.ts +28 -0
  428. package/dist/requests/collection/collection-offers.filter.js +99 -0
  429. package/dist/requests/collection/collection-owner.dto.d.ts +3 -0
  430. package/dist/requests/collection/collection-owner.dto.js +24 -0
  431. package/dist/requests/collection/collection-pinned-status.dto.d.ts +4 -0
  432. package/dist/requests/collection/collection-pinned-status.dto.js +30 -0
  433. package/dist/requests/collection/collection-profile.filter.d.ts +18 -0
  434. package/dist/requests/collection/collection-profile.filter.js +28 -0
  435. package/dist/requests/collection/collection-stats.d.ts +3 -0
  436. package/dist/requests/collection/collection-stats.filter.d.ts +22 -0
  437. package/dist/requests/collection/collection-stats.filter.js +98 -0
  438. package/dist/requests/collection/collection-stats.js +8 -0
  439. package/dist/requests/collection/collections.d.ts +7 -0
  440. package/dist/requests/collection/collections.js +16 -0
  441. package/dist/requests/collection/creator-details.dto.d.ts +12 -0
  442. package/dist/requests/collection/creator-details.dto.js +34 -0
  443. package/dist/requests/collection/creator-drop-info.d.ts +48 -0
  444. package/dist/requests/collection/creator-drop-info.js +189 -0
  445. package/dist/requests/collection/drops-query.d.ts +27 -0
  446. package/dist/requests/collection/drops-query.js +98 -0
  447. package/dist/requests/collection/floor.d.ts +5 -0
  448. package/dist/requests/collection/floor.js +28 -0
  449. package/dist/requests/collection/globalOfferSign.d.ts +4 -0
  450. package/dist/requests/collection/globalOfferSign.js +38 -0
  451. package/dist/requests/collection/holders.dto.d.ts +36 -0
  452. package/dist/requests/collection/holders.dto.js +96 -0
  453. package/dist/requests/collection/listings.d.ts +32 -0
  454. package/dist/requests/collection/listings.js +101 -0
  455. package/dist/requests/collection/pinned-collections.d.ts +10 -0
  456. package/dist/requests/collection/pinned-collections.js +56 -0
  457. package/dist/requests/collection/query-activity.d.ts +41 -0
  458. package/dist/requests/collection/query-activity.js +140 -0
  459. package/dist/requests/collection/query-global-offers.d.ts +15 -0
  460. package/dist/requests/collection/query-global-offers.js +57 -0
  461. package/dist/requests/collection/ranks.d.ts +5 -0
  462. package/dist/requests/collection/ranks.js +28 -0
  463. package/dist/requests/collection/stats-query.d.ts +5 -0
  464. package/dist/requests/collection/stats-query.js +26 -0
  465. package/dist/requests/lending/lending-market-profile.filter.d.ts +43 -0
  466. package/dist/requests/lending/lending-market-profile.filter.js +156 -0
  467. package/dist/requests/nft-activity-data/analytics-overview.d.ts +24 -0
  468. package/dist/requests/nft-activity-data/analytics-overview.js +151 -0
  469. package/dist/requests/nft-activity-data/analytics-volume.d.ts +13 -0
  470. package/dist/requests/nft-activity-data/analytics-volume.js +58 -0
  471. package/dist/requests/nft-activity-data/bober-battle-activity.enum.d.ts +69 -0
  472. package/dist/requests/nft-activity-data/bober-battle-activity.enum.js +16 -0
  473. package/dist/requests/nft-activity-data/event-source.enum.d.ts +15 -0
  474. package/dist/requests/nft-activity-data/event-source.enum.js +19 -0
  475. package/dist/requests/nft-activity-data/marketplace-activity.enum.d.ts +20 -0
  476. package/dist/requests/nft-activity-data/marketplace-activity.enum.js +24 -0
  477. package/dist/requests/nft-activity-data/nft-activity-data.d.ts +21 -0
  478. package/dist/requests/nft-activity-data/nft-activity-data.js +2 -0
  479. package/dist/requests/nft-activity-data/nft-activity-type.enum.d.ts +28 -0
  480. package/dist/requests/nft-activity-data/nft-activity-type.enum.js +36 -0
  481. package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +39 -0
  482. package/dist/requests/nft-activity-data/nft-activity.filter.js +143 -0
  483. package/dist/requests/nft-activity-data/user-analytics.dto.d.ts +21 -0
  484. package/dist/requests/nft-activity-data/user-analytics.dto.js +72 -0
  485. package/dist/requests/nft-activity-data/user-stats.d.ts +53 -0
  486. package/dist/requests/nft-activity-data/user-stats.js +247 -0
  487. package/dist/requests/nft-activity-data/xoxno-egld-ls-activity.enum.d.ts +10 -0
  488. package/dist/requests/nft-activity-data/xoxno-egld-ls-activity.enum.js +14 -0
  489. package/dist/requests/nft-activity-data/xoxno-ls-activity.enum.d.ts +5 -0
  490. package/dist/requests/nft-activity-data/xoxno-ls-activity.enum.js +9 -0
  491. package/dist/requests/nft-data/inventory-summary.d.ts +12 -0
  492. package/dist/requests/nft-data/inventory-summary.js +67 -0
  493. package/dist/requests/nft-data/like-nft.dto.d.ts +5 -0
  494. package/dist/requests/nft-data/like-nft.dto.js +32 -0
  495. package/dist/requests/nft-data/nft-doc.filter.d.ts +65 -0
  496. package/dist/requests/nft-data/nft-doc.filter.js +211 -0
  497. package/dist/requests/nft-data/nft-extra-attributes.type.d.ts +3 -0
  498. package/dist/requests/nft-data/nft-extra-attributes.type.js +7 -0
  499. package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +24 -0
  500. package/dist/requests/nft-data/nft-offer-doc.filter.js +97 -0
  501. package/dist/requests/nft-data/nft-offers.d.ts +26 -0
  502. package/dist/requests/nft-data/nft-offers.js +96 -0
  503. package/dist/requests/nft-data/sign-data.dto.d.ts +4 -0
  504. package/dist/requests/nft-data/sign-data.dto.js +24 -0
  505. package/dist/requests/nft-data/sign-mintdto.d.ts +4 -0
  506. package/dist/requests/nft-data/sign-mintdto.js +33 -0
  507. package/dist/requests/nft-data/sign-withdraw.dto.d.ts +3 -0
  508. package/dist/requests/nft-data/sign-withdraw.dto.js +29 -0
  509. package/dist/requests/nft-data/user-offers.d.ts +40 -0
  510. package/dist/requests/nft-data/user-offers.js +186 -0
  511. package/dist/requests/user-data/creator-profile.dto.d.ts +8 -0
  512. package/dist/requests/user-data/creator-profile.dto.js +28 -0
  513. package/dist/requests/user-data/edit-creator-profile.dto.d.ts +6 -0
  514. package/dist/requests/user-data/edit-creator-profile.dto.js +46 -0
  515. package/dist/requests/user-data/edit-user-profile.dto.d.ts +6 -0
  516. package/dist/requests/user-data/edit-user-profile.dto.js +44 -0
  517. package/dist/requests/user-data/follow-collection.dto.d.ts +4 -0
  518. package/dist/requests/user-data/follow-collection.dto.js +31 -0
  519. package/dist/requests/user-data/follow-user.dto.d.ts +4 -0
  520. package/dist/requests/user-data/follow-user.dto.js +30 -0
  521. package/dist/requests/user-data/is-favorite.d.ts +3 -0
  522. package/dist/requests/user-data/is-favorite.js +20 -0
  523. package/dist/requests/user-data/login-access.dto.d.ts +4 -0
  524. package/dist/requests/user-data/login-access.dto.js +30 -0
  525. package/dist/requests/user-data/me-profile.d.ts +16 -0
  526. package/dist/requests/user-data/me-profile.js +55 -0
  527. package/dist/requests/user-data/set-email.dto.d.ts +4 -0
  528. package/dist/requests/user-data/set-email.dto.js +34 -0
  529. package/dist/requests/user-data/set-phone.dto.d.ts +4 -0
  530. package/dist/requests/user-data/set-phone.dto.js +34 -0
  531. package/dist/requests/user-data/token-inventory.d.ts +43 -0
  532. package/dist/requests/user-data/token-inventory.js +143 -0
  533. package/dist/requests/user-data/tradesilvania.dto.d.ts +3 -0
  534. package/dist/requests/user-data/tradesilvania.dto.js +23 -0
  535. package/dist/requests/user-data/user-network.d.ts +22 -0
  536. package/dist/requests/user-data/user-network.js +98 -0
  537. package/dist/requests/user-data/verify-email.dto.d.ts +3 -0
  538. package/dist/requests/user-data/verify-email.dto.js +28 -0
  539. package/dist/types/common.d.ts +12 -0
  540. package/dist/types/common.js +12 -0
  541. package/dist/utils/generic.d.ts +1 -0
  542. package/dist/utils/generic.js +6 -0
  543. package/package.json +54 -0
@@ -0,0 +1,654 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REDIS_KEYS = void 0;
4
+ const ttl_1 = require("./ttl");
5
+ function serializeChain(chain) {
6
+ return (chain ?? []).sort().join(',');
7
+ }
8
+ /**
9
+ * An object that defines all Redis keys and their TTLs.
10
+ * This ensures consistency and a single source of truth.
11
+ *
12
+ * Each entry should return an object: { key: string, ttl: number }
13
+ */
14
+ exports.REDIS_KEYS = {
15
+ LendingAllMarketsTokens: {
16
+ key: 'lendingAllMarketsTokens',
17
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
18
+ },
19
+ MinterLocalOwner: (address) => ({
20
+ key: `launchpadLocalOwner:${address}`,
21
+ ttl: ttl_1.TTLS.ONE_YEAR,
22
+ }),
23
+ GetCreatorProfileByContractAddress: (contractAddress) => ({
24
+ key: `userCreatorProfileByContractAddress:${contractAddress}`,
25
+ ttl: ttl_1.TTLS.ONE_YEAR,
26
+ }),
27
+ GetBoberBattleBiggestWinners: {
28
+ key: 'boberBattleBiggestWinners',
29
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
30
+ },
31
+ GetAllBoberBattleTokens: {
32
+ key: 'allBoberBattleTokens',
33
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
34
+ },
35
+ StakingProviderOwner: (provider) => ({
36
+ key: `stakingProviderOwner:${provider}`,
37
+ ttl: ttl_1.TTLS.ONE_DAY,
38
+ }),
39
+ StakingCreatedDelegationContract: (address) => ({
40
+ key: `stakingCreatedDelegationContract:${address}`,
41
+ ttl: ttl_1.TTLS.ONE_YEAR,
42
+ }),
43
+ StakingProviderUserRewards: (address, currentEpoch) => ({
44
+ key: `stakingProviderUserRewardsV2:${address}:${currentEpoch}`,
45
+ ttl: ttl_1.TTLS.ONE_DAY,
46
+ }),
47
+ StakingProviderEpochRewards: (provider, epoch) => ({
48
+ key: `stakingProviderEpochRewardsData:${provider}:${epoch}`,
49
+ ttl: ttl_1.TTLS.ONE_YEAR,
50
+ }),
51
+ LendingFaucetClaimed: (address) => ({
52
+ key: `faucetv3-${address}`,
53
+ ttl: ttl_1.TTLS.ONE_YEAR,
54
+ }),
55
+ BoberWheelWinners: {
56
+ key: 'boberWheelWinners',
57
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
58
+ },
59
+ BoberWheelConfig: {
60
+ key: 'boberWheelConfig',
61
+ ttl: ttl_1.TTLS.ONE_MINUTE,
62
+ },
63
+ BoberWheelScheduledSpin: {
64
+ key: 'boberWheelScheduledSpin',
65
+ ttl: ttl_1.TTLS.ONE_DAY,
66
+ },
67
+ LendingBulkOraclePrice: (tokens, returnAsUsd) => ({
68
+ key: `lendingBulkOraclePrice:${tokens.join(',')}:${returnAsUsd}`,
69
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
70
+ }),
71
+ LpTokenInfo: (token) => ({
72
+ key: `lpTokenInfo:${token}`,
73
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
74
+ }),
75
+ LendingTokenPriceAsUsd: (token) => ({
76
+ key: `lendingTokenPriceUsd:${token}`,
77
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
78
+ }),
79
+ LendingOverallStats: {
80
+ key: 'LendingOverallStats',
81
+ ttl: ttl_1.TTLS.ONE_HOUR,
82
+ },
83
+ LendingTopMarketParticipants: (token) => ({
84
+ key: `lendingTopMarketParticipants:${token}`,
85
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
86
+ }),
87
+ LendingMarketParticipantsCount: (token) => ({
88
+ key: `lendingMarketParticipantsCount:${token}`,
89
+ ttl: ttl_1.TTLS.ONE_HOUR,
90
+ }),
91
+ LendingPositionLeaderboard: (hash) => ({
92
+ key: `lendingPositionLeaderboard:${hash}`,
93
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
94
+ }),
95
+ LendingTokenPriceAsEgld: (token) => ({
96
+ key: `lendingTokenPriceEgld:${token}`,
97
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
98
+ }),
99
+ LendingPoolContracts: (controllerAddress) => ({
100
+ key: `lendingPoolContracts:${controllerAddress}`,
101
+ ttl: ttl_1.TTLS.ONE_YEAR,
102
+ }),
103
+ LendingTokenEModeProfileDoc: (token, eModeCategory) => ({
104
+ key: `lendingTokenEModeProfileDoc:${token}:${eModeCategory}`,
105
+ ttl: ttl_1.TTLS.ONE_YEAR,
106
+ }),
107
+ LendingEModeCategoryProfileDoc: (id) => ({
108
+ key: `lendingEModeCategoryProfileDoc:${id}`,
109
+ ttl: ttl_1.TTLS.ONE_YEAR,
110
+ }),
111
+ LendingMarketProfileDoc: (token) => ({
112
+ key: `lendingMarketProfileDoc:${token}`,
113
+ ttl: ttl_1.TTLS.ONE_MONTH,
114
+ }),
115
+ LendingAccountProfileDoc: (identifier, token) => ({
116
+ key: `lendingAccountProfileDoc:${identifier}:${token}`,
117
+ ttl: ttl_1.TTLS.ONE_MONTH,
118
+ }),
119
+ LocationPolygon: (query) => ({
120
+ key: `locationPolygon:${query.toLowerCase().trim()}`,
121
+ ttl: ttl_1.TTLS.ONE_MONTH * 6,
122
+ }),
123
+ UserInventorySummary: (address, activeAuction) => ({
124
+ key: `userInventorySummary:${address}:${activeAuction}`,
125
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
126
+ }),
127
+ EventStartsFromPrice: (eventId) => ({
128
+ key: `eventStartsFromPrice:${eventId}`,
129
+ ttl: ttl_1.TTLS.ONE_MONTH,
130
+ }),
131
+ EventQuestions: (eventId) => ({
132
+ key: `eventQuestions:${eventId}`,
133
+ ttl: ttl_1.TTLS.ONE_MONTH,
134
+ }),
135
+ EventVoucherDoc: (eventId, voucherId) => ({
136
+ key: `event:${eventId}VoucherDoc:${voucherId}`,
137
+ ttl: ttl_1.TTLS.ONE_MONTH,
138
+ }),
139
+ EventUserRoleDoc: (eventId, address) => ({
140
+ key: `event:${eventId}UserRolDoc:${address}`,
141
+ ttl: ttl_1.TTLS.ONE_MONTH,
142
+ }),
143
+ EventGuestSummary: (eventId) => ({
144
+ key: `eventGuestSummary:${eventId}`,
145
+ ttl: ttl_1.TTLS.ONE_MINUTE * 30,
146
+ }),
147
+ EventGuestDoc: (eventId, address) => ({
148
+ key: `event:${eventId}GuestDoc:${address}`,
149
+ ttl: ttl_1.TTLS.ONE_MONTH,
150
+ }),
151
+ EventVoucherDocByCode: (eventId, code) => ({
152
+ key: `event:${eventId}:voucher:code:${code}`,
153
+ ttl: ttl_1.TTLS.ONE_HOUR,
154
+ }),
155
+ EventStageDoc: (eventId, stageId) => ({
156
+ key: `event:${eventId}StageDoc:${stageId}`,
157
+ ttl: ttl_1.TTLS.ONE_MONTH,
158
+ }),
159
+ EventIdBySlug: (slug) => ({
160
+ key: `eventIdBySlug:${slug}`,
161
+ ttl: ttl_1.TTLS.ONE_YEAR,
162
+ }),
163
+ EventTicketProfileDoc: (eventId, ticketId) => ({
164
+ key: `event:${eventId}TicketDoc:${ticketId}`,
165
+ ttl: ttl_1.TTLS.ONE_MONTH,
166
+ }),
167
+ EventProfileDoc: (eventId) => ({
168
+ key: `eventDoc:${eventId}`,
169
+ ttl: ttl_1.TTLS.ONE_MONTH,
170
+ }),
171
+ NftSearch: (filter) => ({
172
+ key: `nftSearch:${filter}`,
173
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
174
+ }),
175
+ GetCountries: {
176
+ key: 'countries:zontix',
177
+ ttl: ttl_1.TTLS.ONE_DAY * 30,
178
+ },
179
+ NftMetadataUrl: (url) => ({
180
+ key: `nftMetadataUrl:${url}`,
181
+ ttl: ttl_1.TTLS.ONE_DAY * 30,
182
+ }),
183
+ NftMetadata: (identifier) => ({
184
+ key: `nftMetadata:${identifier}`,
185
+ ttl: ttl_1.TTLS.ONE_DAY * 30,
186
+ }),
187
+ XoxnoLiquidStats: {
188
+ key: 'xoxnoLiquidStats',
189
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
190
+ },
191
+ XoxnoLiquidApy: {
192
+ key: 'xoxnoLiquidApy',
193
+ ttl: ttl_1.TTLS.ONE_HOUR,
194
+ },
195
+ CollectionListedCount: (collection) => ({
196
+ key: `collectionListedCount:${collection}`,
197
+ ttl: ttl_1.TTLS.ONE_DAY,
198
+ }),
199
+ EmailVerificationCode: (address) => ({
200
+ key: `emailVerificationCode:${address}`,
201
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
202
+ }),
203
+ UserSettings: (address) => ({
204
+ key: `userSettings:${address}`,
205
+ ttl: ttl_1.TTLS.ONE_YEAR,
206
+ }),
207
+ UserFavorite: (address, favoriteId) => ({
208
+ key: `userFavorite:${address}:${favoriteId}`,
209
+ ttl: ttl_1.TTLS.ONE_YEAR,
210
+ }),
211
+ ClaimableRewards: (address, delegationContract) => ({
212
+ key: `claimableRewards:${address}:${delegationContract}`,
213
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
214
+ }),
215
+ AllUserDelegations: (address) => ({
216
+ key: `allUserDelegations:${address}`,
217
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
218
+ }),
219
+ EgldStakingProviders: (providers, withIdentityInfo = true) => ({
220
+ key: `egld:providers:${providers.join(',')}:${withIdentityInfo}`,
221
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
222
+ }),
223
+ EgldStakingProvider: (provider) => ({
224
+ key: `egld:provider:${provider}`,
225
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
226
+ }),
227
+ GetLastUpdatedEpoch: (provider, epoch) => ({
228
+ key: `egld:provider:${provider}:lastUpdatedEpoch:${epoch}`,
229
+ ttl: ttl_1.TTLS.ONE_DAY,
230
+ }),
231
+ CollectionStats: (collection) => ({
232
+ key: `collectionStats:${collection}`,
233
+ ttl: ttl_1.TTLS.ONE_MINUTE * 30,
234
+ }),
235
+ AllGroupChatIds: {
236
+ key: `allGroupChatIds`,
237
+ ttl: ttl_1.TTLS.ONE_MONTH * 6,
238
+ },
239
+ GroupChatProfile: (chatId) => ({
240
+ key: `groupChatProfile:${chatId}`,
241
+ ttl: ttl_1.TTLS.ONE_MONTH * 6,
242
+ }),
243
+ PinnedNftsApiResponse: {
244
+ key: 'pinnedNftsApiResponse',
245
+ ttl: ttl_1.TTLS.ONE_HOUR,
246
+ },
247
+ ConversationDeleteTimestamp: (chatId, address) => ({
248
+ key: `conversationDeleteTimestamp:${chatId}:${address}`,
249
+ ttl: ttl_1.TTLS.ONE_YEAR,
250
+ }),
251
+ IsSenderBlockedByReceiver: (sender, receiver) => ({
252
+ key: `isSenderBlockedByReceiver:${sender}:${receiver}`,
253
+ ttl: ttl_1.TTLS.ONE_YEAR,
254
+ }),
255
+ UserLastReadChatMessage: (chatId, address) => ({
256
+ key: `userLastReadChatMessage:${chatId}:${address}`,
257
+ ttl: ttl_1.TTLS.ONE_YEAR,
258
+ }),
259
+ UserLastSentChatMessage: (chatId, address) => ({
260
+ key: `userLastSentChatMessage:${chatId}:${address}`,
261
+ ttl: ttl_1.TTLS.ONE_YEAR,
262
+ }),
263
+ UserXoxnoDropScore: (skip, top, address) => ({
264
+ key: `userXoxnoDropScoreDefi:${skip}:${top}:${address}`,
265
+ ttl: ttl_1.TTLS.ONE_HOUR,
266
+ }),
267
+ Web2NativeWalletAddress: (userId) => ({
268
+ key: `web2NativeWalletAddress:${userId}`,
269
+ ttl: ttl_1.TTLS.ONE_YEAR,
270
+ }),
271
+ Web2UserDoc: (userId) => ({
272
+ key: `web2UserDoc:${userId}`,
273
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
274
+ }),
275
+ StakingPoolsSummaryByCollection: {
276
+ key: 'stakingPoolsSummaryByCollection',
277
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
278
+ },
279
+ TwispayCallbackProcessed: (transactionId) => ({
280
+ key: `twispayCallbackProcessed:${transactionId}`,
281
+ ttl: ttl_1.TTLS.ONE_MONTH,
282
+ }),
283
+ PendingExternalPayments: {
284
+ key: 'pendingExternalPayments',
285
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
286
+ },
287
+ NextRelayWalletIndex: (shard) => ({
288
+ key: `nextRelayWalletIndex:${shard}`,
289
+ ttl: ttl_1.TTLS.ONE_YEAR,
290
+ }),
291
+ DropsPinnedCollectionsApiResponse: {
292
+ key: 'dropsPinnedCollectionsApiResponse',
293
+ ttl: ttl_1.TTLS.ONE_HOUR,
294
+ },
295
+ HomePinnedCollectionsApiResponse: {
296
+ key: 'homePinnedCollectionsApiResponse',
297
+ ttl: ttl_1.TTLS.ONE_HOUR,
298
+ },
299
+ NftHasOffer: (identifier) => ({
300
+ key: `nftHasOffer:${identifier}`,
301
+ ttl: ttl_1.TTLS.ONE_YEAR,
302
+ }),
303
+ LaunchpadAllRegisteredContracts: {
304
+ key: 'launchpadAllRegisteredContracts',
305
+ ttl: ttl_1.TTLS.ONE_MONTH,
306
+ },
307
+ UserStatistics: (hash) => ({
308
+ key: `userStatistics:${hash}`,
309
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
310
+ }),
311
+ UserOwnedAndListedSummary: (address) => ({
312
+ key: `userOwnedAndListedSummary:${address}`,
313
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
314
+ }),
315
+ UserSearch: (filter) => ({
316
+ key: `userSearch:${filter}`,
317
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
318
+ }),
319
+ DropsSearch: (filter) => ({
320
+ key: `drops:${filter}`,
321
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
322
+ }),
323
+ CollectionSearch: (filter) => ({
324
+ key: `collectionSearch:${filter}`,
325
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
326
+ }),
327
+ GlobalSearch: (filter) => ({
328
+ key: `globalSearch:${filter}`,
329
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
330
+ }),
331
+ ListingCount: (chain) => ({
332
+ key: `listingCount${serializeChain(chain)}`,
333
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
334
+ }),
335
+ UserCount: (chain) => ({
336
+ key: `userCount${serializeChain(chain)}`,
337
+ ttl: ttl_1.TTLS.ONE_DAY,
338
+ }),
339
+ TradingStatistics: (chain) => ({
340
+ key: `tradingStatistics${serializeChain(chain)}`,
341
+ ttl: ttl_1.TTLS.ONE_DAY,
342
+ }),
343
+ ShardCount: {
344
+ key: 'shardCount',
345
+ ttl: ttl_1.TTLS.ONE_WEEK,
346
+ },
347
+ AddressEsdt: (address) => ({
348
+ key: `addressEsdt:${address}`,
349
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
350
+ }),
351
+ UserFavoriteUserAddresses: (address) => ({
352
+ key: `userFavoriteUserAddresses:${address}`,
353
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
354
+ }),
355
+ UserFavoriteCollectionTickers: (address) => ({
356
+ key: `userFavoriteCollectionTickers:${address}`,
357
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
358
+ }),
359
+ UserFavoriteNftIdentifiers: (address) => ({
360
+ key: `userFavoriteNftIdentifiers:${address}`,
361
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
362
+ }),
363
+ UserTradingSummary: (address) => ({
364
+ key: `userTradingSummary:${address}`,
365
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
366
+ }),
367
+ LendingMarketStatsGraphData: (startTime, endTime, bin, token) => ({
368
+ key: `lendingMarketStatsGraphData:${startTime}:${endTime}:${bin}:${token}`,
369
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
370
+ }),
371
+ VolumeGraphData: (startTime, endTime, bin, collection, chain) => ({
372
+ key: `volumeGraphData:${startTime}:${endTime}:${bin}:${collection}:${serializeChain(chain)}`,
373
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
374
+ }),
375
+ DataApiTokens: {
376
+ key: 'dataApiTokens',
377
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
378
+ },
379
+ DataApiTokenPrice: (identifier, timestamp) => {
380
+ const priceDate = timestamp ? new Date(timestamp * 1000) : new Date();
381
+ // A simple implementation of toISODateString for portability
382
+ const toISODateString = (date) => date.toISOString().split('T')[0];
383
+ const isCurrentDate = toISODateString(priceDate) === toISODateString(new Date());
384
+ const ttl = isCurrentDate ? ttl_1.TTLS.ONE_MINUTE * 5 : ttl_1.TTLS.ONE_WEEK;
385
+ return {
386
+ key: `dataApiPrice:${identifier}:${toISODateString(priceDate)}`,
387
+ ttl,
388
+ };
389
+ },
390
+ CollectionTickerByTags: (creatorTag, collectionTag) => ({
391
+ key: `collectionTickerByTags:${creatorTag}:${collectionTag}`,
392
+ ttl: ttl_1.TTLS.ONE_YEAR,
393
+ }),
394
+ TokenFiatPrice: (fiatCurrencies, token) => ({
395
+ key: `tokenFiatPrice:${fiatCurrencies.join(',')}:${token}`,
396
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
397
+ }),
398
+ AshTokenUsdValue: (token) => ({
399
+ key: `ashTokenUsdValue:${token}`,
400
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
401
+ }),
402
+ AshSupportedTokens: {
403
+ key: 'ashSupportedTokens',
404
+ ttl: ttl_1.TTLS.ONE_DAY,
405
+ },
406
+ StakingUserRewardByPoolId: (address, poolId) => ({
407
+ key: `stakingUserRewardByPoolId:${poolId}:${address}`,
408
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
409
+ }),
410
+ StakingWlNonces: (poolId) => ({
411
+ key: `stakingWlNonces:${poolId}`,
412
+ ttl: ttl_1.TTLS.ONE_MONTH,
413
+ }),
414
+ StakingDataDocs: (query) => ({
415
+ key: `stakingDataItems:${query}`,
416
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
417
+ }),
418
+ StakingPoolDoc: (poolId) => ({
419
+ key: `stakingPoolDoc:${poolId}`,
420
+ ttl: ttl_1.TTLS.ONE_MONTH,
421
+ }),
422
+ CollectionListingDistribution: (collection) => ({
423
+ key: `collectionListingDistribution:${collection}`,
424
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
425
+ }),
426
+ CollectionTraitMap: (collection) => ({
427
+ key: `collectionTraitMap:${collection}`,
428
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
429
+ }),
430
+ CollectionFloorPriceByAttribute: (collection) => ({
431
+ key: `collectionFloorPriceByAttribute:${collection}`,
432
+ ttl: ttl_1.TTLS.ONE_HOUR * 3,
433
+ }),
434
+ UserCreatorProfileByTag: (creatorTag) => ({
435
+ key: `userCreatorProfileByTag:${creatorTag}`,
436
+ ttl: ttl_1.TTLS.ONE_MONTH,
437
+ }),
438
+ UserCreatorProfile: (address) => ({
439
+ key: `userCreatorProfile:${address}`,
440
+ ttl: ttl_1.TTLS.ONE_MONTH,
441
+ }),
442
+ UserCreatorTagRegistered: (tag) => ({
443
+ key: `userCreatorTagRegistered:${tag}`,
444
+ ttl: ttl_1.TTLS.ONE_MONTH,
445
+ }),
446
+ CollectionFloorPrice: (collection, token) => ({
447
+ key: `floorPrice:${collection}:${token}`,
448
+ ttl: ttl_1.TTLS.ONE_MONTH,
449
+ }),
450
+ NftDataDocs: (query) => ({
451
+ key: `nftDataItems:${query}`,
452
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
453
+ }),
454
+ TokenData: (token) => ({
455
+ key: `tokenData:${token}`,
456
+ ttl: ttl_1.TTLS.ONE_MONTH,
457
+ }),
458
+ AllBannedCollections: {
459
+ key: 'bannedCollections',
460
+ ttl: ttl_1.TTLS.ONE_DAY * 30,
461
+ },
462
+ AllVerifiedCollections: {
463
+ key: 'verifiedCollections',
464
+ ttl: ttl_1.TTLS.ONE_DAY * 30,
465
+ },
466
+ CollectionProfileDocs: (hash) => ({
467
+ key: `collectionProfileDocs:${hash}`,
468
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
469
+ }),
470
+ CollectionOfferDocs: (hash) => ({
471
+ key: `collectionOffers:${hash}`,
472
+ ttl: ttl_1.TTLS.ONE_SECOND * 30,
473
+ }),
474
+ TokenUsdcValue: (token, timestamp) => ({
475
+ key: `tokenUsdcValue:${token}:${timestamp}`,
476
+ ttl: ttl_1.TTLS.ONE_DAY,
477
+ }),
478
+ UserProfile: (address) => ({
479
+ key: `userProfile:${address}`,
480
+ ttl: ttl_1.TTLS.ONE_DAY * 3,
481
+ }),
482
+ EpochEndTimestamp: {
483
+ key: 'epochEndTimestamp',
484
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
485
+ },
486
+ CurrentEpoch: {
487
+ key: `currentEpoch`,
488
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
489
+ },
490
+ CurrentTokenValue: {
491
+ key: `currentTokenValue`,
492
+ ttl: ttl_1.TTLS.ONE_HOUR * 1,
493
+ },
494
+ SEgldExchangeRate: {
495
+ key: `sEgldExchangeRate`,
496
+ ttl: ttl_1.TTLS.ONE_HOUR * 12,
497
+ },
498
+ CollectionHoldersDetailed: (key, realOwners) => ({
499
+ key: `collectionHoldersDetailed:${key}:${realOwners}`,
500
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
501
+ }),
502
+ SftTotalSupplyCount: (key) => ({
503
+ key: `sftTotalSupplyCount:${key}`,
504
+ ttl: ttl_1.TTLS.ONE_DAY,
505
+ }),
506
+ CollectionHoldersCount: (key) => ({
507
+ key: `collectionHoldersCount:${key}`,
508
+ ttl: ttl_1.TTLS.ONE_HOUR * 6,
509
+ }),
510
+ CollectionStatsDocs: (query) => ({
511
+ key: `collectionStats:${query}`,
512
+ ttl: ttl_1.TTLS.ONE_MINUTE * 10,
513
+ }),
514
+ CollectionMintStages: (collection, enabledOnly) => ({
515
+ key: `collectionMintStages:${collection}:${enabledOnly}`,
516
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
517
+ }),
518
+ CollectionMintProfile: (collection) => ({
519
+ key: `collectionMintProfile:${collection}`,
520
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
521
+ }),
522
+ TokenDecimals: (token) => ({
523
+ key: `tokenDecimals:${token}`,
524
+ ttl: ttl_1.TTLS.ONE_YEAR,
525
+ }),
526
+ AllSwapTokens: {
527
+ key: `allSwapTokens`,
528
+ ttl: ttl_1.TTLS.ONE_DAY,
529
+ },
530
+ AllTokensMap: {
531
+ key: 'fetchAllTokensMap',
532
+ ttl: ttl_1.TTLS.ONE_HOUR * 2,
533
+ },
534
+ TokenSupply: (token) => ({
535
+ key: `tokenSupply:${token}`,
536
+ ttl: ttl_1.TTLS.ONE_HOUR,
537
+ }),
538
+ MvxTokenSummary: (token) => ({
539
+ key: `mvxTokenSummary:${token}`,
540
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
541
+ }),
542
+ TokenSummary: (token) => ({
543
+ key: `tokenSummary:${token}`,
544
+ ttl: ttl_1.TTLS.ONE_HOUR,
545
+ }),
546
+ MinterUserMintsGlobal: (collectionTag, contractAddress, userAddress) => ({
547
+ key: `minterUserMintsGlobal:${collectionTag}:${contractAddress}:${userAddress}`,
548
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
549
+ }),
550
+ MinterUserMintsPerStage: (collectionTag, contractAddress, userAddress, stageName) => ({
551
+ key: `minterUserMintsPerStage:${collectionTag}:${contractAddress}:${userAddress}:${stageName}`,
552
+ ttl: ttl_1.TTLS.ONE_SECOND * 6,
553
+ }),
554
+ MinterMintShareholders: (collectionTag, contractAddress) => ({
555
+ key: `minterMintShareholders:${collectionTag}:${contractAddress}`,
556
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
557
+ }),
558
+ MinterRoyaltiesShareholders: (contractAddress) => ({
559
+ key: `minterRoyaltiesShareholders:${contractAddress}`,
560
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
561
+ }),
562
+ MinterIsUserWhitelisted: (collectionTag, contractAddress, userAddress, stageName) => ({
563
+ key: `minterIsUserWhitelisted:${collectionTag}:${contractAddress}:${userAddress}:${stageName}`,
564
+ ttl: ttl_1.TTLS.ONE_MINUTE * 5,
565
+ }),
566
+ CollectionProfile: (collection) => ({
567
+ key: `collectionProfile:${collection}`,
568
+ ttl: ttl_1.TTLS.ONE_MONTH,
569
+ }),
570
+ GetAbi: (abiName) => ({
571
+ key: `abi:${abiName}`,
572
+ ttl: ttl_1.TTLS.ONE_DAY,
573
+ }),
574
+ EsdtTokenProperties: (tokenIdentifier) => ({
575
+ key: `esdtTokenProperties:${tokenIdentifier}`,
576
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
577
+ }),
578
+ AccountHerotag: (address) => ({
579
+ key: `accountHerotag:${address}`,
580
+ ttl: ttl_1.TTLS.ONE_MONTH * 3,
581
+ }),
582
+ CollectionHoldersDocCount: (collection) => ({
583
+ key: `collectionHoldersDocCount:${collection}`,
584
+ ttl: ttl_1.TTLS.ONE_MONTH * 6,
585
+ }),
586
+ AccumulatorCreators: {
587
+ key: `accumulator:creators`,
588
+ ttl: ttl_1.TTLS.ONE_HOUR,
589
+ },
590
+ ExchangeRateLiquidXOXNO: {
591
+ key: `liquid:xoxno:exchangeRate`,
592
+ ttl: ttl_1.TTLS.ONE_HOUR,
593
+ },
594
+ ExchangeRateLiquidXOXNOEGLD: {
595
+ key: `liquid:xoxno:egld:exchangeRate`,
596
+ ttl: ttl_1.TTLS.ONE_HOUR,
597
+ },
598
+ FeesXOXNOEGLD: {
599
+ key: `liquid:xoxno:egld:fees`,
600
+ ttl: ttl_1.TTLS.ONE_DAY,
601
+ },
602
+ PendingDelegateXOXNOEGLD: {
603
+ key: `liquid:xoxno:egld:pendingDelegate`,
604
+ ttl: ttl_1.TTLS.ONE_HOUR,
605
+ },
606
+ VirtualEGLDReserveXOXNOEGLD: {
607
+ key: `liquid:xoxno:egld:virtualReserve`,
608
+ ttl: ttl_1.TTLS.ONE_HOUR,
609
+ },
610
+ EGLDLiquidStats: {
611
+ key: `liquid:egld:stats`,
612
+ ttl: ttl_1.TTLS.ONE_HOUR,
613
+ },
614
+ TotalWithdrawnXOXNOEGLD: {
615
+ key: `liquid:xoxno:egld:totalWithdrawn`,
616
+ ttl: ttl_1.TTLS.ONE_HOUR,
617
+ },
618
+ ValidatorsLiquidXOXNOEGLD: {
619
+ key: `liquid:xoxno:egld:stakingProviders`,
620
+ ttl: ttl_1.TTLS.ONE_HOUR * 5,
621
+ },
622
+ AprLiquidXOXNOEGLD: {
623
+ key: `liquid:xoxno:egld:apr`,
624
+ ttl: ttl_1.TTLS.ONE_HOUR,
625
+ },
626
+ PendingUnstakeXOXNOEGLD: {
627
+ key: `liquid:xoxno:egld:pendingUnstake`,
628
+ ttl: ttl_1.TTLS.ONE_HOUR,
629
+ },
630
+ HatomTokenValues: {
631
+ key: 'hatomTokenValues',
632
+ ttl: ttl_1.TTLS.ONE_HOUR,
633
+ },
634
+ LowVolumeCollections: {
635
+ key: 'lowVolumeCollections',
636
+ ttl: ttl_1.TTLS.ONE_HOUR,
637
+ },
638
+ EventReferralConfigDoc: (eventId, configId) => ({
639
+ key: `event:${eventId}:referralConfig:${configId}`,
640
+ ttl: ttl_1.TTLS.ONE_MONTH,
641
+ }),
642
+ EventReferralDoc: (eventId, referralCode) => ({
643
+ key: `event:${eventId}:referral:${referralCode}`,
644
+ ttl: ttl_1.TTLS.ONE_MONTH,
645
+ }),
646
+ SuiTransactionSender: (txDigest) => ({
647
+ key: `suiTransactionSender:${txDigest}`,
648
+ ttl: ttl_1.TTLS.ONE_YEAR,
649
+ }),
650
+ SuiObject: (objectId) => ({
651
+ key: `suiObject:${objectId}`,
652
+ ttl: ttl_1.TTLS.ONE_YEAR,
653
+ }),
654
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Redis TTLs (Time To Live) should be defined here in seconds.
3
+ * This provides a single source of truth for cache durations.
4
+ */
5
+ export declare const TTLS: {
6
+ ONE_SECOND: number;
7
+ ONE_MINUTE: number;
8
+ ONE_HOUR: number;
9
+ ONE_DAY: number;
10
+ ONE_WEEK: number;
11
+ ONE_MONTH: number;
12
+ ONE_YEAR: number;
13
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTLS = void 0;
4
+ /**
5
+ * Redis TTLs (Time To Live) should be defined here in seconds.
6
+ * This provides a single source of truth for cache durations.
7
+ */
8
+ exports.TTLS = {
9
+ ONE_SECOND: 1,
10
+ ONE_MINUTE: 60,
11
+ ONE_HOUR: 60 * 60,
12
+ ONE_DAY: 60 * 60 * 24,
13
+ ONE_WEEK: 60 * 60 * 24 * 7,
14
+ ONE_MONTH: 60 * 60 * 24 * 30,
15
+ ONE_YEAR: 60 * 60 * 24 * 365,
16
+ };