@timardex/cluemart-shared 1.5.789 → 1.5.790
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-B1RBuV0w.d.ts} +7 -2
- package/dist/{affiliate-Dw6otGha.d.mts → affiliate-qEbJvGVD.d.mts} +7 -2
- package/dist/{chunk-JVBD55SQ.mjs → chunk-B6DDY5XL.mjs} +11 -30
- package/dist/{chunk-JVBD55SQ.mjs.map → chunk-B6DDY5XL.mjs.map} +1 -1
- package/dist/{chunk-63F5FP5R.mjs → chunk-LPPBP3LJ.mjs} +1 -1
- package/dist/{chunk-63F5FP5R.mjs.map → chunk-LPPBP3LJ.mjs.map} +1 -1
- package/dist/{chunk-G4LVRM53.mjs → chunk-Q23R46FE.mjs} +2 -2
- package/dist/{chunk-UGA3F23W.mjs → chunk-R6ONCJE5.mjs} +2 -2
- package/dist/{chunk-ZZBBANGP.mjs → chunk-TWPPOPRF.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +10 -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 +69 -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 +10 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.mjs +10 -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-Q23R46FE.mjs.map} +0 -0
- /package/dist/{chunk-UGA3F23W.mjs.map → chunk-R6ONCJE5.mjs.map} +0 -0
- /package/dist/{chunk-ZZBBANGP.mjs.map → chunk-TWPPOPRF.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;
|
|
@@ -43,4 +48,4 @@ interface AffiliateType {
|
|
|
43
48
|
type AffiliateFormData = AffiliateDetailsType & Pick<AffiliateType, "_id">;
|
|
44
49
|
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
45
50
|
|
|
46
|
-
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type
|
|
51
|
+
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;
|
|
@@ -43,4 +48,4 @@ interface AffiliateType {
|
|
|
43
48
|
type AffiliateFormData = AffiliateDetailsType & Pick<AffiliateType, "_id">;
|
|
44
49
|
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
45
50
|
|
|
46
|
-
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateRewardType as E, type
|
|
51
|
+
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
|
`;
|
|
@@ -5147,20 +5157,6 @@ var GET_AFFILIATES = gql40`
|
|
|
5147
5157
|
}
|
|
5148
5158
|
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5149
5159
|
`;
|
|
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
5160
|
|
|
5165
5161
|
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
5166
5162
|
var useGetAffiliate = (_id) => {
|
|
@@ -5189,20 +5185,6 @@ var useGetAffiliates = () => {
|
|
|
5189
5185
|
refetch
|
|
5190
5186
|
};
|
|
5191
5187
|
};
|
|
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
5188
|
|
|
5207
5189
|
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
5208
5190
|
import { useMutation as useMutation20 } from "@apollo/client";
|
|
@@ -5404,8 +5386,7 @@ export {
|
|
|
5404
5386
|
useGetSchool,
|
|
5405
5387
|
useGetAffiliate,
|
|
5406
5388
|
useGetAffiliates,
|
|
5407
|
-
useGetAffiliateResourceByAffiliateIdAndResourceId,
|
|
5408
5389
|
useUpdateAffiliateDetails,
|
|
5409
5390
|
useDeleteAffiliate
|
|
5410
5391
|
};
|
|
5411
|
-
//# sourceMappingURL=chunk-
|
|
5392
|
+
//# sourceMappingURL=chunk-B6DDY5XL.mjs.map
|