@capillarytech/creatives-library 7.14.32 → 7.14.35

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 (35) 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 +11 -8
  5. package/package.json +1 -1
  6. package/services/api.js +9 -1
  7. package/translations/en.json +192 -4
  8. package/translations/ja-JP.json +2013 -0
  9. package/translations/zh.json +191 -3
  10. package/v2Components/CapVideoUpload/index.scss +0 -5
  11. package/v2Components/FormBuilder/index.js +28 -4
  12. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +193 -4
  13. package/v2Containers/CreativesContainer/constants.js +2 -0
  14. package/v2Containers/CreativesContainer/index.js +2 -2
  15. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
  16. package/v2Containers/CreativesContainer/tests/index.test.js +28 -0
  17. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +582 -12
  18. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +386 -8
  19. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3281 -68
  20. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +3474 -72
  21. package/v2Containers/Rcs/messages.js +1 -1
  22. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +9142 -253
  23. package/v2Containers/Sms/Create/actions.js +9 -0
  24. package/v2Containers/Sms/Create/constants.js +2 -0
  25. package/v2Containers/Sms/Create/index.js +12 -0
  26. package/v2Containers/Sms/Create/sagas.js +19 -3
  27. package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
  28. package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +772 -16
  29. package/v2Containers/SmsTrai/Create/tests/selectors.test.js +10 -0
  30. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +1544 -32
  31. package/v2Containers/Templates/messages.js +2 -2
  32. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
  33. package/v2Containers/Whatsapp/index.js +1 -1
  34. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +13755 -284
  35. 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',