@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
|
@@ -4,191 +4,105 @@
|
|
|
4
4
|
* WorkflowConfigurationSection
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
useEffect,
|
|
10
|
-
useMemo,
|
|
11
|
-
useCallback,
|
|
12
|
-
useRef,
|
|
13
|
-
} from 'react';
|
|
7
|
+
|
|
8
|
+
import React, { useState, useEffect, useMemo } from 'react';
|
|
14
9
|
import PropTypes from 'prop-types';
|
|
15
10
|
import classnames from 'classnames';
|
|
16
11
|
import isEmpty from 'lodash/isEmpty';
|
|
17
12
|
import cloneDeep from 'lodash/cloneDeep';
|
|
18
13
|
import findIndex from 'lodash/findIndex';
|
|
19
14
|
import withStyles from 'utils/withStyles';
|
|
20
|
-
import { withRouter } from 'react-router-dom';
|
|
21
15
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
22
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
validateNumber,
|
|
18
|
+
validateTitle,
|
|
19
|
+
formatMessageHandler,
|
|
20
|
+
getUICompatibleCommChannelsNames,
|
|
21
|
+
} from 'utils/commonUtils';
|
|
22
|
+
|
|
23
23
|
import { compose, bindActionCreators } from 'redux';
|
|
24
24
|
import { createStructuredSelector } from 'reselect';
|
|
25
25
|
import { connect } from 'react-redux';
|
|
26
|
-
import
|
|
27
|
-
import
|
|
26
|
+
import injectSaga from 'utils/injectSaga';
|
|
27
|
+
import injectReducer from 'utils/injectReducer';
|
|
28
|
+
import clearDataOnUnmount from 'utils/clearDataOnUnmount';
|
|
28
29
|
|
|
29
30
|
import CapLabel from '@capillarytech/cap-ui-library/CapLabel';
|
|
30
31
|
import CapBanner from '@capillarytech/cap-ui-library/CapBanner';
|
|
31
32
|
import CapRow from '@capillarytech/cap-ui-library/CapRow';
|
|
32
|
-
import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
|
|
33
33
|
import CapHeading from '@capillarytech/cap-ui-library/CapHeading';
|
|
34
|
-
import
|
|
34
|
+
import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
|
|
35
|
+
import CapHeader from '@capillarytech/cap-ui-library/CapHeader';
|
|
36
|
+
import CapInput from '@capillarytech/cap-ui-library/CapInput';
|
|
35
37
|
import CapColumn from '@capillarytech/cap-ui-library/CapColumn';
|
|
36
38
|
import CapButton from '@capillarytech/cap-ui-library/CapButton';
|
|
37
|
-
import
|
|
39
|
+
import CapAlert from '@capillarytech/cap-ui-library/CapAlert';
|
|
40
|
+
import CapError from '@capillarytech/cap-ui-library/CapError';
|
|
38
41
|
import StyledVars from '@capillarytech/cap-ui-library/styled';
|
|
39
42
|
import CapSpin from '@capillarytech/cap-ui-library/CapSpin';
|
|
40
|
-
import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
|
|
41
|
-
import CapDivider from '@capillarytech/cap-ui-library/CapDivider';
|
|
42
|
-
import CapInput from '@capillarytech/cap-ui-library/CapInput';
|
|
43
|
-
import CapError from '@capillarytech/cap-ui-library/CapError';
|
|
44
43
|
import CapExpressionEditor from '@capillarytech/cap-ui-library/CapExpressionEditor';
|
|
45
|
-
import
|
|
46
|
-
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
47
|
-
import ConfirmationModal from '../../molecules/ConfirmationModal';
|
|
48
|
-
|
|
44
|
+
import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
|
|
49
45
|
import { getSubRulesetIds } from 'utils/workflow';
|
|
50
46
|
import withErrorBoundary from 'utils/withErrorBoundary';
|
|
51
|
-
import injectSaga from 'utils/injectSaga';
|
|
52
|
-
import injectReducer from 'utils/injectReducer';
|
|
53
|
-
import clearDataOnUnmount from 'utils/clearDataOnUnmount';
|
|
54
47
|
|
|
55
|
-
import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
|
|
56
48
|
import messages from './messages';
|
|
57
49
|
import * as style from './style';
|
|
58
50
|
import globalMessages from '../../pages/Cap/messages';
|
|
51
|
+
import Tag from '../../atoms/Tag';
|
|
59
52
|
import CustomTree from '../../molecules/CustomTree';
|
|
60
53
|
import AddActionConditionWorkflow from '../../molecules/AddActionConditionWorkflow';
|
|
54
|
+
import ColorPatch from '../../molecules/ColorPatch';
|
|
55
|
+
import ActionExpression from '../../molecules/ActionExpression';
|
|
61
56
|
import {
|
|
62
57
|
getActionList,
|
|
63
58
|
processRuleSetsData,
|
|
64
59
|
getUpdatedRuleSetByAction,
|
|
65
60
|
processRuleSetDelete,
|
|
66
|
-
getNewRuleSetInfo,
|
|
67
|
-
getRulesetsOrRulesetsByEventTypeV2,
|
|
68
|
-
checkForAlternateCurrencyEventType,
|
|
69
61
|
} from './utils';
|
|
70
62
|
import * as actions from './actions';
|
|
71
|
-
import
|
|
63
|
+
import * as tiersActions from '../Tiers/actions';
|
|
72
64
|
import * as programSummaryActions from '../../pages/ProgramSummary/actions';
|
|
73
|
-
import * as programSummaryContext from '../../pages/ProgramSummary/context';
|
|
74
65
|
import * as capActions from '../../pages/Cap/actions';
|
|
75
66
|
import * as selectors from './selectors';
|
|
76
|
-
import { makeSelectTargetGroups } from '../TargetPointAllocationWorkflowAction/selectors';
|
|
77
67
|
import saga from './saga';
|
|
78
|
-
import targetPointAllocationWorkflowSaga from '../TargetPointAllocationWorkflowAction/saga';
|
|
79
68
|
import reducer from './reducer';
|
|
80
|
-
import
|
|
69
|
+
import * as programContext from '../../pages/ProgramSummary/context';
|
|
81
70
|
import {
|
|
82
71
|
REQUEST,
|
|
83
72
|
SUCCESS,
|
|
84
73
|
FAILURE,
|
|
85
74
|
ACTIONS_MSG_MAP,
|
|
86
|
-
SOURCE_LOYALTY,
|
|
87
|
-
SOURCE_PROMOTION,
|
|
88
|
-
HIDE_SCOPE_FOR_EVENT,
|
|
89
|
-
// LOYALTY_PROMOTION_ENABLED,
|
|
90
|
-
MODE_CONFIGURE,
|
|
91
|
-
TRACKER_SOURCE_VALUE,
|
|
92
|
-
POINTSENGINE_ENDPOINT,
|
|
93
|
-
ENABLE_PROGRAM_VERSIONING,
|
|
94
|
-
DRAFT,
|
|
95
|
-
LIVE,
|
|
96
|
-
MODE_VIEW,
|
|
97
|
-
SUPPORT_QUANTITY_FEATURE,
|
|
98
|
-
CREATE,
|
|
99
|
-
EDIT,
|
|
100
|
-
VIEW,
|
|
101
|
-
CDN_BASE_URL,
|
|
102
|
-
DESC,
|
|
103
|
-
CDN_BUCKET_PATH,
|
|
104
|
-
CDN_TRANSFORM_SUFFIX,
|
|
105
75
|
} from '../../pages/App/constants';
|
|
106
|
-
import {
|
|
107
|
-
components as components_constants,
|
|
108
|
-
type,
|
|
109
|
-
} from '../../pages/Cap/constants';
|
|
110
|
-
import {
|
|
111
|
-
makeSelectOrgConfigDetails,
|
|
112
|
-
makeSelectTrackers,
|
|
113
|
-
} from '../../pages/ProgramSummary/selectors';
|
|
76
|
+
import { makeSelectTrackers } from '../../pages/ProgramSummary/selectors';
|
|
114
77
|
import {
|
|
115
78
|
makeSelectCap,
|
|
116
79
|
makeSelectUpsertAction,
|
|
117
|
-
makeSelectTiers,
|
|
118
|
-
makeSelectAlternateCurrencyFlagStatus,
|
|
119
80
|
} from '../../pages/Cap/selectors';
|
|
81
|
+
import { makeSelectTiers } from '../Tiers/selectors';
|
|
120
82
|
import {
|
|
121
83
|
FORWARD,
|
|
122
84
|
ACTIONS_ICON_MAP,
|
|
123
|
-
|
|
124
|
-
DEFAULT_PROMOTION_DESCRIPTION,
|
|
125
|
-
RETURN_BILL_ACTION,
|
|
126
|
-
REEVALUATE_REGULAR_BILL,
|
|
127
|
-
RENEW_SLAB_ACTION,
|
|
128
|
-
UPGRADE_SLAB_ACTION_SLAB,
|
|
85
|
+
LINEITEM_EXTENDED_FIELD,
|
|
129
86
|
UPGRADE_SLAB_ACTION,
|
|
130
|
-
|
|
131
|
-
SCOPE_UPPERCASE,
|
|
132
|
-
POINTS_REDEEMED_ALL_REGEX,
|
|
133
|
-
POINTS_REDEEMED_VALID_REGEX,
|
|
134
|
-
STATUS,
|
|
135
|
-
CONVERT_POINTS_TO_REWARD_ACTION,
|
|
136
|
-
BADGES_UI_ENABLED,
|
|
137
|
-
BADGE_EARN_ACTION,
|
|
138
|
-
ISSUE_PROMOTION_ACTION,
|
|
139
|
-
EARN_PROMOTION_ACTION,
|
|
140
|
-
ENABLE_PROMOTION_TYPE,
|
|
141
|
-
ISSUE_ALTERNATE_CURRENCY,
|
|
142
|
-
TRANSACTION_ADD,
|
|
143
|
-
TARGET_COMPLETED,
|
|
144
|
-
ENABLE_ADVANCE_LOYALTY_PROMOTIONS,
|
|
145
|
-
ENROLL_IN_PROMOTION,
|
|
146
|
-
ACTIONS_TO_CONFIRM_BEFORE_DELETE,
|
|
147
|
-
BADGE,
|
|
148
|
-
AWARD_TARGET_POINTS_ACTION,
|
|
149
|
-
AWARD_REFEREE_POINTS_ACTION,
|
|
150
|
-
AWARD_REFERRER_POINTS_ACTION
|
|
87
|
+
UPGRADE_SLAB_ACTION_STRATEGY,
|
|
151
88
|
} from './constants';
|
|
152
|
-
import { AI_RULE_WRITING_DISABLED } from '../NavigationBar/constants';
|
|
153
|
-
|
|
154
89
|
import WorkflowActions from './WorkflowActions';
|
|
155
90
|
import CreateActionButton from '../../molecules/CreateActionButton';
|
|
91
|
+
import EllipsisText from '../../atoms/EllipsisText';
|
|
156
92
|
import { Flex } from '../../pages/Cap/style';
|
|
157
93
|
import ErrorBoundaryWrapper from '../../molecules/ErrorBoundaryWrapper';
|
|
158
|
-
|
|
159
|
-
import { gtmPush } from '../../../utils/gtmTrackers';
|
|
160
|
-
import { getWorkflowMode } from './context';
|
|
161
|
-
import pointsDefaultImg from '../../../assets/Points.png';
|
|
162
|
-
import ScopeSlidebox from '../ScopeSlidebox';
|
|
163
|
-
import CappingSlidebox from '../CappingSlidebox';
|
|
164
|
-
import ActionExpression from '../ActionExpression';
|
|
165
|
-
import Tag from '../../atoms/Tag';
|
|
166
|
-
import ColorPatch from '../../molecules/ColorPatch';
|
|
167
|
-
import {
|
|
168
|
-
eventTypesMap,
|
|
169
|
-
validateNumber,
|
|
170
|
-
validateTitle,
|
|
171
|
-
formatMessageHandler,
|
|
172
|
-
getUICompatibleCommChannelsNames,
|
|
173
|
-
getHighlightedText,
|
|
174
|
-
debounceUtil,
|
|
175
|
-
compressData,
|
|
176
|
-
} from '../../../utils/commonUtils';
|
|
177
|
-
import { notifyHandledException } from '../../../utils/bugsnag';
|
|
178
|
-
import * as Api from '../../../services/api';
|
|
179
|
-
import { badgeOwners } from '../IssueBadgeWorkflowAction/constants';
|
|
94
|
+
|
|
180
95
|
const {
|
|
181
96
|
makeSelectConfigWorkflow,
|
|
97
|
+
makeSelectExtendedFields,
|
|
182
98
|
makeSelectEbillTemplates,
|
|
99
|
+
makeSelectLabels,
|
|
183
100
|
makeSelectDeleteAction,
|
|
184
101
|
makeSelectDeleteCondition,
|
|
185
102
|
makeSelectExpressionOnUpdate,
|
|
186
103
|
makeSelectRemountExpEditor,
|
|
187
|
-
makeSelectToggleOnAction,
|
|
188
|
-
makeSelectIsScrolling,
|
|
189
|
-
makeSelectDynamicWidth,
|
|
190
|
-
makeSelectAlternateCurrencyList,
|
|
191
104
|
} = selectors;
|
|
105
|
+
const { getProgramContext } = programContext;
|
|
192
106
|
const { styles } = style;
|
|
193
107
|
const {
|
|
194
108
|
CAP_G18,
|
|
@@ -197,151 +111,79 @@ const {
|
|
|
197
111
|
CAP_SPACE_32,
|
|
198
112
|
CAP_WHITE,
|
|
199
113
|
CAP_G09,
|
|
114
|
+
CAP_PALE_GREY,
|
|
200
115
|
} = StyledVars;
|
|
201
|
-
const { getProgramContext } = programSummaryContext;
|
|
202
|
-
import penguin from '../../../assets/penguin.svg';
|
|
203
|
-
|
|
204
|
-
export const WorkflowConfigurationSection = props => {
|
|
205
|
-
const {
|
|
206
|
-
/** Injected Props */
|
|
207
|
-
orgConfigDetails: {
|
|
208
|
-
getOrgConfigDetailsStatus,
|
|
209
|
-
orgConfigDetailsList,
|
|
210
|
-
getOrgConfigDraftDetailsStatus,
|
|
211
|
-
orgConfigDraftDetailsList,
|
|
212
|
-
},
|
|
213
|
-
match: {
|
|
214
|
-
params: { programId: paramProgramID, mode },
|
|
215
|
-
},
|
|
216
|
-
/** Inejcted Props */
|
|
217
|
-
isPromotionEditFlow = false,
|
|
218
|
-
source = SOURCE_LOYALTY,
|
|
219
|
-
intl: { formatMessage },
|
|
220
|
-
actions,
|
|
221
|
-
targetGroupsActionsMappedAction,
|
|
222
|
-
className,
|
|
223
|
-
eventType,
|
|
224
|
-
setSelectedRuleset,
|
|
225
|
-
showSearch,
|
|
226
|
-
userData,
|
|
227
|
-
workflowData: {
|
|
228
|
-
getRulesetsStatus,
|
|
229
|
-
rulesets = [],
|
|
230
|
-
upsertRulesetsStatus,
|
|
231
|
-
getRulesetsByEventTypeStatus,
|
|
232
|
-
rulesetsByEventType = [],
|
|
233
|
-
isRulesetsByEventTypeUpdated,
|
|
234
|
-
getGrammerStatus,
|
|
235
|
-
grammer = {},
|
|
236
|
-
getActionDependenciesStatus,
|
|
237
|
-
actionDependencies = {},
|
|
238
|
-
createRuleStatus,
|
|
239
|
-
saveRulesetStatus,
|
|
240
|
-
clearRulesetCacheStatus,
|
|
241
|
-
} = {},
|
|
242
|
-
trackersData: { getTrackersStatus, trackersDetails = [] } = {},
|
|
243
|
-
tiers: { getTierStatus, tier = {} } = {},
|
|
244
|
-
selectedRuleset,
|
|
245
|
-
processedRuleSets,
|
|
246
|
-
setProcessedRuleSets,
|
|
247
|
-
groups,
|
|
248
|
-
setGroups,
|
|
249
|
-
pointStrategy = {},
|
|
250
|
-
pointTypeIdData = {},
|
|
251
|
-
deleteActionData: { deleteActionStatus } = {},
|
|
252
|
-
deleteConditionData: { deleteConditionStatus } = {},
|
|
253
|
-
capActions,
|
|
254
|
-
eventCategory,
|
|
255
|
-
actionDetailsData: { upsertActionStatus } = {},
|
|
256
|
-
exp,
|
|
257
|
-
setExp,
|
|
258
|
-
expJSON,
|
|
259
|
-
setExpJSON,
|
|
260
|
-
expError,
|
|
261
|
-
setExpError,
|
|
262
|
-
selectedRule,
|
|
263
|
-
setSelectedRule,
|
|
264
|
-
saveExpression,
|
|
265
|
-
rules,
|
|
266
|
-
setRules,
|
|
267
|
-
expressionOnUpdate: { expressionOnUpdate = {} },
|
|
268
|
-
isSaveDisabled,
|
|
269
|
-
setIsSaveDisabled,
|
|
270
|
-
remountExpEditor: { remountExpEditor = false } = {},
|
|
271
|
-
addTrackerTags,
|
|
272
|
-
programSummaryActions,
|
|
273
|
-
fleetLoyaltyEnabled,
|
|
274
|
-
programId,
|
|
275
|
-
currentProgram = {},
|
|
276
|
-
isGenericEvent = false,
|
|
277
|
-
triggerSaveExpression = false,
|
|
278
|
-
triggerSaveRuleset = false,
|
|
279
|
-
promotionFormData = {},
|
|
280
|
-
promotionRulesets = [],
|
|
281
|
-
getPromotionByIdStatus = '',
|
|
282
|
-
getPromotionById = () => {},
|
|
283
|
-
toggleOnAction,
|
|
284
|
-
setPromotionPayload = () => {},
|
|
285
|
-
draftDestinationName,
|
|
286
|
-
isScrolling,
|
|
287
|
-
dynamicWidth,
|
|
288
|
-
/** Scope/Cap related props */
|
|
289
|
-
handleUpdateTrackerCappedSets,
|
|
290
|
-
areProrateOnOptionsDisabled,
|
|
291
|
-
billType,
|
|
292
|
-
alternateCurrencyList: { alternateCurrencyListData = [] } = {},
|
|
293
|
-
alternateCurrencyFlag: {
|
|
294
|
-
alternateCurrencyStatus: {
|
|
295
|
-
value: alternateCurrencyFlagValue = false,
|
|
296
|
-
} = {},
|
|
297
|
-
} = {},
|
|
298
|
-
targetGroupData: { targetGroupsActionsMapped = [] } = {},
|
|
299
|
-
} = props;
|
|
300
|
-
const { currentOrgDetails, user: { id: userId = '' } = {} } = userData;
|
|
301
|
-
const {
|
|
302
|
-
basic_details: { name: orgName = '' } = {},
|
|
303
|
-
accessibleFeatures = [],
|
|
304
|
-
} = currentOrgDetails;
|
|
305
|
-
const hasProgramVersioningEnabled = accessibleFeatures.includes(
|
|
306
|
-
ENABLE_PROGRAM_VERSIONING,
|
|
307
|
-
);
|
|
308
|
-
const hasBadgesEnabled = accessibleFeatures.includes(BADGES_UI_ENABLED);
|
|
309
|
-
const hasIssueEarnPromotionActionEnabled = accessibleFeatures.includes(
|
|
310
|
-
ENABLE_ADVANCE_LOYALTY_PROMOTIONS,
|
|
311
|
-
);
|
|
312
|
-
const isAiRuleWritingDisabled = accessibleFeatures?.includes(
|
|
313
|
-
AI_RULE_WRITING_DISABLED,
|
|
314
|
-
);
|
|
315
|
-
/* Commented code to serve as a reference for implementing feature control for Quantity options in the future.
|
|
316
|
-
const hasQuantityOptionPresent = accessibleFeatures.includes(
|
|
317
|
-
SUPPORT_QUANTITY_FEATURE,
|
|
318
|
-
);
|
|
319
|
-
*/
|
|
320
|
-
const hasQuantityOptionPresent = true;
|
|
321
|
-
const [isV2FlowEnabled, setIsV2FlowEnabled] = useState(true);
|
|
322
|
-
/* Commented code to serve as a reference for implementing feature control for promotions in the future. */
|
|
323
|
-
// const hasNewUIPromotionEnabled = accessibleFeatures.includes(
|
|
324
|
-
// LOYALTY_PROMOTION_ENABLED,
|
|
325
|
-
// );
|
|
326
|
-
/** End */
|
|
327
|
-
const hasNewUIPromotionEnabled = true;
|
|
328
|
-
const toggleOnActionMemo = useMemo(() => toggleOnAction?.toJS(), [
|
|
329
|
-
toggleOnAction,
|
|
330
|
-
]);
|
|
331
|
-
const [actionList, setActionList] = useState(null);
|
|
332
116
|
|
|
117
|
+
const WorkflowConfigurationSection = ({
|
|
118
|
+
intl: { formatMessage },
|
|
119
|
+
actions,
|
|
120
|
+
className,
|
|
121
|
+
eventType,
|
|
122
|
+
setSelectedRuleset,
|
|
123
|
+
workflowData: {
|
|
124
|
+
getRulesetsStatus,
|
|
125
|
+
rulesets = [],
|
|
126
|
+
upsertRulesetsStatus,
|
|
127
|
+
getRulesetsByEventTypeStatus,
|
|
128
|
+
rulesetsByEventType = [],
|
|
129
|
+
isRulesetsByEventTypeUpdated,
|
|
130
|
+
getGrammerStatus,
|
|
131
|
+
grammer = {},
|
|
132
|
+
getActionDependenciesStatus,
|
|
133
|
+
actionDependencies = {},
|
|
134
|
+
createRuleStatus,
|
|
135
|
+
saveRulesetStatus,
|
|
136
|
+
clearRulesetCacheStatus,
|
|
137
|
+
} = {},
|
|
138
|
+
extendedFieldsData: { extendedFields } = {},
|
|
139
|
+
trackersData: { getTrackersStatus, trackersDetails = [] } = {},
|
|
140
|
+
tiers: { getTierStatus, tier = {} } = {},
|
|
141
|
+
ebillTemplatesData: {
|
|
142
|
+
ebillTemplates = [],
|
|
143
|
+
getEbillTemplatesStatus = '',
|
|
144
|
+
} = {},
|
|
145
|
+
labelData: { labels = [] },
|
|
146
|
+
selectedRuleset,
|
|
147
|
+
processedRuleSets,
|
|
148
|
+
setProcessedRuleSets,
|
|
149
|
+
groups,
|
|
150
|
+
setGroups,
|
|
151
|
+
pointStrategy = {},
|
|
152
|
+
pointTypeIdData = {},
|
|
153
|
+
deleteActionData: { deleteActionStatus } = {},
|
|
154
|
+
deleteConditionData: { deleteConditionStatus } = {},
|
|
155
|
+
capActions,
|
|
156
|
+
eventCategory,
|
|
157
|
+
actionDetailsData: { upsertActionStatus } = {},
|
|
158
|
+
exp,
|
|
159
|
+
setExp,
|
|
160
|
+
expJSON,
|
|
161
|
+
setExpJSON,
|
|
162
|
+
expError,
|
|
163
|
+
setExpError,
|
|
164
|
+
selectedRule,
|
|
165
|
+
setSelectedRule,
|
|
166
|
+
saveExpression,
|
|
167
|
+
rules,
|
|
168
|
+
setRules,
|
|
169
|
+
expressionOnUpdate: { expressionOnUpdate = {} },
|
|
170
|
+
isSaveDisabled,
|
|
171
|
+
setIsSaveDisabled,
|
|
172
|
+
remountExpEditor: { remountExpEditor = false } = {},
|
|
173
|
+
addTrackerTags,
|
|
174
|
+
tiersActions,
|
|
175
|
+
programSummaryActions,
|
|
176
|
+
fleetLoyaltyEnabled,
|
|
177
|
+
}) => {
|
|
178
|
+
const { programId, currentProgram = {} } = getProgramContext();
|
|
179
|
+
const [actionList, setActionList] = useState(null);
|
|
333
180
|
const [showActions, setShowActions] = useState(false);
|
|
334
181
|
const [selectedAction, setSelectedAction] = useState('');
|
|
335
|
-
|
|
336
182
|
const [showAction, setShowAction] = useState(false);
|
|
337
|
-
const [collapse, setCollapse] = useState(true);
|
|
338
|
-
const [collapseKey, setCollapseKey] = useState(`collapse_${uuidv4()}`);
|
|
339
183
|
const [modifiedGrammer, updateModifiedGrammer] = useState(grammer);
|
|
340
184
|
const [caseActionData, setCaseActionData] = useState({
|
|
341
185
|
actionCase: null,
|
|
342
186
|
action: {},
|
|
343
|
-
// by default, the mode of the action is CREATE.
|
|
344
|
-
mode: CREATE,
|
|
345
187
|
});
|
|
346
188
|
const [onGoingRequest, updateOnGoingRequest] = useState({});
|
|
347
189
|
const [localPointStrategy, setLocalPointStrategy] = useState(pointStrategy);
|
|
@@ -356,47 +198,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
356
198
|
const [evaluatedTracker, updateEvaluatedTrackers] = useState({});
|
|
357
199
|
const [showSenderInformation, setShowSenderInformation] = useState(false);
|
|
358
200
|
const [reverseAnimation, setReverseAnimation] = useState(false);
|
|
359
|
-
const [startRuleIdentifier, setStartRuleIdentifier] = useState('');
|
|
360
|
-
const [setsConditionsSearch, setSetsConditionsSearch] = useState();
|
|
361
|
-
const [searchCounter, setSearchCounter] = useState(0);
|
|
362
|
-
const [searchConditionCounter, setSearchConditionCounter] = useState(0);
|
|
363
|
-
const [searchIndex, setSearchIndex] = useState(1);
|
|
364
|
-
const [localIsDraftPresent, setLocalIsDraftPresent] = useState(false);
|
|
365
|
-
// useState variable to track x in pointsRedeemedInPastDays(x)
|
|
366
|
-
const [isInvalidDays, setIsInvalidDays] = useState(false);
|
|
367
|
-
const [showUnClaimBadgeConfirmationModal, setShowUnClaimBadgeConfirmationModal] = useState(false);
|
|
368
|
-
|
|
369
|
-
let localCounter = 0;
|
|
370
|
-
|
|
371
|
-
const { isPreviewMode, maxGroupItemWidth } = getWorkflowMode();
|
|
372
|
-
let isDraftPresent =
|
|
373
|
-
orgConfigDraftDetailsList?.length > 0 || localIsDraftPresent;
|
|
374
|
-
/** Need to add versioning related check*/
|
|
375
|
-
if (hasProgramVersioningEnabled) {
|
|
376
|
-
var { version } = getProgramContext() || {};
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
const debouncedWidth = useRef(
|
|
380
|
-
debounceUtil(value => {
|
|
381
|
-
actions.setDynamicWidth(value);
|
|
382
|
-
actions.setIsScrolling(false);
|
|
383
|
-
}, 50),
|
|
384
|
-
);
|
|
385
|
-
|
|
386
|
-
const handleScroll = e => {
|
|
387
|
-
if (e.nativeEvent.target.scrollLeft !== dynamicWidth) {
|
|
388
|
-
if (!isScrolling) {
|
|
389
|
-
actions.setIsScrolling(true);
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
const value = e.nativeEvent.target.scrollLeft;
|
|
393
|
-
debouncedWidth.current(value);
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
useDeepCompareEffect(() => setLocalPointStrategy(pointStrategy), [
|
|
398
|
-
pointStrategy,
|
|
399
|
-
]);
|
|
400
201
|
useEffect(
|
|
401
202
|
() => {
|
|
402
203
|
try {
|
|
@@ -404,24 +205,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
404
205
|
let expUpdateRequired = false;
|
|
405
206
|
const onGoingRequestTemp = {};
|
|
406
207
|
const modifiedGrammer = cloneDeep(grammer);
|
|
407
|
-
/** Regex matching for pointsRedeemedInPastDays - Start */
|
|
408
|
-
let matchesAll;
|
|
409
|
-
let matches;
|
|
410
|
-
try {
|
|
411
|
-
matches = exp?.match(POINTS_REDEEMED_VALID_REGEX);
|
|
412
|
-
matchesAll = exp?.match(POINTS_REDEEMED_ALL_REGEX);
|
|
413
|
-
} catch (err) {
|
|
414
|
-
notifyHandledException(err);
|
|
415
|
-
}
|
|
416
|
-
let invalidMatch = false;
|
|
417
|
-
if (matches?.length !== matchesAll?.length) {
|
|
418
|
-
setExpError(true);
|
|
419
|
-
invalidMatch = true;
|
|
420
|
-
}
|
|
421
|
-
invalidMatch === true
|
|
422
|
-
? setIsInvalidDays(true)
|
|
423
|
-
: setIsInvalidDays(false);
|
|
424
|
-
/** Regex matching for pointsRedeemedInPastDays - End */
|
|
425
208
|
const operandsArray = [];
|
|
426
209
|
const parsedJSON = JSON.parse(expJSON);
|
|
427
210
|
const findSubsets = opds => {
|
|
@@ -439,7 +222,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
439
222
|
} else {
|
|
440
223
|
operandsArray.push(parsedJSON?.operands);
|
|
441
224
|
}
|
|
442
|
-
operandsArray.
|
|
225
|
+
operandsArray.map(operands => {
|
|
443
226
|
let detailsValue = [];
|
|
444
227
|
let grammerMethod;
|
|
445
228
|
let grammerTypeValue;
|
|
@@ -452,7 +235,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
452
235
|
let functionIndex = false;
|
|
453
236
|
let hasFuntion = false;
|
|
454
237
|
Array.isArray(operands) &&
|
|
455
|
-
operands?.
|
|
238
|
+
operands?.map((rule, index) => {
|
|
456
239
|
detailsValue.push(rule);
|
|
457
240
|
if (rule?.type?.includes('function')) {
|
|
458
241
|
hasFuntion = true;
|
|
@@ -460,7 +243,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
460
243
|
}
|
|
461
244
|
});
|
|
462
245
|
if (hasFuntion) {
|
|
463
|
-
detailsValue.
|
|
246
|
+
detailsValue.map(({ type, value }, index) => {
|
|
464
247
|
if (index === 0) {
|
|
465
248
|
grammerTypeValue = type?.split(':')?.[0];
|
|
466
249
|
grammerType = grammer?.types?.[type.split(':')?.[0]];
|
|
@@ -548,23 +331,19 @@ export const WorkflowConfigurationSection = props => {
|
|
|
548
331
|
getTrackersStatus === REQUEST ||
|
|
549
332
|
upsertRulesetsStatus === REQUEST ||
|
|
550
333
|
getActionDependenciesStatus === REQUEST ||
|
|
334
|
+
getEbillTemplatesStatus === REQUEST ||
|
|
551
335
|
createRuleStatus === REQUEST ||
|
|
552
336
|
deleteConditionStatus === REQUEST ||
|
|
553
337
|
saveRulesetStatus === REQUEST ||
|
|
554
338
|
clearRulesetCacheStatus === REQUEST ||
|
|
555
|
-
getRulesetsByEventTypeStatus === REQUEST
|
|
556
|
-
getOrgConfigDraftDetailsStatus === REQUEST;
|
|
339
|
+
getRulesetsByEventTypeStatus === REQUEST;
|
|
557
340
|
|
|
558
341
|
const isAPIError =
|
|
559
342
|
getRulesetsStatus === FAILURE ||
|
|
560
343
|
getTrackersStatus === FAILURE ||
|
|
561
344
|
getTierStatus === FAILURE ||
|
|
562
345
|
clearRulesetCacheStatus === FAILURE ||
|
|
563
|
-
getRulesetsByEventTypeStatus === FAILURE
|
|
564
|
-
getOrgConfigDraftDetailsStatus === FAILURE ||
|
|
565
|
-
(hasProgramVersioningEnabled
|
|
566
|
-
? getOrgConfigDetailsStatus === FAILURE
|
|
567
|
-
: false);
|
|
346
|
+
getRulesetsByEventTypeStatus === FAILURE;
|
|
568
347
|
|
|
569
348
|
useEffect(
|
|
570
349
|
() => {
|
|
@@ -580,25 +359,11 @@ export const WorkflowConfigurationSection = props => {
|
|
|
580
359
|
setExpError(isError);
|
|
581
360
|
};
|
|
582
361
|
|
|
583
|
-
useEffect(
|
|
584
|
-
()
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
processWorflowData(promotionRulesets);
|
|
589
|
-
setStartRuleIdentifier(promotionRulesets?.[0]?.name);
|
|
590
|
-
}
|
|
591
|
-
if (isGenericEvent) {
|
|
592
|
-
actions.getEvents();
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
[
|
|
596
|
-
JSON.stringify(promotionRulesets),
|
|
597
|
-
source,
|
|
598
|
-
isGenericEvent,
|
|
599
|
-
isPromotionEditFlow,
|
|
600
|
-
],
|
|
601
|
-
);
|
|
362
|
+
useEffect(() => {
|
|
363
|
+
actions.getExtendedFields(LINEITEM_EXTENDED_FIELD, programId);
|
|
364
|
+
actions.getEbillTemplates();
|
|
365
|
+
actions.getLabels();
|
|
366
|
+
}, []);
|
|
602
367
|
|
|
603
368
|
useEffect(
|
|
604
369
|
() => {
|
|
@@ -628,191 +393,33 @@ export const WorkflowConfigurationSection = props => {
|
|
|
628
393
|
setSelectedRule({});
|
|
629
394
|
setActionList(null);
|
|
630
395
|
setRules([]);
|
|
631
|
-
actions.getGrammer(eventType
|
|
396
|
+
actions.getGrammer(eventType);
|
|
632
397
|
clearRulesetsCache();
|
|
633
398
|
},
|
|
634
399
|
[eventType],
|
|
635
400
|
);
|
|
636
401
|
|
|
637
|
-
const getRulesets = queryParams =>
|
|
638
|
-
actions.getRulesets(programId, queryParams,eventType,null,false);
|
|
639
|
-
|
|
640
|
-
const getRulesetsV2 = queryParams =>
|
|
641
|
-
actions.getRulesets(programId, queryParams,eventType,null,true);
|
|
642
|
-
|
|
643
|
-
const getRulesetsByEventType = queryParams =>
|
|
644
|
-
actions.getRulesetsByEventType(programId, eventType, queryParams);
|
|
645
|
-
|
|
646
|
-
const getTiers = useCallback(() => capActions.getTier(programId), [
|
|
647
|
-
programId,
|
|
648
|
-
capActions,
|
|
649
|
-
]);
|
|
650
|
-
|
|
651
|
-
useEffect(
|
|
652
|
-
() => {
|
|
653
|
-
if (programId !== undefined && !STATUS[getTierStatus]) {
|
|
654
|
-
getTiers();
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
[programId, getTierStatus, getTiers],
|
|
658
|
-
);
|
|
659
|
-
|
|
660
|
-
useEffect(
|
|
661
|
-
() => {
|
|
662
|
-
if(!isV2FlowEnabled){
|
|
663
|
-
if (
|
|
664
|
-
(mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
|
|
665
|
-
source !== SOURCE_PROMOTION &&
|
|
666
|
-
getOrgConfigDraftDetailsStatus === SUCCESS &&
|
|
667
|
-
!version
|
|
668
|
-
) {
|
|
669
|
-
getRulesets({
|
|
670
|
-
programId,
|
|
671
|
-
status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
|
|
672
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
673
|
-
});
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
if (
|
|
677
|
-
mode !== MODE_CONFIGURE &&
|
|
678
|
-
getOrgConfigDetailsStatus === SUCCESS &&
|
|
679
|
-
version !== null
|
|
680
|
-
) {
|
|
681
|
-
getRulesetsOrRulesetsByEventTypeV2(
|
|
682
|
-
mode,
|
|
683
|
-
version,
|
|
684
|
-
programId,
|
|
685
|
-
getRulesets,
|
|
686
|
-
orgConfigDetailsList,
|
|
687
|
-
);
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
[
|
|
692
|
-
programId,
|
|
693
|
-
mode,
|
|
694
|
-
version,
|
|
695
|
-
source,
|
|
696
|
-
getOrgConfigDraftDetailsStatus,
|
|
697
|
-
getOrgConfigDetailsStatus,
|
|
698
|
-
isV2FlowEnabled
|
|
699
|
-
],
|
|
700
|
-
);
|
|
701
|
-
useEffect(
|
|
702
|
-
() => {
|
|
703
|
-
if(isV2FlowEnabled){
|
|
704
|
-
if (
|
|
705
|
-
(mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
|
|
706
|
-
source !== SOURCE_PROMOTION &&
|
|
707
|
-
getOrgConfigDraftDetailsStatus === SUCCESS &&
|
|
708
|
-
!version
|
|
709
|
-
) {
|
|
710
|
-
getRulesetsV2({
|
|
711
|
-
programId,
|
|
712
|
-
status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
|
|
713
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
714
|
-
});
|
|
715
|
-
return;
|
|
716
|
-
}
|
|
717
|
-
if (
|
|
718
|
-
mode !== MODE_CONFIGURE &&
|
|
719
|
-
getOrgConfigDetailsStatus === SUCCESS &&
|
|
720
|
-
version !== null
|
|
721
|
-
) {
|
|
722
|
-
getRulesetsOrRulesetsByEventTypeV2(
|
|
723
|
-
mode,
|
|
724
|
-
version,
|
|
725
|
-
programId,
|
|
726
|
-
getRulesetsV2,
|
|
727
|
-
orgConfigDetailsList,
|
|
728
|
-
isV2FlowEnabled
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
[
|
|
734
|
-
programId,
|
|
735
|
-
mode,
|
|
736
|
-
version,
|
|
737
|
-
source,
|
|
738
|
-
getOrgConfigDraftDetailsStatus,
|
|
739
|
-
getOrgConfigDetailsStatus,
|
|
740
|
-
eventType
|
|
741
|
-
],
|
|
742
|
-
);
|
|
743
|
-
|
|
744
|
-
useEffect(() => {
|
|
745
|
-
actions.getActionDependencies();
|
|
746
|
-
}, []);
|
|
747
|
-
|
|
748
402
|
useEffect(
|
|
749
403
|
() => {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
alternateCurrencyFlagValue !== 'false'
|
|
753
|
-
) {
|
|
754
|
-
const queryParams = {
|
|
755
|
-
pageSize: 50,
|
|
756
|
-
pageNum: 0,
|
|
757
|
-
sortOrder: DESC,
|
|
758
|
-
};
|
|
759
|
-
actions.getCdnTransformationConfig();
|
|
760
|
-
actions.getAllAlternateCurrency(
|
|
761
|
-
{ pageNumber: 0, programId: paramProgramID || programId },
|
|
762
|
-
false,
|
|
763
|
-
queryParams,
|
|
764
|
-
);
|
|
765
|
-
}
|
|
404
|
+
getRulesets();
|
|
405
|
+
actions.getActionDependencies();
|
|
766
406
|
},
|
|
767
|
-
[
|
|
407
|
+
[programId],
|
|
768
408
|
);
|
|
769
409
|
|
|
770
410
|
useEffect(
|
|
771
411
|
() => {
|
|
772
|
-
|
|
773
|
-
(mode === MODE_CONFIGURE || mode === MODE_VIEW) &&
|
|
774
|
-
source !== SOURCE_PROMOTION &&
|
|
775
|
-
getOrgConfigDraftDetailsStatus === SUCCESS &&
|
|
776
|
-
!version
|
|
777
|
-
) {
|
|
778
|
-
getRulesetsByEventType({
|
|
779
|
-
programId,
|
|
780
|
-
status: mode === MODE_CONFIGURE && isDraftPresent ? DRAFT : LIVE,
|
|
781
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
782
|
-
eventType,
|
|
783
|
-
});
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
if (
|
|
787
|
-
mode !== MODE_CONFIGURE &&
|
|
788
|
-
getOrgConfigDetailsStatus === SUCCESS &&
|
|
789
|
-
version !== null
|
|
790
|
-
) {
|
|
791
|
-
getRulesetsOrRulesetsByEventTypeV2(
|
|
792
|
-
mode,
|
|
793
|
-
version,
|
|
794
|
-
programId,
|
|
795
|
-
getRulesetsByEventType,
|
|
796
|
-
orgConfigDetailsList,
|
|
797
|
-
);
|
|
798
|
-
}
|
|
412
|
+
getRulesetsByEventType();
|
|
799
413
|
},
|
|
800
|
-
[
|
|
801
|
-
eventType,
|
|
802
|
-
source,
|
|
803
|
-
version,
|
|
804
|
-
mode,
|
|
805
|
-
programId,
|
|
806
|
-
getOrgConfigDetailsStatus,
|
|
807
|
-
getOrgConfigDraftDetailsStatus,
|
|
808
|
-
],
|
|
414
|
+
[eventType, programId],
|
|
809
415
|
);
|
|
810
416
|
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
417
|
+
const getRulesets = () => actions.getRulesets(programId);
|
|
418
|
+
const getRulesetsByEventType = () =>
|
|
419
|
+
actions.getRulesetsByEventType(programId, eventType);
|
|
420
|
+
const clearRulesetsCache = () =>
|
|
421
|
+
actions.clearRulesetsCache(programId, eventType);
|
|
422
|
+
const getTiers = () => tiersActions.getTier(programId);
|
|
816
423
|
const getTrackersData = () =>
|
|
817
424
|
programSummaryActions.getTrackersData({ programId });
|
|
818
425
|
|
|
@@ -835,11 +442,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
835
442
|
getRulesetsStatus === SUCCESS
|
|
836
443
|
) {
|
|
837
444
|
processWorflowData(rulesets);
|
|
838
|
-
//BELOW BLOCK IS ADDED TO FIX THE EXPRESSION NOT GETTING UPDATED AFTER EVENT SWITCH
|
|
839
|
-
//TESTED WITH BOTH OLD AND NEW FLOW IN VIEW AND EDIT
|
|
840
|
-
if (mode !== MODE_VIEW) {
|
|
841
|
-
setExp('');
|
|
842
|
-
}
|
|
843
445
|
}
|
|
844
446
|
},
|
|
845
447
|
[getRulesetsStatus, getRulesetsByEventTypeStatus],
|
|
@@ -879,26 +481,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
879
481
|
[remountExpEditor],
|
|
880
482
|
);
|
|
881
483
|
|
|
882
|
-
useDeepCompareEffect(
|
|
883
|
-
() => {
|
|
884
|
-
let cappingInfo =
|
|
885
|
-
processedRuleSets?.group[selectedRuleset]?.cappingInfo || [];
|
|
886
|
-
if (!isEmpty(cappingInfo)) {
|
|
887
|
-
cappingInfo.forEach(capping => {
|
|
888
|
-
if (capping.name === TRACKER_SOURCE_VALUE) {
|
|
889
|
-
try {
|
|
890
|
-
const { trackerId } = JSON.parse(capping.propertyValuesJson);
|
|
891
|
-
handleUpdateTrackerCappedSets(true, selectedRuleset, trackerId);
|
|
892
|
-
} catch (err) {
|
|
893
|
-
notifyHandledException(err);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
},
|
|
899
|
-
[processedRuleSets, selectedRuleset],
|
|
900
|
-
);
|
|
901
|
-
|
|
902
484
|
const refreshStrategyData = () => {
|
|
903
485
|
actions.getStrategyDataWorkflow({ programId }, result => {
|
|
904
486
|
if (result?.result?.strategyValue) {
|
|
@@ -908,46 +490,20 @@ export const WorkflowConfigurationSection = props => {
|
|
|
908
490
|
});
|
|
909
491
|
};
|
|
910
492
|
|
|
911
|
-
const processWorflowData =
|
|
912
|
-
|
|
913
|
-
const { downloadRuleSet } = actions;
|
|
914
|
-
const {
|
|
915
|
-
groupObj,
|
|
916
|
-
groupTreeList,
|
|
917
|
-
evaluatedTrackers,
|
|
918
|
-
} = processRuleSetsData({
|
|
919
|
-
eventType,
|
|
920
|
-
rulesets,
|
|
921
|
-
rulesetsByEventType,
|
|
922
|
-
trackersDetails,
|
|
923
|
-
currentProgram,
|
|
924
|
-
source,
|
|
925
|
-
downloadRuleSet,
|
|
926
|
-
// selectedRuleset,
|
|
927
|
-
draftDestinationName,
|
|
928
|
-
processWorflowData,
|
|
929
|
-
setIsV2FlowEnabled,
|
|
930
|
-
});
|
|
931
|
-
setGroups([...groupTreeList]);
|
|
932
|
-
|
|
933
|
-
setProcessedRuleSets({
|
|
934
|
-
group: groupObj,
|
|
935
|
-
});
|
|
936
|
-
updateEvaluatedTrackers(evaluatedTrackers);
|
|
937
|
-
},
|
|
938
|
-
[
|
|
939
|
-
currentProgram,
|
|
493
|
+
const processWorflowData = rulesets => {
|
|
494
|
+
const { groupObj, groupTreeList, evaluatedTrackers } = processRuleSetsData({
|
|
940
495
|
eventType,
|
|
496
|
+
rulesets,
|
|
941
497
|
rulesetsByEventType,
|
|
942
|
-
// selectedRuleset,
|
|
943
|
-
setGroups,
|
|
944
|
-
source,
|
|
945
|
-
setProcessedRuleSets,
|
|
946
498
|
trackersDetails,
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
]
|
|
950
|
-
|
|
499
|
+
currentProgram,
|
|
500
|
+
});
|
|
501
|
+
setGroups([...groupTreeList]);
|
|
502
|
+
setProcessedRuleSets({
|
|
503
|
+
group: groupObj,
|
|
504
|
+
});
|
|
505
|
+
updateEvaluatedTrackers(evaluatedTrackers);
|
|
506
|
+
};
|
|
951
507
|
|
|
952
508
|
useEffect(
|
|
953
509
|
() => {
|
|
@@ -958,149 +514,30 @@ export const WorkflowConfigurationSection = props => {
|
|
|
958
514
|
[processedRuleSets],
|
|
959
515
|
);
|
|
960
516
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
pointsPerEventLimit,
|
|
985
|
-
eventsPerMemberLimit,
|
|
986
|
-
pointsPerMemberLimit,
|
|
987
|
-
pointsPerPromotionLimit,
|
|
988
|
-
externalIdentifier,
|
|
989
|
-
promotionMetadata,
|
|
990
|
-
isStackable,
|
|
991
|
-
isExclusive,
|
|
992
|
-
isAlwaysApply
|
|
993
|
-
} = {},
|
|
994
|
-
RULESETS = {},
|
|
995
|
-
} = promotionData || {};
|
|
996
|
-
const rulesetInfo = Object.keys(RULESETS).map(key => RULESETS[key]);
|
|
997
|
-
const payload = {
|
|
998
|
-
name,
|
|
999
|
-
description,
|
|
1000
|
-
type,
|
|
1001
|
-
useProportions,
|
|
1002
|
-
startDate: parseInt(moment(startDate).format('x'), 10),
|
|
1003
|
-
endDate: parseInt(
|
|
1004
|
-
moment(endDate)
|
|
1005
|
-
.endOf('day')
|
|
1006
|
-
.format('x'),
|
|
1007
|
-
10,
|
|
1008
|
-
),
|
|
1009
|
-
isActive,
|
|
1010
|
-
pointsPerEventLimit: pointsPerEventLimit || 0,
|
|
1011
|
-
eventsPerMemberLimit: eventsPerMemberLimit || 0,
|
|
1012
|
-
pointsPerMemberLimit: pointsPerMemberLimit || 0,
|
|
1013
|
-
pointsPerPromotionLimit: pointsPerPromotionLimit || 0,
|
|
1014
|
-
isStackable,
|
|
1015
|
-
isExclusive,
|
|
1016
|
-
isAlwaysApply,
|
|
1017
|
-
programId,
|
|
1018
|
-
eventName,
|
|
1019
|
-
startRuleIdentifier,
|
|
1020
|
-
id: id || `temp_${uuidv4()}`,
|
|
1021
|
-
promotionEvaluationType: 'AFTER_EVENT',
|
|
1022
|
-
sourceId: -1,
|
|
1023
|
-
promotionSourceType: '',
|
|
1024
|
-
promoIdentifer: externalIdentifier,
|
|
1025
|
-
rulesetInfo,
|
|
1026
|
-
promotionMetadata,
|
|
1027
|
-
promotionType,
|
|
1028
|
-
};
|
|
1029
|
-
return payload;
|
|
517
|
+
const onGroupItemClick = groupIds => {
|
|
518
|
+
const groupId = groupIds?.[0];
|
|
519
|
+
if (groupId) {
|
|
520
|
+
saveExpression(groupId);
|
|
521
|
+
const { group = {} } = processedRuleSets;
|
|
522
|
+
const { rules } = group[groupId] || {};
|
|
523
|
+
populateActiveRules(rules);
|
|
524
|
+
setSelectedRuleset(groupId);
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
const populateActiveRules = (
|
|
528
|
+
activeRules = [],
|
|
529
|
+
defaultSelectedRuleIndex = 0,
|
|
530
|
+
) => {
|
|
531
|
+
setSelectedRule(
|
|
532
|
+
!isEmpty(activeRules[defaultSelectedRuleIndex])
|
|
533
|
+
? {
|
|
534
|
+
...activeRules[defaultSelectedRuleIndex],
|
|
535
|
+
displayName: getConditionName(defaultSelectedRuleIndex + 1),
|
|
536
|
+
}
|
|
537
|
+
: {},
|
|
538
|
+
);
|
|
539
|
+
setRules(activeRules);
|
|
1030
540
|
};
|
|
1031
|
-
|
|
1032
|
-
useEffect(
|
|
1033
|
-
() => {
|
|
1034
|
-
if (triggerSaveRuleset) {
|
|
1035
|
-
saveExpression(null, updatedPromotionRulesets => {
|
|
1036
|
-
const clonnedPromotionFormData = cloneDeep(promotionFormData);
|
|
1037
|
-
clonnedPromotionFormData['RULESETS'] = (
|
|
1038
|
-
Object.keys(updatedPromotionRulesets?.group || {}) || []
|
|
1039
|
-
).length
|
|
1040
|
-
? updatedPromotionRulesets?.group
|
|
1041
|
-
: processedRuleSets?.group;
|
|
1042
|
-
const payload = getPayload(clonnedPromotionFormData);
|
|
1043
|
-
setPromotionPayload(payload);
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
[triggerSaveRuleset],
|
|
1048
|
-
);
|
|
1049
|
-
|
|
1050
|
-
useEffect(
|
|
1051
|
-
() => {
|
|
1052
|
-
if (
|
|
1053
|
-
getRulesetsStatus === SUCCESS &&
|
|
1054
|
-
getOrgConfigDetailsStatus === SUCCESS &&
|
|
1055
|
-
mode !== MODE_CONFIGURE &&
|
|
1056
|
-
source === SOURCE_LOYALTY
|
|
1057
|
-
) {
|
|
1058
|
-
onGroupItemClick([groups?.[0]?.key]);
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
// Ignoring dependencies for mode, source, groups & onGroupItemClick
|
|
1062
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1063
|
-
[getOrgConfigDetailsStatus, getRulesetsStatus, processedRuleSets],
|
|
1064
|
-
);
|
|
1065
|
-
|
|
1066
|
-
const getConditionName = useCallback(
|
|
1067
|
-
(index = '') => `${formatMessage(globalMessages.condition)} ${index}`,
|
|
1068
|
-
[formatMessage],
|
|
1069
|
-
);
|
|
1070
|
-
|
|
1071
|
-
const populateActiveRules = useCallback(
|
|
1072
|
-
(activeRules = [], defaultSelectedRuleIndex = 0) => {
|
|
1073
|
-
setSelectedRule(
|
|
1074
|
-
!isEmpty(activeRules[defaultSelectedRuleIndex])
|
|
1075
|
-
? {
|
|
1076
|
-
...activeRules[defaultSelectedRuleIndex],
|
|
1077
|
-
displayName: getConditionName(defaultSelectedRuleIndex + 1),
|
|
1078
|
-
}
|
|
1079
|
-
: {},
|
|
1080
|
-
);
|
|
1081
|
-
setRules(activeRules);
|
|
1082
|
-
},
|
|
1083
|
-
[setRules, setSelectedRule, getConditionName],
|
|
1084
|
-
);
|
|
1085
|
-
|
|
1086
|
-
const onGroupItemClick = useCallback(
|
|
1087
|
-
groupIds => {
|
|
1088
|
-
const groupId = groupIds?.[0];
|
|
1089
|
-
if (groupId) {
|
|
1090
|
-
saveExpression(groupId);
|
|
1091
|
-
const { group = {} } = processedRuleSets;
|
|
1092
|
-
const { rules } = group[groupId] || {};
|
|
1093
|
-
populateActiveRules(rules);
|
|
1094
|
-
setSelectedRuleset(groupId);
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
[
|
|
1098
|
-
populateActiveRules,
|
|
1099
|
-
processedRuleSets,
|
|
1100
|
-
saveExpression,
|
|
1101
|
-
setSelectedRuleset,
|
|
1102
|
-
],
|
|
1103
|
-
);
|
|
1104
541
|
|
|
1105
542
|
const populateRules = group => {
|
|
1106
543
|
if (group && group[selectedRuleset]) {
|
|
@@ -1117,22 +554,24 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1117
554
|
processedRuleSets,
|
|
1118
555
|
rulesetIds: selectedRule?.dependentRulesetIds || [],
|
|
1119
556
|
});
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
557
|
+
const payload = {
|
|
558
|
+
rule_id: ruleId,
|
|
559
|
+
event_type: eventType,
|
|
560
|
+
ruleset_id: selectedRuleset,
|
|
561
|
+
dependentRulesetIds,
|
|
562
|
+
};
|
|
563
|
+
actions.deleteCondition(programId, eventType, payload, res => {
|
|
564
|
+
if (res?.success) {
|
|
565
|
+
handleDeleteConditionOrAction(dependentRulesetIds, true);
|
|
566
|
+
CapNotification.success({
|
|
567
|
+
message: formatMessage(messages.conditionDeletedSuccess),
|
|
568
|
+
});
|
|
569
|
+
} else {
|
|
570
|
+
CapNotification.error({
|
|
571
|
+
message: formatMessage(globalMessages.errorMessage),
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
1136
575
|
};
|
|
1137
576
|
|
|
1138
577
|
const handleConditionAction = ({ createdRule, updateProcessedRulesets }) => {
|
|
@@ -1152,8 +591,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1152
591
|
ruleList.push(createdRule);
|
|
1153
592
|
}
|
|
1154
593
|
groupClone[selectedRuleset].rules = ruleList;
|
|
1155
|
-
groupClone[selectedRuleset].isPristine = false;
|
|
1156
|
-
|
|
1157
594
|
populateActiveRules(ruleList, ruleList.length - 1);
|
|
1158
595
|
setProcessedRuleSets({ ...processedRuleSets, group: groupClone });
|
|
1159
596
|
}
|
|
@@ -1161,16 +598,9 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1161
598
|
|
|
1162
599
|
const onAddCondition = updateProcessedRulesets =>
|
|
1163
600
|
actions.createRule(
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
processedRuleSets?.group?.[selectedRuleset]?.rules || []
|
|
1168
|
-
).length,
|
|
1169
|
-
userId,
|
|
1170
|
-
programId,
|
|
1171
|
-
eventType,
|
|
1172
|
-
rulesetId: selectedRuleset,
|
|
1173
|
-
},
|
|
601
|
+
programId,
|
|
602
|
+
eventType,
|
|
603
|
+
selectedRuleset,
|
|
1174
604
|
(res, createdRule) => {
|
|
1175
605
|
if (res?.success) {
|
|
1176
606
|
handleConditionAction({ createdRule, updateProcessedRulesets });
|
|
@@ -1188,52 +618,21 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1188
618
|
const saveExpressionAndCreateCondition = () => {
|
|
1189
619
|
saveExpression(null, onAddCondition);
|
|
1190
620
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
});
|
|
1200
|
-
processWorflowData([createdRuleset]);
|
|
1201
|
-
setStartRuleIdentifier(createdRuleset.name);
|
|
1202
|
-
} else {
|
|
1203
|
-
const compressedAllRulesetsData = compressData(
|
|
1204
|
-
JSON.stringify(Object.values(processedRuleSets.group)),
|
|
1205
|
-
);
|
|
1206
|
-
const compressedEventRulesetsData = compressData(
|
|
1207
|
-
JSON.stringify(
|
|
1208
|
-
rulesetsByEventType.map(data => processedRuleSets?.group?.[data?.id]),
|
|
1209
|
-
),
|
|
1210
|
-
);
|
|
1211
|
-
actions.upsertRulesets(
|
|
1212
|
-
programId,
|
|
1213
|
-
eventType,
|
|
1214
|
-
{
|
|
1215
|
-
createRootRuleset: true,
|
|
1216
|
-
allRulesetsData: compressedAllRulesetsData,
|
|
1217
|
-
eventRulesetsData: compressedEventRulesetsData,
|
|
1218
|
-
},
|
|
1219
|
-
responseData => {
|
|
1220
|
-
if (!isEmpty(responseData)) {
|
|
1221
|
-
const rulesetList = Array.isArray(responseData)
|
|
621
|
+
const onCreateNewRuleSet = () =>
|
|
622
|
+
actions.upsertRulesets(
|
|
623
|
+
programId,
|
|
624
|
+
eventType,
|
|
625
|
+
{ createRootRuleset: true },
|
|
626
|
+
responseData => {
|
|
627
|
+
if (!isEmpty(responseData)) {
|
|
628
|
+
const rulesetList = Array.isArray(responseData)
|
|
1222
629
|
? responseData
|
|
1223
630
|
: [responseData];
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
status: DRAFT,
|
|
1230
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
);
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
631
|
+
rulesetList.map(ruleset => ({ ...ruleset, eventType }));
|
|
632
|
+
processWorflowData(rulesetList);
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
);
|
|
1237
636
|
|
|
1238
637
|
const CreateNewRuleSet = () => (
|
|
1239
638
|
<CapRow className="create-ruleset-container">
|
|
@@ -1241,35 +640,48 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1241
640
|
type="flat"
|
|
1242
641
|
isAddBtn
|
|
1243
642
|
onClick={onCreateNewRuleSet}
|
|
1244
|
-
disabled={showSpin
|
|
643
|
+
disabled={showSpin}
|
|
1245
644
|
>
|
|
1246
645
|
{formatMessage(messages.createRuleset)}
|
|
1247
646
|
</CapButton>
|
|
1248
647
|
</CapRow>
|
|
1249
648
|
);
|
|
1250
649
|
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
650
|
+
const ConditionExpressionLayout = ({
|
|
651
|
+
id,
|
|
652
|
+
changeActive,
|
|
653
|
+
isActive,
|
|
654
|
+
name,
|
|
655
|
+
description,
|
|
656
|
+
handleClose,
|
|
657
|
+
}) => (
|
|
658
|
+
<ColorPatch
|
|
659
|
+
className="pointer-cursor"
|
|
660
|
+
onClick={changeActive}
|
|
661
|
+
height="88px"
|
|
662
|
+
width="100%"
|
|
663
|
+
color={isActive ? CAP_PALE_GREY : CAP_WHITE}
|
|
664
|
+
data-id={id}
|
|
665
|
+
>
|
|
666
|
+
<CapHeader
|
|
667
|
+
titleClass={classnames('condition-patch-header', {
|
|
668
|
+
selected: isActive,
|
|
669
|
+
})}
|
|
670
|
+
size="label"
|
|
671
|
+
title={name}
|
|
672
|
+
description={<EllipsisText title={description} />}
|
|
673
|
+
/>
|
|
674
|
+
<CapIcon
|
|
675
|
+
onClick={handleClose}
|
|
676
|
+
disabled={!isActive}
|
|
677
|
+
className={classnames(
|
|
678
|
+
'close-icon',
|
|
679
|
+
'lp-icon-config-workflows-remove-condition',
|
|
680
|
+
)}
|
|
681
|
+
type="close"
|
|
682
|
+
/>
|
|
683
|
+
</ColorPatch>
|
|
684
|
+
);
|
|
1273
685
|
|
|
1274
686
|
const getSelectedRuleLocal = () => {
|
|
1275
687
|
const ruleIndex = findIndex(
|
|
@@ -1318,89 +730,53 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1318
730
|
delete clonnedProcessedRuleSets.group[selectedRuleset].rules[ruleIndex]
|
|
1319
731
|
.caseToActions[!value];
|
|
1320
732
|
}
|
|
1321
|
-
clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
|
|
1322
733
|
setProcessedRuleSets(clonnedProcessedRuleSets);
|
|
1323
734
|
};
|
|
1324
735
|
|
|
1325
|
-
const
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
actions.unClaimBadge(unClaimBadgePayload, badgeId, res => {
|
|
1333
|
-
if (res?.data && isEmpty(res?.errors)) {
|
|
1334
|
-
CapNotification.success({
|
|
1335
|
-
message: formatMessage(messages.badgeUnclaimedSuccessfully, {
|
|
1336
|
-
badgeName: badgeMetaName || BADGE,
|
|
1337
|
-
})
|
|
1338
|
-
});
|
|
1339
|
-
} else {
|
|
1340
|
-
CapNotification.error({ message: res?.errors?.[0]?.message });
|
|
1341
|
-
}
|
|
736
|
+
const removeActionHandler = (actionCase, action) => {
|
|
737
|
+
// getSubRulesetIds for future reference
|
|
738
|
+
const dependentRulesetIds =
|
|
739
|
+
[] ||
|
|
740
|
+
getSubRulesetIds({
|
|
741
|
+
processedRuleSets,
|
|
742
|
+
rulesetIds: action?.dependentRulesetIds || [],
|
|
1342
743
|
});
|
|
1343
|
-
}
|
|
1344
744
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
)
|
|
1356
|
-
|
|
1357
|
-
ruleIndex
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
setProcessedRuleSets(clonnedProcessedRuleSets);
|
|
1361
|
-
if (dependentRulesetIds.length > 0) {
|
|
1362
|
-
handleDeleteConditionOrAction(
|
|
1363
|
-
dependentRulesetIds,
|
|
1364
|
-
false,
|
|
1365
|
-
clonnedProcessedRuleSets,
|
|
745
|
+
const payload = {
|
|
746
|
+
action_id: validateNumber(action?.id),
|
|
747
|
+
case_value: actionCase,
|
|
748
|
+
rule_id: validateNumber(selectedRule?.id),
|
|
749
|
+
event_type: eventType,
|
|
750
|
+
ruleset_id: validateNumber(selectedRuleset),
|
|
751
|
+
dependentRulesetIds,
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
actions.deleteAction({ payload, programId, eventType }, result => {
|
|
755
|
+
if (result?.success) {
|
|
756
|
+
const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
|
|
757
|
+
const { ruleIndex, selectedRuleLocal } = getSelectedRuleLocal();
|
|
758
|
+
const filteredCases = selectedRuleLocal[actionCase].filter(
|
|
759
|
+
ruleAction => ruleAction.id !== action.id,
|
|
1366
760
|
);
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
action?.
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
targetGroupId => targetGroupId !== TargetGroupId,
|
|
761
|
+
clonnedProcessedRuleSets.group[selectedRuleset].rules[
|
|
762
|
+
ruleIndex
|
|
763
|
+
].caseToActions[actionCase] = filteredCases;
|
|
764
|
+
// DEPENDENT RULESET ID IS ONLY FOR FORWARD TO RULE SET AND TRACKER EVALUATION
|
|
765
|
+
if (action?.dependentRulesetIds?.length > 0) {
|
|
766
|
+
handleDeleteConditionOrAction(
|
|
767
|
+
dependentRulesetIds,
|
|
768
|
+
false,
|
|
769
|
+
clonnedProcessedRuleSets,
|
|
1377
770
|
);
|
|
1378
|
-
|
|
771
|
+
} else {
|
|
772
|
+
setProcessedRuleSets(clonnedProcessedRuleSets);
|
|
1379
773
|
}
|
|
1380
|
-
}
|
|
1381
|
-
} else {
|
|
1382
|
-
const clonnedProcessedRuleSets = cloneDeep(processedRuleSets);
|
|
1383
|
-
const { ruleIndex, selectedRuleLocal } = getSelectedRuleLocal();
|
|
1384
|
-
const filteredCases = selectedRuleLocal[actionCase].filter(
|
|
1385
|
-
ruleAction => ruleAction.id !== action.id,
|
|
1386
|
-
);
|
|
1387
|
-
clonnedProcessedRuleSets.group[selectedRuleset].rules[
|
|
1388
|
-
ruleIndex
|
|
1389
|
-
].caseToActions[actionCase] = filteredCases;
|
|
1390
|
-
|
|
1391
|
-
clonnedProcessedRuleSets.group[selectedRuleset].isPristine = false;
|
|
1392
|
-
|
|
1393
|
-
// DEPENDENT RULESET ID IS ONLY FOR FORWARD TO RULE SET AND TRACKER EVALUATION
|
|
1394
|
-
if (action?.dependentRulesetIds?.length > 0) {
|
|
1395
|
-
handleDeleteConditionOrAction(
|
|
1396
|
-
dependentRulesetIds,
|
|
1397
|
-
false,
|
|
1398
|
-
clonnedProcessedRuleSets,
|
|
1399
|
-
);
|
|
1400
774
|
} else {
|
|
1401
|
-
|
|
775
|
+
CapNotification.error({
|
|
776
|
+
message: formatMessage(globalMessages.errorMessage),
|
|
777
|
+
});
|
|
1402
778
|
}
|
|
1403
|
-
}
|
|
779
|
+
});
|
|
1404
780
|
};
|
|
1405
781
|
|
|
1406
782
|
const addWhenConditionHandler = () => {
|
|
@@ -1419,16 +795,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1419
795
|
setProcessedRuleSets(clonnedProcessedRuleSets);
|
|
1420
796
|
};
|
|
1421
797
|
|
|
1422
|
-
const filterFeatureGatedActions = actionId => {
|
|
1423
|
-
switch (actionId) {
|
|
1424
|
-
case ISSUE_PROMOTION_ACTION:
|
|
1425
|
-
case ENROLL_IN_PROMOTION:
|
|
1426
|
-
return hasIssueEarnPromotionActionEnabled;
|
|
1427
|
-
default:
|
|
1428
|
-
return true;
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
798
|
const onAddActionClick = (actionCase, actions = []) => {
|
|
1433
799
|
const existingActionNames = actions.reduce((acc, { actionName }) => {
|
|
1434
800
|
// SKIP FORWARD SETS
|
|
@@ -1437,9 +803,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1437
803
|
}
|
|
1438
804
|
return acc;
|
|
1439
805
|
}, []);
|
|
1440
|
-
|
|
1441
806
|
const { group = {} } = processedRuleSets;
|
|
1442
|
-
|
|
1443
807
|
const filterActionList = getActionList({
|
|
1444
808
|
tier,
|
|
1445
809
|
groups,
|
|
@@ -1447,10 +811,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1447
811
|
currentProgram,
|
|
1448
812
|
actionDependencies,
|
|
1449
813
|
ruleset: group[selectedRuleset],
|
|
1450
|
-
|
|
1451
|
-
}).filter(actionId => !existingActionNames.includes(actionId))
|
|
1452
|
-
.filter(actionId => filterFeatureGatedActions(actionId));
|
|
1453
|
-
|
|
814
|
+
}).filter(actionId => !existingActionNames.includes(actionId));
|
|
1454
815
|
const processedActions = filterActionList
|
|
1455
816
|
.map(actionId => {
|
|
1456
817
|
const iconValue = ACTIONS_ICON_MAP[actionId];
|
|
@@ -1461,49 +822,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1461
822
|
globalMessages[actionMessageId],
|
|
1462
823
|
actionMessageId,
|
|
1463
824
|
);
|
|
1464
|
-
|
|
1465
|
-
/* Only one of the either RETURN_BILL_ACTION or REEVALUATE_REGULAR_BILL can be selected at a time */
|
|
1466
|
-
let isCardDisabled = false;
|
|
1467
|
-
let tooltipProps = {};
|
|
1468
|
-
let advanceProps = {};
|
|
1469
|
-
|
|
1470
|
-
if ([REEVALUATE_REGULAR_BILL, RETURN_BILL_ACTION].includes(actionId)) {
|
|
1471
|
-
isCardDisabled = Boolean(
|
|
1472
|
-
actions.find(action =>
|
|
1473
|
-
[REEVALUATE_REGULAR_BILL, RETURN_BILL_ACTION].includes(
|
|
1474
|
-
action?.actionName,
|
|
1475
|
-
),
|
|
1476
|
-
),
|
|
1477
|
-
);
|
|
1478
|
-
tooltipProps = {
|
|
1479
|
-
title:
|
|
1480
|
-
actionId === REEVALUATE_REGULAR_BILL
|
|
1481
|
-
? formatMessage(messages.reEvaluateActivityTooltip)
|
|
1482
|
-
: formatMessage(messages.returnBillTooltip),
|
|
1483
|
-
placement: 'bottom',
|
|
1484
|
-
overlayClassName: 're-evaluate-activity-configure-popover',
|
|
1485
|
-
getPopupContainer: trigger => trigger.parentElement,
|
|
1486
|
-
};
|
|
1487
|
-
} else if (actionId === BADGE_EARN_ACTION) {
|
|
1488
|
-
isCardDisabled = !hasBadgesEnabled;
|
|
1489
|
-
tooltipProps = {
|
|
1490
|
-
title: formatMessage(messages.disabledBadges),
|
|
1491
|
-
placement: 'bottom',
|
|
1492
|
-
overlayClassName: 'badge-earn-configure-popover',
|
|
1493
|
-
getPopupContainer: trigger => trigger.parentElement,
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
else if (actionId === AWARD_REFEREE_POINTS_ACTION || actionId === AWARD_REFERRER_POINTS_ACTION) {
|
|
1497
|
-
const isSourcePromotion = source === SOURCE_PROMOTION;
|
|
1498
|
-
isCardDisabled = isSourcePromotion;
|
|
1499
|
-
tooltipProps = {
|
|
1500
|
-
title: formatMessage(messages.disabledReferer),
|
|
1501
|
-
placement: 'bottom',
|
|
1502
|
-
overlayClassName: 'referrer-earn-configure-popover',
|
|
1503
|
-
getPopupContainer: trigger => trigger.parentElement,
|
|
1504
|
-
};
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
825
|
return {
|
|
1508
826
|
text,
|
|
1509
827
|
title: (
|
|
@@ -1514,80 +832,21 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1514
832
|
{text}
|
|
1515
833
|
</div>
|
|
1516
834
|
),
|
|
1517
|
-
icon: isIcon ?
|
|
1518
|
-
<CapIcon type={iconValue} className="action-card-icon" />
|
|
1519
|
-
) : (
|
|
1520
|
-
iconValue
|
|
1521
|
-
),
|
|
835
|
+
icon: isIcon ? <CapIcon type={iconValue} /> : iconValue,
|
|
1522
836
|
value: actionId,
|
|
1523
|
-
disabled: isCardDisabled,
|
|
1524
|
-
...(isCardDisabled && { tooltipProps }),
|
|
1525
|
-
...(Object.keys(advanceProps).length && { ...advanceProps }),
|
|
1526
837
|
};
|
|
1527
838
|
})
|
|
1528
839
|
.sort((current, next) => current.text.localeCompare(next.text));
|
|
1529
|
-
|
|
1530
|
-
let dynamicProcessedActions = [];
|
|
1531
|
-
if (
|
|
1532
|
-
alternateCurrencyFlagValue &&
|
|
1533
|
-
alternateCurrencyListData?.length > 0 &&
|
|
1534
|
-
checkForAlternateCurrencyEventType(eventType, group[selectedRuleset])
|
|
1535
|
-
) {
|
|
1536
|
-
const newAlternateCurrencyNames = alternateCurrencyListData?.filter(
|
|
1537
|
-
currency =>
|
|
1538
|
-
actions.every(
|
|
1539
|
-
action =>
|
|
1540
|
-
action.actionName !==
|
|
1541
|
-
`${ISSUE_ALTERNATE_CURRENCY}_${currency.identifier}`,
|
|
1542
|
-
),
|
|
1543
|
-
);
|
|
1544
|
-
dynamicProcessedActions = newAlternateCurrencyNames
|
|
1545
|
-
?.map(data => {
|
|
1546
|
-
const iconValue = data?.metaData?.image;
|
|
1547
|
-
const base_url = localStorage.getItem(CDN_BASE_URL);
|
|
1548
|
-
const bucket_url = localStorage.getItem(CDN_BUCKET_PATH);
|
|
1549
|
-
const cdn_suffix = localStorage.getItem(CDN_TRANSFORM_SUFFIX);
|
|
1550
|
-
const imageURL = `${base_url}/${cdn_suffix}/quality=50/${bucket_url}${iconValue}`;
|
|
1551
|
-
const isIcon = typeof iconValue === 'string';
|
|
1552
|
-
const text = formatMessage(globalMessages.alternateCurrencyNameText, {
|
|
1553
|
-
name: data?.name,
|
|
1554
|
-
});
|
|
1555
|
-
return {
|
|
1556
|
-
text,
|
|
1557
|
-
title: (
|
|
1558
|
-
<div
|
|
1559
|
-
className={classnames('truncate-text', 'action-item-text')}
|
|
1560
|
-
title={text}
|
|
1561
|
-
>
|
|
1562
|
-
{text}
|
|
1563
|
-
</div>
|
|
1564
|
-
),
|
|
1565
|
-
icon: isIcon && (
|
|
1566
|
-
<CapImage src={iconValue != 'no-image' ? imageURL : pointsDefaultImg} className="alternate-card-image" />
|
|
1567
|
-
),
|
|
1568
|
-
value: `${ISSUE_ALTERNATE_CURRENCY}_${data?.identifier}`,
|
|
1569
|
-
disabled: false,
|
|
1570
|
-
};
|
|
1571
|
-
})
|
|
1572
|
-
.sort((current, next) => current.text.localeCompare(next.text));
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
const finalProcessedActions = [
|
|
1576
|
-
...processedActions,
|
|
1577
|
-
...dynamicProcessedActions,
|
|
1578
|
-
];
|
|
1579
|
-
|
|
1580
|
-
setActionList(finalProcessedActions);
|
|
840
|
+
setActionList(processedActions);
|
|
1581
841
|
toggleShowActions();
|
|
1582
|
-
setCaseActionData({
|
|
842
|
+
setCaseActionData({
|
|
843
|
+
actionCase,
|
|
844
|
+
action: {},
|
|
845
|
+
});
|
|
1583
846
|
};
|
|
1584
847
|
|
|
1585
848
|
const toggleShowActions = () => setShowActions(!showActions);
|
|
1586
849
|
|
|
1587
|
-
const toggleCollapse = () => {
|
|
1588
|
-
setCollapse(!collapse);
|
|
1589
|
-
setCollapseKey(`collapse_${uuidv4()}`);
|
|
1590
|
-
};
|
|
1591
850
|
const onActionSelect = event => setSelectedAction(event.target.value);
|
|
1592
851
|
|
|
1593
852
|
const onShowAction = () => setShowAction(true);
|
|
@@ -1597,6 +856,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1597
856
|
setShowActions(false);
|
|
1598
857
|
setSelectedAction('');
|
|
1599
858
|
};
|
|
859
|
+
|
|
1600
860
|
const updateRuleSetByAction = (actionData, res) => {
|
|
1601
861
|
if (res?.success) {
|
|
1602
862
|
const { isEditMode } = actionData || {};
|
|
@@ -1608,7 +868,6 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1608
868
|
processedRuleSets,
|
|
1609
869
|
actionData,
|
|
1610
870
|
responseData,
|
|
1611
|
-
source,
|
|
1612
871
|
);
|
|
1613
872
|
if (isNewRuleSet) {
|
|
1614
873
|
const { group = {} } = updatedRuleSets;
|
|
@@ -1620,15 +879,9 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1620
879
|
message: formatMessage(
|
|
1621
880
|
isEditMode
|
|
1622
881
|
? globalMessages.editedSuccessfully
|
|
1623
|
-
: globalMessages.
|
|
882
|
+
: globalMessages.createdSuccessfully,
|
|
1624
883
|
),
|
|
1625
884
|
});
|
|
1626
|
-
const workflowActions = {
|
|
1627
|
-
actionData,
|
|
1628
|
-
promotionsData: promotionFormData,
|
|
1629
|
-
source,
|
|
1630
|
-
};
|
|
1631
|
-
gtmPush('workflowActions', workflowActions);
|
|
1632
885
|
} else {
|
|
1633
886
|
CapNotification.error({
|
|
1634
887
|
message: formatMessage(globalMessages.errorMessage),
|
|
@@ -1655,7 +908,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1655
908
|
let propData = {};
|
|
1656
909
|
let actionId = -1;
|
|
1657
910
|
let additionProps = {};
|
|
1658
|
-
const { actionCase, action, isEditMode = false
|
|
911
|
+
const { actionCase, action, isEditMode = false } = caseActionData;
|
|
1659
912
|
if (!isEmpty(action)) {
|
|
1660
913
|
const { id, mandatoryPropertiesValues = {} } = action;
|
|
1661
914
|
actionId = id;
|
|
@@ -1681,26 +934,20 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1681
934
|
actionType: selectedAction,
|
|
1682
935
|
ruleset: group[selectedRuleset] || {},
|
|
1683
936
|
isEditMode,
|
|
1684
|
-
// adding mode here since CONVERT_POINTS_TO_REWARDS needs this in view mode
|
|
1685
|
-
mode,
|
|
1686
|
-
// adding selectedRule here since CONVERT_POINTS_TO_REWARDS ALWAYS needs this in view mode
|
|
1687
|
-
selectedRule,
|
|
1688
937
|
UICompatibleChannels,
|
|
1689
938
|
addTrackerTags,
|
|
1690
939
|
showSenderInformation,
|
|
1691
940
|
setShowSenderInformation: handleHideSenderInformation,
|
|
1692
941
|
...additionProps,
|
|
1693
|
-
areProrateOnOptionsDisabled,
|
|
1694
|
-
billType,
|
|
1695
942
|
},
|
|
1696
943
|
eventType,
|
|
1697
944
|
updateRuleSet: updateRuleSetByAction,
|
|
1698
945
|
closeSlidebox: closeActions,
|
|
1699
946
|
errorWrapperSlideBoxClose: closeActions,
|
|
1700
|
-
source,
|
|
1701
|
-
currentProgram,
|
|
1702
947
|
};
|
|
1703
948
|
};
|
|
949
|
+
const getConditionName = (index = '') =>
|
|
950
|
+
`${formatMessage(globalMessages.condition)} ${index}`;
|
|
1704
951
|
|
|
1705
952
|
const handleDeleteConditionOrAction = (
|
|
1706
953
|
dependentRulesetIds,
|
|
@@ -1735,26 +982,10 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1735
982
|
|
|
1736
983
|
const onRefreshClick = () => {
|
|
1737
984
|
if (getRulesetsByEventTypeStatus === FAILURE) {
|
|
1738
|
-
getRulesetsByEventType(
|
|
1739
|
-
programId,
|
|
1740
|
-
status: isDraftPresent ? DRAFT : LIVE,
|
|
1741
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
1742
|
-
eventType,
|
|
1743
|
-
});
|
|
985
|
+
getRulesetsByEventType();
|
|
1744
986
|
}
|
|
1745
|
-
if (
|
|
1746
|
-
|
|
1747
|
-
getRulesetsV2({
|
|
1748
|
-
programId,
|
|
1749
|
-
status: isDraftPresent ? DRAFT : LIVE,
|
|
1750
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
1751
|
-
});
|
|
1752
|
-
else
|
|
1753
|
-
getRulesets({
|
|
1754
|
-
programId,
|
|
1755
|
-
status: isDraftPresent ? DRAFT : LIVE,
|
|
1756
|
-
endpointName: POINTSENGINE_ENDPOINT,
|
|
1757
|
-
});
|
|
987
|
+
if (getRulesetsStatus === FAILURE) {
|
|
988
|
+
getRulesets();
|
|
1758
989
|
}
|
|
1759
990
|
if (getTrackersStatus === FAILURE) {
|
|
1760
991
|
getTrackersData();
|
|
@@ -1765,21 +996,11 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1765
996
|
if (clearRulesetCacheStatus === FAILURE) {
|
|
1766
997
|
clearRulesetsCache();
|
|
1767
998
|
}
|
|
1768
|
-
if (source === SOURCE_PROMOTION && getPromotionByIdStatus === FAILURE) {
|
|
1769
|
-
getPromotionById();
|
|
1770
|
-
}
|
|
1771
|
-
if (
|
|
1772
|
-
getOrgConfigDraftDetailsStatus === FAILURE ||
|
|
1773
|
-
getOrgConfigDetailsStatus === FAILURE
|
|
1774
|
-
) {
|
|
1775
|
-
const queryParams = { status: 'LIVE, SNAPSHOT, DRAFT', limit: 5 };
|
|
1776
|
-
programSummaryActions.getOrgConfigDetails(queryParams, programId);
|
|
1777
|
-
}
|
|
1778
999
|
};
|
|
1779
1000
|
|
|
1780
1001
|
return (
|
|
1781
1002
|
<CapSpin spinning={showSpin}>
|
|
1782
|
-
{!
|
|
1003
|
+
{!['Behavioral', 'Target Loyalty'].includes(eventCategory) ? (
|
|
1783
1004
|
<ErrorBoundaryWrapper
|
|
1784
1005
|
useStyle
|
|
1785
1006
|
isApiErrorBoundary
|
|
@@ -1788,14 +1009,10 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1788
1009
|
>
|
|
1789
1010
|
<CapRow className={className}>
|
|
1790
1011
|
<CapRow className="workflow-configuration-container">
|
|
1791
|
-
<CapColumn
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
className={`groups-column ${
|
|
1796
|
-
collapse ? 'groups-column-group' : 'groups-column-set'
|
|
1797
|
-
}`}
|
|
1798
|
-
>
|
|
1012
|
+
<CapColumn span={4} className="groups-column">
|
|
1013
|
+
<CapRow className="event-view-headers">
|
|
1014
|
+
{formatMessage(messages.groups)}
|
|
1015
|
+
</CapRow>
|
|
1799
1016
|
<CapColumn
|
|
1800
1017
|
className={classnames(
|
|
1801
1018
|
'groups-column-content',
|
|
@@ -1803,101 +1020,27 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1803
1020
|
)}
|
|
1804
1021
|
>
|
|
1805
1022
|
{groups.length > 0 ? (
|
|
1806
|
-
<
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
treeData={groups}
|
|
1813
|
-
onSelect={onGroupItemClick}
|
|
1814
|
-
selectedKeys={selectedRuleset}
|
|
1815
|
-
showSwither={false}
|
|
1816
|
-
showSearch={showSearch}
|
|
1817
|
-
setSetsConditionsSearch={setSetsConditionsSearch}
|
|
1818
|
-
setsConditionsSearch={setsConditionsSearch}
|
|
1819
|
-
setSearchCounter={setSearchCounter}
|
|
1820
|
-
setSearchConditionCounter={setSearchConditionCounter}
|
|
1821
|
-
totalSearchResult={
|
|
1822
|
-
searchCounter + searchConditionCounter
|
|
1823
|
-
}
|
|
1824
|
-
searchIndex={searchIndex}
|
|
1825
|
-
setSearchIndex={setSearchIndex}
|
|
1826
|
-
processWorflowData={processWorflowData}
|
|
1827
|
-
rulesets={rulesets}
|
|
1828
|
-
eventType={eventType}
|
|
1829
|
-
source={source}
|
|
1830
|
-
/>
|
|
1831
|
-
</CapColumn>
|
|
1023
|
+
<CustomTree
|
|
1024
|
+
treeData={groups}
|
|
1025
|
+
onSelect={onGroupItemClick}
|
|
1026
|
+
selectedKeys={[selectedRuleset]}
|
|
1027
|
+
showSwither={false}
|
|
1028
|
+
/>
|
|
1832
1029
|
) : (
|
|
1833
1030
|
<CreateNewRuleSet />
|
|
1834
1031
|
)}
|
|
1835
1032
|
</CapColumn>
|
|
1836
1033
|
</CapColumn>
|
|
1837
|
-
<CapColumn
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}`}
|
|
1842
|
-
>
|
|
1034
|
+
<CapColumn span={5} className="groups-column">
|
|
1035
|
+
<CapRow className="event-view-headers">
|
|
1036
|
+
{formatMessage(messages.allConditions)}
|
|
1037
|
+
</CapRow>
|
|
1843
1038
|
<Flex className="workflow-condition-container">
|
|
1844
1039
|
<CapColumn
|
|
1845
1040
|
className={classnames('condition-column', 'custom-scroll')}
|
|
1846
1041
|
>
|
|
1847
|
-
{
|
|
1848
|
-
|
|
1849
|
-
<ConditionExpressionLayout
|
|
1850
|
-
description={formatMessage(messages.scopeSelected, {
|
|
1851
|
-
selectedData:
|
|
1852
|
-
processedRuleSets?.group[selectedRuleset]
|
|
1853
|
-
?.filterInfo?.length || '0',
|
|
1854
|
-
})}
|
|
1855
|
-
isPreviewMode
|
|
1856
|
-
isActive={selectedRule?.id === SCOPE_UPPERCASE}
|
|
1857
|
-
onClick={() => {
|
|
1858
|
-
setSelectedRule({ id: SCOPE_UPPERCASE });
|
|
1859
|
-
}}
|
|
1860
|
-
getPlainConditionTitle={getPlainConditionTitle}
|
|
1861
|
-
getHighlightedTextForConditions={
|
|
1862
|
-
getHighlightedTextForConditions
|
|
1863
|
-
}
|
|
1864
|
-
key="condition-expression-scope"
|
|
1865
|
-
name={formatMessage(messages.scopeTitle)}
|
|
1866
|
-
id={SCOPE_UPPERCASE}
|
|
1867
|
-
mode={mode}
|
|
1868
|
-
/>
|
|
1869
|
-
)}
|
|
1870
|
-
{eventType === eventTypesMap.TRANSACTIONADD &&
|
|
1871
|
-
source !== SOURCE_PROMOTION &&
|
|
1872
|
-
selectedRuleset && (
|
|
1873
|
-
<ConditionExpressionLayout
|
|
1874
|
-
description={formatMessage(messages.limitsSelected, {
|
|
1875
|
-
selectedData:
|
|
1876
|
-
processedRuleSets?.group[selectedRuleset]
|
|
1877
|
-
?.cappingInfo?.length || '0',
|
|
1878
|
-
})}
|
|
1879
|
-
isPreviewMode
|
|
1880
|
-
isActive={selectedRule?.id === CAPPING_UPPERCASE}
|
|
1881
|
-
onClick={() => {
|
|
1882
|
-
setSelectedRule({ id: CAPPING_UPPERCASE });
|
|
1883
|
-
}}
|
|
1884
|
-
getPlainConditionTitle={getPlainConditionTitle}
|
|
1885
|
-
getHighlightedTextForConditions={
|
|
1886
|
-
getHighlightedTextForConditions
|
|
1887
|
-
}
|
|
1888
|
-
key="condition-expression-capping"
|
|
1889
|
-
name={formatMessage(
|
|
1890
|
-
messages.rewardCurrencyLimitTitle,
|
|
1891
|
-
)}
|
|
1892
|
-
id={CAPPING_UPPERCASE}
|
|
1893
|
-
mode={mode}
|
|
1894
|
-
/>
|
|
1895
|
-
)}
|
|
1896
|
-
{selectedRuleset && (
|
|
1897
|
-
<CapDivider className="scope-rule-divder" />
|
|
1898
|
-
)}
|
|
1899
|
-
{(rules || []).map((rule, idx) => {
|
|
1900
|
-
const { id, caseToActions } = rule;
|
|
1042
|
+
{rules.map((rule, idx) => {
|
|
1043
|
+
const { id, exp } = rule;
|
|
1901
1044
|
const displayName = getConditionName(idx + 1);
|
|
1902
1045
|
function handleClose(event) {
|
|
1903
1046
|
onRemoveCondition(id);
|
|
@@ -1909,507 +1052,282 @@ export const WorkflowConfigurationSection = props => {
|
|
|
1909
1052
|
}
|
|
1910
1053
|
return (
|
|
1911
1054
|
<ConditionExpressionLayout
|
|
1912
|
-
description={
|
|
1913
|
-
actionsDataCount: caseToActions?.true?.length || 0,
|
|
1914
|
-
})}
|
|
1055
|
+
description={`${exp}`}
|
|
1915
1056
|
handleClose={handleClose}
|
|
1916
1057
|
isActive={selectedRule?.id === id}
|
|
1917
|
-
|
|
1918
|
-
getPlainConditionTitle={getPlainConditionTitle}
|
|
1919
|
-
getHighlightedTextForConditions={
|
|
1920
|
-
getHighlightedTextForConditions
|
|
1921
|
-
}
|
|
1058
|
+
changeActive={handleActiveChange}
|
|
1922
1059
|
key={`condition-expression-${id}`}
|
|
1923
1060
|
name={displayName}
|
|
1924
1061
|
id={id}
|
|
1925
|
-
rulesLength={rules.length}
|
|
1926
|
-
setsConditionsSearch={setsConditionsSearch}
|
|
1927
|
-
mode={mode}
|
|
1928
1062
|
/>
|
|
1929
1063
|
);
|
|
1930
1064
|
})}
|
|
1931
1065
|
</CapColumn>
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
/>
|
|
1940
|
-
</CapRow>
|
|
1941
|
-
)}
|
|
1066
|
+
<CapRow className="workflow-add-button-container">
|
|
1067
|
+
<CreateActionButton
|
|
1068
|
+
buttonText={formatMessage(globalMessages.condition)}
|
|
1069
|
+
buttonAction={saveExpressionAndCreateCondition}
|
|
1070
|
+
buttonClassName="lp-btn-config-workflows-add-condition"
|
|
1071
|
+
/>
|
|
1072
|
+
</CapRow>
|
|
1942
1073
|
</Flex>
|
|
1943
1074
|
</CapColumn>
|
|
1944
|
-
<CapColumn
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
) : (
|
|
1977
|
-
selectedRule?.id && (
|
|
1978
|
-
<Flex className="workflow-condition-container">
|
|
1979
|
-
<CapRow
|
|
1980
|
-
className={classnames(
|
|
1981
|
-
'expression-editor-container',
|
|
1982
|
-
'custom-scroll',
|
|
1983
|
-
)}
|
|
1984
|
-
>
|
|
1985
|
-
<CapHeading type="h4" className="expression-heading">
|
|
1986
|
-
{formatMessage(messages.expression)}
|
|
1987
|
-
</CapHeading>
|
|
1988
|
-
<>
|
|
1989
|
-
{showSpin ? (
|
|
1075
|
+
<CapColumn span={15} className="groups-column">
|
|
1076
|
+
<CapRow className="event-view-headers">
|
|
1077
|
+
{selectedRule?.displayName || getConditionName()}
|
|
1078
|
+
</CapRow>
|
|
1079
|
+
{selectedRule?.id && (
|
|
1080
|
+
<Flex className="workflow-condition-container">
|
|
1081
|
+
<CapRow
|
|
1082
|
+
className={classnames(
|
|
1083
|
+
'expression-editor-container',
|
|
1084
|
+
'custom-scroll',
|
|
1085
|
+
)}
|
|
1086
|
+
>
|
|
1087
|
+
<CapHeading type="h4" className="expression-heading">
|
|
1088
|
+
{formatMessage(messages.expression)}
|
|
1089
|
+
</CapHeading>
|
|
1090
|
+
<>
|
|
1091
|
+
{showSpin ? (
|
|
1092
|
+
<CapInput
|
|
1093
|
+
className="rule-editior"
|
|
1094
|
+
value={exp}
|
|
1095
|
+
disabled
|
|
1096
|
+
/>
|
|
1097
|
+
) : Object.keys(modifiedGrammer || {}).length === 0 ? (
|
|
1098
|
+
<>
|
|
1099
|
+
<CapAlert
|
|
1100
|
+
className="rule-editior"
|
|
1101
|
+
style={{ maxWidth: '396px' }}
|
|
1102
|
+
message={
|
|
1103
|
+
<FormattedMessage {...messages.emfAlert} />
|
|
1104
|
+
}
|
|
1105
|
+
type="warning"
|
|
1106
|
+
/>
|
|
1990
1107
|
<CapInput
|
|
1991
1108
|
className="rule-editior"
|
|
1992
|
-
|
|
1109
|
+
defaultValue={exp}
|
|
1993
1110
|
disabled
|
|
1994
1111
|
/>
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
1112
|
+
</>
|
|
1113
|
+
) : (
|
|
1114
|
+
<>
|
|
1115
|
+
<CapSpin
|
|
1116
|
+
spinning={
|
|
1117
|
+
expressionOnUpdate[(selectedRule?.id)] || false
|
|
1118
|
+
}
|
|
1119
|
+
>
|
|
1120
|
+
<CapExpressionEditor
|
|
1121
|
+
key={key}
|
|
1122
|
+
className={classnames(
|
|
1123
|
+
'rule-editior',
|
|
1124
|
+
'lp-config-workflows-rule-editor',
|
|
1125
|
+
)}
|
|
1126
|
+
grammar={modifiedGrammer}
|
|
1127
|
+
onChange={onExpressionEditorChange}
|
|
1128
|
+
expression={exp}
|
|
2012
1129
|
/>
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
}
|
|
2021
|
-
>
|
|
2022
|
-
<CapExpressionEditor
|
|
2023
|
-
key={key}
|
|
2024
|
-
className={classnames(
|
|
2025
|
-
'rule-editior',
|
|
2026
|
-
'lp-config-workflows-rule-editor',
|
|
2027
|
-
)}
|
|
2028
|
-
grammar={modifiedGrammer}
|
|
2029
|
-
onChange={onExpressionEditorChange}
|
|
2030
|
-
expression={exp}
|
|
2031
|
-
disabled={isPreviewMode}
|
|
2032
|
-
data-testid="workflow-rule-editor"
|
|
2033
|
-
/>
|
|
2034
|
-
{!isAiRuleWritingDisabled && (
|
|
2035
|
-
<CapAskAira.RuleSummarizationBot
|
|
2036
|
-
activity={eventType}
|
|
2037
|
-
request={request}
|
|
2038
|
-
getAPICallObject={getAPICallObject}
|
|
2039
|
-
iconPlacement="float-br"
|
|
1130
|
+
{expError && (
|
|
1131
|
+
<CapError
|
|
1132
|
+
style={{ marginTop: `${CAP_SPACE_04}` }}
|
|
1133
|
+
type="error"
|
|
1134
|
+
>
|
|
1135
|
+
<FormattedMessage
|
|
1136
|
+
{...messages.expressionErrorMessage}
|
|
2040
1137
|
/>
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
style={{ marginTop: `${CAP_SPACE_04}` }}
|
|
2046
|
-
type="error"
|
|
2047
|
-
>
|
|
2048
|
-
<FormattedMessage
|
|
2049
|
-
{...messages.invalidDaysErrorMessage}
|
|
2050
|
-
/>
|
|
2051
|
-
</CapError>
|
|
2052
|
-
)}
|
|
2053
|
-
{expError && (
|
|
2054
|
-
<CapError
|
|
2055
|
-
style={{ marginTop: `${CAP_SPACE_04}` }}
|
|
2056
|
-
type="error"
|
|
2057
|
-
>
|
|
2058
|
-
<FormattedMessage
|
|
2059
|
-
{...messages.expressionErrorMessage}
|
|
2060
|
-
/>
|
|
2061
|
-
</CapError>
|
|
2062
|
-
)}
|
|
2063
|
-
</CapSpin>
|
|
2064
|
-
</>
|
|
2065
|
-
)}
|
|
2066
|
-
</>
|
|
2067
|
-
</CapRow>
|
|
2068
|
-
<CapRow
|
|
2069
|
-
className={classnames(
|
|
2070
|
-
'action-list-container',
|
|
2071
|
-
'custom-scroll',
|
|
1138
|
+
</CapError>
|
|
1139
|
+
)}
|
|
1140
|
+
</CapSpin>
|
|
1141
|
+
</>
|
|
2072
1142
|
)}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
onClick={() =>
|
|
2107
|
-
closeWhenConditionHandler(
|
|
2108
|
-
actionCase,
|
|
2109
|
-
)
|
|
2110
|
-
}
|
|
2111
|
-
type="close"
|
|
2112
|
-
data-testid="close-workflows-config"
|
|
2113
|
-
/>
|
|
2114
|
-
</CapRow>
|
|
1143
|
+
</>
|
|
1144
|
+
</CapRow>
|
|
1145
|
+
<CapRow
|
|
1146
|
+
className={classnames(
|
|
1147
|
+
'action-list-container',
|
|
1148
|
+
'custom-scroll',
|
|
1149
|
+
)}
|
|
1150
|
+
>
|
|
1151
|
+
{Object.keys(caseToActions || []).map((actionCase, i) => {
|
|
1152
|
+
function handleAddActionClick() {
|
|
1153
|
+
onAddActionClick(
|
|
1154
|
+
actionCase,
|
|
1155
|
+
caseToActions[actionCase],
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
return (
|
|
1160
|
+
<CapRow key={`when-condition-${i}`}>
|
|
1161
|
+
<CapRow>
|
|
1162
|
+
<CapRow className="optional-text-when">
|
|
1163
|
+
<ColorPatch
|
|
1164
|
+
height={CAP_SPACE_32}
|
|
1165
|
+
color={CAP_G09}
|
|
1166
|
+
align="center"
|
|
1167
|
+
>
|
|
1168
|
+
<CapHeading>
|
|
1169
|
+
{formatMessage(globalMessages.when)}
|
|
1170
|
+
</CapHeading>
|
|
1171
|
+
<CapRow>
|
|
1172
|
+
<CapIcon
|
|
1173
|
+
className={classnames(
|
|
1174
|
+
'close-icon',
|
|
1175
|
+
'lp-icon-config-workflows-remove-when',
|
|
2115
1176
|
)}
|
|
2116
|
-
|
|
1177
|
+
onClick={() =>
|
|
1178
|
+
closeWhenConditionHandler(actionCase)
|
|
1179
|
+
}
|
|
1180
|
+
type="close"
|
|
1181
|
+
/>
|
|
2117
1182
|
</CapRow>
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
1183
|
+
</ColorPatch>
|
|
1184
|
+
</CapRow>
|
|
1185
|
+
<CapColumn
|
|
1186
|
+
className="expression-option-container"
|
|
1187
|
+
span={20}
|
|
1188
|
+
>
|
|
1189
|
+
<CapHeading>
|
|
1190
|
+
{formatMessage(globalMessages.expressionIs)}
|
|
1191
|
+
</CapHeading>
|
|
1192
|
+
<Tag
|
|
1193
|
+
className="expression-tag-content"
|
|
1194
|
+
tagText={formatMessage(globalMessages.true)}
|
|
1195
|
+
background={
|
|
1196
|
+
actionCase == 'true' ? CAP_G18 : CAP_WHITE
|
|
1197
|
+
}
|
|
1198
|
+
font={FONT_COLOR_01}
|
|
1199
|
+
height={CAP_SPACE_32}
|
|
1200
|
+
onClick={() =>
|
|
1201
|
+
actionCase == 'false' &&
|
|
1202
|
+
toggleActionCase(true)
|
|
1203
|
+
}
|
|
1204
|
+
border
|
|
1205
|
+
borderColor={CAP_G18}
|
|
1206
|
+
/>
|
|
1207
|
+
<Tag
|
|
1208
|
+
className="expression-tag-content"
|
|
1209
|
+
tagText={formatMessage(globalMessages.false)}
|
|
1210
|
+
background={
|
|
1211
|
+
actionCase == 'false' ? CAP_G18 : CAP_WHITE
|
|
1212
|
+
}
|
|
1213
|
+
font={FONT_COLOR_01}
|
|
1214
|
+
height={CAP_SPACE_32}
|
|
1215
|
+
onClick={() =>
|
|
1216
|
+
actionCase == 'true' &&
|
|
1217
|
+
toggleActionCase(false)
|
|
1218
|
+
}
|
|
1219
|
+
border
|
|
1220
|
+
borderColor={CAP_G18}
|
|
1221
|
+
/>
|
|
1222
|
+
</CapColumn>
|
|
1223
|
+
</CapRow>
|
|
1224
|
+
<CapRow>
|
|
1225
|
+
<CapSpin spinning={showActionSpinner}>
|
|
1226
|
+
<CapColumn offset={1} span={23}>
|
|
1227
|
+
{(caseToActions[actionCase] || []).map(
|
|
1228
|
+
(action, i) => {
|
|
1229
|
+
let {
|
|
1230
|
+
actionName,
|
|
1231
|
+
description,
|
|
1232
|
+
id,
|
|
1233
|
+
} = action;
|
|
1234
|
+
let dependentRulesetId = '';
|
|
1235
|
+
if (actionName === UPGRADE_SLAB_ACTION) {
|
|
1236
|
+
actionName = action?.actionType;
|
|
1237
|
+
} else if (actionName === FORWARD) {
|
|
1238
|
+
const {
|
|
1239
|
+
description: forwardDescription,
|
|
1240
|
+
dependentRulesetId: forwardDependentRulesetId,
|
|
1241
|
+
} = getForwardToRulesetActionData(
|
|
1242
|
+
action,
|
|
1243
|
+
);
|
|
1244
|
+
description = forwardDescription;
|
|
1245
|
+
dependentRulesetId = forwardDependentRulesetId;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
function handleEditActionClick() {
|
|
1249
|
+
setCaseActionData({
|
|
1250
|
+
actionCase,
|
|
1251
|
+
action,
|
|
1252
|
+
isEditMode: true,
|
|
1253
|
+
});
|
|
1254
|
+
setShowAction(true);
|
|
1255
|
+
setSelectedAction(actionName);
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
function handleRemoveActionClick() {
|
|
1259
|
+
removeActionHandler(actionCase, action);
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
function getActionIcon(icon) {
|
|
1263
|
+
return typeof ACTIONS_ICON_MAP[icon] ===
|
|
1264
|
+
'string' ? (
|
|
1265
|
+
<CapIcon
|
|
1266
|
+
style={{ color: 'black' }}
|
|
1267
|
+
type={ACTIONS_ICON_MAP[icon]}
|
|
1268
|
+
/>
|
|
1269
|
+
) : (
|
|
1270
|
+
ACTIONS_ICON_MAP[icon]
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
function handleActionContentClick() {
|
|
1275
|
+
if (
|
|
1276
|
+
actionName === FORWARD &&
|
|
1277
|
+
dependentRulesetId
|
|
1278
|
+
) {
|
|
1279
|
+
onGroupItemClick([
|
|
1280
|
+
`${dependentRulesetId}`,
|
|
1281
|
+
]);
|
|
2136
1282
|
}
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
tagText={formatMessage(
|
|
2148
|
-
globalMessages.true,
|
|
2149
|
-
)}
|
|
2150
|
-
background={
|
|
2151
|
-
actionCase == 'true'
|
|
2152
|
-
? CAP_G18
|
|
2153
|
-
: CAP_WHITE
|
|
2154
|
-
}
|
|
2155
|
-
font={FONT_COLOR_01}
|
|
2156
|
-
height={CAP_SPACE_32}
|
|
2157
|
-
onClick={() =>
|
|
2158
|
-
actionCase == 'false' &&
|
|
2159
|
-
toggleActionCase(true)
|
|
2160
|
-
}
|
|
2161
|
-
border
|
|
2162
|
-
borderColor={CAP_G18}
|
|
2163
|
-
/>
|
|
2164
|
-
<Tag
|
|
2165
|
-
className="expression-tag-content"
|
|
2166
|
-
tagText={formatMessage(
|
|
2167
|
-
globalMessages.false,
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
return (
|
|
1286
|
+
<ActionExpression
|
|
1287
|
+
id={id}
|
|
1288
|
+
title={actionName}
|
|
1289
|
+
iconType={getActionIcon(actionName)}
|
|
1290
|
+
key={`${actionName}-${i}`}
|
|
1291
|
+
actionContent={validateTitle(
|
|
1292
|
+
description,
|
|
2168
1293
|
)}
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
? CAP_G18
|
|
2172
|
-
: CAP_WHITE
|
|
1294
|
+
onRemoveAction={
|
|
1295
|
+
handleRemoveActionClick
|
|
2173
1296
|
}
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
actionCase == 'true' &&
|
|
2178
|
-
toggleActionCase(false)
|
|
1297
|
+
onEditAction={handleEditActionClick}
|
|
1298
|
+
onClickActionContent={
|
|
1299
|
+
handleActionContentClick
|
|
2179
1300
|
}
|
|
2180
|
-
border
|
|
2181
|
-
borderColor={CAP_G18}
|
|
2182
1301
|
/>
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
} = action;
|
|
2198
|
-
let dependentRulesetId = '';
|
|
2199
|
-
if (
|
|
2200
|
-
actionName === UPGRADE_SLAB_ACTION
|
|
2201
|
-
) {
|
|
2202
|
-
if (
|
|
2203
|
-
Object.getOwnPropertyNames(
|
|
2204
|
-
mandatoryPropertiesValues,
|
|
2205
|
-
).indexOf('shouldRenewSlab') > -1
|
|
2206
|
-
) {
|
|
2207
|
-
actionName = RENEW_SLAB_ACTION;
|
|
2208
|
-
} else if (
|
|
2209
|
-
Object.getOwnPropertyNames(
|
|
2210
|
-
mandatoryPropertiesValues,
|
|
2211
|
-
).indexOf('ToSlabSerialNumber') >
|
|
2212
|
-
-1
|
|
2213
|
-
) {
|
|
2214
|
-
actionName = UPGRADE_SLAB_ACTION_SLAB;
|
|
2215
|
-
} else {
|
|
2216
|
-
actionName = UPGRADE_SLAB_ACTION_STRATEGY;
|
|
2217
|
-
}
|
|
2218
|
-
} else if (actionName === FORWARD) {
|
|
2219
|
-
const {
|
|
2220
|
-
description: forwardDescription,
|
|
2221
|
-
dependentRulesetId: forwardDependentRulesetId,
|
|
2222
|
-
} = getForwardToRulesetActionData(
|
|
2223
|
-
action,
|
|
2224
|
-
);
|
|
2225
|
-
description = forwardDescription;
|
|
2226
|
-
dependentRulesetId = forwardDependentRulesetId;
|
|
2227
|
-
} else if (
|
|
2228
|
-
actionName ===
|
|
2229
|
-
CONVERT_POINTS_TO_REWARD_ACTION
|
|
2230
|
-
) {
|
|
2231
|
-
const {
|
|
2232
|
-
rewardId,
|
|
2233
|
-
brandId,
|
|
2234
|
-
} = mandatoryPropertiesValues;
|
|
2235
|
-
description = `${brandId}_${rewardId}`;
|
|
2236
|
-
}
|
|
2237
|
-
function handleEditActionClick(mode = EDIT) {
|
|
2238
|
-
setCaseActionData(
|
|
2239
|
-
{
|
|
2240
|
-
actionCase,
|
|
2241
|
-
action,
|
|
2242
|
-
isEditMode: true,
|
|
2243
|
-
// mode = 'VIEW' if the eye icon was clicked.
|
|
2244
|
-
mode,
|
|
2245
|
-
},
|
|
2246
|
-
)
|
|
2247
|
-
|
|
2248
|
-
setShowAction(true);
|
|
2249
|
-
setSelectedAction(actionName);
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
// the delete confirmation modal related functions are being used only for issue badge action as of now, therefore have not used switch case here.
|
|
2253
|
-
function getDeleteActionComfirmationModalTitle() {
|
|
2254
|
-
return formatMessage(messages.deleteIssueBadgeActionModalTitle);
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
function getDeleteActionComfirmationModalDesc() {
|
|
2258
|
-
return <CapRow>
|
|
2259
|
-
<CapLabel type="label9">
|
|
2260
|
-
{formatMessage(
|
|
2261
|
-
messages.deleteIssueBadgeActionModalDesc_1,
|
|
2262
|
-
)}
|
|
2263
|
-
</CapLabel>
|
|
2264
|
-
<CapLabel type="label9" className="delete-action-modal-secondary-desc">
|
|
2265
|
-
{formatMessage(messages.deleteIssueBadgeActionModalDesc_2)}
|
|
2266
|
-
</CapLabel>
|
|
2267
|
-
</CapRow>;
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
function getDeleteActionComfirmationModalOkBtnText() {
|
|
2271
|
-
return formatMessage(messages.deleteIssueBadgeActionModalOkBtnText);
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
function handleDeleteActionComfirmationModalOkClick() {
|
|
2275
|
-
setShowUnClaimBadgeConfirmationModal(false);
|
|
2276
|
-
removeActionHandler(actionCase, action);
|
|
2277
|
-
unClaimBadge(action);
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
function handleDeleteActionComfirmationModalCancelClick() {
|
|
2281
|
-
setShowUnClaimBadgeConfirmationModal(false);
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
function handleRemoveActionClick() {
|
|
2285
|
-
switch (actionName) {
|
|
2286
|
-
case BADGE_EARN_ACTION:
|
|
2287
|
-
setShowUnClaimBadgeConfirmationModal(true);
|
|
2288
|
-
return;
|
|
2289
|
-
default:
|
|
2290
|
-
removeActionHandler(actionCase, action);
|
|
2291
|
-
return;
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
function getActionIcon(icon) {
|
|
2296
|
-
return typeof ACTIONS_ICON_MAP[
|
|
2297
|
-
icon
|
|
2298
|
-
] === 'string' ? (
|
|
2299
|
-
<CapIcon
|
|
2300
|
-
style={{ color: 'black' }}
|
|
2301
|
-
type={ACTIONS_ICON_MAP[icon]}
|
|
2302
|
-
/>
|
|
2303
|
-
) : (
|
|
2304
|
-
ACTIONS_ICON_MAP[icon]
|
|
2305
|
-
);
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
function handleActionContentClick() {
|
|
2309
|
-
if (
|
|
2310
|
-
actionName === FORWARD &&
|
|
2311
|
-
dependentRulesetId
|
|
2312
|
-
) {
|
|
2313
|
-
onGroupItemClick([
|
|
2314
|
-
`${dependentRulesetId}`,
|
|
2315
|
-
]);
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
const showDeleteActionConfirmationModal = ACTIONS_TO_CONFIRM_BEFORE_DELETE.includes(actionName) && showUnClaimBadgeConfirmationModal;
|
|
2319
|
-
return (
|
|
2320
|
-
<>
|
|
2321
|
-
{showDeleteActionConfirmationModal && (
|
|
2322
|
-
<ConfirmationModal
|
|
2323
|
-
className={classnames(className, 'delete-action-modal')}
|
|
2324
|
-
title={getDeleteActionComfirmationModalTitle()}
|
|
2325
|
-
handleCancel={handleDeleteActionComfirmationModalCancelClick}
|
|
2326
|
-
handleClose={handleDeleteActionComfirmationModalCancelClick}
|
|
2327
|
-
handleOk={handleDeleteActionComfirmationModalOkClick}
|
|
2328
|
-
isModalVisible={showDeleteActionConfirmationModal}
|
|
2329
|
-
description={getDeleteActionComfirmationModalDesc()}
|
|
2330
|
-
image={penguin}
|
|
2331
|
-
okText={getDeleteActionComfirmationModalOkBtnText()}
|
|
2332
|
-
/>
|
|
2333
|
-
)}
|
|
2334
|
-
<ActionExpression
|
|
2335
|
-
id={id}
|
|
2336
|
-
title={actionName}
|
|
2337
|
-
iconType={getActionIcon(
|
|
2338
|
-
actionName,
|
|
2339
|
-
)}
|
|
2340
|
-
actionContent={validateTitle(
|
|
2341
|
-
description,
|
|
2342
|
-
)}
|
|
2343
|
-
onRemoveAction={
|
|
2344
|
-
handleRemoveActionClick
|
|
2345
|
-
}
|
|
2346
|
-
onEditAction={
|
|
2347
|
-
handleEditActionClick
|
|
2348
|
-
}
|
|
2349
|
-
onClickActionContent={
|
|
2350
|
-
handleActionContentClick
|
|
2351
|
-
}
|
|
2352
|
-
pId={currentProgram?.id}
|
|
2353
|
-
/>
|
|
2354
|
-
</>
|
|
2355
|
-
);
|
|
2356
|
-
},
|
|
2357
|
-
)}
|
|
2358
|
-
{!isPreviewMode ? (
|
|
2359
|
-
<CapButton
|
|
2360
|
-
className="add-action-button"
|
|
2361
|
-
type="flat"
|
|
2362
|
-
isAddBtn
|
|
2363
|
-
onClick={handleAddActionClick}
|
|
2364
|
-
>
|
|
2365
|
-
{formatMessage(
|
|
2366
|
-
globalMessages.addAction,
|
|
2367
|
-
)}
|
|
2368
|
-
</CapButton>
|
|
2369
|
-
) : (
|
|
2370
|
-
<CapRow className="margin-b-15" />
|
|
2371
|
-
)}
|
|
2372
|
-
</CapColumn>
|
|
2373
|
-
</CapSpin>
|
|
2374
|
-
</CapRow>
|
|
2375
|
-
</CapRow>
|
|
2376
|
-
);
|
|
2377
|
-
})}
|
|
2378
|
-
</CapSpin>
|
|
2379
|
-
</CapRow>
|
|
2380
|
-
{Object.keys(caseToActions || []).length < 2 &&
|
|
2381
|
-
!isPreviewMode && (
|
|
2382
|
-
<CapRow className="workflow-add-button-container">
|
|
2383
|
-
<CreateActionButton
|
|
2384
|
-
buttonText={formatMessage(globalMessages.when)}
|
|
2385
|
-
buttonAction={addWhenConditionHandler}
|
|
2386
|
-
buttonClassName="lp-btn-config-workflows-add-when-condition"
|
|
2387
|
-
/>
|
|
1302
|
+
);
|
|
1303
|
+
},
|
|
1304
|
+
)}
|
|
1305
|
+
<CapButton
|
|
1306
|
+
className="add-action-button"
|
|
1307
|
+
type="flat"
|
|
1308
|
+
isAddBtn
|
|
1309
|
+
onClick={handleAddActionClick}
|
|
1310
|
+
>
|
|
1311
|
+
{formatMessage(globalMessages.addAction)}
|
|
1312
|
+
</CapButton>
|
|
1313
|
+
</CapColumn>
|
|
1314
|
+
</CapSpin>
|
|
1315
|
+
</CapRow>
|
|
2388
1316
|
</CapRow>
|
|
2389
|
-
)
|
|
2390
|
-
|
|
2391
|
-
|
|
1317
|
+
);
|
|
1318
|
+
})}
|
|
1319
|
+
</CapRow>
|
|
1320
|
+
{Object.keys(caseToActions || []).length < 2 && (
|
|
1321
|
+
<CapRow className="workflow-add-button-container">
|
|
1322
|
+
<CreateActionButton
|
|
1323
|
+
buttonText={formatMessage(globalMessages.when)}
|
|
1324
|
+
buttonAction={addWhenConditionHandler}
|
|
1325
|
+
buttonClassName="lp-btn-config-workflows-add-when-condition"
|
|
1326
|
+
/>
|
|
1327
|
+
</CapRow>
|
|
1328
|
+
)}
|
|
1329
|
+
</Flex>
|
|
2392
1330
|
)}
|
|
2393
|
-
{
|
|
2394
|
-
<CapTooltip
|
|
2395
|
-
key={collapseKey}
|
|
2396
|
-
title={
|
|
2397
|
-
collapse
|
|
2398
|
-
? formatMessage(globalMessages.collapse)
|
|
2399
|
-
: formatMessage(globalMessages.expand)
|
|
2400
|
-
}
|
|
2401
|
-
placement="right"
|
|
2402
|
-
getPopupContainer={trigger => trigger.parentNode}
|
|
2403
|
-
mouseLeaveDelay={0}
|
|
2404
|
-
>
|
|
2405
|
-
<CapIcon
|
|
2406
|
-
type={collapse ? 'chevron-left' : 'chevron-right'}
|
|
2407
|
-
className="workflow-collapse-btn"
|
|
2408
|
-
onClick={toggleCollapse}
|
|
2409
|
-
aria-label="btn-expand"
|
|
2410
|
-
/>
|
|
2411
|
-
</CapTooltip>
|
|
2412
|
-
}
|
|
2413
1331
|
</CapColumn>
|
|
2414
1332
|
</CapRow>
|
|
2415
1333
|
{showActions && (
|
|
@@ -2438,19 +1356,17 @@ export const WorkflowConfigurationSection = props => {
|
|
|
2438
1356
|
props={getActionProps()}
|
|
2439
1357
|
action={selectedAction}
|
|
2440
1358
|
eventType={eventType}
|
|
1359
|
+
currentProgram={currentProgram}
|
|
2441
1360
|
pointStrategy={localPointStrategy}
|
|
2442
1361
|
trackersDetails={trackersDetails}
|
|
1362
|
+
extendedFields={extendedFields}
|
|
1363
|
+
ebillTemplates={ebillTemplates}
|
|
1364
|
+
labels={labels}
|
|
2443
1365
|
allowedChannels={UICompatibleChannels}
|
|
2444
1366
|
refreshStrategyData={refreshStrategyData}
|
|
2445
1367
|
pointTypeIdData={pointTypeIdData}
|
|
2446
1368
|
evaluatedTracker={evaluatedTracker}
|
|
2447
1369
|
fleetLoyaltyEnabled={fleetLoyaltyEnabled}
|
|
2448
|
-
isGenericEvent={isGenericEvent}
|
|
2449
|
-
isLineItemLevel={
|
|
2450
|
-
promotionFormData?.CREATE_PROMOTION_FORM?.type ===
|
|
2451
|
-
type.LINE_ITEM
|
|
2452
|
-
}
|
|
2453
|
-
hasQuantityOptionPresent={hasQuantityOptionPresent}
|
|
2454
1370
|
/>
|
|
2455
1371
|
</div>
|
|
2456
1372
|
)}
|
|
@@ -2474,15 +1390,7 @@ export const WorkflowConfigurationSection = props => {
|
|
|
2474
1390
|
bannerContent={
|
|
2475
1391
|
<div>
|
|
2476
1392
|
<CapLabel type="label1" className="navigation-label">
|
|
2477
|
-
{formatMessage(
|
|
2478
|
-
messages[
|
|
2479
|
-
`${
|
|
2480
|
-
hasNewUIPromotionEnabled
|
|
2481
|
-
? 'promotionBannerText'
|
|
2482
|
-
: 'promotionsNotSupportedText'
|
|
2483
|
-
}`
|
|
2484
|
-
],
|
|
2485
|
-
)}
|
|
1393
|
+
{formatMessage(messages.PromotionsNotSupportedText)}
|
|
2486
1394
|
</CapLabel>
|
|
2487
1395
|
</div>
|
|
2488
1396
|
}
|
|
@@ -2510,26 +1418,14 @@ WorkflowConfigurationSection.propTypes = {
|
|
|
2510
1418
|
setIsSaveDisabled: PropTypes.func,
|
|
2511
1419
|
isSaveDisabled: PropTypes.bool,
|
|
2512
1420
|
fleetLoyaltyEnabled: PropTypes.bool,
|
|
2513
|
-
source: PropTypes.string,
|
|
2514
|
-
triggerSaveExpression: PropTypes.bool,
|
|
2515
|
-
isPromotionEditFlow: PropTypes.bool,
|
|
2516
|
-
triggerSaveRuleset: PropTypes.bool,
|
|
2517
|
-
promotionFormData: PropTypes.object,
|
|
2518
|
-
promotionRulesets: PropTypes.array,
|
|
2519
|
-
setShowPublishAndActivateModal: PropTypes.func,
|
|
2520
|
-
areProrateOnOptionsDisabled: PropTypes.bool,
|
|
2521
|
-
billType: PropTypes.string,
|
|
2522
1421
|
};
|
|
2523
1422
|
|
|
2524
1423
|
WorkflowConfigurationSection.defaultProps = {
|
|
2525
1424
|
selectedRuleset: '',
|
|
2526
1425
|
processedRuleSets: { group: {} },
|
|
2527
1426
|
setProcessedRuleSets: () => {},
|
|
2528
|
-
showSearch: 'none',
|
|
2529
1427
|
setIsSaveDisabled: () => {},
|
|
2530
1428
|
isSaveDisabled: false,
|
|
2531
|
-
areProrateOnOptionsDisabled: false,
|
|
2532
|
-
billType: '',
|
|
2533
1429
|
};
|
|
2534
1430
|
|
|
2535
1431
|
const mapStateToProps = createStructuredSelector({
|
|
@@ -2537,29 +1433,22 @@ const mapStateToProps = createStructuredSelector({
|
|
|
2537
1433
|
userData: makeSelectCap(),
|
|
2538
1434
|
trackersData: makeSelectTrackers(),
|
|
2539
1435
|
workflowData: makeSelectConfigWorkflow(),
|
|
1436
|
+
extendedFieldsData: makeSelectExtendedFields(),
|
|
1437
|
+
ebillTemplatesData: makeSelectEbillTemplates(),
|
|
1438
|
+
labelData: makeSelectLabels(),
|
|
2540
1439
|
deleteActionData: makeSelectDeleteAction(),
|
|
2541
1440
|
deleteConditionData: makeSelectDeleteCondition(),
|
|
2542
1441
|
actionDetailsData: makeSelectUpsertAction(),
|
|
2543
1442
|
expressionOnUpdate: makeSelectExpressionOnUpdate(),
|
|
2544
1443
|
remountExpEditor: makeSelectRemountExpEditor(),
|
|
2545
|
-
isScrolling: makeSelectIsScrolling(),
|
|
2546
|
-
dynamicWidth: makeSelectDynamicWidth(),
|
|
2547
|
-
toggleOnAction: makeSelectToggleOnAction(),
|
|
2548
|
-
orgConfigDetails: makeSelectOrgConfigDetails(),
|
|
2549
|
-
alternateCurrencyList: makeSelectAlternateCurrencyList(),
|
|
2550
|
-
alternateCurrencyFlag: makeSelectAlternateCurrencyFlagStatus(),
|
|
2551
|
-
targetGroupData: makeSelectTargetGroups(),
|
|
2552
1444
|
});
|
|
2553
1445
|
|
|
2554
1446
|
function mapDispatchToProps(dispatch) {
|
|
2555
1447
|
return {
|
|
2556
1448
|
actions: bindActionCreators(actions, dispatch),
|
|
2557
1449
|
capActions: bindActionCreators(capActions, dispatch),
|
|
1450
|
+
tiersActions: bindActionCreators(tiersActions, dispatch),
|
|
2558
1451
|
programSummaryActions: bindActionCreators(programSummaryActions, dispatch),
|
|
2559
|
-
targetGroupsActionsMappedAction: bindActionCreators(
|
|
2560
|
-
targetGroupsActionsMappedAction,
|
|
2561
|
-
dispatch,
|
|
2562
|
-
),
|
|
2563
1452
|
};
|
|
2564
1453
|
}
|
|
2565
1454
|
|
|
@@ -2567,24 +1456,15 @@ const withConnect = connect(
|
|
|
2567
1456
|
mapStateToProps,
|
|
2568
1457
|
mapDispatchToProps,
|
|
2569
1458
|
);
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
const withReducer = [
|
|
2576
|
-
{ key: 'configureWorkflow', reducer },
|
|
2577
|
-
{
|
|
2578
|
-
key: 'targetPointAllocation',
|
|
2579
|
-
reducer: targetPointAllocationWorkflowReducer,
|
|
2580
|
-
},
|
|
2581
|
-
].map(reducer => injectReducer(reducer));
|
|
1459
|
+
|
|
1460
|
+
const withSaga = injectSaga({ key: 'configureWorkflow', saga });
|
|
1461
|
+
const withReducer = injectReducer({ key: 'configureWorkflow', reducer });
|
|
1462
|
+
|
|
2582
1463
|
export default withErrorBoundary(
|
|
2583
1464
|
compose(
|
|
2584
|
-
|
|
2585
|
-
|
|
1465
|
+
withSaga,
|
|
1466
|
+
withReducer,
|
|
2586
1467
|
withConnect,
|
|
2587
|
-
withRouter,
|
|
2588
1468
|
)(
|
|
2589
1469
|
injectIntl(
|
|
2590
1470
|
clearDataOnUnmount(withStyles(WorkflowConfigurationSection, styles)),
|