@timardex/cluemart-shared 1.7.24 → 1.7.26
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/{ad-DChdPAkx.d.mts → ad-BNumAVY7.d.mts} +2 -2
- package/dist/{ad-BZcVngc3.d.ts → ad-xMotoDzt.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-LZQG3BQM.mjs → chunk-336EZBSA.mjs} +159 -6
- package/dist/chunk-336EZBSA.mjs.map +1 -0
- package/dist/{chunk-3VDFBRRK.mjs → chunk-WPBHYGXW.mjs} +2 -1
- package/dist/{contactUs-KVN1Iw60.d.mts → contactUs-5t9rb3U4.d.mts} +1 -1
- package/dist/{contactUs-l3ciX1_d.d.ts → contactUs-BJiiMuGX.d.ts} +1 -1
- package/dist/{affiliate-BM1h7pwc.d.ts → coupon-CqCTYMW1.d.ts} +47 -3
- package/dist/{affiliate-C1EG9HbN.d.mts → coupon-O__x-VRW.d.mts} +47 -3
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-D8aPAI5b.d.ts → global-B6VyEshc.d.ts} +1 -1
- package/dist/{global-BrnExI9t.d.mts → global-BKGlrm75.d.mts} +1 -1
- package/dist/graphql/index.cjs +158 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +52 -7
- package/dist/graphql/index.d.ts +52 -7
- package/dist/graphql/index.mjs +12 -2
- package/dist/hooks/index.cjs +117 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -6
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +158 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.mjs +153 -1
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-DIXjrgOD.d.ts → resourceActivities-HkorPbJU.d.ts} +1 -1
- package/dist/{resourceActivities-DuftR4Ts.d.mts → resourceActivities-l4Q014eT.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.d.mts +7 -8
- package/dist/types/index.d.ts +7 -8
- package/dist/{user-BY5AtgYc.d.ts → user-Cg80mIww.d.ts} +1 -1
- package/dist/{user-CjYZ7tJ4.d.mts → user-go-eqanx.d.mts} +1 -1
- package/dist/utils/index.d.mts +3 -4
- package/dist/utils/index.d.ts +3 -4
- package/package.json +1 -1
- package/dist/chunk-LZQG3BQM.mjs.map +0 -1
- package/dist/coupon-CYL-fG6W.d.ts +0 -47
- package/dist/coupon-DE-6YTb6.d.mts +0 -47
- /package/dist/{chunk-3VDFBRRK.mjs.map → chunk-WPBHYGXW.mjs.map} +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { J as CreateFormData, ax as ResourceImageType, aG as VendorProductList } from './global-D8aPAI5b.js';
|
|
2
|
-
|
|
3
|
-
type CouponTypeOption = {
|
|
4
|
-
buy: number;
|
|
5
|
-
get: number;
|
|
6
|
-
unit: string;
|
|
7
|
-
};
|
|
8
|
-
type ProductCouponFormData = {
|
|
9
|
-
couponDescription: string;
|
|
10
|
-
couponOption: CouponTypeOption;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
participantProductId: string;
|
|
13
|
-
startDate: Date;
|
|
14
|
-
};
|
|
15
|
-
type CreateProductCouponFormData = CreateFormData<ProductCouponFormData>;
|
|
16
|
-
type CouponParticipantUserType = {
|
|
17
|
-
couponCount: number;
|
|
18
|
-
couponRedeemedAt: Date | null;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date | null;
|
|
21
|
-
userId: string;
|
|
22
|
-
};
|
|
23
|
-
type CouponCodeType = {
|
|
24
|
-
code: string;
|
|
25
|
-
qrCode: ResourceImageType;
|
|
26
|
-
};
|
|
27
|
-
type ProductCouponType = Omit<ProductCouponFormData, "participantProductId"> & {
|
|
28
|
-
_id: string;
|
|
29
|
-
active: boolean;
|
|
30
|
-
couponCode: CouponCodeType;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
participantProduct: VendorProductList;
|
|
33
|
-
participantUsers: CouponParticipantUserType[] | null;
|
|
34
|
-
updatedAt: Date | null;
|
|
35
|
-
};
|
|
36
|
-
type CouponTypeOptionWithType = Omit<ProductCouponType, "_id" | "participantUsers">;
|
|
37
|
-
type CreateCouponTypeOptionParams = Pick<ProductCouponType, "couponCode" | "couponDescription" | "couponOption" | "createdAt" | "endDate" | "participantProduct" | "startDate">;
|
|
38
|
-
interface CouponType {
|
|
39
|
-
_id: string;
|
|
40
|
-
active: boolean;
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
deletedAt: Date | null;
|
|
43
|
-
productCoupons: ProductCouponType[];
|
|
44
|
-
updatedAt: Date | null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type { CreateProductCouponFormData as C, ProductCouponFormData as P, CouponCodeType as a, CouponParticipantUserType as b, CouponType as c, CouponTypeOption as d, CouponTypeOptionWithType as e, CreateCouponTypeOptionParams as f, ProductCouponType as g };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { J as CreateFormData, ax as ResourceImageType, aG as VendorProductList } from './global-BrnExI9t.mjs';
|
|
2
|
-
|
|
3
|
-
type CouponTypeOption = {
|
|
4
|
-
buy: number;
|
|
5
|
-
get: number;
|
|
6
|
-
unit: string;
|
|
7
|
-
};
|
|
8
|
-
type ProductCouponFormData = {
|
|
9
|
-
couponDescription: string;
|
|
10
|
-
couponOption: CouponTypeOption;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
participantProductId: string;
|
|
13
|
-
startDate: Date;
|
|
14
|
-
};
|
|
15
|
-
type CreateProductCouponFormData = CreateFormData<ProductCouponFormData>;
|
|
16
|
-
type CouponParticipantUserType = {
|
|
17
|
-
couponCount: number;
|
|
18
|
-
couponRedeemedAt: Date | null;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date | null;
|
|
21
|
-
userId: string;
|
|
22
|
-
};
|
|
23
|
-
type CouponCodeType = {
|
|
24
|
-
code: string;
|
|
25
|
-
qrCode: ResourceImageType;
|
|
26
|
-
};
|
|
27
|
-
type ProductCouponType = Omit<ProductCouponFormData, "participantProductId"> & {
|
|
28
|
-
_id: string;
|
|
29
|
-
active: boolean;
|
|
30
|
-
couponCode: CouponCodeType;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
participantProduct: VendorProductList;
|
|
33
|
-
participantUsers: CouponParticipantUserType[] | null;
|
|
34
|
-
updatedAt: Date | null;
|
|
35
|
-
};
|
|
36
|
-
type CouponTypeOptionWithType = Omit<ProductCouponType, "_id" | "participantUsers">;
|
|
37
|
-
type CreateCouponTypeOptionParams = Pick<ProductCouponType, "couponCode" | "couponDescription" | "couponOption" | "createdAt" | "endDate" | "participantProduct" | "startDate">;
|
|
38
|
-
interface CouponType {
|
|
39
|
-
_id: string;
|
|
40
|
-
active: boolean;
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
deletedAt: Date | null;
|
|
43
|
-
productCoupons: ProductCouponType[];
|
|
44
|
-
updatedAt: Date | null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type { CreateProductCouponFormData as C, ProductCouponFormData as P, CouponCodeType as a, CouponParticipantUserType as b, CouponType as c, CouponTypeOption as d, CouponTypeOptionWithType as e, CreateCouponTypeOptionParams as f, ProductCouponType as g };
|
|
File without changes
|