@timardex/cluemart-shared 1.3.0 → 1.3.11

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.
Files changed (38) hide show
  1. package/dist/{auth-DlXdCHFm.d.mts → auth-DpfaLmTU.d.mts} +1 -1
  2. package/dist/{auth-B1G5QrD2.d.ts → auth-xXqB6t_8.d.ts} +1 -1
  3. package/dist/{chunk-3ZDDQGW4.mjs → chunk-Y3MIKYGQ.mjs} +20 -2
  4. package/dist/chunk-Y3MIKYGQ.mjs.map +1 -0
  5. package/dist/formFields/index.d.mts +1 -1
  6. package/dist/formFields/index.d.ts +1 -1
  7. package/dist/{global-DabCYr5t.d.ts → global-DSwmP6sp.d.ts} +1 -3
  8. package/dist/{global-B3lGLGxH.d.mts → global-O7RsWypG.d.mts} +1 -3
  9. package/dist/graphql/index.cjs +143 -0
  10. package/dist/graphql/index.cjs.map +1 -1
  11. package/dist/graphql/index.d.mts +36 -3
  12. package/dist/graphql/index.d.ts +36 -3
  13. package/dist/graphql/index.mjs +138 -0
  14. package/dist/graphql/index.mjs.map +1 -1
  15. package/dist/hooks/index.cjs +140 -5
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.d.mts +6 -4
  18. package/dist/hooks/index.d.ts +6 -4
  19. package/dist/hooks/index.mjs +124 -6
  20. package/dist/hooks/index.mjs.map +1 -1
  21. package/dist/index.cjs +287 -5
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.mts +100 -4
  24. package/dist/index.d.ts +100 -4
  25. package/dist/index.mjs +279 -5
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/{ad-j0VWBCVE.d.ts → post-Df5kAhEE.d.ts} +65 -2
  28. package/dist/{ad-Cld9z55n.d.mts → post-tVcpbEDX.d.mts} +65 -2
  29. package/dist/types/index.cjs +20 -0
  30. package/dist/types/index.cjs.map +1 -1
  31. package/dist/types/index.d.mts +3 -3
  32. package/dist/types/index.d.ts +3 -3
  33. package/dist/types/index.mjs +5 -1
  34. package/dist/types/index.mjs.map +1 -1
  35. package/dist/utils/index.d.mts +1 -1
  36. package/dist/utils/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-3ZDDQGW4.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { w as CreateFormData, T as TermsAgreement } from './global-B3lGLGxH.mjs';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-O7RsWypG.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { w as CreateFormData, T as TermsAgreement } from './global-DabCYr5t.js';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-DSwmP6sp.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -46,6 +46,22 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
46
46
  return EnumAdStyle2;
47
47
  })(EnumAdStyle || {});
48
48
 
49
+ // src/types/post.ts
50
+ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
51
+ EnumPostType2["DAILY_MEETS"] = "daily_meets";
52
+ EnumPostType2["DAILY_TIPS"] = "daily_tips";
53
+ EnumPostType2["DAILY_POLL"] = "daily_poll";
54
+ return EnumPostType2;
55
+ })(EnumPostType || {});
56
+ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
57
+ EnumPostContentType2["COVER"] = "cover";
58
+ EnumPostContentType2["IMAGE"] = "image";
59
+ EnumPostContentType2["LIST"] = "list";
60
+ EnumPostContentType2["TEXTAREA"] = "textarea";
61
+ EnumPostContentType2["VIDEO"] = "video";
62
+ return EnumPostContentType2;
63
+ })(EnumPostContentType || {});
64
+
49
65
  export {
50
66
  OrganizedMarketCount,
51
67
  VendorSellingFrequency,
@@ -53,6 +69,8 @@ export {
53
69
  EnumAdShowOn,
54
70
  EnumAdStatus,
55
71
  EnumAdType,
56
- EnumAdStyle
72
+ EnumAdStyle,
73
+ EnumPostType,
74
+ EnumPostContentType
57
75
  };
58
- //# sourceMappingURL=chunk-3ZDDQGW4.mjs.map
76
+ //# sourceMappingURL=chunk-Y3MIKYGQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/tester.ts","../src/types/ad.ts","../src/types/post.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n dailyCoordinationNeeds?: string;\n interestedInCharityInitiative?: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n organizerExpectations?: string;\n registerMarketsFirstWeek: boolean;\n spaceForClueMart?: boolean;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_POLL = \"daily_poll\",\n}\n\nexport enum EnumPostContentType {\n COVER = \"cover\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostContentCover = {\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: string[];\n };\n};\n\nexport type PostContentData =\n | PostContentCover\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData: PostContentData;\n contentOrder: number;\n contentType: EnumPostContentType;\n};\n\nexport interface PostFormData {\n content: PostContentFormData[];\n postType: EnumPostType;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n _id: string;\n contentData: Omit<PostContentData, \"imagesUpload\" | \"coverUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\"> & {\n _id: string;\n content: PostContentType;\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";AAIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACL,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gBAAa;AAJH,SAAAA;AAAA,GAAA;AAOL,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EAAAA,0BAAA,YAAS;AACT,EAAAA,0BAAA,iBAAc;AACd,EAAAA,0BAAA,aAAU;AACV,EAAAA,0BAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACpBL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,gBAAa;AAHH,SAAAA;AAAA,GAAA;AAML,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumPostType","EnumPostContentType"]}
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-B3lGLGxH.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-O7RsWypG.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DabCYr5t.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DSwmP6sp.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -245,13 +245,11 @@ type PosterUsageType = {
245
245
  month: string;
246
246
  count: number;
247
247
  };
248
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
248
+ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
249
249
  _id: string;
250
250
  adIds?: string[] | null;
251
- associates: AssociateType[] | null;
252
251
  createdAt: Date;
253
252
  deletedAt: Date | null;
254
- owner: OwnerType;
255
253
  posterUsage?: PosterUsageType | null;
256
254
  updatedAt: Date | null;
257
255
  };
@@ -245,13 +245,11 @@ type PosterUsageType = {
245
245
  month: string;
246
246
  count: number;
247
247
  };
248
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
248
+ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
249
249
  _id: string;
250
250
  adIds?: string[] | null;
251
- associates: AssociateType[] | null;
252
251
  createdAt: Date;
253
252
  deletedAt: Date | null;
254
- owner: OwnerType;
255
253
  posterUsage?: PosterUsageType | null;
256
254
  updatedAt: Date | null;
257
255
  };
@@ -35,6 +35,7 @@ __export(graphql_exports, {
35
35
  useCreateEvent: () => useCreateEvent,
36
36
  useCreateEventInfo: () => useCreateEventInfo,
37
37
  useCreatePartner: () => useCreatePartner,
38
+ useCreatePost: () => useCreatePost,
38
39
  useCreatePoster: () => useCreatePoster,
39
40
  useCreatePushToken: () => useCreatePushToken,
40
41
  useCreateRelation: () => useCreateRelation,
@@ -49,6 +50,7 @@ __export(graphql_exports, {
49
50
  useDeleteEvent: () => useDeleteEvent,
50
51
  useDeleteNotification: () => useDeleteNotification,
51
52
  useDeletePartner: () => useDeletePartner,
53
+ useDeletePost: () => useDeletePost,
52
54
  useDeleteRelation: () => useDeleteRelation,
53
55
  useDeleteTester: () => useDeleteTester,
54
56
  useDeleteUser: () => useDeleteUser,
@@ -69,6 +71,8 @@ __export(graphql_exports, {
69
71
  useGetPartner: () => useGetPartner,
70
72
  useGetPartners: () => useGetPartners,
71
73
  useGetPartnersByRegion: () => useGetPartnersByRegion,
74
+ useGetPost: () => useGetPost,
75
+ useGetPosts: () => useGetPosts,
72
76
  useGetRelation: () => useGetRelation,
73
77
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
74
78
  useGetResourceActivities: () => useGetResourceActivities,
@@ -111,6 +115,7 @@ __export(graphql_exports, {
111
115
  useUpdateEvent: () => useUpdateEvent,
112
116
  useUpdateEventInfo: () => useUpdateEventInfo,
113
117
  useUpdatePartner: () => useUpdatePartner,
118
+ useUpdatePost: () => useUpdatePost,
114
119
  useUpdateRelation: () => useUpdateRelation,
115
120
  useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
116
121
  useUpdateTester: () => useUpdateTester,
@@ -3012,6 +3017,139 @@ var useSearchPartners = (search, region) => {
3012
3017
  const partnersSearch = data?.partnersSearch || [];
3013
3018
  return { error, loading, partnersSearch, refetch };
3014
3019
  };
3020
+
3021
+ // src/graphql/hooks/post/hooksMutation.ts
3022
+ var import_client61 = require("@apollo/client");
3023
+
3024
+ // src/graphql/mutations/post.ts
3025
+ var import_client60 = require("@apollo/client");
3026
+
3027
+ // src/graphql/queries/post.ts
3028
+ var import_client59 = require("@apollo/client");
3029
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
3030
+ fragment PostContentDataFields on PostContentData {
3031
+ cover {
3032
+ ...ResourceImageFields
3033
+ }
3034
+ textarea {
3035
+ title
3036
+ data
3037
+ }
3038
+ images {
3039
+ ...ResourceImageFields
3040
+ }
3041
+ video {
3042
+ source
3043
+ title
3044
+ }
3045
+ list {
3046
+ title
3047
+ items
3048
+ }
3049
+ }
3050
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3051
+ `;
3052
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
3053
+ fragment PostContentFields on PostContentType {
3054
+ _id
3055
+ contentData {
3056
+ ...PostContentDataFields
3057
+ }
3058
+ contentOrder
3059
+ contentType
3060
+ }
3061
+ ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
3062
+ `;
3063
+ var POST_FIELDS_FRAGMENT = import_client59.gql`
3064
+ fragment PostFields on PostType {
3065
+ _id
3066
+ content {
3067
+ ...PostContentFields
3068
+ }
3069
+ postType
3070
+ tags
3071
+ title
3072
+ createdAt
3073
+ updatedAt
3074
+ }
3075
+ ${POST_CONTENT_FIELDS_FRAGMENT}
3076
+ `;
3077
+ var GET_POSTS = import_client59.gql`
3078
+ query getPosts {
3079
+ posts {
3080
+ ...PostFields
3081
+ }
3082
+ }
3083
+ ${POST_FIELDS_FRAGMENT}
3084
+ `;
3085
+ var GET_POST = import_client59.gql`
3086
+ query getPost($postId: ID!) {
3087
+ post(postId: $postId) {
3088
+ ...PostFields
3089
+ }
3090
+ }
3091
+ ${POST_FIELDS_FRAGMENT}
3092
+ `;
3093
+
3094
+ // src/graphql/mutations/post.ts
3095
+ var CREATE_POST_MUTATION = import_client60.gql`
3096
+ mutation createPost($input: PostInputType!) {
3097
+ createPost(input: $input) {
3098
+ ...PostFields
3099
+ }
3100
+ }
3101
+ ${POST_FIELDS_FRAGMENT}
3102
+ `;
3103
+ var UPDATE_POST_MUTATION = import_client60.gql`
3104
+ mutation updatePost($_id: ID!, $input: PostInputType!) {
3105
+ updatePost(_id: $_id, input: $input) {
3106
+ ...PostFields
3107
+ }
3108
+ }
3109
+ ${POST_FIELDS_FRAGMENT}
3110
+ `;
3111
+ var DELETE_POST_MUTATION = import_client60.gql`
3112
+ mutation deletePost($_id: ID!) {
3113
+ deletePost(_id: $_id)
3114
+ }
3115
+ `;
3116
+
3117
+ // src/graphql/hooks/post/hooksMutation.ts
3118
+ var useCreatePost = () => {
3119
+ const [createPost, { loading, error }] = (0, import_client61.useMutation)(CREATE_POST_MUTATION, {
3120
+ awaitRefetchQueries: true,
3121
+ refetchQueries: [{ query: GET_POSTS }]
3122
+ });
3123
+ return { createPost, error, loading };
3124
+ };
3125
+ var useUpdatePost = () => {
3126
+ const [updatePost, { loading, error }] = (0, import_client61.useMutation)(UPDATE_POST_MUTATION, {
3127
+ awaitRefetchQueries: true,
3128
+ refetchQueries: [{ query: GET_POSTS }]
3129
+ });
3130
+ return { error, loading, updatePost };
3131
+ };
3132
+ var useDeletePost = () => {
3133
+ const [deletePost, { loading, error }] = (0, import_client61.useMutation)(DELETE_POST_MUTATION, {
3134
+ awaitRefetchQueries: true,
3135
+ refetchQueries: [{ query: GET_POSTS }]
3136
+ });
3137
+ return { deletePost, error, loading };
3138
+ };
3139
+
3140
+ // src/graphql/hooks/post/hooksQuery.ts
3141
+ var import_client62 = require("@apollo/client");
3142
+ var useGetPosts = () => {
3143
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
3144
+ return { error, loading, posts: data?.posts || [], refetch };
3145
+ };
3146
+ var useGetPost = (postId) => {
3147
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
3148
+ skip: !postId,
3149
+ variables: { postId }
3150
+ });
3151
+ return { error, loading, post: data?.post || null, refetch };
3152
+ };
3015
3153
  // Annotate the CommonJS export names for ESM import in node:
3016
3154
  0 && (module.exports = {
3017
3155
  useAddParticipantToChat,
@@ -3029,6 +3167,7 @@ var useSearchPartners = (search, region) => {
3029
3167
  useCreateEvent,
3030
3168
  useCreateEventInfo,
3031
3169
  useCreatePartner,
3170
+ useCreatePost,
3032
3171
  useCreatePoster,
3033
3172
  useCreatePushToken,
3034
3173
  useCreateRelation,
@@ -3043,6 +3182,7 @@ var useSearchPartners = (search, region) => {
3043
3182
  useDeleteEvent,
3044
3183
  useDeleteNotification,
3045
3184
  useDeletePartner,
3185
+ useDeletePost,
3046
3186
  useDeleteRelation,
3047
3187
  useDeleteTester,
3048
3188
  useDeleteUser,
@@ -3063,6 +3203,8 @@ var useSearchPartners = (search, region) => {
3063
3203
  useGetPartner,
3064
3204
  useGetPartners,
3065
3205
  useGetPartnersByRegion,
3206
+ useGetPost,
3207
+ useGetPosts,
3066
3208
  useGetRelation,
3067
3209
  useGetRelationByEventAndVendor,
3068
3210
  useGetResourceActivities,
@@ -3105,6 +3247,7 @@ var useSearchPartners = (search, region) => {
3105
3247
  useUpdateEvent,
3106
3248
  useUpdateEventInfo,
3107
3249
  useUpdatePartner,
3250
+ useUpdatePost,
3108
3251
  useUpdateRelation,
3109
3252
  useUpdateSubscriptionPlan,
3110
3253
  useUpdateTester,