@trycourier/courier-react-native 3.2.1 → 4.0.4

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 (251) hide show
  1. package/android/build.gradle +4 -1
  2. package/android/src/main/java/com/courierreactnative/CourierClientModule.kt +441 -0
  3. package/android/src/main/java/com/courierreactnative/CourierInboxViewManager.kt +2 -2
  4. package/android/src/main/java/com/courierreactnative/CourierReactNativePackage.kt +9 -3
  5. package/android/src/main/java/com/courierreactnative/CourierSharedModule.kt +321 -0
  6. package/android/src/main/java/com/courierreactnative/CourierSystemModule.kt +91 -0
  7. package/android/src/main/java/com/courierreactnative/ReactNativeModule.kt +36 -0
  8. package/android/src/main/java/com/courierreactnative/{Extensions.kt → Utils.kt} +5 -5
  9. package/courier-react-native.podspec +1 -1
  10. package/ios/CourierClientModule.swift +450 -0
  11. package/ios/CourierInboxReactNativeManager.swift +17 -9
  12. package/ios/CourierReactNativeDelegate.m +18 -35
  13. package/ios/CourierReactNativeEventEmitter.swift +25 -0
  14. package/ios/CourierReactNativeModule.m +192 -23
  15. package/ios/CourierSharedModule.swift +425 -0
  16. package/ios/CourierSystemModule.swift +147 -0
  17. package/ios/Utils.swift +103 -115
  18. package/lib/commonjs/Broadcaster.js +30 -0
  19. package/lib/commonjs/Broadcaster.js.map +1 -0
  20. package/lib/commonjs/Modules.js +25 -0
  21. package/lib/commonjs/Modules.js.map +1 -0
  22. package/lib/commonjs/client/BrandClient.js +25 -0
  23. package/lib/commonjs/client/BrandClient.js.map +1 -0
  24. package/lib/commonjs/client/ClientModule.js +21 -0
  25. package/lib/commonjs/client/ClientModule.js.map +1 -0
  26. package/lib/commonjs/client/CourierClient.js +33 -0
  27. package/lib/commonjs/client/CourierClient.js.map +1 -0
  28. package/lib/commonjs/client/InboxClient.js +116 -0
  29. package/lib/commonjs/client/InboxClient.js.map +1 -0
  30. package/lib/commonjs/client/PreferenceClient.js +73 -0
  31. package/lib/commonjs/client/PreferenceClient.js.map +1 -0
  32. package/lib/commonjs/client/TokenClient.js +36 -0
  33. package/lib/commonjs/client/TokenClient.js.map +1 -0
  34. package/lib/commonjs/client/TrackingClient.js +25 -0
  35. package/lib/commonjs/client/TrackingClient.js.map +1 -0
  36. package/lib/commonjs/index.js +418 -186
  37. package/lib/commonjs/index.js.map +1 -1
  38. package/lib/commonjs/models/Android_CourierSheet.js.map +1 -1
  39. package/lib/commonjs/models/CourierAuthenticationListener.js.map +1 -1
  40. package/lib/commonjs/models/CourierBrand.js +2 -0
  41. package/lib/commonjs/models/{CourierUserPreferencesTopic.js.map → CourierBrand.js.map} +1 -1
  42. package/lib/commonjs/models/CourierButton.js.map +1 -1
  43. package/lib/commonjs/models/CourierDevice.js +2 -0
  44. package/lib/commonjs/models/CourierDevice.js.map +1 -0
  45. package/lib/commonjs/models/CourierFont.js.map +1 -1
  46. package/lib/commonjs/models/CourierInboxListener.js +2 -2
  47. package/lib/commonjs/models/CourierInboxListener.js.map +1 -1
  48. package/lib/commonjs/models/{CourierUserPreferencesTopic.js → CourierInboxMessages.js} +1 -1
  49. package/lib/commonjs/models/CourierInboxMessages.js.map +1 -0
  50. package/lib/commonjs/models/CourierInboxTheme.js.map +1 -1
  51. package/lib/commonjs/models/CourierInfoViewStyle.js.map +1 -1
  52. package/lib/commonjs/models/CourierPaging.js.map +1 -1
  53. package/lib/commonjs/models/CourierPreferencesTheme.js.map +1 -1
  54. package/lib/commonjs/models/CourierPushListener.js +7 -3
  55. package/lib/commonjs/models/CourierPushListener.js.map +1 -1
  56. package/lib/commonjs/models/CourierPushProvider.js.map +1 -1
  57. package/lib/commonjs/models/CourierTrackingEvent.js +16 -0
  58. package/lib/commonjs/models/CourierTrackingEvent.js.map +1 -0
  59. package/lib/commonjs/models/CourierUserPreferences.js +54 -0
  60. package/lib/commonjs/models/CourierUserPreferences.js.map +1 -1
  61. package/lib/commonjs/models/InboxAction.js.map +1 -1
  62. package/lib/commonjs/models/InboxMessage.js.map +1 -1
  63. package/lib/commonjs/models/iOS_CourierCell.js.map +1 -1
  64. package/lib/commonjs/models/iOS_CourierSheet.js.map +1 -1
  65. package/lib/commonjs/utils.js +9 -17
  66. package/lib/commonjs/utils.js.map +1 -1
  67. package/lib/commonjs/views/CourierInboxView.js +3 -3
  68. package/lib/commonjs/views/CourierInboxView.js.map +1 -1
  69. package/lib/commonjs/views/CourierPreferencesView.js.map +1 -1
  70. package/lib/module/Broadcaster.js +23 -0
  71. package/lib/module/Broadcaster.js.map +1 -0
  72. package/lib/module/Modules.js +18 -0
  73. package/lib/module/Modules.js.map +1 -0
  74. package/lib/module/client/BrandClient.js +18 -0
  75. package/lib/module/client/BrandClient.js.map +1 -0
  76. package/lib/module/client/ClientModule.js +14 -0
  77. package/lib/module/client/ClientModule.js.map +1 -0
  78. package/lib/module/client/CourierClient.js +26 -0
  79. package/lib/module/client/CourierClient.js.map +1 -0
  80. package/lib/module/client/InboxClient.js +109 -0
  81. package/lib/module/client/InboxClient.js.map +1 -0
  82. package/lib/module/client/PreferenceClient.js +66 -0
  83. package/lib/module/client/PreferenceClient.js.map +1 -0
  84. package/lib/module/client/TokenClient.js +29 -0
  85. package/lib/module/client/TokenClient.js.map +1 -0
  86. package/lib/module/client/TrackingClient.js +18 -0
  87. package/lib/module/client/TrackingClient.js.map +1 -0
  88. package/lib/module/index.js +383 -185
  89. package/lib/module/index.js.map +1 -1
  90. package/lib/module/models/Android_CourierSheet.js.map +1 -1
  91. package/lib/module/models/CourierAuthenticationListener.js.map +1 -1
  92. package/lib/module/models/CourierBrand.js +2 -0
  93. package/lib/module/models/{CourierUserPreferencesTopic.js.map → CourierBrand.js.map} +1 -1
  94. package/lib/module/models/CourierButton.js.map +1 -1
  95. package/lib/module/models/CourierDevice.js +2 -0
  96. package/lib/module/models/CourierDevice.js.map +1 -0
  97. package/lib/module/models/CourierFont.js.map +1 -1
  98. package/lib/module/models/CourierInboxListener.js +1 -1
  99. package/lib/module/models/CourierInboxListener.js.map +1 -1
  100. package/lib/module/models/CourierInboxMessages.js +2 -0
  101. package/lib/module/models/CourierInboxMessages.js.map +1 -0
  102. package/lib/module/models/CourierInboxTheme.js.map +1 -1
  103. package/lib/module/models/CourierInfoViewStyle.js.map +1 -1
  104. package/lib/module/models/CourierPaging.js.map +1 -1
  105. package/lib/module/models/CourierPreferencesTheme.js.map +1 -1
  106. package/lib/module/models/CourierPushListener.js +7 -3
  107. package/lib/module/models/CourierPushListener.js.map +1 -1
  108. package/lib/module/models/CourierPushProvider.js.map +1 -1
  109. package/lib/module/models/CourierTrackingEvent.js +9 -0
  110. package/lib/module/models/CourierTrackingEvent.js.map +1 -0
  111. package/lib/module/models/CourierUserPreferences.js +53 -1
  112. package/lib/module/models/CourierUserPreferences.js.map +1 -1
  113. package/lib/module/models/InboxAction.js.map +1 -1
  114. package/lib/module/models/InboxMessage.js.map +1 -1
  115. package/lib/module/models/iOS_CourierCell.js.map +1 -1
  116. package/lib/module/models/iOS_CourierSheet.js.map +1 -1
  117. package/lib/module/utils.js +7 -16
  118. package/lib/module/utils.js.map +1 -1
  119. package/lib/module/views/CourierInboxView.js +3 -3
  120. package/lib/module/views/CourierInboxView.js.map +1 -1
  121. package/lib/module/views/CourierPreferencesView.js.map +1 -1
  122. package/lib/typescript/src/Broadcaster.d.ts +14 -0
  123. package/lib/typescript/src/Broadcaster.d.ts.map +1 -0
  124. package/lib/typescript/src/Modules.d.ts +8 -0
  125. package/lib/typescript/src/Modules.d.ts.map +1 -0
  126. package/lib/typescript/src/client/BrandClient.d.ts +15 -0
  127. package/lib/typescript/src/client/BrandClient.d.ts.map +1 -0
  128. package/lib/typescript/src/client/ClientModule.d.ts +8 -0
  129. package/lib/typescript/src/client/ClientModule.d.ts.map +1 -0
  130. package/lib/typescript/src/client/CourierClient.d.ts +31 -0
  131. package/lib/typescript/src/client/CourierClient.d.ts.map +1 -0
  132. package/lib/typescript/src/client/InboxClient.d.ts +94 -0
  133. package/lib/typescript/src/client/InboxClient.d.ts.map +1 -0
  134. package/lib/typescript/src/client/PreferenceClient.d.ts +39 -0
  135. package/lib/typescript/src/client/PreferenceClient.d.ts.map +1 -0
  136. package/lib/typescript/src/client/TokenClient.d.ts +28 -0
  137. package/lib/typescript/src/client/TokenClient.d.ts.map +1 -0
  138. package/lib/typescript/src/client/TrackingClient.d.ts +17 -0
  139. package/lib/typescript/src/client/TrackingClient.d.ts.map +1 -0
  140. package/lib/typescript/src/index.d.ts +300 -0
  141. package/lib/typescript/src/index.d.ts.map +1 -0
  142. package/lib/typescript/src/models/Android_CourierSheet.d.ts.map +1 -0
  143. package/lib/typescript/src/models/CourierAuthenticationListener.d.ts.map +1 -0
  144. package/lib/typescript/src/models/CourierBrand.d.ts +20 -0
  145. package/lib/typescript/src/models/CourierBrand.d.ts.map +1 -0
  146. package/lib/typescript/src/models/CourierButton.d.ts.map +1 -0
  147. package/lib/typescript/src/models/CourierDevice.d.ts +9 -0
  148. package/lib/typescript/src/models/CourierDevice.d.ts.map +1 -0
  149. package/lib/typescript/src/models/CourierFont.d.ts.map +1 -0
  150. package/lib/typescript/src/models/CourierInboxListener.d.ts.map +1 -0
  151. package/lib/typescript/src/models/CourierInboxMessages.d.ts +23 -0
  152. package/lib/typescript/src/models/CourierInboxMessages.d.ts.map +1 -0
  153. package/lib/typescript/src/models/CourierInboxTheme.d.ts.map +1 -0
  154. package/lib/typescript/src/models/CourierInfoViewStyle.d.ts.map +1 -0
  155. package/lib/typescript/src/models/CourierPaging.d.ts.map +1 -0
  156. package/lib/typescript/src/models/CourierPreferencesTheme.d.ts.map +1 -0
  157. package/lib/typescript/src/models/CourierPushListener.d.ts +8 -0
  158. package/lib/typescript/src/models/CourierPushListener.d.ts.map +1 -0
  159. package/lib/typescript/src/models/CourierPushProvider.d.ts.map +1 -0
  160. package/lib/typescript/src/models/CourierTrackingEvent.d.ts +8 -0
  161. package/lib/typescript/src/models/CourierTrackingEvent.d.ts.map +1 -0
  162. package/lib/typescript/src/models/CourierUserPreferences.d.ts +35 -0
  163. package/lib/typescript/src/models/CourierUserPreferences.d.ts.map +1 -0
  164. package/lib/typescript/src/models/InboxAction.d.ts.map +1 -0
  165. package/lib/typescript/src/models/InboxMessage.d.ts.map +1 -0
  166. package/lib/typescript/src/models/iOS_CourierCell.d.ts.map +1 -0
  167. package/lib/typescript/src/models/iOS_CourierSheet.d.ts.map +1 -0
  168. package/lib/typescript/src/utils.d.ts +14 -0
  169. package/lib/typescript/src/utils.d.ts.map +1 -0
  170. package/lib/typescript/src/views/CourierInboxView.d.ts.map +1 -0
  171. package/lib/typescript/src/views/CourierPreferencesView.d.ts.map +1 -0
  172. package/package.json +3 -3
  173. package/src/Broadcaster.tsx +32 -0
  174. package/src/Modules.tsx +28 -0
  175. package/src/client/BrandClient.tsx +23 -0
  176. package/src/client/ClientModule.tsx +21 -0
  177. package/src/client/CourierClient.tsx +49 -0
  178. package/src/client/InboxClient.tsx +114 -0
  179. package/src/client/PreferenceClient.tsx +77 -0
  180. package/src/client/TokenClient.tsx +34 -0
  181. package/src/client/TrackingClient.tsx +23 -0
  182. package/src/index.tsx +398 -205
  183. package/src/models/CourierBrand.tsx +24 -0
  184. package/src/models/CourierDevice.tsx +8 -0
  185. package/src/models/CourierInboxListener.tsx +1 -1
  186. package/src/models/CourierInboxMessages.tsx +28 -0
  187. package/src/models/CourierPushListener.tsx +11 -6
  188. package/src/models/CourierTrackingEvent.tsx +7 -0
  189. package/src/models/CourierUserPreferences.tsx +70 -3
  190. package/src/utils.tsx +7 -23
  191. package/src/views/CourierInboxView.tsx +3 -3
  192. package/android/src/main/java/com/courierreactnative/CourierReactNativeModule.kt +0 -393
  193. package/ios/CourierReactNativeModule.swift +0 -524
  194. package/lib/commonjs/models/CourierUserPreferencesChannel.js +0 -17
  195. package/lib/commonjs/models/CourierUserPreferencesChannel.js.map +0 -1
  196. package/lib/commonjs/models/CourierUserPreferencesStatus.js +0 -15
  197. package/lib/commonjs/models/CourierUserPreferencesStatus.js.map +0 -1
  198. package/lib/module/models/CourierUserPreferencesChannel.js +0 -10
  199. package/lib/module/models/CourierUserPreferencesChannel.js.map +0 -1
  200. package/lib/module/models/CourierUserPreferencesStatus.js +0 -8
  201. package/lib/module/models/CourierUserPreferencesStatus.js.map +0 -1
  202. package/lib/module/models/CourierUserPreferencesTopic.js +0 -2
  203. package/lib/typescript/index.d.ts +0 -199
  204. package/lib/typescript/index.d.ts.map +0 -1
  205. package/lib/typescript/models/Android_CourierSheet.d.ts.map +0 -1
  206. package/lib/typescript/models/CourierAuthenticationListener.d.ts.map +0 -1
  207. package/lib/typescript/models/CourierButton.d.ts.map +0 -1
  208. package/lib/typescript/models/CourierFont.d.ts.map +0 -1
  209. package/lib/typescript/models/CourierInboxListener.d.ts.map +0 -1
  210. package/lib/typescript/models/CourierInboxTheme.d.ts.map +0 -1
  211. package/lib/typescript/models/CourierInfoViewStyle.d.ts.map +0 -1
  212. package/lib/typescript/models/CourierPaging.d.ts.map +0 -1
  213. package/lib/typescript/models/CourierPreferencesTheme.d.ts.map +0 -1
  214. package/lib/typescript/models/CourierPushListener.d.ts +0 -7
  215. package/lib/typescript/models/CourierPushListener.d.ts.map +0 -1
  216. package/lib/typescript/models/CourierPushProvider.d.ts.map +0 -1
  217. package/lib/typescript/models/CourierUserPreferences.d.ts +0 -7
  218. package/lib/typescript/models/CourierUserPreferences.d.ts.map +0 -1
  219. package/lib/typescript/models/CourierUserPreferencesChannel.d.ts +0 -9
  220. package/lib/typescript/models/CourierUserPreferencesChannel.d.ts.map +0 -1
  221. package/lib/typescript/models/CourierUserPreferencesStatus.d.ts +0 -7
  222. package/lib/typescript/models/CourierUserPreferencesStatus.d.ts.map +0 -1
  223. package/lib/typescript/models/CourierUserPreferencesTopic.d.ts +0 -13
  224. package/lib/typescript/models/CourierUserPreferencesTopic.d.ts.map +0 -1
  225. package/lib/typescript/models/InboxAction.d.ts.map +0 -1
  226. package/lib/typescript/models/InboxMessage.d.ts.map +0 -1
  227. package/lib/typescript/models/iOS_CourierCell.d.ts.map +0 -1
  228. package/lib/typescript/models/iOS_CourierSheet.d.ts.map +0 -1
  229. package/lib/typescript/utils.d.ts +0 -21
  230. package/lib/typescript/utils.d.ts.map +0 -1
  231. package/lib/typescript/views/CourierInboxView.d.ts.map +0 -1
  232. package/lib/typescript/views/CourierPreferencesView.d.ts.map +0 -1
  233. package/src/models/CourierUserPreferencesChannel.tsx +0 -8
  234. package/src/models/CourierUserPreferencesStatus.tsx +0 -6
  235. package/src/models/CourierUserPreferencesTopic.tsx +0 -13
  236. /package/lib/typescript/{models → src/models}/Android_CourierSheet.d.ts +0 -0
  237. /package/lib/typescript/{models → src/models}/CourierAuthenticationListener.d.ts +0 -0
  238. /package/lib/typescript/{models → src/models}/CourierButton.d.ts +0 -0
  239. /package/lib/typescript/{models → src/models}/CourierFont.d.ts +0 -0
  240. /package/lib/typescript/{models → src/models}/CourierInboxListener.d.ts +0 -0
  241. /package/lib/typescript/{models → src/models}/CourierInboxTheme.d.ts +0 -0
  242. /package/lib/typescript/{models → src/models}/CourierInfoViewStyle.d.ts +0 -0
  243. /package/lib/typescript/{models → src/models}/CourierPaging.d.ts +0 -0
  244. /package/lib/typescript/{models → src/models}/CourierPreferencesTheme.d.ts +0 -0
  245. /package/lib/typescript/{models → src/models}/CourierPushProvider.d.ts +0 -0
  246. /package/lib/typescript/{models → src/models}/InboxAction.d.ts +0 -0
  247. /package/lib/typescript/{models → src/models}/InboxMessage.d.ts +0 -0
  248. /package/lib/typescript/{models → src/models}/iOS_CourierCell.d.ts +0 -0
  249. /package/lib/typescript/{models → src/models}/iOS_CourierSheet.d.ts +0 -0
  250. /package/lib/typescript/{views → src/views}/CourierInboxView.d.ts +0 -0
  251. /package/lib/typescript/{views → src/views}/CourierPreferencesView.d.ts +0 -0
@@ -0,0 +1,39 @@
1
+ import { CourierUserPreferences, CourierUserPreferencesChannel, CourierUserPreferencesStatus, CourierUserPreferencesTopic } from "../models/CourierUserPreferences";
2
+ export declare class PreferenceClient {
3
+ readonly clientId: string;
4
+ constructor(clientId: string);
5
+ /**
6
+ * Retrieves user preferences.
7
+ * @param props - Optional properties for pagination.
8
+ * @param props.paginationCursor - Optional cursor for pagination.
9
+ * @returns A promise that resolves with CourierUserPreferences containing user preference items and paging information.
10
+ */
11
+ getUserPreferences(props?: {
12
+ paginationCursor?: string;
13
+ }): Promise<CourierUserPreferences>;
14
+ /**
15
+ * Retrieves user preference for a specific topic.
16
+ * @param props - Properties for getting the user preference topic.
17
+ * @param props.topicId - The ID of the topic to retrieve preferences for.
18
+ * @returns A promise that resolves with CourierUserPreferencesTopic containing the topic preference details.
19
+ */
20
+ getUserPreferenceTopic(props: {
21
+ topicId: string;
22
+ }): Promise<CourierUserPreferencesTopic>;
23
+ /**
24
+ * Updates user preference for a specific topic.
25
+ * @param props - Properties for updating the user preference topic.
26
+ * @param props.topicId - The ID of the topic to update preferences for.
27
+ * @param props.status - The new status for the topic preference.
28
+ * @param props.hasCustomRouting - Whether the topic has custom routing.
29
+ * @param props.customRouting - Array of custom routing channels.
30
+ * @returns A promise that resolves when the update is complete.
31
+ */
32
+ putUserPreferenceTopic(props: {
33
+ topicId: string;
34
+ status: CourierUserPreferencesStatus;
35
+ hasCustomRouting: boolean;
36
+ customRouting: CourierUserPreferencesChannel[];
37
+ }): Promise<void>;
38
+ }
39
+ //# sourceMappingURL=PreferenceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreferenceClient.d.ts","sourceRoot":"","sources":["../../../../src/client/PreferenceClient.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpK,qBAAa,gBAAgB;IAE3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,QAAQ,EAAE,MAAM;IAI5B;;;;;OAKG;IACU,kBAAkB,CAAC,KAAK,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAsBvG;;;;;OAKG;IACU,sBAAsB,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAkBrG;;;;;;;;OAQG;IACU,sBAAsB,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,4BAA4B,CAAC;QAAC,gBAAgB,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,6BAA6B,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIhM"}
@@ -0,0 +1,28 @@
1
+ import { CourierDevice } from "..";
2
+ export declare class TokenClient {
3
+ readonly clientId: string;
4
+ constructor(clientId: string);
5
+ /**
6
+ * Stores a user token for a specific provider.
7
+ * @param props - The properties for storing the user token.
8
+ * @param props.token - The token to be stored.
9
+ * @param props.provider - The provider associated with the token.
10
+ * @param props.device - Optional device information.
11
+ * @returns A promise that resolves when the token is successfully stored.
12
+ */
13
+ putUserToken(props: {
14
+ token: string;
15
+ provider: string;
16
+ device?: CourierDevice;
17
+ }): Promise<void>;
18
+ /**
19
+ * Deletes a user token.
20
+ * @param props - The properties for deleting the user token.
21
+ * @param props.token - The token to be deleted.
22
+ * @returns A promise that resolves when the token is successfully deleted.
23
+ */
24
+ deleteUserToken(props: {
25
+ token: string;
26
+ }): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=TokenClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenClient.d.ts","sourceRoot":"","sources":["../../../../src/client/TokenClient.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGnC,qBAAa,WAAW;IAEtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,QAAQ,EAAE,MAAM;IAI5B;;;;;;;OAOG;IACU,YAAY,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,aAAa,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5G;;;;;OAKG;IACU,eAAe,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAItE"}
@@ -0,0 +1,17 @@
1
+ import { CourierTrackingEvent } from "..";
2
+ export declare class TrackingClient {
3
+ readonly clientId: string;
4
+ constructor(clientId: string);
5
+ /**
6
+ * Posts a tracking URL with associated event data.
7
+ * @param props - The properties for posting the tracking URL.
8
+ * @param props.url - The tracking URL to be posted.
9
+ * @param props.event - The CourierTrackingEvent associated with the URL.
10
+ * @returns A promise that resolves when the tracking URL is successfully posted.
11
+ */
12
+ postTrackingUrl(props: {
13
+ url: string;
14
+ event: CourierTrackingEvent;
15
+ }): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=TrackingClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrackingClient.d.ts","sourceRoot":"","sources":["../../../../src/client/TrackingClient.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAG1C,qBAAa,cAAc;IAEzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,QAAQ,EAAE,MAAM;IAI5B;;;;;;OAMG;IACU,eAAe,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,oBAAoB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIjG"}
@@ -0,0 +1,300 @@
1
+ import { CourierInboxListener } from './models/CourierInboxListener';
2
+ import { CourierPushListener } from './models/CourierPushListener';
3
+ import { CourierAuthenticationListener } from './models/CourierAuthenticationListener';
4
+ import { InboxMessage } from './models/InboxMessage';
5
+ import { CourierPushProvider } from './models/CourierPushProvider';
6
+ import { CourierClient } from './client/CourierClient';
7
+ export { CourierClient } from './client/CourierClient';
8
+ export { BrandClient } from './client/BrandClient';
9
+ export { CourierBrandResponse } from './models/CourierBrand';
10
+ export { CourierDevice } from './models/CourierDevice';
11
+ export { CourierInboxView } from './views/CourierInboxView';
12
+ export { CourierPreferencesView } from './views/CourierPreferencesView';
13
+ export { CourierInboxListener } from './models/CourierInboxListener';
14
+ export { CourierPushListener } from './models/CourierPushListener';
15
+ export { CourierUserPreferencesTopic } from './models/CourierUserPreferences';
16
+ export { CourierAuthenticationListener } from './models/CourierAuthenticationListener';
17
+ export { CourierUserPreferencesChannel } from './models/CourierUserPreferences';
18
+ export { CourierUserPreferencesStatus } from './models/CourierUserPreferences';
19
+ export { CourierTrackingEvent } from './models/CourierTrackingEvent';
20
+ export { CourierPushProvider } from './models/CourierPushProvider';
21
+ export { CourierFont } from './models/CourierFont';
22
+ export { CourierButton } from './models/CourierButton';
23
+ export { CourierInfoViewStyle } from './models/CourierInfoViewStyle';
24
+ export { iOS_CourierCell } from './models/iOS_CourierCell';
25
+ export { iOS_CourierSheet } from './models/iOS_CourierSheet';
26
+ export { CourierInboxButtonStyle, CourierInboxTextStyle, CourierInboxUnreadIndicatorStyle, CourierInboxTheme } from './models/CourierInboxTheme';
27
+ export { CourierPreferencesTheme, CourierPreferencesMode, CourierPreferencesChannel } from './models/CourierPreferencesTheme';
28
+ export type iOSForegroundPresentationOptions = 'sound' | 'badge' | 'list' | 'banner';
29
+ declare class Courier {
30
+ private static _sharedInstance;
31
+ private authenticationListeners;
32
+ private inboxListeners;
33
+ private pushListeners;
34
+ private systemBroadcaster;
35
+ private sharedBroadcaster;
36
+ private pushNotificationClickedEmitter;
37
+ private pushNotificationDeliveredEmitter;
38
+ constructor();
39
+ static get shared(): Courier;
40
+ private isDebugging;
41
+ static log(message: string): void;
42
+ private attachPushNotificationListeners;
43
+ /**
44
+ * Sets the iOS foreground presentation options for push notifications.
45
+ * This method only works on iOS devices.
46
+ * @param props An object containing an array of iOSForegroundPresentationOptions.
47
+ * @returns A string indicating the result of the operation. Returns 'unsupported' on non-iOS platforms.
48
+ */
49
+ static setIOSForegroundPresentationOptions(props: {
50
+ options: iOSForegroundPresentationOptions[];
51
+ }): string;
52
+ /**
53
+ * Retrieves the current notification permission status.
54
+ * @returns A Promise that resolves to a string representing the current notification permission status.
55
+ */
56
+ static getNotificationPermissionStatus(): Promise<string>;
57
+ /**
58
+ * Requests permission to send push notifications to the user.
59
+ * @returns A Promise that resolves to a string indicating the result of the permission request.
60
+ */
61
+ static requestNotificationPermission(): Promise<string>;
62
+ /**
63
+ * Opens the settings page for the current app.
64
+ * This can be used to direct users to enable notifications if they've previously denied permission.
65
+ */
66
+ static openSettingsForApp(): void;
67
+ /**
68
+ * Gets the current CourierClient instance.
69
+ * @returns {CourierClient | undefined} The current CourierClient instance, or undefined if not initialized.
70
+ */
71
+ get client(): CourierClient | undefined;
72
+ /**
73
+ * Gets the current user ID.
74
+ * @returns {string | undefined} The current user ID, or undefined if not set.
75
+ */
76
+ get userId(): string | undefined;
77
+ /**
78
+ * Gets the current tenant ID.
79
+ * @returns {string | undefined} The current tenant ID, or undefined if not set.
80
+ */
81
+ get tenantId(): string | undefined;
82
+ /**
83
+ * Checks if a user is currently signed in.
84
+ * @returns {boolean} True if a user is signed in, false otherwise.
85
+ */
86
+ get isUserSignedIn(): boolean;
87
+ /**
88
+ * Signs out the current user.
89
+ * @returns {Promise<void>} A promise that resolves when the sign out process is complete.
90
+ */
91
+ signOut(): Promise<void>;
92
+ /**
93
+ * Signs in a user with the provided credentials.
94
+ * @param {Object} props - The sign-in properties.
95
+ * @param {string} props.accessToken - The access token for authentication.
96
+ * @param {string} [props.clientKey] - The client key (optional).
97
+ * @param {string} props.userId - The user ID.
98
+ * @param {string} [props.tenantId] - The tenant ID (optional).
99
+ * @param {boolean} [props.showLogs] - Whether to show debug logs (defaults to __DEV__).
100
+ * @returns {Promise<void>} A promise that resolves when the sign-in process is complete.
101
+ */
102
+ signIn(props: {
103
+ accessToken: string;
104
+ clientKey?: string;
105
+ userId: string;
106
+ tenantId?: string;
107
+ showLogs?: boolean;
108
+ }): Promise<void>;
109
+ /**
110
+ * Adds an authentication listener to monitor user changes.
111
+ * @param {Object} props - The listener properties.
112
+ * @param {function} props.onUserChanged - Callback function triggered when the user changes.
113
+ * @returns {CourierAuthenticationListener} The created authentication listener.
114
+ */
115
+ addAuthenticationListener(props: {
116
+ onUserChanged: (userId?: string) => void;
117
+ }): CourierAuthenticationListener;
118
+ /**
119
+ * Removes a specific authentication listener.
120
+ * @param {Object} props - The removal properties.
121
+ * @param {string} props.listenerId - The ID of the listener to remove.
122
+ * @returns {string} The ID of the removed listener.
123
+ */
124
+ removeAuthenticationListener(props: {
125
+ listenerId: string;
126
+ }): string;
127
+ /**
128
+ * Removes all authentication listeners.
129
+ * This method clears all registered authentication listeners, both native and JavaScript.
130
+ */
131
+ removeAllAuthenticationListeners(): void;
132
+ /**
133
+ * Retrieves all push notification tokens.
134
+ * @returns {Promise<Map<string, string>>} A promise that resolves to a Map of provider keys to tokens.
135
+ */
136
+ getAllTokens(): Promise<Map<string, string>>;
137
+ /**
138
+ * Retrieves the push notification token for a specific key.
139
+ * @param {Object} props - The properties object.
140
+ * @param {string} props.key - The key associated with the token.
141
+ * @returns {Promise<string | undefined>} A promise that resolves to the token or undefined if not found.
142
+ */
143
+ getToken(props: {
144
+ key: string;
145
+ }): Promise<string | undefined>;
146
+ /**
147
+ * Retrieves the push notification token for a specific provider.
148
+ * @param {Object} props - The properties object.
149
+ * @param {CourierPushProvider} props.provider - The push notification provider.
150
+ * @returns {Promise<string | undefined>} A promise that resolves to the token or undefined if not found.
151
+ */
152
+ getTokenForProvider(props: {
153
+ provider: CourierPushProvider;
154
+ }): Promise<string | undefined>;
155
+ /**
156
+ * Sets the push notification token for a specific key.
157
+ * @param {Object} props - The properties object.
158
+ * @param {string} props.key - The key to associate with the token.
159
+ * @param {string} props.token - The push notification token.
160
+ * @returns {Promise<void>} A promise that resolves when the token is set.
161
+ */
162
+ setToken(props: {
163
+ key: string;
164
+ token: string;
165
+ }): Promise<void>;
166
+ /**
167
+ * Sets the push notification token for a specific provider.
168
+ * @param {Object} props - The properties object.
169
+ * @param {CourierPushProvider} props.provider - The push notification provider.
170
+ * @param {string} props.token - The push notification token.
171
+ * @returns {Promise<void>} A promise that resolves when the token is set.
172
+ */
173
+ setTokenForProvider(props: {
174
+ provider: CourierPushProvider;
175
+ token: string;
176
+ }): Promise<void>;
177
+ /**
178
+ * Adds a push notification listener.
179
+ * @param {Object} props - The properties object.
180
+ * @param {function} [props.onPushNotificationClicked] - Callback function triggered when a push notification is clicked.
181
+ * @param {function} [props.onPushNotificationDelivered] - Callback function triggered when a push notification is delivered.
182
+ * @returns {CourierPushListener} The created push notification listener.
183
+ */
184
+ addPushNotificationListener(props: {
185
+ onPushNotificationClicked?: (push: any) => void;
186
+ onPushNotificationDelivered?: (push: any) => void;
187
+ }): CourierPushListener;
188
+ /**
189
+ * Removes a specific push notification listener.
190
+ * @param {Object} props - The properties object.
191
+ * @param {string} props.listenerId - The ID of the listener to remove.
192
+ * @returns {string} The ID of the removed listener.
193
+ */
194
+ removePushNotificationListener(props: {
195
+ listenerId: string;
196
+ }): string;
197
+ /**
198
+ * Removes all push notification listeners.
199
+ */
200
+ removeAllPushNotificationListeners(): void;
201
+ /**
202
+ * Gets the current pagination limit for inbox messages.
203
+ * @returns {number} The current pagination limit.
204
+ */
205
+ get inboxPaginationLimit(): number;
206
+ /**
207
+ * Sets the pagination limit for inbox messages.
208
+ * @param {number} limit - The new pagination limit to set.
209
+ */
210
+ set inboxPaginationLimit(limit: number);
211
+ /**
212
+ * Opens a specific message in the inbox.
213
+ * @param {Object} props - The properties object.
214
+ * @param {string} props.messageId - The ID of the message to open.
215
+ * @returns {Promise<void>} A promise that resolves when the message is opened.
216
+ */
217
+ openMessage(props: {
218
+ messageId: string;
219
+ }): Promise<void>;
220
+ /**
221
+ * Registers a click event for a specific message in the inbox.
222
+ * @param {Object} props - The properties object.
223
+ * @param {string} props.messageId - The ID of the message that was clicked.
224
+ * @returns {Promise<void>} A promise that resolves when the click is registered.
225
+ */
226
+ clickMessage(props: {
227
+ messageId: string;
228
+ }): Promise<void>;
229
+ /**
230
+ * Marks a specific message as read in the inbox.
231
+ * @param {Object} props - The properties object.
232
+ * @param {string} props.messageId - The ID of the message to mark as read.
233
+ * @returns {Promise<void>} A promise that resolves when the message is marked as read.
234
+ */
235
+ readMessage(props: {
236
+ messageId: string;
237
+ }): Promise<void>;
238
+ /**
239
+ * Marks a specific message as unread in the inbox.
240
+ * @param {Object} props - The properties object.
241
+ * @param {string} props.messageId - The ID of the message to mark as unread.
242
+ * @returns {Promise<void>} A promise that resolves when the message is marked as unread.
243
+ */
244
+ unreadMessage(props: {
245
+ messageId: string;
246
+ }): Promise<void>;
247
+ /**
248
+ * Archives a specific message in the inbox.
249
+ * @param {Object} props - The properties object.
250
+ * @param {string} props.messageId - The ID of the message to archive.
251
+ * @returns {Promise<void>} A promise that resolves when the message is archived.
252
+ */
253
+ archiveMessage(props: {
254
+ messageId: string;
255
+ }): Promise<void>;
256
+ /**
257
+ * Marks all messages in the inbox as read.
258
+ * @returns {Promise<void>} A promise that resolves when all messages are marked as read.
259
+ */
260
+ readAllInboxMessages(): Promise<void>;
261
+ /**
262
+ * Adds a listener for inbox changes.
263
+ * @param {Object} props - The properties object.
264
+ * @param {Function} [props.onInitialLoad] - Callback function called when the inbox is initially loaded.
265
+ * @param {Function} [props.onError] - Callback function called when an error occurs. Receives the error message as a parameter.
266
+ * @param {Function} [props.onMessagesChanged] - Callback function called when messages change. Receives updated messages, unread count, total count, and pagination status.
267
+ * @returns {CourierInboxListener} A listener object that can be used to remove the listener later.
268
+ */
269
+ addInboxListener(props: {
270
+ onInitialLoad?: () => void;
271
+ onError?: (error: string) => void;
272
+ onMessagesChanged?: (messages: InboxMessage[], unreadMessageCount: number, totalMessageCount: number, canPaginate: boolean) => void;
273
+ }): CourierInboxListener;
274
+ /**
275
+ * Removes a specific inbox listener.
276
+ * @param {Object} props - The properties object.
277
+ * @param {string} props.listenerId - The ID of the listener to remove.
278
+ * @returns {string} The ID of the removed listener.
279
+ */
280
+ removeInboxListener(props: {
281
+ listenerId: string;
282
+ }): string;
283
+ /**
284
+ * Removes all inbox listeners.
285
+ */
286
+ removeAllInboxListeners(): void;
287
+ /**
288
+ * Refreshes the inbox.
289
+ * Useful for pull-to-refresh functionality.
290
+ * @returns {Promise<void>} A promise that resolves when the inbox is refreshed.
291
+ */
292
+ refreshInbox(): Promise<void>;
293
+ /**
294
+ * Fetches the next page of inbox messages.
295
+ * @returns {Promise<InboxMessage[]>} A promise that resolves with an array of fetched inbox messages.
296
+ */
297
+ fetchNextPageOfMessages(): Promise<InboxMessage[]>;
298
+ }
299
+ export default Courier;
300
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,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,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierAuthenticationListener.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierAuthenticationListener.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,qBAAa,6BAA6B;IAExC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;gBAE9B,EAAE,EAAE,MAAM;IAIf,MAAM;CAUd"}
@@ -0,0 +1,20 @@
1
+ export interface CourierBrandResponse {
2
+ data?: CourierBrandData;
3
+ }
4
+ export interface CourierBrandData {
5
+ brand?: CourierBrand;
6
+ }
7
+ export interface CourierBrand {
8
+ settings?: CourierBrandSettings;
9
+ }
10
+ export interface CourierBrandSettings {
11
+ inapp?: CourierBrandInApp;
12
+ colors?: CourierBrandColors;
13
+ }
14
+ export interface CourierBrandInApp {
15
+ disableCourierFooter?: boolean;
16
+ }
17
+ export interface CourierBrandColors {
18
+ primary?: string;
19
+ }
20
+ //# sourceMappingURL=CourierBrand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierBrand.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierBrand.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierButton.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
@@ -0,0 +1,9 @@
1
+ export interface CourierDevice {
2
+ appId?: string;
3
+ adId?: string;
4
+ deviceId?: string;
5
+ platform?: string;
6
+ manufacturer?: string;
7
+ model?: string;
8
+ }
9
+ //# sourceMappingURL=CourierDevice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierDevice.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierDevice.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierFont.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierFont.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierInboxListener.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierInboxListener.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,qBAAa,oBAAoB;IAE/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,iBAAiB,CAAC,EAAE,mBAAmB,CAAA;gBAElC,EAAE,EAAE,MAAM;IAIf,MAAM;CAId"}
@@ -0,0 +1,23 @@
1
+ import { InboxMessage } from "./InboxMessage";
2
+ export interface CourierGetInboxMessagesResponse {
3
+ data?: GetInboxMessagesData;
4
+ }
5
+ export interface GetInboxMessagesData {
6
+ count?: number;
7
+ messages?: GetInboxMessagesNodes;
8
+ }
9
+ export interface GetInboxMessagesNodes {
10
+ pageInfo?: GetInboxMessagesPageInfo;
11
+ nodes?: InboxMessage[];
12
+ }
13
+ export interface GetInboxMessagesPageInfo {
14
+ startCursor?: string;
15
+ hasNextPage?: boolean;
16
+ }
17
+ export interface CourierGetInboxMessageResponse {
18
+ data?: GetInboxMessageData;
19
+ }
20
+ export interface GetInboxMessageData {
21
+ message: InboxMessage;
22
+ }
23
+ //# sourceMappingURL=CourierInboxMessages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierInboxMessages.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierInboxMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EA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C,GAAG,CAAC,EAAE;QACJ,qBAAqB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;QACvG,UAAU,CAAC,EAAE;YACX,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,kBAAkB,CAAC;YAC5D,eAAe,CAAC,EAAE;gBAAE,GAAG,CAAC,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YACnF,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;SACvD,CAAA;KACF,CAAC;IACF,OAAO,CAAC,EAAE;QACR,qBAAqB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KAC7C,CAAA;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierInfoViewStyle.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierInfoViewStyle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierPaging.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierPaging.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierPreferencesTheme.d.ts","sourceRoot":"","sources":["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AAM,GAAG,UAAU,CAAA;QAChD,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;KAC1C,CAAA;CACF"}
@@ -0,0 +1,8 @@
1
+ export declare class CourierPushListener {
2
+ readonly listenerId: string;
3
+ onPushNotificationClicked?: (push: any) => void;
4
+ onPushNotificationDelivered?: (push: any) => void;
5
+ constructor(id: string, onPushNotificationClicked?: (push: any) => void, onPushNotificationDelivered?: (push: any) => void);
6
+ remove(): void;
7
+ }
8
+ //# sourceMappingURL=CourierPushListener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierPushListener.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierPushListener.tsx"],"names":[],"mappings":"AAAA,qBAAa,mBAAmB;IAE9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IACpB,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/C,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;gBAE5C,EAAE,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,EAAE,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IAMnH,MAAM;CAKd"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierPushProvider.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierPushProvider.tsx"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,UAAU,cAAc;IACxB,YAAY,iBAAiB;CAC9B"}
@@ -0,0 +1,8 @@
1
+ export declare enum CourierTrackingEvent {
2
+ Clicked = "CLICKED",
3
+ Delivered = "DELIVERED",
4
+ Opened = "OPENED",
5
+ Read = "READ",
6
+ Unread = "UNREAD"
7
+ }
8
+ //# sourceMappingURL=CourierTrackingEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierTrackingEvent.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierTrackingEvent.tsx"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB"}
@@ -0,0 +1,35 @@
1
+ import { CourierPaging } from "./CourierPaging";
2
+ export interface CourierUserPreferences {
3
+ items: CourierUserPreferencesTopic[];
4
+ paging: CourierPaging;
5
+ }
6
+ export interface CourierUserPreferencesTopic {
7
+ defaultStatus: CourierUserPreferencesStatus;
8
+ hasCustomRouting: boolean;
9
+ customRouting: CourierUserPreferencesChannel[];
10
+ status: CourierUserPreferencesStatus;
11
+ topicId: string;
12
+ topicName: string;
13
+ sectionName: string;
14
+ sectionId: string;
15
+ }
16
+ export interface GetCourierUserPreferencesTopic {
17
+ topic: CourierUserPreferencesTopic;
18
+ }
19
+ export declare enum CourierUserPreferencesStatus {
20
+ OptedIn = "OPTED_IN",
21
+ OptedOut = "OPTED_OUT",
22
+ Required = "REQUIRED",
23
+ Unknown = "UNKNOWN"
24
+ }
25
+ export declare function getCourierUserPreferencesStatusTitle(status: CourierUserPreferencesStatus): string;
26
+ export declare enum CourierUserPreferencesChannel {
27
+ DirectMessage = "direct_message",
28
+ Email = "email",
29
+ Push = "push",
30
+ Sms = "sms",
31
+ Webhook = "webhook",
32
+ Unknown = "unknown"
33
+ }
34
+ export declare function getCourierUserPreferencesChannelTitle(channel: CourierUserPreferencesChannel): string;
35
+ //# sourceMappingURL=CourierUserPreferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierUserPreferences.d.ts","sourceRoot":"","sources":["../../../../src/models/CourierUserPreferences.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,2BAA2B,EAAE,CAAC;IACrC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,6BAA6B,EAAE,CAAC;IAC/C,MAAM,EAAE,4BAA4B,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,2BAA2B,CAAC;CACpC;AAGD,oBAAY,4BAA4B;IACtC,OAAO,aAAa;IACpB,QAAQ,cAAc;IACtB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAGD,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,4BAA4B,GAAG,MAAM,CAajG;AAED,oBAAY,6BAA6B;IACvC,aAAa,mBAAmB;IAChC,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,wBAAgB,qCAAqC,CAAC,OAAO,EAAE,6BAA6B,GAAG,MAAM,CAiBpG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InboxAction.d.ts","sourceRoot":"","sources":["../../../../src/models/InboxAction.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;CACtC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InboxMessage.d.ts","sourceRoot":"","sources":["../../../../src/models/InboxMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EA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SAAS,CAAA;CACtD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iOS_CourierSheet.d.ts","sourceRoot":"","sources":["../../../../src/models/iOS_CourierSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
@@ -0,0 +1,14 @@
1
+ export declare namespace Events {
2
+ namespace Log {
3
+ const DEBUG_LOG = "courierDebugEvent";
4
+ }
5
+ namespace Push {
6
+ const CLICKED = "pushNotificationClicked";
7
+ const DELIVERED = "pushNotificationDelivered";
8
+ }
9
+ }
10
+ export declare class Utils {
11
+ static generateUUID(): string;
12
+ static getPackageVersion(): string;
13
+ }
14
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.tsx"],"names":[],"mappings":"AAEA,yBAAiB,MAAM,CAAC;IAEtB,UAAiB,GAAG,CAAC;QACZ,MAAM,SAAS,sBAAsB,CAAC;KAC9C;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,OAAO,4BAA4B,CAAC;QAC1C,MAAM,SAAS,8BAA8B,CAAC;KACtD;CAEF;AAED,qBAAa,KAAK;IAEhB,MAAM,CAAC,YAAY,IAAI,MAAM;IAU7B,MAAM,CAAC,iBAAiB,IAAI,MAAM;CAInC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CourierInboxView.d.ts","sourceRoot":"","sources":["../../../../src/views/CourierInboxView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAA+C,SAAS,EAA2C,MAAM,cAAc,CAAC;AAC/H,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;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