@capillarytech/creatives-library 7.15.3 → 7.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
  2. package/containers/LanguageProvider/index.js +2 -0
  3. package/containers/LanguageProvider/tests/index.test.js +1 -0
  4. package/i18n.js +7 -2
  5. package/package.json +1 -1
  6. package/reducers.js +2 -0
  7. package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +420 -0
  8. package/tests/integration/TemplateCreation/api-response.js +1663 -0
  9. package/tests/integration/TemplateCreation/helper.js +23 -0
  10. package/tests/integration/TemplateCreation/mocks/initialState.js +428 -0
  11. package/tests/integration/TemplateCreation/msw-handler.js +48 -0
  12. package/translations/en.json +192 -4
  13. package/translations/ja-JP.json +2013 -0
  14. package/translations/zh.json +191 -3
  15. package/v2Components/CapActionButton/index.js +1 -0
  16. package/v2Components/CapVideoUpload/index.scss +0 -5
  17. package/v2Containers/Assets/Gallery/index.js +1 -1
  18. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
  19. package/v2Containers/CreativesContainer/index.js +2 -2
  20. package/v2Containers/CreativesContainer/selectors.js +2 -2
  21. package/v2Containers/CreativesContainer/tests/index.test.js +28 -0
  22. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +579 -12
  23. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +386 -8
  24. package/v2Containers/Line/Container/Text/index.js +3 -2
  25. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3285 -68
  26. package/v2Containers/Line/Container/index.js +1 -1
  27. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3474 -72
  28. package/v2Containers/Rcs/index.js +3 -0
  29. package/v2Containers/Rcs/messages.js +1 -1
  30. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +9374 -250
  31. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +772 -16
  32. package/v2Containers/SmsTrai/Create/tests/selectors.test.js +10 -0
  33. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1544 -32
  34. package/v2Containers/Templates/index.js +2 -3
  35. package/v2Containers/Templates/messages.js +2 -2
  36. package/v2Containers/TemplatesV2/index.js +1 -1
  37. package/v2Containers/Viber/index.js +1 -0
  38. package/v2Containers/Whatsapp/index.js +0 -1
  39. package/v2Containers/Whatsapp/messages.js +1 -1
  40. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +13703 -284
  41. package/v2Containers/mockdata.js +128 -0
@@ -817,6 +817,118 @@ export default {
817
817
  },
818
818
  ],
819
819
  },
820
+ smsTemplates: {
821
+ getAllTemplatesInProgress: false,
822
+ weCrmAccountFetchingError: false,
823
+ weCRMtemplates: [],
824
+ userList: {
825
+ orgUsers: [
826
+ {
827
+ userId: 50012994,
828
+ firstName: 'firstUser',
829
+ lastName: '',
830
+ loginName: 'firstUser@capillarytech.com',
831
+ email: 'firstUser@capillarytech.com',
832
+ mobile: '918888802132',
833
+ isMobileValidated: 0,
834
+ isEmailValidated: 0,
835
+ },
836
+ ],
837
+ capUsers: [
838
+ {
839
+ userId: 15000449,
840
+ firstName: 'Ashish',
841
+ lastName: 'Karan fd',
842
+ loginName: 'cap@coin.com',
843
+ email: 'cap@coin.com',
844
+ mobile: '919957676767',
845
+ isMobileValidated: 1,
846
+ isEmailValidated: 1,
847
+ },
848
+ ],
849
+ },
850
+ templateError: {},
851
+ fetchingWeCrmAccounts: false,
852
+ fetchingUserList: false,
853
+ isSearch: false,
854
+ userListFetchError: false,
855
+ templates: [
856
+ {
857
+ _id: '623c39e970387f3cf5f8fd70',
858
+ name: 'testtest',
859
+ type: 'SMS',
860
+ versions: {
861
+ $init: true,
862
+ history: [],
863
+ base: {
864
+ },
865
+ },
866
+ isActive: true,
867
+ orgId: 50146,
868
+ createdBy: '15000449',
869
+ updatedBy: '15000449',
870
+ createdAt: '2022-03-24T09:29:13.376Z',
871
+ updatedAt: '2022-03-29T11:15:53.175Z',
872
+ totalCount: 10,
873
+ },
874
+ ],
875
+ },
876
+ emailTemplates: {
877
+ getAllTemplatesInProgress: false,
878
+ weCrmAccountFetchingError: false,
879
+ weCRMtemplates: [],
880
+ userList: {
881
+ orgUsers: [
882
+ {
883
+ userId: 50012994,
884
+ firstName: 'firstUser',
885
+ lastName: '',
886
+ loginName: 'firstUser@capillarytech.com',
887
+ email: 'firstUser@capillarytech.com',
888
+ mobile: '918888802132',
889
+ isMobileValidated: 0,
890
+ isEmailValidated: 0,
891
+ },
892
+ ],
893
+ capUsers: [
894
+ {
895
+ userId: 15000449,
896
+ firstName: 'Ashish',
897
+ lastName: 'Karan fd',
898
+ loginName: 'cap@coin.com',
899
+ email: 'cap@coin.com',
900
+ mobile: '919957676767',
901
+ isMobileValidated: 1,
902
+ isEmailValidated: 1,
903
+ },
904
+ ],
905
+ },
906
+ templateError: {},
907
+ fetchingWeCrmAccounts: false,
908
+ fetchingUserList: false,
909
+ isSearch: false,
910
+ userListFetchError: false,
911
+ templates: [
912
+ {
913
+ _id: '623c39e970387f3cf5f8fd70',
914
+ name: 'testtest',
915
+ type: 'EMAIL',
916
+ versions: {
917
+ $init: true,
918
+ history: [],
919
+ base: {
920
+ },
921
+ },
922
+ isActive: true,
923
+ orgId: 50146,
924
+ createdBy: '15000449',
925
+ updatedBy: '15000449',
926
+ createdAt: '2022-03-24T09:29:13.376Z',
927
+ updatedAt: '2022-03-29T11:15:53.175Z',
928
+ totalCount: 10,
929
+ },
930
+ ],
931
+ },
820
932
  whatsappEditTemplateData: {
821
933
  mode: 'edit',
822
934
  _id: '620e213d39bd394c58aeaaca',
@@ -1008,6 +1120,22 @@ export default {
1008
1120
  channel: 'RCS',
1009
1121
  validity: true,
1010
1122
  },
1123
+ smsEditTemplateData: {
1124
+ mode: 'edit',
1125
+ _id: '620e213d39bd394c58aeaaca',
1126
+ modeType: '',
1127
+ type: 'SMS',
1128
+ channel: 'SMS',
1129
+ validity: true,
1130
+ },
1131
+ emailEditTemplateData: {
1132
+ mode: 'edit',
1133
+ _id: '620e213d39bd394c58aeaaca',
1134
+ modeType: '',
1135
+ type: 'EMAIL',
1136
+ channel: 'EMAIL',
1137
+ validity: true,
1138
+ },
1011
1139
  getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
1012
1140
  getWhatsappStatusOutput1: {
1013
1141
  key: 'approved',