@timardex/cluemart-shared 1.3.47 → 1.3.49
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/{auth-CmCrmpRo.d.ts → auth-BD8pG4QE.d.ts} +1 -1
- package/dist/{auth-svPMD8ug.d.mts → auth-Cp-vzzpW.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-BylKHE-S.d.ts → global-BKEcBQxZ.d.ts} +20 -1
- package/dist/{global-_ClapcHu.d.mts → global-DjZooB3t.d.mts} +20 -1
- package/dist/graphql/index.cjs +129 -8
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +37 -6
- package/dist/graphql/index.d.ts +37 -6
- package/dist/graphql/index.mjs +123 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +22 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -4
- package/dist/hooks/index.d.ts +5 -4
- package/dist/hooks/index.mjs +21 -0
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +151 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +55 -4
- package/dist/index.d.ts +55 -4
- package/dist/index.mjs +144 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{post-zflSHvi5.d.mts → post-CLTR6oRS.d.mts} +1 -1
- package/dist/{post-ChjjnO9v.d.ts → post-D83V8snF.d.ts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-
|
|
4
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-DjZooB3t.mjs';
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-CLTR6oRS.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -421,6 +421,21 @@ declare const useUpdateVendorInfo: () => {
|
|
|
421
421
|
};
|
|
422
422
|
}>>;
|
|
423
423
|
};
|
|
424
|
+
declare const useCreateUnregisteredVendor: () => {
|
|
425
|
+
createUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
426
|
+
error: _apollo_client.ApolloError | undefined;
|
|
427
|
+
loading: boolean;
|
|
428
|
+
};
|
|
429
|
+
declare const useUpdateUnregisteredVendor: () => {
|
|
430
|
+
error: _apollo_client.ApolloError | undefined;
|
|
431
|
+
loading: boolean;
|
|
432
|
+
updateUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
433
|
+
};
|
|
434
|
+
declare const useDeleteUnregisteredVendor: () => {
|
|
435
|
+
deleteUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
436
|
+
error: _apollo_client.ApolloError | undefined;
|
|
437
|
+
loading: boolean;
|
|
438
|
+
};
|
|
424
439
|
|
|
425
440
|
declare const useGetVendors: () => {
|
|
426
441
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -462,6 +477,22 @@ declare const useGetVendorInfo: (vendorId: string) => {
|
|
|
462
477
|
}>>;
|
|
463
478
|
vendorInfo: VendorInfoType | undefined;
|
|
464
479
|
};
|
|
480
|
+
declare const useGetUnregisteredVendors: () => {
|
|
481
|
+
error: _apollo_client.ApolloError | undefined;
|
|
482
|
+
loading: boolean;
|
|
483
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
484
|
+
unregisteredVendors: UnregisteredVendorType[];
|
|
485
|
+
}>>;
|
|
486
|
+
unregisteredVendors: UnregisteredVendorType[];
|
|
487
|
+
};
|
|
488
|
+
declare const useGetUnregisteredVendor: (_id: string) => {
|
|
489
|
+
error: _apollo_client.ApolloError | undefined;
|
|
490
|
+
loading: boolean;
|
|
491
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
492
|
+
unregisteredVendor: UnregisteredVendorType;
|
|
493
|
+
}>>;
|
|
494
|
+
unregisteredVendor: UnregisteredVendorType | undefined;
|
|
495
|
+
};
|
|
465
496
|
|
|
466
497
|
declare const useCreateTester: () => {
|
|
467
498
|
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -683,13 +714,13 @@ declare const useCreateResourceActivity: () => {
|
|
|
683
714
|
loading: boolean;
|
|
684
715
|
};
|
|
685
716
|
|
|
686
|
-
declare const
|
|
717
|
+
declare const useGetResourceActivity: (resourceId: string, resourceType: EnumResourceType) => {
|
|
687
718
|
error: _apollo_client.ApolloError | undefined;
|
|
688
719
|
loading: boolean;
|
|
689
720
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
690
|
-
|
|
721
|
+
resourceActivity: ResourceActivityType;
|
|
691
722
|
}>>;
|
|
692
|
-
|
|
723
|
+
resourceActivity: ResourceActivityType | null;
|
|
693
724
|
};
|
|
694
725
|
|
|
695
726
|
declare const useCreateCheckoutSession: () => {
|
|
@@ -831,4 +862,4 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
831
862
|
}>>;
|
|
832
863
|
};
|
|
833
864
|
|
|
834
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor,
|
|
865
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-
|
|
4
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BKEcBQxZ.js';
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-D83V8snF.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -421,6 +421,21 @@ declare const useUpdateVendorInfo: () => {
|
|
|
421
421
|
};
|
|
422
422
|
}>>;
|
|
423
423
|
};
|
|
424
|
+
declare const useCreateUnregisteredVendor: () => {
|
|
425
|
+
createUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
426
|
+
error: _apollo_client.ApolloError | undefined;
|
|
427
|
+
loading: boolean;
|
|
428
|
+
};
|
|
429
|
+
declare const useUpdateUnregisteredVendor: () => {
|
|
430
|
+
error: _apollo_client.ApolloError | undefined;
|
|
431
|
+
loading: boolean;
|
|
432
|
+
updateUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
433
|
+
};
|
|
434
|
+
declare const useDeleteUnregisteredVendor: () => {
|
|
435
|
+
deleteUnregisteredVendor: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
436
|
+
error: _apollo_client.ApolloError | undefined;
|
|
437
|
+
loading: boolean;
|
|
438
|
+
};
|
|
424
439
|
|
|
425
440
|
declare const useGetVendors: () => {
|
|
426
441
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -462,6 +477,22 @@ declare const useGetVendorInfo: (vendorId: string) => {
|
|
|
462
477
|
}>>;
|
|
463
478
|
vendorInfo: VendorInfoType | undefined;
|
|
464
479
|
};
|
|
480
|
+
declare const useGetUnregisteredVendors: () => {
|
|
481
|
+
error: _apollo_client.ApolloError | undefined;
|
|
482
|
+
loading: boolean;
|
|
483
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
484
|
+
unregisteredVendors: UnregisteredVendorType[];
|
|
485
|
+
}>>;
|
|
486
|
+
unregisteredVendors: UnregisteredVendorType[];
|
|
487
|
+
};
|
|
488
|
+
declare const useGetUnregisteredVendor: (_id: string) => {
|
|
489
|
+
error: _apollo_client.ApolloError | undefined;
|
|
490
|
+
loading: boolean;
|
|
491
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
492
|
+
unregisteredVendor: UnregisteredVendorType;
|
|
493
|
+
}>>;
|
|
494
|
+
unregisteredVendor: UnregisteredVendorType | undefined;
|
|
495
|
+
};
|
|
465
496
|
|
|
466
497
|
declare const useCreateTester: () => {
|
|
467
498
|
createTester: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
@@ -683,13 +714,13 @@ declare const useCreateResourceActivity: () => {
|
|
|
683
714
|
loading: boolean;
|
|
684
715
|
};
|
|
685
716
|
|
|
686
|
-
declare const
|
|
717
|
+
declare const useGetResourceActivity: (resourceId: string, resourceType: EnumResourceType) => {
|
|
687
718
|
error: _apollo_client.ApolloError | undefined;
|
|
688
719
|
loading: boolean;
|
|
689
720
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
690
|
-
|
|
721
|
+
resourceActivity: ResourceActivityType;
|
|
691
722
|
}>>;
|
|
692
|
-
|
|
723
|
+
resourceActivity: ResourceActivityType | null;
|
|
693
724
|
};
|
|
694
725
|
|
|
695
726
|
declare const useCreateCheckoutSession: () => {
|
|
@@ -831,4 +862,4 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
831
862
|
}>>;
|
|
832
863
|
};
|
|
833
864
|
|
|
834
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor,
|
|
865
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -647,6 +647,38 @@ var VENDOR_INFO = gql5`
|
|
|
647
647
|
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
648
648
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
649
649
|
`;
|
|
650
|
+
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = gql5`
|
|
651
|
+
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
652
|
+
dateTime {
|
|
653
|
+
...EventDateTimeFields
|
|
654
|
+
}
|
|
655
|
+
eventId
|
|
656
|
+
location {
|
|
657
|
+
...LocationFields
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
661
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
662
|
+
`;
|
|
663
|
+
var UNREGISTERED_VENDOR = gql5`
|
|
664
|
+
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
665
|
+
_id
|
|
666
|
+
categories {
|
|
667
|
+
...CategoryFields
|
|
668
|
+
}
|
|
669
|
+
createdAt
|
|
670
|
+
deletedAt
|
|
671
|
+
email
|
|
672
|
+
invitations {
|
|
673
|
+
...UnregisteredVendorInvitationFields
|
|
674
|
+
}
|
|
675
|
+
name
|
|
676
|
+
region
|
|
677
|
+
updatedAt
|
|
678
|
+
}
|
|
679
|
+
${CATEGORY_FIELDS_FRAGMENT}
|
|
680
|
+
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
681
|
+
`;
|
|
650
682
|
var GET_VENDORS = gql5`
|
|
651
683
|
query getVendors {
|
|
652
684
|
vendors {
|
|
@@ -687,6 +719,22 @@ var GET_VENDOR_INFO = gql5`
|
|
|
687
719
|
}
|
|
688
720
|
${VENDOR_INFO}
|
|
689
721
|
`;
|
|
722
|
+
var GET_UNREGISTERED_VENDORS = gql5`
|
|
723
|
+
query getUnregisteredVendors {
|
|
724
|
+
unregisteredVendors {
|
|
725
|
+
...UnregisteredVendorFields
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
${UNREGISTERED_VENDOR}
|
|
729
|
+
`;
|
|
730
|
+
var GET_UNREGISTERED_VENDOR = gql5`
|
|
731
|
+
query getUnregisteredVendor($_id: ID!) {
|
|
732
|
+
unregisteredVendor(_id: $_id) {
|
|
733
|
+
...UnregisteredVendorFields
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
${UNREGISTERED_VENDOR}
|
|
737
|
+
`;
|
|
690
738
|
|
|
691
739
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
692
740
|
var useAdminUpdateResourceType = () => {
|
|
@@ -2015,6 +2063,30 @@ var UPDATE_VENDOR_INFO_MUTATION = gql21`
|
|
|
2015
2063
|
}
|
|
2016
2064
|
${VENDOR_INFO}
|
|
2017
2065
|
`;
|
|
2066
|
+
var CREATE_UNREGISTERED_VENDOR_MUTATION = gql21`
|
|
2067
|
+
mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
|
|
2068
|
+
createUnregisteredVendor(input: $input) {
|
|
2069
|
+
...UnregisteredVendorFields
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
${UNREGISTERED_VENDOR}
|
|
2073
|
+
`;
|
|
2074
|
+
var UPDATE_UNREGISTERED_VENDOR_MUTATION = gql21`
|
|
2075
|
+
mutation updateUnregisteredVendor(
|
|
2076
|
+
$_id: ID!
|
|
2077
|
+
$input: UnregisteredVendorInputType!
|
|
2078
|
+
) {
|
|
2079
|
+
updateUnregisteredVendor(_id: $_id, input: $input) {
|
|
2080
|
+
...UnregisteredVendorFields
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
${UNREGISTERED_VENDOR}
|
|
2084
|
+
`;
|
|
2085
|
+
var DELETE_UNREGISTERED_VENDOR_MUTATION = gql21`
|
|
2086
|
+
mutation deleteUnregisteredVendor($_id: ID!) {
|
|
2087
|
+
deleteUnregisteredVendor(_id: $_id)
|
|
2088
|
+
}
|
|
2089
|
+
`;
|
|
2018
2090
|
|
|
2019
2091
|
// src/graphql/hooks/vendor/hooksMutation.ts
|
|
2020
2092
|
var useCreateVendor = () => {
|
|
@@ -2088,6 +2160,24 @@ var useUpdateVendorInfo = () => {
|
|
|
2088
2160
|
});
|
|
2089
2161
|
return { error, loading, updateVendorInfo };
|
|
2090
2162
|
};
|
|
2163
|
+
var useCreateUnregisteredVendor = () => {
|
|
2164
|
+
const [createUnregisteredVendor, { loading, error }] = useMutation10(
|
|
2165
|
+
CREATE_UNREGISTERED_VENDOR_MUTATION
|
|
2166
|
+
);
|
|
2167
|
+
return { createUnregisteredVendor, error, loading };
|
|
2168
|
+
};
|
|
2169
|
+
var useUpdateUnregisteredVendor = () => {
|
|
2170
|
+
const [updateUnregisteredVendor, { loading, error }] = useMutation10(
|
|
2171
|
+
UPDATE_UNREGISTERED_VENDOR_MUTATION
|
|
2172
|
+
);
|
|
2173
|
+
return { error, loading, updateUnregisteredVendor };
|
|
2174
|
+
};
|
|
2175
|
+
var useDeleteUnregisteredVendor = () => {
|
|
2176
|
+
const [deleteUnregisteredVendor, { loading, error }] = useMutation10(
|
|
2177
|
+
DELETE_UNREGISTERED_VENDOR_MUTATION
|
|
2178
|
+
);
|
|
2179
|
+
return { deleteUnregisteredVendor, error, loading };
|
|
2180
|
+
};
|
|
2091
2181
|
|
|
2092
2182
|
// src/graphql/hooks/vendor/hooksQuery.ts
|
|
2093
2183
|
import { useQuery as useQuery5 } from "@apollo/client";
|
|
@@ -2150,6 +2240,27 @@ var useGetVendorInfo = (vendorId) => {
|
|
|
2150
2240
|
vendorInfo
|
|
2151
2241
|
};
|
|
2152
2242
|
};
|
|
2243
|
+
var useGetUnregisteredVendors = () => {
|
|
2244
|
+
const { loading, error, data, refetch } = useQuery5(GET_UNREGISTERED_VENDORS, {
|
|
2245
|
+
fetchPolicy: "network-only"
|
|
2246
|
+
});
|
|
2247
|
+
const unregisteredVendors = data?.unregisteredVendors || [];
|
|
2248
|
+
return {
|
|
2249
|
+
error,
|
|
2250
|
+
loading,
|
|
2251
|
+
refetch,
|
|
2252
|
+
unregisteredVendors
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
var useGetUnregisteredVendor = (_id) => {
|
|
2256
|
+
const { loading, error, data, refetch } = useQuery5(GET_UNREGISTERED_VENDOR, {
|
|
2257
|
+
fetchPolicy: "network-only",
|
|
2258
|
+
skip: !_id,
|
|
2259
|
+
variables: { _id }
|
|
2260
|
+
});
|
|
2261
|
+
const unregisteredVendor = data?.unregisteredVendor;
|
|
2262
|
+
return { error, loading, refetch, unregisteredVendor };
|
|
2263
|
+
};
|
|
2153
2264
|
|
|
2154
2265
|
// src/graphql/hooks/tester/hooksMutation.ts
|
|
2155
2266
|
import { useMutation as useMutation11 } from "@apollo/client";
|
|
@@ -2720,12 +2831,12 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql27`
|
|
|
2720
2831
|
}
|
|
2721
2832
|
}
|
|
2722
2833
|
`;
|
|
2723
|
-
var
|
|
2724
|
-
query
|
|
2834
|
+
var GET_RESOURCE_ACTIVITY = gql27`
|
|
2835
|
+
query getResourceActivity(
|
|
2725
2836
|
$resourceType: ResourceTypeEnum!
|
|
2726
2837
|
$resourceId: ID!
|
|
2727
2838
|
) {
|
|
2728
|
-
|
|
2839
|
+
resourceActivity(resourceType: $resourceType, resourceId: $resourceId) {
|
|
2729
2840
|
...ResourceActivitiesFields
|
|
2730
2841
|
}
|
|
2731
2842
|
}
|
|
@@ -2733,8 +2844,8 @@ var GET_RESOURCE_ACTIVITIES = gql27`
|
|
|
2733
2844
|
`;
|
|
2734
2845
|
|
|
2735
2846
|
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
2736
|
-
var
|
|
2737
|
-
const { data, loading, error, refetch } = useQuery9(
|
|
2847
|
+
var useGetResourceActivity = (resourceId, resourceType) => {
|
|
2848
|
+
const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITY, {
|
|
2738
2849
|
fetchPolicy: "network-only",
|
|
2739
2850
|
variables: { resourceId, resourceType }
|
|
2740
2851
|
});
|
|
@@ -2742,7 +2853,7 @@ var useGetResourceActivities = (resourceId, resourceType) => {
|
|
|
2742
2853
|
error,
|
|
2743
2854
|
loading,
|
|
2744
2855
|
refetch,
|
|
2745
|
-
|
|
2856
|
+
resourceActivity: data?.resourceActivity || null
|
|
2746
2857
|
};
|
|
2747
2858
|
};
|
|
2748
2859
|
|
|
@@ -3162,6 +3273,7 @@ export {
|
|
|
3162
3273
|
useCreateRelation,
|
|
3163
3274
|
useCreateResourceActivity,
|
|
3164
3275
|
useCreateTester,
|
|
3276
|
+
useCreateUnregisteredVendor,
|
|
3165
3277
|
useCreateUser,
|
|
3166
3278
|
useCreateVendor,
|
|
3167
3279
|
useCreateVendorInfo,
|
|
@@ -3174,6 +3286,7 @@ export {
|
|
|
3174
3286
|
useDeletePost,
|
|
3175
3287
|
useDeleteRelation,
|
|
3176
3288
|
useDeleteTester,
|
|
3289
|
+
useDeleteUnregisteredVendor,
|
|
3177
3290
|
useDeleteUser,
|
|
3178
3291
|
useDeleteVendor,
|
|
3179
3292
|
useGetAd,
|
|
@@ -3197,11 +3310,13 @@ export {
|
|
|
3197
3310
|
useGetPostsByType,
|
|
3198
3311
|
useGetRelation,
|
|
3199
3312
|
useGetRelationByEventAndVendor,
|
|
3200
|
-
|
|
3313
|
+
useGetResourceActivity,
|
|
3201
3314
|
useGetResourceConnections,
|
|
3202
3315
|
useGetSubscriptionStatus,
|
|
3203
3316
|
useGetTester,
|
|
3204
3317
|
useGetTesters,
|
|
3318
|
+
useGetUnregisteredVendor,
|
|
3319
|
+
useGetUnregisteredVendors,
|
|
3205
3320
|
useGetUser,
|
|
3206
3321
|
useGetUserActivities,
|
|
3207
3322
|
useGetUserChats,
|
|
@@ -3241,6 +3356,7 @@ export {
|
|
|
3241
3356
|
useUpdateRelation,
|
|
3242
3357
|
useUpdateSubscriptionPlan,
|
|
3243
3358
|
useUpdateTester,
|
|
3359
|
+
useUpdateUnregisteredVendor,
|
|
3244
3360
|
useUpdateUser,
|
|
3245
3361
|
useUpdateVendor,
|
|
3246
3362
|
useUpdateVendorInfo,
|