@gem-sdk/analytics 1.0.2-dev.1 → 1.0.2-dev.3
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/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +1 -1
- package/dist/esm/core/gemxql/types/extra-condition.d.ts +8 -2
- package/dist/esm/gemxql.js +7 -0
- package/dist/esm/gemxql.mjs +7 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +281 -272
- package/dist/esm/index.mjs +281 -272
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/idBadge.d.ts +1 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/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/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/style.css +1 -1
- package/dist/umd/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +1 -1
- package/dist/umd/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +1 -1
- package/dist/umd/esm/core/gemxql/types/extra-condition.d.ts +8 -2
- package/dist/umd/esm/index.d.ts +3 -0
- package/dist/umd/esm/shared/journey/ui/JourneyTitle/constants/idBadge.d.ts +1 -0
- package/dist/umd/esm/shared/journey/ui/JourneyTitle/constants/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/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/gemxql.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
@@ -25,7 +25,7 @@ export interface OrderListingTableProps {
|
|
|
25
25
|
isFilteredByCampaign?: boolean;
|
|
26
26
|
isHasControlFilters?: boolean;
|
|
27
27
|
onViewAllStoreOrders?: () => void;
|
|
28
|
-
onViewOrderJourney?: (orderId: string) => void;
|
|
28
|
+
onViewOrderJourney?: (orderId: string, gxId?: string) => void;
|
|
29
29
|
onViewOrderDetails?: (orderId: string) => void;
|
|
30
30
|
}
|
|
31
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>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum EComparisonOperator {
|
|
2
2
|
EQ = "=",
|
|
3
3
|
IN = "IN",
|
|
4
|
-
LIKE = "LIKE"
|
|
4
|
+
LIKE = "LIKE",
|
|
5
|
+
GROUP = "GROUP"
|
|
5
6
|
}
|
|
6
7
|
export declare enum EGroupOperator {
|
|
7
8
|
OR = "OR",
|
|
@@ -25,4 +26,9 @@ export type IExtraConditionLike = {
|
|
|
25
26
|
value: string;
|
|
26
27
|
groupOperator?: EGroupOperator;
|
|
27
28
|
};
|
|
28
|
-
export type
|
|
29
|
+
export type IExtraConditionGroup = {
|
|
30
|
+
operator: EComparisonOperator.GROUP;
|
|
31
|
+
groupOperator: EGroupOperator;
|
|
32
|
+
conditions: IExtraCondition[];
|
|
33
|
+
};
|
|
34
|
+
export type IExtraCondition = IExtraConditionEq | IExtraConditionIn | IExtraConditionLike | IExtraConditionGroup;
|
package/dist/esm/gemxql.js
CHANGED
|
@@ -55,6 +55,7 @@ var EComparisonOperator;
|
|
|
55
55
|
EComparisonOperator["EQ"] = "=";
|
|
56
56
|
EComparisonOperator["IN"] = "IN";
|
|
57
57
|
EComparisonOperator["LIKE"] = "LIKE";
|
|
58
|
+
EComparisonOperator["GROUP"] = "GROUP";
|
|
58
59
|
})(EComparisonOperator || (EComparisonOperator = {}));
|
|
59
60
|
var EGroupOperator;
|
|
60
61
|
(function (EGroupOperator) {
|
|
@@ -202,6 +203,10 @@ const buildLike = ({ fields, value, groupOperator }) => {
|
|
|
202
203
|
return '';
|
|
203
204
|
return joinFieldClauses(fields.map((field) => `${field} LIKE '%${trimmed.replace(/'/g, "''")}%'`), groupOperator);
|
|
204
205
|
};
|
|
206
|
+
const buildGroup = ({ conditions, groupOperator }) => {
|
|
207
|
+
const parts = conditions.map(buildExtraCondition).filter(Boolean);
|
|
208
|
+
return joinFieldClauses(parts, groupOperator);
|
|
209
|
+
};
|
|
205
210
|
const buildExtraCondition = (condition) => {
|
|
206
211
|
switch (condition.operator) {
|
|
207
212
|
case EComparisonOperator.EQ:
|
|
@@ -210,6 +215,8 @@ const buildExtraCondition = (condition) => {
|
|
|
210
215
|
return buildIn(condition);
|
|
211
216
|
case EComparisonOperator.LIKE:
|
|
212
217
|
return buildLike(condition);
|
|
218
|
+
case EComparisonOperator.GROUP:
|
|
219
|
+
return buildGroup(condition);
|
|
213
220
|
}
|
|
214
221
|
};
|
|
215
222
|
const buildExtraConditions = (conditions) => {
|
package/dist/esm/gemxql.mjs
CHANGED
|
@@ -55,6 +55,7 @@ var EComparisonOperator;
|
|
|
55
55
|
EComparisonOperator["EQ"] = "=";
|
|
56
56
|
EComparisonOperator["IN"] = "IN";
|
|
57
57
|
EComparisonOperator["LIKE"] = "LIKE";
|
|
58
|
+
EComparisonOperator["GROUP"] = "GROUP";
|
|
58
59
|
})(EComparisonOperator || (EComparisonOperator = {}));
|
|
59
60
|
var EGroupOperator;
|
|
60
61
|
(function (EGroupOperator) {
|
|
@@ -202,6 +203,10 @@ const buildLike = ({ fields, value, groupOperator }) => {
|
|
|
202
203
|
return '';
|
|
203
204
|
return joinFieldClauses(fields.map((field) => `${field} LIKE '%${trimmed.replace(/'/g, "''")}%'`), groupOperator);
|
|
204
205
|
};
|
|
206
|
+
const buildGroup = ({ conditions, groupOperator }) => {
|
|
207
|
+
const parts = conditions.map(buildExtraCondition).filter(Boolean);
|
|
208
|
+
return joinFieldClauses(parts, groupOperator);
|
|
209
|
+
};
|
|
205
210
|
const buildExtraCondition = (condition) => {
|
|
206
211
|
switch (condition.operator) {
|
|
207
212
|
case EComparisonOperator.EQ:
|
|
@@ -210,6 +215,8 @@ const buildExtraCondition = (condition) => {
|
|
|
210
215
|
return buildIn(condition);
|
|
211
216
|
case EComparisonOperator.LIKE:
|
|
212
217
|
return buildLike(condition);
|
|
218
|
+
case EComparisonOperator.GROUP:
|
|
219
|
+
return buildGroup(condition);
|
|
213
220
|
}
|
|
214
221
|
};
|
|
215
222
|
const buildExtraConditions = (conditions) => {
|
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';
|