@deenruv/dashboard-widgets-plugin 1.0.0
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/LICENSE +23 -0
- package/README.md +58 -0
- package/dist/plugin-server/constants.d.ts +4 -0
- package/dist/plugin-server/constants.js +12 -0
- package/dist/plugin-server/controllers/admin-ui-controller.d.ts +4 -0
- package/dist/plugin-server/controllers/admin-ui-controller.js +46 -0
- package/dist/plugin-server/controllers/refresh-view-controller.d.ts +8 -0
- package/dist/plugin-server/controllers/refresh-view-controller.js +41 -0
- package/dist/plugin-server/index.d.ts +1 -0
- package/dist/plugin-server/index.js +17 -0
- package/dist/plugin-server/materialisedViewEntities/order_summary.d.ts +9 -0
- package/dist/plugin-server/materialisedViewEntities/order_summary.js +79 -0
- package/dist/plugin-server/materialisedViewEntities/orders_summary_with_state.d.ts +10 -0
- package/dist/plugin-server/materialisedViewEntities/orders_summary_with_state.js +79 -0
- package/dist/plugin-server/materialisedViewEntities/total_products.d.ts +7 -0
- package/dist/plugin-server/materialisedViewEntities/total_products.js +62 -0
- package/dist/plugin-server/materialisedViewEntities/total_products_with_state.d.ts +9 -0
- package/dist/plugin-server/materialisedViewEntities/total_products_with_state.js +62 -0
- package/dist/plugin-server/plugin.d.ts +6 -0
- package/dist/plugin-server/plugin.js +149 -0
- package/dist/plugin-server/raw-sql.d.ts +8 -0
- package/dist/plugin-server/raw-sql.js +48 -0
- package/dist/plugin-server/resolvers/admin.resolver.d.ts +47 -0
- package/dist/plugin-server/resolvers/admin.resolver.js +63 -0
- package/dist/plugin-server/services/metrics.service.d.ts +30 -0
- package/dist/plugin-server/services/metrics.service.js +272 -0
- package/dist/plugin-server/types.d.ts +20 -0
- package/dist/plugin-server/types.js +2 -0
- package/dist/plugin-server/utils.d.ts +1 -0
- package/dist/plugin-server/utils.js +12 -0
- package/dist/plugin-server/zeus/const.d.ts +6 -0
- package/dist/plugin-server/zeus/const.js +3675 -0
- package/dist/plugin-server/zeus/index.d.ts +18709 -0
- package/dist/plugin-server/zeus/index.js +1122 -0
- package/dist/plugin-server/zeus/typedDocumentNode.d.ts +3 -0
- package/dist/plugin-server/zeus/typedDocumentNode.js +16 -0
- package/dist/plugin-ui/components/CategoriesChartWidget/dashCaseToSpaces.d.ts +1 -0
- package/dist/plugin-ui/components/CategoriesChartWidget/dashCaseToSpaces.js +6 -0
- package/dist/plugin-ui/components/CategoriesChartWidget/index.d.ts +2 -0
- package/dist/plugin-ui/components/CategoriesChartWidget/index.js +100 -0
- package/dist/plugin-ui/components/LatestOrdersWidget/index.d.ts +4 -0
- package/dist/plugin-ui/components/LatestOrdersWidget/index.js +96 -0
- package/dist/plugin-ui/components/LatestOrdersWidget/paymentMethod.d.ts +6 -0
- package/dist/plugin-ui/components/LatestOrdersWidget/paymentMethod.js +7 -0
- package/dist/plugin-ui/components/OrdersWidget/CustomTooltip.d.ts +18 -0
- package/dist/plugin-ui/components/OrdersWidget/CustomTooltip.js +92 -0
- package/dist/plugin-ui/components/OrdersWidget/GroupBySelect.d.ts +8 -0
- package/dist/plugin-ui/components/OrdersWidget/GroupBySelect.js +17 -0
- package/dist/plugin-ui/components/OrdersWidget/MetricCustomDates.d.ts +9 -0
- package/dist/plugin-ui/components/OrdersWidget/MetricCustomDates.js +27 -0
- package/dist/plugin-ui/components/OrdersWidget/MetricTypeSelect.d.ts +9 -0
- package/dist/plugin-ui/components/OrdersWidget/MetricTypeSelect.js +17 -0
- package/dist/plugin-ui/components/OrdersWidget/OrdersChart.d.ts +24 -0
- package/dist/plugin-ui/components/OrdersWidget/OrdersChart.js +46 -0
- package/dist/plugin-ui/components/OrdersWidget/OrdersSummaryTile.d.ts +13 -0
- package/dist/plugin-ui/components/OrdersWidget/OrdersSummaryTile.js +115 -0
- package/dist/plugin-ui/components/OrdersWidget/ProductSelector.d.ts +17 -0
- package/dist/plugin-ui/components/OrdersWidget/ProductSelector.js +37 -0
- package/dist/plugin-ui/components/OrdersWidget/RatioBadge.d.ts +6 -0
- package/dist/plugin-ui/components/OrdersWidget/RatioBadge.js +12 -0
- package/dist/plugin-ui/components/OrdersWidget/index.d.ts +2 -0
- package/dist/plugin-ui/components/OrdersWidget/index.js +229 -0
- package/dist/plugin-ui/components/ProductsChartWidget/CustomBarChartTooltip.d.ts +9 -0
- package/dist/plugin-ui/components/ProductsChartWidget/CustomBarChartTooltip.js +14 -0
- package/dist/plugin-ui/components/ProductsChartWidget/index.d.ts +2 -0
- package/dist/plugin-ui/components/ProductsChartWidget/index.js +116 -0
- package/dist/plugin-ui/components/index.d.ts +4 -0
- package/dist/plugin-ui/components/index.js +4 -0
- package/dist/plugin-ui/components/shared/EmptyData.d.ts +6 -0
- package/dist/plugin-ui/components/shared/EmptyData.js +8 -0
- package/dist/plugin-ui/components/shared/MetricsRangeSelect.d.ts +10 -0
- package/dist/plugin-ui/components/shared/MetricsRangeSelect.js +26 -0
- package/dist/plugin-ui/components/shared/OrderStatesSelect.d.ts +8 -0
- package/dist/plugin-ui/components/shared/OrderStatesSelect.js +28 -0
- package/dist/plugin-ui/components/shared/PeriodSelect.d.ts +20 -0
- package/dist/plugin-ui/components/shared/PeriodSelect.js +56 -0
- package/dist/plugin-ui/components/shared/colors.d.ts +1 -0
- package/dist/plugin-ui/components/shared/colors.js +1 -0
- package/dist/plugin-ui/components/shared/index.d.ts +3 -0
- package/dist/plugin-ui/components/shared/index.js +3 -0
- package/dist/plugin-ui/graphql/index.d.ts +2 -0
- package/dist/plugin-ui/graphql/index.js +2 -0
- package/dist/plugin-ui/graphql/queries.d.ts +425 -0
- package/dist/plugin-ui/graphql/queries.js +182 -0
- package/dist/plugin-ui/graphql/selectors.d.ts +19 -0
- package/dist/plugin-ui/graphql/selectors.js +21 -0
- package/dist/plugin-ui/index.d.ts +9 -0
- package/dist/plugin-ui/index.js +21 -0
- package/dist/plugin-ui/locales/en/index.d.ts +72 -0
- package/dist/plugin-ui/locales/en/index.js +2 -0
- package/dist/plugin-ui/locales/en/test.json +71 -0
- package/dist/plugin-ui/locales/pl/index.d.ts +71 -0
- package/dist/plugin-ui/locales/pl/index.js +2 -0
- package/dist/plugin-ui/locales/pl/test.json +70 -0
- package/dist/plugin-ui/tsconfig.json +18 -0
- package/dist/plugin-ui/types.d.ts +64 -0
- package/dist/plugin-ui/types.js +14 -0
- package/dist/plugin-ui/utils.d.ts +70 -0
- package/dist/plugin-ui/utils.js +366 -0
- package/dist/plugin-ui/widgets.d.ts +15 -0
- package/dist/plugin-ui/widgets.js +36 -0
- package/dist/plugin-ui/zeus/const.d.ts +6 -0
- package/dist/plugin-ui/zeus/const.js +3672 -0
- package/dist/plugin-ui/zeus/index.d.ts +18709 -0
- package/dist/plugin-ui/zeus/index.js +1114 -0
- package/dist/plugin-ui/zeus/typedDocumentNode.d.ts +3 -0
- package/dist/plugin-ui/zeus/typedDocumentNode.js +9 -0
- package/package.json +52 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface OrderStatesSelectProps {
|
|
3
|
+
additionalOrderStates?: string[];
|
|
4
|
+
selectedOrderStates: string[];
|
|
5
|
+
onSelectedOrderStatesChange: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OrderStatesSelect: React.FC<OrderStatesSelectProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Button, cn, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ORDER_STATE, Popover, PopoverContent, PopoverTrigger, useTranslation, } from "@deenruv/react-ui-devkit";
|
|
2
|
+
import { Check, ChevronsUpDown } from "lucide-react";
|
|
3
|
+
import React, { useMemo, useState } from "react";
|
|
4
|
+
export const OrderStatesSelect = ({ additionalOrderStates, onSelectedOrderStatesChange, selectedOrderStates, }) => {
|
|
5
|
+
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
6
|
+
const { t } = useTranslation("dashboard-widgets-plugin");
|
|
7
|
+
const allStates = useMemo(() => [...Object.values(ORDER_STATE), ...(additionalOrderStates || [])]
|
|
8
|
+
.filter((i, index, arr) => arr.indexOf(i) === index)
|
|
9
|
+
.sort((a, b) => a.localeCompare(b)), [additionalOrderStates]);
|
|
10
|
+
return (React.createElement(Popover, { open: popoverOpen, onOpenChange: setPopoverOpen },
|
|
11
|
+
React.createElement(PopoverTrigger, { asChild: true },
|
|
12
|
+
React.createElement(Button, { variant: "outline", role: "combobox", className: "h-[30px] w-full max-w-[240px] justify-between py-0 font-normal" },
|
|
13
|
+
selectedOrderStates.length
|
|
14
|
+
? `${t("selectedOrderStates")} (${selectedOrderStates.length})`
|
|
15
|
+
: t("selectOrderStates"),
|
|
16
|
+
React.createElement(ChevronsUpDown, { size: 16, className: "opacity-50" }))),
|
|
17
|
+
React.createElement(PopoverContent, { className: "w-max p-0" },
|
|
18
|
+
React.createElement(Command, null,
|
|
19
|
+
React.createElement("div", { className: "relative" },
|
|
20
|
+
React.createElement(CommandInput, { className: "border-none", placeholder: t("searchOrderStates") })),
|
|
21
|
+
React.createElement(CommandList, null,
|
|
22
|
+
React.createElement(CommandEmpty, null, t("noOrderStatesFound")),
|
|
23
|
+
React.createElement(CommandGroup, null, allStates.map((value) => (React.createElement(CommandItem, { className: "cursor-pointer", key: value, value: value, onSelect: () => onSelectedOrderStatesChange(value) },
|
|
24
|
+
React.createElement(Check, { className: cn("mr-2 h-4 w-4", selectedOrderStates.includes(value)
|
|
25
|
+
? "opacity-100"
|
|
26
|
+
: "opacity-0") }),
|
|
27
|
+
React.createElement("span", { className: "shrink-0" }, value))))))))));
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare enum Periods {
|
|
3
|
+
Today = "today",
|
|
4
|
+
Yesterday = "yesterday",
|
|
5
|
+
ThisWeek = "thisWeek",
|
|
6
|
+
ThisMonth = "thisMonth",
|
|
7
|
+
ThisYear = "thisYear"
|
|
8
|
+
}
|
|
9
|
+
export type Period = {
|
|
10
|
+
period: Periods;
|
|
11
|
+
text: string;
|
|
12
|
+
start: Date;
|
|
13
|
+
end: Date;
|
|
14
|
+
};
|
|
15
|
+
interface PeriodSelectProps {
|
|
16
|
+
selectedPeriod: Periods;
|
|
17
|
+
onPeriodChange: (period: Period) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const PeriodSelect: React.FC<PeriodSelectProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, useTranslation, } from "@deenruv/react-ui-devkit";
|
|
2
|
+
import React, { useCallback, useMemo } from "react";
|
|
3
|
+
import { endOfMonth, endOfToday, endOfWeek, endOfYear, endOfYesterday, startOfMonth, startOfToday, startOfWeek, startOfYear, startOfYesterday, } from "date-fns";
|
|
4
|
+
export var Periods;
|
|
5
|
+
(function (Periods) {
|
|
6
|
+
Periods["Today"] = "today";
|
|
7
|
+
Periods["Yesterday"] = "yesterday";
|
|
8
|
+
Periods["ThisWeek"] = "thisWeek";
|
|
9
|
+
Periods["ThisMonth"] = "thisMonth";
|
|
10
|
+
Periods["ThisYear"] = "thisYear";
|
|
11
|
+
})(Periods || (Periods = {}));
|
|
12
|
+
export const PeriodSelect = ({ selectedPeriod, onPeriodChange, }) => {
|
|
13
|
+
const { t } = useTranslation("dashboard-widgets-plugin");
|
|
14
|
+
const _periods = useMemo(() => [
|
|
15
|
+
{
|
|
16
|
+
period: Periods.Today,
|
|
17
|
+
text: t("today"),
|
|
18
|
+
start: startOfToday(),
|
|
19
|
+
end: endOfToday(),
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
period: Periods.Yesterday,
|
|
23
|
+
text: t("yesterday"),
|
|
24
|
+
start: startOfYesterday(),
|
|
25
|
+
end: endOfYesterday(),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
period: Periods.ThisWeek,
|
|
29
|
+
text: t("thisWeek"),
|
|
30
|
+
start: startOfWeek(new Date(), { weekStartsOn: 1 }),
|
|
31
|
+
end: endOfWeek(new Date(), { weekStartsOn: 1 }),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
period: Periods.ThisMonth,
|
|
35
|
+
text: t("thisMonth"),
|
|
36
|
+
start: startOfMonth(new Date()),
|
|
37
|
+
end: endOfMonth(new Date()),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
period: Periods.ThisYear,
|
|
41
|
+
text: t("thisYear"),
|
|
42
|
+
start: startOfYear(new Date()),
|
|
43
|
+
end: endOfYear(new Date()),
|
|
44
|
+
},
|
|
45
|
+
], [t]);
|
|
46
|
+
const handlePeriodChange = useCallback((period) => {
|
|
47
|
+
const periodData = _periods.find((p) => p.period === period);
|
|
48
|
+
if (periodData)
|
|
49
|
+
onPeriodChange(periodData);
|
|
50
|
+
}, [onPeriodChange, _periods]);
|
|
51
|
+
return (React.createElement(Select, { onValueChange: (value) => handlePeriodChange(value), value: selectedPeriod, defaultValue: _periods[0].period },
|
|
52
|
+
React.createElement(SelectTrigger, { className: "h-[30px] w-[180px] text-[13px]" },
|
|
53
|
+
React.createElement(SelectValue, { placeholder: t("selectDataType") })),
|
|
54
|
+
React.createElement(SelectContent, null,
|
|
55
|
+
React.createElement(SelectGroup, null, _periods.map((p) => (React.createElement(SelectItem, { key: p.period, value: p.period }, p.text)))))));
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const colors: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const colors = ["#2563eb", "#60a5fa", "#3b82f6", "#93c5fd", "#bfdbfe"];
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { SortOrder } from "../zeus";
|
|
2
|
+
export declare const OrdersSummaryQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
3
|
+
orders: {
|
|
4
|
+
items: {
|
|
5
|
+
currencyCode: import("../zeus").CurrencyCode;
|
|
6
|
+
total: number;
|
|
7
|
+
totalWithTax: number;
|
|
8
|
+
}[];
|
|
9
|
+
totalItems: number;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
options?: {
|
|
13
|
+
skip?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
14
|
+
take?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
15
|
+
sort?: {
|
|
16
|
+
customerLastName?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
17
|
+
transactionId?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
18
|
+
aggregateOrderId?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
19
|
+
id?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
20
|
+
createdAt?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
21
|
+
updatedAt?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
22
|
+
orderPlacedAt?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
23
|
+
code?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
24
|
+
state?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
25
|
+
totalQuantity?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
26
|
+
subTotal?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
27
|
+
subTotalWithTax?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
28
|
+
shipping?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
29
|
+
shippingWithTax?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
30
|
+
total?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
31
|
+
totalWithTax?: SortOrder | import("../zeus").Variable<any, string> | null | undefined;
|
|
32
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
33
|
+
filter?: {
|
|
34
|
+
customerLastName?: {
|
|
35
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
36
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
37
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
38
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
39
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
40
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
41
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
42
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
43
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
44
|
+
transactionId?: {
|
|
45
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
46
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
47
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
48
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
49
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
50
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
51
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
52
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
53
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
54
|
+
aggregateOrderId?: {
|
|
55
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
56
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
57
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
58
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
59
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
60
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
61
|
+
id?: {
|
|
62
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
63
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
64
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
65
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
66
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
67
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
68
|
+
createdAt?: {
|
|
69
|
+
eq?: unknown;
|
|
70
|
+
before?: unknown;
|
|
71
|
+
after?: unknown;
|
|
72
|
+
between?: {
|
|
73
|
+
start: unknown;
|
|
74
|
+
end: unknown;
|
|
75
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
76
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
77
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
78
|
+
updatedAt?: {
|
|
79
|
+
eq?: unknown;
|
|
80
|
+
before?: unknown;
|
|
81
|
+
after?: unknown;
|
|
82
|
+
between?: {
|
|
83
|
+
start: unknown;
|
|
84
|
+
end: unknown;
|
|
85
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
86
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
87
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
88
|
+
type?: {
|
|
89
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
90
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
91
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
92
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
93
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
94
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
95
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
96
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
97
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
98
|
+
orderPlacedAt?: {
|
|
99
|
+
eq?: unknown;
|
|
100
|
+
before?: unknown;
|
|
101
|
+
after?: unknown;
|
|
102
|
+
between?: {
|
|
103
|
+
start: unknown;
|
|
104
|
+
end: unknown;
|
|
105
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
106
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
107
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
108
|
+
code?: {
|
|
109
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
110
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
111
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
112
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
113
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
114
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
115
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
116
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
117
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
118
|
+
state?: {
|
|
119
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
120
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
121
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
122
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
123
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
124
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
125
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
126
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
127
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
128
|
+
active?: {
|
|
129
|
+
eq?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
130
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
131
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
132
|
+
totalQuantity?: {
|
|
133
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
134
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
135
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
136
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
137
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
138
|
+
between?: {
|
|
139
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
140
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
141
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
142
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
143
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
144
|
+
subTotal?: {
|
|
145
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
146
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
147
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
148
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
149
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
150
|
+
between?: {
|
|
151
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
152
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
153
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
154
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
155
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
156
|
+
subTotalWithTax?: {
|
|
157
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
158
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
159
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
160
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
161
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
162
|
+
between?: {
|
|
163
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
164
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
165
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
166
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
167
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
168
|
+
currencyCode?: {
|
|
169
|
+
eq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
170
|
+
notEq?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
171
|
+
contains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
172
|
+
notContains?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
173
|
+
in?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
174
|
+
notIn?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
175
|
+
regex?: string | import("../zeus").Variable<any, string> | null | undefined;
|
|
176
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
177
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
178
|
+
shipping?: {
|
|
179
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
180
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
181
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
182
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
183
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
184
|
+
between?: {
|
|
185
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
186
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
187
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
188
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
189
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
190
|
+
shippingWithTax?: {
|
|
191
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
192
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
193
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
194
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
195
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
196
|
+
between?: {
|
|
197
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
198
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
199
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
200
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
201
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
202
|
+
total?: {
|
|
203
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
204
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
205
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
206
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
207
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
208
|
+
between?: {
|
|
209
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
210
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
211
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
212
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
213
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
214
|
+
totalWithTax?: {
|
|
215
|
+
eq?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
216
|
+
lt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
217
|
+
lte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
218
|
+
gt?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
219
|
+
gte?: number | import("../zeus").Variable<any, string> | null | undefined;
|
|
220
|
+
between?: {
|
|
221
|
+
start: number | import("../zeus").Variable<any, string>;
|
|
222
|
+
end: number | import("../zeus").Variable<any, string>;
|
|
223
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
224
|
+
isNull?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
225
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
226
|
+
_and?: import("../zeus").Variable<any, string> | any[] | null | undefined;
|
|
227
|
+
_or?: import("../zeus").Variable<any, string> | any[] | null | undefined;
|
|
228
|
+
} | import("../zeus").Variable<any, string> | null | undefined;
|
|
229
|
+
filterOperator?: import("../zeus").LogicalOperator | import("../zeus").Variable<any, string> | null | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
} & {}>;
|
|
232
|
+
export declare const CategoriesMetricQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
233
|
+
chartMetric: {
|
|
234
|
+
data: {
|
|
235
|
+
title: string;
|
|
236
|
+
type: import("../zeus").ChartMetricType;
|
|
237
|
+
entries: {
|
|
238
|
+
value: number;
|
|
239
|
+
intervalTick: number;
|
|
240
|
+
additionalData?: {
|
|
241
|
+
name: string;
|
|
242
|
+
id: string;
|
|
243
|
+
quantity: number;
|
|
244
|
+
}[] | undefined;
|
|
245
|
+
}[];
|
|
246
|
+
}[];
|
|
247
|
+
};
|
|
248
|
+
}, {} & {
|
|
249
|
+
input: {
|
|
250
|
+
range: {
|
|
251
|
+
start: unknown;
|
|
252
|
+
end?: unknown;
|
|
253
|
+
} | import("../zeus").Variable<any, string>;
|
|
254
|
+
interval: import("../zeus").MetricIntervalType | import("../zeus").Variable<any, string>;
|
|
255
|
+
types: import("../zeus").Variable<any, string> | import("../zeus").ChartMetricType[];
|
|
256
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
257
|
+
productIDs?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
258
|
+
net?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
259
|
+
};
|
|
260
|
+
}>;
|
|
261
|
+
export declare const ChartMetricQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
262
|
+
prevChartMetric: {
|
|
263
|
+
data: {
|
|
264
|
+
title: string;
|
|
265
|
+
type: import("../zeus").ChartMetricType;
|
|
266
|
+
entries: {
|
|
267
|
+
value: number;
|
|
268
|
+
intervalTick: number;
|
|
269
|
+
additionalData?: {
|
|
270
|
+
name: string;
|
|
271
|
+
id: string;
|
|
272
|
+
quantity: number;
|
|
273
|
+
}[] | undefined;
|
|
274
|
+
}[];
|
|
275
|
+
}[];
|
|
276
|
+
};
|
|
277
|
+
} & {
|
|
278
|
+
chartMetric: {
|
|
279
|
+
data: {
|
|
280
|
+
title: string;
|
|
281
|
+
type: import("../zeus").ChartMetricType;
|
|
282
|
+
entries: {
|
|
283
|
+
value: number;
|
|
284
|
+
intervalTick: number;
|
|
285
|
+
additionalData?: {
|
|
286
|
+
name: string;
|
|
287
|
+
id: string;
|
|
288
|
+
quantity: number;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
}[];
|
|
291
|
+
}[];
|
|
292
|
+
};
|
|
293
|
+
}, {} & {
|
|
294
|
+
input: {
|
|
295
|
+
range: {
|
|
296
|
+
start: unknown;
|
|
297
|
+
end?: unknown;
|
|
298
|
+
} | import("../zeus").Variable<any, string>;
|
|
299
|
+
interval: import("../zeus").MetricIntervalType | import("../zeus").Variable<any, string>;
|
|
300
|
+
types: import("../zeus").Variable<any, string> | import("../zeus").ChartMetricType[];
|
|
301
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
302
|
+
productIDs?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
303
|
+
net?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
304
|
+
};
|
|
305
|
+
} & {} & {
|
|
306
|
+
prevInput: {
|
|
307
|
+
range: {
|
|
308
|
+
start: unknown;
|
|
309
|
+
end?: unknown;
|
|
310
|
+
} | import("../zeus").Variable<any, string>;
|
|
311
|
+
interval: import("../zeus").MetricIntervalType | import("../zeus").Variable<any, string>;
|
|
312
|
+
types: import("../zeus").Variable<any, string> | import("../zeus").ChartMetricType[];
|
|
313
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
314
|
+
productIDs?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
315
|
+
net?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
export declare const BarChartMetricQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
319
|
+
chartMetric: {
|
|
320
|
+
data: {
|
|
321
|
+
title: string;
|
|
322
|
+
type: import("../zeus").ChartMetricType;
|
|
323
|
+
entries: {
|
|
324
|
+
value: number;
|
|
325
|
+
intervalTick: number;
|
|
326
|
+
additionalData?: {
|
|
327
|
+
name: string;
|
|
328
|
+
id: string;
|
|
329
|
+
quantity: number;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
}[];
|
|
332
|
+
}[];
|
|
333
|
+
};
|
|
334
|
+
}, {} & {
|
|
335
|
+
input: {
|
|
336
|
+
range: {
|
|
337
|
+
start: unknown;
|
|
338
|
+
end?: unknown;
|
|
339
|
+
} | import("../zeus").Variable<any, string>;
|
|
340
|
+
interval: import("../zeus").MetricIntervalType | import("../zeus").Variable<any, string>;
|
|
341
|
+
types: import("../zeus").Variable<any, string> | import("../zeus").ChartMetricType[];
|
|
342
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
343
|
+
productIDs?: string[] | import("../zeus").Variable<any, string> | null | undefined;
|
|
344
|
+
net?: boolean | import("../zeus").Variable<any, string> | null | undefined;
|
|
345
|
+
};
|
|
346
|
+
}>;
|
|
347
|
+
export declare const OrderSummaryMetricsQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
348
|
+
prevOrderSummaryMetric: {
|
|
349
|
+
data: {
|
|
350
|
+
__typename: "OrderSummaryDataMetric";
|
|
351
|
+
currencyCode: import("../zeus").CurrencyCode;
|
|
352
|
+
total: number;
|
|
353
|
+
totalWithTax: number;
|
|
354
|
+
productCount: number;
|
|
355
|
+
orderCount: number;
|
|
356
|
+
averageOrderValue: number;
|
|
357
|
+
averageOrderValueWithTax: number;
|
|
358
|
+
};
|
|
359
|
+
__typename: "OrderSummaryMetrics";
|
|
360
|
+
};
|
|
361
|
+
} & {
|
|
362
|
+
orderSummaryMetric: {
|
|
363
|
+
data: {
|
|
364
|
+
__typename: "OrderSummaryDataMetric";
|
|
365
|
+
currencyCode: import("../zeus").CurrencyCode;
|
|
366
|
+
total: number;
|
|
367
|
+
totalWithTax: number;
|
|
368
|
+
productCount: number;
|
|
369
|
+
orderCount: number;
|
|
370
|
+
averageOrderValue: number;
|
|
371
|
+
averageOrderValueWithTax: number;
|
|
372
|
+
};
|
|
373
|
+
__typename: "OrderSummaryMetrics";
|
|
374
|
+
};
|
|
375
|
+
}, {} & {
|
|
376
|
+
prevInput: {
|
|
377
|
+
range: {
|
|
378
|
+
start: unknown;
|
|
379
|
+
end?: unknown;
|
|
380
|
+
} | import("../zeus").Variable<any, string>;
|
|
381
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
382
|
+
};
|
|
383
|
+
} & {} & {
|
|
384
|
+
input: {
|
|
385
|
+
range: {
|
|
386
|
+
start: unknown;
|
|
387
|
+
end?: unknown;
|
|
388
|
+
} | import("../zeus").Variable<any, string>;
|
|
389
|
+
orderStates: string[] | import("../zeus").Variable<any, string>;
|
|
390
|
+
};
|
|
391
|
+
}>;
|
|
392
|
+
export declare const ProductCollectionsQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
393
|
+
products: {
|
|
394
|
+
items: {
|
|
395
|
+
collections: {
|
|
396
|
+
slug: string;
|
|
397
|
+
}[];
|
|
398
|
+
}[];
|
|
399
|
+
};
|
|
400
|
+
}, {
|
|
401
|
+
in?: string[] | undefined;
|
|
402
|
+
} & {}>;
|
|
403
|
+
export declare const LatestOrdersQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
404
|
+
orders: {
|
|
405
|
+
items: {
|
|
406
|
+
code: string;
|
|
407
|
+
id: string;
|
|
408
|
+
createdAt: string;
|
|
409
|
+
state: string;
|
|
410
|
+
payments?: {
|
|
411
|
+
id: string;
|
|
412
|
+
method: string;
|
|
413
|
+
}[] | undefined;
|
|
414
|
+
currencyCode: import("../zeus").CurrencyCode;
|
|
415
|
+
totalWithTax: number;
|
|
416
|
+
}[];
|
|
417
|
+
totalItems: number;
|
|
418
|
+
};
|
|
419
|
+
}, {} & {}>;
|
|
420
|
+
export declare const AdditionalOrderStatesQuery: import("@graphql-typed-document-node/core").TypedDocumentNode<{
|
|
421
|
+
additionalOrderStates: {
|
|
422
|
+
state: string;
|
|
423
|
+
selectedByDefault: boolean;
|
|
424
|
+
}[];
|
|
425
|
+
}, {} & {}>;
|