npm-pkg-hook 1.3.6 → 1.3.8
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/.eslintrc.js +38 -38
- package/.eslintrc.json +127 -127
- package/.github/pull_request_template.md +17 -17
- package/.github/workflows/pepeline.yaml +29 -29
- package/package.json +46 -46
- package/script.txt +6 -6
- package/src/config/client/index.js +1 -1
- package/src/hooks/getCategoriesWithProduct/helpers/index.js +7 -7
- package/src/hooks/getCategoriesWithProduct/index.js +62 -62
- package/src/hooks/getSession/index.js +18 -18
- package/src/hooks/handleLogin/index.js +10 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useAnimationFrame/index.js +45 -45
- package/src/hooks/useAsideCart/index.js +155 -155
- package/src/hooks/useAsideCart/queries.js +10 -10
- package/src/hooks/useCart/index.js +2 -2
- package/src/hooks/useCart/queries.js +164 -164
- package/src/hooks/useCart/useCart/helpers/index.js +75 -75
- package/src/hooks/useCart/useCart/index.js +410 -410
- package/src/hooks/useCart/useGetCart/index.js +31 -31
- package/src/hooks/useCatWithProductClient/index.js +56 -56
- package/src/hooks/useCatWithProductClient/queries.js +55 -55
- package/src/hooks/useCategoriesProduct/index.js +12 -12
- package/src/hooks/useCategoriesProduct/queries.js +16 -16
- package/src/hooks/useCategoryInStore/queries.js +78 -78
- package/src/hooks/useChartData/useChartData/index.js +199 -199
- package/src/hooks/useChartData/useChartDataAllOrders/index.js +94 -94
- package/src/hooks/useCheckbox/index.js +115 -115
- package/src/hooks/useCreateProduct/helpers/manageCacheDataCatProduct/index.js +52 -0
- package/src/hooks/useCreateProduct/index.js +8 -3
- package/src/hooks/useDeleteSubProductOptional/index.js +30 -30
- package/src/hooks/useDeleteSubProductOptional/queries.js +10 -10
- package/src/hooks/useDessert/helpers/index.js +51 -51
- package/src/hooks/useDevices/index.js +35 -35
- package/src/hooks/useDevices/queries.js +19 -19
- package/src/hooks/useDropzone/index.js +94 -94
- package/src/hooks/useDynamicAuth/index.js +13 -13
- package/src/hooks/useDynamicAuth/queries.js +24 -24
- package/src/hooks/useEditSubProductOptional/queries.js +10 -10
- package/src/hooks/useEvent/index.js +33 -33
- package/src/hooks/useFavoriteStores/index.js +19 -19
- package/src/hooks/useFavoriteStores/queries.js +47 -47
- package/src/hooks/useFetchJson/index.js +25 -25
- package/src/hooks/useFingerprintjs/index.js +172 -172
- package/src/hooks/useFullScreenMode/index.js +65 -65
- package/src/hooks/useGenerateNumberArray/index.js +17 -17
- package/src/hooks/useGetExtProductFoodsSubOptionalAll/index.js +14 -14
- package/src/hooks/useGetFoodRecomended/index.js +32 -33
- package/src/hooks/useGetFoodRecomended/queries.js +47 -47
- package/src/hooks/useGetMinPrice/index.js +12 -12
- package/src/hooks/useGetMinPrice/queries.js +7 -7
- package/src/hooks/useGetOneStoreRating/index.js +40 -40
- package/src/hooks/useGetOneStoreRating/queries.js +18 -18
- package/src/hooks/useGoogleLogin/index.js +160 -160
- package/src/hooks/useGoogleLogin/loadScript.js +15 -15
- package/src/hooks/useGoogleLogin/removeScript.js +7 -7
- package/src/hooks/useHover/index.js +29 -29
- package/src/hooks/useImagesStore/index.js +5 -4
- package/src/hooks/useInnerHtml/index.js +39 -39
- package/src/hooks/useKeypress/index.js +28 -28
- package/src/hooks/useLocationNavigate/index.js +54 -54
- package/src/hooks/useLogout/index.js +29 -21
- package/src/hooks/useManageQueryParams/index.js +37 -36
- package/src/hooks/useMobile/index.js +39 -39
- package/src/hooks/useOrderClient/index.js +5 -5
- package/src/hooks/useProviders/index.js +3 -3
- package/src/hooks/useProviders/queries.js +31 -31
- package/src/hooks/useProviders/useProvidersCreateStore/index.js +12 -12
- package/src/hooks/useProviders/useProvidersDataStore/index.js +24 -24
- package/src/hooks/useProvidersStore/index.js +24 -24
- package/src/hooks/useProvidersStore/queries.js +31 -31
- package/src/hooks/useRatingArrayData/index.js +54 -54
- package/src/hooks/useRatingArrayData/queries.js +19 -19
- package/src/hooks/useRemoveExtraProductFoodsOptional/index.js +23 -23
- package/src/hooks/useRemoveExtraProductFoodsOptional/queries.js +48 -48
- package/src/hooks/useRestaurant/index.js +19 -19
- package/src/hooks/useRestaurant/queries.js +80 -80
- package/src/hooks/useSales/useGetAllSales/index.js +25 -25
- package/src/hooks/useSchedule/index.js +72 -72
- package/src/hooks/useSchedule/index.jsx +22 -22
- package/src/hooks/useSchedule/queries.js +43 -43
- package/src/hooks/useScheduleData/index.js +123 -123
- package/src/hooks/useScroll/index.js +56 -56
- package/src/hooks/useScrollRotate/index.js +16 -16
- package/src/hooks/useStatusOpenStore/helpers/index.js +101 -101
- package/src/hooks/useStatusOpenStore/index.js +172 -172
- package/src/hooks/useStatusOrdersClient/queries.js +80 -80
- package/src/hooks/useStore/queries.js +163 -163
- package/src/hooks/useStoreCalendar/index.js +5 -5
- package/src/hooks/useStoreContacts/queries.js +1 -1
- package/src/hooks/useTimeAgo/useTimeAgo.js +39 -39
- package/src/hooks/useUpdateExtProductFoodsSubOptional/index.js +38 -38
- package/src/hooks/useWindowSize/index.js +38 -38
- package/src/mock/dessert/index.js +16 -16
- package/src/mock/index.js +1 -1
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -8
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { GET_ALL_SHOPPING_CARD } from '../queries'
|
|
2
|
-
import { useQuery } from '@apollo/client'
|
|
3
|
-
|
|
4
|
-
export const useGetCart = ({
|
|
5
|
-
setAlertBox = () => { },
|
|
6
|
-
setCountItemProduct = () => { }
|
|
7
|
-
} = {}) => {
|
|
8
|
-
const {
|
|
9
|
-
data,
|
|
10
|
-
loading,
|
|
11
|
-
error,
|
|
12
|
-
called
|
|
13
|
-
} = useQuery(GET_ALL_SHOPPING_CARD, {
|
|
14
|
-
onCompleted: data => {
|
|
15
|
-
if (Array.isArray(data?.getAllShoppingCard) && Number(data?.getAllShoppingCard?.length)) {
|
|
16
|
-
setCountItemProduct(data?.getAllShoppingCard?.length)
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
fetchPolicy: 'cache-and-network',
|
|
20
|
-
onError: () => {
|
|
21
|
-
setAlertBox({ message: 'No pudimos cargar el carrito...' })
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
const cart = data?.getAllShoppingCard || []
|
|
25
|
-
return [cart, {
|
|
26
|
-
data,
|
|
27
|
-
called,
|
|
28
|
-
loading,
|
|
29
|
-
error
|
|
30
|
-
}]
|
|
31
|
-
}
|
|
1
|
+
import { GET_ALL_SHOPPING_CARD } from '../queries'
|
|
2
|
+
import { useQuery } from '@apollo/client'
|
|
3
|
+
|
|
4
|
+
export const useGetCart = ({
|
|
5
|
+
setAlertBox = () => { },
|
|
6
|
+
setCountItemProduct = () => { }
|
|
7
|
+
} = {}) => {
|
|
8
|
+
const {
|
|
9
|
+
data,
|
|
10
|
+
loading,
|
|
11
|
+
error,
|
|
12
|
+
called
|
|
13
|
+
} = useQuery(GET_ALL_SHOPPING_CARD, {
|
|
14
|
+
onCompleted: data => {
|
|
15
|
+
if (Array.isArray(data?.getAllShoppingCard) && Number(data?.getAllShoppingCard?.length)) {
|
|
16
|
+
setCountItemProduct(data?.getAllShoppingCard?.length)
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
fetchPolicy: 'cache-and-network',
|
|
20
|
+
onError: () => {
|
|
21
|
+
setAlertBox({ message: 'No pudimos cargar el carrito...' })
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
const cart = data?.getAllShoppingCard || []
|
|
25
|
+
return [cart, {
|
|
26
|
+
data,
|
|
27
|
+
called,
|
|
28
|
+
loading,
|
|
29
|
+
error
|
|
30
|
+
}]
|
|
31
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { useQuery } from '@apollo/client';
|
|
2
|
-
import { GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS } from './queries';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Custom hook to fetch categories with product data.
|
|
7
|
-
*
|
|
8
|
-
* @param {string} idStore - The ID of the store.
|
|
9
|
-
* @returns {object} - The hook result containing filtered data, loading state, and fetch function.
|
|
10
|
-
*/
|
|
11
|
-
export const useCatWithProductClient = (idStore) => {
|
|
12
|
-
const { data, loading, error, fetchMore } = useQuery(GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS, {
|
|
13
|
-
fetchPolicy: 'cache-and-network',
|
|
14
|
-
variables: {
|
|
15
|
-
max: 100,
|
|
16
|
-
idStore,
|
|
17
|
-
search: '',
|
|
18
|
-
gender: [],
|
|
19
|
-
desc: [],
|
|
20
|
-
categories: [],
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const fetchCategories = () => {
|
|
25
|
-
fetchMore({
|
|
26
|
-
variables: {
|
|
27
|
-
max: 100,
|
|
28
|
-
idStore,
|
|
29
|
-
search: '',
|
|
30
|
-
gender: [],
|
|
31
|
-
desc: [],
|
|
32
|
-
categories: [],
|
|
33
|
-
},
|
|
34
|
-
updateQuery: (prev, { fetchMoreResult }) => {
|
|
35
|
-
if (!fetchMoreResult) return prev;
|
|
36
|
-
return {
|
|
37
|
-
...prev,
|
|
38
|
-
getCatProductsWithProductClient: fetchMoreResult.getCatProductsWithProductClient,
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// Utiliza useMemo para memorizar el resultado filtrado
|
|
45
|
-
const filteredData = useMemo(() => {
|
|
46
|
-
return data?.getCatProductsWithProductClient?.filter(
|
|
47
|
-
(category) => category?.productFoodsAll?.length > 0
|
|
48
|
-
) || [];
|
|
49
|
-
}, [data]);
|
|
50
|
-
|
|
51
|
-
return [filteredData, {
|
|
52
|
-
loading,
|
|
53
|
-
error,
|
|
54
|
-
fetchCategories,
|
|
55
|
-
}]
|
|
56
|
-
};
|
|
1
|
+
import { useQuery } from '@apollo/client';
|
|
2
|
+
import { GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS } from './queries';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Custom hook to fetch categories with product data.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} idStore - The ID of the store.
|
|
9
|
+
* @returns {object} - The hook result containing filtered data, loading state, and fetch function.
|
|
10
|
+
*/
|
|
11
|
+
export const useCatWithProductClient = (idStore) => {
|
|
12
|
+
const { data, loading, error, fetchMore } = useQuery(GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS, {
|
|
13
|
+
fetchPolicy: 'cache-and-network',
|
|
14
|
+
variables: {
|
|
15
|
+
max: 100,
|
|
16
|
+
idStore,
|
|
17
|
+
search: '',
|
|
18
|
+
gender: [],
|
|
19
|
+
desc: [],
|
|
20
|
+
categories: [],
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const fetchCategories = () => {
|
|
25
|
+
fetchMore({
|
|
26
|
+
variables: {
|
|
27
|
+
max: 100,
|
|
28
|
+
idStore,
|
|
29
|
+
search: '',
|
|
30
|
+
gender: [],
|
|
31
|
+
desc: [],
|
|
32
|
+
categories: [],
|
|
33
|
+
},
|
|
34
|
+
updateQuery: (prev, { fetchMoreResult }) => {
|
|
35
|
+
if (!fetchMoreResult) return prev;
|
|
36
|
+
return {
|
|
37
|
+
...prev,
|
|
38
|
+
getCatProductsWithProductClient: fetchMoreResult.getCatProductsWithProductClient,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Utiliza useMemo para memorizar el resultado filtrado
|
|
45
|
+
const filteredData = useMemo(() => {
|
|
46
|
+
return data?.getCatProductsWithProductClient?.filter(
|
|
47
|
+
(category) => category?.productFoodsAll?.length > 0
|
|
48
|
+
) || [];
|
|
49
|
+
}, [data]);
|
|
50
|
+
|
|
51
|
+
return [filteredData, {
|
|
52
|
+
loading,
|
|
53
|
+
error,
|
|
54
|
+
fetchCategories,
|
|
55
|
+
}]
|
|
56
|
+
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { gql } from '@apollo/client'
|
|
2
|
-
|
|
3
|
-
export const GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS = gql`
|
|
4
|
-
query getCatProductsWithProductClient($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], $carProId: ID $idStore: ID ) {
|
|
5
|
-
getCatProductsWithProductClient(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories, carProId: $carProId idStore: $idStore) {
|
|
6
|
-
carProId
|
|
7
|
-
pState
|
|
8
|
-
pState
|
|
9
|
-
ProImage
|
|
10
|
-
idStore
|
|
11
|
-
pName
|
|
12
|
-
ProDescription
|
|
13
|
-
ProImage
|
|
14
|
-
pState
|
|
15
|
-
pDatCre
|
|
16
|
-
pDatMod
|
|
17
|
-
productFoodsAll {
|
|
18
|
-
pId
|
|
19
|
-
sizeId
|
|
20
|
-
colorId
|
|
21
|
-
carProId
|
|
22
|
-
cId
|
|
23
|
-
dId
|
|
24
|
-
ValueDelivery
|
|
25
|
-
ctId
|
|
26
|
-
idStore
|
|
27
|
-
caId
|
|
28
|
-
fId
|
|
29
|
-
pName
|
|
30
|
-
ProPrice
|
|
31
|
-
ProDescuento
|
|
32
|
-
ProUniDisponibles
|
|
33
|
-
ProDescription
|
|
34
|
-
ProProtegido
|
|
35
|
-
ProAssurance
|
|
36
|
-
ProImage
|
|
37
|
-
ProStar
|
|
38
|
-
ProWidth
|
|
39
|
-
ProHeight
|
|
40
|
-
ProLength
|
|
41
|
-
ProWeight
|
|
42
|
-
ProQuantity
|
|
43
|
-
ProOutstanding
|
|
44
|
-
ProDelivery
|
|
45
|
-
ProVoltaje
|
|
46
|
-
pState
|
|
47
|
-
sTateLogistic
|
|
48
|
-
pDatCre
|
|
49
|
-
pDatMod
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`
|
|
1
|
+
import { gql } from '@apollo/client'
|
|
2
|
+
|
|
3
|
+
export const GET_ALL_CATEGORIES_WITH_PRODUCT_CLIENTS = gql`
|
|
4
|
+
query getCatProductsWithProductClient($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], $carProId: ID $idStore: ID ) {
|
|
5
|
+
getCatProductsWithProductClient(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories, carProId: $carProId idStore: $idStore) {
|
|
6
|
+
carProId
|
|
7
|
+
pState
|
|
8
|
+
pState
|
|
9
|
+
ProImage
|
|
10
|
+
idStore
|
|
11
|
+
pName
|
|
12
|
+
ProDescription
|
|
13
|
+
ProImage
|
|
14
|
+
pState
|
|
15
|
+
pDatCre
|
|
16
|
+
pDatMod
|
|
17
|
+
productFoodsAll {
|
|
18
|
+
pId
|
|
19
|
+
sizeId
|
|
20
|
+
colorId
|
|
21
|
+
carProId
|
|
22
|
+
cId
|
|
23
|
+
dId
|
|
24
|
+
ValueDelivery
|
|
25
|
+
ctId
|
|
26
|
+
idStore
|
|
27
|
+
caId
|
|
28
|
+
fId
|
|
29
|
+
pName
|
|
30
|
+
ProPrice
|
|
31
|
+
ProDescuento
|
|
32
|
+
ProUniDisponibles
|
|
33
|
+
ProDescription
|
|
34
|
+
ProProtegido
|
|
35
|
+
ProAssurance
|
|
36
|
+
ProImage
|
|
37
|
+
ProStar
|
|
38
|
+
ProWidth
|
|
39
|
+
ProHeight
|
|
40
|
+
ProLength
|
|
41
|
+
ProWeight
|
|
42
|
+
ProQuantity
|
|
43
|
+
ProOutstanding
|
|
44
|
+
ProDelivery
|
|
45
|
+
ProVoltaje
|
|
46
|
+
pState
|
|
47
|
+
sTateLogistic
|
|
48
|
+
pDatCre
|
|
49
|
+
pDatMod
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useQuery } from '@apollo/client'
|
|
2
|
-
import { GET_ULTIMATE_CATEGORY_PRODUCTS } from './queries'
|
|
3
|
-
|
|
4
|
-
export const useCategoriesProduct = () => {
|
|
5
|
-
const {
|
|
6
|
-
data,
|
|
7
|
-
loading,
|
|
8
|
-
error,
|
|
9
|
-
networkStatus
|
|
10
|
-
} = useQuery(GET_ULTIMATE_CATEGORY_PRODUCTS)
|
|
11
|
-
return [data?.catProductsAll, { loading, error, networkStatus }]
|
|
12
|
-
}
|
|
1
|
+
import { useQuery } from '@apollo/client'
|
|
2
|
+
import { GET_ULTIMATE_CATEGORY_PRODUCTS } from './queries'
|
|
3
|
+
|
|
4
|
+
export const useCategoriesProduct = () => {
|
|
5
|
+
const {
|
|
6
|
+
data,
|
|
7
|
+
loading,
|
|
8
|
+
error,
|
|
9
|
+
networkStatus
|
|
10
|
+
} = useQuery(GET_ULTIMATE_CATEGORY_PRODUCTS)
|
|
11
|
+
return [data?.catProductsAll, { loading, error, networkStatus }]
|
|
12
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { gql } from '@apollo/client'
|
|
2
|
-
|
|
3
|
-
export const GET_ULTIMATE_CATEGORY_PRODUCTS = gql`
|
|
4
|
-
query catProductsAll($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
|
|
5
|
-
catProductsAll(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
|
|
6
|
-
carProId
|
|
7
|
-
idStore
|
|
8
|
-
pName
|
|
9
|
-
ProDescription
|
|
10
|
-
ProImage
|
|
11
|
-
pState
|
|
12
|
-
pDatCre
|
|
13
|
-
pDatMod
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`
|
|
1
|
+
import { gql } from '@apollo/client'
|
|
2
|
+
|
|
3
|
+
export const GET_ULTIMATE_CATEGORY_PRODUCTS = gql`
|
|
4
|
+
query catProductsAll($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
|
|
5
|
+
catProductsAll(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
|
|
6
|
+
carProId
|
|
7
|
+
idStore
|
|
8
|
+
pName
|
|
9
|
+
ProDescription
|
|
10
|
+
ProImage
|
|
11
|
+
pState
|
|
12
|
+
pDatCre
|
|
13
|
+
pDatMod
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { gql } from '@apollo/client'
|
|
2
|
-
|
|
3
|
-
export const GET_ONE_STORE_IN_CATEGORY = gql`
|
|
4
|
-
query getOneCatStore($catStore: ID){
|
|
5
|
-
getOneCatStore(catStore: $catStore){
|
|
6
|
-
catStore
|
|
7
|
-
idUser
|
|
8
|
-
cName
|
|
9
|
-
cState
|
|
10
|
-
cDatCre
|
|
11
|
-
cPathImage
|
|
12
|
-
cDatMod
|
|
13
|
-
csDescription
|
|
14
|
-
getAllStore {
|
|
15
|
-
idStore
|
|
16
|
-
cId
|
|
17
|
-
id
|
|
18
|
-
dId
|
|
19
|
-
ctId
|
|
20
|
-
catStore
|
|
21
|
-
neighborhoodStore
|
|
22
|
-
Viaprincipal
|
|
23
|
-
storeOwner
|
|
24
|
-
storeName
|
|
25
|
-
emailStore
|
|
26
|
-
storePhone
|
|
27
|
-
socialRaz
|
|
28
|
-
Image
|
|
29
|
-
banner
|
|
30
|
-
documentIdentifier
|
|
31
|
-
uPhoNum
|
|
32
|
-
ULocation
|
|
33
|
-
upLat
|
|
34
|
-
upLon
|
|
35
|
-
uState
|
|
36
|
-
siteWeb
|
|
37
|
-
description
|
|
38
|
-
NitStore
|
|
39
|
-
typeRegiments
|
|
40
|
-
typeContribute
|
|
41
|
-
secVia
|
|
42
|
-
addressStore
|
|
43
|
-
createdAt
|
|
44
|
-
pais {
|
|
45
|
-
cId
|
|
46
|
-
cName
|
|
47
|
-
cCalCod
|
|
48
|
-
cState
|
|
49
|
-
cDatCre
|
|
50
|
-
cDatMod
|
|
51
|
-
}
|
|
52
|
-
city {
|
|
53
|
-
ctId
|
|
54
|
-
dId
|
|
55
|
-
cName
|
|
56
|
-
cState
|
|
57
|
-
cDatCre
|
|
58
|
-
cDatMod
|
|
59
|
-
}
|
|
60
|
-
department {
|
|
61
|
-
dId
|
|
62
|
-
cId
|
|
63
|
-
dName
|
|
64
|
-
dState
|
|
65
|
-
dDatCre
|
|
66
|
-
dDatMod
|
|
67
|
-
}
|
|
68
|
-
getAllRatingStar {
|
|
69
|
-
rSId
|
|
70
|
-
rScore
|
|
71
|
-
idStore
|
|
72
|
-
createAt
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
`
|
|
1
|
+
import { gql } from '@apollo/client'
|
|
2
|
+
|
|
3
|
+
export const GET_ONE_STORE_IN_CATEGORY = gql`
|
|
4
|
+
query getOneCatStore($catStore: ID){
|
|
5
|
+
getOneCatStore(catStore: $catStore){
|
|
6
|
+
catStore
|
|
7
|
+
idUser
|
|
8
|
+
cName
|
|
9
|
+
cState
|
|
10
|
+
cDatCre
|
|
11
|
+
cPathImage
|
|
12
|
+
cDatMod
|
|
13
|
+
csDescription
|
|
14
|
+
getAllStore {
|
|
15
|
+
idStore
|
|
16
|
+
cId
|
|
17
|
+
id
|
|
18
|
+
dId
|
|
19
|
+
ctId
|
|
20
|
+
catStore
|
|
21
|
+
neighborhoodStore
|
|
22
|
+
Viaprincipal
|
|
23
|
+
storeOwner
|
|
24
|
+
storeName
|
|
25
|
+
emailStore
|
|
26
|
+
storePhone
|
|
27
|
+
socialRaz
|
|
28
|
+
Image
|
|
29
|
+
banner
|
|
30
|
+
documentIdentifier
|
|
31
|
+
uPhoNum
|
|
32
|
+
ULocation
|
|
33
|
+
upLat
|
|
34
|
+
upLon
|
|
35
|
+
uState
|
|
36
|
+
siteWeb
|
|
37
|
+
description
|
|
38
|
+
NitStore
|
|
39
|
+
typeRegiments
|
|
40
|
+
typeContribute
|
|
41
|
+
secVia
|
|
42
|
+
addressStore
|
|
43
|
+
createdAt
|
|
44
|
+
pais {
|
|
45
|
+
cId
|
|
46
|
+
cName
|
|
47
|
+
cCalCod
|
|
48
|
+
cState
|
|
49
|
+
cDatCre
|
|
50
|
+
cDatMod
|
|
51
|
+
}
|
|
52
|
+
city {
|
|
53
|
+
ctId
|
|
54
|
+
dId
|
|
55
|
+
cName
|
|
56
|
+
cState
|
|
57
|
+
cDatCre
|
|
58
|
+
cDatMod
|
|
59
|
+
}
|
|
60
|
+
department {
|
|
61
|
+
dId
|
|
62
|
+
cId
|
|
63
|
+
dName
|
|
64
|
+
dState
|
|
65
|
+
dDatCre
|
|
66
|
+
dDatMod
|
|
67
|
+
}
|
|
68
|
+
getAllRatingStar {
|
|
69
|
+
rSId
|
|
70
|
+
rScore
|
|
71
|
+
idStore
|
|
72
|
+
createAt
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`
|