@capillarytech/creatives-library 7.17.61 → 7.17.62
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/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export const DEFAULT = 'default';
|
|
|
17
17
|
export const LIBRARY = 'library';
|
|
18
18
|
export const FULL = 'full';
|
|
19
19
|
export const ALL = 'all';
|
|
20
|
+
export const OUTBOUND = 'outbound';
|
|
20
21
|
|
|
21
22
|
const prefix = 'app/v2Containers/Zalo';
|
|
22
23
|
export const ZALO_TEMPLATE_INFO_REQUEST = `${prefix}/ZALO_TEMPLATE_INFO_REQUEST`;
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
TAG,
|
|
36
36
|
FULL,
|
|
37
37
|
ALL,
|
|
38
|
+
OUTBOUND,
|
|
38
39
|
LIBRARY,
|
|
39
40
|
ERROR_ALERT,
|
|
40
41
|
WARNING_ALERT,
|
|
@@ -83,6 +84,7 @@ export const Zalo = (props) => {
|
|
|
83
84
|
const {
|
|
84
85
|
_id = '',
|
|
85
86
|
accountId = '',
|
|
87
|
+
zaloAccountId = '',
|
|
86
88
|
accountName = '',
|
|
87
89
|
templateConfigs: { id = '', varMapped = {} } = {},
|
|
88
90
|
token: zaloToken = '',
|
|
@@ -110,7 +112,8 @@ export const Zalo = (props) => {
|
|
|
110
112
|
configs: { token: accessToken = '' } = {},
|
|
111
113
|
name = '',
|
|
112
114
|
} = selectedZaloAccount;
|
|
113
|
-
|
|
115
|
+
const oaId = getDefaultTags === OUTBOUND ? zaloAccountId : accountId;
|
|
116
|
+
setOaId(sourceAccountIdentifier || oaId);
|
|
114
117
|
setToken(accessToken || zaloToken);
|
|
115
118
|
setUsername(name || accountName);
|
|
116
119
|
}
|
|
@@ -356,6 +359,9 @@ export const Zalo = (props) => {
|
|
|
356
359
|
const payload = {
|
|
357
360
|
channel: ZALO,
|
|
358
361
|
accountId: oa_id,
|
|
362
|
+
...(getDefaultTags === OUTBOUND && {
|
|
363
|
+
zaloAccountId: oa_id,
|
|
364
|
+
}),
|
|
359
365
|
accountName: username,
|
|
360
366
|
templateConfigs: {
|
|
361
367
|
id: templateId?.toString(),
|