@timardex/cluemart-shared 1.5.789 → 1.5.791
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/{affiliate-VNlbrvgi.d.ts → affiliate-B-jSNkBB.d.ts} +9 -2
- package/dist/{affiliate-Dw6otGha.d.mts → affiliate-CfLsTGgF.d.mts} +9 -2
- package/dist/{chunk-JVBD55SQ.mjs → chunk-2US6BYNF.mjs} +13 -30
- package/dist/{chunk-JVBD55SQ.mjs.map → chunk-2US6BYNF.mjs.map} +1 -1
- package/dist/{chunk-63F5FP5R.mjs → chunk-45PVMXYY.mjs} +1 -1
- package/dist/{chunk-63F5FP5R.mjs.map → chunk-45PVMXYY.mjs.map} +1 -1
- package/dist/{chunk-G4LVRM53.mjs → chunk-HATC3Y5J.mjs} +2 -2
- package/dist/{chunk-UGA3F23W.mjs → chunk-V25PPJEQ.mjs} +2 -2
- package/dist/{chunk-ZZBBANGP.mjs → chunk-XR5RTNG3.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +12 -30
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -10
- package/dist/graphql/index.d.ts +2 -10
- package/dist/graphql/index.mjs +1 -3
- package/dist/hooks/index.cjs +71 -21
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.mjs +62 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +12 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.mjs +12 -29
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-G4LVRM53.mjs.map → chunk-HATC3Y5J.mjs.map} +0 -0
- /package/dist/{chunk-UGA3F23W.mjs.map → chunk-V25PPJEQ.mjs.map} +0 -0
- /package/dist/{chunk-ZZBBANGP.mjs.map → chunk-XR5RTNG3.mjs.map} +0 -0
|
@@ -4,8 +4,13 @@ import { ak as PromoCodeType, aw as SocialMediaType, aA as TermsAgreement, a6 as
|
|
|
4
4
|
type AffiliateContactDetails = {
|
|
5
5
|
mobilePhone: string;
|
|
6
6
|
};
|
|
7
|
+
type AffiliateBankAccountDetailsType = {
|
|
8
|
+
accountHolderName: string;
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
};
|
|
7
11
|
interface AffiliateDetailsType {
|
|
8
|
-
|
|
12
|
+
bankAccountDetails: AffiliateBankAccountDetailsType;
|
|
13
|
+
contactDetails: AffiliateContactDetails;
|
|
9
14
|
region: string;
|
|
10
15
|
socialMedia: SocialMediaType[] | null;
|
|
11
16
|
termsAgreement?: TermsAgreement | null;
|
|
@@ -36,6 +41,8 @@ interface AffiliateType {
|
|
|
36
41
|
affiliateResources: AffiliateResourceType[];
|
|
37
42
|
createdAt: Date;
|
|
38
43
|
deletedAt: Date | null;
|
|
44
|
+
lastRewardRedemptionAt: Date | null;
|
|
45
|
+
lastRewardRedemptionPoints: number | null;
|
|
39
46
|
overallPoints: number;
|
|
40
47
|
owner: OwnerType;
|
|
41
48
|
updatedAt: Date | null;
|
|
@@ -43,4 +50,4 @@ interface AffiliateType {
|
|
|
43
50
|
type AffiliateFormData = AffiliateDetailsType & Pick<AffiliateType, "_id">;
|
|
44
51
|
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
45
52
|
|
|
46
|
-
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type
|
|
53
|
+
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateReward as f };
|
|
@@ -4,8 +4,13 @@ import { ak as PromoCodeType, aw as SocialMediaType, aA as TermsAgreement, a6 as
|
|
|
4
4
|
type AffiliateContactDetails = {
|
|
5
5
|
mobilePhone: string;
|
|
6
6
|
};
|
|
7
|
+
type AffiliateBankAccountDetailsType = {
|
|
8
|
+
accountHolderName: string;
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
};
|
|
7
11
|
interface AffiliateDetailsType {
|
|
8
|
-
|
|
12
|
+
bankAccountDetails: AffiliateBankAccountDetailsType;
|
|
13
|
+
contactDetails: AffiliateContactDetails;
|
|
9
14
|
region: string;
|
|
10
15
|
socialMedia: SocialMediaType[] | null;
|
|
11
16
|
termsAgreement?: TermsAgreement | null;
|
|
@@ -36,6 +41,8 @@ interface AffiliateType {
|
|
|
36
41
|
affiliateResources: AffiliateResourceType[];
|
|
37
42
|
createdAt: Date;
|
|
38
43
|
deletedAt: Date | null;
|
|
44
|
+
lastRewardRedemptionAt: Date | null;
|
|
45
|
+
lastRewardRedemptionPoints: number | null;
|
|
39
46
|
overallPoints: number;
|
|
40
47
|
owner: OwnerType;
|
|
41
48
|
updatedAt: Date | null;
|
|
@@ -43,4 +50,4 @@ interface AffiliateType {
|
|
|
43
50
|
type AffiliateFormData = AffiliateDetailsType & Pick<AffiliateType, "_id">;
|
|
44
51
|
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
45
52
|
|
|
46
|
-
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type
|
|
53
|
+
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateReward as f };
|
|
@@ -5092,8 +5092,17 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql40`
|
|
|
5092
5092
|
}
|
|
5093
5093
|
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
5094
5094
|
`;
|
|
5095
|
+
var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = gql40`
|
|
5096
|
+
fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
|
|
5097
|
+
accountHolderName
|
|
5098
|
+
accountNumber
|
|
5099
|
+
}
|
|
5100
|
+
`;
|
|
5095
5101
|
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql40`
|
|
5096
5102
|
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
5103
|
+
bankAccountDetails {
|
|
5104
|
+
...AffiliateBankAccountDetailsFields
|
|
5105
|
+
}
|
|
5097
5106
|
contactDetails {
|
|
5098
5107
|
mobilePhone
|
|
5099
5108
|
}
|
|
@@ -5105,6 +5114,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql40`
|
|
|
5105
5114
|
...TermsAgreementFields
|
|
5106
5115
|
}
|
|
5107
5116
|
}
|
|
5117
|
+
${AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT}
|
|
5108
5118
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
5109
5119
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
5110
5120
|
`;
|
|
@@ -5121,6 +5131,8 @@ var AFFILIATE_FIELDS_FRAGMENT = gql40`
|
|
|
5121
5131
|
}
|
|
5122
5132
|
createdAt
|
|
5123
5133
|
deletedAt
|
|
5134
|
+
lastRewardRedemptionAt
|
|
5135
|
+
lastRewardRedemptionPoints
|
|
5124
5136
|
overallPoints
|
|
5125
5137
|
owner {
|
|
5126
5138
|
...OwnerFields
|
|
@@ -5147,20 +5159,6 @@ var GET_AFFILIATES = gql40`
|
|
|
5147
5159
|
}
|
|
5148
5160
|
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5149
5161
|
`;
|
|
5150
|
-
var GET_AFFILIATE_RESOURCE_BY_AFFILIATE_ID_AND_RESOURCE_ID = gql40`
|
|
5151
|
-
query getAffiliateResourceByAffiliateIdAndResourceId(
|
|
5152
|
-
$affiliateId: ID!
|
|
5153
|
-
$resourceId: ID!
|
|
5154
|
-
) {
|
|
5155
|
-
affiliateResourceByAffiliateIdAndResourceId(
|
|
5156
|
-
affiliateId: $affiliateId
|
|
5157
|
-
resourceId: $resourceId
|
|
5158
|
-
) {
|
|
5159
|
-
...AffiliateResourceFields
|
|
5160
|
-
}
|
|
5161
|
-
}
|
|
5162
|
-
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
5163
|
-
`;
|
|
5164
5162
|
|
|
5165
5163
|
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
5166
5164
|
var useGetAffiliate = (_id) => {
|
|
@@ -5189,20 +5187,6 @@ var useGetAffiliates = () => {
|
|
|
5189
5187
|
refetch
|
|
5190
5188
|
};
|
|
5191
5189
|
};
|
|
5192
|
-
var useGetAffiliateResourceByAffiliateIdAndResourceId = (affiliateId, resourceId) => {
|
|
5193
|
-
const { data, loading, error, refetch } = useQuery15(GET_AFFILIATE_RESOURCE_BY_AFFILIATE_ID_AND_RESOURCE_ID, {
|
|
5194
|
-
fetchPolicy: "network-only",
|
|
5195
|
-
skip: !affiliateId || affiliateId === "" || !resourceId || resourceId === "",
|
|
5196
|
-
variables: { affiliateId, resourceId }
|
|
5197
|
-
});
|
|
5198
|
-
const affiliateResource = data?.affiliateResourceByAffiliateIdAndResourceId;
|
|
5199
|
-
return {
|
|
5200
|
-
affiliateResource,
|
|
5201
|
-
error,
|
|
5202
|
-
loading,
|
|
5203
|
-
refetch
|
|
5204
|
-
};
|
|
5205
|
-
};
|
|
5206
5190
|
|
|
5207
5191
|
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
5208
5192
|
import { useMutation as useMutation20 } from "@apollo/client";
|
|
@@ -5404,8 +5388,7 @@ export {
|
|
|
5404
5388
|
useGetSchool,
|
|
5405
5389
|
useGetAffiliate,
|
|
5406
5390
|
useGetAffiliates,
|
|
5407
|
-
useGetAffiliateResourceByAffiliateIdAndResourceId,
|
|
5408
5391
|
useUpdateAffiliateDetails,
|
|
5409
5392
|
useDeleteAffiliate
|
|
5410
5393
|
};
|
|
5411
|
-
//# sourceMappingURL=chunk-
|
|
5394
|
+
//# sourceMappingURL=chunk-2US6BYNF.mjs.map
|