@timardex/cluemart-shared 1.2.65 → 1.2.68
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--4RgHfBN.d.ts +83 -0
- package/dist/ad-ByXz9Km3.d.mts +83 -0
- package/dist/{auth-BwtjPUgO.d.ts → auth-ChIm_Rn9.d.ts} +1 -1
- package/dist/{auth-DaiySFU6.d.mts → auth-gyDaskvq.d.mts} +1 -1
- package/dist/{chunk-N625BZKR.mjs → chunk-ILRVLTWY.mjs} +1 -1
- package/dist/{chunk-N625BZKR.mjs.map → chunk-ILRVLTWY.mjs.map} +1 -1
- package/dist/formFields/index.cjs +2 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +1 -0
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-CKf55A-q.d.mts → global-Q8FB4ZfD.d.mts} +97 -7
- package/dist/{global-BY8seqWN.d.ts → global-X7Gs8dR2.d.ts} +97 -7
- package/dist/graphql/index.cjs +8 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +8 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +15 -10
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +15 -10
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +108 -100
- package/dist/index.d.ts +108 -100
- package/dist/index.mjs +23 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DO97TmNs.d.mts → resourceActivities-DB-fx51l.d.mts} +3 -3
- package/dist/{resourceActivities-BkGGnxjl.d.ts → resourceActivities-Ezt7CDPH.d.ts} +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ad-CogBHjto.d.ts +0 -166
- package/dist/ad-VhDIYwfz.d.mts +0 -166
package/dist/index.d.mts
CHANGED
|
@@ -267,6 +267,90 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
267
267
|
_id: string;
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
+
type UserFormData = {
|
|
271
|
+
_id?: string;
|
|
272
|
+
active: boolean;
|
|
273
|
+
avatar?: ResourceImageType | null;
|
|
274
|
+
avatarUpload?: ResourceImageType | null;
|
|
275
|
+
confirmPassword?: string | null;
|
|
276
|
+
email: string;
|
|
277
|
+
firstName: string;
|
|
278
|
+
isTester: boolean;
|
|
279
|
+
lastName: string;
|
|
280
|
+
password?: string | null;
|
|
281
|
+
platform?: EnumOSPlatform;
|
|
282
|
+
preferredRegion: string;
|
|
283
|
+
role: EnumUserRole;
|
|
284
|
+
termsAgreement?: TermsAgreement | null;
|
|
285
|
+
};
|
|
286
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
287
|
+
type UserActivityEvent = {
|
|
288
|
+
dateStatus: EnumEventDateStatus;
|
|
289
|
+
resourceId: string;
|
|
290
|
+
startDate: string;
|
|
291
|
+
startTime: string;
|
|
292
|
+
};
|
|
293
|
+
type StripeSubscription = {
|
|
294
|
+
customerId?: string;
|
|
295
|
+
subscriptionId?: string;
|
|
296
|
+
status?: EnumSubscriptionStatus;
|
|
297
|
+
currentPlan?: EnumUserLicence;
|
|
298
|
+
startDate?: string;
|
|
299
|
+
endDate?: string;
|
|
300
|
+
};
|
|
301
|
+
type SubscriptionStatusData = {
|
|
302
|
+
subscriptionId: string | null;
|
|
303
|
+
status: EnumSubscriptionStatus;
|
|
304
|
+
priceId: string | null;
|
|
305
|
+
currentPlan: EnumUserLicence | null;
|
|
306
|
+
};
|
|
307
|
+
type UserActivity = {
|
|
308
|
+
favourites: {
|
|
309
|
+
events: string[];
|
|
310
|
+
vendors: string[];
|
|
311
|
+
partners: string[];
|
|
312
|
+
};
|
|
313
|
+
going: {
|
|
314
|
+
events: UserActivityEvent[];
|
|
315
|
+
};
|
|
316
|
+
interested: {
|
|
317
|
+
events: UserActivityEvent[];
|
|
318
|
+
};
|
|
319
|
+
present: {
|
|
320
|
+
events: UserActivityEvent[];
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
type UserLicenceType = {
|
|
324
|
+
expiryDate: Date | null;
|
|
325
|
+
issuedDate: Date | null;
|
|
326
|
+
licenceType: EnumUserLicence;
|
|
327
|
+
};
|
|
328
|
+
interface UserType {
|
|
329
|
+
_id: string;
|
|
330
|
+
active: boolean;
|
|
331
|
+
associates?: AssociateType[] | null;
|
|
332
|
+
avatar: ResourceImageType | null;
|
|
333
|
+
createdAt: Date;
|
|
334
|
+
deletedAt: Date | null;
|
|
335
|
+
email: string;
|
|
336
|
+
events: string[] | null;
|
|
337
|
+
firstName: string;
|
|
338
|
+
isTester: boolean;
|
|
339
|
+
lastName: string;
|
|
340
|
+
licences: UserLicenceType[] | null;
|
|
341
|
+
partner: string | null;
|
|
342
|
+
password: string;
|
|
343
|
+
platform: EnumOSPlatform | null;
|
|
344
|
+
preferredRegion: string;
|
|
345
|
+
refreshToken: string | null;
|
|
346
|
+
role: EnumUserRole;
|
|
347
|
+
stripe?: StripeSubscription;
|
|
348
|
+
termsAgreement?: TermsAgreement | null;
|
|
349
|
+
updatedAt: Date | null;
|
|
350
|
+
userActivity: UserActivity | null;
|
|
351
|
+
vendor: string | null;
|
|
352
|
+
}
|
|
353
|
+
|
|
270
354
|
type VendorLocation = {
|
|
271
355
|
dateTime: Nullable<DateTimeType> | null;
|
|
272
356
|
description?: string | null;
|
|
@@ -389,7 +473,13 @@ type AssociateType = {
|
|
|
389
473
|
email: string;
|
|
390
474
|
resourceId: string;
|
|
391
475
|
resourceType: EnumResourceType;
|
|
392
|
-
licence:
|
|
476
|
+
licence: UserLicenceType;
|
|
477
|
+
};
|
|
478
|
+
type AssociateTypeFormData = {
|
|
479
|
+
email: string;
|
|
480
|
+
resourceId: string;
|
|
481
|
+
resourceType: EnumResourceType;
|
|
482
|
+
licenceType: EnumUserLicence;
|
|
393
483
|
};
|
|
394
484
|
type OwnerType = {
|
|
395
485
|
email: string;
|
|
@@ -398,7 +488,7 @@ type OwnerType = {
|
|
|
398
488
|
interface BaseResourceTypeFormData {
|
|
399
489
|
_id?: string;
|
|
400
490
|
active: boolean;
|
|
401
|
-
associates?:
|
|
491
|
+
associates?: AssociateTypeFormData[] | null;
|
|
402
492
|
contactDetails?: ResourceContactDetailsType | null;
|
|
403
493
|
cover: ResourceImageType;
|
|
404
494
|
coverUpload?: ResourceImageType | null;
|
|
@@ -422,11 +512,11 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
422
512
|
_id: string;
|
|
423
513
|
adIds?: string[] | null;
|
|
424
514
|
chatIds?: string[] | null;
|
|
425
|
-
createdAt:
|
|
426
|
-
deletedAt:
|
|
515
|
+
createdAt: Date;
|
|
516
|
+
deletedAt: Date | null;
|
|
427
517
|
owner: OwnerType;
|
|
428
518
|
posterUsage?: PosterUsageType | null;
|
|
429
|
-
updatedAt:
|
|
519
|
+
updatedAt: Date | null;
|
|
430
520
|
};
|
|
431
521
|
type LocationType = {
|
|
432
522
|
city: string;
|
|
@@ -595,7 +685,7 @@ interface ChatType {
|
|
|
595
685
|
active: boolean;
|
|
596
686
|
chatType: EnumChatType;
|
|
597
687
|
chatName: string;
|
|
598
|
-
createdAt:
|
|
688
|
+
createdAt: Date;
|
|
599
689
|
messages: ChatMessageType[];
|
|
600
690
|
participants: ParticipantType[];
|
|
601
691
|
resourceInfo: {
|
|
@@ -603,8 +693,8 @@ interface ChatType {
|
|
|
603
693
|
partnerId: string | null;
|
|
604
694
|
vendorId: string | null;
|
|
605
695
|
} | null;
|
|
606
|
-
updatedAt:
|
|
607
|
-
deletedAt:
|
|
696
|
+
updatedAt: Date | null;
|
|
697
|
+
deletedAt: Date | null;
|
|
608
698
|
}
|
|
609
699
|
|
|
610
700
|
type ContactUsFormData = {
|
|
@@ -650,7 +740,8 @@ interface PosterInputType {
|
|
|
650
740
|
resourceType: EnumResourceType;
|
|
651
741
|
}
|
|
652
742
|
|
|
653
|
-
interface
|
|
743
|
+
interface TesterFormData {
|
|
744
|
+
approved: boolean;
|
|
654
745
|
categories?: Category[] | null;
|
|
655
746
|
companyName: string;
|
|
656
747
|
email: string;
|
|
@@ -660,96 +751,12 @@ interface TestersFormData {
|
|
|
660
751
|
region: string;
|
|
661
752
|
resourceType: EnumResourceType;
|
|
662
753
|
}
|
|
663
|
-
type
|
|
664
|
-
interface TesterType extends
|
|
665
|
-
_id: string;
|
|
666
|
-
active: boolean;
|
|
667
|
-
createdAt: string;
|
|
668
|
-
updatedAt: string;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
type UserFormData = {
|
|
672
|
-
_id?: string;
|
|
673
|
-
active: boolean;
|
|
674
|
-
avatar?: ResourceImageType | null;
|
|
675
|
-
avatarUpload?: ResourceImageType | null;
|
|
676
|
-
confirmPassword?: string | null;
|
|
677
|
-
email: string;
|
|
678
|
-
firstName: string;
|
|
679
|
-
isTester: boolean;
|
|
680
|
-
lastName: string;
|
|
681
|
-
password?: string | null;
|
|
682
|
-
platform?: EnumOSPlatform;
|
|
683
|
-
preferredRegion: string;
|
|
684
|
-
role: EnumUserRole;
|
|
685
|
-
termsAgreement?: TermsAgreement | null;
|
|
686
|
-
};
|
|
687
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
688
|
-
type UserActivityEvent = {
|
|
689
|
-
dateStatus: EnumEventDateStatus;
|
|
690
|
-
resourceId: string;
|
|
691
|
-
startDate: string;
|
|
692
|
-
startTime: string;
|
|
693
|
-
};
|
|
694
|
-
type StripeSubscription = {
|
|
695
|
-
customerId?: string;
|
|
696
|
-
subscriptionId?: string;
|
|
697
|
-
status?: EnumSubscriptionStatus;
|
|
698
|
-
currentPlan?: EnumUserLicence;
|
|
699
|
-
startDate?: string;
|
|
700
|
-
endDate?: string;
|
|
701
|
-
};
|
|
702
|
-
type SubscriptionStatusData = {
|
|
703
|
-
subscriptionId: string | null;
|
|
704
|
-
status: EnumSubscriptionStatus;
|
|
705
|
-
priceId: string | null;
|
|
706
|
-
currentPlan: EnumUserLicence | null;
|
|
707
|
-
};
|
|
708
|
-
type UserActivity = {
|
|
709
|
-
favourites: {
|
|
710
|
-
events: string[];
|
|
711
|
-
vendors: string[];
|
|
712
|
-
partners: string[];
|
|
713
|
-
};
|
|
714
|
-
going: {
|
|
715
|
-
events: UserActivityEvent[];
|
|
716
|
-
};
|
|
717
|
-
interested: {
|
|
718
|
-
events: UserActivityEvent[];
|
|
719
|
-
};
|
|
720
|
-
present: {
|
|
721
|
-
events: UserActivityEvent[];
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
type UserLicenceType = {
|
|
725
|
-
expiryDate: string | null;
|
|
726
|
-
issuedDate: string | null;
|
|
727
|
-
licenceType: EnumUserLicence;
|
|
728
|
-
};
|
|
729
|
-
interface UserType {
|
|
754
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
755
|
+
interface TesterType extends TesterFormData {
|
|
730
756
|
_id: string;
|
|
731
757
|
active: boolean;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
createdAt: string;
|
|
735
|
-
deletedAt: string | null;
|
|
736
|
-
email: string;
|
|
737
|
-
events: string[] | null;
|
|
738
|
-
firstName: string;
|
|
739
|
-
isTester: boolean;
|
|
740
|
-
lastName: string;
|
|
741
|
-
licences: UserLicenceType[] | null;
|
|
742
|
-
partner: string | null;
|
|
743
|
-
password: string;
|
|
744
|
-
platform: EnumOSPlatform | null;
|
|
745
|
-
preferredRegion: string;
|
|
746
|
-
refreshToken: string | null;
|
|
747
|
-
role: EnumUserRole;
|
|
748
|
-
stripe?: StripeSubscription;
|
|
749
|
-
termsAgreement?: TermsAgreement | null;
|
|
750
|
-
updatedAt: string;
|
|
751
|
-
userActivity: UserActivity | null;
|
|
752
|
-
vendor: string | null;
|
|
758
|
+
createdAt: Date;
|
|
759
|
+
updatedAt: Date | null;
|
|
753
760
|
}
|
|
754
761
|
|
|
755
762
|
declare enum EnumAdShowOn {
|
|
@@ -797,7 +804,7 @@ interface AdType extends AdFormData {
|
|
|
797
804
|
createdAt: Date;
|
|
798
805
|
impressions?: number;
|
|
799
806
|
start: Date;
|
|
800
|
-
updatedAt: Date;
|
|
807
|
+
updatedAt: Date | null;
|
|
801
808
|
}
|
|
802
809
|
|
|
803
810
|
declare enum EnumActivity {
|
|
@@ -894,6 +901,7 @@ declare const validateVerificationTokenFields: FormField[];
|
|
|
894
901
|
|
|
895
902
|
declare const profileFields: FormField[];
|
|
896
903
|
|
|
904
|
+
declare const categoryColors: Record<string, string>;
|
|
897
905
|
declare const availableCategories: Category[];
|
|
898
906
|
|
|
899
907
|
declare const socialMediaFields: FormField[];
|
|
@@ -1563,7 +1571,7 @@ declare const defaultVendorFormValues: VendorFormData;
|
|
|
1563
1571
|
declare const defaultVendorInfoFormValues: VendorInfoFormData;
|
|
1564
1572
|
declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
|
|
1565
1573
|
|
|
1566
|
-
declare function
|
|
1574
|
+
declare function useTesterForm(data?: TesterFormData): CreateTesterFormData;
|
|
1567
1575
|
|
|
1568
1576
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1569
1577
|
|
|
@@ -1679,4 +1687,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1679
1687
|
declare const paymentMethodOptions: OptionItem[];
|
|
1680
1688
|
declare function normalizeUrl(url: string): string;
|
|
1681
1689
|
|
|
1682
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type
|
|
1690
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type AssociateTypeFormData, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterFormData, type TesterType, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -267,6 +267,90 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
267
267
|
_id: string;
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
+
type UserFormData = {
|
|
271
|
+
_id?: string;
|
|
272
|
+
active: boolean;
|
|
273
|
+
avatar?: ResourceImageType | null;
|
|
274
|
+
avatarUpload?: ResourceImageType | null;
|
|
275
|
+
confirmPassword?: string | null;
|
|
276
|
+
email: string;
|
|
277
|
+
firstName: string;
|
|
278
|
+
isTester: boolean;
|
|
279
|
+
lastName: string;
|
|
280
|
+
password?: string | null;
|
|
281
|
+
platform?: EnumOSPlatform;
|
|
282
|
+
preferredRegion: string;
|
|
283
|
+
role: EnumUserRole;
|
|
284
|
+
termsAgreement?: TermsAgreement | null;
|
|
285
|
+
};
|
|
286
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
287
|
+
type UserActivityEvent = {
|
|
288
|
+
dateStatus: EnumEventDateStatus;
|
|
289
|
+
resourceId: string;
|
|
290
|
+
startDate: string;
|
|
291
|
+
startTime: string;
|
|
292
|
+
};
|
|
293
|
+
type StripeSubscription = {
|
|
294
|
+
customerId?: string;
|
|
295
|
+
subscriptionId?: string;
|
|
296
|
+
status?: EnumSubscriptionStatus;
|
|
297
|
+
currentPlan?: EnumUserLicence;
|
|
298
|
+
startDate?: string;
|
|
299
|
+
endDate?: string;
|
|
300
|
+
};
|
|
301
|
+
type SubscriptionStatusData = {
|
|
302
|
+
subscriptionId: string | null;
|
|
303
|
+
status: EnumSubscriptionStatus;
|
|
304
|
+
priceId: string | null;
|
|
305
|
+
currentPlan: EnumUserLicence | null;
|
|
306
|
+
};
|
|
307
|
+
type UserActivity = {
|
|
308
|
+
favourites: {
|
|
309
|
+
events: string[];
|
|
310
|
+
vendors: string[];
|
|
311
|
+
partners: string[];
|
|
312
|
+
};
|
|
313
|
+
going: {
|
|
314
|
+
events: UserActivityEvent[];
|
|
315
|
+
};
|
|
316
|
+
interested: {
|
|
317
|
+
events: UserActivityEvent[];
|
|
318
|
+
};
|
|
319
|
+
present: {
|
|
320
|
+
events: UserActivityEvent[];
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
type UserLicenceType = {
|
|
324
|
+
expiryDate: Date | null;
|
|
325
|
+
issuedDate: Date | null;
|
|
326
|
+
licenceType: EnumUserLicence;
|
|
327
|
+
};
|
|
328
|
+
interface UserType {
|
|
329
|
+
_id: string;
|
|
330
|
+
active: boolean;
|
|
331
|
+
associates?: AssociateType[] | null;
|
|
332
|
+
avatar: ResourceImageType | null;
|
|
333
|
+
createdAt: Date;
|
|
334
|
+
deletedAt: Date | null;
|
|
335
|
+
email: string;
|
|
336
|
+
events: string[] | null;
|
|
337
|
+
firstName: string;
|
|
338
|
+
isTester: boolean;
|
|
339
|
+
lastName: string;
|
|
340
|
+
licences: UserLicenceType[] | null;
|
|
341
|
+
partner: string | null;
|
|
342
|
+
password: string;
|
|
343
|
+
platform: EnumOSPlatform | null;
|
|
344
|
+
preferredRegion: string;
|
|
345
|
+
refreshToken: string | null;
|
|
346
|
+
role: EnumUserRole;
|
|
347
|
+
stripe?: StripeSubscription;
|
|
348
|
+
termsAgreement?: TermsAgreement | null;
|
|
349
|
+
updatedAt: Date | null;
|
|
350
|
+
userActivity: UserActivity | null;
|
|
351
|
+
vendor: string | null;
|
|
352
|
+
}
|
|
353
|
+
|
|
270
354
|
type VendorLocation = {
|
|
271
355
|
dateTime: Nullable<DateTimeType> | null;
|
|
272
356
|
description?: string | null;
|
|
@@ -389,7 +473,13 @@ type AssociateType = {
|
|
|
389
473
|
email: string;
|
|
390
474
|
resourceId: string;
|
|
391
475
|
resourceType: EnumResourceType;
|
|
392
|
-
licence:
|
|
476
|
+
licence: UserLicenceType;
|
|
477
|
+
};
|
|
478
|
+
type AssociateTypeFormData = {
|
|
479
|
+
email: string;
|
|
480
|
+
resourceId: string;
|
|
481
|
+
resourceType: EnumResourceType;
|
|
482
|
+
licenceType: EnumUserLicence;
|
|
393
483
|
};
|
|
394
484
|
type OwnerType = {
|
|
395
485
|
email: string;
|
|
@@ -398,7 +488,7 @@ type OwnerType = {
|
|
|
398
488
|
interface BaseResourceTypeFormData {
|
|
399
489
|
_id?: string;
|
|
400
490
|
active: boolean;
|
|
401
|
-
associates?:
|
|
491
|
+
associates?: AssociateTypeFormData[] | null;
|
|
402
492
|
contactDetails?: ResourceContactDetailsType | null;
|
|
403
493
|
cover: ResourceImageType;
|
|
404
494
|
coverUpload?: ResourceImageType | null;
|
|
@@ -422,11 +512,11 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
422
512
|
_id: string;
|
|
423
513
|
adIds?: string[] | null;
|
|
424
514
|
chatIds?: string[] | null;
|
|
425
|
-
createdAt:
|
|
426
|
-
deletedAt:
|
|
515
|
+
createdAt: Date;
|
|
516
|
+
deletedAt: Date | null;
|
|
427
517
|
owner: OwnerType;
|
|
428
518
|
posterUsage?: PosterUsageType | null;
|
|
429
|
-
updatedAt:
|
|
519
|
+
updatedAt: Date | null;
|
|
430
520
|
};
|
|
431
521
|
type LocationType = {
|
|
432
522
|
city: string;
|
|
@@ -595,7 +685,7 @@ interface ChatType {
|
|
|
595
685
|
active: boolean;
|
|
596
686
|
chatType: EnumChatType;
|
|
597
687
|
chatName: string;
|
|
598
|
-
createdAt:
|
|
688
|
+
createdAt: Date;
|
|
599
689
|
messages: ChatMessageType[];
|
|
600
690
|
participants: ParticipantType[];
|
|
601
691
|
resourceInfo: {
|
|
@@ -603,8 +693,8 @@ interface ChatType {
|
|
|
603
693
|
partnerId: string | null;
|
|
604
694
|
vendorId: string | null;
|
|
605
695
|
} | null;
|
|
606
|
-
updatedAt:
|
|
607
|
-
deletedAt:
|
|
696
|
+
updatedAt: Date | null;
|
|
697
|
+
deletedAt: Date | null;
|
|
608
698
|
}
|
|
609
699
|
|
|
610
700
|
type ContactUsFormData = {
|
|
@@ -650,7 +740,8 @@ interface PosterInputType {
|
|
|
650
740
|
resourceType: EnumResourceType;
|
|
651
741
|
}
|
|
652
742
|
|
|
653
|
-
interface
|
|
743
|
+
interface TesterFormData {
|
|
744
|
+
approved: boolean;
|
|
654
745
|
categories?: Category[] | null;
|
|
655
746
|
companyName: string;
|
|
656
747
|
email: string;
|
|
@@ -660,96 +751,12 @@ interface TestersFormData {
|
|
|
660
751
|
region: string;
|
|
661
752
|
resourceType: EnumResourceType;
|
|
662
753
|
}
|
|
663
|
-
type
|
|
664
|
-
interface TesterType extends
|
|
665
|
-
_id: string;
|
|
666
|
-
active: boolean;
|
|
667
|
-
createdAt: string;
|
|
668
|
-
updatedAt: string;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
type UserFormData = {
|
|
672
|
-
_id?: string;
|
|
673
|
-
active: boolean;
|
|
674
|
-
avatar?: ResourceImageType | null;
|
|
675
|
-
avatarUpload?: ResourceImageType | null;
|
|
676
|
-
confirmPassword?: string | null;
|
|
677
|
-
email: string;
|
|
678
|
-
firstName: string;
|
|
679
|
-
isTester: boolean;
|
|
680
|
-
lastName: string;
|
|
681
|
-
password?: string | null;
|
|
682
|
-
platform?: EnumOSPlatform;
|
|
683
|
-
preferredRegion: string;
|
|
684
|
-
role: EnumUserRole;
|
|
685
|
-
termsAgreement?: TermsAgreement | null;
|
|
686
|
-
};
|
|
687
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
688
|
-
type UserActivityEvent = {
|
|
689
|
-
dateStatus: EnumEventDateStatus;
|
|
690
|
-
resourceId: string;
|
|
691
|
-
startDate: string;
|
|
692
|
-
startTime: string;
|
|
693
|
-
};
|
|
694
|
-
type StripeSubscription = {
|
|
695
|
-
customerId?: string;
|
|
696
|
-
subscriptionId?: string;
|
|
697
|
-
status?: EnumSubscriptionStatus;
|
|
698
|
-
currentPlan?: EnumUserLicence;
|
|
699
|
-
startDate?: string;
|
|
700
|
-
endDate?: string;
|
|
701
|
-
};
|
|
702
|
-
type SubscriptionStatusData = {
|
|
703
|
-
subscriptionId: string | null;
|
|
704
|
-
status: EnumSubscriptionStatus;
|
|
705
|
-
priceId: string | null;
|
|
706
|
-
currentPlan: EnumUserLicence | null;
|
|
707
|
-
};
|
|
708
|
-
type UserActivity = {
|
|
709
|
-
favourites: {
|
|
710
|
-
events: string[];
|
|
711
|
-
vendors: string[];
|
|
712
|
-
partners: string[];
|
|
713
|
-
};
|
|
714
|
-
going: {
|
|
715
|
-
events: UserActivityEvent[];
|
|
716
|
-
};
|
|
717
|
-
interested: {
|
|
718
|
-
events: UserActivityEvent[];
|
|
719
|
-
};
|
|
720
|
-
present: {
|
|
721
|
-
events: UserActivityEvent[];
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
type UserLicenceType = {
|
|
725
|
-
expiryDate: string | null;
|
|
726
|
-
issuedDate: string | null;
|
|
727
|
-
licenceType: EnumUserLicence;
|
|
728
|
-
};
|
|
729
|
-
interface UserType {
|
|
754
|
+
type CreateTesterFormData = CreateFormData<TesterFormData>;
|
|
755
|
+
interface TesterType extends TesterFormData {
|
|
730
756
|
_id: string;
|
|
731
757
|
active: boolean;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
createdAt: string;
|
|
735
|
-
deletedAt: string | null;
|
|
736
|
-
email: string;
|
|
737
|
-
events: string[] | null;
|
|
738
|
-
firstName: string;
|
|
739
|
-
isTester: boolean;
|
|
740
|
-
lastName: string;
|
|
741
|
-
licences: UserLicenceType[] | null;
|
|
742
|
-
partner: string | null;
|
|
743
|
-
password: string;
|
|
744
|
-
platform: EnumOSPlatform | null;
|
|
745
|
-
preferredRegion: string;
|
|
746
|
-
refreshToken: string | null;
|
|
747
|
-
role: EnumUserRole;
|
|
748
|
-
stripe?: StripeSubscription;
|
|
749
|
-
termsAgreement?: TermsAgreement | null;
|
|
750
|
-
updatedAt: string;
|
|
751
|
-
userActivity: UserActivity | null;
|
|
752
|
-
vendor: string | null;
|
|
758
|
+
createdAt: Date;
|
|
759
|
+
updatedAt: Date | null;
|
|
753
760
|
}
|
|
754
761
|
|
|
755
762
|
declare enum EnumAdShowOn {
|
|
@@ -797,7 +804,7 @@ interface AdType extends AdFormData {
|
|
|
797
804
|
createdAt: Date;
|
|
798
805
|
impressions?: number;
|
|
799
806
|
start: Date;
|
|
800
|
-
updatedAt: Date;
|
|
807
|
+
updatedAt: Date | null;
|
|
801
808
|
}
|
|
802
809
|
|
|
803
810
|
declare enum EnumActivity {
|
|
@@ -894,6 +901,7 @@ declare const validateVerificationTokenFields: FormField[];
|
|
|
894
901
|
|
|
895
902
|
declare const profileFields: FormField[];
|
|
896
903
|
|
|
904
|
+
declare const categoryColors: Record<string, string>;
|
|
897
905
|
declare const availableCategories: Category[];
|
|
898
906
|
|
|
899
907
|
declare const socialMediaFields: FormField[];
|
|
@@ -1563,7 +1571,7 @@ declare const defaultVendorFormValues: VendorFormData;
|
|
|
1563
1571
|
declare const defaultVendorInfoFormValues: VendorInfoFormData;
|
|
1564
1572
|
declare function mapBaseResourceTypeToFormData(data: BaseResourceTypeFormData): BaseResourceTypeFormData;
|
|
1565
1573
|
|
|
1566
|
-
declare function
|
|
1574
|
+
declare function useTesterForm(data?: TesterFormData): CreateTesterFormData;
|
|
1567
1575
|
|
|
1568
1576
|
declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsFormData;
|
|
1569
1577
|
|
|
@@ -1679,4 +1687,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1679
1687
|
declare const paymentMethodOptions: OptionItem[];
|
|
1680
1688
|
declare function normalizeUrl(url: string): string;
|
|
1681
1689
|
|
|
1682
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type
|
|
1690
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type AssociateTypeFormData, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterFormData, type TesterType, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
|