@capillarytech/creatives-library 1.0.0 → 1.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2347) hide show
  1. package/.htaccess +52 -0
  2. package/app.js +158 -0
  3. package/assets/EmptyStateIllustrationForPromos.png +0 -0
  4. package/assets/Points.png +0 -0
  5. package/assets/access.png +0 -0
  6. package/assets/add-event.png +0 -0
  7. package/assets/addCustomer.svg +9 -0
  8. package/assets/addUser.svg +34 -0
  9. package/assets/advanced-promotion-not-enabled.png +0 -0
  10. package/assets/atoms-icons-24-gift (1).svg +22 -0
  11. package/assets/atoms-illustration.png +0 -0
  12. package/assets/award-point.svg +20 -0
  13. package/assets/badgeMask.svg +3 -0
  14. package/assets/bill-point.svg +15 -0
  15. package/assets/bulb.svg +9 -0
  16. package/assets/bulk-configs-illustration.svg +198 -0
  17. package/assets/calendar.svg +24 -0
  18. package/assets/cap-logo.png +0 -0
  19. package/assets/cluster.svg +3 -0
  20. package/assets/color.svg +20 -0
  21. package/assets/confirmation.png +0 -0
  22. package/assets/contribute.svg +28 -0
  23. package/assets/coupon.svg +26 -0
  24. package/assets/delay.svg +24 -0
  25. package/assets/delete.svg +14 -0
  26. package/assets/dotted.png +0 -0
  27. package/assets/draft-not-exist-Illustration.svg +16 -0
  28. package/assets/drag.svg +8 -0
  29. package/assets/dummyIcon.png +0 -0
  30. package/assets/ebill.svg +15 -0
  31. package/assets/elephant.svg +1 -0
  32. package/assets/empty.svg +35 -0
  33. package/assets/emptyBadge.svg +15 -0
  34. package/assets/enrolPoints.svg +9 -0
  35. package/assets/facebook.svg +22 -0
  36. package/assets/file-selector.svg +11 -0
  37. package/assets/filled-arrow.svg +3 -0
  38. package/assets/forward.svg +20 -0
  39. package/assets/gift.svg +22 -0
  40. package/assets/group.svg +28 -0
  41. package/assets/integration.svg +1 -0
  42. package/assets/link.svg +30 -0
  43. package/assets/loading_img.gif +0 -0
  44. package/assets/loyalty.svg +9 -0
  45. package/assets/membership.svg +24 -0
  46. package/assets/message.svg +20 -0
  47. package/assets/mobile-push.svg +22 -0
  48. package/assets/not-supported-yet.svg +4 -0
  49. package/assets/notepad.svg +20 -0
  50. package/assets/offersIllustration.svg +1 -0
  51. package/assets/penguin.svg +19 -0
  52. package/assets/pigeon.svg +17 -0
  53. package/assets/points.svg +28 -0
  54. package/assets/pointsConversion.svg +15 -0
  55. package/assets/promotion.svg +9 -0
  56. package/assets/reEvaluate.svg +17 -0
  57. package/assets/receipt.svg +14 -0
  58. package/assets/referal.svg +20 -0
  59. package/assets/refresh-delay.svg +24 -0
  60. package/assets/refresh.svg +11 -0
  61. package/assets/removeCart.svg +24 -0
  62. package/assets/removeUser.svg +24 -0
  63. package/assets/renew.svg +11 -0
  64. package/assets/repair.png +0 -0
  65. package/assets/return.svg +20 -0
  66. package/assets/reverse-return.svg +20 -0
  67. package/assets/reward.svg +18 -0
  68. package/assets/rewardCurrencyLimitIcon.svg +11 -0
  69. package/assets/rewards-empty-placeholder.svg +104 -0
  70. package/assets/search.svg +9 -0
  71. package/assets/social.svg +20 -0
  72. package/assets/star.svg +20 -0
  73. package/assets/storeCode.csv +5 -0
  74. package/assets/survey-response.svg +9 -0
  75. package/assets/target.svg +24 -0
  76. package/assets/thin-close.svg +22 -0
  77. package/assets/transfer.svg +24 -0
  78. package/assets/trigger.svg +24 -0
  79. package/assets/unlink.svg +32 -0
  80. package/assets/upgrade.svg +26 -0
  81. package/assets/user_personlaisation.svg +13 -0
  82. package/assets/users.svg +18 -0
  83. package/assets/wechat.svg +18 -0
  84. package/assets/zones.svg +14 -0
  85. package/components/atoms/AccessDeniedTooltipMessage/AccessDeniedTooltipMessage.js +29 -0
  86. package/components/atoms/AccessDeniedTooltipMessage/index.js +1 -0
  87. package/components/atoms/AccessDeniedTooltipMessage/style.js +24 -0
  88. package/components/atoms/ActionViewModeHeader/ActionViewModeHeader.js +60 -0
  89. package/components/atoms/ActionViewModeHeader/index.js +1 -0
  90. package/components/atoms/ActionViewModeHeader/style.js +7 -0
  91. package/components/atoms/AvatarIcon/AvatarIcon.js +42 -0
  92. package/components/atoms/AvatarIcon/index.js +1 -0
  93. package/components/atoms/AvatarIcon/tests/AvatarIcon.test.js +32 -0
  94. package/components/atoms/AvatarIcon/tests/__snapshots__/AvatarIcon.test.js.snap +116 -0
  95. package/components/atoms/ButtonDropdown/ButtonDropdown.js +41 -0
  96. package/components/atoms/ButtonDropdown/index.js +1 -0
  97. package/components/atoms/ButtonDropdown/tests/ButtonDropdown.test.js +20 -0
  98. package/components/atoms/CenteredSkeleton/CenteredSkeleton.js +19 -0
  99. package/components/atoms/CenteredSkeleton/index.js +1 -0
  100. package/components/atoms/CustomIcons/CustomClose.js +14 -0
  101. package/components/atoms/CustomIcons/CustomDelete.js +18 -0
  102. package/components/atoms/CustomIcons/CustomTick.js +14 -0
  103. package/components/atoms/CustomSkeleton/CustomSkeleton.js +61 -0
  104. package/components/atoms/CustomSkeleton/index.js +1 -0
  105. package/components/atoms/CustomSkeleton/stories/CustomSkeleton.stories.js +5 -0
  106. package/components/atoms/CustomSkeleton/style.js +18 -0
  107. package/components/atoms/CustomSkeleton/tests/__snapshots__/index.test.js.snap +66 -0
  108. package/components/atoms/CustomSkeleton/tests/index.test.js +29 -0
  109. package/components/atoms/DateTimePicker/DateTimePicker.js +68 -0
  110. package/components/atoms/DateTimePicker/index.js +1 -0
  111. package/components/atoms/DateTimePicker/style.js +31 -0
  112. package/components/atoms/DisabledMoreIcon/DisabledMoreIcon.js +29 -0
  113. package/components/atoms/DisabledMoreIcon/index.js +1 -0
  114. package/components/atoms/DisabledMoreIcon/styles.js +9 -0
  115. package/components/atoms/ElementToElementWrap/ElementToElementWrap.js +26 -0
  116. package/components/atoms/ElementToElementWrap/index.js +1 -0
  117. package/components/atoms/ElementToElementWrap/stories/ElementToElementWrap.stories.js +5 -0
  118. package/components/atoms/ElementToElementWrap/style.js +5 -0
  119. package/components/atoms/ElementToElementWrap/tests/__snapshots__/index.test.js.snap +22 -0
  120. package/components/atoms/ElementToElementWrap/tests/index.test.js +19 -0
  121. package/components/atoms/EllipsisText/EllipsisText.js +20 -0
  122. package/components/atoms/EllipsisText/index.js +1 -0
  123. package/components/atoms/EllipsisText/tests/__snapshots__/index.test.js.snap +22 -0
  124. package/components/atoms/EllipsisText/tests/index.test.js +19 -0
  125. package/components/atoms/Heading/Heading.js +20 -0
  126. package/components/atoms/Heading/index.js +1 -0
  127. package/components/atoms/Heading/stories/Heading.stories.js +7 -0
  128. package/components/atoms/Heading/style.js +6 -0
  129. package/components/atoms/Heading/tests/__snapshots__/index.test.js.snap +9 -0
  130. package/components/atoms/Heading/tests/index.test.js +10 -0
  131. package/components/atoms/HighlightedBackgroundText/HighlightedBackgroundText.js +32 -0
  132. package/components/atoms/HighlightedBackgroundText/index.js +1 -0
  133. package/components/atoms/HighlightedBackgroundText/style.js +24 -0
  134. package/components/atoms/HighlightedBackgroundText/tests/HighlightedBackgroundText.test.js +21 -0
  135. package/components/atoms/IllustrationWithTitleAndDesc/IllustrationWithTitleAndDesc.js +44 -0
  136. package/components/atoms/IllustrationWithTitleAndDesc/index.js +1 -0
  137. package/components/atoms/IllustrationWithTitleAndDesc/tests/IllustrationWithTitleAndDesc.test.js +21 -0
  138. package/components/atoms/IssuePromotionTooltip/IssuePromotionTooltip.js +66 -0
  139. package/components/atoms/IssuePromotionTooltip/index.js +1 -0
  140. package/components/atoms/Label/Label.js +8 -0
  141. package/components/atoms/Label/index.js +1 -0
  142. package/components/atoms/Label/tests/__snapshots__/index.test.js.snap +17 -0
  143. package/components/atoms/Label/tests/index.test.js +19 -0
  144. package/components/atoms/LabelCustomisation/LabelCustomisation.js +78 -0
  145. package/components/atoms/LabelCustomisation/index.js +1 -0
  146. package/components/atoms/LabelCustomisation/style.js +23 -0
  147. package/components/atoms/LabelCustomisation/tests/LabelCustomisation.test.js +67 -0
  148. package/components/atoms/LdsErrorState/LdsErrorState.js +148 -0
  149. package/components/atoms/LdsErrorState/index.js +1 -0
  150. package/components/atoms/LdsErrorState/tests/__snapshots__/index.test.js.snap +161 -0
  151. package/components/atoms/LdsErrorState/tests/index.test.js +10 -0
  152. package/components/atoms/LdsNoDataState/LdsNoDataState.js +113 -0
  153. package/components/atoms/LdsNoDataState/index.js +1 -0
  154. package/components/atoms/LdsNoDataState/tests/__snapshots__/index.test.js.snap +100 -0
  155. package/components/atoms/LdsNoDataState/tests/index.test.js +10 -0
  156. package/components/atoms/OptionWithTooltip/OptionWithTooltip.js +35 -0
  157. package/components/atoms/OptionWithTooltip/index.js +1 -0
  158. package/components/atoms/PrimaryInput/PrimaryInput.js +63 -0
  159. package/components/atoms/PrimaryInput/constants.js +7 -0
  160. package/components/atoms/PrimaryInput/index.js +1 -0
  161. package/components/atoms/PrimaryInput/stories/PrimaryInput.stories.js +25 -0
  162. package/components/atoms/PrimaryInput/style.js +26 -0
  163. package/components/atoms/PrimaryInput/tests/__snapshots__/index.test.js.snap +78 -0
  164. package/components/atoms/PrimaryInput/tests/index.test.js +60 -0
  165. package/components/atoms/PrimarySelect/PrimarySelect.js +55 -0
  166. package/components/atoms/PrimarySelect/index.js +1 -0
  167. package/components/atoms/PrimarySelect/stories/PrimarySelect.stories.js +25 -0
  168. package/components/atoms/PrimarySelect/style.js +0 -0
  169. package/components/atoms/PrimarySelect/tests/__snapshots__/index.test.js.snap +116 -0
  170. package/components/atoms/PrimarySelect/tests/index.test.js +55 -0
  171. package/components/atoms/RenderRoute/RenderRoute.js +16 -0
  172. package/components/atoms/RenderRoute/index.js +1 -0
  173. package/components/atoms/RenderRoute/stories/RenderRoute.stories.js +8 -0
  174. package/components/atoms/RenderRoute/tests/__snapshots__/index.test.js.snap +179 -0
  175. package/components/atoms/RenderRoute/tests/index.test.js +16 -0
  176. package/components/atoms/RenewalExpression/RenewalExpression.js +72 -0
  177. package/components/atoms/RenewalExpression/index.js +1 -0
  178. package/components/atoms/RenewalExpression/style.js +47 -0
  179. package/components/atoms/ReonNotEnabled/ReonNotEnabled.js +399 -0
  180. package/components/atoms/ReonNotEnabled/index.js +1 -0
  181. package/components/atoms/ReonNotEnabled/stories/ReonNotEnabled.stories.js +5 -0
  182. package/components/atoms/ReonNotEnabled/tests/__snapshots__/index.test.js.snap +528 -0
  183. package/components/atoms/ReonNotEnabled/tests/index.test.js +10 -0
  184. package/components/atoms/RewardCatalogTooltip/RewardCatalogTooltip.js +106 -0
  185. package/components/atoms/RewardCatalogTooltip/index.js +1 -0
  186. package/components/atoms/RoleBasedAuth/RoleBasedAuth.js +28 -0
  187. package/components/atoms/RoleBasedAuth/index.js +1 -0
  188. package/components/atoms/RoleBasedAuth/tests/RequireRoleBasedAuth.test.js +55 -0
  189. package/components/atoms/RoleBasedAuth/tests/mockData.js +303 -0
  190. package/components/atoms/SelectOptionLabelWithInfo/SelectOptionLabelWithInfo.js +77 -0
  191. package/components/atoms/SelectOptionLabelWithInfo/index.js +1 -0
  192. package/components/atoms/SelectOptionLabelWithInfo/tests/__snapshots__/index.test.js.snap +67 -0
  193. package/components/atoms/SelectOptionLabelWithInfo/tests/index.test.js +23 -0
  194. package/components/atoms/SortIcon/SortIcon.js +53 -0
  195. package/components/atoms/SortIcon/index.js +1 -0
  196. package/components/atoms/SortIcon/stories/SortIcon.stories.js +5 -0
  197. package/components/atoms/SortIcon/style.js +31 -0
  198. package/components/atoms/SortIcon/tests/__snapshots__/index.test.js.snap +46 -0
  199. package/components/atoms/SortIcon/tests/index.test.js +18 -0
  200. package/components/atoms/StatusColor/StatusColor.js +63 -0
  201. package/components/atoms/StatusColor/index.js +1 -0
  202. package/components/atoms/StatusColor/stories/StatusColor.stories.js +7 -0
  203. package/components/atoms/StatusColor/style.js +9 -0
  204. package/components/atoms/StatusColor/tests/__snapshots__/index.test.js.snap +28 -0
  205. package/components/atoms/StatusColor/tests/index.test.js +20 -0
  206. package/components/atoms/Tag/Tag.js +97 -0
  207. package/components/atoms/Tag/index.js +1 -0
  208. package/components/atoms/Tag/stories/Tag.stories.js +14 -0
  209. package/components/atoms/Tag/style.js +19 -0
  210. package/components/atoms/Tag/tests/__snapshots__/index.test.js.snap +101 -0
  211. package/components/atoms/Tag/tests/index.test.js +34 -0
  212. package/components/atoms/Toaster/Toaster.js +50 -0
  213. package/components/atoms/Toaster/index.js +1 -0
  214. package/components/atoms/Toaster/style.js +14 -0
  215. package/components/atoms/Toaster/tests/Toastr.test.js +32 -0
  216. package/components/atoms/Toaster/toastrStyle.js +44 -0
  217. package/components/atoms/ToastrMessage/ToastrMessage.js +68 -0
  218. package/components/atoms/ToastrMessage/index.js +1 -0
  219. package/components/atoms/ToastrMessage/style.js +38 -0
  220. package/components/atoms/ToastrMessage/tests/ToastrMessageTimer.test.js +60 -0
  221. package/components/atoms/TrackerExpressionCondition/TrackerExpressionCondition.js +118 -0
  222. package/components/atoms/TrackerExpressionCondition/index.js +1 -0
  223. package/components/atoms/TrackerExpressionCondition/style.js +38 -0
  224. package/components/atoms/TrackerExpressionCondition/tests/TrackerExpressionCondition.test.js +19 -0
  225. package/components/atoms/TriggerAction/TriggerAction.js +42 -0
  226. package/components/atoms/TriggerAction/index.js +1 -0
  227. package/components/atoms/TriggerAction/tests/__snapshots__/index.test.js.snap +35 -0
  228. package/components/atoms/TriggerAction/tests/index.test.js +54 -0
  229. package/components/atoms/VersioningNote/VersioningNote.js +46 -0
  230. package/components/atoms/VersioningNote/index.js +1 -0
  231. package/components/atoms/VersioningNote/style.js +31 -0
  232. package/components/atoms/VersioningNote/tests/VersioningNote.test.js +27 -0
  233. package/components/molecules/AccessCard/AccessCard.js +35 -0
  234. package/components/molecules/AccessCard/index.js +1 -0
  235. package/components/molecules/AccessCard/messages.js +20 -0
  236. package/components/molecules/AccessCard/stories/AccessCard.stories.js +7 -0
  237. package/components/molecules/AccessCard/style.js +22 -0
  238. package/components/molecules/AccessCard/tests/AccessCard.test.js +13 -0
  239. package/components/molecules/AccessCard/tests/__snapshots__/AccessCard.test.js.snap +32 -0
  240. package/components/molecules/AccessDeniedTooltip/AccessDeniedTooltip.js +34 -0
  241. package/components/molecules/AccessDeniedTooltip/index.js +1 -0
  242. package/components/molecules/AccessDeniedTooltip/tests/AccessDeniedTooltip.test.js +35 -0
  243. package/components/molecules/ActionTitle/ActionTitle.js +47 -0
  244. package/components/molecules/ActionTitle/index.js +1 -0
  245. package/components/molecules/ActionTitle/tests/ActionTitle.test.js +44 -0
  246. package/components/molecules/ActionTitle/tests/__snapshots__/ActionTitle.test.js.snap +31 -0
  247. package/components/molecules/AddActionConditionWorkflow/AddActionConditionWorkflow.js +84 -0
  248. package/components/molecules/AddActionConditionWorkflow/index.js +1 -0
  249. package/components/molecules/AddActionConditionWorkflow/style.js +23 -0
  250. package/components/molecules/AddActionConditionWorkflow/tests/AddActionConditionWorkflow.test.js +16 -0
  251. package/components/molecules/AddActionConditionWorkflow/tests/__snapshots__/AddActionConditionWorkflow.test.js.snap +40 -0
  252. package/components/molecules/AddMoreCard/AddMoreCard.js +22 -0
  253. package/components/molecules/AddMoreCard/index.js +1 -0
  254. package/components/molecules/AddMoreCard/style.js +23 -0
  255. package/components/molecules/AddMoreCard/tests/AddMoreCard.test.js +23 -0
  256. package/components/molecules/AddMoreCard/tests/__snapshots__/AddMoreCard.test.js.snap +30 -0
  257. package/components/molecules/AddPartnerPrograms/AddPartnerPrograms.js +1012 -0
  258. package/components/molecules/AddPartnerPrograms/constants.js +2 -0
  259. package/components/molecules/AddPartnerPrograms/index.js +1 -0
  260. package/components/molecules/AddPartnerPrograms/messages.js +60 -0
  261. package/components/molecules/AddPartnerPrograms/style.js +53 -0
  262. package/components/molecules/AddPartnerPrograms/tests/AddExternalPrograms.test.js +493 -0
  263. package/components/molecules/AddPartnerPrograms/tests/AddSupplementaryPrograms.test.js +489 -0
  264. package/components/molecules/AddPartnerPrograms/tests/mockData.js +205 -0
  265. package/components/molecules/AddPartnerPrograms/utils.js +22 -0
  266. package/components/molecules/AddPartnerProgramsBasicDetails/AddPartnerProgramsBasicDetails.js +156 -0
  267. package/components/molecules/AddPartnerProgramsBasicDetails/index.js +1 -0
  268. package/components/molecules/AddPartnerProgramsBasicDetails/messages.js +53 -0
  269. package/components/molecules/AddPartnerProgramsBasicDetails/style.js +60 -0
  270. package/components/molecules/AddPartnerProgramsBasicDetails/tests/AddSupplementaryBasicDetails.test.js +77 -0
  271. package/components/molecules/AddPartnerProgramsBasicDetails/utils.js +116 -0
  272. package/components/molecules/AddTierBanner/AddTierBanner.js +45 -0
  273. package/components/molecules/AddTierBanner/index.js +1 -0
  274. package/components/molecules/AddTierBanner/tests/AddTierBanner.test.js +27 -0
  275. package/components/molecules/AddTierBanner/tests/__snapshots__/AddTierBanner.test.js.snap +25 -0
  276. package/components/molecules/AddTierPrimaryInfo/AddTierPrimaryInfo.js +146 -0
  277. package/components/molecules/AddTierPrimaryInfo/index.js +1 -0
  278. package/components/molecules/AddTierPrimaryInfo/messages.js +28 -0
  279. package/components/molecules/AddTierPrimaryInfo/tests/AddTierPrimaryInfo.test.js +49 -0
  280. package/components/molecules/AddTierPrimaryInfo/tests/__snapshots__/AddTierPrimaryInfo.test.js.snap +132 -0
  281. package/components/molecules/AddTrackersInfo/AddTrackersInfo.js +48 -0
  282. package/components/molecules/AddTrackersInfo/index.js +1 -0
  283. package/components/molecules/AddTrackersInfo/messages.js +17 -0
  284. package/components/molecules/AddTrackersInfo/style.js +31 -0
  285. package/components/molecules/AddTrackersInfo/tests/AddTrackersInfo.test.js +23 -0
  286. package/components/molecules/AddTrackersInfo/tests/__snapshots__/AddTrackersInfo.test.js.snap +103 -0
  287. package/components/molecules/AdvanceSettingScrollContainer/AdvanceSettingScrollContainer.js +64 -0
  288. package/components/molecules/AdvanceSettingScrollContainer/index.js +1 -0
  289. package/components/molecules/AdvanceSettingScrollContainer/style.js +28 -0
  290. package/components/molecules/AdvanceSettingScrollContainer/tests/AdvanceSettingScrollContainer.test.js +30 -0
  291. package/components/molecules/AdvanceSettingScrollContainer/tests/__snapshots__/AdvanceSettingScrollContainer.test.js.snap +82 -0
  292. package/components/molecules/AlternateCurrencyWorkflowHeader/AlternateCurrencyWorkflowHeader.js +114 -0
  293. package/components/molecules/AlternateCurrencyWorkflowHeader/index.js +1 -0
  294. package/components/molecules/AlternateCurrencyWorkflowHeader/messages.js +34 -0
  295. package/components/molecules/AlternateCurrencyWorkflowHeader/style.js +38 -0
  296. package/components/molecules/AnyOrCustomPathBlock/AnyOrCustomPathBlock.js +149 -0
  297. package/components/molecules/AnyOrCustomPathBlock/index.js +1 -0
  298. package/components/molecules/AnyOrCustomPathBlock/style.js +94 -0
  299. package/components/molecules/BenefitsAndLimitsList/BenefitsAndLimitsList.js +327 -0
  300. package/components/molecules/BenefitsAndLimitsList/actions.js +13 -0
  301. package/components/molecules/BenefitsAndLimitsList/constants.js +3 -0
  302. package/components/molecules/BenefitsAndLimitsList/index.js +1 -0
  303. package/components/molecules/BenefitsAndLimitsList/messages.js +56 -0
  304. package/components/molecules/BenefitsAndLimitsList/reducer.js +33 -0
  305. package/components/molecules/BenefitsAndLimitsList/saga.js +40 -0
  306. package/components/molecules/BenefitsAndLimitsList/selectors.js +26 -0
  307. package/components/molecules/BenefitsAndLimitsList/style.js +71 -0
  308. package/components/molecules/BenefitsAndLimitsList/tests/BenefitsAndLimitsList.test.js +124 -0
  309. package/components/molecules/BenefitsAndLimitsList/tests/actions.test.js +10 -0
  310. package/components/molecules/BenefitsAndLimitsList/tests/mockData.js +551 -0
  311. package/components/molecules/BenefitsAndLimitsList/tests/reducer.test.js +51 -0
  312. package/components/molecules/BenefitsAndLimitsList/tests/saga.test.js +62 -0
  313. package/components/molecules/BenefitsAndLimitsList/tests/selectors.test.js +41 -0
  314. package/components/molecules/BenefitsAndLimitsList/utils.js +51 -0
  315. package/components/molecules/BenefitsAndLimitsPane/BenefitsAndLimitsPane.js +120 -0
  316. package/components/molecules/BenefitsAndLimitsPane/index.js +1 -0
  317. package/components/molecules/BenefitsAndLimitsPane/messages.js +19 -0
  318. package/components/molecules/BenefitsAndLimitsPane/style.js +56 -0
  319. package/components/molecules/BenefitsAndLimitsPane/tests/BenefitsAndLimitsPane.test.js +47 -0
  320. package/components/molecules/BenefitsAndLimitsPane/tests/mockData.js +14 -0
  321. package/components/molecules/BulkConfigPulishAlert/BulkConfigPulishAlert.js +98 -0
  322. package/components/molecules/BulkConfigPulishAlert/index.js +1 -0
  323. package/components/molecules/BulkConfigPulishAlert/messages.js +28 -0
  324. package/components/molecules/BulkConfigPulishAlert/style.js +48 -0
  325. package/components/molecules/BulkConfigPulishAlert/tests/BulkConfigPublishAlert.test.js +57 -0
  326. package/components/molecules/ButtonWithPagination/ButtonWithPagination.js +51 -0
  327. package/components/molecules/ButtonWithPagination/index.js +1 -0
  328. package/components/molecules/ButtonWithPagination/style.js +9 -0
  329. package/components/molecules/CapReportLink/CapReportLink.js +52 -0
  330. package/components/molecules/CapReportLink/index.js +1 -0
  331. package/components/molecules/CapReportLink/style.js +29 -0
  332. package/components/molecules/CapReportLink/tests/CapReport.test.js +49 -0
  333. package/components/molecules/CardWithHeadingAction/CardWithHeadingAction.js +47 -0
  334. package/components/molecules/CardWithHeadingAction/index.js +1 -0
  335. package/components/molecules/CardWithHeadingAction/style.js +37 -0
  336. package/components/molecules/CardsCommunication/CardsCommunication.js +142 -0
  337. package/components/molecules/CardsCommunication/constants.js +5 -0
  338. package/components/molecules/CardsCommunication/index.js +2 -0
  339. package/components/molecules/CardsCommunication/messages.js +20 -0
  340. package/components/molecules/CardsCommunication/style.js +18 -0
  341. package/components/molecules/CardsCommunication/tests/CardCommunication.test.js +50 -0
  342. package/components/molecules/CardsCommunication/utils.js +35 -0
  343. package/components/molecules/CardsWithCheckboxCommunication/CardsWithCheckboxCommunication.js +58 -0
  344. package/components/molecules/CardsWithCheckboxCommunication/constants.js +1 -0
  345. package/components/molecules/CardsWithCheckboxCommunication/index.js +1 -0
  346. package/components/molecules/CardsWithCheckboxCommunication/style.js +14 -0
  347. package/components/molecules/CartLevelLimits/CartLevelLimits.js +135 -0
  348. package/components/molecules/CartLevelLimits/index.js +1 -0
  349. package/components/molecules/CartLevelLimits/style.js +66 -0
  350. package/components/molecules/CartLevelLimits/tests/CartLevelLimit.test.js +62 -0
  351. package/components/molecules/CheckboxWithInputPrefix/CheckboxWithInputPrefix.js +118 -0
  352. package/components/molecules/CheckboxWithInputPrefix/index.js +1 -0
  353. package/components/molecules/CheckboxWithInputPrefix/style.js +23 -0
  354. package/components/molecules/CollapsableContent/CollapsableContent.js +185 -0
  355. package/components/molecules/CollapsableContent/index.js +1 -0
  356. package/components/molecules/CollapsableContent/style.js +108 -0
  357. package/components/molecules/CollapsableHeaderContent/CollapsableHeaderContent.js +69 -0
  358. package/components/molecules/CollapsableHeaderContent/index.js +1 -0
  359. package/components/molecules/CollapsableHeaderContent/style.js +51 -0
  360. package/components/molecules/CollapsableHeaderContent/tests/CollapsableHeaderContent.test.js +33 -0
  361. package/components/molecules/CollapseWithDateRange/CollapseWithDateRange.js +72 -0
  362. package/components/molecules/CollapseWithDateRange/index.js +1 -0
  363. package/components/molecules/CollapseWithInput/CollapseWithInput.js +51 -0
  364. package/components/molecules/CollapseWithInput/index.js +1 -0
  365. package/components/molecules/CollapseWithMultiSelect/CollapseWithMultiSelect.js +78 -0
  366. package/components/molecules/CollapseWithMultiSelect/index.js +1 -0
  367. package/components/molecules/CollapseWithMultiSelect/style.js +9 -0
  368. package/components/molecules/CollapseWithRadioGroup/CollapseWithRadioGroup.js +67 -0
  369. package/components/molecules/CollapseWithRadioGroup/index.js +1 -0
  370. package/components/molecules/CollapseWithSelectAndInput/CollapseWithSelectAndInput.js +93 -0
  371. package/components/molecules/CollapseWithSelectAndInput/index.js +1 -0
  372. package/components/molecules/CollapseWithSelectAndInput/style.js +9 -0
  373. package/components/molecules/CollapseWithStore/CollapseWithStore.js +276 -0
  374. package/components/molecules/CollapseWithStore/index.js +1 -0
  375. package/components/molecules/CollapseWithStore/messages.js +68 -0
  376. package/components/molecules/CollapseWithStore/style.js +108 -0
  377. package/components/molecules/CollapseWithStore/tests/CollapseWithStore.test.js +30 -0
  378. package/components/molecules/CollapseWithStore/tests/mockData.js +72 -0
  379. package/components/molecules/CollapseWithSwitchSelect/CollapseWithSwitchSelect.js +103 -0
  380. package/components/molecules/CollapseWithSwitchSelect/index.js +1 -0
  381. package/components/molecules/ColorPatch/ColorPatch.js +26 -0
  382. package/components/molecules/ColorPatch/index.js +1 -0
  383. package/components/molecules/ColorPatch/style.js +34 -0
  384. package/components/molecules/ColorPatch/tests/ColorPatch.test.js +21 -0
  385. package/components/molecules/ColorPatch/tests/__snapshots__/ColorPatch.test.js.snap +5100 -0
  386. package/components/molecules/ColorSelector/ColorSelector.js +150 -0
  387. package/components/molecules/ColorSelector/index.js +1 -0
  388. package/components/molecules/ColorSelector/style.js +76 -0
  389. package/components/molecules/ColorSelector/tests/ColorSelector.test.js +62 -0
  390. package/components/molecules/CommunicationTable/CommunicationTable.js +349 -0
  391. package/components/molecules/CommunicationTable/constants.js +9 -0
  392. package/components/molecules/CommunicationTable/index.js +1 -0
  393. package/components/molecules/CommunicationTable/messages.js +20 -0
  394. package/components/molecules/CommunicationTable/stories/CommunicationTable.stories.js +15 -0
  395. package/components/molecules/CommunicationTable/stories/mockData.js +52 -0
  396. package/components/molecules/CommunicationTable/style.js +129 -0
  397. package/components/molecules/CommunicationTable/tests/index.test.js +44 -0
  398. package/components/molecules/ConditionExpressionLayout/ConditionExpressionLayout.js +103 -0
  399. package/components/molecules/ConditionExpressionLayout/index.js +1 -0
  400. package/components/molecules/ConfirmationModal/ConfirmationModal.js +118 -0
  401. package/components/molecules/ConfirmationModal/index.js +1 -0
  402. package/components/molecules/ConfirmationModal/style.js +171 -0
  403. package/components/molecules/ContentPreviews/ContentPreviews.js +123 -0
  404. package/components/molecules/ContentPreviews/constants.js +1 -0
  405. package/components/molecules/ContentPreviews/index.js +1 -0
  406. package/components/molecules/ContentPreviews/mockData.js +95 -0
  407. package/components/molecules/ContentPreviews/style.js +36 -0
  408. package/components/molecules/ContentPreviews/tests/__snapshots__/index.test.js.snap +103 -0
  409. package/components/molecules/ContentPreviews/tests/index.test.js +30 -0
  410. package/components/molecules/ContentWithHeading/ContentWithHeading.js +27 -0
  411. package/components/molecules/ContentWithHeading/index.js +1 -0
  412. package/components/molecules/ContentWithHeading/style.js +0 -0
  413. package/components/molecules/CreateActionButton/CreateActionButton.js +73 -0
  414. package/components/molecules/CreateActionButton/index.js +1 -0
  415. package/components/molecules/CreateActionButton/style.js +10 -0
  416. package/components/molecules/CreateActionButton/tests/CreateActionButton.test.js +27 -0
  417. package/components/molecules/CreateActionButton/tests/__snapshots__/CreateActionButton.test.js.snap +57 -0
  418. package/components/molecules/CreateCustomFieldPopover/CreateCustomFieldPopover.js +236 -0
  419. package/components/molecules/CreateCustomFieldPopover/index.js +1 -0
  420. package/components/molecules/CreateCustomFieldPopover/style.js +55 -0
  421. package/components/molecules/CreateCustomFieldPopover/tests/CreateCustomFieldPopover.test.js +137 -0
  422. package/components/molecules/CreateOfferInfo/CreateOfferInfo.js +65 -0
  423. package/components/molecules/CreateOfferInfo/index.js +1 -0
  424. package/components/molecules/CreateOfferInfo/messages.js +17 -0
  425. package/components/molecules/CreateOfferInfo/style.js +23 -0
  426. package/components/molecules/CreateOfferInfo/tests/CreateOfferInfo.test.js +23 -0
  427. package/components/molecules/CreateOfferInfo/tests/__snapshots__/CreateOfferInfo.test.js.snap +127 -0
  428. package/components/molecules/CreateTierInfo/CreateTierInfo.js +64 -0
  429. package/components/molecules/CreateTierInfo/index.js +1 -0
  430. package/components/molecules/CreateTierInfo/messages.js +25 -0
  431. package/components/molecules/CreateTierInfo/style.js +24 -0
  432. package/components/molecules/CreateTracker/CreateTracker.js +1300 -0
  433. package/components/molecules/CreateTracker/actions.js +14 -0
  434. package/components/molecules/CreateTracker/constants.js +14 -0
  435. package/components/molecules/CreateTracker/index.js +1 -0
  436. package/components/molecules/CreateTracker/messages.js +289 -0
  437. package/components/molecules/CreateTracker/reducer.js +51 -0
  438. package/components/molecules/CreateTracker/saga.js +64 -0
  439. package/components/molecules/CreateTracker/selectors.js +32 -0
  440. package/components/molecules/CreateTracker/style.js +115 -0
  441. package/components/molecules/CreateTracker/tests/CreateTracker.test.js +426 -0
  442. package/components/molecules/CreateTracker/tests/__snapshots__/actions.test.js.snap +44 -0
  443. package/components/molecules/CreateTracker/tests/__snapshots__/reducer.test.js.snap +112 -0
  444. package/components/molecules/CreateTracker/tests/actions.test.js +19 -0
  445. package/components/molecules/CreateTracker/tests/mockData.js +876 -0
  446. package/components/molecules/CreateTracker/tests/reducer.test.js +164 -0
  447. package/components/molecules/CreateTracker/tests/saga.test.js +178 -0
  448. package/components/molecules/CreateTracker/tests/selectors.test.js +67 -0
  449. package/components/molecules/CreativesErrorFallBack/CreativesErrorFallback.js +33 -0
  450. package/components/molecules/CreativesErrorFallBack/index.js +1 -0
  451. package/components/molecules/CreativesErrorFallBack/style.js +10 -0
  452. package/components/molecules/CustomTree/CustomTree.js +315 -0
  453. package/components/molecules/CustomTree/index.js +1 -0
  454. package/components/molecules/CustomTree/messages.js +20 -0
  455. package/components/molecules/CustomTree/style.js +122 -0
  456. package/components/molecules/CustomTree/tests/CustomTree.test.js +87 -0
  457. package/components/molecules/CustomTree/tests/mocks/data.js +50 -0
  458. package/components/molecules/CustomTree/utils.js +40 -0
  459. package/components/molecules/CustomTreeHelper/CustomTreeHelper.js +284 -0
  460. package/components/molecules/CustomTreeHelper/constants.js +20 -0
  461. package/components/molecules/CustomTreeHelper/index.js +1 -0
  462. package/components/molecules/CustomTreeHelper/messages.js +133 -0
  463. package/components/molecules/CustomTreeHelper/style.js +183 -0
  464. package/components/molecules/CustomTreeHelper/tests/CustomTreeHelper.test.js +474 -0
  465. package/components/molecules/CustomTreeHelper/tests/mocks/data.js +152 -0
  466. package/components/molecules/CustomerLevelLimits/CustomerLevelLimits.js +203 -0
  467. package/components/molecules/CustomerLevelLimits/index.js +1 -0
  468. package/components/molecules/CustomerLevelLimits/messages.js +81 -0
  469. package/components/molecules/CustomerLevelLimits/style.js +72 -0
  470. package/components/molecules/CustomerLevelLimits/tests/CustomerLevelLimits.test.js +69 -0
  471. package/components/molecules/CustomerLevelLimits/tests/mockData.js +189 -0
  472. package/components/molecules/DateTimeMetaDataAttribute/DateTimeMetaDataAttribute.js +143 -0
  473. package/components/molecules/DateTimeMetaDataAttribute/index.js +1 -0
  474. package/components/molecules/DateTimeMetaDataAttribute/style.js +17 -0
  475. package/components/molecules/DelayCreatives/DelayCreatives.js +262 -0
  476. package/components/molecules/DelayCreatives/index.js +1 -0
  477. package/components/molecules/DelayCreatives/messages.js +20 -0
  478. package/components/molecules/DelayCreatives/style.js +64 -0
  479. package/components/molecules/DelayCreatives/tests/DelayCreatives.test.js +28 -0
  480. package/components/molecules/DestinationMapper/DestinationMapper.js +225 -0
  481. package/components/molecules/DestinationMapper/index.js +1 -0
  482. package/components/molecules/DestinationMapper/messages.js +59 -0
  483. package/components/molecules/DestinationMapper/style.js +125 -0
  484. package/components/molecules/DestinationMapper/tests/DestinationMapper.test.js +73 -0
  485. package/components/molecules/DifferentDestinationPrograms/DifferentDestinationPrograms.js +692 -0
  486. package/components/molecules/DifferentDestinationPrograms/index.js +1 -0
  487. package/components/molecules/DifferentDestinationPrograms/messages.js +90 -0
  488. package/components/molecules/DifferentDestinationPrograms/style.js +242 -0
  489. package/components/molecules/DifferentDestinationPrograms/tests/DifferentDestinationPrograms.test.js +195 -0
  490. package/components/molecules/DifferentDestinationPrograms/tests/mockData.js +256 -0
  491. package/components/molecules/DifferentDestinationPrograms/utils.js +197 -0
  492. package/components/molecules/DividerInlinedText/DividerInlinedText.js +42 -0
  493. package/components/molecules/DividerInlinedText/index.js +1 -0
  494. package/components/molecules/DividerInlinedText/style.js +22 -0
  495. package/components/molecules/DividerWithOverlappedText/DividerWithOverlappedText.js +48 -0
  496. package/components/molecules/DividerWithOverlappedText/index.js +1 -0
  497. package/components/molecules/DividerWithOverlappedText/style.js +16 -0
  498. package/components/molecules/DoubleMetaDataAttribute/DoubleMetaDataAttribute.js +92 -0
  499. package/components/molecules/DoubleMetaDataAttribute/index.js +1 -0
  500. package/components/molecules/DoubleMetaDataAttribute/messages.js +10 -0
  501. package/components/molecules/DoubleMetaDataAttribute/style.js +7 -0
  502. package/components/molecules/DowngradeTier/DowngradeTier.js +778 -0
  503. package/components/molecules/DowngradeTier/constants.js +18 -0
  504. package/components/molecules/DowngradeTier/index.js +1 -0
  505. package/components/molecules/DowngradeTier/messages.js +123 -0
  506. package/components/molecules/DowngradeTier/style.js +230 -0
  507. package/components/molecules/DowngradeTier/tests/DowngradeTier.test.js +274 -0
  508. package/components/molecules/DowngradeTier/utils.js +88 -0
  509. package/components/molecules/EarnStrategyConditions/EarnStrategyConditions.js +236 -0
  510. package/components/molecules/EarnStrategyConditions/index.js +1 -0
  511. package/components/molecules/EarnStrategyConditions/messages.js +42 -0
  512. package/components/molecules/EarnStrategyConditions/style.js +68 -0
  513. package/components/molecules/EarnStrategyConditions/tests/EarnStrategyConditions.test.js +64 -0
  514. package/components/molecules/EarnStrategyConditions/tests/EarnStrategySameConditions.test.js +102 -0
  515. package/components/molecules/EmptyStateIllustration/EmptyStateIllustration.js +69 -0
  516. package/components/molecules/EmptyStateIllustration/index.js +1 -0
  517. package/components/molecules/EmptyStateIllustration/messages.js +21 -0
  518. package/components/molecules/EmptyStateIllustration/stories/EmptyStateIllustration.stories.js +7 -0
  519. package/components/molecules/EmptyStateIllustration/style.js +11 -0
  520. package/components/molecules/EmptyStateIllustration/tests/EmptyStateIllustration.test.js +35 -0
  521. package/components/molecules/ErrorBoundaryWrapper/ErrorBoundaryWrapper.js +87 -0
  522. package/components/molecules/ErrorBoundaryWrapper/index.js +1 -0
  523. package/components/molecules/ErrorBoundaryWrapper/messages.js +24 -0
  524. package/components/molecules/ExpandedStepsWithContent/ExandedStepsWithContent.js +98 -0
  525. package/components/molecules/ExpandedStepsWithContent/index.js +1 -0
  526. package/components/molecules/ExpandedStepsWithContent/messages.js +16 -0
  527. package/components/molecules/ExpandedStepsWithContent/style.js +63 -0
  528. package/components/molecules/ExpiryConditionSlideBox/ExpiryConditionSlideBox.js +169 -0
  529. package/components/molecules/ExpiryConditionSlideBox/constants.js +4 -0
  530. package/components/molecules/ExpiryConditionSlideBox/index.js +1 -0
  531. package/components/molecules/ExpiryConditionSlideBox/messages.js +106 -0
  532. package/components/molecules/ExpiryConditionSlideBox/style.js +36 -0
  533. package/components/molecules/ExpiryConditionSlideBox/tests/ExpiryConditionSlideBox.test.js +42 -0
  534. package/components/molecules/ExpiryReminder/ExpiryReminder.js +229 -0
  535. package/components/molecules/ExpiryReminder/index.js +1 -0
  536. package/components/molecules/ExpiryReminder/messages.js +23 -0
  537. package/components/molecules/ExpiryReminder/style.js +61 -0
  538. package/components/molecules/ExpiryReminder/tests/ExpiryReminder.test.js +204 -0
  539. package/components/molecules/FileSelector/FileSelector.js +82 -0
  540. package/components/molecules/FileSelector/index.js +1 -0
  541. package/components/molecules/FileSelector/messages.js +20 -0
  542. package/components/molecules/FileSelector/style.js +14 -0
  543. package/components/molecules/HeaderWithButton/HeaderWithButton.js +49 -0
  544. package/components/molecules/HeaderWithButton/index.js +1 -0
  545. package/components/molecules/HeaderWithInput/HeaderWithInput.js +98 -0
  546. package/components/molecules/HeaderWithInput/index.js +1 -0
  547. package/components/molecules/HeaderWithInput/style.js +18 -0
  548. package/components/molecules/HeaderWithSwitch/HeaderWithSwitch.js +121 -0
  549. package/components/molecules/HeaderWithSwitch/index.js +1 -0
  550. package/components/molecules/ImageUploadMolecule/UploadImageMolecule.js +137 -0
  551. package/components/molecules/ImageUploadMolecule/index.js +1 -0
  552. package/components/molecules/ImageUploadMolecule/messages.js +26 -0
  553. package/components/molecules/ImageUploadMolecule/style.js +69 -0
  554. package/components/molecules/ImageUploadMolecule/tests/UploadImageMolecule.test.js +139 -0
  555. package/components/molecules/InfoBanner/InfoBanner.js +55 -0
  556. package/components/molecules/InfoBanner/index.js +1 -0
  557. package/components/molecules/InfoBanner/style.js +41 -0
  558. package/components/molecules/InputToInput/InputToInput.js +51 -0
  559. package/components/molecules/InputToInput/index.js +1 -0
  560. package/components/molecules/InputToInput/stories/InputToInput.stories.js +24 -0
  561. package/components/molecules/InputToInput/style.js +10 -0
  562. package/components/molecules/InputToInput/tests/index.test.js +11 -0
  563. package/components/molecules/InputWithPrefixSufix/InputWithPrefixSufix.js +70 -0
  564. package/components/molecules/InputWithPrefixSufix/index.js +1 -0
  565. package/components/molecules/InputWithPrefixSufix/style.js +27 -0
  566. package/components/molecules/InputWithPrefixSufixAndCommChannel/InputWithPrefixSufixAndCommChannel.js +135 -0
  567. package/components/molecules/InputWithPrefixSufixAndCommChannel/index.js +1 -0
  568. package/components/molecules/InputWithPrefixSufixAndCommChannel/messages.js +11 -0
  569. package/components/molecules/InputWithPrefixSufixAndCommChannel/style.js +65 -0
  570. package/components/molecules/InstructionList.js/InstructionList.js +41 -0
  571. package/components/molecules/InstructionList.js/index.js +1 -0
  572. package/components/molecules/InstructionList.js/style.js +54 -0
  573. package/components/molecules/IssueRewardsCustomFields/IssueRewardsCustomFields.js +892 -0
  574. package/components/molecules/IssueRewardsCustomFields/index.js +1 -0
  575. package/components/molecules/IssueRewardsCustomFields/messages.js +108 -0
  576. package/components/molecules/IssueRewardsCustomFields/style.js +159 -0
  577. package/components/molecules/IssueRewardsCustomFields/tests/IssueRewardsCustomFields.test.js +212 -0
  578. package/components/molecules/IssueRewardsCustomFields/tests/mockData.js +164 -0
  579. package/components/molecules/IssueRewardsCustomFields/tests/utils.test.js +38 -0
  580. package/components/molecules/IssueRewardsCustomFields/utils.js +88 -0
  581. package/components/molecules/LabelValueWithVerticalDivider/LabelValueWithVerticalDivider.js +82 -0
  582. package/components/molecules/LabelValueWithVerticalDivider/index.js +1 -0
  583. package/components/molecules/LabelValueWithVerticalDivider/style.js +28 -0
  584. package/components/molecules/LabelValueWithVerticalDivider/tests/LabelValueWithVerticalDivider.test.js +46 -0
  585. package/components/molecules/LabelValueWithVerticalDivider/tests/mockData.js +14 -0
  586. package/components/molecules/LabelWithDivider/LabelWithDivider.js +45 -0
  587. package/components/molecules/LabelWithDivider/index.js +1 -0
  588. package/components/molecules/ListDragAndDrop/ListDragAndDrop.js +103 -0
  589. package/components/molecules/ListDragAndDrop/index.js +1 -0
  590. package/components/molecules/ListDragAndDrop/tests/ListDragAndDrop.test.js +30 -0
  591. package/components/molecules/LoyaltyStatus/LoyaltyStatus.js +57 -0
  592. package/components/molecules/LoyaltyStatus/constants.js +6 -0
  593. package/components/molecules/LoyaltyStatus/index.js +1 -0
  594. package/components/molecules/LoyaltyStatus/messages.js +24 -0
  595. package/components/molecules/LoyaltyStatus/stories/LoyaltyStatus.stories.js +7 -0
  596. package/components/molecules/LoyaltyStatus/style.js +12 -0
  597. package/components/molecules/LoyaltyStatus/tests/LoyaltyStatus.test.js +17 -0
  598. package/components/molecules/LoyaltyStatus/tests/__snapshots__/LoyaltyStatus.test.js.snap +7681 -0
  599. package/components/molecules/LoyaltyStatus/tests/mockdata.js +1 -0
  600. package/components/molecules/MoreLabel/MoreLabel.js +56 -0
  601. package/components/molecules/MoreLabel/index.js +1 -0
  602. package/components/molecules/NoTargetView/NoTargetView.js +84 -0
  603. package/components/molecules/NoTargetView/index.js +1 -0
  604. package/components/molecules/NoTargetView/style.js +55 -0
  605. package/components/molecules/NoTargetView/tests/NoTargetView.test.js +53 -0
  606. package/components/molecules/NudgeModal/NudgeModal.js +78 -0
  607. package/components/molecules/NudgeModal/index.js +1 -0
  608. package/components/molecules/NudgeModal/style.js +26 -0
  609. package/components/molecules/NumberInput/NumberInput.js +138 -0
  610. package/components/molecules/NumberInput/constants.js +8 -0
  611. package/components/molecules/NumberInput/index.js +1 -0
  612. package/components/molecules/NumberInput/style.js +10 -0
  613. package/components/molecules/PageHeaderDescription/PageHeaderDescription.js +123 -0
  614. package/components/molecules/PageHeaderDescription/constants.js +0 -0
  615. package/components/molecules/PageHeaderDescription/index.js +1 -0
  616. package/components/molecules/PageHeaderDescription/messages.js +11 -0
  617. package/components/molecules/PageHeaderDescription/stories/PageHeaderDescription.stories.js +14 -0
  618. package/components/molecules/PageHeaderDescription/style.js +45 -0
  619. package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription.test.js +36 -0
  620. package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription_jest.test.js +53 -0
  621. package/components/molecules/PageHeaderDescription/tests/__snapshots__/PageHeaderDescription.test.js.snap +245 -0
  622. package/components/molecules/PartnerProgramsConfigPane/PartnerProgramsConfigPane.js +263 -0
  623. package/components/molecules/PartnerProgramsConfigPane/constants.js +2 -0
  624. package/components/molecules/PartnerProgramsConfigPane/index.js +1 -0
  625. package/components/molecules/PartnerProgramsConfigPane/messages.js +39 -0
  626. package/components/molecules/PartnerProgramsConfigPane/style.js +26 -0
  627. package/components/molecules/PartnerProgramsConfigPane/tests/SupplementaryProgramsConfigPane.test.js +26 -0
  628. package/components/molecules/PartnerProgramsSettings/PartnerProgramsSettings.js +266 -0
  629. package/components/molecules/PartnerProgramsSettings/constants.js +5 -0
  630. package/components/molecules/PartnerProgramsSettings/index.js +1 -0
  631. package/components/molecules/PartnerProgramsSettings/messages.js +57 -0
  632. package/components/molecules/PartnerProgramsSettings/style.js +72 -0
  633. package/components/molecules/PartnerProgramsSettings/tests/SupplementaryProgramsSettings.test.js +116 -0
  634. package/components/molecules/PartnerProgramsSettings/tests/mockData.js +42 -0
  635. package/components/molecules/PartnerProgramsSettings/utils.js +32 -0
  636. package/components/molecules/PointExpiryCommunication/PointExpiryCommunication.js +363 -0
  637. package/components/molecules/PointExpiryCommunication/constants.js +12 -0
  638. package/components/molecules/PointExpiryCommunication/index.js +1 -0
  639. package/components/molecules/PointExpiryCommunication/messages.js +28 -0
  640. package/components/molecules/PointExpiryCommunication/style.js +50 -0
  641. package/components/molecules/PointExpiryCommunication/tests/__snapshots__/index.test.js.snap +39 -0
  642. package/components/molecules/PointExpiryCommunication/tests/index.test.js +13 -0
  643. package/components/molecules/PointsLimitContent/PointsLimitContent.js +30 -0
  644. package/components/molecules/PointsLimitContent/index.js +1 -0
  645. package/components/molecules/PointsTransferCollapseData/PointsTransferCollapseData.js +805 -0
  646. package/components/molecules/PointsTransferCollapseData/index.js +1 -0
  647. package/components/molecules/PointsTransferCollapseData/messages.js +92 -0
  648. package/components/molecules/PointsTransferCollapseData/stories/CollapseData.stories.js +5 -0
  649. package/components/molecules/PointsTransferCollapseData/style.js +40 -0
  650. package/components/molecules/PointsTransferCollapseData/tests/index.test.js +680 -0
  651. package/components/molecules/PointsTransferCollapseData/tests/mockData.js +168 -0
  652. package/components/molecules/PointsTransferSettings/PointsTransferSettings.js +24 -0
  653. package/components/molecules/PointsTransferSettings/index.js +1 -0
  654. package/components/molecules/PointsTransferSettings/messages.js +16 -0
  655. package/components/molecules/PointsTransferSettings/tests/index.test.js +11 -0
  656. package/components/molecules/ProgramName/ProgramName.js +167 -0
  657. package/components/molecules/ProgramName/index.js +1 -0
  658. package/components/molecules/ProgramName/messages.js +20 -0
  659. package/components/molecules/ProgramName/style.js +77 -0
  660. package/components/molecules/ProgramName/tests/ProgramName.test.js +60 -0
  661. package/components/molecules/ProgramTitle/ProgramTitle.js +65 -0
  662. package/components/molecules/ProgramTitle/index.js +1 -0
  663. package/components/molecules/ProgramTitle/tests/index.test.js +11 -0
  664. package/components/molecules/ProgramValueSkeleton/ProgramValueSkeleton.js +85 -0
  665. package/components/molecules/ProgramValueSkeleton/index.js +1 -0
  666. package/components/molecules/ProgramValueSkeleton/style.js +10 -0
  667. package/components/molecules/ProgramValueSkeleton/tests/index.test.js +11 -0
  668. package/components/molecules/PromotionCalendarLazyLoad/PromotionCalendarLazyLoad.js +27 -0
  669. package/components/molecules/PromotionCalendarLazyLoad/index.js +1 -0
  670. package/components/molecules/PromotionCalendarLazyLoad/style.js +11 -0
  671. package/components/molecules/PromotionCalendarLazyLoad/tests/PromotionCalendarLazyLoad.test.js +16 -0
  672. package/components/molecules/PromotionCalendarPopoverContent/PromotionCalendarPopoverContent.js +157 -0
  673. package/components/molecules/PromotionCalendarPopoverContent/index.js +1 -0
  674. package/components/molecules/PromotionCalendarPopoverContent/messages.js +23 -0
  675. package/components/molecules/PromotionCalendarPopoverContent/tests/PromotionCalendarPopoverContent.test.js +52 -0
  676. package/components/molecules/PromotionCalendarPopoverContent/tests/mockData.js +199 -0
  677. package/components/molecules/PromotionListLazyLoad/PromotionListLazyLoad.js +24 -0
  678. package/components/molecules/PromotionListLazyLoad/index.js +1 -0
  679. package/components/molecules/PromotionListLazyLoad/style.js +13 -0
  680. package/components/molecules/PromotionSettingsContent/PromotionSettingsContent.js +46 -0
  681. package/components/molecules/PromotionSettingsContent/index.js +1 -0
  682. package/components/molecules/PromotionsTableHeader/PromotionsTableHeader.js +303 -0
  683. package/components/molecules/PromotionsTableHeader/index.js +1 -0
  684. package/components/molecules/PromotionsTableHeader/style.js +178 -0
  685. package/components/molecules/PromotionsTableHeader/tests/PromotionsTableHeader.test.js +126 -0
  686. package/components/molecules/PromotionsTableHeader/tests/mockData.js +81 -0
  687. package/components/molecules/PublishAndActivateModal/PublishAndActivateModal.js +222 -0
  688. package/components/molecules/PublishAndActivateModal/index.js +1 -0
  689. package/components/molecules/PublishAndActivateModal/messages.js +33 -0
  690. package/components/molecules/PublishAndActivateModal/style.js +53 -0
  691. package/components/molecules/PublishAndActivateModal/tests/PublishAndActivateModal.test.js +63 -0
  692. package/components/molecules/RadioContentSlidebox/RadioContentSlidebox.js +57 -0
  693. package/components/molecules/RadioContentSlidebox/index.js +1 -0
  694. package/components/molecules/RadioWithInfo/RadioWithInfo.js +60 -0
  695. package/components/molecules/RadioWithInfo/index.js +1 -0
  696. package/components/molecules/RadioWithInfo/style.js +62 -0
  697. package/components/molecules/RadioWithInfo/tests/RadioWithInfo.test.js +15 -0
  698. package/components/molecules/RadioWithInfo/tests/__snapshots__/RadioWithInfo.test.js.snap +1379 -0
  699. package/components/molecules/RenewalTier/RenewalTier.js +272 -0
  700. package/components/molecules/RenewalTier/constants.js +9 -0
  701. package/components/molecules/RenewalTier/index.js +1 -0
  702. package/components/molecules/RenewalTier/messages.js +20 -0
  703. package/components/molecules/RenewalTierV2/RenewalTierV2.js +503 -0
  704. package/components/molecules/RenewalTierV2/constants.js +9 -0
  705. package/components/molecules/RenewalTierV2/index.js +1 -0
  706. package/components/molecules/RenewalTierV2/messages.js +66 -0
  707. package/components/molecules/RenewalTierV2/tests/RenewalTierV2.test.js +49 -0
  708. package/components/molecules/RenewalTierV2/utils.js +115 -0
  709. package/components/molecules/ReplaceExistingDraftNotification/ReplaceExistingDraftNotification.js +161 -0
  710. package/components/molecules/ReplaceExistingDraftNotification/index.js +1 -0
  711. package/components/molecules/ReplaceExistingDraftNotification/messages.js +36 -0
  712. package/components/molecules/ReplaceExistingDraftNotification/style.js +87 -0
  713. package/components/molecules/ReplaceExistingDraftNotification/tests/ReplaceExistingDraftNotification.test.js +83 -0
  714. package/components/molecules/ReplaceExistingDraftNotification/tests/mockData.js +73 -0
  715. package/components/molecules/RestoreModal/RestoreModal.js +159 -0
  716. package/components/molecules/RestoreModal/index.js +1 -0
  717. package/components/molecules/RestoreModal/messages.js +39 -0
  718. package/components/molecules/RestoreModal/style.js +74 -0
  719. package/components/molecules/RestoreModal/tests/RestoreModal.test.js +57 -0
  720. package/components/molecules/ReviewTierModal/ReviewTierModal.js +128 -0
  721. package/components/molecules/ReviewTierModal/index.js +1 -0
  722. package/components/molecules/ReviewTierModal/messages.js +16 -0
  723. package/components/molecules/ReviewTierModal/style.js +38 -0
  724. package/components/molecules/RewardCatalogViewTitle/RewardCatalogViewTitle.js +66 -0
  725. package/components/molecules/RewardCatalogViewTitle/index.js +1 -0
  726. package/components/molecules/RootConfirmModal/RootConfirmModal.js +68 -0
  727. package/components/molecules/RootConfirmModal/index.js +1 -0
  728. package/components/molecules/RowHeader/RowHeader.js +101 -0
  729. package/components/molecules/RowHeader/index.js +1 -0
  730. package/components/molecules/RowHeader/style.js +7 -0
  731. package/components/molecules/RowHeader/tests/RowHeader.test.js +48 -0
  732. package/components/molecules/RowHeader/tests/__snapshots__/RowHeader.test.js.snap +291 -0
  733. package/components/molecules/SameDestinationPrograms/SameDestinationPrograms.js +583 -0
  734. package/components/molecules/SameDestinationPrograms/index.js +1 -0
  735. package/components/molecules/SameDestinationPrograms/messages.js +67 -0
  736. package/components/molecules/SameDestinationPrograms/style.js +224 -0
  737. package/components/molecules/SameDestinationPrograms/tests/SameDestinationPrograms.test.js +197 -0
  738. package/components/molecules/SelectApiWrapper/SelectApiWrapper.js +120 -0
  739. package/components/molecules/SelectApiWrapper/index.js +1 -0
  740. package/components/molecules/SelectApiWrapper/messages.js +20 -0
  741. package/components/molecules/SelectApiWrapper/style.js +14 -0
  742. package/components/molecules/SelectCollection/SelectCollection.js +88 -0
  743. package/components/molecules/SelectCollection/index.js +2 -0
  744. package/components/molecules/SelectCollection/style.js +8 -0
  745. package/components/molecules/SelectCollection/tests/index.test.js +11 -0
  746. package/components/molecules/SelectsWithAction/SelectsWithAction.js +70 -0
  747. package/components/molecules/SelectsWithAction/index.js +1 -0
  748. package/components/molecules/SenderCreatives/SenderCreatives.js +41 -0
  749. package/components/molecules/SenderCreatives/index.js +0 -0
  750. package/components/molecules/SenderInformation/SenderInformation.js +194 -0
  751. package/components/molecules/SenderInformation/index.js +1 -0
  752. package/components/molecules/SenderInformation/messages.js +68 -0
  753. package/components/molecules/SenderInformation/style.js +27 -0
  754. package/components/molecules/SenderInformation/tests/SenderInformation.test.js +34 -0
  755. package/components/molecules/SenderSlideBox/SenderSlideBox.js +434 -0
  756. package/components/molecules/SenderSlideBox/index.js +1 -0
  757. package/components/molecules/SenderSlideBox/style.js +82 -0
  758. package/components/molecules/SenderSlideBox/tests/SenderSlideBox.test.js +48 -0
  759. package/components/molecules/SomethingWentWrong/SomethingWentWrong.js +52 -0
  760. package/components/molecules/SomethingWentWrong/index.js +1 -0
  761. package/components/molecules/SomethingWentWrong/style.js +5 -0
  762. package/components/molecules/SortHeader/SortHeader.js +55 -0
  763. package/components/molecules/SortHeader/index.js +1 -0
  764. package/components/molecules/SortHeader/tests/index.test.js +11 -0
  765. package/components/molecules/StepFunctionEarnStrategy/StepFunctionEarnStrategy.js +153 -0
  766. package/components/molecules/StepFunctionEarnStrategy/index.js +1 -0
  767. package/components/molecules/StepFunctionEarnStrategy/messages.js +33 -0
  768. package/components/molecules/StepFunctionEarnStrategy/style.js +56 -0
  769. package/components/molecules/StepFunctionEarnStrategy/tests/StepFunctionEarnStrategy.test.js +113 -0
  770. package/components/molecules/StepFunctionEarnStrategy/tests/mockData.js +29 -0
  771. package/components/molecules/StrategiesTag/StrategiesTag.js +71 -0
  772. package/components/molecules/StrategiesTag/index.js +1 -0
  773. package/components/molecules/StrategiesTag/style.js +15 -0
  774. package/components/molecules/StringMetaDataAttribute/StringMetaDataAttribute.js +86 -0
  775. package/components/molecules/StringMetaDataAttribute/index.js +1 -0
  776. package/components/molecules/StringMetaDataAttribute/messages.js +10 -0
  777. package/components/molecules/StringMetaDataAttribute/style.js +3 -0
  778. package/components/molecules/SuggestionCard/SuggestionCard.js +121 -0
  779. package/components/molecules/SuggestionCard/index.js +1 -0
  780. package/components/molecules/SuggestionCard/messages.js +20 -0
  781. package/components/molecules/SuggestionCard/style.js +56 -0
  782. package/components/molecules/SuggestionCard/tests/index.test.js +11 -0
  783. package/components/molecules/SupplementaryExpiryReminder/SupplementaryExpiryReminder.js +171 -0
  784. package/components/molecules/SupplementaryExpiryReminder/index.js +1 -0
  785. package/components/molecules/SupplementaryExpiryReminder/messages.js +19 -0
  786. package/components/molecules/SupplementaryExpiryReminder/style.js +16 -0
  787. package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryExpiryReminder.test.js +77 -0
  788. package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryViewExpiryReminder.test.js +58 -0
  789. package/components/molecules/SupplementaryExpiryReminder/utils.js +7 -0
  790. package/components/molecules/Switch/Switch.js +113 -0
  791. package/components/molecules/Switch/index.js +1 -0
  792. package/components/molecules/Switch/style.js +30 -0
  793. package/components/molecules/Switch/tests/Switch.test.js +26 -0
  794. package/components/molecules/Switch/tests/mockData.js +9 -0
  795. package/components/molecules/SwitchWithDivider/SwitchWithDivider.js +98 -0
  796. package/components/molecules/SwitchWithDivider/index.js +1 -0
  797. package/components/molecules/SwitchWithDivider/style.js +29 -0
  798. package/components/molecules/SwitchWithDivider/tests/SwitchWithDivider.test.js +26 -0
  799. package/components/molecules/SwitchWithDivider/tests/mockData.js +9 -0
  800. package/components/molecules/SyncLabel/SyncLabel.js +53 -0
  801. package/components/molecules/SyncLabel/index.js +1 -0
  802. package/components/molecules/SyncLabel/style.js +12 -0
  803. package/components/molecules/SyncLabel/tests/SyncLabel.test.js +22 -0
  804. package/components/molecules/SyncLabel/tests/__snapshots__/SyncLabel.test.js.snap +5304 -0
  805. package/components/molecules/TableCommunication/constants.js +9 -0
  806. package/components/molecules/TableCommunication/index.js +1 -0
  807. package/components/molecules/TableOption/TableOption.js +149 -0
  808. package/components/molecules/TableOption/constants.js +1 -0
  809. package/components/molecules/TableOption/index.js +1 -0
  810. package/components/molecules/TableOption/style.js +19 -0
  811. package/components/molecules/TableOption/tests/index.test.js +11 -0
  812. package/components/molecules/TagForCapAndScope/TagForCapAndScope.js +47 -0
  813. package/components/molecules/TagForCapAndScope/index.js +1 -0
  814. package/components/molecules/TagForCapAndScope/style.js +19 -0
  815. package/components/molecules/TagsTab/TagsTab.js +77 -0
  816. package/components/molecules/TagsTab/index.js +1 -0
  817. package/components/molecules/TagsTab/style.js +14 -0
  818. package/components/molecules/TagsTab/tests/index.test.js +11 -0
  819. package/components/molecules/TierButtonInput/TierButtonInput.js +56 -0
  820. package/components/molecules/TierButtonInput/index.js +1 -0
  821. package/components/molecules/TierButtonInput/style.js +31 -0
  822. package/components/molecules/TierCard/BlockContent.js +125 -0
  823. package/components/molecules/TierCard/CardBody.js +433 -0
  824. package/components/molecules/TierCard/CardContent.js +51 -0
  825. package/components/molecules/TierCard/TierCard.js +123 -0
  826. package/components/molecules/TierCard/TierWithContent.js +61 -0
  827. package/components/molecules/TierCard/constants.js +16 -0
  828. package/components/molecules/TierCard/index.js +1 -0
  829. package/components/molecules/TierCard/messages.js +93 -0
  830. package/components/molecules/TierCard/style.js +147 -0
  831. package/components/molecules/TierCard/tests/BlockContent.test.js +37 -0
  832. package/components/molecules/TierCard/tests/CardBody.test.js +497 -0
  833. package/components/molecules/TierCard/tests/CardContent.test.js +36 -0
  834. package/components/molecules/TierCard/tests/mockData.js +21 -0
  835. package/components/molecules/TierCardHeader/TierCardHeader.js +73 -0
  836. package/components/molecules/TierCardHeader/index.js +1 -0
  837. package/components/molecules/TierCardHeader/style.js +32 -0
  838. package/components/molecules/TierRenewalCommunication/TierRenewalCommunication.js +235 -0
  839. package/components/molecules/TierRenewalCommunication/constants.js +12 -0
  840. package/components/molecules/TierRenewalCommunication/index.js +1 -0
  841. package/components/molecules/TierRenewalCommunication/messages.js +24 -0
  842. package/components/molecules/TierRenewalCommunication/style.js +23 -0
  843. package/components/molecules/TierRenewalCommunication/tests/__snapshots__/index.test.js.snap +42 -0
  844. package/components/molecules/TierRenewalCommunication/tests/index.test.js +13 -0
  845. package/components/molecules/TierUpgradeCommunication/TierUpgradeCommunication.js +105 -0
  846. package/components/molecules/TierUpgradeCommunication/constants.js +2 -0
  847. package/components/molecules/TierUpgradeCommunication/index.js +1 -0
  848. package/components/molecules/TierUpgradeCommunication/style.js +51 -0
  849. package/components/molecules/TierUpgradeCommunication/tests/__snapshots__/index.test.js.snap +11 -0
  850. package/components/molecules/TierUpgradeCommunication/tests/index.test.js +13 -0
  851. package/components/molecules/TitleWithStatus/TitleWithStatus.js +60 -0
  852. package/components/molecules/TitleWithStatus/index.js +1 -0
  853. package/components/molecules/TitleWithStatus/style.js +15 -0
  854. package/components/molecules/TitleWithStatus/tests/index.test.js +11 -0
  855. package/components/molecules/TrackerValueContent/TrackerValueContent.js +115 -0
  856. package/components/molecules/TrackerValueContent/index.js +1 -0
  857. package/components/molecules/TrackerValueContent/style.js +0 -0
  858. package/components/molecules/UpgradeTier/UpgradeTier.js +357 -0
  859. package/components/molecules/UpgradeTier/constants.js +0 -0
  860. package/components/molecules/UpgradeTier/index.js +1 -0
  861. package/components/molecules/UpgradeTier/messages.js +25 -0
  862. package/components/molecules/UpgradeTier/tests/UpgradeTier.test.js +48 -0
  863. package/components/molecules/UpgradeTierV2/UpgradeTierV2.js +912 -0
  864. package/components/molecules/UpgradeTierV2/constants.js +5 -0
  865. package/components/molecules/UpgradeTierV2/index.js +1 -0
  866. package/components/molecules/UpgradeTierV2/messages.js +95 -0
  867. package/components/molecules/UpgradeTierV2/tests/UpgradeTierV2.test.js +350 -0
  868. package/components/molecules/UpgradeTierV2/tests/mockData.js +840 -0
  869. package/components/molecules/UpgradeTierV2/tests/utils.test.js +299 -0
  870. package/components/molecules/UpgradeTierV2/utils.js +323 -0
  871. package/components/molecules/UpgradeTrackerTier/UpgradeTrackerTier.js +212 -0
  872. package/components/molecules/UpgradeTrackerTier/index.js +1 -0
  873. package/components/molecules/UpgradeTrackerTierV2/UpgradeTrackerTierV2.js +480 -0
  874. package/components/molecules/UpgradeTrackerTierV2/index.js +1 -0
  875. package/components/molecules/UpgradeTrackerTierV2/style.js +53 -0
  876. package/components/molecules/UpgradeTrackerTierV2/tests/UpgradeTrackerTierV2.test.js +276 -0
  877. package/components/molecules/UpgradeTrackerTierV2/tests/mockData.js +696 -0
  878. package/components/molecules/VersioningPublishModal/VersioningPublishModal.js +134 -0
  879. package/components/molecules/VersioningPublishModal/index.js +1 -0
  880. package/components/molecules/VersioningPublishModal/messages.js +39 -0
  881. package/components/molecules/VersioningPublishModal/style.js +41 -0
  882. package/components/molecules/VersioningPublishModal/tests/VersioningPublishModal.test.js +89 -0
  883. package/components/organisms/ActionExpression/ActionExpression.js +357 -0
  884. package/components/organisms/ActionExpression/actions.js +12 -0
  885. package/components/organisms/ActionExpression/constants.js +25 -0
  886. package/components/organisms/ActionExpression/index.js +1 -0
  887. package/components/organisms/ActionExpression/messages.js +17 -0
  888. package/components/organisms/ActionExpression/reducer.js +112 -0
  889. package/components/organisms/ActionExpression/saga.js +63 -0
  890. package/components/organisms/ActionExpression/selectors.js +13 -0
  891. package/components/organisms/ActionExpression/style.js +126 -0
  892. package/components/organisms/ActionExpression/tests/ActionExpression.test.js +56 -0
  893. package/components/organisms/ActionExpression/tests/ActionExpression1.test.js +262 -0
  894. package/components/organisms/ActionExpression/tests/__snapshots__/ActionExpression.test.js.snap +170 -0
  895. package/components/organisms/ActionExpression/tests/actions.test.js +24 -0
  896. package/components/organisms/ActionExpression/tests/mockData.js +50 -0
  897. package/components/organisms/ActionExpression/tests/reducer.test.js +124 -0
  898. package/components/organisms/ActionExpression/tests/saga.test.js +144 -0
  899. package/components/organisms/ActionExpression/tests/selectors.test.js +18 -0
  900. package/components/organisms/ActionExpression/tests/utils.test.js +49 -0
  901. package/components/organisms/ActionExpression/utils.js +50 -0
  902. package/components/organisms/ActivityRewardCurrencyCard/ActivityRewardCurrencyCard.js +414 -0
  903. package/components/organisms/ActivityRewardCurrencyCard/actions.js +21 -0
  904. package/components/organisms/ActivityRewardCurrencyCard/constants.js +7 -0
  905. package/components/organisms/ActivityRewardCurrencyCard/index.js +1 -0
  906. package/components/organisms/ActivityRewardCurrencyCard/messages.js +48 -0
  907. package/components/organisms/ActivityRewardCurrencyCard/reducer.js +48 -0
  908. package/components/organisms/ActivityRewardCurrencyCard/saga.js +65 -0
  909. package/components/organisms/ActivityRewardCurrencyCard/selectors.js +12 -0
  910. package/components/organisms/ActivityRewardCurrencyCard/style.js +85 -0
  911. package/components/organisms/ActivityRewardCurrencyCard/tests/actions.test.js +18 -0
  912. package/components/organisms/ActivityRewardCurrencyCard/tests/activityRewardCurrencyLimit.test.js +93 -0
  913. package/components/organisms/ActivityRewardCurrencyCard/tests/noTargetGroups.test.js +71 -0
  914. package/components/organisms/ActivityRewardCurrencyCard/tests/reducer.test.js +93 -0
  915. package/components/organisms/ActivityRewardCurrencyCard/tests/saga.test.js +140 -0
  916. package/components/organisms/ActivityRewardCurrencyCard/tests/selectors.test.js +21 -0
  917. package/components/organisms/ActivityRewardSlider/ConfirmEditModal.js +86 -0
  918. package/components/organisms/ActivityRewardSlider/actions.js +42 -0
  919. package/components/organisms/ActivityRewardSlider/activityRewardSlider.js +1135 -0
  920. package/components/organisms/ActivityRewardSlider/constants.js +77 -0
  921. package/components/organisms/ActivityRewardSlider/context.js +7 -0
  922. package/components/organisms/ActivityRewardSlider/index.js +1 -0
  923. package/components/organisms/ActivityRewardSlider/messages.js +203 -0
  924. package/components/organisms/ActivityRewardSlider/reducer.js +43 -0
  925. package/components/organisms/ActivityRewardSlider/saga.js +126 -0
  926. package/components/organisms/ActivityRewardSlider/selectors.js +29 -0
  927. package/components/organisms/ActivityRewardSlider/style.js +90 -0
  928. package/components/organisms/ActivityRewardSlider/tests/actions.test.js +20 -0
  929. package/components/organisms/ActivityRewardSlider/tests/activityRewardSlider.test.js +163 -0
  930. package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderEmpty.test.js +92 -0
  931. package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderRevamp.test.js +292 -0
  932. package/components/organisms/ActivityRewardSlider/tests/cartLevelLimits.test.js +91 -0
  933. package/components/organisms/ActivityRewardSlider/tests/mockData.js +528 -0
  934. package/components/organisms/ActivityRewardSlider/tests/noTargetView.test.js +90 -0
  935. package/components/organisms/ActivityRewardSlider/tests/reducer.test.js +90 -0
  936. package/components/organisms/ActivityRewardSlider/tests/saga.test.js +363 -0
  937. package/components/organisms/ActivityRewardSlider/tests/selector.test.js +21 -0
  938. package/components/organisms/ActivityRewardSlider/tests/utils.test.js +188 -0
  939. package/components/organisms/ActivityRewardSlider/utils.js +43 -0
  940. package/components/organisms/ActivityRewardSliderV1/actions.js +14 -0
  941. package/components/organisms/ActivityRewardSliderV1/activityRewardSliderV1.js +316 -0
  942. package/components/organisms/ActivityRewardSliderV1/constants.js +27 -0
  943. package/components/organisms/ActivityRewardSliderV1/context.js +7 -0
  944. package/components/organisms/ActivityRewardSliderV1/index.js +1 -0
  945. package/components/organisms/ActivityRewardSliderV1/messages.js +19 -0
  946. package/components/organisms/ActivityRewardSliderV1/reducer.js +29 -0
  947. package/components/organisms/ActivityRewardSliderV1/saga.js +43 -0
  948. package/components/organisms/ActivityRewardSliderV1/selectors.js +12 -0
  949. package/components/organisms/ActivityRewardSliderV1/style.js +25 -0
  950. package/components/organisms/ActivityRewardSliderV1/tests/actions.test.js +12 -0
  951. package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderEmpty.test.js +92 -0
  952. package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderV1.test.js +271 -0
  953. package/components/organisms/ActivityRewardSliderV1/tests/reducer.test.js +53 -0
  954. package/components/organisms/ActivityRewardSliderV1/tests/saga.test.js +78 -0
  955. package/components/organisms/ActivityRewardSliderV1/tests/selector.test.js +21 -0
  956. package/components/organisms/AddEarnCondition/AddEarnCondition.js +1014 -0
  957. package/components/organisms/AddEarnCondition/actions.js +13 -0
  958. package/components/organisms/AddEarnCondition/constants.js +55 -0
  959. package/components/organisms/AddEarnCondition/context.js +7 -0
  960. package/components/organisms/AddEarnCondition/index.js +1 -0
  961. package/components/organisms/AddEarnCondition/messages.js +186 -0
  962. package/components/organisms/AddEarnCondition/reducer.js +49 -0
  963. package/components/organisms/AddEarnCondition/saga.js +88 -0
  964. package/components/organisms/AddEarnCondition/selectors.js +33 -0
  965. package/components/organisms/AddEarnCondition/style.js +117 -0
  966. package/components/organisms/AddEarnCondition/tests/AddEarnCondition.test.js +482 -0
  967. package/components/organisms/AddEarnCondition/tests/actions.test.js +23 -0
  968. package/components/organisms/AddEarnCondition/tests/mockData.js +107 -0
  969. package/components/organisms/AddEarnCondition/tests/saga.test.js +156 -0
  970. package/components/organisms/AddPaymentMethod/AddPaymentMethod.js +245 -0
  971. package/components/organisms/AddPaymentMethod/constants.js +9 -0
  972. package/components/organisms/AddPaymentMethod/index.js +1 -0
  973. package/components/organisms/AddPaymentMethod/style.js +48 -0
  974. package/components/organisms/AddPaymentMethod/tests/AddPaymentMethod.test.js +20 -0
  975. package/components/organisms/AddPointsAllocationLimitDetails/AddPointsAllocationLimitDetails.js +1629 -0
  976. package/components/organisms/AddPointsAllocationLimitDetails/constants.js +37 -0
  977. package/components/organisms/AddPointsAllocationLimitDetails/index.js +1 -0
  978. package/components/organisms/AddPointsAllocationLimitDetails/messages.js +364 -0
  979. package/components/organisms/AddPointsAllocationLimitDetails/style.js +428 -0
  980. package/components/organisms/AddPointsAllocationLimitDetails/tests/AddPointsAllocationLimitDetails.test.js +611 -0
  981. package/components/organisms/AddPointsAllocationLimitDetails/tests/actions.test.js +53 -0
  982. package/components/organisms/AddPointsAllocationLimitDetails/tests/mockData.js +38 -0
  983. package/components/organisms/AddPointsAllocationLimitDetails/tests/mocks/data.js +76 -0
  984. package/components/organisms/AddPointsAllocationLimitDetails/tests/reducer.test.js +223 -0
  985. package/components/organisms/AddPointsAllocationLimitDetails/tests/saga.test.js +275 -0
  986. package/components/organisms/AddPointsAllocationLimitDetails/tests/selectors.test.js +60 -0
  987. package/components/organisms/AddPointsAllocationLimitDetails/utils.js +27 -0
  988. package/components/organisms/AddPointsAllocationLimitSlider/AddPointsAllocationLimitSlider.js +596 -0
  989. package/components/organisms/AddPointsAllocationLimitSlider/constants.js +40 -0
  990. package/components/organisms/AddPointsAllocationLimitSlider/index.js +1 -0
  991. package/components/organisms/AddPointsAllocationLimitSlider/messages.js +44 -0
  992. package/components/organisms/AddPointsAllocationLimitSlider/style.js +63 -0
  993. package/components/organisms/AddPointsAllocationLimitSlider/tests/AddPointsAllocationLimitSlider.test.js +274 -0
  994. package/components/organisms/AddPointsAllocationLimitSlider/tests/mockData.js +533 -0
  995. package/components/organisms/AddPointsAllocationLimitSlider/tests/utils.test.js +52 -0
  996. package/components/organisms/AddPointsAllocationLimitSlider/utils.js +64 -0
  997. package/components/organisms/AddPointsFilterTransaction/AddPointsFilterTransaction.js +577 -0
  998. package/components/organisms/AddPointsFilterTransaction/constants.js +15 -0
  999. package/components/organisms/AddPointsFilterTransaction/index.js +1 -0
  1000. package/components/organisms/AddPointsFilterTransaction/messages.js +45 -0
  1001. package/components/organisms/AddPointsFilterTransaction/style.js +97 -0
  1002. package/components/organisms/AddPointsFilterTransaction/tests/AddPointsFilterTransaction.test.js +429 -0
  1003. package/components/organisms/AddPointsFilterTransaction/tests/mockData.js +148 -0
  1004. package/components/organisms/AddTier/AddTier.js +731 -0
  1005. package/components/organisms/AddTier/actions.js +26 -0
  1006. package/components/organisms/AddTier/constants.js +30 -0
  1007. package/components/organisms/AddTier/defaultStates.js +78 -0
  1008. package/components/organisms/AddTier/index.js +1 -0
  1009. package/components/organisms/AddTier/messages.js +101 -0
  1010. package/components/organisms/AddTier/reducer.js +49 -0
  1011. package/components/organisms/AddTier/saga.js +78 -0
  1012. package/components/organisms/AddTier/selectors.js +23 -0
  1013. package/components/organisms/AddTier/style.js +202 -0
  1014. package/components/organisms/AddTier/tests/AddTier.test.js +92 -0
  1015. package/components/organisms/AddTier/tests/AddTier1.test.js +268 -0
  1016. package/components/organisms/AddTier/tests/mocks/data.js +454 -0
  1017. package/components/organisms/AddTier/tests/saga.test.js +199 -0
  1018. package/components/organisms/AddTier/tests/utils.test.js +17 -0
  1019. package/components/organisms/AddTier/utils.js +768 -0
  1020. package/components/organisms/AddTierSetting/AddTierSetting.js +203 -0
  1021. package/components/organisms/AddTierSetting/constants.js +8 -0
  1022. package/components/organisms/AddTierSetting/index.js +1 -0
  1023. package/components/organisms/AddTierSetting/messages.js +65 -0
  1024. package/components/organisms/AddTierSetting/mockData.js +30 -0
  1025. package/components/organisms/AddTierSetting/style.js +20 -0
  1026. package/components/organisms/AddTierSetting/utils.js +16 -0
  1027. package/components/organisms/AdvancedOption/AdvancedOption.js +390 -0
  1028. package/components/organisms/AdvancedOption/actions.js +39 -0
  1029. package/components/organisms/AdvancedOption/constants.js +231 -0
  1030. package/components/organisms/AdvancedOption/index.js +1 -0
  1031. package/components/organisms/AdvancedOption/messages.js +60 -0
  1032. package/components/organisms/AdvancedOption/reducer.js +73 -0
  1033. package/components/organisms/AdvancedOption/saga.js +113 -0
  1034. package/components/organisms/AdvancedOption/selectors.js +25 -0
  1035. package/components/organisms/AdvancedOption/style.js +173 -0
  1036. package/components/organisms/AdvancedOption/tests/AdvancedOption.test.js +128 -0
  1037. package/components/organisms/AdvancedOption/tests/reducer.test.js +191 -0
  1038. package/components/organisms/AdvancedOption/tests/saga.test.js +248 -0
  1039. package/components/organisms/AllocationPointWorkflowAction/AllocationPointWorkflowAction.js +483 -0
  1040. package/components/organisms/AllocationPointWorkflowAction/constants.js +6 -0
  1041. package/components/organisms/AllocationPointWorkflowAction/index.js +1 -0
  1042. package/components/organisms/AllocationPointWorkflowAction/style.js +17 -0
  1043. package/components/organisms/AllocationPointWorkflowAction/tests/AllocationPointWorkflowAction.test.js +343 -0
  1044. package/components/organisms/AllocationStrategy/AllocationStrategy.js +600 -0
  1045. package/components/organisms/AllocationStrategy/constants.js +20 -0
  1046. package/components/organisms/AllocationStrategy/index.js +1 -0
  1047. package/components/organisms/AllocationStrategy/messages.js +98 -0
  1048. package/components/organisms/AllocationStrategy/style.js +19 -0
  1049. package/components/organisms/AllocationStrategy/tests/AllocationStrategy.test.js +53 -0
  1050. package/components/organisms/AllocationStrategy/tests/mockData.js +161 -0
  1051. package/components/organisms/AlternateCurrencyList/AlternateCurrencyList.js +670 -0
  1052. package/components/organisms/AlternateCurrencyList/constants.js +53 -0
  1053. package/components/organisms/AlternateCurrencyList/index.js +1 -0
  1054. package/components/organisms/AlternateCurrencyList/messages.js +74 -0
  1055. package/components/organisms/AlternateCurrencyList/style.js +292 -0
  1056. package/components/organisms/AlternateCurrencyList/tests/AlternateCurrencyList.test.js +99 -0
  1057. package/components/organisms/AlternateCurrencyList/tests/mockData.js +285 -0
  1058. package/components/organisms/AlternateCurrencyList/utils.js +42 -0
  1059. package/components/organisms/AudienceList/AudienceList.js +621 -0
  1060. package/components/organisms/AudienceList/AudienceListContainer.js +244 -0
  1061. package/components/organisms/AudienceList/actions.js +23 -0
  1062. package/components/organisms/AudienceList/constants.js +42 -0
  1063. package/components/organisms/AudienceList/index.js +1 -0
  1064. package/components/organisms/AudienceList/messages.js +100 -0
  1065. package/components/organisms/AudienceList/reducer.js +69 -0
  1066. package/components/organisms/AudienceList/saga.js +99 -0
  1067. package/components/organisms/AudienceList/selector.js +26 -0
  1068. package/components/organisms/AudienceList/styles.js +366 -0
  1069. package/components/organisms/AudienceList/tests/AudienceList.test.js +202 -0
  1070. package/components/organisms/AudienceList/tests/AudienceListContainer.test.js +159 -0
  1071. package/components/organisms/AudienceList/tests/actions.test.js +51 -0
  1072. package/components/organisms/AudienceList/tests/mockData.js +362 -0
  1073. package/components/organisms/AudienceList/tests/reducer.test.js +172 -0
  1074. package/components/organisms/AudienceList/tests/saga.test.js +240 -0
  1075. package/components/organisms/AudienceList/tests/selector.test.js +35 -0
  1076. package/components/organisms/AwardPointsConfig/AwardPointsConfig.js +1577 -0
  1077. package/components/organisms/AwardPointsConfig/constants.js +14 -0
  1078. package/components/organisms/AwardPointsConfig/index.js +1 -0
  1079. package/components/organisms/AwardPointsConfig/messages.js +317 -0
  1080. package/components/organisms/AwardPointsConfig/style.js +177 -0
  1081. package/components/organisms/AwardPointsConfig/tests/AwardPointsConfig.test.js +304 -0
  1082. package/components/organisms/AwardPointsConfig/tests/CapVirtualSelect.test.js +83 -0
  1083. package/components/organisms/AwardPointsConfig/tests/mockData.js +285 -0
  1084. package/components/organisms/AwardRefereePointsWorkflowAction/AwardRefereePointsWorkflowAction.js +315 -0
  1085. package/components/organisms/AwardRefereePointsWorkflowAction/index.js +1 -0
  1086. package/components/organisms/AwardRefereePointsWorkflowAction/style.js +17 -0
  1087. package/components/organisms/AwardRefereePointsWorkflowAction/tests/AwardRefereePointsWorkflowAction.test.js +130 -0
  1088. package/components/organisms/AwardReferrerPointsWorkflowAction/AwardReferrerPointsWorkflowAction.js +312 -0
  1089. package/components/organisms/AwardReferrerPointsWorkflowAction/index.js +1 -0
  1090. package/components/organisms/AwardReferrerPointsWorkflowAction/style.js +17 -0
  1091. package/components/organisms/AwardReferrerPointsWorkflowAction/tests/AwardReferrerPointsWorkflowAction.test.js +130 -0
  1092. package/components/organisms/BulkConfigurationsDetail/BulkConfigurationsDetail.js +689 -0
  1093. package/components/organisms/BulkConfigurationsDetail/actions.js +31 -0
  1094. package/components/organisms/BulkConfigurationsDetail/constants.js +34 -0
  1095. package/components/organisms/BulkConfigurationsDetail/index.js +1 -0
  1096. package/components/organisms/BulkConfigurationsDetail/messages.js +68 -0
  1097. package/components/organisms/BulkConfigurationsDetail/mocks/data.js +531 -0
  1098. package/components/organisms/BulkConfigurationsDetail/reducer.js +68 -0
  1099. package/components/organisms/BulkConfigurationsDetail/saga.js +86 -0
  1100. package/components/organisms/BulkConfigurationsDetail/selectors.js +26 -0
  1101. package/components/organisms/BulkConfigurationsDetail/style.js +197 -0
  1102. package/components/organisms/BulkConfigurationsDetail/tests/BulkConfigurationsDetail.test.js +572 -0
  1103. package/components/organisms/BulkConfigurationsDetail/tests/actions.test.js +52 -0
  1104. package/components/organisms/BulkConfigurationsDetail/tests/reducer.test.js +236 -0
  1105. package/components/organisms/BulkConfigurationsDetail/tests/saga.test.js +197 -0
  1106. package/components/organisms/BulkConfigurationsDetail/tests/selectors.test.js +42 -0
  1107. package/components/organisms/BulkConfigurationsDetail/utils.js +540 -0
  1108. package/components/organisms/CappingSlidebox/CappingSlidebox.js +829 -0
  1109. package/components/organisms/CappingSlidebox/index.js +1 -0
  1110. package/components/organisms/CappingSlidebox/messages.js +74 -0
  1111. package/components/organisms/CappingSlidebox/style.js +88 -0
  1112. package/components/organisms/CappingSlidebox/tests/CappingSlidebox.test.js +659 -0
  1113. package/components/organisms/CappingSlidebox/tests/TrackerCapping.test.js +183 -0
  1114. package/components/organisms/ChangeLog/ChangeLog.js +324 -0
  1115. package/components/organisms/ChangeLog/index.js +1 -0
  1116. package/components/organisms/ChangeLog/messages.js +36 -0
  1117. package/components/organisms/ChangeLog/style.js +24 -0
  1118. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/ChangeTierPartnerProgramWorkflowAction.js +330 -0
  1119. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/constants.js +17 -0
  1120. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/index.js +1 -0
  1121. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/messages.js +44 -0
  1122. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/style.js +32 -0
  1123. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/ChangeTierPartnerProgramWorkflowAction.test.js +148 -0
  1124. package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/mockData.js +29 -0
  1125. package/components/organisms/Communication/Communication.js +252 -0
  1126. package/components/organisms/Communication/Loadable.js +7 -0
  1127. package/components/organisms/Communication/actions.js +24 -0
  1128. package/components/organisms/Communication/constants.js +27 -0
  1129. package/components/organisms/Communication/index.js +1 -0
  1130. package/components/organisms/Communication/mockData.js +163 -0
  1131. package/components/organisms/Communication/reducer.js +41 -0
  1132. package/components/organisms/Communication/saga.js +36 -0
  1133. package/components/organisms/Communication/selectors.js +25 -0
  1134. package/components/organisms/Communication/style.js +15 -0
  1135. package/components/organisms/Communication/tests/actions.test.js +13 -0
  1136. package/components/organisms/Communication/tests/index.test.js +54 -0
  1137. package/components/organisms/Communication/tests/mockData.js +146 -0
  1138. package/components/organisms/Communication/tests/reducer.test.js +8 -0
  1139. package/components/organisms/Communication/tests/selectors.test.js +5 -0
  1140. package/components/organisms/CommunicationAdvancedOption/CommunicationAdvancedOption.js +245 -0
  1141. package/components/organisms/CommunicationAdvancedOption/actions.js +12 -0
  1142. package/components/organisms/CommunicationAdvancedOption/constants.js +8 -0
  1143. package/components/organisms/CommunicationAdvancedOption/index.js +1 -0
  1144. package/components/organisms/CommunicationAdvancedOption/reducer.js +31 -0
  1145. package/components/organisms/CommunicationAdvancedOption/saga.js +36 -0
  1146. package/components/organisms/CommunicationAdvancedOption/selectors.js +25 -0
  1147. package/components/organisms/CommunicationAdvancedOption/style.js +8 -0
  1148. package/components/organisms/CommunicationAdvancedOption/tests/mocks/data.js +14 -0
  1149. package/components/organisms/CommunicationAdvancedOption/tests/saga.test.js +87 -0
  1150. package/components/organisms/CommunicationStrategies/CommunicationStrategies.js +326 -0
  1151. package/components/organisms/CommunicationStrategies/actions.js +17 -0
  1152. package/components/organisms/CommunicationStrategies/constants.js +14 -0
  1153. package/components/organisms/CommunicationStrategies/index.js +1 -0
  1154. package/components/organisms/CommunicationStrategies/messages.js +32 -0
  1155. package/components/organisms/CommunicationStrategies/reducer.js +39 -0
  1156. package/components/organisms/CommunicationStrategies/saga.js +62 -0
  1157. package/components/organisms/CommunicationStrategies/selectors.js +25 -0
  1158. package/components/organisms/CommunicationStrategies/style.js +0 -0
  1159. package/components/organisms/CommunicationStrategies/tests/__snapshots__/index.test.js.snap +2561 -0
  1160. package/components/organisms/CommunicationStrategies/tests/index.test.js +13 -0
  1161. package/components/organisms/CommunicationStrategies/tests/mocks/data.js +14 -0
  1162. package/components/organisms/CommunicationStrategies/tests/saga.test.js +157 -0
  1163. package/components/organisms/CommunicationStrategies/utils.js +567 -0
  1164. package/components/organisms/ConfigureKPI/ConfigureKPI.js +298 -0
  1165. package/components/organisms/ConfigureKPI/actions.js +17 -0
  1166. package/components/organisms/ConfigureKPI/constants.js +13 -0
  1167. package/components/organisms/ConfigureKPI/index.js +1 -0
  1168. package/components/organisms/ConfigureKPI/reducer.js +36 -0
  1169. package/components/organisms/ConfigureKPI/saga.js +69 -0
  1170. package/components/organisms/ConfigureKPI/selectors.js +21 -0
  1171. package/components/organisms/ConfigureKPI/style.js +25 -0
  1172. package/components/organisms/ConfigureKPI/tests/ConfigureKPI.test.js +76 -0
  1173. package/components/organisms/ConfigureKPI/tests/__snapshots__/ConfigureKPI.test.js.snap +54 -0
  1174. package/components/organisms/ConfigureKPI/tests/__snapshots__/reducer.test.js.snap +9 -0
  1175. package/components/organisms/ConfigureKPI/tests/mockdata.js +22 -0
  1176. package/components/organisms/ConfigureKPI/tests/reducer.test.js +91 -0
  1177. package/components/organisms/ConfigureKPI/tests/saga.test.js +146 -0
  1178. package/components/organisms/ConfigureKPI/tests/utils.test.js +17 -0
  1179. package/components/organisms/ConfigureKPI/utils.js +9 -0
  1180. package/components/organisms/ConfigureProgramSteps/ConfigureProgramSteps.js +312 -0
  1181. package/components/organisms/ConfigureProgramSteps/constants.js +4 -0
  1182. package/components/organisms/ConfigureProgramSteps/index.js +1 -0
  1183. package/components/organisms/ConfigureProgramSteps/messages.js +65 -0
  1184. package/components/organisms/ConfigureProgramSteps/style.js +110 -0
  1185. package/components/organisms/ConfigureProgramSteps/tests/ConfigureProgramSteps.test.js +109 -0
  1186. package/components/organisms/ConfigureStrategies/ConfigureStrategies.js +632 -0
  1187. package/components/organisms/ConfigureStrategies/actions.js +15 -0
  1188. package/components/organisms/ConfigureStrategies/constants.js +26 -0
  1189. package/components/organisms/ConfigureStrategies/index.js +1 -0
  1190. package/components/organisms/ConfigureStrategies/messages.js +37 -0
  1191. package/components/organisms/ConfigureStrategies/reducer.js +35 -0
  1192. package/components/organisms/ConfigureStrategies/saga.js +44 -0
  1193. package/components/organisms/ConfigureStrategies/selectors.js +33 -0
  1194. package/components/organisms/ConfigureStrategies/style.js +198 -0
  1195. package/components/organisms/ConfigureStrategies/tests/ConfigureStrategies.test.js +363 -0
  1196. package/components/organisms/ConfigureStrategies/tests/mocks/data.js +14 -0
  1197. package/components/organisms/ConfigureStrategies/tests/saga.test.js +87 -0
  1198. package/components/organisms/ConfigureTrackers/ConfigureTrackers.js +193 -0
  1199. package/components/organisms/ConfigureTrackers/index.js +1 -0
  1200. package/components/organisms/ConfigureTrackers/messages.js +10 -0
  1201. package/components/organisms/ConfigureTrackers/style.js +35 -0
  1202. package/components/organisms/ConfigureWorkflows/ConfigureWorkflows.js +798 -0
  1203. package/components/organisms/ConfigureWorkflows/Loadable.js +7 -0
  1204. package/components/organisms/ConfigureWorkflows/PreviewBulkConfiguration.js +131 -0
  1205. package/components/organisms/ConfigureWorkflows/ScopingAndCapping.js +519 -0
  1206. package/components/organisms/ConfigureWorkflows/WorkflowActions.js +455 -0
  1207. package/components/organisms/ConfigureWorkflows/WorkflowConfigurationSection.js +2594 -0
  1208. package/components/organisms/ConfigureWorkflows/actions.js +333 -0
  1209. package/components/organisms/ConfigureWorkflows/constants.js +478 -0
  1210. package/components/organisms/ConfigureWorkflows/context.js +7 -0
  1211. package/components/organisms/ConfigureWorkflows/data.js +11201 -0
  1212. package/components/organisms/ConfigureWorkflows/index.js +1 -0
  1213. package/components/organisms/ConfigureWorkflows/messages.js +233 -0
  1214. package/components/organisms/ConfigureWorkflows/reducer.js +576 -0
  1215. package/components/organisms/ConfigureWorkflows/saga.js +1208 -0
  1216. package/components/organisms/ConfigureWorkflows/selectors.js +203 -0
  1217. package/components/organisms/ConfigureWorkflows/style.js +660 -0
  1218. package/components/organisms/ConfigureWorkflows/tests/ConfigureWorkflows.test.js +210 -0
  1219. package/components/organisms/ConfigureWorkflows/tests/PreviewBulkConfiguration.test.js +46 -0
  1220. package/components/organisms/ConfigureWorkflows/tests/WorkflowActions.test.js +105 -0
  1221. package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSection.test.js +791 -0
  1222. package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSectionView.test.js +342 -0
  1223. package/components/organisms/ConfigureWorkflows/tests/__snapshots__/actions.test.js.snap +15 -0
  1224. package/components/organisms/ConfigureWorkflows/tests/__snapshots__/reducer.test.js.snap +8993 -0
  1225. package/components/organisms/ConfigureWorkflows/tests/actions.test.js +405 -0
  1226. package/components/organisms/ConfigureWorkflows/tests/mockData.js +7161 -0
  1227. package/components/organisms/ConfigureWorkflows/tests/mocks/data.js +171 -0
  1228. package/components/organisms/ConfigureWorkflows/tests/mocks/rulesetsData.js +637 -0
  1229. package/components/organisms/ConfigureWorkflows/tests/reducer.test.js +1640 -0
  1230. package/components/organisms/ConfigureWorkflows/tests/saga.test.js +2543 -0
  1231. package/components/organisms/ConfigureWorkflows/tests/selectors.test.js +67 -0
  1232. package/components/organisms/ConfigureWorkflows/tests/utils.test.js +442 -0
  1233. package/components/organisms/ConfigureWorkflows/utils.js +1485 -0
  1234. package/components/organisms/CouponSlidebox/CouponSlidebox.js +326 -0
  1235. package/components/organisms/CouponSlidebox/_coupons.scss +127 -0
  1236. package/components/organisms/CouponSlidebox/actions.js +13 -0
  1237. package/components/organisms/CouponSlidebox/constants.js +16 -0
  1238. package/components/organisms/CouponSlidebox/index.js +1 -0
  1239. package/components/organisms/CouponSlidebox/messages.js +29 -0
  1240. package/components/organisms/CouponSlidebox/reducer.js +31 -0
  1241. package/components/organisms/CouponSlidebox/selectors.js +22 -0
  1242. package/components/organisms/CouponSlidebox/tests/CouponSlidebox.test.js +20 -0
  1243. package/components/organisms/Coupons/Coupons.js +379 -0
  1244. package/components/organisms/Coupons/Loadable.js +5 -0
  1245. package/components/organisms/Coupons/actions.js +13 -0
  1246. package/components/organisms/Coupons/constants.js +22 -0
  1247. package/components/organisms/Coupons/index.js +1 -0
  1248. package/components/organisms/Coupons/messages.js +20 -0
  1249. package/components/organisms/Coupons/reducer.js +31 -0
  1250. package/components/organisms/Coupons/saga.js +8 -0
  1251. package/components/organisms/Coupons/selectors.js +22 -0
  1252. package/components/organisms/Coupons/style.js +57 -0
  1253. package/components/organisms/Coupons/tests/actions.test.js +13 -0
  1254. package/components/organisms/Coupons/tests/index.test.js +54 -0
  1255. package/components/organisms/Coupons/tests/mockdata.js +2842 -0
  1256. package/components/organisms/Coupons/tests/saga.test.js +11 -0
  1257. package/components/organisms/Coupons/tests/selectors.test.js +8 -0
  1258. package/components/organisms/CreateAlternateCurrency/CreateAlternateCurrency.js +821 -0
  1259. package/components/organisms/CreateAlternateCurrency/actions.js +12 -0
  1260. package/components/organisms/CreateAlternateCurrency/constants.js +7 -0
  1261. package/components/organisms/CreateAlternateCurrency/index.js +1 -0
  1262. package/components/organisms/CreateAlternateCurrency/messages.js +177 -0
  1263. package/components/organisms/CreateAlternateCurrency/reducer.js +34 -0
  1264. package/components/organisms/CreateAlternateCurrency/saga.js +41 -0
  1265. package/components/organisms/CreateAlternateCurrency/selectors.js +17 -0
  1266. package/components/organisms/CreateAlternateCurrency/style.js +168 -0
  1267. package/components/organisms/CreateAlternateCurrency/tests/CreateAlternateCurrency.test.js +381 -0
  1268. package/components/organisms/CreateAlternateCurrency/tests/actions.test.js +29 -0
  1269. package/components/organisms/CreateAlternateCurrency/tests/mockData.js +208 -0
  1270. package/components/organisms/CreateAlternateCurrency/tests/reducer.test.js +70 -0
  1271. package/components/organisms/CreateAlternateCurrency/tests/saga.test.js +103 -0
  1272. package/components/organisms/CreateAlternateCurrency/tests/selectors.test.js +32 -0
  1273. package/components/organisms/CreateAlternateCurrency/utils.js +45 -0
  1274. package/components/organisms/CreateBulkConfigForm/CreateBulkConfigForm.js +56 -0
  1275. package/components/organisms/CreateBulkConfigForm/index.js +1 -0
  1276. package/components/organisms/CreateBulkConfigForm/messages.js +18 -0
  1277. package/components/organisms/CreateBulkConfigForm/style.js +35 -0
  1278. package/components/organisms/CreateBulkConfigForm/tests/CreateBulkConfigForm.test.js +35 -0
  1279. package/components/organisms/CreateProgram/CreateProgram.js +702 -0
  1280. package/components/organisms/CreateProgram/actions.js +17 -0
  1281. package/components/organisms/CreateProgram/constants.js +30 -0
  1282. package/components/organisms/CreateProgram/index.js +1 -0
  1283. package/components/organisms/CreateProgram/messages.js +99 -0
  1284. package/components/organisms/CreateProgram/reducer.js +38 -0
  1285. package/components/organisms/CreateProgram/saga.js +43 -0
  1286. package/components/organisms/CreateProgram/selectors.js +22 -0
  1287. package/components/organisms/CreateProgram/style.js +223 -0
  1288. package/components/organisms/CreateProgram/tests/CreateProgram.test.js +500 -0
  1289. package/components/organisms/CreateProgram/tests/__snapshots__/reducer.test.js.snap +17 -0
  1290. package/components/organisms/CreateProgram/tests/mockdata.js +10 -0
  1291. package/components/organisms/CreateProgram/tests/mocks/initialState.js +4 -0
  1292. package/components/organisms/CreateProgram/tests/reducer.test.js +96 -0
  1293. package/components/organisms/CreateProgram/tests/saga.test.js +163 -0
  1294. package/components/organisms/CreateProgramIllustration/CreateProgramIllustration.js +72 -0
  1295. package/components/organisms/CreateProgramIllustration/constants.js +0 -0
  1296. package/components/organisms/CreateProgramIllustration/index.js +1 -0
  1297. package/components/organisms/CreateProgramIllustration/messages.js +25 -0
  1298. package/components/organisms/CreateProgramIllustration/tests/CreateProgramIllustration.test.js +56 -0
  1299. package/components/organisms/CreatePromotionForm/CreatePromotionForm.js +879 -0
  1300. package/components/organisms/CreatePromotionForm/index.js +1 -0
  1301. package/components/organisms/CreatePromotionForm/messages.js +110 -0
  1302. package/components/organisms/CreatePromotionForm/style.js +253 -0
  1303. package/components/organisms/CreatePromotionForm/tests/CreatePromotionForm.test.js +484 -0
  1304. package/components/organisms/CreatePromotionForm/tests/mockData.js +130 -0
  1305. package/components/organisms/CreatePromotionForm/tests/utils.test.js +38 -0
  1306. package/components/organisms/CreatePromotionForm/utils.js +38 -0
  1307. package/components/organisms/CreateTender/CreateTender.js +485 -0
  1308. package/components/organisms/CreateTender/actions.js +17 -0
  1309. package/components/organisms/CreateTender/constants.js +11 -0
  1310. package/components/organisms/CreateTender/index.js +1 -0
  1311. package/components/organisms/CreateTender/messages.js +51 -0
  1312. package/components/organisms/CreateTender/reducer.js +37 -0
  1313. package/components/organisms/CreateTender/saga.js +45 -0
  1314. package/components/organisms/CreateTender/selectors.js +25 -0
  1315. package/components/organisms/CreateTender/style.js +69 -0
  1316. package/components/organisms/CreateTender/tests/CreateTender.test.js +102 -0
  1317. package/components/organisms/CreateTender/tests/mockData.js +489 -0
  1318. package/components/organisms/CreateTender/tests/mocks/data.js +16 -0
  1319. package/components/organisms/CreateTender/tests/saga.test.js +123 -0
  1320. package/components/organisms/CreateTier/CreateTier.js +218 -0
  1321. package/components/organisms/CreateTier/actions.js +16 -0
  1322. package/components/organisms/CreateTier/constants.js +7 -0
  1323. package/components/organisms/CreateTier/index.js +1 -0
  1324. package/components/organisms/CreateTier/messages.js +20 -0
  1325. package/components/organisms/CreateTier/reducer.js +37 -0
  1326. package/components/organisms/CreateTier/saga.js +47 -0
  1327. package/components/organisms/CreateTier/selectors.js +25 -0
  1328. package/components/organisms/CreateTier/style.js +11 -0
  1329. package/components/organisms/CreateTier/tests/mocks/data.js +15 -0
  1330. package/components/organisms/CreateTier/tests/saga.test.js +136 -0
  1331. package/components/organisms/CreateTier/utils.js +59 -0
  1332. package/components/organisms/Creatives/Creatives.js +1128 -0
  1333. package/components/organisms/Creatives/actions.js +30 -0
  1334. package/components/organisms/Creatives/constants.js +26 -0
  1335. package/components/organisms/Creatives/index.js +1 -0
  1336. package/components/organisms/Creatives/index.scss +170 -0
  1337. package/components/organisms/Creatives/messages.js +16 -0
  1338. package/components/organisms/Creatives/mockdata.js +222 -0
  1339. package/components/organisms/Creatives/reducer.js +194 -0
  1340. package/components/organisms/Creatives/saga.js +57 -0
  1341. package/components/organisms/Creatives/selectors.js +28 -0
  1342. package/components/organisms/Creatives/style.js +40 -0
  1343. package/components/organisms/Creatives/tests/Creatives.test.js +128 -0
  1344. package/components/organisms/Creatives/tests/__snapshots__/index.test.js.snap +217 -0
  1345. package/components/organisms/Creatives/tests/actions.test.js +13 -0
  1346. package/components/organisms/Creatives/tests/index.test.js +91 -0
  1347. package/components/organisms/Creatives/tests/saga.test.js +11 -0
  1348. package/components/organisms/Creatives/tests/selectors.test.js +5 -0
  1349. package/components/organisms/Creatives/useDidMountEffect.js +12 -0
  1350. package/components/organisms/CustomFieldSettings/CustomFieldSettings.js +244 -0
  1351. package/components/organisms/CustomFieldSettings/actions.js +12 -0
  1352. package/components/organisms/CustomFieldSettings/constants.js +12 -0
  1353. package/components/organisms/CustomFieldSettings/index.js +1 -0
  1354. package/components/organisms/CustomFieldSettings/message.js +30 -0
  1355. package/components/organisms/CustomFieldSettings/reducer.js +43 -0
  1356. package/components/organisms/CustomFieldSettings/saga.js +70 -0
  1357. package/components/organisms/CustomFieldSettings/selectors.js +14 -0
  1358. package/components/organisms/CustomFieldSettings/style.js +44 -0
  1359. package/components/organisms/CustomFieldSettings/tests/CustomFieldSettings.test.js +269 -0
  1360. package/components/organisms/CustomFieldSettings/tests/actions.test.js +31 -0
  1361. package/components/organisms/CustomFieldSettings/tests/mockData.js +56 -0
  1362. package/components/organisms/CustomFieldSettings/tests/mocks/data.js +14 -0
  1363. package/components/organisms/CustomFieldSettings/tests/reducer.test.js +102 -0
  1364. package/components/organisms/CustomFieldSettings/tests/saga.test.js +193 -0
  1365. package/components/organisms/CustomFieldSettings/tests/selectors.test.js +35 -0
  1366. package/components/organisms/CustomerActivity/CustomerActivity.js +504 -0
  1367. package/components/organisms/CustomerActivity/constants.js +3 -0
  1368. package/components/organisms/CustomerActivity/index.js +1 -0
  1369. package/components/organisms/CustomerActivity/messages.js +350 -0
  1370. package/components/organisms/CustomerActivity/style.js +92 -0
  1371. package/components/organisms/CustomerActivity/tests/CustomerActivity.test.js +30 -0
  1372. package/components/organisms/CustomerActivity/tests/mockData.js +149 -0
  1373. package/components/organisms/CustomerStatusLabelWorkflowActions/CustomerStatusLabelWorkflowAction.js +250 -0
  1374. package/components/organisms/CustomerStatusLabelWorkflowActions/actions.js +5 -0
  1375. package/components/organisms/CustomerStatusLabelWorkflowActions/constants.js +25 -0
  1376. package/components/organisms/CustomerStatusLabelWorkflowActions/index.js +1 -0
  1377. package/components/organisms/CustomerStatusLabelWorkflowActions/messages.js +50 -0
  1378. package/components/organisms/CustomerStatusLabelWorkflowActions/reducer.js +32 -0
  1379. package/components/organisms/CustomerStatusLabelWorkflowActions/saga.js +29 -0
  1380. package/components/organisms/CustomerStatusLabelWorkflowActions/selectors.js +15 -0
  1381. package/components/organisms/CustomerStatusLabelWorkflowActions/style.js +173 -0
  1382. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/CustomerStatusLabelWorkflowAction.test.js +82 -0
  1383. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/actions.test.js +11 -0
  1384. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/mocks/mockData.js +127 -0
  1385. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/reducer.test.js +57 -0
  1386. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/saga.test.js +79 -0
  1387. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/selectors.test.js +21 -0
  1388. package/components/organisms/CustomerStatusLabelWorkflowActions/tests/utils.test.js +143 -0
  1389. package/components/organisms/CustomerStatusLabelWorkflowActions/utils.js +129 -0
  1390. package/components/organisms/DelayedAccrual/DelayedAccrual.js +309 -0
  1391. package/components/organisms/DelayedAccrual/actions.js +27 -0
  1392. package/components/organisms/DelayedAccrual/constants.js +28 -0
  1393. package/components/organisms/DelayedAccrual/index.js +1 -0
  1394. package/components/organisms/DelayedAccrual/messages.js +40 -0
  1395. package/components/organisms/DelayedAccrual/reducer.js +45 -0
  1396. package/components/organisms/DelayedAccrual/saga.js +91 -0
  1397. package/components/organisms/DelayedAccrual/selectors.js +44 -0
  1398. package/components/organisms/DelayedAccrual/style.js +38 -0
  1399. package/components/organisms/DelayedAccrual/tests/DelayedAccuralAdvancedOption.test.js +131 -0
  1400. package/components/organisms/DelayedAccrual/tests/mockData.js +11 -0
  1401. package/components/organisms/DelayedAccrual/tests/reducer.test.js +92 -0
  1402. package/components/organisms/DelayedAccrual/tests/saga.test.js +214 -0
  1403. package/components/organisms/DelayedAccrual/tests/selectors.test.js +33 -0
  1404. package/components/organisms/DiscardDraft/DiscardDraft.js +190 -0
  1405. package/components/organisms/DiscardDraft/actions.js +12 -0
  1406. package/components/organisms/DiscardDraft/constants.js +5 -0
  1407. package/components/organisms/DiscardDraft/index.js +1 -0
  1408. package/components/organisms/DiscardDraft/messages.js +41 -0
  1409. package/components/organisms/DiscardDraft/mocks/data.js +24 -0
  1410. package/components/organisms/DiscardDraft/reducer.js +29 -0
  1411. package/components/organisms/DiscardDraft/saga.js +32 -0
  1412. package/components/organisms/DiscardDraft/selector.js +17 -0
  1413. package/components/organisms/DiscardDraft/style.js +18 -0
  1414. package/components/organisms/DiscardDraft/tests/DiscardDraft.test.js +101 -0
  1415. package/components/organisms/DiscardDraft/tests/action.test.js +10 -0
  1416. package/components/organisms/DiscardDraft/tests/reducer.test.js +44 -0
  1417. package/components/organisms/DiscardDraft/tests/saga.test.js +85 -0
  1418. package/components/organisms/DiscardDraft/tests/selector.test.js +22 -0
  1419. package/components/organisms/EbillWorkflowAction/EbillWorkflowAction.js +304 -0
  1420. package/components/organisms/EbillWorkflowAction/index.js +1 -0
  1421. package/components/organisms/EbillWorkflowAction/messages.js +36 -0
  1422. package/components/organisms/EbillWorkflowAction/style.js +10 -0
  1423. package/components/organisms/EbillWorkflowAction/tests/EbillWorkflowAction.test.js +56 -0
  1424. package/components/organisms/ExpiryCommunication/ExpiryCommunication.js +120 -0
  1425. package/components/organisms/ExpiryCommunication/constants.js +18 -0
  1426. package/components/organisms/ExpiryCommunication/index.js +1 -0
  1427. package/components/organisms/ExpiryCommunication/messages.js +24 -0
  1428. package/components/organisms/ExpiryCommunication/tests/index.test.js +24 -0
  1429. package/components/organisms/ExpiryCommunication/utils.js +259 -0
  1430. package/components/organisms/ExpiryConditions/ExpiryConditions.js +964 -0
  1431. package/components/organisms/ExpiryConditions/actions.js +8 -0
  1432. package/components/organisms/ExpiryConditions/constants.js +12 -0
  1433. package/components/organisms/ExpiryConditions/index.js +1 -0
  1434. package/components/organisms/ExpiryConditions/messages.js +117 -0
  1435. package/components/organisms/ExpiryConditions/reducer.js +33 -0
  1436. package/components/organisms/ExpiryConditions/saga.js +34 -0
  1437. package/components/organisms/ExpiryConditions/selectors.js +21 -0
  1438. package/components/organisms/ExpiryConditions/style.js +209 -0
  1439. package/components/organisms/ExpiryConditions/tests/ExpiryConditions.test.js +400 -0
  1440. package/components/organisms/ExpiryConditions/tests/ExtendedFields.test.js +134 -0
  1441. package/components/organisms/ExpiryConditions/tests/mocks/data.js +30 -0
  1442. package/components/organisms/ExpiryConditions/tests/saga.test.js +87 -0
  1443. package/components/organisms/ExpiryConditions/tests/utils.test.js +47 -0
  1444. package/components/organisms/ExpiryConditions/utils.js +16 -0
  1445. package/components/organisms/ExpiryStrategy/ExpiryStrategy.js +674 -0
  1446. package/components/organisms/ExpiryStrategy/constants.js +13 -0
  1447. package/components/organisms/ExpiryStrategy/index.js +1 -0
  1448. package/components/organisms/ExpiryStrategy/messages.js +40 -0
  1449. package/components/organisms/ExpiryStrategy/style.js +13 -0
  1450. package/components/organisms/ExpiryStrategy/tests/ExpiryStrategy.test.js +70 -0
  1451. package/components/organisms/ExpiryStrategy/tests/mockData.js +125 -0
  1452. package/components/organisms/ForwardToSetWorkflowAction/ForwardToSetWorkflowAction.js +412 -0
  1453. package/components/organisms/ForwardToSetWorkflowAction/constants.js +22 -0
  1454. package/components/organisms/ForwardToSetWorkflowAction/index.js +1 -0
  1455. package/components/organisms/ForwardToSetWorkflowAction/messages.js +70 -0
  1456. package/components/organisms/ForwardToSetWorkflowAction/style.js +16 -0
  1457. package/components/organisms/ForwardToSetWorkflowAction/tests/ForwardToSetWorkflowAction.test.js +123 -0
  1458. package/components/organisms/ForwardToSetWorkflowAction/tests/mockData.js +10 -0
  1459. package/components/organisms/GroupItemLabel/GroupItemLabel.js +471 -0
  1460. package/components/organisms/GroupItemLabel/constants.js +2 -0
  1461. package/components/organisms/GroupItemLabel/index.js +1 -0
  1462. package/components/organisms/GroupItemLabel/messages.js +33 -0
  1463. package/components/organisms/GroupItemLabel/mocks/data.js +142 -0
  1464. package/components/organisms/GroupItemLabel/style.js +54 -0
  1465. package/components/organisms/GroupItemLabel/tests/GroupItemLabel.test.js +366 -0
  1466. package/components/organisms/GroupItemLabel/tests/__snapshots__/index.test.js.snap +296 -0
  1467. package/components/organisms/GroupItemLabel/tests/index.test.js +67 -0
  1468. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/InitiateSupplementaryMemberShipWorkflowAction.js +399 -0
  1469. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/constants.js +20 -0
  1470. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/index.js +1 -0
  1471. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/messages.js +52 -0
  1472. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/style.js +32 -0
  1473. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/InitiateSupplementaryMemberShipWorkflowAction.test.js +168 -0
  1474. package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/mockData.js +29 -0
  1475. package/components/organisms/IssueBadgeWorkflowAction/IssueBadgeWorkflowAction.js +577 -0
  1476. package/components/organisms/IssueBadgeWorkflowAction/actions.js +19 -0
  1477. package/components/organisms/IssueBadgeWorkflowAction/constants.js +31 -0
  1478. package/components/organisms/IssueBadgeWorkflowAction/index.js +1 -0
  1479. package/components/organisms/IssueBadgeWorkflowAction/messages.js +134 -0
  1480. package/components/organisms/IssueBadgeWorkflowAction/reducer.js +41 -0
  1481. package/components/organisms/IssueBadgeWorkflowAction/saga.js +58 -0
  1482. package/components/organisms/IssueBadgeWorkflowAction/selectors.js +17 -0
  1483. package/components/organisms/IssueBadgeWorkflowAction/style.js +292 -0
  1484. package/components/organisms/IssueBadgeWorkflowAction/tests/IssueBadgeWorkflowAction.test.js +184 -0
  1485. package/components/organisms/IssueBadgeWorkflowAction/tests/mocks/mockData.js +183 -0
  1486. package/components/organisms/IssueBadgeWorkflowAction/tests/reducer.test.js +101 -0
  1487. package/components/organisms/IssueBadgeWorkflowAction/tests/saga.test.js +136 -0
  1488. package/components/organisms/IssueBadgeWorkflowAction/tests/selectors.test.js +22 -0
  1489. package/components/organisms/IssueBadgeWorkflowAction/tests/utils.test.js +30 -0
  1490. package/components/organisms/IssueBadgeWorkflowAction/utils.js +36 -0
  1491. package/components/organisms/IssueCatalogRewardsAction/IssueCatalogRewardsAction.js +1034 -0
  1492. package/components/organisms/IssueCatalogRewardsAction/actions.js +28 -0
  1493. package/components/organisms/IssueCatalogRewardsAction/constants.js +70 -0
  1494. package/components/organisms/IssueCatalogRewardsAction/index.js +1 -0
  1495. package/components/organisms/IssueCatalogRewardsAction/messages.js +275 -0
  1496. package/components/organisms/IssueCatalogRewardsAction/reducer.js +83 -0
  1497. package/components/organisms/IssueCatalogRewardsAction/saga.js +141 -0
  1498. package/components/organisms/IssueCatalogRewardsAction/selectors.js +31 -0
  1499. package/components/organisms/IssueCatalogRewardsAction/style.js +362 -0
  1500. package/components/organisms/IssueCatalogRewardsAction/tests/IssueCatalogRewardsAction.test.js +788 -0
  1501. package/components/organisms/IssueCatalogRewardsAction/tests/actions.test.js +23 -0
  1502. package/components/organisms/IssueCatalogRewardsAction/tests/mockData.js +534 -0
  1503. package/components/organisms/IssueCatalogRewardsAction/tests/reducer.test.js +184 -0
  1504. package/components/organisms/IssueCatalogRewardsAction/tests/saga.test.js +277 -0
  1505. package/components/organisms/IssueCatalogRewardsAction/tests/selectors.test.js +53 -0
  1506. package/components/organisms/IssueCatalogRewardsAction/tests/utils.test.js +33 -0
  1507. package/components/organisms/IssueCatalogRewardsAction/utils.js +125 -0
  1508. package/components/organisms/IssueCouponsWorkflowAction/IssueCouponsWorkflowAction.js +1393 -0
  1509. package/components/organisms/IssueCouponsWorkflowAction/actions.js +12 -0
  1510. package/components/organisms/IssueCouponsWorkflowAction/constants.js +24 -0
  1511. package/components/organisms/IssueCouponsWorkflowAction/index.js +1 -0
  1512. package/components/organisms/IssueCouponsWorkflowAction/messages.js +207 -0
  1513. package/components/organisms/IssueCouponsWorkflowAction/mockData.js +12 -0
  1514. package/components/organisms/IssueCouponsWorkflowAction/reducer.js +35 -0
  1515. package/components/organisms/IssueCouponsWorkflowAction/saga.js +36 -0
  1516. package/components/organisms/IssueCouponsWorkflowAction/selectors.js +29 -0
  1517. package/components/organisms/IssueCouponsWorkflowAction/style.js +356 -0
  1518. package/components/organisms/IssueCouponsWorkflowAction/tests/IssueCouponWorkflowAction.test.js +551 -0
  1519. package/components/organisms/IssueCouponsWorkflowAction/tests/actions.test.js +18 -0
  1520. package/components/organisms/IssueCouponsWorkflowAction/tests/index.test.js +219 -0
  1521. package/components/organisms/IssueCouponsWorkflowAction/tests/mocks/data.js +244 -0
  1522. package/components/organisms/IssueCouponsWorkflowAction/tests/reducer.test.js +76 -0
  1523. package/components/organisms/IssueCouponsWorkflowAction/tests/saga.test.js +80 -0
  1524. package/components/organisms/IssueCouponsWorkflowAction/tests/selectors.test.js +21 -0
  1525. package/components/organisms/IssueCouponsWorkflowAction/tests/utils.test.js +15 -0
  1526. package/components/organisms/IssueCouponsWorkflowAction/utils.js +13 -0
  1527. package/components/organisms/IssuePromotionWorkflowAction/IssuePromotionWorkflowAction.js +608 -0
  1528. package/components/organisms/IssuePromotionWorkflowAction/actions.js +10 -0
  1529. package/components/organisms/IssuePromotionWorkflowAction/constants.js +14 -0
  1530. package/components/organisms/IssuePromotionWorkflowAction/index.js +1 -0
  1531. package/components/organisms/IssuePromotionWorkflowAction/messages.js +73 -0
  1532. package/components/organisms/IssuePromotionWorkflowAction/reducer.js +32 -0
  1533. package/components/organisms/IssuePromotionWorkflowAction/saga.js +33 -0
  1534. package/components/organisms/IssuePromotionWorkflowAction/selectors.js +18 -0
  1535. package/components/organisms/IssuePromotionWorkflowAction/style.js +317 -0
  1536. package/components/organisms/IssuePromotionWorkflowAction/tests/IssuePromotionWorkflowAction.test.js +211 -0
  1537. package/components/organisms/IssuePromotionWorkflowAction/tests/mocks/mockData.js +126 -0
  1538. package/components/organisms/IssuePromotionWorkflowAction/tests/reducer.test.js +60 -0
  1539. package/components/organisms/IssuePromotionWorkflowAction/tests/saga.test.js +84 -0
  1540. package/components/organisms/IssuePromotionWorkflowAction/tests/selectors.test.js +22 -0
  1541. package/components/organisms/IssuePromotionWorkflowAction/tests/utils.test.js +29 -0
  1542. package/components/organisms/IssuePromotionWorkflowAction/utils.js +38 -0
  1543. package/components/organisms/LiabilitySettings/LiabilitySettings.js +899 -0
  1544. package/components/organisms/LiabilitySettings/actions.js +33 -0
  1545. package/components/organisms/LiabilitySettings/constants.js +38 -0
  1546. package/components/organisms/LiabilitySettings/index.js +1 -0
  1547. package/components/organisms/LiabilitySettings/messages.js +58 -0
  1548. package/components/organisms/LiabilitySettings/mockData.js +30 -0
  1549. package/components/organisms/LiabilitySettings/reducer.js +95 -0
  1550. package/components/organisms/LiabilitySettings/saga.js +151 -0
  1551. package/components/organisms/LiabilitySettings/selectors.js +21 -0
  1552. package/components/organisms/LiabilitySettings/style.js +48 -0
  1553. package/components/organisms/LiabilitySettings/tests/LiabilitySettings.test.js +488 -0
  1554. package/components/organisms/LiabilitySettings/tests/actions.test.js +72 -0
  1555. package/components/organisms/LiabilitySettings/tests/mockData.js +34 -0
  1556. package/components/organisms/LiabilitySettings/tests/reducer.test.js +205 -0
  1557. package/components/organisms/LiabilitySettings/tests/saga.test.js +353 -0
  1558. package/components/organisms/LiabilitySettings/tests/selectors.test.js +32 -0
  1559. package/components/organisms/LoyaltyDetail/LoyaltyDetail.js +467 -0
  1560. package/components/organisms/LoyaltyDetail/actions.js +14 -0
  1561. package/components/organisms/LoyaltyDetail/constants.js +32 -0
  1562. package/components/organisms/LoyaltyDetail/index.js +1 -0
  1563. package/components/organisms/LoyaltyDetail/messages.js +61 -0
  1564. package/components/organisms/LoyaltyDetail/reducer.js +51 -0
  1565. package/components/organisms/LoyaltyDetail/saga.js +65 -0
  1566. package/components/organisms/LoyaltyDetail/selectors.js +36 -0
  1567. package/components/organisms/LoyaltyDetail/style.js +87 -0
  1568. package/components/organisms/LoyaltyDetail/tests/LoyaltyDetail.test.js +89 -0
  1569. package/components/organisms/LoyaltyDetail/tests/__snapshots__/reducer.test.js.snap +12 -0
  1570. package/components/organisms/LoyaltyDetail/tests/mockdata.js +39 -0
  1571. package/components/organisms/LoyaltyDetail/tests/reducer.test.js +92 -0
  1572. package/components/organisms/LoyaltyDetail/tests/saga.test.js +132 -0
  1573. package/components/organisms/LoyaltyDetail/utils.js +219 -0
  1574. package/components/organisms/LoyaltyGraph/LoyaltyGraph.js +455 -0
  1575. package/components/organisms/LoyaltyGraph/actions.js +6 -0
  1576. package/components/organisms/LoyaltyGraph/constants.js +21 -0
  1577. package/components/organisms/LoyaltyGraph/index.js +1 -0
  1578. package/components/organisms/LoyaltyGraph/messages.js +49 -0
  1579. package/components/organisms/LoyaltyGraph/reducer.js +33 -0
  1580. package/components/organisms/LoyaltyGraph/saga.js +51 -0
  1581. package/components/organisms/LoyaltyGraph/selectors.js +23 -0
  1582. package/components/organisms/LoyaltyGraph/style.js +141 -0
  1583. package/components/organisms/LoyaltyGraph/tests/LoyaltyGraph.test.js +49 -0
  1584. package/components/organisms/LoyaltyGraph/tests/__snapshots__/LoyaltyGraph.test.js.snap +77 -0
  1585. package/components/organisms/LoyaltyGraph/tests/mockdata.js +87 -0
  1586. package/components/organisms/LoyaltyGraph/tests/saga.test.js +86 -0
  1587. package/components/organisms/LoyaltyGraph/utils.js +61 -0
  1588. package/components/organisms/LoyaltyPromotions/LoyaltyPromotions.js +626 -0
  1589. package/components/organisms/LoyaltyPromotions/constants.js +15 -0
  1590. package/components/organisms/LoyaltyPromotions/index.js +1 -0
  1591. package/components/organisms/LoyaltyPromotions/messages.js +142 -0
  1592. package/components/organisms/LoyaltyPromotions/style.js +257 -0
  1593. package/components/organisms/LoyaltyPromotions/tests/LoyaltyPromotions.test.js +283 -0
  1594. package/components/organisms/LoyaltyPromotions/tests/utils.test.js +120 -0
  1595. package/components/organisms/LoyaltyPromotions/utils.js +102 -0
  1596. package/components/organisms/MandatoryAndPriorityChannel/MandatoryAndPriorityChannel.js +260 -0
  1597. package/components/organisms/MandatoryAndPriorityChannel/index.js +1 -0
  1598. package/components/organisms/MandatoryAndPriorityChannel/messages.js +23 -0
  1599. package/components/organisms/MandatoryAndPriorityChannel/style.js +31 -0
  1600. package/components/organisms/NavigationBar/NavigationBar.js +299 -0
  1601. package/components/organisms/NavigationBar/constants.js +10 -0
  1602. package/components/organisms/NavigationBar/index.js +1 -0
  1603. package/components/organisms/NavigationBar/messages.js +33 -0
  1604. package/components/organisms/NavigationBar/saga.js +11 -0
  1605. package/components/organisms/NavigationBar/style.js +116 -0
  1606. package/components/organisms/NavigationBar/tests/NavigationBar.test.js +325 -0
  1607. package/components/organisms/NavigationBar/tests/mockdata.js +143 -0
  1608. package/components/organisms/NoConfigWorkflowAction/NoConfigWorkflowAction.js +111 -0
  1609. package/components/organisms/NoConfigWorkflowAction/index.js +1 -0
  1610. package/components/organisms/Nudges/Nudges.js +297 -0
  1611. package/components/organisms/Nudges/actions.js +6 -0
  1612. package/components/organisms/Nudges/constants.js +5 -0
  1613. package/components/organisms/Nudges/index.js +1 -0
  1614. package/components/organisms/Nudges/messages.js +20 -0
  1615. package/components/organisms/Nudges/reducer.js +35 -0
  1616. package/components/organisms/Nudges/saga.js +32 -0
  1617. package/components/organisms/Nudges/selectors.js +21 -0
  1618. package/components/organisms/Nudges/style.js +117 -0
  1619. package/components/organisms/Nudges/tests/mocks/data.js +12 -0
  1620. package/components/organisms/Nudges/tests/saga.test.js +77 -0
  1621. package/components/organisms/OrgChange/OrgChange.js +250 -0
  1622. package/components/organisms/OrgChange/constants.js +2 -0
  1623. package/components/organisms/OrgChange/index.js +1 -0
  1624. package/components/organisms/OrgChange/message.js +38 -0
  1625. package/components/organisms/OrgChange/style.js +15 -0
  1626. package/components/organisms/OrgChange/tests/OrgChange.test.js +71 -0
  1627. package/components/organisms/OrgChange/tests/__snapshots__/OrgChange.test.js.snap +23490 -0
  1628. package/components/organisms/PageHeader/PageHeader.js +328 -0
  1629. package/components/organisms/PageHeader/index.js +1 -0
  1630. package/components/organisms/PageHeader/messages.js +14 -0
  1631. package/components/organisms/PageHeader/style.js +82 -0
  1632. package/components/organisms/PageHeader/tests/PageHeader.test.js +110 -0
  1633. package/components/organisms/PageHeader/tests/__snapshots__/PageHeader.test.js.snap +35058 -0
  1634. package/components/organisms/PageHeaderButton/PageHeaderButton.js +166 -0
  1635. package/components/organisms/PageHeaderButton/index.js +1 -0
  1636. package/components/organisms/PageHeaderButton/messages.js +43 -0
  1637. package/components/organisms/PageHeaderButton/style.js +37 -0
  1638. package/components/organisms/PageHeaderVersioning/PageHeaderVersioning.js +237 -0
  1639. package/components/organisms/PageHeaderVersioning/index.js +1 -0
  1640. package/components/organisms/PageHeaderVersioning/messages.js +29 -0
  1641. package/components/organisms/PageHeaderVersioning/style.js +100 -0
  1642. package/components/organisms/PartnerProgramAdvancedOption/PartnerProgramAdvancedOption.js +169 -0
  1643. package/components/organisms/PartnerProgramAdvancedOption/constants.js +8 -0
  1644. package/components/organisms/PartnerProgramAdvancedOption/index.js +1 -0
  1645. package/components/organisms/PartnerProgramAdvancedOption/messages.js +26 -0
  1646. package/components/organisms/PartnerProgramAdvancedOption/style.js +15 -0
  1647. package/components/organisms/PartnerProgramAdvancedOption/tests/PartnerProgramAdvancedOption.test.js +249 -0
  1648. package/components/organisms/PartnerProgramDashboard/Loadable.js +7 -0
  1649. package/components/organisms/PartnerProgramDashboard/PartnerProgramDashboard.js +416 -0
  1650. package/components/organisms/PartnerProgramDashboard/actions.js +38 -0
  1651. package/components/organisms/PartnerProgramDashboard/constants.js +34 -0
  1652. package/components/organisms/PartnerProgramDashboard/context.js +7 -0
  1653. package/components/organisms/PartnerProgramDashboard/index.js +1 -0
  1654. package/components/organisms/PartnerProgramDashboard/messages.js +62 -0
  1655. package/components/organisms/PartnerProgramDashboard/reducer.js +82 -0
  1656. package/components/organisms/PartnerProgramDashboard/saga.js +128 -0
  1657. package/components/organisms/PartnerProgramDashboard/selectors.js +66 -0
  1658. package/components/organisms/PartnerProgramDashboard/style.js +32 -0
  1659. package/components/organisms/PartnerProgramDashboard/test/PartnerProgramDashboard.test.js +151 -0
  1660. package/components/organisms/PartnerProgramDashboard/test/actions.test.js +12 -0
  1661. package/components/organisms/PartnerProgramDashboard/test/mocks/data.js +321 -0
  1662. package/components/organisms/PartnerProgramDashboard/test/reducer.test.js +322 -0
  1663. package/components/organisms/PartnerProgramDashboard/test/saga.test.js +308 -0
  1664. package/components/organisms/PartnerProgramDashboard/test/selectors.test.js +58 -0
  1665. package/components/organisms/PartnerProgramDashboard/test/utils.test.js +14 -0
  1666. package/components/organisms/PartnerProgramDashboard/utils.js +32 -0
  1667. package/components/organisms/PartnerProgramTierSettings/PartnerProgramTierSettings.js +409 -0
  1668. package/components/organisms/PartnerProgramTierSettings/index.js +1 -0
  1669. package/components/organisms/PartnerProgramTierSettings/messages.js +46 -0
  1670. package/components/organisms/PartnerProgramTierSettings/style.js +88 -0
  1671. package/components/organisms/PartnerProgramTierSettings/tests/PartnerProgramTierSettings.test.js +297 -0
  1672. package/components/organisms/PartnerProgramTierSettings/tests/mocks/data.js +67 -0
  1673. package/components/organisms/PaymentMethodsAdvanced/PaymentSettingsAdvanced.js +516 -0
  1674. package/components/organisms/PaymentMethodsAdvanced/actions.js +26 -0
  1675. package/components/organisms/PaymentMethodsAdvanced/constants.js +42 -0
  1676. package/components/organisms/PaymentMethodsAdvanced/index.js +1 -0
  1677. package/components/organisms/PaymentMethodsAdvanced/messages.js +34 -0
  1678. package/components/organisms/PaymentMethodsAdvanced/reducer.js +76 -0
  1679. package/components/organisms/PaymentMethodsAdvanced/saga.js +129 -0
  1680. package/components/organisms/PaymentMethodsAdvanced/selectors.js +25 -0
  1681. package/components/organisms/PaymentMethodsAdvanced/style.js +22 -0
  1682. package/components/organisms/PaymentMethodsAdvanced/tests/PaymentSettingsAdvanced.test.js +18 -0
  1683. package/components/organisms/PaymentMethodsAdvanced/tests/mocks/data.js +17 -0
  1684. package/components/organisms/PaymentMethodsAdvanced/tests/saga.test.js +284 -0
  1685. package/components/organisms/PerformanceCard/PerformanceCard.js +161 -0
  1686. package/components/organisms/PerformanceCard/index.js +1 -0
  1687. package/components/organisms/PerformanceCard/messages.js +49 -0
  1688. package/components/organisms/PerformanceCard/style.js +70 -0
  1689. package/components/organisms/PerformanceCard/tests/PerformanceCard.test.js +85 -0
  1690. package/components/organisms/PerformanceCard/tests/__snapshots__/PerformanceCard.test.js.snap +8174 -0
  1691. package/components/organisms/PerformanceCard/tests/mockdata.js +6 -0
  1692. package/components/organisms/PerformanceStats/PerformanceStats.js +490 -0
  1693. package/components/organisms/PerformanceStats/actions.js +15 -0
  1694. package/components/organisms/PerformanceStats/constants.js +32 -0
  1695. package/components/organisms/PerformanceStats/index.js +1 -0
  1696. package/components/organisms/PerformanceStats/messages.js +45 -0
  1697. package/components/organisms/PerformanceStats/reducer.js +42 -0
  1698. package/components/organisms/PerformanceStats/saga.js +41 -0
  1699. package/components/organisms/PerformanceStats/selectors.js +21 -0
  1700. package/components/organisms/PerformanceStats/style.js +84 -0
  1701. package/components/organisms/PerformanceStats/tests/PerformanceStats.test.js +52 -0
  1702. package/components/organisms/PerformanceStats/tests/__snapshots__/PerformanceStats.test.js.snap +27832 -0
  1703. package/components/organisms/PerformanceStats/tests/__snapshots__/reducer.test.js.snap +10 -0
  1704. package/components/organisms/PerformanceStats/tests/mockdata.js +45 -0
  1705. package/components/organisms/PerformanceStats/tests/reducer.test.js +58 -0
  1706. package/components/organisms/PerformanceStats/tests/saga.test.js +74 -0
  1707. package/components/organisms/PointContributionToGroup/PointContributionToGroup.js +320 -0
  1708. package/components/organisms/PointContributionToGroup/constants.js +26 -0
  1709. package/components/organisms/PointContributionToGroup/index.js +1 -0
  1710. package/components/organisms/PointContributionToGroup/messages.js +20 -0
  1711. package/components/organisms/PointContributionToGroup/style.js +17 -0
  1712. package/components/organisms/PointContributionToGroup/tests/PointContribution.test.js +20 -0
  1713. package/components/organisms/PointStrategies/PointStrategies.js +276 -0
  1714. package/components/organisms/PointStrategies/constants.js +4 -0
  1715. package/components/organisms/PointStrategies/index.js +1 -0
  1716. package/components/organisms/PointStrategies/style.js +10 -0
  1717. package/components/organisms/PointStrategies/tests/PointStrategies.test.js +51 -0
  1718. package/components/organisms/PointStrategies/tests/utils.test.js +66 -0
  1719. package/components/organisms/PointStrategies/utils.js +60 -0
  1720. package/components/organisms/PointsAdvancedOption/PointsAdvancedOption.js +265 -0
  1721. package/components/organisms/PointsAdvancedOption/actions.js +12 -0
  1722. package/components/organisms/PointsAdvancedOption/constants.js +20 -0
  1723. package/components/organisms/PointsAdvancedOption/index.js +1 -0
  1724. package/components/organisms/PointsAdvancedOption/messages.js +85 -0
  1725. package/components/organisms/PointsAdvancedOption/reducer.js +31 -0
  1726. package/components/organisms/PointsAdvancedOption/saga.js +35 -0
  1727. package/components/organisms/PointsAdvancedOption/selectors.js +25 -0
  1728. package/components/organisms/PointsAdvancedOption/style.js +43 -0
  1729. package/components/organisms/PointsAdvancedOption/tests/PointsAdvancedoption.test.js +99 -0
  1730. package/components/organisms/PointsAdvancedOption/tests/mocks/data.js +89 -0
  1731. package/components/organisms/PointsAdvancedOption/tests/saga.test.js +87 -0
  1732. package/components/organisms/PointsAdvancedOption/utils.js +62 -0
  1733. package/components/organisms/PointsAllocationAccordion/PointsAllocationAccordion.js +135 -0
  1734. package/components/organisms/PointsAllocationAccordion/index.js +1 -0
  1735. package/components/organisms/PointsAllocationAccordion/style.js +70 -0
  1736. package/components/organisms/PointsAllocationLimit/PointsAllocationLimit.js +107 -0
  1737. package/components/organisms/PointsAllocationLimit/actions.js +21 -0
  1738. package/components/organisms/PointsAllocationLimit/constants.js +20 -0
  1739. package/components/organisms/PointsAllocationLimit/index.js +1 -0
  1740. package/components/organisms/PointsAllocationLimit/messages.js +122 -0
  1741. package/components/organisms/PointsAllocationLimit/reducer.js +48 -0
  1742. package/components/organisms/PointsAllocationLimit/saga.js +99 -0
  1743. package/components/organisms/PointsAllocationLimit/selectors.js +12 -0
  1744. package/components/organisms/PointsAllocationLimit/style.js +0 -0
  1745. package/components/organisms/PointsAllocationLimit/tests/PointsAllocationLimit.test.js +34 -0
  1746. package/components/organisms/PointsAllocationLimit/tests/reducers.test.js +93 -0
  1747. package/components/organisms/PointsAllocationLimit/tests/saga.test.js +189 -0
  1748. package/components/organisms/PointsAllocationLimit/tests/selectors.test.js +43 -0
  1749. package/components/organisms/PointsBudgetList/PointsBudgetList.js +1220 -0
  1750. package/components/organisms/PointsBudgetList/constants.js +201 -0
  1751. package/components/organisms/PointsBudgetList/index.js +1 -0
  1752. package/components/organisms/PointsBudgetList/messages.js +329 -0
  1753. package/components/organisms/PointsBudgetList/style.js +265 -0
  1754. package/components/organisms/PointsBudgetList/tests/PointsBudgetList.test.js +271 -0
  1755. package/components/organisms/PointsBudgetList/tests/mockData.js +788 -0
  1756. package/components/organisms/PointsBudgetList/tests/utils.test.js +16 -0
  1757. package/components/organisms/PointsBudgetList/utils.js +24 -0
  1758. package/components/organisms/PointsGroupRedemptionWorkflowAction/PointsGroupRedemptionWorkflowAction.js +146 -0
  1759. package/components/organisms/PointsGroupRedemptionWorkflowAction/index.js +1 -0
  1760. package/components/organisms/PointsGroupRedemptionWorkflowAction/style.js +17 -0
  1761. package/components/organisms/PointsRedemptionReversalWorkflowAction/PointsRedemptionReversalWorkflowAction.js +259 -0
  1762. package/components/organisms/PointsRedemptionReversalWorkflowAction/index.js +1 -0
  1763. package/components/organisms/PointsRedemptionReversalWorkflowAction/style.js +17 -0
  1764. package/components/organisms/PointsRedemptionReversalWorkflowAction/tests/PointsRedemptionReversalWorkflowAction.test.js +42 -0
  1765. package/components/organisms/PointsRedemptionWorkflowAction/PointsRedemptionWorkflowAction.js +162 -0
  1766. package/components/organisms/PointsRedemptionWorkflowAction/index.js +1 -0
  1767. package/components/organisms/PointsRedemptionWorkflowAction/style.js +17 -0
  1768. package/components/organisms/PointsRollingExpiry/PointsRollingExpiry.js +637 -0
  1769. package/components/organisms/PointsRollingExpiry/actions.js +10 -0
  1770. package/components/organisms/PointsRollingExpiry/constants.js +48 -0
  1771. package/components/organisms/PointsRollingExpiry/index.js +1 -0
  1772. package/components/organisms/PointsRollingExpiry/messages.js +210 -0
  1773. package/components/organisms/PointsRollingExpiry/reducer.js +51 -0
  1774. package/components/organisms/PointsRollingExpiry/saga.js +72 -0
  1775. package/components/organisms/PointsRollingExpiry/selectors.js +48 -0
  1776. package/components/organisms/PointsRollingExpiry/style.js +190 -0
  1777. package/components/organisms/PointsRollingExpiry/tests/PointsRollingExpiry.test.js +279 -0
  1778. package/components/organisms/PointsRollingExpiry/tests/mocks/mockData.js +62 -0
  1779. package/components/organisms/PointsRollingExpiry/tests/reducer.test.js +81 -0
  1780. package/components/organisms/PointsRollingExpiry/tests/saga.test.js +166 -0
  1781. package/components/organisms/PointsRollingExpiry/tests/selectors.test.js +35 -0
  1782. package/components/organisms/PointsRollingExpiry/tests/utils.test.js +54 -0
  1783. package/components/organisms/PointsRollingExpiry/utils.js +257 -0
  1784. package/components/organisms/PointsTransferOrgSettings/ProgramTransferOrgSettings.js +246 -0
  1785. package/components/organisms/PointsTransferOrgSettings/actions.js +11 -0
  1786. package/components/organisms/PointsTransferOrgSettings/constants.js +47 -0
  1787. package/components/organisms/PointsTransferOrgSettings/index.js +1 -0
  1788. package/components/organisms/PointsTransferOrgSettings/messages.js +57 -0
  1789. package/components/organisms/PointsTransferOrgSettings/reducer.js +36 -0
  1790. package/components/organisms/PointsTransferOrgSettings/saga.js +68 -0
  1791. package/components/organisms/PointsTransferOrgSettings/selectors.js +30 -0
  1792. package/components/organisms/PointsTransferOrgSettings/style.js +19 -0
  1793. package/components/organisms/PointsTransferOrgSettings/tests/PointsTransferOrgSettings.test.js +176 -0
  1794. package/components/organisms/PointsTransferOrgSettings/tests/actions.test.js +19 -0
  1795. package/components/organisms/PointsTransferOrgSettings/tests/mocks/data.js +15 -0
  1796. package/components/organisms/PointsTransferOrgSettings/tests/reducer.test.js +142 -0
  1797. package/components/organisms/PointsTransferOrgSettings/tests/saga.test.js +138 -0
  1798. package/components/organisms/PointsTransferOrgSettings/tests/selectors.test.js +21 -0
  1799. package/components/organisms/PointsTransferSettings/PointsTransferSettings.js +334 -0
  1800. package/components/organisms/PointsTransferSettings/constants.js +60 -0
  1801. package/components/organisms/PointsTransferSettings/index.js +1 -0
  1802. package/components/organisms/PointsTransferSettings/messages.js +43 -0
  1803. package/components/organisms/PointsTransferSettings/style.js +50 -0
  1804. package/components/organisms/PointsTransferSettings/tests/index.test.js +56 -0
  1805. package/components/organisms/Preview/Preview.js +177 -0
  1806. package/components/organisms/Preview/index.js +1 -0
  1807. package/components/organisms/Preview/reducer.js +15 -0
  1808. package/components/organisms/Preview/style.js +12 -0
  1809. package/components/organisms/Preview/tests/__snapshots__/index.test.js.snap +112 -0
  1810. package/components/organisms/Preview/tests/index.test.js +63 -0
  1811. package/components/organisms/ProgramDestinationMapper/ProgramDestinationMapper.js +195 -0
  1812. package/components/organisms/ProgramDestinationMapper/actions.js +9 -0
  1813. package/components/organisms/ProgramDestinationMapper/constants.js +4 -0
  1814. package/components/organisms/ProgramDestinationMapper/index.js +1 -0
  1815. package/components/organisms/ProgramDestinationMapper/messages.js +10 -0
  1816. package/components/organisms/ProgramDestinationMapper/mocks/data.js +22 -0
  1817. package/components/organisms/ProgramDestinationMapper/reducer.js +38 -0
  1818. package/components/organisms/ProgramDestinationMapper/saga.js +33 -0
  1819. package/components/organisms/ProgramDestinationMapper/selectors.js +21 -0
  1820. package/components/organisms/ProgramDestinationMapper/style.js +21 -0
  1821. package/components/organisms/ProgramDestinationMapper/tests/ProgramDestinationMapper.test.js +91 -0
  1822. package/components/organisms/ProgramDestinationMapper/tests/saga.test.js +80 -0
  1823. package/components/organisms/ProgramPerformance/Loadable.js +7 -0
  1824. package/components/organisms/ProgramPerformance/ProgramPerformance.js +101 -0
  1825. package/components/organisms/ProgramPerformance/actions.js +13 -0
  1826. package/components/organisms/ProgramPerformance/constants.js +7 -0
  1827. package/components/organisms/ProgramPerformance/data.js +26 -0
  1828. package/components/organisms/ProgramPerformance/index.js +1 -0
  1829. package/components/organisms/ProgramPerformance/messages.js +16 -0
  1830. package/components/organisms/ProgramPerformance/reducer.js +20 -0
  1831. package/components/organisms/ProgramPerformance/saga.js +6 -0
  1832. package/components/organisms/ProgramPerformance/selectors.js +25 -0
  1833. package/components/organisms/ProgramPerformance/style.js +25 -0
  1834. package/components/organisms/ProgramPerformance/tests/actions.test.js +13 -0
  1835. package/components/organisms/ProgramPerformance/tests/index.test.js +11 -0
  1836. package/components/organisms/ProgramPerformance/tests/reducer.test.js +10 -0
  1837. package/components/organisms/ProgramPerformance/tests/saga.test.js +11 -0
  1838. package/components/organisms/ProgramPerformance/tests/selectors.test.js +8 -0
  1839. package/components/organisms/ProgramSettings/ProgramSettings.js +440 -0
  1840. package/components/organisms/ProgramSettings/constants.js +18 -0
  1841. package/components/organisms/ProgramSettings/index.js +1 -0
  1842. package/components/organisms/ProgramSettings/messages.js +57 -0
  1843. package/components/organisms/ProgramSettings/style.js +18 -0
  1844. package/components/organisms/ProgramSettings/tests/ProgramSettings.test.js +176 -0
  1845. package/components/organisms/ProgramSettings/tests/mocks/data.js +22 -0
  1846. package/components/organisms/ProgramSettings/utils.js +17 -0
  1847. package/components/organisms/ProgramWorkflows/ProgramWorkflows.js +293 -0
  1848. package/components/organisms/ProgramWorkflows/actions.js +13 -0
  1849. package/components/organisms/ProgramWorkflows/constants.js +16 -0
  1850. package/components/organisms/ProgramWorkflows/data.js +44 -0
  1851. package/components/organisms/ProgramWorkflows/index.js +1 -0
  1852. package/components/organisms/ProgramWorkflows/messages.js +44 -0
  1853. package/components/organisms/ProgramWorkflows/reducer.js +20 -0
  1854. package/components/organisms/ProgramWorkflows/selectors.js +26 -0
  1855. package/components/organisms/ProgramWorkflows/style.js +19 -0
  1856. package/components/organisms/ProgramWorkflows/tests/actions.test.js +13 -0
  1857. package/components/organisms/ProgramWorkflows/tests/index.test.js +18 -0
  1858. package/components/organisms/ProgramWorkflows/tests/reducer.test.js +10 -0
  1859. package/components/organisms/ProgramWorkflows/tests/selectors.test.js +8 -0
  1860. package/components/organisms/PromisedPointToCurrentPointWorkflowAction/PromisedPointToCurrentPointWorkflowAction.js +143 -0
  1861. package/components/organisms/PromisedPointToCurrentPointWorkflowAction/index.js +1 -0
  1862. package/components/organisms/PromisedPointToCurrentPointWorkflowAction/style.js +17 -0
  1863. package/components/organisms/PromotionAdvancedSettings/PromotionAdvancedSettings.js +1580 -0
  1864. package/components/organisms/PromotionAdvancedSettings/actions.js +14 -0
  1865. package/components/organisms/PromotionAdvancedSettings/constants.js +18 -0
  1866. package/components/organisms/PromotionAdvancedSettings/index.js +1 -0
  1867. package/components/organisms/PromotionAdvancedSettings/messages.js +259 -0
  1868. package/components/organisms/PromotionAdvancedSettings/reducer.js +30 -0
  1869. package/components/organisms/PromotionAdvancedSettings/saga.js +33 -0
  1870. package/components/organisms/PromotionAdvancedSettings/selectors.js +25 -0
  1871. package/components/organisms/PromotionAdvancedSettings/style.js +251 -0
  1872. package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettings.test.js +642 -0
  1873. package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettingsRevamp.test.js +146 -0
  1874. package/components/organisms/PromotionAdvancedSettings/tests/mockData.js +197 -0
  1875. package/components/organisms/PromotionAdvancedSettings/tests/utils.test.js +48 -0
  1876. package/components/organisms/PromotionAdvancedSettings/utils.js +44 -0
  1877. package/components/organisms/PromotionSettings/PromotionSettings.js +469 -0
  1878. package/components/organisms/PromotionSettings/constants.js +9 -0
  1879. package/components/organisms/PromotionSettings/index.js +1 -0
  1880. package/components/organisms/PromotionSettings/messages.js +93 -0
  1881. package/components/organisms/PromotionSettings/style.js +137 -0
  1882. package/components/organisms/PromotionsDetail/Loadable.js +7 -0
  1883. package/components/organisms/PromotionsDetail/PromotionsDetail.js +1411 -0
  1884. package/components/organisms/PromotionsDetail/actions.js +36 -0
  1885. package/components/organisms/PromotionsDetail/constants.js +124 -0
  1886. package/components/organisms/PromotionsDetail/index.js +1 -0
  1887. package/components/organisms/PromotionsDetail/messages.js +249 -0
  1888. package/components/organisms/PromotionsDetail/reducer.js +183 -0
  1889. package/components/organisms/PromotionsDetail/saga.js +261 -0
  1890. package/components/organisms/PromotionsDetail/selectors.js +56 -0
  1891. package/components/organisms/PromotionsDetail/style.js +317 -0
  1892. package/components/organisms/PromotionsDetail/tests/PromotionsDetail.test.js +511 -0
  1893. package/components/organisms/PromotionsDetail/tests/mockData.js +306 -0
  1894. package/components/organisms/PromotionsDetail/tests/utils.test.js +112 -0
  1895. package/components/organisms/PromotionsDetail/utils.js +618 -0
  1896. package/components/organisms/RadioTreeSelect/RadioTreeSelect.js +135 -0
  1897. package/components/organisms/RadioTreeSelect/constants.js +3 -0
  1898. package/components/organisms/RadioTreeSelect/index.js +1 -0
  1899. package/components/organisms/RadioTreeSelect/style.js +108 -0
  1900. package/components/organisms/ReconfigurePromotions/ReconfigurePromotions.js +128 -0
  1901. package/components/organisms/ReconfigurePromotions/index.js +1 -0
  1902. package/components/organisms/ReconfigurePromotions/messages.js +43 -0
  1903. package/components/organisms/ReconfigurePromotions/style.js +66 -0
  1904. package/components/organisms/ReconfigurePromotions/tests/ReconfigurePromotions.test.js +60 -0
  1905. package/components/organisms/RedeemConditionFields/RedeemConditionFields.js +214 -0
  1906. package/components/organisms/RedeemConditionFields/index.js +1 -0
  1907. package/components/organisms/RedeemConditionFields/messages.js +78 -0
  1908. package/components/organisms/RedeemConditionFields/tests/index.test.js +21 -0
  1909. package/components/organisms/RedeemConditions/RedeemConditions.js +434 -0
  1910. package/components/organisms/RedeemConditions/actions.js +12 -0
  1911. package/components/organisms/RedeemConditions/constants.js +13 -0
  1912. package/components/organisms/RedeemConditions/index.js +1 -0
  1913. package/components/organisms/RedeemConditions/messages.js +32 -0
  1914. package/components/organisms/RedeemConditions/reducer.js +35 -0
  1915. package/components/organisms/RedeemConditions/saga.js +33 -0
  1916. package/components/organisms/RedeemConditions/selectors.js +21 -0
  1917. package/components/organisms/RedeemConditions/style.js +22 -0
  1918. package/components/organisms/RedeemConditions/tests/RedeemConditions.test.js +216 -0
  1919. package/components/organisms/RedeemConditions/tests/mocks/data.js +131 -0
  1920. package/components/organisms/RedeemConditions/tests/saga.test.js +83 -0
  1921. package/components/organisms/RedemptionStrategy/RedemptionStrategy.js +631 -0
  1922. package/components/organisms/RedemptionStrategy/constants.js +13 -0
  1923. package/components/organisms/RedemptionStrategy/index.js +1 -0
  1924. package/components/organisms/RedemptionStrategy/messages.js +60 -0
  1925. package/components/organisms/RedemptionStrategy/style.js +32 -0
  1926. package/components/organisms/RedemptionStrategy/tests/RedemptionStrategy.test.js +80 -0
  1927. package/components/organisms/RedemptionStrategy/tests/mockData.js +46 -0
  1928. package/components/organisms/RenewTierWorkflowAction/RenewTierWorkflowAction.js +137 -0
  1929. package/components/organisms/RenewTierWorkflowAction/index.js +1 -0
  1930. package/components/organisms/RenewTierWorkflowAction/style.js +17 -0
  1931. package/components/organisms/RenewalCommunication/RenewalCommunication.js +148 -0
  1932. package/components/organisms/RenewalCommunication/constants.js +0 -0
  1933. package/components/organisms/RenewalCommunication/index.js +1 -0
  1934. package/components/organisms/RenewalCommunication/messages.js +48 -0
  1935. package/components/organisms/RenewalCommunication/tests/index.test.js +24 -0
  1936. package/components/organisms/RenewalCommunication/utils.js +287 -0
  1937. package/components/organisms/ReturnConditions/ReturnConditions.js +583 -0
  1938. package/components/organisms/ReturnConditions/actions.js +12 -0
  1939. package/components/organisms/ReturnConditions/constants.js +8 -0
  1940. package/components/organisms/ReturnConditions/index.js +1 -0
  1941. package/components/organisms/ReturnConditions/messages.js +91 -0
  1942. package/components/organisms/ReturnConditions/reducer.js +35 -0
  1943. package/components/organisms/ReturnConditions/saga.js +34 -0
  1944. package/components/organisms/ReturnConditions/selectors.js +21 -0
  1945. package/components/organisms/ReturnConditions/style.js +39 -0
  1946. package/components/organisms/ReturnConditions/tests/ReturnConditions.test.js +59 -0
  1947. package/components/organisms/ReturnConditions/tests/mocks/data.js +14 -0
  1948. package/components/organisms/ReturnConditions/tests/mocks/mockData.js +148 -0
  1949. package/components/organisms/ReturnConditions/tests/saga.test.js +87 -0
  1950. package/components/organisms/ReturnStrategy/ReturnStrategy.js +492 -0
  1951. package/components/organisms/ReturnStrategy/constants.js +7 -0
  1952. package/components/organisms/ReturnStrategy/index.js +1 -0
  1953. package/components/organisms/ReturnStrategy/messages.js +24 -0
  1954. package/components/organisms/ReturnStrategy/style.js +14 -0
  1955. package/components/organisms/ReturnStrategy/tests/ReturnStrategy.test.js +73 -0
  1956. package/components/organisms/ReviewPromotionSlider/ReviewPromotionSlider.js +76 -0
  1957. package/components/organisms/ReviewPromotionSlider/index.js +1 -0
  1958. package/components/organisms/ReviewPromotionSlider/style.js +59 -0
  1959. package/components/organisms/ReviewPromotionSlider/tests/ReviewPromotionSlider.test.js +58 -0
  1960. package/components/organisms/ReviewPromotionSlider/tests/mockData.js +535 -0
  1961. package/components/organisms/ReviewPromotionSlider/tests/utils.test.js +11 -0
  1962. package/components/organisms/ReviewPromotionSlider/utils.js +176 -0
  1963. package/components/organisms/ReviewTierUnloadModal/ReviewTierUnloadModal.js +106 -0
  1964. package/components/organisms/ReviewTierUnloadModal/index.js +1 -0
  1965. package/components/organisms/ReviewTierUnloadModal/messages.js +16 -0
  1966. package/components/organisms/ScopeSlidebox/ScopeContentDescription.js +67 -0
  1967. package/components/organisms/ScopeSlidebox/ScopeContentHeader.js +25 -0
  1968. package/components/organisms/ScopeSlidebox/ScopeSlidebox.js +2616 -0
  1969. package/components/organisms/ScopeSlidebox/constants.js +134 -0
  1970. package/components/organisms/ScopeSlidebox/index.js +1 -0
  1971. package/components/organisms/ScopeSlidebox/messages.js +148 -0
  1972. package/components/organisms/ScopeSlidebox/style.js +109 -0
  1973. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/ScopeSlideBoxWithoutFeature.test.js +1342 -0
  1974. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/mockData.js +3226 -0
  1975. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/processedRulesetsData.js +374 -0
  1976. package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/rulesetsData.js +462 -0
  1977. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/ScopeSlidebox.test.js +1907 -0
  1978. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/mockData.js +3661 -0
  1979. package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/processedRulesetsData.js +242 -0
  1980. package/components/organisms/ScopeSlidebox/tests/mockData.js +50 -0
  1981. package/components/organisms/ScopeSlidebox/tests/scope-utils.test.js +39 -0
  1982. package/components/organisms/ScopeSlidebox/utils.js +88 -0
  1983. package/components/organisms/SelectLabelWorkflowAction/SelectLabelWorkflowAction.js +70 -0
  1984. package/components/organisms/SelectLabelWorkflowAction/index.js +1 -0
  1985. package/components/organisms/SelectTargetSlider/SelectTargetSlider.js +406 -0
  1986. package/components/organisms/SelectTargetSlider/index.js +1 -0
  1987. package/components/organisms/SelectTargetSlider/messages.js +126 -0
  1988. package/components/organisms/SelectTargetSlider/mockData.js +704 -0
  1989. package/components/organisms/SelectTargetSlider/style.js +97 -0
  1990. package/components/organisms/SelectTargetSlider/tests/NoTargetView.test.js +74 -0
  1991. package/components/organisms/SelectTargetSlider/tests/SelectTargetSlider.test.js +209 -0
  1992. package/components/organisms/SelectTargetSlider/utils.js +186 -0
  1993. package/components/organisms/SendEmailWorkflowAction/SendEmailWorkflowAction.js +159 -0
  1994. package/components/organisms/SendEmailWorkflowAction/index.js +1 -0
  1995. package/components/organisms/SendEmailWorkflowAction/tests/SendEmailWorkflowAction.test.js +23 -0
  1996. package/components/organisms/SendMessagesWorkflowAction/SendMessagesWorkflowAction.js +204 -0
  1997. package/components/organisms/SendMessagesWorkflowAction/index.js +1 -0
  1998. package/components/organisms/SendMessagesWorkflowAction/style.js +17 -0
  1999. package/components/organisms/SendMessagesWorkflowAction/tests/SendMessagesWorflowAction.test.js +23 -0
  2000. package/components/organisms/SendMobilePushWorkflowAction/SendMobilePushWorkflowAction.js +156 -0
  2001. package/components/organisms/SendMobilePushWorkflowAction/index.js +1 -0
  2002. package/components/organisms/SendMobilePushWorkflowAction/tests/SendMobilePushWorkflowAction.test.js +23 -0
  2003. package/components/organisms/SendSmsWorkflowAction/SendSmsWorkflowAction.js +158 -0
  2004. package/components/organisms/SendSmsWorkflowAction/index.js +1 -0
  2005. package/components/organisms/SocialConnectWorkflowAction/SocialConnectWorkflowAction.js +152 -0
  2006. package/components/organisms/SocialConnectWorkflowAction/index.js +1 -0
  2007. package/components/organisms/SocialConnectWorkflowAction/tests/SocialConnectWorkflowAction.test.js +23 -0
  2008. package/components/organisms/StrategyDashboard/Loadable.js +5 -0
  2009. package/components/organisms/StrategyDashboard/StrategyDashboard.js +253 -0
  2010. package/components/organisms/StrategyDashboard/actions.js +7 -0
  2011. package/components/organisms/StrategyDashboard/constants.js +9 -0
  2012. package/components/organisms/StrategyDashboard/context.js +7 -0
  2013. package/components/organisms/StrategyDashboard/index.js +1 -0
  2014. package/components/organisms/StrategyDashboard/messages.js +21 -0
  2015. package/components/organisms/StrategyDashboard/reducer.js +36 -0
  2016. package/components/organisms/StrategyDashboard/saga.js +32 -0
  2017. package/components/organisms/StrategyDashboard/selectors.js +33 -0
  2018. package/components/organisms/StrategyDashboard/style.js +55 -0
  2019. package/components/organisms/StrategyDashboard/tests/StrategyDashboard.test.js +80 -0
  2020. package/components/organisms/StrategyDashboard/tests/mocks/data.js +110 -0
  2021. package/components/organisms/StrategyDashboard/tests/saga.test.js +80 -0
  2022. package/components/organisms/TagCustomerAction/TagCustomerAction.js +170 -0
  2023. package/components/organisms/TagCustomerAction/index.js +1 -0
  2024. package/components/organisms/TagCustomerAction/messages.js +20 -0
  2025. package/components/organisms/TagCustomerAction/tests/TagCustomerAction.test.js +29 -0
  2026. package/components/organisms/TargetPointAllocationWorkflowAction/TargetPointAllocationWorkflowAction.js +623 -0
  2027. package/components/organisms/TargetPointAllocationWorkflowAction/actions.js +32 -0
  2028. package/components/organisms/TargetPointAllocationWorkflowAction/constants.js +37 -0
  2029. package/components/organisms/TargetPointAllocationWorkflowAction/index.js +1 -0
  2030. package/components/organisms/TargetPointAllocationWorkflowAction/reducer.js +88 -0
  2031. package/components/organisms/TargetPointAllocationWorkflowAction/saga.js +128 -0
  2032. package/components/organisms/TargetPointAllocationWorkflowAction/selectors.js +22 -0
  2033. package/components/organisms/TargetPointAllocationWorkflowAction/style.js +17 -0
  2034. package/components/organisms/TargetPointAllocationWorkflowAction/tests/TargetPointAllocationWorkFlowAction.test.js +577 -0
  2035. package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/action.test.js.snap +16 -0
  2036. package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/reducer.test.js.snap +166 -0
  2037. package/components/organisms/TargetPointAllocationWorkflowAction/tests/action.test.js +31 -0
  2038. package/components/organisms/TargetPointAllocationWorkflowAction/tests/mockData.js +243 -0
  2039. package/components/organisms/TargetPointAllocationWorkflowAction/tests/reducer.test.js +172 -0
  2040. package/components/organisms/TargetPointAllocationWorkflowAction/tests/saga.test.js +290 -0
  2041. package/components/organisms/TargetPointAllocationWorkflowAction/tests/selectors.test.js +16 -0
  2042. package/components/organisms/TierUpgradeAndDowngrade/TierUpgradeAndDowngrade.js +849 -0
  2043. package/components/organisms/TierUpgradeAndDowngrade/constants.js +2 -0
  2044. package/components/organisms/TierUpgradeAndDowngrade/index.js +1 -0
  2045. package/components/organisms/TierUpgradeAndDowngrade/messages.js +174 -0
  2046. package/components/organisms/TierUpgradeAndDowngrade/style.js +709 -0
  2047. package/components/organisms/TierUpgradeAndDowngrade/tests/TierUpgradeAndDowngrade.test.js +326 -0
  2048. package/components/organisms/TierUpgradeAndDowngrade/tests/TiersTooltips.test.js +75 -0
  2049. package/components/organisms/TierUpgradeAndDowngrade/tests/ValidityModal.test.js +82 -0
  2050. package/components/organisms/TierUpgradeAndDowngrade/tests/mocks/data.js +230 -0
  2051. package/components/organisms/TierUpgradeAndDowngrade/tests/utils.test.js +196 -0
  2052. package/components/organisms/TierUpgradeAndDowngrade/utils.js +417 -0
  2053. package/components/organisms/TieradvancedOption/TierAdvancedOption.js +460 -0
  2054. package/components/organisms/TieradvancedOption/actions.js +12 -0
  2055. package/components/organisms/TieradvancedOption/constants.js +25 -0
  2056. package/components/organisms/TieradvancedOption/index.js +1 -0
  2057. package/components/organisms/TieradvancedOption/messages.js +57 -0
  2058. package/components/organisms/TieradvancedOption/reducer.js +31 -0
  2059. package/components/organisms/TieradvancedOption/saga.js +33 -0
  2060. package/components/organisms/TieradvancedOption/selectors.js +25 -0
  2061. package/components/organisms/TieradvancedOption/style.js +53 -0
  2062. package/components/organisms/TieradvancedOption/tests/TierAdvancedOption.test.js +108 -0
  2063. package/components/organisms/TieradvancedOption/tests/mocks/data.js +14 -0
  2064. package/components/organisms/TieradvancedOption/tests/saga.test.js +83 -0
  2065. package/components/organisms/TieradvancedOption/utils.js +162 -0
  2066. package/components/organisms/Tiers/Loadable.js +5 -0
  2067. package/components/organisms/Tiers/Tiers.js +1092 -0
  2068. package/components/organisms/Tiers/actions.js +17 -0
  2069. package/components/organisms/Tiers/constants.js +27 -0
  2070. package/components/organisms/Tiers/context.js +7 -0
  2071. package/components/organisms/Tiers/index.js +1 -0
  2072. package/components/organisms/Tiers/messages.js +33 -0
  2073. package/components/organisms/Tiers/reducer.js +66 -0
  2074. package/components/organisms/Tiers/saga.js +44 -0
  2075. package/components/organisms/Tiers/selectors.js +21 -0
  2076. package/components/organisms/Tiers/style.js +162 -0
  2077. package/components/organisms/Tiers/tests/actions.test.js +28 -0
  2078. package/components/organisms/Tiers/tests/index.test.js +126 -0
  2079. package/components/organisms/Tiers/tests/mock.js +403 -0
  2080. package/components/organisms/Tiers/tests/reducer.test.js +64 -0
  2081. package/components/organisms/Tiers/tests/saga.test.js +94 -0
  2082. package/components/organisms/Tiers/tests/selectors.test.js +27 -0
  2083. package/components/organisms/Tiers/tests/utils.test.js +15 -0
  2084. package/components/organisms/Tiers/utils.js +10 -0
  2085. package/components/organisms/TrackerEvaluationWorkflowAction/TrackerEvaluationWorkflowAction.js +216 -0
  2086. package/components/organisms/TrackerEvaluationWorkflowAction/index.js +1 -0
  2087. package/components/organisms/TrackerEvaluationWorkflowAction/style.js +17 -0
  2088. package/components/organisms/TrackerEvaluationWorkflowAction/tests/TrackerEvaluationWorkflowAction.test.js +100 -0
  2089. package/components/organisms/Trackers/Loadable.js +5 -0
  2090. package/components/organisms/Trackers/Trackers.js +567 -0
  2091. package/components/organisms/Trackers/constants.js +14 -0
  2092. package/components/organisms/Trackers/index.js +1 -0
  2093. package/components/organisms/Trackers/messages.js +48 -0
  2094. package/components/organisms/Trackers/style.js +82 -0
  2095. package/components/organisms/Trackers/tests/Trackers.test.js +45 -0
  2096. package/components/organisms/Trackers/tests/mockData.js +342 -0
  2097. package/components/organisms/TransactionAllocationPointWorkflowAction/TransactionAllocationPointWorkflowAction.js +457 -0
  2098. package/components/organisms/TransactionAllocationPointWorkflowAction/constants.js +3 -0
  2099. package/components/organisms/TransactionAllocationPointWorkflowAction/index.js +1 -0
  2100. package/components/organisms/TransactionAllocationPointWorkflowAction/style.js +17 -0
  2101. package/components/organisms/TransactionAllocationPointWorkflowAction/tests/TransactionAllocationPointWorkflowAction.test.js +134 -0
  2102. package/components/organisms/TransactionAllocationPointWorkflowAction/tests/mockData.js +349 -0
  2103. package/components/organisms/TransferGroupPoints/TransferGroupPoints.js +665 -0
  2104. package/components/organisms/TransferGroupPoints/constants.js +21 -0
  2105. package/components/organisms/TransferGroupPoints/index.js +1 -0
  2106. package/components/organisms/TransferGroupPoints/messages.js +24 -0
  2107. package/components/organisms/TransferGroupPoints/style.js +24 -0
  2108. package/components/organisms/TransferGroupPoints/tests/TransferGroupPoints.test.js +143 -0
  2109. package/components/organisms/TransferGroupPoints/tests/mockData.js +236 -0
  2110. package/components/organisms/UpgradeCommunication/UpgradeCommunication.js +135 -0
  2111. package/components/organisms/UpgradeCommunication/index.js +1 -0
  2112. package/components/organisms/UpgradeCommunication/tests/index.test.js +24 -0
  2113. package/components/organisms/UpgradeCommunication/utils.js +170 -0
  2114. package/components/organisms/UpgradeToTierSettingsWorkflowAction/UpgradeToTierSettingsWorkflowAction.js +214 -0
  2115. package/components/organisms/UpgradeToTierSettingsWorkflowAction/index.js +1 -0
  2116. package/components/organisms/UpgradeToTierSettingsWorkflowAction/style.js +17 -0
  2117. package/components/organisms/UpgradeToTierWorkflowAction/UpgradeToTierWorkflowAction.js +349 -0
  2118. package/components/organisms/UpgradeToTierWorkflowAction/index.js +1 -0
  2119. package/components/organisms/UpgradeToTierWorkflowAction/messages.js +16 -0
  2120. package/components/organisms/UpgradeToTierWorkflowAction/style.js +17 -0
  2121. package/components/organisms/UpgradeToTierWorkflowAction/tests/UpgradeToTierWorkflowAction.test.js +45 -0
  2122. package/components/organisms/VersioningDropdown/VersioningDropdown.js +271 -0
  2123. package/components/organisms/VersioningDropdown/index.js +1 -0
  2124. package/components/organisms/VersioningDropdown/messages.js +18 -0
  2125. package/components/organisms/VersioningDropdown/mocks/data.js +75 -0
  2126. package/components/organisms/VersioningDropdown/style.js +18 -0
  2127. package/components/organisms/VersioningDropdown/tests/VersioningDropdown.test.js +37 -0
  2128. package/components/organisms/VersioningDropdown/utils.js +16 -0
  2129. package/components/pages/AccessForbidden/AccessForbidden.js +20 -0
  2130. package/components/pages/AccessForbidden/index.js +1 -0
  2131. package/components/pages/AccessForbidden/messages.js +14 -0
  2132. package/components/pages/AccessForbidden/style.js +6 -0
  2133. package/components/pages/App/constants.js +705 -0
  2134. package/components/pages/App/index.js +48 -0
  2135. package/components/pages/BulkConfiguration/BulkConfigurations.js +877 -0
  2136. package/components/pages/BulkConfiguration/actions.js +30 -0
  2137. package/components/pages/BulkConfiguration/constants.js +31 -0
  2138. package/components/pages/BulkConfiguration/index.js +1 -0
  2139. package/components/pages/BulkConfiguration/messages.js +144 -0
  2140. package/components/pages/BulkConfiguration/reducer.js +74 -0
  2141. package/components/pages/BulkConfiguration/saga.js +119 -0
  2142. package/components/pages/BulkConfiguration/selector.js +33 -0
  2143. package/components/pages/BulkConfiguration/style.js +222 -0
  2144. package/components/pages/BulkConfiguration/tests/BulkConfigurations.test.js +595 -0
  2145. package/components/pages/BulkConfiguration/tests/BulkConfigurations1.test.js +114 -0
  2146. package/components/pages/BulkConfiguration/tests/BulkConfigurationsEdit.test.js +128 -0
  2147. package/components/pages/BulkConfiguration/tests/actions.test.js +53 -0
  2148. package/components/pages/BulkConfiguration/tests/mockData.js +163 -0
  2149. package/components/pages/BulkConfiguration/tests/reducer.test.js +318 -0
  2150. package/components/pages/BulkConfiguration/tests/saga.test.js +363 -0
  2151. package/components/pages/BulkConfiguration/tests/selectors.test.js +61 -0
  2152. package/components/pages/Cap/Cap.js +443 -0
  2153. package/components/pages/Cap/Loadable.js +14 -0
  2154. package/components/pages/Cap/actions.js +300 -0
  2155. package/components/pages/Cap/constants.js +306 -0
  2156. package/components/pages/Cap/context.js +7 -0
  2157. package/components/pages/Cap/index.js +1 -0
  2158. package/components/pages/Cap/messages.js +2532 -0
  2159. package/components/pages/Cap/mocks/data.js +623 -0
  2160. package/components/pages/Cap/reducer.js +514 -0
  2161. package/components/pages/Cap/routes.js +68 -0
  2162. package/components/pages/Cap/saga.js +1118 -0
  2163. package/components/pages/Cap/selectors.js +325 -0
  2164. package/components/pages/Cap/style.js +79 -0
  2165. package/components/pages/Cap/tests/Cap.test.js +217 -0
  2166. package/components/pages/Cap/tests/__snapshots__/reducer.test.js.snap +111 -0
  2167. package/components/pages/Cap/tests/actions.test.js +76 -0
  2168. package/components/pages/Cap/tests/reducer.test.js +424 -0
  2169. package/components/pages/Cap/tests/saga.test.js +2661 -0
  2170. package/components/pages/Cap/tests/selectors.test.js +118 -0
  2171. package/components/pages/Cap/tests/utils.test.js +37 -0
  2172. package/components/pages/Cap/utils.js +20 -0
  2173. package/components/pages/ConfigureProgram/ConfigureProgram.js +90 -0
  2174. package/components/pages/ConfigureProgram/constants.js +0 -0
  2175. package/components/pages/ConfigureProgram/data.js +17 -0
  2176. package/components/pages/ConfigureProgram/index.js +1 -0
  2177. package/components/pages/ConfigureProgram/tests/ConfigureProgram.test.js +45 -0
  2178. package/components/pages/Dashboard/Dashboard.js +181 -0
  2179. package/components/pages/Dashboard/Loadable.js +12 -0
  2180. package/components/pages/Dashboard/constants.js +9 -0
  2181. package/components/pages/Dashboard/data.js +364 -0
  2182. package/components/pages/Dashboard/index.js +1 -0
  2183. package/components/pages/Dashboard/style.js +5 -0
  2184. package/components/pages/Dashboard/tests/Dashboard.test.js +44 -0
  2185. package/components/pages/LanguageProvider/index.js +68 -0
  2186. package/components/pages/LanguageProvider/saga.js +11 -0
  2187. package/components/pages/LanguageProvider/style.js +8 -0
  2188. package/components/pages/Login/Loadable.js +12 -0
  2189. package/components/pages/Login/Login.js +84 -0
  2190. package/components/pages/Login/index.js +1 -0
  2191. package/components/pages/Login/messages.js +32 -0
  2192. package/components/pages/LoyaltySetting/LoyaltySetting.js +85 -0
  2193. package/components/pages/LoyaltySetting/index.js +1 -0
  2194. package/components/pages/LoyaltySetting/style.js +7 -0
  2195. package/components/pages/LoyaltySetting/tests/LoyaltySetting.test.js +37 -0
  2196. package/components/pages/NotFoundPage/NotFoundPage.js +26 -0
  2197. package/components/pages/NotFoundPage/index.js +1 -0
  2198. package/components/pages/NotFoundPage/messages.js +15 -0
  2199. package/components/pages/NotFoundPage/tests/NotFoundPage.test.js +11 -0
  2200. package/components/pages/NotFoundPage/tests/__snapshots__/NotFoundPage.test.js.snap +18 -0
  2201. package/components/pages/PermissionDeniedPage/Loadable.js +11 -0
  2202. package/components/pages/PermissionDeniedPage/PermissionDeniedPage.js +28 -0
  2203. package/components/pages/PermissionDeniedPage/index.js +1 -0
  2204. package/components/pages/PermissionDeniedPage/messages.js +14 -0
  2205. package/components/pages/PermissionDeniedPage/style.js +13 -0
  2206. package/components/pages/PermissionDeniedPage/tests/index.test.js +26 -0
  2207. package/components/pages/ProgramSummary/ProgramSummary.js +1164 -0
  2208. package/components/pages/ProgramSummary/actions.js +78 -0
  2209. package/components/pages/ProgramSummary/constants.js +73 -0
  2210. package/components/pages/ProgramSummary/context.js +7 -0
  2211. package/components/pages/ProgramSummary/index.js +1 -0
  2212. package/components/pages/ProgramSummary/messages.js +77 -0
  2213. package/components/pages/ProgramSummary/reducer.js +173 -0
  2214. package/components/pages/ProgramSummary/saga.js +355 -0
  2215. package/components/pages/ProgramSummary/selectors.js +103 -0
  2216. package/components/pages/ProgramSummary/style.js +235 -0
  2217. package/components/pages/ProgramSummary/tests/ProgramSummary.test.js +713 -0
  2218. package/components/pages/ProgramSummary/tests/actions.test.js +118 -0
  2219. package/components/pages/ProgramSummary/tests/mockData.js +801 -0
  2220. package/components/pages/ProgramSummary/tests/reducer.test.js +160 -0
  2221. package/components/pages/ProgramSummary/tests/saga.test.js +658 -0
  2222. package/components/pages/ProgramSummary/tests/selectors.test.js +98 -0
  2223. package/components/pages/ProgramSummary/utils.js +7 -0
  2224. package/components/pages/Promotions/Promotions.js +1698 -0
  2225. package/components/pages/Promotions/actions.js +23 -0
  2226. package/components/pages/Promotions/constants.js +65 -0
  2227. package/components/pages/Promotions/index.js +1 -0
  2228. package/components/pages/Promotions/initialState.js +39 -0
  2229. package/components/pages/Promotions/messages.js +129 -0
  2230. package/components/pages/Promotions/reducer.js +58 -0
  2231. package/components/pages/Promotions/saga.js +112 -0
  2232. package/components/pages/Promotions/selectors.js +43 -0
  2233. package/components/pages/Promotions/style.js +152 -0
  2234. package/components/pages/Promotions/tests/Promotions.test.js +906 -0
  2235. package/components/pages/Promotions/tests/mockData.js +454 -0
  2236. package/components/pages/PromotionsDashboard/PromotionsDashboard.js +127 -0
  2237. package/components/pages/PromotionsDashboard/index.js +1 -0
  2238. package/components/pages/PromotionsDashboard/style.js +5 -0
  2239. package/components/pages/PromotionsDashboard/tests/PromotionsDashboard.test.js +90 -0
  2240. package/components/templates/PageTemplate/index.js +1 -0
  2241. package/components/templates/PageTemplate/pageTemplate.js +28 -0
  2242. package/components/templates/PageTemplate/tests/pageTemplate.test.js +15 -0
  2243. package/config/app.js +54 -0
  2244. package/config/constants.js +4 -0
  2245. package/config/path.js +4 -0
  2246. package/config/request.js +134 -0
  2247. package/config/urls.js +4 -0
  2248. package/entry.js +4 -0
  2249. package/favicon.ico +0 -0
  2250. package/global-styles.js +575 -0
  2251. package/i18n.js +48 -0
  2252. package/index.html +56 -0
  2253. package/initialReducer.js +14 -0
  2254. package/initialState.js +109 -0
  2255. package/lib/CustomHooks/useInterval/index.js +1 -0
  2256. package/lib/CustomHooks/useInterval/useInterval.js +29 -0
  2257. package/package.json +63 -8
  2258. package/services/api.js +1206 -0
  2259. package/services/localStorageApi.js +41 -0
  2260. package/services/requestConstructor.js +169 -0
  2261. package/tests/i18n.test.js +28 -0
  2262. package/tests/integration/CreateProgram/CreateProgram.integration.test.js +148 -0
  2263. package/tests/integration/CreateProgram/helper.js +216 -0
  2264. package/tests/integration/CreateProgram/mocks/apiResponse.js +7 -0
  2265. package/tests/integration/CreateProgram/mocks/constants.js +1 -0
  2266. package/tests/integration/CreateProgram/mocks/msw-handler.js +26 -0
  2267. package/tests/integration/EditProgram/EditProgram.integration.test.js +159 -0
  2268. package/tests/integration/EditProgram/helper.js +104 -0
  2269. package/tests/integration/EditProgram/mocks/apiResponse.js +327 -0
  2270. package/tests/integration/EditProgram/mocks/msw-handler.js +56 -0
  2271. package/tests/integration/Login/Login.integration.test.js +96 -0
  2272. package/tests/integration/Login/mocks/apiResponse.js +235 -0
  2273. package/tests/integration/Login/mocks/msw-handler.js +34 -0
  2274. package/tests/integration/PartnerProgram/CreatePartnerProgram.integration.test.js +117 -0
  2275. package/tests/integration/PartnerProgram/helper.js +256 -0
  2276. package/tests/integration/PartnerProgram/mocks/apiResponse.js +689 -0
  2277. package/tests/integration/PartnerProgram/mocks/msw-handler.js +210 -0
  2278. package/tests/integration/Promotion/CreatePromotion.integration.test.js +237 -0
  2279. package/tests/integration/Promotion/EditPromotion.integration.test.js +94 -0
  2280. package/tests/integration/Promotion/helper.js +656 -0
  2281. package/tests/integration/Promotion/mocks/apiResponse.js +2683 -0
  2282. package/tests/integration/Promotion/mocks/constants.js +7 -0
  2283. package/tests/integration/Promotion/mocks/msw-handler.js +183 -0
  2284. package/tests/integration/Versioning/mocks/apiResponse.js +14333 -0
  2285. package/tests/integration/commonMocks/apiResponse.js +1624 -0
  2286. package/tests/integration/commonMocks/helper.js +31 -0
  2287. package/tests/integration/commonMocks/initialState.js +4 -0
  2288. package/tests/integration/commonMocks/msw-handler.js +100 -0
  2289. package/tests/store.test.js +46 -0
  2290. package/tests/test-utils-it.js +64 -0
  2291. package/tests/test-utils.js +68 -0
  2292. package/translations/en.json +2516 -0
  2293. package/utils/audience.js +46 -0
  2294. package/utils/authWrapper.js +138 -0
  2295. package/utils/bugsnag.js +43 -0
  2296. package/utils/checkStore.js +21 -0
  2297. package/utils/clearDataOnUnmount.js +17 -0
  2298. package/utils/commonUtils.js +959 -0
  2299. package/utils/communication.js +301 -0
  2300. package/utils/constants.js +2 -0
  2301. package/utils/coupons.js +26 -0
  2302. package/utils/createComponentWithIntl.js +8 -0
  2303. package/utils/gtmTrackers/gtmEvents/bulkConfigDetails.js +155 -0
  2304. package/utils/gtmTrackers/gtmEvents/cappingDetails.js +33 -0
  2305. package/utils/gtmTrackers/gtmEvents/commChannelDetails.js +29 -0
  2306. package/utils/gtmTrackers/gtmEvents/commDetails.js +142 -0
  2307. package/utils/gtmTrackers/gtmEvents/configureKpis.js +20 -0
  2308. package/utils/gtmTrackers/gtmEvents/earnPointDetails.js +44 -0
  2309. package/utils/gtmTrackers/gtmEvents/errorScreen.js +7 -0
  2310. package/utils/gtmTrackers/gtmEvents/expiryPointDetails.js +35 -0
  2311. package/utils/gtmTrackers/gtmEvents/nudgeDetails.js +10 -0
  2312. package/utils/gtmTrackers/gtmEvents/pointsSettingDetails.js +14 -0
  2313. package/utils/gtmTrackers/gtmEvents/programDetails.js +28 -0
  2314. package/utils/gtmTrackers/gtmEvents/programSettingDetails.js +38 -0
  2315. package/utils/gtmTrackers/gtmEvents/promotionDetails.js +116 -0
  2316. package/utils/gtmTrackers/gtmEvents/publishChanges.js +13 -0
  2317. package/utils/gtmTrackers/gtmEvents/redeemPointDetails.js +37 -0
  2318. package/utils/gtmTrackers/gtmEvents/returnPointDetails.js +26 -0
  2319. package/utils/gtmTrackers/gtmEvents/scopingDetails.js +33 -0
  2320. package/utils/gtmTrackers/gtmEvents/tenderDetails.js +43 -0
  2321. package/utils/gtmTrackers/gtmEvents/tierDetails.js +110 -0
  2322. package/utils/gtmTrackers/gtmEvents/trackerDetails.js +61 -0
  2323. package/utils/gtmTrackers/gtmEvents/viewBulkConfigDetails.js +25 -0
  2324. package/utils/gtmTrackers/gtmEvents/viewPromotionDetails.js +28 -0
  2325. package/utils/gtmTrackers/gtmEvents/workflowActions.js +29 -0
  2326. package/utils/gtmTrackers/gtmEvents/workflowDetails.js +14 -0
  2327. package/utils/gtmTrackers/index.js +17 -0
  2328. package/utils/gtmTrackers/tests/errorScreen.test.js +13 -0
  2329. package/utils/gtmTrackers/tests/mockData.js +4 -0
  2330. package/utils/gtmTrackers/tests/programDetails.test.js +24 -0
  2331. package/utils/history.js +3 -0
  2332. package/utils/injectReducer.js +2 -0
  2333. package/utils/injectSaga.js +3 -0
  2334. package/utils/intlWrapper.js +40 -0
  2335. package/utils/parseSenderDetails.js +49 -0
  2336. package/utils/promotions.js +53 -0
  2337. package/utils/tests/checkStore.test.js +33 -0
  2338. package/utils/tests/commonUtils.test.js +37 -0
  2339. package/utils/tiers.js +457 -0
  2340. package/utils/usePersistantState.js +64 -0
  2341. package/utils/userUtils.js +7 -0
  2342. package/utils/validationHelper.js +24 -0
  2343. package/utils/withDynamicLazyLoading.js +17 -0
  2344. package/utils/withErrorBoundary.js +24 -0
  2345. package/utils/withStyles.js +9 -0
  2346. package/utils/workflow.js +813 -0
  2347. package/index.js +0 -9
@@ -0,0 +1,2661 @@
1
+ import { expectSaga } from 'redux-saga-test-plan';
2
+ import { takeLatest } from 'redux-saga/effects';
3
+ import * as matchers from 'redux-saga-test-plan/matchers';
4
+ import { throwError } from 'redux-saga-test-plan/providers';
5
+ import * as utilsLocalStorageApi from '@capillarytech/cap-ui-utils/utils/utilsLocalStorageApi';
6
+ import * as api from '../../../../services/api';
7
+ import * as constants from '../../App/constants';
8
+ import {
9
+ GET_CUSTOM_LABELS_REQUEST,
10
+ GET_CUSTOM_LABELS_SUCCESS,
11
+ GET_CUSTOM_LABELS_FAILURE,
12
+ UPSERT_CUSTOM_LABELS_REQUEST,
13
+ UPSERT_CUSTOM_LABELS_SUCCESS,
14
+ UPSERT_CUSTOM_LABELS_FAILURE,
15
+ CHECK_RECONFIGURE_REQUEST,
16
+ CHECK_RECONFIGURE_SUCCESS,
17
+ CHECK_RECONFIGURE_FAILURE,
18
+ GET_TIME_ZONE_REQUEST,
19
+ GET_TIME_ZONE_SUCCESS,
20
+ GET_TIME_ZONE_FAILURE,
21
+ GET_SIDEBAR_MENU_DATA_REQUEST,
22
+ GET_SIDEBAR_MENU_DATA_SUCCESS,
23
+ GET_SIDEBAR_MENU_DATA_FAILURE,
24
+ GET_TOPBAR_MENU_DATA_REQUEST,
25
+ GET_TOPBAR_MENU_DATA_SUCCESS,
26
+ GET_TOPBAR_MENU_DATA_FAILURE,
27
+ SWITCH_ORG_REQUEST,
28
+ SWITCH_ORG_SUCCESS,
29
+ SWITCH_ORG_FAILURE,
30
+ GET_TIER_REQUEST,
31
+ GET_TIER_SUCCESS,
32
+ GET_TIER_FAILURE,
33
+ GET_USER_LIST_REQUEST,
34
+ GET_USER_LIST_SUCCESS,
35
+ GET_USER_LIST_FAILURE,
36
+ GET_CUSTOMER_ACTIVITY_REQUEST,
37
+ GET_CUSTOMER_ACTIVITY_SUCCESS,
38
+ GET_CUSTOMER_ACTIVITY_FAILURE,
39
+ GET_ALL_SENDER_DETAILS_REQUEST,
40
+ GET_ALL_SENDER_DETAILS_SUCCESS,
41
+ GET_ALL_SENDER_DETAILS_FAILURE,
42
+ GET_STRATEGY_NO_REFRESH_REQUEST,
43
+ GET_PROGRAMS_REQUEST,
44
+ GET_PROGRAMS_SUCCESS,
45
+ GET_PROGRAMS_FAILURE,
46
+ GET_BULK_CONFIG_STATUS_REQUEST,
47
+ GET_BULK_CONFIG_STATUS_SUCCESS,
48
+ GET_BULK_CONFIG_STATUS_FAILURE,
49
+ GET_USER_GROUP_V2_STATUS_REQUEST,
50
+ GET_USER_GROUP_V2_STATUS_SUCCESS,
51
+ GET_USER_GROUP_V2_STATUS_FAILURE,
52
+ GET_EMF_STATUS_REQUEST,
53
+ GET_EMF_STATUS_SUCCESS,
54
+ GET_EMF_STATUS_FAILURE,
55
+ UPSERT_ACTION_REQUEST,
56
+ UPSERT_ACTION_SUCCESS,
57
+ UPSERT_ACTION_FAILURE,
58
+ GET_STRATEGY_REQUEST,
59
+ GET_STRATEGY_SUCCESS,
60
+ GET_STRATEGY_FAILURE,
61
+ GET_SENDER_DETAILS_REQUEST,
62
+ GET_SENDER_DETAILS_SUCCESS,
63
+ GET_SENDER_DETAILS_FAILURE,
64
+ GET_MAPPED_ENTITIES_REQUEST,
65
+ GET_MAPPED_ENTITIES_SUCCESS,
66
+ GET_MAPPED_ENTITIES_FAILURE,
67
+ GET_FIELD_DATA_REQUEST,
68
+ GET_FIELD_DATA_SUCCESS,
69
+ GET_FIELD_DATA_FAILURE,
70
+ GET_PROGRAM_FILTER_TYPE_REQUEST,
71
+ GET_PROGRAM_FILTER_TYPE_SUCCESS,
72
+ GET_PROGRAM_FILTER_TYPE_FAILURE,
73
+ GET_ORG_KPI_CONFIG_REQUEST,
74
+ GET_ORG_KPI_CONFIG_SUCCESS,
75
+ GET_ORG_KPI_CONFIG_FAILURE,
76
+ LAST_SYNC_TIME_REQUEST,
77
+ LAST_SYNC_TIME_SUCCESS,
78
+ LAST_SYNC_TIME_FAILURE,
79
+ GET_USER_DATA_REQUEST,
80
+ GET_USER_DATA_SUCCESS,
81
+ GET_USER_DATA_FAILURE,
82
+ LOGOUT_REQUEST,
83
+ LOGIN_SUCCESS,
84
+ LOGOUT_SUCCESS,
85
+ LOGOUT_FAILURE,
86
+ GET_SUPPORT_VIDEOS_CONFIG_REQUEST,
87
+ GET_SUPPORT_VIDEOS_CONFIG_SUCCESS,
88
+ GET_SUPPORT_VIDEOS_CONFIG_FAILURE,
89
+ GET_GROUP_REDEMPTION_STATUS_REQUEST,
90
+ GET_GROUP_REDEMPTION_STATUS_SUCCESS,
91
+ GET_GROUP_REDEMPTION_STATUS_FAILURE,
92
+ ALTERNATE_CURRENCY_FLAG_REQUEST,
93
+ ALTERNATE_CURRENCY_FLAG_SUCCESS,
94
+ ALTERNATE_CURRENCY_FLAG_FAILURE,
95
+ GET_PROGRAM_CONFIG_REQUEST,
96
+ GET_PROGRAM_CONFIG_SUCCESS,
97
+ GET_PROGRAM_CONFIG_FAILURE,
98
+ SAVE_PROGRAM_CONFIG_REQUEST,
99
+ SAVE_PROGRAM_CONFIG_SUCCESS,
100
+ SAVE_PROGRAM_CONFIG_FAILURE,
101
+ GET_CDN_TRANSFORMATION_CONFIG_REQUEST,
102
+ GET_MULTIPLE_EXTENDED_FIELDS_SUCCESS,
103
+ GET_MULTIPLE_EXTENDED_FIELDS_FAILURE,
104
+ GET_MULTIPLE_EXTENDED_FIELDS_REQUEST,
105
+ GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_FAILURE,
106
+ GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_SUCCESS,
107
+ GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_REQUEST,
108
+ SEGREGATE_PROMOTIONS_FLAG_REQUEST,
109
+ SEGREGATE_PROMOTIONS_FLAG_SUCCESS,
110
+ SEGREGATE_PROMOTIONS_FLAG_FAILURE,
111
+ } from '../constants';
112
+ import {
113
+ getCustomLabels,
114
+ watchForGetCustomLabels,
115
+ upsertCustomLabel,
116
+ watchForUpsertCustomLabel,
117
+ checkReconfigureProgram,
118
+ watchForCheckReconfigurationProgram,
119
+ getTimeZone,
120
+ watchForGetTimeZone,
121
+ getSidebarMenuData,
122
+ watchGetSidebarMenuData,
123
+ getTopbarMenuData,
124
+ watchGetTopbarMenuData,
125
+ switchOrgSuccess,
126
+ watchForOrgChangeSuccess,
127
+ getTier,
128
+ watchForGetTier,
129
+ getUsersByIds,
130
+ watchForGetUsersByIds,
131
+ getCustomerActivity,
132
+ watchGetCustomerActivityRequest,
133
+ getAllSenderDetails,
134
+ watchForGetAllSenderDetails,
135
+ getStrategiesDataNoRefresh,
136
+ watchForGetStrategiesNoRefresh,
137
+ getPrograms,
138
+ watchForGetPrograms,
139
+ getBulkConfigStatus,
140
+ watchForBulkConfigStatus,
141
+ getUserGroupV2Status,
142
+ watchForUserGroupV2Status,
143
+ getEMFStatus,
144
+ watchForEMFStatus,
145
+ upsertAction,
146
+ watchForUpsertAction,
147
+ getStrategies,
148
+ watchForGetStrategies,
149
+ getSenderDetails,
150
+ watchGetSenderDetails,
151
+ getMappedEntities,
152
+ watchForGetMappedEntities,
153
+ getProgramFieldData,
154
+ watchForGetProgramFieldData,
155
+ getProgramFilterType,
156
+ watchForGetProgramFilterType,
157
+ getOrgKpiConfig,
158
+ watchForGetOrgKpiConfig,
159
+ getLastSyncTime,
160
+ watchForGetLastSyncTime,
161
+ fetchUserInfo,
162
+ watchForFetchUserInfo,
163
+ switchOrg,
164
+ watchForOrgChange,
165
+ logoutFlow,
166
+ watchForLogoutFlow,
167
+ loginSuccess,
168
+ watchForLoginSuccess,
169
+ logoutSuccess,
170
+ watchForLogoutSuccess,
171
+ watchForGetVideosConfig,
172
+ getSupportVideosConfig,
173
+ getGroupRedemptionStatus,
174
+ watchForGroupRedemptionStatus,
175
+ getAlternateCurrencyFlag,
176
+ watchForAlternateCurrencyFlag,
177
+ saveProgramConfig,
178
+ watchForSaveProgramConfig,
179
+ getProgramConfig,
180
+ watchForGetProgramConfig,
181
+ watchForGetCDNConfig,
182
+ getCdnTransformationConfig,
183
+ watchGetExtendedField,
184
+ getMultipleExtendedFields,
185
+ getAdditionalSlabUpgradeAndRenewal,
186
+ watchForAdditionalSlabUpgradeAndRenewal,
187
+ watchForSegregatePromotionsFlag,
188
+ getSegregatePromotionsFlag,
189
+ } from '../saga';
190
+ import {
191
+ validResponseGetSupportVideoConfig,
192
+ customLabelsResult,
193
+ error,
194
+ upsertCustomLabelResult,
195
+ upsertCustomLabelPayload,
196
+ getTimeZoneResult,
197
+ getSidebarMenuDataResult,
198
+ getTopbarMenuDataResult,
199
+ switchOrgSuccessResult,
200
+ getTierResult,
201
+ getUsersByIdsResult,
202
+ getCustomerActivityResult,
203
+ getAllSenderDetailsResult,
204
+ getStrategiesDataNoRefreshResult,
205
+ getProgramsResult,
206
+ getBulkConfigStatusResult,
207
+ getUserGroupV2StatusResult,
208
+ getAlternateCurrencyFlagResult,
209
+ getEMFStatusResult,
210
+ upsertActionResult,
211
+ getStrategiesResult,
212
+ getSenderDetailsResult,
213
+ getMappedEntitiesResult,
214
+ getProgramFieldDataResult,
215
+ getProgramFilterTypeResult,
216
+ getOrgKpiConfigResult,
217
+ getLastSyncTimeResult,
218
+ fetchUserInfoResult,
219
+ switchOrgResult,
220
+ logoutFlowResult,
221
+ loginSuccessResult,
222
+ logoutSuccessResult,
223
+ loginFlowResult,
224
+ authorizeResult,
225
+ mockData,
226
+ getSegregatePromotionsFlagResult,
227
+ } from '../mocks/data';
228
+ import { setAuthenticationDetails } from '../../../../utils/authWrapper';
229
+ import { mockAPIResponseCDN } from '../../../organisms/AlternateCurrencyList/tests/mockData';
230
+
231
+ const { getTopbarMenuDataValue, getSettingsMenuData } = constants;
232
+
233
+ const {
234
+ callback,
235
+ successCallback,
236
+ programId,
237
+ userIds,
238
+ orgID,
239
+ source,
240
+ actionType,
241
+ payload,
242
+ filter,
243
+ channels,
244
+ orgUnitId,
245
+ filterType,
246
+ res,
247
+ user,
248
+ } = mockData;
249
+
250
+ describe('getCustomLabels saga', () => {
251
+ it('handle valid response from api', () => {
252
+ expectSaga(getCustomLabels)
253
+ .provide([
254
+ [
255
+ matchers.call.fn(api.getCustomLabels),
256
+ { customLabelsResult, success: true },
257
+ ],
258
+ ])
259
+ .put({
260
+ type: GET_CUSTOM_LABELS_SUCCESS,
261
+ result: customLabelsResult,
262
+ })
263
+ .run();
264
+ });
265
+
266
+ it('handle error response from api', () => {
267
+ expectSaga(getCustomLabels)
268
+ .provide([
269
+ [
270
+ matchers.call.fn(api.getCustomLabels),
271
+ { errorMessage: 'error Message', success: false },
272
+ ],
273
+ ])
274
+ .put({
275
+ type: GET_CUSTOM_LABELS_FAILURE,
276
+ error: 'error Message',
277
+ })
278
+ .run();
279
+ });
280
+
281
+ it('handle error response from api', () => {
282
+ expectSaga(getCustomLabels)
283
+ .provide([[matchers.call.fn(api.getCustomLabels), throwError(error)]])
284
+ .put({
285
+ type: GET_CUSTOM_LABELS_FAILURE,
286
+ error,
287
+ })
288
+ .run();
289
+ });
290
+ });
291
+
292
+ //////////////////////
293
+ describe('getTimeZone saga', () => {
294
+ it('handle valid response from api', () => {
295
+ expectSaga(getTimeZone)
296
+ .provide([
297
+ [
298
+ matchers.call.fn(api.getTimeZone),
299
+ { getTimeZoneResult, success: true },
300
+ ],
301
+ ])
302
+ .put({
303
+ type: GET_TIME_ZONE_SUCCESS,
304
+ result: getTimeZoneResult,
305
+ })
306
+ .run();
307
+ });
308
+
309
+ it('handle error response from api', () => {
310
+ expectSaga(getTimeZone)
311
+ .provide([
312
+ [
313
+ matchers.call.fn(api.getTimeZone),
314
+ { errorMessage: 'error Message', success: false },
315
+ ],
316
+ ])
317
+ .put({
318
+ type: GET_TIME_ZONE_FAILURE,
319
+ error: 'error Message',
320
+ })
321
+ .run();
322
+ });
323
+
324
+ it('handle error response from api', () => {
325
+ expectSaga(getTimeZone)
326
+ .provide([[matchers.call.fn(api.getTimeZone), throwError(error)]])
327
+ .put({
328
+ type: GET_TIME_ZONE_FAILURE,
329
+ error,
330
+ })
331
+ .run();
332
+ });
333
+ });
334
+
335
+ describe('getSidebarMenuData saga', () => {
336
+ it('handle valid response', () => {
337
+ expectSaga(getSidebarMenuData)
338
+ .provide([
339
+ [
340
+ matchers.call.fn(getSidebarMenuData),
341
+ { getSidebarMenuDataResult, success: true },
342
+ ],
343
+ ])
344
+ .put({
345
+ type: GET_SIDEBAR_MENU_DATA_SUCCESS,
346
+ result: getSidebarMenuDataResult,
347
+ })
348
+ .run();
349
+ });
350
+
351
+ it('handle error response', () => {
352
+ expectSaga(getSidebarMenuData)
353
+ .provide([
354
+ [
355
+ matchers.call.fn(getSidebarMenuData),
356
+ { errorMessage: 'error Message', success: false },
357
+ ],
358
+ ])
359
+ .put({
360
+ type: GET_SIDEBAR_MENU_DATA_FAILURE,
361
+ error: 'error Message',
362
+ })
363
+ .run();
364
+ });
365
+
366
+ it('handle error response', () => {
367
+ expectSaga(getSidebarMenuData)
368
+ .provide([[matchers.call.fn(getSettingsMenuData), throwError(error)]])
369
+ .put({
370
+ type: GET_SIDEBAR_MENU_DATA_FAILURE,
371
+ error,
372
+ })
373
+ .run();
374
+ });
375
+ });
376
+
377
+ describe('getTopbarMenuData saga', () => {
378
+ it('handle valid response', () => {
379
+ expectSaga(getTopbarMenuData, {
380
+ hasNewUIPromotionEnabled: true,
381
+ hasBulkConfigEnabled: true,
382
+ })
383
+ .provide([
384
+ [
385
+ matchers.call.fn(getTopbarMenuData),
386
+ { getTopbarMenuDataResult, success: true },
387
+ ],
388
+ ])
389
+ .put({
390
+ type: GET_TOPBAR_MENU_DATA_SUCCESS,
391
+ result: getTopbarMenuDataResult,
392
+ })
393
+ .run();
394
+ });
395
+ it('handle error response', () => {
396
+ expectSaga(getTopbarMenuData, {
397
+ hasNewUIPromotionEnabled: true,
398
+ hasBulkConfigEnabled: true,
399
+ })
400
+ .provide([
401
+ [
402
+ matchers.call.fn(getTopbarMenuData),
403
+ { errorMessage: 'error Message', success: false },
404
+ ],
405
+ ])
406
+ .put({
407
+ type: GET_TOPBAR_MENU_DATA_FAILURE,
408
+ error: 'error Message',
409
+ })
410
+ .run();
411
+ });
412
+ it('handle error response', () => {
413
+ expectSaga(getTopbarMenuData, {
414
+ hasNewUIPromotionEnabled: true,
415
+ hasBulkConfigEnabled: true,
416
+ })
417
+ .provide([[matchers.call.fn(getTopbarMenuDataValue), throwError(error)]])
418
+ .put({
419
+ type: GET_TOPBAR_MENU_DATA_FAILURE,
420
+ error,
421
+ })
422
+ .run();
423
+ });
424
+ });
425
+
426
+ describe('getTier saga', () => {
427
+ it('handle valid response from api', () => {
428
+ expectSaga(getTier, {
429
+ programId,
430
+ })
431
+ .provide([
432
+ [matchers.call.fn(api.getTier), { getTierResult, success: true }],
433
+ ])
434
+ .put({
435
+ type: GET_TIER_SUCCESS,
436
+ result: getTierResult,
437
+ })
438
+ .run();
439
+ });
440
+
441
+ it('handle error response from api', () => {
442
+ expectSaga(getTier, {
443
+ programId,
444
+ })
445
+ .provide([
446
+ [
447
+ matchers.call.fn(api.getTier),
448
+ { errorMessage: 'error Message', success: false },
449
+ ],
450
+ ])
451
+ .put({
452
+ type: GET_TIER_FAILURE,
453
+ error: 'error Message',
454
+ })
455
+ .run();
456
+ });
457
+
458
+ it('handle error response from api', () => {
459
+ expectSaga(getTier, {
460
+ programId,
461
+ })
462
+ .provide([[matchers.call.fn(api.getTier), throwError(error)]])
463
+ .put({
464
+ type: GET_TIER_FAILURE,
465
+ error,
466
+ })
467
+ .run();
468
+ });
469
+ });
470
+
471
+ describe('getUsersByIds saga', () => {
472
+ it('handle valid response from api', () => {
473
+ expectSaga(getUsersByIds, {
474
+ userIds,
475
+ })
476
+ .provide([
477
+ [
478
+ matchers.call.fn(api.getUsersByIds),
479
+ { getUsersByIdsResult, success: true },
480
+ ],
481
+ ])
482
+ .put({
483
+ type: GET_USER_LIST_SUCCESS,
484
+ result: getUsersByIdsResult,
485
+ })
486
+ .run();
487
+ });
488
+
489
+ it('handle error response from api', () => {
490
+ expectSaga(getUsersByIds, {
491
+ userIds,
492
+ })
493
+ .provide([
494
+ [
495
+ matchers.call.fn(api.getUsersByIds),
496
+ { errorMessage: 'error Message', success: false },
497
+ ],
498
+ ])
499
+ .put({
500
+ type: GET_USER_LIST_FAILURE,
501
+ error: 'error Message',
502
+ })
503
+ .run();
504
+ });
505
+
506
+ it('handle error response from api', () => {
507
+ expectSaga(getUsersByIds, {
508
+ userIds,
509
+ })
510
+ .provide([[matchers.call.fn(api.getUsersByIds), throwError(error)]])
511
+ .put({
512
+ type: GET_USER_LIST_FAILURE,
513
+ error,
514
+ })
515
+ .run();
516
+ });
517
+ });
518
+
519
+ describe('getCustomerActivity saga', () => {
520
+ it('handle valid response from api', () => {
521
+ expectSaga(getCustomerActivity, {
522
+ programId,
523
+ source,
524
+ })
525
+ .provide([
526
+ [
527
+ matchers.call.fn(api.getCustomerActivity),
528
+ { getCustomerActivityResult, success: true },
529
+ ],
530
+ ])
531
+ .put({
532
+ type: GET_CUSTOMER_ACTIVITY_SUCCESS,
533
+ result: getCustomerActivityResult,
534
+ })
535
+ .run();
536
+ });
537
+
538
+ it('handle error response from api', () => {
539
+ expectSaga(getCustomerActivity, {
540
+ programId,
541
+ source,
542
+ })
543
+ .provide([
544
+ [
545
+ matchers.call.fn(api.getCustomerActivity),
546
+ { errorMessage: 'error Message', success: false },
547
+ ],
548
+ ])
549
+ .put({
550
+ type: GET_CUSTOMER_ACTIVITY_FAILURE,
551
+ error: 'error Message',
552
+ })
553
+ .run();
554
+ });
555
+
556
+ it('handle error response from api', () => {
557
+ expectSaga(getCustomerActivity, {
558
+ programId,
559
+ source,
560
+ })
561
+ .provide([[matchers.call.fn(api.getCustomerActivity), throwError(error)]])
562
+ .put({
563
+ type: GET_CUSTOMER_ACTIVITY_FAILURE,
564
+ error,
565
+ })
566
+ .run();
567
+ });
568
+ });
569
+
570
+ describe('getAllSenderDetails saga', () => {
571
+ it('handle valid response from api', () => {
572
+ expectSaga(getAllSenderDetails)
573
+ .provide([
574
+ [
575
+ matchers.call.fn(api.getAllSenderDetails),
576
+ { getAllSenderDetailsResult, success: true },
577
+ ],
578
+ ])
579
+ .put({
580
+ type: GET_ALL_SENDER_DETAILS_SUCCESS,
581
+ result: getAllSenderDetailsResult,
582
+ })
583
+ .run();
584
+ });
585
+
586
+ it('handle error response from api', () => {
587
+ expectSaga(getAllSenderDetails)
588
+ .provide([
589
+ [
590
+ matchers.call.fn(api.getAllSenderDetails),
591
+ { errorMessage: 'error Message', success: false },
592
+ ],
593
+ ])
594
+ .put({
595
+ type: GET_ALL_SENDER_DETAILS_FAILURE,
596
+ error: 'error Message',
597
+ })
598
+ .run();
599
+ });
600
+
601
+ it('handle error response from api', () => {
602
+ expectSaga(getAllSenderDetails)
603
+ .provide([[matchers.call.fn(api.getAllSenderDetails), throwError(error)]])
604
+ .put({
605
+ type: GET_ALL_SENDER_DETAILS_FAILURE,
606
+ error,
607
+ })
608
+ .run();
609
+ });
610
+ });
611
+
612
+ describe('getStrategiesDataNoRefresh saga', () => {
613
+ it('handle valid response from api', () => {
614
+ expectSaga(getStrategiesDataNoRefresh, {
615
+ programId,
616
+ callback,
617
+ })
618
+ .provide([
619
+ [
620
+ matchers.call.fn(api.getStrategies),
621
+ { getStrategiesDataNoRefreshResult, success: true },
622
+ ],
623
+ ])
624
+ .put({
625
+ type: GET_STRATEGY_NO_REFRESH_REQUEST,
626
+ result: getStrategiesDataNoRefreshResult,
627
+ })
628
+ .run();
629
+ });
630
+
631
+ it('handle error response from api', () => {
632
+ expectSaga(getStrategiesDataNoRefresh, {
633
+ programId,
634
+ callback,
635
+ })
636
+ .provide([
637
+ [
638
+ matchers.call.fn(api.getStrategies),
639
+ { errorMessage: 'error Message', success: false },
640
+ ],
641
+ ])
642
+ .put({
643
+ error: 'error Message',
644
+ })
645
+ .run();
646
+ });
647
+
648
+ it('handle error response from api', () => {
649
+ expectSaga(getStrategiesDataNoRefresh, {
650
+ programId,
651
+ callback,
652
+ })
653
+ .provide([[matchers.call.fn(api.getStrategies), throwError(error)]])
654
+ .put({
655
+ error,
656
+ })
657
+ .run();
658
+ });
659
+ });
660
+
661
+ describe('getPrograms saga', () => {
662
+ it('handle valid response from api', () => {
663
+ expectSaga(getPrograms)
664
+ .provide([
665
+ [
666
+ matchers.call.fn(api.getPrograms),
667
+ { getProgramsResult, success: true },
668
+ ],
669
+ ])
670
+ .put({
671
+ type: GET_PROGRAMS_SUCCESS,
672
+ result: getProgramsResult,
673
+ })
674
+ .run();
675
+ });
676
+
677
+ it('handle error response from api', () => {
678
+ expectSaga(getPrograms)
679
+ .provide([
680
+ [
681
+ matchers.call.fn(api.getPrograms),
682
+ { errorMessage: 'error Message', success: false },
683
+ ],
684
+ ])
685
+ .put({
686
+ type: GET_PROGRAMS_FAILURE,
687
+ error: 'error Message',
688
+ })
689
+ .run();
690
+ });
691
+
692
+ it('handle error response from api', () => {
693
+ expectSaga(getPrograms)
694
+ .provide([[matchers.call.fn(api.getPrograms), throwError(error)]])
695
+ .put({
696
+ type: GET_PROGRAMS_FAILURE,
697
+ error,
698
+ })
699
+ .run();
700
+ });
701
+ });
702
+
703
+ describe('getBulkConfigStatus saga', () => {
704
+ it('handle valid response from api', () => {
705
+ expectSaga(getBulkConfigStatus, {
706
+ callback,
707
+ })
708
+ .provide([
709
+ [
710
+ matchers.call.fn(api.getBulkConfigStatus),
711
+ { getBulkConfigStatusResult, success: true },
712
+ ],
713
+ ])
714
+ .put({
715
+ type: GET_BULK_CONFIG_STATUS_SUCCESS,
716
+ result: getBulkConfigStatusResult,
717
+ })
718
+ .run();
719
+ });
720
+
721
+ it('handle response - "0" from api', () => {
722
+ expectSaga(getBulkConfigStatus, {
723
+ callback,
724
+ })
725
+ .provide([
726
+ [
727
+ matchers.call.fn(api.getBulkConfigStatus),
728
+ { result: '0', success: true },
729
+ ],
730
+ ])
731
+ .put({
732
+ type: GET_BULK_CONFIG_STATUS_SUCCESS,
733
+ result: getBulkConfigStatusResult,
734
+ })
735
+ .run();
736
+ });
737
+
738
+ it('handle error response from api', () => {
739
+ expectSaga(getBulkConfigStatus, {
740
+ callback,
741
+ })
742
+ .provide([
743
+ [
744
+ matchers.call.fn(api.getBulkConfigStatus),
745
+ { errorMessage: 'error Message', success: false },
746
+ ],
747
+ ])
748
+ .put({
749
+ type: GET_BULK_CONFIG_STATUS_FAILURE,
750
+ error: 'error Message',
751
+ })
752
+ .run();
753
+ });
754
+
755
+ it('handle error response from api', () => {
756
+ expectSaga(getBulkConfigStatus, {
757
+ callback,
758
+ })
759
+ .provide([[matchers.call.fn(api.getBulkConfigStatus), throwError(error)]])
760
+ .put({
761
+ type: GET_BULK_CONFIG_STATUS_FAILURE,
762
+ error,
763
+ })
764
+ .run();
765
+ });
766
+ });
767
+
768
+ describe('getUserGroupV2Status saga', () => {
769
+ it('handle valid response from api', () => {
770
+ expectSaga(getUserGroupV2Status, {
771
+ callback,
772
+ })
773
+ .provide([
774
+ [
775
+ matchers.call.fn(api.getUserGroupV2Status),
776
+ { getUserGroupV2StatusResult, success: true },
777
+ ],
778
+ ])
779
+ .put({
780
+ type: GET_USER_GROUP_V2_STATUS_SUCCESS,
781
+ result: getUserGroupV2StatusResult,
782
+ })
783
+ .run();
784
+ });
785
+
786
+ it('handle error response from api', () => {
787
+ expectSaga(getUserGroupV2Status, {
788
+ callback,
789
+ })
790
+ .provide([
791
+ [
792
+ matchers.call.fn(api.getUserGroupV2Status),
793
+ { errorMessage: 'error Message', success: false },
794
+ ],
795
+ ])
796
+ .put({
797
+ type: GET_USER_GROUP_V2_STATUS_FAILURE,
798
+ error: 'error Message',
799
+ })
800
+ .run();
801
+ });
802
+
803
+ it('handle error response from api', () => {
804
+ expectSaga(getUserGroupV2Status, {
805
+ callback,
806
+ })
807
+ .provide([
808
+ [matchers.call.fn(api.getUserGroupV2Status), throwError(error)],
809
+ ])
810
+ .put({
811
+ type: GET_USER_GROUP_V2_STATUS_FAILURE,
812
+ error,
813
+ })
814
+ .run();
815
+ });
816
+ });
817
+
818
+ describe('getEMFStatus saga', () => {
819
+ it('handle valid response from api', () => {
820
+ expectSaga(getEMFStatus, {
821
+ callback,
822
+ })
823
+ .provide([
824
+ [
825
+ matchers.call.fn(api.getEMFStatus),
826
+ { getEMFStatusResult, success: true },
827
+ ],
828
+ ])
829
+ .put({
830
+ type: GET_EMF_STATUS_SUCCESS,
831
+ result: getEMFStatusResult,
832
+ })
833
+ .run();
834
+ });
835
+
836
+ it('handle valid response from api when result is "0"', () => {
837
+ const customResult = '0';
838
+ expectSaga(getEMFStatus, {
839
+ callback,
840
+ })
841
+ .provide([
842
+ [
843
+ matchers.call.fn(api.getEMFStatus),
844
+ { result: customResult, success: true },
845
+ ],
846
+ ])
847
+ .put({
848
+ type: GET_EMF_STATUS_SUCCESS,
849
+ result: customResult,
850
+ })
851
+ .run();
852
+ });
853
+
854
+ it('handle error response from api', () => {
855
+ expectSaga(getEMFStatus, {
856
+ callback,
857
+ })
858
+ .provide([
859
+ [
860
+ matchers.call.fn(api.getEMFStatus),
861
+ { errorMessage: 'error Message', success: false },
862
+ ],
863
+ ])
864
+ .put({
865
+ type: GET_EMF_STATUS_FAILURE,
866
+ error: 'error Message',
867
+ })
868
+ .run();
869
+ });
870
+
871
+ it('handle error response from api', () => {
872
+ expectSaga(getEMFStatus, {
873
+ callback,
874
+ })
875
+ .provide([[matchers.call.fn(api.getEMFStatus), throwError(error)]])
876
+ .put({
877
+ type: GET_EMF_STATUS_FAILURE,
878
+ error,
879
+ })
880
+ .run();
881
+ });
882
+ });
883
+
884
+ describe('upsertAction saga', () => {
885
+ it('handle valid response from api', () => {
886
+ expectSaga(upsertAction, {
887
+ payload,
888
+ programId,
889
+ actionType,
890
+ callback,
891
+ })
892
+ .provide([
893
+ [
894
+ matchers.call.fn(api.upsertRulesetAction),
895
+ { upsertActionResult, success: true },
896
+ ],
897
+ ])
898
+ .put({
899
+ type: UPSERT_ACTION_SUCCESS,
900
+ result: upsertActionResult,
901
+ })
902
+ .run();
903
+ });
904
+
905
+ it('handle error response from api', () => {
906
+ expectSaga(upsertAction, {
907
+ payload,
908
+ programId,
909
+ actionType,
910
+ callback,
911
+ })
912
+ .provide([
913
+ [
914
+ matchers.call.fn(api.upsertRulesetAction),
915
+ { errorMessage: 'error Message', success: false },
916
+ ],
917
+ ])
918
+ .put({
919
+ type: UPSERT_ACTION_FAILURE,
920
+ error: 'error Message',
921
+ })
922
+ .run();
923
+ });
924
+
925
+ it('handle error response from api', () => {
926
+ expectSaga(upsertAction, {
927
+ payload,
928
+ programId,
929
+ actionType,
930
+ callback,
931
+ })
932
+ .provide([[matchers.call.fn(api.upsertRulesetAction), throwError(error)]])
933
+ .put({
934
+ type: UPSERT_ACTION_FAILURE,
935
+ error,
936
+ })
937
+ .run();
938
+ });
939
+ });
940
+
941
+ describe('getStrategies saga', () => {
942
+ it('handle valid response from api', () => {
943
+ expectSaga(getStrategies, {
944
+ programId,
945
+ filter,
946
+ })
947
+ .provide([
948
+ [
949
+ matchers.call.fn(api.getStrategies),
950
+ { getStrategiesResult, success: true },
951
+ ],
952
+ ])
953
+ .put({
954
+ type: GET_STRATEGY_SUCCESS,
955
+ result: getStrategiesResult,
956
+ })
957
+ .run();
958
+ });
959
+
960
+ it('handle error response from api', () => {
961
+ expectSaga(getStrategies, {
962
+ programId,
963
+ filter,
964
+ })
965
+ .provide([
966
+ [
967
+ matchers.call.fn(api.getStrategies),
968
+ { errorMessage: 'error Message', success: false },
969
+ ],
970
+ ])
971
+ .put({
972
+ type: GET_STRATEGY_FAILURE,
973
+ error: 'error Message',
974
+ })
975
+ .run();
976
+ });
977
+
978
+ it('handle error response from api', () => {
979
+ expectSaga(getStrategies, {
980
+ programId,
981
+ filter,
982
+ })
983
+ .provide([[matchers.call.fn(api.getStrategies), throwError(error)]])
984
+ .put({
985
+ type: GET_STRATEGY_FAILURE,
986
+ error,
987
+ })
988
+ .run();
989
+ });
990
+ });
991
+
992
+ describe('getSenderDetails saga', () => {
993
+ it('handle valid response from api', () => {
994
+ expectSaga(getSenderDetails, {
995
+ channels,
996
+ orgUnitId,
997
+ })
998
+ .provide([
999
+ [
1000
+ matchers.call.fn(api.getSenderDetails),
1001
+ { getSenderDetailsResult, success: true },
1002
+ ],
1003
+ ])
1004
+ .put({
1005
+ type: GET_SENDER_DETAILS_SUCCESS,
1006
+ result: getStrategiesResult,
1007
+ })
1008
+ .run();
1009
+ });
1010
+
1011
+ it('handle error response from api', () => {
1012
+ expectSaga(getSenderDetails, {
1013
+ channels,
1014
+ orgUnitId,
1015
+ })
1016
+ .provide([
1017
+ [
1018
+ matchers.call.fn(api.getSenderDetails),
1019
+ { errorMessage: 'error Message', success: false },
1020
+ ],
1021
+ ])
1022
+ .put({
1023
+ type: GET_SENDER_DETAILS_FAILURE,
1024
+ error: 'error Message',
1025
+ })
1026
+ .run();
1027
+ });
1028
+
1029
+ it('handle error response from api', () => {
1030
+ expectSaga(getSenderDetails, {
1031
+ channels,
1032
+ orgUnitId,
1033
+ })
1034
+ .provide([[matchers.call.fn(api.getSenderDetails), throwError(error)]])
1035
+ .put({
1036
+ type: GET_SENDER_DETAILS_FAILURE,
1037
+ error,
1038
+ })
1039
+ .run();
1040
+ });
1041
+ });
1042
+
1043
+ describe('getMappedEntities saga', () => {
1044
+ it('handle valid response from api', () => {
1045
+ expectSaga(getMappedEntities, {
1046
+ filterType,
1047
+ })
1048
+ .provide([
1049
+ [
1050
+ matchers.call.fn(api.getMappedEntities),
1051
+ { getMappedEntitiesResult, success: true },
1052
+ ],
1053
+ ])
1054
+ .put({
1055
+ type: GET_MAPPED_ENTITIES_SUCCESS,
1056
+ result: getMappedEntitiesResult,
1057
+ })
1058
+ .run();
1059
+ });
1060
+
1061
+ it('handle error response from api', () => {
1062
+ expectSaga(getMappedEntities, {
1063
+ filterType,
1064
+ })
1065
+ .provide([
1066
+ [
1067
+ matchers.call.fn(api.getMappedEntities),
1068
+ { errorMessage: 'error Message', success: false },
1069
+ ],
1070
+ ])
1071
+ .put({
1072
+ type: GET_MAPPED_ENTITIES_FAILURE,
1073
+ error: 'error Message',
1074
+ })
1075
+ .run();
1076
+ });
1077
+
1078
+ it('handle error response from api', () => {
1079
+ expectSaga(getMappedEntities, {
1080
+ filterType,
1081
+ })
1082
+ .provide([[matchers.call.fn(api.getMappedEntities), throwError(error)]])
1083
+ .put({
1084
+ type: GET_MAPPED_ENTITIES_FAILURE,
1085
+ error,
1086
+ })
1087
+ .run();
1088
+ });
1089
+ });
1090
+
1091
+ describe('getProgramFieldData saga', () => {
1092
+ it('handle valid response from api', () => {
1093
+ expectSaga(getProgramFieldData, {
1094
+ filterType,
1095
+ programId,
1096
+ })
1097
+ .provide([
1098
+ [
1099
+ matchers.call.fn(api.getProgramFieldData),
1100
+ { getProgramFieldDataResult, success: true },
1101
+ ],
1102
+ ])
1103
+ .put({
1104
+ type: GET_FIELD_DATA_SUCCESS,
1105
+ result: getProgramFieldDataResult,
1106
+ })
1107
+ .run();
1108
+ });
1109
+
1110
+ it('handle error response from api', () => {
1111
+ expectSaga(getProgramFieldData, {
1112
+ filterType,
1113
+ programId,
1114
+ })
1115
+ .provide([
1116
+ [
1117
+ matchers.call.fn(api.getProgramFieldData),
1118
+ { errorMessage: 'error Message', success: false },
1119
+ ],
1120
+ ])
1121
+ .put({
1122
+ type: GET_FIELD_DATA_FAILURE,
1123
+ error: 'error Message',
1124
+ })
1125
+ .run();
1126
+ });
1127
+
1128
+ it('handle error response from api', () => {
1129
+ expectSaga(getProgramFieldData, {
1130
+ filterType,
1131
+ programId,
1132
+ })
1133
+ .provide([[matchers.call.fn(api.getProgramFieldData), throwError(error)]])
1134
+ .put({
1135
+ type: GET_FIELD_DATA_FAILURE,
1136
+ error,
1137
+ })
1138
+ .run();
1139
+ });
1140
+ });
1141
+
1142
+ describe('getProgramFilterType saga', () => {
1143
+ it('handle valid response from api', () => {
1144
+ expectSaga(getProgramFilterType, {
1145
+ callback,
1146
+ })
1147
+ .provide([
1148
+ [
1149
+ matchers.call.fn(api.getProgramFilterType),
1150
+ { getProgramFilterTypeResult, success: true },
1151
+ ],
1152
+ ])
1153
+ .put({
1154
+ type: GET_PROGRAM_FILTER_TYPE_SUCCESS,
1155
+ result: getProgramFilterTypeResult,
1156
+ })
1157
+ .run();
1158
+ });
1159
+
1160
+ it('handle error response from api', () => {
1161
+ expectSaga(getProgramFilterType, {
1162
+ callback,
1163
+ })
1164
+ .provide([
1165
+ [
1166
+ matchers.call.fn(api.getProgramFilterType),
1167
+ { errorMessage: 'error Message', success: false },
1168
+ ],
1169
+ ])
1170
+ .put({
1171
+ type: GET_PROGRAM_FILTER_TYPE_FAILURE,
1172
+ error: 'error Message',
1173
+ })
1174
+ .run();
1175
+ });
1176
+
1177
+ it('handle error response from api', () => {
1178
+ expectSaga(getProgramFilterType, {
1179
+ callback,
1180
+ })
1181
+ .provide([
1182
+ [matchers.call.fn(api.getProgramFilterType), throwError(error)],
1183
+ ])
1184
+ .put({
1185
+ type: GET_PROGRAM_FILTER_TYPE_FAILURE,
1186
+ error,
1187
+ })
1188
+ .run();
1189
+ });
1190
+ });
1191
+
1192
+ describe('getOrgKpiConfig saga', () => {
1193
+ it('handle valid response from api', () => {
1194
+ expectSaga(getOrgKpiConfig, {
1195
+ programId,
1196
+ })
1197
+ .provide([
1198
+ [
1199
+ matchers.call.fn(api.getOrgKpiConfig),
1200
+ { getOrgKpiConfigResult, success: true },
1201
+ ],
1202
+ ])
1203
+ .put({
1204
+ type: GET_ORG_KPI_CONFIG_SUCCESS,
1205
+ result: getProgramFilterTypeResult,
1206
+ })
1207
+ .run();
1208
+ });
1209
+
1210
+ it('handle error response from api', () => {
1211
+ expectSaga(getOrgKpiConfig, {
1212
+ programId,
1213
+ })
1214
+ .provide([
1215
+ [
1216
+ matchers.call.fn(api.getOrgKpiConfig),
1217
+ { errorMessage: 'error Message', success: false },
1218
+ ],
1219
+ ])
1220
+ .put({
1221
+ type: GET_ORG_KPI_CONFIG_FAILURE,
1222
+ error: 'error Message',
1223
+ })
1224
+ .run();
1225
+ });
1226
+
1227
+ it('handle error response from api', () => {
1228
+ expectSaga(getOrgKpiConfig, {
1229
+ programId,
1230
+ })
1231
+ .provide([[matchers.call.fn(api.getOrgKpiConfig), throwError(error)]])
1232
+ .put({
1233
+ type: GET_ORG_KPI_CONFIG_FAILURE,
1234
+ error,
1235
+ })
1236
+ .run();
1237
+ });
1238
+ });
1239
+
1240
+ describe('getLastSyncTime saga', () => {
1241
+ it('handle valid response from api', () => {
1242
+ expectSaga(getLastSyncTime)
1243
+ .provide([
1244
+ [
1245
+ matchers.call.fn(api.getLastSyncTime),
1246
+ { getLastSyncTimeResult, success: true },
1247
+ ],
1248
+ ])
1249
+ .put({
1250
+ type: LAST_SYNC_TIME_SUCCESS,
1251
+ result: getLastSyncTimeResult,
1252
+ })
1253
+ .run();
1254
+ });
1255
+
1256
+ it('handle error response from api', () => {
1257
+ expectSaga(getLastSyncTime)
1258
+ .provide([
1259
+ [
1260
+ matchers.call.fn(api.getLastSyncTime),
1261
+ { errorMessage: 'error Message', success: false },
1262
+ ],
1263
+ ])
1264
+ .put({
1265
+ type: LAST_SYNC_TIME_FAILURE,
1266
+ error: 'error Message',
1267
+ })
1268
+ .run();
1269
+ });
1270
+
1271
+ it('handle error response from api', () => {
1272
+ expectSaga(getLastSyncTime)
1273
+ .provide([[matchers.call.fn(api.getLastSyncTime), throwError(error)]])
1274
+ .put({
1275
+ type: LAST_SYNC_TIME_FAILURE,
1276
+ error,
1277
+ })
1278
+ .run();
1279
+ });
1280
+ });
1281
+
1282
+ describe('fetchUserInfo saga', () => {
1283
+ it('handle valid response from api', () => {
1284
+ expectSaga(fetchUserInfo, {
1285
+ callback,
1286
+ })
1287
+ .provide([
1288
+ [
1289
+ matchers.call.fn(api.getUserData),
1290
+ { fetchUserInfoResult, success: true },
1291
+ ],
1292
+ ])
1293
+ .put({
1294
+ type: GET_USER_DATA_SUCCESS,
1295
+ result: fetchUserInfoResult,
1296
+ })
1297
+ .run();
1298
+ });
1299
+
1300
+ it('handle error response from api', () => {
1301
+ expectSaga(fetchUserInfo, {
1302
+ callback,
1303
+ })
1304
+ .provide([
1305
+ [
1306
+ matchers.call.fn(api.getUserData),
1307
+ { errorMessage: 'error Message', success: false, status: 401 },
1308
+ ],
1309
+ ])
1310
+ .put({
1311
+ type: GET_USER_DATA_FAILURE,
1312
+ error: 'error Message',
1313
+ })
1314
+ .run();
1315
+ });
1316
+
1317
+ it('handle error response from api', () => {
1318
+ expectSaga(fetchUserInfo, {
1319
+ callback,
1320
+ })
1321
+ .provide([[matchers.call.fn(api.getUserData), throwError(error)]])
1322
+ .put({
1323
+ type: GET_USER_DATA_FAILURE,
1324
+ error,
1325
+ })
1326
+ .run();
1327
+ });
1328
+ });
1329
+
1330
+ describe('switchOrg saga', () => {
1331
+ it('handle valid response from api', () => {
1332
+ expectSaga(switchOrg, {
1333
+ orgID,
1334
+ successCallback,
1335
+ })
1336
+ .provide([
1337
+ [
1338
+ matchers.call.fn(api.changeProxyOrg),
1339
+ { switchOrgResult, success: true },
1340
+ ],
1341
+ ])
1342
+ .put({
1343
+ type: SWITCH_ORG_SUCCESS,
1344
+ result: switchOrgResult,
1345
+ })
1346
+ .run();
1347
+ });
1348
+
1349
+ it('handle error response from api', () => {
1350
+ expectSaga(switchOrg, {
1351
+ orgID,
1352
+ successCallback,
1353
+ })
1354
+ .provide([
1355
+ [
1356
+ matchers.call.fn(api.changeProxyOrg),
1357
+ { errorMessage: 'error Message', success: false },
1358
+ ],
1359
+ ])
1360
+ .put({
1361
+ type: SWITCH_ORG_FAILURE,
1362
+ error: 'error Message',
1363
+ })
1364
+ .run();
1365
+ });
1366
+
1367
+ it('handle error response from api', () => {
1368
+ expectSaga(switchOrg, {
1369
+ orgID,
1370
+ successCallback,
1371
+ })
1372
+ .provide([[matchers.call.fn(api.changeProxyOrg), throwError(error)]])
1373
+ .put({
1374
+ type: SWITCH_ORG_FAILURE,
1375
+ error,
1376
+ })
1377
+ .run();
1378
+ });
1379
+ });
1380
+
1381
+ describe('switchOrgSuccess saga', () => {
1382
+ it('handle valid response from api', () => {
1383
+ expectSaga(switchOrgSuccess, {
1384
+ orgID,
1385
+ })
1386
+ .provide([
1387
+ [
1388
+ matchers.call.fn(utilsLocalStorageApi.saveItem),
1389
+ { switchOrgSuccessResult, success: true },
1390
+ ],
1391
+ ])
1392
+ .put({
1393
+ type: SWITCH_ORG_SUCCESS,
1394
+ result: switchOrgResult,
1395
+ })
1396
+ .run();
1397
+ });
1398
+ // expectSaga(switchOrg, {
1399
+ // orgID,
1400
+ // successCallback,
1401
+ // })
1402
+ // .provide([
1403
+ // [
1404
+ // matchers.call.fn(api.changeProxyOrg),
1405
+ // { errorMessage: 'error Message', success: false },
1406
+ // ],
1407
+ // ])
1408
+ // .put({
1409
+ // type: SWITCH_ORG_FAILURE,
1410
+ // error: 'error Message',
1411
+ // })
1412
+ // .run();
1413
+ // });
1414
+
1415
+ // it('handle error response from api', () => {
1416
+ // expectSaga(switchOrg, {
1417
+ // orgID,
1418
+ // successCallback,
1419
+ // })
1420
+ // .provide([[matchers.call.fn(api.changeProxyOrg), throwError(error)]])
1421
+ // .put({
1422
+ // type: SWITCH_ORG_FAILURE,
1423
+ // error,
1424
+ // })
1425
+ // .run();
1426
+ // });
1427
+ });
1428
+
1429
+ describe('logoutFlow saga', () => {
1430
+ it('handle valid response from api', () => {
1431
+ expectSaga(logoutFlow)
1432
+ .provide([
1433
+ [matchers.call.fn(api.logout), { getTimeZoneResult, success: true }],
1434
+ ])
1435
+ .put({
1436
+ type: LOGOUT_SUCCESS,
1437
+ result: logoutFlowResult,
1438
+ })
1439
+ .run();
1440
+ });
1441
+
1442
+ it('handle error response from api', () => {
1443
+ expectSaga(logoutFlow)
1444
+ .provide([
1445
+ [
1446
+ matchers.call.fn(api.logout),
1447
+ { errorMessage: 'error Message', success: false },
1448
+ ],
1449
+ ])
1450
+ .put({
1451
+ type: LOGOUT_FAILURE,
1452
+ error: 'error Message',
1453
+ })
1454
+ .run();
1455
+ });
1456
+
1457
+ it('handle error response from api', () => {
1458
+ expectSaga(logoutFlow)
1459
+ .provide([[matchers.call.fn(api.logout), throwError(error)]])
1460
+ .put({
1461
+ type: LOGOUT_FAILURE,
1462
+ error,
1463
+ })
1464
+ .run();
1465
+ });
1466
+ });
1467
+
1468
+ // describe('loginFlow saga', () => {
1469
+ // it('handle valid response from api', () => {
1470
+ // expectSaga(loginFlow)
1471
+ // .provide([
1472
+ // [matchers.call.fn(loginFlow), { loginFlowResult, success: true }],
1473
+ // ])
1474
+ // .put({
1475
+ // type: LOGIN_SUCCESS,
1476
+ // result: loginFlowResult,
1477
+ // })
1478
+ // .run();
1479
+ // });
1480
+
1481
+ // it('handle error response from api', () => {
1482
+ // expectSaga(loginFlow)
1483
+ // .provide([
1484
+ // [
1485
+ // matchers.call.fn(loginFlow),
1486
+ // { errorMessage: 'error Message', success: false },
1487
+ // ],
1488
+ // ])
1489
+ // .put({
1490
+ // type: LOGIN_FAILURE,
1491
+ // error: 'error Message',
1492
+ // })
1493
+ // .run();
1494
+ // });
1495
+
1496
+ // it('handle error response from api', () => {
1497
+ // expectSaga(loginFlow)
1498
+ // .provide([[matchers.call.fn(loginFlow), throwError(error)]])
1499
+ // .put({
1500
+ // type: LOGIN_FAILURE,
1501
+ // error,
1502
+ // })
1503
+ // .run();
1504
+ // });
1505
+ // });
1506
+
1507
+ // describe('authorize saga', () => {
1508
+ // it('handle valid response from api', () => {
1509
+ // expectSaga(authorize, {
1510
+ // user,
1511
+ // })
1512
+ // .provide([
1513
+ // [matchers.call.fn(api.authorize), { authorizeResult, success: true }],
1514
+ // ])
1515
+ // .put({
1516
+ // type: LOGIN_SUCCESS,
1517
+ // result: authorizeResult,
1518
+ // })
1519
+ // .run();
1520
+ // });
1521
+
1522
+ // it('handle error response from api', () => {
1523
+ // expectSaga(authorize, {
1524
+ // user,
1525
+ // })
1526
+ // .provide([
1527
+ // [
1528
+ // matchers.call.fn(api.authorize),
1529
+ // { errorMessage: 'error Message', success: false },
1530
+ // ],
1531
+ // ])
1532
+ // .put({
1533
+ // type: LOGIN_FAILURE,
1534
+ // error: 'error Message',
1535
+ // })
1536
+ // .run();
1537
+ // });
1538
+
1539
+ // it('handle error response from api', () => {
1540
+ // expectSaga(authorize, {
1541
+ // user,
1542
+ // })
1543
+ // .provide([[matchers.call.fn(api.authorize), throwError(error)]])
1544
+ // .put({
1545
+ // type: LOGIN_FAILURE,
1546
+ // error,
1547
+ // })
1548
+ // .run();
1549
+ // });
1550
+ // });
1551
+
1552
+ ///////////////////
1553
+
1554
+ describe('upsertCustomLabel saga', () => {
1555
+ const callback = jest.fn(() => {});
1556
+ it('handle valid response from saveCustomLabels api', () => {
1557
+ expectSaga(upsertCustomLabel, {
1558
+ payload: upsertCustomLabelPayload,
1559
+ isUpdate: false,
1560
+ callback,
1561
+ })
1562
+ .provide([
1563
+ [
1564
+ matchers.call.fn(api.saveCustomLabels),
1565
+ { result: upsertCustomLabelResult, success: true },
1566
+ ],
1567
+ ])
1568
+ .put({
1569
+ type: UPSERT_CUSTOM_LABELS_SUCCESS,
1570
+ result: upsertCustomLabelResult,
1571
+ })
1572
+ .run();
1573
+ expect(callback.mock.calls.length).toBe(1);
1574
+ });
1575
+
1576
+ it('handle valid response from updateCustomLabels api', () => {
1577
+ expectSaga(upsertCustomLabel, {
1578
+ payload: upsertCustomLabelPayload,
1579
+ isUpdate: true,
1580
+ callback,
1581
+ })
1582
+ .provide([
1583
+ [
1584
+ matchers.call.fn(api.updateCustomLabels),
1585
+ { result: undefined, success: true },
1586
+ ],
1587
+ ])
1588
+ .put({
1589
+ type: UPSERT_CUSTOM_LABELS_SUCCESS,
1590
+ result: undefined,
1591
+ })
1592
+ .run();
1593
+ expect(callback.mock.calls.length).toBe(1);
1594
+ });
1595
+
1596
+ it('handle error response from api', () => {
1597
+ expectSaga(upsertCustomLabel, {
1598
+ payload: upsertCustomLabelPayload,
1599
+ isUpdate: false,
1600
+ })
1601
+ .provide([
1602
+ [
1603
+ matchers.call.fn(api.saveCustomLabels),
1604
+ { errorMessage: 'Error message', success: false },
1605
+ ],
1606
+ ])
1607
+ .put({
1608
+ type: UPSERT_CUSTOM_LABELS_FAILURE,
1609
+ error: 'Error message',
1610
+ })
1611
+ .run();
1612
+ });
1613
+
1614
+ it('handle error response from api', () => {
1615
+ expectSaga(upsertCustomLabel, {
1616
+ payload: upsertCustomLabelPayload,
1617
+ isUpdate: false,
1618
+ })
1619
+ .provide([[matchers.call.fn(api.saveCustomLabels), throwError(error)]])
1620
+ .put({
1621
+ type: UPSERT_CUSTOM_LABELS_FAILURE,
1622
+ error,
1623
+ })
1624
+ .run();
1625
+ });
1626
+ });
1627
+
1628
+ describe('checkReconfigureProgram saga', () => {
1629
+ it('handle valid response from api', () => {
1630
+ expectSaga(checkReconfigureProgram, {
1631
+ programId: '1074',
1632
+ callback: () => {},
1633
+ })
1634
+ .provide([
1635
+ [
1636
+ matchers.call.fn(api.checkReconfigureProgram),
1637
+ {
1638
+ result: { changesMade: [], requireReconfigure: false },
1639
+ success: true,
1640
+ },
1641
+ ],
1642
+ [
1643
+ matchers.call.fn(api.getOrgConfigDetails),
1644
+ { data: [{}], status: { message: 'success' } },
1645
+ ],
1646
+ ])
1647
+ .put({
1648
+ type: CHECK_RECONFIGURE_SUCCESS,
1649
+ result: {
1650
+ requireReconfigure: true,
1651
+ changesMade: ['Program'],
1652
+ },
1653
+ })
1654
+ .run();
1655
+ });
1656
+
1657
+ it('handle valid response from api when ruleset is already present', () => {
1658
+ expectSaga(checkReconfigureProgram, {
1659
+ programId: '1074',
1660
+ callback: () => {},
1661
+ })
1662
+ .provide([
1663
+ [
1664
+ matchers.call.fn(api.checkReconfigureProgram),
1665
+ {
1666
+ result: { changesMade: ['Ruleset'], requireReconfigure: false },
1667
+ success: true,
1668
+ },
1669
+ ],
1670
+ [
1671
+ matchers.call.fn(api.getOrgConfigDetails),
1672
+ { data: [{}], status: { message: 'success' } },
1673
+ ],
1674
+ ])
1675
+ .put({
1676
+ type: CHECK_RECONFIGURE_SUCCESS,
1677
+ result: {
1678
+ requireReconfigure: true,
1679
+ changesMade: ['Program'],
1680
+ },
1681
+ })
1682
+ .run();
1683
+ });
1684
+
1685
+ it('handle valid response from api when changesMade is not an array', () => {
1686
+ expectSaga(checkReconfigureProgram, {
1687
+ programId: '1074',
1688
+ callback: () => {},
1689
+ })
1690
+ .provide([
1691
+ [
1692
+ matchers.call.fn(api.checkReconfigureProgram),
1693
+ {
1694
+ result: { changesMade: undefined, requireReconfigure: false },
1695
+ success: true,
1696
+ },
1697
+ ],
1698
+ [
1699
+ matchers.call.fn(api.getOrgConfigDetails),
1700
+ { data: [{}], status: { message: 'success' } },
1701
+ ],
1702
+ ])
1703
+ .put({
1704
+ type: CHECK_RECONFIGURE_SUCCESS,
1705
+ result: {
1706
+ requireReconfigure: true,
1707
+ changesMade: ['Program'],
1708
+ },
1709
+ })
1710
+ .run();
1711
+ });
1712
+
1713
+ it('handle error response from api', () => {
1714
+ expectSaga(checkReconfigureProgram, { programId: '1074' })
1715
+ .provide([
1716
+ [
1717
+ matchers.call.fn(api.checkReconfigureProgram),
1718
+ { errorMessage: 'error Message', success: false },
1719
+ ],
1720
+ [
1721
+ matchers.call.fn(api.getOrgConfigDetails),
1722
+ { data: [], status: { message: 'success' } },
1723
+ ],
1724
+ ])
1725
+ .put({
1726
+ type: CHECK_RECONFIGURE_FAILURE,
1727
+ error: 'error Message',
1728
+ })
1729
+ .run();
1730
+ });
1731
+
1732
+ it('handle error response from api', () => {
1733
+ expectSaga(checkReconfigureProgram, { programId: '1074' })
1734
+ .provide([
1735
+ [matchers.call.fn(api.checkReconfigureProgram), throwError(error)],
1736
+ ])
1737
+ .put({
1738
+ type: CHECK_RECONFIGURE_FAILURE,
1739
+ error,
1740
+ })
1741
+ .run();
1742
+ });
1743
+ });
1744
+
1745
+ describe('getSupportVideosConfig saga', () => {
1746
+ it('handle valid response from api', () => {
1747
+ expectSaga(getSupportVideosConfig, {
1748
+ callback: () => {},
1749
+ })
1750
+ .provide([
1751
+ [
1752
+ matchers.call.fn(api.getSupportVideosConfig),
1753
+ validResponseGetSupportVideoConfig,
1754
+ ],
1755
+ ])
1756
+ .put({
1757
+ type: GET_SUPPORT_VIDEOS_CONFIG_SUCCESS,
1758
+ data: validResponseGetSupportVideoConfig.data,
1759
+ })
1760
+ .run();
1761
+ });
1762
+
1763
+ it('handle error response from api', () => {
1764
+ expectSaga(getSupportVideosConfig, { callback: () => {} })
1765
+ .provide([
1766
+ [
1767
+ matchers.call.fn(api.getSupportVideosConfig),
1768
+ {
1769
+ success: false,
1770
+ status: 500,
1771
+ message: 'No config for support videos found',
1772
+ },
1773
+ ],
1774
+ ])
1775
+ .put({
1776
+ type: GET_SUPPORT_VIDEOS_CONFIG_FAILURE,
1777
+ error: 'No config for support videos found',
1778
+ })
1779
+ .run();
1780
+ });
1781
+
1782
+ it('handle error response from api', () => {
1783
+ expectSaga(getSupportVideosConfig, {})
1784
+ .provide([
1785
+ [
1786
+ matchers.call.fn(api.getSupportVideosConfig),
1787
+ {
1788
+ success: false,
1789
+ status: 500,
1790
+ message: 'No config for support videos found',
1791
+ },
1792
+ ],
1793
+ ])
1794
+ .put({
1795
+ type: GET_SUPPORT_VIDEOS_CONFIG_FAILURE,
1796
+ error: 'No config for support videos found',
1797
+ })
1798
+ .run();
1799
+ });
1800
+
1801
+ it('handle error response from api', () => {
1802
+ expectSaga(getSupportVideosConfig, {})
1803
+ .provide([
1804
+ [matchers.call.fn(api.getSupportVideosConfig), throwError(error)],
1805
+ ])
1806
+ .put({
1807
+ type: GET_SUPPORT_VIDEOS_CONFIG_FAILURE,
1808
+ error,
1809
+ })
1810
+ .run();
1811
+ });
1812
+ });
1813
+
1814
+ describe('getGroupRedemptionStatus saga', () => {
1815
+ it('handle valid response from api', () => {
1816
+ expectSaga(getGroupRedemptionStatus, {
1817
+ callback: () => {},
1818
+ })
1819
+ .provide([
1820
+ [
1821
+ matchers.call.fn(api.getGroupRedemptionStatus),
1822
+ { success: true, result: [{}] },
1823
+ ],
1824
+ ])
1825
+ .put({
1826
+ type: GET_GROUP_REDEMPTION_STATUS_SUCCESS,
1827
+ data: validResponseGetSupportVideoConfig.data,
1828
+ })
1829
+ .run();
1830
+ });
1831
+
1832
+ it('handle error response from api', () => {
1833
+ expectSaga(getGroupRedemptionStatus, { callback: () => {} })
1834
+ .provide([
1835
+ [
1836
+ matchers.call.fn(api.getGroupRedemptionStatus),
1837
+ {
1838
+ success: false,
1839
+ status: 500,
1840
+ message: 'No config for support videos found',
1841
+ },
1842
+ ],
1843
+ ])
1844
+ .put({
1845
+ type: GET_GROUP_REDEMPTION_STATUS_FAILURE,
1846
+ error: 'Config error',
1847
+ })
1848
+ .run();
1849
+ });
1850
+
1851
+ it('handle error response from api', () => {
1852
+ expectSaga(getGroupRedemptionStatus, {})
1853
+ .provide([
1854
+ [
1855
+ matchers.call.fn(api.getGroupRedemptionStatus),
1856
+ {
1857
+ success: false,
1858
+ status: 500,
1859
+ message: 'Config error',
1860
+ },
1861
+ ],
1862
+ ])
1863
+ .put({
1864
+ type: GET_GROUP_REDEMPTION_STATUS_FAILURE,
1865
+ error: 'Config error',
1866
+ })
1867
+ .run();
1868
+ });
1869
+
1870
+ it('handle error response from api', () => {
1871
+ expectSaga(getGroupRedemptionStatus, { callback: () => {} })
1872
+ .provide([
1873
+ [matchers.call.fn(api.getGroupRedemptionStatus), throwError(error)],
1874
+ ])
1875
+ .put({
1876
+ type: GET_GROUP_REDEMPTION_STATUS_FAILURE,
1877
+ error,
1878
+ })
1879
+ .run();
1880
+ });
1881
+ });
1882
+
1883
+ describe('getAlternateCurrencyFlag saga', () => {
1884
+ it('handle valid response from api', () => {
1885
+ expectSaga(getAlternateCurrencyFlag, {
1886
+ callback,
1887
+ })
1888
+ .provide([
1889
+ [
1890
+ matchers.call.fn(api.getAlternateCurrencyFlag),
1891
+ { getAlternateCurrencyFlagResult, success: true },
1892
+ ],
1893
+ ])
1894
+ .put({
1895
+ type: ALTERNATE_CURRENCY_FLAG_SUCCESS,
1896
+ result: getAlternateCurrencyFlagResult,
1897
+ })
1898
+ .run();
1899
+ });
1900
+
1901
+ it('handle error response from api', () => {
1902
+ expectSaga(getAlternateCurrencyFlag, {
1903
+ callback,
1904
+ })
1905
+ .provide([
1906
+ [
1907
+ matchers.call.fn(api.getAlternateCurrencyFlag),
1908
+ { errorMessage: 'error Message', success: false },
1909
+ ],
1910
+ ])
1911
+ .put({
1912
+ type: ALTERNATE_CURRENCY_FLAG_FAILURE,
1913
+ error: 'error Message',
1914
+ })
1915
+ .run();
1916
+ });
1917
+
1918
+ it('handle error response from api', () => {
1919
+ expectSaga(getAlternateCurrencyFlag, {
1920
+ callback,
1921
+ })
1922
+ .provide([
1923
+ [matchers.call.fn(api.getAlternateCurrencyFlag), throwError(error)],
1924
+ ])
1925
+ .put({
1926
+ type: ALTERNATE_CURRENCY_FLAG_FAILURE,
1927
+ error,
1928
+ })
1929
+ .run();
1930
+ });
1931
+ });
1932
+
1933
+ describe('watchForGetCustomLabels saga', () => {
1934
+ const generator = watchForGetCustomLabels();
1935
+ it('should call watchers functions', () => {
1936
+ expect(generator.next().value).toEqual(
1937
+ takeLatest(GET_CUSTOM_LABELS_REQUEST, getCustomLabels),
1938
+ );
1939
+ });
1940
+ });
1941
+
1942
+ describe('watchForGetGroupRedemptionStatus saga', () => {
1943
+ const generator = watchForGroupRedemptionStatus();
1944
+ it('should call watchers functions', () => {
1945
+ expect(generator.next().value).toEqual(
1946
+ takeLatest(GET_GROUP_REDEMPTION_STATUS_REQUEST, getGroupRedemptionStatus),
1947
+ );
1948
+ });
1949
+ });
1950
+
1951
+ describe('watchForUpsertCustomLabel saga', () => {
1952
+ const generator = watchForUpsertCustomLabel();
1953
+ it('should call watchers functions', () => {
1954
+ expect(generator.next().value).toEqual(
1955
+ takeLatest(UPSERT_CUSTOM_LABELS_REQUEST, upsertCustomLabel),
1956
+ );
1957
+ });
1958
+ });
1959
+
1960
+ describe('watchForCheckReconfgureProgram saga', () => {
1961
+ const generator = watchForCheckReconfigurationProgram();
1962
+ it('should call watchers functions', () => {
1963
+ expect(generator.next().value).toEqual(
1964
+ takeLatest(CHECK_RECONFIGURE_REQUEST, checkReconfigureProgram),
1965
+ );
1966
+ });
1967
+ });
1968
+
1969
+ describe('watchForgetTimeZone saga', () => {
1970
+ const generator = watchForGetTimeZone();
1971
+ it('should call watchers functions', () => {
1972
+ expect(generator.next().value).toEqual(
1973
+ takeLatest(GET_TIME_ZONE_REQUEST, getTimeZone),
1974
+ );
1975
+ });
1976
+ });
1977
+
1978
+ describe('watchForgetSidebarMenuData saga', () => {
1979
+ const generator = watchGetSidebarMenuData();
1980
+ it('should call watchers functions', () => {
1981
+ expect(generator.next().value).toEqual(
1982
+ takeLatest(GET_SIDEBAR_MENU_DATA_REQUEST, getSidebarMenuData),
1983
+ );
1984
+ });
1985
+ });
1986
+
1987
+ describe('watchForgetTopbarMenuData saga', () => {
1988
+ const generator = watchGetTopbarMenuData();
1989
+ it('should call watchers functions', () => {
1990
+ expect(generator.next().value).toEqual(
1991
+ takeLatest(GET_TOPBAR_MENU_DATA_REQUEST, getTopbarMenuData),
1992
+ );
1993
+ });
1994
+ });
1995
+
1996
+ describe('watchForGetTier saga', () => {
1997
+ const generator = watchForGetTier();
1998
+ it('should call watchers functions', () => {
1999
+ expect(generator.next().value).toEqual(
2000
+ takeLatest(GET_TIER_REQUEST, getTier),
2001
+ );
2002
+ });
2003
+ });
2004
+
2005
+ describe('watchForGetUsersByIds saga', () => {
2006
+ const generator = watchForGetUsersByIds();
2007
+ it('should call watchers functions', () => {
2008
+ expect(generator.next().value).toEqual(
2009
+ takeLatest(GET_USER_LIST_REQUEST, getUsersByIds),
2010
+ );
2011
+ });
2012
+ });
2013
+
2014
+ describe('watchGetCustomerActivityRequest saga', () => {
2015
+ const generator = watchGetCustomerActivityRequest();
2016
+ it('should call watchers functions', () => {
2017
+ expect(generator.next().value).toEqual(
2018
+ takeLatest(GET_CUSTOMER_ACTIVITY_REQUEST, getCustomerActivity),
2019
+ );
2020
+ });
2021
+ });
2022
+
2023
+ describe('watchForGetAllSenderDetails saga', () => {
2024
+ const generator = watchForGetAllSenderDetails();
2025
+ it('should call watchers functions', () => {
2026
+ expect(generator.next().value).toEqual(
2027
+ takeLatest(GET_ALL_SENDER_DETAILS_REQUEST, getAllSenderDetails),
2028
+ );
2029
+ });
2030
+ });
2031
+
2032
+ describe('watchForGetStrategiesNoRefresh saga', () => {
2033
+ const generator = watchForGetStrategiesNoRefresh();
2034
+ it('should call watchers functions', () => {
2035
+ expect(generator.next().value).toEqual(
2036
+ takeLatest(GET_STRATEGY_NO_REFRESH_REQUEST, getStrategiesDataNoRefresh),
2037
+ );
2038
+ });
2039
+ });
2040
+
2041
+ describe('watchForGetPrograms saga', () => {
2042
+ const generator = watchForGetPrograms();
2043
+ it('should call watchers functions', () => {
2044
+ expect(generator.next().value).toEqual(
2045
+ takeLatest(GET_PROGRAMS_REQUEST, getPrograms),
2046
+ );
2047
+ });
2048
+ });
2049
+
2050
+ describe('watchForBulkConfigStatus saga', () => {
2051
+ const generator = watchForBulkConfigStatus();
2052
+ it('should call watchers functions', () => {
2053
+ expect(generator.next().value).toEqual(
2054
+ takeLatest(GET_BULK_CONFIG_STATUS_REQUEST, getBulkConfigStatus),
2055
+ );
2056
+ });
2057
+ });
2058
+
2059
+ describe('watchForUserGroupV2Status saga', () => {
2060
+ const generator = watchForUserGroupV2Status();
2061
+ it('should call watchers functions', () => {
2062
+ expect(generator.next().value).toEqual(
2063
+ takeLatest(GET_USER_GROUP_V2_STATUS_REQUEST, getUserGroupV2Status),
2064
+ );
2065
+ });
2066
+ });
2067
+
2068
+ describe('watchForEMFStatus saga', () => {
2069
+ const generator = watchForEMFStatus();
2070
+ it('should call watchers functions', () => {
2071
+ expect(generator.next().value).toEqual(
2072
+ takeLatest(GET_EMF_STATUS_REQUEST, getEMFStatus),
2073
+ );
2074
+ });
2075
+ });
2076
+
2077
+ describe('watchForUpsertAction saga', () => {
2078
+ const generator = watchForUpsertAction();
2079
+ it('should call watchers functions', () => {
2080
+ expect(generator.next().value).toEqual(
2081
+ takeLatest(UPSERT_ACTION_REQUEST, upsertAction),
2082
+ );
2083
+ });
2084
+ });
2085
+
2086
+ describe('watchForGetStrategies saga', () => {
2087
+ const generator = watchForGetStrategies();
2088
+ it('should call watchers functions', () => {
2089
+ expect(generator.next().value).toEqual(
2090
+ takeLatest(GET_STRATEGY_REQUEST, getStrategies),
2091
+ );
2092
+ });
2093
+ });
2094
+
2095
+ describe('watchGetSenderDetails saga', () => {
2096
+ const generator = watchGetSenderDetails();
2097
+ it('should call watchers functions', () => {
2098
+ expect(generator.next().value).toEqual(
2099
+ takeLatest(GET_SENDER_DETAILS_REQUEST, getSenderDetails),
2100
+ );
2101
+ });
2102
+ });
2103
+
2104
+ describe('watchForGetMappedEntities saga', () => {
2105
+ const generator = watchForGetMappedEntities();
2106
+ it('should call watchers functions', () => {
2107
+ expect(generator.next().value).toEqual(
2108
+ takeLatest(GET_MAPPED_ENTITIES_REQUEST, getMappedEntities),
2109
+ );
2110
+ });
2111
+ });
2112
+
2113
+ describe('watchForGetProgramFieldData saga', () => {
2114
+ const generator = watchForGetProgramFieldData();
2115
+ it('should call watchers functions', () => {
2116
+ expect(generator.next().value).toEqual(
2117
+ takeLatest(GET_FIELD_DATA_REQUEST, getProgramFieldData),
2118
+ );
2119
+ });
2120
+ });
2121
+
2122
+ describe('watchForGetProgramFilterType saga', () => {
2123
+ const generator = watchForGetProgramFilterType();
2124
+ it('should call watchers functions', () => {
2125
+ expect(generator.next().value).toEqual(
2126
+ takeLatest(GET_PROGRAM_FILTER_TYPE_REQUEST, getProgramFilterType),
2127
+ );
2128
+ });
2129
+ });
2130
+
2131
+ describe('watchForGetOrgKpiConfig saga', () => {
2132
+ const generator = watchForGetOrgKpiConfig();
2133
+ it('should call watchers functions', () => {
2134
+ expect(generator.next().value).toEqual(
2135
+ takeLatest(GET_ORG_KPI_CONFIG_REQUEST, getOrgKpiConfig),
2136
+ );
2137
+ });
2138
+ });
2139
+
2140
+ describe('watchForGetLastSyncTime saga', () => {
2141
+ const generator = watchForGetLastSyncTime();
2142
+ it('should call watchers functions', () => {
2143
+ expect(generator.next().value).toEqual(
2144
+ takeLatest(LAST_SYNC_TIME_REQUEST, getLastSyncTime),
2145
+ );
2146
+ });
2147
+ });
2148
+
2149
+ describe('watchForFetchUserInfo saga', () => {
2150
+ const generator = watchForFetchUserInfo();
2151
+ it('should call watchers functions', () => {
2152
+ expect(generator.next().value).toEqual(
2153
+ takeLatest(GET_USER_DATA_REQUEST, fetchUserInfo),
2154
+ );
2155
+ });
2156
+ });
2157
+
2158
+ describe('watchForOrgChange saga', () => {
2159
+ const generator = watchForOrgChange();
2160
+ it('should call watchers functions', () => {
2161
+ expect(generator.next().value).toEqual(
2162
+ takeLatest(SWITCH_ORG_REQUEST, switchOrg),
2163
+ );
2164
+ });
2165
+ });
2166
+
2167
+ describe('watchForOrgChangeSuccess saga', () => {
2168
+ const generator = watchForOrgChangeSuccess();
2169
+ it('should call watchers functions', () => {
2170
+ expect(generator.next().value).toEqual(
2171
+ takeLatest(SWITCH_ORG_SUCCESS, switchOrgSuccess),
2172
+ );
2173
+ });
2174
+ });
2175
+
2176
+ describe('watchForLogoutFlow saga', () => {
2177
+ const generator = watchForLogoutFlow();
2178
+ it('should call watchers functions', () => {
2179
+ expect(generator.next().value).toEqual(
2180
+ takeLatest(LOGOUT_REQUEST, logoutFlow),
2181
+ );
2182
+ });
2183
+ });
2184
+
2185
+ describe('watchForLoginSuccess saga', () => {
2186
+ const generator = watchForLoginSuccess();
2187
+ it('should call watchers functions', () => {
2188
+ expect(generator.next().value).toEqual(
2189
+ takeLatest(LOGIN_SUCCESS, loginSuccess),
2190
+ );
2191
+ });
2192
+ });
2193
+
2194
+ describe('login success saga', () => {
2195
+ it('should call login success generator function', () => {
2196
+ const generator = loginSuccess({
2197
+ res: {
2198
+ token: 'test',
2199
+ user: {
2200
+ orgID: '123',
2201
+ id: 'abc',
2202
+ },
2203
+ },
2204
+ });
2205
+
2206
+ expect(generator.next()).toMatchObject({ done: false, value: undefined });
2207
+ });
2208
+ });
2209
+
2210
+ describe('logout success saga', () => {
2211
+ it('should call login success generator function', () => {
2212
+ const generator = logoutSuccess();
2213
+ expect(generator.next()).toMatchObject({ done: false, value: undefined });
2214
+ });
2215
+ });
2216
+
2217
+ describe('watchForLogoutSuccess saga', () => {
2218
+ const generator = watchForLogoutSuccess();
2219
+ it('should call watchers functions', () => {
2220
+ expect(generator.next().value).toEqual(
2221
+ takeLatest(LOGOUT_SUCCESS, logoutSuccess),
2222
+ );
2223
+ });
2224
+ });
2225
+
2226
+ describe('saveProgramConfig saga', () => {
2227
+ it('handle valid response from api', () => {
2228
+ expectSaga(saveProgramConfig, {
2229
+ orgId: 0,
2230
+ programId: 0,
2231
+ userId: 0,
2232
+ payload: {},
2233
+ callback: () => {},
2234
+ })
2235
+ .provide([
2236
+ [
2237
+ matchers.call.fn(api.saveProgramConfig),
2238
+ {
2239
+ success: true,
2240
+ status: { code: 200 },
2241
+ data: { key: 'value' },
2242
+ },
2243
+ ],
2244
+ ])
2245
+ .put({
2246
+ type: SAVE_PROGRAM_CONFIG_SUCCESS,
2247
+ data: { key: 'value' },
2248
+ })
2249
+ .run();
2250
+ });
2251
+
2252
+ it('handle error response from api', () => {
2253
+ expectSaga(saveProgramConfig, {
2254
+ orgId: 0,
2255
+ programId: 0,
2256
+ userId: 0,
2257
+ payload: {},
2258
+ })
2259
+ .provide([
2260
+ [
2261
+ matchers.call.fn(api.saveProgramConfig),
2262
+ {
2263
+ success: false,
2264
+ status: { code: 500 },
2265
+ message: 'Error',
2266
+ },
2267
+ ],
2268
+ ])
2269
+ .put({
2270
+ type: SAVE_PROGRAM_CONFIG_FAILURE,
2271
+ error: 'Error',
2272
+ })
2273
+ .run();
2274
+ });
2275
+
2276
+ it('handle error response from api', () => {
2277
+ expectSaga(saveProgramConfig, {})
2278
+ .provide([[matchers.call.fn(api.saveProgramConfig), throwError(error)]])
2279
+ .put({
2280
+ type: SAVE_PROGRAM_CONFIG_FAILURE,
2281
+ error,
2282
+ })
2283
+ .run();
2284
+ });
2285
+ });
2286
+ describe('watchForSaveProgramConfig saga', () => {
2287
+ const generator = watchForSaveProgramConfig();
2288
+ it('should call watchers functions', () => {
2289
+ expect(generator.next().value).toEqual(
2290
+ takeLatest(SAVE_PROGRAM_CONFIG_REQUEST, saveProgramConfig),
2291
+ );
2292
+ });
2293
+ });
2294
+
2295
+ describe('getProgramConfig saga', () => {
2296
+ it('handle valid response from api - with single program', () => {
2297
+ expectSaga(getProgramConfig, {
2298
+ orgId: 0,
2299
+ programIds: [0],
2300
+ queryParams: 'string',
2301
+ })
2302
+ .provide([
2303
+ [
2304
+ matchers.call.fn(api.getProgramConfig),
2305
+ {
2306
+ success: true,
2307
+ status: { code: 200 },
2308
+ data: { key: 'value' },
2309
+ },
2310
+ ],
2311
+ ])
2312
+ .put({
2313
+ type: GET_PROGRAM_CONFIG_SUCCESS,
2314
+ data: { key: 'value' },
2315
+ })
2316
+ .run();
2317
+ });
2318
+ it('handle valid response from api - with multiple programs', () => {
2319
+ expectSaga(getProgramConfig, {
2320
+ orgId: 0,
2321
+ programIds: [0, 1, 2],
2322
+ queryParams: 'string',
2323
+ })
2324
+ .provide([
2325
+ [
2326
+ matchers.call.fn(api.getProgramConfig),
2327
+ {
2328
+ success: true,
2329
+ status: { code: 200 },
2330
+ data: { key: 'value' },
2331
+ },
2332
+ ],
2333
+ ])
2334
+ .put({
2335
+ type: GET_PROGRAM_CONFIG_SUCCESS,
2336
+ data: { key: 'value' },
2337
+ })
2338
+ .run();
2339
+ });
2340
+
2341
+ it('handle error response from api', () => {
2342
+ expectSaga(getProgramConfig, {
2343
+ orgId: 0,
2344
+ programIds: [0],
2345
+ queryParams: 'string',
2346
+ })
2347
+ .provide([
2348
+ [
2349
+ matchers.call.fn(api.getProgramConfig),
2350
+ {
2351
+ success: false,
2352
+ status: { code: 500 },
2353
+ message: 'Error',
2354
+ },
2355
+ ],
2356
+ ])
2357
+ .put({
2358
+ type: GET_PROGRAM_CONFIG_FAILURE,
2359
+ error: 'Error',
2360
+ })
2361
+ .run();
2362
+ });
2363
+
2364
+ it('handle error response from api', () => {
2365
+ expectSaga(getProgramConfig, {})
2366
+ .provide([[matchers.call.fn(api.getProgramConfig), throwError(error)]])
2367
+ .put({
2368
+ type: GET_PROGRAM_CONFIG_FAILURE,
2369
+ error,
2370
+ })
2371
+ .run();
2372
+ });
2373
+ });
2374
+ describe('watchForGetProgramConfig saga', () => {
2375
+ const generator = watchForGetProgramConfig();
2376
+ it('should call watchers functions', () => {
2377
+ expect(generator.next().value).toEqual(
2378
+ takeLatest(GET_PROGRAM_CONFIG_REQUEST, getProgramConfig),
2379
+ );
2380
+ });
2381
+ });
2382
+ describe('getAlternateCurrencyFlag saga', () => {
2383
+ const generator = watchForAlternateCurrencyFlag();
2384
+ it('should call watchers functions', () => {
2385
+ expect(generator.next().value).toEqual(
2386
+ takeLatest(ALTERNATE_CURRENCY_FLAG_REQUEST, getAlternateCurrencyFlag),
2387
+ );
2388
+ });
2389
+ });
2390
+
2391
+ describe('getCdnTransformationConfig saga', () => {
2392
+ it('handles valid response from api', () => {
2393
+ const localStorageSetItemSpy = jest.spyOn(Storage.prototype, 'setItem');
2394
+
2395
+ expectSaga(getCdnTransformationConfig)
2396
+ .provide([
2397
+ [matchers.call.fn(api.getCdnTransformationConfig), mockAPIResponseCDN],
2398
+ ])
2399
+ .run()
2400
+ .then(() => {
2401
+ expect(localStorageSetItemSpy).toHaveBeenCalledWith(
2402
+ 'CDN_BASE_URL',
2403
+ 'https://storage.crm.staging.content-cdn.io',
2404
+ );
2405
+ });
2406
+ });
2407
+
2408
+ it('handles valid response without hostname from api', () => {
2409
+ const localStorageRemoveItemSpy = jest.spyOn(
2410
+ Storage.prototype,
2411
+ 'removeItem',
2412
+ );
2413
+
2414
+ const mockResponseWithoutHostname = {
2415
+ success: true,
2416
+ status: { code: 200 },
2417
+ response: {
2418
+ /* No hostname */
2419
+ },
2420
+ };
2421
+
2422
+ expectSaga(getCdnTransformationConfig)
2423
+ .provide([
2424
+ [
2425
+ matchers.call.fn(api.getCdnTransformationConfig),
2426
+ mockResponseWithoutHostname,
2427
+ ],
2428
+ ])
2429
+ .run()
2430
+ .then(() => {
2431
+ expect(localStorageRemoveItemSpy).toHaveBeenCalledWith('CDN_BASE_URL');
2432
+ });
2433
+ });
2434
+
2435
+ it('handles error response from api', () => {
2436
+ const localStorageRemoveItemSpy = jest.spyOn(
2437
+ Storage.prototype,
2438
+ 'removeItem',
2439
+ );
2440
+
2441
+ expectSaga(getCdnTransformationConfig)
2442
+ .provide([
2443
+ [
2444
+ matchers.call.fn(api.getCdnTransformationConfig),
2445
+ { success: false, status: { code: 500 } },
2446
+ ],
2447
+ ])
2448
+ .run()
2449
+ .then(() => {
2450
+ expect(localStorageRemoveItemSpy).toHaveBeenCalledWith('CDN_BASE_URL');
2451
+ });
2452
+ });
2453
+
2454
+ it('handles error during api call', () => {
2455
+ const localStorageRemoveItemSpy = jest.spyOn(
2456
+ Storage.prototype,
2457
+ 'removeItem',
2458
+ );
2459
+
2460
+ expectSaga(getCdnTransformationConfig)
2461
+ .provide([
2462
+ [matchers.call.fn(api.getCdnTransformationConfig), throwError(error)],
2463
+ ])
2464
+ .run()
2465
+ .then(() => {
2466
+ expect(localStorageRemoveItemSpy).toHaveBeenCalledWith('CDN_BASE_URL');
2467
+ });
2468
+ });
2469
+ });
2470
+
2471
+ describe('watchForGetCDNConfig', () => {
2472
+ const generator = watchForGetCDNConfig();
2473
+ it('should call watchers functions', () => {
2474
+ expect(generator.next().value).toEqual(
2475
+ takeLatest(
2476
+ GET_CDN_TRANSFORMATION_CONFIG_REQUEST,
2477
+ getCdnTransformationConfig,
2478
+ ),
2479
+ );
2480
+ });
2481
+ });
2482
+
2483
+ describe('getMultipleExtendedFields saga', () => {
2484
+ it('handle valid response from api - with single program', () => {
2485
+ expectSaga(getMultipleExtendedFields, {
2486
+ extendedFields: ['BILL_EXTENDED_FIELD', 'CUSTOMER_EXTENDED_FIELD'],
2487
+ programId: 0,
2488
+ allowedFieldTypes: 'DATETIME, DATE',
2489
+ callback: jest.fn(),
2490
+ })
2491
+ .provide([
2492
+ [
2493
+ matchers.call.fn(api.getExtendedFields),
2494
+ {
2495
+ success: true,
2496
+ status: { code: 200 },
2497
+ result: { key: 'value' },
2498
+ },
2499
+ ],
2500
+ ])
2501
+ .put({
2502
+ type: GET_MULTIPLE_EXTENDED_FIELDS_SUCCESS,
2503
+ result: { key: 'value' },
2504
+ })
2505
+ .run();
2506
+ });
2507
+
2508
+ it('handle error response from api', () => {
2509
+ expectSaga(getMultipleExtendedFields, {
2510
+ extendedFields: ['BILL_EXTENDED_FIELD', 'CUSTOMER_EXTENDED_FIELD'],
2511
+ programId: 0,
2512
+ allowedFieldTypes: 'DATETIME, DATE',
2513
+ callback: jest.fn(),
2514
+ })
2515
+ .provide([
2516
+ [
2517
+ matchers.call.fn(api.getExtendedFields),
2518
+ {
2519
+ success: false,
2520
+ status: { code: 500 },
2521
+ message: 'Error',
2522
+ },
2523
+ ],
2524
+ ])
2525
+ .put({
2526
+ type: GET_MULTIPLE_EXTENDED_FIELDS_FAILURE,
2527
+ error: 'Error',
2528
+ })
2529
+ .run();
2530
+ });
2531
+
2532
+ it('handle error response from api', () => {
2533
+ expectSaga(getMultipleExtendedFields, {})
2534
+ .provide([[matchers.call.fn(api.getExtendedFields), throwError(error)]])
2535
+ .put({
2536
+ type: GET_MULTIPLE_EXTENDED_FIELDS_FAILURE,
2537
+ error,
2538
+ })
2539
+ .run();
2540
+ });
2541
+ });
2542
+ describe('watchGetExtendedField saga', () => {
2543
+ const generator = watchGetExtendedField();
2544
+ it('should call watchers functions', () => {
2545
+ expect(generator.next().value).toEqual(
2546
+ takeLatest(
2547
+ GET_MULTIPLE_EXTENDED_FIELDS_REQUEST,
2548
+ getMultipleExtendedFields,
2549
+ ),
2550
+ );
2551
+ });
2552
+ });
2553
+
2554
+ describe('getAdditionalSlabUpgradeAndRenewal saga', () => {
2555
+ it('handle valid response from api', () => {
2556
+ expectSaga(getAdditionalSlabUpgradeAndRenewal)
2557
+ .provide([
2558
+ [
2559
+ matchers.call.fn(api.getAdditionalSlabs),
2560
+ { getAlternateCurrencyFlagResult, success: true },
2561
+ ],
2562
+ ])
2563
+ .put({
2564
+ type: GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_SUCCESS,
2565
+ result: getAlternateCurrencyFlagResult,
2566
+ })
2567
+ .run();
2568
+ });
2569
+
2570
+ it('handle error response from api', () => {
2571
+ expectSaga(getAdditionalSlabUpgradeAndRenewal)
2572
+ .provide([
2573
+ [
2574
+ matchers.call.fn(api.getAdditionalSlabs),
2575
+ { errorMessage: 'error Message', success: false },
2576
+ ],
2577
+ ])
2578
+ .put({
2579
+ type: GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_SUCCESS,
2580
+ error: 'error Message',
2581
+ })
2582
+ .run();
2583
+ });
2584
+
2585
+ it('handle error response from api', () => {
2586
+ expectSaga(getAdditionalSlabUpgradeAndRenewal)
2587
+ .provide([
2588
+ [matchers.call.fn(api.getAdditionalSlabs), throwError(error)],
2589
+ ])
2590
+ .put({
2591
+ type: GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_FAILURE,
2592
+ error,
2593
+ })
2594
+ .run();
2595
+ });
2596
+ });
2597
+
2598
+ describe('watchForAdditionalSlabUpgradeAndRenewal saga', () => {
2599
+ const generator = watchForAdditionalSlabUpgradeAndRenewal();
2600
+ it('should call watchers functions', () => {
2601
+ expect(generator.next().value).toEqual(
2602
+ takeLatest(
2603
+ GET_ADDITIONAL_SLAB_UPGRADE_RENEWAL_REQUEST,
2604
+ getAdditionalSlabUpgradeAndRenewal,
2605
+ ),
2606
+ );
2607
+ });
2608
+ });
2609
+
2610
+ describe('getSegregatePromotionsFlag saga', () => {
2611
+ const generator = watchForSegregatePromotionsFlag();
2612
+ it('should call watchers functions', () => {
2613
+ expect(generator.next().value).toEqual(
2614
+ takeLatest(SEGREGATE_PROMOTIONS_FLAG_REQUEST, getSegregatePromotionsFlag),
2615
+ );
2616
+ });
2617
+ });
2618
+
2619
+ describe('getSegregatePromotionsFlag saga', () => {
2620
+ it('handle valid response from api', () => {
2621
+ expectSaga(getSegregatePromotionsFlag)
2622
+ .provide([
2623
+ [
2624
+ matchers.call.fn(api.getSegregatePromotionsFlag),
2625
+ { getSegregatePromotionsFlagResult, success: true },
2626
+ ],
2627
+ ])
2628
+ .put({
2629
+ type: SEGREGATE_PROMOTIONS_FLAG_SUCCESS,
2630
+ result: getSegregatePromotionsFlagResult,
2631
+ })
2632
+ .run();
2633
+ });
2634
+
2635
+ it('handle error response from api', () => {
2636
+ expectSaga(getSegregatePromotionsFlag)
2637
+ .provide([
2638
+ [
2639
+ matchers.call.fn(api.getSegregatePromotionsFlag),
2640
+ { errorMessage: 'error Message', success: false },
2641
+ ],
2642
+ ])
2643
+ .put({
2644
+ type: SEGREGATE_PROMOTIONS_FLAG_SUCCESS,
2645
+ error: 'error Message',
2646
+ })
2647
+ .run();
2648
+ });
2649
+
2650
+ it('handle error response from api', () => {
2651
+ expectSaga(getSegregatePromotionsFlag)
2652
+ .provide([
2653
+ [matchers.call.fn(api.getSegregatePromotionsFlag), throwError(error)],
2654
+ ])
2655
+ .put({
2656
+ type: SEGREGATE_PROMOTIONS_FLAG_FAILURE,
2657
+ error,
2658
+ })
2659
+ .run();
2660
+ });
2661
+ });