@solibo/solibo-react 1.33.8 → 1.33.9

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.
@@ -53,6 +53,16 @@ export declare const useDeleteNeighborhoodPostReaction: () => import("../../../i
53
53
  companyId: import("@solibo/solibo-sdk").Id;
54
54
  postId: import("@solibo/solibo-sdk").Id;
55
55
  }, unknown>;
56
+ export declare const usePermanentlyDeleteHomepagePostComment: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
57
+ companyId: import("@solibo/solibo-sdk").Id;
58
+ postId: import("@solibo/solibo-sdk").Id;
59
+ commentId: import("@solibo/solibo-sdk").Id;
60
+ }, unknown>;
61
+ export declare const usePermanentlyDeleteNeighborhoodPostComment: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
62
+ companyId: import("@solibo/solibo-sdk").Id;
63
+ postId: import("@solibo/solibo-sdk").Id;
64
+ commentId: import("@solibo/solibo-sdk").Id;
65
+ }, unknown>;
56
66
  export declare const usePutHomepageCommentReaction: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
57
67
  companyId: import("@solibo/solibo-sdk").Id;
58
68
  postId: import("@solibo/solibo-sdk").Id;
@@ -75,6 +85,16 @@ export declare const usePutNeighborhoodPostReaction: () => import("../../../inde
75
85
  postId: import("@solibo/solibo-sdk").Id;
76
86
  input: import("@solibo/solibo-sdk").PutCommunicationReactionCommand | import("@solibo/solibo-sdk").SdkInput<import("@solibo/solibo-sdk").PutCommunicationReactionCommandProps>;
77
87
  }, unknown>;
88
+ export declare const useRestoreHomepagePostComment: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
89
+ companyId: import("@solibo/solibo-sdk").Id;
90
+ postId: import("@solibo/solibo-sdk").Id;
91
+ commentId: import("@solibo/solibo-sdk").Id;
92
+ }, unknown>;
93
+ export declare const useRestoreNeighborhoodPostComment: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
94
+ companyId: import("@solibo/solibo-sdk").Id;
95
+ postId: import("@solibo/solibo-sdk").Id;
96
+ commentId: import("@solibo/solibo-sdk").Id;
97
+ }, unknown>;
78
98
  export declare const useUpdateHomepagePostComment: () => import("../../../index.js").MutationResultWithValidation<void, Error, {
79
99
  companyId: import("@solibo/solibo-sdk").Id;
80
100
  postId: import("@solibo/solibo-sdk").Id;
@@ -1,4 +1,4 @@
1
- import { createHomepagePostCommentMutationOptions, createNeighborhoodCommonFeedPostMutationOptions, createNeighborhoodGroupMutationOptions, createNeighborhoodGroupPostMutationOptions, createNeighborhoodPostCommentMutationOptions, deleteHomepageCommentReactionMutationOptions, deleteHomepagePostCommentMutationOptions, deleteHomepagePostReactionMutationOptions, deleteNeighborhoodCommentReactionMutationOptions, deleteNeighborhoodPostCommentMutationOptions, deleteNeighborhoodPostMutationOptions, deleteNeighborhoodPostReactionMutationOptions, putHomepageCommentReactionMutationOptions, putHomepagePostReactionMutationOptions, putNeighborhoodCommentReactionMutationOptions, putNeighborhoodPostReactionMutationOptions, updateHomepagePostCommentModerationStatusMutationOptions, updateHomepagePostCommentMutationOptions, updateHomepagePostCommentsEnabledMutationOptions, updateHomepagePostNotificationPreferenceMutationOptions, updateNeighborhoodCommonFeedFollowMutationOptions, updateNeighborhoodGroupFollowMutationOptions, updateNeighborhoodGroupModerationStatusMutationOptions, updateNeighborhoodGroupMutationOptions, updateNeighborhoodPostCommentModerationStatusMutationOptions, updateNeighborhoodPostCommentMutationOptions, updateNeighborhoodPostCommentsEnabledMutationOptions, updateNeighborhoodPostModerationStatusMutationOptions, updateNeighborhoodPostMutationOptions, updateNeighborhoodPostNotificationPreferenceMutationOptions, } from '@solibo/solibo-query';
1
+ import { createHomepagePostCommentMutationOptions, createNeighborhoodCommonFeedPostMutationOptions, createNeighborhoodGroupMutationOptions, createNeighborhoodGroupPostMutationOptions, createNeighborhoodPostCommentMutationOptions, deleteHomepageCommentReactionMutationOptions, deleteHomepagePostCommentMutationOptions, deleteHomepagePostReactionMutationOptions, deleteNeighborhoodCommentReactionMutationOptions, deleteNeighborhoodPostCommentMutationOptions, deleteNeighborhoodPostMutationOptions, deleteNeighborhoodPostReactionMutationOptions, permanentlyDeleteHomepagePostCommentMutationOptions, permanentlyDeleteNeighborhoodPostCommentMutationOptions, putHomepageCommentReactionMutationOptions, putHomepagePostReactionMutationOptions, putNeighborhoodCommentReactionMutationOptions, putNeighborhoodPostReactionMutationOptions, restoreHomepagePostCommentMutationOptions, restoreNeighborhoodPostCommentMutationOptions, updateHomepagePostCommentModerationStatusMutationOptions, updateHomepagePostCommentMutationOptions, updateHomepagePostCommentsEnabledMutationOptions, updateHomepagePostNotificationPreferenceMutationOptions, updateNeighborhoodCommonFeedFollowMutationOptions, updateNeighborhoodGroupFollowMutationOptions, updateNeighborhoodGroupModerationStatusMutationOptions, updateNeighborhoodGroupMutationOptions, updateNeighborhoodPostCommentModerationStatusMutationOptions, updateNeighborhoodPostCommentMutationOptions, updateNeighborhoodPostCommentsEnabledMutationOptions, updateNeighborhoodPostModerationStatusMutationOptions, updateNeighborhoodPostMutationOptions, updateNeighborhoodPostNotificationPreferenceMutationOptions, } from '@solibo/solibo-query';
2
2
  import { useQueryClient } from '@tanstack/react-query';
3
3
  import { useSdk } from '../../../sdkProvider.js';
4
4
  import { useMutation } from '../../../utils/useMutation.js';
@@ -19,10 +19,14 @@ export const useDeleteNeighborhoodCommentReaction = () => useResidentCommunicati
19
19
  export const useDeleteNeighborhoodPost = () => useResidentCommunicationMutation(deleteNeighborhoodPostMutationOptions);
20
20
  export const useDeleteNeighborhoodPostComment = () => useResidentCommunicationMutation(deleteNeighborhoodPostCommentMutationOptions);
21
21
  export const useDeleteNeighborhoodPostReaction = () => useResidentCommunicationMutation(deleteNeighborhoodPostReactionMutationOptions);
22
+ export const usePermanentlyDeleteHomepagePostComment = () => useResidentCommunicationMutation(permanentlyDeleteHomepagePostCommentMutationOptions);
23
+ export const usePermanentlyDeleteNeighborhoodPostComment = () => useResidentCommunicationMutation(permanentlyDeleteNeighborhoodPostCommentMutationOptions);
22
24
  export const usePutHomepageCommentReaction = () => useResidentCommunicationMutation(putHomepageCommentReactionMutationOptions);
23
25
  export const usePutHomepagePostReaction = () => useResidentCommunicationMutation(putHomepagePostReactionMutationOptions);
24
26
  export const usePutNeighborhoodCommentReaction = () => useResidentCommunicationMutation(putNeighborhoodCommentReactionMutationOptions);
25
27
  export const usePutNeighborhoodPostReaction = () => useResidentCommunicationMutation(putNeighborhoodPostReactionMutationOptions);
28
+ export const useRestoreHomepagePostComment = () => useResidentCommunicationMutation(restoreHomepagePostCommentMutationOptions);
29
+ export const useRestoreNeighborhoodPostComment = () => useResidentCommunicationMutation(restoreNeighborhoodPostCommentMutationOptions);
26
30
  export const useUpdateHomepagePostComment = () => useResidentCommunicationMutation(updateHomepagePostCommentMutationOptions);
27
31
  export const useUpdateHomepagePostCommentModerationStatus = () => useResidentCommunicationMutation(updateHomepagePostCommentModerationStatusMutationOptions);
28
32
  export const useUpdateHomepagePostCommentsEnabled = () => useResidentCommunicationMutation(updateHomepagePostCommentsEnabledMutationOptions);
@@ -1 +1 @@
1
- {"version":3,"file":"useResidentCommunicationMutations.js","sourceRoot":"","sources":["../../../../src/api/commands/residentCommunication/useResidentCommunicationMutations.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wCAAwC,EACxC,+CAA+C,EAC/C,sCAAsC,EACtC,0CAA0C,EAC1C,4CAA4C,EAC5C,4CAA4C,EAC5C,wCAAwC,EACxC,yCAAyC,EACzC,gDAAgD,EAChD,4CAA4C,EAC5C,qCAAqC,EACrC,6CAA6C,EAC7C,yCAAyC,EACzC,sCAAsC,EACtC,6CAA6C,EAC7C,0CAA0C,EAC1C,wDAAwD,EACxD,wCAAwC,EACxC,gDAAgD,EAChD,uDAAuD,EACvD,iDAAiD,EACjD,4CAA4C,EAC5C,sDAAsD,EACtD,sCAAsC,EACtC,4DAA4D,EAC5D,4CAA4C,EAC5C,oDAAoD,EACpD,qDAAqD,EACrD,qCAAqC,EACrC,2DAA2D,GAC9D,MAAM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,CACjD,gCAAgC,CAC5B,4CAA4C,CAC/C,CAAC;AACN,MAAM,CAAC,MAAM,0CAA0C,GAAG,GAAG,EAAE,CAC3D,gCAAgC,CAC5B,sDAAsD,CACzD,CAAC;AACN,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAC1C,gCAAgC,CAAC,qCAAqC,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE,CACjD,gCAAgC,CAC5B,4CAA4C,CAC/C,CAAC;AACN,MAAM,CAAC,MAAM,gDAAgD,GAAG,GAAG,EAAE,CACjE,gCAAgC,CAC5B,4DAA4D,CAC/D,CAAC;AACN,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAG,EAAE,CACzD,gCAAgC,CAC5B,oDAAoD,CACvD,CAAC;AACN,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE,CAC1D,gCAAgC,CAC5B,qDAAqD,CACxD,CAAC;AACN,MAAM,CAAC,MAAM,+CAA+C,GAAG,GAAG,EAAE,CAChE,gCAAgC,CAC5B,2DAA2D,CAC9D,CAAC","sourcesContent":["import type { SoliboClient } from '@solibo/solibo-sdk';\nimport {\n createHomepagePostCommentMutationOptions,\n createNeighborhoodCommonFeedPostMutationOptions,\n createNeighborhoodGroupMutationOptions,\n createNeighborhoodGroupPostMutationOptions,\n createNeighborhoodPostCommentMutationOptions,\n deleteHomepageCommentReactionMutationOptions,\n deleteHomepagePostCommentMutationOptions,\n deleteHomepagePostReactionMutationOptions,\n deleteNeighborhoodCommentReactionMutationOptions,\n deleteNeighborhoodPostCommentMutationOptions,\n deleteNeighborhoodPostMutationOptions,\n deleteNeighborhoodPostReactionMutationOptions,\n putHomepageCommentReactionMutationOptions,\n putHomepagePostReactionMutationOptions,\n putNeighborhoodCommentReactionMutationOptions,\n putNeighborhoodPostReactionMutationOptions,\n updateHomepagePostCommentModerationStatusMutationOptions,\n updateHomepagePostCommentMutationOptions,\n updateHomepagePostCommentsEnabledMutationOptions,\n updateHomepagePostNotificationPreferenceMutationOptions,\n updateNeighborhoodCommonFeedFollowMutationOptions,\n updateNeighborhoodGroupFollowMutationOptions,\n updateNeighborhoodGroupModerationStatusMutationOptions,\n updateNeighborhoodGroupMutationOptions,\n updateNeighborhoodPostCommentModerationStatusMutationOptions,\n updateNeighborhoodPostCommentMutationOptions,\n updateNeighborhoodPostCommentsEnabledMutationOptions,\n updateNeighborhoodPostModerationStatusMutationOptions,\n updateNeighborhoodPostMutationOptions,\n updateNeighborhoodPostNotificationPreferenceMutationOptions,\n} from '@solibo/solibo-query';\nimport type {\n DefaultError,\n QueryClient,\n UseMutationOptions,\n} from '@tanstack/react-query';\nimport { useQueryClient } from '@tanstack/react-query';\nimport { useSdk } from '../../../sdkProvider.js';\nimport { useMutation } from '../../../utils/useMutation.js';\n\nfunction useResidentCommunicationMutation<TData, TVariables>(\n factory: (\n sdk: SoliboClient,\n queryClient: QueryClient\n ) => UseMutationOptions<TData, DefaultError, TVariables>\n) {\n const queryClient = useQueryClient();\n const sdk = useSdk();\n return useMutation(factory(sdk, queryClient));\n}\n\nexport const useCreateHomepagePostComment = () =>\n useResidentCommunicationMutation(createHomepagePostCommentMutationOptions);\nexport const useCreateNeighborhoodCommonFeedPost = () =>\n useResidentCommunicationMutation(\n createNeighborhoodCommonFeedPostMutationOptions\n );\nexport const useCreateNeighborhoodGroup = () =>\n useResidentCommunicationMutation(createNeighborhoodGroupMutationOptions);\nexport const useCreateNeighborhoodGroupPost = () =>\n useResidentCommunicationMutation(\n createNeighborhoodGroupPostMutationOptions\n );\nexport const useCreateNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n createNeighborhoodPostCommentMutationOptions\n );\nexport const useDeleteHomepageCommentReaction = () =>\n useResidentCommunicationMutation(\n deleteHomepageCommentReactionMutationOptions\n );\nexport const useDeleteHomepagePostComment = () =>\n useResidentCommunicationMutation(deleteHomepagePostCommentMutationOptions);\nexport const useDeleteHomepagePostReaction = () =>\n useResidentCommunicationMutation(deleteHomepagePostReactionMutationOptions);\nexport const useDeleteNeighborhoodCommentReaction = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodCommentReactionMutationOptions\n );\nexport const useDeleteNeighborhoodPost = () =>\n useResidentCommunicationMutation(deleteNeighborhoodPostMutationOptions);\nexport const useDeleteNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodPostCommentMutationOptions\n );\nexport const useDeleteNeighborhoodPostReaction = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodPostReactionMutationOptions\n );\nexport const usePutHomepageCommentReaction = () =>\n useResidentCommunicationMutation(putHomepageCommentReactionMutationOptions);\nexport const usePutHomepagePostReaction = () =>\n useResidentCommunicationMutation(putHomepagePostReactionMutationOptions);\nexport const usePutNeighborhoodCommentReaction = () =>\n useResidentCommunicationMutation(\n putNeighborhoodCommentReactionMutationOptions\n );\nexport const usePutNeighborhoodPostReaction = () =>\n useResidentCommunicationMutation(\n putNeighborhoodPostReactionMutationOptions\n );\nexport const useUpdateHomepagePostComment = () =>\n useResidentCommunicationMutation(updateHomepagePostCommentMutationOptions);\nexport const useUpdateHomepagePostCommentModerationStatus = () =>\n useResidentCommunicationMutation(\n updateHomepagePostCommentModerationStatusMutationOptions\n );\nexport const useUpdateHomepagePostCommentsEnabled = () =>\n useResidentCommunicationMutation(\n updateHomepagePostCommentsEnabledMutationOptions\n );\nexport const useUpdateHomepagePostNotificationPreference = () =>\n useResidentCommunicationMutation(\n updateHomepagePostNotificationPreferenceMutationOptions\n );\nexport const useUpdateNeighborhoodCommonFeedFollow = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodCommonFeedFollowMutationOptions\n );\nexport const useUpdateNeighborhoodGroup = () =>\n useResidentCommunicationMutation(updateNeighborhoodGroupMutationOptions);\nexport const useUpdateNeighborhoodGroupFollow = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodGroupFollowMutationOptions\n );\nexport const useUpdateNeighborhoodGroupModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodGroupModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPost = () =>\n useResidentCommunicationMutation(updateNeighborhoodPostMutationOptions);\nexport const useUpdateNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentMutationOptions\n );\nexport const useUpdateNeighborhoodPostCommentModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPostCommentsEnabled = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentsEnabledMutationOptions\n );\nexport const useUpdateNeighborhoodPostModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPostNotificationPreference = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostNotificationPreferenceMutationOptions\n );\n"]}
1
+ {"version":3,"file":"useResidentCommunicationMutations.js","sourceRoot":"","sources":["../../../../src/api/commands/residentCommunication/useResidentCommunicationMutations.ts"],"names":[],"mappings":"AACA,OAAO,EACH,wCAAwC,EACxC,+CAA+C,EAC/C,sCAAsC,EACtC,0CAA0C,EAC1C,4CAA4C,EAC5C,4CAA4C,EAC5C,wCAAwC,EACxC,yCAAyC,EACzC,gDAAgD,EAChD,4CAA4C,EAC5C,qCAAqC,EACrC,6CAA6C,EAC7C,mDAAmD,EACnD,uDAAuD,EACvD,yCAAyC,EACzC,sCAAsC,EACtC,6CAA6C,EAC7C,0CAA0C,EAC1C,yCAAyC,EACzC,6CAA6C,EAC7C,wDAAwD,EACxD,wCAAwC,EACxC,gDAAgD,EAChD,uDAAuD,EACvD,iDAAiD,EACjD,4CAA4C,EAC5C,sDAAsD,EACtD,sCAAsC,EACtC,4DAA4D,EAC5D,4CAA4C,EAC5C,oDAAoD,EACpD,qDAAqD,EACrD,qCAAqC,EACrC,2DAA2D,GAC9D,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAA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nD,CAAC;AACN,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,EAAE,CAC5D,gCAAgC,CAC5B,uDAAuD,CAC1D,CAAC;AACN,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,EAAE,CACtD,gCAAgC,CAC5B,iDAAiD,CACpD,CAAC;AACN,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAC3C,gCAAgC,CAAC,sCAAsC,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE,CACjD,gCAAgC,CAC5B,4CAA4C,CAC/C,CAAC;AACN,MAAM,CAAC,MAAM,0CAA0C,GAAG,GAAG,EAAE,CAC3D,gCAAgC,CAC5B,sDAAsD,CACzD,CAAC;AACN,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAC1C,gCAAgC,CAAC,qCAAqC,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE,CACjD,gCAAgC,CAC5B,4CAA4C,CAC/C,CAAC;AACN,MAAM,CAAC,MAAM,gDAAgD,GAAG,GAAG,EAAE,CACjE,gCAAgC,CAC5B,4DAA4D,CAC/D,CAAC;AACN,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAG,EAAE,CACzD,gCAAgC,CAC5B,oDAAoD,CACvD,CAAC;AACN,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE,CAC1D,gCAAgC,CAC5B,qDAAqD,CACxD,CAAC;AACN,MAAM,CAAC,MAAM,+CAA+C,GAAG,GAAG,EAAE,CAChE,gCAAgC,CAC5B,2DAA2D,CAC9D,CAAC","sourcesContent":["import type { SoliboClient } from '@solibo/solibo-sdk';\nimport {\n createHomepagePostCommentMutationOptions,\n createNeighborhoodCommonFeedPostMutationOptions,\n createNeighborhoodGroupMutationOptions,\n createNeighborhoodGroupPostMutationOptions,\n createNeighborhoodPostCommentMutationOptions,\n deleteHomepageCommentReactionMutationOptions,\n deleteHomepagePostCommentMutationOptions,\n deleteHomepagePostReactionMutationOptions,\n deleteNeighborhoodCommentReactionMutationOptions,\n deleteNeighborhoodPostCommentMutationOptions,\n deleteNeighborhoodPostMutationOptions,\n deleteNeighborhoodPostReactionMutationOptions,\n permanentlyDeleteHomepagePostCommentMutationOptions,\n permanentlyDeleteNeighborhoodPostCommentMutationOptions,\n putHomepageCommentReactionMutationOptions,\n putHomepagePostReactionMutationOptions,\n putNeighborhoodCommentReactionMutationOptions,\n putNeighborhoodPostReactionMutationOptions,\n restoreHomepagePostCommentMutationOptions,\n restoreNeighborhoodPostCommentMutationOptions,\n updateHomepagePostCommentModerationStatusMutationOptions,\n updateHomepagePostCommentMutationOptions,\n updateHomepagePostCommentsEnabledMutationOptions,\n updateHomepagePostNotificationPreferenceMutationOptions,\n updateNeighborhoodCommonFeedFollowMutationOptions,\n updateNeighborhoodGroupFollowMutationOptions,\n updateNeighborhoodGroupModerationStatusMutationOptions,\n updateNeighborhoodGroupMutationOptions,\n updateNeighborhoodPostCommentModerationStatusMutationOptions,\n updateNeighborhoodPostCommentMutationOptions,\n updateNeighborhoodPostCommentsEnabledMutationOptions,\n updateNeighborhoodPostModerationStatusMutationOptions,\n updateNeighborhoodPostMutationOptions,\n updateNeighborhoodPostNotificationPreferenceMutationOptions,\n} from '@solibo/solibo-query';\nimport type {\n DefaultError,\n QueryClient,\n UseMutationOptions,\n} from '@tanstack/react-query';\nimport { useQueryClient } from '@tanstack/react-query';\nimport { useSdk } from '../../../sdkProvider.js';\nimport { useMutation } from '../../../utils/useMutation.js';\n\nfunction useResidentCommunicationMutation<TData, TVariables>(\n factory: (\n sdk: SoliboClient,\n queryClient: QueryClient\n ) => UseMutationOptions<TData, DefaultError, TVariables>\n) {\n const queryClient = useQueryClient();\n const sdk = useSdk();\n return useMutation(factory(sdk, queryClient));\n}\n\nexport const useCreateHomepagePostComment = () =>\n useResidentCommunicationMutation(createHomepagePostCommentMutationOptions);\nexport const useCreateNeighborhoodCommonFeedPost = () =>\n useResidentCommunicationMutation(\n createNeighborhoodCommonFeedPostMutationOptions\n );\nexport const useCreateNeighborhoodGroup = () =>\n useResidentCommunicationMutation(createNeighborhoodGroupMutationOptions);\nexport const useCreateNeighborhoodGroupPost = () =>\n useResidentCommunicationMutation(\n createNeighborhoodGroupPostMutationOptions\n );\nexport const useCreateNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n createNeighborhoodPostCommentMutationOptions\n );\nexport const useDeleteHomepageCommentReaction = () =>\n useResidentCommunicationMutation(\n deleteHomepageCommentReactionMutationOptions\n );\nexport const useDeleteHomepagePostComment = () =>\n useResidentCommunicationMutation(deleteHomepagePostCommentMutationOptions);\nexport const useDeleteHomepagePostReaction = () =>\n useResidentCommunicationMutation(deleteHomepagePostReactionMutationOptions);\nexport const useDeleteNeighborhoodCommentReaction = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodCommentReactionMutationOptions\n );\nexport const useDeleteNeighborhoodPost = () =>\n useResidentCommunicationMutation(deleteNeighborhoodPostMutationOptions);\nexport const useDeleteNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodPostCommentMutationOptions\n );\nexport const useDeleteNeighborhoodPostReaction = () =>\n useResidentCommunicationMutation(\n deleteNeighborhoodPostReactionMutationOptions\n );\nexport const usePermanentlyDeleteHomepagePostComment = () =>\n useResidentCommunicationMutation(\n permanentlyDeleteHomepagePostCommentMutationOptions\n );\nexport const usePermanentlyDeleteNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n permanentlyDeleteNeighborhoodPostCommentMutationOptions\n );\nexport const usePutHomepageCommentReaction = () =>\n useResidentCommunicationMutation(putHomepageCommentReactionMutationOptions);\nexport const usePutHomepagePostReaction = () =>\n useResidentCommunicationMutation(putHomepagePostReactionMutationOptions);\nexport const usePutNeighborhoodCommentReaction = () =>\n useResidentCommunicationMutation(\n putNeighborhoodCommentReactionMutationOptions\n );\nexport const usePutNeighborhoodPostReaction = () =>\n useResidentCommunicationMutation(\n putNeighborhoodPostReactionMutationOptions\n );\nexport const useRestoreHomepagePostComment = () =>\n useResidentCommunicationMutation(restoreHomepagePostCommentMutationOptions);\nexport const useRestoreNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n restoreNeighborhoodPostCommentMutationOptions\n );\nexport const useUpdateHomepagePostComment = () =>\n useResidentCommunicationMutation(updateHomepagePostCommentMutationOptions);\nexport const useUpdateHomepagePostCommentModerationStatus = () =>\n useResidentCommunicationMutation(\n updateHomepagePostCommentModerationStatusMutationOptions\n );\nexport const useUpdateHomepagePostCommentsEnabled = () =>\n useResidentCommunicationMutation(\n updateHomepagePostCommentsEnabledMutationOptions\n );\nexport const useUpdateHomepagePostNotificationPreference = () =>\n useResidentCommunicationMutation(\n updateHomepagePostNotificationPreferenceMutationOptions\n );\nexport const useUpdateNeighborhoodCommonFeedFollow = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodCommonFeedFollowMutationOptions\n );\nexport const useUpdateNeighborhoodGroup = () =>\n useResidentCommunicationMutation(updateNeighborhoodGroupMutationOptions);\nexport const useUpdateNeighborhoodGroupFollow = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodGroupFollowMutationOptions\n );\nexport const useUpdateNeighborhoodGroupModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodGroupModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPost = () =>\n useResidentCommunicationMutation(updateNeighborhoodPostMutationOptions);\nexport const useUpdateNeighborhoodPostComment = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentMutationOptions\n );\nexport const useUpdateNeighborhoodPostCommentModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPostCommentsEnabled = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostCommentsEnabledMutationOptions\n );\nexport const useUpdateNeighborhoodPostModerationStatus = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostModerationStatusMutationOptions\n );\nexport const useUpdateNeighborhoodPostNotificationPreference = () =>\n useResidentCommunicationMutation(\n updateNeighborhoodPostNotificationPreferenceMutationOptions\n );\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-react",
3
- "version": "1.33.8",
3
+ "version": "1.33.9",
4
4
  "description": "React hooks for the Solibo Home SDK, built on @solibo/solibo-query. Solibo Home is the platform for owning and managing homes in Norway.",
5
5
  "homepage": "https://sdk.solibo.no",
6
6
  "repository": {
@@ -38,8 +38,8 @@
38
38
  "react": "^19.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@solibo/solibo-query": "1.33.8",
42
- "@solibo/solibo-sdk": "1.33.8"
41
+ "@solibo/solibo-query": "1.33.9",
42
+ "@solibo/solibo-sdk": "1.33.9"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@eslint/js": "^10.0.1",