@capillarytech/creatives-library 6.9.9 → 6.10.1

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 (75) hide show
  1. package/components/CapTagList/index.js +1 -1
  2. package/components/Edmeditor/index.js +1 -1
  3. package/components/FormBuilder/index.js +1 -0
  4. package/containers/TagList/index.js +3 -3
  5. package/index.html +0 -3
  6. package/package.json +1 -2
  7. package/services/api.js +1 -16
  8. package/v2Components/CapTagList/index.js +26 -55
  9. package/v2Components/CmsTemplatesComponent/index.js +4 -4
  10. package/v2Components/Edmeditor/index.js +1 -1
  11. package/v2Components/EmailPreview/_emailPreview.scss +2 -2
  12. package/v2Components/FormBuilder/index.js +43 -78
  13. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +151 -151
  14. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +33 -33
  15. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -10
  16. package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +44 -44
  17. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -21
  18. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -16
  19. package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +134 -134
  20. package/v2Components/TemplatePreview/assets/images/mobile.svg +23 -23
  21. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -22
  22. package/v2Components/TemplatePreview/assets/images/user-icon.svg +18 -18
  23. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -21
  24. package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +77 -77
  25. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -20
  26. package/v2Components/TemplatePreview/tests/index.test.js +10 -10
  27. package/v2Containers/App/constants.js +0 -1
  28. package/v2Containers/CreativesContainer/SlideBoxFooter.js +51 -51
  29. package/v2Containers/CreativesContainer/actions.js +27 -27
  30. package/v2Containers/CreativesContainer/constants.js +17 -17
  31. package/v2Containers/CreativesContainer/index.js +2 -7
  32. package/v2Containers/CreativesContainer/index.scss +44 -44
  33. package/v2Containers/CreativesContainer/messages.js +305 -305
  34. package/v2Containers/CreativesContainer/reducer.js +29 -29
  35. package/v2Containers/CreativesContainer/sagas.js +11 -11
  36. package/v2Containers/CreativesContainer/selectors.js +30 -30
  37. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -18
  38. package/v2Containers/CreativesContainer/tests/index.test.js +10 -10
  39. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -9
  40. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -15
  41. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -10
  42. package/v2Containers/Email/constants.js +0 -1
  43. package/v2Containers/Email/index.js +116 -170
  44. package/v2Containers/Email/initialSchema.js +3 -18
  45. package/v2Containers/Email/sagas.js +2 -2
  46. package/v2Containers/Email/selectors.js +0 -5
  47. package/v2Containers/EmailWrapper/index.js +3 -19
  48. package/v2Containers/Line/Container/Image/index.js +1 -1
  49. package/v2Containers/TagList/index.js +6 -13
  50. package/v2Containers/Templates/actions.js +117 -122
  51. package/v2Containers/Templates/constants.js +47 -49
  52. package/v2Containers/Templates/index.js +20 -36
  53. package/v2Containers/Templates/messages.js +0 -8
  54. package/v2Containers/Templates/reducer.js +145 -153
  55. package/v2Containers/Templates/sagas.js +179 -179
  56. package/v2Containers/Templates/selectors.js +1 -19
  57. package/v2Containers/Templates/tests/actions.test.js +18 -18
  58. package/v2Containers/Templates/tests/index.test.js +10 -10
  59. package/v2Containers/Templates/tests/reducer.test.js +9 -9
  60. package/v2Containers/Templates/tests/sagas.test.js +15 -15
  61. package/v2Containers/Templates/tests/selectors.test.js +10 -10
  62. package/v2Containers/TemplatesV2/TemplatesV2.style.js +29 -29
  63. package/v2Containers/TemplatesV2/actions.js +16 -16
  64. package/v2Containers/TemplatesV2/constants.js +10 -10
  65. package/v2Containers/TemplatesV2/messages.js +61 -61
  66. package/v2Containers/TemplatesV2/selectors.js +25 -25
  67. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -18
  68. package/v2Containers/TemplatesV2/tests/index.test.js +10 -10
  69. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -9
  70. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -15
  71. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -10
  72. package/v2Components/BeeEditor/index.js +0 -280
  73. package/v2Components/BeeEditor/index.scss +0 -11
  74. package/v2Components/BeeEditor/messages.js +0 -71
  75. package/v2Components/BeeEditor/tests/index.test.js +0 -10
@@ -199,24 +199,9 @@ export const response = {
199
199
  "getEditorInstanse",
200
200
  ],
201
201
  },
202
- // will remove once bee gets tested end to end
203
- // {
204
- // id: "edmeditor",
205
- // type: "edmeditor",
206
- // metaType: "text",
207
- // datatype: "string",
208
- // required: true,
209
- // onlyDisplay: true,
210
- // standalone: false,
211
- // width: 24,
212
- // order: 2,
213
- // customComponent: true,
214
- // colStyle: { display: "none" },
215
- // supportedEvents: [],
216
- // },
217
202
  {
218
- id: "BEEeditor",
219
- type: "BEEeditor",
203
+ id: "edmeditor",
204
+ type: "edmeditor",
220
205
  metaType: "text",
221
206
  datatype: "string",
222
207
  required: true,
@@ -380,7 +365,7 @@ export const response = {
380
365
  styling: "semantic",
381
366
  order: 3,
382
367
  width: 2,
383
- offset: 4,
368
+ offset: 1,
384
369
  fluid: false,
385
370
  onlyDisplay: true,
386
371
  submitAction: "onTabOptionSelect",
@@ -53,7 +53,7 @@ export function* getAllAssets(assetType, queryParams) {
53
53
 
54
54
  export function* getCmsSetting({cmsType, projectId, cmsMode, langId, isEdmSupport}) {
55
55
  try {
56
- const result = yield call(Api.getCmsTemplateSettingsV2, cmsType, projectId, cmsMode, langId, isEdmSupport);
56
+ const result = yield call(Api.getCmsTemplateSettings, cmsType, projectId, cmsMode, langId, isEdmSupport);
57
57
 
58
58
  yield put({ type: types.GET_CMS_EDITOR_DETAILS_SUCCESS, settings: result.data.response.cmsDetails });
59
59
  } catch (error) {
@@ -63,7 +63,7 @@ export function* getCmsSetting({cmsType, projectId, cmsMode, langId, isEdmSuppor
63
63
 
64
64
  export function* getCmsData({cmsType, projectId, langId}) {
65
65
  try {
66
- const result = yield call(Api.getCmsTemplateDataV2, cmsType, projectId, langId);
66
+ const result = yield call(Api.getCmsTemplateData, cmsType, projectId, langId);
67
67
 
68
68
  yield put({ type: types.GET_CMS_EDITOR_DATA_SUCCESS, data: result.data.response.data, langId: result.data.response.langId });
69
69
  } catch (error) {
@@ -26,14 +26,9 @@ const selectLoadingStatus = () => createSelector(
26
26
  selectEmailDomain(), (email) => email.createTemplateInProgress || (email.assetUploading !== undefined && email.assetUploading)
27
27
  );
28
28
 
29
- const makeSelectFetchingCmsData = () => createSelector(
30
- selectEmailDomain(), (state) => state.get('fetchingCmsData')
31
- );
32
-
33
29
  export default makeSelectEmail;
34
30
  export {
35
31
  makeSelectEmail,
36
32
  makeSelectCreateResponse,
37
33
  selectLoadingStatus,
38
- makeSelectFetchingCmsData,
39
34
  };
@@ -15,13 +15,7 @@ import styled from 'styled-components';
15
15
  import { CapRadioCard, CapNotification, CapInput, CapUploader, CapSpin, CapButton } from '@capillarytech/cap-ui-library';
16
16
  import ComponentWithLabelHOC from '@capillarytech/cap-ui-library/assets/HOCs/ComponentWithLabelHOC';
17
17
  import { UserIsAuthenticated } from '../../utils/authWrapper';
18
- import {
19
- selectEmailLayout,
20
- selectCmsTemplates,
21
- selectEdmEditor,
22
- uploadSelector,
23
- selectCmsTemplatesLoader,
24
- } from '../Templates/selectors';
18
+ import { selectEmailLayout, selectCmsTemplates, selectEdmEditor, uploadSelector } from '../Templates/selectors';
25
19
  import * as templatesActionsCreators from '../Templates/actions';
26
20
  import Email from '../Email';
27
21
  import CmsTemplatesComponent from '../../v2Components/CmsTemplatesComponent';
@@ -82,7 +76,7 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
82
76
  //document.getElementById('upload-email-template').click();
83
77
  } else if (step === "templateSelection" && !this.state.selectedCreateMode) {
84
78
  if (emailCreateMode === "editor" && !CmsTemplates) {
85
- templatesActions.getDefaultBeeTemplates();
79
+ templatesActions.getEdmDefaultTemplates();
86
80
  }
87
81
  } else if (step === "createTemplateContent" && !this.state.selectedCreateMode) {
88
82
  if (emailCreateMode === 'upload' && !_.isEmpty(EmailLayout)) {
@@ -162,7 +156,6 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
162
156
  const data = _.find(CmsTemplates, { _id: id });
163
157
 
164
158
  templatesActions.setEdmTemplate(data);
165
- templatesActions.setBEETemplate(data);
166
159
  this.setState({
167
160
  selectedCreateMode: 'editor',
168
161
  });
@@ -195,7 +188,6 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
195
188
  selectedOfferDetails,
196
189
  onPreviewContentClicked,
197
190
  onTestContentClicked,
198
- cmsTemplatesLoader,
199
191
  } = this.props;
200
192
  const {
201
193
  templateName,
@@ -214,7 +206,6 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
214
206
  value={templateName}
215
207
  labelPosition="top"
216
208
  size="default"
217
- style={{ width: '68%'}}
218
209
  />
219
210
  }
220
211
  <CardContainer>
@@ -260,13 +251,7 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
260
251
  onPreviewContentClicked={onPreviewContentClicked}
261
252
  onTestContentClicked={onTestContentClicked}
262
253
  />}
263
- {!isShowEmailCreate && (
264
- <CmsTemplatesComponent
265
- cmsTemplates={CmsTemplates}
266
- handleEdmDefaultTemplateSelection={this.useEditor}
267
- cmsTemplatesLoader={cmsTemplatesLoader}
268
- />
269
- )}
254
+ {CmsTemplates && !isShowEmailCreate && <CmsTemplatesComponent cmsTemplates={CmsTemplates} handleEdmDefaultTemplateSelection={this.useEditor} />}
270
255
  </div>
271
256
  }
272
257
  </CapSpin>
@@ -304,7 +289,6 @@ const mapStateToProps = createStructuredSelector({
304
289
  CmsTemplates: selectCmsTemplates(),
305
290
  SelectedEdmDefaultTemplate: selectEdmEditor(),
306
291
  isUploading: uploadSelector(),
307
- cmsTemplatesLoader: selectCmsTemplatesLoader(),
308
292
  });
309
293
 
310
294
  function mapDispatchToProps(dispatch) {
@@ -87,7 +87,7 @@ export const LineImage = ({
87
87
  if (Line.uploadedAssetData && Object.keys(Line.uploadedAssetData).length) {
88
88
  const imgSrc = get(Line, 'uploadedAssetData.metaInfo.secure_file_path', '');
89
89
  const imgPreview = get(Line, 'uploadedAssetData.metaInfo.secure_file_path_preview', '');
90
- if (imsSrc) {
90
+ if (imgSrc) {
91
91
  updateUploadedAssetList({
92
92
  ...uploadedAssetList,
93
93
  [index]: {
@@ -66,25 +66,24 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
66
66
  }
67
67
 
68
68
  populateTags(tagsList) {
69
- console.log('populating tags', (tagsList || []).length);
69
+ console.log('populating tags', tagsList);
70
70
  const mainTags = {};
71
71
 
72
72
  //Form tags object with tag headers
73
73
  _.forEach(tagsList, (temp) => {
74
74
  const tag = temp.definition;
75
- const { userLocale } = this.props;
76
75
  if (!tag['tag-header']) {
77
76
  mainTags[tag.value] = {
78
- name: tag.label[userLocale] ? tag.label[userLocale] : tag.label.en,
77
+ name: tag.label[this.props.userLocale] ? tag.label[this.props.userLocale] : tag.label.en,
79
78
  desc: tag.desc ? tag.desc : tag.label.en,
80
79
  };
81
80
  } else if (tag['tag-header'] && mainTags[tag.value]) {
82
81
  mainTags[tag.value].subtags = _.concat(mainTags[tag.value].subtags, tag.subtags);
83
82
  } else if (!mainTags[tag.value]) {
84
- // console.log('Inside ', tag.label);
83
+ console.log('Inside ', tag.label);
85
84
  mainTags[tag.value] = {
86
85
  'tag-header': true,
87
- "name": tag.label[userLocale] ? tag.label[userLocale] : tag.label.en,
86
+ "name": tag.label[this.props.userLocale] ? tag.label[this.props.userLocale] : tag.label.en,
88
87
  "desc": tag.desc ? tag.desc : tag.label.en,
89
88
  "subtags": tag.subtags,
90
89
  };
@@ -229,13 +228,13 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
229
228
  }
230
229
  if (this.props.tags && this.props.tags.length > 0) {
231
230
  tags = this.populateTags(this.props.tags);
232
- console.log('populating tags', Object.keys(tags || {}).length);
231
+ console.log('populating tags', tags);
233
232
  }
234
233
  if (this.props.selectedOfferDetails && !_.isEmpty(this.props.selectedOfferDetails) && (tags && tags.coupon)) {
235
234
  this.transformCouponTags(this.props.selectedOfferDetails, tags);
236
235
  }
237
236
  tags = _.merge( {}, tags, injectedTags);
238
- console.log('merged tags', Object.keys(tags || {}).length);
237
+ console.log('merged tags', tags);
239
238
  return (
240
239
  <div className={this.props.className ? this.props.className : ''}>
241
240
  <CapTagList
@@ -243,11 +242,8 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
243
242
  tags={tags}
244
243
  onSelect={this.onSelect}
245
244
  label={this.props.label}
246
- visibleTaglist={this.props.visibleTaglist}
247
- hidePopover={this.props.hidePopover}
248
245
  onContextChange={this.getTagsforContext}
249
246
  moduleFilterEnabled={this.props.moduleFilterEnabled}
250
- modalProps={this.props.modalProps}
251
247
  />
252
248
  </div>
253
249
  );
@@ -269,9 +265,6 @@ TagList.propTypes = {
269
265
  className: PropTypes.string,
270
266
  userLocale: PropTypes.string,
271
267
  selectedOfferDetails: PropTypes.array,
272
- visibleTaglist: PropTypes.bool,
273
- hidePopover: PropTypes.bool,
274
- modalProps: PropTypes.any,
275
268
  };
276
269
 
277
270
  const mapStateToProps = createStructuredSelector({
@@ -1,122 +1,117 @@
1
- /*
2
- *
3
- * Templates actions
4
- *
5
- */
6
-
7
- import * as types from './constants';
8
-
9
- export function getAllTemplates(channel, queryParams) {
10
- console.log('get all templates action trigereed', channel, queryParams);
11
- return {
12
- type: types.GET_ALL_TEMPLATES_REQUEST, channel, queryParams,
13
- };
14
- }
15
-
16
- export function resetTemplate() {
17
- return {
18
- type: types.RESET_TEMPLATE,
19
- };
20
- }
21
-
22
- export function resetAccount() {
23
- return {
24
- type: types.RESET_ACCOUNT,
25
- };
26
- }
27
-
28
- export function deleteTemplate(channel, id) {
29
- console.log('delete template action trigereed', channel, id);
30
- return {
31
- type: types.DELETE_TEMPLATE_REQUEST, channel, id,
32
- };
33
- }
34
-
35
- export function getUserList() {
36
- return {
37
- type: types.GET_USER_LIST_REQUEST,
38
- };
39
- }
40
-
41
- export function getWeCrmAccounts(source) {
42
- return {
43
- type: types.GET_WECRM_ACCOUNTS_REQUEST, source,
44
- };
45
- }
46
-
47
- export function setWeChatAccount(weChatAccount) {
48
- console.log('setting wechat account', weChatAccount);
49
- return {
50
- type: types.SET_WECHAT_ACCOUNT,
51
- weChatAccount,
52
- };
53
- }
54
-
55
- export function setLineAccount(lineAccount) {
56
- return {
57
- type: types.SET_LINE_ACCOUNT,
58
- lineAccount,
59
- };
60
- }
61
-
62
- export function handleHtmlUpload(selectedTemplate) {
63
- return {
64
- type: types.SET_SELECTED_LAYOUT,
65
- selectedTemplate,
66
- };
67
- }
68
-
69
- export function handleZipUpload(selectedFile, successHandler, errorHandler) {
70
- return {
71
- type: types.SEND_ZIPPED_FILE_REQUEST,
72
- selectedFile,
73
- successHandler,
74
- errorHandler,
75
- };
76
- }
77
-
78
- export function getDefaultBeeTemplates() {
79
- return {
80
- type: types.GET_DEAFULT_BEE_TEMPLATES_REQUEST,
81
- };
82
- }
83
-
84
- export function setEdmTemplate(template) {
85
- return {
86
- type: types.SET_EDM_TEMPLATE,
87
- template,
88
- };
89
- }
90
- export function setBEETemplate(template) {
91
- return {
92
- type: types.SET_BEE_TEMPLATE,
93
- template,
94
- };
95
- }
96
- export function getTemplateDetails(id, channel) {
97
- console.log('getting template', id, channel);
98
- return {
99
- type: types.GET_TEMPLATE_DETAILS_REQUEST,
100
- id,
101
- channel,
102
- };
103
- }
104
-
105
- export function resetTemplateData() {
106
- return {
107
- type: types.RESET_TEMPLATE_DATA,
108
- };
109
- }
110
-
111
- export function resetUploadData() {
112
- console.log('clearing upload data');
113
- return {
114
- type: types.RESET_UPLOAD_DATA,
115
- };
116
- }
117
-
118
- export function resetTemplateStoreData() {
119
- return {
120
- type: types.CLEAR_TEMPLATE_STORE_DATA,
121
- };
122
- }
1
+ /*
2
+ *
3
+ * Templates actions
4
+ *
5
+ */
6
+
7
+ import * as types from './constants';
8
+
9
+ export function getAllTemplates(channel, queryParams) {
10
+ console.log('get all templates action trigereed', channel, queryParams);
11
+ return {
12
+ type: types.GET_ALL_TEMPLATES_REQUEST, channel, queryParams,
13
+ };
14
+ }
15
+
16
+ export function resetTemplate() {
17
+ return {
18
+ type: types.RESET_TEMPLATE,
19
+ };
20
+ }
21
+
22
+ export function resetAccount() {
23
+ return {
24
+ type: types.RESET_ACCOUNT,
25
+ };
26
+ }
27
+
28
+ export function deleteTemplate(channel, id) {
29
+ console.log('delete template action trigereed', channel, id);
30
+ return {
31
+ type: types.DELETE_TEMPLATE_REQUEST, channel, id,
32
+ };
33
+ }
34
+
35
+ export function getUserList() {
36
+ return {
37
+ type: types.GET_USER_LIST_REQUEST,
38
+ };
39
+ }
40
+
41
+ export function getWeCrmAccounts(source) {
42
+ return {
43
+ type: types.GET_WECRM_ACCOUNTS_REQUEST, source,
44
+ };
45
+ }
46
+
47
+ export function setWeChatAccount(weChatAccount) {
48
+ console.log('setting wechat account', weChatAccount);
49
+ return {
50
+ type: types.SET_WECHAT_ACCOUNT,
51
+ weChatAccount,
52
+ };
53
+ }
54
+
55
+ export function setLineAccount(lineAccount) {
56
+ return {
57
+ type: types.SET_LINE_ACCOUNT,
58
+ lineAccount,
59
+ };
60
+ }
61
+
62
+ export function handleHtmlUpload(selectedTemplate) {
63
+ return {
64
+ type: types.SET_SELECTED_LAYOUT,
65
+ selectedTemplate,
66
+ };
67
+ }
68
+
69
+ export function handleZipUpload(selectedFile, successHandler, errorHandler) {
70
+ return {
71
+ type: types.SEND_ZIPPED_FILE_REQUEST,
72
+ selectedFile,
73
+ successHandler,
74
+ errorHandler,
75
+ };
76
+ }
77
+
78
+ export function getEdmDefaultTemplates() {
79
+ return {
80
+ type: types.GET_EDM_DEAFULT_TEMPLATES_REQUEST,
81
+ };
82
+ }
83
+
84
+ export function setEdmTemplate(template) {
85
+ return {
86
+ type: types.SET_EDM_TEMPLATE,
87
+ template,
88
+ };
89
+ }
90
+
91
+ export function getTemplateDetails(id, channel) {
92
+ console.log('getting template', id, channel);
93
+ return {
94
+ type: types.GET_TEMPLATE_DETAILS_REQUEST,
95
+ id,
96
+ channel,
97
+ };
98
+ }
99
+
100
+ export function resetTemplateData() {
101
+ return {
102
+ type: types.RESET_TEMPLATE_DATA,
103
+ };
104
+ }
105
+
106
+ export function resetUploadData() {
107
+ console.log('clearing upload data');
108
+ return {
109
+ type: types.RESET_UPLOAD_DATA,
110
+ };
111
+ }
112
+
113
+ export function resetTemplateStoreData() {
114
+ return {
115
+ type: types.CLEAR_TEMPLATE_STORE_DATA,
116
+ };
117
+ }
@@ -1,49 +1,47 @@
1
- /*
2
- *
3
- * Templates constants
4
- *
5
- */
6
-
7
- export const DEFAULT_ACTION = 'app/Templates/DEFAULT_ACTION';
8
-
9
- export const GET_ALL_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_REQUEST';
10
- export const GET_ALL_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_SUCCESS';
11
- export const GET_ALL_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_FAILURE';
12
-
13
- export const DELETE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/DELETE_TEMPLATE_REQUEST';
14
- export const DELETE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/DELETE_TEMPLATE_SUCCESS';
15
- export const DELETE_TEMPLATE_FAILURE = 'app/v2Containers/Templates/DELETE_TEMPLATE_FAILURE';
16
-
17
- export const GET_USER_LIST_REQUEST = "app/v2Containers/GET_USER_LIST_REQUEST";
18
- export const GET_USER_LIST_SUCCESS = "app/v2Containers/GET_USER_LIST_SUCCESS";
19
- export const GET_USER_LIST_FAILURE = "app/v2Containers/GET_USER_LIST_FAILURE";
20
-
21
- export const GET_WECRM_ACCOUNTS_REQUEST = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_REQUEST";
22
- export const GET_WECRM_ACCOUNTS_SUCCESS = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_SUCCESS";
23
- export const GET_WECRM_ACCOUNTS_FAILURE = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_FAILURE";
24
- export const SET_WECHAT_ACCOUNT = "app/v2Containers/Templates/SET_WECHAT_ACCOUNT";
25
-
26
- export const SET_SELECTED_LAYOUT = "app/v2Containers/Templates/SET_SELECTED_LAYOUT";
27
- export const SEND_ZIPPED_FILE_REQUEST = "app/v2Containers/Templates/SEND_ZIPPED_FILE_REQUEST";
28
- export const SEND_ZIPPED_FILE_SUCCESS = "app/v2Containers/Templates/SEND_ZIPPED_FILE_SUCCESS";
29
- export const SEND_ZIPPED_FILE_FAILURE = "app/v2Containers/Templates/SEND_ZIPPED_FILE_FAILURE";
30
-
31
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_REQUEST';
32
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_SUCCESS';
33
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_FAILURE';
34
-
35
-
36
- export const SET_EDM_TEMPLATE = "app/v2Containers/Templates/SET_EDM_TEMPLATE";
37
- export const SET_BEE_TEMPLATE = "app/v2Containers/Templates/SET_BEE_TEMPLATE";
38
-
39
- export const RESET_ACCOUNT = "app/v2Containers/Templates/RESET_ACCOUNT";
40
- export const RESET_TEMPLATE = "app/v2Containers/Templates/RESET_TEMPLATE";
41
- export const RESET_TEMPLATE_DATA = "app/v2Containers/Templates/RESET_TEMPLATE_DATA";
42
- export const RESET_UPLOAD_DATA = "app/v2Containers/Templates/RESET_UPLOAD_DATA";
43
- export const CLEAR_TEMPLATE_STORE_DATA = "app/v2Containers/Templates/CLEAR_TEMPLATE_STORE_DATA";
44
-
45
- export const SET_LINE_ACCOUNT = "app/v2Containers/Templates/SET_LINE_ACCOUNT";
46
-
47
- export const GET_DEAFULT_BEE_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_DEAFULT_BEE_TEMPLATES_REQUEST';
48
- export const GET_DEAFULT_BEE_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_DEAFULT_BEE_TEMPLATES_SUCCESS';
49
- export const GET_DEAFULT_BEE_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_DEAFULT_BEE_TEMPLATES_FAILURE';
1
+ /*
2
+ *
3
+ * Templates constants
4
+ *
5
+ */
6
+
7
+ export const DEFAULT_ACTION = 'app/Templates/DEFAULT_ACTION';
8
+
9
+ export const GET_ALL_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_REQUEST';
10
+ export const GET_ALL_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_SUCCESS';
11
+ export const GET_ALL_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_FAILURE';
12
+
13
+ export const DELETE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/DELETE_TEMPLATE_REQUEST';
14
+ export const DELETE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/DELETE_TEMPLATE_SUCCESS';
15
+ export const DELETE_TEMPLATE_FAILURE = 'app/v2Containers/Templates/DELETE_TEMPLATE_FAILURE';
16
+
17
+ export const GET_USER_LIST_REQUEST = "app/v2Containers/GET_USER_LIST_REQUEST";
18
+ export const GET_USER_LIST_SUCCESS = "app/v2Containers/GET_USER_LIST_SUCCESS";
19
+ export const GET_USER_LIST_FAILURE = "app/v2Containers/GET_USER_LIST_FAILURE";
20
+
21
+ export const GET_WECRM_ACCOUNTS_REQUEST = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_REQUEST";
22
+ export const GET_WECRM_ACCOUNTS_SUCCESS = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_SUCCESS";
23
+ export const GET_WECRM_ACCOUNTS_FAILURE = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_FAILURE";
24
+ export const SET_WECHAT_ACCOUNT = "app/v2Containers/Templates/SET_WECHAT_ACCOUNT";
25
+
26
+ export const SET_SELECTED_LAYOUT = "app/v2Containers/Templates/SET_SELECTED_LAYOUT";
27
+ export const SEND_ZIPPED_FILE_REQUEST = "app/v2Containers/Templates/SEND_ZIPPED_FILE_REQUEST";
28
+ export const SEND_ZIPPED_FILE_SUCCESS = "app/v2Containers/Templates/SEND_ZIPPED_FILE_SUCCESS";
29
+ export const SEND_ZIPPED_FILE_FAILURE = "app/v2Containers/Templates/SEND_ZIPPED_FILE_FAILURE";
30
+
31
+ export const GET_EDM_DEAFULT_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_REQUEST';
32
+ export const GET_EDM_DEAFULT_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_SUCCESS';
33
+ export const GET_EDM_DEAFULT_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_FAILURE';
34
+
35
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_REQUEST';
36
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_SUCCESS';
37
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_FAILURE';
38
+
39
+
40
+ export const SET_EDM_TEMPLATE = "app/v2Containers/Templates/SET_EDM_TEMPLATE";
41
+ export const RESET_ACCOUNT = "app/v2Containers/Templates/RESET_ACCOUNT";
42
+ export const RESET_TEMPLATE = "app/v2Containers/Templates/RESET_TEMPLATE";
43
+ export const RESET_TEMPLATE_DATA = "app/v2Containers/Templates/RESET_TEMPLATE_DATA";
44
+ export const RESET_UPLOAD_DATA = "app/v2Containers/Templates/RESET_UPLOAD_DATA";
45
+ export const CLEAR_TEMPLATE_STORE_DATA = "app/v2Containers/Templates/CLEAR_TEMPLATE_STORE_DATA";
46
+
47
+ export const SET_LINE_ACCOUNT = "app/v2Containers/Templates/SET_LINE_ACCOUNT";