@omniumretail/shared-resources 0.0.90 → 0.0.92
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/package.json +4 -3
- package/src/constants/Icons.ts +2 -4
- package/webpack.config.js +20 -2
- package/dist/bundle.js +0 -1
- package/dist/types/components/BottomDrawer/index.d.ts +0 -9
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/Footer/index.d.ts +0 -3
- package/dist/types/components/Form/FormInputField/index.d.ts +0 -8
- package/dist/types/components/Form/FormSelectField/index.d.ts +0 -9
- package/dist/types/components/Form/index.d.ts +0 -2
- package/dist/types/components/Header/index.d.ts +0 -4
- package/dist/types/components/Link/index.d.ts +0 -6
- package/dist/types/components/Navigation/index.d.ts +0 -8
- package/dist/types/components/Page/index.d.ts +0 -13
- package/dist/types/components/SharedContextProvider/index.d.ts +0 -7
- package/dist/types/components/index.d.ts +0 -9
- package/dist/types/constants/Icons.d.ts +0 -15
- package/dist/types/constants/QueryClient.d.ts +0 -2
- package/dist/types/constants/index.d.ts +0 -2
- package/dist/types/contexts/useStore.d.ts +0 -8
- package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +0 -9
- package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +0 -11
- package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +0 -14
- package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +0 -9
- package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +0 -8
- package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +0 -10
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +0 -2
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +0 -11
- package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +0 -2
- package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +0 -2
- package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +0 -2
- package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +0 -2
- package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +0 -142
- package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +0 -7
- package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +0 -7
- package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +0 -142
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +0 -11
- package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +0 -11
- package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +0 -13
- package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +0 -8
- package/dist/types/hooks/Store/useStoreQuery.d.ts +0 -7
- package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +0 -8
- package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +0 -11
- package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +0 -12
- package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +0 -8
- package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +0 -6
- package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +0 -48
- package/dist/types/index.d.ts +0 -7
- package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +0 -19
- package/dist/types/interfaces/AnalyticsUserId.d.ts +0 -12
- package/dist/types/interfaces/Answer.d.ts +0 -12
- package/dist/types/interfaces/AnswersUserSupervisor.d.ts +0 -42
- package/dist/types/interfaces/ApplicationsByCategory.d.ts +0 -16
- package/dist/types/interfaces/AsvProductsByReference.d.ts +0 -12
- package/dist/types/interfaces/AsvProductsByStore.d.ts +0 -12
- package/dist/types/interfaces/Brand.d.ts +0 -4
- package/dist/types/interfaces/Cart.d.ts +0 -10
- package/dist/types/interfaces/Configuration.d.ts +0 -6
- package/dist/types/interfaces/ContractStates.d.ts +0 -7
- package/dist/types/interfaces/Countries.d.ts +0 -10
- package/dist/types/interfaces/Customer.d.ts +0 -21
- package/dist/types/interfaces/EvaluationCycle.d.ts +0 -32
- package/dist/types/interfaces/ExpUsersAnswers.d.ts +0 -15
- package/dist/types/interfaces/JobTitles.d.ts +0 -7
- package/dist/types/interfaces/Product.d.ts +0 -15
- package/dist/types/interfaces/ProductsHierarchies.d.ts +0 -5
- package/dist/types/interfaces/Questionnaire.d.ts +0 -36
- package/dist/types/interfaces/ResponseList.d.ts +0 -5
- package/dist/types/interfaces/Roles.d.ts +0 -5
- package/dist/types/interfaces/Store.d.ts +0 -7
- package/dist/types/interfaces/TermNotification.d.ts +0 -5
- package/dist/types/interfaces/User.d.ts +0 -68
- package/dist/types/interfaces/index.d.ts +0 -24
- package/dist/types/services/ApiService/index.d.ts +0 -9
- package/dist/types/services/InitService/index.d.ts +0 -3
- package/dist/types/services/index.d.ts +0 -2
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DrawerProps } from "antd";
|
|
2
|
-
interface BottomDrawerProps extends DrawerProps {
|
|
3
|
-
haveReset?: boolean;
|
|
4
|
-
resetButtonName?: string;
|
|
5
|
-
closeButtonName: string;
|
|
6
|
-
onReset?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const BottomDrawer: ({ haveReset, resetButtonName, closeButtonName, onReset, ...restProps }: BottomDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormItemProps, InputProps } from 'antd';
|
|
2
|
-
interface FormInputFieldProps extends Omit<FormItemProps, "name"> {
|
|
3
|
-
name: string;
|
|
4
|
-
inputProps?: InputProps;
|
|
5
|
-
}
|
|
6
|
-
export declare const InputField: (inputProps: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const FormInputField: ({ inputProps, ...itemProps }: FormInputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FormItemProps } from 'antd';
|
|
2
|
-
import { LabeledValue, SelectProps } from 'antd/lib/select';
|
|
3
|
-
interface FormSelectFieldProps extends Omit<FormItemProps, "name"> {
|
|
4
|
-
name: string;
|
|
5
|
-
options: LabeledValue[];
|
|
6
|
-
selectProps?: SelectProps<LabeledValue>;
|
|
7
|
-
}
|
|
8
|
-
export declare const FormSelectField: ({ options, selectProps, ...itemProps }: FormSelectFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PageContentProps extends PageBaseProps {
|
|
3
|
-
isLoading?: boolean;
|
|
4
|
-
}
|
|
5
|
-
interface PageBaseProps {
|
|
6
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
7
|
-
}
|
|
8
|
-
export declare const Page: {
|
|
9
|
-
({ children }: PageBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
Header: ({ children }: PageBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
Content: ({ children, isLoading }: PageContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SharedContextProviderProps {
|
|
3
|
-
providers?: React.JSXElementConstructor<unknown>[];
|
|
4
|
-
children?: React.ReactElement | React.ReactElement[];
|
|
5
|
-
disableInitialStoreRequest?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const SharedContextProvider: ({ children, disableInitialStoreRequest }: SharedContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './SharedContextProvider';
|
|
2
|
-
export * from './Header';
|
|
3
|
-
export * from './Footer';
|
|
4
|
-
export * from './Page';
|
|
5
|
-
export * from './Button';
|
|
6
|
-
export * from './BottomDrawer';
|
|
7
|
-
export * from './Form';
|
|
8
|
-
export * from './Link';
|
|
9
|
-
export * from './Navigation';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const icons: {
|
|
2
|
-
faBars: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3
|
-
faUser: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
|
-
faUserTie: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
-
faPlus: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
|
-
faUserPlus: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
|
-
faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
8
|
-
faCartShopping: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
|
-
faChevronDown: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
10
|
-
faFilter: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
11
|
-
faSearch: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
12
|
-
faQrcode: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
13
|
-
faCheck: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
14
|
-
'fa-thin': import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
15
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Store } from '../interfaces/Store';
|
|
3
|
-
declare const StoreProvider: ({ children, disableInitialStoreRequest }: {
|
|
4
|
-
disableInitialStoreRequest?: boolean;
|
|
5
|
-
children: React.ReactElement | React.ReactElement[];
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare const useStoreContext: () => Store;
|
|
8
|
-
export { StoreProvider, useStoreContext };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
|
-
export interface AnalyticsEvaluationCycles extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
4
|
-
pSortDirection?: string;
|
|
5
|
-
pFilter?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const useAnalyticsEvaluationCyclesQueryHook: ({ pSortDirection, pFilter }: AnalyticsEvaluationCycles) => import("@tanstack/react-query").UseQueryResult<AnalyticsEvaluationCycle[], unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Answer, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface AnalyticsQuestionsQuery extends UseQueryOptions<ResponseList<"Answers", Answer>> {
|
|
4
|
-
id: string;
|
|
5
|
-
page?: number;
|
|
6
|
-
records?: number;
|
|
7
|
-
tags?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const useAnalyticsQuestionsQueryHook: ({ page, records, id, tags }: AnalyticsQuestionsQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Answers", Answer>, unknown>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
|
-
export interface AnalyticsSideBar extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
4
|
-
pSortDirection?: string;
|
|
5
|
-
pFilter?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const useAnalyticsSideBarQueryHook: ({ pSortDirection, pFilter }: AnalyticsSideBar) => import("@tanstack/react-query").UseQueryResult<AnalyticsEvaluationCycle[], unknown>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsUserId, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface AnalyticsUserIdQuery extends UseQueryOptions<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
records?: number;
|
|
6
|
-
pYear?: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
sortBy?: string;
|
|
9
|
-
sortDirection?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const useAnalyticsUserIdQueryHook: ({ page, records, userId, pYear, sortBy, sortDirection }: AnalyticsUserIdQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface AnalyticsUserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
|
-
tags?: string;
|
|
5
|
-
filter?: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
records?: number;
|
|
8
|
-
sortByUsers?: string;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
sortDirection?: string;
|
|
11
|
-
queryUsers?: string;
|
|
12
|
-
query?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const useAnalyticsUserQueryHook: ({ tags, page, records, filter, sortByUsers, sortBy, sortDirection, queryUsers, query }: AnalyticsUserQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", User>, unknown>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnswersUserSupervisor } from "../../../interfaces";
|
|
3
|
-
export interface AnswersUserSupervisorQuery extends UseQueryOptions<AnswersUserSupervisor> {
|
|
4
|
-
evaluationId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const useAnswersUserSupervisorQuery: ({ evaluationId, userId }: AnswersUserSupervisorQuery) => import("@tanstack/react-query").UseQueryResult<AnswersUserSupervisor, unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { Answer } from '../../../interfaces';
|
|
3
|
-
export interface AnswerQuery extends UseQueryOptions<Answer> {
|
|
4
|
-
pQuestionnaireId?: string;
|
|
5
|
-
pEvaluationCycleId?: string;
|
|
6
|
-
pUserId?: string;
|
|
7
|
-
pTargetUserId?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const useAnswerMutateHook: ({ pQuestionnaireId, pEvaluationCycleId, pUserId, pTargetUserId }: AnswerQuery, answerId: string) => import("@tanstack/react-query").UseMutationResult<Answer, unknown, Answer, unknown>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AsvProductsByReference, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface ProductsByRefProps extends UseQueryOptions<ResponseList<"StockList", AsvProductsByReference>> {
|
|
4
|
-
reference: string;
|
|
5
|
-
sortBy?: string;
|
|
6
|
-
sortDirection?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const getProductsByRef: ({ reference, sortBy, sortDirection }: ProductsByRefProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"StockList", AsvProductsByReference>, unknown>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AsvProductsByStore, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface ProductsByStoreProps extends UseQueryOptions<ResponseList<"StockList", AsvProductsByStore>> {
|
|
4
|
-
reference: string;
|
|
5
|
-
storeCode: string;
|
|
6
|
-
hasStock?: boolean;
|
|
7
|
-
sortBy?: string;
|
|
8
|
-
sortDirection?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const getProductsByStore: ({ reference, storeCode, hasStock, sortBy, sortDirection }: ProductsByStoreProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"StockList", AsvProductsByStore>, unknown>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface EvaluationCycleProps extends UseQueryOptions<ResponseList<"EvaluationCycles", EvaluationCycle>> {
|
|
4
|
-
tags?: string;
|
|
5
|
-
page?: number;
|
|
6
|
-
records?: number;
|
|
7
|
-
sortBy?: string;
|
|
8
|
-
sortDirection?: string;
|
|
9
|
-
query?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const useEvaluationCycleQueryHook: ({ tags, page, records, sortBy, sortDirection, query }: EvaluationCycleProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"EvaluationCycles", EvaluationCycle>, unknown>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ContractStates, ResponseList } from "../../interfaces";
|
|
3
|
-
interface ContractStatesQueryProps extends UseQueryOptions<ContractStates> {
|
|
4
|
-
records: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const useContractStatesQuery: ({ records }: ContractStatesQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"ContractStates", ContractStates>, unknown>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Countries, ResponseList } from "../../interfaces";
|
|
3
|
-
interface CountriesQueryProps extends UseQueryOptions<Countries> {
|
|
4
|
-
records: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const useCountriesQuery: ({ records }: CountriesQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Countries", Countries>, unknown>;
|
|
7
|
-
export {};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Customer, ResponseList } from '../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export interface CustomersQuery extends UseQueryOptions<ResponseList<"Customers", Customer>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
filterBy?: string;
|
|
7
|
-
search?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const useCustomersQueryHook: ({ page, limit, ...options }: CustomersQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Customers", Customer>, unknown>;
|
|
10
|
-
export declare const useCustomersInfiniteQueryHook: ({ filterBy, search }?: Omit<CustomersQuery, 'page' | 'limit'>) => {
|
|
11
|
-
count: number;
|
|
12
|
-
data: Customer[];
|
|
13
|
-
error: unknown;
|
|
14
|
-
isError: true;
|
|
15
|
-
isLoading: false;
|
|
16
|
-
isLoadingError: true;
|
|
17
|
-
isRefetchError: false;
|
|
18
|
-
isSuccess: false;
|
|
19
|
-
status: "error";
|
|
20
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
21
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
22
|
-
hasNextPage?: boolean;
|
|
23
|
-
hasPreviousPage?: boolean;
|
|
24
|
-
isFetchingNextPage: boolean;
|
|
25
|
-
isFetchingPreviousPage: boolean;
|
|
26
|
-
dataUpdatedAt: number;
|
|
27
|
-
errorUpdatedAt: number;
|
|
28
|
-
failureCount: number;
|
|
29
|
-
failureReason: unknown;
|
|
30
|
-
errorUpdateCount: number;
|
|
31
|
-
isFetched: boolean;
|
|
32
|
-
isFetchedAfterMount: boolean;
|
|
33
|
-
isFetching: boolean;
|
|
34
|
-
isInitialLoading: boolean;
|
|
35
|
-
isPaused: boolean;
|
|
36
|
-
isPlaceholderData: boolean;
|
|
37
|
-
isPreviousData: boolean;
|
|
38
|
-
isRefetching: boolean;
|
|
39
|
-
isStale: boolean;
|
|
40
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Customers", Customer>>, unknown>>;
|
|
41
|
-
remove: () => void;
|
|
42
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
43
|
-
} | {
|
|
44
|
-
count: number;
|
|
45
|
-
data: Customer[];
|
|
46
|
-
error: null;
|
|
47
|
-
isError: false;
|
|
48
|
-
isLoading: true;
|
|
49
|
-
isLoadingError: false;
|
|
50
|
-
isRefetchError: false;
|
|
51
|
-
isSuccess: false;
|
|
52
|
-
status: "loading";
|
|
53
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
54
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
55
|
-
hasNextPage?: boolean;
|
|
56
|
-
hasPreviousPage?: boolean;
|
|
57
|
-
isFetchingNextPage: boolean;
|
|
58
|
-
isFetchingPreviousPage: boolean;
|
|
59
|
-
dataUpdatedAt: number;
|
|
60
|
-
errorUpdatedAt: number;
|
|
61
|
-
failureCount: number;
|
|
62
|
-
failureReason: unknown;
|
|
63
|
-
errorUpdateCount: number;
|
|
64
|
-
isFetched: boolean;
|
|
65
|
-
isFetchedAfterMount: boolean;
|
|
66
|
-
isFetching: boolean;
|
|
67
|
-
isInitialLoading: boolean;
|
|
68
|
-
isPaused: boolean;
|
|
69
|
-
isPlaceholderData: boolean;
|
|
70
|
-
isPreviousData: boolean;
|
|
71
|
-
isRefetching: boolean;
|
|
72
|
-
isStale: boolean;
|
|
73
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Customers", Customer>>, unknown>>;
|
|
74
|
-
remove: () => void;
|
|
75
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
76
|
-
} | {
|
|
77
|
-
count: number;
|
|
78
|
-
data: Customer[];
|
|
79
|
-
error: unknown;
|
|
80
|
-
isError: true;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: false;
|
|
83
|
-
isRefetchError: true;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
87
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
88
|
-
hasNextPage?: boolean;
|
|
89
|
-
hasPreviousPage?: boolean;
|
|
90
|
-
isFetchingNextPage: boolean;
|
|
91
|
-
isFetchingPreviousPage: boolean;
|
|
92
|
-
dataUpdatedAt: number;
|
|
93
|
-
errorUpdatedAt: number;
|
|
94
|
-
failureCount: number;
|
|
95
|
-
failureReason: unknown;
|
|
96
|
-
errorUpdateCount: number;
|
|
97
|
-
isFetched: boolean;
|
|
98
|
-
isFetchedAfterMount: boolean;
|
|
99
|
-
isFetching: boolean;
|
|
100
|
-
isInitialLoading: boolean;
|
|
101
|
-
isPaused: boolean;
|
|
102
|
-
isPlaceholderData: boolean;
|
|
103
|
-
isPreviousData: boolean;
|
|
104
|
-
isRefetching: boolean;
|
|
105
|
-
isStale: boolean;
|
|
106
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Customers", Customer>>, unknown>>;
|
|
107
|
-
remove: () => void;
|
|
108
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
|
-
} | {
|
|
110
|
-
count: number;
|
|
111
|
-
data: Customer[];
|
|
112
|
-
error: null;
|
|
113
|
-
isError: false;
|
|
114
|
-
isLoading: false;
|
|
115
|
-
isLoadingError: false;
|
|
116
|
-
isRefetchError: false;
|
|
117
|
-
isSuccess: true;
|
|
118
|
-
status: "success";
|
|
119
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
120
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Customers", Customer>, unknown>>;
|
|
121
|
-
hasNextPage?: boolean;
|
|
122
|
-
hasPreviousPage?: boolean;
|
|
123
|
-
isFetchingNextPage: boolean;
|
|
124
|
-
isFetchingPreviousPage: boolean;
|
|
125
|
-
dataUpdatedAt: number;
|
|
126
|
-
errorUpdatedAt: number;
|
|
127
|
-
failureCount: number;
|
|
128
|
-
failureReason: unknown;
|
|
129
|
-
errorUpdateCount: number;
|
|
130
|
-
isFetched: boolean;
|
|
131
|
-
isFetchedAfterMount: boolean;
|
|
132
|
-
isFetching: boolean;
|
|
133
|
-
isInitialLoading: boolean;
|
|
134
|
-
isPaused: boolean;
|
|
135
|
-
isPlaceholderData: boolean;
|
|
136
|
-
isPreviousData: boolean;
|
|
137
|
-
isRefetching: boolean;
|
|
138
|
-
isStale: boolean;
|
|
139
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Customers", Customer>>, unknown>>;
|
|
140
|
-
remove: () => void;
|
|
141
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
142
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { JobTitles, ResponseList } from "../../interfaces";
|
|
3
|
-
interface JobTitlesQueryProps extends UseQueryOptions<JobTitles> {
|
|
4
|
-
records: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const useJobTitlesQuery: ({ records }: JobTitlesQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"JobTitles", JobTitles>, unknown>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProductsHierarchies, ResponseList } from '../../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export interface useProductsHierarchiesQueryHook extends UseQueryOptions<ResponseList<"Hierarchies", ProductsHierarchies>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const useProductsHierarchiesQueryHook: ({ page, limit, ...options }: useProductsHierarchiesQueryHook) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Hierarchies", ProductsHierarchies>, unknown>;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Product, ResponseList } from '../../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
filterBy?: string;
|
|
7
|
-
search?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const useProductsQueryHook: ({ page, limit, ...options }: ProductsQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Products", Product>, unknown>;
|
|
10
|
-
export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<ProductsQuery, 'page' | 'limit'>) => {
|
|
11
|
-
count: number;
|
|
12
|
-
data: Product[];
|
|
13
|
-
error: unknown;
|
|
14
|
-
isError: true;
|
|
15
|
-
isLoading: false;
|
|
16
|
-
isLoadingError: true;
|
|
17
|
-
isRefetchError: false;
|
|
18
|
-
isSuccess: false;
|
|
19
|
-
status: "error";
|
|
20
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
21
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
22
|
-
hasNextPage?: boolean;
|
|
23
|
-
hasPreviousPage?: boolean;
|
|
24
|
-
isFetchingNextPage: boolean;
|
|
25
|
-
isFetchingPreviousPage: boolean;
|
|
26
|
-
dataUpdatedAt: number;
|
|
27
|
-
errorUpdatedAt: number;
|
|
28
|
-
failureCount: number;
|
|
29
|
-
failureReason: unknown;
|
|
30
|
-
errorUpdateCount: number;
|
|
31
|
-
isFetched: boolean;
|
|
32
|
-
isFetchedAfterMount: boolean;
|
|
33
|
-
isFetching: boolean;
|
|
34
|
-
isInitialLoading: boolean;
|
|
35
|
-
isPaused: boolean;
|
|
36
|
-
isPlaceholderData: boolean;
|
|
37
|
-
isPreviousData: boolean;
|
|
38
|
-
isRefetching: boolean;
|
|
39
|
-
isStale: boolean;
|
|
40
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
41
|
-
remove: () => void;
|
|
42
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
43
|
-
} | {
|
|
44
|
-
count: number;
|
|
45
|
-
data: Product[];
|
|
46
|
-
error: null;
|
|
47
|
-
isError: false;
|
|
48
|
-
isLoading: true;
|
|
49
|
-
isLoadingError: false;
|
|
50
|
-
isRefetchError: false;
|
|
51
|
-
isSuccess: false;
|
|
52
|
-
status: "loading";
|
|
53
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
54
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
55
|
-
hasNextPage?: boolean;
|
|
56
|
-
hasPreviousPage?: boolean;
|
|
57
|
-
isFetchingNextPage: boolean;
|
|
58
|
-
isFetchingPreviousPage: boolean;
|
|
59
|
-
dataUpdatedAt: number;
|
|
60
|
-
errorUpdatedAt: number;
|
|
61
|
-
failureCount: number;
|
|
62
|
-
failureReason: unknown;
|
|
63
|
-
errorUpdateCount: number;
|
|
64
|
-
isFetched: boolean;
|
|
65
|
-
isFetchedAfterMount: boolean;
|
|
66
|
-
isFetching: boolean;
|
|
67
|
-
isInitialLoading: boolean;
|
|
68
|
-
isPaused: boolean;
|
|
69
|
-
isPlaceholderData: boolean;
|
|
70
|
-
isPreviousData: boolean;
|
|
71
|
-
isRefetching: boolean;
|
|
72
|
-
isStale: boolean;
|
|
73
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
74
|
-
remove: () => void;
|
|
75
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
76
|
-
} | {
|
|
77
|
-
count: number;
|
|
78
|
-
data: Product[];
|
|
79
|
-
error: unknown;
|
|
80
|
-
isError: true;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: false;
|
|
83
|
-
isRefetchError: true;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
87
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
88
|
-
hasNextPage?: boolean;
|
|
89
|
-
hasPreviousPage?: boolean;
|
|
90
|
-
isFetchingNextPage: boolean;
|
|
91
|
-
isFetchingPreviousPage: boolean;
|
|
92
|
-
dataUpdatedAt: number;
|
|
93
|
-
errorUpdatedAt: number;
|
|
94
|
-
failureCount: number;
|
|
95
|
-
failureReason: unknown;
|
|
96
|
-
errorUpdateCount: number;
|
|
97
|
-
isFetched: boolean;
|
|
98
|
-
isFetchedAfterMount: boolean;
|
|
99
|
-
isFetching: boolean;
|
|
100
|
-
isInitialLoading: boolean;
|
|
101
|
-
isPaused: boolean;
|
|
102
|
-
isPlaceholderData: boolean;
|
|
103
|
-
isPreviousData: boolean;
|
|
104
|
-
isRefetching: boolean;
|
|
105
|
-
isStale: boolean;
|
|
106
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
107
|
-
remove: () => void;
|
|
108
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
|
-
} | {
|
|
110
|
-
count: number;
|
|
111
|
-
data: Product[];
|
|
112
|
-
error: null;
|
|
113
|
-
isError: false;
|
|
114
|
-
isLoading: false;
|
|
115
|
-
isLoadingError: false;
|
|
116
|
-
isRefetchError: false;
|
|
117
|
-
isSuccess: true;
|
|
118
|
-
status: "success";
|
|
119
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
120
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
121
|
-
hasNextPage?: boolean;
|
|
122
|
-
hasPreviousPage?: boolean;
|
|
123
|
-
isFetchingNextPage: boolean;
|
|
124
|
-
isFetchingPreviousPage: boolean;
|
|
125
|
-
dataUpdatedAt: number;
|
|
126
|
-
errorUpdatedAt: number;
|
|
127
|
-
failureCount: number;
|
|
128
|
-
failureReason: unknown;
|
|
129
|
-
errorUpdateCount: number;
|
|
130
|
-
isFetched: boolean;
|
|
131
|
-
isFetchedAfterMount: boolean;
|
|
132
|
-
isFetching: boolean;
|
|
133
|
-
isInitialLoading: boolean;
|
|
134
|
-
isPaused: boolean;
|
|
135
|
-
isPlaceholderData: boolean;
|
|
136
|
-
isPreviousData: boolean;
|
|
137
|
-
isRefetching: boolean;
|
|
138
|
-
isStale: boolean;
|
|
139
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
140
|
-
remove: () => void;
|
|
141
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
142
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Questionnaire, ResponseList } from "../../../interfaces";
|
|
3
|
-
export interface QuestionnaireQuery extends UseQueryOptions<ResponseList<"Questionnairezes", Questionnaire>> {
|
|
4
|
-
tags?: string;
|
|
5
|
-
page?: number;
|
|
6
|
-
records?: number;
|
|
7
|
-
queryField?: string;
|
|
8
|
-
sortBy?: string;
|
|
9
|
-
sortDirection?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const useQuestionnaireQueryHook: ({ tags, page, records, queryField, sortBy, sortDirection }: QuestionnaireQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Questionnairezes", Questionnaire>, unknown>;
|