@nizza/core 0.6.3 → 0.6.5

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 (212) hide show
  1. package/dist/environments/environment.d.ts +1 -0
  2. package/dist/environments/environment.d.ts.map +1 -1
  3. package/dist/environments/environment.prod.d.ts +1 -0
  4. package/dist/environments/environment.prod.d.ts.map +1 -1
  5. package/dist/index.cjs +70 -69
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.mjs +6589 -6611
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/lib/accounts/core/domain/entities/account-plan.d.ts +22 -0
  10. package/dist/lib/accounts/core/domain/entities/account-plan.d.ts.map +1 -0
  11. package/dist/lib/accounts/core/domain/entities/index.d.ts +4 -0
  12. package/dist/lib/accounts/core/domain/entities/index.d.ts.map +1 -0
  13. package/dist/lib/accounts/core/domain/{types.d.ts → entities/private-account.entity.d.ts} +7 -35
  14. package/dist/lib/accounts/core/domain/entities/private-account.entity.d.ts.map +1 -0
  15. package/dist/lib/accounts/core/domain/entities/public-account.entity.d.ts +32 -0
  16. package/dist/lib/accounts/core/domain/entities/public-account.entity.d.ts.map +1 -0
  17. package/dist/lib/accounts/core/domain/index.d.ts +2 -3
  18. package/dist/lib/accounts/core/domain/index.d.ts.map +1 -1
  19. package/dist/lib/accounts/core/domain/repositories/account-plan.repository.d.ts +6 -0
  20. package/dist/lib/accounts/core/domain/repositories/account-plan.repository.d.ts.map +1 -0
  21. package/dist/lib/accounts/core/domain/repositories/index.d.ts +4 -0
  22. package/dist/lib/accounts/core/domain/repositories/index.d.ts.map +1 -0
  23. package/dist/lib/accounts/core/domain/repositories/private-account.repository.d.ts +5 -0
  24. package/dist/lib/accounts/core/domain/repositories/private-account.repository.d.ts.map +1 -0
  25. package/dist/lib/accounts/core/domain/repositories/public-account.repository.d.ts +5 -0
  26. package/dist/lib/accounts/core/domain/repositories/public-account.repository.d.ts.map +1 -0
  27. package/dist/lib/accounts/core/domain/shared/errors.d.ts +5 -1
  28. package/dist/lib/accounts/core/domain/shared/errors.d.ts.map +1 -1
  29. package/dist/lib/accounts/core/index.d.ts.map +1 -1
  30. package/dist/lib/accounts/core/infrastructure/dtos/index.d.ts +3 -0
  31. package/dist/lib/accounts/core/infrastructure/dtos/index.d.ts.map +1 -0
  32. package/dist/lib/accounts/core/infrastructure/dtos/raw-private-account.dto.d.ts +7 -0
  33. package/dist/lib/accounts/core/infrastructure/dtos/raw-private-account.dto.d.ts.map +1 -0
  34. package/dist/lib/accounts/core/infrastructure/dtos/raw-public-account.dto.d.ts +3 -0
  35. package/dist/lib/accounts/core/infrastructure/dtos/raw-public-account.dto.d.ts.map +1 -0
  36. package/dist/lib/accounts/core/infrastructure/index.d.ts +1 -1
  37. package/dist/lib/accounts/core/infrastructure/index.d.ts.map +1 -1
  38. package/dist/lib/accounts/core/infrastructure/mappers/index.d.ts +3 -0
  39. package/dist/lib/accounts/core/infrastructure/mappers/index.d.ts.map +1 -0
  40. package/dist/lib/accounts/core/infrastructure/mappers/raw-private-account-to-domain.mapper.d.ts +4 -0
  41. package/dist/lib/accounts/core/infrastructure/mappers/raw-private-account-to-domain.mapper.d.ts.map +1 -0
  42. package/dist/lib/accounts/core/infrastructure/mappers/raw-public-account-to-domain.mapper.d.ts +4 -0
  43. package/dist/lib/accounts/core/infrastructure/mappers/raw-public-account-to-domain.mapper.d.ts.map +1 -0
  44. package/dist/lib/accounts/core/infrastructure/repositories/index.d.ts +3 -0
  45. package/dist/lib/accounts/core/infrastructure/repositories/index.d.ts.map +1 -0
  46. package/dist/lib/accounts/core/infrastructure/repositories/rest-account-plan.repository.d.ts +6 -0
  47. package/dist/lib/accounts/core/infrastructure/repositories/rest-account-plan.repository.d.ts.map +1 -0
  48. package/dist/lib/accounts/core/infrastructure/repositories/rest-private-account.repository.d.ts +5 -0
  49. package/dist/lib/accounts/core/infrastructure/repositories/rest-private-account.repository.d.ts.map +1 -0
  50. package/dist/lib/accounts/core/infrastructure/repositories/rest-public-account.repository.d.ts +5 -0
  51. package/dist/lib/accounts/core/infrastructure/repositories/rest-public-account.repository.d.ts.map +1 -0
  52. package/dist/lib/accounts/core/services/account.service.d.ts +9 -0
  53. package/dist/lib/accounts/core/services/account.service.d.ts.map +1 -0
  54. package/dist/lib/accounts/core/services/index.d.ts +1 -1
  55. package/dist/lib/accounts/core/services/index.d.ts.map +1 -1
  56. package/dist/lib/accounts/hooks/account.hook.d.ts +5 -2
  57. package/dist/lib/accounts/hooks/account.hook.d.ts.map +1 -1
  58. package/dist/lib/accounts/index.d.ts +1 -1
  59. package/dist/lib/accounts/index.d.ts.map +1 -1
  60. package/dist/lib/accounts/states/account.d.ts.map +1 -0
  61. package/dist/lib/accounts/states/index.d.ts.map +1 -0
  62. package/dist/lib/accounts/utils/getAccount.d.ts +1 -1
  63. package/dist/lib/accounts/utils/getAccount.d.ts.map +1 -1
  64. package/dist/lib/errors/DomainError.d.ts +26 -0
  65. package/dist/lib/errors/DomainError.d.ts.map +1 -1
  66. package/dist/lib/index.d.ts +1 -3
  67. package/dist/lib/index.d.ts.map +1 -1
  68. package/dist/lib/ivs/index.d.ts +3 -0
  69. package/dist/lib/ivs/index.d.ts.map +1 -0
  70. package/dist/lib/ivs/meta-data/core/domain/index.d.ts.map +1 -0
  71. package/dist/lib/{meta-data → ivs/meta-data}/core/domain/meta-data-client.entity.d.ts +1 -1
  72. package/dist/lib/ivs/meta-data/core/domain/meta-data-client.entity.d.ts.map +1 -0
  73. package/dist/lib/ivs/meta-data/core/domain/real-time-stream-info.entity.d.ts.map +1 -0
  74. package/dist/lib/ivs/meta-data/core/index.d.ts.map +1 -0
  75. package/dist/lib/ivs/meta-data/hooks/index.d.ts.map +1 -0
  76. package/dist/lib/ivs/meta-data/hooks/use-meta-data-client.hook.d.ts.map +1 -0
  77. package/dist/lib/ivs/meta-data/index.d.ts.map +1 -0
  78. package/dist/lib/{socket → ivs/socket}/core/domain/entities/chat-client-socket.entity.d.ts +1 -1
  79. package/dist/lib/ivs/socket/core/domain/entities/chat-client-socket.entity.d.ts.map +1 -0
  80. package/dist/lib/{socket → ivs/socket}/core/domain/entities/event-chat-room.entity.d.ts +2 -2
  81. package/dist/lib/ivs/socket/core/domain/entities/event-chat-room.entity.d.ts.map +1 -0
  82. package/dist/lib/ivs/socket/core/domain/entities/index.d.ts.map +1 -0
  83. package/dist/lib/ivs/socket/core/domain/index.d.ts.map +1 -0
  84. package/dist/lib/ivs/socket/core/domain/repositories/event-chat-room.repository.d.ts.map +1 -0
  85. package/dist/lib/ivs/socket/core/domain/repositories/index.d.ts.map +1 -0
  86. package/dist/lib/ivs/socket/core/domain/shared/constants.d.ts.map +1 -0
  87. package/dist/lib/ivs/socket/core/domain/shared/errors.d.ts +5 -0
  88. package/dist/lib/ivs/socket/core/domain/shared/errors.d.ts.map +1 -0
  89. package/dist/lib/ivs/socket/core/domain/shared/index.d.ts.map +1 -0
  90. package/dist/lib/ivs/socket/core/domain/shared/types.d.ts.map +1 -0
  91. package/dist/lib/ivs/socket/core/index.d.ts.map +1 -0
  92. package/dist/lib/ivs/socket/core/infrastructure/graphql-event-chat-room.repository.d.ts.map +1 -0
  93. package/dist/lib/ivs/socket/core/infrastructure/index.d.ts.map +1 -0
  94. package/dist/lib/ivs/socket/core/services/event-chat-room.service.d.ts.map +1 -0
  95. package/dist/lib/ivs/socket/core/services/index.d.ts.map +1 -0
  96. package/dist/lib/ivs/socket/hooks/index.d.ts.map +1 -0
  97. package/dist/lib/{socket → ivs/socket}/hooks/use-chat-socket-actions.hook.d.ts +1 -1
  98. package/dist/lib/ivs/socket/hooks/use-chat-socket-actions.hook.d.ts.map +1 -0
  99. package/dist/lib/ivs/socket/hooks/use-chat-socket-client.hook.d.ts.map +1 -0
  100. package/dist/lib/ivs/socket/hooks/use-chat-socket-handlers.hook.d.ts.map +1 -0
  101. package/dist/lib/{socket → ivs/socket}/hooks/use-connect-chat-socket.hook.d.ts +5 -1
  102. package/dist/lib/ivs/socket/hooks/use-connect-chat-socket.hook.d.ts.map +1 -0
  103. package/dist/lib/ivs/socket/hooks/use-event-chat-room.hook.d.ts.map +1 -0
  104. package/dist/lib/ivs/socket/index.d.ts.map +1 -0
  105. package/dist/lib/{socket → ivs/socket}/state.d.ts +1 -1
  106. package/dist/lib/ivs/socket/state.d.ts.map +1 -0
  107. package/dist/lib/ivs/socket/utils/add-question-data.util.d.ts +3 -0
  108. package/dist/lib/ivs/socket/utils/add-question-data.util.d.ts.map +1 -0
  109. package/dist/lib/ivs/socket/utils/connect-to-socket.util.d.ts.map +1 -0
  110. package/dist/lib/ivs/socket/utils/get-random-color.util.d.ts.map +1 -0
  111. package/dist/lib/{socket → ivs/socket}/utils/index.d.ts +1 -1
  112. package/dist/lib/ivs/socket/utils/index.d.ts.map +1 -0
  113. package/dist/lib/ivs/socket/utils/normalize-chat-message.util.d.ts +3 -0
  114. package/dist/lib/ivs/socket/utils/normalize-chat-message.util.d.ts.map +1 -0
  115. package/dist/lib/mobx/hooks.d.ts +37 -16
  116. package/dist/lib/mobx/hooks.d.ts.map +1 -1
  117. package/dist/lib/mobx/index.d.ts +1 -0
  118. package/dist/lib/mobx/index.d.ts.map +1 -1
  119. package/dist/lib/nizza-store/NizzaStore.d.ts +7 -3
  120. package/dist/lib/nizza-store/NizzaStore.d.ts.map +1 -1
  121. package/dist/lib/nizza-store/hooks.d.ts +34 -0
  122. package/dist/lib/nizza-store/hooks.d.ts.map +1 -0
  123. package/dist/lib/nizza-store/index.d.ts +2 -2
  124. package/dist/lib/nizza-store/index.d.ts.map +1 -1
  125. package/dist/lib/types/nizza/globalStore.d.ts +1 -0
  126. package/dist/lib/types/nizza/globalStore.d.ts.map +1 -1
  127. package/dist/lib/utils/customFetch.d.ts.map +1 -1
  128. package/dist/lib/utils/helpers.d.ts +7 -4
  129. package/dist/lib/utils/helpers.d.ts.map +1 -1
  130. package/package.json +1 -1
  131. package/dist/lib/accounts/atoms/account.d.ts.map +0 -1
  132. package/dist/lib/accounts/atoms/index.d.ts.map +0 -1
  133. package/dist/lib/accounts/core/domain/Account.d.ts +0 -38
  134. package/dist/lib/accounts/core/domain/Account.d.ts.map +0 -1
  135. package/dist/lib/accounts/core/domain/AccountRepository.d.ts +0 -5
  136. package/dist/lib/accounts/core/domain/AccountRepository.d.ts.map +0 -1
  137. package/dist/lib/accounts/core/domain/types.d.ts.map +0 -1
  138. package/dist/lib/accounts/core/infrastructure/EventRestRepository.d.ts +0 -5
  139. package/dist/lib/accounts/core/infrastructure/EventRestRepository.d.ts.map +0 -1
  140. package/dist/lib/accounts/core/services/AccountService.d.ts +0 -7
  141. package/dist/lib/accounts/core/services/AccountService.d.ts.map +0 -1
  142. package/dist/lib/jotai/index.d.ts +0 -2
  143. package/dist/lib/jotai/index.d.ts.map +0 -1
  144. package/dist/lib/meta-data/core/domain/index.d.ts.map +0 -1
  145. package/dist/lib/meta-data/core/domain/meta-data-client.entity.d.ts.map +0 -1
  146. package/dist/lib/meta-data/core/domain/real-time-stream-info.entity.d.ts.map +0 -1
  147. package/dist/lib/meta-data/core/index.d.ts.map +0 -1
  148. package/dist/lib/meta-data/hooks/index.d.ts.map +0 -1
  149. package/dist/lib/meta-data/hooks/use-meta-data-client.hook.d.ts.map +0 -1
  150. package/dist/lib/meta-data/index.d.ts.map +0 -1
  151. package/dist/lib/nizza-store/react-hooks.d.ts +0 -18
  152. package/dist/lib/nizza-store/react-hooks.d.ts.map +0 -1
  153. package/dist/lib/socket/core/domain/entities/chat-client-socket.entity.d.ts.map +0 -1
  154. package/dist/lib/socket/core/domain/entities/event-chat-room.entity.d.ts.map +0 -1
  155. package/dist/lib/socket/core/domain/entities/index.d.ts.map +0 -1
  156. package/dist/lib/socket/core/domain/index.d.ts.map +0 -1
  157. package/dist/lib/socket/core/domain/repositories/event-chat-room.repository.d.ts.map +0 -1
  158. package/dist/lib/socket/core/domain/repositories/index.d.ts.map +0 -1
  159. package/dist/lib/socket/core/domain/shared/constants.d.ts.map +0 -1
  160. package/dist/lib/socket/core/domain/shared/errors.d.ts +0 -5
  161. package/dist/lib/socket/core/domain/shared/errors.d.ts.map +0 -1
  162. package/dist/lib/socket/core/domain/shared/index.d.ts.map +0 -1
  163. package/dist/lib/socket/core/domain/shared/types.d.ts.map +0 -1
  164. package/dist/lib/socket/core/index.d.ts.map +0 -1
  165. package/dist/lib/socket/core/infrastructure/graphql-event-chat-room.repository.d.ts.map +0 -1
  166. package/dist/lib/socket/core/infrastructure/index.d.ts.map +0 -1
  167. package/dist/lib/socket/core/services/event-chat-room.service.d.ts.map +0 -1
  168. package/dist/lib/socket/core/services/index.d.ts.map +0 -1
  169. package/dist/lib/socket/hooks/index.d.ts.map +0 -1
  170. package/dist/lib/socket/hooks/use-chat-socket-actions.hook.d.ts.map +0 -1
  171. package/dist/lib/socket/hooks/use-chat-socket-client.hook.d.ts.map +0 -1
  172. package/dist/lib/socket/hooks/use-chat-socket-handlers.hook.d.ts.map +0 -1
  173. package/dist/lib/socket/hooks/use-connect-chat-socket.hook.d.ts.map +0 -1
  174. package/dist/lib/socket/hooks/use-event-chat-room.hook.d.ts.map +0 -1
  175. package/dist/lib/socket/index.d.ts.map +0 -1
  176. package/dist/lib/socket/logger.d.ts +0 -3
  177. package/dist/lib/socket/logger.d.ts.map +0 -1
  178. package/dist/lib/socket/state.d.ts.map +0 -1
  179. package/dist/lib/socket/utils/add-question-data.util.d.ts +0 -3
  180. package/dist/lib/socket/utils/add-question-data.util.d.ts.map +0 -1
  181. package/dist/lib/socket/utils/connect-to-socket.util.d.ts.map +0 -1
  182. package/dist/lib/socket/utils/get-random-color.util.d.ts.map +0 -1
  183. package/dist/lib/socket/utils/index.d.ts.map +0 -1
  184. package/dist/lib/socket/utils/normalize-chat-message.util.d.ts +0 -3
  185. package/dist/lib/socket/utils/normalize-chat-message.util.d.ts.map +0 -1
  186. /package/dist/lib/accounts/{atoms → states}/account.d.ts +0 -0
  187. /package/dist/lib/accounts/{atoms → states}/index.d.ts +0 -0
  188. /package/dist/lib/{meta-data → ivs/meta-data}/core/domain/index.d.ts +0 -0
  189. /package/dist/lib/{meta-data → ivs/meta-data}/core/domain/real-time-stream-info.entity.d.ts +0 -0
  190. /package/dist/lib/{meta-data → ivs/meta-data}/core/index.d.ts +0 -0
  191. /package/dist/lib/{meta-data → ivs/meta-data}/hooks/index.d.ts +0 -0
  192. /package/dist/lib/{meta-data → ivs/meta-data}/hooks/use-meta-data-client.hook.d.ts +0 -0
  193. /package/dist/lib/{meta-data → ivs/meta-data}/index.d.ts +0 -0
  194. /package/dist/lib/{socket → ivs/socket}/core/domain/entities/index.d.ts +0 -0
  195. /package/dist/lib/{socket → ivs/socket}/core/domain/index.d.ts +0 -0
  196. /package/dist/lib/{socket → ivs/socket}/core/domain/repositories/event-chat-room.repository.d.ts +0 -0
  197. /package/dist/lib/{socket → ivs/socket}/core/domain/repositories/index.d.ts +0 -0
  198. /package/dist/lib/{socket → ivs/socket}/core/domain/shared/constants.d.ts +0 -0
  199. /package/dist/lib/{socket → ivs/socket}/core/domain/shared/index.d.ts +0 -0
  200. /package/dist/lib/{socket → ivs/socket}/core/domain/shared/types.d.ts +0 -0
  201. /package/dist/lib/{socket → ivs/socket}/core/index.d.ts +0 -0
  202. /package/dist/lib/{socket → ivs/socket}/core/infrastructure/graphql-event-chat-room.repository.d.ts +0 -0
  203. /package/dist/lib/{socket → ivs/socket}/core/infrastructure/index.d.ts +0 -0
  204. /package/dist/lib/{socket → ivs/socket}/core/services/event-chat-room.service.d.ts +0 -0
  205. /package/dist/lib/{socket → ivs/socket}/core/services/index.d.ts +0 -0
  206. /package/dist/lib/{socket → ivs/socket}/hooks/index.d.ts +0 -0
  207. /package/dist/lib/{socket → ivs/socket}/hooks/use-chat-socket-client.hook.d.ts +0 -0
  208. /package/dist/lib/{socket → ivs/socket}/hooks/use-chat-socket-handlers.hook.d.ts +0 -0
  209. /package/dist/lib/{socket → ivs/socket}/hooks/use-event-chat-room.hook.d.ts +0 -0
  210. /package/dist/lib/{socket → ivs/socket}/index.d.ts +0 -0
  211. /package/dist/lib/{socket → ivs/socket}/utils/connect-to-socket.util.d.ts +0 -0
  212. /package/dist/lib/{socket → ivs/socket}/utils/get-random-color.util.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/ivs/socket/core/domain/shared/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,qBAAa,uBAAwB,SAAQ,WAAW;;CAOvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/ivs/socket/core/domain/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/ivs/socket/core/domain/shared/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAG3B,QAAA,MAAM,oBAAoB,sBAEzB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-event-chat-room.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/ivs/socket/core/infrastructure/graphql-event-chat-room.repository.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EAEvB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAInD,qBAAa,8BAA+B,YAAW,uBAAuB;IAC5E,OAAO,CAAC,MAAM,CAAgB;;IAMxB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAwBlE,OAAO,CAAC,6BAA6B;CAGtC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/ivs/socket/core/infrastructure/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-chat-room.service.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/ivs/socket/core/services/event-chat-room.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEtE,qBAAa,oBAAoB;IAGnB,OAAO,CAAC,uBAAuB;IAF3C,OAAO,CAAC,OAAO,CAAU;gBAEL,uBAAuB,EAAE,uBAAuB;IAE9D,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAalD,UAAU,CAAC,KAAK,EAAE,MAAM;IAIxB,OAAO,CAAC,eAAe;CAGxB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/ivs/socket/core/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ChatMessageBase } from '../../types';
1
+ import { ChatMessageBase } from '../../../types';
2
2
  /**
3
3
  * Write operations that can be performed with the event chat room.
4
4
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-chat-socket-actions.hook.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/use-chat-socket-actions.hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,oBAAoB;2BAKnB,MAAM,cAAc,eAAe;CAkBhD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-chat-socket-client.hook.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/use-chat-socket-client.hook.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAK3C,OAAO,WAAW,KAAK;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,KAAG,gBAgFlD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-chat-socket-handlers.hook.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/use-chat-socket-handlers.hook.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,qBAAqB;yBAGJ,GAAG;0BAOF,GAAG;CAQjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ChatMessage } from '../../types';
1
+ import { ChatMessage } from '../../../types';
2
2
  interface Props {
3
3
  eventId: string;
4
4
  userName: string;
@@ -8,6 +8,7 @@ interface Props {
8
8
  }
9
9
  /**
10
10
  * Create a connection to the chat room of the event.
11
+ * It handles reconnection with exponential backoff and limits the number of reconnection attempts.
11
12
  *
12
13
  * This hook is only intended for read operations, it receives
13
14
  * messages and events from the room and exposes them in Jotai atoms.
@@ -17,6 +18,9 @@ interface Props {
17
18
  *
18
19
  * NOTE: There is another hook called useChatSocketActions that contains reusable
19
20
  * write operations to avoid polluting the current *READ ONLY* hook!
21
+ *
22
+ * @param {Props} props - The properties to configure the chat connection.
23
+ * @returns - An object containing the WebSocket, connection status, and message list.
20
24
  */
21
25
  export declare const useConnectChatSocket: (props: Props) => {
22
26
  socket: WebSocket | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connect-chat-socket.hook.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/use-connect-chat-socket.hook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgB7C,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;AA0BD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,UAAW,KAAK;;;;;CAsHhD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-event-chat-room.hook.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/hooks/use-event-chat-room.hook.ts"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAQF,eAAO,MAAM,gBAAgB,UAAW,KAAK;;;CA4B5C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/ivs/socket/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ChatMessage } from '../types/nizza/chat';
1
+ import { ChatMessage } from '../../types/nizza/chat';
2
2
  export declare const chatSocketAtom: import('jotai').PrimitiveAtom<WebSocket | undefined> & {
3
3
  init: WebSocket | undefined;
4
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/lib/ivs/socket/state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,eAAO,MAAM,cAAc;;CAAyC,CAAC;AAIrE,eAAO,MAAM,mBAAmB;;CAAc,CAAC;AAI/C,eAAO,MAAM,mBAAmB;;CAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ChatMessage } from '../../../types';
2
+ export declare const addQuestionData: (msg: ChatMessage) => ChatMessage;
3
+ //# sourceMappingURL=add-question-data.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-question-data.util.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/utils/add-question-data.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,eAAe,QAAS,WAAW,KAAG,WAsBlD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-to-socket.util.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/utils/connect-to-socket.util.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,cAW7C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-random-color.util.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/utils/get-random-color.util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,cAS1B,CAAC"}
@@ -1,5 +1,5 @@
1
+ export * from './add-question-data.util';
1
2
  export * from './connect-to-socket.util';
2
3
  export * from './get-random-color.util';
3
4
  export * from './normalize-chat-message.util';
4
- export * from './add-question-data.util';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ChatMessage } from '../../../types';
2
+ export declare const normalizeChatMessage: (chat: ChatMessage[], data: any) => ChatMessage;
3
+ //# sourceMappingURL=normalize-chat-message.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-chat-message.util.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ivs/socket/utils/normalize-chat-message.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD,eAAO,MAAM,oBAAoB,SACzB,WAAW,EAAE,QACb,GAAG,KACR,WA8BF,CAAC"}
@@ -1,25 +1,46 @@
1
1
  import { DependencyList, EffectCallback } from 'react';
2
+ export interface UseSelectConfig<T> {
3
+ defaultValue?: T;
4
+ deps?: DependencyList;
5
+ }
2
6
  /**
3
- * This hook is just like the standard MobX autorun function, but it hooks into the React component
4
- * lifecycle. This means the set up for the autorun only happens once, and it's automatically
5
- * disposed of when the component unmounts.
7
+ * Hook that creates a MobX autorun that disposes when the component unmounts.
6
8
  *
7
- * @param effect The function that's called when the store's properties are changed. This
8
- * function is called initially when the autorun is initialized.
9
- * @param deps The non-MobX dependencies that should retrigger the callback.
9
+ * @param effect - Function that runs when observable values change.
10
+ * @param deps - Optional array of non-MobX dependencies.
11
+ *
12
+ * @example
13
+ * useAutorun(() => {
14
+ * console.log(store.someValue);
15
+ * }, [store]);
10
16
  */
11
17
  export declare function useAutorun(effect: EffectCallback, deps?: DependencyList): void;
12
- export declare function useSelect<T>(trigger: () => T, deps?: DependencyList): T | undefined;
13
18
  /**
14
- * This hook is just like the standard MobX reaction function, but it hooks into the React component
15
- * lifecycle. This means the set up for the reaction only happens once, and it's automatically
16
- * disposed of when the component unmounts.
19
+ * Hook that selects a value from a MobX store and reacts to changes.
20
+ *
21
+ * @param trigger - A function that returns the observable value to track.
22
+ * @param config - Optional config object with `defaultValue` and `deps`.
23
+ * @returns The current value selected from the store.
24
+ *
25
+ * @example
26
+ * const accountName = useSelect(() => store.accountName, { defaultValue: 'Default Account' });
27
+ * const items = useSelect(() => store.items, { deps: [dep1, dep2] });
28
+ * const itemCount = useSelect(() => store.items.length);
29
+ */
30
+ export declare function useSelect<T>(trigger: () => T, config?: UseSelectConfig<T>): T;
31
+ /**
32
+ * Hook that reacts to changes in the selected data from MobX and triggers an effect.
33
+ *
34
+ * @param trigger - Function that returns the data to observe.
35
+ * @param effect - Function to run when the observed data changes.
36
+ * @param deps - Optional array of dependencies that may affect the reaction logic.
17
37
  *
18
- * @param trigger This function determines what data will trigger the effect function to rerun.
19
- * Only the *accessed* data is important in this function—not the return value.
20
- * @param effect The function that's called when the store's properties are changed. This
21
- * function is called initially when the autorun is initialized.
22
- * @param deps The non-MobX dependencies that should retrigger the callback.
38
+ * @example
39
+ * useReaction(
40
+ * () => store.someValue,
41
+ * (value) => console.log(`Value changed to: ${value}`),
42
+ * [dep1, dep2]
43
+ * );
23
44
  */
24
- export declare function useReaction(trigger: () => any, effect: EffectCallback, deps?: DependencyList): void;
45
+ export declare function useReaction<T>(trigger: () => T, effect: (value: T) => void, deps?: DependencyList): void;
25
46
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/mobx/hooks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAE5E;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,GAAE,cAAmB,QAK3E;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,IAAI,GAAE,cAAmB,iBAgBvE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,GAAG,EAClB,MAAM,EAAE,cAAc,EACtB,IAAI,GAAE,cAAmB,QAM1B"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/mobx/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,cAAc,EACd,cAAc,EACf,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,GAAE,cAAmB,QAK3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,OAAO,EAAE,MAAM,CAAC,EAChB,MAAM,GAAE,eAAe,CAAC,CAAC,CAAM,GAC9B,CAAC,CAcH;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,OAAO,EAAE,MAAM,CAAC,EAChB,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC1B,IAAI,GAAE,cAAmB,QAS1B"}
@@ -1,2 +1,3 @@
1
+ export * from './hooks';
1
2
  export * from './StoreProvider';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/mobx/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/mobx/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
@@ -1,9 +1,9 @@
1
- import { NizzaAccount } from '../accounts';
1
+ import { NizzaAccount, PrivateNizzaAccount } from '../accounts';
2
2
  import { BroadcastChannelEventBus } from '../event-buses';
3
3
  import { AccountStatus, AddToCartConfig, INizzaStore, NizzaConfig, NizzaProductDataSource } from '../types';
4
4
  import { Logger } from '../utils/logger';
5
5
  export declare class NizzaStore implements INizzaStore {
6
- static readonly version = "6";
6
+ static readonly version = "7";
7
7
  private static _instance;
8
8
  readonly instanceId: string;
9
9
  readonly log: Logger;
@@ -13,6 +13,7 @@ export declare class NizzaStore implements INizzaStore {
13
13
  private _accountStatus;
14
14
  private _productDataSource;
15
15
  private _eventBus;
16
+ private activeAccountFetchId;
16
17
  private constructor();
17
18
  static instance(): NizzaStore;
18
19
  configure(config: NizzaConfig): Promise<void>;
@@ -24,12 +25,15 @@ export declare class NizzaStore implements INizzaStore {
24
25
  setProductId(id: string): void;
25
26
  setOrderFormId(id: string): void;
26
27
  setAddToCartConfig(config: AddToCartConfig): void;
28
+ setAuthToken(token: string): void;
27
29
  refetchAccount(): Promise<void>;
28
30
  get version(): string;
29
31
  get config(): NizzaConfig | null;
30
- get account(): NizzaAccount | undefined;
32
+ get account(): NizzaAccount | PrivateNizzaAccount | undefined;
31
33
  get accountStatus(): AccountStatus;
32
34
  get accountName(): string | undefined;
35
+ isPvtAccount(account: NizzaAccount | PrivateNizzaAccount | undefined): account is PrivateNizzaAccount;
36
+ isPubAccount(account: NizzaAccount | PrivateNizzaAccount | undefined): account is NizzaAccount;
33
37
  get productDataSource(): NizzaProductDataSource | undefined;
34
38
  get eventBus(): BroadcastChannelEventBus;
35
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NizzaStore.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/NizzaStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAc,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAAa,UAAW,YAAW,WAAW;IAC5C,MAAM,CAAC,QAAQ,CAAC,OAAO,OAAO;IAC9B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAa;IAErC,QAAQ,CAAC,UAAU,SAAa;IAChC,QAAQ,CAAC,GAAG,SAAoB;IAChC,QAAQ,CAAC,UAAU,4BAAiC;IAEpD,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,cAAc,CAAyB;IAC/C,OAAO,CAAC,kBAAkB,CAAqC;IAC/D,OAAO,CAAC,SAAS,CAA0D;IAE3E,OAAO;IA6BP,MAAM,CAAC,Q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yB;IAC/C,OAAO,CAAC,kBAAkB,CAAqC;IAC/D,OAAO,CAAC,SAAS,CAA0D;IAG3E,OAAO,CAAC,oBAAoB,CAAuB;IAEnD,OAAO;IAqCP,MAAM,CAAC,QAAQ,IAAI,UAAU;IAuBvB,SAAS,CAAC,MAAM,EAAE,WAAW;YAUrB,YAAY;YA8BZ,YAAY;IA8B1B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,gBAAgB;IAIxB,oBAAoB,CAAC,UAAU,EAAE,sBAAsB;IAIvD,YAAY,CAAC,EAAE,EAAE,MAAM;IAKvB,cAAc,CAAC,EAAE,EAAE,MAAM;IAKzB,kBAAkB,CAAC,MAAM,EAAE,eAAe;IAU1C,YAAY,CAAC,KAAK,EAAE,MAAM;IAIpB,cAAc;IAKpB,IAAI,OAAO,WAEV;IAED,IAAI,MAAM,uBAET;IAED,IAAI,OAAO,mDAEV;IAED,IAAI,aAAa,kBAEhB;IAED,IAAI,WAAW,uBAEd;IAED,YAAY,CACV,OAAO,EAAE,YAAY,GAAG,mBAAmB,GAAG,SAAS,GACtD,OAAO,IAAI,mBAAmB;IAIjC,YAAY,CACV,OAAO,EAAE,YAAY,GAAG,mBAAmB,GAAG,SAAS,GACtD,OAAO,IAAI,YAAY;IAI1B,IAAI,iBAAiB,uCAEpB;IAED,IAAI,QAAQ,6BAEX;CACF;AAED,eAAO,MAAM,QAAQ,YAAa,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,eAS5D,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { UseSelectConfig } from '../mobx';
2
+ import { NizzaStore } from './NizzaStore';
3
+ /**
4
+ * Returns the NizzaStore using memoization.
5
+ *
6
+ * @return {NizzaStore} The NizzaStore object
7
+ */
8
+ export declare function useNZ(): NizzaStore;
9
+ /**
10
+ * Hook to select values from the NizzaStore.
11
+ *
12
+ * @param selector - Function to select a value from the store.
13
+ * @param config - Optional configuration object with `defaultValue` and `deps`.
14
+ * @returns The selected value from the NizzaStore.
15
+ *
16
+ * @example
17
+ * // Select accountName with a fallback value
18
+ * const accountName = useNizza(store => store.accountName || 'Guest');
19
+ *
20
+ * // Select accountName using a default value through config
21
+ * const accountName = useNizza(store => store.accountName, { defaultValue: 'Guest' });
22
+ *
23
+ * // Select productList with dependencies
24
+ * const productList = useNizza(store => store.products, { deps: [dep1] });
25
+ *
26
+ * // Return a custom object with multiple store properties
27
+ * const accountInfo = useNizza(store => ({
28
+ * name: store.accountName || 'Guest',
29
+ * status: store.accountStatus,
30
+ * isPrivate: store.isPvtAccount(store.account),
31
+ * }));
32
+ */
33
+ export declare function useNizza<T>(selector: (store: NizzaStore) => T, config?: UseSelectConfig<T>): T;
34
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAY,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,KAAK,IAAI,UAAU,CAElC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,EAClC,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC1B,CAAC,CAGH"}
@@ -1,4 +1,4 @@
1
- export * from './NizzaStore';
2
1
  export * from './helpers';
3
- export * from './react-hooks';
2
+ export * from './hooks';
3
+ export * from './NizzaStore';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -23,6 +23,7 @@ export interface NizzaConfig extends GlobalStoreConfig {
23
23
  account: string;
24
24
  productId?: string | null;
25
25
  orderFormId?: string | null;
26
+ authToken?: string;
26
27
  dev?: Record<string, any>;
27
28
  getProductDataSource?: () => Promise<NizzaProductDataSource> | NizzaProductDataSource;
28
29
  addToCartConfig?: AddToCartConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"globalStore.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/nizza/globalStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;CACjD;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,wBAAwB,CAAC;IACnC,SAAS,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAA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CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,oBAAoB,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACnE,kBAAkB,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"customFetch.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/customFetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAM7C,wBAAsB,WAAW,CAAC,CAAC,GAAG,GAAG,EACvC,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GAC1C,OAAO,CAAC,CAAC,CAAC,CAAC;AAEd,wBAAsB,WAAW,CAC/B,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,GACxC,OAAO,CAAC,QAAQ,CAAC,CAAC;AA0DrB,OAAO,WAAW,OAAO;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,eAAO,MAAM,OAAO,GAAI,CAAC,gBAAgB,OAAO,eACmB,CAAC"}
1
+ {"version":3,"file":"customFetch.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/customFetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAM7C,wBAAsB,WAAW,CAAC,CAAC,GAAG,GAAG,EACvC,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GAC1C,OAAO,CAAC,CAAC,CAAC,CAAC;AAEd,wBAAsB,WAAW,CAC/B,MAAM,EAAE,iBAAiB,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,GACxC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAwDrB,OAAO,WAAW,OAAO;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,eAAO,MAAM,OAAO,GAAI,CAAC,gBAAgB,OAAO,eACmB,CAAC"}
@@ -1,8 +1,10 @@
1
1
  export declare const shortId: (length?: number) => string;
2
2
  /**
3
3
  * Constructs a search parameter string from a given object of key-value pairs.
4
+ * Filters out undefined and optionally null values.
4
5
  *
5
6
  * @param {Record<string, any>} params - The object containing key-value pairs.
7
+ * @param {boolean} [excludeNull=false] - Whether to exclude null values in addition to undefined.
6
8
  * @returns {string} The search parameter string formatted as '?key1=value1&key2=value2&key3=value3', or an empty string if no valid parameters are provided.
7
9
  *
8
10
  * @example
@@ -10,13 +12,14 @@ export declare const shortId: (length?: number) => string;
10
12
  * key1: 'value1',
11
13
  * key2: 'value2',
12
14
  * key3: undefined,
13
- * key4: 'value4'
15
+ * key4: null,
16
+ * key5: 'value5'
14
17
  * };
15
18
  *
16
- * const searchParamString = searchParams(params);
17
- * console.log(searchParamString); // Output: "?key1=value1&key2=value2&key4=value4"
19
+ * const searchParamString = searchParams(params, true);
20
+ * console.log(searchParamString); // Output: "?key1=value1&key2=value2&key5=value5"
18
21
  */
19
- export declare const searchParams: (params: Record<string, any>) => string;
22
+ export declare const searchParams: (params: Record<string, any>, excludeNull?: boolean) => string;
20
23
  /**
21
24
  * Retrieves the URL search parameters from a specified script element's source URL.
22
25
  *
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,6BAAiC,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,WAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAS1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAQ,MAAM,KAAG,eAG5C,CAAC;AAEF,wBAAgB,UAAU,IAAI,MAAM,CAInC;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,6BAAiC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,WACf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,4BAE1B,MASF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAQ,MAAM,KAAG,eAG5C,CAAC;AAEF,wBAAgB,UAAU,IAAI,MAAM,CAInC;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/lib/accounts/atoms/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,WAAW;;CAAkC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/accounts/atoms/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,38 +0,0 @@
1
- import { IAggregateRoot } from '../../../clean-architecture';
2
- import { AccountContractStatusTypes, AccountContractTypes, AccountPlanDescriptionTypes, AccountSubscriptionTypes, AccountTypes } from './shared';
3
- import { AccountCurrencyConfig, AccountGlobalPage, AccountProps, AccountStripe, ExceededFeatures, RawAccount, VariationsConfig } from './types';
4
- export declare class NizzaAccount implements IAggregateRoot, AccountProps {
5
- readonly root: import('../../../clean-architecture').AggregateRoot<NizzaAccount, AccountProps>;
6
- id: string;
7
- account: string;
8
- accountType: AccountTypes;
9
- username: string;
10
- currencyConfig: AccountCurrencyConfig;
11
- contractType: AccountContractTypes;
12
- nextDateMetricRecord: string;
13
- spendedMinutes: number;
14
- unlimitedService: boolean;
15
- hoursAvailable: number;
16
- contractStatus: AccountContractStatusTypes;
17
- createdAt: Date;
18
- installationDateApp: string;
19
- cxAccount: string;
20
- freeService: boolean;
21
- subscriptionType: AccountSubscriptionTypes;
22
- minutesAvailable: number;
23
- globalPage: AccountGlobalPage;
24
- stripe: AccountStripe;
25
- descriptionPlan: AccountPlanDescriptionTypes;
26
- planType: string;
27
- selectFreeTrial: boolean;
28
- exceededFeatures?: ExceededFeatures;
29
- host: string | null;
30
- variationThumbnailName?: string;
31
- variationsConfig?: VariationsConfig;
32
- constructor(props: AccountProps);
33
- static toDomain(raw: RawAccount): NizzaAccount;
34
- toPrimitives(): Omit<this, "createdAt" | "root" | "toPrimitives"> & {
35
- created: string;
36
- };
37
- }
38
- //# sourceMappingURL=Account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/domain/Account.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAEf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B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ountRepository {
3
- get(name: string): Promise<NizzaAccount | null>;
4
- }
5
- //# sourceMappingURL=AccountRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccountRepository.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/domain/AccountRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CACjD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/domain/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,YAAY,EACZ,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,YAAY,CAAC;IAC1B,cAAc,EAAE,qBAAqB,CAAC;IACtC,YAAY,EAAE,oBAAoB,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,0BAA0B,CAAC;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAClD,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,eAAe,EAAE,2BAA2B,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC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BAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -1,5 +0,0 @@
1
- import { AccountRepository, NizzaAccount } from '../domain';
2
- export declare class AccountRestRepository implements AccountRepository {
3
- get(name: string): Promise<NizzaAccount | null>;
4
- }
5
- //# sourceMappingURL=EventRestRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventRestRepository.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/infrastructure/EventRestRepository.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAc,MAAM,WAAW,CAAC;AAIxE,qBAAa,qBAAsB,YAAW,iBAAiB;IACvD,GAAG,CAAC,IAAI,EAAE,MAAM;CASvB"}
@@ -1,7 +0,0 @@
1
- import { AccountRepository } from '../domain';
2
- export declare class AccountService {
3
- private accountRepository;
4
- constructor(accountRepository: AccountRepository);
5
- get(name: string): Promise<import('../domain').NizzaAccount>;
6
- }
7
- //# sourceMappingURL=AccountService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../../../../src/lib/accounts/core/services/AccountService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,qBAAa,cAAc;IACb,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAElD,GAAG,CAAC,IAAI,EAAE,MAAM;CAavB"}
@@ -1,2 +0,0 @@
1
- export * from './globalAtomStore';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/jotai/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/meta-data/core/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta-data-client.entity.d.ts","sourceRoot":"","sources":["../../../../../src/lib/meta-data/core/domain/meta-data-client.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG;IAC3B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,iBAAiB,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;CAC1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"real-time-stream-info.entity.d.ts","sourceRoot":"","sources":["../../../../../src/lib/meta-data/core/domain/real-time-stream-info.entity.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/meta-data/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/meta-data/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-meta-data-client.hook.d.ts","sourceRoot":"","sources":["../../../../src/lib/meta-data/hooks/use-meta-data-client.hook.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,SAAS,CAAC;AAS7D,eAAO,MAAM,iBAAiB,QAAO,cAgDpC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/meta-data/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -1,18 +0,0 @@
1
- import { NizzaStore } from './NizzaStore';
2
- /**
3
- * Returns the NizzaStore using memoization.
4
- *
5
- * @return {NizzaStore} The NizzaStore object
6
- */
7
- export declare function useNZ(): NizzaStore;
8
- /**
9
- * Custom hook for selecting and observing specific properties from NizzaStore.
10
- *
11
- * @param selector - A function that receives the NizzaStore instance and returns the selected part.
12
- * @returns The selected store part, being observed for changes.
13
- *
14
- * @example
15
- * const accountName = useNizza(store => store.accountName);
16
- */
17
- export declare function useNizza<T>(selector: (store: NizzaStore) => T): T;
18
- //# sourceMappingURL=react-hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/nizza-store/react-hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,UAAU,EAAE,MAAM,cAAc,CAAC;AAGpD;;;;GAIG;AACH,wBAAgB,KAAK,IAAI,UAAU,CAElC;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC,CAKjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-client-socket.entity.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/entities/chat-client-socket.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IAC9B,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACjD,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC;IACpE,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;CAC1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-chat-room.entity.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/entities/event-chat-room.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEjE,qBAAa,aAAc,YAAW,cAAc,EAAE,kBAAkB;IACtE,QAAQ,CAAC,IAAI,4FAAgE;IAE7E,KAAK,EAAG,MAAM,CAAC;IAEf,OAAO;IAIP,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa;IAQrD,YAAY;CAOb"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/socket/core/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-chat-room.repository.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/repositories/event-chat-room.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/repositories/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/shared/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1,5 +0,0 @@
1
- import { DomainError } from '../../../../errors';
2
- export declare class EventChatRoomTokenError extends DomainError {
3
- constructor();
4
- }
5
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/socket/core/domain/shared/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,uBAAwB,SAAQ,WAAW;;CAOvD"}