@gem-sdk/analytics 1.0.2-dev.0 → 1.0.2-dev.2
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/dist/esm/components/GModalOrderJourney/GModalOrderJourney.d.ts +2 -1
- package/dist/esm/components/GModalOrderJourney/context/OrderJourneyContext.d.ts +1 -0
- package/dist/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +11 -6
- package/dist/esm/components/OrderAnalytic/components/OrderListing/index.d.ts +2 -0
- package/dist/esm/components/OrderAnalytic/components/index.d.ts +1 -0
- package/dist/esm/components/OrderAnalytic/hooks/useOrderListingData.d.ts +4 -1
- package/dist/esm/components/OrderAnalytic/index.d.ts +3 -2
- package/dist/esm/components/OrderAnalytic/types/order.d.ts +1 -0
- package/dist/esm/gemxql.js +26 -13
- package/dist/esm/gemxql.mjs +26 -13
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +1131 -1079
- package/dist/esm/index.mjs +1131 -1079
- package/dist/esm/shared/journey/ui/JourneyTitle/components/GemxIdBadge.d.ts +1 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/components/index.d.ts +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/ReportTable.d.ts +4 -4
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.d.ts +3 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.d.ts +2 -0
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/type.d.ts +2 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Row.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/context/ReportTableActionsContext.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/types/index.d.ts +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/types/report-columns.d.ts +1 -0
- package/dist/esm/types/index.d.ts +5 -4
- package/dist/esm/types/report-columns.d.ts +1 -0
- package/dist/esm/types.js +51 -38
- package/dist/esm/types.mjs +51 -38
- package/dist/style.css +1 -1
- package/dist/umd/esm/components/GModalOrderJourney/GModalOrderJourney.d.ts +2 -1
- package/dist/umd/esm/components/GModalOrderJourney/context/OrderJourneyContext.d.ts +1 -0
- package/dist/umd/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
- package/dist/umd/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +11 -6
- package/dist/umd/esm/components/OrderAnalytic/components/OrderListing/index.d.ts +2 -0
- package/dist/umd/esm/components/OrderAnalytic/components/index.d.ts +1 -0
- package/dist/umd/esm/components/OrderAnalytic/hooks/useOrderListingData.d.ts +4 -1
- package/dist/umd/esm/components/OrderAnalytic/index.d.ts +3 -2
- package/dist/umd/esm/components/OrderAnalytic/types/order.d.ts +1 -0
- package/dist/umd/esm/index.d.ts +3 -0
- package/dist/umd/esm/shared/journey/ui/JourneyTitle/components/GemxIdBadge.d.ts +1 -0
- package/dist/umd/esm/shared/journey/ui/JourneyTitle/components/index.d.ts +1 -0
- package/dist/umd/esm/shared/reports/ui/ReportTable/ReportTable.d.ts +4 -4
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.d.ts +1 -1
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.d.ts +3 -2
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.d.ts +2 -0
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.d.ts +1 -1
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Cell/type.d.ts +2 -1
- package/dist/umd/esm/shared/reports/ui/ReportTable/components/Body/Row.d.ts +1 -1
- package/dist/umd/esm/shared/reports/ui/ReportTable/context/ReportTableActionsContext.d.ts +1 -1
- package/dist/umd/esm/shared/reports/ui/ReportTable/types/index.d.ts +1 -0
- package/dist/umd/esm/shared/reports/ui/ReportTable/types/report-columns.d.ts +1 -0
- package/dist/umd/esm/types/index.d.ts +5 -4
- package/dist/umd/esm/types/report-columns.d.ts +1 -0
- package/dist/umd/gemxql.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types.js +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export interface GModalOrderJourneyProps {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
title: string;
|
|
8
8
|
orderId: string;
|
|
9
|
+
gxId?: string;
|
|
9
10
|
journeyItems: IOrderJourneyItem[];
|
|
10
11
|
isLoading?: boolean;
|
|
11
12
|
hasNextPage?: boolean;
|
|
@@ -17,4 +18,4 @@ export interface GModalOrderJourneyProps {
|
|
|
17
18
|
journeySource?: EReportSource;
|
|
18
19
|
onViewOrderDetails?: (orderId: string) => void;
|
|
19
20
|
}
|
|
20
|
-
export declare const GModalOrderJourney: ({ open, onClose, title, orderId, journeyItems, isLoading, hasNextPage, isFetchingNextPage, fetchNextPage, reportCampaign, pageAnalytic, mode, journeySource, onViewOrderDetails, }: GModalOrderJourneyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
export declare const GModalOrderJourney: ({ open, onClose, title, orderId, gxId, journeyItems, isLoading, hasNextPage, isFetchingNextPage, fetchNextPage, reportCampaign, pageAnalytic, mode, journeySource, onViewOrderDetails, }: GModalOrderJourneyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -9,7 +9,7 @@ interface IOrderListingLatestData {
|
|
|
9
9
|
interface IOrderListingLatestCallbacks {
|
|
10
10
|
onViewAllOrders?: () => void;
|
|
11
11
|
onViewAllStoreOrders?: () => void;
|
|
12
|
-
onViewOrderJourney?: (orderId: string) => void;
|
|
12
|
+
onViewOrderJourney?: (orderId: string, gxId?: string) => void;
|
|
13
13
|
onViewOrderDetails?: (orderId: string) => void;
|
|
14
14
|
}
|
|
15
15
|
interface OrderListingLatestTableProps {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { IOrder } from '../../types';
|
|
2
1
|
import type { GPaginationProps } from '@/shared';
|
|
3
|
-
import type { IReportCampaign } from '../../types/report';
|
|
4
2
|
import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
|
|
5
|
-
|
|
3
|
+
import type { EReportColumnKey } from '@/shared/reports/ui/ReportTable/types/report-columns';
|
|
4
|
+
import type { IOrder } from '../../types';
|
|
5
|
+
import type { IReportCampaign } from '../../types/report';
|
|
6
|
+
export interface OrderListingTableOptions {
|
|
6
7
|
hideSummary?: boolean;
|
|
7
8
|
limitRowAmount?: number;
|
|
8
9
|
hidePaginationRow?: boolean;
|
|
@@ -10,7 +11,7 @@ interface OrderListingTableOptions {
|
|
|
10
11
|
fixedColumns?: IReportColumn['name'][];
|
|
11
12
|
isLatestTable?: boolean;
|
|
12
13
|
}
|
|
13
|
-
interface OrderListingTableProps {
|
|
14
|
+
export interface OrderListingTableProps {
|
|
14
15
|
orders: IOrder[];
|
|
15
16
|
isLoading: boolean;
|
|
16
17
|
totalStoreOrders: number;
|
|
@@ -19,9 +20,13 @@ interface OrderListingTableProps {
|
|
|
19
20
|
paginationProps?: GPaginationProps;
|
|
20
21
|
tableOptions?: OrderListingTableOptions;
|
|
21
22
|
isMockData?: boolean;
|
|
23
|
+
selectedColumns?: EReportColumnKey[];
|
|
24
|
+
columnsOrder?: EReportColumnKey[];
|
|
25
|
+
isFilteredByCampaign?: boolean;
|
|
26
|
+
isHasControlFilters?: boolean;
|
|
22
27
|
onViewAllStoreOrders?: () => void;
|
|
23
|
-
onViewOrderJourney?: (orderId: string) => void;
|
|
28
|
+
onViewOrderJourney?: (orderId: string, gxId?: string) => void;
|
|
24
29
|
onViewOrderDetails?: (orderId: string) => void;
|
|
25
30
|
}
|
|
26
|
-
declare const _default: import("react").MemoExoticComponent<({ orders, isLoading, totalStoreOrders, queryValue, paginationProps, tableOptions, isMockData, onViewAllStoreOrders, onViewOrderJourney, onViewOrderDetails, }: OrderListingTableProps) => import("react/jsx-runtime").JSX.Element>;
|
|
31
|
+
declare const _default: import("react").MemoExoticComponent<({ orders, isLoading, totalStoreOrders, queryValue, paginationProps, tableOptions, isMockData, selectedColumns, columnsOrder, isFilteredByCampaign, isHasControlFilters, onViewAllStoreOrders, onViewOrderJourney, onViewOrderDetails, }: OrderListingTableProps) => import("react/jsx-runtime").JSX.Element>;
|
|
27
32
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OrderListing';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
|
|
2
|
+
import type { EReportColumnKey } from '@/shared/reports/ui/ReportTable/types/report-columns';
|
|
2
3
|
import type { IOrder } from '../types';
|
|
3
4
|
interface UseOrderListingDataProps {
|
|
4
5
|
limitRowAmount?: number;
|
|
5
6
|
orderListing?: IOrder[];
|
|
6
7
|
fixedColumns?: IReportColumn['name'][];
|
|
8
|
+
selectedColumns?: EReportColumnKey[];
|
|
9
|
+
columnsOrder?: EReportColumnKey[];
|
|
7
10
|
}
|
|
8
|
-
export declare const useOrderListingData: ({ limitRowAmount, orderListing, fixedColumns }: UseOrderListingDataProps) => {
|
|
11
|
+
export declare const useOrderListingData: ({ limitRowAmount, orderListing, fixedColumns, selectedColumns: externalSelectedColumns, columnsOrder: externalColumnsOrder, }: UseOrderListingDataProps) => {
|
|
9
12
|
showColumns: IReportColumn[];
|
|
10
13
|
tableData: {
|
|
11
14
|
rows: import("@/shared/reports/common/Visualization/types").ReportRowType<import("@/shared/reports/common/Visualization/types").ReportValueType>[];
|
package/dist/esm/gemxql.js
CHANGED
|
@@ -1139,6 +1139,20 @@ var ETrafficSourceType;
|
|
|
1139
1139
|
ETrafficSourceType["SMS"] = "sms";
|
|
1140
1140
|
})(ETrafficSourceType || (ETrafficSourceType = {}));
|
|
1141
1141
|
|
|
1142
|
+
var ICampaignType;
|
|
1143
|
+
(function (ICampaignType) {
|
|
1144
|
+
// CONTENT = 'CONTENT',
|
|
1145
|
+
ICampaignType["PRICE"] = "PRICE";
|
|
1146
|
+
ICampaignType["TEMPLATE"] = "TEMPLATE";
|
|
1147
|
+
ICampaignType["TEMPLATE_BUNDLE"] = "TEMPLATE_BUNDLE";
|
|
1148
|
+
// THEME = 'THEME',
|
|
1149
|
+
})(ICampaignType || (ICampaignType = {}));
|
|
1150
|
+
var IVariantType;
|
|
1151
|
+
(function (IVariantType) {
|
|
1152
|
+
IVariantType["VARIANT_A"] = "A";
|
|
1153
|
+
IVariantType["VARIANT_B"] = "B";
|
|
1154
|
+
})(IVariantType || (IVariantType = {}));
|
|
1155
|
+
|
|
1142
1156
|
/**
|
|
1143
1157
|
* Pricing enums mirrored from the host app (`~/modules/pricing/types`).
|
|
1144
1158
|
*
|
|
@@ -1176,19 +1190,18 @@ var IShopPlanState;
|
|
|
1176
1190
|
IShopPlanState["ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT"] = "ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT";
|
|
1177
1191
|
})(IShopPlanState || (IShopPlanState = {}));
|
|
1178
1192
|
|
|
1179
|
-
var
|
|
1180
|
-
(function (
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
})(IVariantType || (IVariantType = {}));
|
|
1193
|
+
var EReportColumnKey;
|
|
1194
|
+
(function (EReportColumnKey) {
|
|
1195
|
+
EReportColumnKey["ORDER_ID"] = "order_id";
|
|
1196
|
+
EReportColumnKey["GEMX_ID"] = "gx_id";
|
|
1197
|
+
EReportColumnKey["ORDER_DATE"] = "order_date";
|
|
1198
|
+
EReportColumnKey["TOTAL"] = "total_price";
|
|
1199
|
+
EReportColumnKey["CAMPAIGNS"] = "experiments";
|
|
1200
|
+
EReportColumnKey["TRAFFIC_SOURCE"] = "traffic_source";
|
|
1201
|
+
EReportColumnKey["ITEMS"] = "items";
|
|
1202
|
+
EReportColumnKey["DEVICE"] = "device";
|
|
1203
|
+
EReportColumnKey["VISITOR"] = "visitor_type";
|
|
1204
|
+
})(EReportColumnKey || (EReportColumnKey = {}));
|
|
1192
1205
|
|
|
1193
1206
|
[
|
|
1194
1207
|
{ value: EVisitorType.NEW, label: 'New' },
|
package/dist/esm/gemxql.mjs
CHANGED
|
@@ -1139,6 +1139,20 @@ var ETrafficSourceType;
|
|
|
1139
1139
|
ETrafficSourceType["SMS"] = "sms";
|
|
1140
1140
|
})(ETrafficSourceType || (ETrafficSourceType = {}));
|
|
1141
1141
|
|
|
1142
|
+
var ICampaignType;
|
|
1143
|
+
(function (ICampaignType) {
|
|
1144
|
+
// CONTENT = 'CONTENT',
|
|
1145
|
+
ICampaignType["PRICE"] = "PRICE";
|
|
1146
|
+
ICampaignType["TEMPLATE"] = "TEMPLATE";
|
|
1147
|
+
ICampaignType["TEMPLATE_BUNDLE"] = "TEMPLATE_BUNDLE";
|
|
1148
|
+
// THEME = 'THEME',
|
|
1149
|
+
})(ICampaignType || (ICampaignType = {}));
|
|
1150
|
+
var IVariantType;
|
|
1151
|
+
(function (IVariantType) {
|
|
1152
|
+
IVariantType["VARIANT_A"] = "A";
|
|
1153
|
+
IVariantType["VARIANT_B"] = "B";
|
|
1154
|
+
})(IVariantType || (IVariantType = {}));
|
|
1155
|
+
|
|
1142
1156
|
/**
|
|
1143
1157
|
* Pricing enums mirrored from the host app (`~/modules/pricing/types`).
|
|
1144
1158
|
*
|
|
@@ -1176,19 +1190,18 @@ var IShopPlanState;
|
|
|
1176
1190
|
IShopPlanState["ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT"] = "ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT";
|
|
1177
1191
|
})(IShopPlanState || (IShopPlanState = {}));
|
|
1178
1192
|
|
|
1179
|
-
var
|
|
1180
|
-
(function (
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
})(IVariantType || (IVariantType = {}));
|
|
1193
|
+
var EReportColumnKey;
|
|
1194
|
+
(function (EReportColumnKey) {
|
|
1195
|
+
EReportColumnKey["ORDER_ID"] = "order_id";
|
|
1196
|
+
EReportColumnKey["GEMX_ID"] = "gx_id";
|
|
1197
|
+
EReportColumnKey["ORDER_DATE"] = "order_date";
|
|
1198
|
+
EReportColumnKey["TOTAL"] = "total_price";
|
|
1199
|
+
EReportColumnKey["CAMPAIGNS"] = "experiments";
|
|
1200
|
+
EReportColumnKey["TRAFFIC_SOURCE"] = "traffic_source";
|
|
1201
|
+
EReportColumnKey["ITEMS"] = "items";
|
|
1202
|
+
EReportColumnKey["DEVICE"] = "device";
|
|
1203
|
+
EReportColumnKey["VISITOR"] = "visitor_type";
|
|
1204
|
+
})(EReportColumnKey || (EReportColumnKey = {}));
|
|
1192
1205
|
|
|
1193
1206
|
[
|
|
1194
1207
|
{ value: EVisitorType.NEW, label: 'New' },
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,3 +4,6 @@ export * from './hooks/publish';
|
|
|
4
4
|
export * from './providers';
|
|
5
5
|
export * from './stores';
|
|
6
6
|
export * from './utils/dayjs';
|
|
7
|
+
export * from './shared/reports/ui/ReportTable/ReportTable';
|
|
8
|
+
export { ReportTableSkeleton } from './shared/reports/ui/ReportTable/ReportTableSkeleton';
|
|
9
|
+
export { formatReportData } from './shared/reports/ui/ReportTable/utils/format';
|