@timardex/cluemart-shared 1.2.38 → 1.2.40
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-Bv5fLkN0.d.mts → ad-BpsSYGOd.d.ts} +5 -4
- package/dist/{ad-DDPNpx02.d.ts → ad-DImOqRKc.d.mts} +5 -4
- package/dist/{auth-BVGs-5Vm.d.mts → auth-ASeQbrMo.d.mts} +1 -1
- package/dist/{auth-BhUIvvZ2.d.ts → auth-DFjTVwMp.d.ts} +1 -1
- package/dist/{chunk-NNS747QT.mjs → chunk-5VCEVSTG.mjs} +17 -2
- package/dist/chunk-5VCEVSTG.mjs.map +1 -0
- package/dist/{chunk-TPV7OPWC.mjs → chunk-AGTGPOYU.mjs} +4 -5
- package/dist/chunk-AGTGPOYU.mjs.map +1 -0
- package/dist/enums/index.cjs +16 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +14 -1
- package/dist/enums/index.d.ts +14 -1
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +2 -2
- 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-BEqzo5Z2.d.mts → global-4G0uUe2Y.d.mts} +3 -1
- package/dist/{global-BA84KF8J.d.ts → global-DNG_KXig.d.ts} +3 -1
- package/dist/graphql/index.cjs +8 -0
- 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 +9 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +15 -8
- 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 +15 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +40 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.mjs +39 -10
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-0CdofGJp.d.mts → resourceActivities-BNRJK5nt.d.ts} +2 -1
- package/dist/{resourceActivities-BjgH9TFc.d.ts → resourceActivities-CU9ohPXP.d.mts} +2 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/index.mjs.map +1 -1
- 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.map +1 -1
- package/dist/utils/index.cjs +2 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -2
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.mjs +2 -4
- package/package.json +1 -1
- package/dist/chunk-NNS747QT.mjs.map +0 -1
- package/dist/chunk-TPV7OPWC.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as _apollo_client from '@apollo/client';
|
|
3
|
-
export { default as dayjs } from 'dayjs';
|
|
4
3
|
|
|
5
4
|
declare enum EnumInviteStatus {
|
|
6
5
|
ACCEPTED = "Accepted",
|
|
@@ -117,6 +116,19 @@ declare enum EnumSocialMedia {
|
|
|
117
116
|
WEBSITE = "website",
|
|
118
117
|
YOUTUBE = "youtube"
|
|
119
118
|
}
|
|
119
|
+
declare enum EnumEventDateStatus {
|
|
120
|
+
CANCELED = "Canceled",
|
|
121
|
+
ENDED = "Ended",
|
|
122
|
+
NEXT_WEEK = "Next Week",
|
|
123
|
+
RE_SCHEDULED = "Rescheduled",
|
|
124
|
+
STARTED = "Started",
|
|
125
|
+
STARTING_SOON = "Starting Soon",
|
|
126
|
+
THIS_WEEK = "This Week",
|
|
127
|
+
THIS_WEEKEND = "This Weekend",
|
|
128
|
+
TODAY = "Today",
|
|
129
|
+
TOMORROW = "Tomorrow",
|
|
130
|
+
UPCOMING = "Upcoming"
|
|
131
|
+
}
|
|
120
132
|
|
|
121
133
|
type StallType = {
|
|
122
134
|
label: string;
|
|
@@ -181,6 +193,7 @@ type RelationDate = {
|
|
|
181
193
|
resourceId: string;
|
|
182
194
|
userEmail: string;
|
|
183
195
|
};
|
|
196
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
184
197
|
paymentReference?: string;
|
|
185
198
|
stallType: StallType | null;
|
|
186
199
|
startDate: string;
|
|
@@ -370,6 +383,7 @@ type LocationType = {
|
|
|
370
383
|
type: "Point";
|
|
371
384
|
};
|
|
372
385
|
type DateTimeType = {
|
|
386
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
373
387
|
endDate: string;
|
|
374
388
|
endTime: string;
|
|
375
389
|
startDate: string;
|
|
@@ -602,11 +616,11 @@ type UserFormData = {
|
|
|
602
616
|
active: boolean;
|
|
603
617
|
avatar?: ResourceImageType | null;
|
|
604
618
|
avatarUpload?: ResourceImageType | null;
|
|
605
|
-
confirmPassword
|
|
619
|
+
confirmPassword?: string | null;
|
|
606
620
|
email: string;
|
|
607
621
|
firstName: string;
|
|
608
622
|
lastName: string;
|
|
609
|
-
password
|
|
623
|
+
password?: string | null;
|
|
610
624
|
platform?: EnumOSPlatform;
|
|
611
625
|
preferredRegion: string;
|
|
612
626
|
role: EnumUserRole;
|
|
@@ -614,6 +628,7 @@ type UserFormData = {
|
|
|
614
628
|
};
|
|
615
629
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
616
630
|
type UserActivityEvent = {
|
|
631
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
617
632
|
resourceId: string;
|
|
618
633
|
startDate: string;
|
|
619
634
|
startTime: string;
|
|
@@ -717,6 +732,7 @@ type ResourceActivityEntry = {
|
|
|
717
732
|
type: "Point";
|
|
718
733
|
coordinates: number[];
|
|
719
734
|
} | null;
|
|
735
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
720
736
|
startDate?: string | null;
|
|
721
737
|
startTime?: string | null;
|
|
722
738
|
timestamp: Date;
|
|
@@ -1496,4 +1512,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1496
1512
|
declare const paymentMethodOptions: OptionItem[];
|
|
1497
1513
|
declare function normalizeUrl(url: string): string;
|
|
1498
1514
|
|
|
1499
|
-
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, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, 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 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 Subcategory, type SubcategoryItems, 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, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, 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, 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, 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 };
|
|
1515
|
+
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, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, 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 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 Subcategory, type SubcategoryItems, 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, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, 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, 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, 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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as _apollo_client from '@apollo/client';
|
|
3
|
-
export { default as dayjs } from 'dayjs';
|
|
4
3
|
|
|
5
4
|
declare enum EnumInviteStatus {
|
|
6
5
|
ACCEPTED = "Accepted",
|
|
@@ -117,6 +116,19 @@ declare enum EnumSocialMedia {
|
|
|
117
116
|
WEBSITE = "website",
|
|
118
117
|
YOUTUBE = "youtube"
|
|
119
118
|
}
|
|
119
|
+
declare enum EnumEventDateStatus {
|
|
120
|
+
CANCELED = "Canceled",
|
|
121
|
+
ENDED = "Ended",
|
|
122
|
+
NEXT_WEEK = "Next Week",
|
|
123
|
+
RE_SCHEDULED = "Rescheduled",
|
|
124
|
+
STARTED = "Started",
|
|
125
|
+
STARTING_SOON = "Starting Soon",
|
|
126
|
+
THIS_WEEK = "This Week",
|
|
127
|
+
THIS_WEEKEND = "This Weekend",
|
|
128
|
+
TODAY = "Today",
|
|
129
|
+
TOMORROW = "Tomorrow",
|
|
130
|
+
UPCOMING = "Upcoming"
|
|
131
|
+
}
|
|
120
132
|
|
|
121
133
|
type StallType = {
|
|
122
134
|
label: string;
|
|
@@ -181,6 +193,7 @@ type RelationDate = {
|
|
|
181
193
|
resourceId: string;
|
|
182
194
|
userEmail: string;
|
|
183
195
|
};
|
|
196
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
184
197
|
paymentReference?: string;
|
|
185
198
|
stallType: StallType | null;
|
|
186
199
|
startDate: string;
|
|
@@ -370,6 +383,7 @@ type LocationType = {
|
|
|
370
383
|
type: "Point";
|
|
371
384
|
};
|
|
372
385
|
type DateTimeType = {
|
|
386
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
373
387
|
endDate: string;
|
|
374
388
|
endTime: string;
|
|
375
389
|
startDate: string;
|
|
@@ -602,11 +616,11 @@ type UserFormData = {
|
|
|
602
616
|
active: boolean;
|
|
603
617
|
avatar?: ResourceImageType | null;
|
|
604
618
|
avatarUpload?: ResourceImageType | null;
|
|
605
|
-
confirmPassword
|
|
619
|
+
confirmPassword?: string | null;
|
|
606
620
|
email: string;
|
|
607
621
|
firstName: string;
|
|
608
622
|
lastName: string;
|
|
609
|
-
password
|
|
623
|
+
password?: string | null;
|
|
610
624
|
platform?: EnumOSPlatform;
|
|
611
625
|
preferredRegion: string;
|
|
612
626
|
role: EnumUserRole;
|
|
@@ -614,6 +628,7 @@ type UserFormData = {
|
|
|
614
628
|
};
|
|
615
629
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
616
630
|
type UserActivityEvent = {
|
|
631
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
617
632
|
resourceId: string;
|
|
618
633
|
startDate: string;
|
|
619
634
|
startTime: string;
|
|
@@ -717,6 +732,7 @@ type ResourceActivityEntry = {
|
|
|
717
732
|
type: "Point";
|
|
718
733
|
coordinates: number[];
|
|
719
734
|
} | null;
|
|
735
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
720
736
|
startDate?: string | null;
|
|
721
737
|
startTime?: string | null;
|
|
722
738
|
timestamp: Date;
|
|
@@ -1496,4 +1512,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1496
1512
|
declare const paymentMethodOptions: OptionItem[];
|
|
1497
1513
|
declare function normalizeUrl(url: string): string;
|
|
1498
1514
|
|
|
1499
|
-
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, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, 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 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 Subcategory, type SubcategoryItems, 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, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, 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, 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, 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 };
|
|
1515
|
+
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, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, 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 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 Subcategory, type SubcategoryItems, 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, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, 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, 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, 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
|
@@ -130,6 +130,20 @@ var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
|
130
130
|
EnumSocialMedia2["YOUTUBE"] = "youtube";
|
|
131
131
|
return EnumSocialMedia2;
|
|
132
132
|
})(EnumSocialMedia || {});
|
|
133
|
+
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
|
|
134
|
+
EnumEventDateStatus2["CANCELED"] = "Canceled";
|
|
135
|
+
EnumEventDateStatus2["ENDED"] = "Ended";
|
|
136
|
+
EnumEventDateStatus2["NEXT_WEEK"] = "Next Week";
|
|
137
|
+
EnumEventDateStatus2["RE_SCHEDULED"] = "Rescheduled";
|
|
138
|
+
EnumEventDateStatus2["STARTED"] = "Started";
|
|
139
|
+
EnumEventDateStatus2["STARTING_SOON"] = "Starting Soon";
|
|
140
|
+
EnumEventDateStatus2["THIS_WEEK"] = "This Week";
|
|
141
|
+
EnumEventDateStatus2["THIS_WEEKEND"] = "This Weekend";
|
|
142
|
+
EnumEventDateStatus2["TODAY"] = "Today";
|
|
143
|
+
EnumEventDateStatus2["TOMORROW"] = "Tomorrow";
|
|
144
|
+
EnumEventDateStatus2["UPCOMING"] = "Upcoming";
|
|
145
|
+
return EnumEventDateStatus2;
|
|
146
|
+
})(EnumEventDateStatus || {});
|
|
133
147
|
|
|
134
148
|
// src/utils/index.ts
|
|
135
149
|
import dayjs from "dayjs";
|
|
@@ -208,8 +222,8 @@ var truncateText = (text, maxLength = 30) => {
|
|
|
208
222
|
return text.length > maxLength ? text.substring(0, maxLength) + "..." : text;
|
|
209
223
|
};
|
|
210
224
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
211
|
-
label: item
|
|
212
|
-
value: item
|
|
225
|
+
label: item,
|
|
226
|
+
value: item
|
|
213
227
|
}));
|
|
214
228
|
var capitalizeFirstLetter = (str) => {
|
|
215
229
|
return str.split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
@@ -2024,6 +2038,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2024
2038
|
}
|
|
2025
2039
|
going {
|
|
2026
2040
|
events {
|
|
2041
|
+
dateStatus
|
|
2027
2042
|
resourceId
|
|
2028
2043
|
startDate
|
|
2029
2044
|
startTime
|
|
@@ -2031,6 +2046,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2031
2046
|
}
|
|
2032
2047
|
interested {
|
|
2033
2048
|
events {
|
|
2049
|
+
dateStatus
|
|
2034
2050
|
resourceId
|
|
2035
2051
|
startDate
|
|
2036
2052
|
startTime
|
|
@@ -2038,6 +2054,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2038
2054
|
}
|
|
2039
2055
|
present {
|
|
2040
2056
|
events {
|
|
2057
|
+
dateStatus
|
|
2041
2058
|
resourceId
|
|
2042
2059
|
startDate
|
|
2043
2060
|
startTime
|
|
@@ -2102,6 +2119,7 @@ var RELATION_DATES_FRAGMENT = gql2`
|
|
|
2102
2119
|
stallType {
|
|
2103
2120
|
...StallTypeFields
|
|
2104
2121
|
}
|
|
2122
|
+
dateStatus
|
|
2105
2123
|
startDate
|
|
2106
2124
|
startTime
|
|
2107
2125
|
status
|
|
@@ -2119,6 +2137,7 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = gql2`
|
|
|
2119
2137
|
// src/graphql/queries/event.ts
|
|
2120
2138
|
var EVENT_DATETIME_FIELDS_FRAGMENT = gql3`
|
|
2121
2139
|
fragment EventDateTimeFields on EventDateTimeType {
|
|
2140
|
+
dateStatus
|
|
2122
2141
|
endDate
|
|
2123
2142
|
endTime
|
|
2124
2143
|
startDate
|
|
@@ -2142,6 +2161,7 @@ var EVENT_INFO = gql3`
|
|
|
2142
2161
|
_id
|
|
2143
2162
|
applicationDeadlineHours
|
|
2144
2163
|
dateTime {
|
|
2164
|
+
dateStatus
|
|
2145
2165
|
endDate
|
|
2146
2166
|
endTime
|
|
2147
2167
|
stallTypes {
|
|
@@ -2301,6 +2321,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = gql4`
|
|
|
2301
2321
|
`;
|
|
2302
2322
|
var VENDOR_DATETIME_FIELDS_FRAGMENT = gql4`
|
|
2303
2323
|
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
2324
|
+
dateStatus
|
|
2304
2325
|
endDate
|
|
2305
2326
|
endTime
|
|
2306
2327
|
startDate
|
|
@@ -4425,6 +4446,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
|
4425
4446
|
type
|
|
4426
4447
|
coordinates
|
|
4427
4448
|
}
|
|
4449
|
+
dateStatus
|
|
4428
4450
|
startDate
|
|
4429
4451
|
startTime
|
|
4430
4452
|
timestamp
|
|
@@ -4866,10 +4888,20 @@ var userSchema = yup4.object().shape({
|
|
|
4866
4888
|
email: emailRequiredSchema,
|
|
4867
4889
|
firstName: yup4.string().label("First Name").required("First name is required"),
|
|
4868
4890
|
lastName: yup4.string().label("Last Name").required("Last name is required"),
|
|
4869
|
-
password:
|
|
4891
|
+
password: yup4.string().nullable().trim().label("Password").when("password", {
|
|
4892
|
+
is: (val) => !!val,
|
|
4893
|
+
// only validate if password is not empty
|
|
4894
|
+
then: (schema) => schema.min(8, "Password must be at least 8 characters long")
|
|
4895
|
+
}),
|
|
4870
4896
|
preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
|
|
4871
4897
|
// eslint-disable-next-line sort-keys
|
|
4872
|
-
confirmPassword: yup4.string().
|
|
4898
|
+
confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
|
|
4899
|
+
is: (val) => !!val,
|
|
4900
|
+
// only required if password is typed
|
|
4901
|
+
then: (schema) => schema.required("Confirm Password is required").oneOf([yup4.ref("password")], "Passwords must match"),
|
|
4902
|
+
// eslint-disable-next-line sort-keys
|
|
4903
|
+
otherwise: (schema) => schema.notRequired()
|
|
4904
|
+
}),
|
|
4873
4905
|
role: yup4.mixed().oneOf(Object.values(EnumUserRole)).required("Role is required")
|
|
4874
4906
|
});
|
|
4875
4907
|
|
|
@@ -5423,7 +5455,7 @@ var defaultValues = {
|
|
|
5423
5455
|
email: "",
|
|
5424
5456
|
firstName: "",
|
|
5425
5457
|
lastName: "",
|
|
5426
|
-
password:
|
|
5458
|
+
password: null,
|
|
5427
5459
|
preferredRegion: "",
|
|
5428
5460
|
role: "customer" /* CUSTOMER */
|
|
5429
5461
|
};
|
|
@@ -5447,7 +5479,6 @@ function useUserForm(data) {
|
|
|
5447
5479
|
active: data.active,
|
|
5448
5480
|
avatar: data.avatar,
|
|
5449
5481
|
avatarUpload: data.avatarUpload,
|
|
5450
|
-
confirmPassword: data.confirmPassword,
|
|
5451
5482
|
email: data.email,
|
|
5452
5483
|
firstName: data.firstName,
|
|
5453
5484
|
lastName: data.lastName,
|
|
@@ -5465,7 +5496,6 @@ function useUserForm(data) {
|
|
|
5465
5496
|
active,
|
|
5466
5497
|
avatar,
|
|
5467
5498
|
avatarUpload,
|
|
5468
|
-
confirmPassword,
|
|
5469
5499
|
email,
|
|
5470
5500
|
firstName,
|
|
5471
5501
|
lastName,
|
|
@@ -5481,7 +5511,6 @@ function useUserForm(data) {
|
|
|
5481
5511
|
active,
|
|
5482
5512
|
avatar,
|
|
5483
5513
|
avatarUpload,
|
|
5484
|
-
confirmPassword,
|
|
5485
5514
|
email,
|
|
5486
5515
|
firstName,
|
|
5487
5516
|
lastName,
|
|
@@ -5937,7 +5966,7 @@ var USER_STORAGE_KEY = "authUser";
|
|
|
5937
5966
|
|
|
5938
5967
|
// src/theme/index.ts
|
|
5939
5968
|
var darkColors = {
|
|
5940
|
-
background: "#
|
|
5969
|
+
background: "#3D3D3F",
|
|
5941
5970
|
card: "#1c1c1e",
|
|
5942
5971
|
primary: "#ff7a00",
|
|
5943
5972
|
quaternary: "#3b7c67",
|
|
@@ -5989,6 +6018,7 @@ export {
|
|
|
5989
6018
|
EnumAdStyle,
|
|
5990
6019
|
EnumAdType,
|
|
5991
6020
|
EnumChatType,
|
|
6021
|
+
EnumEventDateStatus,
|
|
5992
6022
|
EnumEventType,
|
|
5993
6023
|
EnumFoodFlavor,
|
|
5994
6024
|
EnumInviteStatus,
|
|
@@ -6020,7 +6050,6 @@ export {
|
|
|
6020
6050
|
contactUsFields,
|
|
6021
6051
|
darkColors,
|
|
6022
6052
|
dateFormat,
|
|
6023
|
-
dayjs,
|
|
6024
6053
|
defaultEventFormValues,
|
|
6025
6054
|
defaultEventInfoFormValues,
|
|
6026
6055
|
defaultRegion,
|