awing-library 2.1.143-beta → 2.1.145-beta
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/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/ChartWithType.d.ts +4 -0
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/ChartWithType.js +2 -22
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/Detail/index.js +0 -2
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/Utils.d.ts +6 -3
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/Utils.js +25 -20
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/component.js +1 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/LimitEvent.js +1 -2
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/SubCampaignDetail.js +55 -121
- package/lib/ACM-AXN/Campaign/CreateOrEdit/index.js +8 -4
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Parameter.js +0 -2
- package/lib/AWING/DataForm/DataInput.js +1 -1
- package/lib/translate/en/translation.json +1 -0
- package/lib/translate/vi/translation.json +1 -0
- package/package.json +1 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/fakeData.json +0 -618
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Utils.d.ts +0 -5
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Utils.js +0 -14
|
@@ -8,6 +8,10 @@ interface Props {
|
|
|
8
8
|
subCampaigns: CampaignGroupModel[];
|
|
9
9
|
ids: any;
|
|
10
10
|
onCampaignAdGroupIdChange: (newValue: string[]) => void;
|
|
11
|
+
time: {
|
|
12
|
+
startDate: Date;
|
|
13
|
+
endDate: Date;
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
16
|
declare const ChartWithType: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
export default ChartWithType;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
/* eslint-disable eqeqeq */
|
|
7
8
|
var react_i18next_1 = require("react-i18next");
|
|
8
9
|
var material_1 = require("@mui/material");
|
|
9
10
|
var i18n_1 = __importDefault(require("../../../../../i18n"));
|
|
@@ -12,7 +13,6 @@ var Detail_1 = __importDefault(require("./Detail"));
|
|
|
12
13
|
var Utils_1 = require("./Utils");
|
|
13
14
|
var AWING_1 = require("../../../../../AWING");
|
|
14
15
|
var Context_1 = __importDefault(require("../Context"));
|
|
15
|
-
var fakeData_json_1 = __importDefault(require("../fakeData.json"));
|
|
16
16
|
var styles = {
|
|
17
17
|
root: {
|
|
18
18
|
border: '1px solid #ccc',
|
|
@@ -78,26 +78,6 @@ var ChartWithType = function (props) {
|
|
|
78
78
|
// console.log("valuddde", value, result)
|
|
79
79
|
onCampaignAdGroupIdChange(result);
|
|
80
80
|
};
|
|
81
|
-
// const getValue = useMemo(() => {
|
|
82
|
-
// let result: any[] = []
|
|
83
|
-
// if (ids.campaignGroupId) {
|
|
84
|
-
// let tmpSelected: any[] = []
|
|
85
|
-
// const group = groupOptions.find(
|
|
86
|
-
// (g) => g.code === ids.campaignGroupId?.toString()
|
|
87
|
-
// )
|
|
88
|
-
// tmpSelected = [group]
|
|
89
|
-
// if (ids.campaignAdId) {
|
|
90
|
-
// const ad = groupOptions.find(
|
|
91
|
-
// (g) =>
|
|
92
|
-
// g.code === `${ids.campaignGroupId}&${ids.campaignAdId}`
|
|
93
|
-
// )
|
|
94
|
-
// tmpSelected = [group, ad];
|
|
95
|
-
// }
|
|
96
|
-
// result.push(tmpSelected)
|
|
97
|
-
// }
|
|
98
|
-
// console.log("result", result)
|
|
99
|
-
// return result
|
|
100
|
-
// }, [groupOptions, ids.campaignAdId, ids.campaignGroupId])
|
|
101
81
|
var getValue = function () {
|
|
102
82
|
var final = [];
|
|
103
83
|
ids.forEach(function (id) {
|
|
@@ -116,7 +96,7 @@ var ChartWithType = function (props) {
|
|
|
116
96
|
});
|
|
117
97
|
return final;
|
|
118
98
|
};
|
|
119
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 1, sx: styles.root, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 3 }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(MultipleHierarchicalChoice_1.MultipleHierarchicalChoice, { onChange: handleGroupChange, options: groupOptions, placeholder: t('Campaign.SelectGroup'), label: translationText.timeline, value: getValue() }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { select: true, fullWidth: true, label: translationText.timeline, id: "timelineType", name: "timelineType", value: timelineType, onChange: function (e) { return setTimelineType(e.target.value); }, size: "small", variant: "outlined", children: ChartByType.map(function (type, idx) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: idx, children: type }, idx)); }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { select: true, fullWidth: true, label: t('Campaign.StatisticType'), id: "statisticType", name: "statisticType", value: statisticType, onChange: function (e) { return setStatisticType(e.target.value); }, size: "small", variant: "outlined", children: SType.map(function (type, idx) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: idx, children: type }, idx)); }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1 }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, sx: styles.chart, children: statisticType === 0 ? ((0, jsx_runtime_1.jsx)(material_1.Box, { component: 'div', sx: styles.chartWrapper, children: (0, jsx_runtime_1.jsx)(AWING_1.BarLineComponent, { chart: chart, dataChart: (0, Utils_1.convertToChartData)(
|
|
99
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 1, sx: styles.root, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 3 }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(MultipleHierarchicalChoice_1.MultipleHierarchicalChoice, { onChange: handleGroupChange, options: groupOptions, placeholder: t('Campaign.SelectGroup'), label: translationText.timeline, value: getValue() }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { select: true, fullWidth: true, label: translationText.timeline, id: "timelineType", name: "timelineType", value: timelineType, onChange: function (e) { return setTimelineType(e.target.value); }, size: "small", variant: "outlined", children: ChartByType.map(function (type, idx) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: idx, children: type }, idx)); }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 2, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, variant: "outlined", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { select: true, fullWidth: true, label: t('Campaign.StatisticType'), id: "statisticType", name: "statisticType", value: statisticType, onChange: function (e) { return setStatisticType(e.target.value); }, size: "small", variant: "outlined", children: SType.map(function (type, idx) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: idx, children: type }, idx)); }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1 }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, sx: styles.chart, children: statisticType === 0 ? ((0, jsx_runtime_1.jsx)(material_1.Box, { component: 'div', sx: styles.chartWrapper, children: (0, jsx_runtime_1.jsx)(AWING_1.BarLineComponent, { chart: chart, dataChart: (0, Utils_1.convertToChartData)(statisticalData, subCampaigns, props.time), type: 'line', data: [], timeline: timelineType, optionCustom: {
|
|
120
100
|
scales: {
|
|
121
101
|
y: {
|
|
122
102
|
title: {
|
|
@@ -38,7 +38,6 @@ var sumBy = require('lodash/sumBy');
|
|
|
38
38
|
var DetailGroupBy = function (props) {
|
|
39
39
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
40
40
|
var statisticalData = props.statisticalData;
|
|
41
|
-
console.log("statisticalData", statisticalData);
|
|
42
41
|
var services = (0, Context_1.default)().services;
|
|
43
42
|
var _a = react_1.default.useState([]), groupByValues = _a[0], setGroupByValues = _a[1];
|
|
44
43
|
var getHeadCells = function () {
|
|
@@ -121,7 +120,6 @@ var DetailGroupBy = function (props) {
|
|
|
121
120
|
});
|
|
122
121
|
return check;
|
|
123
122
|
});
|
|
124
|
-
// console.log("groupFilters", groupFilters, groupByValues)
|
|
125
123
|
if (groupFilters.length < groupByValues.length) {
|
|
126
124
|
var dataView = uniqBy(groupPlaces, groupByValues[groupFilters.length]).map(function (place) {
|
|
127
125
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CampaignGroupModel } from '../../../../../ACM-AXN/Campaign/Types';
|
|
2
|
-
import { IAnalyticCampaignSummary
|
|
2
|
+
import { IAnalyticCampaignSummary } from '../Types';
|
|
3
3
|
import { AnalyticType } from '../../../../../ACM-AXN/Common/Enum';
|
|
4
4
|
export declare function convertToExportDataGroupBy(data: any, objects: any, timelineType: any, groupBy: any): {
|
|
5
5
|
columns: any[];
|
|
@@ -18,14 +18,17 @@ export declare const markBillingType: (subCampaigns: CampaignGroupModel[], data:
|
|
|
18
18
|
placeId?: string | undefined;
|
|
19
19
|
domainId?: string | undefined;
|
|
20
20
|
timeline?: number | undefined;
|
|
21
|
-
analyticEventSummaries: IAnalyticEventSummary[];
|
|
21
|
+
analyticEventSummaries: import("../Types").IAnalyticEventSummary[];
|
|
22
22
|
campaignGroupId?: number | undefined;
|
|
23
23
|
campaignAdId?: number | undefined;
|
|
24
24
|
}[];
|
|
25
25
|
export declare function convertToShowDetail(subCampaigns: CampaignGroupModel[], data: IAnalyticCampaignSummary[], selectedDomains: any[], selectedPlaces: any[]): any[];
|
|
26
26
|
export declare function dataGroupByTimeline(place: any, data: any, timelineType: any): any[][];
|
|
27
27
|
export declare function dataGroupByPlace(subCampaigns: CampaignGroupModel[], ids: any): any[];
|
|
28
|
-
export declare const convertToChartData: (data: IAnalyticCampaignSummary[], campaignGroups: CampaignGroupModel[]
|
|
28
|
+
export declare const convertToChartData: (data: IAnalyticCampaignSummary[], campaignGroups: CampaignGroupModel[], time: {
|
|
29
|
+
startDate: Date;
|
|
30
|
+
endDate: Date;
|
|
31
|
+
}) => ({
|
|
29
32
|
label: string;
|
|
30
33
|
type: string;
|
|
31
34
|
data: {
|
|
@@ -116,13 +116,22 @@ function convertToExport(subCampaigns, data, timelineType, places) {
|
|
|
116
116
|
subCampaigns.forEach(function (sub) {
|
|
117
117
|
var _a;
|
|
118
118
|
(_a = sub === null || sub === void 0 ? void 0 : sub.ads) === null || _a === void 0 ? void 0 : _a.forEach(function (ad) {
|
|
119
|
-
var adData = data
|
|
119
|
+
var adData = data
|
|
120
|
+
.filter(function (d) {
|
|
120
121
|
var _a;
|
|
121
122
|
return (d.campaignGroupId === ((_a = sub === null || sub === void 0 ? void 0 : sub.campaignGroup) === null || _a === void 0 ? void 0 : _a.id) &&
|
|
122
123
|
d.campaignAdId === ad.id);
|
|
123
|
-
})
|
|
124
|
+
})
|
|
125
|
+
.map(function (x) { return (__assign(__assign({}, x), Object.assign.apply(Object, __spreadArray(__spreadArray([{}], Object.values(Enum_1.BaseEvent).map(function (v) {
|
|
126
|
+
var _a;
|
|
127
|
+
return (_a = {},
|
|
128
|
+
_a[v] = 0,
|
|
129
|
+
_a);
|
|
130
|
+
}), false), x.analyticEventSummaries.map(function (y) {
|
|
124
131
|
var _a;
|
|
125
|
-
return (_a = {},
|
|
132
|
+
return (_a = {},
|
|
133
|
+
_a[y.eventLabel] = y.total,
|
|
134
|
+
_a);
|
|
126
135
|
}), false)))); });
|
|
127
136
|
result.push({
|
|
128
137
|
columns: isShouldHeader
|
|
@@ -141,7 +150,6 @@ function convertToExport(subCampaigns, data, timelineType, places) {
|
|
|
141
150
|
data: dataGroupByTimeline('All', adData, timelineType).map(function (d) { var _a; return __spreadArray([(_a = sub === null || sub === void 0 ? void 0 : sub.campaignGroup) === null || _a === void 0 ? void 0 : _a.name, ad === null || ad === void 0 ? void 0 : ad.name], d, true); }),
|
|
142
151
|
});
|
|
143
152
|
isShouldHeader = false;
|
|
144
|
-
console.log("value placeId", adData);
|
|
145
153
|
Array.prototype.push.apply(result, (0, lodash_1.chain)(adData)
|
|
146
154
|
.groupBy('placeId')
|
|
147
155
|
.map(function (value, key) {
|
|
@@ -249,29 +257,30 @@ function dataGroupByTimeline(place, data, timelineType) {
|
|
|
249
257
|
var result = (0, lodash_1.chain)(data)
|
|
250
258
|
.groupBy('timeline')
|
|
251
259
|
.map(function (value, key) {
|
|
252
|
-
console.log("value", value, value.filter(function (x) { return x.billingUnit === Enum_2.AnalyticType.AUTHENTICATION; }));
|
|
253
260
|
var dateString = (0, Helpers_1.dateTimeToString)((0, Helpers_1.convertTimelineToDateTime)(key, timelineType), timelineType === Helpers_1.TIMELINE_TYPE.DAY
|
|
254
261
|
? 'DD/MM/YYYY'
|
|
255
262
|
: 'DD/MM/YYYY, H:mm');
|
|
256
263
|
// let impression = sumBy(value, BaseEvent[AnalyticType.VIEW])
|
|
257
|
-
var impression = (0, lodash_1.sumBy)(value
|
|
258
|
-
var click = (0, lodash_1.sumBy)(value
|
|
259
|
-
var authen = (0, lodash_1.sumBy)(value
|
|
260
|
-
var
|
|
264
|
+
var impression = (0, lodash_1.sumBy)(value, Enum_1.BaseEvent[Enum_2.AnalyticType.VIEW]);
|
|
265
|
+
var click = (0, lodash_1.sumBy)(value, Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]);
|
|
266
|
+
var authen = (0, lodash_1.sumBy)(value, Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION]);
|
|
267
|
+
var er = impression !== 0 ? (authen * 100) / impression : 0;
|
|
268
|
+
var ctr = impression !== 0 ? (click * 100) / impression : 0;
|
|
269
|
+
var arr = [place, dateString, impression, authen, click, Number(er.toFixed(2)), Number(ctr.toFixed(2))];
|
|
261
270
|
return arr;
|
|
262
271
|
})
|
|
263
272
|
.value();
|
|
264
|
-
var impr = (0, lodash_1.sumBy)(data
|
|
265
|
-
var clk = (0, lodash_1.sumBy)(data
|
|
266
|
-
var authen = (0, lodash_1.sumBy)(data
|
|
273
|
+
var impr = (0, lodash_1.sumBy)(data, Enum_1.BaseEvent[Enum_2.AnalyticType.VIEW]);
|
|
274
|
+
var clk = (0, lodash_1.sumBy)(data, Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]);
|
|
275
|
+
var authen = (0, lodash_1.sumBy)(data, Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION]);
|
|
267
276
|
result.push([
|
|
268
277
|
place,
|
|
269
278
|
i18n_1.default.t('Schedule.Total'),
|
|
270
279
|
impr,
|
|
271
280
|
authen,
|
|
272
281
|
clk,
|
|
273
|
-
(impr !== 0 ? (authen * 100) / impr : 0).toFixed(2),
|
|
274
|
-
(impr !== 0 ? (clk * 100) / impr : 0).toFixed(2),
|
|
282
|
+
Number((impr !== 0 ? ((authen * 100) / impr) : 0).toFixed(2)),
|
|
283
|
+
Number((impr !== 0 ? ((clk * 100) / impr) : 0).toFixed(2)),
|
|
275
284
|
]);
|
|
276
285
|
return result;
|
|
277
286
|
}
|
|
@@ -303,18 +312,14 @@ function dataGroupByPlace(subCampaigns, ids) {
|
|
|
303
312
|
.value();
|
|
304
313
|
}
|
|
305
314
|
exports.dataGroupByPlace = dataGroupByPlace;
|
|
306
|
-
var convertToChartData = function (data, campaignGroups) {
|
|
315
|
+
var convertToChartData = function (data, campaignGroups, time) {
|
|
307
316
|
var _a;
|
|
308
317
|
var convertData = Object.assign.apply(Object, __spreadArray([{}], [Enum_1.BaseEvent[Enum_2.AnalyticType.VIEW], 'Spot', 'Engagement'].map(function (x) {
|
|
309
318
|
var _a;
|
|
310
319
|
return (_a = {}, _a[x] = { total: 0, chartData: [] }, _a);
|
|
311
320
|
}), false));
|
|
312
|
-
var startDate = Number.MAX_SAFE_INTEGER;
|
|
313
|
-
var endDate = 0;
|
|
314
321
|
data.forEach(function (x) {
|
|
315
322
|
var _a;
|
|
316
|
-
startDate = Math.min(startDate, Number(x.timeline));
|
|
317
|
-
endDate = Math.max(endDate, Number(x.timeline));
|
|
318
323
|
var subCampaign = campaignGroups.find(function (c) { return c.campaignGroup.id === x.campaignGroupId; });
|
|
319
324
|
if (!subCampaign)
|
|
320
325
|
return;
|
|
@@ -358,7 +363,7 @@ var convertToChartData = function (data, campaignGroups) {
|
|
|
358
363
|
return {
|
|
359
364
|
label: "".concat(i18n_1.default.t(translate[key]), " ").concat((0, Helpers_1.roundDecimalNumber)(value.total)),
|
|
360
365
|
type: 'line',
|
|
361
|
-
data: (0, Helpers_1.fillMissingDates)(data, startDate, endDate),
|
|
366
|
+
data: (0, Helpers_1.fillMissingDates)(data, time.startDate, time.endDate),
|
|
362
367
|
fill: false,
|
|
363
368
|
pointStyle: 'circle',
|
|
364
369
|
yAxisID: 'y',
|
|
@@ -72,6 +72,6 @@ var Analytic = function (props) {
|
|
|
72
72
|
};
|
|
73
73
|
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 2, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (0, jsx_runtime_1.jsx)(ChartFilter_1.default, { subCampaigns: subCampaigns, queryInput: queryInput, onChangeQueryInput: changeQueryInput, onQueryData: queryData, isExportType: true, onExportData: function (exportType) {
|
|
74
74
|
return exportData(queryInput.time, queryInput.placeIds, queryInput.timelineType, exportType, queryInput.ids);
|
|
75
|
-
}, domains: domains }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, style: { marginTop: '20px' }, children: isLoading ? ((0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {})) : ((0, jsx_runtime_1.jsx)(ChartWithType_1.default, { statisticalData: statisticalData, subCampaigns: subCampaigns, ids: queryInput.ids, onCampaignAdGroupIdChange: handleChangeAdGroupId, statisticType: queryInput.statisticType, setStatisticType: changeStatisticType, timelineType: queryInput.timelineType, setTimelineType: changeTimelineType })) })] }));
|
|
75
|
+
}, domains: domains }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, style: { marginTop: '20px' }, children: isLoading ? ((0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {})) : ((0, jsx_runtime_1.jsx)(ChartWithType_1.default, { statisticalData: statisticalData, subCampaigns: subCampaigns, ids: queryInput.ids, onCampaignAdGroupIdChange: handleChangeAdGroupId, statisticType: queryInput.statisticType, setStatisticType: changeStatisticType, timelineType: queryInput.timelineType, setTimelineType: changeTimelineType, time: queryInput.time })) })] }));
|
|
76
76
|
};
|
|
77
77
|
exports.default = Analytic;
|
package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/LimitEvent.js
CHANGED
|
@@ -35,7 +35,6 @@ var LimitEvent = function (props) {
|
|
|
35
35
|
var _a;
|
|
36
36
|
onChange(__assign(__assign({}, rule), (_a = {}, _a[fieldName] = fieldValue, _a)));
|
|
37
37
|
};
|
|
38
|
-
console.log("rule", rule);
|
|
39
38
|
var _g = (0, Hooks_2.useGetData)([loginPageIds], service.pagesGetPageViewEventByPageIds), data = _g.data, isLoading = _g.isLoading;
|
|
40
39
|
var eventSelected = react_1.default.useMemo(function () {
|
|
41
40
|
return (0, lodash_1.default)(data)
|
|
@@ -79,7 +78,7 @@ var LimitEvent = function (props) {
|
|
|
79
78
|
return handleChangeParameter('eventLabel', e.target.value);
|
|
80
79
|
}, error: valids && !valids.eventLabel, helperText: valids && !valids.eventLabel
|
|
81
80
|
? translationText.helperText
|
|
82
|
-
: '', children: Object.keys(eventSelected).map(function (event, index) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: event, children: event }, index)); }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "viewNumber", name: "viewNumber", variant: "standard", disabled: !((_c = rule === null || rule === void 0 ? void 0 : rule.parameter) === null || _c === void 0 ? void 0 : _c.eventLabel), required: true, select: true, fullWidth: true, label: translationText.viewNumber, value: (_e = (_d = rule === null || rule === void 0 ? void 0 : rule.parameter) === null || _d === void 0 ? void 0 : _d.viewNumber) !== null && _e !== void 0 ? _e :
|
|
81
|
+
: '', children: Object.keys(eventSelected).map(function (event, index) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: event, children: event }, index)); }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "viewNumber", name: "viewNumber", variant: "standard", disabled: !((_c = rule === null || rule === void 0 ? void 0 : rule.parameter) === null || _c === void 0 ? void 0 : _c.eventLabel), required: true, select: true, fullWidth: true, label: translationText.viewNumber, value: (_e = (_d = rule === null || rule === void 0 ? void 0 : rule.parameter) === null || _d === void 0 ? void 0 : _d.viewNumber) !== null && _e !== void 0 ? _e : "", onChange: function (e) {
|
|
83
82
|
return handleChangeParameter('viewNumber', e.target.value);
|
|
84
83
|
}, error: valids && !valids.viewNumber, helperText: valids && !valids.viewNumber
|
|
85
84
|
? translationText.helperText
|
|
@@ -44,10 +44,10 @@ var recoil_1 = require("recoil");
|
|
|
44
44
|
var Enum_1 = require("../../../../ACM-AXN/Campaign/Enum");
|
|
45
45
|
var Hooks_1 = __importDefault(require("../../../../ACM-AXN/Campaign/Hooks"));
|
|
46
46
|
var Enum_2 = require("../../../../ACM-AXN/Common/Enum");
|
|
47
|
-
var AWING_1 = require("../../../../AWING");
|
|
48
47
|
var lodash_1 = require("lodash");
|
|
49
48
|
var Utils_1 = require("../../Utils");
|
|
50
49
|
var Recoils_1 = require("../Recoils");
|
|
50
|
+
var material_1 = require("@mui/material");
|
|
51
51
|
function SubCampaignDetail(props) {
|
|
52
52
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
53
53
|
var service = (0, Hooks_1.default)().service;
|
|
@@ -58,18 +58,12 @@ function SubCampaignDetail(props) {
|
|
|
58
58
|
bonusAmount: (0, Utils_1.bonusValid)(subCampaign.bonusAmount),
|
|
59
59
|
billingUnit: subCampaign.billingUnit !== null,
|
|
60
60
|
}); };
|
|
61
|
-
var
|
|
62
|
-
(0, react_1.useEffect)(function () {
|
|
63
|
-
cacheSubId.current = subCampaign.id;
|
|
64
|
-
return function () {
|
|
65
|
-
cacheSubId.current = undefined;
|
|
66
|
-
};
|
|
67
|
-
}, [subCampaign.id]);
|
|
61
|
+
var _a = react_1.default.useState(getFormValid), subValid = _a[0], setSubValid = _a[1];
|
|
68
62
|
var isCreate = (0, recoil_1.useRecoilValue)(Recoils_1.isCreateState);
|
|
69
63
|
(0, react_1.useEffect)(function () {
|
|
70
64
|
onSubCampaignChange(function (prev) { return (0, lodash_1.cloneDeep)(prev); });
|
|
71
65
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
72
|
-
}, [
|
|
66
|
+
}, [onSubCampaignChange]);
|
|
73
67
|
(0, react_1.useEffect)(function () {
|
|
74
68
|
onChangeSubCampaignStatus(Object.values(getFormValid()).every(Boolean));
|
|
75
69
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -91,117 +85,57 @@ function SubCampaignDetail(props) {
|
|
|
91
85
|
helperText: t('Common.Required'),
|
|
92
86
|
notNegative: t('Common.NotNegative'),
|
|
93
87
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}, {
|
|
147
|
-
fieldName: 'bonusAmount',
|
|
148
|
-
type: 'number',
|
|
149
|
-
gridSize: 4,
|
|
150
|
-
required: true,
|
|
151
|
-
label: translationText.booking,
|
|
152
|
-
InputProps: {
|
|
153
|
-
type: 'number',
|
|
154
|
-
},
|
|
155
|
-
onValidate: function (value) { return (0, Utils_1.bonusValid)(Number(value)); },
|
|
156
|
-
});
|
|
157
|
-
if (service.attributesGetByObjectTypeCode) {
|
|
158
|
-
tempField.push({
|
|
159
|
-
fieldName: 'billingUnit',
|
|
160
|
-
type: 'select',
|
|
161
|
-
gridSize: 4,
|
|
162
|
-
label: translationText.BillingUnit,
|
|
163
|
-
required: true,
|
|
164
|
-
value: String(subCampaign.billingUnit),
|
|
165
|
-
onValidate: function (value) { return value !== null; },
|
|
166
|
-
options: Object.values(Enum_2.AnalyticType)
|
|
167
|
-
.filter(function (item) { return !isNaN(Number(item)); })
|
|
168
|
-
.map(function (item) { return ({
|
|
169
|
-
text: t("Campaign.BillingUnit.".concat((0, lodash_1.capitalize)((0, lodash_1.camelCase)(Enum_2.AnalyticType[item])))),
|
|
170
|
-
value: item,
|
|
171
|
-
}); }),
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
tempField.push({
|
|
176
|
-
fieldName: 'isReserved',
|
|
177
|
-
type: 'checkbox',
|
|
178
|
-
gridSize: 4,
|
|
179
|
-
label: translationText.reserved,
|
|
180
|
-
});
|
|
181
|
-
return tempField;
|
|
182
|
-
},
|
|
183
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
184
|
-
[subCampaign]);
|
|
185
|
-
var handleUpdate = react_1.default.useCallback(function (data, valid, fieldName) {
|
|
186
|
-
if (!fieldName || cacheSubId.current !== subCampaign.id)
|
|
187
|
-
return;
|
|
188
|
-
onSubCampaignChange(function (pre) {
|
|
189
|
-
var _a;
|
|
190
|
-
return fieldName === 'priority'
|
|
191
|
-
? __assign(__assign(__assign(__assign({}, pre), { priority: data[fieldName] }), ((0, Utils_1.checkPriority)(data[fieldName], Enum_1.CampaignPriority.ClassB)
|
|
192
|
-
? {
|
|
193
|
-
bookingAmount: 10,
|
|
194
|
-
billingUnit: null,
|
|
195
|
-
}
|
|
196
|
-
: {
|
|
197
|
-
bookingAmount: 0,
|
|
198
|
-
billingUnit: 0,
|
|
199
|
-
})), { bonusAmount: 0 }) : __assign(__assign({}, pre), (_a = {}, _a[fieldName] = data[fieldName], _a));
|
|
200
|
-
});
|
|
201
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
202
|
-
}, [subCampaign.id, onSubCampaignChange]);
|
|
203
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(AWING_1.DataForm, { padding: "none", fields: fields, oldValue: __assign(__assign({}, subCampaign), { priority: isNaN(Number(subCampaign.priority))
|
|
204
|
-
? subCampaign.priority
|
|
205
|
-
: Object.values(Enum_1.CampaignPriority)[subCampaign.priority] }), onUpdate: handleUpdate }) }));
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, style: { padding: 8, paddingBottom: 0 }, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "name", name: "name", variant: "standard", required: true, fullWidth: true, label: translationText.name, value: subCampaign.name, onChange: function (e) {
|
|
89
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { name: e.target.value })); });
|
|
90
|
+
}, error: subValid.name !== undefined && !subValid.name, helperText: subValid.name !== undefined && !subValid.name
|
|
91
|
+
? translationText.helperText
|
|
92
|
+
: '' }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, style: { padding: 8 }, children: (0, jsx_runtime_1.jsxs)(material_1.TextField, { id: "ticket", name: "ticket", variant: "standard", select: true, required: true, fullWidth: true, label: translationText.ticket, value: subCampaign.ticket, onChange: function (e) {
|
|
93
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { ticket: Number(e.target.value) })); });
|
|
94
|
+
}, disabled: isCreate, children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: Enum_1.CampaignTicket.ACTIVE, children: t('Campaign.Active') }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: Enum_1.CampaignTicket.INACTIVE, children: t('Campaign.InActive') })] }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: true, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "priority", select: true, required: true, variant: "standard", fullWidth: true, label: translationText.priority, value: isNaN(Number(subCampaign.priority))
|
|
95
|
+
? subCampaign.priority
|
|
96
|
+
: Object.values(Enum_1.CampaignPriority)[subCampaign.priority], onChange: function (e) {
|
|
97
|
+
var newPriority = Object.values(Enum_1.CampaignPriority).indexOf(e.target.value);
|
|
98
|
+
onSubCampaignChange(function (pre) {
|
|
99
|
+
var newSubCamp = __assign(__assign(__assign(__assign({}, pre), { priority: newPriority }), ((0, Utils_1.checkPriority)(newPriority, Enum_1.CampaignPriority.ClassB)
|
|
100
|
+
? {
|
|
101
|
+
bookingAmount: 10,
|
|
102
|
+
billingUnit: Enum_2.AnalyticType.AUTHENTICATION,
|
|
103
|
+
}
|
|
104
|
+
: {
|
|
105
|
+
bookingAmount: 0,
|
|
106
|
+
billingUnit: Enum_2.AnalyticType.AUTHENTICATION,
|
|
107
|
+
})), { bonusAmount: 0 });
|
|
108
|
+
setSubValid(function (pre) { return (__assign(__assign({}, pre), { bookingAmount: true, bonusAmount: true })); });
|
|
109
|
+
return newSubCamp;
|
|
110
|
+
});
|
|
111
|
+
}, children: Object.values(Enum_1.CampaignPriority).map(function (priority) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: priority, children: t("Campaign.".concat(priority)) }, priority)); }) }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, style: { padding: 8, paddingTop: 0 }, children: [(0, Utils_1.checkPriority)(subCampaign.priority, Enum_1.CampaignPriority.ClassB) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "bookingAmount", required: true, fullWidth: true, variant: "standard", type: "number", label: translationText.booking, value: subCampaign.bookingAmount, onChange: function (e) {
|
|
112
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { bookingAmount: Number(e.target.value) })); });
|
|
113
|
+
}, onFocus: function (event) { return event.target.select(); }, error: subValid.bookingAmount !== undefined &&
|
|
114
|
+
!subValid.bookingAmount, helperText: subValid.bookingAmount !== undefined &&
|
|
115
|
+
!subValid.bookingAmount
|
|
116
|
+
? subCampaign.bookingAmount < 0
|
|
117
|
+
? translationText.notNegative
|
|
118
|
+
: translationText.helperText
|
|
119
|
+
: '' }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "bonusAmount", variant: "standard", fullWidth: true, type: "number", label: translationText.bonus, value: subCampaign.bonusAmount, onChange: function (e) {
|
|
120
|
+
var value = Number(e.target.value);
|
|
121
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { bonusAmount: value })); });
|
|
122
|
+
}, onFocus: function (event) { return event.target.select(); }, error: subValid.bonusAmount !== undefined &&
|
|
123
|
+
!subValid.bonusAmount, helperText: subValid.bonusAmount !== undefined &&
|
|
124
|
+
!subValid.bonusAmount
|
|
125
|
+
? subCampaign.bonusAmount < 0
|
|
126
|
+
? translationText.notNegative
|
|
127
|
+
: translationText.helperText
|
|
128
|
+
: '' }) }), !service.attributesGetByObjectTypeCode ? ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { id: "billingUnit", required: true, select: true, variant: "standard", fullWidth: true, label: translationText.BillingUnit, value: String(subCampaign.billingUnit), onChange: function (e) {
|
|
129
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { billingUnit: Number(e.target.value) })); });
|
|
130
|
+
}, error: subValid.billingUnit !== undefined &&
|
|
131
|
+
!subValid.billingUnit, helperText: subValid.billingUnit !== undefined &&
|
|
132
|
+
!subValid.billingUnit
|
|
133
|
+
? translationText.helperText
|
|
134
|
+
: '', children: Object.values(Enum_2.AnalyticType)
|
|
135
|
+
.filter(function (item) { return !isNaN(Number(item)); })
|
|
136
|
+
.map(function (type) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: type, children: t("Campaign.BillingUnit.".concat((0, lodash_1.capitalize)((0, lodash_1.camelCase)(Enum_2.AnalyticType[type])))) }, type)); }) }) })) : null] })), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 4, style: { padding: 8 }, children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: subCampaign.isReserved, onChange: function (e) {
|
|
137
|
+
e.persist();
|
|
138
|
+
onSubCampaignChange(function (pre) { return (__assign(__assign({}, pre), { isReserved: e.target.checked })); });
|
|
139
|
+
}, name: "isReserved", color: "primary" }), label: translationText.reserved, style: { marginTop: 6 } }) })] })] }));
|
|
206
140
|
}
|
|
207
141
|
exports.default = SubCampaignDetail;
|
|
@@ -50,6 +50,7 @@ var TabLabel_1 = __importDefault(require("../../../Commons/Components/TabLabel")
|
|
|
50
50
|
var usePath_1 = __importDefault(require("../../../Commons/Hooks/usePath"));
|
|
51
51
|
var Wrapper_1 = __importDefault(require("../../../AWING/HOC/Wrapper"));
|
|
52
52
|
var TabStatistic_1 = __importDefault(require("./TabStatistic"));
|
|
53
|
+
var Enum_2 = require("../../../ACM-AXN/Common/Enum");
|
|
53
54
|
var route = [
|
|
54
55
|
Constant_1.Constants.CAMPAIGN_INFORMATION,
|
|
55
56
|
Constant_1.Constants.CAMPAIGN_SUBCAMPAIGN,
|
|
@@ -69,7 +70,7 @@ var CreateOrEdit = function () {
|
|
|
69
70
|
var setCampaignPages = (0, recoil_1.useSetRecoilState)(atoms_1.campaignPageIdState);
|
|
70
71
|
var setDirectories = (0, recoil_1.useSetRecoilState)(Recoils_1.directoriesState);
|
|
71
72
|
var setAttributes = (0, recoil_1.useSetRecoilState)(Recoils_1.attributesState);
|
|
72
|
-
var
|
|
73
|
+
var _e = (0, recoil_1.useRecoilState)(Recoils_1.confirmExitState), confirmExit = _e[0], setConfirmExit = _e[1];
|
|
73
74
|
var readyForSubmit = (0, recoil_1.useRecoilValue)(Recoils_1.readyForSubmitState);
|
|
74
75
|
var setCreate = (0, recoil_1.useSetRecoilState)(Recoils_1.isCreateState);
|
|
75
76
|
var tabValid = {
|
|
@@ -77,8 +78,8 @@ var CreateOrEdit = function () {
|
|
|
77
78
|
tabSubCampaignValid: (0, recoil_1.useRecoilValue)(Recoils_1.tabSubCampaignValidState),
|
|
78
79
|
tabPartnerValid: (0, recoil_1.useRecoilValue)(Recoils_1.tabPartnerValidState),
|
|
79
80
|
};
|
|
80
|
-
var
|
|
81
|
-
var
|
|
81
|
+
var _f = (0, react_1.useState)('0'), value = _f[0], setValue = _f[1];
|
|
82
|
+
var _g = (0, react_1.useState)(true), loading = _g[0], setLoading = _g[1];
|
|
82
83
|
var componentStatus = (0, react_1.useMemo)(function () {
|
|
83
84
|
return location.pathname.includes(Constant_1.Constants.CAMPAIGN_DETAIL) &&
|
|
84
85
|
!!campaignId
|
|
@@ -181,10 +182,13 @@ var CreateOrEdit = function () {
|
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
184
|
else {
|
|
185
|
+
setConfirmExit(true);
|
|
184
186
|
campaignModel.campaign.name += ' - copy';
|
|
185
187
|
campaignModel.campaign.createdDate = undefined;
|
|
186
188
|
campaignModel.campaignGroups.forEach(function (g) {
|
|
187
189
|
g.campaignGroup.ticket = Enum_1.CampaignTicket.INACTIVE;
|
|
190
|
+
if (!service.attributesGetByObjectTypeCode)
|
|
191
|
+
g.campaignGroup.billingUnit = Enum_2.AnalyticType.AUTHENTICATION;
|
|
188
192
|
});
|
|
189
193
|
}
|
|
190
194
|
setCampaignData(campaignModel);
|
|
@@ -219,7 +223,7 @@ var CreateOrEdit = function () {
|
|
|
219
223
|
return service.campaignsPost(dataSubmit);
|
|
220
224
|
}
|
|
221
225
|
};
|
|
222
|
-
return ((0, jsx_runtime_1.jsx)(ClassicDrawer_1.default, { title: "".concat(t(['Campaign', campaignId ? 'TitleDetail' : 'Create'].join('.'))).concat(campaignId ? ": ".concat((_a = campaignData === null || campaignData === void 0 ? void 0 : campaignData.campaign) === null || _a === void 0 ? void 0 : _a.name) : '', "\n "), onSubmit: handleSubmit, disableButtonSubmit: !readyForSubmit, confirmExit: confirmExit, childrenWrapperStyle: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, sx: {
|
|
226
|
+
return ((0, jsx_runtime_1.jsx)(ClassicDrawer_1.default, { title: "".concat(t(['Campaign', campaignId ? 'TitleDetail' : 'Create'].join('.'))).concat(campaignId ? ": ".concat((_a = campaignData === null || campaignData === void 0 ? void 0 : campaignData.campaign) === null || _a === void 0 ? void 0 : _a.name) : '', "\n "), onSubmit: handleSubmit, disableButtonSubmit: !readyForSubmit || !confirmExit, confirmExit: confirmExit, childrenWrapperStyle: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, sx: {
|
|
223
227
|
display: 'flex',
|
|
224
228
|
flexDirection: 'column',
|
|
225
229
|
flexGrow: 1,
|
|
@@ -88,12 +88,10 @@ var Parameter = function (_a) {
|
|
|
88
88
|
Object.keys(row).forEach(function (key) {
|
|
89
89
|
if (Array.isArray(row[key])) {
|
|
90
90
|
row[key] = row[key].filter(function (item) { return item !== ''; });
|
|
91
|
-
console.log(key, row[key]);
|
|
92
91
|
}
|
|
93
92
|
});
|
|
94
93
|
return row;
|
|
95
94
|
});
|
|
96
|
-
console.log("tableRow", tableRow);
|
|
97
95
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { mt: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, justifyContent: "space-between", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", sx: {
|
|
98
96
|
fontWeight: 'bold',
|
|
99
97
|
color: '#000000',
|
|
@@ -194,7 +194,7 @@ function DataInput(props) {
|
|
|
194
194
|
} })));
|
|
195
195
|
}
|
|
196
196
|
case 'select': {
|
|
197
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.TextField, __assign({ id: fieldName.toString(), name: fieldName.toString(), fullWidth: true, select: true, variant: "standard", value: value !== null && value !== void 0 ? value :
|
|
197
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.TextField, __assign({ id: fieldName.toString(), name: fieldName.toString(), fullWidth: true, select: true, variant: "standard", value: value !== null && value !== void 0 ? value : "", onChange: function (event) {
|
|
198
198
|
var newValue = fieldDefinition.multiple
|
|
199
199
|
? event.target.value.split(',')
|
|
200
200
|
: event.target.value;
|
package/package.json
CHANGED
|
@@ -1,618 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"timeline": 20240513,
|
|
4
|
-
"campaignId": "5344841815813731135",
|
|
5
|
-
"placeId": "5504693026866563256",
|
|
6
|
-
"domainId": "4913100144472996590",
|
|
7
|
-
"analyticEventSummaries": [
|
|
8
|
-
{
|
|
9
|
-
"eventLabel": "View",
|
|
10
|
-
"total": 23
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"eventLabel": "Authentication",
|
|
14
|
-
"total": 1
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"eventLabel": "Click",
|
|
18
|
-
"total": 12
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"campaignGroupId": 2,
|
|
22
|
-
"campaignAdId": 1
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"timeline": 20240514,
|
|
26
|
-
"campaignId": "5344841815813731135",
|
|
27
|
-
"placeId": "5504693026866563256",
|
|
28
|
-
"domainId": "4913100144472996590",
|
|
29
|
-
"analyticEventSummaries": [
|
|
30
|
-
{
|
|
31
|
-
"eventLabel": "View",
|
|
32
|
-
"total": 23
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"eventLabel": "Authentication",
|
|
36
|
-
"total": 1
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"eventLabel": "Click",
|
|
40
|
-
"total": 12
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"campaignGroupId": 2,
|
|
44
|
-
"campaignAdId": 1
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"timeline": 20240513,
|
|
48
|
-
"campaignId": "5344841815813731135",
|
|
49
|
-
"placeId": "5504693026866563256",
|
|
50
|
-
"domainId": "4913100144472996590",
|
|
51
|
-
"analyticEventSummaries": [
|
|
52
|
-
{
|
|
53
|
-
"eventLabel": "View",
|
|
54
|
-
"total": 23
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"eventLabel": "Authentication",
|
|
58
|
-
"total": 13
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"eventLabel": "Click",
|
|
62
|
-
"total": 12
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"campaignGroupId": 2,
|
|
66
|
-
"campaignAdId": 2
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"timeline": 20240514,
|
|
70
|
-
"campaignId": "5344841815813731135",
|
|
71
|
-
"placeId": "5504693026866563256",
|
|
72
|
-
"domainId": "4913100144472996590",
|
|
73
|
-
"analyticEventSummaries": [
|
|
74
|
-
{
|
|
75
|
-
"eventLabel": "View",
|
|
76
|
-
"total": 23
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"eventLabel": "Authentication",
|
|
80
|
-
"total": 9
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"eventLabel": "Click",
|
|
84
|
-
"total": 12
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"campaignGroupId": 2,
|
|
88
|
-
"campaignAdId": 2
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"timeline": 20240513,
|
|
92
|
-
"campaignId": "5344841815813731135",
|
|
93
|
-
"placeId": "5504693026866563256",
|
|
94
|
-
"domainId": "4913100144472996590",
|
|
95
|
-
"analyticEventSummaries": [
|
|
96
|
-
{
|
|
97
|
-
"eventLabel": "View",
|
|
98
|
-
"total": 23
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"eventLabel": "Authentication",
|
|
102
|
-
"total": 1
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"eventLabel": "Click",
|
|
106
|
-
"total": 12
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"campaignGroupId": 1,
|
|
110
|
-
"campaignAdId": 1
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"timeline": 20240514,
|
|
114
|
-
"campaignId": "5344841815813731135",
|
|
115
|
-
"placeId": "5504693026866563256",
|
|
116
|
-
"domainId": "4913100144472996590",
|
|
117
|
-
"analyticEventSummaries": [
|
|
118
|
-
{
|
|
119
|
-
"eventLabel": "View",
|
|
120
|
-
"total": 23
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"eventLabel": "Authentication",
|
|
124
|
-
"total": 1
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"eventLabel": "Click",
|
|
128
|
-
"total": 12
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"campaignGroupId": 1,
|
|
132
|
-
"campaignAdId": 1
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"timeline": 20240513,
|
|
136
|
-
"campaignId": "5344841815813731135",
|
|
137
|
-
"placeId": "5504693026866563256",
|
|
138
|
-
"domainId": "4913100144472996590",
|
|
139
|
-
"analyticEventSummaries": [
|
|
140
|
-
{
|
|
141
|
-
"eventLabel": "View",
|
|
142
|
-
"total": 23
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"eventLabel": "Authentication",
|
|
146
|
-
"total": 13
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"eventLabel": "Click",
|
|
150
|
-
"total": 12
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"campaignGroupId": 1,
|
|
154
|
-
"campaignAdId": 2
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"timeline": 20240514,
|
|
158
|
-
"campaignId": "5344841815813731135",
|
|
159
|
-
"placeId": "5504693026866563256",
|
|
160
|
-
"domainId": "4913100144472996590",
|
|
161
|
-
"analyticEventSummaries": [
|
|
162
|
-
{
|
|
163
|
-
"eventLabel": "View",
|
|
164
|
-
"total": 23
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"eventLabel": "Authentication",
|
|
168
|
-
"total": 9
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"eventLabel": "Click",
|
|
172
|
-
"total": 12
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"campaignGroupId": 1,
|
|
176
|
-
"campaignAdId": 2
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"timeline": 20240514,
|
|
180
|
-
"campaignId": "5344841815813731135",
|
|
181
|
-
"placeId": "5504693026866563256",
|
|
182
|
-
"domainId": "4913100144472996590",
|
|
183
|
-
"analyticEventSummaries": [
|
|
184
|
-
{
|
|
185
|
-
"eventLabel": "View",
|
|
186
|
-
"total": 23
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"eventLabel": "Authentication",
|
|
190
|
-
"total": 1
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"eventLabel": "Click",
|
|
194
|
-
"total": 12
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"campaignGroupId": 1,
|
|
198
|
-
"campaignAdId": 1
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"timeline": 20240515,
|
|
202
|
-
"campaignId": "5344841815813731135",
|
|
203
|
-
"placeId": "5504693026866563256",
|
|
204
|
-
"domainId": "4913100144472996590",
|
|
205
|
-
"analyticEventSummaries": [
|
|
206
|
-
{
|
|
207
|
-
"eventLabel": "View",
|
|
208
|
-
"total": 23
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"eventLabel": "Authentication",
|
|
212
|
-
"total": 14
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"eventLabel": "Click",
|
|
216
|
-
"total": 12
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"campaignGroupId": 1,
|
|
220
|
-
"campaignAdId": 2
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"timeline": 20240516,
|
|
224
|
-
"campaignId": "5344841815813731135",
|
|
225
|
-
"placeId": "5504693026866563256",
|
|
226
|
-
"domainId": "4913100144472996590",
|
|
227
|
-
"analyticEventSummaries": [
|
|
228
|
-
{
|
|
229
|
-
"eventLabel": "View",
|
|
230
|
-
"total": 23
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"eventLabel": "Authentication",
|
|
234
|
-
"total": 1
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"eventLabel": "Click",
|
|
238
|
-
"total": 12
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
"campaignGroupId": 1,
|
|
242
|
-
"campaignAdId": 1
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"timeline": 20240517,
|
|
246
|
-
"campaignId": "5344841815813731135",
|
|
247
|
-
"placeId": "5504693026866563256",
|
|
248
|
-
"domainId": "4913100144472996590",
|
|
249
|
-
"analyticEventSummaries": [
|
|
250
|
-
{
|
|
251
|
-
"eventLabel": "View",
|
|
252
|
-
"total": 23
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"eventLabel": "Authentication",
|
|
256
|
-
"total": 1
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"eventLabel": "Click",
|
|
260
|
-
"total": 12
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"campaignGroupId": 1,
|
|
264
|
-
"campaignAdId": 1
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"timeline": 20240518,
|
|
268
|
-
"campaignId": "5344841815813731135",
|
|
269
|
-
"placeId": "5504693026866563256",
|
|
270
|
-
"domainId": "4913100144472996590",
|
|
271
|
-
"analyticEventSummaries": [
|
|
272
|
-
{
|
|
273
|
-
"eventLabel": "View",
|
|
274
|
-
"total": 23
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"eventLabel": "Authentication",
|
|
278
|
-
"total": 1
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"eventLabel": "Click",
|
|
282
|
-
"total": 12
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
"campaignGroupId": 1,
|
|
286
|
-
"campaignAdId": 1
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"timeline": 20240519,
|
|
290
|
-
"campaignId": "5344841815813731135",
|
|
291
|
-
"placeId": "5504693026866563256",
|
|
292
|
-
"domainId": "4913100144472996590",
|
|
293
|
-
"analyticEventSummaries": [
|
|
294
|
-
{
|
|
295
|
-
"eventLabel": "View",
|
|
296
|
-
"total": 23
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"eventLabel": "Authentication",
|
|
300
|
-
"total": 1
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"eventLabel": "Click",
|
|
304
|
-
"total": 12
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"campaignGroupId": 1,
|
|
308
|
-
"campaignAdId": 1
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"timeline": 20240520,
|
|
312
|
-
"campaignId": "5344841815813731135",
|
|
313
|
-
"placeId": "5504693026866563256",
|
|
314
|
-
"domainId": "4913100144472996590",
|
|
315
|
-
"analyticEventSummaries": [
|
|
316
|
-
{
|
|
317
|
-
"eventLabel": "View",
|
|
318
|
-
"total": 23
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"eventLabel": "Authentication",
|
|
322
|
-
"total": 1
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"eventLabel": "Click",
|
|
326
|
-
"total": 12
|
|
327
|
-
}
|
|
328
|
-
],
|
|
329
|
-
"campaignGroupId": 1,
|
|
330
|
-
"campaignAdId": 1
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"timeline": 20240521,
|
|
334
|
-
"campaignId": "5344841815813731135",
|
|
335
|
-
"placeId": "5504693026866563256",
|
|
336
|
-
"domainId": "4913100144472996590",
|
|
337
|
-
"analyticEventSummaries": [
|
|
338
|
-
{
|
|
339
|
-
"eventLabel": "View",
|
|
340
|
-
"total": 23
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"eventLabel": "Authentication",
|
|
344
|
-
"total": 1
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"eventLabel": "Click",
|
|
348
|
-
"total": 12
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"campaignGroupId": 1,
|
|
352
|
-
"campaignAdId": 1
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"timeline": 20240522,
|
|
356
|
-
"campaignId": "5344841815813731135",
|
|
357
|
-
"placeId": "5504693026866563256",
|
|
358
|
-
"domainId": "4913100144472996590",
|
|
359
|
-
"analyticEventSummaries": [
|
|
360
|
-
{
|
|
361
|
-
"eventLabel": "View",
|
|
362
|
-
"total": 23
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"eventLabel": "Authentication",
|
|
366
|
-
"total": 1
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"eventLabel": "Click",
|
|
370
|
-
"total": 12
|
|
371
|
-
}
|
|
372
|
-
],
|
|
373
|
-
"campaignGroupId": 1,
|
|
374
|
-
"campaignAdId": 1
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"timeline": 20240523,
|
|
378
|
-
"campaignId": "5344841815813731135",
|
|
379
|
-
"placeId": "5504693026866563256",
|
|
380
|
-
"domainId": "4913100144472996590",
|
|
381
|
-
"analyticEventSummaries": [
|
|
382
|
-
{
|
|
383
|
-
"eventLabel": "View",
|
|
384
|
-
"total": 23
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"eventLabel": "Authentication",
|
|
388
|
-
"total": 1
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"eventLabel": "Click",
|
|
392
|
-
"total": 12
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
"campaignGroupId": 1,
|
|
396
|
-
"campaignAdId": 1
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"timeline": 20240524,
|
|
400
|
-
"campaignId": "5344841815813731135",
|
|
401
|
-
"placeId": "5504693026866563256",
|
|
402
|
-
"domainId": "4913100144472996590",
|
|
403
|
-
"analyticEventSummaries": [
|
|
404
|
-
{
|
|
405
|
-
"eventLabel": "View",
|
|
406
|
-
"total": 23
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"eventLabel": "Authentication",
|
|
410
|
-
"total": 1
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"eventLabel": "Click",
|
|
414
|
-
"total": 12
|
|
415
|
-
}
|
|
416
|
-
],
|
|
417
|
-
"campaignGroupId": 1,
|
|
418
|
-
"campaignAdId": 1
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"timeline": 20240525,
|
|
422
|
-
"campaignId": "5344841815813731135",
|
|
423
|
-
"placeId": "5504693026866563256",
|
|
424
|
-
"domainId": "4913100144472996590",
|
|
425
|
-
"analyticEventSummaries": [
|
|
426
|
-
{
|
|
427
|
-
"eventLabel": "View",
|
|
428
|
-
"total": 23
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"eventLabel": "Authentication",
|
|
432
|
-
"total": 1
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"eventLabel": "Click",
|
|
436
|
-
"total": 12
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
"campaignGroupId": 1,
|
|
440
|
-
"campaignAdId": 1
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"timeline": 20240526,
|
|
444
|
-
"campaignId": "5344841815813731135",
|
|
445
|
-
"placeId": "5504693026866563256",
|
|
446
|
-
"domainId": "4913100144472996590",
|
|
447
|
-
"analyticEventSummaries": [
|
|
448
|
-
{
|
|
449
|
-
"eventLabel": "View",
|
|
450
|
-
"total": 23
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"eventLabel": "Authentication",
|
|
454
|
-
"total": 1
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"eventLabel": "Click",
|
|
458
|
-
"total": 12
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
"campaignGroupId": 1,
|
|
462
|
-
"campaignAdId": 1
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"timeline": 20240527,
|
|
466
|
-
"campaignId": "5344841815813731135",
|
|
467
|
-
"placeId": "5504693026866563256",
|
|
468
|
-
"domainId": "4913100144472996590",
|
|
469
|
-
"analyticEventSummaries": [
|
|
470
|
-
{
|
|
471
|
-
"eventLabel": "View",
|
|
472
|
-
"total": 23
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"eventLabel": "Authentication",
|
|
476
|
-
"total": 1
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"eventLabel": "Click",
|
|
480
|
-
"total": 12
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
"campaignGroupId": 1,
|
|
484
|
-
"campaignAdId": 1
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"timeline": 20240528,
|
|
488
|
-
"campaignId": "5344841815813731135",
|
|
489
|
-
"placeId": "5504693026866563256",
|
|
490
|
-
"domainId": "4913100144472996590",
|
|
491
|
-
"analyticEventSummaries": [
|
|
492
|
-
{
|
|
493
|
-
"eventLabel": "View",
|
|
494
|
-
"total": 23
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"eventLabel": "Authentication",
|
|
498
|
-
"total": 1
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
"eventLabel": "Click",
|
|
502
|
-
"total": 12
|
|
503
|
-
}
|
|
504
|
-
],
|
|
505
|
-
"campaignGroupId": 1,
|
|
506
|
-
"campaignAdId": 1
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"timeline": 20240529,
|
|
510
|
-
"campaignId": "5344841815813731135",
|
|
511
|
-
"placeId": "5504693026866563256",
|
|
512
|
-
"domainId": "4913100144472996590",
|
|
513
|
-
"analyticEventSummaries": [
|
|
514
|
-
{
|
|
515
|
-
"eventLabel": "View",
|
|
516
|
-
"total": 23
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"eventLabel": "Authentication",
|
|
520
|
-
"total": 1
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"eventLabel": "Click",
|
|
524
|
-
"total": 12
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
"campaignGroupId": 1,
|
|
528
|
-
"campaignAdId": 1
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"timeline": 20240530,
|
|
532
|
-
"campaignId": "5344841815813731135",
|
|
533
|
-
"placeId": "5504693026866563256",
|
|
534
|
-
"domainId": "4913100144472996590",
|
|
535
|
-
"analyticEventSummaries": [
|
|
536
|
-
{
|
|
537
|
-
"eventLabel": "View",
|
|
538
|
-
"total": 23
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"eventLabel": "Authentication",
|
|
542
|
-
"total": 1
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"eventLabel": "Click",
|
|
546
|
-
"total": 12
|
|
547
|
-
}
|
|
548
|
-
],
|
|
549
|
-
"campaignGroupId": 1,
|
|
550
|
-
"campaignAdId": 1
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"timeline": 20240531,
|
|
554
|
-
"campaignId": "5344841815813731135",
|
|
555
|
-
"placeId": "5504693026866563256",
|
|
556
|
-
"domainId": "4913100144472996590",
|
|
557
|
-
"analyticEventSummaries": [
|
|
558
|
-
{
|
|
559
|
-
"eventLabel": "View",
|
|
560
|
-
"total": 23
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"eventLabel": "Authentication",
|
|
564
|
-
"total": 1
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"eventLabel": "Click",
|
|
568
|
-
"total": 12
|
|
569
|
-
}
|
|
570
|
-
],
|
|
571
|
-
"campaignGroupId": 1,
|
|
572
|
-
"campaignAdId": 1
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
"timeline": 20240601,
|
|
576
|
-
"campaignId": "5344841815813731135",
|
|
577
|
-
"placeId": "5504693026866563256",
|
|
578
|
-
"domainId": "4913100144472996590",
|
|
579
|
-
"analyticEventSummaries": [
|
|
580
|
-
{
|
|
581
|
-
"eventLabel": "View",
|
|
582
|
-
"total": 23
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"eventLabel": "Authentication",
|
|
586
|
-
"total": 1
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"eventLabel": "Click",
|
|
590
|
-
"total": 12
|
|
591
|
-
}
|
|
592
|
-
],
|
|
593
|
-
"campaignGroupId": 1,
|
|
594
|
-
"campaignAdId": 1
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"timeline": 20240602,
|
|
598
|
-
"campaignId": "5344841815813731135",
|
|
599
|
-
"placeId": "5504693026866563256",
|
|
600
|
-
"domainId": "4913100144472996590",
|
|
601
|
-
"analyticEventSummaries": [
|
|
602
|
-
{
|
|
603
|
-
"eventLabel": "View",
|
|
604
|
-
"total": 23
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
"eventLabel": "Authentication",
|
|
608
|
-
"total": 1
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"eventLabel": "Click",
|
|
612
|
-
"total": 12
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"campaignGroupId": 1,
|
|
616
|
-
"campaignAdId": 1
|
|
617
|
-
}
|
|
618
|
-
]
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validEvents = void 0;
|
|
4
|
-
var validEvents = function (events) {
|
|
5
|
-
var result = {
|
|
6
|
-
valid: true,
|
|
7
|
-
message: '',
|
|
8
|
-
};
|
|
9
|
-
console.log("aa12aa", events);
|
|
10
|
-
// const aa = uniqWith(events, (a, b) => a.event === b.event)
|
|
11
|
-
// console.log("aa", aa, events)
|
|
12
|
-
return result;
|
|
13
|
-
};
|
|
14
|
-
exports.validEvents = validEvents;
|