@developer_tribe/react-native-comnyx 0.6.2 → 0.7.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 (474) hide show
  1. package/Comnyx.podspec +1 -1
  2. package/README.md +192 -16
  3. package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.h +25 -0
  4. package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.mm +55 -0
  5. package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.h +18 -0
  6. package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.mm +33 -0
  7. package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.h +16 -0
  8. package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.mm +23 -0
  9. package/android/app/build/generated/source/codegen/ReactAppDependencyProvider.podspec +34 -0
  10. package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAsyncStorageModuleSpec.java +59 -0
  11. package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +36 -0
  12. package/android/app/build/generated/source/codegen/jni/RNComnyxSpec-generated.cpp +22 -0
  13. package/android/app/build/generated/source/codegen/jni/RNComnyxSpec.h +24 -0
  14. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +17 -0
  15. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +19 -0
  16. package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI-generated.cpp +72 -0
  17. package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI.h +116 -0
  18. package/android/app/build/generated/source/codegen/jni/rnasyncstorage-generated.cpp +62 -0
  19. package/android/app/build/generated/source/codegen/jni/rnasyncstorage.h +31 -0
  20. package/android/build.gradle +13 -1
  21. package/android/generated/RCTAppDependencyProvider.h +25 -0
  22. package/android/generated/RCTAppDependencyProvider.mm +55 -0
  23. package/android/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  24. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  25. package/android/generated/RCTThirdPartyComponentsProvider.h +16 -0
  26. package/android/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  27. package/android/generated/ReactAppDependencyProvider.podspec +34 -0
  28. package/android/generated/jni/RNComnyxSpec-generated.cpp +1 -11
  29. package/android/generated/jni/RNComnyxSpec.h +0 -7
  30. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +0 -11
  31. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +0 -52
  32. package/android/src/main/AndroidManifestNew.xml +10 -0
  33. package/android/src/main/java/com/comnyx/ComnyxModule.kt +213 -5
  34. package/android/src/main/java/com/comnyx/ComnyxPackage.kt +10 -6
  35. package/android/src/main/java/com/comnyx/src/messaging/ComnyxMessaging.kt +25 -0
  36. package/android/src/main/java/com/comnyx/src/messaging/firebase/FCM.kt +38 -0
  37. package/android/src/main/java/com/comnyx/src/messaging/firebase/FirebaseMessagingService.kt +45 -0
  38. package/android/src/main/java/com/comnyx/src/messaging/notifications/NotificationsService.kt +99 -0
  39. package/ios/APNService.swift +74 -0
  40. package/ios/Comnyx-Bridging-Header.h +17 -0
  41. package/ios/Comnyx.m +18 -0
  42. package/ios/Comnyx.swift +117 -0
  43. package/ios/ComnyxMessaging.swift +84 -0
  44. package/ios/PushService.swift +7 -0
  45. package/lib/commonjs/NativeComnyx.js +15 -0
  46. package/lib/commonjs/NativeComnyx.js.map +1 -0
  47. package/lib/commonjs/api/api.js +14 -4
  48. package/lib/commonjs/api/api.js.map +1 -1
  49. package/lib/commonjs/api/customers.js +3 -8
  50. package/lib/commonjs/api/customers.js.map +1 -1
  51. package/lib/commonjs/api/index.js +1 -1
  52. package/lib/commonjs/components/AppText.js +1 -1
  53. package/lib/commonjs/components/AppText.js.map +1 -1
  54. package/lib/commonjs/components/ChatList.js +6 -2
  55. package/lib/commonjs/components/ChatList.js.map +1 -1
  56. package/lib/commonjs/components/CustomerForm.js +2 -16
  57. package/lib/commonjs/components/CustomerForm.js.map +1 -1
  58. package/lib/commonjs/components/EmptyList.js +1 -1
  59. package/lib/commonjs/components/EmptyList.js.map +1 -1
  60. package/lib/commonjs/components/MessageInput.js +1 -1
  61. package/lib/commonjs/components/MessageInput.js.map +1 -1
  62. package/lib/commonjs/constants/viewabilityConfig.js.map +1 -0
  63. package/lib/commonjs/hooks/isRtl.js +1 -1
  64. package/lib/commonjs/hooks/useLocalize.js +1 -1
  65. package/lib/commonjs/hooks/useLocalize.js.map +1 -1
  66. package/lib/commonjs/hooks/usePolling.js +1 -1
  67. package/lib/commonjs/hooks/usePolling.js.map +1 -1
  68. package/lib/commonjs/hooks/useTheme.js +1 -1
  69. package/lib/commonjs/hooks/useTheme.js.map +1 -1
  70. package/lib/commonjs/index.js +12 -12
  71. package/lib/commonjs/index.js.map +1 -1
  72. package/lib/commonjs/notifications/index.js +22 -0
  73. package/lib/commonjs/notifications/index.js.map +1 -0
  74. package/lib/commonjs/{Accumulator.js → register/Accumulator.js} +13 -1
  75. package/lib/commonjs/register/Accumulator.js.map +1 -0
  76. package/lib/commonjs/{collectData.js → register/collectData.js} +2 -0
  77. package/lib/commonjs/register/collectData.js.map +1 -0
  78. package/lib/commonjs/register/index.js +17 -0
  79. package/lib/commonjs/register/index.js.map +1 -0
  80. package/lib/commonjs/register/init.js +14 -0
  81. package/lib/commonjs/register/init.js.map +1 -0
  82. package/lib/commonjs/register/login.js +25 -0
  83. package/lib/commonjs/register/login.js.map +1 -0
  84. package/lib/commonjs/register/logout.js +19 -0
  85. package/lib/commonjs/register/logout.js.map +1 -0
  86. package/lib/commonjs/{store.js → store/store.js} +3 -2
  87. package/lib/commonjs/store/store.js.map +1 -0
  88. package/lib/commonjs/support/ComnyxSupport.js +118 -0
  89. package/lib/commonjs/support/ComnyxSupport.js.map +1 -0
  90. package/lib/commonjs/support/index.js +13 -0
  91. package/lib/commonjs/support/index.js.map +1 -0
  92. package/lib/commonjs/utils/scalingUtils.js +1 -1
  93. package/lib/module/NativeComnyx.js +11 -0
  94. package/lib/module/NativeComnyx.js.map +1 -0
  95. package/lib/module/api/api.js +11 -4
  96. package/lib/module/api/api.js.map +1 -1
  97. package/lib/module/api/customers.js +3 -7
  98. package/lib/module/api/customers.js.map +1 -1
  99. package/lib/module/api/index.js +1 -1
  100. package/lib/module/api/index.js.map +1 -1
  101. package/lib/module/components/AppText.js +1 -1
  102. package/lib/module/components/AppText.js.map +1 -1
  103. package/lib/module/components/ChatList.js +6 -2
  104. package/lib/module/components/ChatList.js.map +1 -1
  105. package/lib/module/components/CustomerForm.js +3 -17
  106. package/lib/module/components/CustomerForm.js.map +1 -1
  107. package/lib/module/components/EmptyList.js +1 -1
  108. package/lib/module/components/EmptyList.js.map +1 -1
  109. package/lib/module/components/MessageInput.js +1 -1
  110. package/lib/module/components/MessageInput.js.map +1 -1
  111. package/lib/module/constants/viewabilityConfig.js.map +1 -0
  112. package/lib/module/hooks/isRtl.js +1 -1
  113. package/lib/module/hooks/isRtl.js.map +1 -1
  114. package/lib/module/hooks/useLocalize.js +1 -1
  115. package/lib/module/hooks/useLocalize.js.map +1 -1
  116. package/lib/module/hooks/usePolling.js +1 -1
  117. package/lib/module/hooks/usePolling.js.map +1 -1
  118. package/lib/module/hooks/useTheme.js +1 -1
  119. package/lib/module/hooks/useTheme.js.map +1 -1
  120. package/lib/module/index.js +9 -5
  121. package/lib/module/index.js.map +1 -1
  122. package/lib/module/notifications/index.js +20 -0
  123. package/lib/module/notifications/index.js.map +1 -0
  124. package/lib/module/{Accumulator.js → register/Accumulator.js} +12 -1
  125. package/lib/module/register/Accumulator.js.map +1 -0
  126. package/lib/module/{collectData.js → register/collectData.js} +2 -0
  127. package/lib/module/register/collectData.js.map +1 -0
  128. package/lib/module/register/index.js +13 -0
  129. package/lib/module/register/index.js.map +1 -0
  130. package/lib/module/register/init.js +10 -0
  131. package/lib/module/register/init.js.map +1 -0
  132. package/lib/module/register/login.js +21 -0
  133. package/lib/module/register/login.js.map +1 -0
  134. package/lib/module/register/logout.js +15 -0
  135. package/lib/module/register/logout.js.map +1 -0
  136. package/lib/module/{store.js → store/store.js} +2 -2
  137. package/lib/module/store/store.js.map +1 -0
  138. package/lib/module/support/ComnyxSupport.js +114 -0
  139. package/lib/module/support/ComnyxSupport.js.map +1 -0
  140. package/lib/module/support/index.js +4 -0
  141. package/lib/module/support/index.js.map +1 -0
  142. package/lib/module/utils/scalingUtils.js +1 -1
  143. package/lib/module/utils/scalingUtils.js.map +1 -1
  144. package/lib/typescript/jest.config.d.ts +4 -0
  145. package/lib/typescript/jest.config.d.ts.map +1 -0
  146. package/lib/typescript/setup-jest.d.ts +1 -0
  147. package/lib/typescript/setup-jest.d.ts.map +1 -0
  148. package/lib/typescript/src/NativeComnyx.d.ts +13 -0
  149. package/lib/typescript/src/NativeComnyx.d.ts.map +1 -0
  150. package/lib/typescript/src/api/api.d.ts +7 -0
  151. package/lib/typescript/src/api/api.d.ts.map +1 -0
  152. package/lib/typescript/src/api/conversations.d.ts.map +1 -0
  153. package/lib/typescript/src/api/customers.d.ts +5 -0
  154. package/lib/typescript/src/api/customers.d.ts.map +1 -0
  155. package/lib/typescript/{commonjs/src → src}/api/index.d.ts +1 -1
  156. package/lib/typescript/src/api/index.d.ts.map +1 -0
  157. package/lib/typescript/src/api/messages.d.ts.map +1 -0
  158. package/lib/typescript/src/components/AppText.d.ts.map +1 -0
  159. package/lib/typescript/src/components/ChatList.d.ts +5 -0
  160. package/lib/typescript/src/components/ChatList.d.ts.map +1 -0
  161. package/lib/typescript/src/components/CustomAlert.d.ts.map +1 -0
  162. package/lib/typescript/src/components/CustomerForm.d.ts +5 -0
  163. package/lib/typescript/src/components/CustomerForm.d.ts.map +1 -0
  164. package/lib/typescript/src/components/EmptyList.d.ts.map +1 -0
  165. package/lib/typescript/src/components/InitFailed.d.ts.map +1 -0
  166. package/lib/typescript/src/components/MessageInput.d.ts.map +1 -0
  167. package/lib/typescript/src/components/MessageItem.d.ts.map +1 -0
  168. package/lib/typescript/src/components/ScaledSheet.d.ts.map +1 -0
  169. package/lib/typescript/src/constants/activeOpacity.d.ts.map +1 -0
  170. package/lib/typescript/src/constants/countries.d.ts.map +1 -0
  171. package/lib/typescript/src/constants/rtl.d.ts.map +1 -0
  172. package/lib/typescript/src/constants/translations.d.ts.map +1 -0
  173. package/lib/typescript/src/constants/viewabilityConfig.d.ts.map +1 -0
  174. package/lib/typescript/src/data/fake/conversations.d.ts.map +1 -0
  175. package/lib/typescript/src/data/fake/customers.d.ts.map +1 -0
  176. package/lib/typescript/src/data/fake/messages.d.ts.map +1 -0
  177. package/lib/typescript/src/hooks/isRtl.d.ts.map +1 -0
  178. package/lib/typescript/src/hooks/useLocalize.d.ts.map +1 -0
  179. package/lib/typescript/src/hooks/usePolling.d.ts.map +1 -0
  180. package/lib/typescript/src/hooks/useTheme.d.ts.map +1 -0
  181. package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
  182. package/lib/typescript/src/index.d.ts +6 -0
  183. package/lib/typescript/src/index.d.ts.map +1 -0
  184. package/lib/typescript/src/notifications/index.d.ts +21 -0
  185. package/lib/typescript/src/notifications/index.d.ts.map +1 -0
  186. package/lib/typescript/{commonjs/src → src/register}/Accumulator.d.ts +4 -3
  187. package/lib/typescript/src/register/Accumulator.d.ts.map +1 -0
  188. package/lib/typescript/src/register/collectData.d.ts.map +1 -0
  189. package/lib/typescript/src/register/index.d.ts +11 -0
  190. package/lib/typescript/src/register/index.d.ts.map +1 -0
  191. package/lib/typescript/src/register/init.d.ts +6 -0
  192. package/lib/typescript/src/register/init.d.ts.map +1 -0
  193. package/lib/typescript/src/register/login.d.ts +6 -0
  194. package/lib/typescript/src/register/login.d.ts.map +1 -0
  195. package/lib/typescript/src/register/logout.d.ts +2 -0
  196. package/lib/typescript/src/register/logout.d.ts.map +1 -0
  197. package/lib/typescript/{module/src → src/store}/store.d.ts +6 -4
  198. package/lib/typescript/src/store/store.d.ts.map +1 -0
  199. package/lib/typescript/src/support/ComnyxSupport.d.ts +12 -0
  200. package/lib/typescript/src/support/ComnyxSupport.d.ts.map +1 -0
  201. package/lib/typescript/src/support/index.d.ts +2 -0
  202. package/lib/typescript/src/support/index.d.ts.map +1 -0
  203. package/lib/typescript/src/types/ApiOptions.d.ts.map +1 -0
  204. package/lib/typescript/src/types/Conversation.d.ts.map +1 -0
  205. package/lib/typescript/src/types/Customer.d.ts.map +1 -0
  206. package/lib/typescript/src/types/GlobalTheme.d.ts.map +1 -0
  207. package/lib/typescript/src/types/Language.d.ts.map +1 -0
  208. package/lib/typescript/src/types/LocalizationKeys.d.ts.map +1 -0
  209. package/lib/typescript/src/types/MessageResponse.d.ts.map +1 -0
  210. package/lib/typescript/src/types/Theme.d.ts.map +1 -0
  211. package/lib/typescript/src/utils/date.d.ts.map +1 -0
  212. package/lib/typescript/src/utils/deepMap.d.ts.map +1 -0
  213. package/lib/typescript/src/utils/formatDate.d.ts.map +1 -0
  214. package/lib/typescript/src/utils/scalingUtils.d.ts.map +1 -0
  215. package/package.json +26 -27
  216. package/src/NativeComnyx.ts +13 -5
  217. package/src/api/api.ts +14 -4
  218. package/src/api/customers.ts +3 -8
  219. package/src/api/index.ts +1 -1
  220. package/src/components/AppText.tsx +1 -1
  221. package/src/components/ChatList.tsx +13 -3
  222. package/src/components/CustomerForm.tsx +10 -18
  223. package/src/components/EmptyList.tsx +1 -1
  224. package/src/components/MessageInput.tsx +1 -1
  225. package/src/hooks/isRtl.ts +1 -1
  226. package/src/hooks/useLocalize.ts +1 -1
  227. package/src/hooks/usePolling.ts +1 -1
  228. package/src/hooks/useTheme.ts +1 -1
  229. package/src/index.ts +9 -0
  230. package/src/notifications/index.ts +50 -0
  231. package/src/{Accumulator.ts → register/Accumulator.ts} +14 -2
  232. package/src/{collectData.ts → register/collectData.ts} +1 -0
  233. package/src/register/index.ts +11 -0
  234. package/src/register/init.ts +16 -0
  235. package/src/register/login.ts +24 -0
  236. package/src/register/logout.ts +13 -0
  237. package/src/{store.ts → store/store.ts} +7 -7
  238. package/src/support/ComnyxSupport.tsx +116 -0
  239. package/src/support/index.ts +1 -0
  240. package/src/utils/scalingUtils.ts +1 -1
  241. package/android/generated/java/com/comnyx/NativeComnyxSpec.java +0 -37
  242. package/ios/Comnyx.h +0 -6
  243. package/ios/Comnyx.mm +0 -18
  244. package/ios/generated/RNComnyxSpec/RNComnyxSpec-generated.mm +0 -39
  245. package/ios/generated/RNComnyxSpec/RNComnyxSpec.h +0 -63
  246. package/ios/generated/RNComnyxSpecJSI-generated.cpp +0 -28
  247. package/ios/generated/RNComnyxSpecJSI.h +0 -71
  248. package/lib/commonjs/Accumulator.js.map +0 -1
  249. package/lib/commonjs/App.js +0 -78
  250. package/lib/commonjs/App.js.map +0 -1
  251. package/lib/commonjs/NativeComnyx.ts +0 -8
  252. package/lib/commonjs/__dev__.js +0 -29
  253. package/lib/commonjs/__dev__.js.map +0 -1
  254. package/lib/commonjs/collectData.js.map +0 -1
  255. package/lib/commonjs/components/SizeMatter.js +0 -27
  256. package/lib/commonjs/components/SizeMatter.js.map +0 -1
  257. package/lib/commonjs/package.json +0 -1
  258. package/lib/commonjs/register.js +0 -26
  259. package/lib/commonjs/register.js.map +0 -1
  260. package/lib/commonjs/store.js.map +0 -1
  261. package/lib/commonjs/viewabilityConfig.js.map +0 -1
  262. package/lib/module/Accumulator.js.map +0 -1
  263. package/lib/module/App.js +0 -74
  264. package/lib/module/App.js.map +0 -1
  265. package/lib/module/NativeComnyx.ts +0 -8
  266. package/lib/module/__dev__.js +0 -29
  267. package/lib/module/__dev__.js.map +0 -1
  268. package/lib/module/collectData.js.map +0 -1
  269. package/lib/module/components/SizeMatter.js +0 -23
  270. package/lib/module/components/SizeMatter.js.map +0 -1
  271. package/lib/module/package.json +0 -1
  272. package/lib/module/register.js +0 -22
  273. package/lib/module/register.js.map +0 -1
  274. package/lib/module/store.js.map +0 -1
  275. package/lib/module/viewabilityConfig.js.map +0 -1
  276. package/lib/typescript/commonjs/package.json +0 -1
  277. package/lib/typescript/commonjs/src/Accumulator.d.ts.map +0 -1
  278. package/lib/typescript/commonjs/src/App.d.ts +0 -12
  279. package/lib/typescript/commonjs/src/App.d.ts.map +0 -1
  280. package/lib/typescript/commonjs/src/NativeComnyx.d.ts +0 -7
  281. package/lib/typescript/commonjs/src/NativeComnyx.d.ts.map +0 -1
  282. package/lib/typescript/commonjs/src/__dev__.d.ts +0 -2
  283. package/lib/typescript/commonjs/src/__dev__.d.ts.map +0 -1
  284. package/lib/typescript/commonjs/src/api/api.d.ts +0 -4
  285. package/lib/typescript/commonjs/src/api/api.d.ts.map +0 -1
  286. package/lib/typescript/commonjs/src/api/conversations.d.ts.map +0 -1
  287. package/lib/typescript/commonjs/src/api/customers.d.ts +0 -6
  288. package/lib/typescript/commonjs/src/api/customers.d.ts.map +0 -1
  289. package/lib/typescript/commonjs/src/api/index.d.ts.map +0 -1
  290. package/lib/typescript/commonjs/src/api/messages.d.ts.map +0 -1
  291. package/lib/typescript/commonjs/src/collectData.d.ts.map +0 -1
  292. package/lib/typescript/commonjs/src/components/AppText.d.ts.map +0 -1
  293. package/lib/typescript/commonjs/src/components/ChatList.d.ts +0 -4
  294. package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +0 -1
  295. package/lib/typescript/commonjs/src/components/CustomAlert.d.ts.map +0 -1
  296. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts +0 -4
  297. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +0 -1
  298. package/lib/typescript/commonjs/src/components/EmptyList.d.ts.map +0 -1
  299. package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +0 -1
  300. package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +0 -1
  301. package/lib/typescript/commonjs/src/components/MessageItem.d.ts.map +0 -1
  302. package/lib/typescript/commonjs/src/components/ScaledSheet.d.ts.map +0 -1
  303. package/lib/typescript/commonjs/src/components/SizeMatter.d.ts +0 -7
  304. package/lib/typescript/commonjs/src/components/SizeMatter.d.ts.map +0 -1
  305. package/lib/typescript/commonjs/src/constants/activeOpacity.d.ts.map +0 -1
  306. package/lib/typescript/commonjs/src/constants/countries.d.ts.map +0 -1
  307. package/lib/typescript/commonjs/src/constants/rtl.d.ts.map +0 -1
  308. package/lib/typescript/commonjs/src/constants/translations.d.ts.map +0 -1
  309. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts.map +0 -1
  310. package/lib/typescript/commonjs/src/data/fake/customers.d.ts.map +0 -1
  311. package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +0 -1
  312. package/lib/typescript/commonjs/src/hooks/isRtl.d.ts.map +0 -1
  313. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts.map +0 -1
  314. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts.map +0 -1
  315. package/lib/typescript/commonjs/src/hooks/useTheme.d.ts.map +0 -1
  316. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +0 -1
  317. package/lib/typescript/commonjs/src/index.d.ts +0 -7
  318. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  319. package/lib/typescript/commonjs/src/register.d.ts +0 -6
  320. package/lib/typescript/commonjs/src/register.d.ts.map +0 -1
  321. package/lib/typescript/commonjs/src/store.d.ts +0 -40
  322. package/lib/typescript/commonjs/src/store.d.ts.map +0 -1
  323. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts.map +0 -1
  324. package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +0 -1
  325. package/lib/typescript/commonjs/src/types/Customer.d.ts.map +0 -1
  326. package/lib/typescript/commonjs/src/types/GlobalTheme.d.ts.map +0 -1
  327. package/lib/typescript/commonjs/src/types/Language.d.ts.map +0 -1
  328. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +0 -1
  329. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +0 -1
  330. package/lib/typescript/commonjs/src/types/Theme.d.ts.map +0 -1
  331. package/lib/typescript/commonjs/src/utils/date.d.ts.map +0 -1
  332. package/lib/typescript/commonjs/src/utils/deepMap.d.ts.map +0 -1
  333. package/lib/typescript/commonjs/src/utils/formatDate.d.ts.map +0 -1
  334. package/lib/typescript/commonjs/src/utils/scalingUtils.d.ts.map +0 -1
  335. package/lib/typescript/commonjs/src/viewabilityConfig.d.ts.map +0 -1
  336. package/lib/typescript/module/package.json +0 -1
  337. package/lib/typescript/module/src/Accumulator.d.ts +0 -18
  338. package/lib/typescript/module/src/Accumulator.d.ts.map +0 -1
  339. package/lib/typescript/module/src/App.d.ts +0 -12
  340. package/lib/typescript/module/src/App.d.ts.map +0 -1
  341. package/lib/typescript/module/src/NativeComnyx.d.ts +0 -7
  342. package/lib/typescript/module/src/NativeComnyx.d.ts.map +0 -1
  343. package/lib/typescript/module/src/__dev__.d.ts +0 -2
  344. package/lib/typescript/module/src/__dev__.d.ts.map +0 -1
  345. package/lib/typescript/module/src/api/api.d.ts +0 -4
  346. package/lib/typescript/module/src/api/api.d.ts.map +0 -1
  347. package/lib/typescript/module/src/api/conversations.d.ts +0 -7
  348. package/lib/typescript/module/src/api/conversations.d.ts.map +0 -1
  349. package/lib/typescript/module/src/api/customers.d.ts +0 -6
  350. package/lib/typescript/module/src/api/customers.d.ts.map +0 -1
  351. package/lib/typescript/module/src/api/index.d.ts +0 -4
  352. package/lib/typescript/module/src/api/index.d.ts.map +0 -1
  353. package/lib/typescript/module/src/api/messages.d.ts +0 -4
  354. package/lib/typescript/module/src/api/messages.d.ts.map +0 -1
  355. package/lib/typescript/module/src/collectData.d.ts +0 -3
  356. package/lib/typescript/module/src/collectData.d.ts.map +0 -1
  357. package/lib/typescript/module/src/components/AppText.d.ts +0 -14
  358. package/lib/typescript/module/src/components/AppText.d.ts.map +0 -1
  359. package/lib/typescript/module/src/components/ChatList.d.ts +0 -4
  360. package/lib/typescript/module/src/components/ChatList.d.ts.map +0 -1
  361. package/lib/typescript/module/src/components/CustomAlert.d.ts +0 -15
  362. package/lib/typescript/module/src/components/CustomAlert.d.ts.map +0 -1
  363. package/lib/typescript/module/src/components/CustomerForm.d.ts +0 -4
  364. package/lib/typescript/module/src/components/CustomerForm.d.ts.map +0 -1
  365. package/lib/typescript/module/src/components/EmptyList.d.ts +0 -2
  366. package/lib/typescript/module/src/components/EmptyList.d.ts.map +0 -1
  367. package/lib/typescript/module/src/components/InitFailed.d.ts +0 -6
  368. package/lib/typescript/module/src/components/InitFailed.d.ts.map +0 -1
  369. package/lib/typescript/module/src/components/MessageInput.d.ts +0 -5
  370. package/lib/typescript/module/src/components/MessageInput.d.ts.map +0 -1
  371. package/lib/typescript/module/src/components/MessageItem.d.ts +0 -6
  372. package/lib/typescript/module/src/components/MessageItem.d.ts.map +0 -1
  373. package/lib/typescript/module/src/components/ScaledSheet.d.ts +0 -2
  374. package/lib/typescript/module/src/components/ScaledSheet.d.ts.map +0 -1
  375. package/lib/typescript/module/src/components/SizeMatter.d.ts +0 -7
  376. package/lib/typescript/module/src/components/SizeMatter.d.ts.map +0 -1
  377. package/lib/typescript/module/src/constants/activeOpacity.d.ts +0 -2
  378. package/lib/typescript/module/src/constants/activeOpacity.d.ts.map +0 -1
  379. package/lib/typescript/module/src/constants/countries.d.ts +0 -7
  380. package/lib/typescript/module/src/constants/countries.d.ts.map +0 -1
  381. package/lib/typescript/module/src/constants/rtl.d.ts +0 -2
  382. package/lib/typescript/module/src/constants/rtl.d.ts.map +0 -1
  383. package/lib/typescript/module/src/constants/translations.d.ts +0 -4
  384. package/lib/typescript/module/src/constants/translations.d.ts.map +0 -1
  385. package/lib/typescript/module/src/data/fake/conversations.d.ts +0 -5
  386. package/lib/typescript/module/src/data/fake/conversations.d.ts.map +0 -1
  387. package/lib/typescript/module/src/data/fake/customers.d.ts +0 -3
  388. package/lib/typescript/module/src/data/fake/customers.d.ts.map +0 -1
  389. package/lib/typescript/module/src/data/fake/messages.d.ts +0 -3
  390. package/lib/typescript/module/src/data/fake/messages.d.ts.map +0 -1
  391. package/lib/typescript/module/src/hooks/isRtl.d.ts +0 -2
  392. package/lib/typescript/module/src/hooks/isRtl.d.ts.map +0 -1
  393. package/lib/typescript/module/src/hooks/useLocalize.d.ts +0 -3
  394. package/lib/typescript/module/src/hooks/useLocalize.d.ts.map +0 -1
  395. package/lib/typescript/module/src/hooks/usePolling.d.ts +0 -2
  396. package/lib/typescript/module/src/hooks/usePolling.d.ts.map +0 -1
  397. package/lib/typescript/module/src/hooks/useTheme.d.ts +0 -3
  398. package/lib/typescript/module/src/hooks/useTheme.d.ts.map +0 -1
  399. package/lib/typescript/module/src/hooks/useThemeColors.d.ts +0 -3
  400. package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +0 -1
  401. package/lib/typescript/module/src/index.d.ts +0 -7
  402. package/lib/typescript/module/src/index.d.ts.map +0 -1
  403. package/lib/typescript/module/src/register.d.ts +0 -6
  404. package/lib/typescript/module/src/register.d.ts.map +0 -1
  405. package/lib/typescript/module/src/store.d.ts.map +0 -1
  406. package/lib/typescript/module/src/types/ApiOptions.d.ts +0 -4
  407. package/lib/typescript/module/src/types/ApiOptions.d.ts.map +0 -1
  408. package/lib/typescript/module/src/types/Conversation.d.ts +0 -33
  409. package/lib/typescript/module/src/types/Conversation.d.ts.map +0 -1
  410. package/lib/typescript/module/src/types/Customer.d.ts +0 -39
  411. package/lib/typescript/module/src/types/Customer.d.ts.map +0 -1
  412. package/lib/typescript/module/src/types/GlobalTheme.d.ts +0 -6
  413. package/lib/typescript/module/src/types/GlobalTheme.d.ts.map +0 -1
  414. package/lib/typescript/module/src/types/Language.d.ts +0 -2
  415. package/lib/typescript/module/src/types/Language.d.ts.map +0 -1
  416. package/lib/typescript/module/src/types/LocalizationKeys.d.ts +0 -43
  417. package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +0 -1
  418. package/lib/typescript/module/src/types/MessageResponse.d.ts +0 -61
  419. package/lib/typescript/module/src/types/MessageResponse.d.ts.map +0 -1
  420. package/lib/typescript/module/src/types/Theme.d.ts +0 -28
  421. package/lib/typescript/module/src/types/Theme.d.ts.map +0 -1
  422. package/lib/typescript/module/src/utils/date.d.ts +0 -7
  423. package/lib/typescript/module/src/utils/date.d.ts.map +0 -1
  424. package/lib/typescript/module/src/utils/deepMap.d.ts +0 -7
  425. package/lib/typescript/module/src/utils/deepMap.d.ts.map +0 -1
  426. package/lib/typescript/module/src/utils/formatDate.d.ts +0 -2
  427. package/lib/typescript/module/src/utils/formatDate.d.ts.map +0 -1
  428. package/lib/typescript/module/src/utils/scalingUtils.d.ts +0 -10
  429. package/lib/typescript/module/src/utils/scalingUtils.d.ts.map +0 -1
  430. package/lib/typescript/module/src/viewabilityConfig.d.ts +0 -5
  431. package/lib/typescript/module/src/viewabilityConfig.d.ts.map +0 -1
  432. package/src/App.tsx +0 -77
  433. package/src/__dev__.ts +0 -22
  434. package/src/components/SizeMatter.tsx +0 -22
  435. package/src/index.tsx +0 -9
  436. package/src/register.ts +0 -34
  437. /package/lib/commonjs/{viewabilityConfig.js → constants/viewabilityConfig.js} +0 -0
  438. /package/lib/module/{viewabilityConfig.js → constants/viewabilityConfig.js} +0 -0
  439. /package/lib/typescript/{commonjs/src → src}/api/conversations.d.ts +0 -0
  440. /package/lib/typescript/{commonjs/src → src}/api/messages.d.ts +0 -0
  441. /package/lib/typescript/{commonjs/src → src}/components/AppText.d.ts +0 -0
  442. /package/lib/typescript/{commonjs/src → src}/components/CustomAlert.d.ts +0 -0
  443. /package/lib/typescript/{commonjs/src → src}/components/EmptyList.d.ts +0 -0
  444. /package/lib/typescript/{commonjs/src → src}/components/InitFailed.d.ts +0 -0
  445. /package/lib/typescript/{commonjs/src → src}/components/MessageInput.d.ts +0 -0
  446. /package/lib/typescript/{commonjs/src → src}/components/MessageItem.d.ts +0 -0
  447. /package/lib/typescript/{commonjs/src → src}/components/ScaledSheet.d.ts +0 -0
  448. /package/lib/typescript/{commonjs/src → src}/constants/activeOpacity.d.ts +0 -0
  449. /package/lib/typescript/{commonjs/src → src}/constants/countries.d.ts +0 -0
  450. /package/lib/typescript/{commonjs/src → src}/constants/rtl.d.ts +0 -0
  451. /package/lib/typescript/{commonjs/src → src}/constants/translations.d.ts +0 -0
  452. /package/lib/typescript/{commonjs/src → src/constants}/viewabilityConfig.d.ts +0 -0
  453. /package/lib/typescript/{commonjs/src → src}/data/fake/conversations.d.ts +0 -0
  454. /package/lib/typescript/{commonjs/src → src}/data/fake/customers.d.ts +0 -0
  455. /package/lib/typescript/{commonjs/src → src}/data/fake/messages.d.ts +0 -0
  456. /package/lib/typescript/{commonjs/src → src}/hooks/isRtl.d.ts +0 -0
  457. /package/lib/typescript/{commonjs/src → src}/hooks/useLocalize.d.ts +0 -0
  458. /package/lib/typescript/{commonjs/src → src}/hooks/usePolling.d.ts +0 -0
  459. /package/lib/typescript/{commonjs/src → src}/hooks/useTheme.d.ts +0 -0
  460. /package/lib/typescript/{commonjs/src → src}/hooks/useThemeColors.d.ts +0 -0
  461. /package/lib/typescript/{commonjs/src → src/register}/collectData.d.ts +0 -0
  462. /package/lib/typescript/{commonjs/src → src}/types/ApiOptions.d.ts +0 -0
  463. /package/lib/typescript/{commonjs/src → src}/types/Conversation.d.ts +0 -0
  464. /package/lib/typescript/{commonjs/src → src}/types/Customer.d.ts +0 -0
  465. /package/lib/typescript/{commonjs/src → src}/types/GlobalTheme.d.ts +0 -0
  466. /package/lib/typescript/{commonjs/src → src}/types/Language.d.ts +0 -0
  467. /package/lib/typescript/{commonjs/src → src}/types/LocalizationKeys.d.ts +0 -0
  468. /package/lib/typescript/{commonjs/src → src}/types/MessageResponse.d.ts +0 -0
  469. /package/lib/typescript/{commonjs/src → src}/types/Theme.d.ts +0 -0
  470. /package/lib/typescript/{commonjs/src → src}/utils/date.d.ts +0 -0
  471. /package/lib/typescript/{commonjs/src → src}/utils/deepMap.d.ts +0 -0
  472. /package/lib/typescript/{commonjs/src → src}/utils/formatDate.d.ts +0 -0
  473. /package/lib/typescript/{commonjs/src → src}/utils/scalingUtils.d.ts +0 -0
  474. /package/src/{viewabilityConfig.ts → constants/viewabilityConfig.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const ACCUMULATOR_DEBOUNCE_TIME_IN_MS = 3000;
4
- class Accumulator {
4
+ export class Accumulator {
5
5
  registerData = null;
6
6
  __select_time = undefined;
7
7
  listener = null;
@@ -84,6 +84,17 @@ class Accumulator {
84
84
  clearTimeout(this.__select_time);
85
85
  }
86
86
  }
87
+ clear() {
88
+ this.registerData = null;
89
+ if (this.__select_time) {
90
+ clearTimeout(this.__select_time);
91
+ }
92
+ this._isListenerCalledOnce = false;
93
+ }
94
+ //TODO: fix naming -- for testing
95
+ empty() {
96
+ this.registerData = {};
97
+ }
87
98
  get() {
88
99
  return this.registerData;
89
100
  }
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ACCUMULATOR_DEBOUNCE_TIME_IN_MS","Accumulator","registerData","__select_time","undefined","listener","_isListenerCalledOnce","constructor","register","customParameters","integrationParameters","debounce","add","data","Error","customParamsMap","Map","forEach","param","set","name","value","mergedCustomParameters","Array","from","entries","map","flush","reset","setTimeout","clearTimeout","clear","empty","get","isListenerCalledOnce","accumulator"],"sourceRoot":"../../../src","sources":["register/Accumulator.ts"],"mappings":";;AAEA,MAAMA,+BAA+B,GAAG,IAAI;AAE5C,OAAO,MAAMC,WAAW,CAAC;EACfC,YAAY,GAAiC,IAAI;EACjDC,aAAa,GAA+BC,SAAS;EACrDC,QAAQ,GACd,IAAI;EACEC,qBAAqB,GAAY,KAAK;EAC9CC,WAAWA,CAAA,EAAG,CAAC;EAEfC,QAAQA,CAACH,QAAwD,EAAE;IACjE,IAAI,CAACH,YAAY,GAAG;MAClBO,gBAAgB,EAAE,EAAE;MACpBC,qBAAqB,EAAE,CAAC;IAC1B,CAAC;IACD,IAAI,CAACL,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACM,QAAQ,C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CAAA,EAAG;IACrB,OAAO,IAAI,CAAC5B,qBAAqB;EACnC;AACF;AAEA,OAAO,MAAM6B,WAAW,GAAG,IAAIlC,WAAW,CAAC,CAAC","ignoreList":[]}
@@ -9,6 +9,8 @@ export function collectData(key, value) {
9
9
  }]
10
10
  });
11
11
  }
12
+
13
+ //* @deprecated
12
14
  export function registerOneSignalForComnyx(external_id) {
13
15
  accumulator.add({
14
16
  integrationParameters: {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["accumulator","collectData","key","value","add","customParameters","name","registerOneSignalForComnyx","external_id","integrationParameters","onesignal"],"sourceRoot":"../../../src","sources":["register/collectData.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,kBAAe;AAE3C,OAAO,SAASC,WAAWA,CAACC,GAAW,EAAEC,KAAa,EAAE;EACtDH,WAAW,CAACI,GAAG,CAAC;IACdC,gBAAgB,EAAE,CAChB;MACEC,IAAI,EAAEJ,GAAG;MACTC;IACF,CAAC;EAEL,CAAC,CAAC;AACJ;;AAEA;AACA,OAAO,SAASI,0BAA0BA,CAACC,WAAmB,EAAE;EAC9DR,WAAW,CAACI,GAAG,CAAC;IACdK,qBAAqB,EAAE;MACrBC,SAAS,EAAE;QACTF;MACF;IACF;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ import { login } from "./login.js";
4
+ import { collectData } from "./collectData.js";
5
+ import { logout } from "./logout.js";
6
+ import { init } from "./init.js";
7
+ export const Comnyx = {
8
+ init: init,
9
+ login: login,
10
+ logout: logout,
11
+ collectData: collectData
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["login","collectData","logout","init","Comnyx"],"sourceRoot":"../../../src","sources":["register/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,YAAS;AAC/B,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,IAAI,QAAQ,WAAQ;AAE7B,OAAO,MAAMC,MAAM,GAAG;EACpBD,IAAI,EAAEA,IAAI;EACVH,KAAK,EAAEA,KAAK;EACZE,MAAM,EAAEA,MAAM;EACdD,WAAW,EAAEA;AACf,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import { initApi } from "../api/api.js";
4
+ export function init(initOptions) {
5
+ if (!initOptions.token) {
6
+ throw new Error('App token is required');
7
+ }
8
+ initApi(initOptions.token, initOptions.baseURL);
9
+ }
10
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["initApi","init","initOptions","token","Error","baseURL"],"sourceRoot":"../../../src","sources":["register/init.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,eAAY;AAUpC,OAAO,SAASC,IAAIA,CAACC,WAAwB,EAAE;EAC7C,IAAI,CAACA,WAAW,CAACC,KAAK,EAAE;IACtB,MAAM,IAAIC,KAAK,CAAC,uBAAuB,CAAC;EAC1C;EACAJ,OAAO,CAACE,WAAW,CAACC,KAAK,EAAGD,WAAW,CAAyBG,OAAO,CAAC;AAC1E","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { accumulator } from "./Accumulator.js";
4
+ import { isInitCalled, setLoginForAxios } from "../api/api.js";
5
+ import { useAppStore } from "../store/store.js";
6
+ import { updateCustomer } from "../api/customers.js";
7
+ export function login(loginOptions) {
8
+ if (!isInitCalled()) {
9
+ throw new Error('Please initialize the Comnyx SDK first');
10
+ }
11
+ if (!loginOptions.externalId) {
12
+ throw new Error('External ID is required for initialization');
13
+ }
14
+ accumulator.clear();
15
+ accumulator.register(async accumulatedData => {
16
+ const data = await updateCustomer(accumulatedData, loginOptions.externalId);
17
+ setLoginForAxios(loginOptions.externalId);
18
+ useAppStore.getState().setCustomer(data.customer);
19
+ });
20
+ }
21
+ //# sourceMappingURL=login.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["accumulator","isInitCalled","setLoginForAxios","useAppStore","updateCustomer","login","loginOptions","Error","externalId","clear","register","accumulatedData","data","getState","setCustomer","customer"],"sourceRoot":"../../../src","sources":["register/login.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,kBAAe;AAC3C,SAASC,YAAY,EAAEC,gBAAgB,QAAQ,eAAY;AAE3D,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,SAASC,cAAc,QAAQ,qBAAkB;AAMjD,OAAO,SAASC,KAAKA,CAACC,YAA0B,EAAE;EAChD,IAAI,CAACL,YAAY,CAAC,CAAC,EAAE;IACnB,MAAM,IAAIM,KAAK,CAAC,wCAAwC,CAAC;EAC3D;EACA,IAAI,CAACD,YAAY,CAACE,UAAU,EAAE;IAC5B,MAAM,IAAID,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EACAP,WAAW,CAACS,KAAK,CAAC,CAAC;EACnBT,WAAW,CAACU,QAAQ,CAAC,MAAOC,eAAsC,IAAK;IACrE,MAAMC,IAAI,GAAG,MAAMR,cAAc,CAACO,eAAe,EAAEL,YAAY,CAACE,UAAU,CAAC;IAC3EN,gBAAgB,CAACI,YAAY,CAACE,UAAU,CAAC;IACzCL,WAAW,CAACU,QAAQ,CAAC,CAAC,CAACC,WAAW,CAACF,IAAI,CAACG,QAAQ,CAAC;EACnD,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { setLogoutForAxios } from "../api/api.js";
4
+ import { useAppStore } from "../store/store.js";
5
+ import { accumulator } from "./Accumulator.js";
6
+ export async function logout() {
7
+ accumulator.clear();
8
+ setLogoutForAxios();
9
+ //TODO: state
10
+ useAppStore.setState({
11
+ customer: null,
12
+ formSubmitted: false
13
+ });
14
+ }
15
+ //# sourceMappingURL=logout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["setLogoutForAxios","useAppStore","accumulator","logout","clear","setState","customer","formSubmitted"],"sourceRoot":"../../../src","sources":["register/logout.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,eAAY;AAC9C,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,SAASC,WAAW,QAAQ,kBAAe;AAE3C,OAAO,eAAeC,MAAMA,CAAA,EAAG;EAC7BD,WAAW,CAACE,KAAK,CAAC,CAAC;EACnBJ,iBAAiB,CAAC,CAAC;EACnB;EACAC,WAAW,CAACI,QAAQ,CAAC;IACnBC,QAAQ,EAAE,IAAI;IACdC,aAAa,EAAE;EACjB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -4,7 +4,7 @@ import { createJSONStorage, persist } from 'zustand/middleware';
4
4
  import { shallow } from 'zustand/shallow';
5
5
  import { createWithEqualityFn } from 'zustand/traditional';
6
6
  import AsyncStorage from '@react-native-async-storage/async-storage';
7
- const storeCreator = (set, get) => ({
7
+ export const storeCreator = (set, get) => ({
8
8
  baseWidth: 390,
9
9
  baseHeight: 844,
10
10
  initialized: false,
@@ -30,7 +30,7 @@ const storeCreator = (set, get) => ({
30
30
  setCustomer: createCustomerResponse => {
31
31
  set({
32
32
  customer: createCustomerResponse,
33
- formSubmitted: !!createCustomerResponse.name
33
+ formSubmitted: !!createCustomerResponse?.name
34
34
  });
35
35
  },
36
36
  setLanguage: language => {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createJSONStorage","persist","shallow","createWithEqualityFn","AsyncStorage","storeCreator","set","get","baseWidth","baseHeight","initialized","customer","data","language","theme","fake","themes","firstMessage","formSubmitted","setData","cb","newData","setFirstMessage","message","setCustomer","createCustomerResponse","name","setLanguage","setTheme","setFake","setThemes","updateBaseDimensions","setForm","form","useAppStore","storage","skipHydration","partialize","state"],"sourceRoot":"../../../src","sources":["store/store.ts"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,OAAO,QAAQ,oBAAoB;AAC/D,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,oBAAoB,QAAQ,qBAAqB;AAE1D,OAAOC,YAAY,MAAM,2CAA2C;AAkCpE,OAAO,MAAM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AAW,CAAC,CAAC;EAChC,CAAC;EACDuB,OAAO,EAAGC,IAAc,IAAK;IAC3B3B,GAAG,CAAC;MAAEY,aAAa,EAAE,IAAI;MAAEP,QAAQ,EAAEsB;IAAK,CAAC,CAAC;EAC9C;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,WAAW,GAAG/B,oBAAoB,CAAgB,CAAC,CAC9DF,OAAO,CAACI,YAAY,EAAE;EACpBqB,IAAI,EAAE,sBAAsB;EAC5BS,OAAO,EAAEnC,iBAAiB,CAAC,MAAMI,YAAY,CAAC;EAC9CgC,aAAa,EAAE,KAAK;EACpBC,UAAU,EAAGC,KAAK,KAAM;IACtB3B,QAAQ,EAAE2B,KAAK,CAAC3B,QAAQ;IACxBO,aAAa,EAAEoB,KAAK,CAACpB;EACvB,CAAC;AACH,CAAC,CAAC,EACFhB,OACF,CAAC","ignoreList":[]}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+
3
+ import { View, TouchableOpacity, Image } from 'react-native';
4
+ import { ChatList } from "../components/ChatList.js";
5
+ import { CustomerForm } from "../components/CustomerForm.js";
6
+ import { useEffect, useState } from 'react';
7
+ import { AppText } from "../components/AppText.js";
8
+ import { useThemeColors } from "../hooks/useThemeColors.js";
9
+ import { usePolling } from "../hooks/usePolling.js";
10
+ import { useAppStore } from "../store/store.js";
11
+ import { ScaledSheet } from "../components/ScaledSheet.js";
12
+ import { accumulator } from "../register/Accumulator.js";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const closeIcon = require('../assets/x-close.png');
15
+ export function ComnyxSupport({
16
+ language = 'en',
17
+ theme = 'dark',
18
+ fake = false,
19
+ onBack,
20
+ themes
21
+ }) {
22
+ const {
23
+ customer,
24
+ formSubmitted
25
+ } = useAppStore(s => ({
26
+ customer: s.customer,
27
+ formSubmitted: s.formSubmitted
28
+ }));
29
+ const themeColors = useThemeColors();
30
+ usePolling();
31
+ const [initLoading, setInitLoading] = useState(true);
32
+ useEffect(() => {
33
+ if (!accumulator.isListenerCalledOnce()) {
34
+ accumulator.flush().then(() => {
35
+ setTimeout(() => {
36
+ setInitLoading(false);
37
+ }, 100);
38
+ });
39
+ } else {
40
+ setInitLoading(false);
41
+ }
42
+ }, []);
43
+ useEffect(() => {
44
+ if (customer === null || !customer.external_id) {
45
+ useAppStore.setState({
46
+ data: []
47
+ });
48
+ }
49
+ }, [customer, customer?.external_id]);
50
+ useEffect(() => {
51
+ //TOOD: getState().initApp({language,theme,fake,rtlFix,themes})
52
+ useAppStore.getState().setLanguage(language);
53
+ useAppStore.getState().setTheme(theme);
54
+ useAppStore.getState().setFake(fake);
55
+ if (themes) {
56
+ useAppStore.getState().setThemes(themes);
57
+ }
58
+ }, [language, theme, fake, themes]);
59
+ if (!customer) {
60
+ //NOTE: customer yoksa register hiç çalışmamış
61
+ return /*#__PURE__*/_jsxs(View, {
62
+ style: [styles.container, {
63
+ backgroundColor: themeColors.background,
64
+ justifyContent: 'center'
65
+ }],
66
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
67
+ activeOpacity: 1,
68
+ style: [styles.iconContainer],
69
+ onPress: onBack,
70
+ children: /*#__PURE__*/_jsx(Image, {
71
+ source: closeIcon,
72
+ style: [styles.closeIcon, {
73
+ tintColor: themeColors.text
74
+ }]
75
+ })
76
+ }), /*#__PURE__*/_jsx(AppText, {
77
+ style: {
78
+ textAlign: 'center'
79
+ },
80
+ localization: "app.initialization.required"
81
+ })]
82
+ });
83
+ } else if (!formSubmitted) {
84
+ //NOTE: customer var ama forSubmitted false (name===null)
85
+ return /*#__PURE__*/_jsx(CustomerForm, {
86
+ loading: initLoading,
87
+ onBack: onBack
88
+ });
89
+ }
90
+ return /*#__PURE__*/_jsx(View, {
91
+ style: [styles.container, {
92
+ backgroundColor: themeColors.background
93
+ }],
94
+ children: /*#__PURE__*/_jsx(ChatList, {
95
+ initLoading: initLoading,
96
+ onBack: onBack
97
+ })
98
+ });
99
+ }
100
+ const styles = ScaledSheet.create({
101
+ container: {
102
+ flex: 1
103
+ },
104
+ iconContainer: {
105
+ position: 'absolute',
106
+ top: '60@vs',
107
+ left: '24@s'
108
+ },
109
+ closeIcon: {
110
+ width: '24@vs',
111
+ height: '24@vs'
112
+ }
113
+ });
114
+ //# sourceMappingURL=ComnyxSupport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","TouchableOpacity","Image","ChatList","CustomerForm","useEffect","useState","AppText","useThemeColors","usePolling","useAppStore","ScaledSheet","accumulator","jsx","_jsx","jsxs","_jsxs","closeIcon","require","ComnyxSupport","language","theme","fake","onBack","themes","customer","formSubmitted","s","themeColors","initLoading","setInitLoading","isListenerCalledOnce","flush","then","setTimeout","external_id","setState","data","getState","setLanguage","setTheme","setFake","setThemes","style","styles","container","backgroundColor","background","justifyContent","children","activeOpacity","iconContainer","onPress","source","tintColor","text","textAlign","localization","loading","create","flex","position","top","left","width","height"],"sourceRoot":"../../../src","sources":["support/ComnyxSupport.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,cAAc;AAC5D,SAASC,QAAQ,QAAQ,2BAAwB;AACjD,SAASC,YAAY,QAAQ,+BAA4B;AAEzD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,OAAO,QAAQ,0BAAuB;AAC/C,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,UAAU,QAAQ,wBAAqB;AAChD,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,SAASC,WAAW,QAAQ,8BAA2B;AACvD,SAASC,WAAW,QAAQ,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACtD,MAAMC,SAAS,GAAGC,OAAO,CAAC,uBAAuB,CAAC;AAWlD,OAAO,SAASC,aAAaA,CAAC;EAC5BC,QAAQ,GAAG,IAAI;EACfC,KAAK,GAAG,MAAM;EACdC,IAAI,GAAG,KAAK;EACZC,MAAM;EACNC;AACk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M,GAAGjC,WAAW,CAACgD,MAAM,CAAC;EAChCd,SAAS,EAAE;IACTe,IAAI,EAAE;EACR,CAAC;EACDT,aAAa,EAAE;IACbU,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,OAAO;IACZC,IAAI,EAAE;EACR,CAAC;EACD9C,SAAS,EAAE;IACT+C,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { ComnyxSupport } from "./ComnyxSupport.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ComnyxSupport"],"sourceRoot":"../../../src","sources":["support/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,oBAAiB","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { Dimensions } from 'react-native';
4
- import { useAppStore } from "../store.js";
4
+ import { useAppStore } from "../store/store.js";
5
5
  const {
6
6
  width,
7
7
  height
@@ -1 +1 @@
1
- {"version":3,"names":["Dimensions","useAppStore","width","height","get","shortDimension","longDimension","getBaseWidth","getState","baseWidth","getBaseHeight","baseHeight","s","size","vs","ms","factor","scale","mvs","verticalScale","fs","moderateScale","moderateVerticalScale"],"sourceRoot":"../../../src","sources":["utils/scalingUtils.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,aAAU;AAEtC,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGH,UAAU,CAACI,GAAG,CAAC,QAAQ,CAAC;AAClD,MAAM,CAACC,cAAc,EAAEC,aAAa,CAAC,GACnCJ,KAAK,GAAGC,MAAM,GAAG,CAACD,KAAK,EAAEC,MAAM,CAAC,GAAG,CAACA,MAAM,EAAED,KAAK,CAAC;AAEpD,MAAMK,YAAY,GAAGA,CAAA,KAAM;EACzB,OAAON,WAAW,EAAEO,QAAQ,CAAC,CAAC,EAAEC,SAAS,IAAI,GAAG;AAClD,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAC1B,OAAOT,WAAW,EAAEO,QAAQ,CAAC,CAAC,EAAEG,UAAU,IAAI,GAAG;AACnD,CAAC;AAED,OAAO,MAAMC,CAAC,GAAIC,IAAY,IAAMR,cAAc,GAAGE,YAAY,CAAC,CAAC,GAAIM,IAAI;AAC3E,OAAO,MAAMC,EAAE,GAAID,IAAY,IAAMP,aAAa,GAAGI,aAAa,CAAC,CAAC,GAAIG,IAAI;AAC5E,OAAO,MAAME,EAAE,GAAGA,CAACF,IAAY,EAAEG,MAAM,GAAG,GAAG,KAC3CH,IAAI,GAAG,CAACI,KAAK,CAACJ,IAAI,CAAC,GAAGA,IAAI,IAAIG,MAAM;AACtC,OAAO,MAAME,GAAG,GAAGA,CAACL,IAAY,EAAEG,MAAM,GAAG,GAAG,KAC5CH,IAAI,GAAG,CAACM,aAAa,CAACN,IAAI,CAAC,GAAGA,IAAI,IAAIG,MAAM;AAE9C,OAAO,MAAMC,KAAK,GAAGL,CAAC;AACtB,OAAO,MAAMO,aAAa,GAAGL,EAAE;AAC/B,OAAO,MAAMM,EAAE,GAAGN,EAAE;AACpB,OAAO,MAAMO,aAAa,GAAGN,EAAE;AAC/B,OAAO,MAAMO,qBAAqB,GAAGJ,GAAG","ignoreList":[]}
1
+ {"version":3,"names":["Dimensions","useAppStore","width","height","get","shortDimension","longDimension","getBaseWidth","getState","baseWidth","getBaseHeight","baseHeight","s","size","vs","ms","factor","scale","mvs","verticalScale","fs","moderateScale","moderateVerticalScale"],"sourceRoot":"../../../src","sources":["utils/scalingUtils.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,mBAAgB;AAE5C,MAAM;EAAEC,KAAK;EAAEC;AAAO,CAAC,GAAGH,UAAU,CAACI,GAAG,CAAC,QAAQ,CAAC;AAClD,MAAM,CAACC,cAAc,EAAEC,aAAa,CAAC,GACnCJ,KAAK,GAAGC,MAAM,GAAG,CAACD,KAAK,EAAEC,MAAM,CAAC,GAAG,CAACA,MAAM,EAAED,KAAK,CAAC;AAEpD,MAAMK,YAAY,GAAGA,CAAA,KAAM;EACzB,OAAON,WAAW,EAAEO,QAAQ,CAAC,CAAC,EAAEC,SAAS,IAAI,GAAG;AAClD,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAC1B,OAAOT,WAAW,EAAEO,QAAQ,CAAC,CAAC,EAAEG,UAAU,IAAI,GAAG;AACnD,CAAC;AAED,OAAO,MAAMC,CAAC,GAAIC,IAAY,IAAMR,cAAc,GAAGE,YAAY,CAAC,CAAC,GAAIM,IAAI;AAC3E,OAAO,MAAMC,EAAE,GAAID,IAAY,IAAMP,aAAa,GAAGI,aAAa,CAAC,CAAC,GAAIG,IAAI;AAC5E,OAAO,MAAME,EAAE,GAAGA,CAACF,IAAY,EAAEG,MAAM,GAAG,GAAG,KAC3CH,IAAI,GAAG,CAACI,KAAK,CAACJ,IAAI,CAAC,GAAGA,IAAI,IAAIG,MAAM;AACtC,OAAO,MAAME,GAAG,GAAGA,CAACL,IAAY,EAAEG,MAAM,GAAG,GAAG,KAC5CH,IAAI,GAAG,CAACM,aAAa,CAACN,IAAI,CAAC,GAAGA,IAAI,IAAIG,MAAM;AAE9C,OAAO,MAAMC,KAAK,GAAGL,CAAC;AACtB,OAAO,MAAMO,aAAa,GAAGL,EAAE;AAC/B,OAAO,MAAMM,EAAE,GAAGN,EAAE;AACpB,OAAO,MAAMO,aAAa,GAAGN,EAAE;AAC/B,OAAO,MAAMO,qBAAqB,GAAGJ,GAAG","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import type { JestConfigWithTsJest } from 'ts-jest';
2
+ declare const jestConfig: JestConfigWithTsJest;
3
+ export default jestConfig;
4
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../jest.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,oBAgBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setup-jest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-jest.d.ts","sourceRoot":"","sources":["../../setup-jest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export declare enum NotificationPermissionStatus {
2
+ GRANTED = "granted",
3
+ DENIED = "denied",
4
+ BLOCKED = "blocked"
5
+ }
6
+ export interface NativeComnyx {
7
+ initialize(): Promise<boolean>;
8
+ checkOptIn(): Promise<NotificationPermissionStatus>;
9
+ optIn(): Promise<NotificationPermissionStatus>;
10
+ linkToSettings(): Promise<boolean>;
11
+ }
12
+ export declare const nativeComnyx: NativeComnyx;
13
+ //# sourceMappingURL=NativeComnyx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeComnyx.d.ts","sourceRoot":"","sources":["../../../src/NativeComnyx.ts"],"names":[],"mappings":"AAEA,oBAAY,4BAA4B;IACtC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,IAAI,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACpD,KAAK,IAAI,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAC/C,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,cAAuC,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const axiosInstance: import("axios").AxiosInstance;
2
+ export declare function isInitCalled(): boolean;
3
+ export declare function initApi(token: string, baseURL?: string): void;
4
+ export declare function setLoginForAxios(externalId: string): void;
5
+ export declare function setLogoutForAxios(): void;
6
+ export { axiosInstance };
7
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/api/api.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa,+BAMjB,CAAC;AAEH,wBAAgB,YAAY,YAE3B;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,QAItD;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,QAElD;AAED,wBAAgB,iBAAiB,SAEhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../../src/api/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUtD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,IAAI,GAAG,SAAS,EAC5B,IAAI,oBAAY,EAChB,OAAO,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1C,OAAO,CAAC,oBAAoB,CAAC,CAiB/B;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,IAAI,GAAG,SAAS,EAC5B,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,oBAAoB,CAAC,CAa/B"}
@@ -0,0 +1,5 @@
1
+ import type { CreateCustomerRequest, Customer } from '../types/Customer';
2
+ export declare function updateCustomer(customerData: CreateCustomerRequest, externalId?: string): Promise<{
3
+ customer: Customer;
4
+ }>;
5
+ //# sourceMappingURL=customers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../src/api/customers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIzE,wBAAgB,cAAc,CAC5B,YAAY,EAAE,qBAAqB,EACnC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CASjC"}
@@ -1,4 +1,4 @@
1
- export { createCustomer } from './customers';
1
+ export { updateCustomer as createCustomer } from './customers';
2
2
  export { getCustomerConversation, getNewCustomerConversation, } from './conversations';
3
3
  export { sendCustomerMessage } from './messages';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/api/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,eAAe,CAAC,CAuB1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppText.d.ts","sourceRoot":"","sources":["../../../../src/components/AppText.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAE9D,MAAM,MAAM,MAAM,GACd,QAAQ,GACR,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,UAAU,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACxD,YAAY,CAAC,EAAE,MAAM,gBAAgB,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,MAAc,EACd,GAAG,KAAK,EACT,EAAE,YAAY,kDA2Cd"}
@@ -0,0 +1,5 @@
1
+ export declare function ChatList({ initLoading, onBack, }: {
2
+ initLoading: boolean;
3
+ onBack?: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=ChatList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,2CA+nBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAKlE,UAAU,gBAAgB;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAID,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAO,EACP,KAAK,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,UAAU,GACX,EAAE,gBAAgB,2CAuDlB;;AAiED,wBAAuC"}
@@ -0,0 +1,5 @@
1
+ export declare function CustomerForm({ loading, onBack, }: {
2
+ loading: boolean;
3
+ onBack: () => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=CustomerForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,GACP,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,2CAuSA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyList.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyList.tsx"],"names":[],"mappings":"AAQA,wBAAgB,SAAS,4CAqBxB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitFailed.d.ts","sourceRoot":"","sources":["../../../../src/components/InitFailed.tsx"],"names":[],"mappings":"AAMA,UAAU,eAAe;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EAAE,aAAa,EAAE,EAAE,eAAe,2CAmB5D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput.tsx"],"names":[],"mappings":"AAYA,wBAAgB,YAAY,CAAC,EAC3B,cAAc,GACf,EAAE;IACD,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,2CA8HA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAsBpE,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,WAAW,GACZ,EAAE;IACD,IAAI,EAAE,sBAAsB,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,2CA6IA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScaledSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/ScaledSheet.ts"],"names":[],"mappings":"AA4FA,eAAO,MAAM,WAAW,KAAqC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activeOpacity.d.ts","sourceRoot":"","sources":["../../../../src/constants/activeOpacity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.d.ts","sourceRoot":"","sources":["../../../../src/constants/countries.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,EAmD9B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtl.d.ts","sourceRoot":"","sources":["../../../../src/constants/rtl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAiBhC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAk1C1D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewabilityConfig.d.ts","sourceRoot":"","sources":["../../../../src/constants/viewabilityConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../../../src/data/fake/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AA4elC,eAAO,MAAM,oBAAoB,aACrB,MAAM,QACV,MAAM,MACR,MAAM,WACF,OAAO,KACd,mBAAmB,EAErB,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC5B,MAAM,QACV,MAAM,MACR,MAAM,WACF,OAAO,KACd,QAAQ,oBAAoB,CAoB9B,CAAC;AAEF,eAAO,MAAM,oCAAoC,SACzC,MAAM,aACF,MAAM,KACf,QAAQ,oBAAoB,CAsB9B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../../src/data/fake/customers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE5E,wBAAgB,eAAe,CAAC,YAAY,EAAE,qBAAqB,GAAG,QAAQ,CAc7E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/data/fake/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CA+DvE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRtl.d.ts","sourceRoot":"","sources":["../../../../src/hooks/isRtl.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,eAGpB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocalize.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLocalize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,wBAAgB,WAAW,mBAMR,MAAM,gBAAgB,KAAG,MAAM,CAMjD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePolling.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePolling.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,SAuCzB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,wBAAgB,cAAc,IAAI,QAAQ,CAAC,WAAW,CAAC,CAGtD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThemeColors.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useThemeColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9D,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
@@ -0,0 +1,6 @@
1
+ export { Comnyx } from './register';
2
+ export { ComnyxSupport } from './support';
3
+ export { ComnyxNotifications } from './notifications';
4
+ export { NotificationPermissionStatus } from './NativeComnyx';
5
+ export { registerOneSignalForComnyx } from './register/collectData';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type EmitterSubscription } from 'react-native';
2
+ import { type NativeComnyx } from '../NativeComnyx';
3
+ type ComnyxNotificationsEventType = 'TOKEN_INIT' | 'TOKEN_FAILED' | 'NOTIFICATION_RECEIVED' | 'NOTIFICATION_CLICKED';
4
+ type ComnyxNotificationsEventResult = {
5
+ TOKEN_INIT: {
6
+ type: string;
7
+ token: string;
8
+ };
9
+ TOKEN_FAILED: {
10
+ type: string;
11
+ token: null;
12
+ };
13
+ NOTIFICATION_RECEIVED: unknown;
14
+ NOTIFICATION_CLICKED: unknown;
15
+ };
16
+ interface ComnyxNotificationsType extends NativeComnyx {
17
+ addEventListener<T extends ComnyxNotificationsEventType>(event: T, listener: (event: ComnyxNotificationsEventResult[T]) => void): EmitterSubscription;
18
+ }
19
+ export declare const ComnyxNotifications: ComnyxNotificationsType;
20
+ export {};
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGlE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOlE,KAAK,4BAA4B,GAC7B,YAAY,GACZ,cAAc,GACd,uBAAuB,GACvB,sBAAsB,CAAC;AAE3B,KAAK,8BAA8B,GAAG;IACpC,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,IAAI,CAAC;KACb,CAAC;IACF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,UAAU,uBAAwB,SAAQ,YAAY;IACpD,gBAAgB,CAAC,CAAC,SAAS,4BAA4B,EACrD,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,KAAK,IAAI,GAC3D,mBAAmB,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,uBAajC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { CreateCustomerRequest } from './types/Customer';
2
- declare class Accumulator {
1
+ import type { CreateCustomerRequest } from '../types/Customer';
2
+ export declare class Accumulator {
3
3
  private registerData;
4
4
  private __select_time;
5
5
  private listener;
@@ -10,9 +10,10 @@ declare class Accumulator {
10
10
  flush(): Promise<void>;
11
11
  debounce(): void;
12
12
  reset(): void;
13
+ clear(): void;
14
+ empty(): void;
13
15
  get(): CreateCustomerRequest | null;
14
16
  isListenerCalledOnce(): boolean;
15
17
  }
16
18
  export declare const accumulator: Accumulator;
17
- export {};
18
19
  //# sourceMappingURL=Accumulator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accumulator.d.ts","sourceRoot":"","sources":["../../../../src/register/Accumulator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI/D,qBAAa,WAAW;IACtB,OAAO,CAAC,YAAY,CAAsC;IAC1D,OAAO,CAAC,aAAa,CAAyC;IAC9D,OAAO,CAAC,QAAQ,CACT;IACP,OAAO,CAAC,qBAAqB,CAAkB;;IAG/C,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC;IASjE,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;IAsCtD,KAAK;IAeX,QAAQ;IAiBR,KAAK;IAML,KAAK;IAQL,KAAK;IAIL,GAAG;IAIH,oBAAoB;CAGrB;AAED,eAAO,MAAM,WAAW,aAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectData.d.ts","sourceRoot":"","sources":["../../../../src/register/collectData.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QASrD;AAGD,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,QAQ7D"}
@@ -0,0 +1,11 @@
1
+ import { login } from './login';
2
+ import { collectData } from './collectData';
3
+ import { logout } from './logout';
4
+ import { init } from './init';
5
+ export declare const Comnyx: {
6
+ init: typeof init;
7
+ login: typeof login;
8
+ logout: typeof logout;
9
+ collectData: typeof collectData;
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/register/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface InitOptions {
2
+ token: string;
3
+ }
4
+ export declare function init(initOptions: InitOptions): void;
5
+ export {};
6
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/register/init.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,IAAI,CAAC,WAAW,EAAE,WAAW,QAK5C"}
@@ -0,0 +1,6 @@
1
+ interface LoginOptions {
2
+ externalId: string;
3
+ }
4
+ export declare function login(loginOptions: LoginOptions): void;
5
+ export {};
6
+ //# sourceMappingURL=login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/register/login.ts"],"names":[],"mappings":"AAMA,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,YAAY,EAAE,YAAY,QAa/C"}
@@ -0,0 +1,2 @@
1
+ export declare function logout(): Promise<void>;
2
+ //# sourceMappingURL=logout.d.ts.map