@timardex/cluemart-shared 1.2.66 → 1.2.69
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-BChCn4Ka.d.ts → ad-BijiW7Nn.d.ts} +9 -8
- package/dist/{ad-DC4CQ8Gp.d.mts → ad-DITy2OMe.d.mts} +9 -8
- package/dist/{auth-BBzFtZee.d.mts → auth-DCIrfDwB.d.mts} +1 -1
- package/dist/{auth-DqNTAngW.d.ts → auth-iE9sd_mq.d.ts} +1 -1
- package/dist/{chunk-N625BZKR.mjs → chunk-ILRVLTWY.mjs} +1 -1
- package/dist/{chunk-N625BZKR.mjs.map → chunk-ILRVLTWY.mjs.map} +1 -1
- package/dist/formFields/index.cjs +2 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +1 -0
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-JXYCto5-.d.ts → global-08vcDEuE.d.ts} +21 -14
- package/dist/{global-WNM-jttW.d.mts → global-DhZY519g.d.mts} +21 -14
- package/dist/graphql/index.cjs +8 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +8 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +31 -13
- 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 +17 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +40 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -24
- package/dist/index.d.ts +33 -24
- package/dist/index.mjs +38 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DO97TmNs.d.mts → resourceActivities-DB-fx51l.d.mts} +3 -3
- package/dist/{resourceActivities-BkGGnxjl.d.ts → resourceActivities-Ezt7CDPH.d.ts} +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -321,8 +321,8 @@ type UserActivity = {
|
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
type UserLicenceType = {
|
|
324
|
-
expiryDate
|
|
325
|
-
issuedDate
|
|
324
|
+
expiryDate: Date | null;
|
|
325
|
+
issuedDate: Date | null;
|
|
326
326
|
licenceType: EnumUserLicence;
|
|
327
327
|
};
|
|
328
328
|
interface UserType {
|
|
@@ -330,8 +330,8 @@ interface UserType {
|
|
|
330
330
|
active: boolean;
|
|
331
331
|
associates?: AssociateType[] | null;
|
|
332
332
|
avatar: ResourceImageType | null;
|
|
333
|
-
createdAt:
|
|
334
|
-
deletedAt:
|
|
333
|
+
createdAt: Date;
|
|
334
|
+
deletedAt: Date | null;
|
|
335
335
|
email: string;
|
|
336
336
|
events: string[] | null;
|
|
337
337
|
firstName: string;
|
|
@@ -346,7 +346,7 @@ interface UserType {
|
|
|
346
346
|
role: EnumUserRole;
|
|
347
347
|
stripe?: StripeSubscription;
|
|
348
348
|
termsAgreement?: TermsAgreement | null;
|
|
349
|
-
updatedAt:
|
|
349
|
+
updatedAt: Date | null;
|
|
350
350
|
userActivity: UserActivity | null;
|
|
351
351
|
vendor: string | null;
|
|
352
352
|
}
|
|
@@ -471,9 +471,15 @@ type SocialMediaType = {
|
|
|
471
471
|
};
|
|
472
472
|
type AssociateType = {
|
|
473
473
|
email: string;
|
|
474
|
-
resourceId
|
|
475
|
-
resourceType
|
|
476
|
-
licence
|
|
474
|
+
resourceId: string;
|
|
475
|
+
resourceType: EnumResourceType;
|
|
476
|
+
licence: UserLicenceType;
|
|
477
|
+
};
|
|
478
|
+
type AssociateTypeFormData = {
|
|
479
|
+
email: string;
|
|
480
|
+
resourceId: string;
|
|
481
|
+
resourceType: EnumResourceType;
|
|
482
|
+
licenceType: EnumUserLicence;
|
|
477
483
|
};
|
|
478
484
|
type OwnerType = {
|
|
479
485
|
email: string;
|
|
@@ -482,7 +488,7 @@ type OwnerType = {
|
|
|
482
488
|
interface BaseResourceTypeFormData {
|
|
483
489
|
_id?: string;
|
|
484
490
|
active: boolean;
|
|
485
|
-
associates?:
|
|
491
|
+
associates?: AssociateTypeFormData[] | null;
|
|
486
492
|
contactDetails?: ResourceContactDetailsType | null;
|
|
487
493
|
cover: ResourceImageType;
|
|
488
494
|
coverUpload?: ResourceImageType | null;
|
|
@@ -502,15 +508,16 @@ type PosterUsageType = {
|
|
|
502
508
|
month: string;
|
|
503
509
|
count: number;
|
|
504
510
|
};
|
|
505
|
-
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
|
|
511
|
+
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
|
|
506
512
|
_id: string;
|
|
507
513
|
adIds?: string[] | null;
|
|
514
|
+
associates?: AssociateType[] | null;
|
|
508
515
|
chatIds?: string[] | null;
|
|
509
|
-
createdAt:
|
|
510
|
-
deletedAt:
|
|
516
|
+
createdAt: Date;
|
|
517
|
+
deletedAt: Date | null;
|
|
511
518
|
owner: OwnerType;
|
|
512
519
|
posterUsage?: PosterUsageType | null;
|
|
513
|
-
updatedAt:
|
|
520
|
+
updatedAt: Date | null;
|
|
514
521
|
};
|
|
515
522
|
type LocationType = {
|
|
516
523
|
city: string;
|
|
@@ -679,7 +686,7 @@ interface ChatType {
|
|
|
679
686
|
active: boolean;
|
|
680
687
|
chatType: EnumChatType;
|
|
681
688
|
chatName: string;
|
|
682
|
-
createdAt:
|
|
689
|
+
createdAt: Date;
|
|
683
690
|
messages: ChatMessageType[];
|
|
684
691
|
participants: ParticipantType[];
|
|
685
692
|
resourceInfo: {
|
|
@@ -687,8 +694,8 @@ interface ChatType {
|
|
|
687
694
|
partnerId: string | null;
|
|
688
695
|
vendorId: string | null;
|
|
689
696
|
} | null;
|
|
690
|
-
updatedAt:
|
|
691
|
-
deletedAt:
|
|
697
|
+
updatedAt: Date | null;
|
|
698
|
+
deletedAt: Date | null;
|
|
692
699
|
}
|
|
693
700
|
|
|
694
701
|
type ContactUsFormData = {
|
|
@@ -734,7 +741,8 @@ interface PosterInputType {
|
|
|
734
741
|
resourceType: EnumResourceType;
|
|
735
742
|
}
|
|
736
743
|
|
|
737
|
-
interface
|
|
744
|
+
interface TesterFormData {
|
|
745
|
+
approved: boolean;
|
|
738
746
|
categories?: Category[] | null;
|
|
739
747
|
companyName: string;
|
|
740
748
|
email: string;
|
|
@@ -744,12 +752,12 @@ interface TestersFormData {
|
|
|
744
752
|
region: string;
|
|
745
753
|
resourceType: EnumResourceType;
|
|
746
754
|
}
|
|
747
|
-
type
|
|
748
|
-
interface TesterType extends
|
|
755
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
756
|
+
interface TesterType extends TesterFormData {
|
|
749
757
|
_id: string;
|
|
750
758
|
active: boolean;
|
|
751
|
-
createdAt:
|
|
752
|
-
updatedAt:
|
|
759
|
+
createdAt: Date;
|
|
760
|
+
updatedAt: Date | null;
|
|
753
761
|
}
|
|
754
762
|
|
|
755
763
|
declare enum EnumAdShowOn {
|
|
@@ -797,7 +805,7 @@ interface AdType extends AdFormData {
|
|
|
797
805
|
createdAt: Date;
|
|
798
806
|
impressions?: number;
|
|
799
807
|
start: Date;
|
|
800
|
-
updatedAt: Date;
|
|
808
|
+
updatedAt: Date | null;
|
|
801
809
|
}
|
|
802
810
|
|
|
803
811
|
declare enum EnumActivity {
|
|
@@ -894,6 +902,7 @@ declare const validateVerificationTokenFields: FormField[];
|
|
|
894
902
|
|
|
895
903
|
declare const profileFields: FormField[];
|
|
896
904
|
|
|
905
|
+
declare const categoryColors: Record<string, string>;
|
|
897
906
|
declare const availableCategories: Category[];
|
|
898
907
|
|
|
899
908
|
declare const socialMediaFields: FormField[];
|
|
@@ -1563,7 +1572,7 @@ declare const defaultVendorFormValues: VendorFormData;
|
|
|
1563
1572
|
declare const defaultVendorInfoFormValues: VendorInfoFormData;
|
|
1564
1573
|
declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
|
|
1565
1574
|
|
|
1566
|
-
declare function
|
|
1575
|
+
declare function useTesterForm(data?: TesterFormData): CreateTesterFormData;
|
|
1567
1576
|
|
|
1568
1577
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1569
1578
|
|
|
@@ -1679,4 +1688,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1679
1688
|
declare const paymentMethodOptions: OptionItem[];
|
|
1680
1689
|
declare function normalizeUrl(url: string): string;
|
|
1681
1690
|
|
|
1682
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type
|
|
1691
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type AssociateTypeFormData, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterFormData, type TesterType, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -321,8 +321,8 @@ type UserActivity = {
|
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
type UserLicenceType = {
|
|
324
|
-
expiryDate
|
|
325
|
-
issuedDate
|
|
324
|
+
expiryDate: Date | null;
|
|
325
|
+
issuedDate: Date | null;
|
|
326
326
|
licenceType: EnumUserLicence;
|
|
327
327
|
};
|
|
328
328
|
interface UserType {
|
|
@@ -330,8 +330,8 @@ interface UserType {
|
|
|
330
330
|
active: boolean;
|
|
331
331
|
associates?: AssociateType[] | null;
|
|
332
332
|
avatar: ResourceImageType | null;
|
|
333
|
-
createdAt:
|
|
334
|
-
deletedAt:
|
|
333
|
+
createdAt: Date;
|
|
334
|
+
deletedAt: Date | null;
|
|
335
335
|
email: string;
|
|
336
336
|
events: string[] | null;
|
|
337
337
|
firstName: string;
|
|
@@ -346,7 +346,7 @@ interface UserType {
|
|
|
346
346
|
role: EnumUserRole;
|
|
347
347
|
stripe?: StripeSubscription;
|
|
348
348
|
termsAgreement?: TermsAgreement | null;
|
|
349
|
-
updatedAt:
|
|
349
|
+
updatedAt: Date | null;
|
|
350
350
|
userActivity: UserActivity | null;
|
|
351
351
|
vendor: string | null;
|
|
352
352
|
}
|
|
@@ -471,9 +471,15 @@ type SocialMediaType = {
|
|
|
471
471
|
};
|
|
472
472
|
type AssociateType = {
|
|
473
473
|
email: string;
|
|
474
|
-
resourceId
|
|
475
|
-
resourceType
|
|
476
|
-
licence
|
|
474
|
+
resourceId: string;
|
|
475
|
+
resourceType: EnumResourceType;
|
|
476
|
+
licence: UserLicenceType;
|
|
477
|
+
};
|
|
478
|
+
type AssociateTypeFormData = {
|
|
479
|
+
email: string;
|
|
480
|
+
resourceId: string;
|
|
481
|
+
resourceType: EnumResourceType;
|
|
482
|
+
licenceType: EnumUserLicence;
|
|
477
483
|
};
|
|
478
484
|
type OwnerType = {
|
|
479
485
|
email: string;
|
|
@@ -482,7 +488,7 @@ type OwnerType = {
|
|
|
482
488
|
interface BaseResourceTypeFormData {
|
|
483
489
|
_id?: string;
|
|
484
490
|
active: boolean;
|
|
485
|
-
associates?:
|
|
491
|
+
associates?: AssociateTypeFormData[] | null;
|
|
486
492
|
contactDetails?: ResourceContactDetailsType | null;
|
|
487
493
|
cover: ResourceImageType;
|
|
488
494
|
coverUpload?: ResourceImageType | null;
|
|
@@ -502,15 +508,16 @@ type PosterUsageType = {
|
|
|
502
508
|
month: string;
|
|
503
509
|
count: number;
|
|
504
510
|
};
|
|
505
|
-
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
|
|
511
|
+
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
|
|
506
512
|
_id: string;
|
|
507
513
|
adIds?: string[] | null;
|
|
514
|
+
associates?: AssociateType[] | null;
|
|
508
515
|
chatIds?: string[] | null;
|
|
509
|
-
createdAt:
|
|
510
|
-
deletedAt:
|
|
516
|
+
createdAt: Date;
|
|
517
|
+
deletedAt: Date | null;
|
|
511
518
|
owner: OwnerType;
|
|
512
519
|
posterUsage?: PosterUsageType | null;
|
|
513
|
-
updatedAt:
|
|
520
|
+
updatedAt: Date | null;
|
|
514
521
|
};
|
|
515
522
|
type LocationType = {
|
|
516
523
|
city: string;
|
|
@@ -679,7 +686,7 @@ interface ChatType {
|
|
|
679
686
|
active: boolean;
|
|
680
687
|
chatType: EnumChatType;
|
|
681
688
|
chatName: string;
|
|
682
|
-
createdAt:
|
|
689
|
+
createdAt: Date;
|
|
683
690
|
messages: ChatMessageType[];
|
|
684
691
|
participants: ParticipantType[];
|
|
685
692
|
resourceInfo: {
|
|
@@ -687,8 +694,8 @@ interface ChatType {
|
|
|
687
694
|
partnerId: string | null;
|
|
688
695
|
vendorId: string | null;
|
|
689
696
|
} | null;
|
|
690
|
-
updatedAt:
|
|
691
|
-
deletedAt:
|
|
697
|
+
updatedAt: Date | null;
|
|
698
|
+
deletedAt: Date | null;
|
|
692
699
|
}
|
|
693
700
|
|
|
694
701
|
type ContactUsFormData = {
|
|
@@ -734,7 +741,8 @@ interface PosterInputType {
|
|
|
734
741
|
resourceType: EnumResourceType;
|
|
735
742
|
}
|
|
736
743
|
|
|
737
|
-
interface
|
|
744
|
+
interface TesterFormData {
|
|
745
|
+
approved: boolean;
|
|
738
746
|
categories?: Category[] | null;
|
|
739
747
|
companyName: string;
|
|
740
748
|
email: string;
|
|
@@ -744,12 +752,12 @@ interface TestersFormData {
|
|
|
744
752
|
region: string;
|
|
745
753
|
resourceType: EnumResourceType;
|
|
746
754
|
}
|
|
747
|
-
type
|
|
748
|
-
interface TesterType extends
|
|
755
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
756
|
+
interface TesterType extends TesterFormData {
|
|
749
757
|
_id: string;
|
|
750
758
|
active: boolean;
|
|
751
|
-
createdAt:
|
|
752
|
-
updatedAt:
|
|
759
|
+
createdAt: Date;
|
|
760
|
+
updatedAt: Date | null;
|
|
753
761
|
}
|
|
754
762
|
|
|
755
763
|
declare enum EnumAdShowOn {
|
|
@@ -797,7 +805,7 @@ interface AdType extends AdFormData {
|
|
|
797
805
|
createdAt: Date;
|
|
798
806
|
impressions?: number;
|
|
799
807
|
start: Date;
|
|
800
|
-
updatedAt: Date;
|
|
808
|
+
updatedAt: Date | null;
|
|
801
809
|
}
|
|
802
810
|
|
|
803
811
|
declare enum EnumActivity {
|
|
@@ -894,6 +902,7 @@ declare const validateVerificationTokenFields: FormField[];
|
|
|
894
902
|
|
|
895
903
|
declare const profileFields: FormField[];
|
|
896
904
|
|
|
905
|
+
declare const categoryColors: Record<string, string>;
|
|
897
906
|
declare const availableCategories: Category[];
|
|
898
907
|
|
|
899
908
|
declare const socialMediaFields: FormField[];
|
|
@@ -1563,7 +1572,7 @@ declare const defaultVendorFormValues: VendorFormData;
|
|
|
1563
1572
|
declare const defaultVendorInfoFormValues: VendorInfoFormData;
|
|
1564
1573
|
declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
|
|
1565
1574
|
|
|
1566
|
-
declare function
|
|
1575
|
+
declare function useTesterForm(data?: TesterFormData): CreateTesterFormData;
|
|
1567
1576
|
|
|
1568
1577
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1569
1578
|
|
|
@@ -1679,4 +1688,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1679
1688
|
declare const paymentMethodOptions: OptionItem[];
|
|
1680
1689
|
declare function normalizeUrl(url: string): string;
|
|
1681
1690
|
|
|
1682
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type
|
|
1691
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type AssociateTypeFormData, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterFormData, type TesterType, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.mjs
CHANGED
|
@@ -70,11 +70,11 @@ var EnumFoodType = /* @__PURE__ */ ((EnumFoodType2) => {
|
|
|
70
70
|
EnumFoodType2["VEGETARIAN"] = "Vegetarian";
|
|
71
71
|
return EnumFoodType2;
|
|
72
72
|
})(EnumFoodType || {});
|
|
73
|
-
var EnumResourceType = /* @__PURE__ */ ((
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return
|
|
73
|
+
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
74
|
+
EnumResourceType2["EVENT"] = "event";
|
|
75
|
+
EnumResourceType2["VENDOR"] = "vendor";
|
|
76
|
+
EnumResourceType2["PARTNER"] = "partner";
|
|
77
|
+
return EnumResourceType2;
|
|
78
78
|
})(EnumResourceType || {});
|
|
79
79
|
var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
|
|
80
80
|
EnumEventType2["MARKET"] = "Market";
|
|
@@ -148,15 +148,15 @@ var ImageTypeEnum = /* @__PURE__ */ ((ImageTypeEnum2) => {
|
|
|
148
148
|
ImageTypeEnum2["LOGO"] = "logo";
|
|
149
149
|
return ImageTypeEnum2;
|
|
150
150
|
})(ImageTypeEnum || {});
|
|
151
|
-
var EnumUserLicence = /* @__PURE__ */ ((
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return
|
|
151
|
+
var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
|
|
152
|
+
EnumUserLicence2["PRO_EVENT"] = "pro_event";
|
|
153
|
+
EnumUserLicence2["PRO_PLUS_EVENT"] = "pro_plus_event";
|
|
154
|
+
EnumUserLicence2["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
|
|
155
|
+
EnumUserLicence2["PRO_VENDOR"] = "pro_vendor";
|
|
156
|
+
EnumUserLicence2["STANDARD_EVENT"] = "standard_event";
|
|
157
|
+
EnumUserLicence2["STANDARD_VENDOR"] = "standard_vendor";
|
|
158
|
+
EnumUserLicence2["STANDARD_PARTNER"] = "standard_partner";
|
|
159
|
+
return EnumUserLicence2;
|
|
160
160
|
})(EnumUserLicence || {});
|
|
161
161
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
|
|
162
162
|
EnumUserRole2["ADMIN"] = "admin";
|
|
@@ -4023,21 +4023,22 @@ var useGetVendorInfo = (vendorId) => {
|
|
|
4023
4023
|
};
|
|
4024
4024
|
};
|
|
4025
4025
|
|
|
4026
|
-
// src/graphql/hooks/
|
|
4026
|
+
// src/graphql/hooks/tester/hooksMutation.ts
|
|
4027
4027
|
import { useMutation as useMutation11 } from "@apollo/client";
|
|
4028
4028
|
|
|
4029
|
-
// src/graphql/mutations/
|
|
4029
|
+
// src/graphql/mutations/tester.ts
|
|
4030
4030
|
import { gql as gql22 } from "@apollo/client";
|
|
4031
4031
|
|
|
4032
|
-
// src/graphql/queries/
|
|
4032
|
+
// src/graphql/queries/tester.ts
|
|
4033
4033
|
import { gql as gql21 } from "@apollo/client";
|
|
4034
4034
|
var TESTER_FIELDS_FRAGMENT = gql21`
|
|
4035
4035
|
fragment TesterFields on TesterType {
|
|
4036
4036
|
_id
|
|
4037
|
+
active
|
|
4038
|
+
approved
|
|
4037
4039
|
categories {
|
|
4038
4040
|
...CategoryFields
|
|
4039
4041
|
}
|
|
4040
|
-
active
|
|
4041
4042
|
companyName
|
|
4042
4043
|
createdAt
|
|
4043
4044
|
email
|
|
@@ -4067,7 +4068,7 @@ var GET_TESTER = gql21`
|
|
|
4067
4068
|
${TESTER_FIELDS_FRAGMENT}
|
|
4068
4069
|
`;
|
|
4069
4070
|
|
|
4070
|
-
// src/graphql/mutations/
|
|
4071
|
+
// src/graphql/mutations/tester.ts
|
|
4071
4072
|
var CREATE_TESTER_MUTATION = gql22`
|
|
4072
4073
|
mutation createTester($input: TesterInputType!) {
|
|
4073
4074
|
createTester(input: $input) {
|
|
@@ -4090,7 +4091,7 @@ var DELETE_TESTER_MUTATION = gql22`
|
|
|
4090
4091
|
}
|
|
4091
4092
|
`;
|
|
4092
4093
|
|
|
4093
|
-
// src/graphql/hooks/
|
|
4094
|
+
// src/graphql/hooks/tester/hooksMutation.ts
|
|
4094
4095
|
var useCreateTester = () => {
|
|
4095
4096
|
const [createTester, { data, loading, error }] = useMutation11(
|
|
4096
4097
|
CREATE_TESTER_MUTATION
|
|
@@ -4120,7 +4121,7 @@ var useDeleteTester = () => {
|
|
|
4120
4121
|
return { deleteTester, error, loading };
|
|
4121
4122
|
};
|
|
4122
4123
|
|
|
4123
|
-
// src/graphql/hooks/
|
|
4124
|
+
// src/graphql/hooks/tester/hooksQuery.ts
|
|
4124
4125
|
import { useQuery as useQuery6 } from "@apollo/client";
|
|
4125
4126
|
var useGetTesters = () => {
|
|
4126
4127
|
const { data, loading, error, refetch } = useQuery6(GET_TESTERS);
|
|
@@ -5088,7 +5089,10 @@ var globalResourceSchema = yup.object().shape({
|
|
|
5088
5089
|
socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
|
|
5089
5090
|
associates: yup.array().of(
|
|
5090
5091
|
yup.object().shape({
|
|
5091
|
-
email: emailRequiredSchema
|
|
5092
|
+
email: emailRequiredSchema,
|
|
5093
|
+
resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
|
|
5094
|
+
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
|
|
5095
|
+
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
5092
5096
|
})
|
|
5093
5097
|
).nullable().optional()
|
|
5094
5098
|
});
|
|
@@ -5282,9 +5286,10 @@ var validateVerificationTokenSchema = yup5.object().shape({
|
|
|
5282
5286
|
verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
|
|
5283
5287
|
});
|
|
5284
5288
|
|
|
5285
|
-
// src/yupSchema/
|
|
5289
|
+
// src/yupSchema/tester.ts
|
|
5286
5290
|
import * as yup6 from "yup";
|
|
5287
|
-
var
|
|
5291
|
+
var testerSchema = yup6.object().shape({
|
|
5292
|
+
approved: yup6.boolean().required("Approval status is required"),
|
|
5288
5293
|
categories: yup6.array().nullable().when("resourceType", {
|
|
5289
5294
|
is: "vendor" /* VENDOR */,
|
|
5290
5295
|
then: () => categorySchema.min(1, "Category list must contain at least one item").required("Categories required"),
|
|
@@ -6082,11 +6087,12 @@ function useResetPasswordForm() {
|
|
|
6082
6087
|
};
|
|
6083
6088
|
}
|
|
6084
6089
|
|
|
6085
|
-
// src/hooks/
|
|
6090
|
+
// src/hooks/useTesterForm.ts
|
|
6086
6091
|
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
6087
6092
|
import React6 from "react";
|
|
6088
6093
|
import { useForm as useForm11 } from "react-hook-form";
|
|
6089
6094
|
var defaultValues7 = {
|
|
6095
|
+
approved: false,
|
|
6090
6096
|
categories: null,
|
|
6091
6097
|
companyName: "",
|
|
6092
6098
|
email: "",
|
|
@@ -6096,7 +6102,7 @@ var defaultValues7 = {
|
|
|
6096
6102
|
region: "",
|
|
6097
6103
|
resourceType: ""
|
|
6098
6104
|
};
|
|
6099
|
-
function
|
|
6105
|
+
function useTesterForm(data) {
|
|
6100
6106
|
const {
|
|
6101
6107
|
control,
|
|
6102
6108
|
formState: { errors },
|
|
@@ -6107,11 +6113,12 @@ function useTestersForm(data) {
|
|
|
6107
6113
|
watch
|
|
6108
6114
|
} = useForm11({
|
|
6109
6115
|
defaultValues: defaultValues7,
|
|
6110
|
-
resolver: yupResolver11(
|
|
6116
|
+
resolver: yupResolver11(testerSchema)
|
|
6111
6117
|
});
|
|
6112
6118
|
React6.useEffect(() => {
|
|
6113
6119
|
if (data) {
|
|
6114
6120
|
reset({
|
|
6121
|
+
approved: data.approved,
|
|
6115
6122
|
categories: data.categories,
|
|
6116
6123
|
companyName: data.companyName,
|
|
6117
6124
|
email: data.email,
|
|
@@ -6126,6 +6133,7 @@ function useTestersForm(data) {
|
|
|
6126
6133
|
}
|
|
6127
6134
|
}, [data]);
|
|
6128
6135
|
const {
|
|
6136
|
+
approved,
|
|
6129
6137
|
categories,
|
|
6130
6138
|
companyName,
|
|
6131
6139
|
email,
|
|
@@ -6138,6 +6146,7 @@ function useTestersForm(data) {
|
|
|
6138
6146
|
return {
|
|
6139
6147
|
control,
|
|
6140
6148
|
fields: {
|
|
6149
|
+
approved,
|
|
6141
6150
|
categories,
|
|
6142
6151
|
companyName,
|
|
6143
6152
|
email,
|
|
@@ -6502,6 +6511,7 @@ export {
|
|
|
6502
6511
|
availableRegionTypes,
|
|
6503
6512
|
availableTagTypes,
|
|
6504
6513
|
capitalizeFirstLetter,
|
|
6514
|
+
categoryColors,
|
|
6505
6515
|
companyContactFields,
|
|
6506
6516
|
contactUsFields,
|
|
6507
6517
|
darkColors,
|
|
@@ -6645,7 +6655,7 @@ export {
|
|
|
6645
6655
|
useSearchVendors,
|
|
6646
6656
|
useSelectPackage,
|
|
6647
6657
|
useSendChatMessage,
|
|
6648
|
-
|
|
6658
|
+
useTesterForm,
|
|
6649
6659
|
useUpdateAd,
|
|
6650
6660
|
useUpdateEvent,
|
|
6651
6661
|
useUpdateEventInfo,
|