@capillarytech/creatives-library 1.0.1-alpha.0 → 1.0.2
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.
- package/app.js +14 -22
- package/assets/atoms-illustration.png +0 -0
- package/components/atoms/AvatarIcon/stories/AvatarIcon.stories.js +12 -0
- package/components/atoms/EllipsisText/EllipsisText.js +2 -6
- package/components/atoms/EllipsisText/index.js +2 -1
- package/components/atoms/GroupItemLabel/GroupItemLabel.js +45 -0
- package/components/atoms/GroupItemLabel/style.js +15 -0
- package/components/atoms/GroupItemLabel/tests/__snapshots__/index.test.js.snap +32 -0
- package/components/atoms/GroupItemLabel/tests/index.test.js +35 -0
- package/components/atoms/PrimaryInput/PrimaryInput.js +0 -4
- package/components/atoms/PrimarySelect/PrimarySelect.js +16 -14
- package/components/atoms/RenderRoute/tests/__snapshots__/index.test.js.snap +105 -13
- package/components/atoms/RenderRoute/tests/index.test.js +1 -1
- package/components/atoms/ReonNotEnabled/ReonNotEnabled.js +5 -1
- package/components/atoms/SelectOptionLabelWithInfo/SelectOptionLabelWithInfo.js +6 -10
- package/components/atoms/SelectOptionLabelWithInfo/tests/__snapshots__/index.test.js.snap +2 -4
- package/components/atoms/TriggerAction/TriggerAction.js +2 -1
- package/components/atoms/TriggerAction/index.js +1 -1
- package/components/atoms/TriggerAction/tests/__snapshots__/index.test.js.snap +6 -3
- package/components/molecules/ActionExpression/ActionExpression.js +135 -0
- package/components/molecules/ActionExpression/index.js +1 -0
- package/components/molecules/ActionExpression/style.js +10 -0
- package/components/{organisms → molecules}/ActionExpression/tests/ActionExpression.test.js +2 -21
- package/components/molecules/ActionExpression/tests/__snapshots__/ActionExpression.test.js.snap +87 -0
- package/components/molecules/ActionTitle/ActionTitle.js +11 -14
- package/components/molecules/ActionTitle/tests/ActionTitle.test.js +0 -21
- package/components/molecules/ActionTitle/tests/__snapshots__/ActionTitle.test.js.snap +1 -21
- package/components/molecules/AddActionConditionWorkflow/AddActionConditionWorkflow.js +7 -4
- package/components/molecules/AddActionConditionWorkflow/style.js +2 -16
- package/components/molecules/AddMoreCard/AddMoreCard.js +7 -1
- package/components/molecules/AddTierBanner/AddTierBanner.js +3 -2
- package/components/molecules/AddTierPrimaryInfo/AddTierPrimaryInfo.js +7 -3
- package/components/molecules/AddTrackersInfo/AddTrackersInfo.js +7 -2
- package/components/molecules/AddTrackersInfo/style.js +2 -2
- package/components/molecules/AdvanceSettingScrollContainer/AdvanceSettingScrollContainer.js +2 -2
- package/components/molecules/CardsCommunication/CardsCommunication.js +13 -37
- package/components/molecules/CardsCommunication/constants.js +0 -1
- package/components/molecules/CardsCommunication/messages.js +4 -0
- package/components/molecules/CardsWithCheckboxCommunication/CardsWithCheckboxCommunication.js +2 -2
- package/components/molecules/CardsWithCheckboxCommunication/messages.js +17 -0
- package/components/molecules/CheckboxWithInputPrefix/CheckboxWithInputPrefix.js +9 -48
- package/components/molecules/CollapsableContent/CollapsableContent.js +21 -144
- package/components/molecules/CollapsableContent/style.js +16 -92
- package/components/molecules/CollapseWithDateRange/CollapseWithDateRange.js +0 -11
- package/components/molecules/CollapseWithMultiSelect/CollapseWithMultiSelect.js +12 -28
- package/components/molecules/CollapseWithRadioGroup/CollapseWithRadioGroup.js +5 -17
- package/components/molecules/CollapseWithStore/CollapseWithStore.js +33 -228
- package/components/molecules/CollapseWithSwitchSelect/CollapseWithSwitchSelect.js +26 -60
- package/components/molecules/ColorPatch/ColorPatch.js +1 -1
- package/components/molecules/ColorSelector/ColorSelector.js +60 -98
- package/components/molecules/ColorSelector/style.js +16 -19
- package/components/molecules/CommunicationTable/CommunicationTable.js +3 -25
- package/components/molecules/CommunicationTable/messages.js +8 -0
- package/components/molecules/CommunicationTable/style.js +0 -8
- package/components/molecules/CommunicationTable/tests/index.test.js +6 -41
- package/components/molecules/ConfirmationModal/ConfirmationModal.js +2 -18
- package/components/molecules/ConfirmationModal/style.js +0 -110
- package/components/molecules/ContentPreviews/tests/__snapshots__/index.test.js.snap +82 -4
- package/components/molecules/CreateActionButton/CreateActionButton.js +1 -1
- package/components/molecules/CreateOfferInfo/CreateOfferInfo.js +4 -8
- package/components/molecules/CreateOfferInfo/messages.js +4 -0
- package/components/molecules/CreateTracker/CreateTracker.js +86 -483
- package/components/molecules/CreateTracker/constants.js +0 -2
- package/components/molecules/CreateTracker/messages.js +42 -84
- package/components/molecules/CreateTracker/reducer.js +1 -1
- package/components/molecules/CreateTracker/style.js +0 -58
- package/components/molecules/CustomTree/CustomTree.js +15 -279
- package/components/molecules/CustomTree/style.js +2 -65
- package/components/molecules/DelayCreatives/DelayCreatives.js +2 -12
- package/components/molecules/DividerInlinedText/style.js +2 -3
- package/components/molecules/DowngradeTier/DowngradeTier.js +90 -657
- package/components/molecules/DowngradeTier/constants.js +0 -18
- package/components/molecules/DowngradeTier/messages.js +0 -84
- package/components/molecules/EmptyStateIllustration/EmptyStateIllustration.js +3 -25
- package/components/molecules/EmptyStateIllustration/tests/index.test.js +11 -0
- package/components/molecules/FileSelector/FileSelector.js +3 -4
- package/components/molecules/FileSelector/messages.js +21 -1
- package/components/molecules/FileSelector/style.js +2 -2
- package/components/molecules/HeaderWithInput/HeaderWithInput.js +22 -41
- package/components/molecules/InfoBanner/InfoBanner.js +1 -2
- package/components/molecules/InfoBanner/style.js +0 -2
- package/components/molecules/InputToInput/InputToInput.js +1 -3
- package/components/molecules/LabelWithDivider/LabelWithDivider.js +2 -18
- package/components/molecules/LoyaltyStatus/tests/__snapshots__/LoyaltyStatus.test.js.snap +1140 -5238
- package/components/molecules/MoreLabel/MoreLabel.js +2 -2
- package/components/molecules/MoreLabel/messages.js +16 -0
- package/components/molecules/NumberInput/NumberInput.js +2 -9
- package/components/molecules/NumberInput/constants.js +0 -3
- package/components/molecules/PageHeader/PageHeader.js +177 -0
- package/components/molecules/PageHeader/stories/PageHeader.stories.js +20 -0
- package/components/{organisms → molecules}/PageHeader/style.js +18 -35
- package/components/molecules/PageHeader/tests/PageHeader.test.js +40 -0
- package/components/molecules/PageHeader/tests/__snapshots__/PageHeader.test.js.snap +2342 -0
- package/components/molecules/PageHeaderDescription/PageHeaderDescription.js +10 -53
- package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription.test.js +2 -6
- package/components/molecules/PageHeaderDescription/tests/__snapshots__/PageHeaderDescription.test.js.snap +615 -111
- package/components/molecules/PointExpiryCommunication/PointExpiryCommunication.js +2 -5
- package/components/molecules/PointExpiryCommunication/messages.js +16 -0
- package/components/molecules/PointExpiryCommunication/tests/__snapshots__/index.test.js.snap +0 -1
- package/components/molecules/ProgramName/ProgramName.js +39 -97
- package/components/molecules/ProgramName/stories/ProgramName.stories.js +5 -0
- package/components/molecules/ProgramName/style.js +0 -32
- package/components/molecules/ProgramName/tests/index.test.js +11 -0
- package/components/molecules/ProgramTitle/stories/ProgramTitle.stories.js +5 -0
- package/components/molecules/ProgramValueSkeleton/stories/ProgramValueSkeleton.stories.js +5 -0
- package/components/molecules/RadioCardWithAction/RadioCardWithAction.js +57 -0
- package/components/molecules/RadioCardWithAction/index.js +1 -0
- package/components/molecules/RadioContentSlidebox/RadioContentSlidebox.js +5 -4
- package/components/molecules/RadioWithInfo/stories/RadioWithInfo.stories.js +15 -0
- package/components/molecules/RadioWithInfo/tests/__snapshots__/RadioWithInfo.test.js.snap +366 -86
- package/components/molecules/RenewalTier/RenewalTier.js +5 -7
- package/components/molecules/RenewalTier/messages.js +20 -0
- package/components/molecules/ReviewTierModal/ReviewTierModal.js +1 -1
- package/components/molecules/ReviewTierModal/messages.js +4 -0
- package/components/molecules/RowHeader/RowHeader.js +5 -20
- package/components/molecules/RowHeader/stories/RowHeader.stories.js +7 -0
- package/components/molecules/RowHeader/tests/RowHeader.test.js +1 -7
- package/components/molecules/RowHeader/tests/__snapshots__/RowHeader.test.js.snap +604 -196
- package/components/molecules/SelectApiWrapper/SelectApiWrapper.js +0 -1
- package/components/molecules/SelectCollection/SelectCollection.js +24 -43
- package/components/molecules/SelectCollection/stories/SelectCollection.stories.js +24 -0
- package/components/molecules/SenderInformation/SenderInformation.js +6 -38
- package/components/molecules/SenderInformation/messages.js +4 -0
- package/components/molecules/SenderSlideBox/SenderSlideBox.js +4 -8
- package/components/molecules/SenderSlideBox/style.js +0 -3
- package/components/molecules/SortHeader/stories/SortHeader.stories.js +5 -0
- package/components/molecules/SuggestionCard/stories/SuggestionCard.stories.js +16 -0
- package/components/molecules/SuggestionCard/style.js +3 -3
- package/components/molecules/SwitchWithDivider/SwitchWithDivider.js +3 -24
- package/components/molecules/SwitchWithDivider/style.js +2 -2
- package/components/molecules/SyncLabel/SyncLabel.js +1 -0
- package/components/molecules/SyncLabel/messages.js +11 -0
- package/components/molecules/SyncLabel/stories/SyncLabel.stories.js +5 -0
- package/components/molecules/SyncLabel/tests/__snapshots__/SyncLabel.test.js.snap +1016 -3612
- package/components/molecules/TableOption/TableOption.js +5 -95
- package/components/molecules/TableOption/stories/TableOption.stories.js +5 -0
- package/components/molecules/TagsTab/stories/TagsTab.stories.js +8 -0
- package/components/molecules/TagsTab/stories/mockData.js +9 -0
- package/components/molecules/TierButtonInput/TierButtonInput.js +2 -2
- package/components/molecules/TierButtonInput/messages.js +16 -0
- package/components/molecules/TierCard/BlockContent.js +11 -30
- package/components/molecules/TierCard/CardBody.js +34 -153
- package/components/molecules/TierCard/CardContent.js +5 -5
- package/components/molecules/TierCard/TierCard.js +1 -1
- package/components/molecules/TierCard/TierWithContent.js +1 -0
- package/components/molecules/TierCard/constants.js +3 -8
- package/components/molecules/TierCard/messages.js +28 -24
- package/components/molecules/TierCard/stories/TierCard.stories.js +7 -0
- package/components/molecules/TierCard/style.js +3 -10
- package/components/molecules/TierRenewalCommunication/TierRenewalCommunication.js +1 -6
- package/components/molecules/TierUpgradeCommunication/TierUpgradeCommunication.js +0 -3
- package/components/molecules/TierUpgradeCommunication/messages.js +40 -0
- package/components/molecules/TitleWithStatus/TitleWithStatus.js +1 -1
- package/components/molecules/TitleWithStatus/stories/TitleWithStatus.stories.js +5 -0
- package/components/molecules/UpgradeTier/UpgradeTier.js +21 -75
- package/components/molecules/UpgradeTier/messages.js +6 -7
- package/components/molecules/UpgradeTrackerTier/messages.js +11 -0
- package/components/organisms/AddEarnCondition/AddEarnCondition.js +77 -202
- package/components/organisms/AddEarnCondition/constants.js +0 -7
- package/components/organisms/AddEarnCondition/messages.js +32 -41
- package/components/organisms/AddEarnCondition/style.js +13 -21
- package/components/organisms/AddPaymentMethod/AddPaymentMethod.js +31 -23
- package/components/organisms/AddPaymentMethod/messages.js +44 -0
- package/components/organisms/AddTier/AddTier.js +67 -306
- package/components/organisms/AddTier/constants.js +0 -5
- package/components/organisms/AddTier/defaultStates.js +2 -19
- package/components/organisms/AddTier/messages.js +4 -60
- package/components/organisms/AddTier/style.js +7 -82
- package/components/organisms/AddTier/utils.js +35 -189
- package/components/organisms/AddTierSetting/AddTierSetting.js +1 -5
- package/components/organisms/AddTierSetting/messages.js +4 -0
- package/components/organisms/AdvancedOption/AdvancedOption.js +61 -313
- package/components/organisms/AdvancedOption/constants.js +0 -226
- package/components/organisms/AdvancedOption/messages.js +21 -33
- package/components/organisms/AdvancedOption/style.js +2 -123
- package/components/organisms/AllocationPointWorkflowAction/AllocationPointWorkflowAction.js +16 -143
- package/components/organisms/AllocationPointWorkflowAction/constants.js +1 -1
- package/components/organisms/AllocationStrategy/AllocationStrategy.js +94 -155
- package/components/organisms/AllocationStrategy/constants.js +0 -4
- package/components/organisms/AllocationStrategy/messages.js +29 -15
- package/components/organisms/AllocationStrategy/tests/AllocationStrategy.test.js +0 -48
- package/components/organisms/AllocationStrategy/tests/mockData.js +0 -161
- package/components/organisms/AwardPointsConfig/AwardPointsConfig.js +108 -981
- package/components/organisms/AwardPointsConfig/constants.js +0 -7
- package/components/organisms/AwardPointsConfig/messages.js +28 -241
- package/components/organisms/AwardPointsConfig/style.js +1 -175
- package/components/organisms/AwardRefereePointsWorkflowAction/AwardRefereePointsWorkflowAction.js +4 -34
- package/components/organisms/AwardReferrerPointsWorkflowAction/AwardReferrerPointsWorkflowAction.js +4 -34
- package/components/organisms/CappingSlidebox/CappingSlidebox.js +200 -473
- package/components/organisms/CappingSlidebox/messages.js +17 -55
- package/components/organisms/CappingSlidebox/style.js +1 -86
- package/components/organisms/Communication/Communication.js +13 -20
- package/components/organisms/Communication/constants.js +0 -2
- package/components/organisms/Communication/index.js +1 -1
- package/components/organisms/Communication/messages.js +24 -0
- package/components/organisms/Communication/tests/index.test.js +4 -47
- package/components/organisms/CommunicationAdvancedOption/CommunicationAdvancedOption.js +10 -6
- package/components/organisms/CommunicationAdvancedOption/messages.js +17 -0
- package/components/organisms/CommunicationStrategies/CommunicationStrategies.js +8 -9
- package/components/organisms/CommunicationStrategies/messages.js +38 -1
- package/components/organisms/CommunicationStrategies/tests/__snapshots__/index.test.js.snap +380 -1746
- package/components/organisms/CommunicationStrategies/utils.js +2 -2
- package/components/organisms/ConfigureKPI/ConfigureKPI.js +4 -17
- package/components/organisms/ConfigureKPI/messages.js +11 -0
- package/components/organisms/ConfigureKPI/tests/ConfigureKPI.test.js +9 -25
- package/components/organisms/ConfigureKPI/tests/__snapshots__/ConfigureKPI.test.js.snap +2 -4
- package/components/organisms/ConfigureProgramSteps/ConfigureProgramSteps.js +36 -191
- package/components/organisms/ConfigureProgramSteps/messages.js +8 -26
- package/components/organisms/ConfigureProgramSteps/style.js +2 -60
- package/components/organisms/ConfigureStrategies/ConfigureStrategies.js +80 -342
- package/components/organisms/ConfigureStrategies/actions.js +0 -4
- package/components/organisms/ConfigureStrategies/constants.js +0 -8
- package/components/organisms/ConfigureStrategies/messages.js +28 -6
- package/components/organisms/ConfigureStrategies/style.js +1 -50
- package/components/organisms/ConfigureTrackers/ConfigureTrackers.js +4 -30
- package/components/organisms/ConfigureTrackers/style.js +1 -5
- package/components/organisms/ConfigureWorkflows/ConfigureWorkflows.js +208 -480
- package/components/organisms/ConfigureWorkflows/ScopingAndCapping.js +53 -112
- package/components/organisms/ConfigureWorkflows/WorkflowActions.js +246 -360
- package/components/organisms/ConfigureWorkflows/WorkflowConfigurationSection.js +556 -1676
- package/components/organisms/ConfigureWorkflows/actions.js +10 -142
- package/components/organisms/ConfigureWorkflows/constants.js +34 -223
- package/components/organisms/ConfigureWorkflows/index.js +1 -1
- package/components/organisms/ConfigureWorkflows/messages.js +26 -121
- package/components/organisms/ConfigureWorkflows/reducer.js +17 -191
- package/components/organisms/ConfigureWorkflows/saga.js +75 -541
- package/components/organisms/ConfigureWorkflows/selectors.js +8 -72
- package/components/organisms/ConfigureWorkflows/style.js +17 -425
- package/components/organisms/ConfigureWorkflows/utils.js +27 -816
- package/components/organisms/CouponSlidebox/CouponSlidebox.js +6 -5
- package/components/organisms/CouponSlidebox/_coupons.scss +0 -6
- package/components/organisms/CouponSlidebox/messages.js +84 -0
- package/components/organisms/CouponSlidebox/saga.js +18 -0
- package/components/organisms/Coupons/Coupons.js +9 -64
- package/components/organisms/Coupons/index.js +1 -1
- package/components/organisms/Coupons/messages.js +103 -2
- package/components/organisms/Coupons/saga.js +11 -1
- package/components/organisms/Coupons/stories/Coupons.stories.js +5 -0
- package/components/organisms/Coupons/style.js +0 -33
- package/components/organisms/Coupons/tests/index.test.js +0 -49
- package/components/organisms/CreateProgram/CreateProgram.js +78 -323
- package/components/organisms/CreateProgram/constants.js +0 -21
- package/components/organisms/CreateProgram/messages.js +0 -52
- package/components/organisms/CreateProgram/saga.js +1 -1
- package/components/organisms/CreateProgram/style.js +1 -191
- package/components/organisms/CreateProgram/tests/CreateProgram.test.js +66 -498
- package/components/organisms/CreateProgram/tests/__snapshots__/reducer.test.js.snap +0 -8
- package/components/organisms/CreateProgram/tests/reducer.test.js +0 -1
- package/components/organisms/CreateProgramIllustration/CreateProgramIllustration.js +3 -13
- package/components/organisms/CreateTender/CreateTender.js +8 -8
- package/components/organisms/CreateTender/messages.js +33 -0
- package/components/organisms/CreateTender/saga.js +1 -4
- package/components/organisms/CreateTender/style.js +0 -1
- package/components/organisms/CreateTier/CreateTier.js +8 -12
- package/components/organisms/CreateTier/utils.js +1 -5
- package/components/organisms/Creatives/Creatives.js +49 -106
- package/components/organisms/Creatives/actions.js +1 -18
- package/components/organisms/Creatives/constants.js +0 -6
- package/components/organisms/Creatives/messages.js +283 -0
- package/components/organisms/Creatives/reducer.js +3 -52
- package/components/organisms/Creatives/saga.js +137 -49
- package/components/organisms/Creatives/tests/index.test.js +3 -89
- package/components/organisms/CustomerActivity/CustomerActivity.js +25 -74
- package/components/organisms/CustomerActivity/messages.js +9 -257
- package/components/organisms/CustomerActivity/style.js +1 -6
- package/components/organisms/EbillWorkflowAction/EbillWorkflowAction.js +15 -43
- package/components/organisms/ExpiryCommunication/ExpiryCommunication.js +4 -15
- package/components/organisms/ExpiryCommunication/messages.js +12 -0
- package/components/organisms/ExpiryCommunication/tests/index.test.js +6 -19
- package/components/organisms/ExpiryConditions/ExpiryConditions.js +87 -546
- package/components/organisms/ExpiryConditions/constants.js +0 -6
- package/components/organisms/ExpiryConditions/messages.js +34 -55
- package/components/organisms/ExpiryConditions/style.js +4 -177
- package/components/organisms/ExpiryStrategy/ExpiryStrategy.js +39 -165
- package/components/organisms/ExpiryStrategy/constants.js +1 -7
- package/components/organisms/ExpiryStrategy/messages.js +3 -15
- package/components/organisms/ExpiryStrategy/tests/ExpiryStrategy.test.js +0 -65
- package/components/organisms/ExpiryStrategy/tests/mockData.js +0 -125
- package/components/organisms/ForwardToSetWorkflowAction/ForwardToSetWorkflowAction.js +24 -128
- package/components/organisms/ForwardToSetWorkflowAction/constants.js +0 -5
- package/components/organisms/ForwardToSetWorkflowAction/messages.js +10 -5
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/InitiateSupplementaryMemberShipWorkflowAction.js +55 -195
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/constants.js +8 -9
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/messages.js +4 -24
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/style.js +3 -18
- package/components/organisms/IssueCouponsWorkflowAction/IssueCouponsWorkflowAction.js +82 -1130
- package/components/organisms/IssueCouponsWorkflowAction/actions.js +1 -2
- package/components/organisms/IssueCouponsWorkflowAction/constants.js +0 -13
- package/components/organisms/IssueCouponsWorkflowAction/messages.js +1 -184
- package/components/organisms/IssueCouponsWorkflowAction/saga.js +1 -2
- package/components/organisms/IssueCouponsWorkflowAction/style.js +4 -338
- package/components/organisms/LoyaltyDetail/LoyaltyDetail.js +9 -34
- package/components/organisms/LoyaltyDetail/messages.js +16 -0
- package/components/organisms/LoyaltyDetail/style.js +0 -6
- package/components/organisms/LoyaltyDetail/tests/LoyaltyDetail.test.js +0 -39
- package/components/organisms/LoyaltyDetail/tests/mockdata.js +3 -3
- package/components/organisms/LoyaltyDetail/utils.js +2 -4
- package/components/organisms/LoyaltyGraph/LoyaltyGraph.js +3 -10
- package/components/organisms/LoyaltyGraph/tests/mockdata.js +0 -15
- package/components/organisms/MandatoryAndPriorityChannel/MandatoryAndPriorityChannel.js +0 -14
- package/components/organisms/NavigationBar/NavigationBar.js +73 -173
- package/components/organisms/NavigationBar/constants.js +1 -10
- package/components/organisms/NavigationBar/messages.js +0 -4
- package/components/organisms/NavigationBar/style.js +3 -109
- package/components/organisms/NavigationBar/tests/NavigationBar.test.js +42 -159
- package/components/organisms/NavigationBar/tests/__snapshots__/NavigationBar.test.js.snap +42 -0
- package/components/organisms/NavigationBar/tests/mockdata.js +0 -128
- package/components/organisms/NoConfigWorkflowAction/NoConfigWorkflowAction.js +0 -3
- package/components/organisms/Nudges/Nudges.js +2 -22
- package/components/organisms/Nudges/style.js +0 -3
- package/components/organisms/OrgChange/OrgChange.js +2 -2
- package/components/organisms/OrgChange/tests/OrgChange.test.js +4 -4
- package/components/organisms/OrgChange/tests/__snapshots__/OrgChange.test.js.snap +1521 -20275
- package/components/organisms/PaymentMethodsAdvanced/PaymentSettingsAdvanced.js +5 -5
- package/components/organisms/PaymentMethodsAdvanced/messages.js +16 -0
- package/components/organisms/PerformanceCard/PerformanceCard.js +9 -60
- package/components/organisms/PerformanceCard/messages.js +0 -29
- package/components/organisms/PerformanceCard/style.js +0 -21
- package/components/organisms/PerformanceCard/tests/PerformanceCard.test.js +0 -30
- package/components/organisms/PerformanceCard/tests/__snapshots__/PerformanceCard.test.js.snap +3739 -5541
- package/components/organisms/PerformanceStats/PerformanceStats.js +69 -85
- package/components/organisms/PerformanceStats/messages.js +1 -1
- package/components/organisms/PerformanceStats/style.js +0 -5
- package/components/organisms/PerformanceStats/tests/PerformanceStats.test.js +2 -5
- package/components/organisms/PerformanceStats/tests/__snapshots__/PerformanceStats.test.js.snap +14902 -17458
- package/components/organisms/PerformanceStats/tests/mockdata.js +2 -1
- package/components/organisms/PointContributionToGroup/PointContributionToGroup.js +2 -11
- package/components/organisms/PointStrategies/PointStrategies.js +23 -21
- package/components/organisms/PointStrategies/messages.js +58 -0
- package/components/organisms/PointsAdvancedOption/PointsAdvancedOption.js +11 -78
- package/components/organisms/PointsAdvancedOption/constants.js +0 -7
- package/components/organisms/PointsAdvancedOption/messages.js +3 -63
- package/components/organisms/PointsAdvancedOption/style.js +1 -21
- package/components/organisms/PointsAdvancedOption/utils.js +0 -56
- package/components/organisms/PointsGroupRedemptionWorkflowAction/PointsGroupRedemptionWorkflowAction.js +0 -3
- package/components/organisms/PointsRedemptionReversalWorkflowAction/PointsRedemptionReversalWorkflowAction.js +4 -12
- package/components/organisms/PointsRedemptionWorkflowAction/PointsRedemptionWorkflowAction.js +0 -3
- package/components/organisms/Preview/Preview.js +2 -3
- package/components/organisms/Preview/messages.js +14 -0
- package/components/organisms/Preview/tests/__snapshots__/index.test.js.snap +6 -11
- package/components/organisms/ProgramPerformance/index.js +1 -1
- package/components/organisms/ProgramSettings/ProgramSettings.js +92 -251
- package/components/organisms/ProgramSettings/actions.js +17 -0
- package/components/organisms/ProgramSettings/constants.js +14 -0
- package/components/organisms/ProgramSettings/reducer.js +46 -0
- package/components/organisms/ProgramSettings/saga.js +59 -0
- package/components/organisms/{AdvancedOption → ProgramSettings}/selectors.js +1 -1
- package/components/organisms/ProgramWorkflows/ProgramWorkflows.js +3 -3
- package/components/organisms/ProgramWorkflows/messages.js +8 -0
- package/components/organisms/ProgramWorkflows/tests/index.test.js +4 -11
- package/components/organisms/PromisedPointToCurrentPointWorkflowAction/PromisedPointToCurrentPointWorkflowAction.js +0 -3
- package/components/organisms/RadioTreeSelect/style.js +1 -1
- package/components/organisms/RedeemConditionFields/RedeemConditionFields.js +1 -25
- package/components/organisms/RedeemConditionFields/messages.js +10 -14
- package/components/organisms/RedeemConditionFields/tests/index.test.js +5 -15
- package/components/organisms/RedeemConditions/RedeemConditions.js +53 -123
- package/components/organisms/RedeemConditions/constants.js +0 -2
- package/components/organisms/RedeemConditions/messages.js +7 -3
- package/components/organisms/RedemptionStrategy/RedemptionStrategy.js +68 -113
- package/components/organisms/RedemptionStrategy/constants.js +0 -4
- package/components/organisms/RedemptionStrategy/messages.js +5 -9
- package/components/organisms/RedemptionStrategy/tests/RedemptionStrategy.test.js +0 -75
- package/components/organisms/RedemptionStrategy/tests/mockData.js +0 -46
- package/components/organisms/RenewTierWorkflowAction/RenewTierWorkflowAction.js +1 -8
- package/components/organisms/RenewalCommunication/RenewalCommunication.js +2 -4
- package/components/organisms/RenewalCommunication/tests/index.test.js +7 -20
- package/components/organisms/ReturnConditions/ReturnConditions.js +5 -15
- package/components/organisms/ReturnConditions/messages.js +11 -7
- package/components/organisms/ReturnConditions/style.js +1 -2
- package/components/organisms/ReturnStrategy/ReturnStrategy.js +12 -39
- package/components/organisms/ReturnStrategy/messages.js +13 -1
- package/components/organisms/ReturnStrategy/tests/ReturnStrategy.test.js +0 -68
- package/components/organisms/ReviewTierUnloadModal/ReviewTierUnloadModal.js +3 -3
- package/components/organisms/ReviewTierUnloadModal/messages.js +10 -0
- package/components/organisms/ScopeSlidebox/ScopeSlidebox.js +270 -1931
- package/components/organisms/ScopeSlidebox/constants.js +2 -115
- package/components/organisms/ScopeSlidebox/messages.js +12 -76
- package/components/organisms/SendEmailWorkflowAction/SendEmailWorkflowAction.js +4 -16
- package/components/organisms/SendMessagesWorkflowAction/SendMessagesWorkflowAction.js +4 -15
- package/components/organisms/SendMessagesWorkflowAction/index.js +1 -1
- package/components/organisms/SendMobilePushWorkflowAction/SendMobilePushWorkflowAction.js +4 -15
- package/components/organisms/SendSmsWorkflowAction/SendSmsWorkflowAction.js +4 -14
- package/components/organisms/SocialConnectWorkflowAction/SocialConnectWorkflowAction.js +4 -14
- package/components/organisms/StrategyDashboard/StrategyDashboard.js +8 -64
- package/components/organisms/StrategyDashboard/index.js +1 -1
- package/components/organisms/StrategyDashboard/style.js +1 -35
- package/components/organisms/TagCustomerAction/TagCustomerAction.js +16 -33
- package/components/organisms/TierUpgradeAndDowngrade/TierUpgradeAndDowngrade.js +60 -566
- package/components/organisms/TierUpgradeAndDowngrade/messages.js +0 -118
- package/components/organisms/TierUpgradeAndDowngrade/style.js +15 -557
- package/components/organisms/TierUpgradeAndDowngrade/utils.js +14 -179
- package/components/organisms/TieradvancedOption/TierAdvancedOption.js +29 -83
- package/components/organisms/TieradvancedOption/messages.js +50 -5
- package/components/organisms/TieradvancedOption/style.js +2 -3
- package/components/organisms/TieradvancedOption/utils.js +3 -12
- package/components/organisms/Tiers/Tiers.js +39 -305
- package/components/organisms/Tiers/actions.js +13 -0
- package/components/organisms/Tiers/constants.js +4 -4
- package/components/organisms/Tiers/index.js +1 -1
- package/components/organisms/Tiers/messages.js +4 -8
- package/components/organisms/Tiers/reducer.js +16 -29
- package/components/organisms/Tiers/saga.js +26 -8
- package/components/organisms/Tiers/selectors.js +13 -11
- package/components/organisms/Tiers/style.js +1 -92
- package/components/organisms/Tiers/tests/actions.test.js +4 -19
- package/components/organisms/Tiers/tests/index.test.js +4 -119
- package/components/organisms/Tiers/tests/reducer.test.js +1 -57
- package/components/organisms/Tiers/tests/selectors.test.js +1 -21
- package/components/organisms/TrackerEvaluationWorkflowAction/TrackerEvaluationWorkflowAction.js +8 -19
- package/components/organisms/Trackers/Trackers.js +31 -122
- package/components/organisms/Trackers/index.js +1 -1
- package/components/organisms/Trackers/messages.js +13 -1
- package/components/organisms/Trackers/style.js +0 -8
- package/components/organisms/Trackers/tests/Trackers.test.js +3 -43
- package/components/organisms/TransactionAllocationPointWorkflowAction/TransactionAllocationPointWorkflowAction.js +15 -117
- package/components/organisms/TransferGroupPoints/TransferGroupPoints.js +23 -118
- package/components/organisms/TransferGroupPoints/messages.js +8 -0
- package/components/organisms/TransferGroupPoints/style.js +1 -4
- package/components/organisms/UpgradeCommunication/UpgradeCommunication.js +5 -12
- package/components/organisms/UpgradeCommunication/messages.js +20 -0
- package/components/organisms/UpgradeCommunication/tests/index.test.js +6 -19
- package/components/organisms/UpgradeCommunication/utils.js +2 -2
- package/components/organisms/UpgradeToTierSettingsWorkflowAction/UpgradeToTierSettingsWorkflowAction.js +3 -12
- package/components/organisms/UpgradeToTierSettingsWorkflowAction/messages.js +17 -0
- package/components/organisms/UpgradeToTierWorkflowAction/UpgradeToTierWorkflowAction.js +6 -18
- package/components/organisms/UpgradeToTierWorkflowAction/index.js +1 -1
- package/components/organisms/UpgradeToTierWorkflowAction/messages.js +32 -0
- package/components/pages/App/constants.js +26 -277
- package/components/pages/App/index.js +1 -2
- package/components/pages/Cap/Cap.js +56 -245
- package/components/pages/Cap/Loadable.js +5 -9
- package/components/pages/Cap/actions.js +1 -129
- package/components/pages/Cap/constants.js +2 -162
- package/components/pages/Cap/messages.js +28 -1338
- package/components/pages/Cap/reducer.js +11 -238
- package/components/pages/Cap/routes.js +6 -38
- package/components/pages/Cap/saga.js +61 -609
- package/components/pages/Cap/selectors.js +1 -130
- package/components/pages/Cap/style.js +0 -8
- package/components/pages/ConfigureProgram/ConfigureProgram.js +6 -30
- package/components/pages/ConfigureProgram/messages.js +33 -0
- package/components/pages/Dashboard/Dashboard.js +8 -18
- package/components/pages/Dashboard/Loadable.js +4 -6
- package/components/pages/Dashboard/index.js +1 -1
- package/components/pages/Dashboard/messages.js +35 -0
- package/components/pages/LanguageProvider/actions.js +27 -0
- package/components/pages/LanguageProvider/constants.js +16 -0
- package/components/pages/LanguageProvider/index.js +115 -16
- package/components/pages/LanguageProvider/reducer.js +39 -0
- package/components/pages/LanguageProvider/saga.js +30 -10
- package/components/pages/LanguageProvider/selectors.js +18 -0
- package/components/pages/LanguageProvider/style.js +0 -3
- package/components/pages/LanguageProvider/tests/actions.test.js +15 -0
- package/components/pages/LanguageProvider/tests/index.test.js +66 -0
- package/components/pages/LanguageProvider/tests/reducer.test.js +30 -0
- package/components/pages/LanguageProvider/tests/saga.test.js +63 -0
- package/components/pages/LanguageProvider/tests/selectors.test.js +12 -0
- package/components/pages/Login/Loadable.js +3 -5
- package/components/pages/Login/Login.js +17 -13
- package/components/pages/LoyaltySetting/LoyaltySetting.js +7 -49
- package/components/pages/LoyaltySetting/style.js +1 -5
- package/components/pages/LoyaltySetting/tests/LoyaltySetting.test.js +3 -12
- package/components/pages/LoyaltySetting/tests/__snapshots__/LoyaltySetting.test.js.snap +9 -0
- package/components/pages/NotFoundPage/Loadable.js +10 -0
- package/components/pages/NotFoundPage/index.js +1 -1
- package/components/pages/ProgramSummary/ProgramSummary.js +238 -654
- package/components/pages/ProgramSummary/actions.js +9 -29
- package/components/pages/ProgramSummary/constants.js +6 -39
- package/components/pages/ProgramSummary/context.js +0 -0
- package/components/pages/ProgramSummary/index.js +0 -0
- package/components/pages/ProgramSummary/messages.js +40 -30
- package/components/pages/ProgramSummary/reducer.js +40 -83
- package/components/pages/ProgramSummary/saga.js +28 -202
- package/components/pages/ProgramSummary/selectors.js +2 -50
- package/components/pages/ProgramSummary/style.js +22 -189
- package/components/pages/ProgramSummary/tests/ProgramSummary.test.js +9 -706
- package/components/pages/ProgramSummary/tests/__snapshots__/ProgramSummary.test.js.snap +63 -0
- package/config/app.js +5 -26
- package/config/constants.js +1 -1
- package/config/urls.js +1 -1
- package/configureStore.js +51 -0
- package/global-styles.js +5 -315
- package/i18n.js +10 -11
- package/index.js +22 -0
- package/initialState.js +2 -58
- package/package.json +8 -13
- package/reducers.js +25 -0
- package/services/api.js +34 -720
- package/services/requestConstructor.js +1 -56
- package/tests/integration/CreateProgram/CreateProgram.integration.test.js +33 -143
- package/tests/integration/CreateProgram/mocks/handler.js +15 -0
- package/tests/integration/{commonMocks → CreateProgram/mocks}/initialState.js +1 -1
- package/tests/{test-utils.js → integration/test-utils.js} +3 -30
- package/tests/store.test.js +3 -6
- package/translations/en.json +380 -1746
- package/translations/zh.json +1150 -0
- package/utils/authWrapper.js +0 -62
- package/utils/clearDataOnUnmount.js +2 -5
- package/utils/commonUtils.js +27 -147
- package/utils/constants.js +4 -0
- package/utils/injectReducer.js +40 -2
- package/utils/injectSaga.js +58 -3
- package/utils/intlWrapper.js +1 -1
- package/utils/reducerInjectors.js +34 -0
- package/utils/sagaInjectors.js +92 -0
- package/utils/tiers.js +21 -147
- package/utils/validationHelper.js +0 -15
- package/utils/workflow.js +12 -203
- package/assets/EmptyStateIllustrationForPromos.png +0 -0
- package/assets/Points.png +0 -0
- package/assets/addCustomer.svg +0 -9
- package/assets/advanced-promotion-not-enabled.png +0 -0
- package/assets/badgeMask.svg +0 -3
- package/assets/bulb.svg +0 -9
- package/assets/bulk-configs-illustration.svg +0 -198
- package/assets/cluster.svg +0 -3
- package/assets/draft-not-exist-Illustration.svg +0 -16
- package/assets/drag.svg +0 -8
- package/assets/dummyIcon.png +0 -0
- package/assets/empty.svg +0 -35
- package/assets/emptyBadge.svg +0 -15
- package/assets/enrolPoints.svg +0 -9
- package/assets/filled-arrow.svg +0 -3
- package/assets/loyalty.svg +0 -9
- package/assets/not-supported-yet.svg +0 -4
- package/assets/pointsConversion.svg +0 -15
- package/assets/promotion.svg +0 -9
- package/assets/reEvaluate.svg +0 -17
- package/assets/receipt.svg +0 -14
- package/assets/rewardCurrencyLimitIcon.svg +0 -11
- package/assets/rewards-empty-placeholder.svg +0 -104
- package/assets/search.svg +0 -9
- package/assets/storeCode.csv +0 -5
- package/assets/survey-response.svg +0 -9
- package/assets/user_personlaisation.svg +0 -13
- package/assets/zones.svg +0 -14
- package/components/atoms/AccessDeniedTooltipMessage/AccessDeniedTooltipMessage.js +0 -29
- package/components/atoms/AccessDeniedTooltipMessage/index.js +0 -1
- package/components/atoms/AccessDeniedTooltipMessage/style.js +0 -24
- package/components/atoms/ActionViewModeHeader/ActionViewModeHeader.js +0 -60
- package/components/atoms/ActionViewModeHeader/index.js +0 -1
- package/components/atoms/ActionViewModeHeader/style.js +0 -7
- package/components/atoms/ButtonDropdown/ButtonDropdown.js +0 -41
- package/components/atoms/ButtonDropdown/index.js +0 -1
- package/components/atoms/ButtonDropdown/tests/ButtonDropdown.test.js +0 -20
- package/components/atoms/CenteredSkeleton/CenteredSkeleton.js +0 -19
- package/components/atoms/CenteredSkeleton/index.js +0 -1
- package/components/atoms/CustomIcons/CustomClose.js +0 -14
- package/components/atoms/CustomIcons/CustomDelete.js +0 -18
- package/components/atoms/CustomIcons/CustomTick.js +0 -14
- package/components/atoms/DateTimePicker/DateTimePicker.js +0 -68
- package/components/atoms/DateTimePicker/index.js +0 -1
- package/components/atoms/DateTimePicker/style.js +0 -31
- package/components/atoms/DisabledMoreIcon/DisabledMoreIcon.js +0 -29
- package/components/atoms/DisabledMoreIcon/index.js +0 -1
- package/components/atoms/DisabledMoreIcon/styles.js +0 -9
- package/components/atoms/HighlightedBackgroundText/HighlightedBackgroundText.js +0 -32
- package/components/atoms/HighlightedBackgroundText/index.js +0 -1
- package/components/atoms/HighlightedBackgroundText/style.js +0 -24
- package/components/atoms/HighlightedBackgroundText/tests/HighlightedBackgroundText.test.js +0 -21
- package/components/atoms/IllustrationWithTitleAndDesc/IllustrationWithTitleAndDesc.js +0 -44
- package/components/atoms/IllustrationWithTitleAndDesc/index.js +0 -1
- package/components/atoms/IllustrationWithTitleAndDesc/tests/IllustrationWithTitleAndDesc.test.js +0 -21
- package/components/atoms/IssuePromotionTooltip/IssuePromotionTooltip.js +0 -66
- package/components/atoms/IssuePromotionTooltip/index.js +0 -1
- package/components/atoms/LabelCustomisation/LabelCustomisation.js +0 -78
- package/components/atoms/LabelCustomisation/index.js +0 -1
- package/components/atoms/LabelCustomisation/style.js +0 -23
- package/components/atoms/LabelCustomisation/tests/LabelCustomisation.test.js +0 -67
- package/components/atoms/OptionWithTooltip/OptionWithTooltip.js +0 -35
- package/components/atoms/OptionWithTooltip/index.js +0 -1
- package/components/atoms/RenewalExpression/RenewalExpression.js +0 -72
- package/components/atoms/RenewalExpression/index.js +0 -1
- package/components/atoms/RenewalExpression/style.js +0 -47
- package/components/atoms/RewardCatalogTooltip/RewardCatalogTooltip.js +0 -106
- package/components/atoms/RewardCatalogTooltip/index.js +0 -1
- package/components/atoms/RoleBasedAuth/RoleBasedAuth.js +0 -28
- package/components/atoms/RoleBasedAuth/index.js +0 -1
- package/components/atoms/RoleBasedAuth/tests/RequireRoleBasedAuth.test.js +0 -55
- package/components/atoms/RoleBasedAuth/tests/mockData.js +0 -303
- package/components/atoms/Toaster/Toaster.js +0 -50
- package/components/atoms/Toaster/index.js +0 -1
- package/components/atoms/Toaster/style.js +0 -14
- package/components/atoms/Toaster/tests/Toastr.test.js +0 -32
- package/components/atoms/Toaster/toastrStyle.js +0 -44
- package/components/atoms/ToastrMessage/ToastrMessage.js +0 -68
- package/components/atoms/ToastrMessage/index.js +0 -1
- package/components/atoms/ToastrMessage/style.js +0 -38
- package/components/atoms/ToastrMessage/tests/ToastrMessageTimer.test.js +0 -60
- package/components/atoms/TrackerExpressionCondition/TrackerExpressionCondition.js +0 -118
- package/components/atoms/TrackerExpressionCondition/index.js +0 -1
- package/components/atoms/TrackerExpressionCondition/style.js +0 -38
- package/components/atoms/TrackerExpressionCondition/tests/TrackerExpressionCondition.test.js +0 -19
- package/components/atoms/VersioningNote/VersioningNote.js +0 -46
- package/components/atoms/VersioningNote/index.js +0 -1
- package/components/atoms/VersioningNote/style.js +0 -31
- package/components/atoms/VersioningNote/tests/VersioningNote.test.js +0 -27
- package/components/molecules/AccessDeniedTooltip/AccessDeniedTooltip.js +0 -34
- package/components/molecules/AccessDeniedTooltip/index.js +0 -1
- package/components/molecules/AccessDeniedTooltip/tests/AccessDeniedTooltip.test.js +0 -35
- package/components/molecules/AddActionConditionWorkflow/tests/AddActionConditionWorkflow.test.js +0 -16
- package/components/molecules/AddActionConditionWorkflow/tests/__snapshots__/AddActionConditionWorkflow.test.js.snap +0 -40
- package/components/molecules/AddMoreCard/tests/AddMoreCard.test.js +0 -23
- package/components/molecules/AddMoreCard/tests/__snapshots__/AddMoreCard.test.js.snap +0 -30
- package/components/molecules/AddPartnerPrograms/AddPartnerPrograms.js +0 -1012
- package/components/molecules/AddPartnerPrograms/constants.js +0 -2
- package/components/molecules/AddPartnerPrograms/index.js +0 -1
- package/components/molecules/AddPartnerPrograms/messages.js +0 -60
- package/components/molecules/AddPartnerPrograms/style.js +0 -53
- package/components/molecules/AddPartnerPrograms/tests/AddExternalPrograms.test.js +0 -493
- package/components/molecules/AddPartnerPrograms/tests/AddSupplementaryPrograms.test.js +0 -489
- package/components/molecules/AddPartnerPrograms/tests/mockData.js +0 -205
- package/components/molecules/AddPartnerPrograms/utils.js +0 -22
- package/components/molecules/AddPartnerProgramsBasicDetails/AddPartnerProgramsBasicDetails.js +0 -156
- package/components/molecules/AddPartnerProgramsBasicDetails/index.js +0 -1
- package/components/molecules/AddPartnerProgramsBasicDetails/messages.js +0 -53
- package/components/molecules/AddPartnerProgramsBasicDetails/style.js +0 -60
- package/components/molecules/AddPartnerProgramsBasicDetails/tests/AddSupplementaryBasicDetails.test.js +0 -77
- package/components/molecules/AddPartnerProgramsBasicDetails/utils.js +0 -116
- package/components/molecules/AddTierBanner/tests/AddTierBanner.test.js +0 -27
- package/components/molecules/AddTierBanner/tests/__snapshots__/AddTierBanner.test.js.snap +0 -25
- package/components/molecules/AddTierPrimaryInfo/tests/AddTierPrimaryInfo.test.js +0 -49
- package/components/molecules/AddTierPrimaryInfo/tests/__snapshots__/AddTierPrimaryInfo.test.js.snap +0 -132
- package/components/molecules/AddTrackersInfo/tests/AddTrackersInfo.test.js +0 -23
- package/components/molecules/AddTrackersInfo/tests/__snapshots__/AddTrackersInfo.test.js.snap +0 -103
- package/components/molecules/AdvanceSettingScrollContainer/tests/AdvanceSettingScrollContainer.test.js +0 -30
- package/components/molecules/AdvanceSettingScrollContainer/tests/__snapshots__/AdvanceSettingScrollContainer.test.js.snap +0 -82
- package/components/molecules/AlternateCurrencyWorkflowHeader/AlternateCurrencyWorkflowHeader.js +0 -114
- package/components/molecules/AlternateCurrencyWorkflowHeader/index.js +0 -1
- package/components/molecules/AlternateCurrencyWorkflowHeader/messages.js +0 -34
- package/components/molecules/AlternateCurrencyWorkflowHeader/style.js +0 -38
- package/components/molecules/AnyOrCustomPathBlock/AnyOrCustomPathBlock.js +0 -149
- package/components/molecules/AnyOrCustomPathBlock/index.js +0 -1
- package/components/molecules/AnyOrCustomPathBlock/style.js +0 -94
- package/components/molecules/BenefitsAndLimitsList/BenefitsAndLimitsList.js +0 -327
- package/components/molecules/BenefitsAndLimitsList/actions.js +0 -13
- package/components/molecules/BenefitsAndLimitsList/constants.js +0 -3
- package/components/molecules/BenefitsAndLimitsList/index.js +0 -1
- package/components/molecules/BenefitsAndLimitsList/messages.js +0 -56
- package/components/molecules/BenefitsAndLimitsList/reducer.js +0 -33
- package/components/molecules/BenefitsAndLimitsList/saga.js +0 -40
- package/components/molecules/BenefitsAndLimitsList/selectors.js +0 -26
- package/components/molecules/BenefitsAndLimitsList/style.js +0 -71
- package/components/molecules/BenefitsAndLimitsList/tests/BenefitsAndLimitsList.test.js +0 -124
- package/components/molecules/BenefitsAndLimitsList/tests/actions.test.js +0 -10
- package/components/molecules/BenefitsAndLimitsList/tests/mockData.js +0 -551
- package/components/molecules/BenefitsAndLimitsList/tests/reducer.test.js +0 -51
- package/components/molecules/BenefitsAndLimitsList/tests/saga.test.js +0 -62
- package/components/molecules/BenefitsAndLimitsList/tests/selectors.test.js +0 -41
- package/components/molecules/BenefitsAndLimitsList/utils.js +0 -51
- package/components/molecules/BenefitsAndLimitsPane/BenefitsAndLimitsPane.js +0 -120
- package/components/molecules/BenefitsAndLimitsPane/index.js +0 -1
- package/components/molecules/BenefitsAndLimitsPane/messages.js +0 -19
- package/components/molecules/BenefitsAndLimitsPane/style.js +0 -56
- package/components/molecules/BenefitsAndLimitsPane/tests/BenefitsAndLimitsPane.test.js +0 -47
- package/components/molecules/BenefitsAndLimitsPane/tests/mockData.js +0 -14
- package/components/molecules/BulkConfigPulishAlert/BulkConfigPulishAlert.js +0 -98
- package/components/molecules/BulkConfigPulishAlert/index.js +0 -1
- package/components/molecules/BulkConfigPulishAlert/messages.js +0 -28
- package/components/molecules/BulkConfigPulishAlert/style.js +0 -48
- package/components/molecules/BulkConfigPulishAlert/tests/BulkConfigPublishAlert.test.js +0 -57
- package/components/molecules/CapReportLink/CapReportLink.js +0 -52
- package/components/molecules/CapReportLink/index.js +0 -1
- package/components/molecules/CapReportLink/style.js +0 -29
- package/components/molecules/CapReportLink/tests/CapReport.test.js +0 -49
- package/components/molecules/CardsCommunication/tests/CardCommunication.test.js +0 -50
- package/components/molecules/CartLevelLimits/CartLevelLimits.js +0 -135
- package/components/molecules/CartLevelLimits/index.js +0 -1
- package/components/molecules/CartLevelLimits/style.js +0 -66
- package/components/molecules/CartLevelLimits/tests/CartLevelLimit.test.js +0 -62
- package/components/molecules/CollapsableHeaderContent/CollapsableHeaderContent.js +0 -69
- package/components/molecules/CollapsableHeaderContent/index.js +0 -1
- package/components/molecules/CollapsableHeaderContent/style.js +0 -51
- package/components/molecules/CollapsableHeaderContent/tests/CollapsableHeaderContent.test.js +0 -33
- package/components/molecules/CollapseWithMultiSelect/style.js +0 -9
- package/components/molecules/CollapseWithStore/messages.js +0 -68
- package/components/molecules/CollapseWithStore/style.js +0 -108
- package/components/molecules/CollapseWithStore/tests/CollapseWithStore.test.js +0 -30
- package/components/molecules/CollapseWithStore/tests/mockData.js +0 -72
- package/components/molecules/ColorPatch/tests/ColorPatch.test.js +0 -21
- package/components/molecules/ColorPatch/tests/__snapshots__/ColorPatch.test.js.snap +0 -5100
- package/components/molecules/ColorSelector/tests/ColorSelector.test.js +0 -62
- package/components/molecules/ConditionExpressionLayout/ConditionExpressionLayout.js +0 -103
- package/components/molecules/ConditionExpressionLayout/index.js +0 -1
- package/components/molecules/CreateActionButton/tests/CreateActionButton.test.js +0 -27
- package/components/molecules/CreateActionButton/tests/__snapshots__/CreateActionButton.test.js.snap +0 -57
- package/components/molecules/CreateCustomFieldPopover/CreateCustomFieldPopover.js +0 -236
- package/components/molecules/CreateCustomFieldPopover/index.js +0 -1
- package/components/molecules/CreateCustomFieldPopover/style.js +0 -55
- package/components/molecules/CreateCustomFieldPopover/tests/CreateCustomFieldPopover.test.js +0 -137
- package/components/molecules/CreateOfferInfo/tests/CreateOfferInfo.test.js +0 -23
- package/components/molecules/CreateOfferInfo/tests/__snapshots__/CreateOfferInfo.test.js.snap +0 -127
- package/components/molecules/CreateTracker/tests/CreateTracker.test.js +0 -426
- package/components/molecules/CreateTracker/tests/__snapshots__/actions.test.js.snap +0 -44
- package/components/molecules/CreateTracker/tests/__snapshots__/reducer.test.js.snap +0 -112
- package/components/molecules/CreateTracker/tests/actions.test.js +0 -19
- package/components/molecules/CreateTracker/tests/mockData.js +0 -876
- package/components/molecules/CreateTracker/tests/reducer.test.js +0 -164
- package/components/molecules/CreateTracker/tests/saga.test.js +0 -178
- package/components/molecules/CreateTracker/tests/selectors.test.js +0 -67
- package/components/molecules/CustomTree/messages.js +0 -20
- package/components/molecules/CustomTree/tests/CustomTree.test.js +0 -87
- package/components/molecules/CustomTree/tests/mocks/data.js +0 -50
- package/components/molecules/CustomTree/utils.js +0 -40
- package/components/molecules/CustomTreeHelper/CustomTreeHelper.js +0 -284
- package/components/molecules/CustomTreeHelper/constants.js +0 -20
- package/components/molecules/CustomTreeHelper/index.js +0 -1
- package/components/molecules/CustomTreeHelper/messages.js +0 -133
- package/components/molecules/CustomTreeHelper/style.js +0 -183
- package/components/molecules/CustomTreeHelper/tests/CustomTreeHelper.test.js +0 -474
- package/components/molecules/CustomTreeHelper/tests/mocks/data.js +0 -152
- package/components/molecules/CustomerLevelLimits/CustomerLevelLimits.js +0 -203
- package/components/molecules/CustomerLevelLimits/index.js +0 -1
- package/components/molecules/CustomerLevelLimits/messages.js +0 -81
- package/components/molecules/CustomerLevelLimits/style.js +0 -72
- package/components/molecules/CustomerLevelLimits/tests/CustomerLevelLimits.test.js +0 -69
- package/components/molecules/CustomerLevelLimits/tests/mockData.js +0 -189
- package/components/molecules/DateTimeMetaDataAttribute/DateTimeMetaDataAttribute.js +0 -143
- package/components/molecules/DateTimeMetaDataAttribute/index.js +0 -1
- package/components/molecules/DateTimeMetaDataAttribute/style.js +0 -17
- package/components/molecules/DelayCreatives/tests/DelayCreatives.test.js +0 -28
- package/components/molecules/DestinationMapper/DestinationMapper.js +0 -225
- package/components/molecules/DestinationMapper/index.js +0 -1
- package/components/molecules/DestinationMapper/messages.js +0 -59
- package/components/molecules/DestinationMapper/style.js +0 -125
- package/components/molecules/DestinationMapper/tests/DestinationMapper.test.js +0 -73
- package/components/molecules/DifferentDestinationPrograms/DifferentDestinationPrograms.js +0 -692
- package/components/molecules/DifferentDestinationPrograms/index.js +0 -1
- package/components/molecules/DifferentDestinationPrograms/messages.js +0 -90
- package/components/molecules/DifferentDestinationPrograms/style.js +0 -242
- package/components/molecules/DifferentDestinationPrograms/tests/DifferentDestinationPrograms.test.js +0 -195
- package/components/molecules/DifferentDestinationPrograms/tests/mockData.js +0 -256
- package/components/molecules/DifferentDestinationPrograms/utils.js +0 -197
- package/components/molecules/DividerWithOverlappedText/DividerWithOverlappedText.js +0 -48
- package/components/molecules/DividerWithOverlappedText/index.js +0 -1
- package/components/molecules/DividerWithOverlappedText/style.js +0 -16
- package/components/molecules/DoubleMetaDataAttribute/DoubleMetaDataAttribute.js +0 -92
- package/components/molecules/DoubleMetaDataAttribute/index.js +0 -1
- package/components/molecules/DoubleMetaDataAttribute/messages.js +0 -10
- package/components/molecules/DoubleMetaDataAttribute/style.js +0 -7
- package/components/molecules/DowngradeTier/style.js +0 -230
- package/components/molecules/DowngradeTier/tests/DowngradeTier.test.js +0 -274
- package/components/molecules/DowngradeTier/utils.js +0 -88
- package/components/molecules/EarnStrategyConditions/EarnStrategyConditions.js +0 -236
- package/components/molecules/EarnStrategyConditions/index.js +0 -1
- package/components/molecules/EarnStrategyConditions/messages.js +0 -42
- package/components/molecules/EarnStrategyConditions/style.js +0 -68
- package/components/molecules/EarnStrategyConditions/tests/EarnStrategyConditions.test.js +0 -64
- package/components/molecules/EarnStrategyConditions/tests/EarnStrategySameConditions.test.js +0 -102
- package/components/molecules/EmptyStateIllustration/tests/EmptyStateIllustration.test.js +0 -35
- package/components/molecules/ExpiryConditionSlideBox/ExpiryConditionSlideBox.js +0 -169
- package/components/molecules/ExpiryConditionSlideBox/constants.js +0 -4
- package/components/molecules/ExpiryConditionSlideBox/index.js +0 -1
- package/components/molecules/ExpiryConditionSlideBox/messages.js +0 -106
- package/components/molecules/ExpiryConditionSlideBox/style.js +0 -36
- package/components/molecules/ExpiryConditionSlideBox/tests/ExpiryConditionSlideBox.test.js +0 -42
- package/components/molecules/ExpiryReminder/ExpiryReminder.js +0 -229
- package/components/molecules/ExpiryReminder/index.js +0 -1
- package/components/molecules/ExpiryReminder/messages.js +0 -23
- package/components/molecules/ExpiryReminder/style.js +0 -61
- package/components/molecules/ExpiryReminder/tests/ExpiryReminder.test.js +0 -204
- package/components/molecules/HeaderWithSwitch/HeaderWithSwitch.js +0 -121
- package/components/molecules/HeaderWithSwitch/index.js +0 -1
- package/components/molecules/ImageUploadMolecule/UploadImageMolecule.js +0 -137
- package/components/molecules/ImageUploadMolecule/index.js +0 -1
- package/components/molecules/ImageUploadMolecule/messages.js +0 -26
- package/components/molecules/ImageUploadMolecule/style.js +0 -69
- package/components/molecules/ImageUploadMolecule/tests/UploadImageMolecule.test.js +0 -139
- package/components/molecules/InputWithPrefixSufixAndCommChannel/InputWithPrefixSufixAndCommChannel.js +0 -135
- package/components/molecules/InputWithPrefixSufixAndCommChannel/index.js +0 -1
- package/components/molecules/InputWithPrefixSufixAndCommChannel/messages.js +0 -11
- package/components/molecules/InputWithPrefixSufixAndCommChannel/style.js +0 -65
- package/components/molecules/InstructionList.js/InstructionList.js +0 -41
- package/components/molecules/InstructionList.js/index.js +0 -1
- package/components/molecules/InstructionList.js/style.js +0 -54
- package/components/molecules/IssueRewardsCustomFields/IssueRewardsCustomFields.js +0 -892
- package/components/molecules/IssueRewardsCustomFields/index.js +0 -1
- package/components/molecules/IssueRewardsCustomFields/messages.js +0 -108
- package/components/molecules/IssueRewardsCustomFields/style.js +0 -159
- package/components/molecules/IssueRewardsCustomFields/tests/IssueRewardsCustomFields.test.js +0 -212
- package/components/molecules/IssueRewardsCustomFields/tests/mockData.js +0 -164
- package/components/molecules/IssueRewardsCustomFields/tests/utils.test.js +0 -38
- package/components/molecules/IssueRewardsCustomFields/utils.js +0 -88
- package/components/molecules/LabelValueWithVerticalDivider/LabelValueWithVerticalDivider.js +0 -82
- package/components/molecules/LabelValueWithVerticalDivider/index.js +0 -1
- package/components/molecules/LabelValueWithVerticalDivider/style.js +0 -28
- package/components/molecules/LabelValueWithVerticalDivider/tests/LabelValueWithVerticalDivider.test.js +0 -46
- package/components/molecules/LabelValueWithVerticalDivider/tests/mockData.js +0 -14
- package/components/molecules/ListDragAndDrop/ListDragAndDrop.js +0 -103
- package/components/molecules/ListDragAndDrop/index.js +0 -1
- package/components/molecules/ListDragAndDrop/tests/ListDragAndDrop.test.js +0 -30
- package/components/molecules/NoTargetView/NoTargetView.js +0 -84
- package/components/molecules/NoTargetView/index.js +0 -1
- package/components/molecules/NoTargetView/style.js +0 -55
- package/components/molecules/NoTargetView/tests/NoTargetView.test.js +0 -53
- package/components/molecules/PageHeaderDescription/messages.js +0 -11
- package/components/molecules/PageHeaderDescription/tests/PageHeaderDescription_jest.test.js +0 -53
- package/components/molecules/PartnerProgramsConfigPane/PartnerProgramsConfigPane.js +0 -263
- package/components/molecules/PartnerProgramsConfigPane/constants.js +0 -2
- package/components/molecules/PartnerProgramsConfigPane/index.js +0 -1
- package/components/molecules/PartnerProgramsConfigPane/messages.js +0 -39
- package/components/molecules/PartnerProgramsConfigPane/style.js +0 -26
- package/components/molecules/PartnerProgramsConfigPane/tests/SupplementaryProgramsConfigPane.test.js +0 -26
- package/components/molecules/PartnerProgramsSettings/PartnerProgramsSettings.js +0 -266
- package/components/molecules/PartnerProgramsSettings/constants.js +0 -5
- package/components/molecules/PartnerProgramsSettings/index.js +0 -1
- package/components/molecules/PartnerProgramsSettings/messages.js +0 -57
- package/components/molecules/PartnerProgramsSettings/style.js +0 -72
- package/components/molecules/PartnerProgramsSettings/tests/SupplementaryProgramsSettings.test.js +0 -116
- package/components/molecules/PartnerProgramsSettings/tests/mockData.js +0 -42
- package/components/molecules/PartnerProgramsSettings/utils.js +0 -32
- package/components/molecules/PointsLimitContent/PointsLimitContent.js +0 -30
- package/components/molecules/PointsLimitContent/index.js +0 -1
- package/components/molecules/PointsTransferCollapseData/PointsTransferCollapseData.js +0 -805
- package/components/molecules/PointsTransferCollapseData/index.js +0 -1
- package/components/molecules/PointsTransferCollapseData/messages.js +0 -92
- package/components/molecules/PointsTransferCollapseData/stories/CollapseData.stories.js +0 -5
- package/components/molecules/PointsTransferCollapseData/style.js +0 -40
- package/components/molecules/PointsTransferCollapseData/tests/index.test.js +0 -680
- package/components/molecules/PointsTransferCollapseData/tests/mockData.js +0 -168
- package/components/molecules/PointsTransferSettings/PointsTransferSettings.js +0 -24
- package/components/molecules/PointsTransferSettings/index.js +0 -1
- package/components/molecules/PointsTransferSettings/messages.js +0 -16
- package/components/molecules/PointsTransferSettings/tests/index.test.js +0 -11
- package/components/molecules/ProgramName/messages.js +0 -20
- package/components/molecules/ProgramName/tests/ProgramName.test.js +0 -60
- package/components/molecules/PromotionCalendarLazyLoad/PromotionCalendarLazyLoad.js +0 -27
- package/components/molecules/PromotionCalendarLazyLoad/index.js +0 -1
- package/components/molecules/PromotionCalendarLazyLoad/style.js +0 -11
- package/components/molecules/PromotionCalendarLazyLoad/tests/PromotionCalendarLazyLoad.test.js +0 -16
- package/components/molecules/PromotionCalendarPopoverContent/PromotionCalendarPopoverContent.js +0 -157
- package/components/molecules/PromotionCalendarPopoverContent/index.js +0 -1
- package/components/molecules/PromotionCalendarPopoverContent/messages.js +0 -23
- package/components/molecules/PromotionCalendarPopoverContent/tests/PromotionCalendarPopoverContent.test.js +0 -52
- package/components/molecules/PromotionCalendarPopoverContent/tests/mockData.js +0 -199
- package/components/molecules/PromotionListLazyLoad/PromotionListLazyLoad.js +0 -24
- package/components/molecules/PromotionListLazyLoad/index.js +0 -1
- package/components/molecules/PromotionListLazyLoad/style.js +0 -13
- package/components/molecules/PromotionSettingsContent/PromotionSettingsContent.js +0 -46
- package/components/molecules/PromotionSettingsContent/index.js +0 -1
- package/components/molecules/PromotionsTableHeader/PromotionsTableHeader.js +0 -303
- package/components/molecules/PromotionsTableHeader/index.js +0 -1
- package/components/molecules/PromotionsTableHeader/style.js +0 -178
- package/components/molecules/PromotionsTableHeader/tests/PromotionsTableHeader.test.js +0 -126
- package/components/molecules/PromotionsTableHeader/tests/mockData.js +0 -81
- package/components/molecules/PublishAndActivateModal/PublishAndActivateModal.js +0 -222
- package/components/molecules/PublishAndActivateModal/index.js +0 -1
- package/components/molecules/PublishAndActivateModal/messages.js +0 -33
- package/components/molecules/PublishAndActivateModal/style.js +0 -53
- package/components/molecules/PublishAndActivateModal/tests/PublishAndActivateModal.test.js +0 -63
- package/components/molecules/RenewalTierV2/RenewalTierV2.js +0 -503
- package/components/molecules/RenewalTierV2/constants.js +0 -9
- package/components/molecules/RenewalTierV2/index.js +0 -1
- package/components/molecules/RenewalTierV2/messages.js +0 -66
- package/components/molecules/RenewalTierV2/tests/RenewalTierV2.test.js +0 -49
- package/components/molecules/RenewalTierV2/utils.js +0 -115
- package/components/molecules/ReplaceExistingDraftNotification/ReplaceExistingDraftNotification.js +0 -161
- package/components/molecules/ReplaceExistingDraftNotification/index.js +0 -1
- package/components/molecules/ReplaceExistingDraftNotification/messages.js +0 -36
- package/components/molecules/ReplaceExistingDraftNotification/style.js +0 -87
- package/components/molecules/ReplaceExistingDraftNotification/tests/ReplaceExistingDraftNotification.test.js +0 -83
- package/components/molecules/ReplaceExistingDraftNotification/tests/mockData.js +0 -73
- package/components/molecules/RestoreModal/RestoreModal.js +0 -159
- package/components/molecules/RestoreModal/index.js +0 -1
- package/components/molecules/RestoreModal/messages.js +0 -39
- package/components/molecules/RestoreModal/style.js +0 -74
- package/components/molecules/RestoreModal/tests/RestoreModal.test.js +0 -57
- package/components/molecules/RewardCatalogViewTitle/RewardCatalogViewTitle.js +0 -66
- package/components/molecules/RewardCatalogViewTitle/index.js +0 -1
- package/components/molecules/RootConfirmModal/RootConfirmModal.js +0 -68
- package/components/molecules/RootConfirmModal/index.js +0 -1
- package/components/molecules/SameDestinationPrograms/SameDestinationPrograms.js +0 -583
- package/components/molecules/SameDestinationPrograms/index.js +0 -1
- package/components/molecules/SameDestinationPrograms/messages.js +0 -67
- package/components/molecules/SameDestinationPrograms/style.js +0 -224
- package/components/molecules/SameDestinationPrograms/tests/SameDestinationPrograms.test.js +0 -197
- package/components/molecules/SenderInformation/tests/SenderInformation.test.js +0 -34
- package/components/molecules/SenderSlideBox/tests/SenderSlideBox.test.js +0 -48
- package/components/molecules/StepFunctionEarnStrategy/StepFunctionEarnStrategy.js +0 -153
- package/components/molecules/StepFunctionEarnStrategy/index.js +0 -1
- package/components/molecules/StepFunctionEarnStrategy/messages.js +0 -33
- package/components/molecules/StepFunctionEarnStrategy/style.js +0 -56
- package/components/molecules/StepFunctionEarnStrategy/tests/StepFunctionEarnStrategy.test.js +0 -113
- package/components/molecules/StepFunctionEarnStrategy/tests/mockData.js +0 -29
- package/components/molecules/StringMetaDataAttribute/StringMetaDataAttribute.js +0 -86
- package/components/molecules/StringMetaDataAttribute/index.js +0 -1
- package/components/molecules/StringMetaDataAttribute/messages.js +0 -10
- package/components/molecules/StringMetaDataAttribute/style.js +0 -3
- package/components/molecules/SupplementaryExpiryReminder/SupplementaryExpiryReminder.js +0 -171
- package/components/molecules/SupplementaryExpiryReminder/index.js +0 -1
- package/components/molecules/SupplementaryExpiryReminder/messages.js +0 -19
- package/components/molecules/SupplementaryExpiryReminder/style.js +0 -16
- package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryExpiryReminder.test.js +0 -77
- package/components/molecules/SupplementaryExpiryReminder/tests/SupplementaryViewExpiryReminder.test.js +0 -58
- package/components/molecules/SupplementaryExpiryReminder/utils.js +0 -7
- package/components/molecules/Switch/Switch.js +0 -113
- package/components/molecules/Switch/index.js +0 -1
- package/components/molecules/Switch/style.js +0 -30
- package/components/molecules/Switch/tests/Switch.test.js +0 -26
- package/components/molecules/Switch/tests/mockData.js +0 -9
- package/components/molecules/SwitchWithDivider/tests/SwitchWithDivider.test.js +0 -26
- package/components/molecules/SwitchWithDivider/tests/mockData.js +0 -9
- package/components/molecules/TableOption/constants.js +0 -1
- package/components/molecules/TableOption/style.js +0 -19
- package/components/molecules/TierCard/tests/BlockContent.test.js +0 -37
- package/components/molecules/TierCard/tests/CardBody.test.js +0 -497
- package/components/molecules/TierCard/tests/CardContent.test.js +0 -36
- package/components/molecules/TierCard/tests/mockData.js +0 -21
- package/components/molecules/UpgradeTier/tests/UpgradeTier.test.js +0 -48
- package/components/molecules/UpgradeTierV2/UpgradeTierV2.js +0 -912
- package/components/molecules/UpgradeTierV2/constants.js +0 -5
- package/components/molecules/UpgradeTierV2/index.js +0 -1
- package/components/molecules/UpgradeTierV2/messages.js +0 -95
- package/components/molecules/UpgradeTierV2/tests/UpgradeTierV2.test.js +0 -350
- package/components/molecules/UpgradeTierV2/tests/mockData.js +0 -840
- package/components/molecules/UpgradeTierV2/tests/utils.test.js +0 -299
- package/components/molecules/UpgradeTierV2/utils.js +0 -323
- package/components/molecules/UpgradeTrackerTierV2/UpgradeTrackerTierV2.js +0 -480
- package/components/molecules/UpgradeTrackerTierV2/index.js +0 -1
- package/components/molecules/UpgradeTrackerTierV2/style.js +0 -53
- package/components/molecules/UpgradeTrackerTierV2/tests/UpgradeTrackerTierV2.test.js +0 -276
- package/components/molecules/UpgradeTrackerTierV2/tests/mockData.js +0 -696
- package/components/molecules/VersioningPublishModal/VersioningPublishModal.js +0 -134
- package/components/molecules/VersioningPublishModal/index.js +0 -1
- package/components/molecules/VersioningPublishModal/messages.js +0 -39
- package/components/molecules/VersioningPublishModal/style.js +0 -41
- package/components/molecules/VersioningPublishModal/tests/VersioningPublishModal.test.js +0 -89
- package/components/organisms/ActionExpression/ActionExpression.js +0 -357
- package/components/organisms/ActionExpression/actions.js +0 -12
- package/components/organisms/ActionExpression/constants.js +0 -25
- package/components/organisms/ActionExpression/index.js +0 -1
- package/components/organisms/ActionExpression/messages.js +0 -17
- package/components/organisms/ActionExpression/reducer.js +0 -112
- package/components/organisms/ActionExpression/saga.js +0 -63
- package/components/organisms/ActionExpression/selectors.js +0 -13
- package/components/organisms/ActionExpression/style.js +0 -126
- package/components/organisms/ActionExpression/tests/ActionExpression1.test.js +0 -262
- package/components/organisms/ActionExpression/tests/__snapshots__/ActionExpression.test.js.snap +0 -170
- package/components/organisms/ActionExpression/tests/actions.test.js +0 -24
- package/components/organisms/ActionExpression/tests/mockData.js +0 -50
- package/components/organisms/ActionExpression/tests/reducer.test.js +0 -124
- package/components/organisms/ActionExpression/tests/saga.test.js +0 -144
- package/components/organisms/ActionExpression/tests/selectors.test.js +0 -18
- package/components/organisms/ActionExpression/tests/utils.test.js +0 -49
- package/components/organisms/ActionExpression/utils.js +0 -50
- package/components/organisms/ActivityRewardCurrencyCard/ActivityRewardCurrencyCard.js +0 -414
- package/components/organisms/ActivityRewardCurrencyCard/actions.js +0 -21
- package/components/organisms/ActivityRewardCurrencyCard/constants.js +0 -7
- package/components/organisms/ActivityRewardCurrencyCard/index.js +0 -1
- package/components/organisms/ActivityRewardCurrencyCard/messages.js +0 -48
- package/components/organisms/ActivityRewardCurrencyCard/reducer.js +0 -48
- package/components/organisms/ActivityRewardCurrencyCard/saga.js +0 -65
- package/components/organisms/ActivityRewardCurrencyCard/selectors.js +0 -12
- package/components/organisms/ActivityRewardCurrencyCard/style.js +0 -85
- package/components/organisms/ActivityRewardCurrencyCard/tests/actions.test.js +0 -18
- package/components/organisms/ActivityRewardCurrencyCard/tests/activityRewardCurrencyLimit.test.js +0 -93
- package/components/organisms/ActivityRewardCurrencyCard/tests/noTargetGroups.test.js +0 -71
- package/components/organisms/ActivityRewardCurrencyCard/tests/reducer.test.js +0 -93
- package/components/organisms/ActivityRewardCurrencyCard/tests/saga.test.js +0 -140
- package/components/organisms/ActivityRewardCurrencyCard/tests/selectors.test.js +0 -21
- package/components/organisms/ActivityRewardSlider/ConfirmEditModal.js +0 -86
- package/components/organisms/ActivityRewardSlider/actions.js +0 -42
- package/components/organisms/ActivityRewardSlider/activityRewardSlider.js +0 -1135
- package/components/organisms/ActivityRewardSlider/constants.js +0 -77
- package/components/organisms/ActivityRewardSlider/context.js +0 -7
- package/components/organisms/ActivityRewardSlider/index.js +0 -1
- package/components/organisms/ActivityRewardSlider/messages.js +0 -203
- package/components/organisms/ActivityRewardSlider/reducer.js +0 -43
- package/components/organisms/ActivityRewardSlider/saga.js +0 -126
- package/components/organisms/ActivityRewardSlider/selectors.js +0 -29
- package/components/organisms/ActivityRewardSlider/style.js +0 -90
- package/components/organisms/ActivityRewardSlider/tests/actions.test.js +0 -20
- package/components/organisms/ActivityRewardSlider/tests/activityRewardSlider.test.js +0 -163
- package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderEmpty.test.js +0 -92
- package/components/organisms/ActivityRewardSlider/tests/activityRewardSliderRevamp.test.js +0 -292
- package/components/organisms/ActivityRewardSlider/tests/cartLevelLimits.test.js +0 -91
- package/components/organisms/ActivityRewardSlider/tests/mockData.js +0 -528
- package/components/organisms/ActivityRewardSlider/tests/noTargetView.test.js +0 -90
- package/components/organisms/ActivityRewardSlider/tests/reducer.test.js +0 -90
- package/components/organisms/ActivityRewardSlider/tests/saga.test.js +0 -363
- package/components/organisms/ActivityRewardSlider/tests/selector.test.js +0 -21
- package/components/organisms/ActivityRewardSlider/tests/utils.test.js +0 -188
- package/components/organisms/ActivityRewardSlider/utils.js +0 -43
- package/components/organisms/ActivityRewardSliderV1/actions.js +0 -14
- package/components/organisms/ActivityRewardSliderV1/activityRewardSliderV1.js +0 -316
- package/components/organisms/ActivityRewardSliderV1/constants.js +0 -27
- package/components/organisms/ActivityRewardSliderV1/context.js +0 -7
- package/components/organisms/ActivityRewardSliderV1/index.js +0 -1
- package/components/organisms/ActivityRewardSliderV1/messages.js +0 -19
- package/components/organisms/ActivityRewardSliderV1/reducer.js +0 -29
- package/components/organisms/ActivityRewardSliderV1/saga.js +0 -43
- package/components/organisms/ActivityRewardSliderV1/selectors.js +0 -12
- package/components/organisms/ActivityRewardSliderV1/style.js +0 -25
- package/components/organisms/ActivityRewardSliderV1/tests/actions.test.js +0 -12
- package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderEmpty.test.js +0 -92
- package/components/organisms/ActivityRewardSliderV1/tests/activityRewardSliderV1.test.js +0 -271
- package/components/organisms/ActivityRewardSliderV1/tests/reducer.test.js +0 -53
- package/components/organisms/ActivityRewardSliderV1/tests/saga.test.js +0 -78
- package/components/organisms/ActivityRewardSliderV1/tests/selector.test.js +0 -21
- package/components/organisms/AddEarnCondition/context.js +0 -7
- package/components/organisms/AddEarnCondition/tests/AddEarnCondition.test.js +0 -482
- package/components/organisms/AddEarnCondition/tests/actions.test.js +0 -23
- package/components/organisms/AddEarnCondition/tests/mockData.js +0 -107
- package/components/organisms/AddEarnCondition/tests/saga.test.js +0 -156
- package/components/organisms/AddPaymentMethod/tests/AddPaymentMethod.test.js +0 -20
- package/components/organisms/AddPointsAllocationLimitDetails/AddPointsAllocationLimitDetails.js +0 -1629
- package/components/organisms/AddPointsAllocationLimitDetails/constants.js +0 -37
- package/components/organisms/AddPointsAllocationLimitDetails/index.js +0 -1
- package/components/organisms/AddPointsAllocationLimitDetails/messages.js +0 -364
- package/components/organisms/AddPointsAllocationLimitDetails/style.js +0 -428
- package/components/organisms/AddPointsAllocationLimitDetails/tests/AddPointsAllocationLimitDetails.test.js +0 -611
- package/components/organisms/AddPointsAllocationLimitDetails/tests/actions.test.js +0 -53
- package/components/organisms/AddPointsAllocationLimitDetails/tests/mockData.js +0 -38
- package/components/organisms/AddPointsAllocationLimitDetails/tests/mocks/data.js +0 -76
- package/components/organisms/AddPointsAllocationLimitDetails/tests/reducer.test.js +0 -223
- package/components/organisms/AddPointsAllocationLimitDetails/tests/saga.test.js +0 -275
- package/components/organisms/AddPointsAllocationLimitDetails/tests/selectors.test.js +0 -60
- package/components/organisms/AddPointsAllocationLimitDetails/utils.js +0 -27
- package/components/organisms/AddPointsAllocationLimitSlider/AddPointsAllocationLimitSlider.js +0 -596
- package/components/organisms/AddPointsAllocationLimitSlider/constants.js +0 -40
- package/components/organisms/AddPointsAllocationLimitSlider/index.js +0 -1
- package/components/organisms/AddPointsAllocationLimitSlider/messages.js +0 -44
- package/components/organisms/AddPointsAllocationLimitSlider/style.js +0 -63
- package/components/organisms/AddPointsAllocationLimitSlider/tests/AddPointsAllocationLimitSlider.test.js +0 -274
- package/components/organisms/AddPointsAllocationLimitSlider/tests/mockData.js +0 -533
- package/components/organisms/AddPointsAllocationLimitSlider/tests/utils.test.js +0 -52
- package/components/organisms/AddPointsAllocationLimitSlider/utils.js +0 -64
- package/components/organisms/AddPointsFilterTransaction/AddPointsFilterTransaction.js +0 -577
- package/components/organisms/AddPointsFilterTransaction/constants.js +0 -15
- package/components/organisms/AddPointsFilterTransaction/index.js +0 -1
- package/components/organisms/AddPointsFilterTransaction/messages.js +0 -45
- package/components/organisms/AddPointsFilterTransaction/style.js +0 -97
- package/components/organisms/AddPointsFilterTransaction/tests/AddPointsFilterTransaction.test.js +0 -429
- package/components/organisms/AddPointsFilterTransaction/tests/mockData.js +0 -148
- package/components/organisms/AddTier/tests/AddTier.test.js +0 -92
- package/components/organisms/AddTier/tests/AddTier1.test.js +0 -268
- package/components/organisms/AddTier/tests/mocks/data.js +0 -454
- package/components/organisms/AddTier/tests/saga.test.js +0 -199
- package/components/organisms/AddTier/tests/utils.test.js +0 -17
- package/components/organisms/AdvancedOption/actions.js +0 -39
- package/components/organisms/AdvancedOption/reducer.js +0 -73
- package/components/organisms/AdvancedOption/saga.js +0 -113
- package/components/organisms/AdvancedOption/tests/AdvancedOption.test.js +0 -128
- package/components/organisms/AdvancedOption/tests/reducer.test.js +0 -191
- package/components/organisms/AdvancedOption/tests/saga.test.js +0 -248
- package/components/organisms/AllocationPointWorkflowAction/tests/AllocationPointWorkflowAction.test.js +0 -343
- package/components/organisms/AlternateCurrencyList/AlternateCurrencyList.js +0 -670
- package/components/organisms/AlternateCurrencyList/constants.js +0 -53
- package/components/organisms/AlternateCurrencyList/index.js +0 -1
- package/components/organisms/AlternateCurrencyList/messages.js +0 -74
- package/components/organisms/AlternateCurrencyList/style.js +0 -292
- package/components/organisms/AlternateCurrencyList/tests/AlternateCurrencyList.test.js +0 -99
- package/components/organisms/AlternateCurrencyList/tests/mockData.js +0 -285
- package/components/organisms/AlternateCurrencyList/utils.js +0 -42
- package/components/organisms/AudienceList/AudienceList.js +0 -621
- package/components/organisms/AudienceList/AudienceListContainer.js +0 -244
- package/components/organisms/AudienceList/actions.js +0 -23
- package/components/organisms/AudienceList/constants.js +0 -42
- package/components/organisms/AudienceList/index.js +0 -1
- package/components/organisms/AudienceList/messages.js +0 -100
- package/components/organisms/AudienceList/reducer.js +0 -69
- package/components/organisms/AudienceList/saga.js +0 -99
- package/components/organisms/AudienceList/selector.js +0 -26
- package/components/organisms/AudienceList/styles.js +0 -366
- package/components/organisms/AudienceList/tests/AudienceList.test.js +0 -202
- package/components/organisms/AudienceList/tests/AudienceListContainer.test.js +0 -159
- package/components/organisms/AudienceList/tests/actions.test.js +0 -51
- package/components/organisms/AudienceList/tests/mockData.js +0 -362
- package/components/organisms/AudienceList/tests/reducer.test.js +0 -172
- package/components/organisms/AudienceList/tests/saga.test.js +0 -240
- package/components/organisms/AudienceList/tests/selector.test.js +0 -35
- package/components/organisms/AwardPointsConfig/tests/AwardPointsConfig.test.js +0 -304
- package/components/organisms/AwardPointsConfig/tests/CapVirtualSelect.test.js +0 -83
- package/components/organisms/AwardPointsConfig/tests/mockData.js +0 -285
- package/components/organisms/AwardRefereePointsWorkflowAction/tests/AwardRefereePointsWorkflowAction.test.js +0 -130
- package/components/organisms/AwardReferrerPointsWorkflowAction/tests/AwardReferrerPointsWorkflowAction.test.js +0 -130
- package/components/organisms/BulkConfigurationsDetail/BulkConfigurationsDetail.js +0 -689
- package/components/organisms/BulkConfigurationsDetail/actions.js +0 -31
- package/components/organisms/BulkConfigurationsDetail/constants.js +0 -34
- package/components/organisms/BulkConfigurationsDetail/index.js +0 -1
- package/components/organisms/BulkConfigurationsDetail/messages.js +0 -68
- package/components/organisms/BulkConfigurationsDetail/mocks/data.js +0 -531
- package/components/organisms/BulkConfigurationsDetail/reducer.js +0 -68
- package/components/organisms/BulkConfigurationsDetail/saga.js +0 -86
- package/components/organisms/BulkConfigurationsDetail/selectors.js +0 -26
- package/components/organisms/BulkConfigurationsDetail/style.js +0 -197
- package/components/organisms/BulkConfigurationsDetail/tests/BulkConfigurationsDetail.test.js +0 -572
- package/components/organisms/BulkConfigurationsDetail/tests/actions.test.js +0 -52
- package/components/organisms/BulkConfigurationsDetail/tests/reducer.test.js +0 -236
- package/components/organisms/BulkConfigurationsDetail/tests/saga.test.js +0 -197
- package/components/organisms/BulkConfigurationsDetail/tests/selectors.test.js +0 -42
- package/components/organisms/BulkConfigurationsDetail/utils.js +0 -540
- package/components/organisms/CappingSlidebox/tests/CappingSlidebox.test.js +0 -659
- package/components/organisms/CappingSlidebox/tests/TrackerCapping.test.js +0 -183
- package/components/organisms/ChangeLog/ChangeLog.js +0 -324
- package/components/organisms/ChangeLog/index.js +0 -1
- package/components/organisms/ChangeLog/messages.js +0 -36
- package/components/organisms/ChangeLog/style.js +0 -24
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/ChangeTierPartnerProgramWorkflowAction.js +0 -330
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/constants.js +0 -17
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/index.js +0 -1
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/messages.js +0 -44
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/style.js +0 -32
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/ChangeTierPartnerProgramWorkflowAction.test.js +0 -148
- package/components/organisms/ChangeTierPartnerProgramWorkflowAction/tests/mockData.js +0 -29
- package/components/organisms/Communication/Loadable.js +0 -7
- package/components/organisms/Communication/tests/mockData.js +0 -146
- package/components/organisms/CommunicationAdvancedOption/tests/mocks/data.js +0 -14
- package/components/organisms/CommunicationAdvancedOption/tests/saga.test.js +0 -87
- package/components/organisms/CommunicationStrategies/tests/mocks/data.js +0 -14
- package/components/organisms/CommunicationStrategies/tests/saga.test.js +0 -157
- package/components/organisms/ConfigureProgramSteps/tests/ConfigureProgramSteps.test.js +0 -109
- package/components/organisms/ConfigureStrategies/tests/ConfigureStrategies.test.js +0 -363
- package/components/organisms/ConfigureStrategies/tests/mocks/data.js +0 -14
- package/components/organisms/ConfigureStrategies/tests/saga.test.js +0 -87
- package/components/organisms/ConfigureTrackers/messages.js +0 -10
- package/components/organisms/ConfigureWorkflows/Loadable.js +0 -7
- package/components/organisms/ConfigureWorkflows/PreviewBulkConfiguration.js +0 -131
- package/components/organisms/ConfigureWorkflows/context.js +0 -7
- package/components/organisms/ConfigureWorkflows/tests/ConfigureWorkflows.test.js +0 -210
- package/components/organisms/ConfigureWorkflows/tests/PreviewBulkConfiguration.test.js +0 -46
- package/components/organisms/ConfigureWorkflows/tests/WorkflowActions.test.js +0 -105
- package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSection.test.js +0 -791
- package/components/organisms/ConfigureWorkflows/tests/WorkflowConfigurationSectionView.test.js +0 -342
- package/components/organisms/ConfigureWorkflows/tests/__snapshots__/actions.test.js.snap +0 -15
- package/components/organisms/ConfigureWorkflows/tests/__snapshots__/reducer.test.js.snap +0 -8993
- package/components/organisms/ConfigureWorkflows/tests/actions.test.js +0 -405
- package/components/organisms/ConfigureWorkflows/tests/mockData.js +0 -7161
- package/components/organisms/ConfigureWorkflows/tests/mocks/data.js +0 -171
- package/components/organisms/ConfigureWorkflows/tests/mocks/rulesetsData.js +0 -637
- package/components/organisms/ConfigureWorkflows/tests/reducer.test.js +0 -1640
- package/components/organisms/ConfigureWorkflows/tests/saga.test.js +0 -2543
- package/components/organisms/ConfigureWorkflows/tests/selectors.test.js +0 -67
- package/components/organisms/ConfigureWorkflows/tests/utils.test.js +0 -442
- package/components/organisms/CouponSlidebox/tests/CouponSlidebox.test.js +0 -20
- package/components/organisms/Coupons/Loadable.js +0 -5
- package/components/organisms/Coupons/tests/mockdata.js +0 -2842
- package/components/organisms/CreateAlternateCurrency/CreateAlternateCurrency.js +0 -821
- package/components/organisms/CreateAlternateCurrency/actions.js +0 -12
- package/components/organisms/CreateAlternateCurrency/constants.js +0 -7
- package/components/organisms/CreateAlternateCurrency/index.js +0 -1
- package/components/organisms/CreateAlternateCurrency/messages.js +0 -177
- package/components/organisms/CreateAlternateCurrency/reducer.js +0 -34
- package/components/organisms/CreateAlternateCurrency/saga.js +0 -41
- package/components/organisms/CreateAlternateCurrency/selectors.js +0 -17
- package/components/organisms/CreateAlternateCurrency/style.js +0 -168
- package/components/organisms/CreateAlternateCurrency/tests/CreateAlternateCurrency.test.js +0 -381
- package/components/organisms/CreateAlternateCurrency/tests/actions.test.js +0 -29
- package/components/organisms/CreateAlternateCurrency/tests/mockData.js +0 -208
- package/components/organisms/CreateAlternateCurrency/tests/reducer.test.js +0 -70
- package/components/organisms/CreateAlternateCurrency/tests/saga.test.js +0 -103
- package/components/organisms/CreateAlternateCurrency/tests/selectors.test.js +0 -32
- package/components/organisms/CreateAlternateCurrency/utils.js +0 -45
- package/components/organisms/CreateBulkConfigForm/CreateBulkConfigForm.js +0 -56
- package/components/organisms/CreateBulkConfigForm/index.js +0 -1
- package/components/organisms/CreateBulkConfigForm/messages.js +0 -18
- package/components/organisms/CreateBulkConfigForm/style.js +0 -35
- package/components/organisms/CreateBulkConfigForm/tests/CreateBulkConfigForm.test.js +0 -35
- package/components/organisms/CreateProgram/tests/mocks/initialState.js +0 -4
- package/components/organisms/CreateProgramIllustration/tests/CreateProgramIllustration.test.js +0 -56
- package/components/organisms/CreatePromotionForm/CreatePromotionForm.js +0 -879
- package/components/organisms/CreatePromotionForm/index.js +0 -1
- package/components/organisms/CreatePromotionForm/messages.js +0 -110
- package/components/organisms/CreatePromotionForm/style.js +0 -253
- package/components/organisms/CreatePromotionForm/tests/CreatePromotionForm.test.js +0 -484
- package/components/organisms/CreatePromotionForm/tests/mockData.js +0 -130
- package/components/organisms/CreatePromotionForm/tests/utils.test.js +0 -38
- package/components/organisms/CreatePromotionForm/utils.js +0 -38
- package/components/organisms/CreateTender/tests/CreateTender.test.js +0 -102
- package/components/organisms/CreateTender/tests/mockData.js +0 -489
- package/components/organisms/CreateTender/tests/mocks/data.js +0 -16
- package/components/organisms/CreateTender/tests/saga.test.js +0 -123
- package/components/organisms/CreateTier/tests/mocks/data.js +0 -15
- package/components/organisms/CreateTier/tests/saga.test.js +0 -136
- package/components/organisms/Creatives/mockdata.js +0 -222
- package/components/organisms/Creatives/tests/Creatives.test.js +0 -128
- package/components/organisms/Creatives/tests/__snapshots__/index.test.js.snap +0 -217
- package/components/organisms/CustomFieldSettings/CustomFieldSettings.js +0 -244
- package/components/organisms/CustomFieldSettings/actions.js +0 -12
- package/components/organisms/CustomFieldSettings/constants.js +0 -12
- package/components/organisms/CustomFieldSettings/index.js +0 -1
- package/components/organisms/CustomFieldSettings/message.js +0 -30
- package/components/organisms/CustomFieldSettings/reducer.js +0 -43
- package/components/organisms/CustomFieldSettings/saga.js +0 -70
- package/components/organisms/CustomFieldSettings/selectors.js +0 -14
- package/components/organisms/CustomFieldSettings/style.js +0 -44
- package/components/organisms/CustomFieldSettings/tests/CustomFieldSettings.test.js +0 -269
- package/components/organisms/CustomFieldSettings/tests/actions.test.js +0 -31
- package/components/organisms/CustomFieldSettings/tests/mockData.js +0 -56
- package/components/organisms/CustomFieldSettings/tests/mocks/data.js +0 -14
- package/components/organisms/CustomFieldSettings/tests/reducer.test.js +0 -102
- package/components/organisms/CustomFieldSettings/tests/saga.test.js +0 -193
- package/components/organisms/CustomFieldSettings/tests/selectors.test.js +0 -35
- package/components/organisms/CustomerActivity/tests/CustomerActivity.test.js +0 -30
- package/components/organisms/CustomerActivity/tests/mockData.js +0 -149
- package/components/organisms/CustomerStatusLabelWorkflowActions/CustomerStatusLabelWorkflowAction.js +0 -250
- package/components/organisms/CustomerStatusLabelWorkflowActions/actions.js +0 -5
- package/components/organisms/CustomerStatusLabelWorkflowActions/constants.js +0 -25
- package/components/organisms/CustomerStatusLabelWorkflowActions/index.js +0 -1
- package/components/organisms/CustomerStatusLabelWorkflowActions/messages.js +0 -50
- package/components/organisms/CustomerStatusLabelWorkflowActions/reducer.js +0 -32
- package/components/organisms/CustomerStatusLabelWorkflowActions/saga.js +0 -29
- package/components/organisms/CustomerStatusLabelWorkflowActions/selectors.js +0 -15
- package/components/organisms/CustomerStatusLabelWorkflowActions/style.js +0 -173
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/CustomerStatusLabelWorkflowAction.test.js +0 -82
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/actions.test.js +0 -11
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/mocks/mockData.js +0 -127
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/reducer.test.js +0 -57
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/saga.test.js +0 -79
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/selectors.test.js +0 -21
- package/components/organisms/CustomerStatusLabelWorkflowActions/tests/utils.test.js +0 -143
- package/components/organisms/CustomerStatusLabelWorkflowActions/utils.js +0 -129
- package/components/organisms/DelayedAccrual/DelayedAccrual.js +0 -309
- package/components/organisms/DelayedAccrual/actions.js +0 -27
- package/components/organisms/DelayedAccrual/constants.js +0 -28
- package/components/organisms/DelayedAccrual/index.js +0 -1
- package/components/organisms/DelayedAccrual/messages.js +0 -40
- package/components/organisms/DelayedAccrual/reducer.js +0 -45
- package/components/organisms/DelayedAccrual/saga.js +0 -91
- package/components/organisms/DelayedAccrual/selectors.js +0 -44
- package/components/organisms/DelayedAccrual/style.js +0 -38
- package/components/organisms/DelayedAccrual/tests/DelayedAccuralAdvancedOption.test.js +0 -131
- package/components/organisms/DelayedAccrual/tests/mockData.js +0 -11
- package/components/organisms/DelayedAccrual/tests/reducer.test.js +0 -92
- package/components/organisms/DelayedAccrual/tests/saga.test.js +0 -214
- package/components/organisms/DelayedAccrual/tests/selectors.test.js +0 -33
- package/components/organisms/DiscardDraft/DiscardDraft.js +0 -190
- package/components/organisms/DiscardDraft/actions.js +0 -12
- package/components/organisms/DiscardDraft/constants.js +0 -5
- package/components/organisms/DiscardDraft/index.js +0 -1
- package/components/organisms/DiscardDraft/messages.js +0 -41
- package/components/organisms/DiscardDraft/mocks/data.js +0 -24
- package/components/organisms/DiscardDraft/reducer.js +0 -29
- package/components/organisms/DiscardDraft/saga.js +0 -32
- package/components/organisms/DiscardDraft/selector.js +0 -17
- package/components/organisms/DiscardDraft/style.js +0 -18
- package/components/organisms/DiscardDraft/tests/DiscardDraft.test.js +0 -101
- package/components/organisms/DiscardDraft/tests/action.test.js +0 -10
- package/components/organisms/DiscardDraft/tests/reducer.test.js +0 -44
- package/components/organisms/DiscardDraft/tests/saga.test.js +0 -85
- package/components/organisms/DiscardDraft/tests/selector.test.js +0 -22
- package/components/organisms/EbillWorkflowAction/tests/EbillWorkflowAction.test.js +0 -56
- package/components/organisms/ExpiryConditions/tests/ExpiryConditions.test.js +0 -400
- package/components/organisms/ExpiryConditions/tests/ExtendedFields.test.js +0 -134
- package/components/organisms/ExpiryConditions/tests/mocks/data.js +0 -30
- package/components/organisms/ExpiryConditions/tests/saga.test.js +0 -87
- package/components/organisms/ExpiryConditions/tests/utils.test.js +0 -47
- package/components/organisms/ExpiryConditions/utils.js +0 -16
- package/components/organisms/ForwardToSetWorkflowAction/tests/ForwardToSetWorkflowAction.test.js +0 -123
- package/components/organisms/ForwardToSetWorkflowAction/tests/mockData.js +0 -10
- package/components/organisms/GroupItemLabel/GroupItemLabel.js +0 -471
- package/components/organisms/GroupItemLabel/constants.js +0 -2
- package/components/organisms/GroupItemLabel/messages.js +0 -33
- package/components/organisms/GroupItemLabel/mocks/data.js +0 -142
- package/components/organisms/GroupItemLabel/style.js +0 -54
- package/components/organisms/GroupItemLabel/tests/GroupItemLabel.test.js +0 -366
- package/components/organisms/GroupItemLabel/tests/__snapshots__/index.test.js.snap +0 -296
- package/components/organisms/GroupItemLabel/tests/index.test.js +0 -67
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/InitiateSupplementaryMemberShipWorkflowAction.test.js +0 -168
- package/components/organisms/InitiateSupplementaryMemberShipWorkflowAction/tests/mockData.js +0 -29
- package/components/organisms/IssueBadgeWorkflowAction/IssueBadgeWorkflowAction.js +0 -577
- package/components/organisms/IssueBadgeWorkflowAction/actions.js +0 -19
- package/components/organisms/IssueBadgeWorkflowAction/constants.js +0 -31
- package/components/organisms/IssueBadgeWorkflowAction/index.js +0 -1
- package/components/organisms/IssueBadgeWorkflowAction/messages.js +0 -134
- package/components/organisms/IssueBadgeWorkflowAction/reducer.js +0 -41
- package/components/organisms/IssueBadgeWorkflowAction/saga.js +0 -58
- package/components/organisms/IssueBadgeWorkflowAction/selectors.js +0 -17
- package/components/organisms/IssueBadgeWorkflowAction/style.js +0 -292
- package/components/organisms/IssueBadgeWorkflowAction/tests/IssueBadgeWorkflowAction.test.js +0 -184
- package/components/organisms/IssueBadgeWorkflowAction/tests/mocks/mockData.js +0 -183
- package/components/organisms/IssueBadgeWorkflowAction/tests/reducer.test.js +0 -101
- package/components/organisms/IssueBadgeWorkflowAction/tests/saga.test.js +0 -136
- package/components/organisms/IssueBadgeWorkflowAction/tests/selectors.test.js +0 -22
- package/components/organisms/IssueBadgeWorkflowAction/tests/utils.test.js +0 -30
- package/components/organisms/IssueBadgeWorkflowAction/utils.js +0 -36
- package/components/organisms/IssueCatalogRewardsAction/IssueCatalogRewardsAction.js +0 -1034
- package/components/organisms/IssueCatalogRewardsAction/actions.js +0 -28
- package/components/organisms/IssueCatalogRewardsAction/constants.js +0 -70
- package/components/organisms/IssueCatalogRewardsAction/index.js +0 -1
- package/components/organisms/IssueCatalogRewardsAction/messages.js +0 -275
- package/components/organisms/IssueCatalogRewardsAction/reducer.js +0 -83
- package/components/organisms/IssueCatalogRewardsAction/saga.js +0 -141
- package/components/organisms/IssueCatalogRewardsAction/selectors.js +0 -31
- package/components/organisms/IssueCatalogRewardsAction/style.js +0 -362
- package/components/organisms/IssueCatalogRewardsAction/tests/IssueCatalogRewardsAction.test.js +0 -788
- package/components/organisms/IssueCatalogRewardsAction/tests/actions.test.js +0 -23
- package/components/organisms/IssueCatalogRewardsAction/tests/mockData.js +0 -534
- package/components/organisms/IssueCatalogRewardsAction/tests/reducer.test.js +0 -184
- package/components/organisms/IssueCatalogRewardsAction/tests/saga.test.js +0 -277
- package/components/organisms/IssueCatalogRewardsAction/tests/selectors.test.js +0 -53
- package/components/organisms/IssueCatalogRewardsAction/tests/utils.test.js +0 -33
- package/components/organisms/IssueCatalogRewardsAction/utils.js +0 -125
- package/components/organisms/IssueCouponsWorkflowAction/tests/IssueCouponWorkflowAction.test.js +0 -551
- package/components/organisms/IssueCouponsWorkflowAction/tests/actions.test.js +0 -18
- package/components/organisms/IssueCouponsWorkflowAction/tests/index.test.js +0 -219
- package/components/organisms/IssueCouponsWorkflowAction/tests/mocks/data.js +0 -244
- package/components/organisms/IssueCouponsWorkflowAction/tests/reducer.test.js +0 -76
- package/components/organisms/IssueCouponsWorkflowAction/tests/saga.test.js +0 -80
- package/components/organisms/IssueCouponsWorkflowAction/tests/selectors.test.js +0 -21
- package/components/organisms/IssueCouponsWorkflowAction/tests/utils.test.js +0 -15
- package/components/organisms/IssueCouponsWorkflowAction/utils.js +0 -13
- package/components/organisms/IssuePromotionWorkflowAction/IssuePromotionWorkflowAction.js +0 -608
- package/components/organisms/IssuePromotionWorkflowAction/actions.js +0 -10
- package/components/organisms/IssuePromotionWorkflowAction/constants.js +0 -14
- package/components/organisms/IssuePromotionWorkflowAction/index.js +0 -1
- package/components/organisms/IssuePromotionWorkflowAction/messages.js +0 -73
- package/components/organisms/IssuePromotionWorkflowAction/reducer.js +0 -32
- package/components/organisms/IssuePromotionWorkflowAction/saga.js +0 -33
- package/components/organisms/IssuePromotionWorkflowAction/selectors.js +0 -18
- package/components/organisms/IssuePromotionWorkflowAction/style.js +0 -317
- package/components/organisms/IssuePromotionWorkflowAction/tests/IssuePromotionWorkflowAction.test.js +0 -211
- package/components/organisms/IssuePromotionWorkflowAction/tests/mocks/mockData.js +0 -126
- package/components/organisms/IssuePromotionWorkflowAction/tests/reducer.test.js +0 -60
- package/components/organisms/IssuePromotionWorkflowAction/tests/saga.test.js +0 -84
- package/components/organisms/IssuePromotionWorkflowAction/tests/selectors.test.js +0 -22
- package/components/organisms/IssuePromotionWorkflowAction/tests/utils.test.js +0 -29
- package/components/organisms/IssuePromotionWorkflowAction/utils.js +0 -38
- package/components/organisms/LiabilitySettings/LiabilitySettings.js +0 -899
- package/components/organisms/LiabilitySettings/actions.js +0 -33
- package/components/organisms/LiabilitySettings/constants.js +0 -38
- package/components/organisms/LiabilitySettings/index.js +0 -1
- package/components/organisms/LiabilitySettings/messages.js +0 -58
- package/components/organisms/LiabilitySettings/mockData.js +0 -30
- package/components/organisms/LiabilitySettings/reducer.js +0 -95
- package/components/organisms/LiabilitySettings/saga.js +0 -151
- package/components/organisms/LiabilitySettings/selectors.js +0 -21
- package/components/organisms/LiabilitySettings/style.js +0 -48
- package/components/organisms/LiabilitySettings/tests/LiabilitySettings.test.js +0 -488
- package/components/organisms/LiabilitySettings/tests/actions.test.js +0 -72
- package/components/organisms/LiabilitySettings/tests/mockData.js +0 -34
- package/components/organisms/LiabilitySettings/tests/reducer.test.js +0 -205
- package/components/organisms/LiabilitySettings/tests/saga.test.js +0 -353
- package/components/organisms/LiabilitySettings/tests/selectors.test.js +0 -32
- package/components/organisms/LoyaltyGraph/tests/saga.test.js +0 -86
- package/components/organisms/LoyaltyPromotions/LoyaltyPromotions.js +0 -626
- package/components/organisms/LoyaltyPromotions/constants.js +0 -15
- package/components/organisms/LoyaltyPromotions/index.js +0 -1
- package/components/organisms/LoyaltyPromotions/messages.js +0 -142
- package/components/organisms/LoyaltyPromotions/style.js +0 -257
- package/components/organisms/LoyaltyPromotions/tests/LoyaltyPromotions.test.js +0 -283
- package/components/organisms/LoyaltyPromotions/tests/utils.test.js +0 -120
- package/components/organisms/LoyaltyPromotions/utils.js +0 -102
- package/components/organisms/NavigationBar/saga.js +0 -11
- package/components/organisms/Nudges/tests/mocks/data.js +0 -12
- package/components/organisms/Nudges/tests/saga.test.js +0 -77
- package/components/organisms/PageHeader/PageHeader.js +0 -328
- package/components/organisms/PageHeader/messages.js +0 -14
- package/components/organisms/PageHeader/tests/PageHeader.test.js +0 -110
- package/components/organisms/PageHeader/tests/__snapshots__/PageHeader.test.js.snap +0 -35058
- package/components/organisms/PageHeaderButton/PageHeaderButton.js +0 -166
- package/components/organisms/PageHeaderButton/index.js +0 -1
- package/components/organisms/PageHeaderButton/messages.js +0 -43
- package/components/organisms/PageHeaderButton/style.js +0 -37
- package/components/organisms/PageHeaderVersioning/PageHeaderVersioning.js +0 -237
- package/components/organisms/PageHeaderVersioning/index.js +0 -1
- package/components/organisms/PageHeaderVersioning/messages.js +0 -29
- package/components/organisms/PageHeaderVersioning/style.js +0 -100
- package/components/organisms/PartnerProgramAdvancedOption/PartnerProgramAdvancedOption.js +0 -169
- package/components/organisms/PartnerProgramAdvancedOption/constants.js +0 -8
- package/components/organisms/PartnerProgramAdvancedOption/index.js +0 -1
- package/components/organisms/PartnerProgramAdvancedOption/messages.js +0 -26
- package/components/organisms/PartnerProgramAdvancedOption/style.js +0 -15
- package/components/organisms/PartnerProgramAdvancedOption/tests/PartnerProgramAdvancedOption.test.js +0 -249
- package/components/organisms/PartnerProgramDashboard/Loadable.js +0 -7
- package/components/organisms/PartnerProgramDashboard/PartnerProgramDashboard.js +0 -416
- package/components/organisms/PartnerProgramDashboard/actions.js +0 -38
- package/components/organisms/PartnerProgramDashboard/constants.js +0 -34
- package/components/organisms/PartnerProgramDashboard/context.js +0 -7
- package/components/organisms/PartnerProgramDashboard/index.js +0 -1
- package/components/organisms/PartnerProgramDashboard/messages.js +0 -62
- package/components/organisms/PartnerProgramDashboard/reducer.js +0 -82
- package/components/organisms/PartnerProgramDashboard/saga.js +0 -128
- package/components/organisms/PartnerProgramDashboard/selectors.js +0 -66
- package/components/organisms/PartnerProgramDashboard/style.js +0 -32
- package/components/organisms/PartnerProgramDashboard/test/PartnerProgramDashboard.test.js +0 -151
- package/components/organisms/PartnerProgramDashboard/test/actions.test.js +0 -12
- package/components/organisms/PartnerProgramDashboard/test/mocks/data.js +0 -321
- package/components/organisms/PartnerProgramDashboard/test/reducer.test.js +0 -322
- package/components/organisms/PartnerProgramDashboard/test/saga.test.js +0 -308
- package/components/organisms/PartnerProgramDashboard/test/selectors.test.js +0 -58
- package/components/organisms/PartnerProgramDashboard/test/utils.test.js +0 -14
- package/components/organisms/PartnerProgramDashboard/utils.js +0 -32
- package/components/organisms/PartnerProgramTierSettings/PartnerProgramTierSettings.js +0 -409
- package/components/organisms/PartnerProgramTierSettings/index.js +0 -1
- package/components/organisms/PartnerProgramTierSettings/messages.js +0 -46
- package/components/organisms/PartnerProgramTierSettings/style.js +0 -88
- package/components/organisms/PartnerProgramTierSettings/tests/PartnerProgramTierSettings.test.js +0 -297
- package/components/organisms/PartnerProgramTierSettings/tests/mocks/data.js +0 -67
- package/components/organisms/PaymentMethodsAdvanced/tests/PaymentSettingsAdvanced.test.js +0 -18
- package/components/organisms/PaymentMethodsAdvanced/tests/mocks/data.js +0 -17
- package/components/organisms/PaymentMethodsAdvanced/tests/saga.test.js +0 -284
- package/components/organisms/PointContributionToGroup/tests/PointContribution.test.js +0 -20
- package/components/organisms/PointStrategies/tests/PointStrategies.test.js +0 -51
- package/components/organisms/PointStrategies/tests/utils.test.js +0 -66
- package/components/organisms/PointStrategies/utils.js +0 -60
- package/components/organisms/PointsAdvancedOption/tests/PointsAdvancedoption.test.js +0 -99
- package/components/organisms/PointsAdvancedOption/tests/mocks/data.js +0 -89
- package/components/organisms/PointsAdvancedOption/tests/saga.test.js +0 -87
- package/components/organisms/PointsAllocationAccordion/PointsAllocationAccordion.js +0 -135
- package/components/organisms/PointsAllocationAccordion/index.js +0 -1
- package/components/organisms/PointsAllocationAccordion/style.js +0 -70
- package/components/organisms/PointsAllocationLimit/PointsAllocationLimit.js +0 -107
- package/components/organisms/PointsAllocationLimit/actions.js +0 -21
- package/components/organisms/PointsAllocationLimit/constants.js +0 -20
- package/components/organisms/PointsAllocationLimit/index.js +0 -1
- package/components/organisms/PointsAllocationLimit/messages.js +0 -122
- package/components/organisms/PointsAllocationLimit/reducer.js +0 -48
- package/components/organisms/PointsAllocationLimit/saga.js +0 -99
- package/components/organisms/PointsAllocationLimit/selectors.js +0 -12
- package/components/organisms/PointsAllocationLimit/style.js +0 -0
- package/components/organisms/PointsAllocationLimit/tests/PointsAllocationLimit.test.js +0 -34
- package/components/organisms/PointsAllocationLimit/tests/reducers.test.js +0 -93
- package/components/organisms/PointsAllocationLimit/tests/saga.test.js +0 -189
- package/components/organisms/PointsAllocationLimit/tests/selectors.test.js +0 -43
- package/components/organisms/PointsBudgetList/PointsBudgetList.js +0 -1220
- package/components/organisms/PointsBudgetList/constants.js +0 -201
- package/components/organisms/PointsBudgetList/index.js +0 -1
- package/components/organisms/PointsBudgetList/messages.js +0 -329
- package/components/organisms/PointsBudgetList/style.js +0 -265
- package/components/organisms/PointsBudgetList/tests/PointsBudgetList.test.js +0 -271
- package/components/organisms/PointsBudgetList/tests/mockData.js +0 -788
- package/components/organisms/PointsBudgetList/tests/utils.test.js +0 -16
- package/components/organisms/PointsBudgetList/utils.js +0 -24
- package/components/organisms/PointsRedemptionReversalWorkflowAction/tests/PointsRedemptionReversalWorkflowAction.test.js +0 -42
- package/components/organisms/PointsRollingExpiry/PointsRollingExpiry.js +0 -637
- package/components/organisms/PointsRollingExpiry/actions.js +0 -10
- package/components/organisms/PointsRollingExpiry/constants.js +0 -48
- package/components/organisms/PointsRollingExpiry/index.js +0 -1
- package/components/organisms/PointsRollingExpiry/messages.js +0 -210
- package/components/organisms/PointsRollingExpiry/reducer.js +0 -51
- package/components/organisms/PointsRollingExpiry/saga.js +0 -72
- package/components/organisms/PointsRollingExpiry/selectors.js +0 -48
- package/components/organisms/PointsRollingExpiry/style.js +0 -190
- package/components/organisms/PointsRollingExpiry/tests/PointsRollingExpiry.test.js +0 -279
- package/components/organisms/PointsRollingExpiry/tests/mocks/mockData.js +0 -62
- package/components/organisms/PointsRollingExpiry/tests/reducer.test.js +0 -81
- package/components/organisms/PointsRollingExpiry/tests/saga.test.js +0 -166
- package/components/organisms/PointsRollingExpiry/tests/selectors.test.js +0 -35
- package/components/organisms/PointsRollingExpiry/tests/utils.test.js +0 -54
- package/components/organisms/PointsRollingExpiry/utils.js +0 -257
- package/components/organisms/PointsTransferOrgSettings/ProgramTransferOrgSettings.js +0 -246
- package/components/organisms/PointsTransferOrgSettings/actions.js +0 -11
- package/components/organisms/PointsTransferOrgSettings/constants.js +0 -47
- package/components/organisms/PointsTransferOrgSettings/index.js +0 -1
- package/components/organisms/PointsTransferOrgSettings/messages.js +0 -57
- package/components/organisms/PointsTransferOrgSettings/reducer.js +0 -36
- package/components/organisms/PointsTransferOrgSettings/saga.js +0 -68
- package/components/organisms/PointsTransferOrgSettings/selectors.js +0 -30
- package/components/organisms/PointsTransferOrgSettings/style.js +0 -19
- package/components/organisms/PointsTransferOrgSettings/tests/PointsTransferOrgSettings.test.js +0 -176
- package/components/organisms/PointsTransferOrgSettings/tests/actions.test.js +0 -19
- package/components/organisms/PointsTransferOrgSettings/tests/mocks/data.js +0 -15
- package/components/organisms/PointsTransferOrgSettings/tests/reducer.test.js +0 -142
- package/components/organisms/PointsTransferOrgSettings/tests/saga.test.js +0 -138
- package/components/organisms/PointsTransferOrgSettings/tests/selectors.test.js +0 -21
- package/components/organisms/PointsTransferSettings/PointsTransferSettings.js +0 -334
- package/components/organisms/PointsTransferSettings/constants.js +0 -60
- package/components/organisms/PointsTransferSettings/index.js +0 -1
- package/components/organisms/PointsTransferSettings/messages.js +0 -43
- package/components/organisms/PointsTransferSettings/style.js +0 -50
- package/components/organisms/PointsTransferSettings/tests/index.test.js +0 -56
- package/components/organisms/ProgramDestinationMapper/ProgramDestinationMapper.js +0 -195
- package/components/organisms/ProgramDestinationMapper/actions.js +0 -9
- package/components/organisms/ProgramDestinationMapper/constants.js +0 -4
- package/components/organisms/ProgramDestinationMapper/index.js +0 -1
- package/components/organisms/ProgramDestinationMapper/messages.js +0 -10
- package/components/organisms/ProgramDestinationMapper/mocks/data.js +0 -22
- package/components/organisms/ProgramDestinationMapper/reducer.js +0 -38
- package/components/organisms/ProgramDestinationMapper/saga.js +0 -33
- package/components/organisms/ProgramDestinationMapper/selectors.js +0 -21
- package/components/organisms/ProgramDestinationMapper/style.js +0 -21
- package/components/organisms/ProgramDestinationMapper/tests/ProgramDestinationMapper.test.js +0 -91
- package/components/organisms/ProgramDestinationMapper/tests/saga.test.js +0 -80
- package/components/organisms/ProgramPerformance/Loadable.js +0 -7
- package/components/organisms/ProgramSettings/tests/ProgramSettings.test.js +0 -176
- package/components/organisms/ProgramSettings/tests/mocks/data.js +0 -22
- package/components/organisms/ProgramSettings/utils.js +0 -17
- package/components/organisms/PromotionAdvancedSettings/PromotionAdvancedSettings.js +0 -1580
- package/components/organisms/PromotionAdvancedSettings/actions.js +0 -14
- package/components/organisms/PromotionAdvancedSettings/constants.js +0 -18
- package/components/organisms/PromotionAdvancedSettings/index.js +0 -1
- package/components/organisms/PromotionAdvancedSettings/messages.js +0 -259
- package/components/organisms/PromotionAdvancedSettings/reducer.js +0 -30
- package/components/organisms/PromotionAdvancedSettings/saga.js +0 -33
- package/components/organisms/PromotionAdvancedSettings/selectors.js +0 -25
- package/components/organisms/PromotionAdvancedSettings/style.js +0 -251
- package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettings.test.js +0 -642
- package/components/organisms/PromotionAdvancedSettings/tests/PromotionAdvancedSettingsRevamp.test.js +0 -146
- package/components/organisms/PromotionAdvancedSettings/tests/mockData.js +0 -197
- package/components/organisms/PromotionAdvancedSettings/tests/utils.test.js +0 -48
- package/components/organisms/PromotionAdvancedSettings/utils.js +0 -44
- package/components/organisms/PromotionSettings/PromotionSettings.js +0 -469
- package/components/organisms/PromotionSettings/constants.js +0 -9
- package/components/organisms/PromotionSettings/index.js +0 -1
- package/components/organisms/PromotionSettings/messages.js +0 -93
- package/components/organisms/PromotionSettings/style.js +0 -137
- package/components/organisms/PromotionsDetail/Loadable.js +0 -7
- package/components/organisms/PromotionsDetail/PromotionsDetail.js +0 -1411
- package/components/organisms/PromotionsDetail/actions.js +0 -36
- package/components/organisms/PromotionsDetail/constants.js +0 -124
- package/components/organisms/PromotionsDetail/index.js +0 -1
- package/components/organisms/PromotionsDetail/messages.js +0 -249
- package/components/organisms/PromotionsDetail/reducer.js +0 -183
- package/components/organisms/PromotionsDetail/saga.js +0 -261
- package/components/organisms/PromotionsDetail/selectors.js +0 -56
- package/components/organisms/PromotionsDetail/style.js +0 -317
- package/components/organisms/PromotionsDetail/tests/PromotionsDetail.test.js +0 -511
- package/components/organisms/PromotionsDetail/tests/mockData.js +0 -306
- package/components/organisms/PromotionsDetail/tests/utils.test.js +0 -112
- package/components/organisms/PromotionsDetail/utils.js +0 -618
- package/components/organisms/ReconfigurePromotions/ReconfigurePromotions.js +0 -128
- package/components/organisms/ReconfigurePromotions/index.js +0 -1
- package/components/organisms/ReconfigurePromotions/messages.js +0 -43
- package/components/organisms/ReconfigurePromotions/style.js +0 -66
- package/components/organisms/ReconfigurePromotions/tests/ReconfigurePromotions.test.js +0 -60
- package/components/organisms/RedeemConditions/tests/RedeemConditions.test.js +0 -216
- package/components/organisms/RedeemConditions/tests/mocks/data.js +0 -131
- package/components/organisms/RedeemConditions/tests/saga.test.js +0 -83
- package/components/organisms/ReturnConditions/tests/ReturnConditions.test.js +0 -59
- package/components/organisms/ReturnConditions/tests/mocks/data.js +0 -14
- package/components/organisms/ReturnConditions/tests/mocks/mockData.js +0 -148
- package/components/organisms/ReturnConditions/tests/saga.test.js +0 -87
- package/components/organisms/ReviewPromotionSlider/ReviewPromotionSlider.js +0 -76
- package/components/organisms/ReviewPromotionSlider/index.js +0 -1
- package/components/organisms/ReviewPromotionSlider/style.js +0 -59
- package/components/organisms/ReviewPromotionSlider/tests/ReviewPromotionSlider.test.js +0 -58
- package/components/organisms/ReviewPromotionSlider/tests/mockData.js +0 -535
- package/components/organisms/ReviewPromotionSlider/tests/utils.test.js +0 -11
- package/components/organisms/ReviewPromotionSlider/utils.js +0 -176
- package/components/organisms/ScopeSlidebox/ScopeContentDescription.js +0 -67
- package/components/organisms/ScopeSlidebox/ScopeContentHeader.js +0 -25
- package/components/organisms/ScopeSlidebox/style.js +0 -109
- package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/ScopeSlideBoxWithoutFeature.test.js +0 -1342
- package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/mockData.js +0 -3226
- package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/processedRulesetsData.js +0 -374
- package/components/organisms/ScopeSlidebox/tests/featureControlDisabled/rulesetsData.js +0 -462
- package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/ScopeSlidebox.test.js +0 -1907
- package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/mockData.js +0 -3661
- package/components/organisms/ScopeSlidebox/tests/featureControlEnabled/processedRulesetsData.js +0 -242
- package/components/organisms/ScopeSlidebox/tests/mockData.js +0 -50
- package/components/organisms/ScopeSlidebox/tests/scope-utils.test.js +0 -39
- package/components/organisms/ScopeSlidebox/utils.js +0 -88
- package/components/organisms/SelectTargetSlider/SelectTargetSlider.js +0 -406
- package/components/organisms/SelectTargetSlider/index.js +0 -1
- package/components/organisms/SelectTargetSlider/messages.js +0 -126
- package/components/organisms/SelectTargetSlider/mockData.js +0 -704
- package/components/organisms/SelectTargetSlider/style.js +0 -97
- package/components/organisms/SelectTargetSlider/tests/NoTargetView.test.js +0 -74
- package/components/organisms/SelectTargetSlider/tests/SelectTargetSlider.test.js +0 -209
- package/components/organisms/SelectTargetSlider/utils.js +0 -186
- package/components/organisms/SendEmailWorkflowAction/tests/SendEmailWorkflowAction.test.js +0 -23
- package/components/organisms/SendMessagesWorkflowAction/tests/SendMessagesWorflowAction.test.js +0 -23
- package/components/organisms/SendMobilePushWorkflowAction/tests/SendMobilePushWorkflowAction.test.js +0 -23
- package/components/organisms/SocialConnectWorkflowAction/tests/SocialConnectWorkflowAction.test.js +0 -23
- package/components/organisms/StrategyDashboard/Loadable.js +0 -5
- package/components/organisms/StrategyDashboard/messages.js +0 -21
- package/components/organisms/StrategyDashboard/tests/StrategyDashboard.test.js +0 -80
- package/components/organisms/StrategyDashboard/tests/mocks/data.js +0 -110
- package/components/organisms/StrategyDashboard/tests/saga.test.js +0 -80
- package/components/organisms/TagCustomerAction/tests/TagCustomerAction.test.js +0 -29
- package/components/organisms/TargetPointAllocationWorkflowAction/TargetPointAllocationWorkflowAction.js +0 -623
- package/components/organisms/TargetPointAllocationWorkflowAction/actions.js +0 -32
- package/components/organisms/TargetPointAllocationWorkflowAction/constants.js +0 -37
- package/components/organisms/TargetPointAllocationWorkflowAction/index.js +0 -1
- package/components/organisms/TargetPointAllocationWorkflowAction/reducer.js +0 -88
- package/components/organisms/TargetPointAllocationWorkflowAction/saga.js +0 -128
- package/components/organisms/TargetPointAllocationWorkflowAction/selectors.js +0 -22
- package/components/organisms/TargetPointAllocationWorkflowAction/style.js +0 -17
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/TargetPointAllocationWorkFlowAction.test.js +0 -577
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/action.test.js.snap +0 -16
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/__snapshots__/reducer.test.js.snap +0 -166
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/action.test.js +0 -31
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/mockData.js +0 -243
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/reducer.test.js +0 -172
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/saga.test.js +0 -290
- package/components/organisms/TargetPointAllocationWorkflowAction/tests/selectors.test.js +0 -16
- package/components/organisms/TierUpgradeAndDowngrade/tests/TierUpgradeAndDowngrade.test.js +0 -326
- package/components/organisms/TierUpgradeAndDowngrade/tests/TiersTooltips.test.js +0 -75
- package/components/organisms/TierUpgradeAndDowngrade/tests/ValidityModal.test.js +0 -82
- package/components/organisms/TierUpgradeAndDowngrade/tests/mocks/data.js +0 -230
- package/components/organisms/TierUpgradeAndDowngrade/tests/utils.test.js +0 -196
- package/components/organisms/TieradvancedOption/tests/TierAdvancedOption.test.js +0 -108
- package/components/organisms/TieradvancedOption/tests/mocks/data.js +0 -14
- package/components/organisms/TieradvancedOption/tests/saga.test.js +0 -83
- package/components/organisms/Tiers/Loadable.js +0 -5
- package/components/organisms/Tiers/tests/mock.js +0 -403
- package/components/organisms/Tiers/tests/saga.test.js +0 -94
- package/components/organisms/Tiers/tests/utils.test.js +0 -15
- package/components/organisms/Tiers/utils.js +0 -10
- package/components/organisms/TrackerEvaluationWorkflowAction/tests/TrackerEvaluationWorkflowAction.test.js +0 -100
- package/components/organisms/Trackers/Loadable.js +0 -5
- package/components/organisms/Trackers/tests/mockData.js +0 -342
- package/components/organisms/TransactionAllocationPointWorkflowAction/tests/TransactionAllocationPointWorkflowAction.test.js +0 -134
- package/components/organisms/TransactionAllocationPointWorkflowAction/tests/mockData.js +0 -349
- package/components/organisms/TransferGroupPoints/tests/TransferGroupPoints.test.js +0 -143
- package/components/organisms/TransferGroupPoints/tests/mockData.js +0 -236
- package/components/organisms/UpgradeToTierWorkflowAction/tests/UpgradeToTierWorkflowAction.test.js +0 -45
- package/components/organisms/VersioningDropdown/VersioningDropdown.js +0 -271
- package/components/organisms/VersioningDropdown/index.js +0 -1
- package/components/organisms/VersioningDropdown/messages.js +0 -18
- package/components/organisms/VersioningDropdown/mocks/data.js +0 -75
- package/components/organisms/VersioningDropdown/style.js +0 -18
- package/components/organisms/VersioningDropdown/tests/VersioningDropdown.test.js +0 -37
- package/components/organisms/VersioningDropdown/utils.js +0 -16
- package/components/pages/BulkConfiguration/BulkConfigurations.js +0 -877
- package/components/pages/BulkConfiguration/actions.js +0 -30
- package/components/pages/BulkConfiguration/constants.js +0 -31
- package/components/pages/BulkConfiguration/index.js +0 -1
- package/components/pages/BulkConfiguration/messages.js +0 -144
- package/components/pages/BulkConfiguration/reducer.js +0 -74
- package/components/pages/BulkConfiguration/saga.js +0 -119
- package/components/pages/BulkConfiguration/selector.js +0 -33
- package/components/pages/BulkConfiguration/style.js +0 -222
- package/components/pages/BulkConfiguration/tests/BulkConfigurations.test.js +0 -595
- package/components/pages/BulkConfiguration/tests/BulkConfigurations1.test.js +0 -114
- package/components/pages/BulkConfiguration/tests/BulkConfigurationsEdit.test.js +0 -128
- package/components/pages/BulkConfiguration/tests/actions.test.js +0 -53
- package/components/pages/BulkConfiguration/tests/mockData.js +0 -163
- package/components/pages/BulkConfiguration/tests/reducer.test.js +0 -318
- package/components/pages/BulkConfiguration/tests/saga.test.js +0 -363
- package/components/pages/BulkConfiguration/tests/selectors.test.js +0 -61
- package/components/pages/Cap/context.js +0 -7
- package/components/pages/Cap/mocks/data.js +0 -623
- package/components/pages/Cap/tests/Cap.test.js +0 -217
- package/components/pages/Cap/tests/__snapshots__/reducer.test.js.snap +0 -111
- package/components/pages/Cap/tests/actions.test.js +0 -76
- package/components/pages/Cap/tests/reducer.test.js +0 -424
- package/components/pages/Cap/tests/saga.test.js +0 -2661
- package/components/pages/Cap/tests/selectors.test.js +0 -118
- package/components/pages/Cap/tests/utils.test.js +0 -37
- package/components/pages/Cap/utils.js +0 -20
- package/components/pages/ConfigureProgram/tests/ConfigureProgram.test.js +0 -45
- package/components/pages/Dashboard/tests/Dashboard.test.js +0 -44
- package/components/pages/PermissionDeniedPage/Loadable.js +0 -11
- package/components/pages/PermissionDeniedPage/PermissionDeniedPage.js +0 -28
- package/components/pages/PermissionDeniedPage/index.js +0 -1
- package/components/pages/PermissionDeniedPage/messages.js +0 -14
- package/components/pages/PermissionDeniedPage/style.js +0 -13
- package/components/pages/PermissionDeniedPage/tests/index.test.js +0 -26
- package/components/pages/ProgramSummary/tests/actions.test.js +0 -118
- package/components/pages/ProgramSummary/tests/mockData.js +0 -801
- package/components/pages/ProgramSummary/tests/reducer.test.js +0 -160
- package/components/pages/ProgramSummary/tests/saga.test.js +0 -658
- package/components/pages/ProgramSummary/tests/selectors.test.js +0 -98
- package/components/pages/Promotions/Promotions.js +0 -1698
- package/components/pages/Promotions/actions.js +0 -23
- package/components/pages/Promotions/constants.js +0 -65
- package/components/pages/Promotions/index.js +0 -1
- package/components/pages/Promotions/initialState.js +0 -39
- package/components/pages/Promotions/messages.js +0 -129
- package/components/pages/Promotions/reducer.js +0 -58
- package/components/pages/Promotions/saga.js +0 -112
- package/components/pages/Promotions/selectors.js +0 -43
- package/components/pages/Promotions/style.js +0 -152
- package/components/pages/Promotions/tests/Promotions.test.js +0 -906
- package/components/pages/Promotions/tests/mockData.js +0 -454
- package/components/pages/PromotionsDashboard/PromotionsDashboard.js +0 -127
- package/components/pages/PromotionsDashboard/index.js +0 -1
- package/components/pages/PromotionsDashboard/style.js +0 -5
- package/components/pages/PromotionsDashboard/tests/PromotionsDashboard.test.js +0 -90
- package/entry.js +0 -4
- package/initialReducer.js +0 -14
- package/tests/integration/CreateProgram/helper.js +0 -216
- package/tests/integration/CreateProgram/mocks/apiResponse.js +0 -7
- package/tests/integration/CreateProgram/mocks/constants.js +0 -1
- package/tests/integration/CreateProgram/mocks/msw-handler.js +0 -26
- package/tests/integration/EditProgram/EditProgram.integration.test.js +0 -159
- package/tests/integration/EditProgram/helper.js +0 -104
- package/tests/integration/EditProgram/mocks/apiResponse.js +0 -327
- package/tests/integration/EditProgram/mocks/msw-handler.js +0 -56
- package/tests/integration/Login/Login.integration.test.js +0 -96
- package/tests/integration/Login/mocks/apiResponse.js +0 -235
- package/tests/integration/Login/mocks/msw-handler.js +0 -34
- package/tests/integration/PartnerProgram/CreatePartnerProgram.integration.test.js +0 -117
- package/tests/integration/PartnerProgram/helper.js +0 -256
- package/tests/integration/PartnerProgram/mocks/apiResponse.js +0 -689
- package/tests/integration/PartnerProgram/mocks/msw-handler.js +0 -210
- package/tests/integration/Promotion/CreatePromotion.integration.test.js +0 -237
- package/tests/integration/Promotion/EditPromotion.integration.test.js +0 -94
- package/tests/integration/Promotion/helper.js +0 -656
- package/tests/integration/Promotion/mocks/apiResponse.js +0 -2683
- package/tests/integration/Promotion/mocks/constants.js +0 -7
- package/tests/integration/Promotion/mocks/msw-handler.js +0 -183
- package/tests/integration/Versioning/mocks/apiResponse.js +0 -14333
- package/tests/integration/commonMocks/apiResponse.js +0 -1624
- package/tests/integration/commonMocks/helper.js +0 -31
- package/tests/integration/commonMocks/msw-handler.js +0 -100
- package/tests/test-utils-it.js +0 -64
- package/utils/audience.js +0 -46
- package/utils/gtmTrackers/gtmEvents/bulkConfigDetails.js +0 -155
- package/utils/gtmTrackers/gtmEvents/nudgeDetails.js +0 -10
- package/utils/gtmTrackers/gtmEvents/promotionDetails.js +0 -116
- package/utils/gtmTrackers/gtmEvents/viewBulkConfigDetails.js +0 -25
- package/utils/gtmTrackers/gtmEvents/viewPromotionDetails.js +0 -28
- package/utils/gtmTrackers/gtmEvents/workflowActions.js +0 -29
- package/utils/promotions.js +0 -53
- package/utils/tests/commonUtils.test.js +0 -37
- package/utils/usePersistantState.js +0 -64
- package/utils/withDynamicLazyLoading.js +0 -17
- /package/components/{organisms → atoms}/GroupItemLabel/index.js +0 -0
- /package/components/{organisms → molecules}/PageHeader/index.js +0 -0
|
@@ -1,2661 +0,0 @@
|
|
|
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
|
-
});
|