@timardex/cluemart-shared 1.5.836 → 1.5.837
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-DSZKkCju.d.ts → affiliate-DWonTXNb.d.ts} +1 -2
- package/dist/{affiliate-C0wLdUpL.d.mts → affiliate-DmvU25zu.d.mts} +1 -2
- package/dist/{chunk-QBU7N4P2.mjs → chunk-A7IXLYYS.mjs} +2 -2
- package/dist/{chunk-L4DYYGRX.mjs → chunk-EAO3C6JU.mjs} +1 -2
- package/dist/{chunk-L4DYYGRX.mjs.map → chunk-EAO3C6JU.mjs.map} +1 -1
- package/dist/{chunk-OBZTGPBJ.mjs → chunk-QMJB5OJ4.mjs} +1 -1
- package/dist/{chunk-OBZTGPBJ.mjs.map → chunk-QMJB5OJ4.mjs.map} +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +0 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +1 -26
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +4 -28
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- 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-QBU7N4P2.mjs.map → chunk-A7IXLYYS.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a
|
|
|
5
5
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BDIjVrI4.mjs';
|
|
6
6
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-BHwZPjT8.mjs';
|
|
7
7
|
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Bhkd3l06.mjs';
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-DmvU25zu.mjs';
|
|
9
9
|
import '../images/index.mjs';
|
|
10
10
|
import 'react-hook-form';
|
|
11
11
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a
|
|
|
5
5
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-JNcJxpTh.js';
|
|
6
6
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global--iSLy2cE.js';
|
|
7
7
|
import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-C_kCo0Fm.js';
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-DWonTXNb.js';
|
|
9
9
|
import '../images/index.js';
|
|
10
10
|
import 'react-hook-form';
|
|
11
11
|
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -5130,7 +5130,6 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
|
|
|
5130
5130
|
location {
|
|
5131
5131
|
...LocationFields
|
|
5132
5132
|
}
|
|
5133
|
-
region
|
|
5134
5133
|
socialMedia {
|
|
5135
5134
|
...SocialMediaFields
|
|
5136
5135
|
}
|
|
@@ -5602,17 +5601,13 @@ var defaultAffiliateFormValues = {
|
|
|
5602
5601
|
contactDetails: {
|
|
5603
5602
|
mobilePhone: ""
|
|
5604
5603
|
},
|
|
5605
|
-
email: "",
|
|
5606
|
-
firstName: "",
|
|
5607
5604
|
irdNumber: "",
|
|
5608
|
-
lastName: "",
|
|
5609
5605
|
location: defaultLocation,
|
|
5610
5606
|
participantType: "",
|
|
5611
|
-
region: "",
|
|
5612
5607
|
socialMedia: null,
|
|
5613
5608
|
termsAgreement: null
|
|
5614
5609
|
};
|
|
5615
|
-
function mapAffiliateToFormData(affiliate
|
|
5610
|
+
function mapAffiliateToFormData(affiliate) {
|
|
5616
5611
|
return {
|
|
5617
5612
|
_id: affiliate._id,
|
|
5618
5613
|
bankAccountDetails: affiliate.affiliateDetails?.bankAccountDetails ?? {
|
|
@@ -5622,13 +5617,9 @@ function mapAffiliateToFormData(affiliate, userDefaults) {
|
|
|
5622
5617
|
contactDetails: affiliate.affiliateDetails?.contactDetails ?? {
|
|
5623
5618
|
mobilePhone: ""
|
|
5624
5619
|
},
|
|
5625
|
-
email: affiliate.affiliateDetails?.email || userDefaults?.email || "",
|
|
5626
|
-
firstName: affiliate.affiliateDetails?.firstName || userDefaults?.firstName || "",
|
|
5627
5620
|
irdNumber: affiliate.affiliateDetails?.irdNumber ?? "",
|
|
5628
|
-
lastName: affiliate.affiliateDetails?.lastName || userDefaults?.lastName || "",
|
|
5629
5621
|
location: affiliate.affiliateDetails?.location ?? defaultLocation,
|
|
5630
5622
|
participantType: affiliate.affiliateDetails?.participantType ?? "",
|
|
5631
|
-
region: (affiliate.affiliateDetails?.region ?? userDefaults?.preferredRegion) || "",
|
|
5632
5623
|
socialMedia: affiliate.affiliateDetails?.socialMedia ?? null,
|
|
5633
5624
|
termsAgreement: affiliate.affiliateDetails?.termsAgreement ?? null
|
|
5634
5625
|
};
|
|
@@ -6795,8 +6786,6 @@ var affiliateSchema = yup12.object().shape({
|
|
|
6795
6786
|
contactDetails: affiliateContactDetailsSchema.required(
|
|
6796
6787
|
"Contact details are required"
|
|
6797
6788
|
),
|
|
6798
|
-
email: yup12.string().trim().required("Email is required"),
|
|
6799
|
-
firstName: yup12.string().trim().required("First name is required"),
|
|
6800
6789
|
irdNumber: yup12.string().trim().required("IRD number is required").matches(
|
|
6801
6790
|
nzIrdNumberRegex,
|
|
6802
6791
|
"IRD number must be in format: XXX-XXX-XX or XXX-XXX-XXX"
|
|
@@ -6805,13 +6794,11 @@ var affiliateSchema = yup12.object().shape({
|
|
|
6805
6794
|
"Enter a valid IRD number",
|
|
6806
6795
|
(value) => !!value && isValidIrdNumber(value)
|
|
6807
6796
|
),
|
|
6808
|
-
lastName: yup12.string().trim().required("Last name is required"),
|
|
6809
6797
|
location: locationSchema.required("Location is required"),
|
|
6810
6798
|
participantType: yup12.mixed().oneOf(
|
|
6811
6799
|
Object.values(EnumAffiliateParticipantType),
|
|
6812
6800
|
"Please select a valid participant type"
|
|
6813
6801
|
).required("Participant type is required"),
|
|
6814
|
-
region: yup12.string().trim().required("Region is required"),
|
|
6815
6802
|
socialMedia: yup12.array().of(socialMediaSchema).nullable().default(null)
|
|
6816
6803
|
});
|
|
6817
6804
|
|
|
@@ -6835,13 +6822,9 @@ function useAffiliateForm(data) {
|
|
|
6835
6822
|
_id: data._id,
|
|
6836
6823
|
bankAccountDetails: data.bankAccountDetails,
|
|
6837
6824
|
contactDetails: data.contactDetails,
|
|
6838
|
-
email: data.email,
|
|
6839
|
-
firstName: data.firstName,
|
|
6840
6825
|
irdNumber: data.irdNumber,
|
|
6841
|
-
lastName: data.lastName,
|
|
6842
6826
|
location: data.location,
|
|
6843
6827
|
participantType: data.participantType,
|
|
6844
|
-
region: data.region,
|
|
6845
6828
|
socialMedia: data.socialMedia,
|
|
6846
6829
|
termsAgreement: data.termsAgreement
|
|
6847
6830
|
});
|
|
@@ -6853,13 +6836,9 @@ function useAffiliateForm(data) {
|
|
|
6853
6836
|
_id,
|
|
6854
6837
|
bankAccountDetails,
|
|
6855
6838
|
contactDetails,
|
|
6856
|
-
email,
|
|
6857
|
-
firstName,
|
|
6858
6839
|
irdNumber,
|
|
6859
|
-
lastName,
|
|
6860
6840
|
location,
|
|
6861
6841
|
participantType,
|
|
6862
|
-
region,
|
|
6863
6842
|
socialMedia: socialMedia2,
|
|
6864
6843
|
termsAgreement
|
|
6865
6844
|
} = getValues();
|
|
@@ -6869,13 +6848,9 @@ function useAffiliateForm(data) {
|
|
|
6869
6848
|
_id,
|
|
6870
6849
|
bankAccountDetails,
|
|
6871
6850
|
contactDetails,
|
|
6872
|
-
email,
|
|
6873
|
-
firstName,
|
|
6874
6851
|
irdNumber,
|
|
6875
|
-
lastName,
|
|
6876
6852
|
location,
|
|
6877
6853
|
participantType,
|
|
6878
|
-
region,
|
|
6879
6854
|
socialMedia: socialMedia2,
|
|
6880
6855
|
termsAgreement
|
|
6881
6856
|
},
|