@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.
Files changed (98) hide show
  1. package/package.json +4 -3
  2. package/src/constants/Icons.ts +2 -4
  3. package/webpack.config.js +20 -2
  4. package/dist/bundle.js +0 -1
  5. package/dist/types/components/BottomDrawer/index.d.ts +0 -9
  6. package/dist/types/components/Button/index.d.ts +0 -2
  7. package/dist/types/components/Footer/index.d.ts +0 -3
  8. package/dist/types/components/Form/FormInputField/index.d.ts +0 -8
  9. package/dist/types/components/Form/FormSelectField/index.d.ts +0 -9
  10. package/dist/types/components/Form/index.d.ts +0 -2
  11. package/dist/types/components/Header/index.d.ts +0 -4
  12. package/dist/types/components/Link/index.d.ts +0 -6
  13. package/dist/types/components/Navigation/index.d.ts +0 -8
  14. package/dist/types/components/Page/index.d.ts +0 -13
  15. package/dist/types/components/SharedContextProvider/index.d.ts +0 -7
  16. package/dist/types/components/index.d.ts +0 -9
  17. package/dist/types/constants/Icons.d.ts +0 -15
  18. package/dist/types/constants/QueryClient.d.ts +0 -2
  19. package/dist/types/constants/index.d.ts +0 -2
  20. package/dist/types/contexts/useStore.d.ts +0 -8
  21. package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +0 -7
  22. package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +0 -9
  23. package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +0 -7
  24. package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +0 -11
  25. package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +0 -14
  26. package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +0 -2
  27. package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +0 -7
  28. package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +0 -9
  29. package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +0 -8
  30. package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +0 -10
  31. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +0 -2
  32. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +0 -11
  33. package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +0 -2
  34. package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +0 -2
  35. package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +0 -2
  36. package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +0 -2
  37. package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +0 -2
  38. package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +0 -2
  39. package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +0 -7
  40. package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +0 -7
  41. package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +0 -142
  42. package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +0 -7
  43. package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +0 -2
  44. package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +0 -7
  45. package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +0 -142
  46. package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +0 -2
  47. package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +0 -11
  48. package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +0 -2
  49. package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +0 -2
  50. package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +0 -2
  51. package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +0 -2
  52. package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +0 -2
  53. package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +0 -2
  54. package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +0 -11
  55. package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +0 -13
  56. package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +0 -8
  57. package/dist/types/hooks/Store/useStoreQuery.d.ts +0 -7
  58. package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +0 -8
  59. package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +0 -2
  60. package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +0 -2
  61. package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +0 -11
  62. package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +0 -12
  63. package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +0 -2
  64. package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +0 -8
  65. package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +0 -6
  66. package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +0 -2
  67. package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +0 -2
  68. package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +0 -2
  69. package/dist/types/hooks/index.d.ts +0 -48
  70. package/dist/types/index.d.ts +0 -7
  71. package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +0 -19
  72. package/dist/types/interfaces/AnalyticsUserId.d.ts +0 -12
  73. package/dist/types/interfaces/Answer.d.ts +0 -12
  74. package/dist/types/interfaces/AnswersUserSupervisor.d.ts +0 -42
  75. package/dist/types/interfaces/ApplicationsByCategory.d.ts +0 -16
  76. package/dist/types/interfaces/AsvProductsByReference.d.ts +0 -12
  77. package/dist/types/interfaces/AsvProductsByStore.d.ts +0 -12
  78. package/dist/types/interfaces/Brand.d.ts +0 -4
  79. package/dist/types/interfaces/Cart.d.ts +0 -10
  80. package/dist/types/interfaces/Configuration.d.ts +0 -6
  81. package/dist/types/interfaces/ContractStates.d.ts +0 -7
  82. package/dist/types/interfaces/Countries.d.ts +0 -10
  83. package/dist/types/interfaces/Customer.d.ts +0 -21
  84. package/dist/types/interfaces/EvaluationCycle.d.ts +0 -32
  85. package/dist/types/interfaces/ExpUsersAnswers.d.ts +0 -15
  86. package/dist/types/interfaces/JobTitles.d.ts +0 -7
  87. package/dist/types/interfaces/Product.d.ts +0 -15
  88. package/dist/types/interfaces/ProductsHierarchies.d.ts +0 -5
  89. package/dist/types/interfaces/Questionnaire.d.ts +0 -36
  90. package/dist/types/interfaces/ResponseList.d.ts +0 -5
  91. package/dist/types/interfaces/Roles.d.ts +0 -5
  92. package/dist/types/interfaces/Store.d.ts +0 -7
  93. package/dist/types/interfaces/TermNotification.d.ts +0 -5
  94. package/dist/types/interfaces/User.d.ts +0 -68
  95. package/dist/types/interfaces/index.d.ts +0 -24
  96. package/dist/types/services/ApiService/index.d.ts +0 -9
  97. package/dist/types/services/InitService/index.d.ts +0 -3
  98. 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,2 +0,0 @@
1
- import { ButtonProps } from 'antd';
2
- export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const FooterComponent: ({ className }: {
2
- className?: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 +0,0 @@
1
- export * from './FormInputField';
2
- export * from './FormSelectField';
@@ -1,4 +0,0 @@
1
- export interface HeaderProps {
2
- onOpenMenu: () => void;
3
- }
4
- export declare const Header: ({ onOpenMenu }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { ButtonProps } from 'antd';
2
- export interface CustomLinkProps extends ButtonProps {
3
- iconAlignRight?: boolean;
4
- linkSecondary?: boolean;
5
- }
6
- export declare const Link: (props: CustomLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- export interface NavigationProps {
2
- backLink?: boolean;
3
- title: string;
4
- homeLink?: boolean;
5
- loginLink?: boolean;
6
- onClickFunction?: () => void;
7
- }
8
- export declare const Navigation: (props: NavigationProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 +0,0 @@
1
- import { QueryClient } from '@tanstack/react-query';
2
- export declare const queryClient: QueryClient;
@@ -1,2 +0,0 @@
1
- export * from './QueryClient';
2
- export * from './Icons';
@@ -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,2 +0,0 @@
1
- import { Answer } from "../../../interfaces";
2
- export declare const useAnswerIdQueryHook: (answerId: string) => import("@tanstack/react-query").UseQueryResult<Answer, 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,2 +0,0 @@
1
- import { EvaluationCycle } from "../../../interfaces";
2
- export declare const useEvaluationCycleIdQueryHook: (evaluationId: string) => import("@tanstack/react-query").UseQueryResult<EvaluationCycle, 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,2 +0,0 @@
1
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
2
- export declare const useEvaluationCycleMutateHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
@@ -1,2 +0,0 @@
1
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
2
- export declare const activateEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
@@ -1,2 +0,0 @@
1
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
2
- export declare const cancelEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
@@ -1,2 +0,0 @@
1
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
2
- export declare const deleteEvaluationCycleMutateHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
@@ -1,2 +0,0 @@
1
- import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
2
- export declare const finishEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
@@ -1,2 +0,0 @@
1
- import { ApplicationsByCategory, ResponseList } from "../../interfaces";
2
- export declare const useApplicationDataQueryHook: () => import("@tanstack/react-query").UseQueryResult<ResponseList<"Categories", ApplicationsByCategory>, 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,2 +0,0 @@
1
- import { TermNotification } from "../../interfaces";
2
- export declare const useTermNotificationQueryHook: () => import("@tanstack/react-query").UseQueryResult<TermNotification[], unknown>;
@@ -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,2 +0,0 @@
1
- import { Questionnaire } from "../../../interfaces";
2
- export declare const useQuestionnaireIdQueryHook: (surveyId: string) => import("@tanstack/react-query").UseQueryResult<Questionnaire, unknown>;
@@ -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>;