@timardex/cluemart-shared 1.2.50 → 1.2.52
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-Dcmq74_b.d.ts → ad-Bo9PwPRD.d.mts} +19 -4
- package/dist/{ad-BO5cMy3b.d.mts → ad-CBsFDjHz.d.ts} +19 -4
- package/dist/{chunk-VYFOKMRP.mjs → chunk-IRQ365TO.mjs} +2 -2
- package/dist/{chunk-XXZPSRMS.mjs → chunk-N625BZKR.mjs} +3 -2
- package/dist/chunk-N625BZKR.mjs.map +1 -0
- package/dist/{chunk-S6RE75SK.mjs → chunk-V3BTJQHJ.mjs} +9 -2
- package/dist/chunk-V3BTJQHJ.mjs.map +1 -0
- package/dist/enums/index.cjs +9 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +9 -4
- package/dist/enums/index.d.ts +9 -4
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +94 -82
- 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 +24 -10
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +379 -175
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +43 -2
- package/dist/graphql/index.d.ts +43 -2
- package/dist/graphql/index.mjs +278 -81
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +128 -21
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +11 -2
- package/dist/hooks/index.d.ts +11 -2
- package/dist/hooks/index.mjs +121 -22
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +682 -355
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +77 -6
- package/dist/index.d.ts +77 -6
- package/dist/index.mjs +539 -222
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +2 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-S6RE75SK.mjs.map +0 -1
- package/dist/chunk-XXZPSRMS.mjs.map +0 -1
- /package/dist/{chunk-VYFOKMRP.mjs.map → chunk-IRQ365TO.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -69,7 +69,8 @@ declare enum EnumFoodType {
|
|
|
69
69
|
}
|
|
70
70
|
declare enum EnumResourceType {
|
|
71
71
|
EVENT = "event",
|
|
72
|
-
VENDOR = "vendor"
|
|
72
|
+
VENDOR = "vendor",
|
|
73
|
+
PARTNER = "partner"
|
|
73
74
|
}
|
|
74
75
|
declare enum EnumEventType {
|
|
75
76
|
MARKET = "Market",
|
|
@@ -79,8 +80,12 @@ declare enum EnumEventType {
|
|
|
79
80
|
}
|
|
80
81
|
declare enum EnumVendorType {
|
|
81
82
|
STALLHOLDER = "Stallholder",
|
|
82
|
-
SHOP = "Shop"
|
|
83
|
-
|
|
83
|
+
SHOP = "Shop"
|
|
84
|
+
}
|
|
85
|
+
declare enum EnumPartnerType {
|
|
86
|
+
CHARITY_PARTNER = "Charity_Partner",
|
|
87
|
+
MEDIA_PARTNER = "Media_Partner",
|
|
88
|
+
SUPPORTING_PARTNER = "Supporting_Partner"
|
|
84
89
|
}
|
|
85
90
|
declare enum EnumOSPlatform {
|
|
86
91
|
ANDROID = "android",
|
|
@@ -511,7 +516,6 @@ declare const vendorEndDateFields: FormDateField[];
|
|
|
511
516
|
declare const vendorAvailability: FormField[];
|
|
512
517
|
declare const vendorLocationDescription: FormField;
|
|
513
518
|
declare const vendorMenuFields: FormField[];
|
|
514
|
-
declare const availableCityOptions: OptionItem[];
|
|
515
519
|
declare const productLabelGroups: {
|
|
516
520
|
category: string;
|
|
517
521
|
items: {
|
|
@@ -695,6 +699,7 @@ type UserActivity = {
|
|
|
695
699
|
favourites: {
|
|
696
700
|
events: string[];
|
|
697
701
|
vendors: string[];
|
|
702
|
+
partners: string[];
|
|
698
703
|
};
|
|
699
704
|
going: {
|
|
700
705
|
events: UserActivityEvent[];
|
|
@@ -719,6 +724,7 @@ interface UserType {
|
|
|
719
724
|
isTester: boolean;
|
|
720
725
|
lastName: string;
|
|
721
726
|
licences: EnumUserLicence[] | null;
|
|
727
|
+
partner: string | null;
|
|
722
728
|
password: string;
|
|
723
729
|
platform: EnumOSPlatform | null;
|
|
724
730
|
preferredRegion: string;
|
|
@@ -732,8 +738,9 @@ interface UserType {
|
|
|
732
738
|
}
|
|
733
739
|
|
|
734
740
|
declare enum EnumAdShowOn {
|
|
735
|
-
FRONT_PAGE = "Front_page",
|
|
736
741
|
EVENTS_PAGE = "Events_page",
|
|
742
|
+
FRONT_PAGE = "Front_page",
|
|
743
|
+
PARTNERS_PAGE = "Partners_page",
|
|
737
744
|
VENDORS_PAGE = "Vendors_page"
|
|
738
745
|
}
|
|
739
746
|
declare enum EnumAdStatus {
|
|
@@ -810,6 +817,18 @@ type ResourceActivityInputType = {
|
|
|
810
817
|
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
811
818
|
};
|
|
812
819
|
|
|
820
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
821
|
+
location: LocationType;
|
|
822
|
+
nzbn: string;
|
|
823
|
+
partnerType: EnumPartnerType;
|
|
824
|
+
}
|
|
825
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
826
|
+
interface PartnerType extends BaseResourceType {
|
|
827
|
+
location: LocationType;
|
|
828
|
+
nzbn: string;
|
|
829
|
+
partnerType: EnumPartnerType;
|
|
830
|
+
}
|
|
831
|
+
|
|
813
832
|
declare const vendorElectricity: {
|
|
814
833
|
details: FormField;
|
|
815
834
|
isRequired: FormField;
|
|
@@ -872,6 +891,8 @@ declare const contactUsFields: FormField[];
|
|
|
872
891
|
declare const emailField: FormField;
|
|
873
892
|
declare const companyContactFields: FormField[];
|
|
874
893
|
|
|
894
|
+
declare const partnerBasicInfoFields: FormField[];
|
|
895
|
+
|
|
875
896
|
declare const useAdminUpdateResourceType: () => {
|
|
876
897
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
877
898
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1410,6 +1431,47 @@ declare const useGetSubscriptionStatus: () => {
|
|
|
1410
1431
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1411
1432
|
};
|
|
1412
1433
|
|
|
1434
|
+
declare const useCreatePartner: () => {
|
|
1435
|
+
createPartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1436
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1437
|
+
loading: boolean;
|
|
1438
|
+
};
|
|
1439
|
+
declare const useUpdatePartner: () => {
|
|
1440
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1441
|
+
loading: boolean;
|
|
1442
|
+
updatePartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1443
|
+
};
|
|
1444
|
+
declare const useDeletePartner: () => {
|
|
1445
|
+
deletePartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1446
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1447
|
+
loading: boolean;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
declare const useGetPartners: () => {
|
|
1451
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1452
|
+
loading: boolean;
|
|
1453
|
+
partners: PartnerType[];
|
|
1454
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1455
|
+
};
|
|
1456
|
+
declare const useGetPartner: (_id: string) => {
|
|
1457
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1458
|
+
loading: boolean;
|
|
1459
|
+
partner: PartnerType;
|
|
1460
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1461
|
+
};
|
|
1462
|
+
declare const useGetPartnersByRegion: (region: string) => {
|
|
1463
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1464
|
+
loading: boolean;
|
|
1465
|
+
partnersByRegion: PartnerType[];
|
|
1466
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1467
|
+
};
|
|
1468
|
+
declare const useSearchPartners: (search: string, region: string) => {
|
|
1469
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1470
|
+
loading: boolean;
|
|
1471
|
+
partnerSearch: PartnerType[];
|
|
1472
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1413
1475
|
interface PlacePrediction {
|
|
1414
1476
|
place_id: string;
|
|
1415
1477
|
description: string;
|
|
@@ -1480,6 +1542,7 @@ declare function useValidateVerificationTokenForm(): CreateValidateVerificationT
|
|
|
1480
1542
|
declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
1481
1543
|
|
|
1482
1544
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
1545
|
+
declare const defaultPartnerFormValues: PartnerFormData;
|
|
1483
1546
|
declare const defaultEventFormValues: EventFormData;
|
|
1484
1547
|
declare const defaultEventInfoFormValues: EventInfoFormData;
|
|
1485
1548
|
declare const defaultVendorFormValues: VendorFormData;
|
|
@@ -1492,6 +1555,14 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
|
|
|
1492
1555
|
|
|
1493
1556
|
declare function useAdForm(data?: AdFormData): CreateAdFormData;
|
|
1494
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
* Custom hook to manage the partner form state and validation.
|
|
1560
|
+
*
|
|
1561
|
+
* @param {PartnerFormData} data - The initial form data.
|
|
1562
|
+
* @returns {CreatePartnerFormData} - The form methods and state.
|
|
1563
|
+
*/
|
|
1564
|
+
declare function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData;
|
|
1565
|
+
|
|
1495
1566
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1496
1567
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1497
1568
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1594,4 +1665,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1594
1665
|
declare const paymentMethodOptions: OptionItem[];
|
|
1595
1666
|
declare function normalizeUrl(url: string): string;
|
|
1596
1667
|
|
|
1597
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories,
|
|
1668
|
+
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 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, 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 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, 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, useTestersForm, 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
|
@@ -69,7 +69,8 @@ declare enum EnumFoodType {
|
|
|
69
69
|
}
|
|
70
70
|
declare enum EnumResourceType {
|
|
71
71
|
EVENT = "event",
|
|
72
|
-
VENDOR = "vendor"
|
|
72
|
+
VENDOR = "vendor",
|
|
73
|
+
PARTNER = "partner"
|
|
73
74
|
}
|
|
74
75
|
declare enum EnumEventType {
|
|
75
76
|
MARKET = "Market",
|
|
@@ -79,8 +80,12 @@ declare enum EnumEventType {
|
|
|
79
80
|
}
|
|
80
81
|
declare enum EnumVendorType {
|
|
81
82
|
STALLHOLDER = "Stallholder",
|
|
82
|
-
SHOP = "Shop"
|
|
83
|
-
|
|
83
|
+
SHOP = "Shop"
|
|
84
|
+
}
|
|
85
|
+
declare enum EnumPartnerType {
|
|
86
|
+
CHARITY_PARTNER = "Charity_Partner",
|
|
87
|
+
MEDIA_PARTNER = "Media_Partner",
|
|
88
|
+
SUPPORTING_PARTNER = "Supporting_Partner"
|
|
84
89
|
}
|
|
85
90
|
declare enum EnumOSPlatform {
|
|
86
91
|
ANDROID = "android",
|
|
@@ -511,7 +516,6 @@ declare const vendorEndDateFields: FormDateField[];
|
|
|
511
516
|
declare const vendorAvailability: FormField[];
|
|
512
517
|
declare const vendorLocationDescription: FormField;
|
|
513
518
|
declare const vendorMenuFields: FormField[];
|
|
514
|
-
declare const availableCityOptions: OptionItem[];
|
|
515
519
|
declare const productLabelGroups: {
|
|
516
520
|
category: string;
|
|
517
521
|
items: {
|
|
@@ -695,6 +699,7 @@ type UserActivity = {
|
|
|
695
699
|
favourites: {
|
|
696
700
|
events: string[];
|
|
697
701
|
vendors: string[];
|
|
702
|
+
partners: string[];
|
|
698
703
|
};
|
|
699
704
|
going: {
|
|
700
705
|
events: UserActivityEvent[];
|
|
@@ -719,6 +724,7 @@ interface UserType {
|
|
|
719
724
|
isTester: boolean;
|
|
720
725
|
lastName: string;
|
|
721
726
|
licences: EnumUserLicence[] | null;
|
|
727
|
+
partner: string | null;
|
|
722
728
|
password: string;
|
|
723
729
|
platform: EnumOSPlatform | null;
|
|
724
730
|
preferredRegion: string;
|
|
@@ -732,8 +738,9 @@ interface UserType {
|
|
|
732
738
|
}
|
|
733
739
|
|
|
734
740
|
declare enum EnumAdShowOn {
|
|
735
|
-
FRONT_PAGE = "Front_page",
|
|
736
741
|
EVENTS_PAGE = "Events_page",
|
|
742
|
+
FRONT_PAGE = "Front_page",
|
|
743
|
+
PARTNERS_PAGE = "Partners_page",
|
|
737
744
|
VENDORS_PAGE = "Vendors_page"
|
|
738
745
|
}
|
|
739
746
|
declare enum EnumAdStatus {
|
|
@@ -810,6 +817,18 @@ type ResourceActivityInputType = {
|
|
|
810
817
|
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
811
818
|
};
|
|
812
819
|
|
|
820
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
821
|
+
location: LocationType;
|
|
822
|
+
nzbn: string;
|
|
823
|
+
partnerType: EnumPartnerType;
|
|
824
|
+
}
|
|
825
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
826
|
+
interface PartnerType extends BaseResourceType {
|
|
827
|
+
location: LocationType;
|
|
828
|
+
nzbn: string;
|
|
829
|
+
partnerType: EnumPartnerType;
|
|
830
|
+
}
|
|
831
|
+
|
|
813
832
|
declare const vendorElectricity: {
|
|
814
833
|
details: FormField;
|
|
815
834
|
isRequired: FormField;
|
|
@@ -872,6 +891,8 @@ declare const contactUsFields: FormField[];
|
|
|
872
891
|
declare const emailField: FormField;
|
|
873
892
|
declare const companyContactFields: FormField[];
|
|
874
893
|
|
|
894
|
+
declare const partnerBasicInfoFields: FormField[];
|
|
895
|
+
|
|
875
896
|
declare const useAdminUpdateResourceType: () => {
|
|
876
897
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
877
898
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1410,6 +1431,47 @@ declare const useGetSubscriptionStatus: () => {
|
|
|
1410
1431
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1411
1432
|
};
|
|
1412
1433
|
|
|
1434
|
+
declare const useCreatePartner: () => {
|
|
1435
|
+
createPartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1436
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1437
|
+
loading: boolean;
|
|
1438
|
+
};
|
|
1439
|
+
declare const useUpdatePartner: () => {
|
|
1440
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1441
|
+
loading: boolean;
|
|
1442
|
+
updatePartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1443
|
+
};
|
|
1444
|
+
declare const useDeletePartner: () => {
|
|
1445
|
+
deletePartner: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1446
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1447
|
+
loading: boolean;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
declare const useGetPartners: () => {
|
|
1451
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1452
|
+
loading: boolean;
|
|
1453
|
+
partners: PartnerType[];
|
|
1454
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1455
|
+
};
|
|
1456
|
+
declare const useGetPartner: (_id: string) => {
|
|
1457
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1458
|
+
loading: boolean;
|
|
1459
|
+
partner: PartnerType;
|
|
1460
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1461
|
+
};
|
|
1462
|
+
declare const useGetPartnersByRegion: (region: string) => {
|
|
1463
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1464
|
+
loading: boolean;
|
|
1465
|
+
partnersByRegion: PartnerType[];
|
|
1466
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1467
|
+
};
|
|
1468
|
+
declare const useSearchPartners: (search: string, region: string) => {
|
|
1469
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1470
|
+
loading: boolean;
|
|
1471
|
+
partnerSearch: PartnerType[];
|
|
1472
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1413
1475
|
interface PlacePrediction {
|
|
1414
1476
|
place_id: string;
|
|
1415
1477
|
description: string;
|
|
@@ -1480,6 +1542,7 @@ declare function useValidateVerificationTokenForm(): CreateValidateVerificationT
|
|
|
1480
1542
|
declare function useResetPasswordForm(): CreateResetPasswordFormData;
|
|
1481
1543
|
|
|
1482
1544
|
declare const globalDefaultValues: BaseResourceTypeFormData;
|
|
1545
|
+
declare const defaultPartnerFormValues: PartnerFormData;
|
|
1483
1546
|
declare const defaultEventFormValues: EventFormData;
|
|
1484
1547
|
declare const defaultEventInfoFormValues: EventInfoFormData;
|
|
1485
1548
|
declare const defaultVendorFormValues: VendorFormData;
|
|
@@ -1492,6 +1555,14 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
|
|
|
1492
1555
|
|
|
1493
1556
|
declare function useAdForm(data?: AdFormData): CreateAdFormData;
|
|
1494
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
* Custom hook to manage the partner form state and validation.
|
|
1560
|
+
*
|
|
1561
|
+
* @param {PartnerFormData} data - The initial form data.
|
|
1562
|
+
* @returns {CreatePartnerFormData} - The form methods and state.
|
|
1563
|
+
*/
|
|
1564
|
+
declare function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData;
|
|
1565
|
+
|
|
1495
1566
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1496
1567
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1497
1568
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -1594,4 +1665,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1594
1665
|
declare const paymentMethodOptions: OptionItem[];
|
|
1595
1666
|
declare function normalizeUrl(url: string): string;
|
|
1596
1667
|
|
|
1597
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories,
|
|
1668
|
+
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 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, 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 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, 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, useTestersForm, 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 };
|