@axcode/axcloud-sdk 0.1.2 → 0.1.3

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/index.d.mts CHANGED
@@ -900,12 +900,16 @@ declare function useMySection(options?: {
900
900
  * const { sections } = useSections()
901
901
  * ```
902
902
  */
903
+ interface SectionsResponse {
904
+ sections: Section[];
905
+ total: number;
906
+ }
903
907
  declare function useSections(): {
904
908
  sections: Section[];
905
909
  isLoading: boolean;
906
910
  isError: boolean;
907
911
  error: Error | null;
908
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Section[], Error>>;
912
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<SectionsResponse, Error>>;
909
913
  };
910
914
 
911
915
  interface UseFormsOptions {
package/dist/index.d.ts CHANGED
@@ -900,12 +900,16 @@ declare function useMySection(options?: {
900
900
  * const { sections } = useSections()
901
901
  * ```
902
902
  */
903
+ interface SectionsResponse {
904
+ sections: Section[];
905
+ total: number;
906
+ }
903
907
  declare function useSections(): {
904
908
  sections: Section[];
905
909
  isLoading: boolean;
906
910
  isError: boolean;
907
911
  error: Error | null;
908
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Section[], Error>>;
912
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<SectionsResponse, Error>>;
909
913
  };
910
914
 
911
915
  interface UseFormsOptions {
package/dist/index.js CHANGED
@@ -832,7 +832,7 @@ function useSections() {
832
832
  // 10 minutes
833
833
  });
834
834
  return {
835
- sections: query.data ?? [],
835
+ sections: query.data?.sections ?? [],
836
836
  isLoading: query.isLoading,
837
837
  isError: query.isError,
838
838
  error: query.error,