@ckbox/core 1.2.0-dev.0 → 1.2.0-dev.1
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/README.md +3 -3
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/components/assetSize/AssetSize.d.ts +0 -12
- package/dist/components/assetSize/getAssetSize.d.ts +0 -1
- package/dist/components/assetSize/index.d.ts +0 -2
- package/dist/components/assets/Assets.d.ts +0 -72
- package/dist/components/assets/AssetsBottombar.d.ts +0 -33
- package/dist/components/assets/AssetsTopbar.d.ts +0 -71
- package/dist/components/assets/asset/Asset.d.ts +0 -45
- package/dist/components/assets/asset/AssetPreview.d.ts +0 -45
- package/dist/components/assets/asset/index.d.ts +0 -1
- package/dist/components/assets/assetEditForm/AssetEditForm.d.ts +0 -39
- package/dist/components/assets/assetEditForm/index.d.ts +0 -1
- package/dist/components/assets/assetEditForm/useFormValidation.d.ts +0 -8
- package/dist/components/assets/assetPropertiesDialog/AssetPropertiesDialog.d.ts +0 -27
- package/dist/components/assets/assetPropertiesDialog/index.d.ts +0 -1
- package/dist/components/assets/assetPropertiesDialog/useFormValidation.d.ts +0 -8
- package/dist/components/assets/assetPropertiesDrawer/AssetPropertiesDrawer.d.ts +0 -35
- package/dist/components/assets/assetPropertiesDrawer/index.d.ts +0 -1
- package/dist/components/assets/assetsActions/index.d.ts +0 -1
- package/dist/components/assets/assetsActions/useAssetsActions.d.ts +0 -35
- package/dist/components/assets/assetsContent/AssetGalleryItem.d.ts +0 -73
- package/dist/components/assets/assetsContent/AssetsContent.d.ts +0 -51
- package/dist/components/assets/assetsContent/index.d.ts +0 -1
- package/dist/components/assets/assetsDeleteDialog/AssetsDeleteDialog.d.ts +0 -22
- package/dist/components/assets/assetsDeleteDialog/index.d.ts +0 -1
- package/dist/components/assets/assetsPagination/index.d.ts +0 -1
- package/dist/components/assets/assetsPagination/useAssetsPagination.d.ts +0 -38
- package/dist/components/assets/assetsPreview/AssetsPreview.d.ts +0 -54
- package/dist/components/assets/assetsPreview/index.d.ts +0 -1
- package/dist/components/assets/assetsSearchDialog/AssetsSearchDialog.d.ts +0 -18
- package/dist/components/assets/assetsSearchDialog/constants.d.ts +0 -12
- package/dist/components/assets/assetsSearchDialog/form/AssetsSearchDialogForm.d.ts +0 -22
- package/dist/components/assets/assetsSearchDialog/form/index.d.ts +0 -1
- package/dist/components/assets/assetsSearchDialog/index.d.ts +0 -1
- package/dist/components/assets/assetsSearchDialog/recentSearchItem/RecentSearchItem.d.ts +0 -23
- package/dist/components/assets/assetsSearchDialog/recentSearchItem/index.d.ts +0 -1
- package/dist/components/assets/assetsSearchDialog/utils.d.ts +0 -82
- package/dist/components/assets/assetsSelection/index.d.ts +0 -1
- package/dist/components/assets/assetsSelection/useAssetsSelection.d.ts +0 -25
- package/dist/components/assets/constants/constants.d.ts +0 -13
- package/dist/components/assets/constants/index.d.ts +0 -1
- package/dist/components/assets/displayOptions/DisplayOptions.d.ts +0 -55
- package/dist/components/assets/displayOptions/index.d.ts +0 -2
- package/dist/components/assets/index.d.ts +0 -1
- package/dist/components/assets/loader/GalleryLoader.d.ts +0 -25
- package/dist/components/assets/loader/index.d.ts +0 -2
- package/dist/components/assets/loader/useLoader.d.ts +0 -14
- package/dist/components/assets/srcSet/index.d.ts +0 -1
- package/dist/components/assets/srcSet/useSrcSet.d.ts +0 -37
- package/dist/components/assets/uploadIndicator/UploadIndicator.d.ts +0 -3
- package/dist/components/assets/uploadIndicator/index.d.ts +0 -1
- package/dist/components/categoryPropertiesDrawer/CategoryPropertiesDrawer.d.ts +0 -38
- package/dist/components/categoryPropertiesDrawer/index.d.ts +0 -1
- package/dist/components/date/Date.d.ts +0 -12
- package/dist/components/date/index.d.ts +0 -1
- package/dist/components/errorContainer/ErrorContainer.d.ts +0 -9
- package/dist/components/errorContainer/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -9
- package/dist/components/notifications/Notifications.d.ts +0 -3
- package/dist/components/notifications/index.d.ts +0 -1
- package/dist/components/timeLeft/TimeLeft.d.ts +0 -15
- package/dist/components/timeLeft/index.d.ts +0 -1
- package/dist/components/uploadButton/UploadButton.d.ts +0 -10
- package/dist/components/uploadButton/index.d.ts +0 -1
- package/dist/components/uploadDialog/UploadDialog.d.ts +0 -3
- package/dist/components/uploadDialog/index.d.ts +0 -1
- package/dist/components/uploadDialog/uploadDialogFooter/UploadDialogFooter.d.ts +0 -18
- package/dist/components/uploadDialog/uploadDialogFooter/index.d.ts +0 -1
- package/dist/components/uploadDialog/uploadProgressPanel/UploadProgressPanel.d.ts +0 -50
- package/dist/components/uploadDialog/uploadProgressPanel/index.d.ts +0 -1
- package/dist/components/uploadDialog/uploadProgressPanel/utils.d.ts +0 -29
- package/dist/components/uploadDialog/uploadQueue/UploadQueue.d.ts +0 -18
- package/dist/components/uploadDialog/uploadQueue/index.d.ts +0 -1
- package/dist/components/uploadDialog/utils.d.ts +0 -12
- package/dist/constants/constants.d.ts +0 -36
- package/dist/constants/index.d.ts +0 -1
- package/dist/core/Core.d.ts +0 -5
- package/dist/core/CoreContext.d.ts +0 -44
- package/dist/core/CoreErrorBoundary.d.ts +0 -26
- package/dist/core/CoreFallbackProviders.d.ts +0 -9
- package/dist/core/CoreProviders.d.ts +0 -3
- package/dist/core/index.d.ts +0 -4
- package/dist/providers/api/ApiContext.d.ts +0 -12
- package/dist/providers/api/ApiProvider.d.ts +0 -17
- package/dist/providers/api/index.d.ts +0 -3
- package/dist/providers/api/useApi.d.ts +0 -42
- package/dist/providers/assetsConfig/AssetsConfigContext.d.ts +0 -41
- package/dist/providers/assetsConfig/AssetsConfigProvider.d.ts +0 -16
- package/dist/providers/assetsConfig/index.d.ts +0 -3
- package/dist/providers/assetsConfig/utils.d.ts +0 -11
- package/dist/providers/auth/AuthContext.d.ts +0 -16
- package/dist/providers/auth/AuthProvider.d.ts +0 -14
- package/dist/providers/auth/index.d.ts +0 -3
- package/dist/providers/auth/useAuth.d.ts +0 -4
- package/dist/providers/categoriesConfig/CategoriesConfigContext.d.ts +0 -24
- package/dist/providers/categoriesConfig/CategoriesConfigProvider.d.ts +0 -10
- package/dist/providers/categoriesConfig/index.d.ts +0 -2
- package/dist/providers/categoriesConfig/utils.d.ts +0 -16
- package/dist/providers/data/hooks/assets/index.d.ts +0 -7
- package/dist/providers/data/hooks/assets/useDeleteAssets.d.ts +0 -71
- package/dist/providers/data/hooks/assets/useGetAsset.d.ts +0 -6
- package/dist/providers/data/hooks/assets/useGetCategoryAssets.d.ts +0 -11
- package/dist/providers/data/hooks/assets/useGetRecentAssets.d.ts +0 -10
- package/dist/providers/data/hooks/assets/useLazyGetAsset.d.ts +0 -10
- package/dist/providers/data/hooks/assets/useUpdateAsset.d.ts +0 -77
- package/dist/providers/data/hooks/assets/useUpdateAssetLastUse.d.ts +0 -71
- package/dist/providers/data/hooks/categories/index.d.ts +0 -8
- package/dist/providers/data/hooks/categories/useCreateCategory.d.ts +0 -71
- package/dist/providers/data/hooks/categories/useDeleteCategory.d.ts +0 -74
- package/dist/providers/data/hooks/categories/useGetAdminCategories.d.ts +0 -7
- package/dist/providers/data/hooks/categories/useGetCategories.d.ts +0 -6
- package/dist/providers/data/hooks/categories/useGetCategory.d.ts +0 -6
- package/dist/providers/data/hooks/categories/useStageCategory.d.ts +0 -14
- package/dist/providers/data/hooks/categories/useUpdateCategoriesOrder.d.ts +0 -71
- package/dist/providers/data/hooks/categories/useUpdateCategory.d.ts +0 -82
- package/dist/providers/data/hooks/errors/index.d.ts +0 -3
- package/dist/providers/data/hooks/errors/useApiErrors.d.ts +0 -4
- package/dist/providers/data/hooks/errors/useAssetErrors.d.ts +0 -3
- package/dist/providers/data/hooks/errors/useCategoryErrors.d.ts +0 -3
- package/dist/providers/data/hooks/images/index.d.ts +0 -2
- package/dist/providers/data/hooks/images/useGetImagesConfig.d.ts +0 -6
- package/dist/providers/data/hooks/images/useUpdateImageFormatConfig.d.ts +0 -76
- package/dist/providers/data/hooks/index.d.ts +0 -5
- package/dist/providers/data/hooks/limits/index.d.ts +0 -1
- package/dist/providers/data/hooks/limits/useGetPlanLimits.d.ts +0 -6
- package/dist/providers/data/hooks/search/index.d.ts +0 -1
- package/dist/providers/data/hooks/search/useSearch.d.ts +0 -12
- package/dist/providers/data/hooks/useMutation.d.ts +0 -67
- package/dist/providers/data/hooks/useQuery.d.ts +0 -3
- package/dist/providers/data/index.d.ts +0 -2
- package/dist/providers/data/parsers/assets/index.d.ts +0 -3
- package/dist/providers/data/parsers/assets/parseAsset.d.ts +0 -9
- package/dist/providers/data/parsers/assets/parseAssets.d.ts +0 -9
- package/dist/providers/data/parsers/assets/types.d.ts +0 -39
- package/dist/providers/data/parsers/assetsMetadata/index.d.ts +0 -2
- package/dist/providers/data/parsers/assetsMetadata/parseAssetMetadata.d.ts +0 -9
- package/dist/providers/data/parsers/assetsMetadata/types.d.ts +0 -22
- package/dist/providers/data/parsers/categories/index.d.ts +0 -4
- package/dist/providers/data/parsers/categories/parseAdminCategories.d.ts +0 -13
- package/dist/providers/data/parsers/categories/parseCategories.d.ts +0 -9
- package/dist/providers/data/parsers/categories/parseCategory.d.ts +0 -9
- package/dist/providers/data/parsers/categories/types.d.ts +0 -39
- package/dist/providers/data/parsers/index.d.ts +0 -3
- package/dist/providers/index.d.ts +0 -12
- package/dist/providers/language/LanguageProvider.d.ts +0 -4
- package/dist/providers/language/index.d.ts +0 -2
- package/dist/providers/language/types.d.ts +0 -22
- package/dist/providers/language/utils.d.ts +0 -16
- package/dist/providers/limits/PlanLimitsContext.d.ts +0 -11
- package/dist/providers/limits/PlanLimitsProvider.d.ts +0 -9
- package/dist/providers/limits/index.d.ts +0 -2
- package/dist/providers/limits/utils.d.ts +0 -7
- package/dist/providers/notifications/NotificationsContext.d.ts +0 -53
- package/dist/providers/notifications/NotificationsProvider.d.ts +0 -9
- package/dist/providers/notifications/index.d.ts +0 -2
- package/dist/providers/query/QueryProvider.d.ts +0 -12
- package/dist/providers/query/index.d.ts +0 -1
- package/dist/providers/ui/UIProvider.d.ts +0 -22
- package/dist/providers/ui/UIProviderContainerMode.d.ts +0 -4
- package/dist/providers/ui/UIProviderDialogMode.d.ts +0 -20
- package/dist/providers/ui/index.d.ts +0 -2
- package/dist/providers/ui/types.d.ts +0 -19
- package/dist/providers/upload/UploadContext.d.ts +0 -48
- package/dist/providers/upload/UploadProvider.d.ts +0 -14
- package/dist/providers/upload/constants.d.ts +0 -142
- package/dist/providers/upload/index.d.ts +0 -5
- package/dist/providers/upload/types.d.ts +0 -282
- package/dist/providers/upload/uploadStateReducer.d.ts +0 -10
- package/dist/providers/upload/useStartUpload.d.ts +0 -10
- package/dist/providers/upload/useUpload.d.ts +0 -21
- package/dist/providers/upload/useUploadComponents.d.ts +0 -21
- package/dist/providers/upload/utils.d.ts +0 -136
- package/dist/providers/user/UserContext.d.ts +0 -68
- package/dist/providers/user/UserProvider.d.ts +0 -13
- package/dist/providers/user/constants.d.ts +0 -19
- package/dist/providers/user/index.d.ts +0 -3
- package/dist/providers/user/persistData.d.ts +0 -14
- package/dist/providers/user/types.d.ts +0 -149
- package/dist/providers/user/useUserData.d.ts +0 -50
- package/dist/services/api/api/api.d.ts +0 -41
- package/dist/services/api/api/index.d.ts +0 -1
- package/dist/services/api/assets/assets.d.ts +0 -98
- package/dist/services/api/assets/index.d.ts +0 -1
- package/dist/services/api/categories/categories.d.ts +0 -50
- package/dist/services/api/categories/index.d.ts +0 -1
- package/dist/services/api/client/ApiClient.d.ts +0 -108
- package/dist/services/api/client/ApiClientError.d.ts +0 -37
- package/dist/services/api/client/index.d.ts +0 -3
- package/dist/services/api/client/types.d.ts +0 -19
- package/dist/services/api/errors/ApiErrorHandler.d.ts +0 -53
- package/dist/services/api/errors/index.d.ts +0 -2
- package/dist/services/api/errors/types.d.ts +0 -6
- package/dist/services/api/images/images.d.ts +0 -18
- package/dist/services/api/images/index.d.ts +0 -1
- package/dist/services/api/index.d.ts +0 -5
- package/dist/services/api/limits/index.d.ts +0 -1
- package/dist/services/api/limits/limits.d.ts +0 -10
- package/dist/services/api/search/index.d.ts +0 -1
- package/dist/services/api/search/search.d.ts +0 -10
- package/dist/services/api/types/assets.d.ts +0 -131
- package/dist/services/api/types/assetsMetadata.d.ts +0 -24
- package/dist/services/api/types/categories.d.ts +0 -86
- package/dist/services/api/types/common.d.ts +0 -16
- package/dist/services/api/types/images.d.ts +0 -8
- package/dist/services/api/types/index.d.ts +0 -7
- package/dist/services/api/types/limits.d.ts +0 -11
- package/dist/services/api/types/search.d.ts +0 -122
- package/dist/services/auth/AuthClient.d.ts +0 -89
- package/dist/services/auth/Token.d.ts +0 -55
- package/dist/services/auth/error.d.ts +0 -6
- package/dist/services/auth/index.d.ts +0 -3
- package/dist/services/auth/types.d.ts +0 -27
- package/dist/services/index.d.ts +0 -2
- package/dist/views/adminPanel/AdminPanel.d.ts +0 -3
- package/dist/views/adminPanel/assetCategories/AssetCategories.d.ts +0 -9
- package/dist/views/adminPanel/assetCategories/AssetCategoryPanel.d.ts +0 -23
- package/dist/views/adminPanel/assetCategories/AssetCategoryPanelEdit.d.ts +0 -26
- package/dist/views/adminPanel/assetCategories/AssetCategoryPanelLoader.d.ts +0 -9
- package/dist/views/adminPanel/assetCategories/ConfirmCategoryDialog.d.ts +0 -29
- package/dist/views/adminPanel/assetCategories/index.d.ts +0 -1
- package/dist/views/adminPanel/assetCategories/useAssetCategories.d.ts +0 -28
- package/dist/views/adminPanel/assetCategories/useFormValidation.d.ts +0 -10
- package/dist/views/adminPanel/imagesSettings/ImageFormatSettingsPanel.d.ts +0 -22
- package/dist/views/adminPanel/imagesSettings/ImageFormatSettingsPanelLoader.d.ts +0 -3
- package/dist/views/adminPanel/imagesSettings/ImagesSettings.d.ts +0 -3
- package/dist/views/adminPanel/imagesSettings/constants.d.ts +0 -5
- package/dist/views/adminPanel/imagesSettings/index.d.ts +0 -1
- package/dist/views/adminPanel/imagesSettings/useImageSettings.d.ts +0 -9
- package/dist/views/adminPanel/index.d.ts +0 -1
- package/dist/views/category/Category.d.ts +0 -18
- package/dist/views/category/index.d.ts +0 -1
- package/dist/views/category/utils/index.d.ts +0 -1
- package/dist/views/category/utils/utils.d.ts +0 -12
- package/dist/views/index.d.ts +0 -1
- package/dist/views/recentAssets/RecentAssets.d.ts +0 -19
- package/dist/views/recentAssets/index.d.ts +0 -1
- package/dist/views/search/Search.d.ts +0 -15
- package/dist/views/search/index.d.ts +0 -1
- package/dist/views/search/utils.d.ts +0 -19
- package/dist/views/views/Views.d.ts +0 -3
- package/dist/views/views/index.d.ts +0 -1
- package/dist/views/views/navbar/Navbar.d.ts +0 -46
- package/dist/views/views/navbar/index.d.ts +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ApiUpdateAssetPayload } from '../../../../services';
|
|
2
|
-
declare type UpdateAssetData = {
|
|
3
|
-
assetId: string;
|
|
4
|
-
categoryId: string;
|
|
5
|
-
payload: ApiUpdateAssetPayload;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Creates update asset mutation.
|
|
9
|
-
*
|
|
10
|
-
* @returns mutation for updating asset
|
|
11
|
-
*/
|
|
12
|
-
export declare const useUpdateAsset: () => {
|
|
13
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
14
|
-
data: undefined;
|
|
15
|
-
error: null;
|
|
16
|
-
isError: false;
|
|
17
|
-
isIdle: true;
|
|
18
|
-
isLoading: false;
|
|
19
|
-
isSuccess: false;
|
|
20
|
-
status: "idle";
|
|
21
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
22
|
-
reset: () => void;
|
|
23
|
-
context: unknown;
|
|
24
|
-
failureCount: number;
|
|
25
|
-
failureReason: Error | null;
|
|
26
|
-
isPaused: boolean;
|
|
27
|
-
variables: UpdateAssetData | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
30
|
-
data: undefined;
|
|
31
|
-
error: null;
|
|
32
|
-
isError: false;
|
|
33
|
-
isIdle: false;
|
|
34
|
-
isLoading: true;
|
|
35
|
-
isSuccess: false;
|
|
36
|
-
status: "loading";
|
|
37
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
38
|
-
reset: () => void;
|
|
39
|
-
context: unknown;
|
|
40
|
-
failureCount: number;
|
|
41
|
-
failureReason: Error | null;
|
|
42
|
-
isPaused: boolean;
|
|
43
|
-
variables: UpdateAssetData | undefined;
|
|
44
|
-
} | {
|
|
45
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
46
|
-
data: undefined;
|
|
47
|
-
error: Error;
|
|
48
|
-
isError: true;
|
|
49
|
-
isIdle: false;
|
|
50
|
-
isLoading: false;
|
|
51
|
-
isSuccess: false;
|
|
52
|
-
status: "error";
|
|
53
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
54
|
-
reset: () => void;
|
|
55
|
-
context: unknown;
|
|
56
|
-
failureCount: number;
|
|
57
|
-
failureReason: Error | null;
|
|
58
|
-
isPaused: boolean;
|
|
59
|
-
variables: UpdateAssetData | undefined;
|
|
60
|
-
} | {
|
|
61
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
62
|
-
data: import("../../../../services").ApiAsset | undefined;
|
|
63
|
-
error: null;
|
|
64
|
-
isError: false;
|
|
65
|
-
isIdle: false;
|
|
66
|
-
isLoading: false;
|
|
67
|
-
isSuccess: true;
|
|
68
|
-
status: "success";
|
|
69
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<import("../../../../services").ApiAsset | undefined, Error, UpdateAssetData, unknown>;
|
|
70
|
-
reset: () => void;
|
|
71
|
-
context: unknown;
|
|
72
|
-
failureCount: number;
|
|
73
|
-
failureReason: Error | null;
|
|
74
|
-
isPaused: boolean;
|
|
75
|
-
variables: UpdateAssetData | undefined;
|
|
76
|
-
};
|
|
77
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ApiUpdateLastUseAssetsPayload } from '../../../../services';
|
|
2
|
-
/**
|
|
3
|
-
* Creates update asset's last use date mutation.
|
|
4
|
-
*
|
|
5
|
-
* @returns mutation for updating asset
|
|
6
|
-
*/
|
|
7
|
-
export declare const useUpdateAssetLastUse: () => {
|
|
8
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
9
|
-
data: undefined;
|
|
10
|
-
error: null;
|
|
11
|
-
isError: false;
|
|
12
|
-
isIdle: true;
|
|
13
|
-
isLoading: false;
|
|
14
|
-
isSuccess: false;
|
|
15
|
-
status: "idle";
|
|
16
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
context: unknown;
|
|
19
|
-
failureCount: number;
|
|
20
|
-
failureReason: Error | null;
|
|
21
|
-
isPaused: boolean;
|
|
22
|
-
variables: ApiUpdateLastUseAssetsPayload | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
25
|
-
data: undefined;
|
|
26
|
-
error: null;
|
|
27
|
-
isError: false;
|
|
28
|
-
isIdle: false;
|
|
29
|
-
isLoading: true;
|
|
30
|
-
isSuccess: false;
|
|
31
|
-
status: "loading";
|
|
32
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
33
|
-
reset: () => void;
|
|
34
|
-
context: unknown;
|
|
35
|
-
failureCount: number;
|
|
36
|
-
failureReason: Error | null;
|
|
37
|
-
isPaused: boolean;
|
|
38
|
-
variables: ApiUpdateLastUseAssetsPayload | undefined;
|
|
39
|
-
} | {
|
|
40
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
41
|
-
data: undefined;
|
|
42
|
-
error: Error;
|
|
43
|
-
isError: true;
|
|
44
|
-
isIdle: false;
|
|
45
|
-
isLoading: false;
|
|
46
|
-
isSuccess: false;
|
|
47
|
-
status: "error";
|
|
48
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
49
|
-
reset: () => void;
|
|
50
|
-
context: unknown;
|
|
51
|
-
failureCount: number;
|
|
52
|
-
failureReason: Error | null;
|
|
53
|
-
isPaused: boolean;
|
|
54
|
-
variables: ApiUpdateLastUseAssetsPayload | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
57
|
-
data: void;
|
|
58
|
-
error: null;
|
|
59
|
-
isError: false;
|
|
60
|
-
isIdle: false;
|
|
61
|
-
isLoading: false;
|
|
62
|
-
isSuccess: true;
|
|
63
|
-
status: "success";
|
|
64
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, ApiUpdateLastUseAssetsPayload, unknown>;
|
|
65
|
-
reset: () => void;
|
|
66
|
-
context: unknown;
|
|
67
|
-
failureCount: number;
|
|
68
|
-
failureReason: Error | null;
|
|
69
|
-
isPaused: boolean;
|
|
70
|
-
variables: ApiUpdateLastUseAssetsPayload | undefined;
|
|
71
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './useCreateCategory';
|
|
2
|
-
export * from './useDeleteCategory';
|
|
3
|
-
export * from './useGetAdminCategories';
|
|
4
|
-
export * from './useGetCategories';
|
|
5
|
-
export * from './useGetCategory';
|
|
6
|
-
export * from './useStageCategory';
|
|
7
|
-
export * from './useUpdateCategory';
|
|
8
|
-
export * from './useUpdateCategoriesOrder';
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ApiCreateCategoryPayload, ApiCreatedCategoryResponse } from '../../../../services';
|
|
2
|
-
/**
|
|
3
|
-
* Creates 'create category' mutation.
|
|
4
|
-
*
|
|
5
|
-
* @returns mutation for creating category
|
|
6
|
-
*/
|
|
7
|
-
export declare const useCreateCategory: () => {
|
|
8
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
9
|
-
data: undefined;
|
|
10
|
-
error: null;
|
|
11
|
-
isError: false;
|
|
12
|
-
isIdle: true;
|
|
13
|
-
isLoading: false;
|
|
14
|
-
isSuccess: false;
|
|
15
|
-
status: "idle";
|
|
16
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
context: unknown;
|
|
19
|
-
failureCount: number;
|
|
20
|
-
failureReason: Error | null;
|
|
21
|
-
isPaused: boolean;
|
|
22
|
-
variables: ApiCreateCategoryPayload | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
25
|
-
data: undefined;
|
|
26
|
-
error: null;
|
|
27
|
-
isError: false;
|
|
28
|
-
isIdle: false;
|
|
29
|
-
isLoading: true;
|
|
30
|
-
isSuccess: false;
|
|
31
|
-
status: "loading";
|
|
32
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
33
|
-
reset: () => void;
|
|
34
|
-
context: unknown;
|
|
35
|
-
failureCount: number;
|
|
36
|
-
failureReason: Error | null;
|
|
37
|
-
isPaused: boolean;
|
|
38
|
-
variables: ApiCreateCategoryPayload | undefined;
|
|
39
|
-
} | {
|
|
40
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
41
|
-
data: undefined;
|
|
42
|
-
error: Error;
|
|
43
|
-
isError: true;
|
|
44
|
-
isIdle: false;
|
|
45
|
-
isLoading: false;
|
|
46
|
-
isSuccess: false;
|
|
47
|
-
status: "error";
|
|
48
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
49
|
-
reset: () => void;
|
|
50
|
-
context: unknown;
|
|
51
|
-
failureCount: number;
|
|
52
|
-
failureReason: Error | null;
|
|
53
|
-
isPaused: boolean;
|
|
54
|
-
variables: ApiCreateCategoryPayload | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
57
|
-
data: ApiCreatedCategoryResponse | undefined;
|
|
58
|
-
error: null;
|
|
59
|
-
isError: false;
|
|
60
|
-
isIdle: false;
|
|
61
|
-
isLoading: false;
|
|
62
|
-
isSuccess: true;
|
|
63
|
-
status: "success";
|
|
64
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiCreatedCategoryResponse | undefined, Error, ApiCreateCategoryPayload, unknown>;
|
|
65
|
-
reset: () => void;
|
|
66
|
-
context: unknown;
|
|
67
|
-
failureCount: number;
|
|
68
|
-
failureReason: Error | null;
|
|
69
|
-
isPaused: boolean;
|
|
70
|
-
variables: ApiCreateCategoryPayload | undefined;
|
|
71
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
declare type DeleteCategoryData = {
|
|
2
|
-
categoryId: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Creates 'delete category' mutation.
|
|
6
|
-
*
|
|
7
|
-
* @returns mutation for deleting category
|
|
8
|
-
*/
|
|
9
|
-
export declare const useDeleteCategory: () => {
|
|
10
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
11
|
-
data: undefined;
|
|
12
|
-
error: null;
|
|
13
|
-
isError: false;
|
|
14
|
-
isIdle: true;
|
|
15
|
-
isLoading: false;
|
|
16
|
-
isSuccess: false;
|
|
17
|
-
status: "idle";
|
|
18
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
19
|
-
reset: () => void;
|
|
20
|
-
context: unknown;
|
|
21
|
-
failureCount: number;
|
|
22
|
-
failureReason: Error | null;
|
|
23
|
-
isPaused: boolean;
|
|
24
|
-
variables: DeleteCategoryData | undefined;
|
|
25
|
-
} | {
|
|
26
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
27
|
-
data: undefined;
|
|
28
|
-
error: null;
|
|
29
|
-
isError: false;
|
|
30
|
-
isIdle: false;
|
|
31
|
-
isLoading: true;
|
|
32
|
-
isSuccess: false;
|
|
33
|
-
status: "loading";
|
|
34
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
35
|
-
reset: () => void;
|
|
36
|
-
context: unknown;
|
|
37
|
-
failureCount: number;
|
|
38
|
-
failureReason: Error | null;
|
|
39
|
-
isPaused: boolean;
|
|
40
|
-
variables: DeleteCategoryData | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
43
|
-
data: undefined;
|
|
44
|
-
error: Error;
|
|
45
|
-
isError: true;
|
|
46
|
-
isIdle: false;
|
|
47
|
-
isLoading: false;
|
|
48
|
-
isSuccess: false;
|
|
49
|
-
status: "error";
|
|
50
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
51
|
-
reset: () => void;
|
|
52
|
-
context: unknown;
|
|
53
|
-
failureCount: number;
|
|
54
|
-
failureReason: Error | null;
|
|
55
|
-
isPaused: boolean;
|
|
56
|
-
variables: DeleteCategoryData | undefined;
|
|
57
|
-
} | {
|
|
58
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
59
|
-
data: unknown;
|
|
60
|
-
error: null;
|
|
61
|
-
isError: false;
|
|
62
|
-
isIdle: false;
|
|
63
|
-
isLoading: false;
|
|
64
|
-
isSuccess: true;
|
|
65
|
-
status: "success";
|
|
66
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, DeleteCategoryData, unknown>;
|
|
67
|
-
reset: () => void;
|
|
68
|
-
context: unknown;
|
|
69
|
-
failureCount: number;
|
|
70
|
-
failureReason: Error | null;
|
|
71
|
-
isPaused: boolean;
|
|
72
|
-
variables: DeleteCategoryData | undefined;
|
|
73
|
-
};
|
|
74
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ParsedAdminCategory } from '../../parsers';
|
|
2
|
-
/**
|
|
3
|
-
* Gets list of admin categories.
|
|
4
|
-
*
|
|
5
|
-
* @returns current list of categories
|
|
6
|
-
*/
|
|
7
|
-
export declare const useGetAdminCategories: () => import("@tanstack/react-query").UseQueryResult<ParsedAdminCategory[], Error>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ParsedAdminCategory } from '../../parsers';
|
|
2
|
-
/**
|
|
3
|
-
* Manages cache for categories that are in staging phase.
|
|
4
|
-
*
|
|
5
|
-
* This is a set of synchronous methods.
|
|
6
|
-
*
|
|
7
|
-
* @returns cache mutation
|
|
8
|
-
*/
|
|
9
|
-
export declare const useStageCategory: () => {
|
|
10
|
-
stageCategory: (category: Omit<ParsedAdminCategory, 'id'>) => void;
|
|
11
|
-
deleteCategory: (id: string) => void;
|
|
12
|
-
editCategory: (id: string) => void;
|
|
13
|
-
unstageCategory: (id: string) => void;
|
|
14
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ApiUpdateCategoriesOrderPayload } from '../../../../services';
|
|
2
|
-
/**
|
|
3
|
-
* Creates 'update categories order' mutation.
|
|
4
|
-
*
|
|
5
|
-
* @returns mutation for updating categories order
|
|
6
|
-
*/
|
|
7
|
-
export declare const useUpdateCategoriesOrder: () => {
|
|
8
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
9
|
-
data: undefined;
|
|
10
|
-
error: null;
|
|
11
|
-
isError: false;
|
|
12
|
-
isIdle: true;
|
|
13
|
-
isLoading: false;
|
|
14
|
-
isSuccess: false;
|
|
15
|
-
status: "idle";
|
|
16
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
context: unknown;
|
|
19
|
-
failureCount: number;
|
|
20
|
-
failureReason: Error | null;
|
|
21
|
-
isPaused: boolean;
|
|
22
|
-
variables: ApiUpdateCategoriesOrderPayload | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
25
|
-
data: undefined;
|
|
26
|
-
error: null;
|
|
27
|
-
isError: false;
|
|
28
|
-
isIdle: false;
|
|
29
|
-
isLoading: true;
|
|
30
|
-
isSuccess: false;
|
|
31
|
-
status: "loading";
|
|
32
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
33
|
-
reset: () => void;
|
|
34
|
-
context: unknown;
|
|
35
|
-
failureCount: number;
|
|
36
|
-
failureReason: Error | null;
|
|
37
|
-
isPaused: boolean;
|
|
38
|
-
variables: ApiUpdateCategoriesOrderPayload | undefined;
|
|
39
|
-
} | {
|
|
40
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
41
|
-
data: undefined;
|
|
42
|
-
error: Error;
|
|
43
|
-
isError: true;
|
|
44
|
-
isIdle: false;
|
|
45
|
-
isLoading: false;
|
|
46
|
-
isSuccess: false;
|
|
47
|
-
status: "error";
|
|
48
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
49
|
-
reset: () => void;
|
|
50
|
-
context: unknown;
|
|
51
|
-
failureCount: number;
|
|
52
|
-
failureReason: Error | null;
|
|
53
|
-
isPaused: boolean;
|
|
54
|
-
variables: ApiUpdateCategoriesOrderPayload | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
57
|
-
data: undefined;
|
|
58
|
-
error: null;
|
|
59
|
-
isError: false;
|
|
60
|
-
isIdle: false;
|
|
61
|
-
isLoading: false;
|
|
62
|
-
isSuccess: true;
|
|
63
|
-
status: "success";
|
|
64
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<undefined, Error, ApiUpdateCategoriesOrderPayload, unknown>;
|
|
65
|
-
reset: () => void;
|
|
66
|
-
context: unknown;
|
|
67
|
-
failureCount: number;
|
|
68
|
-
failureReason: Error | null;
|
|
69
|
-
isPaused: boolean;
|
|
70
|
-
variables: ApiUpdateCategoriesOrderPayload | undefined;
|
|
71
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { ApiUpdateCategoryPayload } from '../../../../services';
|
|
2
|
-
interface UpdateCategoryData {
|
|
3
|
-
/**
|
|
4
|
-
* Category id.
|
|
5
|
-
*/
|
|
6
|
-
categoryId: string;
|
|
7
|
-
/**
|
|
8
|
-
* Payload for update.
|
|
9
|
-
*/
|
|
10
|
-
payload: ApiUpdateCategoryPayload;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Creates 'update category' mutation.
|
|
14
|
-
*
|
|
15
|
-
* @returns mutation for updating category
|
|
16
|
-
*/
|
|
17
|
-
export declare const useUpdateCategory: () => {
|
|
18
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
19
|
-
data: undefined;
|
|
20
|
-
error: null;
|
|
21
|
-
isError: false;
|
|
22
|
-
isIdle: true;
|
|
23
|
-
isLoading: false;
|
|
24
|
-
isSuccess: false;
|
|
25
|
-
status: "idle";
|
|
26
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
27
|
-
reset: () => void;
|
|
28
|
-
context: unknown;
|
|
29
|
-
failureCount: number;
|
|
30
|
-
failureReason: Error | null;
|
|
31
|
-
isPaused: boolean;
|
|
32
|
-
variables: UpdateCategoryData | undefined;
|
|
33
|
-
} | {
|
|
34
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
35
|
-
data: undefined;
|
|
36
|
-
error: null;
|
|
37
|
-
isError: false;
|
|
38
|
-
isIdle: false;
|
|
39
|
-
isLoading: true;
|
|
40
|
-
isSuccess: false;
|
|
41
|
-
status: "loading";
|
|
42
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
43
|
-
reset: () => void;
|
|
44
|
-
context: unknown;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
failureReason: Error | null;
|
|
47
|
-
isPaused: boolean;
|
|
48
|
-
variables: UpdateCategoryData | undefined;
|
|
49
|
-
} | {
|
|
50
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
51
|
-
data: undefined;
|
|
52
|
-
error: Error;
|
|
53
|
-
isError: true;
|
|
54
|
-
isIdle: false;
|
|
55
|
-
isLoading: false;
|
|
56
|
-
isSuccess: false;
|
|
57
|
-
status: "error";
|
|
58
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
59
|
-
reset: () => void;
|
|
60
|
-
context: unknown;
|
|
61
|
-
failureCount: number;
|
|
62
|
-
failureReason: Error | null;
|
|
63
|
-
isPaused: boolean;
|
|
64
|
-
variables: UpdateCategoryData | undefined;
|
|
65
|
-
} | {
|
|
66
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
67
|
-
data: unknown;
|
|
68
|
-
error: null;
|
|
69
|
-
isError: false;
|
|
70
|
-
isIdle: false;
|
|
71
|
-
isLoading: false;
|
|
72
|
-
isSuccess: true;
|
|
73
|
-
status: "success";
|
|
74
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, UpdateCategoryData, unknown>;
|
|
75
|
-
reset: () => void;
|
|
76
|
-
context: unknown;
|
|
77
|
-
failureCount: number;
|
|
78
|
-
failureReason: Error | null;
|
|
79
|
-
isPaused: boolean;
|
|
80
|
-
variables: UpdateCategoryData | undefined;
|
|
81
|
-
};
|
|
82
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns images configuration.
|
|
3
|
-
*
|
|
4
|
-
* @returns images configuration
|
|
5
|
-
*/
|
|
6
|
-
export declare const useGetImagesConfig: () => import("@tanstack/react-query").UseQueryResult<Record<string, import("../../../../services").Maybe<import("../../../../services").ApiImageFormatConfig>>, Error>;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ApiImagesConfig, ApiImageFormatConfig } from '../../../../services';
|
|
2
|
-
declare type UpdateImageFormatConfig = {
|
|
3
|
-
format: string;
|
|
4
|
-
payload: ApiImageFormatConfig;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Creates update image configuration for single format mutation.
|
|
8
|
-
*
|
|
9
|
-
* @returns mutation for updating image configuration for single format
|
|
10
|
-
*/
|
|
11
|
-
export declare const useUpdateImageFormatConfig: () => {
|
|
12
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
13
|
-
data: undefined;
|
|
14
|
-
error: null;
|
|
15
|
-
isError: false;
|
|
16
|
-
isIdle: true;
|
|
17
|
-
isLoading: false;
|
|
18
|
-
isSuccess: false;
|
|
19
|
-
status: "idle";
|
|
20
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
21
|
-
reset: () => void;
|
|
22
|
-
context: unknown;
|
|
23
|
-
failureCount: number;
|
|
24
|
-
failureReason: Error | null;
|
|
25
|
-
isPaused: boolean;
|
|
26
|
-
variables: UpdateImageFormatConfig | undefined;
|
|
27
|
-
} | {
|
|
28
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
29
|
-
data: undefined;
|
|
30
|
-
error: null;
|
|
31
|
-
isError: false;
|
|
32
|
-
isIdle: false;
|
|
33
|
-
isLoading: true;
|
|
34
|
-
isSuccess: false;
|
|
35
|
-
status: "loading";
|
|
36
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
37
|
-
reset: () => void;
|
|
38
|
-
context: unknown;
|
|
39
|
-
failureCount: number;
|
|
40
|
-
failureReason: Error | null;
|
|
41
|
-
isPaused: boolean;
|
|
42
|
-
variables: UpdateImageFormatConfig | undefined;
|
|
43
|
-
} | {
|
|
44
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
45
|
-
data: undefined;
|
|
46
|
-
error: Error;
|
|
47
|
-
isError: true;
|
|
48
|
-
isIdle: false;
|
|
49
|
-
isLoading: false;
|
|
50
|
-
isSuccess: false;
|
|
51
|
-
status: "error";
|
|
52
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
53
|
-
reset: () => void;
|
|
54
|
-
context: unknown;
|
|
55
|
-
failureCount: number;
|
|
56
|
-
failureReason: Error | null;
|
|
57
|
-
isPaused: boolean;
|
|
58
|
-
variables: UpdateImageFormatConfig | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
mutateAsync: import("../types").ErrorSuppressedMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
61
|
-
data: ApiImagesConfig;
|
|
62
|
-
error: null;
|
|
63
|
-
isError: false;
|
|
64
|
-
isIdle: false;
|
|
65
|
-
isLoading: false;
|
|
66
|
-
isSuccess: true;
|
|
67
|
-
status: "success";
|
|
68
|
-
mutate: import("@tanstack/react-query").UseMutateFunction<ApiImagesConfig, Error, UpdateImageFormatConfig, unknown>;
|
|
69
|
-
reset: () => void;
|
|
70
|
-
context: unknown;
|
|
71
|
-
failureCount: number;
|
|
72
|
-
failureReason: Error | null;
|
|
73
|
-
isPaused: boolean;
|
|
74
|
-
variables: UpdateImageFormatConfig | undefined;
|
|
75
|
-
};
|
|
76
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useGetPlanLimits';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useSearch';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ApiSearchParams } from '../../../../services';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a search query.
|
|
4
|
-
*
|
|
5
|
-
* @returns search results
|
|
6
|
-
*/
|
|
7
|
-
export declare const useSearch: (searchQuery: ApiSearchParams) => import("@tanstack/react-query").UseQueryResult<{
|
|
8
|
-
totalCount: number | undefined;
|
|
9
|
-
limit: number | undefined;
|
|
10
|
-
offset: number | undefined;
|
|
11
|
-
items: import("../../parsers").ParsedAsset[];
|
|
12
|
-
}, Error>;
|