@lyxa.ai/marketing 1.0.56 → 1.0.58
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/event/event-listeners/event-listeners.d.ts.map +1 -1
- package/dist/lib/event/event-listeners/event-listeners.js +19 -2
- package/dist/lib/event/event-listeners/event-listeners.js.map +1 -1
- package/dist/lib/index.d.ts +29 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +4 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.d.ts +8 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.d.ts.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.js +54 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.js.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.d.ts +8 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.js +83 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.js.map +1 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +29 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +6 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +11 -2
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +20 -3
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +11 -2
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +234 -47
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +117 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +33 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js +1 -4
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +2 -2
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.d.ts +7 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.d.ts.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.js +62 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.js.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.d.ts +7 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.d.ts.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.js +94 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.js.map +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +37 -29
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
- package/dist/types/index.d.ts +29 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/queues/coupon-notification.queue.d.ts +8 -0
- package/dist/types/modules/coupon/queues/coupon-notification.queue.d.ts.map +1 -0
- package/dist/types/modules/coupon/queues/coupon-notification.worker.d.ts +8 -0
- package/dist/types/modules/coupon/queues/coupon-notification.worker.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +29 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +11 -2
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +11 -2
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +117 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +2 -2
- package/dist/types/modules/marketing/queues/marketing-product-sync.queue.d.ts +7 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.queue.d.ts.map +1 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.worker.d.ts +7 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.worker.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCoupon } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
2
2
|
import { mongoose } from '@typegoose/typegoose';
|
|
3
3
|
import { ItemType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
-
import { CouponUsersRequestDTO } from '@modules/coupon/validations';
|
|
4
|
+
import { CouponUsersRequestDTO, SingleCouppnOrdersRequestDTO } from '@modules/coupon/validations';
|
|
5
5
|
export declare class CouponRepository {
|
|
6
6
|
private readonly model;
|
|
7
7
|
private readonly userModel;
|
|
@@ -29,6 +29,15 @@ export declare class CouponRepository {
|
|
|
29
29
|
}>;
|
|
30
30
|
private buildCouponUsersPipeline;
|
|
31
31
|
private attachCoreUsers;
|
|
32
|
-
|
|
32
|
+
getSingleCouponOrders(params: SingleCouppnOrdersRequestDTO): Promise<{
|
|
33
|
+
metadata: {
|
|
34
|
+
page: number;
|
|
35
|
+
size: number;
|
|
36
|
+
totalElements: any;
|
|
37
|
+
totalPages: number;
|
|
38
|
+
};
|
|
39
|
+
documents: any;
|
|
40
|
+
}>;
|
|
41
|
+
private getCoreUserIds;
|
|
33
42
|
}
|
|
34
43
|
//# sourceMappingURL=CouponRepository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponRepository.d.ts","sourceRoot":"/","sources":["modules/coupon/services/patterns/repository/CouponRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EAUV,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAEN,QAAQ,EAKR,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"CouponRepository.d.ts","sourceRoot":"/","sources":["modules/coupon/services/patterns/repository/CouponRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EAUV,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAEN,QAAQ,EAKR,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAIlG,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+C;IACrE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2C;IACrE,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiE;IACvG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB;IAC7C,OAAO,CAAC,cAAc,CAAoD;IAC1E,OAAO,CAAC,UAAU,CAAoB;;IAWtC,OAAO,KAAK,aAAa,GAKxB;IAEY,cAAc,CAC1B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,EACzC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,EACzC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,EAC3C,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAC5B,OAAO,CAAC,GAAG,CAAC;IAwaR,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,GAAG;IAQxC,kBAAkB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAwChD,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,uBAAuB;IAkE/B,OAAO,CAAC,2BAA2B;IAiF5B,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAInB,iBAAiB,CAAC,MAAM,EAAE,qBAAqB;;;;;;;;;IAmC5D,OAAO,CAAC,wBAAwB;YAkHlB,eAAe;IA8BhB,qBAAqB,CAAC,MAAM,EAAE,4BAA4B;;;;;;;;;YAiLzD,cAAc;CAyB5B"}
|
|
@@ -1766,6 +1766,8 @@ export declare const CouponListRequestSchema: z.ZodObject<{
|
|
|
1766
1766
|
}[] | undefined;
|
|
1767
1767
|
}>;
|
|
1768
1768
|
export declare const CouponUsersRequestSchema: z.ZodObject<{
|
|
1769
|
+
startDate: z.ZodOptional<z.ZodDate>;
|
|
1770
|
+
endDate: z.ZodOptional<z.ZodDate>;
|
|
1769
1771
|
couponId: z.ZodString;
|
|
1770
1772
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1771
1773
|
size: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1777,6 +1779,8 @@ export declare const CouponUsersRequestSchema: z.ZodObject<{
|
|
|
1777
1779
|
size: number;
|
|
1778
1780
|
couponId: string;
|
|
1779
1781
|
sort?: Record<string, 1 | -1> | undefined;
|
|
1782
|
+
startDate?: Date | undefined;
|
|
1783
|
+
endDate?: Date | undefined;
|
|
1780
1784
|
search?: string | undefined;
|
|
1781
1785
|
zone?: string | undefined;
|
|
1782
1786
|
}, {
|
|
@@ -1784,9 +1788,42 @@ export declare const CouponUsersRequestSchema: z.ZodObject<{
|
|
|
1784
1788
|
sort?: Record<string, 1 | -1> | undefined;
|
|
1785
1789
|
page?: number | undefined;
|
|
1786
1790
|
size?: number | undefined;
|
|
1791
|
+
startDate?: Date | undefined;
|
|
1792
|
+
endDate?: Date | undefined;
|
|
1787
1793
|
search?: string | undefined;
|
|
1788
1794
|
zone?: string | undefined;
|
|
1789
1795
|
}>;
|
|
1796
|
+
export declare const singleCouponOrdersRequestSchema: z.ZodObject<{
|
|
1797
|
+
couponId: z.ZodString;
|
|
1798
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1799
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
1800
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
1801
|
+
startDate: z.ZodOptional<z.ZodDate>;
|
|
1802
|
+
endDate: z.ZodOptional<z.ZodDate>;
|
|
1803
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1804
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>>>;
|
|
1806
|
+
}, "strip", z.ZodTypeAny, {
|
|
1807
|
+
page: number;
|
|
1808
|
+
size: number;
|
|
1809
|
+
couponId: string;
|
|
1810
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
1811
|
+
startDate?: Date | undefined;
|
|
1812
|
+
endDate?: Date | undefined;
|
|
1813
|
+
search?: string | undefined;
|
|
1814
|
+
zone?: string | undefined;
|
|
1815
|
+
userId?: string | undefined;
|
|
1816
|
+
}, {
|
|
1817
|
+
couponId: string;
|
|
1818
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
1819
|
+
page?: number | undefined;
|
|
1820
|
+
size?: number | undefined;
|
|
1821
|
+
startDate?: Date | undefined;
|
|
1822
|
+
endDate?: Date | undefined;
|
|
1823
|
+
search?: string | undefined;
|
|
1824
|
+
zone?: string | undefined;
|
|
1825
|
+
userId?: string | undefined;
|
|
1826
|
+
}>;
|
|
1790
1827
|
export declare const CouponUserItemSchema: z.ZodObject<{
|
|
1791
1828
|
id: z.ZodString;
|
|
1792
1829
|
name: z.ZodString;
|
|
@@ -1821,6 +1858,85 @@ export declare const CouponUserItemSchema: z.ZodObject<{
|
|
|
1821
1858
|
creationDate: Date;
|
|
1822
1859
|
avatar?: string | null | undefined;
|
|
1823
1860
|
}>;
|
|
1861
|
+
export declare const CouponSingleUserOrderItemSchema: z.ZodObject<{
|
|
1862
|
+
order: z.ZodObject<{
|
|
1863
|
+
_id: z.ZodString;
|
|
1864
|
+
orderId: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
orderAmount: z.ZodOptional<z.ZodNumber>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
_id: string;
|
|
1868
|
+
orderId?: string | undefined;
|
|
1869
|
+
orderAmount?: number | undefined;
|
|
1870
|
+
}, {
|
|
1871
|
+
_id: string;
|
|
1872
|
+
orderId?: string | undefined;
|
|
1873
|
+
orderAmount?: number | undefined;
|
|
1874
|
+
}>;
|
|
1875
|
+
user: z.ZodObject<{
|
|
1876
|
+
_id: z.ZodString;
|
|
1877
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
photo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1879
|
+
}, "strip", z.ZodTypeAny, {
|
|
1880
|
+
_id: string;
|
|
1881
|
+
name?: string | undefined;
|
|
1882
|
+
photo?: string | null | undefined;
|
|
1883
|
+
}, {
|
|
1884
|
+
_id: string;
|
|
1885
|
+
name?: string | undefined;
|
|
1886
|
+
photo?: string | null | undefined;
|
|
1887
|
+
}>;
|
|
1888
|
+
shop: z.ZodObject<{
|
|
1889
|
+
_id: z.ZodString;
|
|
1890
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1892
|
+
}, "strip", z.ZodTypeAny, {
|
|
1893
|
+
_id: string;
|
|
1894
|
+
name?: string | undefined;
|
|
1895
|
+
logo?: string | null | undefined;
|
|
1896
|
+
}, {
|
|
1897
|
+
_id: string;
|
|
1898
|
+
name?: string | undefined;
|
|
1899
|
+
logo?: string | null | undefined;
|
|
1900
|
+
}>;
|
|
1901
|
+
zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1902
|
+
creationDate: z.ZodOptional<z.ZodDate>;
|
|
1903
|
+
}, "strip", z.ZodTypeAny, {
|
|
1904
|
+
user: {
|
|
1905
|
+
_id: string;
|
|
1906
|
+
name?: string | undefined;
|
|
1907
|
+
photo?: string | null | undefined;
|
|
1908
|
+
};
|
|
1909
|
+
shop: {
|
|
1910
|
+
_id: string;
|
|
1911
|
+
name?: string | undefined;
|
|
1912
|
+
logo?: string | null | undefined;
|
|
1913
|
+
};
|
|
1914
|
+
order: {
|
|
1915
|
+
_id: string;
|
|
1916
|
+
orderId?: string | undefined;
|
|
1917
|
+
orderAmount?: number | undefined;
|
|
1918
|
+
};
|
|
1919
|
+
zone?: string | null | undefined;
|
|
1920
|
+
creationDate?: Date | undefined;
|
|
1921
|
+
}, {
|
|
1922
|
+
user: {
|
|
1923
|
+
_id: string;
|
|
1924
|
+
name?: string | undefined;
|
|
1925
|
+
photo?: string | null | undefined;
|
|
1926
|
+
};
|
|
1927
|
+
shop: {
|
|
1928
|
+
_id: string;
|
|
1929
|
+
name?: string | undefined;
|
|
1930
|
+
logo?: string | null | undefined;
|
|
1931
|
+
};
|
|
1932
|
+
order: {
|
|
1933
|
+
_id: string;
|
|
1934
|
+
orderId?: string | undefined;
|
|
1935
|
+
orderAmount?: number | undefined;
|
|
1936
|
+
};
|
|
1937
|
+
zone?: string | null | undefined;
|
|
1938
|
+
creationDate?: Date | undefined;
|
|
1939
|
+
}>;
|
|
1824
1940
|
export declare const CouponMetricsResponseSchema: z.ZodObject<{
|
|
1825
1941
|
success: z.ZodBoolean;
|
|
1826
1942
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -2405,5 +2521,6 @@ export type GraphDTO = DTO<typeof GraphSchema>;
|
|
|
2405
2521
|
export type TotalProfitGraphDTO = DTO<typeof TotalProfitGraphSchema>;
|
|
2406
2522
|
export type CouponListRequestDTO = DTO<typeof CouponListRequestSchema>;
|
|
2407
2523
|
export type CouponUsersRequestDTO = DTO<typeof CouponUsersRequestSchema>;
|
|
2524
|
+
export type SingleCouppnOrdersRequestDTO = DTO<typeof singleCouponOrdersRequestSchema>;
|
|
2408
2525
|
export type CouponUserItemDTO = DTO<typeof CouponUserItemSchema>;
|
|
2409
2526
|
//# 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,EACT,QAAQ,EACR,MAAM,EACN,SAAS,EACT,MAAM,mCAAmC,CAAC;AAO3C;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAkBxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;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,9 @@ export declare const CreateLimitedTimeOfferConfigSchema: z.ZodObject<{
|
|
|
6
6
|
discountOptions: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
7
7
|
maxDiscountCaps: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
campaignType: MarketingType;
|
|
9
10
|
discountOptions: number[];
|
|
10
11
|
maxDiscountCaps: number[];
|
|
11
|
-
campaignType: MarketingType;
|
|
12
12
|
}, {
|
|
13
13
|
campaignType: MarketingType;
|
|
14
14
|
discountOptions?: number[] | undefined;
|
|
@@ -45,9 +45,9 @@ export declare const LimitedTimeOfferConfigSchema: z.ZodObject<{
|
|
|
45
45
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
campaignType: MarketingType;
|
|
48
49
|
discountOptions: number[];
|
|
49
50
|
maxDiscountCaps: number[];
|
|
50
|
-
campaignType: MarketingType;
|
|
51
51
|
createdAt?: Date | null | undefined;
|
|
52
52
|
updatedAt?: Date | null | undefined;
|
|
53
53
|
}, {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Queue } from 'bullmq';
|
|
2
|
+
export declare const MARKETING_PRODUCT_SYNC_QUEUE_NAME = "marketing-product-sync-queue";
|
|
3
|
+
export declare const MARKETING_PRODUCT_SYNC_JOB_NAME = "marketing-product-sync-job";
|
|
4
|
+
export declare function getMarketingProductSyncQueue(): Queue;
|
|
5
|
+
export declare function scheduleMarketingProductSync(marketingId: string, delayMs: number): Promise<void>;
|
|
6
|
+
export declare function cancelMarketingProductSync(marketingId: string): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=marketing-product-sync.queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing-product-sync.queue.d.ts","sourceRoot":"/","sources":["modules/marketing/queues/marketing-product-sync.queue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAChF,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAI5E,wBAAgB,4BAA4B,IAAI,KAAK,CAKpD;AAqBD,wBAAsB,4BAA4B,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBtG;AAED,wBAAsB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYnF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class MarketingProductSyncWorkerService {
|
|
2
|
+
private worker;
|
|
3
|
+
startWorker(): Promise<void>;
|
|
4
|
+
stopWorker(): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export declare const marketingProductSyncWorkerService: MarketingProductSyncWorkerService;
|
|
7
|
+
//# sourceMappingURL=marketing-product-sync.worker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing-product-sync.worker.d.ts","sourceRoot":"/","sources":["modules/marketing/queues/marketing-product-sync.worker.ts"],"names":[],"mappings":"AAQA,qBACa,iCAAiC;IAC7C,OAAO,CAAC,MAAM,CAAgD;IAEjD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAsC5B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAQxC;AAED,eAAO,MAAM,iCAAiC,mCAAmD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentType, mongoose } from '@typegoose/typegoose';
|
|
2
|
-
import { Marketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
2
|
+
import { Buy1Get1Marketing, DiscountMarketing, Marketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
|
|
3
3
|
import { AllMarketingsValidationDTO, ProductEntireMenuMarketingHandlerDTO, UpdateMarketingDTO as UpdateDTO } from '@modules/marketing/validations';
|
|
4
4
|
import { FilterDTO, PaginatedResponse, DeleteDTO, GetByIdInputDTO } from '@lyxa.ai/core/dist/utilities/validation';
|
|
5
5
|
import { ModelType } from '@typegoose/typegoose/lib/types';
|
|
@@ -46,6 +46,7 @@ export declare class MarketingService {
|
|
|
46
46
|
private unExpireMarketingsBelowSpendLimits;
|
|
47
47
|
recomputeAndSyncAllMarketingSpent(): Promise<void>;
|
|
48
48
|
reseedEntireMenuMarketing(marketingId: mongoose.Types.ObjectId): Promise<void>;
|
|
49
|
+
assignMarketingToProducts(marketing: DocumentType<Buy1Get1Marketing | DiscountMarketing>): Promise<void>;
|
|
49
50
|
}
|
|
50
51
|
export declare const marketingService: MarketingService;
|
|
51
52
|
//# sourceMappingURL=marketing.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,
|
|
1
|
+
{"version":3,"file":"marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/marketing.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EAMjB,SAAS,IAAI,KAAK,EAMlB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEN,0BAA0B,EAE1B,oCAAoC,EACpC,kBAAkB,IAAI,SAAS,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AA0C3D,qBACa,gBAAg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iChF,gCAAgC,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;YAiC/E,oCAAoC;YAgBpC,kCAAkC;IAgBnC,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC;IAqClD,yBAAyB,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAqC9E,yBAAyB,CAAC,SAAS,EAAE,YAAY,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;CA0CrG;AAED,eAAO,MAAM,gBAAgB,kBAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/marketing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
4
4
|
"description": "The Lyxa Marketing microservice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:watch": "jest --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lyxa.ai/core": "1.4.
|
|
22
|
+
"@lyxa.ai/core": "1.4.232",
|
|
23
23
|
"@lyxa.ai/notification": "^1.0.7",
|
|
24
24
|
"@trpc/client": "^11.4.3",
|
|
25
25
|
"@trpc/server": "^11.4.3",
|
package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=limited-time-offer-participant.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limited-time-offer-participant.service.d.ts","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limited-time-offer-participant.service.js","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=limited-time-offer-participant.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limited-time-offer-participant.service.d.ts","sourceRoot":"/","sources":["modules/limited-time-offer/participant/limited-time-offer-participant.service.ts"],"names":[],"mappings":""}
|