awing-library 2.1.131-beta → 2.1.133-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/Utils.js +13 -6
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Analytic/container.js +1 -2
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Customer/component.js +3 -2
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabStatistic/Event/container.js +2 -2
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/SubCampaignDetail.d.ts +1 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/SubCampaignDetail.js +26 -19
- package/lib/ACM-AXN/ScheduleCompletionRate/Utils.js +1 -1
- package/lib/translate/en/translation.json +1 -1
- package/lib/translate/vi/translation.json +5 -5
- package/package.json +1 -1
- package/lib/ACM-AXN/ScheduleCompletionRate/json.d.ts +0 -61
- package/lib/ACM-AXN/ScheduleCompletionRate/json.js +0 -268
|
@@ -72,7 +72,9 @@ function convertToExportDataGroupBy(data, objects, timelineType, groupBy) {
|
|
|
72
72
|
groupBy,
|
|
73
73
|
'Time',
|
|
74
74
|
i18n_1.default.t('Common.Impression'),
|
|
75
|
+
i18n_1.default.t('Common.Engagement'),
|
|
75
76
|
i18n_1.default.t('Common.FinalClick'),
|
|
77
|
+
'ER (%)',
|
|
76
78
|
'CTR (%)',
|
|
77
79
|
],
|
|
78
80
|
data: exportData,
|
|
@@ -87,7 +89,9 @@ function convertToExportData(data, places, timelineType) {
|
|
|
87
89
|
'Place',
|
|
88
90
|
'Time',
|
|
89
91
|
i18n_1.default.t('Common.Impression'),
|
|
92
|
+
i18n_1.default.t('Common.Enagagement'),
|
|
90
93
|
i18n_1.default.t('Common.FinalClick'),
|
|
94
|
+
'ER (%)',
|
|
91
95
|
'CTR (%)',
|
|
92
96
|
],
|
|
93
97
|
data: dataGroupByTimeline('All', data, timelineType),
|
|
@@ -97,7 +101,7 @@ function convertToExportData(data, places, timelineType) {
|
|
|
97
101
|
.map(function (value, key) {
|
|
98
102
|
var place = places.find(function (x) { return x.placeId === key; });
|
|
99
103
|
var placeData = {
|
|
100
|
-
columns:
|
|
104
|
+
columns: Array(7).fill(''),
|
|
101
105
|
data: dataGroupByTimeline(place ? place.name : key, value, timelineType),
|
|
102
106
|
};
|
|
103
107
|
return placeData;
|
|
@@ -130,8 +134,10 @@ function convertToExport(subCampaigns, data, timelineType, places) {
|
|
|
130
134
|
i18n_1.default.t('Common.Impression'),
|
|
131
135
|
i18n_1.default.t("Campaign.EngagementPerSpot"),
|
|
132
136
|
i18n_1.default.t('Common.FinalClick'),
|
|
137
|
+
"ER (%)",
|
|
138
|
+
"CTR (%)",
|
|
133
139
|
]
|
|
134
|
-
: Array(
|
|
140
|
+
: Array(9).fill(''),
|
|
135
141
|
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); }),
|
|
136
142
|
});
|
|
137
143
|
isShouldHeader = false;
|
|
@@ -141,7 +147,7 @@ function convertToExport(subCampaigns, data, timelineType, places) {
|
|
|
141
147
|
.map(function (value, key) {
|
|
142
148
|
var place = places.find(function (x) { return x.placeId === key; });
|
|
143
149
|
var placeData = {
|
|
144
|
-
columns: Array(
|
|
150
|
+
columns: Array(9).fill(''),
|
|
145
151
|
data: dataGroupByTimeline(place ? (place === null || place === void 0 ? void 0 : place.name) || place.placeId : key, value, timelineType).map(function (d) {
|
|
146
152
|
var _a;
|
|
147
153
|
return __spreadArray([
|
|
@@ -258,13 +264,14 @@ function dataGroupByTimeline(place, data, timelineType) {
|
|
|
258
264
|
var impr = (0, lodash_1.sumBy)(data.filter(function (x) { return x.billingUnit === Enum_2.AnalyticType.VIEW; }), Enum_1.BaseEvent[Enum_2.AnalyticType.VIEW]);
|
|
259
265
|
var clk = (0, lodash_1.sumBy)(data.filter(function (x) { return x.billingUnit === Enum_2.AnalyticType.CLICK; }), Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]);
|
|
260
266
|
var authen = (0, lodash_1.sumBy)(data.filter(function (x) { return x.billingUnit === Enum_2.AnalyticType.AUTHENTICATION; }), Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION]);
|
|
261
|
-
console.log("data", data);
|
|
262
267
|
result.push([
|
|
263
268
|
place,
|
|
264
269
|
i18n_1.default.t('Schedule.Total'),
|
|
265
270
|
impr,
|
|
266
271
|
authen,
|
|
267
272
|
clk,
|
|
273
|
+
(impr !== 0 ? (authen * 100) / impr : 0).toFixed(2),
|
|
274
|
+
(impr !== 0 ? (clk * 100) / impr : 0).toFixed(2),
|
|
268
275
|
]);
|
|
269
276
|
return result;
|
|
270
277
|
}
|
|
@@ -317,8 +324,8 @@ var convertToChartData = function (data, campaignGroups) {
|
|
|
317
324
|
var timeline = x.timeline.toString();
|
|
318
325
|
x.analyticEventSummaries.forEach(function (event) {
|
|
319
326
|
var _a;
|
|
320
|
-
if (
|
|
321
|
-
var objKey = event.eventLabel === Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION] ?
|
|
327
|
+
if ([Enum_1.BaseEvent[billingUnit], Enum_1.BaseEvent[Enum_2.AnalyticType.VIEW]].includes(event.eventLabel)) {
|
|
328
|
+
var objKey = event.eventLabel === Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION] ? isSpot ? 'Spot' : 'Engagement' : event.eventLabel;
|
|
322
329
|
(_a = convertData[objKey]) === null || _a === void 0 ? void 0 : _a.chartData.push({
|
|
323
330
|
y: event.total,
|
|
324
331
|
x: timeline,
|
|
@@ -127,8 +127,7 @@ var AnalyticContainer = function (props) {
|
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
(0, exportFile_1.downloadWithDataSet)(exportObj.name, exportObj.data);
|
|
130
|
+
(0, exportFile_1.downloadWithDataSet)(String(exportObj.name).toUpperCase(), exportObj.data);
|
|
132
131
|
return;
|
|
133
132
|
};
|
|
134
133
|
return ((0, jsx_runtime_1.jsx)(component_1.default, { domains: domains, startDate: startDate, endDate: endDate, subCampaigns: subCampaigns, isLoading: isLoading, statisticalData: statisticalChartData, getStatisticalData: getStatisticalData, exportData: exportData }));
|
|
@@ -89,8 +89,9 @@ var Customer = function (props) {
|
|
|
89
89
|
},
|
|
90
90
|
} }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", variant: "contained", onClick: function () { return queryData(); }, fullWidth: true, children: t('Common.View') }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "outlined", onClick: function () { return exportData(); }, children: (0, jsx_runtime_1.jsx)(GetApp_1.default, {}) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 3 })] }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: isLoading ? ((0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {})) : ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, spacing: 2, sx: {
|
|
91
91
|
border: '1px solid #ccc',
|
|
92
|
-
paddingTop:
|
|
93
|
-
marginTop:
|
|
92
|
+
paddingTop: 4,
|
|
93
|
+
marginTop: 2,
|
|
94
|
+
marginLeft: -1,
|
|
94
95
|
}, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
95
96
|
padding: function (theme) { return theme.spacing(1); },
|
|
96
97
|
paddingLeft: function (theme) { return theme.spacing(16); },
|
|
@@ -87,9 +87,9 @@ var EventContainer = function (props) {
|
|
|
87
87
|
.finally(function () { return setIsLoading(false); });
|
|
88
88
|
};
|
|
89
89
|
var exportData = function (time, placeIds, ids) {
|
|
90
|
-
var places = placesOfCampaign.filter(function (p) {
|
|
90
|
+
var places = placeIds.length ? placesOfCampaign.filter(function (p) {
|
|
91
91
|
return placeIds.includes(p.placeId);
|
|
92
|
-
});
|
|
92
|
+
}) : placesOfCampaign;
|
|
93
93
|
client
|
|
94
94
|
.campaignStatisticGetEvents({
|
|
95
95
|
startDate: (0, moment_1.default)(time.startDate).format(Enum_1.DATE_FORMAT),
|
|
@@ -33,20 +33,24 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
33
|
__setModuleDefault(result, mod);
|
|
34
34
|
return result;
|
|
35
35
|
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
36
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
40
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
41
|
var react_1 = __importStar(require("react"));
|
|
39
|
-
var recoil_1 = require("recoil");
|
|
40
42
|
var react_i18next_1 = require("react-i18next");
|
|
41
|
-
|
|
43
|
+
var recoil_1 = require("recoil");
|
|
44
|
+
var Enum_1 = require("../../../../ACM-AXN/Campaign/Enum");
|
|
45
|
+
var Hooks_1 = __importDefault(require("../../../../ACM-AXN/Campaign/Hooks"));
|
|
46
|
+
var Enum_2 = require("../../../../ACM-AXN/Common/Enum");
|
|
47
|
+
var AWING_1 = require("../../../../AWING");
|
|
42
48
|
var lodash_1 = require("lodash");
|
|
43
49
|
var Utils_1 = require("../../Utils");
|
|
44
50
|
var Recoils_1 = require("../Recoils");
|
|
45
|
-
var AWING_1 = require("../../../../AWING");
|
|
46
|
-
var Enum_1 = require("../../../../ACM-AXN/Campaign/Enum");
|
|
47
|
-
var Enum_2 = require("../../../../ACM-AXN/Common/Enum");
|
|
48
51
|
function SubCampaignDetail(props) {
|
|
49
52
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
53
|
+
var service = (0, Hooks_1.default)().service;
|
|
50
54
|
var subCampaign = props.subCampaign, onSubCampaignChange = props.onSubCampaignChange, onChangeSubCampaignStatus = props.onChangeSubCampaignStatus;
|
|
51
55
|
var getFormValid = function () { return ({
|
|
52
56
|
name: (0, Utils_1.nameValid)(subCampaign.name),
|
|
@@ -149,21 +153,24 @@ function SubCampaignDetail(props) {
|
|
|
149
153
|
type: 'number',
|
|
150
154
|
},
|
|
151
155
|
onValidate: function (value) { return (0, Utils_1.bonusValid)(Number(value)); },
|
|
152
|
-
}, {
|
|
153
|
-
fieldName: 'billingUnit',
|
|
154
|
-
type: 'select',
|
|
155
|
-
gridSize: 4,
|
|
156
|
-
label: translationText.BillingUnit,
|
|
157
|
-
required: true,
|
|
158
|
-
value: String(subCampaign.billingUnit),
|
|
159
|
-
onValidate: function (value) { return value !== null; },
|
|
160
|
-
options: Object.values(Enum_2.AnalyticType)
|
|
161
|
-
.filter(function (item) { return !isNaN(Number(item)); })
|
|
162
|
-
.map(function (item) { return ({
|
|
163
|
-
text: t("Campaign.BillingUnit.".concat((0, lodash_1.capitalize)((0, lodash_1.camelCase)(Enum_2.AnalyticType[item])))),
|
|
164
|
-
value: item,
|
|
165
|
-
}); }),
|
|
166
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
|
+
}
|
|
167
174
|
}
|
|
168
175
|
tempField.push({
|
|
169
176
|
fieldName: 'isReserved',
|
|
@@ -39,7 +39,7 @@ exports.QueryInputDetail = {
|
|
|
39
39
|
};
|
|
40
40
|
exports.DefaultValueFilter = {
|
|
41
41
|
startDate: (0, moment_1.default)().subtract(7, 'days'),
|
|
42
|
-
endDate: (0, moment_1.default)(),
|
|
42
|
+
endDate: (0, moment_1.default)().add(-1, 'days'),
|
|
43
43
|
campaignId: '0',
|
|
44
44
|
};
|
|
45
45
|
var convertExcelData = function (resData, campaigns, places, t, typeView) {
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
"DataType": "Data Type",
|
|
395
395
|
"Url": "Url",
|
|
396
396
|
"UrlNotValid": "Url is incorrect or too long (greater than 1000 characters)",
|
|
397
|
-
"Analytic": "Impression/
|
|
397
|
+
"Analytic": "Impression/Click",
|
|
398
398
|
"Event": "Event",
|
|
399
399
|
"Customer": "Users",
|
|
400
400
|
"TotalCustomer": "Total Customer",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"SelectDateRange": "Chọn khoảng thời gian",
|
|
39
39
|
"View": "Xem",
|
|
40
40
|
"ViewBy": "Xem theo",
|
|
41
|
-
"Impression": "
|
|
41
|
+
"Impression": "Impression",
|
|
42
42
|
"BillingUnit": "Đơn vị tính",
|
|
43
43
|
"TitleTypeView": "Hiển thị theo",
|
|
44
44
|
"Select": "Chọn",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"Apply": "Áp dụng",
|
|
89
89
|
"Detail": "Chi tiết",
|
|
90
90
|
"Label": "Nhãn",
|
|
91
|
-
"FinalClick": "
|
|
91
|
+
"FinalClick": "Click",
|
|
92
92
|
"Permission": "Phân quyền",
|
|
93
93
|
"Download": "Tải xuống",
|
|
94
94
|
"Settings": "Cài đặt",
|
|
@@ -222,12 +222,12 @@
|
|
|
222
222
|
"DisplayedRow ": "trong"
|
|
223
223
|
},
|
|
224
224
|
"Campaign": {
|
|
225
|
-
"Engagement": "
|
|
225
|
+
"Engagement": "Engagement",
|
|
226
226
|
"EngagementPerSpot": "Engagement / Spot",
|
|
227
227
|
"Egr": "Tỉ lệ tương tác",
|
|
228
228
|
"Spot": "Spot",
|
|
229
|
-
"Impression": "
|
|
230
|
-
"Click": "
|
|
229
|
+
"Impression": "Impression",
|
|
230
|
+
"Click": "Click",
|
|
231
231
|
"Create": "Tạo chiến dịch",
|
|
232
232
|
"ClickToCopy": "Nhấn để sao chép",
|
|
233
233
|
"Copied": "Đã sao chép",
|
package/package.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare const dataScheduleCompletionRatesGetFake: {
|
|
2
|
-
campaignId: string;
|
|
3
|
-
campaignName: string;
|
|
4
|
-
placeId: string;
|
|
5
|
-
groupId: number;
|
|
6
|
-
groupName: string;
|
|
7
|
-
isNetWork: boolean;
|
|
8
|
-
billingUnit: number;
|
|
9
|
-
runs: {
|
|
10
|
-
eventLabel: string;
|
|
11
|
-
total: number;
|
|
12
|
-
}[];
|
|
13
|
-
expecteds: {
|
|
14
|
-
eventLabel: string;
|
|
15
|
-
total: number;
|
|
16
|
-
}[];
|
|
17
|
-
fromDate: string;
|
|
18
|
-
toDate: string;
|
|
19
|
-
}[];
|
|
20
|
-
export declare const dataScheduleCompletionRatesPagingFake: {
|
|
21
|
-
items: {
|
|
22
|
-
placeId: string;
|
|
23
|
-
groupId: number;
|
|
24
|
-
runs: {
|
|
25
|
-
eventLabel: string;
|
|
26
|
-
total: number;
|
|
27
|
-
}[];
|
|
28
|
-
expecteds: {
|
|
29
|
-
eventLabel: string;
|
|
30
|
-
total: number;
|
|
31
|
-
}[];
|
|
32
|
-
date: string;
|
|
33
|
-
}[];
|
|
34
|
-
pageCount: number;
|
|
35
|
-
totalItemCount: number;
|
|
36
|
-
pageNumber: number;
|
|
37
|
-
pageSize: number;
|
|
38
|
-
hasPreviousPage: boolean;
|
|
39
|
-
hasNextPage: boolean;
|
|
40
|
-
};
|
|
41
|
-
export declare const dataScheduleCompletionRatesPagingPlaceIdFake: {
|
|
42
|
-
items: {
|
|
43
|
-
placeId: string;
|
|
44
|
-
groupId: number;
|
|
45
|
-
runs: {
|
|
46
|
-
eventLabel: string;
|
|
47
|
-
total: number;
|
|
48
|
-
}[];
|
|
49
|
-
expecteds: {
|
|
50
|
-
eventLabel: string;
|
|
51
|
-
total: number;
|
|
52
|
-
}[];
|
|
53
|
-
date: string;
|
|
54
|
-
}[];
|
|
55
|
-
pageCount: number;
|
|
56
|
-
totalItemCount: number;
|
|
57
|
-
pageNumber: number;
|
|
58
|
-
pageSize: number;
|
|
59
|
-
hasPreviousPage: boolean;
|
|
60
|
-
hasNextPage: boolean;
|
|
61
|
-
};
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataScheduleCompletionRatesPagingPlaceIdFake = exports.dataScheduleCompletionRatesPagingFake = exports.dataScheduleCompletionRatesGetFake = void 0;
|
|
4
|
-
exports.dataScheduleCompletionRatesGetFake = [
|
|
5
|
-
{
|
|
6
|
-
campaignId: '5193957574369215550',
|
|
7
|
-
campaignName: 'Orange_Daiko Yamaha Janus_T4-8/24',
|
|
8
|
-
placeId: '0',
|
|
9
|
-
groupId: 1,
|
|
10
|
-
groupName: '[T4,5] Premium Banner Ceri Thu Ha',
|
|
11
|
-
isNetWork: true,
|
|
12
|
-
billingUnit: 2,
|
|
13
|
-
runs: [
|
|
14
|
-
{ eventLabel: 'View', total: 1 },
|
|
15
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
16
|
-
{ eventLabel: 'Click', total: 3 },
|
|
17
|
-
],
|
|
18
|
-
expecteds: [
|
|
19
|
-
{ eventLabel: 'View', total: 1 },
|
|
20
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
21
|
-
{ eventLabel: 'Click', total: 3 },
|
|
22
|
-
],
|
|
23
|
-
fromDate: '2024-04-25T00:00:00+07:00',
|
|
24
|
-
toDate: '2024-05-31T00:00:00+07:00',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
campaignId: '5254940703519040748',
|
|
28
|
-
campaignName: 'Sacombank_CTKM Visa Daily_T4-5/24',
|
|
29
|
-
placeId: '0',
|
|
30
|
-
groupId: 1,
|
|
31
|
-
groupName: 'Premium',
|
|
32
|
-
isNetWork: true,
|
|
33
|
-
billingUnit: 1,
|
|
34
|
-
runs: [
|
|
35
|
-
{ eventLabel: 'View', total: 4 },
|
|
36
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
37
|
-
{ eventLabel: 'Click', total: 6 },
|
|
38
|
-
],
|
|
39
|
-
expecteds: [
|
|
40
|
-
{ eventLabel: 'View', total: 4 },
|
|
41
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
42
|
-
{ eventLabel: 'Click', total: 6 },
|
|
43
|
-
],
|
|
44
|
-
fromDate: '2024-04-27T00:00:00+07:00',
|
|
45
|
-
toDate: '2024-05-31T00:00:00+07:00',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
campaignId: '5309857060135867460',
|
|
49
|
-
campaignName: 'IMA_Honda_CBR Promotion_T4-T6/24',
|
|
50
|
-
isNetWork: true,
|
|
51
|
-
billingUnit: 2,
|
|
52
|
-
runs: [
|
|
53
|
-
{ eventLabel: 'View', total: 7 },
|
|
54
|
-
{ eventLabel: 'Authentication', total: 8 },
|
|
55
|
-
{ eventLabel: 'Click', total: 9 },
|
|
56
|
-
],
|
|
57
|
-
expecteds: [
|
|
58
|
-
{ eventLabel: 'View', total: 7 },
|
|
59
|
-
{ eventLabel: 'Authentication', total: 8 },
|
|
60
|
-
{ eventLabel: 'Click', total: 9 },
|
|
61
|
-
],
|
|
62
|
-
placeId: '0',
|
|
63
|
-
groupId: 1,
|
|
64
|
-
groupName: 'Premium',
|
|
65
|
-
fromDate: '2024-04-15T00:00:00+07:00',
|
|
66
|
-
toDate: '2024-06-25T00:00:00+07:00',
|
|
67
|
-
},
|
|
68
|
-
];
|
|
69
|
-
exports.dataScheduleCompletionRatesPagingFake = {
|
|
70
|
-
items: [
|
|
71
|
-
{
|
|
72
|
-
placeId: '0',
|
|
73
|
-
groupId: 1,
|
|
74
|
-
runs: [
|
|
75
|
-
{ eventLabel: 'View', total: 1 },
|
|
76
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
77
|
-
{ eventLabel: 'Click', total: 3 },
|
|
78
|
-
],
|
|
79
|
-
expecteds: [
|
|
80
|
-
{ eventLabel: 'View', total: 1 },
|
|
81
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
82
|
-
{ eventLabel: 'Click', total: 3 },
|
|
83
|
-
],
|
|
84
|
-
date: '2024-05-01T00:00:00+07:00',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
placeId: '0',
|
|
88
|
-
groupId: 1,
|
|
89
|
-
runs: [
|
|
90
|
-
{ eventLabel: 'View', total: 9 },
|
|
91
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
92
|
-
{ eventLabel: 'Click', total: 3 },
|
|
93
|
-
],
|
|
94
|
-
expecteds: [
|
|
95
|
-
{ eventLabel: 'View', total: 2 },
|
|
96
|
-
{ eventLabel: 'Authentication', total: 6 },
|
|
97
|
-
{ eventLabel: 'Click', total: 3 },
|
|
98
|
-
],
|
|
99
|
-
date: '2024-05-02T00:00:00+07:00',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
placeId: '0',
|
|
103
|
-
groupId: 1,
|
|
104
|
-
runs: [
|
|
105
|
-
{ eventLabel: 'View', total: 93 },
|
|
106
|
-
{ eventLabel: 'Authentication', total: 35 },
|
|
107
|
-
{ eventLabel: 'Click', total: 53 },
|
|
108
|
-
],
|
|
109
|
-
expecteds: [
|
|
110
|
-
{ eventLabel: 'View', total: 24 },
|
|
111
|
-
{ eventLabel: 'Authentication', total: 66 },
|
|
112
|
-
{ eventLabel: 'Click', total: 35 },
|
|
113
|
-
],
|
|
114
|
-
date: '2024-05-03T00:00:00+07:00',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
placeId: '0',
|
|
118
|
-
groupId: 1,
|
|
119
|
-
runs: [
|
|
120
|
-
{ eventLabel: 'View', total: 39 },
|
|
121
|
-
{ eventLabel: 'Authentication', total: 55 },
|
|
122
|
-
{ eventLabel: 'Click', total: 36 },
|
|
123
|
-
],
|
|
124
|
-
expecteds: [
|
|
125
|
-
{ eventLabel: 'View', total: 72 },
|
|
126
|
-
{ eventLabel: 'Authentication', total: 36 },
|
|
127
|
-
{ eventLabel: 'Click', total: 33 },
|
|
128
|
-
],
|
|
129
|
-
date: '2024-05-04T00:00:00+07:00',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
placeId: '0',
|
|
133
|
-
groupId: 1,
|
|
134
|
-
runs: [
|
|
135
|
-
{ eventLabel: 'View', total: 4 },
|
|
136
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
137
|
-
{ eventLabel: 'Click', total: 4 },
|
|
138
|
-
],
|
|
139
|
-
expecteds: [
|
|
140
|
-
{ eventLabel: 'View', total: 6 },
|
|
141
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
142
|
-
{ eventLabel: 'Click', total: 6 },
|
|
143
|
-
],
|
|
144
|
-
date: '2024-05-05T00:00:00+07:00',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
placeId: '0',
|
|
148
|
-
groupId: 1,
|
|
149
|
-
runs: [
|
|
150
|
-
{ eventLabel: 'View', total: 2 },
|
|
151
|
-
{ eventLabel: 'Authentication', total: 3 },
|
|
152
|
-
{ eventLabel: 'Click', total: 44 },
|
|
153
|
-
],
|
|
154
|
-
expecteds: [
|
|
155
|
-
{ eventLabel: 'View', total: 22 },
|
|
156
|
-
{ eventLabel: 'Authentication', total: 63 },
|
|
157
|
-
{ eventLabel: 'Click', total: 33 },
|
|
158
|
-
],
|
|
159
|
-
date: '2024-05-06T00:00:00+07:00',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
placeId: '0',
|
|
163
|
-
groupId: 1,
|
|
164
|
-
runs: [
|
|
165
|
-
{ eventLabel: 'View', total: 12 },
|
|
166
|
-
{ eventLabel: 'Authentication', total: 12 },
|
|
167
|
-
{ eventLabel: 'Click', total: 33 },
|
|
168
|
-
],
|
|
169
|
-
expecteds: [
|
|
170
|
-
{ eventLabel: 'View', total: 23 },
|
|
171
|
-
{ eventLabel: 'Authentication', total: 46 },
|
|
172
|
-
{ eventLabel: 'Click', total: 35 },
|
|
173
|
-
],
|
|
174
|
-
date: '2024-05-07T00:00:00+07:00',
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
placeId: '0',
|
|
178
|
-
groupId: 1,
|
|
179
|
-
runs: [
|
|
180
|
-
{ eventLabel: 'View', total: 29 },
|
|
181
|
-
{ eventLabel: 'Authentication', total: 45 },
|
|
182
|
-
{ eventLabel: 'Click', total: 53 },
|
|
183
|
-
],
|
|
184
|
-
expecteds: [
|
|
185
|
-
{ eventLabel: 'View', total: 62 },
|
|
186
|
-
{ eventLabel: 'Authentication', total: 66 },
|
|
187
|
-
{ eventLabel: 'Click', total: 34 },
|
|
188
|
-
],
|
|
189
|
-
date: '2024-05-08T00:00:00+07:00',
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
placeId: '0',
|
|
193
|
-
groupId: 1,
|
|
194
|
-
runs: [
|
|
195
|
-
{ eventLabel: 'View', total: 29 },
|
|
196
|
-
{ eventLabel: 'Authentication', total: 45 },
|
|
197
|
-
{ eventLabel: 'Click', total: 35 },
|
|
198
|
-
],
|
|
199
|
-
expecteds: [
|
|
200
|
-
{ eventLabel: 'View', total: 25 },
|
|
201
|
-
{ eventLabel: 'Authentication', total: 36 },
|
|
202
|
-
{ eventLabel: 'Click', total: 35 },
|
|
203
|
-
],
|
|
204
|
-
date: '2024-05-09T00:00:00+07:00',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
placeId: '0',
|
|
208
|
-
groupId: 1,
|
|
209
|
-
runs: [
|
|
210
|
-
{ eventLabel: 'View', total: 39 },
|
|
211
|
-
{ eventLabel: 'Authentication', total: 25 },
|
|
212
|
-
{ eventLabel: 'Click', total: 33 },
|
|
213
|
-
],
|
|
214
|
-
expecteds: [
|
|
215
|
-
{ eventLabel: 'View', total: 32 },
|
|
216
|
-
{ eventLabel: 'Authentication', total: 63 },
|
|
217
|
-
{ eventLabel: 'Click', total: 3 },
|
|
218
|
-
],
|
|
219
|
-
date: '2024-05-10T00:00:00+07:00',
|
|
220
|
-
},
|
|
221
|
-
],
|
|
222
|
-
pageCount: 10,
|
|
223
|
-
totalItemCount: 10,
|
|
224
|
-
pageNumber: 0,
|
|
225
|
-
pageSize: 10,
|
|
226
|
-
hasPreviousPage: false,
|
|
227
|
-
hasNextPage: true,
|
|
228
|
-
};
|
|
229
|
-
exports.dataScheduleCompletionRatesPagingPlaceIdFake = {
|
|
230
|
-
items: [
|
|
231
|
-
{
|
|
232
|
-
placeId: '4693220039748452939',
|
|
233
|
-
groupId: 1,
|
|
234
|
-
runs: [
|
|
235
|
-
{ eventLabel: 'View', total: 1 },
|
|
236
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
237
|
-
{ eventLabel: 'Click', total: 3 },
|
|
238
|
-
],
|
|
239
|
-
expecteds: [
|
|
240
|
-
{ eventLabel: 'View', total: 1 },
|
|
241
|
-
{ eventLabel: 'Authentication', total: 2 },
|
|
242
|
-
{ eventLabel: 'Click', total: 3 },
|
|
243
|
-
],
|
|
244
|
-
date: '0001-01-01T07:06:00+07:06',
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
placeId: '5087146300648065868',
|
|
248
|
-
groupId: 1,
|
|
249
|
-
runs: [
|
|
250
|
-
{ eventLabel: 'View', total: 4 },
|
|
251
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
252
|
-
{ eventLabel: 'Click', total: 6 },
|
|
253
|
-
],
|
|
254
|
-
expecteds: [
|
|
255
|
-
{ eventLabel: 'View', total: 4 },
|
|
256
|
-
{ eventLabel: 'Authentication', total: 5 },
|
|
257
|
-
{ eventLabel: 'Click', total: 6 },
|
|
258
|
-
],
|
|
259
|
-
date: '0001-01-01T07:06:00+07:06',
|
|
260
|
-
},
|
|
261
|
-
],
|
|
262
|
-
pageCount: 2,
|
|
263
|
-
totalItemCount: 2,
|
|
264
|
-
pageNumber: 0,
|
|
265
|
-
pageSize: 10,
|
|
266
|
-
hasPreviousPage: false,
|
|
267
|
-
hasNextPage: true,
|
|
268
|
-
};
|