@timardex/cluemart-shared 1.2.48 → 1.2.50
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-BkTdN8xM.d.mts → ad-BO5cMy3b.d.mts} +5 -4
- package/dist/{ad-STgnIJ8B.d.ts → ad-Dcmq74_b.d.ts} +5 -4
- package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
- package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
- package/dist/{chunk-HL4SAT7R.mjs → chunk-S6RE75SK.mjs} +4 -3
- package/dist/chunk-S6RE75SK.mjs.map +1 -0
- package/dist/{chunk-KZ2VLPYF.mjs → chunk-VYFOKMRP.mjs} +2 -2
- package/dist/enums/index.cjs +3 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +4 -3
- package/dist/enums/index.d.ts +4 -3
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +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-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
- package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
- package/dist/graphql/index.cjs +16 -16
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +17 -17
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +12 -7
- 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 +14 -9
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +31 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.mjs +31 -25
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.cjs.map +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-HL4SAT7R.mjs.map +0 -1
- /package/dist/{chunk-KZ2VLPYF.mjs.map → chunk-VYFOKMRP.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -92,8 +92,8 @@ declare enum EnumRelationResource {
|
|
|
92
92
|
VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
|
|
93
93
|
}
|
|
94
94
|
declare enum EnumNotificationResourceType {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
ADDED_AS_ASSOCIATE_EVENT = "added_as_associate_event",
|
|
96
|
+
ADDED_AS_ASSOCIATE_VENDOR = "added_as_associate_vendor",
|
|
97
97
|
APPROVED_EVENT = "approved_event",
|
|
98
98
|
APPROVED_VENDOR = "approved_vendor",
|
|
99
99
|
CREATED_EVENT = "created_event",
|
|
@@ -170,7 +170,8 @@ declare enum EnumSubscriptionStatus {
|
|
|
170
170
|
ACTIVE = "active",
|
|
171
171
|
INACTIVE = "inactive",
|
|
172
172
|
CANCELLED = "cancelled",
|
|
173
|
-
NO_SUBSCRIPTION = "no_subscription"
|
|
173
|
+
NO_SUBSCRIPTION = "no_subscription",
|
|
174
|
+
PAST_DUE = "past_due"
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
type StallType = {
|
|
@@ -368,7 +369,7 @@ type SocialMediaType = {
|
|
|
368
369
|
name?: EnumSocialMedia;
|
|
369
370
|
link?: string;
|
|
370
371
|
};
|
|
371
|
-
type
|
|
372
|
+
type AssociateType = {
|
|
372
373
|
email: string;
|
|
373
374
|
resourceId: string;
|
|
374
375
|
resourceType: EnumResourceType;
|
|
@@ -381,6 +382,7 @@ type OwnerType = {
|
|
|
381
382
|
interface BaseResourceTypeFormData {
|
|
382
383
|
_id?: string;
|
|
383
384
|
active: boolean;
|
|
385
|
+
associates?: AssociateType[] | null;
|
|
384
386
|
contactDetails?: ResourceContactDetailsType | null;
|
|
385
387
|
cover: ResourceImageType;
|
|
386
388
|
coverUpload?: ResourceImageType | null;
|
|
@@ -391,7 +393,6 @@ interface BaseResourceTypeFormData {
|
|
|
391
393
|
logoUpload?: ResourceImageType | null;
|
|
392
394
|
name: string;
|
|
393
395
|
owner?: OwnerType | null;
|
|
394
|
-
partners?: PartnerType[] | null;
|
|
395
396
|
promoCodes?: string[] | null;
|
|
396
397
|
region: string;
|
|
397
398
|
socialMedia?: SocialMediaType[] | null;
|
|
@@ -661,6 +662,7 @@ type UserFormData = {
|
|
|
661
662
|
confirmPassword?: string | null;
|
|
662
663
|
email: string;
|
|
663
664
|
firstName: string;
|
|
665
|
+
isTester: boolean;
|
|
664
666
|
lastName: string;
|
|
665
667
|
password?: string | null;
|
|
666
668
|
platform?: EnumOSPlatform;
|
|
@@ -707,6 +709,7 @@ type UserActivity = {
|
|
|
707
709
|
interface UserType {
|
|
708
710
|
_id: string;
|
|
709
711
|
active: boolean;
|
|
712
|
+
associates?: AssociateType[] | null;
|
|
710
713
|
avatar: ResourceImageType | null;
|
|
711
714
|
createdAt: string;
|
|
712
715
|
deletedAt: string | null;
|
|
@@ -716,17 +719,16 @@ interface UserType {
|
|
|
716
719
|
isTester: boolean;
|
|
717
720
|
lastName: string;
|
|
718
721
|
licences: EnumUserLicence[] | null;
|
|
719
|
-
partners?: PartnerType[] | null;
|
|
720
722
|
password: string;
|
|
721
723
|
platform: EnumOSPlatform | null;
|
|
722
724
|
preferredRegion: string;
|
|
723
725
|
refreshToken: string | null;
|
|
724
726
|
role: EnumUserRole;
|
|
727
|
+
stripe?: StripeSubscription;
|
|
725
728
|
termsAgreement?: TermsAgreement | null;
|
|
726
729
|
updatedAt: string;
|
|
727
730
|
userActivity: UserActivity | null;
|
|
728
731
|
vendor: string | null;
|
|
729
|
-
stripe?: StripeSubscription;
|
|
730
732
|
}
|
|
731
733
|
|
|
732
734
|
declare enum EnumAdShowOn {
|
|
@@ -1592,4 +1594,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1592
1594
|
declare const paymentMethodOptions: OptionItem[];
|
|
1593
1595
|
declare function normalizeUrl(url: string): string;
|
|
1594
1596
|
|
|
1595
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, 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 CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, 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, 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
|
|
1597
|
+
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 CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, 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, 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 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 TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, 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, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, 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, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, 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
|
@@ -92,8 +92,8 @@ declare enum EnumRelationResource {
|
|
|
92
92
|
VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
|
|
93
93
|
}
|
|
94
94
|
declare enum EnumNotificationResourceType {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
ADDED_AS_ASSOCIATE_EVENT = "added_as_associate_event",
|
|
96
|
+
ADDED_AS_ASSOCIATE_VENDOR = "added_as_associate_vendor",
|
|
97
97
|
APPROVED_EVENT = "approved_event",
|
|
98
98
|
APPROVED_VENDOR = "approved_vendor",
|
|
99
99
|
CREATED_EVENT = "created_event",
|
|
@@ -170,7 +170,8 @@ declare enum EnumSubscriptionStatus {
|
|
|
170
170
|
ACTIVE = "active",
|
|
171
171
|
INACTIVE = "inactive",
|
|
172
172
|
CANCELLED = "cancelled",
|
|
173
|
-
NO_SUBSCRIPTION = "no_subscription"
|
|
173
|
+
NO_SUBSCRIPTION = "no_subscription",
|
|
174
|
+
PAST_DUE = "past_due"
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
type StallType = {
|
|
@@ -368,7 +369,7 @@ type SocialMediaType = {
|
|
|
368
369
|
name?: EnumSocialMedia;
|
|
369
370
|
link?: string;
|
|
370
371
|
};
|
|
371
|
-
type
|
|
372
|
+
type AssociateType = {
|
|
372
373
|
email: string;
|
|
373
374
|
resourceId: string;
|
|
374
375
|
resourceType: EnumResourceType;
|
|
@@ -381,6 +382,7 @@ type OwnerType = {
|
|
|
381
382
|
interface BaseResourceTypeFormData {
|
|
382
383
|
_id?: string;
|
|
383
384
|
active: boolean;
|
|
385
|
+
associates?: AssociateType[] | null;
|
|
384
386
|
contactDetails?: ResourceContactDetailsType | null;
|
|
385
387
|
cover: ResourceImageType;
|
|
386
388
|
coverUpload?: ResourceImageType | null;
|
|
@@ -391,7 +393,6 @@ interface BaseResourceTypeFormData {
|
|
|
391
393
|
logoUpload?: ResourceImageType | null;
|
|
392
394
|
name: string;
|
|
393
395
|
owner?: OwnerType | null;
|
|
394
|
-
partners?: PartnerType[] | null;
|
|
395
396
|
promoCodes?: string[] | null;
|
|
396
397
|
region: string;
|
|
397
398
|
socialMedia?: SocialMediaType[] | null;
|
|
@@ -661,6 +662,7 @@ type UserFormData = {
|
|
|
661
662
|
confirmPassword?: string | null;
|
|
662
663
|
email: string;
|
|
663
664
|
firstName: string;
|
|
665
|
+
isTester: boolean;
|
|
664
666
|
lastName: string;
|
|
665
667
|
password?: string | null;
|
|
666
668
|
platform?: EnumOSPlatform;
|
|
@@ -707,6 +709,7 @@ type UserActivity = {
|
|
|
707
709
|
interface UserType {
|
|
708
710
|
_id: string;
|
|
709
711
|
active: boolean;
|
|
712
|
+
associates?: AssociateType[] | null;
|
|
710
713
|
avatar: ResourceImageType | null;
|
|
711
714
|
createdAt: string;
|
|
712
715
|
deletedAt: string | null;
|
|
@@ -716,17 +719,16 @@ interface UserType {
|
|
|
716
719
|
isTester: boolean;
|
|
717
720
|
lastName: string;
|
|
718
721
|
licences: EnumUserLicence[] | null;
|
|
719
|
-
partners?: PartnerType[] | null;
|
|
720
722
|
password: string;
|
|
721
723
|
platform: EnumOSPlatform | null;
|
|
722
724
|
preferredRegion: string;
|
|
723
725
|
refreshToken: string | null;
|
|
724
726
|
role: EnumUserRole;
|
|
727
|
+
stripe?: StripeSubscription;
|
|
725
728
|
termsAgreement?: TermsAgreement | null;
|
|
726
729
|
updatedAt: string;
|
|
727
730
|
userActivity: UserActivity | null;
|
|
728
731
|
vendor: string | null;
|
|
729
|
-
stripe?: StripeSubscription;
|
|
730
732
|
}
|
|
731
733
|
|
|
732
734
|
declare enum EnumAdShowOn {
|
|
@@ -1592,4 +1594,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1592
1594
|
declare const paymentMethodOptions: OptionItem[];
|
|
1593
1595
|
declare function normalizeUrl(url: string): string;
|
|
1594
1596
|
|
|
1595
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, 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 CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, 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, 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
|
|
1597
|
+
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 CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, 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, 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 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 TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, 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, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, 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, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, 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
|
@@ -100,8 +100,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
|
|
|
100
100
|
return EnumRelationResource2;
|
|
101
101
|
})(EnumRelationResource || {});
|
|
102
102
|
var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
|
|
103
|
-
EnumNotificationResourceType2["
|
|
104
|
-
EnumNotificationResourceType2["
|
|
103
|
+
EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
|
|
104
|
+
EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
105
105
|
EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
|
|
106
106
|
EnumNotificationResourceType2["APPROVED_VENDOR"] = "approved_vendor";
|
|
107
107
|
EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
|
|
@@ -187,6 +187,7 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
|
|
|
187
187
|
EnumSubscriptionStatus2["INACTIVE"] = "inactive";
|
|
188
188
|
EnumSubscriptionStatus2["CANCELLED"] = "cancelled";
|
|
189
189
|
EnumSubscriptionStatus2["NO_SUBSCRIPTION"] = "no_subscription";
|
|
190
|
+
EnumSubscriptionStatus2["PAST_DUE"] = "past_due";
|
|
190
191
|
return EnumSubscriptionStatus2;
|
|
191
192
|
})(EnumSubscriptionStatus || {});
|
|
192
193
|
|
|
@@ -2051,8 +2052,8 @@ var CATEGORY_FIELDS_FRAGMENT = gql2`
|
|
|
2051
2052
|
}
|
|
2052
2053
|
}
|
|
2053
2054
|
`;
|
|
2054
|
-
var
|
|
2055
|
-
fragment
|
|
2055
|
+
var ASSOCIATES_FIELDS_FRAGMENT = gql2`
|
|
2056
|
+
fragment AssociatesFields on AssociateType {
|
|
2056
2057
|
email
|
|
2057
2058
|
resourceId
|
|
2058
2059
|
resourceType
|
|
@@ -2111,22 +2112,22 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2111
2112
|
fragment UserFields on UserType {
|
|
2112
2113
|
_id
|
|
2113
2114
|
active
|
|
2115
|
+
associates {
|
|
2116
|
+
...AssociatesFields
|
|
2117
|
+
}
|
|
2114
2118
|
avatar {
|
|
2115
2119
|
...ResourceImageFields
|
|
2116
2120
|
}
|
|
2117
2121
|
createdAt
|
|
2118
2122
|
deletedAt
|
|
2119
2123
|
email
|
|
2120
|
-
|
|
2124
|
+
events
|
|
2121
2125
|
firstName
|
|
2126
|
+
isTester
|
|
2122
2127
|
lastName
|
|
2123
2128
|
licences
|
|
2124
|
-
events
|
|
2125
2129
|
platform
|
|
2126
2130
|
preferredRegion
|
|
2127
|
-
partners {
|
|
2128
|
-
...PartnerFields
|
|
2129
|
-
}
|
|
2130
2131
|
refreshToken
|
|
2131
2132
|
role
|
|
2132
2133
|
termsAgreement {
|
|
@@ -2139,7 +2140,7 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2139
2140
|
updatedAt
|
|
2140
2141
|
}
|
|
2141
2142
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2142
|
-
${
|
|
2143
|
+
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2143
2144
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2144
2145
|
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2145
2146
|
`;
|
|
@@ -2240,6 +2241,9 @@ var EVENT = gql3`
|
|
|
2240
2241
|
fragment EventFields on EventType {
|
|
2241
2242
|
_id
|
|
2242
2243
|
active
|
|
2244
|
+
associates {
|
|
2245
|
+
...AssociatesFields
|
|
2246
|
+
}
|
|
2243
2247
|
adIds
|
|
2244
2248
|
cover {
|
|
2245
2249
|
...ResourceImageFields
|
|
@@ -2269,9 +2273,6 @@ var EVENT = gql3`
|
|
|
2269
2273
|
owner {
|
|
2270
2274
|
...OwnerFields
|
|
2271
2275
|
}
|
|
2272
|
-
partners {
|
|
2273
|
-
...PartnerFields
|
|
2274
|
-
}
|
|
2275
2276
|
promoCodes
|
|
2276
2277
|
provider
|
|
2277
2278
|
posterUsage {
|
|
@@ -2300,7 +2301,7 @@ var EVENT = gql3`
|
|
|
2300
2301
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2301
2302
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2302
2303
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2303
|
-
${
|
|
2304
|
+
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2304
2305
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2305
2306
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2306
2307
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -2389,6 +2390,9 @@ var VENDOR = gql4`
|
|
|
2389
2390
|
fragment VendorFields on VendorType {
|
|
2390
2391
|
_id
|
|
2391
2392
|
active
|
|
2393
|
+
associates {
|
|
2394
|
+
...AssociatesFields
|
|
2395
|
+
}
|
|
2392
2396
|
adIds
|
|
2393
2397
|
availability {
|
|
2394
2398
|
corporate
|
|
@@ -2428,9 +2432,6 @@ var VENDOR = gql4`
|
|
|
2428
2432
|
owner {
|
|
2429
2433
|
...OwnerFields
|
|
2430
2434
|
}
|
|
2431
|
-
partners {
|
|
2432
|
-
...PartnerFields
|
|
2433
|
-
}
|
|
2434
2435
|
products {
|
|
2435
2436
|
...VendorMenuFields
|
|
2436
2437
|
}
|
|
@@ -2461,7 +2462,7 @@ var VENDOR = gql4`
|
|
|
2461
2462
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2462
2463
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2463
2464
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2464
|
-
${
|
|
2465
|
+
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2465
2466
|
${VENDOR_MENU_FIELDS_FRAGMENT}
|
|
2466
2467
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2467
2468
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
@@ -4853,7 +4854,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
4853
4854
|
name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
|
|
4854
4855
|
region: yup.string().label("Region").required("Region is required"),
|
|
4855
4856
|
socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
|
|
4856
|
-
|
|
4857
|
+
associates: yup.array().of(
|
|
4857
4858
|
yup.object().shape({
|
|
4858
4859
|
email: emailRequiredSchema,
|
|
4859
4860
|
resourceId: yup.string().required(),
|
|
@@ -5014,6 +5015,7 @@ var userSchema = yup4.object().shape({
|
|
|
5014
5015
|
email: emailRequiredSchema,
|
|
5015
5016
|
firstName: yup4.string().label("First Name").required("First name is required"),
|
|
5016
5017
|
lastName: yup4.string().label("Last Name").required("Last name is required"),
|
|
5018
|
+
isTester: yup4.boolean().required("Tester status is required"),
|
|
5017
5019
|
password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
|
|
5018
5020
|
preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
|
|
5019
5021
|
confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
|
|
@@ -5147,6 +5149,7 @@ var adSchema = yup7.object().shape({
|
|
|
5147
5149
|
// src/hooks/utils.ts
|
|
5148
5150
|
var globalDefaultValues = {
|
|
5149
5151
|
active: false,
|
|
5152
|
+
associates: null,
|
|
5150
5153
|
contactDetails: {
|
|
5151
5154
|
email: null,
|
|
5152
5155
|
landlinePhone: null,
|
|
@@ -5166,7 +5169,6 @@ var globalDefaultValues = {
|
|
|
5166
5169
|
logo: null,
|
|
5167
5170
|
logoUpload: null,
|
|
5168
5171
|
name: "",
|
|
5169
|
-
partners: null,
|
|
5170
5172
|
promoCodes: [],
|
|
5171
5173
|
region: "",
|
|
5172
5174
|
socialMedia: []
|
|
@@ -5239,6 +5241,7 @@ function mapBaseResourceTypeToFormData(data) {
|
|
|
5239
5241
|
return {
|
|
5240
5242
|
_id: data._id,
|
|
5241
5243
|
active: data.active,
|
|
5244
|
+
associates: data.associates,
|
|
5242
5245
|
contactDetails: data.contactDetails,
|
|
5243
5246
|
cover: data.cover,
|
|
5244
5247
|
coverUpload: data.coverUpload,
|
|
@@ -5249,7 +5252,6 @@ function mapBaseResourceTypeToFormData(data) {
|
|
|
5249
5252
|
logoUpload: data.logoUpload,
|
|
5250
5253
|
name: data.name,
|
|
5251
5254
|
owner: data.owner,
|
|
5252
|
-
partners: data.partners,
|
|
5253
5255
|
promoCodes: data.promoCodes,
|
|
5254
5256
|
region: data.region,
|
|
5255
5257
|
socialMedia: data.socialMedia,
|
|
@@ -5289,6 +5291,7 @@ function useVendorForm(data) {
|
|
|
5289
5291
|
const {
|
|
5290
5292
|
_id,
|
|
5291
5293
|
active,
|
|
5294
|
+
associates,
|
|
5292
5295
|
availability,
|
|
5293
5296
|
categories,
|
|
5294
5297
|
cover,
|
|
@@ -5302,7 +5305,6 @@ function useVendorForm(data) {
|
|
|
5302
5305
|
multiLocation,
|
|
5303
5306
|
name,
|
|
5304
5307
|
owner,
|
|
5305
|
-
partners,
|
|
5306
5308
|
products,
|
|
5307
5309
|
promoCodes,
|
|
5308
5310
|
region,
|
|
@@ -5315,6 +5317,7 @@ function useVendorForm(data) {
|
|
|
5315
5317
|
fields: {
|
|
5316
5318
|
_id,
|
|
5317
5319
|
active,
|
|
5320
|
+
associates,
|
|
5318
5321
|
availability,
|
|
5319
5322
|
categories,
|
|
5320
5323
|
cover,
|
|
@@ -5328,7 +5331,6 @@ function useVendorForm(data) {
|
|
|
5328
5331
|
multiLocation,
|
|
5329
5332
|
name,
|
|
5330
5333
|
owner,
|
|
5331
|
-
partners,
|
|
5332
5334
|
products,
|
|
5333
5335
|
promoCodes,
|
|
5334
5336
|
region,
|
|
@@ -5443,6 +5445,7 @@ function useEventForm(data) {
|
|
|
5443
5445
|
const {
|
|
5444
5446
|
_id,
|
|
5445
5447
|
active,
|
|
5448
|
+
associates,
|
|
5446
5449
|
cover,
|
|
5447
5450
|
coverUpload,
|
|
5448
5451
|
dateTime,
|
|
@@ -5456,7 +5459,6 @@ function useEventForm(data) {
|
|
|
5456
5459
|
name,
|
|
5457
5460
|
nzbn,
|
|
5458
5461
|
owner,
|
|
5459
|
-
partners,
|
|
5460
5462
|
promoCodes,
|
|
5461
5463
|
provider,
|
|
5462
5464
|
rainOrShine,
|
|
@@ -5470,6 +5472,7 @@ function useEventForm(data) {
|
|
|
5470
5472
|
fields: {
|
|
5471
5473
|
_id,
|
|
5472
5474
|
active,
|
|
5475
|
+
associates,
|
|
5473
5476
|
cover,
|
|
5474
5477
|
coverUpload,
|
|
5475
5478
|
dateTime,
|
|
@@ -5483,7 +5486,6 @@ function useEventForm(data) {
|
|
|
5483
5486
|
name,
|
|
5484
5487
|
nzbn,
|
|
5485
5488
|
owner,
|
|
5486
|
-
partners,
|
|
5487
5489
|
promoCodes,
|
|
5488
5490
|
provider,
|
|
5489
5491
|
rainOrShine,
|
|
@@ -5574,6 +5576,7 @@ var defaultValues = {
|
|
|
5574
5576
|
confirmPassword: "",
|
|
5575
5577
|
email: "",
|
|
5576
5578
|
firstName: "",
|
|
5579
|
+
isTester: false,
|
|
5577
5580
|
lastName: "",
|
|
5578
5581
|
password: null,
|
|
5579
5582
|
preferredRegion: "",
|
|
@@ -5601,6 +5604,7 @@ function useUserForm(data) {
|
|
|
5601
5604
|
avatarUpload: data.avatarUpload,
|
|
5602
5605
|
email: data.email,
|
|
5603
5606
|
firstName: data.firstName,
|
|
5607
|
+
isTester: data.isTester,
|
|
5604
5608
|
lastName: data.lastName,
|
|
5605
5609
|
password: data.password,
|
|
5606
5610
|
preferredRegion: data.preferredRegion,
|
|
@@ -5618,6 +5622,7 @@ function useUserForm(data) {
|
|
|
5618
5622
|
avatarUpload,
|
|
5619
5623
|
email,
|
|
5620
5624
|
firstName,
|
|
5625
|
+
isTester,
|
|
5621
5626
|
lastName,
|
|
5622
5627
|
password,
|
|
5623
5628
|
preferredRegion,
|
|
@@ -5633,6 +5638,7 @@ function useUserForm(data) {
|
|
|
5633
5638
|
avatarUpload,
|
|
5634
5639
|
email,
|
|
5635
5640
|
firstName,
|
|
5641
|
+
isTester,
|
|
5636
5642
|
lastName,
|
|
5637
5643
|
password,
|
|
5638
5644
|
preferredRegion,
|