@lyxa.ai/marketing 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/dist/lib/index.js +66 -0
- package/dist/types/index.d.ts +8229 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +4676 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/index.d.ts +2 -0
- package/dist/types/modules/coupon/routers/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts +73 -0
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/index.d.ts +8 -0
- package/dist/types/modules/coupon/services/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +20 -0
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +171 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -0
- package/dist/types/modules/coupon/transformers/index.d.ts +2 -0
- package/dist/types/modules/coupon/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +3161 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +311 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +267 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/index.d.ts +9 -0
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +75 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +294 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +516 -0
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts +37 -0
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/services/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts +11 -0
- package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +236 -0
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/deal-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/deal-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +692 -0
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts +37 -0
- package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/services/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts +19 -0
- package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +372 -0
- package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/featured-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/featured-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/loyalty-point-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +822 -0
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +37 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +32 -0
- package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +8 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +9 -0
- package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts +3 -0
- package/dist/types/modules/loyalty-point-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +179 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +1 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +197 -0
- package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/routers/index.d.ts +2 -0
- package/dist/types/modules/marketing/routers/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +296 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts +20 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/index.d.ts +9 -0
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts +21 -0
- package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts +37 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +42 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +20 -0
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +45 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +48 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts +21 -0
- package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +21 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/index.d.ts +9 -0
- package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +47 -0
- package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts +3 -0
- package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +11 -0
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts +26 -0
- package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +52 -0
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +359 -0
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +527 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +233 -0
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +171 -0
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/index.d.ts +10 -0
- package/dist/types/modules/marketing/validations/index.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +513 -0
- package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +182 -0
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +181 -0
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +216 -0
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/routers/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/routers/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +468 -0
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/services/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/services/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +37 -0
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/transformers/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +9 -0
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/validations/index.d.ts +2 -0
- package/dist/types/modules/punch-marketing-history/validations/index.d.ts.map +1 -0
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +197 -0
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/routers/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/routers/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +746 -0
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/services/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/services/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts +31 -0
- package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/transformers/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/transformers/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts +31 -0
- package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/validations/index.d.ts +2 -0
- package/dist/types/modules/referral-setting/validations/index.d.ts.map +1 -0
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +584 -0
- package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-setting.router.d.ts","sourceRoot":"/","sources":["modules/featured-setting/routers/featured-setting.router.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqDwlF,CAAC;;;;;;;;;qBAAyS,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;qBAA0F,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;;;;;;4BAA/rD,CAAC;;;;;;;qBAA2O,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;qBAA0F,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADn/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/featured-setting/routers/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DocumentType, mongoose } from '@typegoose/typegoose';
|
|
2
|
+
import { FilterDTO, PaginatedResponse, DeleteDTO } from '@lyxa.ai/core/dist/utilities/validation';
|
|
3
|
+
import { ModelType } from '@typegoose/typegoose/lib/types';
|
|
4
|
+
import { FeaturedSetting as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
|
|
5
|
+
import { CreateFeaturedSettingDTO as CreateDTO, UpdateFeaturedSettingDTO as UpdateDTO } from '@modules/featured-setting/validations';
|
|
6
|
+
export declare class FeaturedSettingService {
|
|
7
|
+
private model;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Create a new record
|
|
11
|
+
* @param data Data for the new record
|
|
12
|
+
*/
|
|
13
|
+
create(data: CreateDTO): Promise<DocumentType<Model>>;
|
|
14
|
+
/**
|
|
15
|
+
* Get record by ID
|
|
16
|
+
* @param id ID of the record
|
|
17
|
+
*/
|
|
18
|
+
findById(id: string | mongoose.Types.ObjectId): Promise<DocumentType<Model>>;
|
|
19
|
+
/**
|
|
20
|
+
* Get records
|
|
21
|
+
* @param query Query to find records
|
|
22
|
+
*/
|
|
23
|
+
find(data?: Partial<FilterDTO>): Promise<PaginatedResponse<DocumentType<ModelType<Model>>>>;
|
|
24
|
+
/**
|
|
25
|
+
* Update record
|
|
26
|
+
* @param id ID of the record
|
|
27
|
+
* @param data Data to update
|
|
28
|
+
*/
|
|
29
|
+
update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete record
|
|
32
|
+
* @param data Data for delete
|
|
33
|
+
*/
|
|
34
|
+
deleteById(data: DeleteDTO): Promise<string>;
|
|
35
|
+
}
|
|
36
|
+
export declare const featuredSettingService: FeaturedSettingService;
|
|
37
|
+
//# sourceMappingURL=featured-setting.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-setting.service.d.ts","sourceRoot":"/","sources":["modules/featured-setting/services/featured-setting.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAwB,eAAe,IAAI,KAAK,EAAE,MAAM,4CAA4C,CAAC;AAC5G,OAAO,EACN,wBAAwB,IAAI,SAAS,EACrC,wBAAwB,IAAI,SAAS,EACrC,MAAM,uCAAuC,CAAC;AAG/C,qBACa,sBAAsB;IAClC,OAAO,CAAC,KAAK,CAAuD;;IAMpE;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAalE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAazD;AAED,eAAO,MAAM,sBAAsB,wBAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/featured-setting/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FeaturedSetting as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/featured-setting.model';
|
|
2
|
+
export declare const featuredSettingTransformer: import("@lyxa.ai/core/dist/utilities/transformers").GlobalTransformer<Model, import("zod").objectOutputType<{
|
|
3
|
+
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
4
|
+
featuredItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5
|
+
durationInDays: import("zod").ZodNumber;
|
|
6
|
+
amount: import("zod").ZodNumber;
|
|
7
|
+
status: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
10
|
+
amount: number;
|
|
11
|
+
durationInDays: number;
|
|
12
|
+
}, {
|
|
13
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
14
|
+
amount: number;
|
|
15
|
+
durationInDays: number;
|
|
16
|
+
}>, "many">>;
|
|
17
|
+
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
18
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
19
|
+
//# sourceMappingURL=featured-setting.transformer.d.ts.map
|
package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-setting.transformer.d.ts","sourceRoot":"/","sources":["modules/featured-setting/transformers/featured-setting.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,KAAK,EAAE,MAAM,kEAAkE,CAAC;AAM5G,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/featured-setting/transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
|
|
3
|
+
import { Status, ItemType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
4
|
+
/**
|
|
5
|
+
* Get all schemas for the Parent entity
|
|
6
|
+
*/
|
|
7
|
+
declare const FeaturedSettingValidationSchema: z.ZodObject<{
|
|
8
|
+
itemType: z.ZodNativeEnum<typeof ItemType>;
|
|
9
|
+
featuredItems: z.ZodArray<z.ZodObject<{
|
|
10
|
+
durationInDays: z.ZodNumber;
|
|
11
|
+
amount: z.ZodNumber;
|
|
12
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
status: Status;
|
|
15
|
+
amount: number;
|
|
16
|
+
durationInDays: number;
|
|
17
|
+
}, {
|
|
18
|
+
status: Status;
|
|
19
|
+
amount: number;
|
|
20
|
+
durationInDays: number;
|
|
21
|
+
}>, "many">;
|
|
22
|
+
}, "strict", z.ZodTypeAny, {
|
|
23
|
+
itemType: ItemType;
|
|
24
|
+
featuredItems: {
|
|
25
|
+
status: Status;
|
|
26
|
+
amount: number;
|
|
27
|
+
durationInDays: number;
|
|
28
|
+
}[];
|
|
29
|
+
}, {
|
|
30
|
+
itemType: ItemType;
|
|
31
|
+
featuredItems: {
|
|
32
|
+
status: Status;
|
|
33
|
+
amount: number;
|
|
34
|
+
durationInDays: number;
|
|
35
|
+
}[];
|
|
36
|
+
}>, FeaturedSettingSchema: z.ZodObject<{
|
|
37
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
38
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
durationInDays: z.ZodNumber;
|
|
40
|
+
amount: z.ZodNumber;
|
|
41
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: Status;
|
|
44
|
+
amount: number;
|
|
45
|
+
durationInDays: number;
|
|
46
|
+
}, {
|
|
47
|
+
status: Status;
|
|
48
|
+
amount: number;
|
|
49
|
+
durationInDays: number;
|
|
50
|
+
}>, "many">>;
|
|
51
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
52
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
53
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
54
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
durationInDays: z.ZodNumber;
|
|
56
|
+
amount: z.ZodNumber;
|
|
57
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
status: Status;
|
|
60
|
+
amount: number;
|
|
61
|
+
durationInDays: number;
|
|
62
|
+
}, {
|
|
63
|
+
status: Status;
|
|
64
|
+
amount: number;
|
|
65
|
+
durationInDays: number;
|
|
66
|
+
}>, "many">>;
|
|
67
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
68
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
69
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
70
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
durationInDays: z.ZodNumber;
|
|
72
|
+
amount: z.ZodNumber;
|
|
73
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
status: Status;
|
|
76
|
+
amount: number;
|
|
77
|
+
durationInDays: number;
|
|
78
|
+
}, {
|
|
79
|
+
status: Status;
|
|
80
|
+
amount: number;
|
|
81
|
+
durationInDays: number;
|
|
82
|
+
}>, "many">>;
|
|
83
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
84
|
+
}, z.ZodTypeAny, "passthrough">>, FeaturedSettingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateFeaturedSettingSchema: z.ZodObject<{
|
|
85
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
86
|
+
}, "strict", z.ZodTypeAny, {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
}, {
|
|
89
|
+
[x: string]: any;
|
|
90
|
+
}> | z.ZodObject<{
|
|
91
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
92
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
|
+
durationInDays: z.ZodNumber;
|
|
94
|
+
amount: z.ZodNumber;
|
|
95
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
status: Status;
|
|
98
|
+
amount: number;
|
|
99
|
+
durationInDays: number;
|
|
100
|
+
}, {
|
|
101
|
+
status: Status;
|
|
102
|
+
amount: number;
|
|
103
|
+
durationInDays: number;
|
|
104
|
+
}>, "many">>;
|
|
105
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
106
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
107
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
108
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
durationInDays: z.ZodNumber;
|
|
110
|
+
amount: z.ZodNumber;
|
|
111
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
status: Status;
|
|
114
|
+
amount: number;
|
|
115
|
+
durationInDays: number;
|
|
116
|
+
}, {
|
|
117
|
+
status: Status;
|
|
118
|
+
amount: number;
|
|
119
|
+
durationInDays: number;
|
|
120
|
+
}>, "many">>;
|
|
121
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
122
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
123
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
124
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
durationInDays: z.ZodNumber;
|
|
126
|
+
amount: z.ZodNumber;
|
|
127
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
status: Status;
|
|
130
|
+
amount: number;
|
|
131
|
+
durationInDays: number;
|
|
132
|
+
}, {
|
|
133
|
+
status: Status;
|
|
134
|
+
amount: number;
|
|
135
|
+
durationInDays: number;
|
|
136
|
+
}>, "many">>;
|
|
137
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
138
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
139
|
+
/**
|
|
140
|
+
* Export schemas
|
|
141
|
+
*/
|
|
142
|
+
export { FeaturedSettingValidationSchema, FeaturedSettingSchema, FeaturedSettingIdSchema as FeaturedSettingIdValidationSchema, UpdateFeaturedSettingSchema, };
|
|
143
|
+
export declare const FeaturedSettingResponseSchema: z.ZodObject<{
|
|
144
|
+
success: z.ZodBoolean;
|
|
145
|
+
message: z.ZodString;
|
|
146
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
147
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
page: z.ZodNumber;
|
|
149
|
+
size: z.ZodNumber;
|
|
150
|
+
totalElements: z.ZodNumber;
|
|
151
|
+
totalPages: z.ZodNumber;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
page: number;
|
|
154
|
+
size: number;
|
|
155
|
+
totalElements: number;
|
|
156
|
+
totalPages: number;
|
|
157
|
+
}, {
|
|
158
|
+
page: number;
|
|
159
|
+
size: number;
|
|
160
|
+
totalElements: number;
|
|
161
|
+
totalPages: number;
|
|
162
|
+
}>>;
|
|
163
|
+
documents: z.ZodArray<z.ZodType<z.objectInputType<{
|
|
164
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
165
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
+
durationInDays: z.ZodNumber;
|
|
167
|
+
amount: z.ZodNumber;
|
|
168
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
status: Status;
|
|
171
|
+
amount: number;
|
|
172
|
+
durationInDays: number;
|
|
173
|
+
}, {
|
|
174
|
+
status: Status;
|
|
175
|
+
amount: number;
|
|
176
|
+
durationInDays: number;
|
|
177
|
+
}>, "many">>;
|
|
178
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
179
|
+
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
180
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
181
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
durationInDays: z.ZodNumber;
|
|
183
|
+
amount: z.ZodNumber;
|
|
184
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
status: Status;
|
|
187
|
+
amount: number;
|
|
188
|
+
durationInDays: number;
|
|
189
|
+
}, {
|
|
190
|
+
status: Status;
|
|
191
|
+
amount: number;
|
|
192
|
+
durationInDays: number;
|
|
193
|
+
}>, "many">>;
|
|
194
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
195
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
documents: z.objectInputType<{
|
|
198
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
199
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
|
+
durationInDays: z.ZodNumber;
|
|
201
|
+
amount: z.ZodNumber;
|
|
202
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
status: Status;
|
|
205
|
+
amount: number;
|
|
206
|
+
durationInDays: number;
|
|
207
|
+
}, {
|
|
208
|
+
status: Status;
|
|
209
|
+
amount: number;
|
|
210
|
+
durationInDays: number;
|
|
211
|
+
}>, "many">>;
|
|
212
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
213
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
214
|
+
metadata?: {
|
|
215
|
+
page: number;
|
|
216
|
+
size: number;
|
|
217
|
+
totalElements: number;
|
|
218
|
+
totalPages: number;
|
|
219
|
+
} | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
documents: z.objectInputType<{
|
|
222
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
223
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
+
durationInDays: z.ZodNumber;
|
|
225
|
+
amount: z.ZodNumber;
|
|
226
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
status: Status;
|
|
229
|
+
amount: number;
|
|
230
|
+
durationInDays: number;
|
|
231
|
+
}, {
|
|
232
|
+
status: Status;
|
|
233
|
+
amount: number;
|
|
234
|
+
durationInDays: number;
|
|
235
|
+
}>, "many">>;
|
|
236
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
237
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
238
|
+
metadata?: {
|
|
239
|
+
page: number;
|
|
240
|
+
size: number;
|
|
241
|
+
totalElements: number;
|
|
242
|
+
totalPages: number;
|
|
243
|
+
} | undefined;
|
|
244
|
+
}>, z.ZodType<z.objectInputType<{
|
|
245
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
246
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
247
|
+
durationInDays: z.ZodNumber;
|
|
248
|
+
amount: z.ZodNumber;
|
|
249
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
status: Status;
|
|
252
|
+
amount: number;
|
|
253
|
+
durationInDays: number;
|
|
254
|
+
}, {
|
|
255
|
+
status: Status;
|
|
256
|
+
amount: number;
|
|
257
|
+
durationInDays: number;
|
|
258
|
+
}>, "many">>;
|
|
259
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
260
|
+
}, z.ZodTypeAny, "passthrough">, z.ZodTypeDef, z.objectInputType<{
|
|
261
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
262
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
durationInDays: z.ZodNumber;
|
|
264
|
+
amount: z.ZodNumber;
|
|
265
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
status: Status;
|
|
268
|
+
amount: number;
|
|
269
|
+
durationInDays: number;
|
|
270
|
+
}, {
|
|
271
|
+
status: Status;
|
|
272
|
+
amount: number;
|
|
273
|
+
durationInDays: number;
|
|
274
|
+
}>, "many">>;
|
|
275
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
276
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
message: string;
|
|
279
|
+
success: boolean;
|
|
280
|
+
data?: z.objectInputType<{
|
|
281
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
282
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
283
|
+
durationInDays: z.ZodNumber;
|
|
284
|
+
amount: z.ZodNumber;
|
|
285
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
status: Status;
|
|
288
|
+
amount: number;
|
|
289
|
+
durationInDays: number;
|
|
290
|
+
}, {
|
|
291
|
+
status: Status;
|
|
292
|
+
amount: number;
|
|
293
|
+
durationInDays: number;
|
|
294
|
+
}>, "many">>;
|
|
295
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
296
|
+
}, z.ZodTypeAny, "passthrough"> | {
|
|
297
|
+
documents: z.objectInputType<{
|
|
298
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
299
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
+
durationInDays: z.ZodNumber;
|
|
301
|
+
amount: z.ZodNumber;
|
|
302
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
status: Status;
|
|
305
|
+
amount: number;
|
|
306
|
+
durationInDays: number;
|
|
307
|
+
}, {
|
|
308
|
+
status: Status;
|
|
309
|
+
amount: number;
|
|
310
|
+
durationInDays: number;
|
|
311
|
+
}>, "many">>;
|
|
312
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
313
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
314
|
+
metadata?: {
|
|
315
|
+
page: number;
|
|
316
|
+
size: number;
|
|
317
|
+
totalElements: number;
|
|
318
|
+
totalPages: number;
|
|
319
|
+
} | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
message: string;
|
|
323
|
+
success: boolean;
|
|
324
|
+
data?: z.objectInputType<{
|
|
325
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
326
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
327
|
+
durationInDays: z.ZodNumber;
|
|
328
|
+
amount: z.ZodNumber;
|
|
329
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
status: Status;
|
|
332
|
+
amount: number;
|
|
333
|
+
durationInDays: number;
|
|
334
|
+
}, {
|
|
335
|
+
status: Status;
|
|
336
|
+
amount: number;
|
|
337
|
+
durationInDays: number;
|
|
338
|
+
}>, "many">>;
|
|
339
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
340
|
+
}, z.ZodTypeAny, "passthrough"> | {
|
|
341
|
+
documents: z.objectInputType<{
|
|
342
|
+
itemType: z.ZodOptional<z.ZodNativeEnum<typeof ItemType>>;
|
|
343
|
+
featuredItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
344
|
+
durationInDays: z.ZodNumber;
|
|
345
|
+
amount: z.ZodNumber;
|
|
346
|
+
status: z.ZodNativeEnum<typeof Status>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
status: Status;
|
|
349
|
+
amount: number;
|
|
350
|
+
durationInDays: number;
|
|
351
|
+
}, {
|
|
352
|
+
status: Status;
|
|
353
|
+
amount: number;
|
|
354
|
+
durationInDays: number;
|
|
355
|
+
}>, "many">>;
|
|
356
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
357
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
358
|
+
metadata?: {
|
|
359
|
+
page: number;
|
|
360
|
+
size: number;
|
|
361
|
+
totalElements: number;
|
|
362
|
+
totalPages: number;
|
|
363
|
+
} | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}>;
|
|
366
|
+
/**
|
|
367
|
+
* Export DTO types
|
|
368
|
+
*/
|
|
369
|
+
export type CreateFeaturedSettingDTO = DTO<typeof FeaturedSettingValidationSchema>;
|
|
370
|
+
export type FeaturedSettingDTO = DTO<typeof FeaturedSettingSchema>;
|
|
371
|
+
export type UpdateFeaturedSettingDTO = DTO<typeof UpdateFeaturedSettingSchema>;
|
|
372
|
+
//# sourceMappingURL=featured-setting.validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-setting.validation.d.ts","sourceRoot":"/","sources":["modules/featured-setting/validations/featured-setting.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AA4BrE;;GAEG;AACH,QAAA,MACa,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC7B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACzB,uBAAuB,mNACnB,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACU,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,IAAI,iCAAiC,EAC5D,2BAA2B,GAC3B,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8C,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACnE,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/featured-setting/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/loyalty-point-setting/routers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
|