npm-pkg-hook 1.12.7 → 1.12.9
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/.babelrc +0 -0
- package/.env +5 -0
- package/.github/pull_request_template.md +18 -0
- package/.github/workflows/pepeline.yaml +30 -0
- package/dist/index.js +47752 -10080
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +47068 -9612
- package/dist/index.mjs.map +1 -0
- package/eslint.config.mts +153 -0
- package/expire.json +1 -0
- package/jsconfig.json +28 -0
- package/package.json +24 -61
- package/script.txt +7 -0
- package/src/config/client/errors.ts +39 -0
- package/src/config/client/index.ts +1 -0
- package/src/config/content/en.json +5 -0
- package/src/config/content/es.json +5 -0
- package/src/config/content/index.ts +16 -0
- package/src/cookies/index.ts +3 -0
- package/src/hooks/addTenMinutes/index.ts +14 -0
- package/src/hooks/calculateLogLatHaversine/index.ts +41 -0
- package/src/hooks/completeSchedules/index.ts +22 -0
- package/src/hooks/convertToMilitaryTime/index.ts +18 -0
- package/src/hooks/generateStoreURL/index.ts +41 -0
- package/src/hooks/generateTemplate/index.ts +66 -0
- package/src/hooks/getCardType/index.ts +24 -0
- package/src/hooks/getCategoriesWithProduct/helpers/index.ts +7 -0
- package/src/hooks/getCategoriesWithProduct/index.ts +62 -0
- package/src/hooks/getGlobalSession/index.ts +69 -0
- package/src/hooks/getSession/index.ts +72 -0
- package/src/hooks/getTodayTimestamps/index.ts +70 -0
- package/src/hooks/getTotalHours/index.ts +76 -0
- package/src/hooks/handleLogin/index.ts +14 -0
- package/src/hooks/index.ts +153 -0
- package/src/hooks/isTokenExpired/index.ts +17 -0
- package/src/hooks/newMessageSubscription/index.ts +28 -0
- package/src/hooks/newStoreOrderSubscription/index.ts +26 -0
- package/src/hooks/statusOpenStores/helpers/index.ts +124 -0
- package/src/hooks/statusOpenStores/index.ts +221 -0
- package/src/hooks/updateExtProductFoodsOptional/index.ts +49 -0
- package/src/hooks/useAcumulateDate/index.ts +18 -0
- package/src/hooks/useAllStoresPendingToRegister/index.ts +37 -0
- package/src/hooks/useAmountInput/index.ts +127 -0
- package/src/hooks/useAnimationFrame/index.ts +45 -0
- package/src/hooks/useAnimationText/index.ts +31 -0
- package/src/hooks/useAsideCart/helpers/index.ts +22 -0
- package/src/hooks/useAsideCart/index.ts +217 -0
- package/src/hooks/useAsideCart/queries.ts +10 -0
- package/src/hooks/useBanner/index.ts +20 -0
- package/src/hooks/useCart/index.ts +2 -0
- package/src/hooks/useCart/queries.ts +174 -0
- package/src/hooks/useCart/useCart/helpers/index.ts +79 -0
- package/src/hooks/useCart/useCart/index.ts +424 -0
- package/src/hooks/useCart/useGetCart/index.ts +34 -0
- package/src/hooks/useCatWithProduct/index.ts +54 -0
- package/src/hooks/useCatWithProduct/queries.ts +200 -0
- package/src/hooks/useCatWithProduct/types/index.ts +104 -0
- package/src/hooks/useCatWithProductClient/index.ts +57 -0
- package/src/hooks/useCatWithProductClient/queries.ts +56 -0
- package/src/hooks/useCategoriesProduct/index.ts +14 -0
- package/src/hooks/useCategoriesProduct/queries.ts +16 -0
- package/src/hooks/useCategoryInStore/index.ts +167 -0
- package/src/hooks/useCategoryInStore/queries.ts +78 -0
- package/src/hooks/useCategoryStore/index.ts +8 -0
- package/src/hooks/useCategoryStore/queries.ts +16 -0
- package/src/hooks/useChartData/index.ts +171 -0
- package/src/hooks/useChartData/useChartData/index.ts +200 -0
- package/src/hooks/useChartData/useChartDataAllOrders/index.ts +94 -0
- package/src/hooks/useChatRoomSubscription/index.ts +28 -0
- package/src/hooks/useCheckbox/index.ts +115 -0
- package/src/hooks/useCities/index.ts +14 -0
- package/src/hooks/useCities/queries.ts +12 -0
- package/src/hooks/useClients/index.ts +97 -0
- package/src/hooks/useClients/queries.ts +215 -0
- package/src/hooks/useColorByLetters/helpers/alea.ts +73 -0
- package/src/hooks/useColorByLetters/helpers/colors.ts +45 -0
- package/src/hooks/useColorByLetters/helpers/index.ts +22 -0
- package/src/hooks/useColorByLetters/helpers/mersenne_twister.ts +118 -0
- package/src/hooks/useColorByLetters/index.ts +24 -0
- package/src/hooks/useConnection/index.ts +24 -0
- package/src/hooks/useCountries/index.ts +20 -0
- package/src/hooks/useCountries/queries.ts +12 -0
- package/src/hooks/useCreateDeliveryTime/index.ts +51 -0
- package/src/hooks/useCreateOrderStatusType/index.ts +134 -0
- package/src/hooks/useCreateProduct/helpers/index.ts +23 -0
- package/src/hooks/useCreateProduct/helpers/manageCacheDataCatProduct/index.ts +52 -0
- package/src/hooks/useCreateProduct/helpers/useEditImageProduct/index.ts +182 -0
- package/src/hooks/useCreateProduct/index.ts +337 -0
- package/src/hooks/useCreateStorePendingToRegister/index.ts +17 -0
- package/src/hooks/useCreateStorePendingToRegister/queries.ts +10 -0
- package/src/hooks/useDashboardComponents/index.ts +50 -0
- package/src/hooks/useDeleteExtraProductFoods/index.ts +13 -0
- package/src/hooks/useDeleteSubProductOptional/index.ts +32 -0
- package/src/hooks/useDeleteSubProductOptional/queries.ts +10 -0
- package/src/hooks/useDeliveryTime/index.ts +29 -0
- package/src/hooks/useDepartments/index.ts +14 -0
- package/src/hooks/useDepartments/queries.ts +13 -0
- package/src/hooks/useDessert/helpers/index.ts +51 -0
- package/src/hooks/useDessert/index.ts +529 -0
- package/src/hooks/useDessertWithPrice/helpers/index.ts +76 -0
- package/src/hooks/useDessertWithPrice/index.ts +381 -0
- package/src/hooks/useDessertWithPrice/queries.ts +18 -0
- package/src/hooks/useDevWS/index.ts +53 -0
- package/src/hooks/useDevices/index.ts +2 -0
- package/src/hooks/useDevices/queries.ts +28 -0
- package/src/hooks/useDevices/useGetDevices.ts +28 -0
- package/src/hooks/useDevices/useRegisterDevices.ts +75 -0
- package/src/hooks/useDownloadReports/helpers/downloadFileFromResponse.ts +21 -0
- package/src/hooks/useDownloadReports/index.ts +2 -0
- package/src/hooks/useDownloadReports/useDownloadReportByDay/index.ts +105 -0
- package/src/hooks/useDownloadReports/useGetReportByDateRange/index.ts +116 -0
- package/src/hooks/useDrag/index.ts +79 -0
- package/src/hooks/useDropzone/index.ts +94 -0
- package/src/hooks/useDynamicAuth/index.ts +14 -0
- package/src/hooks/useDynamicAuth/queries.ts +24 -0
- package/src/hooks/useEditCategory/index.ts +41 -0
- package/src/hooks/useEditOneExtProductFoodOptional/index.ts +28 -0
- package/src/hooks/useEditOneExtProductFoodOptional/queries.ts +16 -0
- package/src/hooks/useEditSubProductOptional/index.ts +12 -0
- package/src/hooks/useEditSubProductOptional/queries.ts +10 -0
- package/src/hooks/useEmployee/index.ts +18 -0
- package/src/hooks/useEmployee/queries.ts +85 -0
- package/src/hooks/useEmployee/useCreateEmployee.ts +90 -0
- package/src/hooks/useEvent/index.ts +34 -0
- package/src/hooks/useFavoriteStores/index.ts +31 -0
- package/src/hooks/useFavoriteStores/queries.ts +54 -0
- package/src/hooks/useFetchJson/index.ts +25 -0
- package/src/hooks/useFetchMoreInteractions/index.jsx +39 -0
- package/src/hooks/useFilterConfigs/index.ts +173 -0
- package/src/hooks/useFingerprintjs/index.ts +197 -0
- package/src/hooks/useFormTools/index.ts +143 -0
- package/src/hooks/useFormatDate/index.ts +91 -0
- package/src/hooks/useFormatNumberPhone/index.ts +23 -0
- package/src/hooks/useFullScreenMode/index.ts +61 -0
- package/src/hooks/useGenerateNumberArray/index.ts +17 -0
- package/src/hooks/useGetAllLocationUser/index.ts +13 -0
- package/src/hooks/useGetAllLocationUser/queries.ts +44 -0
- package/src/hooks/useGetAllSales/index.ts +26 -0
- package/src/hooks/useGetCookies/index.ts +43 -0
- package/src/hooks/useGetExtProductFoodsSubOptionalAll/index.ts +15 -0
- package/src/hooks/useGetFoodRecomended/index.ts +33 -0
- package/src/hooks/useGetFoodRecomended/queries.ts +47 -0
- package/src/hooks/useGetMessagesToRoom/index.ts +23 -0
- package/src/hooks/useGetMinPrice/index.ts +13 -0
- package/src/hooks/useGetMinPrice/queries.ts +7 -0
- package/src/hooks/useGetOneStoreRating/index.ts +41 -0
- package/src/hooks/useGetOneStoreRating/queries.ts +18 -0
- package/src/hooks/useGetSalesAmountToday/index.ts +31 -0
- package/src/hooks/useGetStoreCookie/index.ts +21 -0
- package/src/hooks/useGoogleLogin/index.ts +169 -0
- package/src/hooks/useGoogleLogin/loadScript.ts +15 -0
- package/src/hooks/useGoogleLogin/removeScript.ts +7 -0
- package/src/hooks/useHover/index.ts +32 -0
- package/src/hooks/useImageOptimization/index.ts +32 -0
- package/src/hooks/useImageUploaderProduct/helper/canvasUtils.ts +146 -0
- package/src/hooks/useImageUploaderProduct/helper/getOrientation.ts +54 -0
- package/src/hooks/useImageUploaderProduct/helper/index.ts +5 -0
- package/src/hooks/useImageUploaderProduct/index.ts +295 -0
- package/src/hooks/useImageWeight/index.ts +55 -0
- package/src/hooks/useImagesStore/index.ts +227 -0
- package/src/hooks/useImagesStore/queries.ts +193 -0
- package/src/hooks/useImagesStore/utils/index.ts +4 -0
- package/src/hooks/useIncomingOrders/index.ts +11 -0
- package/src/hooks/useIncomingOrders/queries.ts +87 -0
- package/src/hooks/useInnerHtml/index.ts +39 -0
- package/src/hooks/useIntersection/index.ts +84 -0
- package/src/hooks/useInventory/index.ts +2 -0
- package/src/hooks/useInventory/queries.ts +58 -0
- package/src/hooks/useInventory/useGetProductsInStock.ts +16 -0
- package/src/hooks/useInventory/useUpdateManageStock.ts +41 -0
- package/src/hooks/useKeypress/index.ts +28 -0
- package/src/hooks/useLazyScript/index.ts +74 -0
- package/src/hooks/useLocalBackendIp/index.ts +34 -0
- package/src/hooks/useLocalSorage/index.ts +36 -0
- package/src/hooks/useLocationManager/index.ts +63 -0
- package/src/hooks/useLocationNavigate/index.ts +54 -0
- package/src/hooks/useLoginEmployeeInStore/index.ts +38 -0
- package/src/hooks/useLogout/helpers/BroadcastChannel.ts +74 -0
- package/src/hooks/useLogout/helpers/apiBaseUrl.ts +12 -0
- package/src/hooks/useLogout/helpers/fetchData.ts +37 -0
- package/src/hooks/useLogout/helpers/getCsrfToken.ts +37 -0
- package/src/hooks/useLogout/helpers/index.ts +65 -0
- package/src/hooks/useLogout/helpers/logger.ts +88 -0
- package/src/hooks/useLogout/helpers/parseUrl.ts +39 -0
- package/src/hooks/useLogout/index.ts +105 -0
- package/src/hooks/useManageNewOrder/helpers/index.ts +45 -0
- package/src/hooks/useManageNewOrder/helpers/mock.ts +0 -0
- package/src/hooks/useManageNewOrder/index.ts +104 -0
- package/src/hooks/useManageQueryParams/index.ts +120 -0
- package/src/hooks/useMobile/index.ts +65 -0
- package/src/hooks/useModules/helpers/index.ts +1 -0
- package/src/hooks/useModules/helpers/validateModules.ts +29 -0
- package/src/hooks/useModules/index.ts +124 -0
- package/src/hooks/useMouse/index.ts +55 -0
- package/src/hooks/useMutateHeight/index.ts +36 -0
- package/src/hooks/useOrderClient/index.ts +5 -0
- package/src/hooks/useOrderStatusTypes/index.ts +2 -0
- package/src/hooks/useOrderStatusTypes/useOrderStatusTypes/index.ts +133 -0
- package/src/hooks/useOrderStatusTypes/useUpdateOrderStatusPriorities/index.ts +99 -0
- package/src/hooks/useOrders/index.ts +3 -0
- package/src/hooks/useOrders/queries.ts +99 -0
- package/src/hooks/useOrders/useChangeOrderState/index.ts +128 -0
- package/src/hooks/useOrders/useOrdersFromStore/index.ts +78 -0
- package/src/hooks/usePWAInstall/index.ts +38 -0
- package/src/hooks/usePaymentMethod/index.ts +3 -0
- package/src/hooks/usePaymentMethod/paymentMethod.gql.ts +62 -0
- package/src/hooks/usePaymentMethod/paymentMethod.types.ts +28 -0
- package/src/hooks/usePaymentMethod/useCreatePaymentMethod/index.ts +25 -0
- package/src/hooks/usePaymentMethod/useGetAllPaymentMethods/index.ts +19 -0
- package/src/hooks/usePaymentMethod/useGetPaymentMethod/index.ts +26 -0
- package/src/hooks/usePortFetcher/index.ts +33 -0
- package/src/hooks/usePrintSaleTicket/index.ts +68 -0
- package/src/hooks/useProductsFood/index.ts +341 -0
- package/src/hooks/useProductsFood/queriesStore.ts +964 -0
- package/src/hooks/useProductsFood/types/index.ts +0 -0
- package/src/hooks/useProductsFood/useEditProduct.ts +49 -0
- package/src/hooks/useProductsFood/usetagsProducts.ts +101 -0
- package/src/hooks/useProviders/index.ts +3 -0
- package/src/hooks/useProviders/queries.ts +31 -0
- package/src/hooks/useProviders/useProvidersCreateStore/index.ts +13 -0
- package/src/hooks/useProviders/useProvidersDataStore/index.ts +25 -0
- package/src/hooks/useProvidersStore/index.ts +25 -0
- package/src/hooks/useProvidersStore/queries.ts +31 -0
- package/src/hooks/usePushNotificationOrder/index.ts +52 -0
- package/src/hooks/usePushNotifications/helpers/index.ts +123 -0
- package/src/hooks/usePushNotifications/index.ts +150 -0
- package/src/hooks/useQueryLocationsMap/index.ts +20 -0
- package/src/hooks/useQueryLocationsMap/queries.ts +40 -0
- package/src/hooks/useRatingArrayData/index.ts +54 -0
- package/src/hooks/useRatingArrayData/queries.ts +19 -0
- package/src/hooks/useReactToPrint/index.txt +1223 -0
- package/src/hooks/useRemoveExtraProductFoodsOptional/index.ts +24 -0
- package/src/hooks/useRemoveExtraProductFoodsOptional/queries.ts +48 -0
- package/src/hooks/useReport/index.ts +48 -0
- package/src/hooks/useReport/queries.ts +72 -0
- package/src/hooks/useRestaurant/helpers/index.ts +28 -0
- package/src/hooks/useRestaurant/helpers/manageStatusOpen.ts +26 -0
- package/src/hooks/useRestaurant/index.ts +71 -0
- package/src/hooks/useRestaurant/queries.ts +81 -0
- package/src/hooks/useRoads/index.ts +20 -0
- package/src/hooks/useRoads/queries.ts +13 -0
- package/src/hooks/useRoles/index.ts +4 -0
- package/src/hooks/useRoles/queries.ts +70 -0
- package/src/hooks/useRoles/useCreateRole.ts +40 -0
- package/src/hooks/useRoles/useGetRoles.ts +37 -0
- package/src/hooks/useRoles/useRemoveRoles.ts +40 -0
- package/src/hooks/useRoles/useUpdateRolesPriority.ts +44 -0
- package/src/hooks/useSales/helpers/add-product.utils.ts +120 -0
- package/src/hooks/useSales/helpers/apply-discount-to-cart.utils.ts +292 -0
- package/src/hooks/useSales/helpers/comment-product.utils.ts +41 -0
- package/src/hooks/useSales/helpers/constants/index.ts +38 -0
- package/src/hooks/useSales/helpers/extras.utils.ts +42 -0
- package/src/hooks/useSales/helpers/filterProductsByCarProId.utils.ts +17 -0
- package/src/hooks/useSales/helpers/increment-product-quantity.utils.ts +76 -0
- package/src/hooks/useSales/helpers/index.ts +3 -0
- package/src/hooks/useSales/helpers/initializer.utils.ts +22 -0
- package/src/hooks/useSales/helpers/isStockInsufficient.ts +3 -0
- package/src/hooks/useSales/helpers/remove-product.utils.test.ts +49 -0
- package/src/hooks/useSales/helpers/remove-product.utils.ts +34 -0
- package/src/hooks/useSales/helpers/resolveProduct.ts +29 -0
- package/src/hooks/useSales/helpers/useAddToCart.ts +64 -0
- package/src/hooks/useSales/index.ts +1418 -0
- package/src/hooks/useSales/queries.ts +532 -0
- package/src/hooks/useSales/types/index.ts +206 -0
- package/src/hooks/useSales/types/use-sales.types.ts +8 -0
- package/src/hooks/useSales/useGetSale.ts +21 -0
- package/src/hooks/useSales/useTotalSales.ts +24 -0
- package/src/hooks/useSaveAvailableProduct/helpers/index.ts +38 -0
- package/src/hooks/useSaveAvailableProduct/index.ts +32 -0
- package/src/hooks/useSaveAvailableProduct/queries.ts +10 -0
- package/src/hooks/useSaveLocation/index.ts +17 -0
- package/src/hooks/useSaveLocation/queries.ts +19 -0
- package/src/hooks/useSchedule/index.ts +35 -0
- package/src/hooks/useSchedule/queries.ts +43 -0
- package/src/hooks/useSchedule/schedule.ts +79 -0
- package/src/hooks/useScheduleData/index.ts +135 -0
- package/src/hooks/useScroll/index.ts +56 -0
- package/src/hooks/useScrollRotate/index.ts +16 -0
- package/src/hooks/useSetImageProducts/index.ts +59 -0
- package/src/hooks/useSetImageProducts/queries.ts +18 -0
- package/src/hooks/useSetSession/index.ts +44 -0
- package/src/hooks/useSetState/index.ts +24 -0
- package/src/hooks/useSetupSchedule/helpers/index.ts +85 -0
- package/src/hooks/useSetupSchedule/index.ts +284 -0
- package/src/hooks/useStatusOpenStore/helpers/index.ts +124 -0
- package/src/hooks/useStatusOpenStore/index.ts +195 -0
- package/src/hooks/useStatusOrdersClient/helpers/index.ts +14 -0
- package/src/hooks/useStatusOrdersClient/index.ts +18 -0
- package/src/hooks/useStatusOrdersClient/queries.ts +80 -0
- package/src/hooks/useStock/index.ts +1 -0
- package/src/hooks/useStock/useStockUpdatedAllSubscription.ts +40 -0
- package/src/hooks/useStockMovements/helpers/index.ts +16 -0
- package/src/hooks/useStockMovements/index.ts +39 -0
- package/src/hooks/useStore/index.ts +83 -0
- package/src/hooks/useStore/queries.ts +163 -0
- package/src/hooks/useStoreCalendar/index.ts +5 -0
- package/src/hooks/useStoreContacts/index.ts +53 -0
- package/src/hooks/useStoreContacts/queries.ts +48 -0
- package/src/hooks/useStoreTable/index.ts +2 -0
- package/src/hooks/useStoreTable/queries.ts +47 -0
- package/src/hooks/useStoreTable/useStoreTableCreate.ts +77 -0
- package/src/hooks/useStoreTable/useStoreTables.ts +15 -0
- package/src/hooks/useSubscriptionValidation/index.ts +112 -0
- package/src/hooks/useTagProducts/index.ts +3 -0
- package/src/hooks/useTagProducts/useDeleteOneTag.ts +106 -0
- package/src/hooks/useTagProducts/useGetAllTags.ts +68 -0
- package/src/hooks/useTagProducts/useRegisterMultipleTags.ts +157 -0
- package/src/hooks/useTheme/index.ts +65 -0
- package/src/hooks/useTimeAgo/useTimeAgo.ts +39 -0
- package/src/hooks/useTokenCards/index.ts +45 -0
- package/src/hooks/useTopProductsMovements/index.ts +27 -0
- package/src/hooks/useTotalAllSales/index.ts +25 -0
- package/src/hooks/useTotalProductsInStock/index.ts +23 -0
- package/src/hooks/useTotalProductsSold/index.ts +23 -0
- package/src/hooks/useTotalProductsSolded/index.ts +20 -0
- package/src/hooks/useUpdateCart/index.ts +131 -0
- package/src/hooks/useUpdateCartCookie/index.ts +60 -0
- package/src/hooks/useUpdateDashboardComponent/index.ts +91 -0
- package/src/hooks/useUpdateExistingOrders/index.ts +85 -0
- package/src/hooks/useUpdateExtProductFoodsSubOptional/index.ts +61 -0
- package/src/hooks/useUpdateModuleOrder/index.ts +37 -0
- package/src/hooks/useUpdateMultipleExtProduct/index.ts +34 -0
- package/src/hooks/useUpdateMultipleExtProduct/queries.ts +33 -0
- package/src/hooks/useUpdateMultipleProducts/index.ts +117 -0
- package/src/hooks/useUpdateMultipleProducts/queries.ts +51 -0
- package/src/hooks/useUploadProducts/helpers/index.ts +1 -0
- package/src/hooks/useUploadProducts/helpers/parseNumber.ts +37 -0
- package/src/hooks/useUploadProducts/helpers/validateProductDataExcel.ts +73 -0
- package/src/hooks/useUploadProducts/index.ts +442 -0
- package/src/hooks/useUpsertGoal/index.ts +68 -0
- package/src/hooks/useUser/index.ts +24 -0
- package/src/hooks/useUser/queries.ts +131 -0
- package/src/hooks/useWeeklyStockMovement/helpers/index.ts +32 -0
- package/src/hooks/useWeeklyStockMovement/index.ts +52 -0
- package/src/hooks/useWindowSize/index.ts +45 -0
- package/src/index.ts +8 -0
- package/src/mock/dessert/index.ts +16 -0
- package/src/mock/index.ts +1 -0
- package/src/security/index.ts +1 -0
- package/src/services/index.ts +1 -0
- package/src/utils/UtilDateRange.ts +56 -0
- package/src/utils/generateCode.ts +222 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/utils.ts +344 -0
- package/tsconfig.eslint.json +16 -0
- package/tsconfig.json +21 -0
- package/tsup.config.ts +24 -0
- package/dist/index.cjs +0 -20089
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import { gql } from '@apollo/client'
|
|
2
|
+
|
|
3
|
+
export const CREATE_SCHEDULE_STORE = gql`
|
|
4
|
+
mutation setStoreSchedule($input: IsStoreSchedule!) {
|
|
5
|
+
setStoreSchedule(input: $input) {
|
|
6
|
+
success
|
|
7
|
+
message
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`
|
|
11
|
+
export const GET_SCHEDULE_STORE = gql`
|
|
12
|
+
query getStoreSchedules($schDay: Int, $idStore: ID) {
|
|
13
|
+
getStoreSchedules(schDay: $schDay, idStore: $idStore) {
|
|
14
|
+
schId
|
|
15
|
+
idStore
|
|
16
|
+
schDay
|
|
17
|
+
schHoSta
|
|
18
|
+
schHoEnd
|
|
19
|
+
schState
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`
|
|
23
|
+
export const GET_ONE_SCHEDULE_STORE = gql`
|
|
24
|
+
query getOneStoreSchedules($schDay: Int, $idStore: ID) {
|
|
25
|
+
getOneStoreSchedules(schDay: $schDay, idStore: $idStore) {
|
|
26
|
+
schId
|
|
27
|
+
schDay
|
|
28
|
+
schHoSta
|
|
29
|
+
schHoEnd
|
|
30
|
+
schState
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`
|
|
34
|
+
export const GET_CAT_OF_PRODUCTS = gql`
|
|
35
|
+
query getAllCatOfProducts($idStore: ID) {
|
|
36
|
+
getAllCatOfProducts(idStore: $idStore) {
|
|
37
|
+
id
|
|
38
|
+
cpId
|
|
39
|
+
catName
|
|
40
|
+
catDescription
|
|
41
|
+
schState
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`
|
|
45
|
+
export const REGISTER_CAT_OF_PRODUCTS = gql`
|
|
46
|
+
mutation updatedProducts($input: InputCatProducts) {
|
|
47
|
+
updatedProducts(input: $input) {
|
|
48
|
+
success
|
|
49
|
+
message
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
`
|
|
53
|
+
export const REGISTER_CONTRACT_STORE = gql`
|
|
54
|
+
mutation createOneContract($input: InputContractType) {
|
|
55
|
+
createOneContract(input: $input) {
|
|
56
|
+
success
|
|
57
|
+
message
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`
|
|
61
|
+
export const GET_ALL_EMPLOYEE_STORE = gql`
|
|
62
|
+
query employees($umId: ID, $cId: ID, $aId: ID) {
|
|
63
|
+
employees(umId: $umId, cId: $cId, aId: $aId) {
|
|
64
|
+
eId
|
|
65
|
+
idStore
|
|
66
|
+
id
|
|
67
|
+
idEmployee
|
|
68
|
+
eSalary
|
|
69
|
+
typeContract
|
|
70
|
+
uEmail
|
|
71
|
+
termContract
|
|
72
|
+
eDatAdm
|
|
73
|
+
eState
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`
|
|
77
|
+
|
|
78
|
+
export const GET_ALL_PRODUCT_STORE = gql`
|
|
79
|
+
query productFoodsAll(
|
|
80
|
+
$search: String
|
|
81
|
+
$min: Int
|
|
82
|
+
$max: Int
|
|
83
|
+
$gender: [String]
|
|
84
|
+
$pState: Int
|
|
85
|
+
$desc: [String]
|
|
86
|
+
$categories: [ID]
|
|
87
|
+
$fromDate: DateTime
|
|
88
|
+
$toDate: DateTime
|
|
89
|
+
$page: Int
|
|
90
|
+
) {
|
|
91
|
+
productFoodsAll(
|
|
92
|
+
search: $search
|
|
93
|
+
min: $min
|
|
94
|
+
max: $max
|
|
95
|
+
gender: $gender
|
|
96
|
+
desc: $desc
|
|
97
|
+
pState: $pState
|
|
98
|
+
categories: $categories
|
|
99
|
+
toDate: $toDate
|
|
100
|
+
fromDate: $fromDate
|
|
101
|
+
page: $page
|
|
102
|
+
) {
|
|
103
|
+
success
|
|
104
|
+
message
|
|
105
|
+
pagination {
|
|
106
|
+
totalRecords
|
|
107
|
+
totalPages
|
|
108
|
+
currentPage
|
|
109
|
+
__typename
|
|
110
|
+
}
|
|
111
|
+
data {
|
|
112
|
+
pId
|
|
113
|
+
sizeId #Talla
|
|
114
|
+
colorId #Color
|
|
115
|
+
stock
|
|
116
|
+
manageStock
|
|
117
|
+
carProId #Categoria a la cual pertenece el producto
|
|
118
|
+
caId
|
|
119
|
+
cId #Country
|
|
120
|
+
dId #Department
|
|
121
|
+
ctId #Cuidad
|
|
122
|
+
fId #Características
|
|
123
|
+
pName
|
|
124
|
+
getOneTags {
|
|
125
|
+
tgId
|
|
126
|
+
idUser
|
|
127
|
+
idStore
|
|
128
|
+
pId
|
|
129
|
+
nameTag
|
|
130
|
+
}
|
|
131
|
+
ProPrice
|
|
132
|
+
ProDescuento
|
|
133
|
+
free
|
|
134
|
+
ProUniDisponibles
|
|
135
|
+
ProDescription
|
|
136
|
+
ProProtegido
|
|
137
|
+
ProAssurance
|
|
138
|
+
ValueDelivery
|
|
139
|
+
ProStar
|
|
140
|
+
sTateLogistic
|
|
141
|
+
ProImage
|
|
142
|
+
ProWidth
|
|
143
|
+
ProHeight
|
|
144
|
+
ProLength
|
|
145
|
+
ProWeight
|
|
146
|
+
ProQuantity
|
|
147
|
+
ProOutstanding
|
|
148
|
+
createdAt
|
|
149
|
+
updatedAt
|
|
150
|
+
ProDelivery
|
|
151
|
+
ProVoltaje
|
|
152
|
+
pState
|
|
153
|
+
feat {
|
|
154
|
+
fId
|
|
155
|
+
thpId
|
|
156
|
+
hpqrQuestion
|
|
157
|
+
}
|
|
158
|
+
area {
|
|
159
|
+
aId
|
|
160
|
+
aName
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`
|
|
166
|
+
export const GET_ALL_RATING_START_STORE = gql`
|
|
167
|
+
query getAllRatingStar($idStore: ID) {
|
|
168
|
+
getAllRatingStar(idStore: $idStore) {
|
|
169
|
+
rSId
|
|
170
|
+
rScore
|
|
171
|
+
idStore
|
|
172
|
+
createAt
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`
|
|
176
|
+
export const GET_ALL_VISITOR_STORE = gql`
|
|
177
|
+
query getAllVisitorStore(
|
|
178
|
+
$idStore: ID
|
|
179
|
+
$search: String
|
|
180
|
+
$min: Int
|
|
181
|
+
$max: Int
|
|
182
|
+
$fromDate: DateTime
|
|
183
|
+
$toDate: DateTime
|
|
184
|
+
) {
|
|
185
|
+
getAllVisitorStore(
|
|
186
|
+
idStore: $idStore
|
|
187
|
+
search: $search
|
|
188
|
+
min: $min
|
|
189
|
+
max: $max
|
|
190
|
+
fromDate: $fromDate
|
|
191
|
+
toDate: $toDate
|
|
192
|
+
) {
|
|
193
|
+
visitStoreId
|
|
194
|
+
id
|
|
195
|
+
idStore
|
|
196
|
+
createAt
|
|
197
|
+
updateAt
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
`
|
|
201
|
+
export const GET_MIN_PEDIDO = gql`
|
|
202
|
+
query getMinPrice($idStore: ID) {
|
|
203
|
+
getMinPrice(idStore: $idStore)
|
|
204
|
+
}
|
|
205
|
+
`
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
export const GET_All_RATING_STORE = gql`
|
|
209
|
+
query getAllRating($idStore: ID) {
|
|
210
|
+
getAllRating(idStore: $idStore) {
|
|
211
|
+
idStore
|
|
212
|
+
rId
|
|
213
|
+
id
|
|
214
|
+
rAppearance
|
|
215
|
+
rTasty
|
|
216
|
+
rGoodTemperature
|
|
217
|
+
rGoodCondition
|
|
218
|
+
rState
|
|
219
|
+
createAt
|
|
220
|
+
updateAt
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`
|
|
224
|
+
export const CREATE_LOGO = gql`
|
|
225
|
+
mutation registerLogo($logo: Upload, $idStore: ID) {
|
|
226
|
+
registerLogo(logo: $logo, idStore: $idStore) {
|
|
227
|
+
success
|
|
228
|
+
message
|
|
229
|
+
data
|
|
230
|
+
errors {
|
|
231
|
+
path
|
|
232
|
+
message
|
|
233
|
+
type
|
|
234
|
+
context {
|
|
235
|
+
limit
|
|
236
|
+
value
|
|
237
|
+
label
|
|
238
|
+
key
|
|
239
|
+
__typename
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
`
|
|
245
|
+
export const CREATE_BANNER_STORE = gql`
|
|
246
|
+
mutation registerBanner($input: IBanner) {
|
|
247
|
+
registerBanner(input: $input) {
|
|
248
|
+
success
|
|
249
|
+
message
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
`
|
|
253
|
+
export const DELETE_ONE_LOGO_STORE = gql`
|
|
254
|
+
mutation deleteALogoStore($idStore: ID, $Image: String) {
|
|
255
|
+
deleteALogoStore(idStore: $idStore, Image: $Image) {
|
|
256
|
+
message
|
|
257
|
+
success
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
`
|
|
261
|
+
export const GET_ONE_BANNER_STORE = gql`
|
|
262
|
+
query getOneBanners($idStore: ID, $id: ID) {
|
|
263
|
+
getOneBanners(idStore: $idStore, id: $id) {
|
|
264
|
+
bnId
|
|
265
|
+
id
|
|
266
|
+
path
|
|
267
|
+
bnImageFileName
|
|
268
|
+
idStore
|
|
269
|
+
bnState
|
|
270
|
+
createAt
|
|
271
|
+
updateAt
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
`
|
|
275
|
+
export const DELETE_ONE_BANNER_STORE = gql`
|
|
276
|
+
mutation deleteOneBanner(
|
|
277
|
+
$bnState: Int
|
|
278
|
+
$idStore: ID
|
|
279
|
+
$bnId: ID
|
|
280
|
+
$bnImage: String
|
|
281
|
+
$bnImageFileName: String
|
|
282
|
+
) {
|
|
283
|
+
deleteOneBanner(
|
|
284
|
+
bnState: $bnState
|
|
285
|
+
idStore: $idStore
|
|
286
|
+
bnId: $bnId
|
|
287
|
+
bnImage: $bnImage
|
|
288
|
+
bnImageFileName: $bnImageFileName
|
|
289
|
+
) {
|
|
290
|
+
success
|
|
291
|
+
message
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
`
|
|
295
|
+
|
|
296
|
+
export const GET_ALL_PQR = gql`
|
|
297
|
+
query getOnePqr($hpqrId: ID, $thpId: ID) {
|
|
298
|
+
getOnePqr(hpqrId: $hpqrId, thpId: $thpId) {
|
|
299
|
+
hpqrId
|
|
300
|
+
thpId
|
|
301
|
+
hpqrQuestion
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
`
|
|
305
|
+
export const GET_ONE_COLOR = gql`
|
|
306
|
+
query getAllColor {
|
|
307
|
+
getAllColor {
|
|
308
|
+
colorId
|
|
309
|
+
colorName
|
|
310
|
+
colorState
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
`
|
|
314
|
+
export const UPDATE = gql`
|
|
315
|
+
mutation updateProducts($input: InputProduct) {
|
|
316
|
+
updateProducts(input: $input) {
|
|
317
|
+
pId
|
|
318
|
+
sizeId #Talla
|
|
319
|
+
colorId #Color
|
|
320
|
+
cId #Country
|
|
321
|
+
dId #Department
|
|
322
|
+
ctId #Cuidad
|
|
323
|
+
fId #Características
|
|
324
|
+
pName
|
|
325
|
+
ProPrice
|
|
326
|
+
ProDescuento
|
|
327
|
+
ProUniDisponibles
|
|
328
|
+
ProDescription
|
|
329
|
+
ProProtegido
|
|
330
|
+
ProAssurance
|
|
331
|
+
ProStar
|
|
332
|
+
pState
|
|
333
|
+
ProImage
|
|
334
|
+
ProWidth
|
|
335
|
+
ProHeight
|
|
336
|
+
ProLength
|
|
337
|
+
ProWeight
|
|
338
|
+
ProQuantity
|
|
339
|
+
ProOutstanding
|
|
340
|
+
ProDelivery
|
|
341
|
+
ProVoltaje
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
`
|
|
345
|
+
|
|
346
|
+
export const UPDATE_PRODUCT_FOOD = gql`
|
|
347
|
+
mutation updateProductFoods($input: InputProductFood) {
|
|
348
|
+
updateProductFoods(input: $input) {
|
|
349
|
+
success
|
|
350
|
+
message
|
|
351
|
+
errors {
|
|
352
|
+
path
|
|
353
|
+
message
|
|
354
|
+
type
|
|
355
|
+
context {
|
|
356
|
+
limit
|
|
357
|
+
value
|
|
358
|
+
label
|
|
359
|
+
key
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
data {
|
|
363
|
+
pId
|
|
364
|
+
sizeId #Talla
|
|
365
|
+
colorId #Color
|
|
366
|
+
cId #Country
|
|
367
|
+
dId #Department
|
|
368
|
+
ctId #Cuidad
|
|
369
|
+
fId #Características
|
|
370
|
+
pName
|
|
371
|
+
pCode
|
|
372
|
+
ProPrice
|
|
373
|
+
carProId
|
|
374
|
+
ProDescuento
|
|
375
|
+
ProUniDisponibles
|
|
376
|
+
ValueDelivery
|
|
377
|
+
ProDescription
|
|
378
|
+
ProProtegido
|
|
379
|
+
ProAssurance
|
|
380
|
+
ProStar
|
|
381
|
+
pState
|
|
382
|
+
ProImage
|
|
383
|
+
ProWidth
|
|
384
|
+
ProHeight
|
|
385
|
+
ProLength
|
|
386
|
+
ProWeight
|
|
387
|
+
ProQuantity
|
|
388
|
+
ProOutstanding
|
|
389
|
+
ProDelivery
|
|
390
|
+
ProVoltaje
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
`
|
|
395
|
+
// UPDATE EXTRAS
|
|
396
|
+
export const UPDATE_EXTRAS_PRODUCT_FOOD = gql`
|
|
397
|
+
mutation updateExtProductFoods($input: InputExtProductFood) {
|
|
398
|
+
updateExtProductFoods(input: $input) {
|
|
399
|
+
pId
|
|
400
|
+
exPid
|
|
401
|
+
exState
|
|
402
|
+
extraName
|
|
403
|
+
extraPrice
|
|
404
|
+
state
|
|
405
|
+
pDatCre
|
|
406
|
+
pDatMod
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
`
|
|
410
|
+
// EXTRA PRODUCTS
|
|
411
|
+
export const UPDATE_EXTRAS_PRODUCT_FOOD_OPTIONAL = gql`
|
|
412
|
+
mutation updateExtProductOptional($input: InputExtProductFoodOptional) {
|
|
413
|
+
updateExtProductOptional(input: $input) {
|
|
414
|
+
success,
|
|
415
|
+
message
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
`
|
|
419
|
+
export const GET_EXTRAS_PRODUCT_FOOD_OPTIONAL = gql`
|
|
420
|
+
query ExtProductFoodsOptionalAll(
|
|
421
|
+
$search: String
|
|
422
|
+
$min: Int
|
|
423
|
+
$max: Int
|
|
424
|
+
$pId: ID
|
|
425
|
+
) {
|
|
426
|
+
ExtProductFoodsOptionalAll(
|
|
427
|
+
search: $search
|
|
428
|
+
min: $min
|
|
429
|
+
max: $max
|
|
430
|
+
pId: $pId
|
|
431
|
+
) {
|
|
432
|
+
pId
|
|
433
|
+
opExPid
|
|
434
|
+
OptionalProName
|
|
435
|
+
state
|
|
436
|
+
code
|
|
437
|
+
numbersOptionalOnly
|
|
438
|
+
createdAt
|
|
439
|
+
required
|
|
440
|
+
updatedAt
|
|
441
|
+
ExtProductFoodsSubOptionalAll {
|
|
442
|
+
pId
|
|
443
|
+
opExPid
|
|
444
|
+
idStore
|
|
445
|
+
opSubExPid
|
|
446
|
+
OptionalSubProName
|
|
447
|
+
exCodeOptionExtra
|
|
448
|
+
exCode
|
|
449
|
+
state
|
|
450
|
+
createdAt
|
|
451
|
+
updatedAt
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
`
|
|
456
|
+
export const GET_EXTRAS_PRODUCT_FOOD_SUB_OPTIONAL = gql`
|
|
457
|
+
mutation updateExtProductSubOptional(
|
|
458
|
+
$input: InputExtProductFoodSubOptional
|
|
459
|
+
) {
|
|
460
|
+
updateExtProductSubOptional(input: $input) {
|
|
461
|
+
success
|
|
462
|
+
message
|
|
463
|
+
data {
|
|
464
|
+
pId
|
|
465
|
+
opExPid
|
|
466
|
+
idStore
|
|
467
|
+
opSubExPid
|
|
468
|
+
OptionalSubProName
|
|
469
|
+
exCodeOptionExtra
|
|
470
|
+
exCode
|
|
471
|
+
state
|
|
472
|
+
createdAt
|
|
473
|
+
updatedAt
|
|
474
|
+
}
|
|
475
|
+
errors {
|
|
476
|
+
path
|
|
477
|
+
message
|
|
478
|
+
type
|
|
479
|
+
context {
|
|
480
|
+
limit
|
|
481
|
+
value
|
|
482
|
+
label
|
|
483
|
+
key
|
|
484
|
+
__typename
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
`
|
|
490
|
+
|
|
491
|
+
export const DELETE_ONE_PRODUCT = gql`
|
|
492
|
+
mutation deleteProducts($input: IDeleteProduct) {
|
|
493
|
+
deleteProducts(input: $input) {
|
|
494
|
+
pId
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
`
|
|
498
|
+
export const GET_ALL_PRODUCTS = gql`
|
|
499
|
+
query productsAll(
|
|
500
|
+
$search: String
|
|
501
|
+
$min: Int
|
|
502
|
+
$max: Int
|
|
503
|
+
$gender: [String]
|
|
504
|
+
$desc: [String]
|
|
505
|
+
$categories: [ID]
|
|
506
|
+
) {
|
|
507
|
+
productsAll(
|
|
508
|
+
search: $search
|
|
509
|
+
min: $min
|
|
510
|
+
max: $max
|
|
511
|
+
gender: $gender
|
|
512
|
+
desc: $desc
|
|
513
|
+
categories: $categories
|
|
514
|
+
) {
|
|
515
|
+
pId
|
|
516
|
+
sizeId #Talla
|
|
517
|
+
colorId #Color
|
|
518
|
+
cId #Country
|
|
519
|
+
dId #Department
|
|
520
|
+
ctId #Cuidad
|
|
521
|
+
fId #Características
|
|
522
|
+
pName
|
|
523
|
+
ProPrice
|
|
524
|
+
ProDescuento
|
|
525
|
+
ProUniDisponibles
|
|
526
|
+
ProDescription
|
|
527
|
+
ProProtegido
|
|
528
|
+
ProAssurance
|
|
529
|
+
ProStar
|
|
530
|
+
sTateLogistic
|
|
531
|
+
ProImage
|
|
532
|
+
ProWidth
|
|
533
|
+
ProHeight
|
|
534
|
+
ProLength
|
|
535
|
+
ProWeight
|
|
536
|
+
ProQuantity
|
|
537
|
+
ProOutstanding
|
|
538
|
+
ProDelivery
|
|
539
|
+
ProVoltaje
|
|
540
|
+
pState
|
|
541
|
+
feat {
|
|
542
|
+
fId
|
|
543
|
+
thpId
|
|
544
|
+
hpqrQuestion
|
|
545
|
+
}
|
|
546
|
+
area {
|
|
547
|
+
aId
|
|
548
|
+
aName
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
`
|
|
553
|
+
export const GET_ALL_FOOD_PRODUCTS = gql`
|
|
554
|
+
query getFoodAllProduct(
|
|
555
|
+
$search: String
|
|
556
|
+
$min: Int
|
|
557
|
+
$max: Int
|
|
558
|
+
$gender: [String]
|
|
559
|
+
$desc: [String]
|
|
560
|
+
$categories: [ID]
|
|
561
|
+
) {
|
|
562
|
+
getFoodAllProduct(
|
|
563
|
+
search: $search
|
|
564
|
+
min: $min
|
|
565
|
+
max: $max
|
|
566
|
+
gender: $gender
|
|
567
|
+
desc: $desc
|
|
568
|
+
categories: $categories
|
|
569
|
+
) {
|
|
570
|
+
id
|
|
571
|
+
pfId
|
|
572
|
+
idStore
|
|
573
|
+
ProPrice
|
|
574
|
+
ProDescuento
|
|
575
|
+
ProDescription
|
|
576
|
+
pName
|
|
577
|
+
pState
|
|
578
|
+
sTateLogistic
|
|
579
|
+
ProStar
|
|
580
|
+
ProImage
|
|
581
|
+
ProHeight
|
|
582
|
+
ProWeight
|
|
583
|
+
ProOutstanding
|
|
584
|
+
ProDelivery
|
|
585
|
+
pDatCre
|
|
586
|
+
pDatMod
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`
|
|
590
|
+
|
|
591
|
+
export const EDIT_PRODUCT = gql`
|
|
592
|
+
mutation editProductFoods($input: InputProductFood) {
|
|
593
|
+
editProductFoods(input: $input) {
|
|
594
|
+
success
|
|
595
|
+
message
|
|
596
|
+
errors {
|
|
597
|
+
path
|
|
598
|
+
message
|
|
599
|
+
type
|
|
600
|
+
context {
|
|
601
|
+
limit
|
|
602
|
+
value
|
|
603
|
+
label
|
|
604
|
+
key
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
`
|
|
610
|
+
export const SET_EDIT_STORE_NAME = gql`
|
|
611
|
+
mutation setEditNameStore($StoreName: String) {
|
|
612
|
+
setEditNameStore(StoreName: $StoreName) {
|
|
613
|
+
success
|
|
614
|
+
message
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
`
|
|
618
|
+
export const GET_ONE_PRODUCTS_FOOD = gql`
|
|
619
|
+
query productFoodsOne($pId: ID) {
|
|
620
|
+
productFoodsOne(pId: $pId) {
|
|
621
|
+
pId
|
|
622
|
+
carProId
|
|
623
|
+
pCode
|
|
624
|
+
sizeId
|
|
625
|
+
colorId
|
|
626
|
+
idStore
|
|
627
|
+
cId
|
|
628
|
+
caId
|
|
629
|
+
stock
|
|
630
|
+
manageStock
|
|
631
|
+
dId
|
|
632
|
+
ctId
|
|
633
|
+
tpId
|
|
634
|
+
fId
|
|
635
|
+
tgId
|
|
636
|
+
pName
|
|
637
|
+
ProPrice
|
|
638
|
+
ProBarCode
|
|
639
|
+
ProDescuento
|
|
640
|
+
ValueDelivery
|
|
641
|
+
ProUniDisponibles
|
|
642
|
+
ProDescription
|
|
643
|
+
ProProtegido
|
|
644
|
+
ProAssurance
|
|
645
|
+
ProImage
|
|
646
|
+
ProStar
|
|
647
|
+
ProWidth
|
|
648
|
+
ProHeight
|
|
649
|
+
ProLength
|
|
650
|
+
ProWeight
|
|
651
|
+
ProQuantity
|
|
652
|
+
ProOutstanding
|
|
653
|
+
ProDelivery
|
|
654
|
+
ProVoltaje
|
|
655
|
+
pState
|
|
656
|
+
sTateLogistic
|
|
657
|
+
createdAt
|
|
658
|
+
updatedAt
|
|
659
|
+
getOneTags {
|
|
660
|
+
tgId
|
|
661
|
+
idUser
|
|
662
|
+
idStore
|
|
663
|
+
pId
|
|
664
|
+
nameTag
|
|
665
|
+
aName
|
|
666
|
+
}
|
|
667
|
+
getAllAvailableProduct {
|
|
668
|
+
availableProductId
|
|
669
|
+
idStore
|
|
670
|
+
pId
|
|
671
|
+
dayAvailable
|
|
672
|
+
createdAt
|
|
673
|
+
updatedAt
|
|
674
|
+
}
|
|
675
|
+
ExtProductFoodsAll {
|
|
676
|
+
pId
|
|
677
|
+
exPid
|
|
678
|
+
exState
|
|
679
|
+
extraName
|
|
680
|
+
extraPrice
|
|
681
|
+
state
|
|
682
|
+
createdAt
|
|
683
|
+
updatedAt
|
|
684
|
+
}
|
|
685
|
+
getStore {
|
|
686
|
+
idStore
|
|
687
|
+
cId
|
|
688
|
+
id
|
|
689
|
+
dId
|
|
690
|
+
ctId
|
|
691
|
+
catStore
|
|
692
|
+
neighborhoodStore
|
|
693
|
+
Viaprincipal
|
|
694
|
+
storeOwner
|
|
695
|
+
storeName
|
|
696
|
+
emailStore
|
|
697
|
+
storePhone
|
|
698
|
+
socialRaz
|
|
699
|
+
Image
|
|
700
|
+
banner
|
|
701
|
+
documentIdentifier
|
|
702
|
+
uPhoNum
|
|
703
|
+
ULocation
|
|
704
|
+
upLat
|
|
705
|
+
upLon
|
|
706
|
+
uState
|
|
707
|
+
siteWeb
|
|
708
|
+
description
|
|
709
|
+
NitStore
|
|
710
|
+
typeRegiments
|
|
711
|
+
typeContribute
|
|
712
|
+
secVia
|
|
713
|
+
addressStore
|
|
714
|
+
createdAt
|
|
715
|
+
department {
|
|
716
|
+
dId
|
|
717
|
+
cId
|
|
718
|
+
dName
|
|
719
|
+
dDatCre
|
|
720
|
+
dDatMod
|
|
721
|
+
dState
|
|
722
|
+
}
|
|
723
|
+
pais {
|
|
724
|
+
cId
|
|
725
|
+
cName
|
|
726
|
+
cCalCod
|
|
727
|
+
cState
|
|
728
|
+
}
|
|
729
|
+
city {
|
|
730
|
+
ctId
|
|
731
|
+
dId
|
|
732
|
+
cName
|
|
733
|
+
cState
|
|
734
|
+
cDatCre
|
|
735
|
+
cDatMod
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
`
|
|
741
|
+
|
|
742
|
+
export const CREATE_FOOD_PRODUCT = gql`
|
|
743
|
+
mutation newRegisterFoodProduct($input: FoodProductInput) {
|
|
744
|
+
newRegisterFoodProduct(input: $input) {
|
|
745
|
+
success
|
|
746
|
+
message
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
`
|
|
750
|
+
export const GET_BANNER_PROMO_DASHBOARD = gql`
|
|
751
|
+
query getPromoStoreAdmin($min: Int, $max: Int) {
|
|
752
|
+
getPromoStoreAdmin(min: $min, max: $max) {
|
|
753
|
+
pSoId
|
|
754
|
+
comments
|
|
755
|
+
mainName
|
|
756
|
+
metaTags
|
|
757
|
+
urlImage
|
|
758
|
+
bPromoState
|
|
759
|
+
createAt
|
|
760
|
+
updateAt
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
`
|
|
764
|
+
|
|
765
|
+
export const CREATE_STORE_CALENDAR = gql`
|
|
766
|
+
mutation setStoreSchedule($input: ITstoreSchedule!) {
|
|
767
|
+
setStoreSchedule(input: $input) {
|
|
768
|
+
message
|
|
769
|
+
success
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
`
|
|
773
|
+
export const DELETE_ONE_CAT_PRODUCTS = gql`
|
|
774
|
+
mutation deleteCatOfProducts($idPc: ID!, $pState: Int) {
|
|
775
|
+
deleteCatOfProducts(idPc: $idPc, pState: $pState) {
|
|
776
|
+
success
|
|
777
|
+
message
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
`
|
|
781
|
+
export const DELETE_ONE_CAT_PRODUCTS_FINAL = gql`
|
|
782
|
+
mutation deleteCatFinalOfProducts($idPc: ID, $withProduct: Boolean) {
|
|
783
|
+
deleteCatFinalOfProducts(idPc: $idPc, withProduct: $withProduct) {
|
|
784
|
+
success
|
|
785
|
+
message
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
`
|
|
789
|
+
export const DELETE_EXTRA_PRODUCTS = gql`
|
|
790
|
+
mutation deleteExtraProduct($id: ID, $state: Int) {
|
|
791
|
+
deleteExtraProduct(id: $id, state: $state) {
|
|
792
|
+
success
|
|
793
|
+
message
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
`
|
|
797
|
+
export const EDIT_EXTRA_PRODUCTS = gql`
|
|
798
|
+
mutation editExtProductFoods($input: InputExtProductFood!) {
|
|
799
|
+
editExtProductFoods(input: $input) {
|
|
800
|
+
success
|
|
801
|
+
message
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
`
|
|
805
|
+
export const DELETE_CAT_EXTRA_PRODUCTS = gql`
|
|
806
|
+
mutation DeleteExtProductFoodsOptional($opExPid: ID, $state: Int) {
|
|
807
|
+
DeleteExtProductFoodsOptional(opExPid: $opExPid, state: $state) {
|
|
808
|
+
success
|
|
809
|
+
message
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
`
|
|
813
|
+
export const DELETE_CAT_EXTRA_SUB_OPTIONAL_PRODUCTS = gql`
|
|
814
|
+
mutation DeleteExtFoodSubsOptional($opSubExPid: ID, $state: Int) {
|
|
815
|
+
DeleteExtFoodSubsOptional(opSubExPid: $opSubExPid, state: $state) {
|
|
816
|
+
success
|
|
817
|
+
message
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
`
|
|
821
|
+
export const UPDATE_CAT_IN_PRODUCT = gql`
|
|
822
|
+
mutation updatedCatWithProducts($input: LineItemsIdPro) {
|
|
823
|
+
updatedCatWithProducts(input: $input) {
|
|
824
|
+
success
|
|
825
|
+
message
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
`
|
|
829
|
+
export const GET_ULTIMATE_CATEGORY_PRODUCTS = gql`
|
|
830
|
+
query catProductsAll(
|
|
831
|
+
$search: String
|
|
832
|
+
$min: Int
|
|
833
|
+
$max: Int
|
|
834
|
+
$gender: [String]
|
|
835
|
+
$desc: [String]
|
|
836
|
+
$categories: [ID]
|
|
837
|
+
) {
|
|
838
|
+
catProductsAll(
|
|
839
|
+
search: $search
|
|
840
|
+
min: $min
|
|
841
|
+
max: $max
|
|
842
|
+
gender: $gender
|
|
843
|
+
desc: $desc
|
|
844
|
+
categories: $categories
|
|
845
|
+
) {
|
|
846
|
+
carProId
|
|
847
|
+
idStore
|
|
848
|
+
pName
|
|
849
|
+
ProDescription
|
|
850
|
+
ProImage
|
|
851
|
+
pState
|
|
852
|
+
createdAt
|
|
853
|
+
updatedAt
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
`
|
|
857
|
+
export const GET_ALL_EXTRA_PRODUCT = gql`
|
|
858
|
+
query ExtProductFoodsAll($search: String, $min: Int, $max: Int, $pId: ID) {
|
|
859
|
+
ExtProductFoodsAll(search: $search, min: $min, max: $max, pId: $pId) {
|
|
860
|
+
pId
|
|
861
|
+
exPid
|
|
862
|
+
exState
|
|
863
|
+
extraName
|
|
864
|
+
extraPrice
|
|
865
|
+
state
|
|
866
|
+
createdAt
|
|
867
|
+
updatedAt
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
`
|
|
871
|
+
export const GET_ALL_CATEGORIES_WITH_PRODUCT = gql`
|
|
872
|
+
query getCatProductsWithProduct(
|
|
873
|
+
$search: String
|
|
874
|
+
$min: Int
|
|
875
|
+
$max: Int
|
|
876
|
+
$gender: [String]
|
|
877
|
+
$desc: [String]
|
|
878
|
+
$categories: [ID]
|
|
879
|
+
) {
|
|
880
|
+
getCatProductsWithProduct(
|
|
881
|
+
search: $search
|
|
882
|
+
min: $min
|
|
883
|
+
max: $max
|
|
884
|
+
gender: $gender
|
|
885
|
+
desc: $desc
|
|
886
|
+
categories: $categories
|
|
887
|
+
) {
|
|
888
|
+
carProId
|
|
889
|
+
pState
|
|
890
|
+
pState
|
|
891
|
+
ProImage
|
|
892
|
+
idStore
|
|
893
|
+
pName
|
|
894
|
+
ProDescription
|
|
895
|
+
ProImage
|
|
896
|
+
pState
|
|
897
|
+
pDatCre
|
|
898
|
+
pDatMod
|
|
899
|
+
productFoodsAll {
|
|
900
|
+
pId
|
|
901
|
+
sizeId
|
|
902
|
+
colorId
|
|
903
|
+
stock
|
|
904
|
+
carProId
|
|
905
|
+
manageStock
|
|
906
|
+
cId
|
|
907
|
+
dId
|
|
908
|
+
ctId
|
|
909
|
+
idStore
|
|
910
|
+
caId
|
|
911
|
+
fId
|
|
912
|
+
pName
|
|
913
|
+
ProPrice
|
|
914
|
+
ProDescuento
|
|
915
|
+
ProUniDisponibles
|
|
916
|
+
ProDescription
|
|
917
|
+
ProProtegido
|
|
918
|
+
ProAssurance
|
|
919
|
+
ProImage
|
|
920
|
+
ProStar
|
|
921
|
+
ProWidth
|
|
922
|
+
ProHeight
|
|
923
|
+
ProLength
|
|
924
|
+
ProWeight
|
|
925
|
+
ProQuantity
|
|
926
|
+
ProOutstanding
|
|
927
|
+
ProDelivery
|
|
928
|
+
ProVoltaje
|
|
929
|
+
pState
|
|
930
|
+
sTateLogistic
|
|
931
|
+
createdAt
|
|
932
|
+
updatedAt
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
`
|
|
937
|
+
|
|
938
|
+
export const REGISTER_TAGS_PRODUCT = gql`
|
|
939
|
+
mutation registerTag($input: ITag) {
|
|
940
|
+
registerTag(input: $input) {
|
|
941
|
+
data {
|
|
942
|
+
tgId
|
|
943
|
+
idUser
|
|
944
|
+
idStore
|
|
945
|
+
pId
|
|
946
|
+
nameTag
|
|
947
|
+
aName
|
|
948
|
+
}
|
|
949
|
+
success
|
|
950
|
+
message
|
|
951
|
+
errors {
|
|
952
|
+
path
|
|
953
|
+
message
|
|
954
|
+
type
|
|
955
|
+
context {
|
|
956
|
+
limit
|
|
957
|
+
value
|
|
958
|
+
label
|
|
959
|
+
key
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
`
|