@timardex/cluemart-shared 1.7.61 → 1.7.63
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-CGwb6bvG.d.mts → ad-CX_5xl7b.d.mts} +2 -2
- package/dist/{ad-DRVDzG8k.d.ts → ad-Dn1L9OpH.d.ts} +2 -2
- package/dist/{affiliate-CMI_3XHG.d.mts → affiliate-C3AhB3D_.d.mts} +2 -2
- package/dist/{affiliate-KoA4a4ZS.d.ts → affiliate-CdFMHIAI.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-AP7J6Y6E.mjs → chunk-63CHIBEP.mjs} +18 -1
- package/dist/{chunk-AP7J6Y6E.mjs.map → chunk-63CHIBEP.mjs.map} +1 -1
- package/dist/{chunk-5YXMWX5D.mjs → chunk-76HG44I2.mjs} +2 -2
- package/dist/{chunk-GR2JH7DC.mjs → chunk-YG7YTCX5.mjs} +1 -1
- package/dist/{chunk-GR2JH7DC.mjs.map → chunk-YG7YTCX5.mjs.map} +1 -1
- package/dist/{contactUs-DaCfW02-.d.mts → contactUs-B1J8xVR_.d.mts} +1 -1
- package/dist/{contactUs-B2uX5d6w.d.ts → contactUs-B3Jy6lSO.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-Dc_Ef7-l.d.mts → global-9dM4g5_h.d.mts} +1 -0
- package/dist/{global-BbSXt5al.d.ts → global-Cth1J7MX.d.ts} +1 -0
- package/dist/graphql/index.cjs +18 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +15 -6
- package/dist/graphql/index.d.ts +15 -6
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +9 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.mjs +17 -0
- 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-DSsIEMZ4.d.mts → resourceActivities-DZL_oKKt.d.mts} +1 -1
- package/dist/{resourceActivities-Yowml2rs.d.ts → resourceActivities-k58jnCEO.d.ts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +1 -1
- package/dist/{user-C1hCvvbu.d.mts → user-Ca1jaqJo.d.mts} +1 -1
- package/dist/{user-D0yOSvYp.d.ts → user-CpedBDF1.d.ts} +1 -1
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-5YXMWX5D.mjs.map → chunk-76HG44I2.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
|
|
2
|
-
import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-
|
|
2
|
+
import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-9dM4g5_h.mjs';
|
|
3
3
|
import { PosterAssetId } from './images/index.mjs';
|
|
4
|
-
import { S as SafeUserType, U as UserFormData } from './user-
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-Ca1jaqJo.mjs';
|
|
5
5
|
|
|
6
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
7
|
location: LocationType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
|
|
2
|
-
import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-
|
|
2
|
+
import { Q as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, a2 as CreateFormData, aL as ResourceContactDetailsType, aN as ResourceImageType, aO as SocialMediaType, aS as TermsAgreement, ao as OwnerType, aC as PromoCodeType, M as MutationResponse } from './global-Cth1J7MX.js';
|
|
3
3
|
import { PosterAssetId } from './images/index.js';
|
|
4
|
-
import { S as SafeUserType, U as UserFormData } from './user-
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-CpedBDF1.js';
|
|
5
5
|
|
|
6
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
7
|
location: LocationType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumResourceType } from './enums/index.mjs';
|
|
2
|
-
import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-
|
|
3
|
-
import { U as UserFormData } from './user-
|
|
2
|
+
import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-9dM4g5_h.mjs';
|
|
3
|
+
import { U as UserFormData } from './user-Ca1jaqJo.mjs';
|
|
4
4
|
|
|
5
5
|
declare enum EnumAffiliateParticipantType {
|
|
6
6
|
INDIVIDUAL = "INDIVIDUAL",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnumResourceType } from './enums/index.js';
|
|
2
|
-
import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-
|
|
3
|
-
import { U as UserFormData } from './user-
|
|
2
|
+
import { aC as PromoCodeType, L as LocationType, aO as SocialMediaType, ao as OwnerType, a2 as CreateFormData } from './global-Cth1J7MX.js';
|
|
3
|
+
import { U as UserFormData } from './user-CpedBDF1.js';
|
|
4
4
|
|
|
5
5
|
declare enum EnumAffiliateParticipantType {
|
|
6
6
|
INDIVIDUAL = "INDIVIDUAL",
|
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.mjs';
|
|
2
|
-
import { P as Permission, S as SafeUserType } from '../user-
|
|
3
|
-
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-
|
|
2
|
+
import { P as Permission, S as SafeUserType } from '../user-Ca1jaqJo.mjs';
|
|
3
|
+
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-Ca1jaqJo.mjs';
|
|
4
4
|
import { T as Tier } from '../subscription-bmAdrnfi.mjs';
|
|
5
5
|
import React, { ReactNode } from 'react';
|
|
6
|
-
import '../global-
|
|
6
|
+
import '../global-9dM4g5_h.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
|
|
9
9
|
type AuthManager = {
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EnumUserRole, EnumResourceType, EnumUserLicence } from '../enums/index.js';
|
|
2
|
-
import { P as Permission, S as SafeUserType } from '../user-
|
|
3
|
-
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-
|
|
2
|
+
import { P as Permission, S as SafeUserType } from '../user-CpedBDF1.js';
|
|
3
|
+
export { a as PERMISSIONS, W as WILDCARD_PERMISSION } from '../user-CpedBDF1.js';
|
|
4
4
|
import { T as Tier } from '../subscription-BU8GvH2K.js';
|
|
5
5
|
import React, { ReactNode } from 'react';
|
|
6
|
-
import '../global-
|
|
6
|
+
import '../global-Cth1J7MX.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
|
|
9
9
|
type AuthManager = {
|
|
@@ -3597,6 +3597,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql36`
|
|
|
3597
3597
|
createdAt
|
|
3598
3598
|
updatedAt
|
|
3599
3599
|
userId
|
|
3600
|
+
nickName
|
|
3600
3601
|
}
|
|
3601
3602
|
`;
|
|
3602
3603
|
var COUPON_OPTION_FIELDS_FRAGMENT = gql36`
|
|
@@ -3763,6 +3764,14 @@ var SCAN_COUPON_MUTATION = gql37`
|
|
|
3763
3764
|
}
|
|
3764
3765
|
}
|
|
3765
3766
|
`;
|
|
3767
|
+
var REWARD_COUPON_MUTATION = gql37`
|
|
3768
|
+
mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
|
|
3769
|
+
rewardCoupon(input: $input, userId: $userId) {
|
|
3770
|
+
data
|
|
3771
|
+
message
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
`;
|
|
3766
3775
|
|
|
3767
3776
|
// src/graphql/hooks/coupon/hooksMutation.ts
|
|
3768
3777
|
var useCreateCoupon = () => {
|
|
@@ -3793,6 +3802,13 @@ var useScanCoupon = () => {
|
|
|
3793
3802
|
});
|
|
3794
3803
|
return { error, loading, scanCoupon };
|
|
3795
3804
|
};
|
|
3805
|
+
var useRewardCoupon = () => {
|
|
3806
|
+
const [rewardCoupon, { loading, error }] = useMutation20(REWARD_COUPON_MUTATION, {
|
|
3807
|
+
awaitRefetchQueries: true,
|
|
3808
|
+
refetchQueries: [{ query: GET_COUPONS }]
|
|
3809
|
+
});
|
|
3810
|
+
return { error, loading, rewardCoupon };
|
|
3811
|
+
};
|
|
3796
3812
|
|
|
3797
3813
|
// src/graphql/hooks/coupon/hooksQuery.ts
|
|
3798
3814
|
import { useQuery as useQuery15 } from "@apollo/client";
|
|
@@ -3965,7 +3981,8 @@ export {
|
|
|
3965
3981
|
useUpdateCoupon,
|
|
3966
3982
|
useDeleteCoupon,
|
|
3967
3983
|
useScanCoupon,
|
|
3984
|
+
useRewardCoupon,
|
|
3968
3985
|
useGetCoupons,
|
|
3969
3986
|
useGetCoupon
|
|
3970
3987
|
};
|
|
3971
|
-
//# sourceMappingURL=chunk-
|
|
3988
|
+
//# sourceMappingURL=chunk-63CHIBEP.mjs.map
|