@lyxa.ai/marketing 1.0.46 → 1.0.47
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/lib/index.d.ts +68 -6
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +68 -6
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +12 -3
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +101 -3
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +88 -9
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +15 -4
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +346 -34
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +15 -3
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/index.d.ts +68 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +68 -6
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +346 -34
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1576,12 +1576,12 @@ export declare const GraphInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1576
1576
|
startDate: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>, Date, string | Date>;
|
|
1577
1577
|
endDate: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>, Date, string | Date>;
|
|
1578
1578
|
} & {
|
|
1579
|
-
graphType: z.
|
|
1579
|
+
graphType: z.ZodOptional<z.ZodNativeEnum<typeof GraphType>>;
|
|
1580
1580
|
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
1581
1581
|
}, "strict", z.ZodTypeAny, {
|
|
1582
1582
|
startDate: Date;
|
|
1583
1583
|
endDate: Date;
|
|
1584
|
-
graphType
|
|
1584
|
+
graphType?: GraphType | undefined;
|
|
1585
1585
|
itemType?: ItemType | undefined;
|
|
1586
1586
|
}, {
|
|
1587
1587
|
startDate: string | Date;
|
|
@@ -1591,7 +1591,7 @@ export declare const GraphInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1591
1591
|
}>, {
|
|
1592
1592
|
startDate: Date;
|
|
1593
1593
|
endDate: Date;
|
|
1594
|
-
graphType
|
|
1594
|
+
graphType?: GraphType | undefined;
|
|
1595
1595
|
itemType?: ItemType | undefined;
|
|
1596
1596
|
}, {
|
|
1597
1597
|
startDate: string | Date;
|
|
@@ -1624,6 +1624,91 @@ export declare const CouponMetricsOutputSchema: z.ZodObject<{
|
|
|
1624
1624
|
totalRevenue?: number | undefined;
|
|
1625
1625
|
totalProfit?: number | undefined;
|
|
1626
1626
|
}>;
|
|
1627
|
+
export declare const CouponMetricsByTypeSchema: z.ZodObject<{
|
|
1628
|
+
couponType: z.ZodNativeEnum<typeof CouponType>;
|
|
1629
|
+
couponTypeTitle: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1630
|
+
totalCouponOrders: z.ZodDefault<z.ZodNumber>;
|
|
1631
|
+
totalRevenue: z.ZodDefault<z.ZodNumber>;
|
|
1632
|
+
averageOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1633
|
+
usage: z.ZodDefault<z.ZodNumber>;
|
|
1634
|
+
ongoing: z.ZodDefault<z.ZodNumber>;
|
|
1635
|
+
amountSpent: z.ZodDefault<z.ZodNumber>;
|
|
1636
|
+
redemptionRate: z.ZodDefault<z.ZodNumber>;
|
|
1637
|
+
}, "strip", z.ZodTypeAny, {
|
|
1638
|
+
redemptionRate: number;
|
|
1639
|
+
totalCouponOrders: number;
|
|
1640
|
+
totalRevenue: number;
|
|
1641
|
+
couponType: CouponType;
|
|
1642
|
+
couponTypeTitle: string;
|
|
1643
|
+
averageOrderValue: number;
|
|
1644
|
+
usage: number;
|
|
1645
|
+
ongoing: number;
|
|
1646
|
+
amountSpent: number;
|
|
1647
|
+
}, {
|
|
1648
|
+
couponType: CouponType;
|
|
1649
|
+
couponTypeTitle: string;
|
|
1650
|
+
redemptionRate?: number | undefined;
|
|
1651
|
+
totalCouponOrders?: number | undefined;
|
|
1652
|
+
totalRevenue?: number | undefined;
|
|
1653
|
+
averageOrderValue?: number | undefined;
|
|
1654
|
+
usage?: number | undefined;
|
|
1655
|
+
ongoing?: number | undefined;
|
|
1656
|
+
amountSpent?: number | undefined;
|
|
1657
|
+
}>;
|
|
1658
|
+
export declare const GraphSchema: z.ZodObject<{
|
|
1659
|
+
categories: z.ZodArray<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
1660
|
+
series: z.ZodArray<z.ZodObject<{
|
|
1661
|
+
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1662
|
+
data: z.ZodArray<z.ZodNumber, "many">;
|
|
1663
|
+
}, "strip", z.ZodTypeAny, {
|
|
1664
|
+
name: string;
|
|
1665
|
+
data: number[];
|
|
1666
|
+
}, {
|
|
1667
|
+
name: string;
|
|
1668
|
+
data: number[];
|
|
1669
|
+
}>, "many">;
|
|
1670
|
+
}, "strip", z.ZodTypeAny, {
|
|
1671
|
+
categories: string[];
|
|
1672
|
+
series: {
|
|
1673
|
+
name: string;
|
|
1674
|
+
data: number[];
|
|
1675
|
+
}[];
|
|
1676
|
+
}, {
|
|
1677
|
+
categories: string[];
|
|
1678
|
+
series: {
|
|
1679
|
+
name: string;
|
|
1680
|
+
data: number[];
|
|
1681
|
+
}[];
|
|
1682
|
+
}>;
|
|
1683
|
+
export declare const TotalProfitGraphSchema: z.ZodObject<{
|
|
1684
|
+
categories: z.ZodArray<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
|
|
1685
|
+
series: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1687
|
+
data: z.ZodArray<z.ZodNumber, "many">;
|
|
1688
|
+
}, "strip", z.ZodTypeAny, {
|
|
1689
|
+
name: string;
|
|
1690
|
+
data: number[];
|
|
1691
|
+
}, {
|
|
1692
|
+
name: string;
|
|
1693
|
+
data: number[];
|
|
1694
|
+
}>, "many">;
|
|
1695
|
+
} & {
|
|
1696
|
+
totalProfit: z.ZodDefault<z.ZodNumber>;
|
|
1697
|
+
}, "strip", z.ZodTypeAny, {
|
|
1698
|
+
totalProfit: number;
|
|
1699
|
+
categories: string[];
|
|
1700
|
+
series: {
|
|
1701
|
+
name: string;
|
|
1702
|
+
data: number[];
|
|
1703
|
+
}[];
|
|
1704
|
+
}, {
|
|
1705
|
+
categories: string[];
|
|
1706
|
+
series: {
|
|
1707
|
+
name: string;
|
|
1708
|
+
data: number[];
|
|
1709
|
+
}[];
|
|
1710
|
+
totalProfit?: number | undefined;
|
|
1711
|
+
}>;
|
|
1627
1712
|
export declare const CouponMetricsResponseSchema: z.ZodObject<{
|
|
1628
1713
|
success: z.ZodBoolean;
|
|
1629
1714
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -1767,37 +1852,6 @@ export declare const CouponMetricsResponseSchema: z.ZodObject<{
|
|
|
1767
1852
|
} | undefined;
|
|
1768
1853
|
} | undefined;
|
|
1769
1854
|
}>;
|
|
1770
|
-
export declare const CouponMetricsByTypeSchema: z.ZodObject<{
|
|
1771
|
-
couponType: z.ZodNativeEnum<typeof CouponType>;
|
|
1772
|
-
couponTypeTitle: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1773
|
-
totalCouponOrders: z.ZodDefault<z.ZodNumber>;
|
|
1774
|
-
totalRevenue: z.ZodDefault<z.ZodNumber>;
|
|
1775
|
-
averageOrderValue: z.ZodDefault<z.ZodNumber>;
|
|
1776
|
-
usage: z.ZodDefault<z.ZodNumber>;
|
|
1777
|
-
ongoing: z.ZodDefault<z.ZodNumber>;
|
|
1778
|
-
amountSpent: z.ZodDefault<z.ZodNumber>;
|
|
1779
|
-
redemptionRate: z.ZodDefault<z.ZodNumber>;
|
|
1780
|
-
}, "strip", z.ZodTypeAny, {
|
|
1781
|
-
redemptionRate: number;
|
|
1782
|
-
totalCouponOrders: number;
|
|
1783
|
-
totalRevenue: number;
|
|
1784
|
-
couponType: CouponType;
|
|
1785
|
-
couponTypeTitle: string;
|
|
1786
|
-
averageOrderValue: number;
|
|
1787
|
-
usage: number;
|
|
1788
|
-
ongoing: number;
|
|
1789
|
-
amountSpent: number;
|
|
1790
|
-
}, {
|
|
1791
|
-
couponType: CouponType;
|
|
1792
|
-
couponTypeTitle: string;
|
|
1793
|
-
redemptionRate?: number | undefined;
|
|
1794
|
-
totalCouponOrders?: number | undefined;
|
|
1795
|
-
totalRevenue?: number | undefined;
|
|
1796
|
-
averageOrderValue?: number | undefined;
|
|
1797
|
-
usage?: number | undefined;
|
|
1798
|
-
ongoing?: number | undefined;
|
|
1799
|
-
amountSpent?: number | undefined;
|
|
1800
|
-
}>;
|
|
1801
1855
|
export declare const CouponMetricsByTypeResponseSchema: z.ZodObject<{
|
|
1802
1856
|
success: z.ZodBoolean;
|
|
1803
1857
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -1961,6 +2015,262 @@ export declare const CouponMetricsByTypeResponseSchema: z.ZodObject<{
|
|
|
1961
2015
|
} | undefined;
|
|
1962
2016
|
} | undefined;
|
|
1963
2017
|
}>;
|
|
2018
|
+
export declare const GraphResponseSchema: z.ZodObject<{
|
|
2019
|
+
success: z.ZodBoolean;
|
|
2020
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2021
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2022
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2023
|
+
page: z.ZodNumber;
|
|
2024
|
+
size: z.ZodNumber;
|
|
2025
|
+
totalElements: z.ZodNumber;
|
|
2026
|
+
totalPages: z.ZodNumber;
|
|
2027
|
+
}, "strip", z.ZodTypeAny, {
|
|
2028
|
+
page: number;
|
|
2029
|
+
size: number;
|
|
2030
|
+
totalElements: number;
|
|
2031
|
+
totalPages: number;
|
|
2032
|
+
}, {
|
|
2033
|
+
page: number;
|
|
2034
|
+
size: number;
|
|
2035
|
+
totalElements: number;
|
|
2036
|
+
totalPages: number;
|
|
2037
|
+
}>>;
|
|
2038
|
+
documents: z.ZodArray<z.ZodType<{
|
|
2039
|
+
categories: string[];
|
|
2040
|
+
series: {
|
|
2041
|
+
name: string;
|
|
2042
|
+
data: number[];
|
|
2043
|
+
}[];
|
|
2044
|
+
}, z.ZodTypeDef, {
|
|
2045
|
+
categories: string[];
|
|
2046
|
+
series: {
|
|
2047
|
+
name: string;
|
|
2048
|
+
data: number[];
|
|
2049
|
+
}[];
|
|
2050
|
+
}>, "many">;
|
|
2051
|
+
}, "strip", z.ZodTypeAny, {
|
|
2052
|
+
documents: {
|
|
2053
|
+
categories: string[];
|
|
2054
|
+
series: {
|
|
2055
|
+
name: string;
|
|
2056
|
+
data: number[];
|
|
2057
|
+
}[];
|
|
2058
|
+
}[];
|
|
2059
|
+
metadata?: {
|
|
2060
|
+
page: number;
|
|
2061
|
+
size: number;
|
|
2062
|
+
totalElements: number;
|
|
2063
|
+
totalPages: number;
|
|
2064
|
+
} | undefined;
|
|
2065
|
+
}, {
|
|
2066
|
+
documents: {
|
|
2067
|
+
categories: string[];
|
|
2068
|
+
series: {
|
|
2069
|
+
name: string;
|
|
2070
|
+
data: number[];
|
|
2071
|
+
}[];
|
|
2072
|
+
}[];
|
|
2073
|
+
metadata?: {
|
|
2074
|
+
page: number;
|
|
2075
|
+
size: number;
|
|
2076
|
+
totalElements: number;
|
|
2077
|
+
totalPages: number;
|
|
2078
|
+
} | undefined;
|
|
2079
|
+
}>, z.ZodType<{
|
|
2080
|
+
categories: string[];
|
|
2081
|
+
series: {
|
|
2082
|
+
name: string;
|
|
2083
|
+
data: number[];
|
|
2084
|
+
}[];
|
|
2085
|
+
}, z.ZodTypeDef, {
|
|
2086
|
+
categories: string[];
|
|
2087
|
+
series: {
|
|
2088
|
+
name: string;
|
|
2089
|
+
data: number[];
|
|
2090
|
+
}[];
|
|
2091
|
+
}>]>>;
|
|
2092
|
+
}, "strip", z.ZodTypeAny, {
|
|
2093
|
+
message: string;
|
|
2094
|
+
success: boolean;
|
|
2095
|
+
data?: {
|
|
2096
|
+
categories: string[];
|
|
2097
|
+
series: {
|
|
2098
|
+
name: string;
|
|
2099
|
+
data: number[];
|
|
2100
|
+
}[];
|
|
2101
|
+
} | {
|
|
2102
|
+
documents: {
|
|
2103
|
+
categories: string[];
|
|
2104
|
+
series: {
|
|
2105
|
+
name: string;
|
|
2106
|
+
data: number[];
|
|
2107
|
+
}[];
|
|
2108
|
+
}[];
|
|
2109
|
+
metadata?: {
|
|
2110
|
+
page: number;
|
|
2111
|
+
size: number;
|
|
2112
|
+
totalElements: number;
|
|
2113
|
+
totalPages: number;
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
} | undefined;
|
|
2116
|
+
}, {
|
|
2117
|
+
message: string;
|
|
2118
|
+
success: boolean;
|
|
2119
|
+
data?: {
|
|
2120
|
+
categories: string[];
|
|
2121
|
+
series: {
|
|
2122
|
+
name: string;
|
|
2123
|
+
data: number[];
|
|
2124
|
+
}[];
|
|
2125
|
+
} | {
|
|
2126
|
+
documents: {
|
|
2127
|
+
categories: string[];
|
|
2128
|
+
series: {
|
|
2129
|
+
name: string;
|
|
2130
|
+
data: number[];
|
|
2131
|
+
}[];
|
|
2132
|
+
}[];
|
|
2133
|
+
metadata?: {
|
|
2134
|
+
page: number;
|
|
2135
|
+
size: number;
|
|
2136
|
+
totalElements: number;
|
|
2137
|
+
totalPages: number;
|
|
2138
|
+
} | undefined;
|
|
2139
|
+
} | undefined;
|
|
2140
|
+
}>;
|
|
2141
|
+
export declare const TotalProfitGraphResponseSchema: z.ZodObject<{
|
|
2142
|
+
success: z.ZodBoolean;
|
|
2143
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2144
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2145
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2146
|
+
page: z.ZodNumber;
|
|
2147
|
+
size: z.ZodNumber;
|
|
2148
|
+
totalElements: z.ZodNumber;
|
|
2149
|
+
totalPages: z.ZodNumber;
|
|
2150
|
+
}, "strip", z.ZodTypeAny, {
|
|
2151
|
+
page: number;
|
|
2152
|
+
size: number;
|
|
2153
|
+
totalElements: number;
|
|
2154
|
+
totalPages: number;
|
|
2155
|
+
}, {
|
|
2156
|
+
page: number;
|
|
2157
|
+
size: number;
|
|
2158
|
+
totalElements: number;
|
|
2159
|
+
totalPages: number;
|
|
2160
|
+
}>>;
|
|
2161
|
+
documents: z.ZodArray<z.ZodType<{
|
|
2162
|
+
categories: string[];
|
|
2163
|
+
series: {
|
|
2164
|
+
name: string;
|
|
2165
|
+
data: number[];
|
|
2166
|
+
}[];
|
|
2167
|
+
totalProfit?: number | undefined;
|
|
2168
|
+
}, z.ZodTypeDef, {
|
|
2169
|
+
categories: string[];
|
|
2170
|
+
series: {
|
|
2171
|
+
name: string;
|
|
2172
|
+
data: number[];
|
|
2173
|
+
}[];
|
|
2174
|
+
totalProfit?: number | undefined;
|
|
2175
|
+
}>, "many">;
|
|
2176
|
+
}, "strip", z.ZodTypeAny, {
|
|
2177
|
+
documents: {
|
|
2178
|
+
categories: string[];
|
|
2179
|
+
series: {
|
|
2180
|
+
name: string;
|
|
2181
|
+
data: number[];
|
|
2182
|
+
}[];
|
|
2183
|
+
totalProfit?: number | undefined;
|
|
2184
|
+
}[];
|
|
2185
|
+
metadata?: {
|
|
2186
|
+
page: number;
|
|
2187
|
+
size: number;
|
|
2188
|
+
totalElements: number;
|
|
2189
|
+
totalPages: number;
|
|
2190
|
+
} | undefined;
|
|
2191
|
+
}, {
|
|
2192
|
+
documents: {
|
|
2193
|
+
categories: string[];
|
|
2194
|
+
series: {
|
|
2195
|
+
name: string;
|
|
2196
|
+
data: number[];
|
|
2197
|
+
}[];
|
|
2198
|
+
totalProfit?: number | undefined;
|
|
2199
|
+
}[];
|
|
2200
|
+
metadata?: {
|
|
2201
|
+
page: number;
|
|
2202
|
+
size: number;
|
|
2203
|
+
totalElements: number;
|
|
2204
|
+
totalPages: number;
|
|
2205
|
+
} | undefined;
|
|
2206
|
+
}>, z.ZodType<{
|
|
2207
|
+
categories: string[];
|
|
2208
|
+
series: {
|
|
2209
|
+
name: string;
|
|
2210
|
+
data: number[];
|
|
2211
|
+
}[];
|
|
2212
|
+
totalProfit?: number | undefined;
|
|
2213
|
+
}, z.ZodTypeDef, {
|
|
2214
|
+
categories: string[];
|
|
2215
|
+
series: {
|
|
2216
|
+
name: string;
|
|
2217
|
+
data: number[];
|
|
2218
|
+
}[];
|
|
2219
|
+
totalProfit?: number | undefined;
|
|
2220
|
+
}>]>>;
|
|
2221
|
+
}, "strip", z.ZodTypeAny, {
|
|
2222
|
+
message: string;
|
|
2223
|
+
success: boolean;
|
|
2224
|
+
data?: {
|
|
2225
|
+
categories: string[];
|
|
2226
|
+
series: {
|
|
2227
|
+
name: string;
|
|
2228
|
+
data: number[];
|
|
2229
|
+
}[];
|
|
2230
|
+
totalProfit?: number | undefined;
|
|
2231
|
+
} | {
|
|
2232
|
+
documents: {
|
|
2233
|
+
categories: string[];
|
|
2234
|
+
series: {
|
|
2235
|
+
name: string;
|
|
2236
|
+
data: number[];
|
|
2237
|
+
}[];
|
|
2238
|
+
totalProfit?: number | undefined;
|
|
2239
|
+
}[];
|
|
2240
|
+
metadata?: {
|
|
2241
|
+
page: number;
|
|
2242
|
+
size: number;
|
|
2243
|
+
totalElements: number;
|
|
2244
|
+
totalPages: number;
|
|
2245
|
+
} | undefined;
|
|
2246
|
+
} | undefined;
|
|
2247
|
+
}, {
|
|
2248
|
+
message: string;
|
|
2249
|
+
success: boolean;
|
|
2250
|
+
data?: {
|
|
2251
|
+
categories: string[];
|
|
2252
|
+
series: {
|
|
2253
|
+
name: string;
|
|
2254
|
+
data: number[];
|
|
2255
|
+
}[];
|
|
2256
|
+
totalProfit?: number | undefined;
|
|
2257
|
+
} | {
|
|
2258
|
+
documents: {
|
|
2259
|
+
categories: string[];
|
|
2260
|
+
series: {
|
|
2261
|
+
name: string;
|
|
2262
|
+
data: number[];
|
|
2263
|
+
}[];
|
|
2264
|
+
totalProfit?: number | undefined;
|
|
2265
|
+
}[];
|
|
2266
|
+
metadata?: {
|
|
2267
|
+
page: number;
|
|
2268
|
+
size: number;
|
|
2269
|
+
totalElements: number;
|
|
2270
|
+
totalPages: number;
|
|
2271
|
+
} | undefined;
|
|
2272
|
+
} | undefined;
|
|
2273
|
+
}>;
|
|
1964
2274
|
/**
|
|
1965
2275
|
* Export DTO types
|
|
1966
2276
|
*/
|
|
@@ -1979,4 +2289,6 @@ export type DateInputDTO = DTO<typeof DateInputSchema>;
|
|
|
1979
2289
|
export type GraphInputDTO = DTO<typeof GraphInputSchema>;
|
|
1980
2290
|
export type CouponMetricsOutputDTO = DTO<typeof CouponMetricsOutputSchema>;
|
|
1981
2291
|
export type CouponMetricsByTypeDTO = DTO<typeof CouponMetricsByTypeSchema>;
|
|
2292
|
+
export type GraphDTO = DTO<typeof GraphSchema>;
|
|
2293
|
+
export type TotalProfitGraphDTO = DTO<typeof TotalProfitGraphSchema>;
|
|
1982
2294
|
//# sourceMappingURL=coupon.validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACN,sBAAsB,EACtB,UAAU,EACV,SAAS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B,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,mCAAmC,GAAG,GAAG,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACrG,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC;AACrD,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC3E,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC3E,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/C,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -58,6 +58,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
58
58
|
spendLimit: number;
|
|
59
59
|
isSpendLimitEnabled: boolean;
|
|
60
60
|
shop: import("mongoose").Types.ObjectId;
|
|
61
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
61
62
|
products: {
|
|
62
63
|
product: import("mongoose").Types.ObjectId;
|
|
63
64
|
value?: number | undefined;
|
|
@@ -69,7 +70,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
69
70
|
marketingType: MarketingType.BUY1GET1;
|
|
70
71
|
isAppliedByCompany: boolean;
|
|
71
72
|
pausedAt: Date | null;
|
|
72
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
73
73
|
isEntireMenu: boolean;
|
|
74
74
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
75
75
|
isOnlyForSubscriber: boolean;
|
|
@@ -85,6 +85,7 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
85
85
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
86
86
|
spendLimit?: number | undefined;
|
|
87
87
|
isSpendLimitEnabled?: boolean | undefined;
|
|
88
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
88
89
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
89
90
|
products?: {
|
|
90
91
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -95,7 +96,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
95
96
|
isBuy1Get1?: boolean | undefined;
|
|
96
97
|
}[] | undefined;
|
|
97
98
|
pausedAt?: string | Date | null | undefined;
|
|
98
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
99
99
|
isEntireMenu?: boolean | undefined;
|
|
100
100
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
101
101
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -436,6 +436,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
436
436
|
spendLimit: number;
|
|
437
437
|
isSpendLimitEnabled: boolean;
|
|
438
438
|
shop: import("mongoose").Types.ObjectId;
|
|
439
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
439
440
|
products: {
|
|
440
441
|
product: import("mongoose").Types.ObjectId;
|
|
441
442
|
value?: number | undefined;
|
|
@@ -447,7 +448,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
447
448
|
marketingType: MarketingType.BUY1GET1;
|
|
448
449
|
isAppliedByCompany: boolean;
|
|
449
450
|
pausedAt: Date | null;
|
|
450
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
451
451
|
isEntireMenu: boolean;
|
|
452
452
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
453
453
|
isOnlyForSubscriber: boolean;
|
|
@@ -463,6 +463,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
463
463
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
464
464
|
spendLimit?: number | undefined;
|
|
465
465
|
isSpendLimitEnabled?: boolean | undefined;
|
|
466
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
466
467
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
467
468
|
products?: {
|
|
468
469
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -473,7 +474,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
473
474
|
isBuy1Get1?: boolean | undefined;
|
|
474
475
|
}[] | undefined;
|
|
475
476
|
pausedAt?: string | Date | null | undefined;
|
|
476
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
477
477
|
isEntireMenu?: boolean | undefined;
|
|
478
478
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
479
479
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -486,6 +486,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
486
486
|
spendLimit: number;
|
|
487
487
|
isSpendLimitEnabled: boolean;
|
|
488
488
|
shop: import("mongoose").Types.ObjectId;
|
|
489
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
489
490
|
products: {
|
|
490
491
|
product: import("mongoose").Types.ObjectId;
|
|
491
492
|
value?: number | undefined;
|
|
@@ -497,7 +498,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
497
498
|
marketingType: MarketingType.BUY1GET1;
|
|
498
499
|
isAppliedByCompany: boolean;
|
|
499
500
|
pausedAt: Date | null;
|
|
500
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
501
501
|
isEntireMenu: boolean;
|
|
502
502
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
503
503
|
isOnlyForSubscriber: boolean;
|
|
@@ -513,6 +513,7 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
513
513
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
514
514
|
spendLimit?: number | undefined;
|
|
515
515
|
isSpendLimitEnabled?: boolean | undefined;
|
|
516
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
516
517
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
517
518
|
products?: {
|
|
518
519
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -523,7 +524,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
523
524
|
isBuy1Get1?: boolean | undefined;
|
|
524
525
|
}[] | undefined;
|
|
525
526
|
pausedAt?: string | Date | null | undefined;
|
|
526
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
527
527
|
isEntireMenu?: boolean | undefined;
|
|
528
528
|
excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
529
529
|
isOnlyForSubscriber?: boolean | undefined;
|
|
@@ -64,6 +64,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
64
64
|
spendLimit: number;
|
|
65
65
|
isSpendLimitEnabled: boolean;
|
|
66
66
|
shop: import("mongoose").Types.ObjectId;
|
|
67
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
67
68
|
products: {
|
|
68
69
|
product: import("mongoose").Types.ObjectId;
|
|
69
70
|
value?: number | undefined;
|
|
@@ -75,7 +76,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
75
76
|
marketingType: MarketingType.DISCOUNT;
|
|
76
77
|
isAppliedByCompany: boolean;
|
|
77
78
|
pausedAt: Date | null;
|
|
78
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
79
79
|
isEntireMenu: boolean;
|
|
80
80
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
81
81
|
isOnlyForSubscriber: boolean;
|
|
@@ -99,6 +99,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
99
99
|
valueType?: ValueType | undefined;
|
|
100
100
|
spendLimit?: number | undefined;
|
|
101
101
|
isSpendLimitEnabled?: boolean | undefined;
|
|
102
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
102
103
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
103
104
|
products?: {
|
|
104
105
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -109,7 +110,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
109
110
|
isBuy1Get1?: boolean | undefined;
|
|
110
111
|
}[] | undefined;
|
|
111
112
|
pausedAt?: string | Date | null | undefined;
|
|
112
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
113
113
|
isEntireMenu?: boolean | undefined;
|
|
114
114
|
categoryValue?: number | undefined;
|
|
115
115
|
categoryValueType?: ValueType | undefined;
|
|
@@ -334,6 +334,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
334
334
|
spendLimit: number;
|
|
335
335
|
isSpendLimitEnabled: boolean;
|
|
336
336
|
shop: import("mongoose").Types.ObjectId;
|
|
337
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
337
338
|
products: {
|
|
338
339
|
product: import("mongoose").Types.ObjectId;
|
|
339
340
|
value?: number | undefined;
|
|
@@ -345,7 +346,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
345
346
|
marketingType: MarketingType.DISCOUNT;
|
|
346
347
|
isAppliedByCompany: boolean;
|
|
347
348
|
pausedAt: Date | null;
|
|
348
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
349
349
|
isEntireMenu: boolean;
|
|
350
350
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
351
351
|
isOnlyForSubscriber: boolean;
|
|
@@ -369,6 +369,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
369
369
|
valueType?: ValueType | undefined;
|
|
370
370
|
spendLimit?: number | undefined;
|
|
371
371
|
isSpendLimitEnabled?: boolean | undefined;
|
|
372
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
372
373
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
373
374
|
products?: {
|
|
374
375
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -379,7 +380,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
379
380
|
isBuy1Get1?: boolean | undefined;
|
|
380
381
|
}[] | undefined;
|
|
381
382
|
pausedAt?: string | Date | null | undefined;
|
|
382
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
383
383
|
isEntireMenu?: boolean | undefined;
|
|
384
384
|
categoryValue?: number | undefined;
|
|
385
385
|
categoryValueType?: ValueType | undefined;
|
|
@@ -396,6 +396,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
396
396
|
spendLimit: number;
|
|
397
397
|
isSpendLimitEnabled: boolean;
|
|
398
398
|
shop: import("mongoose").Types.ObjectId;
|
|
399
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
399
400
|
products: {
|
|
400
401
|
product: import("mongoose").Types.ObjectId;
|
|
401
402
|
value?: number | undefined;
|
|
@@ -407,7 +408,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
407
408
|
marketingType: MarketingType.DISCOUNT;
|
|
408
409
|
isAppliedByCompany: boolean;
|
|
409
410
|
pausedAt: Date | null;
|
|
410
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
411
411
|
isEntireMenu: boolean;
|
|
412
412
|
excludeProducts: import("mongoose").Types.ObjectId[];
|
|
413
413
|
isOnlyForSubscriber: boolean;
|
|
@@ -431,6 +431,7 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
431
431
|
valueType?: ValueType | undefined;
|
|
432
432
|
spendLimit?: number | undefined;
|
|
433
433
|
isSpendLimitEnabled?: boolean | undefined;
|
|
434
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
434
435
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
435
436
|
products?: {
|
|
436
437
|
product: string | import("mongoose").Types.ObjectId;
|
|
@@ -441,7 +442,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
441
442
|
isBuy1Get1?: boolean | undefined;
|
|
442
443
|
}[] | undefined;
|
|
443
444
|
pausedAt?: string | Date | null | undefined;
|
|
444
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
445
445
|
isEntireMenu?: boolean | undefined;
|
|
446
446
|
categoryValue?: number | undefined;
|
|
447
447
|
categoryValueType?: ValueType | undefined;
|
|
@@ -191,6 +191,7 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
191
191
|
isBuy1Get1: z.ZodBoolean;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
shop: import("mongoose").Types.ObjectId;
|
|
194
|
+
categories: import("mongoose").Types.ObjectId[];
|
|
194
195
|
products: {
|
|
195
196
|
product: import("mongoose").Types.ObjectId;
|
|
196
197
|
value?: number | undefined;
|
|
@@ -198,7 +199,6 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
198
199
|
}[];
|
|
199
200
|
marketingId: import("mongoose").Types.ObjectId;
|
|
200
201
|
isBuy1Get1: boolean;
|
|
201
|
-
categories: import("mongoose").Types.ObjectId[];
|
|
202
202
|
isEntireMenu: boolean;
|
|
203
203
|
value?: number | undefined;
|
|
204
204
|
valueType?: ValueType | undefined;
|
|
@@ -212,13 +212,13 @@ export declare const BatchCreateProductMarketingsInputSchema: z.ZodObject<{
|
|
|
212
212
|
isEntireMenu: boolean;
|
|
213
213
|
value?: number | undefined;
|
|
214
214
|
valueType?: ValueType | undefined;
|
|
215
|
+
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
215
216
|
products?: {
|
|
216
217
|
product: string | import("mongoose").Types.ObjectId;
|
|
217
218
|
value?: number | undefined;
|
|
218
219
|
valueType?: ValueType | null | undefined;
|
|
219
220
|
}[] | undefined;
|
|
220
221
|
isAppliedByCompany?: boolean | undefined;
|
|
221
|
-
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
222
222
|
categoryValue?: number | undefined;
|
|
223
223
|
categoryValueType?: ValueType | undefined;
|
|
224
224
|
}>;
|