@timardex/cluemart-shared 1.2.39 → 1.2.41
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-GGNNB6MQ.mjs → chunk-D2O6JBMB.mjs} +4 -4
- package/dist/chunk-D2O6JBMB.mjs.map +1 -0
- package/dist/{chunk-NNS747QT.mjs → chunk-RSGRMFIK.mjs} +56 -2
- package/dist/chunk-RSGRMFIK.mjs.map +1 -0
- package/dist/enums/index.cjs +56 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +51 -1
- package/dist/enums/index.d.ts +51 -1
- package/dist/enums/index.mjs +5 -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 +10 -9
- 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 +10 -9
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +74 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +57 -3
- package/dist/index.d.ts +57 -3
- package/dist/index.mjs +72 -9
- 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/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 -2
- 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-GGNNB6MQ.mjs.map +0 -1
- package/dist/chunk-NNS747QT.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -30,6 +30,43 @@ declare enum EnumFoodFlavor {
|
|
|
30
30
|
SPICY = "Spicy",
|
|
31
31
|
SWEET = "Sweet"
|
|
32
32
|
}
|
|
33
|
+
declare enum EnumFoodType {
|
|
34
|
+
ADDITIVE_FREE = "Additive Free",
|
|
35
|
+
AIR_FRIED = "Air Fried",
|
|
36
|
+
ALLERGEN_FRIENDLY = "Allergen Friendly",
|
|
37
|
+
ATHLETE_FRIENDLY = "Athlete Friendly",
|
|
38
|
+
BAKED = "Baked",
|
|
39
|
+
DAIRY_FREE = "Dairy Free",
|
|
40
|
+
DIABETIC_FRIENDLY = "Diabetic Friendly",
|
|
41
|
+
EGG_FREE = "Egg Free",
|
|
42
|
+
FRESH = "Fresh",
|
|
43
|
+
GLUTEN_FREE = "Gluten Free",
|
|
44
|
+
GRILLED = "Grilled",
|
|
45
|
+
HALAL = "Halal",
|
|
46
|
+
HEART_HEALTHY = "Heart Healthy",
|
|
47
|
+
HIGH_FIBER = "High Fiber",
|
|
48
|
+
HIGH_PROTEIN = "High Protein",
|
|
49
|
+
KETO = "Keto",
|
|
50
|
+
KOSHER = "Kosher",
|
|
51
|
+
LACTOSE_FREE = "Lactose Free",
|
|
52
|
+
LOW_CALORIE = "Low Calorie",
|
|
53
|
+
LOW_CARB = "Low Carb",
|
|
54
|
+
LOW_FAT = "Low Fat",
|
|
55
|
+
LOW_SODIUM = "Low Sodium",
|
|
56
|
+
NO_ADDED_SUGAR = "No Added Sugar",
|
|
57
|
+
NO_PRESERVATIVES = "No Preservatives",
|
|
58
|
+
NON_GMO = "Non GMO",
|
|
59
|
+
NUT_FREE = "Nut Free",
|
|
60
|
+
ORGANIC = "Organic",
|
|
61
|
+
PALEO = "Paleo",
|
|
62
|
+
PLANT_BASED = "Plant Based",
|
|
63
|
+
RAW = "Raw",
|
|
64
|
+
SMOKED = "Smoked",
|
|
65
|
+
SOY_FREE = "Soy Free",
|
|
66
|
+
SUGAR_FREE = "Sugar Free",
|
|
67
|
+
VEGAN = "Vegan",
|
|
68
|
+
VEGETARIAN = "Vegetarian"
|
|
69
|
+
}
|
|
33
70
|
declare enum EnumResourceType {
|
|
34
71
|
EVENT = "event",
|
|
35
72
|
VENDOR = "vendor"
|
|
@@ -116,6 +153,19 @@ declare enum EnumSocialMedia {
|
|
|
116
153
|
WEBSITE = "website",
|
|
117
154
|
YOUTUBE = "youtube"
|
|
118
155
|
}
|
|
156
|
+
declare enum EnumEventDateStatus {
|
|
157
|
+
CANCELED = "Canceled",
|
|
158
|
+
ENDED = "Ended",
|
|
159
|
+
NEXT_WEEK = "Next Week",
|
|
160
|
+
RE_SCHEDULED = "Rescheduled",
|
|
161
|
+
STARTED = "Started",
|
|
162
|
+
STARTING_SOON = "Starting Soon",
|
|
163
|
+
THIS_WEEK = "This Week",
|
|
164
|
+
THIS_WEEKEND = "This Weekend",
|
|
165
|
+
TODAY = "Today",
|
|
166
|
+
TOMORROW = "Tomorrow",
|
|
167
|
+
UPCOMING = "Upcoming"
|
|
168
|
+
}
|
|
119
169
|
|
|
120
170
|
type StallType = {
|
|
121
171
|
label: string;
|
|
@@ -180,6 +230,7 @@ type RelationDate = {
|
|
|
180
230
|
resourceId: string;
|
|
181
231
|
userEmail: string;
|
|
182
232
|
};
|
|
233
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
183
234
|
paymentReference?: string;
|
|
184
235
|
stallType: StallType | null;
|
|
185
236
|
startDate: string;
|
|
@@ -369,6 +420,7 @@ type LocationType = {
|
|
|
369
420
|
type: "Point";
|
|
370
421
|
};
|
|
371
422
|
type DateTimeType = {
|
|
423
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
372
424
|
endDate: string;
|
|
373
425
|
endTime: string;
|
|
374
426
|
startDate: string;
|
|
@@ -601,11 +653,11 @@ type UserFormData = {
|
|
|
601
653
|
active: boolean;
|
|
602
654
|
avatar?: ResourceImageType | null;
|
|
603
655
|
avatarUpload?: ResourceImageType | null;
|
|
604
|
-
confirmPassword
|
|
656
|
+
confirmPassword?: string | null;
|
|
605
657
|
email: string;
|
|
606
658
|
firstName: string;
|
|
607
659
|
lastName: string;
|
|
608
|
-
password
|
|
660
|
+
password?: string | null;
|
|
609
661
|
platform?: EnumOSPlatform;
|
|
610
662
|
preferredRegion: string;
|
|
611
663
|
role: EnumUserRole;
|
|
@@ -613,6 +665,7 @@ type UserFormData = {
|
|
|
613
665
|
};
|
|
614
666
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
615
667
|
type UserActivityEvent = {
|
|
668
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
616
669
|
resourceId: string;
|
|
617
670
|
startDate: string;
|
|
618
671
|
startTime: string;
|
|
@@ -716,6 +769,7 @@ type ResourceActivityEntry = {
|
|
|
716
769
|
type: "Point";
|
|
717
770
|
coordinates: number[];
|
|
718
771
|
} | null;
|
|
772
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
719
773
|
startDate?: string | null;
|
|
720
774
|
startTime?: string | null;
|
|
721
775
|
timestamp: Date;
|
|
@@ -1495,4 +1549,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1495
1549
|
declare const paymentMethodOptions: OptionItem[];
|
|
1496
1550
|
declare function normalizeUrl(url: string): string;
|
|
1497
1551
|
|
|
1498
|
-
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 };
|
|
1552
|
+
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, 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
|
@@ -30,6 +30,43 @@ declare enum EnumFoodFlavor {
|
|
|
30
30
|
SPICY = "Spicy",
|
|
31
31
|
SWEET = "Sweet"
|
|
32
32
|
}
|
|
33
|
+
declare enum EnumFoodType {
|
|
34
|
+
ADDITIVE_FREE = "Additive Free",
|
|
35
|
+
AIR_FRIED = "Air Fried",
|
|
36
|
+
ALLERGEN_FRIENDLY = "Allergen Friendly",
|
|
37
|
+
ATHLETE_FRIENDLY = "Athlete Friendly",
|
|
38
|
+
BAKED = "Baked",
|
|
39
|
+
DAIRY_FREE = "Dairy Free",
|
|
40
|
+
DIABETIC_FRIENDLY = "Diabetic Friendly",
|
|
41
|
+
EGG_FREE = "Egg Free",
|
|
42
|
+
FRESH = "Fresh",
|
|
43
|
+
GLUTEN_FREE = "Gluten Free",
|
|
44
|
+
GRILLED = "Grilled",
|
|
45
|
+
HALAL = "Halal",
|
|
46
|
+
HEART_HEALTHY = "Heart Healthy",
|
|
47
|
+
HIGH_FIBER = "High Fiber",
|
|
48
|
+
HIGH_PROTEIN = "High Protein",
|
|
49
|
+
KETO = "Keto",
|
|
50
|
+
KOSHER = "Kosher",
|
|
51
|
+
LACTOSE_FREE = "Lactose Free",
|
|
52
|
+
LOW_CALORIE = "Low Calorie",
|
|
53
|
+
LOW_CARB = "Low Carb",
|
|
54
|
+
LOW_FAT = "Low Fat",
|
|
55
|
+
LOW_SODIUM = "Low Sodium",
|
|
56
|
+
NO_ADDED_SUGAR = "No Added Sugar",
|
|
57
|
+
NO_PRESERVATIVES = "No Preservatives",
|
|
58
|
+
NON_GMO = "Non GMO",
|
|
59
|
+
NUT_FREE = "Nut Free",
|
|
60
|
+
ORGANIC = "Organic",
|
|
61
|
+
PALEO = "Paleo",
|
|
62
|
+
PLANT_BASED = "Plant Based",
|
|
63
|
+
RAW = "Raw",
|
|
64
|
+
SMOKED = "Smoked",
|
|
65
|
+
SOY_FREE = "Soy Free",
|
|
66
|
+
SUGAR_FREE = "Sugar Free",
|
|
67
|
+
VEGAN = "Vegan",
|
|
68
|
+
VEGETARIAN = "Vegetarian"
|
|
69
|
+
}
|
|
33
70
|
declare enum EnumResourceType {
|
|
34
71
|
EVENT = "event",
|
|
35
72
|
VENDOR = "vendor"
|
|
@@ -116,6 +153,19 @@ declare enum EnumSocialMedia {
|
|
|
116
153
|
WEBSITE = "website",
|
|
117
154
|
YOUTUBE = "youtube"
|
|
118
155
|
}
|
|
156
|
+
declare enum EnumEventDateStatus {
|
|
157
|
+
CANCELED = "Canceled",
|
|
158
|
+
ENDED = "Ended",
|
|
159
|
+
NEXT_WEEK = "Next Week",
|
|
160
|
+
RE_SCHEDULED = "Rescheduled",
|
|
161
|
+
STARTED = "Started",
|
|
162
|
+
STARTING_SOON = "Starting Soon",
|
|
163
|
+
THIS_WEEK = "This Week",
|
|
164
|
+
THIS_WEEKEND = "This Weekend",
|
|
165
|
+
TODAY = "Today",
|
|
166
|
+
TOMORROW = "Tomorrow",
|
|
167
|
+
UPCOMING = "Upcoming"
|
|
168
|
+
}
|
|
119
169
|
|
|
120
170
|
type StallType = {
|
|
121
171
|
label: string;
|
|
@@ -180,6 +230,7 @@ type RelationDate = {
|
|
|
180
230
|
resourceId: string;
|
|
181
231
|
userEmail: string;
|
|
182
232
|
};
|
|
233
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
183
234
|
paymentReference?: string;
|
|
184
235
|
stallType: StallType | null;
|
|
185
236
|
startDate: string;
|
|
@@ -369,6 +420,7 @@ type LocationType = {
|
|
|
369
420
|
type: "Point";
|
|
370
421
|
};
|
|
371
422
|
type DateTimeType = {
|
|
423
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
372
424
|
endDate: string;
|
|
373
425
|
endTime: string;
|
|
374
426
|
startDate: string;
|
|
@@ -601,11 +653,11 @@ type UserFormData = {
|
|
|
601
653
|
active: boolean;
|
|
602
654
|
avatar?: ResourceImageType | null;
|
|
603
655
|
avatarUpload?: ResourceImageType | null;
|
|
604
|
-
confirmPassword
|
|
656
|
+
confirmPassword?: string | null;
|
|
605
657
|
email: string;
|
|
606
658
|
firstName: string;
|
|
607
659
|
lastName: string;
|
|
608
|
-
password
|
|
660
|
+
password?: string | null;
|
|
609
661
|
platform?: EnumOSPlatform;
|
|
610
662
|
preferredRegion: string;
|
|
611
663
|
role: EnumUserRole;
|
|
@@ -613,6 +665,7 @@ type UserFormData = {
|
|
|
613
665
|
};
|
|
614
666
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
615
667
|
type UserActivityEvent = {
|
|
668
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
616
669
|
resourceId: string;
|
|
617
670
|
startDate: string;
|
|
618
671
|
startTime: string;
|
|
@@ -716,6 +769,7 @@ type ResourceActivityEntry = {
|
|
|
716
769
|
type: "Point";
|
|
717
770
|
coordinates: number[];
|
|
718
771
|
} | null;
|
|
772
|
+
dateStatus?: EnumEventDateStatus | null;
|
|
719
773
|
startDate?: string | null;
|
|
720
774
|
startTime?: string | null;
|
|
721
775
|
timestamp: Date;
|
|
@@ -1495,4 +1549,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1495
1549
|
declare const paymentMethodOptions: OptionItem[];
|
|
1496
1550
|
declare function normalizeUrl(url: string): string;
|
|
1497
1551
|
|
|
1498
|
-
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 };
|
|
1552
|
+
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, 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
|
@@ -32,6 +32,44 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
|
32
32
|
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
33
33
|
return EnumFoodFlavor3;
|
|
34
34
|
})(EnumFoodFlavor || {});
|
|
35
|
+
var EnumFoodType = /* @__PURE__ */ ((EnumFoodType2) => {
|
|
36
|
+
EnumFoodType2["ADDITIVE_FREE"] = "Additive Free";
|
|
37
|
+
EnumFoodType2["AIR_FRIED"] = "Air Fried";
|
|
38
|
+
EnumFoodType2["ALLERGEN_FRIENDLY"] = "Allergen Friendly";
|
|
39
|
+
EnumFoodType2["ATHLETE_FRIENDLY"] = "Athlete Friendly";
|
|
40
|
+
EnumFoodType2["BAKED"] = "Baked";
|
|
41
|
+
EnumFoodType2["DAIRY_FREE"] = "Dairy Free";
|
|
42
|
+
EnumFoodType2["DIABETIC_FRIENDLY"] = "Diabetic Friendly";
|
|
43
|
+
EnumFoodType2["EGG_FREE"] = "Egg Free";
|
|
44
|
+
EnumFoodType2["FRESH"] = "Fresh";
|
|
45
|
+
EnumFoodType2["GLUTEN_FREE"] = "Gluten Free";
|
|
46
|
+
EnumFoodType2["GRILLED"] = "Grilled";
|
|
47
|
+
EnumFoodType2["HALAL"] = "Halal";
|
|
48
|
+
EnumFoodType2["HEART_HEALTHY"] = "Heart Healthy";
|
|
49
|
+
EnumFoodType2["HIGH_FIBER"] = "High Fiber";
|
|
50
|
+
EnumFoodType2["HIGH_PROTEIN"] = "High Protein";
|
|
51
|
+
EnumFoodType2["KETO"] = "Keto";
|
|
52
|
+
EnumFoodType2["KOSHER"] = "Kosher";
|
|
53
|
+
EnumFoodType2["LACTOSE_FREE"] = "Lactose Free";
|
|
54
|
+
EnumFoodType2["LOW_CALORIE"] = "Low Calorie";
|
|
55
|
+
EnumFoodType2["LOW_CARB"] = "Low Carb";
|
|
56
|
+
EnumFoodType2["LOW_FAT"] = "Low Fat";
|
|
57
|
+
EnumFoodType2["LOW_SODIUM"] = "Low Sodium";
|
|
58
|
+
EnumFoodType2["NO_ADDED_SUGAR"] = "No Added Sugar";
|
|
59
|
+
EnumFoodType2["NO_PRESERVATIVES"] = "No Preservatives";
|
|
60
|
+
EnumFoodType2["NON_GMO"] = "Non GMO";
|
|
61
|
+
EnumFoodType2["NUT_FREE"] = "Nut Free";
|
|
62
|
+
EnumFoodType2["ORGANIC"] = "Organic";
|
|
63
|
+
EnumFoodType2["PALEO"] = "Paleo";
|
|
64
|
+
EnumFoodType2["PLANT_BASED"] = "Plant Based";
|
|
65
|
+
EnumFoodType2["RAW"] = "Raw";
|
|
66
|
+
EnumFoodType2["SMOKED"] = "Smoked";
|
|
67
|
+
EnumFoodType2["SOY_FREE"] = "Soy Free";
|
|
68
|
+
EnumFoodType2["SUGAR_FREE"] = "Sugar Free";
|
|
69
|
+
EnumFoodType2["VEGAN"] = "Vegan";
|
|
70
|
+
EnumFoodType2["VEGETARIAN"] = "Vegetarian";
|
|
71
|
+
return EnumFoodType2;
|
|
72
|
+
})(EnumFoodType || {});
|
|
35
73
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
36
74
|
EnumResourceType2["EVENT"] = "event";
|
|
37
75
|
EnumResourceType2["VENDOR"] = "vendor";
|
|
@@ -130,6 +168,20 @@ var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
|
130
168
|
EnumSocialMedia2["YOUTUBE"] = "youtube";
|
|
131
169
|
return EnumSocialMedia2;
|
|
132
170
|
})(EnumSocialMedia || {});
|
|
171
|
+
var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
|
|
172
|
+
EnumEventDateStatus2["CANCELED"] = "Canceled";
|
|
173
|
+
EnumEventDateStatus2["ENDED"] = "Ended";
|
|
174
|
+
EnumEventDateStatus2["NEXT_WEEK"] = "Next Week";
|
|
175
|
+
EnumEventDateStatus2["RE_SCHEDULED"] = "Rescheduled";
|
|
176
|
+
EnumEventDateStatus2["STARTED"] = "Started";
|
|
177
|
+
EnumEventDateStatus2["STARTING_SOON"] = "Starting Soon";
|
|
178
|
+
EnumEventDateStatus2["THIS_WEEK"] = "This Week";
|
|
179
|
+
EnumEventDateStatus2["THIS_WEEKEND"] = "This Weekend";
|
|
180
|
+
EnumEventDateStatus2["TODAY"] = "Today";
|
|
181
|
+
EnumEventDateStatus2["TOMORROW"] = "Tomorrow";
|
|
182
|
+
EnumEventDateStatus2["UPCOMING"] = "Upcoming";
|
|
183
|
+
return EnumEventDateStatus2;
|
|
184
|
+
})(EnumEventDateStatus || {});
|
|
133
185
|
|
|
134
186
|
// src/utils/index.ts
|
|
135
187
|
import dayjs from "dayjs";
|
|
@@ -208,8 +260,8 @@ var truncateText = (text, maxLength = 30) => {
|
|
|
208
260
|
return text.length > maxLength ? text.substring(0, maxLength) + "..." : text;
|
|
209
261
|
};
|
|
210
262
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
211
|
-
label: item
|
|
212
|
-
value: item
|
|
263
|
+
label: item,
|
|
264
|
+
value: item
|
|
213
265
|
}));
|
|
214
266
|
var capitalizeFirstLetter = (str) => {
|
|
215
267
|
return str.split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
@@ -2024,6 +2076,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2024
2076
|
}
|
|
2025
2077
|
going {
|
|
2026
2078
|
events {
|
|
2079
|
+
dateStatus
|
|
2027
2080
|
resourceId
|
|
2028
2081
|
startDate
|
|
2029
2082
|
startTime
|
|
@@ -2031,6 +2084,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2031
2084
|
}
|
|
2032
2085
|
interested {
|
|
2033
2086
|
events {
|
|
2087
|
+
dateStatus
|
|
2034
2088
|
resourceId
|
|
2035
2089
|
startDate
|
|
2036
2090
|
startTime
|
|
@@ -2038,6 +2092,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2038
2092
|
}
|
|
2039
2093
|
present {
|
|
2040
2094
|
events {
|
|
2095
|
+
dateStatus
|
|
2041
2096
|
resourceId
|
|
2042
2097
|
startDate
|
|
2043
2098
|
startTime
|
|
@@ -2102,6 +2157,7 @@ var RELATION_DATES_FRAGMENT = gql2`
|
|
|
2102
2157
|
stallType {
|
|
2103
2158
|
...StallTypeFields
|
|
2104
2159
|
}
|
|
2160
|
+
dateStatus
|
|
2105
2161
|
startDate
|
|
2106
2162
|
startTime
|
|
2107
2163
|
status
|
|
@@ -2119,6 +2175,7 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = gql2`
|
|
|
2119
2175
|
// src/graphql/queries/event.ts
|
|
2120
2176
|
var EVENT_DATETIME_FIELDS_FRAGMENT = gql3`
|
|
2121
2177
|
fragment EventDateTimeFields on EventDateTimeType {
|
|
2178
|
+
dateStatus
|
|
2122
2179
|
endDate
|
|
2123
2180
|
endTime
|
|
2124
2181
|
startDate
|
|
@@ -2142,6 +2199,7 @@ var EVENT_INFO = gql3`
|
|
|
2142
2199
|
_id
|
|
2143
2200
|
applicationDeadlineHours
|
|
2144
2201
|
dateTime {
|
|
2202
|
+
dateStatus
|
|
2145
2203
|
endDate
|
|
2146
2204
|
endTime
|
|
2147
2205
|
stallTypes {
|
|
@@ -2301,6 +2359,7 @@ var VENDOR_LOCATION_FIELDS_FRAGMENT = gql4`
|
|
|
2301
2359
|
`;
|
|
2302
2360
|
var VENDOR_DATETIME_FIELDS_FRAGMENT = gql4`
|
|
2303
2361
|
fragment VendorDateTimeFields on VendorDateTimeType {
|
|
2362
|
+
dateStatus
|
|
2304
2363
|
endDate
|
|
2305
2364
|
endTime
|
|
2306
2365
|
startDate
|
|
@@ -4425,6 +4484,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
|
4425
4484
|
type
|
|
4426
4485
|
coordinates
|
|
4427
4486
|
}
|
|
4487
|
+
dateStatus
|
|
4428
4488
|
startDate
|
|
4429
4489
|
startTime
|
|
4430
4490
|
timestamp
|
|
@@ -4866,10 +4926,14 @@ var userSchema = yup4.object().shape({
|
|
|
4866
4926
|
email: emailRequiredSchema,
|
|
4867
4927
|
firstName: yup4.string().label("First Name").required("First name is required"),
|
|
4868
4928
|
lastName: yup4.string().label("Last Name").required("Last name is required"),
|
|
4869
|
-
password:
|
|
4929
|
+
password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
|
|
4870
4930
|
preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
|
|
4871
|
-
|
|
4872
|
-
|
|
4931
|
+
confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
|
|
4932
|
+
is: (val) => !!val,
|
|
4933
|
+
// only necessary if password typed
|
|
4934
|
+
then: (schema) => schema.required("Confirm Password is required").oneOf([yup4.ref("password")], "Passwords must match"),
|
|
4935
|
+
otherwise: (schema) => schema.notRequired()
|
|
4936
|
+
}),
|
|
4873
4937
|
role: yup4.mixed().oneOf(Object.values(EnumUserRole)).required("Role is required")
|
|
4874
4938
|
});
|
|
4875
4939
|
|
|
@@ -5423,7 +5487,7 @@ var defaultValues = {
|
|
|
5423
5487
|
email: "",
|
|
5424
5488
|
firstName: "",
|
|
5425
5489
|
lastName: "",
|
|
5426
|
-
password:
|
|
5490
|
+
password: null,
|
|
5427
5491
|
preferredRegion: "",
|
|
5428
5492
|
role: "customer" /* CUSTOMER */
|
|
5429
5493
|
};
|
|
@@ -5447,7 +5511,6 @@ function useUserForm(data) {
|
|
|
5447
5511
|
active: data.active,
|
|
5448
5512
|
avatar: data.avatar,
|
|
5449
5513
|
avatarUpload: data.avatarUpload,
|
|
5450
|
-
confirmPassword: data.confirmPassword,
|
|
5451
5514
|
email: data.email,
|
|
5452
5515
|
firstName: data.firstName,
|
|
5453
5516
|
lastName: data.lastName,
|
|
@@ -5465,7 +5528,6 @@ function useUserForm(data) {
|
|
|
5465
5528
|
active,
|
|
5466
5529
|
avatar,
|
|
5467
5530
|
avatarUpload,
|
|
5468
|
-
confirmPassword,
|
|
5469
5531
|
email,
|
|
5470
5532
|
firstName,
|
|
5471
5533
|
lastName,
|
|
@@ -5481,7 +5543,6 @@ function useUserForm(data) {
|
|
|
5481
5543
|
active,
|
|
5482
5544
|
avatar,
|
|
5483
5545
|
avatarUpload,
|
|
5484
|
-
confirmPassword,
|
|
5485
5546
|
email,
|
|
5486
5547
|
firstName,
|
|
5487
5548
|
lastName,
|
|
@@ -5989,8 +6050,10 @@ export {
|
|
|
5989
6050
|
EnumAdStyle,
|
|
5990
6051
|
EnumAdType,
|
|
5991
6052
|
EnumChatType,
|
|
6053
|
+
EnumEventDateStatus,
|
|
5992
6054
|
EnumEventType,
|
|
5993
6055
|
EnumFoodFlavor,
|
|
6056
|
+
EnumFoodType,
|
|
5994
6057
|
EnumInviteStatus,
|
|
5995
6058
|
EnumNotificationResourceType,
|
|
5996
6059
|
EnumNotificationType,
|