From 2715ee6821f489f383513416137455ffce1a4966 Mon Sep 17 00:00:00 2001 From: Swadesh Behera Date: Sun, 4 Sep 2022 14:22:19 +0530 Subject: [PATCH] Huge update:: Migrated to rest api, latest Sveltekit version --- $houdini/artifacts/HOME.d.ts | 280 - $houdini/artifacts/HOME.js | 1796 - $houdini/artifacts/INIT.d.ts | 423 - $houdini/artifacts/INIT.js | 2752 - $houdini/artifacts/addToCart.d.ts | 65 - $houdini/artifacts/addToCart.js | 331 - $houdini/artifacts/address.d.ts | 40 - $houdini/artifacts/address.js | 159 - $houdini/artifacts/addresses.d.ts | 50 - $houdini/artifacts/addresses.js | 207 - $houdini/artifacts/blog.d.ts | 44 - $houdini/artifacts/blog.js | 185 - $houdini/artifacts/blogs.d.ts | 53 - $houdini/artifacts/blogs.js | 220 - $houdini/artifacts/cart.d.ts | 115 - $houdini/artifacts/cart.js | 647 - $houdini/artifacts/cashfreePayNowNew.d.ts | 17 - $houdini/artifacts/cashfreePayNowNew.js | 62 - $houdini/artifacts/categories.d.ts | 61 - $houdini/artifacts/categories.js | 261 - $houdini/artifacts/category.d.ts | 69 - $houdini/artifacts/category.js | 347 - $houdini/artifacts/changePassword.d.ts | 14 - $houdini/artifacts/changePassword.js | 36 - $houdini/artifacts/checkWishlist.d.ts | 22 - $houdini/artifacts/checkWishlist.js | 34 - $houdini/artifacts/checkout.d.ts | 120 - $houdini/artifacts/checkout.js | 759 - $houdini/artifacts/countries.d.ts | 44 - $houdini/artifacts/countries.js | 167 - $houdini/artifacts/country.d.ts | 36 - $houdini/artifacts/country.js | 133 - $houdini/artifacts/deleteAddress.d.ts | 12 - $houdini/artifacts/deleteAddress.js | 30 - $houdini/artifacts/deleteBlog.d.ts | 12 - $houdini/artifacts/deleteBlog.js | 30 - $houdini/artifacts/deleteCountry.d.ts | 12 - $houdini/artifacts/deleteCountry.js | 30 - $houdini/artifacts/deletePaymentMethod.d.ts | 12 - $houdini/artifacts/deletePaymentMethod.js | 30 - $houdini/artifacts/emailPassword.d.ts | 13 - $houdini/artifacts/emailPassword.js | 31 - $houdini/artifacts/getOtp.d.ts | 17 - $houdini/artifacts/getOtp.js | 49 - $houdini/artifacts/index.js | 64 - $houdini/artifacts/login.d.ts | 33 - $houdini/artifacts/login.js | 169 - $houdini/artifacts/me.d.ts | 30 - $houdini/artifacts/me.js | 133 - $houdini/artifacts/megamenu.d.ts | 96 - $houdini/artifacts/megamenu.js | 543 - $houdini/artifacts/myAddresses.d.ts | 48 - $houdini/artifacts/myAddresses.js | 193 - $houdini/artifacts/myOrderItems.d.ts | 138 - $houdini/artifacts/myOrderItems.js | 795 - $houdini/artifacts/myOrders.d.ts | 153 - $houdini/artifacts/myOrders.js | 886 - $houdini/artifacts/myWishlist.d.ts | 72 - $houdini/artifacts/myWishlist.js | 338 - $houdini/artifacts/orderItem.d.ts | 211 - $houdini/artifacts/orderItem.js | 1327 - $houdini/artifacts/paySuccessPageHit.d.ts | 122 - $houdini/artifacts/paySuccessPageHit.js | 782 - $houdini/artifacts/paymentMethod.d.ts | 36 - $houdini/artifacts/paymentMethod.js | 132 - $houdini/artifacts/paymentMethods.d.ts | 45 - $houdini/artifacts/paymentMethods.js | 168 - $houdini/artifacts/paymentMethodsAdmin.d.ts | 46 - $houdini/artifacts/paymentMethodsAdmin.js | 175 - $houdini/artifacts/popularSearches.d.ts | 41 - $houdini/artifacts/popularSearches.js | 136 - $houdini/artifacts/product.d.ts | 233 - $houdini/artifacts/product.js | 1427 - $houdini/artifacts/productReviews.d.ts | 40 - $houdini/artifacts/productReviews.js | 142 - $houdini/artifacts/productSlug.d.ts | 73 - $houdini/artifacts/productSlug.js | 383 - $houdini/artifacts/products.d.ts | 133 - $houdini/artifacts/products.js | 701 - $houdini/artifacts/randomVendors.d.ts | 81 - $houdini/artifacts/randomVendors.js | 435 - $houdini/artifacts/removeStoreCountry.d.ts | 12 - $houdini/artifacts/removeStoreCountry.js | 30 - $houdini/artifacts/resendEmail.d.ts | 12 - $houdini/artifacts/resendEmail.js | 30 - $houdini/artifacts/reviews.d.ts | 61 - $houdini/artifacts/reviews.js | 275 - $houdini/artifacts/saveAddress.d.ts | 48 - $houdini/artifacts/saveAddress.js | 194 - $houdini/artifacts/saveBlog.d.ts | 31 - $houdini/artifacts/saveBlog.js | 121 - $houdini/artifacts/saveCountry.d.ts | 38 - $houdini/artifacts/saveCountry.js | 162 - $houdini/artifacts/savePaymentMethod.d.ts | 37 - $houdini/artifacts/savePaymentMethod.js | 146 - $houdini/artifacts/saveStoreCountry.d.ts | 24 - $houdini/artifacts/saveStoreCountry.js | 92 - $houdini/artifacts/settings.d.ts | 172 - $houdini/artifacts/settings.js | 1070 - $houdini/artifacts/signOut.d.ts | 8 - $houdini/artifacts/signOut.js | 22 - $houdini/artifacts/states.d.ts | 44 - $houdini/artifacts/states.js | 159 - $houdini/artifacts/store.d.ts | 155 - $houdini/artifacts/store.js | 979 - $houdini/artifacts/storeCountries.d.ts | 53 - $houdini/artifacts/storeCountries.js | 221 - $houdini/artifacts/storeCountry.d.ts | 43 - $houdini/artifacts/storeCountry.js | 173 - $houdini/artifacts/storeOne.d.ts | 222 - $houdini/artifacts/storeOne.js | 1378 - $houdini/artifacts/stripe.d.ts | 44 - $houdini/artifacts/stripe.js | 238 - $houdini/artifacts/toggleWishlist.d.ts | 13 - $houdini/artifacts/toggleWishlist.js | 31 - $houdini/artifacts/topVendors.d.ts | 27 - $houdini/artifacts/topVendors.js | 71 - $houdini/artifacts/updateProfile.d.ts | 66 - $houdini/artifacts/updateProfile.js | 205 - $houdini/artifacts/vendor.d.ts | 90 - $houdini/artifacts/vendor.js | 486 - $houdini/artifacts/vendorProfile.d.ts | 145 - $houdini/artifacts/vendorProfile.js | 875 - $houdini/artifacts/verifyEmail.d.ts | 16 - $houdini/artifacts/verifyEmail.js | 40 - $houdini/artifacts/verifyOtp.d.ts | 26 - $houdini/artifacts/verifyOtp.js | 112 - $houdini/graphql/documents.gql | 0 $houdini/graphql/enums.d.ts | 6 - $houdini/graphql/enums.js | 4 - $houdini/graphql/index.d.ts | 3 - $houdini/graphql/index.js | 3 - $houdini/graphql/schema.graphql | 57 - $houdini/index.d.ts | 66 - $houdini/index.js | 6 - $houdini/meta.json | 1 - $houdini/runtime/adapter.d.ts | 16 - $houdini/runtime/adapter.js | 30 - $houdini/runtime/cache/cache.d.ts | 106 - $houdini/runtime/cache/cache.js | 730 - $houdini/runtime/cache/gc.d.ts | 9 - $houdini/runtime/cache/gc.js | 40 - $houdini/runtime/cache/index.d.ts | 3 - $houdini/runtime/cache/index.js | 12 - $houdini/runtime/cache/lists.d.ts | 68 - $houdini/runtime/cache/lists.js | 366 - $houdini/runtime/cache/storage.d.ts | 98 - $houdini/runtime/cache/storage.js | 442 - $houdini/runtime/cache/stuff.d.ts | 6 - $houdini/runtime/cache/stuff.js | 59 - $houdini/runtime/cache/subscription.d.ts | 37 - $houdini/runtime/cache/subscription.js | 230 - $houdini/runtime/index.d.ts | 5 - $houdini/runtime/index.js | 9 - $houdini/runtime/inline/fragment.d.ts | 17 - $houdini/runtime/inline/fragment.js | 93 - $houdini/runtime/inline/index.d.ts | 4 - $houdini/runtime/inline/index.js | 4 - $houdini/runtime/inline/mutation.d.ts | 5 - $houdini/runtime/inline/mutation.js | 17 - $houdini/runtime/inline/query.d.ts | 21 - $houdini/runtime/inline/query.js | 42 - $houdini/runtime/inline/subscription.d.ts | 5 - $houdini/runtime/inline/subscription.js | 23 - $houdini/runtime/lib/config.d.ts | 119 - $houdini/runtime/lib/config.js | 28 - $houdini/runtime/lib/context.d.ts | 4 - $houdini/runtime/lib/context.js | 46 - $houdini/runtime/lib/deepEquals.d.ts | 1 - $houdini/runtime/lib/deepEquals.js | 27 - $houdini/runtime/lib/errors.d.ts | 3 - $houdini/runtime/lib/errors.js | 8 - $houdini/runtime/lib/index.d.ts | 8 - $houdini/runtime/lib/index.js | 8 - $houdini/runtime/lib/log.d.ts | 6 - $houdini/runtime/lib/log.js | 54 - $houdini/runtime/lib/network.d.ts | 147 - $houdini/runtime/lib/network.js | 313 - $houdini/runtime/lib/pagination.d.ts | 88 - $houdini/runtime/lib/pagination.js | 458 - $houdini/runtime/lib/proxy.d.ts | 6 - $houdini/runtime/lib/proxy.js | 25 - $houdini/runtime/lib/scalars.d.ts | 15 - $houdini/runtime/lib/scalars.js | 132 - $houdini/runtime/lib/session.d.ts | 9 - $houdini/runtime/lib/session.js | 42 - $houdini/runtime/lib/types.d.ts | 267 - $houdini/runtime/lib/types.js | 39 - $houdini/runtime/package.json | 3 - $houdini/runtime/stores/fragment.d.ts | 10 - $houdini/runtime/stores/fragment.js | 82 - $houdini/runtime/stores/index.d.ts | 4 - $houdini/runtime/stores/index.js | 4 - $houdini/runtime/stores/mutation.d.ts | 6 - $houdini/runtime/stores/mutation.js | 146 - $houdini/runtime/stores/query.d.ts | 29 - $houdini/runtime/stores/query.js | 437 - $houdini/runtime/stores/subscription.d.ts | 5 - $houdini/runtime/stores/subscription.js | 83 - $houdini/stores/HOME.d.ts | 9 - $houdini/stores/HOME.js | 19 - $houdini/stores/INIT.d.ts | 9 - $houdini/stores/INIT.js | 19 - $houdini/stores/addToCart.d.ts | 7 - $houdini/stores/addToCart.js | 11 - $houdini/stores/address.d.ts | 9 - $houdini/stores/address.js | 19 - $houdini/stores/addresses.d.ts | 9 - $houdini/stores/addresses.js | 19 - $houdini/stores/blog.d.ts | 9 - $houdini/stores/blog.js | 19 - $houdini/stores/blogs.d.ts | 9 - $houdini/stores/blogs.js | 19 - $houdini/stores/cart.d.ts | 9 - $houdini/stores/cart.js | 19 - $houdini/stores/cashfreePayNowNew.d.ts | 7 - $houdini/stores/cashfreePayNowNew.js | 11 - $houdini/stores/categories.d.ts | 9 - $houdini/stores/categories.js | 19 - $houdini/stores/category.d.ts | 9 - $houdini/stores/category.js | 19 - $houdini/stores/changePassword.d.ts | 7 - $houdini/stores/changePassword.js | 11 - $houdini/stores/checkWishlist.d.ts | 9 - $houdini/stores/checkWishlist.js | 19 - $houdini/stores/checkout.d.ts | 7 - $houdini/stores/checkout.js | 11 - $houdini/stores/countries.d.ts | 9 - $houdini/stores/countries.js | 19 - $houdini/stores/country.d.ts | 9 - $houdini/stores/country.js | 19 - $houdini/stores/deleteAddress.d.ts | 7 - $houdini/stores/deleteAddress.js | 11 - $houdini/stores/deleteBlog.d.ts | 7 - $houdini/stores/deleteBlog.js | 11 - $houdini/stores/deleteCountry.d.ts | 7 - $houdini/stores/deleteCountry.js | 11 - $houdini/stores/deletePaymentMethod.d.ts | 7 - $houdini/stores/deletePaymentMethod.js | 11 - $houdini/stores/emailPassword.d.ts | 7 - $houdini/stores/emailPassword.js | 11 - $houdini/stores/getOtp.d.ts | 7 - $houdini/stores/getOtp.js | 11 - $houdini/stores/index.d.ts | 72 - $houdini/stores/index.js | 63 - $houdini/stores/login.d.ts | 7 - $houdini/stores/login.js | 11 - $houdini/stores/me.d.ts | 9 - $houdini/stores/me.js | 19 - $houdini/stores/megamenu.d.ts | 9 - $houdini/stores/megamenu.js | 19 - $houdini/stores/myAddresses.d.ts | 9 - $houdini/stores/myAddresses.js | 19 - $houdini/stores/myOrderItems.d.ts | 9 - $houdini/stores/myOrderItems.js | 19 - $houdini/stores/myOrders.d.ts | 9 - $houdini/stores/myOrders.js | 19 - $houdini/stores/myWishlist.d.ts | 9 - $houdini/stores/myWishlist.js | 19 - $houdini/stores/orderItem.d.ts | 9 - $houdini/stores/orderItem.js | 19 - $houdini/stores/paySuccessPageHit.d.ts | 7 - $houdini/stores/paySuccessPageHit.js | 11 - $houdini/stores/paymentMethod.d.ts | 9 - $houdini/stores/paymentMethod.js | 19 - $houdini/stores/paymentMethods.d.ts | 9 - $houdini/stores/paymentMethods.js | 19 - $houdini/stores/paymentMethodsAdmin.d.ts | 9 - $houdini/stores/paymentMethodsAdmin.js | 19 - $houdini/stores/popularSearches.d.ts | 9 - $houdini/stores/popularSearches.js | 19 - $houdini/stores/product.d.ts | 9 - $houdini/stores/product.js | 19 - $houdini/stores/productReviews.d.ts | 9 - $houdini/stores/productReviews.js | 19 - $houdini/stores/productSlug.d.ts | 9 - $houdini/stores/productSlug.js | 19 - $houdini/stores/products.d.ts | 9 - $houdini/stores/products.js | 19 - $houdini/stores/randomVendors.d.ts | 9 - $houdini/stores/randomVendors.js | 19 - $houdini/stores/removeStoreCountry.d.ts | 7 - $houdini/stores/removeStoreCountry.js | 11 - $houdini/stores/resendEmail.d.ts | 7 - $houdini/stores/resendEmail.js | 11 - $houdini/stores/reviews.d.ts | 9 - $houdini/stores/reviews.js | 19 - $houdini/stores/saveAddress.d.ts | 7 - $houdini/stores/saveAddress.js | 11 - $houdini/stores/saveBlog.d.ts | 7 - $houdini/stores/saveBlog.js | 11 - $houdini/stores/saveCountry.d.ts | 7 - $houdini/stores/saveCountry.js | 11 - $houdini/stores/savePaymentMethod.d.ts | 7 - $houdini/stores/savePaymentMethod.js | 11 - $houdini/stores/saveStoreCountry.d.ts | 7 - $houdini/stores/saveStoreCountry.js | 11 - $houdini/stores/settings.d.ts | 9 - $houdini/stores/settings.js | 19 - $houdini/stores/signOut.d.ts | 7 - $houdini/stores/signOut.js | 11 - $houdini/stores/states.d.ts | 9 - $houdini/stores/states.js | 19 - $houdini/stores/store.d.ts | 9 - $houdini/stores/store.js | 19 - $houdini/stores/storeCountries.d.ts | 9 - $houdini/stores/storeCountries.js | 19 - $houdini/stores/storeCountry.d.ts | 9 - $houdini/stores/storeCountry.js | 19 - $houdini/stores/storeOne.d.ts | 9 - $houdini/stores/storeOne.js | 19 - $houdini/stores/stripe.d.ts | 7 - $houdini/stores/stripe.js | 11 - $houdini/stores/toggleWishlist.d.ts | 7 - $houdini/stores/toggleWishlist.js | 11 - $houdini/stores/topVendors.d.ts | 9 - $houdini/stores/topVendors.js | 19 - $houdini/stores/updateProfile.d.ts | 7 - $houdini/stores/updateProfile.js | 11 - $houdini/stores/vendor.d.ts | 9 - $houdini/stores/vendor.js | 19 - $houdini/stores/vendorProfile.d.ts | 9 - $houdini/stores/vendorProfile.js | 19 - $houdini/stores/verifyEmail.d.ts | 7 - $houdini/stores/verifyEmail.js | 11 - $houdini/stores/verifyOtp.d.ts | 7 - $houdini/stores/verifyOtp.js | 11 - .dockerignore | 1 + .env | 3 - .env.example | 4 + .env.prod | 4 + .gitignore | 1 + .graphqlrc.yaml | 31 - .npmrc | 4 +- Dockerfile | 41 +- README.md | 19 +- devops/copy.js | 8 - devops/live.js | 58 - generate-manifest.js | 89 + houdini.config.js | 12 - package.json | 48 +- robots.txt | 3 - src/actions/ga.js | 13 - src/actions/lazyload.js | 42 - src/actions/toast.js | 26 - src/app.css | 102 +- src/app.d.ts | 8 + src/app.html | 30 +- src/fonts.css | 139 + src/global.d.ts | 1 - src/hooks/index.ts | 377 +- src/lib/AutocompleteItem.svelte | 66 + src/lib/CartBar.svelte | 170 - src/lib/CartButtons.svelte | 144 - src/lib/Client.js | 28 - src/lib/Error.svelte | 13 - src/lib/FixedCheckoutBar.svelte | 145 - src/lib/Footer.svelte | 503 +- src/lib/Hero.svelte | 76 - src/lib/HeroBanners.svelte | 69 - src/lib/Image/Image.svelte | 28 - src/lib/Image/ImageLoader.svelte | 23 - src/lib/Image/IntersectionObserver.svelte | 54 - src/lib/Info.svelte | 20 - src/lib/Loading.svelte | 87 - src/lib/MobFilter.svelte | 211 - src/lib/MobFooter.svelte | 129 - src/lib/MobNav.svelte | 79 - src/lib/MobileFooter.svelte | 181 + src/lib/Nav.svelte | 741 +- src/lib/Overlay.svelte | 131 - src/lib/PageTransitions.svelte | 40 +- src/lib/PreloadingIndicator.svelte | 2 +- src/lib/Pricesummary.svelte | 71 - src/lib/Product.svelte | 220 - src/lib/Product1.svelte | 168 - src/lib/ProductCard.svelte | 420 + src/lib/Products.svelte | 87 - src/lib/Search.svelte | 67 - src/lib/SingleImageUpload.svelte | 195 + src/lib/Skeleton.svelte | 23 - src/lib/Stats.svelte | 80 + src/lib/Stripe.svelte | 176 +- src/lib/Weprovides.svelte | 69 - src/lib/WishlistProducts.svelte | 212 - src/lib/actions/useViewPort.ts | 24 + src/lib/components/AnimatedCartItem.svelte | 18 + src/lib/components/BackToTop.svelte | 64 + src/lib/components/Breadcrumb.svelte | 37 + src/lib/components/CheckoutHeader.svelte | 55 +- src/lib/components/CtrlS.svelte | 68 + src/lib/components/DesktopFilter.svelte | 319 + src/lib/components/Error.svelte | 10 +- src/lib/components/ExternalLink.svelte | 8 - src/lib/components/HeadingUnderline.svelte | 5 - src/lib/components/Image/Image.svelte | 6 + .../{ImageLoader.svelte => LazyImage.svelte} | 0 src/lib/components/Image/LazyImg.svelte | 38 + src/lib/components/Link.svelte | 8 - src/lib/components/MegaMenu.svelte | 148 + src/lib/components/MegaMenu2.svelte | 87 + src/lib/components/MobileFilter.svelte | 298 + src/lib/components/Modal.svelte | 47 + .../PageIdBanners/PageIdPickedBanner.svelte | 50 + .../components/Pagination.svelte} | 34 +- src/lib/components/PreloadingIndicator.svelte | 67 + src/lib/components/Pricesummary.svelte | 224 +- .../components/Product/SimilarProducts.svelte | 18 + src/lib/components/SEO/OpenGraph.svelte | 26 +- src/lib/components/SEO/SchemaOrg.svelte | 6 +- src/lib/components/SEO/index.svelte | 30 +- src/lib/components/_ProductCard.svelte | 72 - src/lib/components/alerts/Errors.svelte | 30 - src/lib/components/alerts/Success.svelte | 26 - .../buttons/PrimaryButtonRounded.svelte | 83 - src/lib/components/buttons/Submit.svelte | 38 - .../icons/UiExclamationCircleSolid.svelte | 11 - src/lib/components/icons/UiGreenCheck.svelte | 10 - src/lib/components/icons/UiLockSolid.svelte | 6 - src/lib/components/icons/UiRedX.svelte | 6 - .../components/icons/UiRefreshOutline.svelte | 30 - src/lib/components/icons/index.js | 7 - src/lib/components/navbar/Nav.svelte | 32 - src/lib/components/network.js | 90 + src/lib/config/env.js | 7 +- src/lib/config/g.ts | 6 - src/lib/config/index.ts | 75 +- src/lib/config/manifest.js | 45 + src/lib/config/menu.js | 53 + src/lib/config/website.ts | 55 + src/lib/graphql/client.ts | 20 - .../StoreCountry/removeStoreCountry.gql | 3 - .../StoreCountry/saveStoreCountry.gql | 22 - .../StoreCountry/storeCountries.gql | 31 - .../operations/StoreCountry/storeCountry.gql | 25 - .../graphql/operations/address/address.gql | 22 - .../graphql/operations/address/addresses.gql | 40 - .../operations/address/deleteAddress.gql | 3 - .../operations/address/myAddresses.gql | 27 - .../operations/address/saveAddress.gql | 104 - src/lib/graphql/operations/blog/blog.gql | 26 - src/lib/graphql/operations/blog/blogs.gql | 43 - .../graphql/operations/blog/deleteBlog.gql | 3 - src/lib/graphql/operations/blog/saveBlog.gql | 35 - src/lib/graphql/operations/cart/addToCart.gql | 89 - src/lib/graphql/operations/cart/cart.gql | 97 - src/lib/graphql/operations/cart/checkout.gql | 112 - .../operations/category/categories.gql | 56 - .../graphql/operations/category/category.gql | 50 - .../graphql/operations/category/megamenu.gql | 92 - .../graphql/operations/country/countries.gql | 23 - .../graphql/operations/country/country.gql | 18 - .../operations/country/deleteCountry.gql | 3 - .../operations/country/saveCountry.gql | 42 - .../graphql/operations/groupQueries/INIT.gql | 407 - .../graphql/operations/groupQueries/home.gql | 265 - .../graphql/operations/order/myOrderItems.gql | 135 - src/lib/graphql/operations/order/myOrders.gql | 149 - .../graphql/operations/order/orderItem.gql | 197 - .../operations/order/paySuccessPageHit.gql | 116 - .../operations/pay/cashfreePayNowNew.gql | 7 - .../payment/deletePaymentMethod.gql | 3 - .../operations/payment/paymentMethod.gql | 18 - .../operations/payment/paymentMethods.gql | 36 - .../payment/paymentMethodsAdmin.gql | 37 - .../operations/payment/savePaymentMethod.gql | 43 - src/lib/graphql/operations/payment/stripe.gql | 33 - .../graphql/operations/product/product.gql | 217 - .../operations/product/productSlug.gql | 56 - .../graphql/operations/product/products.gql | 138 - .../operations/review/productReviews.gql | 30 - src/lib/graphql/operations/review/reviews.gql | 42 - .../operations/search/popularSearches.gql | 32 - .../graphql/operations/settings/settings.gql | 161 - src/lib/graphql/operations/state/states.gql | 35 - src/lib/graphql/operations/store/store.gql | 144 - src/lib/graphql/operations/store/storeOne.gql | 204 - .../operations/user/changePassword.gql | 7 - .../graphql/operations/user/emailPassword.gql | 3 - src/lib/graphql/operations/user/getOtp.gql | 6 - src/lib/graphql/operations/user/login.gql | 23 - src/lib/graphql/operations/user/me.gql | 19 - .../graphql/operations/user/resendEmail.gql | 3 - src/lib/graphql/operations/user/signOut.gql | 3 - .../graphql/operations/user/topVendors.gql | 9 - .../graphql/operations/user/updateProfile.gql | 51 - .../graphql/operations/user/verifyEmail.gql | 16 - src/lib/graphql/operations/user/verifyOtp.gql | 15 - .../operations/vendor/randomVendors.gql | 63 - src/lib/graphql/operations/vendor/vendor.gql | 75 - .../operations/vendor/vendorProfile.gql | 127 - .../operations/wishlist/checkWishlist.gql | 3 - .../operations/wishlist/myWishlist.gql | 50 - .../operations/wishlist/toggleWishlist.gql | 3 - src/lib/graphql/schema.json | 77688 ---------------- .../CategoriesHome.svelte} | 74 +- src/lib/home/CategoriesMobile.svelte | 69 + src/lib/home/Hero.svelte | 108 + src/lib/home/HeroBanners.svelte | 72 + src/lib/home/PickedBanners.svelte | 93 + src/lib/icons/home.svg | 13 + src/lib/icons/statistics.svg | 13 + src/lib/icons/warning.svg | 13 + src/lib/service-worker.js | 48 - src/lib/services.js | 121 - src/lib/store.ts | 63 +- src/lib/ui/BackButton.svelte | 14 +- src/lib/ui/BlackButton.svelte | 41 + src/lib/ui/Button.svelte | 17 - src/lib/ui/Checkbox.svelte | 167 +- src/lib/ui/CheckboxEs.svelte | 206 + src/lib/ui/Errors.svelte | 17 + src/lib/ui/GradiantButton.svelte | 45 +- src/lib/ui/GrnIndGradiantButton.svelte | 56 +- src/lib/ui/Loader.svelte | 43 - src/lib/ui/Loading.svelte | 70 - src/lib/ui/Passwordbox.svelte | 68 - src/lib/ui/PrimaryButton.svelte | 69 +- src/lib/ui/ProductSkeleton.svelte | 25 - src/lib/ui/Radio.svelte | 113 +- src/lib/ui/SearchBox.svelte | 30 + src/lib/ui/Skeleton.svelte | 57 +- src/lib/ui/Textarea.svelte | 84 +- src/lib/ui/TextareaFloating.svelte | 36 +- src/lib/ui/Textbox.svelte | 175 +- src/lib/ui/TextboxFloating.svelte | 49 +- src/lib/ui/ToggleSwitch.svelte | 143 + src/lib/ui/WhiteButton.svelte | 83 + src/lib/util/api.ts | 99 +- src/lib/util/index.ts | 126 +- src/routes/(app)/+layout.svelte | 18 + src/routes/(app)/+page.server.ts | 14 + src/routes/(app)/+page.svelte | 222 + src/routes/(app)/[slug]/+page.server.ts | 74 + src/routes/(app)/[slug]/+page.svelte | 169 + src/routes/(app)/auth/+layout.ts | 80 + src/routes/(app)/auth/+layout@.svelte | 42 + src/routes/(app)/auth/_SendOtp.svelte | 36 + src/routes/(app)/auth/_VerifyOtp.svelte | 242 + src/routes/(app)/auth/otp-login/+page.svelte | 146 + .../{ => (app)}/auth/otp-login/+page.ts | 7 +- src/routes/(app)/autosuggest/+layout@.svelte | 18 + src/routes/(app)/autosuggest/+page.svelte | 262 + src/routes/(app)/autosuggest/+page.ts | 6 + .../(app)/bulk-order-inquiry/+page.svelte | 338 + src/routes/(app)/cart/+page.server.ts | 54 + src/routes/(app)/cart/+page.svelte | 680 + src/routes/(app)/categories/+page.svelte | 162 + src/routes/(app)/categories/+page.ts | 27 + .../(app)/category/[slug]/+page.server.ts | 20 + src/routes/(app)/category/[slug]/+page.svelte | 158 + .../(app)/checkout/_AddressSkeleton.svelte | 6 + .../checkout/_SelectAddress.svelte | 38 +- .../checkout/add-address/+page.server.ts | 16 + .../(app)/checkout/add-address/+page.svelte | 169 + .../(app)/checkout/address/+page.server.ts | 46 + .../{ => (app)}/checkout/address/+page.svelte | 54 +- .../checkout/payment-options/+page.server.ts | 57 + .../checkout/payment-options/+page.svelte | 364 + src/routes/(app)/my/+layout.svelte | 116 + src/routes/(app)/my/+layout.ts | 26 + src/routes/(app)/my/+page.server.ts | 17 + src/routes/(app)/my/+page.svelte | 32 + src/routes/(app)/my/_SidebarDashboard.svelte | 135 + src/routes/(app)/my/_UserDashboard.svelte | 127 + src/routes/(app)/my/addresses/+page.server.ts | 15 + src/routes/(app)/my/addresses/+page.svelte | 258 + .../(app)/my/addresses/[id]/+page.server.ts | 28 + .../(app)/my/addresses/[id]/+page.svelte | 36 + .../(app)/my/addresses/_SaveAddress.svelte | 222 + src/routes/(app)/my/orders/+page.server.ts | 18 + src/routes/(app)/my/orders/+page.svelte | 17 + .../(app)/my/orders/_DemoRequestModal.svelte | 111 + src/routes/(app)/my/orders/_Modal.svelte | 128 + src/routes/(app)/my/orders/_MyOrder.svelte | 248 + .../my/orders/_OrderListSkeleton.svelte | 0 .../(app)/my/orders/_OrderTracking.svelte | 81 + .../my/orders/_ReturnTracking.svelte} | 44 +- .../my/orders/_TransparentButton.svelte} | 20 +- .../(app)/my/orders/details/+page.server.ts | 23 + .../(app)/my/orders/details/+page.svelte | 328 + src/routes/(app)/my/profile/+page.server.ts | 24 + src/routes/(app)/my/profile/+page.svelte | 157 + src/routes/(app)/my/reviews/+page.server.ts | 16 + src/routes/(app)/my/reviews/+page.svelte | 219 + .../(app)/my/reviews/create/+page.svelte | 177 + src/routes/(app)/my/reviews/create/+page.ts | 19 + src/routes/(app)/my/wishlist/+page.server.ts | 18 + src/routes/(app)/my/wishlist/+page.svelte | 26 + src/routes/(app)/my/wishlist/_Wishlist.svelte | 214 + .../my/wishlist/_WishlistSkeleton.svelte | 1 + src/routes/(app)/new-arrivals/+page.svelte | 153 + src/routes/(app)/new-arrivals/+page.ts | 39 + src/routes/(app)/payment/failure/+page.svelte | 29 + .../(app)/payment/success/+page.server.ts | 40 + src/routes/(app)/payment/success/+page.svelte | 420 + .../(app)/product/[slug]/+page.server.ts | 19 + src/routes/(app)/product/[slug]/+page.svelte | 1011 + .../product/[slug]/_DeliveryOptions.svelte | 175 + .../[slug]/_FrequentlyBoughtProduct.svelte | 129 + src/routes/(app)/search/+page.server.ts | 59 + src/routes/(app)/search/+page.svelte | 157 + src/routes/(app)/shop/[slug]/+page.server.ts | 24 + src/routes/(app)/shop/[slug]/+page.svelte | 174 + src/routes/(marketing)/+layout.svelte | 17 + src/routes/(marketing)/about-us/+page.svelte | 196 + .../(marketing)/contact-us/+page.svelte | 274 + src/routes/(marketing)/faqs/+page.svelte | 74 + src/routes/(marketing)/faqs/+page.ts | 27 + .../p/payments-returns/+page.svelte | 102 + .../+page.svelte | 72 + .../(marketing)/p/privacy-policy/+page.svelte | 65 + .../p/terms-conditions/+page.svelte | 233 + src/routes/+error.svelte | 175 +- src/routes/+layout.server.ts | 106 + src/routes/+layout.svelte | 146 +- src/routes/+layout.ts | 19 - src/routes/+page.svelte | 145 - src/routes/+page.ts | 9 - src/routes/[slug]/+page.svelte | 334 - src/routes/[slug]/+page.ts | 24 - .../[slug]/_ProductDetailSkeleton.svelte | 45 - src/routes/auth/+layout@.svelte | 106 - src/routes/auth/_SendOtp.svelte | 28 - src/routes/auth/_VerifyOtp.svelte | 100 - src/routes/auth/change-password/+page.svelte | 296 - src/routes/auth/change-password/+page.ts | 9 - src/routes/auth/change-success/+page.svelte | 68 - src/routes/auth/change-success/+page.ts | 6 - src/routes/auth/forgot-password/+page.svelte | 95 - src/routes/auth/forgot-password/+page.ts | 7 - src/routes/auth/forgot-success/+page.svelte | 78 - src/routes/auth/forgot-success/+page.ts | 7 - src/routes/auth/login/+page.svelte | 275 - src/routes/auth/login/+page.ts | 8 - src/routes/auth/otp-login/+page.svelte | 145 - .../auth/registration-successful/+page.svelte | 74 - .../auth/registration-successful/+page.ts | 6 - src/routes/auth/reset-password/+page.svelte | 180 - src/routes/auth/reset-password/+page.ts | 6 - src/routes/auth/reset-success/+page.svelte | 77 - src/routes/auth/reset-success/+page.ts | 7 - src/routes/auth/signup/+page.svelte | 255 - src/routes/auth/signup/+page.ts | 20 - .../auth/verification-success/+page.svelte | 64 - src/routes/auth/verification-success/+page.ts | 7 - src/routes/auth/verify/+page.svelte | 124 - src/routes/auth/verify/+page.ts | 44 - src/routes/cart/+page.svelte | 178 - src/routes/cart/+page.ts | 11 - src/routes/cart/_Cartlist.svelte | 138 - src/routes/checkout/+page.svelte | 1 - src/routes/checkout/_AddressSkeleton.svelte | 8 - .../checkout/_CartSummaryCheckout.svelte | 0 src/routes/checkout/_CheckoutHeader.svelte | 82 - src/routes/checkout/_EditAddress.svelte | 179 - src/routes/checkout/_PriceDetails.svelte | 182 - src/routes/checkout/add-address/+page.svelte | 282 - src/routes/checkout/add-address/+page.ts | 15 - src/routes/checkout/add/+page.svelte | 35 - src/routes/checkout/add/+page.ts | 10 - src/routes/checkout/address/+page.ts | 30 - src/routes/checkout/edit-address/+page.svelte | 71 - src/routes/checkout/edit-address/+page.ts | 6 - .../checkout/payment-options/+page.svelte | 273 - src/routes/checkout/payment-options/+page.ts | 28 - src/routes/designs/home/+page.svelte | 284 - src/routes/designs/list/+page.svelte | 201 - src/routes/designs/payment1/+page.svelte | 163 - src/routes/designs/payment3/+page.svelte | 125 - .../designs/search-item-list/+page.svelte | 183 - src/routes/designs/search/+page.js | 14 - src/routes/designs/search/+page.svelte | 166 - src/routes/login/+layout.svelte | 29 - src/routes/login/+layout.ts | 6 - src/routes/login/+page.svelte | 137 - src/routes/login/+page.ts | 6 - src/routes/my/+layout@.svelte | 39 - src/routes/my/+page.svelte | 15 - src/routes/my/+page.ts | 6 - src/routes/my/_OrdersDashboard.svelte | 145 - src/routes/my/_SidebarDashboard.svelte | 90 - src/routes/my/_SummaryDashboard.svelte | 100 - src/routes/my/orders/+page.svelte | 151 - src/routes/my/orders/details/+page.svelte | 246 - src/routes/my/profile/+page.svelte | 152 - src/routes/my/reviews/+page.svelte | 181 - src/routes/my/wishlist/+page.svelte | 53 - src/routes/p/about/+page.svelte | 277 - src/routes/p/blog/+page.js | 17 - src/routes/p/blog/+page.svelte | 82 - src/routes/p/blog/[id]/+page.js | 12 - src/routes/p/blog/[id]/+page.svelte | 47 - src/routes/p/contact/+page.js | 7 - src/routes/p/contact/+page.svelte | 250 - src/routes/p/sitemap/+page.svelte | 95 - .../payment/_OrderAddressDetails.svelte | 77 - .../payment/_OrderSuccessSkeleton.svelte | 22 - src/routes/payment/success/+page.svelte | 223 - src/routes/payment/success/+page.ts | 5 - src/routes/rss.xml/+server.js | 64 + src/routes/search/+page.js | 39 - src/routes/search/+page.svelte | 97 - src/routes/search/_DesktopFilters.svelte | 150 - src/routes/search/_HeaderBody.svelte | 81 - src/routes/search/_MobileFilters.svelte | 229 - src/routes/search/_NoProduct.svelte | 4 - src/routes/search/_Product.svelte | 48 - src/routes/search/_ProductCardEs.svelte | 101 - src/routes/search/_ProductSkeleton.svelte | 9 - src/routes/signup/+page.svelte | 135 - src/routes/sitemap.xml/+server.js | 81 + src/routes/wishlist/+page.svelte | 80 - src/routes/wishlist/+page.ts | 19 - src/service-worker.js | 57 + src/service-worker.ts | 80 - static/ETP-banner-for-ecommerce.jpg | Bin 275718 -> 0 bytes static/about-us/design-2.png | Bin 0 -> 4160 bytes static/about-us/design.png | Bin 0 -> 1425 bytes static/about-us/phone.jpg | Bin 0 -> 12816 bytes static/about-us/product.png | Bin 0 -> 3528 bytes static/about-us/profile-1.jpg | Bin 0 -> 11034 bytes static/about-us/profile-2.jpg | Bin 0 -> 44175 bytes static/about-us/profile-3.jpg | Bin 0 -> 24411 bytes static/about-us/profile-4.jpg | Bin 0 -> 79986 bytes static/about-us/team.png | Bin 0 -> 5949 bytes static/addidas1.png | Bin 95424 -> 0 bytes static/app/app-store.svg | 46 + static/app/google-play.png | Bin 0 -> 2729 bytes static/dashboard/my-orders.png | Bin 0 -> 1473 bytes static/dashboard/profile.png | Bin 0 -> 1355 bytes static/dashboard/reviews.png | Bin 0 -> 2636 bytes static/dashboard/wishlist.png | Bin 0 -> 1622 bytes static/ecommerce-banner-1.png | Bin 332011 -> 0 bytes static/electronic.webp | Bin 59976 -> 0 bytes static/emptycart.png | Bin 15906 -> 0 bytes static/error/404.svg | 1 + static/error/add-to-cart-animate.svg | 1 + static/error/closed-sign-animate.svg | 1 + static/error/demo-request.svg | 1 + static/error/dog.png | Bin 0 -> 488935 bytes static/error/empty-animate.svg | 1 + static/error/online-review-animate.svg | 1 + static/error/search.svg | 1 + static/fonts/karla-v23-latin-200.eot | Bin 0 -> 12641 bytes static/fonts/karla-v23-latin-200.svg | 339 + static/fonts/karla-v23-latin-200.ttf | Bin 0 -> 22112 bytes static/fonts/karla-v23-latin-200.woff | Bin 0 -> 14356 bytes static/fonts/karla-v23-latin-200.woff2 | Bin 0 -> 11244 bytes static/fonts/karla-v23-latin-300.eot | Bin 0 -> 12803 bytes static/fonts/karla-v23-latin-300.svg | 340 + static/fonts/karla-v23-latin-300.ttf | Bin 0 -> 22068 bytes static/fonts/karla-v23-latin-300.woff | Bin 0 -> 14540 bytes static/fonts/karla-v23-latin-300.woff2 | Bin 0 -> 11424 bytes static/fonts/karla-v23-latin-500.eot | Bin 0 -> 12842 bytes static/fonts/karla-v23-latin-500.svg | 340 + static/fonts/karla-v23-latin-500.ttf | Bin 0 -> 22040 bytes static/fonts/karla-v23-latin-500.woff | Bin 0 -> 14596 bytes static/fonts/karla-v23-latin-500.woff2 | Bin 0 -> 11504 bytes static/fonts/karla-v23-latin-600.eot | Bin 0 -> 12870 bytes static/fonts/karla-v23-latin-600.svg | 340 + static/fonts/karla-v23-latin-600.ttf | Bin 0 -> 22044 bytes static/fonts/karla-v23-latin-600.woff | Bin 0 -> 14608 bytes static/fonts/karla-v23-latin-600.woff2 | Bin 0 -> 11464 bytes static/fonts/karla-v23-latin-700.eot | Bin 0 -> 12734 bytes static/fonts/karla-v23-latin-700.svg | 341 + static/fonts/karla-v23-latin-700.ttf | Bin 0 -> 22044 bytes static/fonts/karla-v23-latin-700.woff | Bin 0 -> 14492 bytes static/fonts/karla-v23-latin-700.woff2 | Bin 0 -> 11384 bytes static/fonts/karla-v23-latin-800.eot | Bin 0 -> 12910 bytes static/fonts/karla-v23-latin-800.svg | 343 + static/fonts/karla-v23-latin-800.ttf | Bin 0 -> 22336 bytes static/fonts/karla-v23-latin-800.woff | Bin 0 -> 14696 bytes static/fonts/karla-v23-latin-800.woff2 | Bin 0 -> 11576 bytes static/fonts/karla-v23-latin-regular.eot | Bin 0 -> 12634 bytes static/fonts/karla-v23-latin-regular.svg | 340 + static/fonts/karla-v23-latin-regular.ttf | Bin 0 -> 22024 bytes static/fonts/karla-v23-latin-regular.woff | Bin 0 -> 14404 bytes static/fonts/karla-v23-latin-regular.woff2 | Bin 0 -> 11284 bytes static/gray-dot.png | Bin 0 -> 313 bytes static/hoodie.webp | Bin 39586 -> 0 bytes static/icons/app-store.png | Bin 2527 -> 0 bytes static/icons/facebook-white.png | Bin 2384 -> 0 bytes static/icons/github-white.png | Bin 2265 -> 0 bytes static/icons/icon-120x120.png | Bin 0 -> 1426 bytes static/icons/icon-128x128.png | Bin 0 -> 1573 bytes static/icons/icon-144x144.png | Bin 0 -> 1797 bytes static/icons/icon-152x152.png | Bin 0 -> 2019 bytes static/icons/icon-180x180.png | Bin 0 -> 2494 bytes static/icons/icon-192x192.png | Bin 0 -> 2733 bytes static/icons/icon-256x256.png | Bin 0 -> 4032 bytes static/icons/icon-384x384.png | Bin 0 -> 7662 bytes static/icons/icon-512x512.png | Bin 0 -> 11650 bytes static/icons/icon-72x72.png | Bin 0 -> 735 bytes static/icons/icon-96x96.png | Bin 0 -> 1029 bytes static/icons/instagram-white.png | Bin 2553 -> 0 bytes static/icons/linkedin-white.png | Bin 1490 -> 0 bytes static/icons/play-store.png | Bin 3139 -> 0 bytes static/icons/twitter-white.png | Bin 1937 -> 0 bytes static/img/avatar-s-20.32972323.jpg | Bin 35932 -> 0 bytes static/img/avatar-s-6.0f4533ab.jpg | Bin 40107 -> 0 bytes static/img/avatar-s-7.cb1b1e65.jpg | Bin 30765 -> 0 bytes static/kitchen.jpg | Bin 380386 -> 0 bytes static/landing/card-payment.png | Bin 1653 -> 0 bytes static/landing/clock.png | Bin 1690 -> 0 bytes static/landing/invoice-white.png | Bin 385 -> 0 bytes static/landing/light-on.png | Bin 3812 -> 0 bytes static/landing/rating-circled-white.png | Bin 2436 -> 0 bytes static/landing/team-white.png | Bin 2126 -> 0 bytes static/landing/top-menu.png | Bin 596 -> 0 bytes static/landing/users.png | Bin 1948 -> 0 bytes static/landing/wallet-white.png | Bin 1171 -> 0 bytes static/leadership-profile.png | Bin 15896 -> 0 bytes static/login/bg-lighter.svg | 1 + static/logo.svg | 18 - static/logo_512.png | Bin 13755 -> 0 bytes static/make-up.jpg | Bin 81782 -> 0 bytes static/manifest.json | 109 +- static/nike-shoe.png | Bin 207757 -> 0 bytes static/nike.png | Bin 11042 -> 0 bytes static/no/add-to-cart-animate.svg | 1 + static/no/cancle.png | Bin 0 -> 2484 bytes static/no/empty-address.svg | 1 + static/no/empty-animate.svg | 1 - static/no/empty-wishlist.svg | 1 + static/no/no-data-availible.png | Bin 0 -> 2940 bytes static/nologo-navy-casual-shirt.jpg | Bin 136565 -> 0 bytes static/pant.jpg | Bin 76190 -> 0 bytes static/product/cod.png | Bin 0 -> 1679 bytes static/product/delivery.png | Bin 0 -> 1391 bytes static/product/non-veg.png | Bin 1415 -> 0 bytes static/product/opposite-arrows.png | Bin 0 -> 4105 bytes static/product/other.png | Bin 1374 -> 0 bytes static/product/veg.png | Bin 1461 -> 0 bytes static/profile.png | Bin 0 -> 657949 bytes static/razorpay-icon.jpg | Bin 0 -> 1676 bytes static/razorpay-logo-white.svg | 2 + static/robots.txt | 5 +- static/sale.jpg | Bin 58969 -> 0 bytes static/sale2.jpg | Bin 82514 -> 0 bytes static/shoe.webp | Bin 19460 -> 0 bytes static/sidebar/acrobatic-rings.png | Bin 2232 -> 0 bytes static/sidebar/baby-face.png | Bin 2215 -> 0 bytes static/sidebar/female-user.png | Bin 1778 -> 0 bytes static/sidebar/furniture-store.png | Bin 1075 -> 0 bytes static/sidebar/group-objects.png | Bin 392 -> 0 bytes static/sidebar/home.png | Bin 853 -> 0 bytes static/sidebar/new.png | Bin 2806 -> 0 bytes static/sidebar/sneakers.png | Bin 2375 -> 0 bytes static/sidebar/user-male.png | Bin 1633 -> 0 bytes static/user-empty-profile.png | Bin 0 -> 9292 bytes svelte.config.js | 42 +- tailwind.config.cjs | 162 +- vite.config.js | 33 +- 854 files changed, 18984 insertions(+), 131429 deletions(-) delete mode 100644 $houdini/artifacts/HOME.d.ts delete mode 100644 $houdini/artifacts/HOME.js delete mode 100644 $houdini/artifacts/INIT.d.ts delete mode 100644 $houdini/artifacts/INIT.js delete mode 100644 $houdini/artifacts/addToCart.d.ts delete mode 100644 $houdini/artifacts/addToCart.js delete mode 100644 $houdini/artifacts/address.d.ts delete mode 100644 $houdini/artifacts/address.js delete mode 100644 $houdini/artifacts/addresses.d.ts delete mode 100644 $houdini/artifacts/addresses.js delete mode 100644 $houdini/artifacts/blog.d.ts delete mode 100644 $houdini/artifacts/blog.js delete mode 100644 $houdini/artifacts/blogs.d.ts delete mode 100644 $houdini/artifacts/blogs.js delete mode 100644 $houdini/artifacts/cart.d.ts delete mode 100644 $houdini/artifacts/cart.js delete mode 100644 $houdini/artifacts/cashfreePayNowNew.d.ts delete mode 100644 $houdini/artifacts/cashfreePayNowNew.js delete mode 100644 $houdini/artifacts/categories.d.ts delete mode 100644 $houdini/artifacts/categories.js delete mode 100644 $houdini/artifacts/category.d.ts delete mode 100644 $houdini/artifacts/category.js delete mode 100644 $houdini/artifacts/changePassword.d.ts delete mode 100644 $houdini/artifacts/changePassword.js delete mode 100644 $houdini/artifacts/checkWishlist.d.ts delete mode 100644 $houdini/artifacts/checkWishlist.js delete mode 100644 $houdini/artifacts/checkout.d.ts delete mode 100644 $houdini/artifacts/checkout.js delete mode 100644 $houdini/artifacts/countries.d.ts delete mode 100644 $houdini/artifacts/countries.js delete mode 100644 $houdini/artifacts/country.d.ts delete mode 100644 $houdini/artifacts/country.js delete mode 100644 $houdini/artifacts/deleteAddress.d.ts delete mode 100644 $houdini/artifacts/deleteAddress.js delete mode 100644 $houdini/artifacts/deleteBlog.d.ts delete mode 100644 $houdini/artifacts/deleteBlog.js delete mode 100644 $houdini/artifacts/deleteCountry.d.ts delete mode 100644 $houdini/artifacts/deleteCountry.js delete mode 100644 $houdini/artifacts/deletePaymentMethod.d.ts delete mode 100644 $houdini/artifacts/deletePaymentMethod.js delete mode 100644 $houdini/artifacts/emailPassword.d.ts delete mode 100644 $houdini/artifacts/emailPassword.js delete mode 100644 $houdini/artifacts/getOtp.d.ts delete mode 100644 $houdini/artifacts/getOtp.js delete mode 100644 $houdini/artifacts/index.js delete mode 100644 $houdini/artifacts/login.d.ts delete mode 100644 $houdini/artifacts/login.js delete mode 100644 $houdini/artifacts/me.d.ts delete mode 100644 $houdini/artifacts/me.js delete mode 100644 $houdini/artifacts/megamenu.d.ts delete mode 100644 $houdini/artifacts/megamenu.js delete mode 100644 $houdini/artifacts/myAddresses.d.ts delete mode 100644 $houdini/artifacts/myAddresses.js delete mode 100644 $houdini/artifacts/myOrderItems.d.ts delete mode 100644 $houdini/artifacts/myOrderItems.js delete mode 100644 $houdini/artifacts/myOrders.d.ts delete mode 100644 $houdini/artifacts/myOrders.js delete mode 100644 $houdini/artifacts/myWishlist.d.ts delete mode 100644 $houdini/artifacts/myWishlist.js delete mode 100644 $houdini/artifacts/orderItem.d.ts delete mode 100644 $houdini/artifacts/orderItem.js delete mode 100644 $houdini/artifacts/paySuccessPageHit.d.ts delete mode 100644 $houdini/artifacts/paySuccessPageHit.js delete mode 100644 $houdini/artifacts/paymentMethod.d.ts delete mode 100644 $houdini/artifacts/paymentMethod.js delete mode 100644 $houdini/artifacts/paymentMethods.d.ts delete mode 100644 $houdini/artifacts/paymentMethods.js delete mode 100644 $houdini/artifacts/paymentMethodsAdmin.d.ts delete mode 100644 $houdini/artifacts/paymentMethodsAdmin.js delete mode 100644 $houdini/artifacts/popularSearches.d.ts delete mode 100644 $houdini/artifacts/popularSearches.js delete mode 100644 $houdini/artifacts/product.d.ts delete mode 100644 $houdini/artifacts/product.js delete mode 100644 $houdini/artifacts/productReviews.d.ts delete mode 100644 $houdini/artifacts/productReviews.js delete mode 100644 $houdini/artifacts/productSlug.d.ts delete mode 100644 $houdini/artifacts/productSlug.js delete mode 100644 $houdini/artifacts/products.d.ts delete mode 100644 $houdini/artifacts/products.js delete mode 100644 $houdini/artifacts/randomVendors.d.ts delete mode 100644 $houdini/artifacts/randomVendors.js delete mode 100644 $houdini/artifacts/removeStoreCountry.d.ts delete mode 100644 $houdini/artifacts/removeStoreCountry.js delete mode 100644 $houdini/artifacts/resendEmail.d.ts delete mode 100644 $houdini/artifacts/resendEmail.js delete mode 100644 $houdini/artifacts/reviews.d.ts delete mode 100644 $houdini/artifacts/reviews.js delete mode 100644 $houdini/artifacts/saveAddress.d.ts delete mode 100644 $houdini/artifacts/saveAddress.js delete mode 100644 $houdini/artifacts/saveBlog.d.ts delete mode 100644 $houdini/artifacts/saveBlog.js delete mode 100644 $houdini/artifacts/saveCountry.d.ts delete mode 100644 $houdini/artifacts/saveCountry.js delete mode 100644 $houdini/artifacts/savePaymentMethod.d.ts delete mode 100644 $houdini/artifacts/savePaymentMethod.js delete mode 100644 $houdini/artifacts/saveStoreCountry.d.ts delete mode 100644 $houdini/artifacts/saveStoreCountry.js delete mode 100644 $houdini/artifacts/settings.d.ts delete mode 100644 $houdini/artifacts/settings.js delete mode 100644 $houdini/artifacts/signOut.d.ts delete mode 100644 $houdini/artifacts/signOut.js delete mode 100644 $houdini/artifacts/states.d.ts delete mode 100644 $houdini/artifacts/states.js delete mode 100644 $houdini/artifacts/store.d.ts delete mode 100644 $houdini/artifacts/store.js delete mode 100644 $houdini/artifacts/storeCountries.d.ts delete mode 100644 $houdini/artifacts/storeCountries.js delete mode 100644 $houdini/artifacts/storeCountry.d.ts delete mode 100644 $houdini/artifacts/storeCountry.js delete mode 100644 $houdini/artifacts/storeOne.d.ts delete mode 100644 $houdini/artifacts/storeOne.js delete mode 100644 $houdini/artifacts/stripe.d.ts delete mode 100644 $houdini/artifacts/stripe.js delete mode 100644 $houdini/artifacts/toggleWishlist.d.ts delete mode 100644 $houdini/artifacts/toggleWishlist.js delete mode 100644 $houdini/artifacts/topVendors.d.ts delete mode 100644 $houdini/artifacts/topVendors.js delete mode 100644 $houdini/artifacts/updateProfile.d.ts delete mode 100644 $houdini/artifacts/updateProfile.js delete mode 100644 $houdini/artifacts/vendor.d.ts delete mode 100644 $houdini/artifacts/vendor.js delete mode 100644 $houdini/artifacts/vendorProfile.d.ts delete mode 100644 $houdini/artifacts/vendorProfile.js delete mode 100644 $houdini/artifacts/verifyEmail.d.ts delete mode 100644 $houdini/artifacts/verifyEmail.js delete mode 100644 $houdini/artifacts/verifyOtp.d.ts delete mode 100644 $houdini/artifacts/verifyOtp.js delete mode 100644 $houdini/graphql/documents.gql delete mode 100644 $houdini/graphql/enums.d.ts delete mode 100644 $houdini/graphql/enums.js delete mode 100644 $houdini/graphql/index.d.ts delete mode 100644 $houdini/graphql/index.js delete mode 100644 $houdini/graphql/schema.graphql delete mode 100644 $houdini/index.d.ts delete mode 100644 $houdini/index.js delete mode 100644 $houdini/meta.json delete mode 100644 $houdini/runtime/adapter.d.ts delete mode 100644 $houdini/runtime/adapter.js delete mode 100644 $houdini/runtime/cache/cache.d.ts delete mode 100644 $houdini/runtime/cache/cache.js delete mode 100644 $houdini/runtime/cache/gc.d.ts delete mode 100644 $houdini/runtime/cache/gc.js delete mode 100644 $houdini/runtime/cache/index.d.ts delete mode 100644 $houdini/runtime/cache/index.js delete mode 100644 $houdini/runtime/cache/lists.d.ts delete mode 100644 $houdini/runtime/cache/lists.js delete mode 100644 $houdini/runtime/cache/storage.d.ts delete mode 100644 $houdini/runtime/cache/storage.js delete mode 100644 $houdini/runtime/cache/stuff.d.ts delete mode 100644 $houdini/runtime/cache/stuff.js delete mode 100644 $houdini/runtime/cache/subscription.d.ts delete mode 100644 $houdini/runtime/cache/subscription.js delete mode 100644 $houdini/runtime/index.d.ts delete mode 100644 $houdini/runtime/index.js delete mode 100644 $houdini/runtime/inline/fragment.d.ts delete mode 100644 $houdini/runtime/inline/fragment.js delete mode 100644 $houdini/runtime/inline/index.d.ts delete mode 100644 $houdini/runtime/inline/index.js delete mode 100644 $houdini/runtime/inline/mutation.d.ts delete mode 100644 $houdini/runtime/inline/mutation.js delete mode 100644 $houdini/runtime/inline/query.d.ts delete mode 100644 $houdini/runtime/inline/query.js delete mode 100644 $houdini/runtime/inline/subscription.d.ts delete mode 100644 $houdini/runtime/inline/subscription.js delete mode 100644 $houdini/runtime/lib/config.d.ts delete mode 100644 $houdini/runtime/lib/config.js delete mode 100644 $houdini/runtime/lib/context.d.ts delete mode 100644 $houdini/runtime/lib/context.js delete mode 100644 $houdini/runtime/lib/deepEquals.d.ts delete mode 100644 $houdini/runtime/lib/deepEquals.js delete mode 100644 $houdini/runtime/lib/errors.d.ts delete mode 100644 $houdini/runtime/lib/errors.js delete mode 100644 $houdini/runtime/lib/index.d.ts delete mode 100644 $houdini/runtime/lib/index.js delete mode 100644 $houdini/runtime/lib/log.d.ts delete mode 100644 $houdini/runtime/lib/log.js delete mode 100644 $houdini/runtime/lib/network.d.ts delete mode 100644 $houdini/runtime/lib/network.js delete mode 100644 $houdini/runtime/lib/pagination.d.ts delete mode 100644 $houdini/runtime/lib/pagination.js delete mode 100644 $houdini/runtime/lib/proxy.d.ts delete mode 100644 $houdini/runtime/lib/proxy.js delete mode 100644 $houdini/runtime/lib/scalars.d.ts delete mode 100644 $houdini/runtime/lib/scalars.js delete mode 100644 $houdini/runtime/lib/session.d.ts delete mode 100644 $houdini/runtime/lib/session.js delete mode 100644 $houdini/runtime/lib/types.d.ts delete mode 100644 $houdini/runtime/lib/types.js delete mode 100644 $houdini/runtime/package.json delete mode 100644 $houdini/runtime/stores/fragment.d.ts delete mode 100644 $houdini/runtime/stores/fragment.js delete mode 100644 $houdini/runtime/stores/index.d.ts delete mode 100644 $houdini/runtime/stores/index.js delete mode 100644 $houdini/runtime/stores/mutation.d.ts delete mode 100644 $houdini/runtime/stores/mutation.js delete mode 100644 $houdini/runtime/stores/query.d.ts delete mode 100644 $houdini/runtime/stores/query.js delete mode 100644 $houdini/runtime/stores/subscription.d.ts delete mode 100644 $houdini/runtime/stores/subscription.js delete mode 100644 $houdini/stores/HOME.d.ts delete mode 100644 $houdini/stores/HOME.js delete mode 100644 $houdini/stores/INIT.d.ts delete mode 100644 $houdini/stores/INIT.js delete mode 100644 $houdini/stores/addToCart.d.ts delete mode 100644 $houdini/stores/addToCart.js delete mode 100644 $houdini/stores/address.d.ts delete mode 100644 $houdini/stores/address.js delete mode 100644 $houdini/stores/addresses.d.ts delete mode 100644 $houdini/stores/addresses.js delete mode 100644 $houdini/stores/blog.d.ts delete mode 100644 $houdini/stores/blog.js delete mode 100644 $houdini/stores/blogs.d.ts delete mode 100644 $houdini/stores/blogs.js delete mode 100644 $houdini/stores/cart.d.ts delete mode 100644 $houdini/stores/cart.js delete mode 100644 $houdini/stores/cashfreePayNowNew.d.ts delete mode 100644 $houdini/stores/cashfreePayNowNew.js delete mode 100644 $houdini/stores/categories.d.ts delete mode 100644 $houdini/stores/categories.js delete mode 100644 $houdini/stores/category.d.ts delete mode 100644 $houdini/stores/category.js delete mode 100644 $houdini/stores/changePassword.d.ts delete mode 100644 $houdini/stores/changePassword.js delete mode 100644 $houdini/stores/checkWishlist.d.ts delete mode 100644 $houdini/stores/checkWishlist.js delete mode 100644 $houdini/stores/checkout.d.ts delete mode 100644 $houdini/stores/checkout.js delete mode 100644 $houdini/stores/countries.d.ts delete mode 100644 $houdini/stores/countries.js delete mode 100644 $houdini/stores/country.d.ts delete mode 100644 $houdini/stores/country.js delete mode 100644 $houdini/stores/deleteAddress.d.ts delete mode 100644 $houdini/stores/deleteAddress.js delete mode 100644 $houdini/stores/deleteBlog.d.ts delete mode 100644 $houdini/stores/deleteBlog.js delete mode 100644 $houdini/stores/deleteCountry.d.ts delete mode 100644 $houdini/stores/deleteCountry.js delete mode 100644 $houdini/stores/deletePaymentMethod.d.ts delete mode 100644 $houdini/stores/deletePaymentMethod.js delete mode 100644 $houdini/stores/emailPassword.d.ts delete mode 100644 $houdini/stores/emailPassword.js delete mode 100644 $houdini/stores/getOtp.d.ts delete mode 100644 $houdini/stores/getOtp.js delete mode 100644 $houdini/stores/index.d.ts delete mode 100644 $houdini/stores/index.js delete mode 100644 $houdini/stores/login.d.ts delete mode 100644 $houdini/stores/login.js delete mode 100644 $houdini/stores/me.d.ts delete mode 100644 $houdini/stores/me.js delete mode 100644 $houdini/stores/megamenu.d.ts delete mode 100644 $houdini/stores/megamenu.js delete mode 100644 $houdini/stores/myAddresses.d.ts delete mode 100644 $houdini/stores/myAddresses.js delete mode 100644 $houdini/stores/myOrderItems.d.ts delete mode 100644 $houdini/stores/myOrderItems.js delete mode 100644 $houdini/stores/myOrders.d.ts delete mode 100644 $houdini/stores/myOrders.js delete mode 100644 $houdini/stores/myWishlist.d.ts delete mode 100644 $houdini/stores/myWishlist.js delete mode 100644 $houdini/stores/orderItem.d.ts delete mode 100644 $houdini/stores/orderItem.js delete mode 100644 $houdini/stores/paySuccessPageHit.d.ts delete mode 100644 $houdini/stores/paySuccessPageHit.js delete mode 100644 $houdini/stores/paymentMethod.d.ts delete mode 100644 $houdini/stores/paymentMethod.js delete mode 100644 $houdini/stores/paymentMethods.d.ts delete mode 100644 $houdini/stores/paymentMethods.js delete mode 100644 $houdini/stores/paymentMethodsAdmin.d.ts delete mode 100644 $houdini/stores/paymentMethodsAdmin.js delete mode 100644 $houdini/stores/popularSearches.d.ts delete mode 100644 $houdini/stores/popularSearches.js delete mode 100644 $houdini/stores/product.d.ts delete mode 100644 $houdini/stores/product.js delete mode 100644 $houdini/stores/productReviews.d.ts delete mode 100644 $houdini/stores/productReviews.js delete mode 100644 $houdini/stores/productSlug.d.ts delete mode 100644 $houdini/stores/productSlug.js delete mode 100644 $houdini/stores/products.d.ts delete mode 100644 $houdini/stores/products.js delete mode 100644 $houdini/stores/randomVendors.d.ts delete mode 100644 $houdini/stores/randomVendors.js delete mode 100644 $houdini/stores/removeStoreCountry.d.ts delete mode 100644 $houdini/stores/removeStoreCountry.js delete mode 100644 $houdini/stores/resendEmail.d.ts delete mode 100644 $houdini/stores/resendEmail.js delete mode 100644 $houdini/stores/reviews.d.ts delete mode 100644 $houdini/stores/reviews.js delete mode 100644 $houdini/stores/saveAddress.d.ts delete mode 100644 $houdini/stores/saveAddress.js delete mode 100644 $houdini/stores/saveBlog.d.ts delete mode 100644 $houdini/stores/saveBlog.js delete mode 100644 $houdini/stores/saveCountry.d.ts delete mode 100644 $houdini/stores/saveCountry.js delete mode 100644 $houdini/stores/savePaymentMethod.d.ts delete mode 100644 $houdini/stores/savePaymentMethod.js delete mode 100644 $houdini/stores/saveStoreCountry.d.ts delete mode 100644 $houdini/stores/saveStoreCountry.js delete mode 100644 $houdini/stores/settings.d.ts delete mode 100644 $houdini/stores/settings.js delete mode 100644 $houdini/stores/signOut.d.ts delete mode 100644 $houdini/stores/signOut.js delete mode 100644 $houdini/stores/states.d.ts delete mode 100644 $houdini/stores/states.js delete mode 100644 $houdini/stores/store.d.ts delete mode 100644 $houdini/stores/store.js delete mode 100644 $houdini/stores/storeCountries.d.ts delete mode 100644 $houdini/stores/storeCountries.js delete mode 100644 $houdini/stores/storeCountry.d.ts delete mode 100644 $houdini/stores/storeCountry.js delete mode 100644 $houdini/stores/storeOne.d.ts delete mode 100644 $houdini/stores/storeOne.js delete mode 100644 $houdini/stores/stripe.d.ts delete mode 100644 $houdini/stores/stripe.js delete mode 100644 $houdini/stores/toggleWishlist.d.ts delete mode 100644 $houdini/stores/toggleWishlist.js delete mode 100644 $houdini/stores/topVendors.d.ts delete mode 100644 $houdini/stores/topVendors.js delete mode 100644 $houdini/stores/updateProfile.d.ts delete mode 100644 $houdini/stores/updateProfile.js delete mode 100644 $houdini/stores/vendor.d.ts delete mode 100644 $houdini/stores/vendor.js delete mode 100644 $houdini/stores/vendorProfile.d.ts delete mode 100644 $houdini/stores/vendorProfile.js delete mode 100644 $houdini/stores/verifyEmail.d.ts delete mode 100644 $houdini/stores/verifyEmail.js delete mode 100644 $houdini/stores/verifyOtp.d.ts delete mode 100644 $houdini/stores/verifyOtp.js create mode 100644 .dockerignore delete mode 100644 .env create mode 100644 .env.example create mode 100644 .env.prod delete mode 100644 .graphqlrc.yaml delete mode 100644 devops/copy.js delete mode 100644 devops/live.js create mode 100644 generate-manifest.js delete mode 100644 houdini.config.js delete mode 100644 robots.txt delete mode 100644 src/actions/ga.js delete mode 100644 src/actions/lazyload.js delete mode 100644 src/actions/toast.js create mode 100644 src/app.d.ts create mode 100644 src/fonts.css delete mode 100644 src/global.d.ts create mode 100644 src/lib/AutocompleteItem.svelte delete mode 100644 src/lib/CartBar.svelte delete mode 100644 src/lib/CartButtons.svelte delete mode 100644 src/lib/Client.js delete mode 100644 src/lib/Error.svelte delete mode 100644 src/lib/FixedCheckoutBar.svelte delete mode 100644 src/lib/Hero.svelte delete mode 100644 src/lib/HeroBanners.svelte delete mode 100644 src/lib/Image/Image.svelte delete mode 100644 src/lib/Image/ImageLoader.svelte delete mode 100644 src/lib/Image/IntersectionObserver.svelte delete mode 100644 src/lib/Info.svelte delete mode 100644 src/lib/Loading.svelte delete mode 100644 src/lib/MobFilter.svelte delete mode 100644 src/lib/MobFooter.svelte delete mode 100644 src/lib/MobNav.svelte create mode 100644 src/lib/MobileFooter.svelte delete mode 100644 src/lib/Overlay.svelte delete mode 100644 src/lib/Pricesummary.svelte delete mode 100644 src/lib/Product.svelte delete mode 100644 src/lib/Product1.svelte create mode 100644 src/lib/ProductCard.svelte delete mode 100644 src/lib/Products.svelte delete mode 100644 src/lib/Search.svelte create mode 100644 src/lib/SingleImageUpload.svelte delete mode 100644 src/lib/Skeleton.svelte create mode 100644 src/lib/Stats.svelte delete mode 100644 src/lib/Weprovides.svelte delete mode 100644 src/lib/WishlistProducts.svelte create mode 100644 src/lib/actions/useViewPort.ts create mode 100644 src/lib/components/AnimatedCartItem.svelte create mode 100644 src/lib/components/BackToTop.svelte create mode 100644 src/lib/components/Breadcrumb.svelte create mode 100644 src/lib/components/CtrlS.svelte create mode 100644 src/lib/components/DesktopFilter.svelte delete mode 100644 src/lib/components/ExternalLink.svelte delete mode 100644 src/lib/components/HeadingUnderline.svelte rename src/lib/components/Image/{ImageLoader.svelte => LazyImage.svelte} (100%) create mode 100644 src/lib/components/Image/LazyImg.svelte delete mode 100644 src/lib/components/Link.svelte create mode 100644 src/lib/components/MegaMenu.svelte create mode 100644 src/lib/components/MegaMenu2.svelte create mode 100644 src/lib/components/MobileFilter.svelte create mode 100644 src/lib/components/Modal.svelte create mode 100644 src/lib/components/PageIdBanners/PageIdPickedBanner.svelte rename src/{routes/search/_Pagination.svelte => lib/components/Pagination.svelte} (61%) create mode 100644 src/lib/components/PreloadingIndicator.svelte create mode 100644 src/lib/components/Product/SimilarProducts.svelte delete mode 100644 src/lib/components/_ProductCard.svelte delete mode 100644 src/lib/components/alerts/Errors.svelte delete mode 100644 src/lib/components/alerts/Success.svelte delete mode 100644 src/lib/components/buttons/PrimaryButtonRounded.svelte delete mode 100644 src/lib/components/buttons/Submit.svelte delete mode 100644 src/lib/components/icons/UiExclamationCircleSolid.svelte delete mode 100644 src/lib/components/icons/UiGreenCheck.svelte delete mode 100644 src/lib/components/icons/UiLockSolid.svelte delete mode 100644 src/lib/components/icons/UiRedX.svelte delete mode 100644 src/lib/components/icons/UiRefreshOutline.svelte delete mode 100644 src/lib/components/icons/index.js delete mode 100644 src/lib/components/navbar/Nav.svelte create mode 100644 src/lib/components/network.js delete mode 100644 src/lib/config/g.ts create mode 100644 src/lib/config/manifest.js create mode 100644 src/lib/config/menu.js create mode 100644 src/lib/config/website.ts delete mode 100644 src/lib/graphql/client.ts delete mode 100644 src/lib/graphql/operations/StoreCountry/removeStoreCountry.gql delete mode 100644 src/lib/graphql/operations/StoreCountry/saveStoreCountry.gql delete mode 100644 src/lib/graphql/operations/StoreCountry/storeCountries.gql delete mode 100644 src/lib/graphql/operations/StoreCountry/storeCountry.gql delete mode 100644 src/lib/graphql/operations/address/address.gql delete mode 100644 src/lib/graphql/operations/address/addresses.gql delete mode 100644 src/lib/graphql/operations/address/deleteAddress.gql delete mode 100644 src/lib/graphql/operations/address/myAddresses.gql delete mode 100644 src/lib/graphql/operations/address/saveAddress.gql delete mode 100644 src/lib/graphql/operations/blog/blog.gql delete mode 100644 src/lib/graphql/operations/blog/blogs.gql delete mode 100644 src/lib/graphql/operations/blog/deleteBlog.gql delete mode 100644 src/lib/graphql/operations/blog/saveBlog.gql delete mode 100644 src/lib/graphql/operations/cart/addToCart.gql delete mode 100644 src/lib/graphql/operations/cart/cart.gql delete mode 100644 src/lib/graphql/operations/cart/checkout.gql delete mode 100644 src/lib/graphql/operations/category/categories.gql delete mode 100644 src/lib/graphql/operations/category/category.gql delete mode 100644 src/lib/graphql/operations/category/megamenu.gql delete mode 100644 src/lib/graphql/operations/country/countries.gql delete mode 100644 src/lib/graphql/operations/country/country.gql delete mode 100644 src/lib/graphql/operations/country/deleteCountry.gql delete mode 100644 src/lib/graphql/operations/country/saveCountry.gql delete mode 100644 src/lib/graphql/operations/groupQueries/INIT.gql delete mode 100644 src/lib/graphql/operations/groupQueries/home.gql delete mode 100644 src/lib/graphql/operations/order/myOrderItems.gql delete mode 100644 src/lib/graphql/operations/order/myOrders.gql delete mode 100644 src/lib/graphql/operations/order/orderItem.gql delete mode 100644 src/lib/graphql/operations/order/paySuccessPageHit.gql delete mode 100644 src/lib/graphql/operations/pay/cashfreePayNowNew.gql delete mode 100644 src/lib/graphql/operations/payment/deletePaymentMethod.gql delete mode 100644 src/lib/graphql/operations/payment/paymentMethod.gql delete mode 100644 src/lib/graphql/operations/payment/paymentMethods.gql delete mode 100644 src/lib/graphql/operations/payment/paymentMethodsAdmin.gql delete mode 100644 src/lib/graphql/operations/payment/savePaymentMethod.gql delete mode 100644 src/lib/graphql/operations/payment/stripe.gql delete mode 100644 src/lib/graphql/operations/product/product.gql delete mode 100644 src/lib/graphql/operations/product/productSlug.gql delete mode 100644 src/lib/graphql/operations/product/products.gql delete mode 100644 src/lib/graphql/operations/review/productReviews.gql delete mode 100644 src/lib/graphql/operations/review/reviews.gql delete mode 100644 src/lib/graphql/operations/search/popularSearches.gql delete mode 100644 src/lib/graphql/operations/settings/settings.gql delete mode 100644 src/lib/graphql/operations/state/states.gql delete mode 100644 src/lib/graphql/operations/store/store.gql delete mode 100644 src/lib/graphql/operations/store/storeOne.gql delete mode 100644 src/lib/graphql/operations/user/changePassword.gql delete mode 100644 src/lib/graphql/operations/user/emailPassword.gql delete mode 100644 src/lib/graphql/operations/user/getOtp.gql delete mode 100644 src/lib/graphql/operations/user/login.gql delete mode 100644 src/lib/graphql/operations/user/me.gql delete mode 100644 src/lib/graphql/operations/user/resendEmail.gql delete mode 100644 src/lib/graphql/operations/user/signOut.gql delete mode 100644 src/lib/graphql/operations/user/topVendors.gql delete mode 100644 src/lib/graphql/operations/user/updateProfile.gql delete mode 100644 src/lib/graphql/operations/user/verifyEmail.gql delete mode 100644 src/lib/graphql/operations/user/verifyOtp.gql delete mode 100644 src/lib/graphql/operations/vendor/randomVendors.gql delete mode 100644 src/lib/graphql/operations/vendor/vendor.gql delete mode 100644 src/lib/graphql/operations/vendor/vendorProfile.gql delete mode 100644 src/lib/graphql/operations/wishlist/checkWishlist.gql delete mode 100644 src/lib/graphql/operations/wishlist/myWishlist.gql delete mode 100644 src/lib/graphql/operations/wishlist/toggleWishlist.gql delete mode 100644 src/lib/graphql/schema.json rename src/lib/{components/_CategoriesHome.svelte => home/CategoriesHome.svelte} (51%) create mode 100644 src/lib/home/CategoriesMobile.svelte create mode 100644 src/lib/home/Hero.svelte create mode 100644 src/lib/home/HeroBanners.svelte create mode 100644 src/lib/home/PickedBanners.svelte create mode 100644 src/lib/icons/home.svg create mode 100644 src/lib/icons/statistics.svg create mode 100644 src/lib/icons/warning.svg delete mode 100644 src/lib/service-worker.js delete mode 100644 src/lib/services.js create mode 100644 src/lib/ui/BlackButton.svelte delete mode 100644 src/lib/ui/Button.svelte create mode 100644 src/lib/ui/CheckboxEs.svelte create mode 100644 src/lib/ui/Errors.svelte delete mode 100644 src/lib/ui/Loader.svelte delete mode 100644 src/lib/ui/Loading.svelte delete mode 100644 src/lib/ui/Passwordbox.svelte delete mode 100644 src/lib/ui/ProductSkeleton.svelte create mode 100644 src/lib/ui/SearchBox.svelte create mode 100644 src/lib/ui/ToggleSwitch.svelte create mode 100644 src/lib/ui/WhiteButton.svelte create mode 100644 src/routes/(app)/+layout.svelte create mode 100644 src/routes/(app)/+page.server.ts create mode 100644 src/routes/(app)/+page.svelte create mode 100644 src/routes/(app)/[slug]/+page.server.ts create mode 100644 src/routes/(app)/[slug]/+page.svelte create mode 100644 src/routes/(app)/auth/+layout.ts create mode 100644 src/routes/(app)/auth/+layout@.svelte create mode 100644 src/routes/(app)/auth/_SendOtp.svelte create mode 100644 src/routes/(app)/auth/_VerifyOtp.svelte create mode 100644 src/routes/(app)/auth/otp-login/+page.svelte rename src/routes/{ => (app)}/auth/otp-login/+page.ts (58%) create mode 100644 src/routes/(app)/autosuggest/+layout@.svelte create mode 100644 src/routes/(app)/autosuggest/+page.svelte create mode 100644 src/routes/(app)/autosuggest/+page.ts create mode 100644 src/routes/(app)/bulk-order-inquiry/+page.svelte create mode 100644 src/routes/(app)/cart/+page.server.ts create mode 100644 src/routes/(app)/cart/+page.svelte create mode 100644 src/routes/(app)/categories/+page.svelte create mode 100644 src/routes/(app)/categories/+page.ts create mode 100644 src/routes/(app)/category/[slug]/+page.server.ts create mode 100644 src/routes/(app)/category/[slug]/+page.svelte create mode 100644 src/routes/(app)/checkout/_AddressSkeleton.svelte rename src/routes/{ => (app)}/checkout/_SelectAddress.svelte (85%) create mode 100644 src/routes/(app)/checkout/add-address/+page.server.ts create mode 100644 src/routes/(app)/checkout/add-address/+page.svelte create mode 100644 src/routes/(app)/checkout/address/+page.server.ts rename src/routes/{ => (app)}/checkout/address/+page.svelte (63%) create mode 100644 src/routes/(app)/checkout/payment-options/+page.server.ts create mode 100644 src/routes/(app)/checkout/payment-options/+page.svelte create mode 100644 src/routes/(app)/my/+layout.svelte create mode 100644 src/routes/(app)/my/+layout.ts create mode 100644 src/routes/(app)/my/+page.server.ts create mode 100644 src/routes/(app)/my/+page.svelte create mode 100644 src/routes/(app)/my/_SidebarDashboard.svelte create mode 100644 src/routes/(app)/my/_UserDashboard.svelte create mode 100644 src/routes/(app)/my/addresses/+page.server.ts create mode 100644 src/routes/(app)/my/addresses/+page.svelte create mode 100644 src/routes/(app)/my/addresses/[id]/+page.server.ts create mode 100644 src/routes/(app)/my/addresses/[id]/+page.svelte create mode 100644 src/routes/(app)/my/addresses/_SaveAddress.svelte create mode 100644 src/routes/(app)/my/orders/+page.server.ts create mode 100644 src/routes/(app)/my/orders/+page.svelte create mode 100644 src/routes/(app)/my/orders/_DemoRequestModal.svelte create mode 100644 src/routes/(app)/my/orders/_Modal.svelte create mode 100644 src/routes/(app)/my/orders/_MyOrder.svelte rename src/routes/{ => (app)}/my/orders/_OrderListSkeleton.svelte (100%) create mode 100644 src/routes/(app)/my/orders/_OrderTracking.svelte rename src/routes/{my/orders/_OrderTracking.svelte => (app)/my/orders/_ReturnTracking.svelte} (69%) rename src/{lib/components/buttons/TransparentButton.svelte => routes/(app)/my/orders/_TransparentButton.svelte} (86%) create mode 100644 src/routes/(app)/my/orders/details/+page.server.ts create mode 100644 src/routes/(app)/my/orders/details/+page.svelte create mode 100644 src/routes/(app)/my/profile/+page.server.ts create mode 100644 src/routes/(app)/my/profile/+page.svelte create mode 100644 src/routes/(app)/my/reviews/+page.server.ts create mode 100644 src/routes/(app)/my/reviews/+page.svelte create mode 100644 src/routes/(app)/my/reviews/create/+page.svelte create mode 100644 src/routes/(app)/my/reviews/create/+page.ts create mode 100644 src/routes/(app)/my/wishlist/+page.server.ts create mode 100644 src/routes/(app)/my/wishlist/+page.svelte create mode 100644 src/routes/(app)/my/wishlist/_Wishlist.svelte create mode 100644 src/routes/(app)/my/wishlist/_WishlistSkeleton.svelte create mode 100644 src/routes/(app)/new-arrivals/+page.svelte create mode 100644 src/routes/(app)/new-arrivals/+page.ts create mode 100644 src/routes/(app)/payment/failure/+page.svelte create mode 100644 src/routes/(app)/payment/success/+page.server.ts create mode 100644 src/routes/(app)/payment/success/+page.svelte create mode 100644 src/routes/(app)/product/[slug]/+page.server.ts create mode 100644 src/routes/(app)/product/[slug]/+page.svelte create mode 100644 src/routes/(app)/product/[slug]/_DeliveryOptions.svelte create mode 100644 src/routes/(app)/product/[slug]/_FrequentlyBoughtProduct.svelte create mode 100644 src/routes/(app)/search/+page.server.ts create mode 100644 src/routes/(app)/search/+page.svelte create mode 100644 src/routes/(app)/shop/[slug]/+page.server.ts create mode 100644 src/routes/(app)/shop/[slug]/+page.svelte create mode 100644 src/routes/(marketing)/+layout.svelte create mode 100644 src/routes/(marketing)/about-us/+page.svelte create mode 100644 src/routes/(marketing)/contact-us/+page.svelte create mode 100644 src/routes/(marketing)/faqs/+page.svelte create mode 100644 src/routes/(marketing)/faqs/+page.ts create mode 100644 src/routes/(marketing)/p/payments-returns/+page.svelte create mode 100644 src/routes/(marketing)/p/printing-terms-cancellation-policy/+page.svelte create mode 100644 src/routes/(marketing)/p/privacy-policy/+page.svelte create mode 100644 src/routes/(marketing)/p/terms-conditions/+page.svelte create mode 100644 src/routes/+layout.server.ts delete mode 100644 src/routes/+layout.ts delete mode 100644 src/routes/+page.svelte delete mode 100644 src/routes/+page.ts delete mode 100644 src/routes/[slug]/+page.svelte delete mode 100644 src/routes/[slug]/+page.ts delete mode 100644 src/routes/[slug]/_ProductDetailSkeleton.svelte delete mode 100644 src/routes/auth/+layout@.svelte delete mode 100644 src/routes/auth/_SendOtp.svelte delete mode 100644 src/routes/auth/_VerifyOtp.svelte delete mode 100644 src/routes/auth/change-password/+page.svelte delete mode 100644 src/routes/auth/change-password/+page.ts delete mode 100644 src/routes/auth/change-success/+page.svelte delete mode 100644 src/routes/auth/change-success/+page.ts delete mode 100644 src/routes/auth/forgot-password/+page.svelte delete mode 100644 src/routes/auth/forgot-password/+page.ts delete mode 100644 src/routes/auth/forgot-success/+page.svelte delete mode 100644 src/routes/auth/forgot-success/+page.ts delete mode 100644 src/routes/auth/login/+page.svelte delete mode 100644 src/routes/auth/login/+page.ts delete mode 100644 src/routes/auth/otp-login/+page.svelte delete mode 100644 src/routes/auth/registration-successful/+page.svelte delete mode 100644 src/routes/auth/registration-successful/+page.ts delete mode 100644 src/routes/auth/reset-password/+page.svelte delete mode 100644 src/routes/auth/reset-password/+page.ts delete mode 100644 src/routes/auth/reset-success/+page.svelte delete mode 100644 src/routes/auth/reset-success/+page.ts delete mode 100644 src/routes/auth/signup/+page.svelte delete mode 100644 src/routes/auth/signup/+page.ts delete mode 100644 src/routes/auth/verification-success/+page.svelte delete mode 100644 src/routes/auth/verification-success/+page.ts delete mode 100644 src/routes/auth/verify/+page.svelte delete mode 100644 src/routes/auth/verify/+page.ts delete mode 100644 src/routes/cart/+page.svelte delete mode 100644 src/routes/cart/+page.ts delete mode 100644 src/routes/cart/_Cartlist.svelte delete mode 100644 src/routes/checkout/+page.svelte delete mode 100644 src/routes/checkout/_AddressSkeleton.svelte delete mode 100644 src/routes/checkout/_CartSummaryCheckout.svelte delete mode 100644 src/routes/checkout/_CheckoutHeader.svelte delete mode 100644 src/routes/checkout/_EditAddress.svelte delete mode 100644 src/routes/checkout/_PriceDetails.svelte delete mode 100644 src/routes/checkout/add-address/+page.svelte delete mode 100644 src/routes/checkout/add-address/+page.ts delete mode 100644 src/routes/checkout/add/+page.svelte delete mode 100644 src/routes/checkout/add/+page.ts delete mode 100644 src/routes/checkout/address/+page.ts delete mode 100644 src/routes/checkout/edit-address/+page.svelte delete mode 100644 src/routes/checkout/edit-address/+page.ts delete mode 100644 src/routes/checkout/payment-options/+page.svelte delete mode 100644 src/routes/checkout/payment-options/+page.ts delete mode 100644 src/routes/designs/home/+page.svelte delete mode 100644 src/routes/designs/list/+page.svelte delete mode 100644 src/routes/designs/payment1/+page.svelte delete mode 100644 src/routes/designs/payment3/+page.svelte delete mode 100644 src/routes/designs/search-item-list/+page.svelte delete mode 100644 src/routes/designs/search/+page.js delete mode 100644 src/routes/designs/search/+page.svelte delete mode 100644 src/routes/login/+layout.svelte delete mode 100644 src/routes/login/+layout.ts delete mode 100644 src/routes/login/+page.svelte delete mode 100644 src/routes/login/+page.ts delete mode 100644 src/routes/my/+layout@.svelte delete mode 100644 src/routes/my/+page.svelte delete mode 100644 src/routes/my/+page.ts delete mode 100644 src/routes/my/_OrdersDashboard.svelte delete mode 100644 src/routes/my/_SidebarDashboard.svelte delete mode 100644 src/routes/my/_SummaryDashboard.svelte delete mode 100644 src/routes/my/orders/+page.svelte delete mode 100644 src/routes/my/orders/details/+page.svelte delete mode 100644 src/routes/my/profile/+page.svelte delete mode 100644 src/routes/my/reviews/+page.svelte delete mode 100644 src/routes/my/wishlist/+page.svelte delete mode 100644 src/routes/p/about/+page.svelte delete mode 100644 src/routes/p/blog/+page.js delete mode 100644 src/routes/p/blog/+page.svelte delete mode 100644 src/routes/p/blog/[id]/+page.js delete mode 100644 src/routes/p/blog/[id]/+page.svelte delete mode 100644 src/routes/p/contact/+page.js delete mode 100644 src/routes/p/contact/+page.svelte delete mode 100644 src/routes/p/sitemap/+page.svelte delete mode 100644 src/routes/payment/_OrderAddressDetails.svelte delete mode 100644 src/routes/payment/_OrderSuccessSkeleton.svelte delete mode 100644 src/routes/payment/success/+page.svelte delete mode 100644 src/routes/payment/success/+page.ts create mode 100644 src/routes/rss.xml/+server.js delete mode 100644 src/routes/search/+page.js delete mode 100644 src/routes/search/+page.svelte delete mode 100644 src/routes/search/_DesktopFilters.svelte delete mode 100644 src/routes/search/_HeaderBody.svelte delete mode 100644 src/routes/search/_MobileFilters.svelte delete mode 100644 src/routes/search/_NoProduct.svelte delete mode 100644 src/routes/search/_Product.svelte delete mode 100644 src/routes/search/_ProductCardEs.svelte delete mode 100644 src/routes/search/_ProductSkeleton.svelte delete mode 100644 src/routes/signup/+page.svelte create mode 100644 src/routes/sitemap.xml/+server.js delete mode 100644 src/routes/wishlist/+page.svelte delete mode 100644 src/routes/wishlist/+page.ts create mode 100644 src/service-worker.js delete mode 100644 src/service-worker.ts delete mode 100644 static/ETP-banner-for-ecommerce.jpg create mode 100644 static/about-us/design-2.png create mode 100644 static/about-us/design.png create mode 100644 static/about-us/phone.jpg create mode 100644 static/about-us/product.png create mode 100644 static/about-us/profile-1.jpg create mode 100644 static/about-us/profile-2.jpg create mode 100644 static/about-us/profile-3.jpg create mode 100644 static/about-us/profile-4.jpg create mode 100644 static/about-us/team.png delete mode 100644 static/addidas1.png create mode 100644 static/app/app-store.svg create mode 100644 static/app/google-play.png create mode 100644 static/dashboard/my-orders.png create mode 100644 static/dashboard/profile.png create mode 100644 static/dashboard/reviews.png create mode 100644 static/dashboard/wishlist.png delete mode 100644 static/ecommerce-banner-1.png delete mode 100644 static/electronic.webp delete mode 100644 static/emptycart.png create mode 100644 static/error/404.svg create mode 100644 static/error/add-to-cart-animate.svg create mode 100644 static/error/closed-sign-animate.svg create mode 100644 static/error/demo-request.svg create mode 100644 static/error/dog.png create mode 100644 static/error/empty-animate.svg create mode 100644 static/error/online-review-animate.svg create mode 100644 static/error/search.svg create mode 100644 static/fonts/karla-v23-latin-200.eot create mode 100644 static/fonts/karla-v23-latin-200.svg create mode 100644 static/fonts/karla-v23-latin-200.ttf create mode 100644 static/fonts/karla-v23-latin-200.woff create mode 100644 static/fonts/karla-v23-latin-200.woff2 create mode 100644 static/fonts/karla-v23-latin-300.eot create mode 100644 static/fonts/karla-v23-latin-300.svg create mode 100644 static/fonts/karla-v23-latin-300.ttf create mode 100644 static/fonts/karla-v23-latin-300.woff create mode 100644 static/fonts/karla-v23-latin-300.woff2 create mode 100644 static/fonts/karla-v23-latin-500.eot create mode 100644 static/fonts/karla-v23-latin-500.svg create mode 100644 static/fonts/karla-v23-latin-500.ttf create mode 100644 static/fonts/karla-v23-latin-500.woff create mode 100644 static/fonts/karla-v23-latin-500.woff2 create mode 100644 static/fonts/karla-v23-latin-600.eot create mode 100644 static/fonts/karla-v23-latin-600.svg create mode 100644 static/fonts/karla-v23-latin-600.ttf create mode 100644 static/fonts/karla-v23-latin-600.woff create mode 100644 static/fonts/karla-v23-latin-600.woff2 create mode 100644 static/fonts/karla-v23-latin-700.eot create mode 100644 static/fonts/karla-v23-latin-700.svg create mode 100644 static/fonts/karla-v23-latin-700.ttf create mode 100644 static/fonts/karla-v23-latin-700.woff create mode 100644 static/fonts/karla-v23-latin-700.woff2 create mode 100644 static/fonts/karla-v23-latin-800.eot create mode 100644 static/fonts/karla-v23-latin-800.svg create mode 100644 static/fonts/karla-v23-latin-800.ttf create mode 100644 static/fonts/karla-v23-latin-800.woff create mode 100644 static/fonts/karla-v23-latin-800.woff2 create mode 100644 static/fonts/karla-v23-latin-regular.eot create mode 100644 static/fonts/karla-v23-latin-regular.svg create mode 100644 static/fonts/karla-v23-latin-regular.ttf create mode 100644 static/fonts/karla-v23-latin-regular.woff create mode 100644 static/fonts/karla-v23-latin-regular.woff2 create mode 100644 static/gray-dot.png delete mode 100644 static/hoodie.webp delete mode 100644 static/icons/app-store.png delete mode 100644 static/icons/facebook-white.png delete mode 100644 static/icons/github-white.png create mode 100644 static/icons/icon-120x120.png create mode 100644 static/icons/icon-128x128.png create mode 100644 static/icons/icon-144x144.png create mode 100644 static/icons/icon-152x152.png create mode 100644 static/icons/icon-180x180.png create mode 100644 static/icons/icon-192x192.png create mode 100644 static/icons/icon-256x256.png create mode 100644 static/icons/icon-384x384.png create mode 100644 static/icons/icon-512x512.png create mode 100644 static/icons/icon-72x72.png create mode 100644 static/icons/icon-96x96.png delete mode 100644 static/icons/instagram-white.png delete mode 100644 static/icons/linkedin-white.png delete mode 100644 static/icons/play-store.png delete mode 100644 static/icons/twitter-white.png delete mode 100644 static/img/avatar-s-20.32972323.jpg delete mode 100644 static/img/avatar-s-6.0f4533ab.jpg delete mode 100644 static/img/avatar-s-7.cb1b1e65.jpg delete mode 100644 static/kitchen.jpg delete mode 100644 static/landing/card-payment.png delete mode 100644 static/landing/clock.png delete mode 100644 static/landing/invoice-white.png delete mode 100644 static/landing/light-on.png delete mode 100644 static/landing/rating-circled-white.png delete mode 100644 static/landing/team-white.png delete mode 100644 static/landing/top-menu.png delete mode 100644 static/landing/users.png delete mode 100644 static/landing/wallet-white.png delete mode 100644 static/leadership-profile.png create mode 100644 static/login/bg-lighter.svg delete mode 100644 static/logo.svg delete mode 100644 static/logo_512.png delete mode 100644 static/make-up.jpg delete mode 100644 static/nike-shoe.png delete mode 100644 static/nike.png create mode 100644 static/no/add-to-cart-animate.svg create mode 100644 static/no/cancle.png create mode 100644 static/no/empty-address.svg delete mode 100644 static/no/empty-animate.svg create mode 100644 static/no/empty-wishlist.svg create mode 100644 static/no/no-data-availible.png delete mode 100644 static/nologo-navy-casual-shirt.jpg delete mode 100644 static/pant.jpg create mode 100644 static/product/cod.png create mode 100644 static/product/delivery.png delete mode 100644 static/product/non-veg.png create mode 100644 static/product/opposite-arrows.png delete mode 100644 static/product/other.png delete mode 100644 static/product/veg.png create mode 100644 static/profile.png create mode 100644 static/razorpay-icon.jpg create mode 100644 static/razorpay-logo-white.svg delete mode 100644 static/sale.jpg delete mode 100644 static/sale2.jpg delete mode 100644 static/shoe.webp delete mode 100644 static/sidebar/acrobatic-rings.png delete mode 100644 static/sidebar/baby-face.png delete mode 100644 static/sidebar/female-user.png delete mode 100644 static/sidebar/furniture-store.png delete mode 100644 static/sidebar/group-objects.png delete mode 100644 static/sidebar/home.png delete mode 100644 static/sidebar/new.png delete mode 100644 static/sidebar/sneakers.png delete mode 100644 static/sidebar/user-male.png create mode 100644 static/user-empty-profile.png diff --git a/$houdini/artifacts/HOME.d.ts b/$houdini/artifacts/HOME.d.ts deleted file mode 100644 index 215047b6..00000000 --- a/$houdini/artifacts/HOME.d.ts +++ /dev/null @@ -1,280 +0,0 @@ -export type HOME = { - readonly "input": HOME$input, - readonly "result": HOME$result | undefined -}; - -export type HOME$result = { - readonly brands: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly brandId: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly position: number | null, - readonly info: string | null, - readonly meta: string | null, - readonly metaTitle: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly facebookUrl: string | null, - readonly instaUrl: string | null, - readonly twitterUrl: string | null, - readonly linkedinUrl: string | null, - readonly youtubeUrl: string | null, - readonly pinterestUrl: string | null, - readonly googleUrl: string | null, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly parent: { - readonly id: string, - readonly name: string | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null, - readonly phone: string | null, - readonly active: boolean | null - } | null, - readonly createdAt: string, - readonly updatedAt: string - } | null)[] | null - } | null, - readonly categories: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string | null, - readonly namePath: string | null, - readonly categoryId: string | null, - readonly parent: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly link: string | null, - readonly level: number | null, - readonly metaTitle: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly position: number | null, - readonly megamenu: boolean | null, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly shopbycategory: boolean | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly store: string | null - } | null)[] | null - } | null, - readonly banners: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly link: string | null, - readonly heading: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly sort: number | null, - readonly type: string | null, - readonly pageId: string | null, - readonly groupId: string | null, - readonly groupTitle: string | null, - readonly active: boolean | null, - readonly isMobile: boolean | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly store: string | null - } | null)[] | null - } | null, - readonly youMayLike: ({ - readonly id: string | null, - readonly sku: string | null, - readonly barcode: string | null, - readonly description: string | null, - readonly productMasterId: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly type: string | null, - readonly foodType: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly stock: number | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly active: boolean | null, - readonly popularity: number | null, - readonly position: number | null, - readonly trending: boolean | null, - readonly featured: boolean | null, - readonly hot: boolean | null, - readonly new: boolean | null, - readonly sale: boolean | null, - readonly recommended: boolean | null, - readonly title: string | null, - readonly metaDescription: string | null, - readonly keywords: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly itemId: string | null, - readonly warranty: string | null, - readonly discount: number | null, - readonly ageMin: number | null, - readonly ageMax: number | null, - readonly ageUnit: string | null, - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null, - readonly returnInfo: string | null, - readonly keyFeatures: (string | null)[] | null, - readonly expiryDate: string | null, - readonly vendor: { - readonly businessName: string | null - } | null, - readonly productDetails: ({ - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly specifications: ({ - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly countryOfOrigin: string | null - } | null)[] | null, - readonly trending: ({ - readonly id: string | null, - readonly sku: string | null, - readonly barcode: string | null, - readonly description: string | null, - readonly productMasterId: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly type: string | null, - readonly foodType: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly stock: number | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly active: boolean | null, - readonly popularity: number | null, - readonly position: number | null, - readonly trending: boolean | null, - readonly featured: boolean | null, - readonly hot: boolean | null, - readonly new: boolean | null, - readonly sale: boolean | null, - readonly recommended: boolean | null, - readonly title: string | null, - readonly metaDescription: string | null, - readonly keywords: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly itemId: string | null, - readonly warranty: string | null, - readonly discount: number | null, - readonly ageMin: number | null, - readonly ageMax: number | null, - readonly ageUnit: string | null, - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null, - readonly returnInfo: string | null, - readonly keyFeatures: (string | null)[] | null, - readonly expiryDate: string | null, - readonly vendor: { - readonly businessName: string | null - } | null, - readonly productDetails: ({ - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly specifications: ({ - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly countryOfOrigin: string | null - } | null)[] | null, - readonly popular: { - readonly data: ({ - readonly id: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly type: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly discount: number | null, - readonly stock: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly zips: (string)[] | null, - readonly foodType: string | null, - readonly expiryDate: string | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null - } | null)[] | null, - readonly count: number | null, - readonly pageSize: number | null, - readonly page: number | null - } | null, - readonly groupByBanner: ({ - readonly _id: { - readonly title: string | null, - readonly type: string | null - } | null, - readonly data: ({ - readonly link: string | null, - readonly heading: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly sort: number | null, - readonly type: string | null, - readonly pageId: string | null, - readonly store: string | null, - readonly active: boolean | null, - readonly groupId: string | null, - readonly groupTitle: string | null, - readonly createdAt: string, - readonly updatedAt: string - } | null)[] | null - } | null)[] | null -}; - -export type HOME$afterLoad = { - readonly "input": { - readonly "HOME": HOME$input - }, - readonly "data": { - readonly "HOME": HOME$result - } -}; - -export type HOME$input = { - store?: string | null | undefined, - zip?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/HOME.js b/$houdini/artifacts/HOME.js deleted file mode 100644 index e2c8bf61..00000000 --- a/$houdini/artifacts/HOME.js +++ /dev/null @@ -1,1796 +0,0 @@ -export default { - name: "HOME", - kind: "HoudiniQuery", - hash: "02c6ca88643620b2406cf97809162859aac1725427038eb3a3504f31c9ed6bd8", - - raw: `query HOME($store: ID, $zip: String) { - brands(parent: null, limit: 30, page: 0, featured: true, store: $store) { - count - page - pageSize - data { - id - brandId - name - slug - img - imgCdn - position - info - meta - metaTitle - metaDescription - metaKeywords - facebookUrl - instaUrl - twitterUrl - linkedinUrl - youtubeUrl - pinterestUrl - googleUrl - active - featured - parent { - id - name - } - store { - id - name - email - phone - active - } - createdAt - updatedAt - } - } - categories(img: true, shopbycategory: true, store: $store, sort: "featuredSort") { - count - page - pageSize - data { - id - name - namePath - categoryId - parent - slug - img - imgCdn - link - level - metaTitle - metaDescription - metaKeywords - position - megamenu - active - featured - shopbycategory - createdAt - updatedAt - store - } - } - banners(sort: "sort", pageId: "home", active: true, store: $store) { - count - page - pageSize - data { - link - heading - img - imgCdn - sort - type - pageId - groupId - groupTitle - active - isMobile - createdAt - updatedAt - store - id - } - } - youMayLike(store: $store) { - id - sku - barcode - description - productMasterId - slug - name - type - foodType - price - mrp - stock - tax - img - imgCdn - images - imagesCdn - time - active - popularity - position - trending - featured - hot - new - sale - recommended - title - metaDescription - keywords - ratings - reviews - itemId - warranty - discount - ageMin - ageMax - ageUnit - cgst - sgst - igst - returnInfo - description - keyFeatures - expiryDate - vendor { - businessName - id - } - productDetails { - name - value - id - } - specifications { - name - value - id - } - countryOfOrigin - stock - } - trending(type: "hot", store: $store) { - id - sku - barcode - description - productMasterId - slug - name - type - foodType - price - mrp - stock - tax - img - imgCdn - images - imagesCdn - time - active - popularity - position - trending - featured - hot - new - sale - recommended - title - metaDescription - keywords - ratings - reviews - itemId - warranty - discount - ageMin - ageMax - ageUnit - cgst - sgst - igst - returnInfo - description - keyFeatures - expiryDate - vendor { - businessName - id - } - productDetails { - name - value - id - } - specifications { - name - value - id - } - countryOfOrigin - stock - } - popular(store: $store, page: 0, zip: $zip) { - data { - id - slug - name - type - price - mrp - discount - stock - img - imgCdn - images - imagesCdn - time - ratings - reviews - zips - foodType - expiryDate - vendor { - id - slug - businessName - banner - bannerCdn - } - } - count - pageSize - page - } - groupByBanner(active: true, pageId: "home", store: $store) { - _id { - title - type - } - data { - link - heading - img - imgCdn - sort - type - pageId - store - active - groupId - groupTitle - createdAt - updatedAt - id - } - } -} -`, - - rootType: "Query", - - selection: { - brands: { - type: "brandRes", - keyRaw: "brands(parent: null, limit: 30, page: 0, featured: true, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Brand", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - brandId: { - type: "String", - keyRaw: "brandId", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - info: { - type: "String", - keyRaw: "info", - nullable: true - }, - - meta: { - type: "String", - keyRaw: "meta", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - instaUrl: { - type: "String", - keyRaw: "instaUrl", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - linkedinUrl: { - type: "String", - keyRaw: "linkedinUrl", - nullable: true - }, - - youtubeUrl: { - type: "String", - keyRaw: "youtubeUrl", - nullable: true - }, - - pinterestUrl: { - type: "String", - keyRaw: "pinterestUrl", - nullable: true - }, - - googleUrl: { - type: "String", - keyRaw: "googleUrl", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - parent: { - type: "Brand", - keyRaw: "parent", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - } - }, - - categories: { - type: "categoryResSimple", - keyRaw: "categories(img: true, shopbycategory: true, store: $store, sort: \"featuredSort\")", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "CategorySimple", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - namePath: { - type: "String", - keyRaw: "namePath", - nullable: true - }, - - categoryId: { - type: "ID", - keyRaw: "categoryId", - nullable: true - }, - - parent: { - type: "ID", - keyRaw: "parent", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - level: { - type: "Int", - keyRaw: "level", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - megamenu: { - type: "Boolean", - keyRaw: "megamenu", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - shopbycategory: { - type: "Boolean", - keyRaw: "shopbycategory", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - } - }, - - banners: { - type: "bannerRes", - keyRaw: "banners(sort: \"sort\", pageId: \"home\", active: true, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "OneBanner", - keyRaw: "data", - nullable: true, - - fields: { - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - heading: { - type: "String", - keyRaw: "heading", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - pageId: { - type: "String", - keyRaw: "pageId", - nullable: true - }, - - groupId: { - type: "String", - keyRaw: "groupId", - nullable: true - }, - - groupTitle: { - type: "String", - keyRaw: "groupTitle", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - isMobile: { - type: "Boolean", - keyRaw: "isMobile", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - } - } - }, - - youMayLike: { - type: "Product", - keyRaw: "youMayLike(store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - productMasterId: { - type: "String", - keyRaw: "productMasterId", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - position: { - type: "Float", - keyRaw: "position", - nullable: true - }, - - trending: { - type: "Boolean", - keyRaw: "trending", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - hot: { - type: "Boolean", - keyRaw: "hot", - nullable: true - }, - - new: { - type: "Boolean", - keyRaw: "new", - nullable: true - }, - - sale: { - type: "Boolean", - keyRaw: "sale", - nullable: true - }, - - recommended: { - type: "Boolean", - keyRaw: "recommended", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - itemId: { - type: "String", - keyRaw: "itemId", - nullable: true - }, - - warranty: { - type: "String", - keyRaw: "warranty", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - ageMin: { - type: "Int", - keyRaw: "ageMin", - nullable: true - }, - - ageMax: { - type: "Int", - keyRaw: "ageMax", - nullable: true - }, - - ageUnit: { - type: "String", - keyRaw: "ageUnit", - nullable: true - }, - - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - keyFeatures: { - type: "String", - keyRaw: "keyFeatures", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - productDetails: { - type: "Feature", - keyRaw: "productDetails", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - specifications: { - type: "Feature", - keyRaw: "specifications", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - countryOfOrigin: { - type: "String", - keyRaw: "countryOfOrigin", - nullable: true - } - } - }, - - trending: { - type: "Product", - keyRaw: "trending(type: \"hot\", store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - productMasterId: { - type: "String", - keyRaw: "productMasterId", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - position: { - type: "Float", - keyRaw: "position", - nullable: true - }, - - trending: { - type: "Boolean", - keyRaw: "trending", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - hot: { - type: "Boolean", - keyRaw: "hot", - nullable: true - }, - - new: { - type: "Boolean", - keyRaw: "new", - nullable: true - }, - - sale: { - type: "Boolean", - keyRaw: "sale", - nullable: true - }, - - recommended: { - type: "Boolean", - keyRaw: "recommended", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - itemId: { - type: "String", - keyRaw: "itemId", - nullable: true - }, - - warranty: { - type: "String", - keyRaw: "warranty", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - ageMin: { - type: "Int", - keyRaw: "ageMin", - nullable: true - }, - - ageMax: { - type: "Int", - keyRaw: "ageMax", - nullable: true - }, - - ageUnit: { - type: "String", - keyRaw: "ageUnit", - nullable: true - }, - - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - keyFeatures: { - type: "String", - keyRaw: "keyFeatures", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - productDetails: { - type: "Feature", - keyRaw: "productDetails", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - specifications: { - type: "Feature", - keyRaw: "specifications", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - countryOfOrigin: { - type: "String", - keyRaw: "countryOfOrigin", - nullable: true - } - } - }, - - popular: { - type: "SearchRes", - keyRaw: "popular(store: $store, page: 0, zip: $zip)", - nullable: true, - - fields: { - data: { - type: "Product", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - } - } - }, - - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - } - } - }, - - groupByBanner: { - type: "bannerGroup", - keyRaw: "groupByBanner(active: true, pageId: \"home\", store: $store)", - nullable: true, - - fields: { - _id: { - type: "bgData", - keyRaw: "_id", - nullable: true, - - fields: { - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - } - } - }, - - data: { - type: "OneBanner", - keyRaw: "data", - nullable: true, - - fields: { - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - heading: { - type: "String", - keyRaw: "heading", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - pageId: { - type: "String", - keyRaw: "pageId", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - groupId: { - type: "String", - keyRaw: "groupId", - nullable: true - }, - - groupTitle: { - type: "String", - keyRaw: "groupTitle", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - } - } - } - }, - - input: { - fields: { - store: "ID", - zip: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=05ddc34857cbf3c18bba77d36c0bbb81368e6a67f417f0d1d665aee3991be708"; \ No newline at end of file diff --git a/$houdini/artifacts/INIT.d.ts b/$houdini/artifacts/INIT.d.ts deleted file mode 100644 index 1dad632d..00000000 --- a/$houdini/artifacts/INIT.d.ts +++ /dev/null @@ -1,423 +0,0 @@ -export type INIT = { - readonly "input": INIT$input, - readonly "result": INIT$result | undefined -}; - -export type INIT$result = { - readonly settings: { - readonly id: string | null, - readonly websiteName: string | null, - readonly websiteLegalName: string | null, - readonly liveCommerce: boolean | null, - readonly multilingual: boolean | null, - readonly closed: boolean | null, - readonly closedMessage: string | null, - readonly minimumOrderValue: number | null, - readonly title: string | null, - readonly alert: string | null, - readonly keywords: string | null, - readonly description: string | null, - readonly tax: { - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null - } | null, - readonly demo: boolean | null, - readonly RAZORPAY_KEY_ID: string | null, - readonly GOOGLE_CLIENT_ID: string | null, - readonly LIVE_COMMERCE_URL: string | null, - readonly stripePublishableKey: string | null, - readonly brainTreePublicKey: string | null, - readonly enableStripe: boolean | null, - readonly enableRazorpay: boolean | null, - readonly currencyCode: string | null, - readonly currencySymbol: string | null, - readonly currencyDecimals: number | null, - readonly openGraphImage: string | null, - readonly shipping: { - readonly deliveryDays: number | null, - readonly charge: number | null, - readonly free: number | null, - readonly method: string | null, - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly userRoles: (string | null)[] | null, - readonly websiteEmail: string | null, - readonly shopPhone: string | null, - readonly shopAddress: string | null, - readonly country: string | null, - readonly countryDetails: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly active: boolean | null - } | null, - readonly currency: string | null, - readonly currencyDetails: { - readonly id: string | null, - readonly isoCode: string | null, - readonly name: string | null, - readonly symbol: string | null - } | null, - readonly logo: string | null, - readonly logoMobile: string | null, - readonly logoDark: string | null, - readonly logoMobileDark: string | null, - readonly favicon: string | null, - readonly CDN_URL: string | null, - readonly S3_URL: string | null, - readonly searchbarText: string | null, - readonly pageSize: number | null, - readonly returnReasons: (string | null)[] | null, - readonly orderStatuses: ({ - readonly status: string | null, - readonly title: string | null, - readonly body: string | null, - readonly icon: string | null, - readonly public: boolean | null, - readonly index: number | null - } | null)[] | null, - readonly paymentStatuses: (string | null)[] | null, - readonly otpLogin: boolean | null, - readonly sms: { - readonly AUTO_VERIFICATION_ID: string | null, - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly email: { - readonly enabled: boolean | null, - readonly from: string | null, - readonly cc: (string | null)[] | null, - readonly bcc: (string | null)[] | null, - readonly printers: (string | null)[] | null - } | null, - readonly storage: { - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly review: { - readonly enabled: boolean | null, - readonly moderate: boolean | null - } | null, - readonly product: { - readonly moderate: boolean | null - } | null, - readonly customerOrderNotifications: { - readonly orderConfirmation: boolean | null, - readonly orderStatusChanged: boolean | null, - readonly orderShipped: boolean | null, - readonly orderIsReadyForPickup: boolean | null, - readonly downloadEGoods: boolean | null, - readonly giftCardPurchased: boolean | null - } | null, - readonly adminNotifications: { - readonly newOrderPlaced: boolean | null, - readonly lowStockNotification: boolean | null - } | null, - readonly ADMIN_PANEL_LINK: string | null, - readonly DOCS_LINK: string | null, - readonly storageProvider: string | null, - readonly googleMapsApi: string | null, - readonly facebook: string | null, - readonly twitter: string | null, - readonly google: string | null, - readonly instagram: string | null, - readonly linkedin: string | null, - readonly enableTax: boolean | null, - readonly locationExpiry: number | null, - readonly WWW_URL: string | null, - readonly referralBonus: number | null, - readonly joiningBonus: number | null, - readonly isMultiVendor: boolean | null, - readonly isMultiStore: boolean | null, - readonly isMegamenu: boolean | null, - readonly isSaas: boolean | null, - readonly isSearch: boolean | null, - readonly foodTypes: ({ - readonly name: string | null, - readonly val: string | null, - readonly img: string | null - } | null)[] | null - } | null, - readonly storeOne: { - readonly id: string, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly adminNotifications: { - readonly lowStockNotification: boolean | null, - readonly newOrderPlaced: boolean | null - } | null, - readonly address: string | null, - readonly alert: string | null, - readonly analyticsTrackingId: string | null, - readonly banners: (string | null)[] | null, - readonly closed: boolean | null, - readonly isWishlist: boolean | null, - readonly isCart: boolean | null, - readonly closedMessage: string | null, - readonly customerOrderNotifications: { - readonly downloadEGoods: boolean | null, - readonly giftCardPurchased: boolean | null, - readonly orderConfirmation: boolean | null, - readonly orderIsReadyForPickup: boolean | null, - readonly orderShipped: boolean | null, - readonly orderStatusChanged: boolean | null, - readonly orderConfirmationSms: boolean | null - } | null, - readonly vendorNotifications: { - readonly orderConfirmationSms: boolean | null - } | null, - readonly description: string | null, - readonly metaDescription: string | null, - readonly dimentionUnit: string | null, - readonly domain: string | null, - readonly email: string | null, - readonly facebook: string | null, - readonly facebookPixelId: string | null, - readonly facebookUrl: string | null, - readonly favicon: string | null, - readonly faviconCdn: string | null, - readonly firstName: string | null, - readonly freeShippingOn: number | null, - readonly gdpr: boolean | null, - readonly gdprCookieConsent: string | null, - readonly google: string | null, - readonly googleAdsTag: string | null, - readonly homeMeta1: string | null, - readonly homeMeta2: string | null, - readonly homeMeta3: string | null, - readonly homeMeta4: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly bankAccountNo: string | null, - readonly bankAccountHolderName: string | null, - readonly bankIfscCode: string | null, - readonly bankSwiftCode: string | null, - readonly instagram: string | null, - readonly instagramUrl: string | null, - readonly isHideNilStock: boolean | null, - readonly isMegamenu: boolean | null, - readonly isOpen: boolean | null, - readonly isSearch: boolean | null, - readonly isHyperlocal: boolean | null, - readonly isFnb: boolean | null, - readonly keywords: string | null, - readonly lastName: string | null, - readonly lat: number | null, - readonly legalName: string | null, - readonly linkedin: string | null, - readonly lng: number | null, - readonly locality: string | null, - readonly logo: string | null, - readonly logoDark: string | null, - readonly logoMobile: string | null, - readonly logoMobileDark: string | null, - readonly logoCdn: string | null, - readonly logoDarkCdn: string | null, - readonly logoMobileCdn: string | null, - readonly logoMobileDarkCdn: string | null, - readonly minimumOrderValue: number | null, - readonly minOrderValue: number | null, - readonly name: string | null, - readonly openGraphImage: string | null, - readonly openGraphImageCdn: string | null, - readonly pageSize: number | null, - readonly phone: string | null, - readonly pinterestTag: string | null, - readonly pinterestUrl: string | null, - readonly qrCode: string | null, - readonly review: { - readonly enabled: boolean | null, - readonly moderate: boolean | null - } | null, - readonly searchbarText: string | null, - readonly shipping: { - readonly charge: number | null, - readonly deliveryDays: number | null, - readonly enabled: boolean | null, - readonly free: number | null, - readonly method: string | null, - readonly provider: string | null - } | null, - readonly shippingCharge: number | null, - readonly shopAddress: string | null, - readonly shopPhone: string | null, - readonly slug: string | null, - readonly snapChatPixel: string | null, - readonly state: string | null, - readonly storeId: string | null, - readonly timeZone: string | null, - readonly timing: string | null, - readonly title: string | null, - readonly twitter: string | null, - readonly twitterUrl: string | null, - readonly websiteEmail: string | null, - readonly websiteLegalName: string | null, - readonly websiteName: string | null, - readonly weightUnit: string | null, - readonly youtubeUrl: string | null, - readonly webmail: string | null, - readonly zip: string | null, - readonly timeDisplayFormat: string | null, - readonly priceDisplayFormat: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly sms: { - readonly AUTO_VERIFICATION_ID: string | null - } | null, - readonly shippoToken: string | null, - readonly shipRocketEmail: string | null, - readonly shipRocketPassword: string | null, - readonly shipRocketChannelId: string | null, - readonly pickrrAuthToken: string | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null - } | null, - readonly storeCountry: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly country: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null - } | null - } | null, - readonly storeCurrency: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly isoCode: string | null, - readonly name: string | null, - readonly symbol: string | null, - readonly currency: { - readonly id: string | null, - readonly name: string | null, - readonly sort: number | null, - readonly isoCode: string | null, - readonly isoNumericCode: number | null, - readonly thousandsSeparator: string | null, - readonly decimalMark: string | null, - readonly symbolFirst: boolean | null, - readonly active: boolean | null, - readonly symbol: string | null, - readonly disambiguateSymbol: string | null, - readonly htmlEntity: string | null, - readonly subUnit: string | null, - readonly smallestDenomination: number | null, - readonly subunitToUnit: number | null - } | null - } | null, - readonly storeLanguage: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly lang: { - readonly id: string | null, - readonly name: string | null, - readonly nativeName: string | null, - readonly code: string | null, - readonly phpLocaleCode: string | null, - readonly rtl: boolean | null, - readonly sort: number | null, - readonly active: boolean | null - } | null - } | null - } | null, - readonly megamenu: ({ - readonly id: string, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null -}; - -export type INIT$afterLoad = { - readonly "input": { - readonly "INIT": INIT$input - }, - readonly "data": { - readonly "INIT": INIT$result - } -}; - -export type INIT$input = { - domain?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/INIT.js b/$houdini/artifacts/INIT.js deleted file mode 100644 index c5379df0..00000000 --- a/$houdini/artifacts/INIT.js +++ /dev/null @@ -1,2752 +0,0 @@ -export default { - name: "INIT", - kind: "HoudiniQuery", - hash: "2af9fc8bb701a6aaf407335fbfbddec7ef4f34dc501114a6593891872e08799a", - - raw: `query INIT($domain: String) { - settings { - id - websiteName - websiteLegalName - liveCommerce - multilingual - closed - closedMessage - minimumOrderValue - title - alert - keywords - description - tax { - cgst - sgst - igst - } - demo - RAZORPAY_KEY_ID - GOOGLE_CLIENT_ID - LIVE_COMMERCE_URL - stripePublishableKey - brainTreePublicKey - enableStripe - enableRazorpay - currencyCode - currencySymbol - currencyDecimals - openGraphImage - shipping { - deliveryDays - charge - free - method - enabled - provider - } - userRoles - websiteEmail - shopPhone - shopAddress - country - countryDetails { - id - name - value - dialCode - code - img - imgCdn - flag - lang - active - } - currency - currencyDetails { - id - isoCode - name - symbol - } - logo - logoMobile - logoDark - logoMobileDark - favicon - CDN_URL - S3_URL - searchbarText - pageSize - returnReasons - orderStatuses { - status - title - body - icon - public - index - } - paymentStatuses - otpLogin - sms { - AUTO_VERIFICATION_ID - enabled - provider - } - email { - enabled - from - cc - bcc - printers - } - storage { - enabled - provider - } - review { - enabled - moderate - } - product { - moderate - } - customerOrderNotifications { - orderConfirmation - orderStatusChanged - orderShipped - orderIsReadyForPickup - downloadEGoods - giftCardPurchased - } - adminNotifications { - newOrderPlaced - lowStockNotification - } - ADMIN_PANEL_LINK - DOCS_LINK - storageProvider - googleMapsApi - facebook - twitter - google - instagram - linkedin - enableTax - locationExpiry - WWW_URL - referralBonus - joiningBonus - isMultiVendor - isMultiStore - isMegamenu - isSaas - isSearch - foodTypes { - name - val - img - } - } - storeOne(domain: $domain) { - id - active - featured - adminNotifications { - lowStockNotification - newOrderPlaced - } - address - alert - analyticsTrackingId - banners - closed - isWishlist - isCart - closedMessage - customerOrderNotifications { - downloadEGoods - giftCardPurchased - orderConfirmation - orderIsReadyForPickup - orderShipped - orderStatusChanged - orderConfirmationSms - } - vendorNotifications { - orderConfirmationSms - } - description - metaDescription - dimentionUnit - domain - email - facebook - facebookPixelId - facebookUrl - favicon - faviconCdn - firstName - freeShippingOn - gdpr - gdprCookieConsent - google - googleAdsTag - homeMeta1 - homeMeta2 - homeMeta3 - homeMeta4 - img - imgCdn - images - imagesCdn - bankAccountNo - bankAccountHolderName - bankIfscCode - bankSwiftCode - instagram - instagramUrl - isHideNilStock - isMegamenu - isOpen - isSearch - isHyperlocal - isFnb - isWishlist - isCart - keywords - lastName - lat - legalName - linkedin - lng - locality - logo - logoDark - logoMobile - logoMobileDark - logoCdn - logoDarkCdn - logoMobileCdn - logoMobileDarkCdn - minimumOrderValue - minOrderValue - name - openGraphImage - openGraphImageCdn - pageSize - phone - pinterestTag - pinterestUrl - qrCode - review { - enabled - moderate - } - searchbarText - shipping { - charge - deliveryDays - enabled - free - method - provider - } - shippingCharge - shopAddress - shopPhone - slug - snapChatPixel - state - storeId - timeZone - timing - title - twitter - twitterUrl - websiteEmail - websiteLegalName - websiteName - weightUnit - youtubeUrl - webmail - zip - timeDisplayFormat - priceDisplayFormat - createdAt - updatedAt - sms { - AUTO_VERIFICATION_ID - } - shippoToken - shipRocketEmail - shipRocketPassword - shipRocketChannelId - pickrrAuthToken - user { - firstName - lastName - email - phone - id - } - storeCountry { - id - default - active - name - code - country { - id - name - value - dialCode - code - img - imgCdn - flag - lang - } - } - storeCurrency { - id - default - active - isoCode - name - symbol - currency { - id - name - sort - isoCode - isoNumericCode - thousandsSeparator - decimalMark - symbolFirst - active - symbol - disambiguateSymbol - htmlEntity - subUnit - smallestDenomination - subunitToUnit - } - } - storeLanguage { - id - default - active - name - code - lang { - id - name - nativeName - code - phpLocaleCode - rtl - sort - active - } - } - } - megamenu(domain: $domain) { - id - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - id - } - id - } - id - } - id - } - id - } - id - } - id - } - id - } - id - } - } -} -`, - - rootType: "Query", - - selection: { - settings: { - type: "Setting", - keyRaw: "settings", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id", - nullable: true - }, - - websiteName: { - type: "String", - keyRaw: "websiteName", - nullable: true - }, - - websiteLegalName: { - type: "String", - keyRaw: "websiteLegalName", - nullable: true - }, - - liveCommerce: { - type: "Boolean", - keyRaw: "liveCommerce", - nullable: true - }, - - multilingual: { - type: "Boolean", - keyRaw: "multilingual", - nullable: true - }, - - closed: { - type: "Boolean", - keyRaw: "closed", - nullable: true - }, - - closedMessage: { - type: "String", - keyRaw: "closedMessage", - nullable: true - }, - - minimumOrderValue: { - type: "Int", - keyRaw: "minimumOrderValue", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - alert: { - type: "String", - keyRaw: "alert", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - tax: { - type: "Tax", - keyRaw: "tax", - nullable: true, - - fields: { - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - } - } - }, - - demo: { - type: "Boolean", - keyRaw: "demo", - nullable: true - }, - - RAZORPAY_KEY_ID: { - type: "String", - keyRaw: "RAZORPAY_KEY_ID", - nullable: true - }, - - GOOGLE_CLIENT_ID: { - type: "String", - keyRaw: "GOOGLE_CLIENT_ID", - nullable: true - }, - - LIVE_COMMERCE_URL: { - type: "String", - keyRaw: "LIVE_COMMERCE_URL", - nullable: true - }, - - stripePublishableKey: { - type: "String", - keyRaw: "stripePublishableKey", - nullable: true - }, - - brainTreePublicKey: { - type: "String", - keyRaw: "brainTreePublicKey", - nullable: true - }, - - enableStripe: { - type: "Boolean", - keyRaw: "enableStripe", - nullable: true - }, - - enableRazorpay: { - type: "Boolean", - keyRaw: "enableRazorpay", - nullable: true - }, - - currencyCode: { - type: "String", - keyRaw: "currencyCode", - nullable: true - }, - - currencySymbol: { - type: "String", - keyRaw: "currencySymbol", - nullable: true - }, - - currencyDecimals: { - type: "Int", - keyRaw: "currencyDecimals", - nullable: true - }, - - openGraphImage: { - type: "String", - keyRaw: "openGraphImage", - nullable: true - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - deliveryDays: { - type: "Int", - keyRaw: "deliveryDays", - nullable: true - }, - - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - }, - - free: { - type: "Int", - keyRaw: "free", - nullable: true - }, - - method: { - type: "String", - keyRaw: "method", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - userRoles: { - type: "String", - keyRaw: "userRoles", - nullable: true - }, - - websiteEmail: { - type: "String", - keyRaw: "websiteEmail", - nullable: true - }, - - shopPhone: { - type: "String", - keyRaw: "shopPhone", - nullable: true - }, - - shopAddress: { - type: "String", - keyRaw: "shopAddress", - nullable: true - }, - - country: { - type: "ID", - keyRaw: "country", - nullable: true - }, - - countryDetails: { - type: "Country", - keyRaw: "countryDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - }, - - currency: { - type: "ID", - keyRaw: "currency", - nullable: true - }, - - currencyDetails: { - type: "Currency", - keyRaw: "currencyDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - } - } - }, - - logo: { - type: "String", - keyRaw: "logo", - nullable: true - }, - - logoMobile: { - type: "String", - keyRaw: "logoMobile", - nullable: true - }, - - logoDark: { - type: "String", - keyRaw: "logoDark", - nullable: true - }, - - logoMobileDark: { - type: "String", - keyRaw: "logoMobileDark", - nullable: true - }, - - favicon: { - type: "String", - keyRaw: "favicon", - nullable: true - }, - - CDN_URL: { - type: "String", - keyRaw: "CDN_URL", - nullable: true - }, - - S3_URL: { - type: "String", - keyRaw: "S3_URL", - nullable: true - }, - - searchbarText: { - type: "String", - keyRaw: "searchbarText", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - returnReasons: { - type: "String", - keyRaw: "returnReasons", - nullable: true - }, - - orderStatuses: { - type: "OrderStatus", - keyRaw: "orderStatuses", - nullable: true, - - fields: { - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - body: { - type: "String", - keyRaw: "body", - nullable: true - }, - - icon: { - type: "String", - keyRaw: "icon", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - } - } - }, - - paymentStatuses: { - type: "String", - keyRaw: "paymentStatuses", - nullable: true - }, - - otpLogin: { - type: "Boolean", - keyRaw: "otpLogin", - nullable: true - }, - - sms: { - type: "Sms", - keyRaw: "sms", - nullable: true, - - fields: { - AUTO_VERIFICATION_ID: { - type: "String", - keyRaw: "AUTO_VERIFICATION_ID", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - email: { - type: "Email", - keyRaw: "email", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - from: { - type: "String", - keyRaw: "from", - nullable: true - }, - - cc: { - type: "String", - keyRaw: "cc", - nullable: true - }, - - bcc: { - type: "String", - keyRaw: "bcc", - nullable: true - }, - - printers: { - type: "String", - keyRaw: "printers", - nullable: true - } - } - }, - - storage: { - type: "Storage", - keyRaw: "storage", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - review: { - type: "ReviewSetting", - keyRaw: "review", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - product: { - type: "ProductSetting", - keyRaw: "product", - nullable: true, - - fields: { - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - customerOrderNotifications: { - type: "UserNotification", - keyRaw: "customerOrderNotifications", - nullable: true, - - fields: { - orderConfirmation: { - type: "Boolean", - keyRaw: "orderConfirmation", - nullable: true - }, - - orderStatusChanged: { - type: "Boolean", - keyRaw: "orderStatusChanged", - nullable: true - }, - - orderShipped: { - type: "Boolean", - keyRaw: "orderShipped", - nullable: true - }, - - orderIsReadyForPickup: { - type: "Boolean", - keyRaw: "orderIsReadyForPickup", - nullable: true - }, - - downloadEGoods: { - type: "Boolean", - keyRaw: "downloadEGoods", - nullable: true - }, - - giftCardPurchased: { - type: "Boolean", - keyRaw: "giftCardPurchased", - nullable: true - } - } - }, - - adminNotifications: { - type: "AdminNotification", - keyRaw: "adminNotifications", - nullable: true, - - fields: { - newOrderPlaced: { - type: "Boolean", - keyRaw: "newOrderPlaced", - nullable: true - }, - - lowStockNotification: { - type: "Boolean", - keyRaw: "lowStockNotification", - nullable: true - } - } - }, - - ADMIN_PANEL_LINK: { - type: "String", - keyRaw: "ADMIN_PANEL_LINK", - nullable: true - }, - - DOCS_LINK: { - type: "String", - keyRaw: "DOCS_LINK", - nullable: true - }, - - storageProvider: { - type: "String", - keyRaw: "storageProvider", - nullable: true - }, - - googleMapsApi: { - type: "String", - keyRaw: "googleMapsApi", - nullable: true - }, - - facebook: { - type: "String", - keyRaw: "facebook", - nullable: true - }, - - twitter: { - type: "String", - keyRaw: "twitter", - nullable: true - }, - - google: { - type: "String", - keyRaw: "google", - nullable: true - }, - - instagram: { - type: "String", - keyRaw: "instagram", - nullable: true - }, - - linkedin: { - type: "String", - keyRaw: "linkedin", - nullable: true - }, - - enableTax: { - type: "Boolean", - keyRaw: "enableTax", - nullable: true - }, - - locationExpiry: { - type: "Float", - keyRaw: "locationExpiry", - nullable: true - }, - - WWW_URL: { - type: "String", - keyRaw: "WWW_URL", - nullable: true - }, - - referralBonus: { - type: "Float", - keyRaw: "referralBonus", - nullable: true - }, - - joiningBonus: { - type: "Float", - keyRaw: "joiningBonus", - nullable: true - }, - - isMultiVendor: { - type: "Boolean", - keyRaw: "isMultiVendor", - nullable: true - }, - - isMultiStore: { - type: "Boolean", - keyRaw: "isMultiStore", - nullable: true - }, - - isMegamenu: { - type: "Boolean", - keyRaw: "isMegamenu", - nullable: true - }, - - isSaas: { - type: "Boolean", - keyRaw: "isSaas", - nullable: true - }, - - isSearch: { - type: "Boolean", - keyRaw: "isSearch", - nullable: true - }, - - foodTypes: { - type: "NameValImg", - keyRaw: "foodTypes", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - } - } - } - } - }, - - storeOne: { - type: "Store", - keyRaw: "storeOne(domain: $domain)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - adminNotifications: { - type: "AdminNotification", - keyRaw: "adminNotifications", - nullable: true, - - fields: { - lowStockNotification: { - type: "Boolean", - keyRaw: "lowStockNotification", - nullable: true - }, - - newOrderPlaced: { - type: "Boolean", - keyRaw: "newOrderPlaced", - nullable: true - } - } - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - alert: { - type: "String", - keyRaw: "alert", - nullable: true - }, - - analyticsTrackingId: { - type: "String", - keyRaw: "analyticsTrackingId", - nullable: true - }, - - banners: { - type: "String", - keyRaw: "banners", - nullable: true - }, - - closed: { - type: "Boolean", - keyRaw: "closed", - nullable: true - }, - - isWishlist: { - type: "Boolean", - keyRaw: "isWishlist", - nullable: true - }, - - isCart: { - type: "Boolean", - keyRaw: "isCart", - nullable: true - }, - - closedMessage: { - type: "String", - keyRaw: "closedMessage", - nullable: true - }, - - customerOrderNotifications: { - type: "UserNotification", - keyRaw: "customerOrderNotifications", - nullable: true, - - fields: { - downloadEGoods: { - type: "Boolean", - keyRaw: "downloadEGoods", - nullable: true - }, - - giftCardPurchased: { - type: "Boolean", - keyRaw: "giftCardPurchased", - nullable: true - }, - - orderConfirmation: { - type: "Boolean", - keyRaw: "orderConfirmation", - nullable: true - }, - - orderIsReadyForPickup: { - type: "Boolean", - keyRaw: "orderIsReadyForPickup", - nullable: true - }, - - orderShipped: { - type: "Boolean", - keyRaw: "orderShipped", - nullable: true - }, - - orderStatusChanged: { - type: "Boolean", - keyRaw: "orderStatusChanged", - nullable: true - }, - - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - vendorNotifications: { - type: "VendorNotification", - keyRaw: "vendorNotifications", - nullable: true, - - fields: { - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - dimentionUnit: { - type: "String", - keyRaw: "dimentionUnit", - nullable: true - }, - - domain: { - type: "String", - keyRaw: "domain", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - facebook: { - type: "String", - keyRaw: "facebook", - nullable: true - }, - - facebookPixelId: { - type: "String", - keyRaw: "facebookPixelId", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - favicon: { - type: "String", - keyRaw: "favicon", - nullable: true - }, - - faviconCdn: { - type: "String", - keyRaw: "faviconCdn", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - gdpr: { - type: "Boolean", - keyRaw: "gdpr", - nullable: true - }, - - gdprCookieConsent: { - type: "String", - keyRaw: "gdprCookieConsent", - nullable: true - }, - - google: { - type: "String", - keyRaw: "google", - nullable: true - }, - - googleAdsTag: { - type: "String", - keyRaw: "googleAdsTag", - nullable: true - }, - - homeMeta1: { - type: "String", - keyRaw: "homeMeta1", - nullable: true - }, - - homeMeta2: { - type: "String", - keyRaw: "homeMeta2", - nullable: true - }, - - homeMeta3: { - type: "String", - keyRaw: "homeMeta3", - nullable: true - }, - - homeMeta4: { - type: "String", - keyRaw: "homeMeta4", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - bankAccountNo: { - type: "String", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankIfscCode: { - type: "String", - keyRaw: "bankIfscCode", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - instagram: { - type: "String", - keyRaw: "instagram", - nullable: true - }, - - instagramUrl: { - type: "String", - keyRaw: "instagramUrl", - nullable: true - }, - - isHideNilStock: { - type: "Boolean", - keyRaw: "isHideNilStock", - nullable: true - }, - - isMegamenu: { - type: "Boolean", - keyRaw: "isMegamenu", - nullable: true - }, - - isOpen: { - type: "Boolean", - keyRaw: "isOpen", - nullable: true - }, - - isSearch: { - type: "Boolean", - keyRaw: "isSearch", - nullable: true - }, - - isHyperlocal: { - type: "Boolean", - keyRaw: "isHyperlocal", - nullable: true - }, - - isFnb: { - type: "Boolean", - keyRaw: "isFnb", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - legalName: { - type: "String", - keyRaw: "legalName", - nullable: true - }, - - linkedin: { - type: "String", - keyRaw: "linkedin", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - logo: { - type: "String", - keyRaw: "logo", - nullable: true - }, - - logoDark: { - type: "String", - keyRaw: "logoDark", - nullable: true - }, - - logoMobile: { - type: "String", - keyRaw: "logoMobile", - nullable: true - }, - - logoMobileDark: { - type: "String", - keyRaw: "logoMobileDark", - nullable: true - }, - - logoCdn: { - type: "String", - keyRaw: "logoCdn", - nullable: true - }, - - logoDarkCdn: { - type: "String", - keyRaw: "logoDarkCdn", - nullable: true - }, - - logoMobileCdn: { - type: "String", - keyRaw: "logoMobileCdn", - nullable: true - }, - - logoMobileDarkCdn: { - type: "String", - keyRaw: "logoMobileDarkCdn", - nullable: true - }, - - minimumOrderValue: { - type: "Float", - keyRaw: "minimumOrderValue", - nullable: true - }, - - minOrderValue: { - type: "Float", - keyRaw: "minOrderValue", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - openGraphImage: { - type: "String", - keyRaw: "openGraphImage", - nullable: true - }, - - openGraphImageCdn: { - type: "String", - keyRaw: "openGraphImageCdn", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - pinterestTag: { - type: "String", - keyRaw: "pinterestTag", - nullable: true - }, - - pinterestUrl: { - type: "String", - keyRaw: "pinterestUrl", - nullable: true - }, - - qrCode: { - type: "String", - keyRaw: "qrCode", - nullable: true - }, - - review: { - type: "ReviewSetting", - keyRaw: "review", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - searchbarText: { - type: "String", - keyRaw: "searchbarText", - nullable: true - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - }, - - deliveryDays: { - type: "Int", - keyRaw: "deliveryDays", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - free: { - type: "Int", - keyRaw: "free", - nullable: true - }, - - method: { - type: "String", - keyRaw: "method", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - shopAddress: { - type: "String", - keyRaw: "shopAddress", - nullable: true - }, - - shopPhone: { - type: "String", - keyRaw: "shopPhone", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - snapChatPixel: { - type: "String", - keyRaw: "snapChatPixel", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - storeId: { - type: "String", - keyRaw: "storeId", - nullable: true - }, - - timeZone: { - type: "String", - keyRaw: "timeZone", - nullable: true - }, - - timing: { - type: "String", - keyRaw: "timing", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - twitter: { - type: "String", - keyRaw: "twitter", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - websiteEmail: { - type: "String", - keyRaw: "websiteEmail", - nullable: true - }, - - websiteLegalName: { - type: "String", - keyRaw: "websiteLegalName", - nullable: true - }, - - websiteName: { - type: "String", - keyRaw: "websiteName", - nullable: true - }, - - weightUnit: { - type: "String", - keyRaw: "weightUnit", - nullable: true - }, - - youtubeUrl: { - type: "String", - keyRaw: "youtubeUrl", - nullable: true - }, - - webmail: { - type: "String", - keyRaw: "webmail", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - timeDisplayFormat: { - type: "String", - keyRaw: "timeDisplayFormat", - nullable: true - }, - - priceDisplayFormat: { - type: "String", - keyRaw: "priceDisplayFormat", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - sms: { - type: "Sms", - keyRaw: "sms", - nullable: true, - - fields: { - AUTO_VERIFICATION_ID: { - type: "String", - keyRaw: "AUTO_VERIFICATION_ID", - nullable: true - } - } - }, - - shippoToken: { - type: "String", - keyRaw: "shippoToken", - nullable: true - }, - - shipRocketEmail: { - type: "String", - keyRaw: "shipRocketEmail", - nullable: true - }, - - shipRocketPassword: { - type: "String", - keyRaw: "shipRocketPassword", - nullable: true - }, - - shipRocketChannelId: { - type: "String", - keyRaw: "shipRocketChannelId", - nullable: true - }, - - pickrrAuthToken: { - type: "String", - keyRaw: "pickrrAuthToken", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - storeCountry: { - type: "StoreCountry", - keyRaw: "storeCountry", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - } - } - } - } - }, - - storeCurrency: { - type: "StoreCurrency", - keyRaw: "storeCurrency", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - }, - - currency: { - type: "Currency", - keyRaw: "currency", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - isoNumericCode: { - type: "Int", - keyRaw: "isoNumericCode", - nullable: true - }, - - thousandsSeparator: { - type: "String", - keyRaw: "thousandsSeparator", - nullable: true - }, - - decimalMark: { - type: "String", - keyRaw: "decimalMark", - nullable: true - }, - - symbolFirst: { - type: "Boolean", - keyRaw: "symbolFirst", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - }, - - disambiguateSymbol: { - type: "String", - keyRaw: "disambiguateSymbol", - nullable: true - }, - - htmlEntity: { - type: "String", - keyRaw: "htmlEntity", - nullable: true - }, - - subUnit: { - type: "String", - keyRaw: "subUnit", - nullable: true - }, - - smallestDenomination: { - type: "Float", - keyRaw: "smallestDenomination", - nullable: true - }, - - subunitToUnit: { - type: "Float", - keyRaw: "subunitToUnit", - nullable: true - } - } - } - } - }, - - storeLanguage: { - type: "StoreLanguage", - keyRaw: "storeLanguage", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - lang: { - type: "Language", - keyRaw: "lang", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - nativeName: { - type: "String", - keyRaw: "nativeName", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - phpLocaleCode: { - type: "String", - keyRaw: "phpLocaleCode", - nullable: true - }, - - rtl: { - type: "Boolean", - keyRaw: "rtl", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - } - } - } - }, - - megamenu: { - type: "Category", - keyRaw: "megamenu(domain: $domain)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - } - } - } - }, - - input: { - fields: { - domain: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=35847a4bf7292db5a15ceaede0879628036a923c2d14621d13d0827d52415d2d"; \ No newline at end of file diff --git a/$houdini/artifacts/addToCart.d.ts b/$houdini/artifacts/addToCart.d.ts deleted file mode 100644 index c28ddd6e..00000000 --- a/$houdini/artifacts/addToCart.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -export type addToCart = { - readonly "input": addToCart$input, - readonly "result": addToCart$result -}; - -export type addToCart$result = { - readonly addToCart: { - readonly items: ({ - readonly pid: string | null, - readonly vid: string | null, - readonly barcode: string | null, - readonly name: string | null, - readonly type: string | null, - readonly slug: string | null, - readonly qty: number | null, - readonly price: number | null, - readonly shippingCharge: number | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly brandName: string | null, - readonly vendor: string | null, - readonly vendorSlug: string | null, - readonly vendorBusinessName: string | null, - readonly deliveryDetails: string | null, - readonly options: ({ - readonly option: string | null, - readonly values: (string | null)[] | null - } | null)[] | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null - } | null)[] | null, - readonly needAddress: boolean | null, - readonly qty: number | null, - readonly subtotal: number | null, - readonly discount: { - readonly code: string | null, - readonly value: number | null, - readonly text: string | null, - readonly amount: number | null - } | null, - readonly shipping: { - readonly charge: number | null - } | null, - readonly tax: number | null, - readonly total: number | null - } | null -}; - -type OptionIp1 = { - option?: string | null | undefined, - values?: (string | null | undefined)[] | null | undefined -}; - -export type addToCart$input = { - qty: number, - pid: string, - vid?: string | null | undefined, - options?: (OptionIp1 | null | undefined)[] | null | undefined, - vendor?: string | null | undefined, - replace?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/addToCart.js b/$houdini/artifacts/addToCart.js deleted file mode 100644 index 88b37627..00000000 --- a/$houdini/artifacts/addToCart.js +++ /dev/null @@ -1,331 +0,0 @@ -export default { - name: "addToCart", - kind: "HoudiniMutation", - hash: "5924e4e1dcc851625a73b4779bfcde75476c64d55a43f8bc700b783246676f86", - - raw: `mutation addToCart($qty: Int!, $pid: ID!, $vid: ID, $options: [OptionIp1], $vendor: ID, $replace: Boolean) { - addToCart( - qty: $qty - pid: $pid - vid: $vid - options: $options - vendor: $vendor - replace: $replace - ) { - items { - pid - vid - barcode - name - type - slug - qty - price - shippingCharge - tax - img - imgCdn - brandName - vendor - vendorSlug - vendorBusinessName - deliveryDetails - options { - option - values - } - usedOptions { - name - val - dates - } - } - needAddress - qty - subtotal - discount { - code - value - text - amount - } - shipping { - charge - } - tax - total - id - } -} -`, - - rootType: "Mutation", - - selection: { - addToCart: { - type: "Cart", - keyRaw: "addToCart(qty: $qty, pid: $pid, vid: $vid, options: $options, vendor: $vendor, replace: $replace)", - nullable: true, - - fields: { - items: { - type: "CartItem", - keyRaw: "items", - nullable: true, - - fields: { - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - vid: { - type: "ID", - keyRaw: "vid", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - vendor: { - type: "ID", - keyRaw: "vendor", - nullable: true - }, - - vendorSlug: { - type: "String", - keyRaw: "vendorSlug", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - options: { - type: "Option1", - keyRaw: "options", - nullable: true, - - fields: { - option: { - type: "ID", - keyRaw: "option", - nullable: true - }, - - values: { - type: "String", - keyRaw: "values", - nullable: true - } - } - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - } - } - }, - - needAddress: { - type: "Boolean", - keyRaw: "needAddress", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - discount: { - type: "CartDiscount", - keyRaw: "discount", - nullable: true, - - fields: { - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - value: { - type: "Float", - keyRaw: "value", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - amount: { - type: "Float", - keyRaw: "amount", - nullable: true - } - } - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - } - } - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - } - }, - - input: { - fields: { - qty: "Int", - pid: "ID", - vid: "ID", - options: "OptionIp1", - vendor: "ID", - replace: "Boolean" - }, - - types: { - OptionIp1: { - option: "ID", - values: "String" - } - } - } -}; - -"HoudiniHash=3d3644624a08e75d1600394476a0638556fc021f728bbe3e916d587e2ce3a952"; \ No newline at end of file diff --git a/$houdini/artifacts/address.d.ts b/$houdini/artifacts/address.d.ts deleted file mode 100644 index 3b0ac8f0..00000000 --- a/$houdini/artifacts/address.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export type address = { - readonly "input": address$input, - readonly "result": address$result | undefined -}; - -export type address$result = { - readonly address: { - readonly id: string, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly city: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly lat: number | null, - readonly lng: number | null, - readonly active: boolean | null, - readonly verified: boolean | null, - readonly createdAt: string, - readonly updatedAt: string - } | null -}; - -export type address$afterLoad = { - readonly "input": { - readonly "address": address$input - }, - readonly "data": { - readonly "address": address$result - } -}; - -export type address$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/address.js b/$houdini/artifacts/address.js deleted file mode 100644 index 6bd15dd5..00000000 --- a/$houdini/artifacts/address.js +++ /dev/null @@ -1,159 +0,0 @@ -export default { - name: "address", - kind: "HoudiniQuery", - hash: "4d424528132c951435ceb5f1441315712ec2257c0c63854d09e5ad45924260e8", - - raw: `query address($id: ID!) { - address(id: $id) { - id - email - firstName - lastName - address - locality - town - city - country - state - zip - phone - lat - lng - active - verified - createdAt - updatedAt - } -} -`, - - rootType: "Query", - - selection: { - address: { - type: "Address", - keyRaw: "address(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=4d424528132c951435ceb5f1441315712ec2257c0c63854d09e5ad45924260e8"; \ No newline at end of file diff --git a/$houdini/artifacts/addresses.d.ts b/$houdini/artifacts/addresses.d.ts deleted file mode 100644 index ff10b3dc..00000000 --- a/$houdini/artifacts/addresses.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -export type addresses = { - readonly "input": addresses$input, - readonly "result": addresses$result | undefined -}; - -export type addresses$result = { - readonly addresses: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly city: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly lat: number | null, - readonly lng: number | null, - readonly active: boolean | null, - readonly verified: boolean | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly store: string | null - } | null)[] | null - } | null -}; - -export type addresses$afterLoad = { - readonly "input": { - readonly "addresses": addresses$input - }, - readonly "data": { - readonly "addresses": addresses$result - } -}; - -export type addresses$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/addresses.js b/$houdini/artifacts/addresses.js deleted file mode 100644 index 3844d81f..00000000 --- a/$houdini/artifacts/addresses.js +++ /dev/null @@ -1,207 +0,0 @@ -export default { - name: "addresses", - kind: "HoudiniQuery", - hash: "b09485e1516f9d888609b08ccf817310991682a16dd353f261203d45f35a7a30", - - raw: `query addresses($page: Int, $search: String, $limit: Int, $sort: String, $store: ID) { - addresses( - page: $page - search: $search - limit: $limit - sort: $sort - store: $store - ) { - count - page - pageSize - data { - id - email - firstName - lastName - address - locality - town - city - country - state - zip - phone - lat - lng - active - verified - createdAt - updatedAt - store - } - } -} -`, - - rootType: "Query", - - selection: { - addresses: { - type: "addressRes", - keyRaw: "addresses(page: $page, search: $search, limit: $limit, sort: $sort, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Address", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=de68318551e8bdf9e2eac58ac725105e5f9910997d687027952487a4da4bd906"; \ No newline at end of file diff --git a/$houdini/artifacts/blog.d.ts b/$houdini/artifacts/blog.d.ts deleted file mode 100644 index fa462e84..00000000 --- a/$houdini/artifacts/blog.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export type blog = { - readonly "input": blog$input, - readonly "result": blog$result | undefined -}; - -export type blog$result = { - readonly blog: { - readonly id: string, - readonly title: string | null, - readonly slug: string | null, - readonly active: boolean | null, - readonly excerpt: string | null, - readonly content: string | null, - readonly published_at: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly avatar: string | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null, - readonly phone: string | null - } | null - } | null -}; - -export type blog$afterLoad = { - readonly "input": { - readonly "blog": blog$input - }, - readonly "data": { - readonly "blog": blog$result - } -}; - -export type blog$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/blog.js b/$houdini/artifacts/blog.js deleted file mode 100644 index dfde34a3..00000000 --- a/$houdini/artifacts/blog.js +++ /dev/null @@ -1,185 +0,0 @@ -export default { - name: "blog", - kind: "HoudiniQuery", - hash: "94eb730c69ee1741e6eb89d7cb2d83444bdd4cb61161f9e366db6425ad0eb3d4", - - raw: `query blog($id: String!) { - blog(id: $id) { - id - title - slug - active - excerpt - content - published_at - img - imgCdn - createdAt - updatedAt - user { - firstName - lastName - avatar - id - } - store { - id - name - email - phone - } - } -} -`, - - rootType: "Query", - - selection: { - blog: { - type: "Blog", - keyRaw: "blog(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - excerpt: { - type: "String", - keyRaw: "excerpt", - nullable: true - }, - - content: { - type: "String", - keyRaw: "content", - nullable: true - }, - - published_at: { - type: "String", - keyRaw: "published_at", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - id: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=c67a5f9153b1ca755e79a4360dc78ca798b1f91fb008b3a89b58373e8320f8cb"; \ No newline at end of file diff --git a/$houdini/artifacts/blogs.d.ts b/$houdini/artifacts/blogs.d.ts deleted file mode 100644 index 715c82fc..00000000 --- a/$houdini/artifacts/blogs.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -export type blogs = { - readonly "input": blogs$input, - readonly "result": blogs$result | undefined -}; - -export type blogs$result = { - readonly blogs: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly title: string | null, - readonly slug: string | null, - readonly active: boolean | null, - readonly excerpt: string | null, - readonly content: string | null, - readonly published_at: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly avatar: string | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null, - readonly phone: string | null - } | null - } | null)[] | null - } | null -}; - -export type blogs$afterLoad = { - readonly "input": { - readonly "blogs": blogs$input - }, - readonly "data": { - readonly "blogs": blogs$result - } -}; - -export type blogs$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/blogs.js b/$houdini/artifacts/blogs.js deleted file mode 100644 index 458c3bdf..00000000 --- a/$houdini/artifacts/blogs.js +++ /dev/null @@ -1,220 +0,0 @@ -export default { - name: "blogs", - kind: "HoudiniQuery", - hash: "4b8c2150ffd3040145f09c0a3d6e93b382b53b8fdae1084c3fd503e648884bf1", - - raw: `query blogs($page: Int, $search: String, $limit: Int, $sort: String, $store: ID) { - blogs(page: $page, search: $search, limit: $limit, sort: $sort, store: $store) { - count - page - pageSize - data { - id - title - slug - active - excerpt - content - published_at - img - imgCdn - createdAt - updatedAt - user { - firstName - lastName - avatar - id - } - store { - id - name - email - phone - } - } - } -} -`, - - rootType: "Query", - - selection: { - blogs: { - type: "blogRes", - keyRaw: "blogs(page: $page, search: $search, limit: $limit, sort: $sort, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Blog", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - excerpt: { - type: "String", - keyRaw: "excerpt", - nullable: true - }, - - content: { - type: "String", - keyRaw: "content", - nullable: true - }, - - published_at: { - type: "String", - keyRaw: "published_at", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=8ecbbabf4f9831739124da3502855ff577fdace78e50d71ff27eadf398bff92f"; \ No newline at end of file diff --git a/$houdini/artifacts/cart.d.ts b/$houdini/artifacts/cart.d.ts deleted file mode 100644 index 6e64f77f..00000000 --- a/$houdini/artifacts/cart.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -export type cart = { - readonly "input": cart$input, - readonly "result": cart$result | undefined -}; - -export type cart$result = { - readonly cart: { - readonly id: string | null, - readonly storeCurrency: string | null, - readonly currencyCode: string | null, - readonly currencyName: string | null, - readonly currencySymbol: string | null, - readonly needAddress: boolean | null, - readonly items: ({ - readonly pid: string | null, - readonly barcode: string | null, - readonly tax: number | null, - readonly name: string | null, - readonly type: string | null, - readonly slug: string | null, - readonly qty: number | null, - readonly price: number | null, - readonly mrp: number | null, - readonly shippingCharge: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly tracking: string | null, - readonly brandName: string | null, - readonly vendor: string | null, - readonly vendorSlug: string | null, - readonly vendorBusinessName: string | null, - readonly deliveryDetails: string | null, - readonly foodType: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null, - readonly options: ({ - readonly option: string | null, - readonly values: (string | null)[] | null - } | null)[] | null, - readonly formattedItemAmount: { - readonly mrp: string | null, - readonly price: string | null, - readonly tax: string | null, - readonly shippingCharge: string | null - } | null - } | null)[] | null, - readonly qty: number | null, - readonly tax: number | null, - readonly subtotal: number | null, - readonly total: number | null, - readonly discount: { - readonly code: string | null, - readonly value: number | null, - readonly text: string | null, - readonly amount: number | null - } | null, - readonly shipping: { - readonly charge: number | null - } | null, - readonly formattedAmount: { - readonly offer_total: string | null, - readonly tax: string | null, - readonly subtotal: string | null, - readonly total: string | null - } | null, - readonly unavailableItems: ({ - readonly status: string | null, - readonly msg: string | null, - readonly pid: string | null, - readonly barcode: string | null, - readonly tax: number | null, - readonly name: string | null, - readonly type: string | null, - readonly slug: string | null, - readonly qty: number | null, - readonly price: number | null, - readonly mrp: number | null, - readonly shippingCharge: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly tracking: string | null, - readonly brandName: string | null, - readonly vendor: string | null, - readonly vendorSlug: string | null, - readonly vendorBusinessName: string | null, - readonly deliveryDetails: string | null, - readonly foodType: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null, - readonly options: ({ - readonly option: string | null, - readonly values: (string | null)[] | null - } | null)[] | null - } | null)[] | null - } | null -}; - -export type cart$afterLoad = { - readonly "input": { - readonly "cart": cart$input - }, - readonly "data": { - readonly "cart": cart$result - } -}; - -export type cart$input = { - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/cart.js b/$houdini/artifacts/cart.js deleted file mode 100644 index d59e6990..00000000 --- a/$houdini/artifacts/cart.js +++ /dev/null @@ -1,647 +0,0 @@ -export default { - name: "cart", - kind: "HoudiniQuery", - hash: "68be12c9f09b85dfabbed320c5917132ed53046fdec70e2e947dafc11def4662", - - raw: `query cart($store: ID) { - cart(store: $store) { - id - storeCurrency - currencyCode - currencyName - currencySymbol - needAddress - items { - pid - barcode - tax - name - type - slug - qty - price - mrp - shippingCharge - img - imgCdn - tracking - brandName - vendor - vendorSlug - vendorBusinessName - deliveryDetails - foodType - usedOptions { - name - val - dates - } - options { - option - values - } - formattedItemAmount { - mrp - price - tax - shippingCharge - } - } - qty - tax - subtotal - total - discount { - code - value - text - amount - } - shipping { - charge - } - formattedAmount { - offer_total - tax - subtotal - total - } - unavailableItems { - status - msg - pid - barcode - tax - name - type - slug - qty - price - mrp - shippingCharge - img - imgCdn - tracking - brandName - vendor - vendorSlug - vendorBusinessName - deliveryDetails - foodType - usedOptions { - name - val - dates - } - options { - option - values - } - } - } -} -`, - - rootType: "Query", - - selection: { - cart: { - type: "Cart", - keyRaw: "cart(store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - storeCurrency: { - type: "ID", - keyRaw: "storeCurrency", - nullable: true - }, - - currencyCode: { - type: "String", - keyRaw: "currencyCode", - nullable: true - }, - - currencyName: { - type: "String", - keyRaw: "currencyName", - nullable: true - }, - - currencySymbol: { - type: "String", - keyRaw: "currencySymbol", - nullable: true - }, - - needAddress: { - type: "Boolean", - keyRaw: "needAddress", - nullable: true - }, - - items: { - type: "CartItem", - keyRaw: "items", - nullable: true, - - fields: { - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - tracking: { - type: "String", - keyRaw: "tracking", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - vendor: { - type: "ID", - keyRaw: "vendor", - nullable: true - }, - - vendorSlug: { - type: "String", - keyRaw: "vendorSlug", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - }, - - options: { - type: "Option1", - keyRaw: "options", - nullable: true, - - fields: { - option: { - type: "ID", - keyRaw: "option", - nullable: true - }, - - values: { - type: "String", - keyRaw: "values", - nullable: true - } - } - }, - - formattedItemAmount: { - type: "CartItemAmount", - keyRaw: "formattedItemAmount", - nullable: true, - - fields: { - mrp: { - type: "String", - keyRaw: "mrp", - nullable: true - }, - - price: { - type: "String", - keyRaw: "price", - nullable: true - }, - - tax: { - type: "String", - keyRaw: "tax", - nullable: true - }, - - shippingCharge: { - type: "String", - keyRaw: "shippingCharge", - nullable: true - } - } - } - } - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - discount: { - type: "CartDiscount", - keyRaw: "discount", - nullable: true, - - fields: { - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - value: { - type: "Float", - keyRaw: "value", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - amount: { - type: "Float", - keyRaw: "amount", - nullable: true - } - } - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - } - } - }, - - formattedAmount: { - type: "CartAmount", - keyRaw: "formattedAmount", - nullable: true, - - fields: { - offer_total: { - type: "String", - keyRaw: "offer_total", - nullable: true - }, - - tax: { - type: "String", - keyRaw: "tax", - nullable: true - }, - - subtotal: { - type: "String", - keyRaw: "subtotal", - nullable: true - }, - - total: { - type: "String", - keyRaw: "total", - nullable: true - } - } - }, - - unavailableItems: { - type: "CartItem", - keyRaw: "unavailableItems", - nullable: true, - - fields: { - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - msg: { - type: "String", - keyRaw: "msg", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - tracking: { - type: "String", - keyRaw: "tracking", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - vendor: { - type: "ID", - keyRaw: "vendor", - nullable: true - }, - - vendorSlug: { - type: "String", - keyRaw: "vendorSlug", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - }, - - options: { - type: "Option1", - keyRaw: "options", - nullable: true, - - fields: { - option: { - type: "ID", - keyRaw: "option", - nullable: true - }, - - values: { - type: "String", - keyRaw: "values", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=b23d30b5aaa2e234ba36e1a5cf9064f2ec3ea2d9c1d3e5bd54eeda74f41877c7"; \ No newline at end of file diff --git a/$houdini/artifacts/cashfreePayNowNew.d.ts b/$houdini/artifacts/cashfreePayNowNew.d.ts deleted file mode 100644 index d3b1ece3..00000000 --- a/$houdini/artifacts/cashfreePayNowNew.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type cashfreePayNowNew = { - readonly "input": cashfreePayNowNew$input, - readonly "result": cashfreePayNowNew$result -}; - -export type cashfreePayNowNew$result = { - readonly cashfreePayNowNew: { - readonly orderId: string | null, - readonly token: string | null, - readonly redirectUrl: string | null - } | null -}; - -export type cashfreePayNowNew$input = { - address?: string | null | undefined, - slot?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/cashfreePayNowNew.js b/$houdini/artifacts/cashfreePayNowNew.js deleted file mode 100644 index 69cea706..00000000 --- a/$houdini/artifacts/cashfreePayNowNew.js +++ /dev/null @@ -1,62 +0,0 @@ -export default { - name: "cashfreePayNowNew", - kind: "HoudiniMutation", - hash: "3f38576133772a093dc60f99ae9b1a52cff6b2cbabf2e6241e635f5a795e9e6f", - - raw: `mutation cashfreePayNowNew($address: ID, $slot: ID) { - cashfreePayNowNew(address: $address, slot: $slot) { - orderId - token - redirectUrl - id - } -} -`, - - rootType: "Mutation", - - selection: { - cashfreePayNowNew: { - type: "Payment", - keyRaw: "cashfreePayNowNew(address: $address, slot: $slot)", - nullable: true, - - fields: { - orderId: { - type: "String", - keyRaw: "orderId", - nullable: true - }, - - token: { - type: "String", - keyRaw: "token", - nullable: true - }, - - redirectUrl: { - type: "String", - keyRaw: "redirectUrl", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - } - }, - - input: { - fields: { - address: "ID", - slot: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=ab6fb747a96e322af48a7a732985246a9ba4fba9bafa96fb9c0cf4ea7aa9002e"; \ No newline at end of file diff --git a/$houdini/artifacts/categories.d.ts b/$houdini/artifacts/categories.d.ts deleted file mode 100644 index c920344b..00000000 --- a/$houdini/artifacts/categories.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -export type categories = { - readonly "input": categories$input, - readonly "result": categories$result | undefined -}; - -export type categories$result = { - readonly categories: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string | null, - readonly namePath: string | null, - readonly categoryId: string | null, - readonly parent: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly level: number | null, - readonly link: string | null, - readonly metaTitle: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly keywords: string | null, - readonly position: number | null, - readonly megamenu: boolean | null, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly featuredSort: number | null, - readonly shopbycategory: boolean | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly store: string | null - } | null)[] | null - } | null -}; - -export type categories$afterLoad = { - readonly "input": { - readonly "categories": categories$input - }, - readonly "data": { - readonly "categories": categories$result - } -}; - -export type categories$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - megamenu?: boolean | null | undefined, - featured?: boolean | null | undefined, - active?: boolean | null | undefined, - img?: boolean | null | undefined, - shopbycategory?: boolean | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/categories.js b/$houdini/artifacts/categories.js deleted file mode 100644 index 5c556703..00000000 --- a/$houdini/artifacts/categories.js +++ /dev/null @@ -1,261 +0,0 @@ -export default { - name: "categories", - kind: "HoudiniQuery", - hash: "134bb2f2728a1818020fdb75b846f1f467664143e490a55d20372da9de360b0e", - - raw: `query categories($page: Int, $search: String, $limit: Int, $sort: String, $megamenu: Boolean, $featured: Boolean, $active: Boolean, $img: Boolean, $shopbycategory: Boolean, $store: ID) { - categories( - page: $page - search: $search - limit: $limit - sort: $sort - megamenu: $megamenu - featured: $featured - active: $active - img: $img - shopbycategory: $shopbycategory - store: $store - ) { - count - page - pageSize - data { - id - name - namePath - categoryId - parent - slug - img - imgCdn - banner - bannerCdn - level - link - metaTitle - metaDescription - metaKeywords - keywords - position - megamenu - active - featured - featuredSort - shopbycategory - createdAt - updatedAt - store - } - } -} -`, - - rootType: "Query", - - selection: { - categories: { - type: "categoryResSimple", - keyRaw: "categories(page: $page, search: $search, limit: $limit, sort: $sort, megamenu: $megamenu, featured: $featured, active: $active, img: $img, shopbycategory: $shopbycategory, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "CategorySimple", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - namePath: { - type: "String", - keyRaw: "namePath", - nullable: true - }, - - categoryId: { - type: "ID", - keyRaw: "categoryId", - nullable: true - }, - - parent: { - type: "ID", - keyRaw: "parent", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - level: { - type: "Int", - keyRaw: "level", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - megamenu: { - type: "Boolean", - keyRaw: "megamenu", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - featuredSort: { - type: "Float", - keyRaw: "featuredSort", - nullable: true - }, - - shopbycategory: { - type: "Boolean", - keyRaw: "shopbycategory", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - megamenu: "Boolean", - featured: "Boolean", - active: "Boolean", - img: "Boolean", - shopbycategory: "Boolean", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=890b6d9fc864e593b631ea17b53facf917d28e751b17f247fa193d9d0fb21be5"; \ No newline at end of file diff --git a/$houdini/artifacts/category.d.ts b/$houdini/artifacts/category.d.ts deleted file mode 100644 index f80e1ca3..00000000 --- a/$houdini/artifacts/category.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -export type category = { - readonly "input": category$input, - readonly "result": category$result | undefined -}; - -export type category$result = { - readonly category: { - readonly id: string, - readonly name: string | null, - readonly categoryId: string | null, - readonly description: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly level: number | null, - readonly link: string | null, - readonly pathA: ({ - readonly slug: string | null, - readonly name: string | null - } | null)[] | null, - readonly metaTitle: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly keywords: string | null, - readonly position: number | null, - readonly megamenu: boolean | null, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly featuredSort: number | null, - readonly shopbycategory: boolean | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly parent: { - readonly name: string | null - } | null, - readonly children: ({ - readonly id: string, - readonly name: string | null, - readonly img: string | null - } | null)[] | null, - readonly attributes: ({ - readonly id: string, - readonly name: string | null, - readonly show: boolean | null, - readonly category: string | null, - readonly active: boolean | null - } | null)[] | null, - readonly brand: { - readonly id: string, - readonly name: string | null - } | null - } | null -}; - -export type category$afterLoad = { - readonly "input": { - readonly "category": category$input - }, - readonly "data": { - readonly "category": category$result - } -}; - -export type category$input = { - id?: string | null | undefined, - slug?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/category.js b/$houdini/artifacts/category.js deleted file mode 100644 index 60df7048..00000000 --- a/$houdini/artifacts/category.js +++ /dev/null @@ -1,347 +0,0 @@ -export default { - name: "category", - kind: "HoudiniQuery", - hash: "fbd01fab8e96054606c810568cafda31a159ed90eed5de032fb658103b754a81", - - raw: `query category($id: String, $slug: String) { - category(id: $id, slug: $slug) { - id - name - categoryId - description - slug - img - imgCdn - banner - bannerCdn - level - link - pathA { - slug - name - id - } - metaTitle - metaDescription - metaKeywords - keywords - position - megamenu - active - featured - featuredSort - shopbycategory - createdAt - updatedAt - parent { - name - id - } - children { - id - name - img - } - attributes { - id - name - show - category - active - } - brand { - id - name - } - } -} -`, - - rootType: "Query", - - selection: { - category: { - type: "Category", - keyRaw: "category(id: $id, slug: $slug)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - categoryId: { - type: "String", - keyRaw: "categoryId", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - level: { - type: "Int", - keyRaw: "level", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - pathA: { - type: "Category", - keyRaw: "pathA", - nullable: true, - - fields: { - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - megamenu: { - type: "Boolean", - keyRaw: "megamenu", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - featuredSort: { - type: "Float", - keyRaw: "featuredSort", - nullable: true - }, - - shopbycategory: { - type: "Boolean", - keyRaw: "shopbycategory", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - parent: { - type: "Category", - keyRaw: "parent", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - } - } - }, - - attributes: { - type: "Attribute", - keyRaw: "attributes", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - show: { - type: "Boolean", - keyRaw: "show", - nullable: true - }, - - category: { - type: "String", - keyRaw: "category", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - }, - - brand: { - type: "Brand", - keyRaw: "brand", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - id: "String", - slug: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=20f2217d04590057fb3f36f5f698776ded1e2877ce41c69af1cc918539130769"; \ No newline at end of file diff --git a/$houdini/artifacts/changePassword.d.ts b/$houdini/artifacts/changePassword.d.ts deleted file mode 100644 index 9b232a7b..00000000 --- a/$houdini/artifacts/changePassword.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type changePassword = { - readonly "input": changePassword$input, - readonly "result": changePassword$result -}; - -export type changePassword$result = { - readonly changePassword: boolean | null -}; - -export type changePassword$input = { - oldPassword: string, - password: string, - passwordConfirmation: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/changePassword.js b/$houdini/artifacts/changePassword.js deleted file mode 100644 index 30161724..00000000 --- a/$houdini/artifacts/changePassword.js +++ /dev/null @@ -1,36 +0,0 @@ -export default { - name: "changePassword", - kind: "HoudiniMutation", - hash: "6d806ec4d251e7687cc3f95a9d586d7f568fdda9cfb79cee3f5a3e7fa62bd238", - - raw: `mutation changePassword($oldPassword: String!, $password: String!, $passwordConfirmation: String!) { - changePassword( - oldPassword: $oldPassword - password: $password - passwordConfirmation: $passwordConfirmation - ) -} -`, - - rootType: "Mutation", - - selection: { - changePassword: { - type: "Boolean", - keyRaw: "changePassword(oldPassword: $oldPassword, password: $password, passwordConfirmation: $passwordConfirmation)", - nullable: true - } - }, - - input: { - fields: { - oldPassword: "String", - password: "String", - passwordConfirmation: "String" - }, - - types: {} - } -}; - -"HoudiniHash=e5148bfe1046645639a54400dacdca121e4d8f3d0f369803380c7d72c166f826"; \ No newline at end of file diff --git a/$houdini/artifacts/checkWishlist.d.ts b/$houdini/artifacts/checkWishlist.d.ts deleted file mode 100644 index 379644d3..00000000 --- a/$houdini/artifacts/checkWishlist.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export type checkWishlist = { - readonly "input": checkWishlist$input, - readonly "result": checkWishlist$result | undefined -}; - -export type checkWishlist$result = { - readonly checkWishlist: boolean | null -}; - -export type checkWishlist$afterLoad = { - readonly "input": { - readonly "checkWishlist": checkWishlist$input - }, - readonly "data": { - readonly "checkWishlist": checkWishlist$result - } -}; - -export type checkWishlist$input = { - product: string, - variant: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/checkWishlist.js b/$houdini/artifacts/checkWishlist.js deleted file mode 100644 index d55a19c3..00000000 --- a/$houdini/artifacts/checkWishlist.js +++ /dev/null @@ -1,34 +0,0 @@ -export default { - name: "checkWishlist", - kind: "HoudiniQuery", - hash: "f83d42d40e7e18bdbc028593661b7b67f6c523bcc944523af419ae8ddbb0019d", - - raw: `query checkWishlist($product: ID!, $variant: ID!) { - checkWishlist(product: $product, variant: $variant) -} -`, - - rootType: "Query", - - selection: { - checkWishlist: { - type: "Boolean", - keyRaw: "checkWishlist(product: $product, variant: $variant)", - nullable: true - } - }, - - input: { - fields: { - product: "ID", - variant: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=f83d42d40e7e18bdbc028593661b7b67f6c523bcc944523af419ae8ddbb0019d"; \ No newline at end of file diff --git a/$houdini/artifacts/checkout.d.ts b/$houdini/artifacts/checkout.d.ts deleted file mode 100644 index bbf73d1e..00000000 --- a/$houdini/artifacts/checkout.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -export type checkout = { - readonly "input": checkout$input, - readonly "result": checkout$result -}; - -export type checkout$result = { - readonly checkout: { - readonly id: string | null, - readonly orderNo: string | null, - readonly otp: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly payment: { - readonly id: string | null - } | null, - readonly paymentMode: string | null, - readonly paymentStatus: string | null, - readonly paymentCurrency: string | null, - readonly paymentReferenceId: string | null, - readonly paymentOrderId: string | null, - readonly paymentReceipt: string | null, - readonly invoiceId: string | null, - readonly paymentGateway: string | null, - readonly codPaid: number | null, - readonly baseCodPaid: number | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly paymentMsg: string | null, - readonly paymentTime: string | null, - readonly paid: boolean | null, - readonly amount: { - readonly qty: number | null, - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly baseAmount: { - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly userFirstName: string | null, - readonly userLastName: string | null, - readonly userPhone: string | null, - readonly userEmail: string | null, - readonly store: { - readonly id: string, - readonly name: string | null - } | null, - readonly address: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly items: ({ - readonly pid: string | null, - readonly status: string | null, - readonly posInvoiceNo: string | null, - readonly itemOrderNo: string | null, - readonly name: string | null, - readonly barcode: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly slug: string | null, - readonly price: number | null, - readonly basePrice: number | null, - readonly qty: number | null, - readonly shippingCharge: number | null, - readonly baseShippingCharge: number | null, - readonly tax: number | null, - readonly baseTax: number | null, - readonly subtotal: number | null, - readonly baseSubtotal: number | null, - readonly total: number | null, - readonly baseTotal: number | null, - readonly time: string | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly brandImgCdn: string | null, - readonly parentBrandName: string | null, - readonly parentBrandImg: string | null, - readonly parentBrandImgCdn: string | null, - readonly color: string | null, - readonly size: string | null, - readonly vendorAddress: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly vendor: { - readonly id: string | null, - readonly businessName: string | null - } | null - })[] | null, - readonly orderItems: ({ - readonly id: string | null - })[] | null - } | null -}; - -export type checkout$input = { - address?: string | null | undefined, - slot?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/checkout.js b/$houdini/artifacts/checkout.js deleted file mode 100644 index fbb22ad9..00000000 --- a/$houdini/artifacts/checkout.js +++ /dev/null @@ -1,759 +0,0 @@ -export default { - name: "checkout", - kind: "HoudiniMutation", - hash: "e5ffa617ff071b751d99cd95df14f352bba31cb0470a5affcbff593393bc6e3a", - - raw: `mutation checkout($address: ID, $slot: ID) { - checkout(address: $address, slot: $slot) { - id - orderNo - otp - createdAt - updatedAt - payment { - id - } - paymentMode - paymentStatus - paymentCurrency - paymentReferenceId - paymentOrderId - paymentReceipt - invoiceId - paymentGateway - codPaid - baseCodPaid - amountPaid - amountDue - paymentStatus - paymentMsg - paymentTime - paid - amount { - qty - subtotal - tax - discount - total - shipping - } - baseAmount { - subtotal - tax - discount - total - shipping - } - userFirstName - userLastName - userPhone - userEmail - store { - id - name - } - address { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - items { - pid - status - posInvoiceNo - itemOrderNo - name - barcode - img - imgCdn - slug - price - basePrice - qty - shippingCharge - baseShippingCharge - tax - baseTax - subtotal - baseSubtotal - total - baseTotal - time - brandName - brandImg - brandImgCdn - parentBrandName - parentBrandImg - parentBrandImgCdn - color - size - vendorAddress { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - vendor { - id - businessName - } - id - } - orderItems { - id - } - } -} -`, - - rootType: "Mutation", - - selection: { - checkout: { - type: "Order", - keyRaw: "checkout(address: $address, slot: $slot)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - orderNo: { - type: "String", - keyRaw: "orderNo", - nullable: true - }, - - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - payment: { - type: "Payment", - keyRaw: "payment", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentStatus: { - type: "String", - keyRaw: "paymentStatus", - nullable: true - }, - - paymentCurrency: { - type: "String", - keyRaw: "paymentCurrency", - nullable: true - }, - - paymentReferenceId: { - type: "String", - keyRaw: "paymentReferenceId", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentReceipt: { - type: "String", - keyRaw: "paymentReceipt", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - codPaid: { - type: "Float", - keyRaw: "codPaid", - nullable: true - }, - - baseCodPaid: { - type: "Float", - keyRaw: "baseCodPaid", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - paymentMsg: { - type: "String", - keyRaw: "paymentMsg", - nullable: true - }, - - paymentTime: { - type: "String", - keyRaw: "paymentTime", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - amount: { - type: "Amount", - keyRaw: "amount", - nullable: true, - - fields: { - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - baseAmount: { - type: "Amount", - keyRaw: "baseAmount", - nullable: true, - - fields: { - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - userFirstName: { - type: "String", - keyRaw: "userFirstName", - nullable: true - }, - - userLastName: { - type: "String", - keyRaw: "userLastName", - nullable: true - }, - - userPhone: { - type: "String", - keyRaw: "userPhone", - nullable: true - }, - - userEmail: { - type: "String", - keyRaw: "userEmail", - nullable: true - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - items: { - type: "OrderItem", - keyRaw: "items", - nullable: true, - - fields: { - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - basePrice: { - type: "Float", - keyRaw: "basePrice", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - baseShippingCharge: { - type: "Float", - keyRaw: "baseShippingCharge", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - baseTax: { - type: "Float", - keyRaw: "baseTax", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - baseSubtotal: { - type: "Float", - keyRaw: "baseSubtotal", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - baseTotal: { - type: "Float", - keyRaw: "baseTotal", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - brandImgCdn: { - type: "String", - keyRaw: "brandImgCdn", - nullable: true - }, - - parentBrandName: { - type: "String", - keyRaw: "parentBrandName", - nullable: true - }, - - parentBrandImg: { - type: "String", - keyRaw: "parentBrandImg", - nullable: true - }, - - parentBrandImgCdn: { - type: "String", - keyRaw: "parentBrandImgCdn", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - size: { - type: "String", - keyRaw: "size", - nullable: true - }, - - vendorAddress: { - type: "Address", - keyRaw: "vendorAddress", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - } - } - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - orderItems: { - type: "OrderItem", - keyRaw: "orderItems", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - address: "ID", - slot: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=e3578fb446b607ef03f8ea95bfa95c463212d5bb283397b7ef25cc2f3068a3aa"; \ No newline at end of file diff --git a/$houdini/artifacts/countries.d.ts b/$houdini/artifacts/countries.d.ts deleted file mode 100644 index b24e085d..00000000 --- a/$houdini/artifacts/countries.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export type countries = { - readonly "input": countries$input, - readonly "result": countries$result | undefined -}; - -export type countries$result = { - readonly countries: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly states: ({ - readonly name: string - } | null)[] | null, - readonly sort: number | null, - readonly active: boolean | null - } | null)[] | null - } | null -}; - -export type countries$afterLoad = { - readonly "input": { - readonly "countries": countries$input - }, - readonly "data": { - readonly "countries": countries$result - } -}; - -export type countries$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/countries.js b/$houdini/artifacts/countries.js deleted file mode 100644 index 08b0a281..00000000 --- a/$houdini/artifacts/countries.js +++ /dev/null @@ -1,167 +0,0 @@ -export default { - name: "countries", - kind: "HoudiniQuery", - hash: "1721a195e17f89a622112de0368146297b2aa0b9875a8ba5be46bc89e1eec601", - - raw: `query countries($page: Int, $search: String, $limit: Int, $sort: String) { - countries(page: $page, search: $search, limit: $limit, sort: $sort) { - count - page - pageSize - data { - id - name - value - dialCode - code - img - imgCdn - flag - lang - states { - name - id - } - sort - active - } - } -} -`, - - rootType: "Query", - - selection: { - countries: { - type: "countryRes", - keyRaw: "countries(page: $page, search: $search, limit: $limit, sort: $sort)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Country", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - states: { - type: "State", - keyRaw: "states", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name" - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=1c89a5fce7a14ac36c61f7554bfc865e699e915ef426098bc99c9bfb889fd118"; \ No newline at end of file diff --git a/$houdini/artifacts/country.d.ts b/$houdini/artifacts/country.d.ts deleted file mode 100644 index adef74e6..00000000 --- a/$houdini/artifacts/country.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export type country = { - readonly "input": country$input, - readonly "result": country$result | undefined -}; - -export type country$result = { - readonly country: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly states: ({ - readonly name: string - } | null)[] | null, - readonly sort: number | null, - readonly active: boolean | null - } | null -}; - -export type country$afterLoad = { - readonly "input": { - readonly "country": country$input - }, - readonly "data": { - readonly "country": country$result - } -}; - -export type country$input = { - id?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/country.js b/$houdini/artifacts/country.js deleted file mode 100644 index 36b75a78..00000000 --- a/$houdini/artifacts/country.js +++ /dev/null @@ -1,133 +0,0 @@ -export default { - name: "country", - kind: "HoudiniQuery", - hash: "95d09ff0e77a2a6124999754c7aa9bc88042826aa97a4802ea095787ca90c1d5", - - raw: `query country($id: String) { - country(id: $id) { - id - name - value - dialCode - code - img - imgCdn - flag - lang - states { - name - id - } - sort - active - } -} -`, - - rootType: "Query", - - selection: { - country: { - type: "Country", - keyRaw: "country(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - states: { - type: "State", - keyRaw: "states", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name" - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=013ca864e168034b3c4a34113c7b02264d79147d45483fa9d87e702235d64006"; \ No newline at end of file diff --git a/$houdini/artifacts/deleteAddress.d.ts b/$houdini/artifacts/deleteAddress.d.ts deleted file mode 100644 index 95793223..00000000 --- a/$houdini/artifacts/deleteAddress.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type deleteAddress = { - readonly "input": deleteAddress$input, - readonly "result": deleteAddress$result -}; - -export type deleteAddress$result = { - readonly deleteAddress: boolean | null -}; - -export type deleteAddress$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/deleteAddress.js b/$houdini/artifacts/deleteAddress.js deleted file mode 100644 index 3f8d1862..00000000 --- a/$houdini/artifacts/deleteAddress.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "deleteAddress", - kind: "HoudiniMutation", - hash: "86933e72e90365afcb3b8c7a514c962ce64c8349503a6793a6b864122a18eaf7", - - raw: `mutation deleteAddress($id: ID!) { - deleteAddress(id: $id) -} -`, - - rootType: "Mutation", - - selection: { - deleteAddress: { - type: "Boolean", - keyRaw: "deleteAddress(id: $id)", - nullable: true - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=86933e72e90365afcb3b8c7a514c962ce64c8349503a6793a6b864122a18eaf7"; \ No newline at end of file diff --git a/$houdini/artifacts/deleteBlog.d.ts b/$houdini/artifacts/deleteBlog.d.ts deleted file mode 100644 index 01c2e07d..00000000 --- a/$houdini/artifacts/deleteBlog.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type deleteBlog = { - readonly "input": deleteBlog$input, - readonly "result": deleteBlog$result -}; - -export type deleteBlog$result = { - readonly deleteBlog: boolean | null -}; - -export type deleteBlog$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/deleteBlog.js b/$houdini/artifacts/deleteBlog.js deleted file mode 100644 index 646e8d96..00000000 --- a/$houdini/artifacts/deleteBlog.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "deleteBlog", - kind: "HoudiniMutation", - hash: "1638b6be277c04acc04a49a9199780372538dc5fd8905c4a58e044cae847c9f8", - - raw: `mutation deleteBlog($id: ID!) { - deleteBlog(id: $id) -} -`, - - rootType: "Mutation", - - selection: { - deleteBlog: { - type: "Boolean", - keyRaw: "deleteBlog(id: $id)", - nullable: true - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=1638b6be277c04acc04a49a9199780372538dc5fd8905c4a58e044cae847c9f8"; \ No newline at end of file diff --git a/$houdini/artifacts/deleteCountry.d.ts b/$houdini/artifacts/deleteCountry.d.ts deleted file mode 100644 index b9dfdeba..00000000 --- a/$houdini/artifacts/deleteCountry.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type deleteCountry = { - readonly "input": deleteCountry$input, - readonly "result": deleteCountry$result -}; - -export type deleteCountry$result = { - readonly deleteCountry: boolean | null -}; - -export type deleteCountry$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/deleteCountry.js b/$houdini/artifacts/deleteCountry.js deleted file mode 100644 index c2d4aeb4..00000000 --- a/$houdini/artifacts/deleteCountry.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "deleteCountry", - kind: "HoudiniMutation", - hash: "9f3f6f435ca01bd1fc974bcb09b875873b4d4e2e635c5119937293e45c427337", - - raw: `mutation deleteCountry($id: ID!) { - deleteCountry(id: $id) -} -`, - - rootType: "Mutation", - - selection: { - deleteCountry: { - type: "Boolean", - keyRaw: "deleteCountry(id: $id)", - nullable: true - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=ef00065ba8ca1c091f4929707b253998c6c910277d35ede6dd3917f20af5afdb"; \ No newline at end of file diff --git a/$houdini/artifacts/deletePaymentMethod.d.ts b/$houdini/artifacts/deletePaymentMethod.d.ts deleted file mode 100644 index 0aa0a23b..00000000 --- a/$houdini/artifacts/deletePaymentMethod.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type deletePaymentMethod = { - readonly "input": deletePaymentMethod$input, - readonly "result": deletePaymentMethod$result -}; - -export type deletePaymentMethod$result = { - readonly deletePaymentMethod: boolean | null -}; - -export type deletePaymentMethod$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/deletePaymentMethod.js b/$houdini/artifacts/deletePaymentMethod.js deleted file mode 100644 index 79b2f1ce..00000000 --- a/$houdini/artifacts/deletePaymentMethod.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "deletePaymentMethod", - kind: "HoudiniMutation", - hash: "fc8375768580243ae97111d8375c834fcdf77a0990fc8e57a46a4864300f4b5a", - - raw: `mutation deletePaymentMethod($id: ID!) { - deletePaymentMethod(id: $id) -} -`, - - rootType: "Mutation", - - selection: { - deletePaymentMethod: { - type: "Boolean", - keyRaw: "deletePaymentMethod(id: $id)", - nullable: true - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=fc8375768580243ae97111d8375c834fcdf77a0990fc8e57a46a4864300f4b5a"; \ No newline at end of file diff --git a/$houdini/artifacts/emailPassword.d.ts b/$houdini/artifacts/emailPassword.d.ts deleted file mode 100644 index 2b44f207..00000000 --- a/$houdini/artifacts/emailPassword.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export type emailPassword = { - readonly "input": emailPassword$input, - readonly "result": emailPassword$result -}; - -export type emailPassword$result = { - readonly emailPassword: string | null -}; - -export type emailPassword$input = { - email: string, - referrer: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/emailPassword.js b/$houdini/artifacts/emailPassword.js deleted file mode 100644 index 35063ab8..00000000 --- a/$houdini/artifacts/emailPassword.js +++ /dev/null @@ -1,31 +0,0 @@ -export default { - name: "emailPassword", - kind: "HoudiniMutation", - hash: "e5b61225e37c1110db90456dd897721165d23a711698a8cfb3cc13c36cda12b0", - - raw: `mutation emailPassword($email: String!, $referrer: String!) { - emailPassword(email: $email, referrer: $referrer) -} -`, - - rootType: "Mutation", - - selection: { - emailPassword: { - type: "String", - keyRaw: "emailPassword(email: $email, referrer: $referrer)", - nullable: true - } - }, - - input: { - fields: { - email: "String", - referrer: "String" - }, - - types: {} - } -}; - -"HoudiniHash=e5b61225e37c1110db90456dd897721165d23a711698a8cfb3cc13c36cda12b0"; \ No newline at end of file diff --git a/$houdini/artifacts/getOtp.d.ts b/$houdini/artifacts/getOtp.d.ts deleted file mode 100644 index d790408c..00000000 --- a/$houdini/artifacts/getOtp.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type getOtp = { - readonly "input": getOtp$input, - readonly "result": getOtp$result -}; - -export type getOtp$result = { - readonly getOtp: { - readonly otp: string | null, - readonly timer: number | null - } | null -}; - -export type getOtp$input = { - phone: string, - role?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/getOtp.js b/$houdini/artifacts/getOtp.js deleted file mode 100644 index 26edbac8..00000000 --- a/$houdini/artifacts/getOtp.js +++ /dev/null @@ -1,49 +0,0 @@ -export default { - name: "getOtp", - kind: "HoudiniMutation", - hash: "c792a99a036ba7ce0e718951689a8ba55d004b9d98bbc4a4e78110486b870c01", - - raw: `mutation getOtp($phone: String!, $role: String, $store: ID) { - getOtp(phone: $phone, role: $role, store: $store) { - otp - timer - } -} -`, - - rootType: "Mutation", - - selection: { - getOtp: { - type: "Otp", - keyRaw: "getOtp(phone: $phone, role: $role, store: $store)", - nullable: true, - - fields: { - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - timer: { - type: "Int", - keyRaw: "timer", - nullable: true - } - } - } - }, - - input: { - fields: { - phone: "String", - role: "String", - store: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=c792a99a036ba7ce0e718951689a8ba55d004b9d98bbc4a4e78110486b870c01"; \ No newline at end of file diff --git a/$houdini/artifacts/index.js b/$houdini/artifacts/index.js deleted file mode 100644 index 2c5bf2c8..00000000 --- a/$houdini/artifacts/index.js +++ /dev/null @@ -1,64 +0,0 @@ - - export { default as address} from './address' - export { default as addresses} from './addresses' - export { default as addToCart} from './addToCart' - export { default as blog} from './blog' - export { default as blogs} from './blogs' - export { default as cart} from './cart' - export { default as cashfreePayNowNew} from './cashfreePayNowNew' - export { default as categories} from './categories' - export { default as category} from './category' - export { default as changePassword} from './changePassword' - export { default as checkout} from './checkout' - export { default as checkWishlist} from './checkWishlist' - export { default as countries} from './countries' - export { default as country} from './country' - export { default as deleteAddress} from './deleteAddress' - export { default as deleteBlog} from './deleteBlog' - export { default as deleteCountry} from './deleteCountry' - export { default as deletePaymentMethod} from './deletePaymentMethod' - export { default as emailPassword} from './emailPassword' - export { default as getOtp} from './getOtp' - export { default as HOME} from './HOME' - export { default as INIT} from './INIT' - export { default as login} from './login' - export { default as me} from './me' - export { default as megamenu} from './megamenu' - export { default as myAddresses} from './myAddresses' - export { default as myOrderItems} from './myOrderItems' - export { default as myOrders} from './myOrders' - export { default as myWishlist} from './myWishlist' - export { default as orderItem} from './orderItem' - export { default as paymentMethod} from './paymentMethod' - export { default as paymentMethods} from './paymentMethods' - export { default as paymentMethodsAdmin} from './paymentMethodsAdmin' - export { default as paySuccessPageHit} from './paySuccessPageHit' - export { default as popularSearches} from './popularSearches' - export { default as product} from './product' - export { default as productReviews} from './productReviews' - export { default as products} from './products' - export { default as productSlug} from './productSlug' - export { default as randomVendors} from './randomVendors' - export { default as removeStoreCountry} from './removeStoreCountry' - export { default as resendEmail} from './resendEmail' - export { default as reviews} from './reviews' - export { default as saveAddress} from './saveAddress' - export { default as saveBlog} from './saveBlog' - export { default as saveCountry} from './saveCountry' - export { default as savePaymentMethod} from './savePaymentMethod' - export { default as saveStoreCountry} from './saveStoreCountry' - export { default as settings} from './settings' - export { default as signOut} from './signOut' - export { default as states} from './states' - export { default as store} from './store' - export { default as storeCountries} from './storeCountries' - export { default as storeCountry} from './storeCountry' - export { default as storeOne} from './storeOne' - export { default as stripe} from './stripe' - export { default as toggleWishlist} from './toggleWishlist' - export { default as topVendors} from './topVendors' - export { default as updateProfile} from './updateProfile' - export { default as vendor} from './vendor' - export { default as vendorProfile} from './vendorProfile' - export { default as verifyEmail} from './verifyEmail' - export { default as verifyOtp} from './verifyOtp' \ No newline at end of file diff --git a/$houdini/artifacts/login.d.ts b/$houdini/artifacts/login.d.ts deleted file mode 100644 index 56e5f765..00000000 --- a/$houdini/artifacts/login.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -export type login = { - readonly "input": login$input, - readonly "result": login$result -}; - -export type login$result = { - readonly login: { - readonly id: string | null, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly city: string | null, - readonly phone: string | null, - readonly avatar: string | null, - readonly avatarCdn: string | null, - readonly role: string | null, - readonly verified: boolean | null, - readonly active: boolean | null, - readonly provider: string | null, - readonly store: { - readonly name: string | null - } | null, - readonly vendor: string | null, - readonly plan: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null - } | null -}; - -export type login$input = { - email: string, - password: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/login.js b/$houdini/artifacts/login.js deleted file mode 100644 index d3eb1b66..00000000 --- a/$houdini/artifacts/login.js +++ /dev/null @@ -1,169 +0,0 @@ -export default { - name: "login", - kind: "HoudiniMutation", - hash: "5bf2cd72368ca5591a4592a6dc34afb9b2c435c41f1d14fac483a845427af766", - - raw: `mutation login($email: String!, $password: String!) { - login(email: $email, password: $password) { - id - email - firstName - lastName - city - phone - avatar - avatarCdn - role - verified - active - provider - store { - name - id - } - vendor - plan - createdAt - updatedAt - } -} -`, - - rootType: "Mutation", - - selection: { - login: { - type: "User", - keyRaw: "login(email: $email, password: $password)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - avatarCdn: { - type: "String", - keyRaw: "avatarCdn", - nullable: true - }, - - role: { - type: "String", - keyRaw: "role", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - vendor: { - type: "ID", - keyRaw: "vendor", - nullable: true - }, - - plan: { - type: "String", - keyRaw: "plan", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - } - } - } - }, - - input: { - fields: { - email: "String", - password: "String" - }, - - types: {} - } -}; - -"HoudiniHash=f5dc5a1c94c8535072508336bd8d0092f59c52e60c2b0d10124fb4351ae1aca8"; \ No newline at end of file diff --git a/$houdini/artifacts/me.d.ts b/$houdini/artifacts/me.d.ts deleted file mode 100644 index c7022fb3..00000000 --- a/$houdini/artifacts/me.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -export type me = { - readonly "input": null, - readonly "result": me$result | undefined -}; - -export type me$result = { - readonly me: { - readonly id: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null, - readonly gender: string | null, - readonly role: string | null, - readonly verified: boolean | null, - readonly active: boolean | null, - readonly provider: string | null, - readonly avatar: string | null, - readonly avatarCdn: string | null, - readonly referralCode: string | null, - readonly currentBalance: number | null, - readonly store: string | null - } | null -}; - -export type me$afterLoad = { - readonly "data": { - readonly "me": me$result - } -}; \ No newline at end of file diff --git a/$houdini/artifacts/me.js b/$houdini/artifacts/me.js deleted file mode 100644 index e3c1ca03..00000000 --- a/$houdini/artifacts/me.js +++ /dev/null @@ -1,133 +0,0 @@ -export default { - name: "me", - kind: "HoudiniQuery", - hash: "b61d47dadf3d4c8d73b91ee643267b14a9022c7109eb005948591c3ef4a3fe1b", - - raw: `query me { - me { - id - firstName - lastName - email - phone - gender - role - verified - active - provider - avatar - avatarCdn - referralCode - currentBalance - store - } -} -`, - - rootType: "Query", - - selection: { - me: { - type: "UserOne", - keyRaw: "me", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - gender: { - type: "String", - keyRaw: "gender", - nullable: true - }, - - role: { - type: "String", - keyRaw: "role", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - avatarCdn: { - type: "String", - keyRaw: "avatarCdn", - nullable: true - }, - - referralCode: { - type: "String", - keyRaw: "referralCode", - nullable: true - }, - - currentBalance: { - type: "Float", - keyRaw: "currentBalance", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=02283f5d8929c7bc647291fc102d0aa22af4dd56146508f35ee77fa6cbca0b36"; \ No newline at end of file diff --git a/$houdini/artifacts/megamenu.d.ts b/$houdini/artifacts/megamenu.d.ts deleted file mode 100644 index ec61b2ea..00000000 --- a/$houdini/artifacts/megamenu.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -export type megamenu = { - readonly "input": megamenu$input, - readonly "result": megamenu$result | undefined -}; - -export type megamenu$result = { - readonly megamenu: ({ - readonly id: string, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly link: string | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null, - readonly children: ({ - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly featured: boolean | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null - } | null)[] | null -}; - -export type megamenu$afterLoad = { - readonly "input": { - readonly "megamenu": megamenu$input - }, - readonly "data": { - readonly "megamenu": megamenu$result - } -}; - -export type megamenu$input = { - id?: string | null | undefined, - slug?: string | null | undefined, - search?: string | null | undefined, - sort?: string | null | undefined, - featured?: boolean | null | undefined, - brand?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/megamenu.js b/$houdini/artifacts/megamenu.js deleted file mode 100644 index fc4bc31a..00000000 --- a/$houdini/artifacts/megamenu.js +++ /dev/null @@ -1,543 +0,0 @@ -export default { - name: "megamenu", - kind: "HoudiniQuery", - hash: "cb49267451f7d3e46cd64cc89ac5c93824d0ba0170213454f27339eb6ff701dc", - - raw: `query megamenu($id: ID, $slug: String, $search: String, $sort: String, $featured: Boolean, $brand: ID, $store: ID) { - megamenu( - id: $id - slug: $slug - search: $search - sort: $sort - featured: $featured - brand: $brand - store: $store - ) { - id - name - slug - img - imgCdn - banner - bannerCdn - featured - link - children { - name - slug - img - featured - link - children { - name - slug - img - featured - link - children { - name - slug - img - featured - link - children { - name - slug - img - featured - link - children { - name - slug - img - featured - link - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - children { - name - slug - img - featured - id - } - id - } - id - } - id - } - id - } - id - } - id - } - id - } - id - } - } -} -`, - - rootType: "Query", - - selection: { - megamenu: { - type: "Category", - keyRaw: "megamenu(id: $id, slug: $slug, search: $search, sort: $sort, featured: $featured, brand: $brand, store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - children: { - type: "Category", - keyRaw: "children", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - } - } - } - }, - - input: { - fields: { - id: "ID", - slug: "String", - search: "String", - sort: "String", - featured: "Boolean", - brand: "ID", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=cd85899929c396da2b945c5c123ac901bef6a58433a5983ad0c9e66c0fcd525d"; \ No newline at end of file diff --git a/$houdini/artifacts/myAddresses.d.ts b/$houdini/artifacts/myAddresses.d.ts deleted file mode 100644 index 0c7c6594..00000000 --- a/$houdini/artifacts/myAddresses.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export type myAddresses = { - readonly "input": myAddresses$input, - readonly "result": myAddresses$result | undefined -}; - -export type myAddresses$result = { - readonly myAddresses: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly city: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly lat: number | null, - readonly lng: number | null, - readonly active: boolean | null, - readonly verified: boolean | null, - readonly createdAt: string, - readonly updatedAt: string - } | null)[] | null - } | null -}; - -export type myAddresses$afterLoad = { - readonly "input": { - readonly "myAddresses": myAddresses$input - }, - readonly "data": { - readonly "myAddresses": myAddresses$result - } -}; - -export type myAddresses$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/myAddresses.js b/$houdini/artifacts/myAddresses.js deleted file mode 100644 index 94d8b6a4..00000000 --- a/$houdini/artifacts/myAddresses.js +++ /dev/null @@ -1,193 +0,0 @@ -export default { - name: "myAddresses", - kind: "HoudiniQuery", - hash: "304be088116f1e7ee77205bc96b205808453f017d41acc617a6ce695375f6877", - - raw: `query myAddresses($page: Int, $search: String, $limit: Int, $sort: String) { - myAddresses(page: $page, search: $search, limit: $limit, sort: $sort) { - count - page - pageSize - data { - id - email - firstName - lastName - address - locality - town - city - country - state - zip - phone - lat - lng - active - verified - createdAt - updatedAt - } - } -} -`, - - rootType: "Query", - - selection: { - myAddresses: { - type: "addressRes", - keyRaw: "myAddresses(page: $page, search: $search, limit: $limit, sort: $sort)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Address", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=304be088116f1e7ee77205bc96b205808453f017d41acc617a6ce695375f6877"; \ No newline at end of file diff --git a/$houdini/artifacts/myOrderItems.d.ts b/$houdini/artifacts/myOrderItems.d.ts deleted file mode 100644 index 55c13331..00000000 --- a/$houdini/artifacts/myOrderItems.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -export type myOrderItems = { - readonly "input": myOrderItems$input, - readonly "result": myOrderItems$result | undefined -}; - -export type myOrderItems$result = { - readonly myOrderItems: { - readonly count: number | null, - readonly pageSize: number | null, - readonly page: number | null, - readonly data: ({ - readonly id: string | null, - readonly status: string | null, - readonly isReplacement: boolean | null, - readonly pid: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null, - readonly posInvoiceNo: string | null, - readonly itemOrderNo: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly foodType: string | null, - readonly tracking: string | null, - readonly shippingCharge: number | null, - readonly price: number | null, - readonly qty: number | null, - readonly tax: number | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly brandImgCdn: string | null, - readonly size: string | null, - readonly color: string | null, - readonly trackingId: string | null, - readonly returnTrackingId: string | null, - readonly courierName: string | null, - readonly returnCourierName: string | null, - readonly orderNo: string | null, - readonly otp: string | null, - readonly createdAt: string | null, - readonly paySuccess: number | null, - readonly payment: { - readonly id: string | null, - readonly amountPaid: number | null, - readonly amountDue: number | null - } | null, - readonly paymentMode: string | null, - readonly paymentStatus: string | null, - readonly paymentCurrency: string | null, - readonly paymentReferenceId: string | null, - readonly paymentOrderId: string | null, - readonly paymentReceipt: string | null, - readonly invoiceId: string | null, - readonly paymentGateway: string | null, - readonly codPaid: number | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly paymentMsg: string | null, - readonly paymentTime: string | null, - readonly paid: boolean | null, - readonly userFirstName: string | null, - readonly userLastName: string | null, - readonly userPhone: string | null, - readonly invoiceLink: string | null, - readonly returnValidTill: string | null, - readonly paymentAmount: number | null, - readonly vendorBusinessName: string | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null, - readonly role: string | null - } | null, - readonly address: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly amount: { - readonly qty: number | null, - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null, - readonly orderHistory: ({ - readonly id: string | null, - readonly status: string | null, - readonly title: string | null, - readonly body: string | null, - readonly icon: string | null, - readonly public: boolean | null, - readonly index: number | null, - readonly time: string | null - } | null)[] | null - } | null)[] | null - } | null -}; - -export type myOrderItems$afterLoad = { - readonly "input": { - readonly "myOrderItems": myOrderItems$input - }, - readonly "data": { - readonly "myOrderItems": myOrderItems$result - } -}; - -export type myOrderItems$input = { - page?: number | null | undefined, - skip?: number | null | undefined, - limit?: number | null | undefined, - search?: string | null | undefined, - sort?: string | null | undefined, - status?: string | null | undefined, - where?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/myOrderItems.js b/$houdini/artifacts/myOrderItems.js deleted file mode 100644 index 02436e36..00000000 --- a/$houdini/artifacts/myOrderItems.js +++ /dev/null @@ -1,795 +0,0 @@ -export default { - name: "myOrderItems", - kind: "HoudiniQuery", - hash: "b30a51e01798bc645fdd62478d093ade705fa22a33981bbaefbf788056d38d64", - - raw: `query myOrderItems($page: Int, $skip: Int, $limit: Int, $search: String, $sort: String, $status: String, $where: String, $store: ID) { - myOrderItems( - page: $page - skip: $skip - limit: $limit - search: $search - sort: $sort - status: $status - where: $where - store: $store - ) { - count - pageSize - page - data { - id - status - isReplacement - pid - usedOptions { - name - val - dates - } - posInvoiceNo - itemOrderNo - name - slug - img - imgCdn - foodType - tracking - shippingCharge - price - qty - tax - brandName - brandImg - brandImgCdn - size - color - trackingId - returnTrackingId - courierName - returnCourierName - orderNo - otp - createdAt - paySuccess - payment { - id - } - paymentMode - paymentStatus - paymentCurrency - paymentReferenceId - paymentOrderId - paymentReceipt - invoiceId - paymentGateway - codPaid - amountPaid - amountDue - paymentMsg - paymentTime - paid - userFirstName - userLastName - userPhone - invoiceLink - returnValidTill - paymentMode - paymentAmount - vendorBusinessName - vendor { - id - slug - businessName - banner - bannerCdn - } - user { - firstName - lastName - email - phone - role - id - } - address { - firstName - lastName - address - lat - lng - id - } - amount { - qty - subtotal - tax - discount - total - shipping - } - payment { - amountPaid - amountDue - id - } - store { - id - name - email - } - orderHistory { - id - status - title - body - icon - public - index - time - } - } - } -} -`, - - rootType: "Query", - - selection: { - myOrderItems: { - type: "orderItemRes", - keyRaw: "myOrderItems(page: $page, skip: $skip, limit: $limit, search: $search, sort: $sort, status: $status, where: $where, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - data: { - type: "OrderItem", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - isReplacement: { - type: "Boolean", - keyRaw: "isReplacement", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - tracking: { - type: "String", - keyRaw: "tracking", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - brandImgCdn: { - type: "String", - keyRaw: "brandImgCdn", - nullable: true - }, - - size: { - type: "String", - keyRaw: "size", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - trackingId: { - type: "String", - keyRaw: "trackingId", - nullable: true - }, - - returnTrackingId: { - type: "String", - keyRaw: "returnTrackingId", - nullable: true - }, - - courierName: { - type: "String", - keyRaw: "courierName", - nullable: true - }, - - returnCourierName: { - type: "String", - keyRaw: "returnCourierName", - nullable: true - }, - - orderNo: { - type: "String", - keyRaw: "orderNo", - nullable: true - }, - - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - paySuccess: { - type: "Int", - keyRaw: "paySuccess", - nullable: true - }, - - payment: { - type: "Payment", - keyRaw: "payment", - nullable: true, - - fields: { - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentStatus: { - type: "String", - keyRaw: "paymentStatus", - nullable: true - }, - - paymentCurrency: { - type: "String", - keyRaw: "paymentCurrency", - nullable: true - }, - - paymentReferenceId: { - type: "String", - keyRaw: "paymentReferenceId", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentReceipt: { - type: "String", - keyRaw: "paymentReceipt", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - codPaid: { - type: "Float", - keyRaw: "codPaid", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - paymentMsg: { - type: "String", - keyRaw: "paymentMsg", - nullable: true - }, - - paymentTime: { - type: "String", - keyRaw: "paymentTime", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - userFirstName: { - type: "String", - keyRaw: "userFirstName", - nullable: true - }, - - userLastName: { - type: "String", - keyRaw: "userLastName", - nullable: true - }, - - userPhone: { - type: "String", - keyRaw: "userPhone", - nullable: true - }, - - invoiceLink: { - type: "String", - keyRaw: "invoiceLink", - nullable: true - }, - - returnValidTill: { - type: "String", - keyRaw: "returnValidTill", - nullable: true - }, - - paymentAmount: { - type: "Float", - keyRaw: "paymentAmount", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - role: { - type: "String", - keyRaw: "role", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - amount: { - type: "Amount", - keyRaw: "amount", - nullable: true, - - fields: { - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - }, - - orderHistory: { - type: "OrderHistory", - keyRaw: "orderHistory", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - body: { - type: "String", - keyRaw: "body", - nullable: true - }, - - icon: { - type: "String", - keyRaw: "icon", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - skip: "Int", - limit: "Int", - search: "String", - sort: "String", - status: "String", - where: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=9f3a10c8bef5e083a7665a7b9351aa43322d6b8ac5f05461422c151ba0b2b9a0"; \ No newline at end of file diff --git a/$houdini/artifacts/myOrders.d.ts b/$houdini/artifacts/myOrders.d.ts deleted file mode 100644 index b6199684..00000000 --- a/$houdini/artifacts/myOrders.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -export type myOrders = { - readonly "input": myOrders$input, - readonly "result": myOrders$result | undefined -}; - -export type myOrders$result = { - readonly myOrders: { - readonly count: number | null, - readonly pageSize: number | null, - readonly page: number | null, - readonly data: ({ - readonly id: string | null, - readonly paySuccess: number | null, - readonly orderNo: string | null, - readonly otp: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly codPaid: number | null, - readonly payment: { - readonly id: string | null, - readonly amountPaid: number | null - } | null, - readonly paymentMode: string | null, - readonly paymentStatus: string | null, - readonly paymentCurrency: string | null, - readonly paymentReferenceId: string | null, - readonly paymentOrderId: string | null, - readonly paymentReceipt: string | null, - readonly invoiceId: string | null, - readonly paymentGateway: string | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly paymentMsg: string | null, - readonly paymentTime: string | null, - readonly paid: boolean | null, - readonly amount: { - readonly qty: number | null, - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly userFirstName: string | null, - readonly userLastName: string | null, - readonly userPhone: string | null, - readonly userEmail: string | null, - readonly address: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null, - readonly items: ({ - readonly id: string | null, - readonly pid: string | null, - readonly status: string | null, - readonly posInvoiceNo: string | null, - readonly itemOrderNo: string | null, - readonly name: string | null, - readonly barcode: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly foodType: string | null, - readonly slug: string | null, - readonly price: number | null, - readonly qty: number | null, - readonly shippingCharge: number | null, - readonly subtotal: number | null, - readonly total: number | null, - readonly tax: number | null, - readonly time: string | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly brandImgCdn: string | null, - readonly vendorBusinessName: string | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null, - readonly orderStatus: ({ - readonly id: string, - readonly event: string | null, - readonly tracking_id: string | null, - readonly courier_name: string | null - } | null)[] | null - })[] | null, - readonly orderItems: ({ - readonly id: string | null, - readonly status: string | null, - readonly pid: string | null, - readonly posInvoiceNo: string | null, - readonly itemOrderNo: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly qty: number | null, - readonly price: number | null, - readonly mrp: number | null, - readonly color: string | null, - readonly size: string | null, - readonly tracking: string | null, - readonly shippingCharge: number | null, - readonly tax: number | null, - readonly subtotal: number | null, - readonly total: number | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly brandImgCdn: string | null, - readonly foodType: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null - })[] | null - } | null)[] | null - } | null -}; - -export type myOrders$afterLoad = { - readonly "input": { - readonly "myOrders": myOrders$input - }, - readonly "data": { - readonly "myOrders": myOrders$result - } -}; - -export type myOrders$input = { - page?: number | null | undefined, - skip?: number | null | undefined, - limit?: number | null | undefined, - search?: string | null | undefined, - sort?: string | null | undefined, - status?: string | null | undefined, - where?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/myOrders.js b/$houdini/artifacts/myOrders.js deleted file mode 100644 index 7962a396..00000000 --- a/$houdini/artifacts/myOrders.js +++ /dev/null @@ -1,886 +0,0 @@ -export default { - name: "myOrders", - kind: "HoudiniQuery", - hash: "74029de636903d6dee7566f04968067655473f1511a194f3e83b8d268f61903d", - - raw: `query myOrders($page: Int, $skip: Int, $limit: Int, $search: String, $sort: String, $status: String, $where: String, $store: ID) { - myOrders( - page: $page - skip: $skip - limit: $limit - search: $search - sort: $sort - status: $status - where: $where - store: $store - ) { - count - pageSize - page - data { - id - paySuccess - orderNo - otp - createdAt - updatedAt - codPaid - payment { - id - amountPaid - } - paymentMode - paymentStatus - paymentCurrency - paymentReferenceId - paymentOrderId - paymentReceipt - invoiceId - paymentGateway - codPaid - amountPaid - amountDue - paymentStatus - paymentMsg - paymentTime - paid - amount { - qty - subtotal - tax - discount - total - shipping - } - userFirstName - userLastName - userPhone - userEmail - address { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - store { - id - name - email - } - items { - id - pid - status - posInvoiceNo - itemOrderNo - name - barcode - img - imgCdn - foodType - slug - price - qty - shippingCharge - subtotal - total - tax - time - brandName - brandImg - brandImgCdn - vendorBusinessName - vendor { - id - slug - businessName - banner - bannerCdn - } - orderStatus { - id - event - tracking_id - courier_name - } - } - orderItems { - id - status - pid - posInvoiceNo - itemOrderNo - name - slug - img - imgCdn - qty - price - mrp - color - size - tracking - shippingCharge - tax - subtotal - total - brandName - brandImg - brandImgCdn - foodType - usedOptions { - name - val - dates - } - } - } - } -} -`, - - rootType: "Query", - - selection: { - myOrders: { - type: "orderRes", - keyRaw: "myOrders(page: $page, skip: $skip, limit: $limit, search: $search, sort: $sort, status: $status, where: $where, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - data: { - type: "Order", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - paySuccess: { - type: "Int", - keyRaw: "paySuccess", - nullable: true - }, - - orderNo: { - type: "String", - keyRaw: "orderNo", - nullable: true - }, - - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - codPaid: { - type: "Float", - keyRaw: "codPaid", - nullable: true - }, - - payment: { - type: "Payment", - keyRaw: "payment", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - } - } - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentStatus: { - type: "String", - keyRaw: "paymentStatus", - nullable: true - }, - - paymentCurrency: { - type: "String", - keyRaw: "paymentCurrency", - nullable: true - }, - - paymentReferenceId: { - type: "String", - keyRaw: "paymentReferenceId", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentReceipt: { - type: "String", - keyRaw: "paymentReceipt", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - paymentMsg: { - type: "String", - keyRaw: "paymentMsg", - nullable: true - }, - - paymentTime: { - type: "String", - keyRaw: "paymentTime", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - amount: { - type: "Amount", - keyRaw: "amount", - nullable: true, - - fields: { - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - userFirstName: { - type: "String", - keyRaw: "userFirstName", - nullable: true - }, - - userLastName: { - type: "String", - keyRaw: "userLastName", - nullable: true - }, - - userPhone: { - type: "String", - keyRaw: "userPhone", - nullable: true - }, - - userEmail: { - type: "String", - keyRaw: "userEmail", - nullable: true - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - }, - - items: { - type: "OrderItem", - keyRaw: "items", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - brandImgCdn: { - type: "String", - keyRaw: "brandImgCdn", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - }, - - orderStatus: { - type: "OrderStatusRes", - keyRaw: "orderStatus", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - event: { - type: "String", - keyRaw: "event", - nullable: true - }, - - tracking_id: { - type: "String", - keyRaw: "tracking_id", - nullable: true - }, - - courier_name: { - type: "String", - keyRaw: "courier_name", - nullable: true - } - } - } - } - }, - - orderItems: { - type: "OrderItem", - keyRaw: "orderItems", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - size: { - type: "String", - keyRaw: "size", - nullable: true - }, - - tracking: { - type: "String", - keyRaw: "tracking", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - brandImgCdn: { - type: "String", - keyRaw: "brandImgCdn", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - skip: "Int", - limit: "Int", - search: "String", - sort: "String", - status: "String", - where: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=b8fb0405af4d4df7fbd888a5d4c116854330dca820c38eba735f2a60cdd2520c"; \ No newline at end of file diff --git a/$houdini/artifacts/myWishlist.d.ts b/$houdini/artifacts/myWishlist.d.ts deleted file mode 100644 index e0f8bd87..00000000 --- a/$houdini/artifacts/myWishlist.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -export type myWishlist = { - readonly "input": myWishlist$input, - readonly "result": myWishlist$result | undefined -}; - -export type myWishlist$result = { - readonly myWishlist: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string | null, - readonly active: boolean | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly product: { - readonly id: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly formattedPrice: string | null, - readonly discount: number | null, - readonly foodType: string | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null, - readonly brand: { - readonly id: string, - readonly name: string | null, - readonly img: string | null - } | null - } | null, - readonly variant: { - readonly id: string | null, - readonly name: string | null - } | null, - readonly user: { - readonly id: string | null, - readonly firstName: string | null, - readonly lastName: string | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null - } | null)[] | null - } | null -}; - -export type myWishlist$afterLoad = { - readonly "input": { - readonly "myWishlist": myWishlist$input - }, - readonly "data": { - readonly "myWishlist": myWishlist$result - } -}; - -export type myWishlist$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/myWishlist.js b/$houdini/artifacts/myWishlist.js deleted file mode 100644 index c16d8401..00000000 --- a/$houdini/artifacts/myWishlist.js +++ /dev/null @@ -1,338 +0,0 @@ -export default { - name: "myWishlist", - kind: "HoudiniQuery", - hash: "bb1294bfb02b045a1779352874b01bcb8d9d04715b33867c0f396446bb2b81ec", - - raw: `query myWishlist($page: Int, $search: String, $limit: Int, $sort: String, $store: ID) { - myWishlist( - page: $page - search: $search - limit: $limit - sort: $sort - store: $store - ) { - count - page - pageSize - data { - id - active - createdAt - updatedAt - product { - id - name - slug - img - price - mrp - formattedPrice - discount - foodType - vendor { - id - slug - businessName - banner - bannerCdn - } - brand { - id - name - img - } - } - variant { - id - name - } - user { - id - firstName - lastName - } - store { - id - name - email - } - } - } -} -`, - - rootType: "Query", - - selection: { - myWishlist: { - type: "wishlistRes", - keyRaw: "myWishlist(page: $page, search: $search, limit: $limit, sort: $sort, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Wishlist", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - product: { - type: "Product", - keyRaw: "product", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - formattedPrice: { - type: "String", - keyRaw: "formattedPrice", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - }, - - brand: { - type: "Brand", - keyRaw: "brand", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - } - } - } - } - }, - - variant: { - type: "Product", - keyRaw: "variant", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=d78290056b8f1731e1e71c4696832a53d86f8fa67128381ebafcbd912ebc25b1"; \ No newline at end of file diff --git a/$houdini/artifacts/orderItem.d.ts b/$houdini/artifacts/orderItem.d.ts deleted file mode 100644 index c5c75104..00000000 --- a/$houdini/artifacts/orderItem.d.ts +++ /dev/null @@ -1,211 +0,0 @@ -export type orderItem = { - readonly "input": orderItem$input, - readonly "result": orderItem$result | undefined -}; - -export type orderItem$result = { - readonly orderItem: { - readonly id: string | null, - readonly orderId: string | null, - readonly status: string | null, - readonly pid: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null, - readonly posInvoiceNo: string | null, - readonly invoiceId: string | null, - readonly itemOrderNo: string | null, - readonly expectedDeliveryDate: string | null, - readonly deliveryDetails: string | null, - readonly shippingOrderId: string | null, - readonly shippingProvider: string | null, - readonly shippingLabelId: string | null, - readonly shippingRateId: string | null, - readonly shippingTrackingNumber: string | null, - readonly shippingTrackingStatus: string | null, - readonly shippingTrackingUrlProvider: string | null, - readonly shippingLabelUrl: string | null, - readonly shippingCommercialInvoiceUrl: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly tracking: string | null, - readonly foodType: string | null, - readonly shippingCharge: number | null, - readonly price: number | null, - readonly basePrice: number | null, - readonly qty: number | null, - readonly tax: number | null, - readonly baseTax: number | null, - readonly total: number | null, - readonly totalDiscount: number | null, - readonly subtotal: number | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly brandImgCdn: string | null, - readonly size: string | null, - readonly color: string | null, - readonly trackingId: string | null, - readonly returnTrackingId: string | null, - readonly courierName: string | null, - readonly returnCourierName: string | null, - readonly replaceValidTill: string | null, - readonly returnValidTill: string | null, - readonly returnPolicyExpired: boolean | null, - readonly returnReason: string | null, - readonly type: string | null, - readonly amountRefunded: number | null, - readonly baseAmountRefunded: number | null, - readonly refunds: ({ - readonly message: string | null, - readonly qty: number | null, - readonly time: string | null, - readonly amount: number | null, - readonly refundId: string | null - } | null)[] | null, - readonly orderNo: string | null, - readonly otp: string | null, - readonly createdAt: string | null, - readonly paySuccess: number | null, - readonly payment: { - readonly id: string | null - } | null, - readonly paymentMode: string | null, - readonly paymentStatus: string | null, - readonly paymentCurrency: string | null, - readonly paymentReferenceId: string | null, - readonly paymentOrderId: string | null, - readonly paymentReceipt: string | null, - readonly paymentGateway: string | null, - readonly codPaid: number | null, - readonly baseCodPaid: number | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly totalAmountRefunded: number | null, - readonly baseTotalAmountRefunded: number | null, - readonly paymentMsg: string | null, - readonly paymentTime: string | null, - readonly paid: boolean | null, - readonly userFirstName: string | null, - readonly userLastName: string | null, - readonly userPhone: string | null, - readonly userEmail: string | null, - readonly invoiceLink: string | null, - readonly discount: number | null, - readonly baseDiscount: number | null, - readonly baseTotalDiscount: number | null, - readonly weight: number | null, - readonly unit: string | null, - readonly amount: { - readonly total: number | null, - readonly discount: number | null, - readonly totalDiscount: number | null, - readonly subtotal: number | null - } | null, - readonly baseAmount: { - readonly total: number | null, - readonly discount: number | null, - readonly totalDiscount: number | null, - readonly subtotal: number | null - } | null, - readonly user: { - readonly id: string | null, - readonly firstName: string | null - } | null, - readonly address: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null, - readonly slot: { - readonly name: string | null, - readonly value: string | null, - readonly info: string | null, - readonly active: boolean | null - } | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null, - readonly vendorBusinessName: string | null, - readonly vendorPhone: string | null, - readonly vendorEmail: string | null, - readonly vendorCommissionType: string | null, - readonly vendorCommissionValue: number | null, - readonly vendorAddress: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly formattedSubtotal: string | null, - readonly formattedShippingCharge: string | null, - readonly formattedMrp: string | null, - readonly formattedAmountRefunded: string | null, - readonly formattedPrice: string | null, - readonly formattedTax: string | null, - readonly formattedTotal: string | null, - readonly formattedTotalDiscount: string | null, - readonly formattedVendorCommission: string | null, - readonly formattedAmountDue: string | null, - readonly formattedAmountPaid: string | null, - readonly formattedCodPaid: string | null, - readonly formattedDiscount: string | null, - readonly formattedPaymentAmount: string | null, - readonly formattedTotalAmountRefunded: string | null, - readonly formattedAmount: { - readonly subtotal: string | null, - readonly tax: string | null, - readonly discount: string | null, - readonly shipping: string | null, - readonly total: string | null, - readonly totalDiscount: string | null, - readonly exchangeRate: string | null - } | null, - readonly orderHistory: ({ - readonly id: string | null, - readonly status: string | null, - readonly title: string | null, - readonly body: string | null, - readonly icon: string | null, - readonly public: boolean | null, - readonly index: number | null, - readonly time: string | null - } | null)[] | null - } | null -}; - -export type orderItem$afterLoad = { - readonly "input": { - readonly "orderItem": orderItem$input - }, - readonly "data": { - readonly "orderItem": orderItem$result - } -}; - -export type orderItem$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/orderItem.js b/$houdini/artifacts/orderItem.js deleted file mode 100644 index e364f285..00000000 --- a/$houdini/artifacts/orderItem.js +++ /dev/null @@ -1,1327 +0,0 @@ -export default { - name: "orderItem", - kind: "HoudiniQuery", - hash: "1ca40a301ef5ff53cfdfe1b3913cec492545dc656593ae66dad7d11bb08438ae", - - raw: `query orderItem($id: ID!) { - orderItem(id: $id) { - id - orderId - status - pid - usedOptions { - name - val - dates - } - posInvoiceNo - invoiceId - itemOrderNo - expectedDeliveryDate - deliveryDetails - shippingOrderId - shippingProvider - shippingLabelId - shippingRateId - shippingTrackingNumber - shippingTrackingStatus - shippingTrackingUrlProvider - shippingLabelUrl - shippingCommercialInvoiceUrl - name - slug - img - imgCdn - tracking - foodType - shippingCharge - price - basePrice - qty - tax - baseTax - total - totalDiscount - subtotal - brandName - brandImg - brandImgCdn - size - color - trackingId - returnTrackingId - courierName - returnCourierName - replaceValidTill - returnValidTill - returnPolicyExpired - returnReason - type - amountRefunded - baseAmountRefunded - refunds { - message - qty - time - amount - refundId - } - orderNo - otp - createdAt - paySuccess - payment { - id - } - paymentMode - paymentStatus - paymentCurrency - paymentReferenceId - paymentOrderId - paymentReceipt - invoiceId - paymentGateway - codPaid - baseCodPaid - amountPaid - amountDue - totalAmountRefunded - baseTotalAmountRefunded - paymentMsg - paymentTime - paid - userFirstName - userLastName - userPhone - userEmail - invoiceLink - discount - baseDiscount - totalDiscount - baseTotalDiscount - weight - unit - amount { - total - discount - totalDiscount - subtotal - } - baseAmount { - total - discount - totalDiscount - subtotal - } - user { - id - firstName - } - address { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - store { - id - name - email - } - slot { - name - value - info - active - id - } - vendor { - id - slug - businessName - banner - bannerCdn - } - vendorBusinessName - vendorPhone - vendorEmail - vendorCommissionType - vendorCommissionValue - vendorAddress { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - formattedSubtotal - formattedShippingCharge - formattedMrp - formattedAmountRefunded - formattedPrice - formattedTax - formattedTotal - formattedTotalDiscount - formattedVendorCommission - formattedAmountDue - formattedAmountPaid - formattedCodPaid - formattedDiscount - formattedPaymentAmount - formattedTotalAmountRefunded - formattedAmount { - subtotal - tax - discount - shipping - total - totalDiscount - exchangeRate - } - orderHistory { - id - status - title - body - icon - public - index - time - } - } -} -`, - - rootType: "Query", - - selection: { - orderItem: { - type: "OrderItem", - keyRaw: "orderItem(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - orderId: { - type: "ID", - keyRaw: "orderId", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - expectedDeliveryDate: { - type: "String", - keyRaw: "expectedDeliveryDate", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - shippingOrderId: { - type: "String", - keyRaw: "shippingOrderId", - nullable: true - }, - - shippingProvider: { - type: "String", - keyRaw: "shippingProvider", - nullable: true - }, - - shippingLabelId: { - type: "String", - keyRaw: "shippingLabelId", - nullable: true - }, - - shippingRateId: { - type: "String", - keyRaw: "shippingRateId", - nullable: true - }, - - shippingTrackingNumber: { - type: "String", - keyRaw: "shippingTrackingNumber", - nullable: true - }, - - shippingTrackingStatus: { - type: "String", - keyRaw: "shippingTrackingStatus", - nullable: true - }, - - shippingTrackingUrlProvider: { - type: "String", - keyRaw: "shippingTrackingUrlProvider", - nullable: true - }, - - shippingLabelUrl: { - type: "String", - keyRaw: "shippingLabelUrl", - nullable: true - }, - - shippingCommercialInvoiceUrl: { - type: "String", - keyRaw: "shippingCommercialInvoiceUrl", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - tracking: { - type: "String", - keyRaw: "tracking", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - basePrice: { - type: "Float", - keyRaw: "basePrice", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - baseTax: { - type: "Float", - keyRaw: "baseTax", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - totalDiscount: { - type: "Float", - keyRaw: "totalDiscount", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - brandImgCdn: { - type: "String", - keyRaw: "brandImgCdn", - nullable: true - }, - - size: { - type: "String", - keyRaw: "size", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - trackingId: { - type: "String", - keyRaw: "trackingId", - nullable: true - }, - - returnTrackingId: { - type: "String", - keyRaw: "returnTrackingId", - nullable: true - }, - - courierName: { - type: "String", - keyRaw: "courierName", - nullable: true - }, - - returnCourierName: { - type: "String", - keyRaw: "returnCourierName", - nullable: true - }, - - replaceValidTill: { - type: "String", - keyRaw: "replaceValidTill", - nullable: true - }, - - returnValidTill: { - type: "String", - keyRaw: "returnValidTill", - nullable: true - }, - - returnPolicyExpired: { - type: "Boolean", - keyRaw: "returnPolicyExpired", - nullable: true - }, - - returnReason: { - type: "String", - keyRaw: "returnReason", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - amountRefunded: { - type: "Float", - keyRaw: "amountRefunded", - nullable: true - }, - - baseAmountRefunded: { - type: "Float", - keyRaw: "baseAmountRefunded", - nullable: true - }, - - refunds: { - type: "Refund", - keyRaw: "refunds", - nullable: true, - - fields: { - message: { - type: "String", - keyRaw: "message", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - amount: { - type: "Float", - keyRaw: "amount", - nullable: true - }, - - refundId: { - type: "String", - keyRaw: "refundId", - nullable: true - } - } - }, - - orderNo: { - type: "String", - keyRaw: "orderNo", - nullable: true - }, - - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - paySuccess: { - type: "Int", - keyRaw: "paySuccess", - nullable: true - }, - - payment: { - type: "Payment", - keyRaw: "payment", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentStatus: { - type: "String", - keyRaw: "paymentStatus", - nullable: true - }, - - paymentCurrency: { - type: "String", - keyRaw: "paymentCurrency", - nullable: true - }, - - paymentReferenceId: { - type: "String", - keyRaw: "paymentReferenceId", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentReceipt: { - type: "String", - keyRaw: "paymentReceipt", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - codPaid: { - type: "Float", - keyRaw: "codPaid", - nullable: true - }, - - baseCodPaid: { - type: "Float", - keyRaw: "baseCodPaid", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - totalAmountRefunded: { - type: "Float", - keyRaw: "totalAmountRefunded", - nullable: true - }, - - baseTotalAmountRefunded: { - type: "Float", - keyRaw: "baseTotalAmountRefunded", - nullable: true - }, - - paymentMsg: { - type: "String", - keyRaw: "paymentMsg", - nullable: true - }, - - paymentTime: { - type: "String", - keyRaw: "paymentTime", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - userFirstName: { - type: "String", - keyRaw: "userFirstName", - nullable: true - }, - - userLastName: { - type: "String", - keyRaw: "userLastName", - nullable: true - }, - - userPhone: { - type: "String", - keyRaw: "userPhone", - nullable: true - }, - - userEmail: { - type: "String", - keyRaw: "userEmail", - nullable: true - }, - - invoiceLink: { - type: "String", - keyRaw: "invoiceLink", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - baseDiscount: { - type: "Float", - keyRaw: "baseDiscount", - nullable: true - }, - - baseTotalDiscount: { - type: "Float", - keyRaw: "baseTotalDiscount", - nullable: true - }, - - weight: { - type: "Float", - keyRaw: "weight", - nullable: true - }, - - unit: { - type: "String", - keyRaw: "unit", - nullable: true - }, - - amount: { - type: "Amount", - keyRaw: "amount", - nullable: true, - - fields: { - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - totalDiscount: { - type: "Float", - keyRaw: "totalDiscount", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - } - } - }, - - baseAmount: { - type: "Amount", - keyRaw: "baseAmount", - nullable: true, - - fields: { - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - totalDiscount: { - type: "Float", - keyRaw: "totalDiscount", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - }, - - slot: { - type: "Slot", - keyRaw: "slot", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - info: { - type: "String", - keyRaw: "info", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - vendorPhone: { - type: "String", - keyRaw: "vendorPhone", - nullable: true - }, - - vendorEmail: { - type: "String", - keyRaw: "vendorEmail", - nullable: true - }, - - vendorCommissionType: { - type: "String", - keyRaw: "vendorCommissionType", - nullable: true - }, - - vendorCommissionValue: { - type: "Float", - keyRaw: "vendorCommissionValue", - nullable: true - }, - - vendorAddress: { - type: "Address", - keyRaw: "vendorAddress", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - formattedSubtotal: { - type: "String", - keyRaw: "formattedSubtotal", - nullable: true - }, - - formattedShippingCharge: { - type: "String", - keyRaw: "formattedShippingCharge", - nullable: true - }, - - formattedMrp: { - type: "String", - keyRaw: "formattedMrp", - nullable: true - }, - - formattedAmountRefunded: { - type: "String", - keyRaw: "formattedAmountRefunded", - nullable: true - }, - - formattedPrice: { - type: "String", - keyRaw: "formattedPrice", - nullable: true - }, - - formattedTax: { - type: "String", - keyRaw: "formattedTax", - nullable: true - }, - - formattedTotal: { - type: "String", - keyRaw: "formattedTotal", - nullable: true - }, - - formattedTotalDiscount: { - type: "String", - keyRaw: "formattedTotalDiscount", - nullable: true - }, - - formattedVendorCommission: { - type: "String", - keyRaw: "formattedVendorCommission", - nullable: true - }, - - formattedAmountDue: { - type: "String", - keyRaw: "formattedAmountDue", - nullable: true - }, - - formattedAmountPaid: { - type: "String", - keyRaw: "formattedAmountPaid", - nullable: true - }, - - formattedCodPaid: { - type: "String", - keyRaw: "formattedCodPaid", - nullable: true - }, - - formattedDiscount: { - type: "String", - keyRaw: "formattedDiscount", - nullable: true - }, - - formattedPaymentAmount: { - type: "String", - keyRaw: "formattedPaymentAmount", - nullable: true - }, - - formattedTotalAmountRefunded: { - type: "String", - keyRaw: "formattedTotalAmountRefunded", - nullable: true - }, - - formattedAmount: { - type: "OrderItemAmount", - keyRaw: "formattedAmount", - nullable: true, - - fields: { - subtotal: { - type: "String", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "String", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "String", - keyRaw: "discount", - nullable: true - }, - - shipping: { - type: "String", - keyRaw: "shipping", - nullable: true - }, - - total: { - type: "String", - keyRaw: "total", - nullable: true - }, - - totalDiscount: { - type: "String", - keyRaw: "totalDiscount", - nullable: true - }, - - exchangeRate: { - type: "String", - keyRaw: "exchangeRate", - nullable: true - } - } - }, - - orderHistory: { - type: "OrderHistory", - keyRaw: "orderHistory", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - body: { - type: "String", - keyRaw: "body", - nullable: true - }, - - icon: { - type: "String", - keyRaw: "icon", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=1d5cc79e6a7326dc214e7c7637d5b3cfa7fcf5d78eebe13957c78dca03596adb"; \ No newline at end of file diff --git a/$houdini/artifacts/paySuccessPageHit.d.ts b/$houdini/artifacts/paySuccessPageHit.d.ts deleted file mode 100644 index a4a2ebd4..00000000 --- a/$houdini/artifacts/paySuccessPageHit.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -export type paySuccessPageHit = { - readonly "input": paySuccessPageHit$input, - readonly "result": paySuccessPageHit$result -}; - -export type paySuccessPageHit$result = { - readonly paySuccessPageHit: { - readonly id: string | null, - readonly orderNo: string | null, - readonly otp: string | null, - readonly createdAt: string | null, - readonly paySuccess: number | null, - readonly paymentMode: string | null, - readonly paymentStatus: string | null, - readonly paymentCurrency: string | null, - readonly paymentReferenceId: string | null, - readonly paymentOrderId: string | null, - readonly paymentReceipt: string | null, - readonly invoiceId: string | null, - readonly paymentGateway: string | null, - readonly codPaid: number | null, - readonly baseCodPaid: number | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly paymentMsg: string | null, - readonly paymentTime: string | null, - readonly paid: boolean | null, - readonly totalAmountRefunded: number | null, - readonly baseTotalAmountRefunded: number | null, - readonly amount: { - readonly qty: number | null, - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly baseAmount: { - readonly qty: number | null, - readonly subtotal: number | null, - readonly tax: number | null, - readonly discount: number | null, - readonly total: number | null, - readonly shipping: number | null - } | null, - readonly userFirstName: string | null, - readonly userLastName: string | null, - readonly userPhone: string | null, - readonly userEmail: string | null, - readonly address: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly items: ({ - readonly id: string | null, - readonly pid: string | null, - readonly posInvoiceNo: string | null, - readonly itemOrderNo: string | null, - readonly name: string | null, - readonly barcode: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly slug: string | null, - readonly foodType: string | null, - readonly price: number | null, - readonly basePrice: number | null, - readonly qty: number | null, - readonly shippingCharge: number | null, - readonly baseShippingCharge: number | null, - readonly tax: number | null, - readonly baseTax: number | null, - readonly time: string | null, - readonly usedOptions: ({ - readonly name: string | null, - readonly val: (string | null)[] | null, - readonly dates: (string | null)[] | null - } | null)[] | null, - readonly brandName: string | null, - readonly brandImg: string | null, - readonly color: string | null, - readonly size: string | null, - readonly status: string | null, - readonly type: string | null, - readonly returnReason: string | null, - readonly amountRefunded: number | null, - readonly baseAmountRefunded: number | null, - readonly vendorBusinessName: string | null, - readonly vendorAddress: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly town: string | null, - readonly city: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly address: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly orderHistory: ({ - readonly status: string | null, - readonly title: string | null, - readonly body: string | null, - readonly icon: string | null, - readonly public: boolean | null, - readonly index: number | null, - readonly time: string | null - } | null)[] | null - })[] | null - } | null -}; - -export type paySuccessPageHit$input = { - orderId?: string | null | undefined, - paymentReferenceId?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/paySuccessPageHit.js b/$houdini/artifacts/paySuccessPageHit.js deleted file mode 100644 index ec9765b5..00000000 --- a/$houdini/artifacts/paySuccessPageHit.js +++ /dev/null @@ -1,782 +0,0 @@ -export default { - name: "paySuccessPageHit", - kind: "HoudiniMutation", - hash: "12b2c483262027ab1d7a927feba5d8c324cd9e894503f5c6a77019f8ede31b26", - - raw: `mutation paySuccessPageHit($orderId: ID, $paymentReferenceId: String) { - paySuccessPageHit(orderId: $orderId, paymentReferenceId: $paymentReferenceId) { - id - orderNo - otp - createdAt - paySuccess - paymentMode - paymentStatus - paymentCurrency - paymentReferenceId - paymentOrderId - paymentReceipt - invoiceId - paymentGateway - codPaid - baseCodPaid - amountPaid - amountDue - paymentMsg - paymentTime - paid - totalAmountRefunded - baseTotalAmountRefunded - amount { - qty - subtotal - tax - discount - total - shipping - } - baseAmount { - qty - subtotal - tax - discount - total - shipping - } - userFirstName - userLastName - userPhone - userEmail - address { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - items { - id - pid - posInvoiceNo - itemOrderNo - name - barcode - img - imgCdn - slug - foodType - price - basePrice - qty - shippingCharge - baseShippingCharge - tax - baseTax - time - usedOptions { - name - val - dates - } - brandName - brandImg - color - size - status - type - returnReason - status - amountRefunded - baseAmountRefunded - vendorBusinessName - vendorAddress { - firstName - lastName - town - city - state - zip - address - lat - lng - id - } - orderHistory { - status - title - body - icon - public - index - time - id - } - } - } -} -`, - - rootType: "Mutation", - - selection: { - paySuccessPageHit: { - type: "Order", - keyRaw: "paySuccessPageHit(orderId: $orderId, paymentReferenceId: $paymentReferenceId)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - orderNo: { - type: "String", - keyRaw: "orderNo", - nullable: true - }, - - otp: { - type: "String", - keyRaw: "otp", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - paySuccess: { - type: "Int", - keyRaw: "paySuccess", - nullable: true - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentStatus: { - type: "String", - keyRaw: "paymentStatus", - nullable: true - }, - - paymentCurrency: { - type: "String", - keyRaw: "paymentCurrency", - nullable: true - }, - - paymentReferenceId: { - type: "String", - keyRaw: "paymentReferenceId", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentReceipt: { - type: "String", - keyRaw: "paymentReceipt", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - codPaid: { - type: "Float", - keyRaw: "codPaid", - nullable: true - }, - - baseCodPaid: { - type: "Float", - keyRaw: "baseCodPaid", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - paymentMsg: { - type: "String", - keyRaw: "paymentMsg", - nullable: true - }, - - paymentTime: { - type: "String", - keyRaw: "paymentTime", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - totalAmountRefunded: { - type: "Float", - keyRaw: "totalAmountRefunded", - nullable: true - }, - - baseTotalAmountRefunded: { - type: "Float", - keyRaw: "baseTotalAmountRefunded", - nullable: true - }, - - amount: { - type: "Amount", - keyRaw: "amount", - nullable: true, - - fields: { - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - baseAmount: { - type: "Amount", - keyRaw: "baseAmount", - nullable: true, - - fields: { - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - subtotal: { - type: "Float", - keyRaw: "subtotal", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - total: { - type: "Float", - keyRaw: "total", - nullable: true - }, - - shipping: { - type: "Float", - keyRaw: "shipping", - nullable: true - } - } - }, - - userFirstName: { - type: "String", - keyRaw: "userFirstName", - nullable: true - }, - - userLastName: { - type: "String", - keyRaw: "userLastName", - nullable: true - }, - - userPhone: { - type: "String", - keyRaw: "userPhone", - nullable: true - }, - - userEmail: { - type: "String", - keyRaw: "userEmail", - nullable: true - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - items: { - type: "OrderItem", - keyRaw: "items", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - pid: { - type: "ID", - keyRaw: "pid", - nullable: true - }, - - posInvoiceNo: { - type: "String", - keyRaw: "posInvoiceNo", - nullable: true - }, - - itemOrderNo: { - type: "String", - keyRaw: "itemOrderNo", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - basePrice: { - type: "Float", - keyRaw: "basePrice", - nullable: true - }, - - qty: { - type: "Int", - keyRaw: "qty", - nullable: true - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - baseShippingCharge: { - type: "Float", - keyRaw: "baseShippingCharge", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - baseTax: { - type: "Float", - keyRaw: "baseTax", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - usedOptions: { - type: "UsedOption", - keyRaw: "usedOptions", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - dates: { - type: "String", - keyRaw: "dates", - nullable: true - } - } - }, - - brandName: { - type: "String", - keyRaw: "brandName", - nullable: true - }, - - brandImg: { - type: "String", - keyRaw: "brandImg", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - size: { - type: "String", - keyRaw: "size", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - returnReason: { - type: "String", - keyRaw: "returnReason", - nullable: true - }, - - amountRefunded: { - type: "Float", - keyRaw: "amountRefunded", - nullable: true - }, - - baseAmountRefunded: { - type: "Float", - keyRaw: "baseAmountRefunded", - nullable: true - }, - - vendorBusinessName: { - type: "String", - keyRaw: "vendorBusinessName", - nullable: true - }, - - vendorAddress: { - type: "Address", - keyRaw: "vendorAddress", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - orderHistory: { - type: "OrderHistory", - keyRaw: "orderHistory", - nullable: true, - - fields: { - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - body: { - type: "String", - keyRaw: "body", - nullable: true - }, - - icon: { - type: "String", - keyRaw: "icon", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - id: { - type: "String", - keyRaw: "id", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - orderId: "ID", - paymentReferenceId: "String" - }, - - types: {} - } -}; - -"HoudiniHash=30fa7a0044e0e061fde7d4206d2715b479ea57e77748027aba4f2af335625fe1"; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethod.d.ts b/$houdini/artifacts/paymentMethod.d.ts deleted file mode 100644 index 9458756f..00000000 --- a/$houdini/artifacts/paymentMethod.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export type paymentMethod = { - readonly "input": paymentMethod$input, - readonly "result": paymentMethod$result | undefined -}; - -export type paymentMethod$result = { - readonly paymentMethod: { - readonly id: string, - readonly name: string, - readonly img: string | null, - readonly imgCdn: string | null, - readonly value: string | null, - readonly color: string | null, - readonly key: string | null, - readonly text: string | null, - readonly qrcode: string | null, - readonly type: string | null, - readonly instructions: string | null, - readonly position: number | null, - readonly active: boolean | null, - readonly isError: boolean | null - } | null -}; - -export type paymentMethod$afterLoad = { - readonly "input": { - readonly "paymentMethod": paymentMethod$input - }, - readonly "data": { - readonly "paymentMethod": paymentMethod$result - } -}; - -export type paymentMethod$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethod.js b/$houdini/artifacts/paymentMethod.js deleted file mode 100644 index d95d8c1f..00000000 --- a/$houdini/artifacts/paymentMethod.js +++ /dev/null @@ -1,132 +0,0 @@ -export default { - name: "paymentMethod", - kind: "HoudiniQuery", - hash: "e059fac7273413158870ab424dc75a33c3f05f06f5f791ae7de2f5c1aa7e217e", - - raw: `query paymentMethod($id: ID!) { - paymentMethod(id: $id) { - id - name - img - imgCdn - value - color - key - text - qrcode - type - instructions - position - active - isError - } -} -`, - - rootType: "Query", - - selection: { - paymentMethod: { - type: "PaymentMethod", - keyRaw: "paymentMethod(id: $id)", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - key: { - type: "String", - keyRaw: "key", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - qrcode: { - type: "String", - keyRaw: "qrcode", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - instructions: { - type: "String", - keyRaw: "instructions", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - isError: { - type: "Boolean", - keyRaw: "isError", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=e059fac7273413158870ab424dc75a33c3f05f06f5f791ae7de2f5c1aa7e217e"; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethods.d.ts b/$houdini/artifacts/paymentMethods.d.ts deleted file mode 100644 index c54efe99..00000000 --- a/$houdini/artifacts/paymentMethods.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -export type paymentMethods = { - readonly "input": paymentMethods$input, - readonly "result": paymentMethods$result | undefined -}; - -export type paymentMethods$result = { - readonly paymentMethods: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string, - readonly img: string | null, - readonly imgCdn: string | null, - readonly value: string | null, - readonly color: string | null, - readonly key: string | null, - readonly text: string | null, - readonly qrcode: string | null, - readonly type: string | null, - readonly instructions: string | null, - readonly position: number | null, - readonly active: boolean | null - } | null)[] | null - } | null -}; - -export type paymentMethods$afterLoad = { - readonly "input": { - readonly "paymentMethods": paymentMethods$input - }, - readonly "data": { - readonly "paymentMethods": paymentMethods$result - } -}; - -export type paymentMethods$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethods.js b/$houdini/artifacts/paymentMethods.js deleted file mode 100644 index f9978147..00000000 --- a/$houdini/artifacts/paymentMethods.js +++ /dev/null @@ -1,168 +0,0 @@ -export default { - name: "paymentMethods", - kind: "HoudiniQuery", - hash: "c94fe98fa92a3d9cac64f3ca66010ec13c19aac0392dd1adba65b17306f5598f", - - raw: `query paymentMethods($page: Int, $search: String, $limit: Int, $sort: String, $store: ID, $active: Boolean) { - paymentMethods( - page: $page - search: $search - limit: $limit - sort: $sort - active: $active - store: $store - ) { - count - page - pageSize - data { - id - name - img - imgCdn - value - color - key - text - qrcode - type - instructions - position - active - } - } -} -`, - - rootType: "Query", - - selection: { - paymentMethods: { - type: "PayMethodRes", - keyRaw: "paymentMethods(page: $page, search: $search, limit: $limit, sort: $sort, active: $active, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "PaymentMethod", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - key: { - type: "String", - keyRaw: "key", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - qrcode: { - type: "String", - keyRaw: "qrcode", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - instructions: { - type: "String", - keyRaw: "instructions", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID", - active: "Boolean" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=5f89d3c130e81ca1c7be33c499e4e2e307e742f38222f668170f37df09383ce1"; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethodsAdmin.d.ts b/$houdini/artifacts/paymentMethodsAdmin.d.ts deleted file mode 100644 index 9a16d54a..00000000 --- a/$houdini/artifacts/paymentMethodsAdmin.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -export type paymentMethodsAdmin = { - readonly "input": paymentMethodsAdmin$input, - readonly "result": paymentMethodsAdmin$result | undefined -}; - -export type paymentMethodsAdmin$result = { - readonly paymentMethodsAdmin: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string, - readonly img: string | null, - readonly imgCdn: string | null, - readonly value: string | null, - readonly color: string | null, - readonly key: string | null, - readonly text: string | null, - readonly qrcode: string | null, - readonly type: string | null, - readonly instructions: string | null, - readonly position: number | null, - readonly active: boolean | null, - readonly isError: boolean | null - } | null)[] | null - } | null -}; - -export type paymentMethodsAdmin$afterLoad = { - readonly "input": { - readonly "paymentMethodsAdmin": paymentMethodsAdmin$input - }, - readonly "data": { - readonly "paymentMethodsAdmin": paymentMethodsAdmin$result - } -}; - -export type paymentMethodsAdmin$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - active?: boolean | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/paymentMethodsAdmin.js b/$houdini/artifacts/paymentMethodsAdmin.js deleted file mode 100644 index 103ac85e..00000000 --- a/$houdini/artifacts/paymentMethodsAdmin.js +++ /dev/null @@ -1,175 +0,0 @@ -export default { - name: "paymentMethodsAdmin", - kind: "HoudiniQuery", - hash: "dcd75b5e5d966147c7d2dc3cb79d3f736802ada1636b61abdb60905966ced2d4", - - raw: `query paymentMethodsAdmin($page: Int, $search: String, $limit: Int, $sort: String, $active: Boolean, $store: ID) { - paymentMethodsAdmin( - page: $page - search: $search - limit: $limit - sort: $sort - active: $active - store: $store - ) { - count - page - pageSize - data { - id - name - img - imgCdn - value - color - key - text - qrcode - type - instructions - position - active - isError - } - } -} -`, - - rootType: "Query", - - selection: { - paymentMethodsAdmin: { - type: "PayMethodRes", - keyRaw: "paymentMethodsAdmin(page: $page, search: $search, limit: $limit, sort: $sort, active: $active, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "PaymentMethod", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - key: { - type: "String", - keyRaw: "key", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - qrcode: { - type: "String", - keyRaw: "qrcode", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - instructions: { - type: "String", - keyRaw: "instructions", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - isError: { - type: "Boolean", - keyRaw: "isError", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - active: "Boolean", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=bf63efaaa647e2ab8e3dab1818f70718443ff07e884111cd348a6bc7077e22c7"; \ No newline at end of file diff --git a/$houdini/artifacts/popularSearches.d.ts b/$houdini/artifacts/popularSearches.d.ts deleted file mode 100644 index f0ba549e..00000000 --- a/$houdini/artifacts/popularSearches.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export type popularSearches = { - readonly "input": popularSearches$input, - readonly "result": popularSearches$result | undefined -}; - -export type popularSearches$result = { - readonly popularSearches: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly text: string | null, - readonly popularity: string | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null, - readonly phone: string | null - } | null - } | null)[] | null - } | null -}; - -export type popularSearches$afterLoad = { - readonly "input": { - readonly "popularSearches": popularSearches$input - }, - readonly "data": { - readonly "popularSearches": popularSearches$result - } -}; - -export type popularSearches$input = { - page?: number | null | undefined, - limit?: number | null | undefined, - search?: string | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined, - domain?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/popularSearches.js b/$houdini/artifacts/popularSearches.js deleted file mode 100644 index 1e7f6525..00000000 --- a/$houdini/artifacts/popularSearches.js +++ /dev/null @@ -1,136 +0,0 @@ -export default { - name: "popularSearches", - kind: "HoudiniQuery", - hash: "9376f0f29fa810e1e07dd15e72acbf19c71646717eacce1fc9007b73191675ff", - - raw: `query popularSearches($page: Int, $limit: Int, $search: String, $sort: String, $store: ID, $domain: String) { - popularSearches( - page: $page - search: $search - limit: $limit - sort: $sort - store: $store - domain: $domain - ) { - count - page - pageSize - data { - id - text - popularity - store { - id - name - email - phone - } - } - } -} -`, - - rootType: "Query", - - selection: { - popularSearches: { - type: "PopularSearchRes", - keyRaw: "popularSearches(page: $page, search: $search, limit: $limit, sort: $sort, store: $store, domain: $domain)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "PopularSearch", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - popularity: { - type: "String", - keyRaw: "popularity", - nullable: true - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - limit: "Int", - search: "String", - sort: "String", - store: "ID", - domain: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=035a5e1eefa7e3c4e526fd9e4e5b2cb5e86f92b007ca165bb4914b9aabeeb5bf"; \ No newline at end of file diff --git a/$houdini/artifacts/product.d.ts b/$houdini/artifacts/product.d.ts deleted file mode 100644 index a88c2037..00000000 --- a/$houdini/artifacts/product.d.ts +++ /dev/null @@ -1,233 +0,0 @@ -export type product = { - readonly "input": product$input, - readonly "result": product$result | undefined -}; - -export type product$result = { - readonly product: { - readonly id: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly description: string | null, - readonly type: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly discount: number | null, - readonly stock: number | null, - readonly trackInventory: boolean | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly active: boolean | null, - readonly popularity: number | null, - readonly position: number | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly sku: string | null, - readonly hsn: string | null, - readonly group: string | null, - readonly barcode: string | null, - readonly gender: string | null, - readonly gtin: string | null, - readonly condition: string | null, - readonly trending: boolean | null, - readonly featured: boolean | null, - readonly hot: boolean | null, - readonly new: boolean | null, - readonly sale: boolean | null, - readonly recommended: boolean | null, - readonly title: string | null, - readonly itemId: string | null, - readonly warranty: string | null, - readonly metaDescription: string | null, - readonly keywords: string | null, - readonly keywordsA: (string | null)[] | null, - readonly ageMin: number | null, - readonly ageMax: number | null, - readonly ageUnit: string | null, - readonly styleCode: string | null, - readonly eanNo: string | null, - readonly articleCode: string | null, - readonly productMasterId: string | null, - readonly currency: string | null, - readonly manufacturer: string | null, - readonly countryOfOrigin: string | null, - readonly returnInfo: string | null, - readonly link: string | null, - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null, - readonly sizechart: string | null, - readonly batchNo: string | null, - readonly mfgDate: string | null, - readonly expired: boolean | null, - readonly expiryDate: string | null, - readonly isSearchable: boolean | null, - readonly isUnlimited: boolean | null, - readonly totalSold: number | null, - readonly preOrder: boolean | null, - readonly zips: (string)[] | null, - readonly foodType: string | null, - readonly deliveryDetails: string | null, - readonly slots: ({ - readonly id: string | null, - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly country: { - readonly id: string, - readonly name: string - } | null, - readonly sizeGroup: ({ - readonly _id: string | null, - readonly slug: string | null, - readonly size: { - readonly name: string | null - } | null - } | null)[] | null, - readonly colorGroup: ({ - readonly _id: string | null, - readonly slug: string | null, - readonly color: { - readonly name: string | null, - readonly color_code: string | null - } | null - } | null)[] | null, - readonly brand: { - readonly id: string, - readonly name: string | null - } | null, - readonly parentBrand: { - readonly id: string, - readonly name: string | null - } | null, - readonly color: { - readonly id: string, - readonly name: string | null - } | null, - readonly size: { - readonly id: string, - readonly name: string | null - } | null, - readonly category: { - readonly id: string, - readonly name: string | null, - readonly slug: string | null, - readonly pathA: ({ - readonly name: string | null, - readonly slug: string | null - } | null)[] | null - } | null, - readonly categories: ({ - readonly id: string, - readonly name: string | null - })[] | null, - readonly categoryPool: ({ - readonly id: string, - readonly name: string | null - })[] | null, - readonly keyFeatures: (string | null)[] | null, - readonly features: ({ - readonly id: string, - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly specifications: ({ - readonly id: string, - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly productDetails: ({ - readonly id: string, - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly channels: ({ - readonly id: string, - readonly title: string | null, - readonly img: string | null, - readonly scheduleDateTime: number | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null - } | null - } | null)[] | null, - readonly collections: ({ - readonly id: string, - readonly name: string | null, - readonly description: string | null, - readonly active: boolean | null, - readonly images: (string | null)[] | null, - readonly img: string | null, - readonly q: string | null, - readonly sort: string | null, - readonly type: string | null - } | null)[] | null, - readonly options: ({ - readonly id: string | null, - readonly name: string | null, - readonly inputType: string | null, - readonly required: boolean | null, - readonly preselectDefault: boolean | null, - readonly position: number | null, - readonly values: ({ - readonly id: string, - readonly name: string | null, - readonly default: boolean | null, - readonly position: number | null, - readonly direction: string | null, - readonly isPercent: boolean | null, - readonly value: number | null - } | null)[] | null - } | null)[] | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly info: { - readonly store: string | null, - readonly public: boolean | null, - readonly storePhotos: (string | null)[] | null - } | null - } | null, - readonly relatedProducts: ({ - readonly id: string | null, - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null - } | null)[] | null, - readonly returnAllowed: boolean | null, - readonly replaceAllowed: boolean | null, - readonly returnValidityInDays: number | null, - readonly replaceValidityInDays: number | null, - readonly files: (string | null)[] | null, - readonly unit: string | null, - readonly dimensionUnit: string | null, - readonly formattedMrp: string | null, - readonly formattedPrice: string | null, - readonly createdAt: string, - readonly updatedAt: string - } | null -}; - -export type product$afterLoad = { - readonly "input": { - readonly "product": product$input - }, - readonly "data": { - readonly "product": product$result - } -}; - -export type product$input = { - id: string, - zip?: string | null | undefined, - optionValues?: (string | null | undefined)[] | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/product.js b/$houdini/artifacts/product.js deleted file mode 100644 index 8dbe99fe..00000000 --- a/$houdini/artifacts/product.js +++ /dev/null @@ -1,1427 +0,0 @@ -export default { - name: "product", - kind: "HoudiniQuery", - hash: "76b4112bed6fe61a31b0b75c1be4f0673a695e44c2231c6f74e1e43c2a623a9d", - - raw: `query product($id: ID!, $zip: String, $optionValues: [ID]) { - product(id: $id, zip: $zip, optionValues: $optionValues) { - id - slug - name - description - type - price - mrp - discount - stock - trackInventory - tax - img - imgCdn - images - imagesCdn - time - active - popularity - position - ratings - reviews - sku - hsn - group - barcode - gender - gtin - condition - trending - featured - hot - new - sale - recommended - title - itemId - warranty - metaDescription - keywords - keywordsA - ageMin - ageMax - ageUnit - styleCode - eanNo - articleCode - productMasterId - currency - manufacturer - countryOfOrigin - returnInfo - link - gender - condition - gtin - cgst - sgst - igst - sizechart - batchNo - mfgDate - expired - expiryDate - isSearchable - isUnlimited - totalSold - preOrder - zips - foodType - deliveryDetails - slots { - id - name - value - } - country { - id - name - } - sizeGroup { - _id - slug - size { - name - id - } - id - } - colorGroup { - _id - slug - color { - name - color_code - id - } - id - } - brand { - id - name - } - parentBrand { - id - name - } - color { - id - name - } - size { - id - name - } - category { - id - name - slug - pathA { - name - slug - id - } - } - categories { - id - name - } - categoryPool { - id - name - } - keyFeatures - features { - id - name - value - } - specifications { - id - name - value - } - productDetails { - id - name - value - } - channels { - id - title - img - scheduleDateTime - user { - firstName - lastName - id - } - } - collections { - id - name - description - active - images - img - q - sort - type - } - options { - id - name - inputType - required - preselectDefault - position - values { - id - name - default - position - direction - isPercent - value - } - } - vendor { - id - slug - businessName - banner - bannerCdn - ratings - reviews - info { - store - public - storePhotos - } - } - relatedProducts { - id - name - slug - img - } - returnInfo - returnAllowed - replaceAllowed - returnValidityInDays - replaceValidityInDays - files - unit - dimensionUnit - formattedMrp - formattedPrice - createdAt - updatedAt - } -} -`, - - rootType: "Query", - - selection: { - product: { - type: "Product", - keyRaw: "product(id: $id, zip: $zip, optionValues: $optionValues)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - discount: { - type: "Float", - keyRaw: "discount", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - trackInventory: { - type: "Boolean", - keyRaw: "trackInventory", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - position: { - type: "Float", - keyRaw: "position", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - hsn: { - type: "String", - keyRaw: "hsn", - nullable: true - }, - - group: { - type: "String", - keyRaw: "group", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - gender: { - type: "String", - keyRaw: "gender", - nullable: true - }, - - gtin: { - type: "String", - keyRaw: "gtin", - nullable: true - }, - - condition: { - type: "String", - keyRaw: "condition", - nullable: true - }, - - trending: { - type: "Boolean", - keyRaw: "trending", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - hot: { - type: "Boolean", - keyRaw: "hot", - nullable: true - }, - - new: { - type: "Boolean", - keyRaw: "new", - nullable: true - }, - - sale: { - type: "Boolean", - keyRaw: "sale", - nullable: true - }, - - recommended: { - type: "Boolean", - keyRaw: "recommended", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - itemId: { - type: "String", - keyRaw: "itemId", - nullable: true - }, - - warranty: { - type: "String", - keyRaw: "warranty", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - keywordsA: { - type: "String", - keyRaw: "keywordsA", - nullable: true - }, - - ageMin: { - type: "Int", - keyRaw: "ageMin", - nullable: true - }, - - ageMax: { - type: "Int", - keyRaw: "ageMax", - nullable: true - }, - - ageUnit: { - type: "String", - keyRaw: "ageUnit", - nullable: true - }, - - styleCode: { - type: "String", - keyRaw: "styleCode", - nullable: true - }, - - eanNo: { - type: "String", - keyRaw: "eanNo", - nullable: true - }, - - articleCode: { - type: "String", - keyRaw: "articleCode", - nullable: true - }, - - productMasterId: { - type: "String", - keyRaw: "productMasterId", - nullable: true - }, - - currency: { - type: "String", - keyRaw: "currency", - nullable: true - }, - - manufacturer: { - type: "String", - keyRaw: "manufacturer", - nullable: true - }, - - countryOfOrigin: { - type: "String", - keyRaw: "countryOfOrigin", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - link: { - type: "String", - keyRaw: "link", - nullable: true - }, - - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - }, - - sizechart: { - type: "String", - keyRaw: "sizechart", - nullable: true - }, - - batchNo: { - type: "String", - keyRaw: "batchNo", - nullable: true - }, - - mfgDate: { - type: "String", - keyRaw: "mfgDate", - nullable: true - }, - - expired: { - type: "Boolean", - keyRaw: "expired", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - isSearchable: { - type: "Boolean", - keyRaw: "isSearchable", - nullable: true - }, - - isUnlimited: { - type: "Boolean", - keyRaw: "isUnlimited", - nullable: true - }, - - totalSold: { - type: "Int", - keyRaw: "totalSold", - nullable: true - }, - - preOrder: { - type: "Boolean", - keyRaw: "preOrder", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - slots: { - type: "Slot", - keyRaw: "slots", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - } - } - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - } - } - }, - - sizeGroup: { - type: "Product", - keyRaw: "sizeGroup", - nullable: true, - - fields: { - _id: { - type: "ID", - keyRaw: "_id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - size: { - type: "Size", - keyRaw: "size", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - colorGroup: { - type: "Product", - keyRaw: "colorGroup", - nullable: true, - - fields: { - _id: { - type: "ID", - keyRaw: "_id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - color: { - type: "Color", - keyRaw: "color", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - color_code: { - type: "String", - keyRaw: "color_code", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - brand: { - type: "Brand", - keyRaw: "brand", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - parentBrand: { - type: "Brand", - keyRaw: "parentBrand", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - color: { - type: "Color", - keyRaw: "color", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - size: { - type: "Size", - keyRaw: "size", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - category: { - type: "Category", - keyRaw: "category", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - pathA: { - type: "Category", - keyRaw: "pathA", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - } - } - }, - - categories: { - type: "Category", - keyRaw: "categories", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - categoryPool: { - type: "Category", - keyRaw: "categoryPool", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - keyFeatures: { - type: "String", - keyRaw: "keyFeatures", - nullable: true - }, - - features: { - type: "Feature", - keyRaw: "features", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - } - } - }, - - specifications: { - type: "Feature", - keyRaw: "specifications", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - } - } - }, - - productDetails: { - type: "Feature", - keyRaw: "productDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - } - } - }, - - channels: { - type: "Channel", - keyRaw: "channels", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - scheduleDateTime: { - type: "Float", - keyRaw: "scheduleDateTime", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - } - } - }, - - collections: { - type: "Collection", - keyRaw: "collections", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - q: { - type: "String", - keyRaw: "q", - nullable: true - }, - - sort: { - type: "String", - keyRaw: "sort", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - } - } - }, - - options: { - type: "Option", - keyRaw: "options", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - inputType: { - type: "String", - keyRaw: "inputType", - nullable: true - }, - - required: { - type: "Boolean", - keyRaw: "required", - nullable: true - }, - - preselectDefault: { - type: "Boolean", - keyRaw: "preselectDefault", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - values: { - type: "OptionValue", - keyRaw: "values", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - direction: { - type: "String", - keyRaw: "direction", - nullable: true - }, - - isPercent: { - type: "Boolean", - keyRaw: "isPercent", - nullable: true - }, - - value: { - type: "Float", - keyRaw: "value", - nullable: true - } - } - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - info: { - type: "Info", - keyRaw: "info", - nullable: true, - - fields: { - store: { - type: "String", - keyRaw: "store", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - storePhotos: { - type: "String", - keyRaw: "storePhotos", - nullable: true - } - } - } - } - }, - - relatedProducts: { - type: "Product", - keyRaw: "relatedProducts", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - } - } - }, - - returnAllowed: { - type: "Boolean", - keyRaw: "returnAllowed", - nullable: true - }, - - replaceAllowed: { - type: "Boolean", - keyRaw: "replaceAllowed", - nullable: true - }, - - returnValidityInDays: { - type: "Int", - keyRaw: "returnValidityInDays", - nullable: true - }, - - replaceValidityInDays: { - type: "Int", - keyRaw: "replaceValidityInDays", - nullable: true - }, - - files: { - type: "String", - keyRaw: "files", - nullable: true - }, - - unit: { - type: "String", - keyRaw: "unit", - nullable: true - }, - - dimensionUnit: { - type: "String", - keyRaw: "dimensionUnit", - nullable: true - }, - - formattedMrp: { - type: "String", - keyRaw: "formattedMrp", - nullable: true - }, - - formattedPrice: { - type: "String", - keyRaw: "formattedPrice", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - }, - - input: { - fields: { - id: "ID", - zip: "String", - optionValues: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=1cb69f930a0c5474b9fdd4499ebfce21cef5085d49ce609adbab16d490568ed3"; \ No newline at end of file diff --git a/$houdini/artifacts/productReviews.d.ts b/$houdini/artifacts/productReviews.d.ts deleted file mode 100644 index cfa18d9a..00000000 --- a/$houdini/artifacts/productReviews.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export type productReviews = { - readonly "input": productReviews$input, - readonly "result": productReviews$result | undefined -}; - -export type productReviews$result = { - readonly productReviews: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly rating: number | null, - readonly message: string | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly avatar: string | null - } | null, - readonly active: boolean | null - } | null)[] | null - } | null -}; - -export type productReviews$afterLoad = { - readonly "input": { - readonly "productReviews": productReviews$input - }, - readonly "data": { - readonly "productReviews": productReviews$result - } -}; - -export type productReviews$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - pid: string, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/productReviews.js b/$houdini/artifacts/productReviews.js deleted file mode 100644 index 3f28b4ff..00000000 --- a/$houdini/artifacts/productReviews.js +++ /dev/null @@ -1,142 +0,0 @@ -export default { - name: "productReviews", - kind: "HoudiniQuery", - hash: "d349e34830b1ec337bace0cc90cc2dd3a8bf092245580c2754b0be4c7b3ce9d0", - - raw: `query productReviews($page: Int, $search: String, $limit: Int, $pid: ID!, $active: Boolean) { - productReviews( - page: $page - search: $search - limit: $limit - pid: $pid - active: $active - ) { - count - page - pageSize - data { - id - rating - message - user { - firstName - lastName - avatar - id - } - active - } - } -} -`, - - rootType: "Query", - - selection: { - productReviews: { - type: "ReviewRes", - keyRaw: "productReviews(page: $page, search: $search, limit: $limit, pid: $pid, active: $active)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Review", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - rating: { - type: "Float", - keyRaw: "rating", - nullable: true - }, - - message: { - type: "String", - keyRaw: "message", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - pid: "ID", - active: "Boolean" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=c1b59e755fd8faee540ac614f031dfb8767c686b188346091976a684c8fd2485"; \ No newline at end of file diff --git a/$houdini/artifacts/productSlug.d.ts b/$houdini/artifacts/productSlug.d.ts deleted file mode 100644 index 333e33b4..00000000 --- a/$houdini/artifacts/productSlug.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -export type productSlug = { - readonly "input": productSlug$input, - readonly "result": productSlug$result | undefined -}; - -export type productSlug$result = { - readonly productSlug: { - readonly id: string | null, - readonly name: string | null, - readonly description: string | null, - readonly metaDescription: string | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly sku: string | null, - readonly hsn: string | null, - readonly popularity: number | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly price: number | null, - readonly mrp: number | null, - readonly formattedPrice: string | null, - readonly formattedMrp: string | null, - readonly stock: number | null, - readonly isUnlimited: boolean | null, - readonly trackInventory: boolean | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly returnInfo: string | null, - readonly replaceValidityInDays: number | null, - readonly returnAllowed: boolean | null, - readonly replaceAllowed: boolean | null, - readonly color: { - readonly id: string, - readonly name: string | null - } | null, - readonly size: { - readonly name: string | null - } | null, - readonly brand: { - readonly name: string | null - } | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly info: { - readonly store: string | null, - readonly public: boolean | null, - readonly storePhotos: (string | null)[] | null - } | null - } | null - } | null -}; - -export type productSlug$afterLoad = { - readonly "input": { - readonly "productSlug": productSlug$input - }, - readonly "data": { - readonly "productSlug": productSlug$result - } -}; - -export type productSlug$input = { - slug: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/productSlug.js b/$houdini/artifacts/productSlug.js deleted file mode 100644 index bf630732..00000000 --- a/$houdini/artifacts/productSlug.js +++ /dev/null @@ -1,383 +0,0 @@ -export default { - name: "productSlug", - kind: "HoudiniQuery", - hash: "93fa829181a4d6d1f2c9819f10efd9e8399d10672fb1c77103e0cfe9934cf101", - - raw: `query productSlug($slug: String!) { - productSlug(slug: $slug) { - id - name - description - metaDescription - createdAt - updatedAt - sku - hsn - popularity - slug - img - imgCdn - images - imagesCdn - price - mrp - formattedPrice - formattedMrp - stock - isUnlimited - trackInventory - ratings - reviews - returnInfo - replaceValidityInDays - returnAllowed - replaceValidityInDays - replaceAllowed - color { - id - name - } - size { - name - id - } - brand { - name - id - } - vendor { - id - slug - businessName - banner - bannerCdn - ratings - reviews - info { - store - public - storePhotos - } - } - } -} -`, - - rootType: "Query", - - selection: { - productSlug: { - type: "Product", - keyRaw: "productSlug(slug: $slug)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - hsn: { - type: "String", - keyRaw: "hsn", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - formattedPrice: { - type: "String", - keyRaw: "formattedPrice", - nullable: true - }, - - formattedMrp: { - type: "String", - keyRaw: "formattedMrp", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - isUnlimited: { - type: "Boolean", - keyRaw: "isUnlimited", - nullable: true - }, - - trackInventory: { - type: "Boolean", - keyRaw: "trackInventory", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - replaceValidityInDays: { - type: "Int", - keyRaw: "replaceValidityInDays", - nullable: true - }, - - returnAllowed: { - type: "Boolean", - keyRaw: "returnAllowed", - nullable: true - }, - - replaceAllowed: { - type: "Boolean", - keyRaw: "replaceAllowed", - nullable: true - }, - - color: { - type: "Color", - keyRaw: "color", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - size: { - type: "Size", - keyRaw: "size", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - brand: { - type: "Brand", - keyRaw: "brand", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - info: { - type: "Info", - keyRaw: "info", - nullable: true, - - fields: { - store: { - type: "String", - keyRaw: "store", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - storePhotos: { - type: "String", - keyRaw: "storePhotos", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - slug: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=d26a9651eebdd359d59decf7292ec6ce9e8167ab707131fbeb8f73155ab68049"; \ No newline at end of file diff --git a/$houdini/artifacts/products.d.ts b/$houdini/artifacts/products.d.ts deleted file mode 100644 index bc80f223..00000000 --- a/$houdini/artifacts/products.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -export type products = { - readonly "input": products$input, - readonly "result": products$result | undefined -}; - -export type products$result = { - readonly products: { - readonly count: number | null, - readonly pageSize: number | null, - readonly noOfPage: number | null, - readonly page: number | null, - readonly data: ({ - readonly id: string | null, - readonly sku: string | null, - readonly barcode: string | null, - readonly productMasterId: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly description: string | null, - readonly type: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly stock: number | null, - readonly trackInventory: boolean | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly active: boolean | null, - readonly popularity: number | null, - readonly position: number | null, - readonly trending: boolean | null, - readonly featured: boolean | null, - readonly hot: boolean | null, - readonly new: boolean | null, - readonly sale: boolean | null, - readonly recommended: boolean | null, - readonly title: string | null, - readonly metaDescription: string | null, - readonly keywords: string | null, - readonly keywordsA: (string | null)[] | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly itemId: string | null, - readonly warranty: string | null, - readonly ageMin: number | null, - readonly ageMax: number | null, - readonly ageUnit: string | null, - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null, - readonly returnInfo: string | null, - readonly returnAllowed: boolean | null, - readonly replaceAllowed: boolean | null, - readonly returnValidityInDays: number | null, - readonly sizechart: string | null, - readonly batchNo: string | null, - readonly mfgDate: string | null, - readonly expired: boolean | null, - readonly expiryDate: string | null, - readonly isSearchable: boolean | null, - readonly isUnlimited: boolean | null, - readonly totalSold: number | null, - readonly preOrder: boolean | null, - readonly zips: (string)[] | null, - readonly foodType: string | null, - readonly deliveryDetails: string | null, - readonly formattedMrp: string | null, - readonly formattedPrice: string | null, - readonly slots: ({ - readonly id: string | null, - readonly name: string | null, - readonly value: string | null - } | null)[] | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null, - readonly category: { - readonly name: string | null - } | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly info: { - readonly store: string | null, - readonly public: boolean | null, - readonly storePhotos: (string | null)[] | null - } | null - } | null - } | null)[] | null - } | null -}; - -export type products$afterLoad = { - readonly "input": { - readonly "products": products$input - }, - readonly "data": { - readonly "products": products$result - } -}; - -export type products$input = { - page?: number | null | undefined, - skip?: number | null | undefined, - limit?: number | null | undefined, - search?: string | null | undefined, - sku?: string | null | undefined, - name?: string | null | undefined, - brand?: string | null | undefined, - status?: string | null | undefined, - price?: string | null | undefined, - sort?: string | null | undefined, - vendor?: string | null | undefined, - category?: string | null | undefined, - active?: boolean | null | undefined, - featured?: boolean | null | undefined, - new?: boolean | null | undefined, - hot?: boolean | null | undefined, - sale?: boolean | null | undefined, - where?: string | null | undefined, - store?: string | null | undefined, - types?: (string | null | undefined)[] | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/products.js b/$houdini/artifacts/products.js deleted file mode 100644 index a0f41701..00000000 --- a/$houdini/artifacts/products.js +++ /dev/null @@ -1,701 +0,0 @@ -export default { - name: "products", - kind: "HoudiniQuery", - hash: "556eab19f8447260f5a3c7b8d4a1c5b940142d2b689a83ba5d63f62c9d3dc6b9", - - raw: `query products($page: Int, $skip: Int, $limit: Int, $search: String, $sku: String, $name: String, $brand: String, $status: String, $price: String, $sort: String, $vendor: String, $category: String, $active: Boolean, $featured: Boolean, $new: Boolean, $hot: Boolean, $sale: Boolean, $where: String, $store: ID, $types: [String]) { - products( - page: $page - skip: $skip - limit: $limit - search: $search - sku: $sku - name: $name - brand: $brand - status: $status - price: $price - sort: $sort - vendor: $vendor - category: $category - active: $active - featured: $featured - new: $new - hot: $hot - sale: $sale - where: $where - store: $store - types: $types - ) { - count - pageSize - noOfPage - page - data { - id - sku - barcode - productMasterId - slug - name - description - type - price - mrp - stock - trackInventory - tax - img - imgCdn - images - imagesCdn - time - active - popularity - position - trending - featured - hot - new - sale - recommended - title - metaDescription - keywords - keywordsA - ratings - reviews - itemId - warranty - ageMin - ageMax - ageUnit - cgst - sgst - igst - returnInfo - returnAllowed - replaceAllowed - returnValidityInDays - sizechart - batchNo - mfgDate - expired - expiryDate - isSearchable - isUnlimited - totalSold - preOrder - zips - foodType - deliveryDetails - formattedMrp - formattedPrice - slots { - id - name - value - } - store { - id - name - email - } - category { - name - id - } - vendor { - id - slug - businessName - banner - bannerCdn - ratings - reviews - info { - store - public - storePhotos - } - } - } - } -} -`, - - rootType: "Query", - - selection: { - products: { - type: "SearchRes", - keyRaw: "products(page: $page, skip: $skip, limit: $limit, search: $search, sku: $sku, name: $name, brand: $brand, status: $status, price: $price, sort: $sort, vendor: $vendor, category: $category, active: $active, featured: $featured, new: $new, hot: $hot, sale: $sale, where: $where, store: $store, types: $types)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - noOfPage: { - type: "Int", - keyRaw: "noOfPage", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - data: { - type: "Product", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - productMasterId: { - type: "String", - keyRaw: "productMasterId", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - trackInventory: { - type: "Boolean", - keyRaw: "trackInventory", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - position: { - type: "Float", - keyRaw: "position", - nullable: true - }, - - trending: { - type: "Boolean", - keyRaw: "trending", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - hot: { - type: "Boolean", - keyRaw: "hot", - nullable: true - }, - - new: { - type: "Boolean", - keyRaw: "new", - nullable: true - }, - - sale: { - type: "Boolean", - keyRaw: "sale", - nullable: true - }, - - recommended: { - type: "Boolean", - keyRaw: "recommended", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - keywordsA: { - type: "String", - keyRaw: "keywordsA", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - itemId: { - type: "String", - keyRaw: "itemId", - nullable: true - }, - - warranty: { - type: "String", - keyRaw: "warranty", - nullable: true - }, - - ageMin: { - type: "Int", - keyRaw: "ageMin", - nullable: true - }, - - ageMax: { - type: "Int", - keyRaw: "ageMax", - nullable: true - }, - - ageUnit: { - type: "String", - keyRaw: "ageUnit", - nullable: true - }, - - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - returnAllowed: { - type: "Boolean", - keyRaw: "returnAllowed", - nullable: true - }, - - replaceAllowed: { - type: "Boolean", - keyRaw: "replaceAllowed", - nullable: true - }, - - returnValidityInDays: { - type: "Int", - keyRaw: "returnValidityInDays", - nullable: true - }, - - sizechart: { - type: "String", - keyRaw: "sizechart", - nullable: true - }, - - batchNo: { - type: "String", - keyRaw: "batchNo", - nullable: true - }, - - mfgDate: { - type: "String", - keyRaw: "mfgDate", - nullable: true - }, - - expired: { - type: "Boolean", - keyRaw: "expired", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - isSearchable: { - type: "Boolean", - keyRaw: "isSearchable", - nullable: true - }, - - isUnlimited: { - type: "Boolean", - keyRaw: "isUnlimited", - nullable: true - }, - - totalSold: { - type: "Int", - keyRaw: "totalSold", - nullable: true - }, - - preOrder: { - type: "Boolean", - keyRaw: "preOrder", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - }, - - formattedMrp: { - type: "String", - keyRaw: "formattedMrp", - nullable: true - }, - - formattedPrice: { - type: "String", - keyRaw: "formattedPrice", - nullable: true - }, - - slots: { - type: "Slot", - keyRaw: "slots", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - }, - - category: { - type: "Category", - keyRaw: "category", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - info: { - type: "Info", - keyRaw: "info", - nullable: true, - - fields: { - store: { - type: "String", - keyRaw: "store", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - storePhotos: { - type: "String", - keyRaw: "storePhotos", - nullable: true - } - } - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - skip: "Int", - limit: "Int", - search: "String", - sku: "String", - name: "String", - brand: "String", - status: "String", - price: "String", - sort: "String", - vendor: "String", - category: "String", - active: "Boolean", - featured: "Boolean", - new: "Boolean", - hot: "Boolean", - sale: "Boolean", - where: "String", - store: "ID", - types: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=c264d635b825fb32b2bddedd24b7a5c38d8722afff274407a783f52740dfc57b"; \ No newline at end of file diff --git a/$houdini/artifacts/randomVendors.d.ts b/$houdini/artifacts/randomVendors.d.ts deleted file mode 100644 index ec7ca31b..00000000 --- a/$houdini/artifacts/randomVendors.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -export type randomVendors = { - readonly "input": randomVendors$input, - readonly "result": randomVendors$result | undefined -}; - -export type randomVendors$result = { - readonly randomVendors: ({ - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly description: string | null, - readonly verified: boolean | null, - readonly bankAccountNo: number | null, - readonly bankName: string | null, - readonly bankIfsc: string | null, - readonly bankAccountHolderName: string | null, - readonly bankSwiftCode: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly commissionType: string | null, - readonly commissionValue: number | null, - readonly zips: (string | null)[] | null, - readonly freeShippingOn: number | null, - readonly meta: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly metaTitle: string | null, - readonly productSold: number | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly shippingCharges: number | null, - readonly storeName: string | null, - readonly facebookUrl: string | null, - readonly githubUrl: string | null, - readonly googleUrl: string | null, - readonly twitterUrl: string | null, - readonly user: { - readonly id: string | null, - readonly avatar: string | null, - readonly firstName: string | null, - readonly lastName: string | null - } | null, - readonly address: { - readonly id: string, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly city: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly categories: ({ - readonly id: string, - readonly name: string | null, - readonly img: string | null, - readonly imgCdn: string | null - } | null)[] | null, - readonly createdAt: string | null, - readonly updatedAt: string | null - } | null)[] | null -}; - -export type randomVendors$afterLoad = { - readonly "input": { - readonly "randomVendors": randomVendors$input - }, - readonly "data": { - readonly "randomVendors": randomVendors$result - } -}; - -export type randomVendors$input = { - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/randomVendors.js b/$houdini/artifacts/randomVendors.js deleted file mode 100644 index 0bc10c07..00000000 --- a/$houdini/artifacts/randomVendors.js +++ /dev/null @@ -1,435 +0,0 @@ -export default { - name: "randomVendors", - kind: "HoudiniQuery", - hash: "5c342ad0623d5bfbff46ba946d018bbe1e4a3b2f10575be373c9b6eb2ca17ad0", - - raw: `query randomVendors($store: ID) { - randomVendors(store: $store) { - id - slug - businessName - description - verified - bankAccountNo - bankName - bankIfsc - bankAccountHolderName - bankSwiftCode - banner - bannerCdn - commissionType - commissionValue - zips - freeShippingOn - meta - metaDescription - metaKeywords - metaTitle - productSold - ratings - reviews - shippingCharges - storeName - facebookUrl - githubUrl - googleUrl - twitterUrl - user { - id - avatar - firstName - lastName - } - address { - id - email - firstName - lastName - address - locality - town - city - country - state - zip - phone - lat - lng - } - categories { - id - name - img - imgCdn - } - createdAt - updatedAt - } -} -`, - - rootType: "Query", - - selection: { - randomVendors: { - type: "Vendor", - keyRaw: "randomVendors(store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - bankAccountNo: { - type: "Float", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankName: { - type: "String", - keyRaw: "bankName", - nullable: true - }, - - bankIfsc: { - type: "String", - keyRaw: "bankIfsc", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - commissionType: { - type: "String", - keyRaw: "commissionType", - nullable: true - }, - - commissionValue: { - type: "Float", - keyRaw: "commissionValue", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - meta: { - type: "String", - keyRaw: "meta", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - productSold: { - type: "Int", - keyRaw: "productSold", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - shippingCharges: { - type: "Float", - keyRaw: "shippingCharges", - nullable: true - }, - - storeName: { - type: "String", - keyRaw: "storeName", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - githubUrl: { - type: "String", - keyRaw: "githubUrl", - nullable: true - }, - - googleUrl: { - type: "String", - keyRaw: "googleUrl", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - } - } - }, - - categories: { - type: "Category", - keyRaw: "categories", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - } - } - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - } - } - } - }, - - input: { - fields: { - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=5c342ad0623d5bfbff46ba946d018bbe1e4a3b2f10575be373c9b6eb2ca17ad0"; \ No newline at end of file diff --git a/$houdini/artifacts/removeStoreCountry.d.ts b/$houdini/artifacts/removeStoreCountry.d.ts deleted file mode 100644 index 50e9538d..00000000 --- a/$houdini/artifacts/removeStoreCountry.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type removeStoreCountry = { - readonly "input": removeStoreCountry$input, - readonly "result": removeStoreCountry$result -}; - -export type removeStoreCountry$result = { - readonly removeStoreCountry: boolean | null -}; - -export type removeStoreCountry$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/removeStoreCountry.js b/$houdini/artifacts/removeStoreCountry.js deleted file mode 100644 index bdc36eed..00000000 --- a/$houdini/artifacts/removeStoreCountry.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "removeStoreCountry", - kind: "HoudiniMutation", - hash: "377ac1a50a590ce3afab71dcb1e5bedde9a5c4eacdc45c332640509165290846", - - raw: `mutation removeStoreCountry($id: ID!) { - removeStoreCountry(id: $id) -} -`, - - rootType: "Mutation", - - selection: { - removeStoreCountry: { - type: "Boolean", - keyRaw: "removeStoreCountry(id: $id)", - nullable: true - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=377ac1a50a590ce3afab71dcb1e5bedde9a5c4eacdc45c332640509165290846"; \ No newline at end of file diff --git a/$houdini/artifacts/resendEmail.d.ts b/$houdini/artifacts/resendEmail.d.ts deleted file mode 100644 index e445073b..00000000 --- a/$houdini/artifacts/resendEmail.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type resendEmail = { - readonly "input": resendEmail$input, - readonly "result": resendEmail$result -}; - -export type resendEmail$result = { - readonly resendEmail: string | null -}; - -export type resendEmail$input = { - email?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/resendEmail.js b/$houdini/artifacts/resendEmail.js deleted file mode 100644 index 5a05be45..00000000 --- a/$houdini/artifacts/resendEmail.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - name: "resendEmail", - kind: "HoudiniMutation", - hash: "8cb64cf7ec6d629cbcf829e39df1efec5036b5c903bec8f034b97389fdda5f75", - - raw: `mutation resendEmail($email: String) { - resendEmail(email: $email) -} -`, - - rootType: "Mutation", - - selection: { - resendEmail: { - type: "String", - keyRaw: "resendEmail(email: $email)", - nullable: true - } - }, - - input: { - fields: { - email: "String" - }, - - types: {} - } -}; - -"HoudiniHash=8cb64cf7ec6d629cbcf829e39df1efec5036b5c903bec8f034b97389fdda5f75"; \ No newline at end of file diff --git a/$houdini/artifacts/reviews.d.ts b/$houdini/artifacts/reviews.d.ts deleted file mode 100644 index 068b5fa8..00000000 --- a/$houdini/artifacts/reviews.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -export type reviews = { - readonly "input": reviews$input, - readonly "result": reviews$result | undefined -}; - -export type reviews$result = { - readonly reviews: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly rating: number | null, - readonly message: string | null, - readonly active: boolean | null, - readonly createdAt: string, - readonly updatedAt: string, - readonly pid: { - readonly name: string | null, - readonly slug: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly type: string | null - } | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly phone: string | null - } | null, - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null - } | null)[] | null - } | null -}; - -export type reviews$afterLoad = { - readonly "input": { - readonly "reviews": reviews$input - }, - readonly "data": { - readonly "reviews": reviews$result - } -}; - -export type reviews$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/reviews.js b/$houdini/artifacts/reviews.js deleted file mode 100644 index ae0e6f0d..00000000 --- a/$houdini/artifacts/reviews.js +++ /dev/null @@ -1,275 +0,0 @@ -export default { - name: "reviews", - kind: "HoudiniQuery", - hash: "a446304c5c1a4f16e8452aa5b9129a39c36a512ceee50e4af8b989f159c3711e", - - raw: `query reviews($page: Int, $search: String, $limit: Int, $sort: String, $store: ID) { - reviews(page: $page, search: $search, limit: $limit, sort: $sort, store: $store) { - count - page - pageSize - data { - id - rating - message - active - createdAt - updatedAt - pid { - name - slug - img - imgCdn - type - id - } - user { - firstName - lastName - phone - id - } - vendor { - id - slug - businessName - banner - bannerCdn - } - store { - id - name - email - } - } - } -} -`, - - rootType: "Query", - - selection: { - reviews: { - type: "ReviewRes", - keyRaw: "reviews(page: $page, search: $search, limit: $limit, sort: $sort, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Review", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - rating: { - type: "Float", - keyRaw: "rating", - nullable: true - }, - - message: { - type: "String", - keyRaw: "message", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - }, - - pid: { - type: "Product", - keyRaw: "pid", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - vendor: { - type: "Vendor", - keyRaw: "vendor", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=ce33b7304112a5446e40b72bd17dc53549a08e4c2531ceab453632465a756799"; \ No newline at end of file diff --git a/$houdini/artifacts/saveAddress.d.ts b/$houdini/artifacts/saveAddress.d.ts deleted file mode 100644 index 7808c8d6..00000000 --- a/$houdini/artifacts/saveAddress.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export type saveAddress = { - readonly "input": saveAddress$input, - readonly "result": saveAddress$result -}; - -export type saveAddress$result = { - readonly saveAddress: { - readonly id: string, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly district: string | null, - readonly city: string | null, - readonly type: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly email: string | null, - readonly lat: number | null, - readonly lng: number | null, - readonly isResidential: boolean | null, - readonly store: string | null - } | null -}; - -export type saveAddress$input = { - id: string, - firstName?: string | null | undefined, - lastName?: string | null | undefined, - type?: string | null | undefined, - address?: string | null | undefined, - locality?: string | null | undefined, - town?: string | null | undefined, - district?: string | null | undefined, - city?: string | null | undefined, - country?: string | null | undefined, - state?: string | null | undefined, - zip?: string | null | undefined, - phone?: string | null | undefined, - email?: string | null | undefined, - lat?: number | null | undefined, - lng?: number | null | undefined, - store?: string | null | undefined, - isResidential?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/saveAddress.js b/$houdini/artifacts/saveAddress.js deleted file mode 100644 index d68261c5..00000000 --- a/$houdini/artifacts/saveAddress.js +++ /dev/null @@ -1,194 +0,0 @@ -export default { - name: "saveAddress", - kind: "HoudiniMutation", - hash: "f350dfb6df5e9cbdcc205ccde4ae6ccf0d914724a4ab7735ae251afb915ced8d", - - raw: `mutation saveAddress($id: String!, $firstName: String, $lastName: String, $type: String, $address: String, $locality: String, $town: String, $district: String, $city: String, $country: String, $state: String, $zip: String, $phone: String, $email: String, $lat: Float, $lng: Float, $store: ID, $isResidential: Boolean) { - saveAddress( - id: $id - firstName: $firstName - lastName: $lastName - type: $type - address: $address - locality: $locality - town: $town - district: $district - city: $city - country: $country - state: $state - zip: $zip - phone: $phone - email: $email - lat: $lat - lng: $lng - store: $store - isResidential: $isResidential - ) { - id - firstName - lastName - address - locality - town - district - city - type - country - state - zip - phone - email - lat - lng - isResidential - store - } -} -`, - - rootType: "Mutation", - - selection: { - saveAddress: { - type: "Address", - keyRaw: "saveAddress(id: $id, firstName: $firstName, lastName: $lastName, type: $type, address: $address, locality: $locality, town: $town, district: $district, city: $city, country: $country, state: $state, zip: $zip, phone: $phone, email: $email, lat: $lat, lng: $lng, store: $store, isResidential: $isResidential)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - district: { - type: "String", - keyRaw: "district", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - isResidential: { - type: "Boolean", - keyRaw: "isResidential", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "String", - firstName: "String", - lastName: "String", - type: "String", - address: "String", - locality: "String", - town: "String", - district: "String", - city: "String", - country: "String", - state: "String", - zip: "String", - phone: "String", - email: "String", - lat: "Float", - lng: "Float", - store: "ID", - isResidential: "Boolean" - }, - - types: {} - } -}; - -"HoudiniHash=44a875306b0e83da90d6d659376ef5366c44d1a66e5210f5f81cdbcce9327edd"; \ No newline at end of file diff --git a/$houdini/artifacts/saveBlog.d.ts b/$houdini/artifacts/saveBlog.d.ts deleted file mode 100644 index abda82f3..00000000 --- a/$houdini/artifacts/saveBlog.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -export type saveBlog = { - readonly "input": saveBlog$input, - readonly "result": saveBlog$result -}; - -export type saveBlog$result = { - readonly saveBlog: { - readonly id: string, - readonly title: string | null, - readonly slug: string | null, - readonly active: boolean | null, - readonly excerpt: string | null, - readonly content: string | null, - readonly published_at: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly tags: (string | null)[] | null - } | null -}; - -export type saveBlog$input = { - id: string, - title?: string | null | undefined, - slug?: string | null | undefined, - excerpt?: string | null | undefined, - content?: string | null | undefined, - published_at?: string | null | undefined, - img?: string | null | undefined, - tags?: (string | null | undefined)[] | null | undefined, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/saveBlog.js b/$houdini/artifacts/saveBlog.js deleted file mode 100644 index ce7d89d8..00000000 --- a/$houdini/artifacts/saveBlog.js +++ /dev/null @@ -1,121 +0,0 @@ -export default { - name: "saveBlog", - kind: "HoudiniMutation", - hash: "0b98fd86de24c3d15bb87e676c1d9271d76106b77006f4a7d8b6f0b74753bee7", - - raw: `mutation saveBlog($id: String!, $title: String, $slug: String, $excerpt: String, $content: String, $published_at: String, $img: String, $tags: [String], $active: Boolean) { - saveBlog( - id: $id - title: $title - slug: $slug - excerpt: $excerpt - content: $content - published_at: $published_at - img: $img - tags: $tags - active: $active - ) { - id - title - slug - active - excerpt - content - published_at - img - imgCdn - tags - active - } -} -`, - - rootType: "Mutation", - - selection: { - saveBlog: { - type: "OneBlog", - keyRaw: "saveBlog(id: $id, title: $title, slug: $slug, excerpt: $excerpt, content: $content, published_at: $published_at, img: $img, tags: $tags, active: $active)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - excerpt: { - type: "String", - keyRaw: "excerpt", - nullable: true - }, - - content: { - type: "String", - keyRaw: "content", - nullable: true - }, - - published_at: { - type: "String", - keyRaw: "published_at", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - tags: { - type: "String", - keyRaw: "tags", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "String", - title: "String", - slug: "String", - excerpt: "String", - content: "String", - published_at: "String", - img: "String", - tags: "String", - active: "Boolean" - }, - - types: {} - } -}; - -"HoudiniHash=7265c2b843fa6633ab18ec97c8456be70ce7ce276fb724651f20ecdb5bb1613c"; \ No newline at end of file diff --git a/$houdini/artifacts/saveCountry.d.ts b/$houdini/artifacts/saveCountry.d.ts deleted file mode 100644 index b2bfa23c..00000000 --- a/$houdini/artifacts/saveCountry.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export type saveCountry = { - readonly "input": saveCountry$input, - readonly "result": saveCountry$result -}; - -export type saveCountry$result = { - readonly saveCountry: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly states: ({ - readonly name: string - } | null)[] | null, - readonly sort: number | null, - readonly active: boolean | null, - readonly createdAt: string, - readonly updatedAt: string - } | null -}; - -export type saveCountry$input = { - id?: string | null | undefined, - name?: string | null | undefined, - value?: string | null | undefined, - dialCode?: string | null | undefined, - code?: string | null | undefined, - img?: string | null | undefined, - flag?: string | null | undefined, - lang?: string | null | undefined, - sort?: number | null | undefined, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/saveCountry.js b/$houdini/artifacts/saveCountry.js deleted file mode 100644 index 15692d9f..00000000 --- a/$houdini/artifacts/saveCountry.js +++ /dev/null @@ -1,162 +0,0 @@ -export default { - name: "saveCountry", - kind: "HoudiniMutation", - hash: "130e5a3016521393b21796ccccad9f39185499878085d0e58686e71aebf0a826", - - raw: `mutation saveCountry($id: String, $name: String, $value: String, $dialCode: String, $code: String, $img: String, $flag: String, $lang: String, $sort: Int, $active: Boolean) { - saveCountry( - id: $id - name: $name - value: $value - dialCode: $dialCode - code: $code - img: $img - flag: $flag - lang: $lang - sort: $sort - active: $active - ) { - id - name - value - dialCode - code - img - imgCdn - flag - lang - states { - name - id - } - sort - active - createdAt - updatedAt - } -} -`, - - rootType: "Mutation", - - selection: { - saveCountry: { - type: "Country", - keyRaw: "saveCountry(id: $id, name: $name, value: $value, dialCode: $dialCode, code: $code, img: $img, flag: $flag, lang: $lang, sort: $sort, active: $active)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - states: { - type: "State", - keyRaw: "states", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name" - }, - - id: { - type: "ID", - keyRaw: "id" - } - } - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - }, - - input: { - fields: { - id: "String", - name: "String", - value: "String", - dialCode: "String", - code: "String", - img: "String", - flag: "String", - lang: "String", - sort: "Int", - active: "Boolean" - }, - - types: {} - } -}; - -"HoudiniHash=b015020c549ff989e6e2404e530d3451c5296fd12ed770a7a0185b56521c5426"; \ No newline at end of file diff --git a/$houdini/artifacts/savePaymentMethod.d.ts b/$houdini/artifacts/savePaymentMethod.d.ts deleted file mode 100644 index 61926a5d..00000000 --- a/$houdini/artifacts/savePaymentMethod.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -export type savePaymentMethod = { - readonly "input": savePaymentMethod$input, - readonly "result": savePaymentMethod$result -}; - -export type savePaymentMethod$result = { - readonly savePaymentMethod: { - readonly id: string, - readonly name: string, - readonly key: string | null, - readonly color: string | null, - readonly img: string | null, - readonly qrcode: string | null, - readonly type: string | null, - readonly imgCdn: string | null, - readonly text: string | null, - readonly instructions: string | null, - readonly value: string | null, - readonly position: number | null, - readonly active: boolean | null - } | null -}; - -export type savePaymentMethod$input = { - id: string, - name?: string | null | undefined, - value?: string | null | undefined, - key?: string | null | undefined, - color?: string | null | undefined, - img?: string | null | undefined, - qrcode?: string | null | undefined, - type?: string | null | undefined, - text?: string | null | undefined, - instructions?: string | null | undefined, - position?: number | null | undefined, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/savePaymentMethod.js b/$houdini/artifacts/savePaymentMethod.js deleted file mode 100644 index 01577553..00000000 --- a/$houdini/artifacts/savePaymentMethod.js +++ /dev/null @@ -1,146 +0,0 @@ -export default { - name: "savePaymentMethod", - kind: "HoudiniMutation", - hash: "694a4ffedcd78d806a34030570bde26dc4ef07d9ce7f8ef6d594fc0bd956c799", - - raw: `mutation savePaymentMethod($id: String!, $name: String, $value: String, $key: String, $color: String, $img: String, $qrcode: String, $type: String, $text: String, $instructions: String, $position: Int, $active: Boolean) { - savePaymentMethod( - id: $id - name: $name - value: $value - key: $key - color: $color - img: $img - qrcode: $qrcode - type: $type - text: $text - instructions: $instructions - position: $position - active: $active - ) { - id - name - key - color - img - qrcode - type - imgCdn - text - instructions - value - position - active - } -} -`, - - rootType: "Mutation", - - selection: { - savePaymentMethod: { - type: "PaymentMethod", - keyRaw: "savePaymentMethod(id: $id, name: $name, value: $value, key: $key, color: $color, img: $img, qrcode: $qrcode, type: $type, text: $text, instructions: $instructions, position: $position, active: $active)", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - key: { - type: "String", - keyRaw: "key", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - qrcode: { - type: "String", - keyRaw: "qrcode", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - instructions: { - type: "String", - keyRaw: "instructions", - nullable: true - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "String", - name: "String", - value: "String", - key: "String", - color: "String", - img: "String", - qrcode: "String", - type: "String", - text: "String", - instructions: "String", - position: "Int", - active: "Boolean" - }, - - types: {} - } -}; - -"HoudiniHash=fc66534ddd7d28cb95a344b3b5dcd983820a1de7f5204f9957c523d23e9cc232"; \ No newline at end of file diff --git a/$houdini/artifacts/saveStoreCountry.d.ts b/$houdini/artifacts/saveStoreCountry.d.ts deleted file mode 100644 index 215b78d6..00000000 --- a/$houdini/artifacts/saveStoreCountry.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export type saveStoreCountry = { - readonly "input": saveStoreCountry$input, - readonly "result": saveStoreCountry$result -}; - -export type saveStoreCountry$result = { - readonly saveStoreCountry: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly country: string | null, - readonly name: string | null, - readonly code: string | null, - readonly user: string | null, - readonly store: string | null - } | null -}; - -export type saveStoreCountry$input = { - id: string, - country?: string | null | undefined, - default?: boolean | null | undefined, - active?: boolean | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/saveStoreCountry.js b/$houdini/artifacts/saveStoreCountry.js deleted file mode 100644 index 3ae781b5..00000000 --- a/$houdini/artifacts/saveStoreCountry.js +++ /dev/null @@ -1,92 +0,0 @@ -export default { - name: "saveStoreCountry", - kind: "HoudiniMutation", - hash: "3572ab3dbd09f93d198240c4760f24105a436a6827c2f0191c2469cb16a312c5", - - raw: `mutation saveStoreCountry($id: String!, $country: ID, $default: Boolean, $active: Boolean) { - saveStoreCountry(id: $id, country: $country, default: $default, active: $active) { - id - default - active - country - name - code - user - store - } -} -`, - - rootType: "Mutation", - - selection: { - saveStoreCountry: { - type: "OneStoreCountry", - keyRaw: "saveStoreCountry(id: $id, country: $country, default: $default, active: $active)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - country: { - type: "ID", - keyRaw: "country", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - user: { - type: "ID", - keyRaw: "user", - nullable: true - }, - - store: { - type: "ID", - keyRaw: "store", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "String", - country: "ID", - default: "Boolean", - active: "Boolean" - }, - - types: {} - } -}; - -"HoudiniHash=3b808f791a4c2dc8623a8601f15e898d057555b9cbc876199b65b949e77ff6d8"; \ No newline at end of file diff --git a/$houdini/artifacts/settings.d.ts b/$houdini/artifacts/settings.d.ts deleted file mode 100644 index 5e7a354a..00000000 --- a/$houdini/artifacts/settings.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -export type settings = { - readonly "input": null, - readonly "result": settings$result | undefined -}; - -export type settings$result = { - readonly settings: { - readonly id: string | null, - readonly websiteName: string | null, - readonly websiteLegalName: string | null, - readonly liveCommerce: boolean | null, - readonly multilingual: boolean | null, - readonly closed: boolean | null, - readonly closedMessage: string | null, - readonly minimumOrderValue: number | null, - readonly title: string | null, - readonly alert: string | null, - readonly keywords: string | null, - readonly description: string | null, - readonly tax: { - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null - } | null, - readonly demo: boolean | null, - readonly RAZORPAY_KEY_ID: string | null, - readonly GOOGLE_CLIENT_ID: string | null, - readonly stripePublishableKey: string | null, - readonly brainTreePublicKey: string | null, - readonly enableStripe: boolean | null, - readonly enableSubsription: boolean | null, - readonly enableRazorpay: boolean | null, - readonly currencyCode: string | null, - readonly currencySymbol: string | null, - readonly currencyDecimals: number | null, - readonly openGraphImage: string | null, - readonly shipping: { - readonly deliveryDays: number | null, - readonly charge: number | null, - readonly free: number | null, - readonly method: string | null, - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly userRoles: (string | null)[] | null, - readonly websiteEmail: string | null, - readonly shopPhone: string | null, - readonly shopAddress: string | null, - readonly country: string | null, - readonly countryDetails: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly active: boolean | null - } | null, - readonly currency: string | null, - readonly currencyDetails: { - readonly id: string | null, - readonly isoCode: string | null, - readonly name: string | null, - readonly symbol: string | null - } | null, - readonly lang: string | null, - readonly langDetails: { - readonly id: string | null, - readonly name: string | null, - readonly nativeName: string | null, - readonly code: string | null - } | null, - readonly logo: string | null, - readonly logoMobile: string | null, - readonly logoDark: string | null, - readonly logoMobileDark: string | null, - readonly favicon: string | null, - readonly CDN_URL: string | null, - readonly S3_URL: string | null, - readonly LIVE_COMMERCE_URL: string | null, - readonly searchbarText: string | null, - readonly pageSize: number | null, - readonly returnReasons: (string | null)[] | null, - readonly orderStatuses: ({ - readonly status: string | null, - readonly title: string | null, - readonly body: string | null, - readonly icon: string | null, - readonly public: boolean | null, - readonly index: number | null - } | null)[] | null, - readonly paymentStatuses: (string | null)[] | null, - readonly paymentMethods: ({ - readonly active: boolean | null, - readonly name: string, - readonly value: string | null, - readonly img: string | null, - readonly color: string | null, - readonly position: number | null, - readonly text: string | null - } | null)[] | null, - readonly otpLogin: boolean | null, - readonly sms: { - readonly AUTO_VERIFICATION_ID: string | null, - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly email: { - readonly enabled: boolean | null, - readonly from: string | null, - readonly cc: (string | null)[] | null, - readonly bcc: (string | null)[] | null, - readonly printers: (string | null)[] | null - } | null, - readonly storage: { - readonly enabled: boolean | null, - readonly provider: string | null - } | null, - readonly review: { - readonly enabled: boolean | null, - readonly moderate: boolean | null - } | null, - readonly product: { - readonly moderate: boolean | null - } | null, - readonly customerOrderNotifications: { - readonly orderConfirmation: boolean | null, - readonly orderStatusChanged: boolean | null, - readonly orderShipped: boolean | null, - readonly orderIsReadyForPickup: boolean | null, - readonly downloadEGoods: boolean | null, - readonly giftCardPurchased: boolean | null - } | null, - readonly adminNotifications: { - readonly newOrderPlaced: boolean | null, - readonly lowStockNotification: boolean | null - } | null, - readonly ADMIN_PANEL_LINK: string | null, - readonly DOCS_LINK: string | null, - readonly storageProvider: string | null, - readonly googleMapsApi: string | null, - readonly facebook: string | null, - readonly twitter: string | null, - readonly google: string | null, - readonly instagram: string | null, - readonly linkedin: string | null, - readonly enableTax: boolean | null, - readonly locationExpiry: number | null, - readonly WWW_URL: string | null, - readonly referralBonus: number | null, - readonly joiningBonus: number | null, - readonly isMultiVendor: boolean | null, - readonly isMultiStore: boolean | null, - readonly isMegamenu: boolean | null, - readonly isSaas: boolean | null, - readonly isSearch: boolean | null, - readonly foodTypes: ({ - readonly name: string | null, - readonly val: string | null, - readonly img: string | null - } | null)[] | null - } | null -}; - -export type settings$afterLoad = { - readonly "data": { - readonly "settings": settings$result - } -}; \ No newline at end of file diff --git a/$houdini/artifacts/settings.js b/$houdini/artifacts/settings.js deleted file mode 100644 index 9568343f..00000000 --- a/$houdini/artifacts/settings.js +++ /dev/null @@ -1,1070 +0,0 @@ -export default { - name: "settings", - kind: "HoudiniQuery", - hash: "442a5f312fc2bde5baaed7ab73c2cd3aee9674e4a44b3c9d3a098f14c62586ae", - - raw: `query settings { - settings { - id - websiteName - websiteLegalName - liveCommerce - multilingual - closed - closedMessage - minimumOrderValue - title - alert - keywords - description - tax { - cgst - sgst - igst - } - demo - RAZORPAY_KEY_ID - GOOGLE_CLIENT_ID - stripePublishableKey - brainTreePublicKey - enableStripe - enableSubsription - enableRazorpay - currencyCode - currencySymbol - currencyDecimals - openGraphImage - shipping { - deliveryDays - charge - free - method - enabled - provider - } - userRoles - websiteEmail - shopPhone - shopAddress - country - countryDetails { - id - name - value - dialCode - code - img - imgCdn - flag - lang - active - } - currency - currencyDetails { - id - isoCode - name - symbol - } - lang - langDetails { - id - name - nativeName - code - } - logo - logoMobile - logoDark - logoMobileDark - favicon - CDN_URL - S3_URL - LIVE_COMMERCE_URL - searchbarText - pageSize - returnReasons - orderStatuses { - status - title - body - icon - public - index - } - paymentStatuses - paymentMethods { - active - name - value - img - color - position - text - id - } - otpLogin - sms { - AUTO_VERIFICATION_ID - enabled - provider - } - email { - enabled - from - cc - bcc - printers - } - storage { - enabled - provider - } - review { - enabled - moderate - } - product { - moderate - } - customerOrderNotifications { - orderConfirmation - orderStatusChanged - orderShipped - orderIsReadyForPickup - downloadEGoods - giftCardPurchased - } - adminNotifications { - newOrderPlaced - lowStockNotification - } - ADMIN_PANEL_LINK - DOCS_LINK - storageProvider - googleMapsApi - facebook - twitter - google - instagram - linkedin - enableTax - locationExpiry - WWW_URL - referralBonus - joiningBonus - isMultiVendor - isMultiStore - isMegamenu - isSaas - isSearch - foodTypes { - name - val - img - } - } -} -`, - - rootType: "Query", - - selection: { - settings: { - type: "Setting", - keyRaw: "settings", - nullable: true, - - fields: { - id: { - type: "String", - keyRaw: "id", - nullable: true - }, - - websiteName: { - type: "String", - keyRaw: "websiteName", - nullable: true - }, - - websiteLegalName: { - type: "String", - keyRaw: "websiteLegalName", - nullable: true - }, - - liveCommerce: { - type: "Boolean", - keyRaw: "liveCommerce", - nullable: true - }, - - multilingual: { - type: "Boolean", - keyRaw: "multilingual", - nullable: true - }, - - closed: { - type: "Boolean", - keyRaw: "closed", - nullable: true - }, - - closedMessage: { - type: "String", - keyRaw: "closedMessage", - nullable: true - }, - - minimumOrderValue: { - type: "Int", - keyRaw: "minimumOrderValue", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - alert: { - type: "String", - keyRaw: "alert", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - tax: { - type: "Tax", - keyRaw: "tax", - nullable: true, - - fields: { - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - } - } - }, - - demo: { - type: "Boolean", - keyRaw: "demo", - nullable: true - }, - - RAZORPAY_KEY_ID: { - type: "String", - keyRaw: "RAZORPAY_KEY_ID", - nullable: true - }, - - GOOGLE_CLIENT_ID: { - type: "String", - keyRaw: "GOOGLE_CLIENT_ID", - nullable: true - }, - - stripePublishableKey: { - type: "String", - keyRaw: "stripePublishableKey", - nullable: true - }, - - brainTreePublicKey: { - type: "String", - keyRaw: "brainTreePublicKey", - nullable: true - }, - - enableStripe: { - type: "Boolean", - keyRaw: "enableStripe", - nullable: true - }, - - enableSubsription: { - type: "Boolean", - keyRaw: "enableSubsription", - nullable: true - }, - - enableRazorpay: { - type: "Boolean", - keyRaw: "enableRazorpay", - nullable: true - }, - - currencyCode: { - type: "String", - keyRaw: "currencyCode", - nullable: true - }, - - currencySymbol: { - type: "String", - keyRaw: "currencySymbol", - nullable: true - }, - - currencyDecimals: { - type: "Int", - keyRaw: "currencyDecimals", - nullable: true - }, - - openGraphImage: { - type: "String", - keyRaw: "openGraphImage", - nullable: true - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - deliveryDays: { - type: "Int", - keyRaw: "deliveryDays", - nullable: true - }, - - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - }, - - free: { - type: "Int", - keyRaw: "free", - nullable: true - }, - - method: { - type: "String", - keyRaw: "method", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - userRoles: { - type: "String", - keyRaw: "userRoles", - nullable: true - }, - - websiteEmail: { - type: "String", - keyRaw: "websiteEmail", - nullable: true - }, - - shopPhone: { - type: "String", - keyRaw: "shopPhone", - nullable: true - }, - - shopAddress: { - type: "String", - keyRaw: "shopAddress", - nullable: true - }, - - country: { - type: "ID", - keyRaw: "country", - nullable: true - }, - - countryDetails: { - type: "Country", - keyRaw: "countryDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - }, - - currency: { - type: "ID", - keyRaw: "currency", - nullable: true - }, - - currencyDetails: { - type: "Currency", - keyRaw: "currencyDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - } - } - }, - - lang: { - type: "ID", - keyRaw: "lang", - nullable: true - }, - - langDetails: { - type: "Language", - keyRaw: "langDetails", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - nativeName: { - type: "String", - keyRaw: "nativeName", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - } - } - }, - - logo: { - type: "String", - keyRaw: "logo", - nullable: true - }, - - logoMobile: { - type: "String", - keyRaw: "logoMobile", - nullable: true - }, - - logoDark: { - type: "String", - keyRaw: "logoDark", - nullable: true - }, - - logoMobileDark: { - type: "String", - keyRaw: "logoMobileDark", - nullable: true - }, - - favicon: { - type: "String", - keyRaw: "favicon", - nullable: true - }, - - CDN_URL: { - type: "String", - keyRaw: "CDN_URL", - nullable: true - }, - - S3_URL: { - type: "String", - keyRaw: "S3_URL", - nullable: true - }, - - LIVE_COMMERCE_URL: { - type: "String", - keyRaw: "LIVE_COMMERCE_URL", - nullable: true - }, - - searchbarText: { - type: "String", - keyRaw: "searchbarText", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - returnReasons: { - type: "String", - keyRaw: "returnReasons", - nullable: true - }, - - orderStatuses: { - type: "OrderStatus", - keyRaw: "orderStatuses", - nullable: true, - - fields: { - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - body: { - type: "String", - keyRaw: "body", - nullable: true - }, - - icon: { - type: "String", - keyRaw: "icon", - nullable: true - }, - - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - } - } - }, - - paymentStatuses: { - type: "String", - keyRaw: "paymentStatuses", - nullable: true - }, - - paymentMethods: { - type: "PaymentMethod", - keyRaw: "paymentMethods", - nullable: true, - - fields: { - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - color: { - type: "String", - keyRaw: "color", - nullable: true - }, - - position: { - type: "Int", - keyRaw: "position", - nullable: true - }, - - text: { - type: "String", - keyRaw: "text", - nullable: true - }, - - id: { - type: "String", - keyRaw: "id" - } - } - }, - - otpLogin: { - type: "Boolean", - keyRaw: "otpLogin", - nullable: true - }, - - sms: { - type: "Sms", - keyRaw: "sms", - nullable: true, - - fields: { - AUTO_VERIFICATION_ID: { - type: "String", - keyRaw: "AUTO_VERIFICATION_ID", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - email: { - type: "Email", - keyRaw: "email", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - from: { - type: "String", - keyRaw: "from", - nullable: true - }, - - cc: { - type: "String", - keyRaw: "cc", - nullable: true - }, - - bcc: { - type: "String", - keyRaw: "bcc", - nullable: true - }, - - printers: { - type: "String", - keyRaw: "printers", - nullable: true - } - } - }, - - storage: { - type: "Storage", - keyRaw: "storage", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - review: { - type: "ReviewSetting", - keyRaw: "review", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - product: { - type: "ProductSetting", - keyRaw: "product", - nullable: true, - - fields: { - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - customerOrderNotifications: { - type: "UserNotification", - keyRaw: "customerOrderNotifications", - nullable: true, - - fields: { - orderConfirmation: { - type: "Boolean", - keyRaw: "orderConfirmation", - nullable: true - }, - - orderStatusChanged: { - type: "Boolean", - keyRaw: "orderStatusChanged", - nullable: true - }, - - orderShipped: { - type: "Boolean", - keyRaw: "orderShipped", - nullable: true - }, - - orderIsReadyForPickup: { - type: "Boolean", - keyRaw: "orderIsReadyForPickup", - nullable: true - }, - - downloadEGoods: { - type: "Boolean", - keyRaw: "downloadEGoods", - nullable: true - }, - - giftCardPurchased: { - type: "Boolean", - keyRaw: "giftCardPurchased", - nullable: true - } - } - }, - - adminNotifications: { - type: "AdminNotification", - keyRaw: "adminNotifications", - nullable: true, - - fields: { - newOrderPlaced: { - type: "Boolean", - keyRaw: "newOrderPlaced", - nullable: true - }, - - lowStockNotification: { - type: "Boolean", - keyRaw: "lowStockNotification", - nullable: true - } - } - }, - - ADMIN_PANEL_LINK: { - type: "String", - keyRaw: "ADMIN_PANEL_LINK", - nullable: true - }, - - DOCS_LINK: { - type: "String", - keyRaw: "DOCS_LINK", - nullable: true - }, - - storageProvider: { - type: "String", - keyRaw: "storageProvider", - nullable: true - }, - - googleMapsApi: { - type: "String", - keyRaw: "googleMapsApi", - nullable: true - }, - - facebook: { - type: "String", - keyRaw: "facebook", - nullable: true - }, - - twitter: { - type: "String", - keyRaw: "twitter", - nullable: true - }, - - google: { - type: "String", - keyRaw: "google", - nullable: true - }, - - instagram: { - type: "String", - keyRaw: "instagram", - nullable: true - }, - - linkedin: { - type: "String", - keyRaw: "linkedin", - nullable: true - }, - - enableTax: { - type: "Boolean", - keyRaw: "enableTax", - nullable: true - }, - - locationExpiry: { - type: "Float", - keyRaw: "locationExpiry", - nullable: true - }, - - WWW_URL: { - type: "String", - keyRaw: "WWW_URL", - nullable: true - }, - - referralBonus: { - type: "Float", - keyRaw: "referralBonus", - nullable: true - }, - - joiningBonus: { - type: "Float", - keyRaw: "joiningBonus", - nullable: true - }, - - isMultiVendor: { - type: "Boolean", - keyRaw: "isMultiVendor", - nullable: true - }, - - isMultiStore: { - type: "Boolean", - keyRaw: "isMultiStore", - nullable: true - }, - - isMegamenu: { - type: "Boolean", - keyRaw: "isMegamenu", - nullable: true - }, - - isSaas: { - type: "Boolean", - keyRaw: "isSaas", - nullable: true - }, - - isSearch: { - type: "Boolean", - keyRaw: "isSearch", - nullable: true - }, - - foodTypes: { - type: "NameValImg", - keyRaw: "foodTypes", - nullable: true, - - fields: { - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - val: { - type: "String", - keyRaw: "val", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - } - } - } - } - } - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=51c10ac22b09a423d4ef07f0bd88b27800cc08a54626306ec0f7f91a998c20ea"; \ No newline at end of file diff --git a/$houdini/artifacts/signOut.d.ts b/$houdini/artifacts/signOut.d.ts deleted file mode 100644 index 7315bcf5..00000000 --- a/$houdini/artifacts/signOut.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type signOut = { - readonly "input": null, - readonly "result": signOut$result -}; - -export type signOut$result = { - readonly signOut: boolean | null -}; \ No newline at end of file diff --git a/$houdini/artifacts/signOut.js b/$houdini/artifacts/signOut.js deleted file mode 100644 index 780565e4..00000000 --- a/$houdini/artifacts/signOut.js +++ /dev/null @@ -1,22 +0,0 @@ -export default { - name: "signOut", - kind: "HoudiniMutation", - hash: "67908793b87bf2e6da5e8a1de1674af5bce425b84b088af13a68a162d6a71e31", - - raw: `mutation signOut { - signOut -} -`, - - rootType: "Mutation", - - selection: { - signOut: { - type: "Boolean", - keyRaw: "signOut", - nullable: true - } - } -}; - -"HoudiniHash=67908793b87bf2e6da5e8a1de1674af5bce425b84b088af13a68a162d6a71e31"; \ No newline at end of file diff --git a/$houdini/artifacts/states.d.ts b/$houdini/artifacts/states.d.ts deleted file mode 100644 index 35da1436..00000000 --- a/$houdini/artifacts/states.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export type states = { - readonly "input": states$input, - readonly "result": states$result | undefined -}; - -export type states$result = { - readonly states: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null, - readonly sort: number | null, - readonly active: boolean | null, - readonly createdAt: string, - readonly updatedAt: string - } | null)[] | null - } | null -}; - -export type states$afterLoad = { - readonly "input": { - readonly "states": states$input - }, - readonly "data": { - readonly "states": states$result - } -}; - -export type states$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - country?: string | null | undefined, - countryCode?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/states.js b/$houdini/artifacts/states.js deleted file mode 100644 index 462659d5..00000000 --- a/$houdini/artifacts/states.js +++ /dev/null @@ -1,159 +0,0 @@ -export default { - name: "states", - kind: "HoudiniQuery", - hash: "2d717ca15d95570f02ad978e5442fcd2292bb43837e4ec3510539e5fab90295d", - - raw: `query states($page: Int, $search: String, $limit: Int, $sort: String, $country: ID, $countryCode: String) { - states( - page: $page - search: $search - limit: $limit - sort: $sort - country: $country - countryCode: $countryCode - ) { - count - page - pageSize - data { - id - name - value - code - img - imgCdn - flag - lang - sort - active - createdAt - updatedAt - } - } -} -`, - - rootType: "Query", - - selection: { - states: { - type: "stateRes", - keyRaw: "states(page: $page, search: $search, limit: $limit, sort: $sort, country: $country, countryCode: $countryCode)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "State", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt" - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt" - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - country: "ID", - countryCode: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=28e49cd8b45c79bcd008d0af05b23fdc4be04a15e467f1cea691e9f63947895d"; \ No newline at end of file diff --git a/$houdini/artifacts/store.d.ts b/$houdini/artifacts/store.d.ts deleted file mode 100644 index 513740f3..00000000 --- a/$houdini/artifacts/store.d.ts +++ /dev/null @@ -1,155 +0,0 @@ -export type store = { - readonly "input": null, - readonly "result": store$result | undefined -}; - -export type store$result = { - readonly store: { - readonly id: string, - readonly active: boolean | null, - readonly adminNotifications: { - readonly lowStockNotification: boolean | null, - readonly newOrderPlaced: boolean | null - } | null, - readonly address: string | null, - readonly alert: string | null, - readonly analyticsTrackingId: string | null, - readonly banners: (string | null)[] | null, - readonly city: string | null, - readonly closed: boolean | null, - readonly closedMessage: string | null, - readonly customerOrderNotifications: { - readonly downloadEGoods: boolean | null, - readonly giftCardPurchased: boolean | null, - readonly orderConfirmation: boolean | null, - readonly orderIsReadyForPickup: boolean | null, - readonly orderShipped: boolean | null, - readonly orderStatusChanged: boolean | null, - readonly orderConfirmationSms: boolean | null - } | null, - readonly vendorNotifications: { - readonly orderConfirmationSms: boolean | null - } | null, - readonly description: string | null, - readonly metaDescription: string | null, - readonly dimentionUnit: string | null, - readonly domain: string | null, - readonly email: string | null, - readonly facebook: string | null, - readonly facebookPixelId: string | null, - readonly facebookUrl: string | null, - readonly favicon: string | null, - readonly faviconCdn: string | null, - readonly firstName: string | null, - readonly freeShippingOn: number | null, - readonly gdpr: boolean | null, - readonly gdprCookieConsent: string | null, - readonly google: string | null, - readonly googleAdsTag: string | null, - readonly homeMeta1: string | null, - readonly homeMeta2: string | null, - readonly homeMeta3: string | null, - readonly homeMeta4: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly instagram: string | null, - readonly instagramUrl: string | null, - readonly isHideNilStock: boolean | null, - readonly isMegamenu: boolean | null, - readonly isOpen: boolean | null, - readonly isSearch: boolean | null, - readonly isHyperlocal: boolean | null, - readonly isFnb: boolean | null, - readonly isWishlist: boolean | null, - readonly isCart: boolean | null, - readonly keywords: string | null, - readonly lastName: string | null, - readonly lat: number | null, - readonly legalName: string | null, - readonly linkedin: string | null, - readonly lng: number | null, - readonly locality: string | null, - readonly logo: string | null, - readonly logoDark: string | null, - readonly logoMobile: string | null, - readonly logoMobileDark: string | null, - readonly logoCdn: string | null, - readonly logoDarkCdn: string | null, - readonly logoMobileCdn: string | null, - readonly logoMobileDarkCdn: string | null, - readonly minimumOrderValue: number | null, - readonly name: string | null, - readonly openGraphImage: string | null, - readonly openGraphImageCdn: string | null, - readonly pageSize: number | null, - readonly phone: string | null, - readonly pinterestTag: string | null, - readonly pinterestUrl: string | null, - readonly qrCode: string | null, - readonly review: { - readonly enabled: boolean | null, - readonly moderate: boolean | null - } | null, - readonly searchbarText: string | null, - readonly shipping: { - readonly charge: number | null, - readonly deliveryDays: number | null, - readonly enabled: boolean | null, - readonly free: number | null, - readonly method: string | null, - readonly provider: string | null - } | null, - readonly shippingCharge: number | null, - readonly shopAddress: string | null, - readonly shopPhone: string | null, - readonly slug: string | null, - readonly snapChatPixel: string | null, - readonly state: string | null, - readonly storeId: string | null, - readonly bankAccountNo: string | null, - readonly bankAccountHolderName: string | null, - readonly bankIfscCode: string | null, - readonly bankSwiftCode: string | null, - readonly timeZone: string | null, - readonly timing: string | null, - readonly title: string | null, - readonly twitter: string | null, - readonly twitterUrl: string | null, - readonly websiteEmail: string | null, - readonly websiteLegalName: string | null, - readonly websiteName: string | null, - readonly weightUnit: string | null, - readonly youtubeUrl: string | null, - readonly webmail: string | null, - readonly zip: string | null, - readonly timeDisplayFormat: string | null, - readonly priceDisplayFormat: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly user: string | null, - readonly sms: { - readonly AUTO_VERIFICATION_ID: string | null - } | null, - readonly shippoToken: string | null, - readonly shipRocketEmail: string | null, - readonly shipRocketPassword: string | null, - readonly shipRocketChannelId: string | null, - readonly pickrrAuthToken: string | null, - readonly storeTiming: ({ - readonly day: string | null, - readonly fromTime: string | null, - readonly index: number | null, - readonly isOpen: boolean | null, - readonly online: boolean | null, - readonly toTime: string | null - } | null)[] | null - } | null -}; - -export type store$afterLoad = { - readonly "data": { - readonly "store": store$result - } -}; \ No newline at end of file diff --git a/$houdini/artifacts/store.js b/$houdini/artifacts/store.js deleted file mode 100644 index e4013d7a..00000000 --- a/$houdini/artifacts/store.js +++ /dev/null @@ -1,979 +0,0 @@ -export default { - name: "store", - kind: "HoudiniQuery", - hash: "55b61c56eda176c03d8c4eed82a08c2d309f3a9e29197c31068fb37d8f2b6b73", - - raw: `query store { - store { - id - active - adminNotifications { - lowStockNotification - newOrderPlaced - } - address - alert - analyticsTrackingId - banners - city - closed - closedMessage - customerOrderNotifications { - downloadEGoods - giftCardPurchased - orderConfirmation - orderIsReadyForPickup - orderShipped - orderStatusChanged - orderConfirmationSms - } - vendorNotifications { - orderConfirmationSms - } - description - metaDescription - dimentionUnit - domain - email - facebook - facebookPixelId - facebookUrl - favicon - faviconCdn - firstName - freeShippingOn - gdpr - gdprCookieConsent - google - googleAdsTag - homeMeta1 - homeMeta2 - homeMeta3 - homeMeta4 - img - imgCdn - images - imagesCdn - instagram - instagramUrl - isHideNilStock - isMegamenu - isOpen - isSearch - isHyperlocal - isFnb - isWishlist - isCart - keywords - lastName - lat - legalName - linkedin - lng - locality - logo - logoDark - logoMobile - logoMobileDark - logoCdn - logoDarkCdn - logoMobileCdn - logoMobileDarkCdn - minimumOrderValue - name - openGraphImage - openGraphImageCdn - pageSize - phone - pinterestTag - pinterestUrl - qrCode - review { - enabled - moderate - } - searchbarText - shipping { - charge - deliveryDays - enabled - free - method - provider - } - shippingCharge - shopAddress - shopPhone - slug - snapChatPixel - state - storeId - bankAccountNo - bankAccountHolderName - bankIfscCode - bankSwiftCode - timeZone - timing - title - twitter - twitterUrl - websiteEmail - websiteLegalName - websiteName - weightUnit - youtubeUrl - webmail - zip - timeDisplayFormat - priceDisplayFormat - createdAt - updatedAt - user - sms { - AUTO_VERIFICATION_ID - } - shippoToken - shipRocketEmail - shipRocketPassword - shipRocketChannelId - pickrrAuthToken - storeTiming { - day - fromTime - index - isOpen - online - toTime - } - } -} -`, - - rootType: "Query", - - selection: { - store: { - type: "OneStore", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - adminNotifications: { - type: "AdminNotification", - keyRaw: "adminNotifications", - nullable: true, - - fields: { - lowStockNotification: { - type: "Boolean", - keyRaw: "lowStockNotification", - nullable: true - }, - - newOrderPlaced: { - type: "Boolean", - keyRaw: "newOrderPlaced", - nullable: true - } - } - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - alert: { - type: "String", - keyRaw: "alert", - nullable: true - }, - - analyticsTrackingId: { - type: "String", - keyRaw: "analyticsTrackingId", - nullable: true - }, - - banners: { - type: "String", - keyRaw: "banners", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - closed: { - type: "Boolean", - keyRaw: "closed", - nullable: true - }, - - closedMessage: { - type: "String", - keyRaw: "closedMessage", - nullable: true - }, - - customerOrderNotifications: { - type: "UserNotification", - keyRaw: "customerOrderNotifications", - nullable: true, - - fields: { - downloadEGoods: { - type: "Boolean", - keyRaw: "downloadEGoods", - nullable: true - }, - - giftCardPurchased: { - type: "Boolean", - keyRaw: "giftCardPurchased", - nullable: true - }, - - orderConfirmation: { - type: "Boolean", - keyRaw: "orderConfirmation", - nullable: true - }, - - orderIsReadyForPickup: { - type: "Boolean", - keyRaw: "orderIsReadyForPickup", - nullable: true - }, - - orderShipped: { - type: "Boolean", - keyRaw: "orderShipped", - nullable: true - }, - - orderStatusChanged: { - type: "Boolean", - keyRaw: "orderStatusChanged", - nullable: true - }, - - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - vendorNotifications: { - type: "VendorNotification", - keyRaw: "vendorNotifications", - nullable: true, - - fields: { - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - dimentionUnit: { - type: "String", - keyRaw: "dimentionUnit", - nullable: true - }, - - domain: { - type: "String", - keyRaw: "domain", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - facebook: { - type: "String", - keyRaw: "facebook", - nullable: true - }, - - facebookPixelId: { - type: "String", - keyRaw: "facebookPixelId", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - favicon: { - type: "String", - keyRaw: "favicon", - nullable: true - }, - - faviconCdn: { - type: "String", - keyRaw: "faviconCdn", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - gdpr: { - type: "Boolean", - keyRaw: "gdpr", - nullable: true - }, - - gdprCookieConsent: { - type: "String", - keyRaw: "gdprCookieConsent", - nullable: true - }, - - google: { - type: "String", - keyRaw: "google", - nullable: true - }, - - googleAdsTag: { - type: "String", - keyRaw: "googleAdsTag", - nullable: true - }, - - homeMeta1: { - type: "String", - keyRaw: "homeMeta1", - nullable: true - }, - - homeMeta2: { - type: "String", - keyRaw: "homeMeta2", - nullable: true - }, - - homeMeta3: { - type: "String", - keyRaw: "homeMeta3", - nullable: true - }, - - homeMeta4: { - type: "String", - keyRaw: "homeMeta4", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - instagram: { - type: "String", - keyRaw: "instagram", - nullable: true - }, - - instagramUrl: { - type: "String", - keyRaw: "instagramUrl", - nullable: true - }, - - isHideNilStock: { - type: "Boolean", - keyRaw: "isHideNilStock", - nullable: true - }, - - isMegamenu: { - type: "Boolean", - keyRaw: "isMegamenu", - nullable: true - }, - - isOpen: { - type: "Boolean", - keyRaw: "isOpen", - nullable: true - }, - - isSearch: { - type: "Boolean", - keyRaw: "isSearch", - nullable: true - }, - - isHyperlocal: { - type: "Boolean", - keyRaw: "isHyperlocal", - nullable: true - }, - - isFnb: { - type: "Boolean", - keyRaw: "isFnb", - nullable: true - }, - - isWishlist: { - type: "Boolean", - keyRaw: "isWishlist", - nullable: true - }, - - isCart: { - type: "Boolean", - keyRaw: "isCart", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - legalName: { - type: "String", - keyRaw: "legalName", - nullable: true - }, - - linkedin: { - type: "String", - keyRaw: "linkedin", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - logo: { - type: "String", - keyRaw: "logo", - nullable: true - }, - - logoDark: { - type: "String", - keyRaw: "logoDark", - nullable: true - }, - - logoMobile: { - type: "String", - keyRaw: "logoMobile", - nullable: true - }, - - logoMobileDark: { - type: "String", - keyRaw: "logoMobileDark", - nullable: true - }, - - logoCdn: { - type: "String", - keyRaw: "logoCdn", - nullable: true - }, - - logoDarkCdn: { - type: "String", - keyRaw: "logoDarkCdn", - nullable: true - }, - - logoMobileCdn: { - type: "String", - keyRaw: "logoMobileCdn", - nullable: true - }, - - logoMobileDarkCdn: { - type: "String", - keyRaw: "logoMobileDarkCdn", - nullable: true - }, - - minimumOrderValue: { - type: "Float", - keyRaw: "minimumOrderValue", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - openGraphImage: { - type: "String", - keyRaw: "openGraphImage", - nullable: true - }, - - openGraphImageCdn: { - type: "String", - keyRaw: "openGraphImageCdn", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - pinterestTag: { - type: "String", - keyRaw: "pinterestTag", - nullable: true - }, - - pinterestUrl: { - type: "String", - keyRaw: "pinterestUrl", - nullable: true - }, - - qrCode: { - type: "String", - keyRaw: "qrCode", - nullable: true - }, - - review: { - type: "ReviewSetting", - keyRaw: "review", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - searchbarText: { - type: "String", - keyRaw: "searchbarText", - nullable: true - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - }, - - deliveryDays: { - type: "Int", - keyRaw: "deliveryDays", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - free: { - type: "Int", - keyRaw: "free", - nullable: true - }, - - method: { - type: "String", - keyRaw: "method", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - shopAddress: { - type: "String", - keyRaw: "shopAddress", - nullable: true - }, - - shopPhone: { - type: "String", - keyRaw: "shopPhone", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - snapChatPixel: { - type: "String", - keyRaw: "snapChatPixel", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - storeId: { - type: "String", - keyRaw: "storeId", - nullable: true - }, - - bankAccountNo: { - type: "String", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankIfscCode: { - type: "String", - keyRaw: "bankIfscCode", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - timeZone: { - type: "String", - keyRaw: "timeZone", - nullable: true - }, - - timing: { - type: "String", - keyRaw: "timing", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - twitter: { - type: "String", - keyRaw: "twitter", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - websiteEmail: { - type: "String", - keyRaw: "websiteEmail", - nullable: true - }, - - websiteLegalName: { - type: "String", - keyRaw: "websiteLegalName", - nullable: true - }, - - websiteName: { - type: "String", - keyRaw: "websiteName", - nullable: true - }, - - weightUnit: { - type: "String", - keyRaw: "weightUnit", - nullable: true - }, - - youtubeUrl: { - type: "String", - keyRaw: "youtubeUrl", - nullable: true - }, - - webmail: { - type: "String", - keyRaw: "webmail", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - timeDisplayFormat: { - type: "String", - keyRaw: "timeDisplayFormat", - nullable: true - }, - - priceDisplayFormat: { - type: "String", - keyRaw: "priceDisplayFormat", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - user: { - type: "ID", - keyRaw: "user", - nullable: true - }, - - sms: { - type: "Sms", - keyRaw: "sms", - nullable: true, - - fields: { - AUTO_VERIFICATION_ID: { - type: "String", - keyRaw: "AUTO_VERIFICATION_ID", - nullable: true - } - } - }, - - shippoToken: { - type: "String", - keyRaw: "shippoToken", - nullable: true - }, - - shipRocketEmail: { - type: "String", - keyRaw: "shipRocketEmail", - nullable: true - }, - - shipRocketPassword: { - type: "String", - keyRaw: "shipRocketPassword", - nullable: true - }, - - shipRocketChannelId: { - type: "String", - keyRaw: "shipRocketChannelId", - nullable: true - }, - - pickrrAuthToken: { - type: "String", - keyRaw: "pickrrAuthToken", - nullable: true - }, - - storeTiming: { - type: "StoreTiming", - keyRaw: "storeTiming", - nullable: true, - - fields: { - day: { - type: "String", - keyRaw: "day", - nullable: true - }, - - fromTime: { - type: "String", - keyRaw: "fromTime", - nullable: true - }, - - index: { - type: "Int", - keyRaw: "index", - nullable: true - }, - - isOpen: { - type: "Boolean", - keyRaw: "isOpen", - nullable: true - }, - - online: { - type: "Boolean", - keyRaw: "online", - nullable: true - }, - - toTime: { - type: "String", - keyRaw: "toTime", - nullable: true - } - } - } - } - } - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=b43799b8e30fae9084de3c97d43e0f5d6c7fa9ebf97674dd799db28074bd786e"; \ No newline at end of file diff --git a/$houdini/artifacts/storeCountries.d.ts b/$houdini/artifacts/storeCountries.d.ts deleted file mode 100644 index 9f13922e..00000000 --- a/$houdini/artifacts/storeCountries.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -export type storeCountries = { - readonly "input": storeCountries$input, - readonly "result": storeCountries$result | undefined -}; - -export type storeCountries$result = { - readonly storeCountries: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly country: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null - } | null, - readonly user: { - readonly id: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null - } | null - } | null)[] | null - } | null -}; - -export type storeCountries$afterLoad = { - readonly "input": { - readonly "storeCountries": storeCountries$input - }, - readonly "data": { - readonly "storeCountries": storeCountries$result - } -}; - -export type storeCountries$input = { - page?: number | null | undefined, - search?: string | null | undefined, - limit?: number | null | undefined, - sort?: string | null | undefined, - store: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/storeCountries.js b/$houdini/artifacts/storeCountries.js deleted file mode 100644 index 6506a576..00000000 --- a/$houdini/artifacts/storeCountries.js +++ /dev/null @@ -1,221 +0,0 @@ -export default { - name: "storeCountries", - kind: "HoudiniQuery", - hash: "41134cad187473fc5c9061fbbb8b3755479d74e471bd1722d9191c75b36eb21a", - - raw: `query storeCountries($page: Int, $search: String, $limit: Int, $sort: String, $store: ID!) { - storeCountries( - page: $page - search: $search - limit: $limit - sort: $sort - store: $store - ) { - count - page - pageSize - data { - id - default - active - name - code - country { - id - name - value - dialCode - code - img - imgCdn - flag - lang - } - user { - id - firstName - lastName - email - } - } - } -} -`, - - rootType: "Query", - - selection: { - storeCountries: { - type: "StoreCountryRes", - keyRaw: "storeCountries(page: $page, search: $search, limit: $limit, sort: $sort, store: $store)", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "StoreCountry", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - page: "Int", - search: "String", - limit: "Int", - sort: "String", - store: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=13f06540a1b18c1929e4da8b7a51666ae9046149ca8d851cafc6f1b05f4a3309"; \ No newline at end of file diff --git a/$houdini/artifacts/storeCountry.d.ts b/$houdini/artifacts/storeCountry.d.ts deleted file mode 100644 index e4edc072..00000000 --- a/$houdini/artifacts/storeCountry.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -export type storeCountry = { - readonly "input": storeCountry$input, - readonly "result": storeCountry$result | undefined -}; - -export type storeCountry$result = { - readonly storeCountry: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly country: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null - } | null, - readonly user: { - readonly id: string | null, - readonly firstName: string | null, - readonly lastName: string | null - } | null - } | null -}; - -export type storeCountry$afterLoad = { - readonly "input": { - readonly "storeCountry": storeCountry$input - }, - readonly "data": { - readonly "storeCountry": storeCountry$result - } -}; - -export type storeCountry$input = { - id: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/storeCountry.js b/$houdini/artifacts/storeCountry.js deleted file mode 100644 index 66ac451f..00000000 --- a/$houdini/artifacts/storeCountry.js +++ /dev/null @@ -1,173 +0,0 @@ -export default { - name: "storeCountry", - kind: "HoudiniQuery", - hash: "22052894908deba81ea70718e5ec58daab01d3423b24beec7aeb868b3d23eea1", - - raw: `query storeCountry($id: ID!) { - storeCountry(id: $id) { - id - default - active - name - code - country { - id - name - value - dialCode - code - img - imgCdn - flag - lang - } - user { - id - firstName - lastName - } - } -} -`, - - rootType: "Query", - - selection: { - storeCountry: { - type: "StoreCountry", - keyRaw: "storeCountry(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - } - } - } - } - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=22052894908deba81ea70718e5ec58daab01d3423b24beec7aeb868b3d23eea1"; \ No newline at end of file diff --git a/$houdini/artifacts/storeOne.d.ts b/$houdini/artifacts/storeOne.d.ts deleted file mode 100644 index 5d9d95cd..00000000 --- a/$houdini/artifacts/storeOne.d.ts +++ /dev/null @@ -1,222 +0,0 @@ -export type storeOne = { - readonly "input": storeOne$input, - readonly "result": storeOne$result | undefined -}; - -export type storeOne$result = { - readonly storeOne: { - readonly id: string, - readonly active: boolean | null, - readonly featured: boolean | null, - readonly adminNotifications: { - readonly lowStockNotification: boolean | null, - readonly newOrderPlaced: boolean | null - } | null, - readonly address: string | null, - readonly alert: string | null, - readonly analyticsTrackingId: string | null, - readonly banners: (string | null)[] | null, - readonly closed: boolean | null, - readonly isWishlist: boolean | null, - readonly isCart: boolean | null, - readonly closedMessage: string | null, - readonly customerOrderNotifications: { - readonly downloadEGoods: boolean | null, - readonly giftCardPurchased: boolean | null, - readonly orderConfirmation: boolean | null, - readonly orderIsReadyForPickup: boolean | null, - readonly orderShipped: boolean | null, - readonly orderStatusChanged: boolean | null, - readonly orderConfirmationSms: boolean | null - } | null, - readonly vendorNotifications: { - readonly orderConfirmationSms: boolean | null - } | null, - readonly description: string | null, - readonly metaDescription: string | null, - readonly dimentionUnit: string | null, - readonly domain: string | null, - readonly email: string | null, - readonly facebook: string | null, - readonly facebookPixelId: string | null, - readonly facebookUrl: string | null, - readonly favicon: string | null, - readonly faviconCdn: string | null, - readonly firstName: string | null, - readonly freeShippingOn: number | null, - readonly gdpr: boolean | null, - readonly gdprCookieConsent: string | null, - readonly google: string | null, - readonly googleAdsTag: string | null, - readonly homeMeta1: string | null, - readonly homeMeta2: string | null, - readonly homeMeta3: string | null, - readonly homeMeta4: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly bankAccountNo: string | null, - readonly bankAccountHolderName: string | null, - readonly bankIfscCode: string | null, - readonly bankSwiftCode: string | null, - readonly instagram: string | null, - readonly instagramUrl: string | null, - readonly isHideNilStock: boolean | null, - readonly isMegamenu: boolean | null, - readonly isOpen: boolean | null, - readonly isSearch: boolean | null, - readonly isHyperlocal: boolean | null, - readonly isFnb: boolean | null, - readonly keywords: string | null, - readonly lastName: string | null, - readonly lat: number | null, - readonly legalName: string | null, - readonly linkedin: string | null, - readonly lng: number | null, - readonly locality: string | null, - readonly logo: string | null, - readonly logoDark: string | null, - readonly logoMobile: string | null, - readonly logoMobileDark: string | null, - readonly logoCdn: string | null, - readonly logoDarkCdn: string | null, - readonly logoMobileCdn: string | null, - readonly logoMobileDarkCdn: string | null, - readonly minimumOrderValue: number | null, - readonly minOrderValue: number | null, - readonly name: string | null, - readonly openGraphImage: string | null, - readonly openGraphImageCdn: string | null, - readonly pageSize: number | null, - readonly phone: string | null, - readonly pinterestTag: string | null, - readonly pinterestUrl: string | null, - readonly qrCode: string | null, - readonly review: { - readonly enabled: boolean | null, - readonly moderate: boolean | null - } | null, - readonly searchbarText: string | null, - readonly shipping: { - readonly charge: number | null, - readonly deliveryDays: number | null, - readonly enabled: boolean | null, - readonly free: number | null, - readonly method: string | null, - readonly provider: string | null - } | null, - readonly shippingCharge: number | null, - readonly shopAddress: string | null, - readonly shopPhone: string | null, - readonly slug: string | null, - readonly snapChatPixel: string | null, - readonly state: string | null, - readonly storeId: string | null, - readonly timeZone: string | null, - readonly timing: string | null, - readonly title: string | null, - readonly twitter: string | null, - readonly twitterUrl: string | null, - readonly websiteEmail: string | null, - readonly websiteLegalName: string | null, - readonly websiteName: string | null, - readonly weightUnit: string | null, - readonly youtubeUrl: string | null, - readonly webmail: string | null, - readonly zip: string | null, - readonly timeDisplayFormat: string | null, - readonly priceDisplayFormat: string | null, - readonly createdAt: string | null, - readonly updatedAt: string | null, - readonly sms: { - readonly AUTO_VERIFICATION_ID: string | null - } | null, - readonly shippoToken: string | null, - readonly shipRocketEmail: string | null, - readonly shipRocketPassword: string | null, - readonly shipRocketChannelId: string | null, - readonly pickrrAuthToken: string | null, - readonly user: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null - } | null, - readonly storeCountry: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly country: { - readonly id: string, - readonly name: string, - readonly value: string | null, - readonly dialCode: string | null, - readonly code: string | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly flag: string | null, - readonly lang: string | null - } | null - } | null, - readonly storeCurrency: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly isoCode: string | null, - readonly name: string | null, - readonly symbol: string | null, - readonly currency: { - readonly id: string | null, - readonly name: string | null, - readonly sort: number | null, - readonly isoCode: string | null, - readonly isoNumericCode: number | null, - readonly thousandsSeparator: string | null, - readonly decimalMark: string | null, - readonly symbolFirst: boolean | null, - readonly active: boolean | null, - readonly symbol: string | null, - readonly disambiguateSymbol: string | null, - readonly htmlEntity: string | null, - readonly subUnit: string | null, - readonly smallestDenomination: number | null, - readonly subunitToUnit: number | null - } | null - } | null, - readonly storeLanguage: { - readonly id: string | null, - readonly default: boolean | null, - readonly active: boolean | null, - readonly name: string | null, - readonly code: string | null, - readonly lang: { - readonly id: string | null, - readonly name: string | null, - readonly nativeName: string | null, - readonly code: string | null, - readonly phpLocaleCode: string | null, - readonly rtl: boolean | null, - readonly sort: number | null, - readonly active: boolean | null - } | null - } | null - } | null -}; - -export type storeOne$afterLoad = { - readonly "input": { - readonly "storeOne": storeOne$input - }, - readonly "data": { - readonly "storeOne": storeOne$result - } -}; - -export type storeOne$input = { - id?: string | null | undefined, - slug?: string | null | undefined, - domain?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/storeOne.js b/$houdini/artifacts/storeOne.js deleted file mode 100644 index 1d3eef67..00000000 --- a/$houdini/artifacts/storeOne.js +++ /dev/null @@ -1,1378 +0,0 @@ -export default { - name: "storeOne", - kind: "HoudiniQuery", - hash: "829687a756f277933a626920ec96fbd3bcf668a9a8b00719581437f9c964366f", - - raw: `query storeOne($id: ID, $slug: String, $domain: String) { - storeOne(id: $id, slug: $slug, domain: $domain) { - id - active - featured - adminNotifications { - lowStockNotification - newOrderPlaced - } - address - alert - analyticsTrackingId - banners - closed - isWishlist - isCart - closedMessage - customerOrderNotifications { - downloadEGoods - giftCardPurchased - orderConfirmation - orderIsReadyForPickup - orderShipped - orderStatusChanged - orderConfirmationSms - } - vendorNotifications { - orderConfirmationSms - } - description - metaDescription - dimentionUnit - domain - email - facebook - facebookPixelId - facebookUrl - favicon - faviconCdn - firstName - freeShippingOn - gdpr - gdprCookieConsent - google - googleAdsTag - homeMeta1 - homeMeta2 - homeMeta3 - homeMeta4 - img - imgCdn - images - imagesCdn - bankAccountNo - bankAccountHolderName - bankIfscCode - bankSwiftCode - instagram - instagramUrl - isHideNilStock - isMegamenu - isOpen - isSearch - isHyperlocal - isFnb - isWishlist - isCart - keywords - lastName - lat - legalName - linkedin - lng - locality - logo - logoDark - logoMobile - logoMobileDark - logoCdn - logoDarkCdn - logoMobileCdn - logoMobileDarkCdn - minimumOrderValue - minOrderValue - name - openGraphImage - openGraphImageCdn - pageSize - phone - pinterestTag - pinterestUrl - qrCode - review { - enabled - moderate - } - searchbarText - shipping { - charge - deliveryDays - enabled - free - method - provider - } - shippingCharge - shopAddress - shopPhone - slug - snapChatPixel - state - storeId - timeZone - timing - title - twitter - twitterUrl - websiteEmail - websiteLegalName - websiteName - weightUnit - youtubeUrl - webmail - zip - timeDisplayFormat - priceDisplayFormat - createdAt - updatedAt - sms { - AUTO_VERIFICATION_ID - } - shippoToken - shipRocketEmail - shipRocketPassword - shipRocketChannelId - pickrrAuthToken - user { - firstName - lastName - email - phone - id - } - storeCountry { - id - default - active - name - code - country { - id - name - value - dialCode - code - img - imgCdn - flag - lang - } - } - storeCurrency { - id - default - active - isoCode - name - symbol - currency { - id - name - sort - isoCode - isoNumericCode - thousandsSeparator - decimalMark - symbolFirst - active - symbol - disambiguateSymbol - htmlEntity - subUnit - smallestDenomination - subunitToUnit - } - } - storeLanguage { - id - default - active - name - code - lang { - id - name - nativeName - code - phpLocaleCode - rtl - sort - active - } - } - } -} -`, - - rootType: "Query", - - selection: { - storeOne: { - type: "Store", - keyRaw: "storeOne(id: $id, slug: $slug, domain: $domain)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - adminNotifications: { - type: "AdminNotification", - keyRaw: "adminNotifications", - nullable: true, - - fields: { - lowStockNotification: { - type: "Boolean", - keyRaw: "lowStockNotification", - nullable: true - }, - - newOrderPlaced: { - type: "Boolean", - keyRaw: "newOrderPlaced", - nullable: true - } - } - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - alert: { - type: "String", - keyRaw: "alert", - nullable: true - }, - - analyticsTrackingId: { - type: "String", - keyRaw: "analyticsTrackingId", - nullable: true - }, - - banners: { - type: "String", - keyRaw: "banners", - nullable: true - }, - - closed: { - type: "Boolean", - keyRaw: "closed", - nullable: true - }, - - isWishlist: { - type: "Boolean", - keyRaw: "isWishlist", - nullable: true - }, - - isCart: { - type: "Boolean", - keyRaw: "isCart", - nullable: true - }, - - closedMessage: { - type: "String", - keyRaw: "closedMessage", - nullable: true - }, - - customerOrderNotifications: { - type: "UserNotification", - keyRaw: "customerOrderNotifications", - nullable: true, - - fields: { - downloadEGoods: { - type: "Boolean", - keyRaw: "downloadEGoods", - nullable: true - }, - - giftCardPurchased: { - type: "Boolean", - keyRaw: "giftCardPurchased", - nullable: true - }, - - orderConfirmation: { - type: "Boolean", - keyRaw: "orderConfirmation", - nullable: true - }, - - orderIsReadyForPickup: { - type: "Boolean", - keyRaw: "orderIsReadyForPickup", - nullable: true - }, - - orderShipped: { - type: "Boolean", - keyRaw: "orderShipped", - nullable: true - }, - - orderStatusChanged: { - type: "Boolean", - keyRaw: "orderStatusChanged", - nullable: true - }, - - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - vendorNotifications: { - type: "VendorNotification", - keyRaw: "vendorNotifications", - nullable: true, - - fields: { - orderConfirmationSms: { - type: "Boolean", - keyRaw: "orderConfirmationSms", - nullable: true - } - } - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - dimentionUnit: { - type: "String", - keyRaw: "dimentionUnit", - nullable: true - }, - - domain: { - type: "String", - keyRaw: "domain", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - facebook: { - type: "String", - keyRaw: "facebook", - nullable: true - }, - - facebookPixelId: { - type: "String", - keyRaw: "facebookPixelId", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - favicon: { - type: "String", - keyRaw: "favicon", - nullable: true - }, - - faviconCdn: { - type: "String", - keyRaw: "faviconCdn", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - gdpr: { - type: "Boolean", - keyRaw: "gdpr", - nullable: true - }, - - gdprCookieConsent: { - type: "String", - keyRaw: "gdprCookieConsent", - nullable: true - }, - - google: { - type: "String", - keyRaw: "google", - nullable: true - }, - - googleAdsTag: { - type: "String", - keyRaw: "googleAdsTag", - nullable: true - }, - - homeMeta1: { - type: "String", - keyRaw: "homeMeta1", - nullable: true - }, - - homeMeta2: { - type: "String", - keyRaw: "homeMeta2", - nullable: true - }, - - homeMeta3: { - type: "String", - keyRaw: "homeMeta3", - nullable: true - }, - - homeMeta4: { - type: "String", - keyRaw: "homeMeta4", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - bankAccountNo: { - type: "String", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankIfscCode: { - type: "String", - keyRaw: "bankIfscCode", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - instagram: { - type: "String", - keyRaw: "instagram", - nullable: true - }, - - instagramUrl: { - type: "String", - keyRaw: "instagramUrl", - nullable: true - }, - - isHideNilStock: { - type: "Boolean", - keyRaw: "isHideNilStock", - nullable: true - }, - - isMegamenu: { - type: "Boolean", - keyRaw: "isMegamenu", - nullable: true - }, - - isOpen: { - type: "Boolean", - keyRaw: "isOpen", - nullable: true - }, - - isSearch: { - type: "Boolean", - keyRaw: "isSearch", - nullable: true - }, - - isHyperlocal: { - type: "Boolean", - keyRaw: "isHyperlocal", - nullable: true - }, - - isFnb: { - type: "Boolean", - keyRaw: "isFnb", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - legalName: { - type: "String", - keyRaw: "legalName", - nullable: true - }, - - linkedin: { - type: "String", - keyRaw: "linkedin", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - logo: { - type: "String", - keyRaw: "logo", - nullable: true - }, - - logoDark: { - type: "String", - keyRaw: "logoDark", - nullable: true - }, - - logoMobile: { - type: "String", - keyRaw: "logoMobile", - nullable: true - }, - - logoMobileDark: { - type: "String", - keyRaw: "logoMobileDark", - nullable: true - }, - - logoCdn: { - type: "String", - keyRaw: "logoCdn", - nullable: true - }, - - logoDarkCdn: { - type: "String", - keyRaw: "logoDarkCdn", - nullable: true - }, - - logoMobileCdn: { - type: "String", - keyRaw: "logoMobileCdn", - nullable: true - }, - - logoMobileDarkCdn: { - type: "String", - keyRaw: "logoMobileDarkCdn", - nullable: true - }, - - minimumOrderValue: { - type: "Float", - keyRaw: "minimumOrderValue", - nullable: true - }, - - minOrderValue: { - type: "Float", - keyRaw: "minOrderValue", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - openGraphImage: { - type: "String", - keyRaw: "openGraphImage", - nullable: true - }, - - openGraphImageCdn: { - type: "String", - keyRaw: "openGraphImageCdn", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - pinterestTag: { - type: "String", - keyRaw: "pinterestTag", - nullable: true - }, - - pinterestUrl: { - type: "String", - keyRaw: "pinterestUrl", - nullable: true - }, - - qrCode: { - type: "String", - keyRaw: "qrCode", - nullable: true - }, - - review: { - type: "ReviewSetting", - keyRaw: "review", - nullable: true, - - fields: { - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - moderate: { - type: "Boolean", - keyRaw: "moderate", - nullable: true - } - } - }, - - searchbarText: { - type: "String", - keyRaw: "searchbarText", - nullable: true - }, - - shipping: { - type: "Shipping", - keyRaw: "shipping", - nullable: true, - - fields: { - charge: { - type: "Int", - keyRaw: "charge", - nullable: true - }, - - deliveryDays: { - type: "Int", - keyRaw: "deliveryDays", - nullable: true - }, - - enabled: { - type: "Boolean", - keyRaw: "enabled", - nullable: true - }, - - free: { - type: "Int", - keyRaw: "free", - nullable: true - }, - - method: { - type: "String", - keyRaw: "method", - nullable: true - }, - - provider: { - type: "String", - keyRaw: "provider", - nullable: true - } - } - }, - - shippingCharge: { - type: "Float", - keyRaw: "shippingCharge", - nullable: true - }, - - shopAddress: { - type: "String", - keyRaw: "shopAddress", - nullable: true - }, - - shopPhone: { - type: "String", - keyRaw: "shopPhone", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - snapChatPixel: { - type: "String", - keyRaw: "snapChatPixel", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - storeId: { - type: "String", - keyRaw: "storeId", - nullable: true - }, - - timeZone: { - type: "String", - keyRaw: "timeZone", - nullable: true - }, - - timing: { - type: "String", - keyRaw: "timing", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - twitter: { - type: "String", - keyRaw: "twitter", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - websiteEmail: { - type: "String", - keyRaw: "websiteEmail", - nullable: true - }, - - websiteLegalName: { - type: "String", - keyRaw: "websiteLegalName", - nullable: true - }, - - websiteName: { - type: "String", - keyRaw: "websiteName", - nullable: true - }, - - weightUnit: { - type: "String", - keyRaw: "weightUnit", - nullable: true - }, - - youtubeUrl: { - type: "String", - keyRaw: "youtubeUrl", - nullable: true - }, - - webmail: { - type: "String", - keyRaw: "webmail", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - timeDisplayFormat: { - type: "String", - keyRaw: "timeDisplayFormat", - nullable: true - }, - - priceDisplayFormat: { - type: "String", - keyRaw: "priceDisplayFormat", - nullable: true - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - }, - - sms: { - type: "Sms", - keyRaw: "sms", - nullable: true, - - fields: { - AUTO_VERIFICATION_ID: { - type: "String", - keyRaw: "AUTO_VERIFICATION_ID", - nullable: true - } - } - }, - - shippoToken: { - type: "String", - keyRaw: "shippoToken", - nullable: true - }, - - shipRocketEmail: { - type: "String", - keyRaw: "shipRocketEmail", - nullable: true - }, - - shipRocketPassword: { - type: "String", - keyRaw: "shipRocketPassword", - nullable: true - }, - - shipRocketChannelId: { - type: "String", - keyRaw: "shipRocketChannelId", - nullable: true - }, - - pickrrAuthToken: { - type: "String", - keyRaw: "pickrrAuthToken", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - }, - - storeCountry: { - type: "StoreCountry", - keyRaw: "storeCountry", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - }, - - value: { - type: "String", - keyRaw: "value", - nullable: true - }, - - dialCode: { - type: "String", - keyRaw: "dialCode", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - flag: { - type: "String", - keyRaw: "flag", - nullable: true - }, - - lang: { - type: "String", - keyRaw: "lang", - nullable: true - } - } - } - } - }, - - storeCurrency: { - type: "StoreCurrency", - keyRaw: "storeCurrency", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - }, - - currency: { - type: "Currency", - keyRaw: "currency", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - isoCode: { - type: "String", - keyRaw: "isoCode", - nullable: true - }, - - isoNumericCode: { - type: "Int", - keyRaw: "isoNumericCode", - nullable: true - }, - - thousandsSeparator: { - type: "String", - keyRaw: "thousandsSeparator", - nullable: true - }, - - decimalMark: { - type: "String", - keyRaw: "decimalMark", - nullable: true - }, - - symbolFirst: { - type: "Boolean", - keyRaw: "symbolFirst", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - symbol: { - type: "String", - keyRaw: "symbol", - nullable: true - }, - - disambiguateSymbol: { - type: "String", - keyRaw: "disambiguateSymbol", - nullable: true - }, - - htmlEntity: { - type: "String", - keyRaw: "htmlEntity", - nullable: true - }, - - subUnit: { - type: "String", - keyRaw: "subUnit", - nullable: true - }, - - smallestDenomination: { - type: "Float", - keyRaw: "smallestDenomination", - nullable: true - }, - - subunitToUnit: { - type: "Float", - keyRaw: "subunitToUnit", - nullable: true - } - } - } - } - }, - - storeLanguage: { - type: "StoreLanguage", - keyRaw: "storeLanguage", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - default: { - type: "Boolean", - keyRaw: "default", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - lang: { - type: "Language", - keyRaw: "lang", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - nativeName: { - type: "String", - keyRaw: "nativeName", - nullable: true - }, - - code: { - type: "String", - keyRaw: "code", - nullable: true - }, - - phpLocaleCode: { - type: "String", - keyRaw: "phpLocaleCode", - nullable: true - }, - - rtl: { - type: "Boolean", - keyRaw: "rtl", - nullable: true - }, - - sort: { - type: "Int", - keyRaw: "sort", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - } - } - } - } - } - } - } - }, - - input: { - fields: { - id: "ID", - slug: "String", - domain: "String" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=99f57a2376d5e10282c6cdb3d9d9b4abbb1faaa2664451b8540feff3e371835f"; \ No newline at end of file diff --git a/$houdini/artifacts/stripe.d.ts b/$houdini/artifacts/stripe.d.ts deleted file mode 100644 index 65c4999b..00000000 --- a/$houdini/artifacts/stripe.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export type stripe = { - readonly "input": stripe$input, - readonly "result": stripe$result -}; - -export type stripe$result = { - readonly stripe: { - readonly id: string | null, - readonly paymentOrderId: string | null, - readonly paymentMode: string | null, - readonly paymentGateway: string | null, - readonly referenceId: string | null, - readonly txMsg: string | null, - readonly txTime: string | null, - readonly invoiceId: string | null, - readonly receipt: string | null, - readonly paid: boolean | null, - readonly amountPaid: number | null, - readonly amountDue: number | null, - readonly amountRefunded: number | null, - readonly currency: string | null, - readonly captured: boolean | null, - readonly status: string | null, - readonly orderId: string | null, - readonly notes: string | null, - readonly refundStatus: string | null, - readonly description: string | null, - readonly email: string | null, - readonly contact: string | null, - readonly fee: number | null, - readonly tax: number | null, - readonly errorCode: string | null, - readonly errorDescription: string | null, - readonly token: string | null, - readonly clientSecret: string | null, - readonly approvalUrl: string | null - } | null -}; - -export type stripe$input = { - address?: string | null | undefined, - paymentMethodId?: string | null | undefined, - slot?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/stripe.js b/$houdini/artifacts/stripe.js deleted file mode 100644 index 4e066f78..00000000 --- a/$houdini/artifacts/stripe.js +++ /dev/null @@ -1,238 +0,0 @@ -export default { - name: "stripe", - kind: "HoudiniMutation", - hash: "edbac60f2f172e8897e08cdf82778e28a682b039b836ce7fcf6d20a13821cbcc", - - raw: `mutation stripe($address: ID, $paymentMethodId: String, $slot: ID) { - stripe(address: $address, paymentMethodId: $paymentMethodId, slot: $slot) { - id - paymentOrderId - paymentMode - paymentGateway - referenceId - txMsg - txTime - invoiceId - receipt - paid - amountPaid - amountDue - amountRefunded - currency - captured - status - orderId - notes - refundStatus - description - email - contact - fee - tax - errorCode - errorDescription - token - clientSecret - approvalUrl - } -} -`, - - rootType: "Mutation", - - selection: { - stripe: { - type: "OnePayment", - keyRaw: "stripe(address: $address, paymentMethodId: $paymentMethodId, slot: $slot)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - paymentOrderId: { - type: "String", - keyRaw: "paymentOrderId", - nullable: true - }, - - paymentMode: { - type: "String", - keyRaw: "paymentMode", - nullable: true - }, - - paymentGateway: { - type: "String", - keyRaw: "paymentGateway", - nullable: true - }, - - referenceId: { - type: "String", - keyRaw: "referenceId", - nullable: true - }, - - txMsg: { - type: "String", - keyRaw: "txMsg", - nullable: true - }, - - txTime: { - type: "String", - keyRaw: "txTime", - nullable: true - }, - - invoiceId: { - type: "String", - keyRaw: "invoiceId", - nullable: true - }, - - receipt: { - type: "String", - keyRaw: "receipt", - nullable: true - }, - - paid: { - type: "Boolean", - keyRaw: "paid", - nullable: true - }, - - amountPaid: { - type: "Float", - keyRaw: "amountPaid", - nullable: true - }, - - amountDue: { - type: "Float", - keyRaw: "amountDue", - nullable: true - }, - - amountRefunded: { - type: "Float", - keyRaw: "amountRefunded", - nullable: true - }, - - currency: { - type: "String", - keyRaw: "currency", - nullable: true - }, - - captured: { - type: "Boolean", - keyRaw: "captured", - nullable: true - }, - - status: { - type: "String", - keyRaw: "status", - nullable: true - }, - - orderId: { - type: "String", - keyRaw: "orderId", - nullable: true - }, - - notes: { - type: "String", - keyRaw: "notes", - nullable: true - }, - - refundStatus: { - type: "String", - keyRaw: "refundStatus", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - contact: { - type: "String", - keyRaw: "contact", - nullable: true - }, - - fee: { - type: "Float", - keyRaw: "fee", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - errorCode: { - type: "String", - keyRaw: "errorCode", - nullable: true - }, - - errorDescription: { - type: "String", - keyRaw: "errorDescription", - nullable: true - }, - - token: { - type: "String", - keyRaw: "token", - nullable: true - }, - - clientSecret: { - type: "String", - keyRaw: "clientSecret", - nullable: true - }, - - approvalUrl: { - type: "String", - keyRaw: "approvalUrl", - nullable: true - } - } - } - }, - - input: { - fields: { - address: "ID", - paymentMethodId: "String", - slot: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=02f50b0fa4125a68f39f4bfab7164a5092d2087d5df63520d79ebdd6c2d05ff6"; \ No newline at end of file diff --git a/$houdini/artifacts/toggleWishlist.d.ts b/$houdini/artifacts/toggleWishlist.d.ts deleted file mode 100644 index c6d68e1e..00000000 --- a/$houdini/artifacts/toggleWishlist.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export type toggleWishlist = { - readonly "input": toggleWishlist$input, - readonly "result": toggleWishlist$result -}; - -export type toggleWishlist$result = { - readonly toggleWishlist: boolean | null -}; - -export type toggleWishlist$input = { - product: string, - variant: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/toggleWishlist.js b/$houdini/artifacts/toggleWishlist.js deleted file mode 100644 index 5375782d..00000000 --- a/$houdini/artifacts/toggleWishlist.js +++ /dev/null @@ -1,31 +0,0 @@ -export default { - name: "toggleWishlist", - kind: "HoudiniMutation", - hash: "a2f466c65a059eeb456a0790ad472be5e40e62605f63c8abd960ad91f257c424", - - raw: `mutation toggleWishlist($product: ID!, $variant: ID!) { - toggleWishlist(product: $product, variant: $variant) -} -`, - - rootType: "Mutation", - - selection: { - toggleWishlist: { - type: "Boolean", - keyRaw: "toggleWishlist(product: $product, variant: $variant)", - nullable: true - } - }, - - input: { - fields: { - product: "ID", - variant: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=a2f466c65a059eeb456a0790ad472be5e40e62605f63c8abd960ad91f257c424"; \ No newline at end of file diff --git a/$houdini/artifacts/topVendors.d.ts b/$houdini/artifacts/topVendors.d.ts deleted file mode 100644 index 19110a39..00000000 --- a/$houdini/artifacts/topVendors.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export type topVendors = { - readonly "input": topVendors$input, - readonly "result": topVendors$result | undefined -}; - -export type topVendors$result = { - readonly topVendors: ({ - readonly id: string | null, - readonly businessName: string | null, - readonly productSold: number | null, - readonly banner: string | null, - readonly bannerCdn: string | null - } | null)[] | null -}; - -export type topVendors$afterLoad = { - readonly "input": { - readonly "topVendors": topVendors$input - }, - readonly "data": { - readonly "topVendors": topVendors$result - } -}; - -export type topVendors$input = { - limit?: number | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/topVendors.js b/$houdini/artifacts/topVendors.js deleted file mode 100644 index 54352ed8..00000000 --- a/$houdini/artifacts/topVendors.js +++ /dev/null @@ -1,71 +0,0 @@ -export default { - name: "topVendors", - kind: "HoudiniQuery", - hash: "ccae28172bcf9e786e95e3993ecb980561c3f65283bdeb88c308b0d175c7ff68", - - raw: `query topVendors($limit: Int) { - topVendors(limit: $limit) { - id - businessName - productSold - banner - bannerCdn - } -} -`, - - rootType: "Query", - - selection: { - topVendors: { - type: "Vendor", - keyRaw: "topVendors(limit: $limit)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - productSold: { - type: "Int", - keyRaw: "productSold", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - } - } - } - }, - - input: { - fields: { - limit: "Int" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=ccae28172bcf9e786e95e3993ecb980561c3f65283bdeb88c308b0d175c7ff68"; \ No newline at end of file diff --git a/$houdini/artifacts/updateProfile.d.ts b/$houdini/artifacts/updateProfile.d.ts deleted file mode 100644 index 8dbf65ca..00000000 --- a/$houdini/artifacts/updateProfile.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -export type updateProfile = { - readonly "input": updateProfile$input, - readonly "result": updateProfile$result -}; - -export type updateProfile$result = { - readonly updateProfile: { - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null, - readonly avatar: string | null, - readonly avatarCdn: string | null, - readonly role: string | null, - readonly gender: string | null, - readonly city: string | null, - readonly shippingCharges: number | null, - readonly freeShippingOn: number | null, - readonly storeName: string | null, - readonly banner: string | null, - readonly info: { - readonly public: boolean | null, - readonly store: string | null - } | null - } | null -}; - -type AddressInput = { - id?: string | null | undefined, - email?: string | null | undefined, - firstName?: string | null | undefined, - lastName?: string | null | undefined, - address?: string | null | undefined, - town?: string | null | undefined, - city?: string | null | undefined, - country?: string | null | undefined, - district?: string | null | undefined, - state?: string | null | undefined, - lat?: number | null | undefined, - lng?: number | null | undefined, - zip?: number | null | undefined, - phone?: string | null | undefined, - active?: boolean | null | undefined -}; - -type InputInfo = { - public?: boolean | null | undefined, - store?: string | null | undefined, - storePhotos?: (string | null | undefined)[] | null | undefined -}; - -export type updateProfile$input = { - address?: AddressInput | null | undefined, - firstName?: string | null | undefined, - lastName?: string | null | undefined, - email?: string | null | undefined, - avatar?: string | null | undefined, - dob?: string | null | undefined, - gender?: string | null | undefined, - phone?: string | null | undefined, - info?: InputInfo | null | undefined, - shippingCharges?: number | null | undefined, - freeShippingOn?: number | null | undefined, - storeName?: string | null | undefined, - banner?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/updateProfile.js b/$houdini/artifacts/updateProfile.js deleted file mode 100644 index 1f02c48a..00000000 --- a/$houdini/artifacts/updateProfile.js +++ /dev/null @@ -1,205 +0,0 @@ -export default { - name: "updateProfile", - kind: "HoudiniMutation", - hash: "16ad021f67c2c7a022cf627a5d67830db1da6fe761107cb9f2cb24721bfeaae6", - - raw: `mutation updateProfile($address: AddressInput, $firstName: String, $lastName: String, $email: String, $avatar: String, $dob: String, $gender: String, $phone: String, $info: InputInfo, $shippingCharges: Int, $freeShippingOn: Int, $storeName: String, $banner: String) { - updateProfile( - firstName: $firstName - lastName: $lastName - email: $email - avatar: $avatar - phone: $phone - dob: $dob - gender: $gender - info: $info - address: $address - shippingCharges: $shippingCharges - freeShippingOn: $freeShippingOn - storeName: $storeName - banner: $banner - ) { - firstName - lastName - email - phone - avatar - avatarCdn - role - gender - city - shippingCharges - freeShippingOn - storeName - banner - info { - public - store - } - id - } -} -`, - - rootType: "Mutation", - - selection: { - updateProfile: { - type: "UserOne", - keyRaw: "updateProfile(firstName: $firstName, lastName: $lastName, email: $email, avatar: $avatar, phone: $phone, dob: $dob, gender: $gender, info: $info, address: $address, shippingCharges: $shippingCharges, freeShippingOn: $freeShippingOn, storeName: $storeName, banner: $banner)", - nullable: true, - - fields: { - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - avatarCdn: { - type: "String", - keyRaw: "avatarCdn", - nullable: true - }, - - role: { - type: "String", - keyRaw: "role", - nullable: true - }, - - gender: { - type: "String", - keyRaw: "gender", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - shippingCharges: { - type: "Int", - keyRaw: "shippingCharges", - nullable: true - }, - - freeShippingOn: { - type: "Int", - keyRaw: "freeShippingOn", - nullable: true - }, - - storeName: { - type: "String", - keyRaw: "storeName", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - info: { - type: "Info", - keyRaw: "info", - nullable: true, - - fields: { - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - store: { - type: "String", - keyRaw: "store", - nullable: true - } - } - }, - - id: { - type: "ID", - keyRaw: "id", - nullable: true - } - } - } - }, - - input: { - fields: { - address: "AddressInput", - firstName: "String", - lastName: "String", - email: "String", - avatar: "String", - dob: "String", - gender: "String", - phone: "String", - info: "InputInfo", - shippingCharges: "Int", - freeShippingOn: "Int", - storeName: "String", - banner: "String" - }, - - types: { - AddressInput: { - id: "ID", - email: "String", - firstName: "String", - lastName: "String", - address: "String", - town: "String", - city: "String", - country: "String", - district: "String", - state: "String", - lat: "Float", - lng: "Float", - zip: "Int", - phone: "String", - active: "Boolean" - }, - - InputInfo: { - public: "Boolean", - store: "String", - storePhotos: "String" - } - } - } -}; - -"HoudiniHash=f345b3f708e3d7362ecf1a900b463e0f1a6c4b7ea5b6c8522d25731dc53498cc"; \ No newline at end of file diff --git a/$houdini/artifacts/vendor.d.ts b/$houdini/artifacts/vendor.d.ts deleted file mode 100644 index 74f8ca60..00000000 --- a/$houdini/artifacts/vendor.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -export type vendor = { - readonly "input": vendor$input, - readonly "result": vendor$result | undefined -}; - -export type vendor$result = { - readonly vendor: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly categories: ({ - readonly id: string, - readonly name: string | null - } | null)[] | null, - readonly verified: boolean | null, - readonly bankAccountNo: number | null, - readonly bankName: string | null, - readonly bankIfsc: string | null, - readonly bankAccountHolderName: string | null, - readonly bankSwiftCode: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly commissionType: string | null, - readonly commissionValue: number | null, - readonly zips: (string | null)[] | null, - readonly freeShippingOn: number | null, - readonly meta: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly metaTitle: string | null, - readonly productSold: number | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly shippingCharges: number | null, - readonly storeName: string | null, - readonly facebookUrl: string | null, - readonly githubUrl: string | null, - readonly googleUrl: string | null, - readonly twitterUrl: string | null, - readonly about: string | null, - readonly banners: (string | null)[] | null, - readonly bannersCdn: (string | null)[] | null, - readonly info: { - readonly public: boolean | null, - readonly store: string | null, - readonly storePhotos: (string | null)[] | null - } | null, - readonly country: { - readonly id: string, - readonly name: string - } | null, - readonly user: { - readonly id: string | null, - readonly avatar: string | null - } | null, - readonly address: { - readonly id: string, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly city: string | null, - readonly state: string | null, - readonly country: string | null, - readonly zip: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly store: { - readonly id: string, - readonly name: string | null, - readonly email: string | null - } | null, - readonly createdAt: string | null, - readonly updatedAt: string | null - } | null -}; - -export type vendor$afterLoad = { - readonly "input": { - readonly "vendor": vendor$input - }, - readonly "data": { - readonly "vendor": vendor$result - } -}; - -export type vendor$input = { - id?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/vendor.js b/$houdini/artifacts/vendor.js deleted file mode 100644 index 5a54fbee..00000000 --- a/$houdini/artifacts/vendor.js +++ /dev/null @@ -1,486 +0,0 @@ -export default { - name: "vendor", - kind: "HoudiniQuery", - hash: "8a99f2030c82e507d64e7433985e5c09294a0f32e8c1fd3acc7141fa32282ea4", - - raw: `query vendor($id: ID) { - vendor(id: $id) { - id - slug - businessName - categories { - id - } - verified - bankAccountNo - bankName - bankIfsc - bankAccountHolderName - bankSwiftCode - banner - bannerCdn - commissionType - commissionValue - zips - freeShippingOn - meta - metaDescription - metaKeywords - metaTitle - productSold - ratings - reviews - shippingCharges - storeName - facebookUrl - githubUrl - googleUrl - twitterUrl - about - banners - bannersCdn - info { - public - store - storePhotos - } - country { - id - name - } - user { - id - avatar - } - address { - id - firstName - lastName - address - locality - city - state - country - zip - lat - lng - } - categories { - id - name - } - store { - id - name - email - } - createdAt - updatedAt - } -} -`, - - rootType: "Query", - - selection: { - vendor: { - type: "Vendor", - keyRaw: "vendor(id: $id)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - categories: { - type: "Category", - keyRaw: "categories", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - } - } - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - bankAccountNo: { - type: "Float", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankName: { - type: "String", - keyRaw: "bankName", - nullable: true - }, - - bankIfsc: { - type: "String", - keyRaw: "bankIfsc", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - commissionType: { - type: "String", - keyRaw: "commissionType", - nullable: true - }, - - commissionValue: { - type: "Float", - keyRaw: "commissionValue", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - meta: { - type: "String", - keyRaw: "meta", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - productSold: { - type: "Int", - keyRaw: "productSold", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - shippingCharges: { - type: "Float", - keyRaw: "shippingCharges", - nullable: true - }, - - storeName: { - type: "String", - keyRaw: "storeName", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - githubUrl: { - type: "String", - keyRaw: "githubUrl", - nullable: true - }, - - googleUrl: { - type: "String", - keyRaw: "googleUrl", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - about: { - type: "String", - keyRaw: "about", - nullable: true - }, - - banners: { - type: "String", - keyRaw: "banners", - nullable: true - }, - - bannersCdn: { - type: "String", - keyRaw: "bannersCdn", - nullable: true - }, - - info: { - type: "Info", - keyRaw: "info", - nullable: true, - - fields: { - public: { - type: "Boolean", - keyRaw: "public", - nullable: true - }, - - store: { - type: "String", - keyRaw: "store", - nullable: true - }, - - storePhotos: { - type: "String", - keyRaw: "storePhotos", - nullable: true - } - } - }, - - country: { - type: "Country", - keyRaw: "country", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name" - } - } - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - } - } - }, - - store: { - type: "Store", - keyRaw: "store", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - } - } - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - } - } - } - }, - - input: { - fields: { - id: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=8a99f2030c82e507d64e7433985e5c09294a0f32e8c1fd3acc7141fa32282ea4"; \ No newline at end of file diff --git a/$houdini/artifacts/vendorProfile.d.ts b/$houdini/artifacts/vendorProfile.d.ts deleted file mode 100644 index 8f365be4..00000000 --- a/$houdini/artifacts/vendorProfile.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -export type vendorProfile = { - readonly "input": vendorProfile$input, - readonly "result": vendorProfile$result | undefined -}; - -export type vendorProfile$result = { - readonly vendorProfile: { - readonly id: string | null, - readonly slug: string | null, - readonly businessName: string | null, - readonly description: string | null, - readonly verified: boolean | null, - readonly bankAccountNo: number | null, - readonly bankName: string | null, - readonly bankIfsc: string | null, - readonly bankAccountHolderName: string | null, - readonly bankSwiftCode: string | null, - readonly banner: string | null, - readonly bannerCdn: string | null, - readonly commissionType: string | null, - readonly commissionValue: number | null, - readonly zips: (string | null)[] | null, - readonly freeShippingOn: number | null, - readonly meta: string | null, - readonly metaDescription: string | null, - readonly metaKeywords: string | null, - readonly metaTitle: string | null, - readonly productSold: number | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly shippingCharges: number | null, - readonly storeName: string | null, - readonly facebookUrl: string | null, - readonly githubUrl: string | null, - readonly googleUrl: string | null, - readonly twitterUrl: string | null, - readonly user: { - readonly id: string | null, - readonly avatar: string | null, - readonly firstName: string | null, - readonly lastName: string | null - } | null, - readonly address: { - readonly id: string, - readonly email: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly address: string | null, - readonly locality: string | null, - readonly town: string | null, - readonly city: string | null, - readonly country: string | null, - readonly state: string | null, - readonly zip: string | null, - readonly phone: string | null, - readonly lat: number | null, - readonly lng: number | null - } | null, - readonly categories: ({ - readonly id: string, - readonly name: string | null, - readonly img: string | null, - readonly imgCdn: string | null - } | null)[] | null, - readonly products: { - readonly count: number | null, - readonly page: number | null, - readonly pageSize: number | null, - readonly data: ({ - readonly id: string | null, - readonly sku: string | null, - readonly barcode: string | null, - readonly productMasterId: string | null, - readonly slug: string | null, - readonly name: string | null, - readonly description: string | null, - readonly type: string | null, - readonly price: number | null, - readonly mrp: number | null, - readonly stock: number | null, - readonly trackInventory: boolean | null, - readonly tax: number | null, - readonly img: string | null, - readonly imgCdn: string | null, - readonly images: (string | null)[] | null, - readonly imagesCdn: (string | null)[] | null, - readonly time: string | null, - readonly active: boolean | null, - readonly popularity: number | null, - readonly position: number | null, - readonly trending: boolean | null, - readonly featured: boolean | null, - readonly hot: boolean | null, - readonly new: boolean | null, - readonly sale: boolean | null, - readonly recommended: boolean | null, - readonly title: string | null, - readonly metaDescription: string | null, - readonly keywords: string | null, - readonly keywordsA: (string | null)[] | null, - readonly ratings: number | null, - readonly reviews: number | null, - readonly itemId: string | null, - readonly warranty: string | null, - readonly ageMin: number | null, - readonly ageMax: number | null, - readonly ageUnit: string | null, - readonly cgst: number | null, - readonly sgst: number | null, - readonly igst: number | null, - readonly returnInfo: string | null, - readonly returnAllowed: boolean | null, - readonly replaceAllowed: boolean | null, - readonly returnValidityInDays: number | null, - readonly sizechart: string | null, - readonly batchNo: string | null, - readonly mfgDate: string | null, - readonly expired: boolean | null, - readonly expiryDate: string | null, - readonly isSearchable: boolean | null, - readonly isUnlimited: boolean | null, - readonly totalSold: number | null, - readonly preOrder: boolean | null, - readonly zips: (string)[] | null, - readonly foodType: string | null, - readonly deliveryDetails: string | null - } | null)[] | null - } | null, - readonly createdAt: string | null, - readonly updatedAt: string | null - } | null -}; - -export type vendorProfile$afterLoad = { - readonly "input": { - readonly "vendorProfile": vendorProfile$input - }, - readonly "data": { - readonly "vendorProfile": vendorProfile$result - } -}; - -export type vendorProfile$input = { - vendor: string -}; \ No newline at end of file diff --git a/$houdini/artifacts/vendorProfile.js b/$houdini/artifacts/vendorProfile.js deleted file mode 100644 index 7c17dc44..00000000 --- a/$houdini/artifacts/vendorProfile.js +++ /dev/null @@ -1,875 +0,0 @@ -export default { - name: "vendorProfile", - kind: "HoudiniQuery", - hash: "13133bb583e3d087431670817f7698544d2b7091a21b5ea77d2552aabc13e58c", - - raw: `query vendorProfile($vendor: ID!) { - vendorProfile(vendor: $vendor) { - id - slug - businessName - description - verified - bankAccountNo - bankName - bankIfsc - bankAccountHolderName - bankSwiftCode - banner - bannerCdn - commissionType - commissionValue - zips - freeShippingOn - meta - metaDescription - metaKeywords - metaTitle - productSold - ratings - reviews - shippingCharges - storeName - facebookUrl - githubUrl - googleUrl - twitterUrl - user { - id - avatar - firstName - lastName - } - address { - id - email - firstName - lastName - address - locality - town - city - country - state - zip - phone - lat - lng - } - categories { - id - name - img - imgCdn - } - products { - count - page - pageSize - data { - id - sku - barcode - productMasterId - slug - name - description - type - price - mrp - stock - trackInventory - tax - img - imgCdn - images - imagesCdn - time - active - popularity - position - trending - featured - hot - new - sale - recommended - title - metaDescription - keywords - keywordsA - ratings - reviews - itemId - warranty - ageMin - ageMax - ageUnit - cgst - sgst - igst - returnInfo - returnAllowed - replaceAllowed - returnValidityInDays - sizechart - batchNo - mfgDate - expired - expiryDate - isSearchable - isUnlimited - totalSold - preOrder - zips - foodType - deliveryDetails - } - } - createdAt - updatedAt - } -} -`, - - rootType: "Query", - - selection: { - vendorProfile: { - type: "Vendor", - keyRaw: "vendorProfile(vendor: $vendor)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - businessName: { - type: "String", - keyRaw: "businessName", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - bankAccountNo: { - type: "Float", - keyRaw: "bankAccountNo", - nullable: true - }, - - bankName: { - type: "String", - keyRaw: "bankName", - nullable: true - }, - - bankIfsc: { - type: "String", - keyRaw: "bankIfsc", - nullable: true - }, - - bankAccountHolderName: { - type: "String", - keyRaw: "bankAccountHolderName", - nullable: true - }, - - bankSwiftCode: { - type: "String", - keyRaw: "bankSwiftCode", - nullable: true - }, - - banner: { - type: "String", - keyRaw: "banner", - nullable: true - }, - - bannerCdn: { - type: "String", - keyRaw: "bannerCdn", - nullable: true - }, - - commissionType: { - type: "String", - keyRaw: "commissionType", - nullable: true - }, - - commissionValue: { - type: "Float", - keyRaw: "commissionValue", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - freeShippingOn: { - type: "Float", - keyRaw: "freeShippingOn", - nullable: true - }, - - meta: { - type: "String", - keyRaw: "meta", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - metaKeywords: { - type: "String", - keyRaw: "metaKeywords", - nullable: true - }, - - metaTitle: { - type: "String", - keyRaw: "metaTitle", - nullable: true - }, - - productSold: { - type: "Int", - keyRaw: "productSold", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - shippingCharges: { - type: "Float", - keyRaw: "shippingCharges", - nullable: true - }, - - storeName: { - type: "String", - keyRaw: "storeName", - nullable: true - }, - - facebookUrl: { - type: "String", - keyRaw: "facebookUrl", - nullable: true - }, - - githubUrl: { - type: "String", - keyRaw: "githubUrl", - nullable: true - }, - - googleUrl: { - type: "String", - keyRaw: "googleUrl", - nullable: true - }, - - twitterUrl: { - type: "String", - keyRaw: "twitterUrl", - nullable: true - }, - - user: { - type: "User", - keyRaw: "user", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - } - } - }, - - address: { - type: "Address", - keyRaw: "address", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - address: { - type: "String", - keyRaw: "address", - nullable: true - }, - - locality: { - type: "String", - keyRaw: "locality", - nullable: true - }, - - town: { - type: "String", - keyRaw: "town", - nullable: true - }, - - city: { - type: "String", - keyRaw: "city", - nullable: true - }, - - country: { - type: "String", - keyRaw: "country", - nullable: true - }, - - state: { - type: "String", - keyRaw: "state", - nullable: true - }, - - zip: { - type: "String", - keyRaw: "zip", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - lat: { - type: "Float", - keyRaw: "lat", - nullable: true - }, - - lng: { - type: "Float", - keyRaw: "lng", - nullable: true - } - } - }, - - categories: { - type: "Category", - keyRaw: "categories", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id" - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - } - } - }, - - products: { - type: "SearchRes", - keyRaw: "products", - nullable: true, - - fields: { - count: { - type: "Int", - keyRaw: "count", - nullable: true - }, - - page: { - type: "Int", - keyRaw: "page", - nullable: true - }, - - pageSize: { - type: "Int", - keyRaw: "pageSize", - nullable: true - }, - - data: { - type: "Product", - keyRaw: "data", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - sku: { - type: "String", - keyRaw: "sku", - nullable: true - }, - - barcode: { - type: "String", - keyRaw: "barcode", - nullable: true - }, - - productMasterId: { - type: "String", - keyRaw: "productMasterId", - nullable: true - }, - - slug: { - type: "String", - keyRaw: "slug", - nullable: true - }, - - name: { - type: "String", - keyRaw: "name", - nullable: true - }, - - description: { - type: "String", - keyRaw: "description", - nullable: true - }, - - type: { - type: "String", - keyRaw: "type", - nullable: true - }, - - price: { - type: "Float", - keyRaw: "price", - nullable: true - }, - - mrp: { - type: "Float", - keyRaw: "mrp", - nullable: true - }, - - stock: { - type: "Int", - keyRaw: "stock", - nullable: true - }, - - trackInventory: { - type: "Boolean", - keyRaw: "trackInventory", - nullable: true - }, - - tax: { - type: "Float", - keyRaw: "tax", - nullable: true - }, - - img: { - type: "String", - keyRaw: "img", - nullable: true - }, - - imgCdn: { - type: "String", - keyRaw: "imgCdn", - nullable: true - }, - - images: { - type: "String", - keyRaw: "images", - nullable: true - }, - - imagesCdn: { - type: "String", - keyRaw: "imagesCdn", - nullable: true - }, - - time: { - type: "String", - keyRaw: "time", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - popularity: { - type: "Float", - keyRaw: "popularity", - nullable: true - }, - - position: { - type: "Float", - keyRaw: "position", - nullable: true - }, - - trending: { - type: "Boolean", - keyRaw: "trending", - nullable: true - }, - - featured: { - type: "Boolean", - keyRaw: "featured", - nullable: true - }, - - hot: { - type: "Boolean", - keyRaw: "hot", - nullable: true - }, - - new: { - type: "Boolean", - keyRaw: "new", - nullable: true - }, - - sale: { - type: "Boolean", - keyRaw: "sale", - nullable: true - }, - - recommended: { - type: "Boolean", - keyRaw: "recommended", - nullable: true - }, - - title: { - type: "String", - keyRaw: "title", - nullable: true - }, - - metaDescription: { - type: "String", - keyRaw: "metaDescription", - nullable: true - }, - - keywords: { - type: "String", - keyRaw: "keywords", - nullable: true - }, - - keywordsA: { - type: "String", - keyRaw: "keywordsA", - nullable: true - }, - - ratings: { - type: "Float", - keyRaw: "ratings", - nullable: true - }, - - reviews: { - type: "Int", - keyRaw: "reviews", - nullable: true - }, - - itemId: { - type: "String", - keyRaw: "itemId", - nullable: true - }, - - warranty: { - type: "String", - keyRaw: "warranty", - nullable: true - }, - - ageMin: { - type: "Int", - keyRaw: "ageMin", - nullable: true - }, - - ageMax: { - type: "Int", - keyRaw: "ageMax", - nullable: true - }, - - ageUnit: { - type: "String", - keyRaw: "ageUnit", - nullable: true - }, - - cgst: { - type: "Float", - keyRaw: "cgst", - nullable: true - }, - - sgst: { - type: "Float", - keyRaw: "sgst", - nullable: true - }, - - igst: { - type: "Float", - keyRaw: "igst", - nullable: true - }, - - returnInfo: { - type: "String", - keyRaw: "returnInfo", - nullable: true - }, - - returnAllowed: { - type: "Boolean", - keyRaw: "returnAllowed", - nullable: true - }, - - replaceAllowed: { - type: "Boolean", - keyRaw: "replaceAllowed", - nullable: true - }, - - returnValidityInDays: { - type: "Int", - keyRaw: "returnValidityInDays", - nullable: true - }, - - sizechart: { - type: "String", - keyRaw: "sizechart", - nullable: true - }, - - batchNo: { - type: "String", - keyRaw: "batchNo", - nullable: true - }, - - mfgDate: { - type: "String", - keyRaw: "mfgDate", - nullable: true - }, - - expired: { - type: "Boolean", - keyRaw: "expired", - nullable: true - }, - - expiryDate: { - type: "String", - keyRaw: "expiryDate", - nullable: true - }, - - isSearchable: { - type: "Boolean", - keyRaw: "isSearchable", - nullable: true - }, - - isUnlimited: { - type: "Boolean", - keyRaw: "isUnlimited", - nullable: true - }, - - totalSold: { - type: "Int", - keyRaw: "totalSold", - nullable: true - }, - - preOrder: { - type: "Boolean", - keyRaw: "preOrder", - nullable: true - }, - - zips: { - type: "String", - keyRaw: "zips", - nullable: true - }, - - foodType: { - type: "String", - keyRaw: "foodType", - nullable: true - }, - - deliveryDetails: { - type: "String", - keyRaw: "deliveryDetails", - nullable: true - } - } - } - } - }, - - createdAt: { - type: "String", - keyRaw: "createdAt", - nullable: true - }, - - updatedAt: { - type: "String", - keyRaw: "updatedAt", - nullable: true - } - } - } - }, - - input: { - fields: { - vendor: "ID" - }, - - types: {} - }, - - policy: "CacheOrNetwork", - partial: false -}; - -"HoudiniHash=ee5dd8483611ccd960ab37e121646db6e398375f78d3a9e93793221c584fdd17"; \ No newline at end of file diff --git a/$houdini/artifacts/verifyEmail.d.ts b/$houdini/artifacts/verifyEmail.d.ts deleted file mode 100644 index 818ce116..00000000 --- a/$houdini/artifacts/verifyEmail.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export type verifyEmail = { - readonly "input": verifyEmail$input, - readonly "result": verifyEmail$result -}; - -export type verifyEmail$result = { - readonly verifyEmail: boolean | null -}; - -export type verifyEmail$input = { - id: string, - token: string, - expires: string, - signature: string, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/verifyEmail.js b/$houdini/artifacts/verifyEmail.js deleted file mode 100644 index 552f805a..00000000 --- a/$houdini/artifacts/verifyEmail.js +++ /dev/null @@ -1,40 +0,0 @@ -export default { - name: "verifyEmail", - kind: "HoudiniMutation", - hash: "e93535a72f07184c575e062bbe07681e162c0e30ecc0fcd987e219144bdf7387", - - raw: `mutation verifyEmail($id: ID!, $token: String!, $expires: String!, $signature: String!, $store: ID) { - verifyEmail( - id: $id - token: $token - expires: $expires - signature: $signature - store: $store - ) -} -`, - - rootType: "Mutation", - - selection: { - verifyEmail: { - type: "Boolean", - keyRaw: "verifyEmail(id: $id, token: $token, expires: $expires, signature: $signature, store: $store)", - nullable: true - } - }, - - input: { - fields: { - id: "ID", - token: "String", - expires: "String", - signature: "String", - store: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=8cdd1210af913d3e29d40061f85e0b8e183ac85940469c062da81893538c7910"; \ No newline at end of file diff --git a/$houdini/artifacts/verifyOtp.d.ts b/$houdini/artifacts/verifyOtp.d.ts deleted file mode 100644 index 4823863c..00000000 --- a/$houdini/artifacts/verifyOtp.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export type verifyOtp = { - readonly "input": verifyOtp$input, - readonly "result": verifyOtp$result -}; - -export type verifyOtp$result = { - readonly verifyOtp: { - readonly id: string | null, - readonly firstName: string | null, - readonly lastName: string | null, - readonly email: string | null, - readonly phone: string | null, - readonly role: string | null, - readonly verified: boolean | null, - readonly active: boolean | null, - readonly avatar: string | null, - readonly avatarCdn: string | null, - readonly sid: string | null - } | null -}; - -export type verifyOtp$input = { - phone: string, - otp: string, - store?: string | null | undefined -}; \ No newline at end of file diff --git a/$houdini/artifacts/verifyOtp.js b/$houdini/artifacts/verifyOtp.js deleted file mode 100644 index 291043c5..00000000 --- a/$houdini/artifacts/verifyOtp.js +++ /dev/null @@ -1,112 +0,0 @@ -export default { - name: "verifyOtp", - kind: "HoudiniMutation", - hash: "9fc2301a781e14f4c4af0695040414b873b6013e924db8c204fe8e4807752b56", - - raw: `mutation verifyOtp($phone: String!, $otp: String!, $store: ID) { - verifyOtp(phone: $phone, otp: $otp, store: $store) { - id - firstName - lastName - email - phone - role - verified - active - avatar - avatarCdn - sid - } -} -`, - - rootType: "Mutation", - - selection: { - verifyOtp: { - type: "User", - keyRaw: "verifyOtp(phone: $phone, otp: $otp, store: $store)", - nullable: true, - - fields: { - id: { - type: "ID", - keyRaw: "id", - nullable: true - }, - - firstName: { - type: "String", - keyRaw: "firstName", - nullable: true - }, - - lastName: { - type: "String", - keyRaw: "lastName", - nullable: true - }, - - email: { - type: "String", - keyRaw: "email", - nullable: true - }, - - phone: { - type: "String", - keyRaw: "phone", - nullable: true - }, - - role: { - type: "String", - keyRaw: "role", - nullable: true - }, - - verified: { - type: "Boolean", - keyRaw: "verified", - nullable: true - }, - - active: { - type: "Boolean", - keyRaw: "active", - nullable: true - }, - - avatar: { - type: "String", - keyRaw: "avatar", - nullable: true - }, - - avatarCdn: { - type: "String", - keyRaw: "avatarCdn", - nullable: true - }, - - sid: { - type: "String", - keyRaw: "sid", - nullable: true - } - } - } - }, - - input: { - fields: { - phone: "String", - otp: "String", - store: "ID" - }, - - types: {} - } -}; - -"HoudiniHash=88e124bba162cc004c3eadf55a9a087ec40c9311940b63954dd6ce21b31642f2"; \ No newline at end of file diff --git a/$houdini/graphql/documents.gql b/$houdini/graphql/documents.gql deleted file mode 100644 index e69de29b..00000000 diff --git a/$houdini/graphql/enums.d.ts b/$houdini/graphql/enums.d.ts deleted file mode 100644 index ca040adf..00000000 --- a/$houdini/graphql/enums.d.ts +++ /dev/null @@ -1,6 +0,0 @@ - -export declare enum CacheControlScope { - PUBLIC = "PUBLIC", - PRIVATE = "PRIVATE" -} - \ No newline at end of file diff --git a/$houdini/graphql/enums.js b/$houdini/graphql/enums.js deleted file mode 100644 index d93a901a..00000000 --- a/$houdini/graphql/enums.js +++ /dev/null @@ -1,4 +0,0 @@ -export const CacheControlScope = { - "PUBLIC": "PUBLIC", - "PRIVATE": "PRIVATE" -}; \ No newline at end of file diff --git a/$houdini/graphql/index.d.ts b/$houdini/graphql/index.d.ts deleted file mode 100644 index 8b248214..00000000 --- a/$houdini/graphql/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ - -export * from './enums' - \ No newline at end of file diff --git a/$houdini/graphql/index.js b/$houdini/graphql/index.js deleted file mode 100644 index 8b248214..00000000 --- a/$houdini/graphql/index.js +++ /dev/null @@ -1,3 +0,0 @@ - -export * from './enums' - \ No newline at end of file diff --git a/$houdini/graphql/schema.graphql b/$houdini/graphql/schema.graphql deleted file mode 100644 index 13551aa0..00000000 --- a/$houdini/graphql/schema.graphql +++ /dev/null @@ -1,57 +0,0 @@ - -enum CachePolicy { - CacheAndNetwork - CacheOnly - CacheOrNetwork - NetworkOnly -} - -""" - @list is used to mark a field for the runtime as a place to add or remove - entities in mutations -""" -directive @list(name: String!, connection: Boolean) on FIELD - -""" - @paginate is used to to mark a field for pagination. - More info in the [doc](https://www.houdinigraphql.com/guides/pagination). -""" -directive @paginate(name: String) on FIELD - -""" - @prepend is used to tell the runtime to add the result to the end of the list -""" -directive @prepend( - parentID: ID -) on FRAGMENT_SPREAD - -""" - @append is used to tell the runtime to add the result to the start of the list -""" -directive @append(parentID: ID) on FRAGMENT_SPREAD - -""" - @parentID is used to provide a parentID without specifying position or in situations - where it doesn't make sense (eg when deleting a node.) -""" -directive @parentID(value: ID!) on FRAGMENT_SPREAD - -""" - @when is used to provide a conditional or in situations where it doesn't make sense (eg when removing or deleting a node.) -""" -directive @when on FRAGMENT_SPREAD - -""" - @when_not is used to provide a conditional or in situations where it doesn't make sense (eg when removing or deleting a node.) -""" -directive @when_not on FRAGMENT_SPREAD - -""" - @arguments is used to define the arguments of a fragment -""" -directive @arguments on FRAGMENT_DEFINITION - -""" - @cache is used to specify cache rules for a query -""" -directive @cache(policy: CachePolicy, partial: Boolean) on QUERY diff --git a/$houdini/index.d.ts b/$houdini/index.d.ts deleted file mode 100644 index f8862809..00000000 --- a/$houdini/index.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -export * from "./artifacts/address"; -export * from "./artifacts/addresses"; -export * from "./artifacts/addToCart"; -export * from "./artifacts/blog"; -export * from "./artifacts/blogs"; -export * from "./artifacts/cart"; -export * from "./artifacts/cashfreePayNowNew"; -export * from "./artifacts/categories"; -export * from "./artifacts/category"; -export * from "./artifacts/changePassword"; -export * from "./artifacts/checkout"; -export * from "./artifacts/checkWishlist"; -export * from "./artifacts/countries"; -export * from "./artifacts/country"; -export * from "./artifacts/deleteAddress"; -export * from "./artifacts/deleteBlog"; -export * from "./artifacts/deleteCountry"; -export * from "./artifacts/deletePaymentMethod"; -export * from "./artifacts/emailPassword"; -export * from "./artifacts/getOtp"; -export * from "./artifacts/HOME"; -export * from "./artifacts/INIT"; -export * from "./artifacts/login"; -export * from "./artifacts/me"; -export * from "./artifacts/megamenu"; -export * from "./artifacts/myAddresses"; -export * from "./artifacts/myOrderItems"; -export * from "./artifacts/myOrders"; -export * from "./artifacts/myWishlist"; -export * from "./artifacts/orderItem"; -export * from "./artifacts/paymentMethod"; -export * from "./artifacts/paymentMethods"; -export * from "./artifacts/paymentMethodsAdmin"; -export * from "./artifacts/paySuccessPageHit"; -export * from "./artifacts/popularSearches"; -export * from "./artifacts/product"; -export * from "./artifacts/productReviews"; -export * from "./artifacts/products"; -export * from "./artifacts/productSlug"; -export * from "./artifacts/randomVendors"; -export * from "./artifacts/removeStoreCountry"; -export * from "./artifacts/resendEmail"; -export * from "./artifacts/reviews"; -export * from "./artifacts/saveAddress"; -export * from "./artifacts/saveBlog"; -export * from "./artifacts/saveCountry"; -export * from "./artifacts/savePaymentMethod"; -export * from "./artifacts/saveStoreCountry"; -export * from "./artifacts/settings"; -export * from "./artifacts/signOut"; -export * from "./artifacts/states"; -export * from "./artifacts/store"; -export * from "./artifacts/storeCountries"; -export * from "./artifacts/storeCountry"; -export * from "./artifacts/storeOne"; -export * from "./artifacts/stripe"; -export * from "./artifacts/toggleWishlist"; -export * from "./artifacts/topVendors"; -export * from "./artifacts/updateProfile"; -export * from "./artifacts/vendor"; -export * from "./artifacts/vendorProfile"; -export * from "./artifacts/verifyEmail"; -export * from "./artifacts/verifyOtp"; -export * from "./runtime"; -export * from "./stores"; -export * from "./graphql"; \ No newline at end of file diff --git a/$houdini/index.js b/$houdini/index.js deleted file mode 100644 index cb171c21..00000000 --- a/$houdini/index.js +++ /dev/null @@ -1,6 +0,0 @@ - -export { default as houdiniConfig } from "../houdini.config.js" -export * from "./runtime" -export * from "./artifacts" -export * from "./stores" -export * from "./graphql" diff --git a/$houdini/meta.json b/$houdini/meta.json deleted file mode 100644 index 2256420d..00000000 --- a/$houdini/meta.json +++ /dev/null @@ -1 +0,0 @@ -{"version":"0.15.9"} \ No newline at end of file diff --git a/$houdini/runtime/adapter.d.ts b/$houdini/runtime/adapter.d.ts deleted file mode 100644 index c61535e8..00000000 --- a/$houdini/runtime/adapter.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Page } from '@sveltejs/kit'; -import type { Readable, Writable } from 'svelte/store'; -export declare function getSession(): Writable; -export declare function getPage(): Readable; -export declare function goTo(href: string, opts?: { - replaceState?: boolean; - noscroll?: boolean; - keepfocus?: boolean; - state?: any; -}): Promise; -export declare const isBrowser = false; -/** - * After `clientStarted = true`, only client side navigation will happen. - */ -export declare let clientStarted: boolean; -export declare let isPrerender: boolean; diff --git a/$houdini/runtime/adapter.js b/$houdini/runtime/adapter.js deleted file mode 100644 index 503e8329..00000000 --- a/$houdini/runtime/adapter.js +++ /dev/null @@ -1,30 +0,0 @@ -import { goto as go } from '$app/navigation' -import { page, session } from '$app/stores'; -import { get } from 'svelte/store'; -import { browser, prerendering } from '$app/env' - -export function getSession() { - return session -} - -export function getPage() { - return page -} - -export function goTo(location, options) { - go(location, options) -} - -export const isBrowser = browser - -/** - * After `clientStarted = true`, only client side navigation will happen. - */ -export let clientStarted = false; // Will be true on a client side navigation -if (browser) { - addEventListener('sveltekit:start', () => { - clientStarted = true; - }); -} - -export const isPrerender = prerendering diff --git a/$houdini/runtime/cache/cache.d.ts b/$houdini/runtime/cache/cache.d.ts deleted file mode 100644 index e67164c6..00000000 --- a/$houdini/runtime/cache/cache.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { GraphQLObject, GraphQLValue, SubscriptionSelection, SubscriptionSpec } from '..'; -import { ConfigFile } from '../lib'; -import { GarbageCollector } from './gc'; -import { ListCollection, ListManager } from './lists'; -import { InMemoryStorage, Layer, LayerID } from './storage'; -import { InMemorySubscriptions } from './subscription'; -export declare class Cache { - _internal_unstable: CacheInternal; - constructor(config: ConfigFile); - write({ layer: layerID, notifySubscribers, ...args }: { - data: { - [key: string]: GraphQLValue; - }; - selection: SubscriptionSelection; - variables?: {}; - parent?: string; - layer?: LayerID | null; - applyUpdates?: boolean; - notifySubscribers?: SubscriptionSpec[]; - forceNotify?: boolean; - }): SubscriptionSpec[]; - read(...args: Parameters): { - data: GraphQLObject | null; - partial: boolean; - }; - subscribe(spec: SubscriptionSpec, variables?: {}): void; - unsubscribe(spec: SubscriptionSpec, variables?: {}): void; - list(name: string, parentID?: string | {}): ListCollection; - delete(id: string): void; -} -declare class CacheInternal { - private _disabled; - config: ConfigFile; - storage: InMemoryStorage; - subscriptions: InMemorySubscriptions; - lists: ListManager; - cache: Cache; - lifetimes: GarbageCollector; - constructor({ config, storage, subscriptions, lists, cache, lifetimes, }: { - storage: InMemoryStorage; - config: ConfigFile; - subscriptions: InMemorySubscriptions; - lists: ListManager; - cache: Cache; - lifetimes: GarbageCollector; - }); - writeSelection({ data, selection, variables, root, parent, applyUpdates, layer, toNotify, forceNotify, }: { - data: { - [key: string]: GraphQLValue; - }; - selection: SubscriptionSelection; - variables?: { - [key: string]: GraphQLValue; - }; - parent?: string; - root?: string; - layer: Layer; - toNotify?: SubscriptionSpec[]; - applyUpdates?: boolean; - forceNotify?: boolean; - }): SubscriptionSpec[]; - getSelection({ selection, parent, variables, stepsFromConnection, }: { - selection: SubscriptionSelection; - parent?: string; - variables?: {}; - stepsFromConnection?: number | null; - }): { - data: GraphQLObject | null; - partial: boolean; - hasData: boolean; - }; - id(type: string, data: {} | null): string | null; - id(type: string, id: string): string | null; - idFields(type: string): string[]; - computeID(type: string, data: any): string; - hydrateNestedList({ fields, variables, linkedList, stepsFromConnection, }: { - fields: SubscriptionSelection; - variables?: {}; - linkedList: LinkedList; - stepsFromConnection: number | null; - }): { - data: LinkedList; - partial: boolean; - hasData: boolean; - }; - extractNestedListIDs({ value, abstract, recordID, key, linkedType, fields, variables, applyUpdates, specs, layer, forceNotify, }: { - value: GraphQLValue[]; - recordID: string; - key: string; - linkedType: string; - abstract: boolean; - variables: {}; - specs: SubscriptionSpec[]; - applyUpdates: boolean; - fields: SubscriptionSelection; - layer: Layer; - forceNotify?: boolean; - }): { - nestedIDs: LinkedList; - newIDs: (string | null)[]; - }; - collectGarbage(): void; -} -export declare const rootID = "_ROOT_"; -export declare type LinkedList<_Result = string> = (_Result | null | LinkedList<_Result>)[]; -export {}; diff --git a/$houdini/runtime/cache/cache.js b/$houdini/runtime/cache/cache.js deleted file mode 100644 index 500b49aa..00000000 --- a/$houdini/runtime/cache/cache.js +++ /dev/null @@ -1,730 +0,0 @@ -import { computeID, keyFieldsForType, deepEquals } from '../lib'; -import { GarbageCollector } from './gc'; -import { ListManager } from './lists'; -import { InMemoryStorage } from './storage'; -import { evaluateKey, flattenList } from './stuff'; -import { InMemorySubscriptions } from './subscription'; -import { defaultConfigValues } from '../lib/config'; -export class Cache { - constructor(config) { - this._internal_unstable = new CacheInternal({ - cache: this, - config: defaultConfigValues(config), - storage: new InMemoryStorage(), - subscriptions: new InMemorySubscriptions(this), - lists: new ListManager(this, rootID), - lifetimes: new GarbageCollector(this, config.cacheBufferSize), - }); - } - // walk down the selection and save the values that we encounter. - // any changes will notify subscribers. writing to an optimistic layer will resolve it - write({ layer: layerID, notifySubscribers = [], ...args }) { - var _a; - // find the correct layer - const layer = layerID - ? this._internal_unstable.storage.getLayer(layerID) - : this._internal_unstable.storage.topLayer; - // write any values that we run into and get a list of subscribers - const subscribers = this._internal_unstable.writeSelection({ ...args, layer }); - // the same spec will likely need to be updated multiple times, create the unique list by using the set - // function's identity - const notified = []; - for (const spec of subscribers.concat(notifySubscribers)) { - // if we haven't added the set yet - if (!notified.includes(spec.set)) { - notified.push(spec.set); - // trigger the update - spec.set(this._internal_unstable.getSelection({ - parent: spec.parentID || rootID, - selection: spec.selection, - variables: ((_a = spec.variables) === null || _a === void 0 ? void 0 : _a.call(spec)) || {}, - }).data); - } - } - // return the id to the caller so they can resolve the layer if it was optimistic - return subscribers; - } - // reconstruct an object with the fields/relations specified by a selection - read(...args) { - const { data, partial, hasData } = this._internal_unstable.getSelection(...args); - if (!hasData) { - return { data: null, partial: false }; - } - return { - data, - partial, - }; - } - // register the provided callbacks with the fields specified by the selection - subscribe(spec, variables = {}) { - // add the subscribers to every field in the specification - return this._internal_unstable.subscriptions.add({ - parent: spec.parentID || rootID, - spec, - selection: spec.selection, - variables, - }); - } - // stop listening to a particular subscription - unsubscribe(spec, variables = {}) { - return this._internal_unstable.subscriptions.remove(spec.parentID || rootID, spec.selection, [spec], variables); - } - // return the list handler to mutate a named list in the cache - list(name, parentID) { - const handler = this._internal_unstable.lists.get(name, parentID); - if (!handler) { - throw new Error(`Cannot find list with name: ${name}${parentID ? ' under parent ' + parentID : ''}. ` + 'Is it possible that the query is not mounted?'); - } - // return the handler - return handler; - } - // remove the record from the cache's store and unsubscribe from it - delete(id) { - // clean up any subscribers associated with the record before we destroy the actual values that will let us - // walk down - this._internal_unstable.subscriptions.removeAllSubscribers(id); - // make sure we remove the id from any lists that it appears in - this._internal_unstable.lists.removeIDFromAllLists(id); - // delete the record from the store - this._internal_unstable.storage.delete(id); - } -} -class CacheInternal { - constructor({ config, storage, subscriptions, lists, cache, lifetimes, }) { - // for server-side requests we need to be able to flag the cache as disabled so we dont write to it - this._disabled = false; - this.config = config; - this.storage = storage; - this.subscriptions = subscriptions; - this.lists = lists; - this.cache = cache; - this.lifetimes = lifetimes; - // the cache should always be disabled on the server - try { - this._disabled = typeof window === 'undefined'; - } - catch { - this._disabled = true; - } - } - writeSelection({ data, selection, variables = {}, root = rootID, parent = rootID, applyUpdates = false, layer, toNotify = [], forceNotify, }) { - var _a; - // if the cache is disabled, dont do anything - if (this._disabled) { - return []; - } - // data is an object with fields that we need to write to the store - for (const [field, value] of Object.entries(data)) { - // grab the selection info we care about - if (!selection || !selection[field]) { - throw new Error('Could not find field listing in selection for ' + - field + - ' @ ' + - JSON.stringify(selection) + - ''); - } - // look up the field in our schema - let { type: linkedType, keyRaw, fields, operations, abstract: isAbstract, update, } = selection[field]; - const key = evaluateKey(keyRaw, variables); - // the current set of subscribers - const currentSubcribers = this.subscriptions.get(parent, key); - // look up the previous value - const { value: previousValue, displayLayers } = this.storage.get(parent, key); - // if the layer we are updating is the top most layer for the field - // then its value is "live". It is providing the current value and - // subscribers need to know if the value changed - const displayLayer = layer.isDisplayLayer(displayLayers); - // if we are writing to the display layer we need to refresh the lifetime of the value - if (displayLayer) { - this.lifetimes.resetLifetime(parent, key); - } - // any scalar is defined as a field with no selection - if (!fields) { - // the value to write to the layer - let newValue = value; - // if the value is an array, we might have to apply updates - if (Array.isArray(value) && applyUpdates && update) { - // if we have to prepend the new value on the old one - if (update === 'append') { - newValue = (previousValue || []).concat(value); - } - // we might have to prepend our value onto the old one - else if (update === 'prepend') { - newValue = value.concat(previousValue || []); - } - } - // if the value changed on a layer that impacts the current latest value - const valueChanged = !deepEquals(newValue, previousValue); - if (displayLayer && (valueChanged || forceNotify)) { - // we need to add the fields' subscribers to the set of callbacks - // we need to invoke - toNotify.push(...currentSubcribers); - } - // write value to the layer - layer.writeField(parent, key, newValue); - } - // if we are writing `null` over a link - else if (value === null) { - // if the previous value was also null, there's nothing to do - if (previousValue === null) { - continue; - } - const previousLinks = flattenList([previousValue]); - for (const link of previousLinks) { - this.subscriptions.remove(link, fields, currentSubcribers, variables); - } - layer.writeLink(parent, key, null); - // add the list of subscribers for this field - toNotify.push(...currentSubcribers); - } - // the field could point to a linked object - else if (value instanceof Object && !Array.isArray(value)) { - // the previous value is a string holding the id of the object to link to - // if we ran into an interface we need to look at the __typename field - if (isAbstract) { - // make sure we have a __typename field - if (!value.__typename) { - throw new Error('Encountered interface type without __typename in the payload'); - } - // we need to look at the __typename field in the response for the type - linkedType = value.__typename; - } - // figure out if this is an embedded object or a linked one by looking for all of the fields marked as - // required to compute the entity's id - const embedded = ((_a = this.idFields(linkedType)) === null || _a === void 0 ? void 0 : _a.filter((field) => typeof value[field] === 'undefined').length) > 0; - // figure out the new target of the object link - let linkedID = null; - if (value !== null) { - linkedID = !embedded ? this.id(linkedType, value) : `${parent}.${key}`; - } - let linkChange = linkedID !== previousValue; - // write the link to the layer - layer.writeLink(parent, key, linkedID); - // if the link target of this field changed and it was responsible for the current subscription - if (linkedID && displayLayer && (linkChange || forceNotify)) { - // we need to clear the subscriptions in the previous link - // and add them to the new link - if (previousValue && typeof previousValue === 'string') { - this.subscriptions.remove(previousValue, fields, currentSubcribers, variables); - } - // copy the subscribers to the new value - this.subscriptions.addMany({ - parent: linkedID, - selection: fields, - subscribers: currentSubcribers, - variables, - }); - toNotify.push(...currentSubcribers); - } - // if the link target points to another record in the cache we need to walk down its - // selection and update any values we run into - if (linkedID) { - this.writeSelection({ - root, - selection: fields, - parent: linkedID, - data: value, - variables, - toNotify, - applyUpdates, - layer, - forceNotify: true, - }); - } - } - // the field could point to a list of related objects - else if (Array.isArray(value) && - // make typescript happy - (typeof previousValue === 'undefined' || Array.isArray(previousValue))) { - // make a shallow copy of the previous value we can mutate - let oldIDs = [...(previousValue || [])]; - // this field could be a connection (a list of references to edge objects). - // inserts in this list might insert objects into the connection that - // have already been added as part of a list operation. if that happens - // we will need to filter out ids that refer to these fake-edges which - // can be idenfitied as not having a cursor or node value - const emptyEdges = !update - ? [] - : oldIDs.map((id) => { - if (!id) { - return ''; - } - // look up the edge record - const { value: cursorField } = this.storage.get(id, 'cursor'); - // if there is a value for the cursor, it needs to remain - if (cursorField) { - return ''; - } - // look up the node reference - const { value: node } = this.storage.get(id, 'node'); - // if there one, keep the edge - if (!node) { - return ''; - } - // there is no cursor so the edge is empty - return node; - }); - // if we are supposed to prepend or append and the mutation is enabled - // the new list of IDs for this link will start with an existing value - // build up the list of linked ids - let linkedIDs = []; - // it could be a list of lists, in order to recreate the list of lists we need - // we need to track two sets of IDs, the ids of the embedded records and - // then the full structure of embedded lists. we'll use the flat list to add - // and remove subscribers but we'll save the second list in the record so - // we can recreate the structure - const { newIDs, nestedIDs } = this.extractNestedListIDs({ - value, - abstract: Boolean(isAbstract), - specs: toNotify, - applyUpdates, - recordID: parent, - key, - linkedType, - variables: variables, - fields, - layer, - forceNotify, - }); - // if we're supposed to apply this write as an update, we need to figure out how - if (applyUpdates && update) { - // if we are updating the edges field, we might need to do a little more than just - // append/prepend to the field value. we might need to wrap the values in extra references - if (key === 'edges') { - // build up a list of the ids found in the new list - const newNodeIDs = []; - for (const id of newIDs) { - if (!id) { - continue; - } - // look up the lined node record - const { value: node } = this.storage.get(id, 'node'); - // node should be a reference - if (typeof node !== 'string') { - continue; - } - // if we dont have type information or a valid reference - if (!node || !this.storage.get(node, '__typename')) { - continue; - } - newNodeIDs.push(node); - } - // only save a previous ID if the id shows up in the new list and was previously empty, - oldIDs = oldIDs.filter((id) => { - if (!id) { - return true; - } - // look up the node reference - const { value } = this.storage.get(id, 'node'); - const node = value; - // if the id is being adding and is part of the empty edges, don't include it - if (newNodeIDs.includes(node) && emptyEdges.includes(node)) { - return false; - } - // the id is not being replaced by a "real" version - return true; - }); - } - // if we have to prepend it, do so - if (update === 'prepend') { - linkedIDs = newIDs.concat(oldIDs); - } - // otherwise we might have to append it - else if (update === 'append') { - linkedIDs = oldIDs.concat(newIDs); - } - // if the update is a replace do the right thing - else if (update === 'replace') { - linkedIDs = newIDs; - } - } - // we're not supposed to apply this write as an update, just use the new value - else { - linkedIDs = nestedIDs; - } - // we have to notify the subscribers if a few things happen: - // either the data changed (ie we got new content for the same list) - // or we got content for a new list which could already be known. If we just look at - // wether the IDs are the same, situations where we have old data that - // is still valid would not be triggered - const contentChanged = !deepEquals(linkedIDs, oldIDs); - // we need to look at the last time we saw each subscriber to check if they need to be added to the spec - if (contentChanged || forceNotify) { - toNotify.push(...currentSubcribers); - } - // any ids that don't show up in the new list need to have their subscribers wiped - for (const lostID of oldIDs) { - if (linkedIDs.includes(lostID) || !lostID) { - continue; - } - this.subscriptions.remove(lostID, fields, currentSubcribers, variables); - } - // if there was a change in the list - if (contentChanged || (oldIDs.length === 0 && newIDs.length === 0)) { - // update the cached value - layer.writeLink(parent, key, linkedIDs); - } - // every new id that isn't a prevous relationship needs a new subscriber - for (const id of newIDs.filter((id) => !oldIDs.includes(id))) { - if (id == null) { - continue; - } - this.subscriptions.addMany({ - parent: id, - selection: fields, - subscribers: currentSubcribers, - variables, - }); - } - } - // handle any operations relative to this node - for (const operation of operations || []) { - // turn the ID into something we can use - let parentID; - if (operation.parentID) { - // if its a normal scalar we can use the value directly - if (operation.parentID.kind !== 'Variable') { - parentID = operation.parentID.value; - } - else { - const id = variables[operation.parentID.value]; - if (typeof id !== 'string') { - throw new Error('parentID value must be a string'); - } - parentID = id; - } - } - // if the necessary list doesn't exist, don't do anything - if (operation.list && !this.lists.get(operation.list, parentID)) { - continue; - } - // there could be a list of elements to perform the operation on - const targets = Array.isArray(value) ? value : [value]; - for (const target of targets) { - // insert an object into a list - if (operation.action === 'insert' && - target instanceof Object && - fields && - operation.list) { - this.cache - .list(operation.list, parentID) - .when(operation.when) - .addToList(fields, target, variables, operation.position || 'last'); - } - // remove object from list - else if (operation.action === 'remove' && - target instanceof Object && - fields && - operation.list) { - this.cache - .list(operation.list, parentID) - .when(operation.when) - .remove(target, variables); - } - // delete the target - else if (operation.action === 'delete' && operation.type) { - if (typeof target !== 'string') { - throw new Error('Cannot delete a record with a non-string ID'); - } - const targetID = this.id(operation.type, target); - if (!targetID) { - continue; - } - this.cache.delete(targetID); - } - // the toggle operation - else if (operation.action === 'toggle' && - target instanceof Object && - fields && - operation.list) { - this.cache - .list(operation.list, parentID) - .when(operation.when) - .toggleElement(fields, target, variables, operation.position || 'last'); - } - } - } - } - // return the list of subscribers that need to be updated because of this change - return toNotify; - } - // reconstruct an object defined by its selection - getSelection({ selection, parent = rootID, variables, stepsFromConnection = null, }) { - var _a, _b; - // we could be asking for values of null - if (parent === null) { - return { data: null, partial: false, hasData: true }; - } - const target = {}; - // we need to track if we have a partial data set which means we have _something_ but not everything - let hasData = false; - // if we run into a single missing value we will flip this since it means we have a partial result - let partial = false; - // if we get an empty value for a non-null field, we need to turn the whole object null - // that happens after we process every field to determine if its a partial null - let cascadeNull = false; - // look at every field in the parentFields - for (const [attributeName, { type, keyRaw, fields, nullable, list }] of Object.entries(selection)) { - const key = evaluateKey(keyRaw, variables); - // look up the value in our store - const { value } = this.storage.get(parent, key); - // in order to avoid falsey identifying the `cursor` field of a connection edge - // as missing non-nullable data (and therefor cascading null to the response) we need to - // count the number of steps since we saw a connection field and if we are at the - // appropriate level and we run into a null cursor, we avoid the null cascade - let nextStep = stepsFromConnection; - // if we are counting steps - if (nextStep !== null) { - // if we are too many steps passed the connection to care, reset the counter - if (nextStep >= 2) { - nextStep = null; - } - else { - nextStep += 1; - } - } - // if the field is marked as a connection, start the counter - if (list === null || list === void 0 ? void 0 : list.connection) { - nextStep = 0; - } - // if we run into a null cursor that is inside of a connection then - // we know its a generated value and should not force us to mark the whole parent as - // null (prevent the null cascade) or be treated as partial data - const embeddedCursor = key === 'cursor' && stepsFromConnection === 1; - // if we dont have a value, we know this result is going to be partial - if (typeof value === 'undefined' && !embeddedCursor) { - partial = true; - } - // if we dont have a value to return, use null (we check for non-null fields at the end) - // ignore embedded cursors, they will get handled with the other scalars - if (typeof value === 'undefined' || value === null) { - // set the value to null - target[attributeName] = null; - // if we didn't just write undefined, there is officially some data in this object - if (typeof value !== 'undefined') { - hasData = true; - } - } - // if the field is a scalar - else if (!fields) { - // is the type a custom scalar with a specified unmarshal function - const fnUnmarshal = (_b = (_a = this.config.scalars) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.unmarshal; - if (fnUnmarshal) { - // pass the primitive value to the unmarshal function - target[attributeName] = fnUnmarshal(value); - } - // the field does not have an unmarshal function - else { - target[attributeName] = value; - } - hasData = true; - } - // if the field is a list of records - else if (Array.isArray(value)) { - // the linked list could be a deeply nested thing, we need to call getData for each record - const listValue = this.hydrateNestedList({ - fields, - variables, - linkedList: value, - stepsFromConnection: nextStep, - }); - // save the hydrated list - target[attributeName] = listValue.data; - // the linked value could have partial results - if (listValue.partial) { - partial = true; - } - if (listValue.hasData || value.length === 0) { - hasData = true; - } - } - // otherwise the field is a linked object - else { - // look up the related object fields - const objectFields = this.getSelection({ - parent: value, - selection: fields, - variables, - stepsFromConnection: nextStep, - }); - // save the object value - target[attributeName] = objectFields.data; - // the linked value could have partial results - if (objectFields.partial) { - partial = true; - } - if (objectFields.hasData) { - hasData = true; - } - } - // regardless of how the field was processed, if we got a null value assigned - // and the field is not nullable, we need to cascade up - if (target[attributeName] === null && !nullable && !embeddedCursor) { - cascadeNull = true; - } - } - return { - data: cascadeNull ? null : target, - // our value is considered true if there is some data but not everything - // has a full value - partial: hasData && partial, - hasData, - }; - } - id(type, data) { - // try to compute the id of the record - const id = typeof data === 'string' ? data : this.computeID(type, data); - if (!id) { - return null; - } - if (!type) { - return id; - } - return type + ':' + id; - } - // the list of fields that we need in order to compute an objects id - idFields(type) { - return keyFieldsForType(this.config, type); - } - computeID(type, data) { - return computeID(this.config, type, data); - } - hydrateNestedList({ fields, variables, linkedList, stepsFromConnection, }) { - // the linked list could be a deeply nested thing, we need to call getData for each record - // we can't mutate the lists because that would change the id references in the listLinks map - // to the corresponding record. can't have that now, can we? - const result = []; - let partialData = false; - let hasValues = false; - for (const entry of linkedList) { - // if the entry is an array, keep going - if (Array.isArray(entry)) { - const nestedValue = this.hydrateNestedList({ - fields, - variables, - linkedList: entry, - stepsFromConnection, - }); - result.push(nestedValue.data); - if (nestedValue.partial) { - partialData = true; - } - continue; - } - // the entry could be null - if (entry === null) { - result.push(entry); - continue; - } - // look up the data for the record - const { data, partial, hasData } = this.getSelection({ - parent: entry, - selection: fields, - variables, - stepsFromConnection, - }); - result.push(data); - if (partial) { - partialData = true; - } - if (hasData) { - hasValues = true; - } - } - return { - data: result, - partial: partialData, - hasData: hasValues, - }; - } - extractNestedListIDs({ value, abstract, recordID, key, linkedType, fields, variables, applyUpdates, specs, layer, forceNotify, }) { - var _a; - // build up the two lists - const nestedIDs = []; - const newIDs = []; - for (const [i, entry] of value.entries()) { - // if we found another list - if (Array.isArray(entry)) { - // compute the nested list of ids - const inner = this.extractNestedListIDs({ - value: entry, - abstract, - recordID, - key, - linkedType, - fields, - variables, - applyUpdates, - specs, - layer, - forceNotify, - }); - // add the list of new ids to our list - newIDs.push(...inner.newIDs); - // and use the nested form in place of it - nestedIDs[i] = inner.nestedIDs; - continue; - } - // if the value is null just use that - if (entry === null || typeof entry === 'undefined') { - newIDs.push(null); - nestedIDs[i] = null; - continue; - } - // we know now that entry is an object - const entryObj = entry; - // start off building up the embedded id - // @ts-ignore - let linkedID = `${recordID}.${key}[${this.storage.nextRank}]`; - // figure out if this is an embedded list or a linked one by looking for all of the fields marked as - // required to compute the entity's id - const embedded = ((_a = this.idFields(linkedType)) === null || _a === void 0 ? void 0 : _a.filter((field) => typeof entry[field] === 'undefined').length) > 0; - const typename = entryObj.__typename; - let innerType = linkedType; - // if we ran into an interface - if (abstract) { - // make sure we have a __typename field - if (!typename) { - throw new Error('Encountered interface type without __typename in the payload'); - } - // we need to look at the __typename field in the response for the type - innerType = typename; - } - // if this isn't an embedded reference, use the entry's id in the link list - if (!embedded) { - const id = this.id(innerType, entry); - if (id) { - linkedID = id; - } - else { - continue; - } - } - // update the linked fields too - this.writeSelection({ - root: rootID, - selection: fields, - parent: linkedID, - data: entryObj, - variables, - toNotify: specs, - applyUpdates, - layer, - forceNotify, - }); - newIDs.push(linkedID); - nestedIDs[i] = linkedID; - } - return { newIDs, nestedIDs }; - } - collectGarbage() { - // increment the lifetimes of unused data - this.lifetimes.tick(); - // if there is only one layer in the cache, clean up the data - if (this.storage.layerCount === 1) { - this.storage.topLayer.removeUndefinedFields(); - } - } -} -// fields on the root of the data store are keyed with a fixed id -export const rootID = '_ROOT_'; diff --git a/$houdini/runtime/cache/gc.d.ts b/$houdini/runtime/cache/gc.d.ts deleted file mode 100644 index 7baf42a0..00000000 --- a/$houdini/runtime/cache/gc.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Cache } from './cache'; -export declare class GarbageCollector { - cache: Cache; - private lifetimes; - readonly cacheBufferSize: number; - constructor(cache: Cache, bufferSize?: number); - resetLifetime(id: string, field: string): void; - tick(): void; -} diff --git a/$houdini/runtime/cache/gc.js b/$houdini/runtime/cache/gc.js deleted file mode 100644 index e46a906e..00000000 --- a/$houdini/runtime/cache/gc.js +++ /dev/null @@ -1,40 +0,0 @@ -export class GarbageCollector { - constructor(cache, bufferSize = 10) { - this.lifetimes = new Map(); - this.cache = cache; - this.cacheBufferSize = bufferSize; - } - resetLifetime(id, field) { - // if this is the first time we've seen the id - if (!this.lifetimes.get(id)) { - this.lifetimes.set(id, new Map()); - } - // set the count to 0 - this.lifetimes.get(id).set(field, 0); - } - tick() { - // look at every field of every record we know about - for (const [id, fieldMap] of this.lifetimes.entries()) { - for (const [field, lifetime] of fieldMap.entries()) { - // if there is an active subscriber for the field move on - if (this.cache._internal_unstable.subscriptions.get(id, field).length > 0) { - continue; - } - // there are no active subscriptions for this field, increment the lifetime count - fieldMap.set(field, lifetime + 1); - // if the lifetime is older than the maximum value, delete the value - if (fieldMap.get(field) > this.cacheBufferSize) { - this.cache._internal_unstable.storage.deleteField(id, field); - // if there is a list associated with this field, the handler needs to be deleted - this.cache._internal_unstable.lists.deleteField(id, field); - // delete the entry in lifetime map - fieldMap.delete(field); - // if there are no more entries for the id, delete the id info - if ([...fieldMap.keys()].length === 0) { - this.lifetimes.delete(id); - } - } - } - } - } -} diff --git a/$houdini/runtime/cache/index.d.ts b/$houdini/runtime/cache/index.d.ts deleted file mode 100644 index c33f79f6..00000000 --- a/$houdini/runtime/cache/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Cache } from './cache'; -declare let cache: Cache; -export default cache; diff --git a/$houdini/runtime/cache/index.js b/$houdini/runtime/cache/index.js deleted file mode 100644 index 980bd1ed..00000000 --- a/$houdini/runtime/cache/index.js +++ /dev/null @@ -1,12 +0,0 @@ -import config from "../../../houdini.config.js" -import { Cache } from './cache'; -let cache; -try { - // @ts-ignore: config will be defined by the generator - cache = new Cache(config || {}); -} -catch { - // @ts-ignore - cache = new Cache({}); -} -export default cache; diff --git a/$houdini/runtime/cache/lists.d.ts b/$houdini/runtime/cache/lists.d.ts deleted file mode 100644 index 575f74dc..00000000 --- a/$houdini/runtime/cache/lists.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { SubscriptionSelection, ListWhen, SubscriptionSpec } from '../lib/types'; -import { Cache } from './cache'; -export declare class ListManager { - rootID: string; - cache: Cache; - constructor(cache: Cache, rootID: string); - lists: Map>; - private listsByField; - get(listName: string, id?: string | {}): ListCollection | null | undefined; - remove(listName: string, id: string): void; - add(list: { - name: string; - connection: boolean; - recordID: SubscriptionSpec['parentID']; - recordType?: string; - key: string; - listType: string; - selection: SubscriptionSelection; - when?: ListWhen; - filters?: List['filters']; - abstract?: boolean; - }): void; - removeIDFromAllLists(id: string): void; - deleteField(parentID: string, field: string): void; -} -export declare class List { - readonly recordID: string; - readonly recordType?: string; - readonly key: string; - readonly type: string; - private cache; - readonly selection: SubscriptionSelection; - private _when?; - private filters?; - readonly name: string; - private connection; - private manager; - private abstract?; - constructor({ name, recordID, recordType, key, listType, selection, when, filters, connection, manager, abstract, }: Parameters[0] & { - manager: ListManager; - }); - when(when?: ListWhen): ListCollection; - append(selection: SubscriptionSelection, data: {}, variables?: {}): void; - prepend(selection: SubscriptionSelection, data: {}, variables?: {}): void; - addToList(selection: SubscriptionSelection, data: {}, variables: {} | undefined, where: 'first' | 'last'): void; - removeID(id: string, variables?: {}): true | undefined; - remove(data: {}, variables?: {}): true | undefined; - listType(data: { - __typename?: string; - }): string; - validateWhen(when?: ListWhen): boolean; - toggleElement(selection: SubscriptionSelection, data: {}, variables: {} | undefined, where: 'first' | 'last'): void; - [Symbol.iterator](): Generator; -} -export declare class ListCollection { - lists: List[]; - constructor(lists: List[]); - append(...args: Parameters): void; - prepend(...args: Parameters): void; - addToList(...args: Parameters): void; - removeID(...args: Parameters): void; - remove(...args: Parameters): void; - toggleElement(...args: Parameters): void; - when(when?: ListWhen): ListCollection; - includes(key: string): boolean; - deleteListWithKey(key: string): List[]; - [Symbol.iterator](): Generator; -} diff --git a/$houdini/runtime/cache/lists.js b/$houdini/runtime/cache/lists.js deleted file mode 100644 index e7dd9247..00000000 --- a/$houdini/runtime/cache/lists.js +++ /dev/null @@ -1,366 +0,0 @@ -import { rootID } from './cache'; -import { flattenList } from './stuff'; -export class ListManager { - constructor(cache, rootID) { - // associate list names with the handler that wraps the list - this.lists = new Map(); - this.listsByField = new Map(); - this.rootID = rootID; - this.cache = cache; - } - get(listName, id) { - var _a; - const matches = this.lists.get(listName); - // if we don't have a list by that name, we're done - if (!matches || matches.size === 0) { - return null; - } - const head = [...matches.values()][0]; - // if there is only one list with that name, return it - if ((matches === null || matches === void 0 ? void 0 : matches.size) === 1) { - return head; - } - // there are multiple versions of the list so the user must - // have provided an id. If they meant to refer to the root object - // it would have been caught in the size === 1 check above since - // root's ID is fixed - if (!id) { - throw new Error(`Found multiple instances of "${listName}". Please provide a ` + - `parentID that corresponds to the object containing the field marked with @list or @paginate.`); - } - // the provided id won't match the cache's ID so we have to compute the internal ID, using - // one of the matches to figure out the type of the list element - const { recordType } = head.lists[0]; - const parentID = id ? this.cache._internal_unstable.id(recordType || '', id) : this.rootID; - // return the list pointing to the correct parent - return (_a = this.lists.get(listName)) === null || _a === void 0 ? void 0 : _a.get(parentID); - } - remove(listName, id) { - var _a; - (_a = this.lists.get(listName)) === null || _a === void 0 ? void 0 : _a.delete(id || this.rootID); - } - add(list) { - var _a, _b, _c; - // if we haven't seen this list before - if (!this.lists.has(list.name)) { - this.lists.set(list.name, new Map()); - } - // if we haven't seen the list before, add a new colleciton - const name = list.name; - const parentID = list.recordID || this.rootID; - // if we already have a handler for the key, don't do anything - if ((_b = (_a = this.lists.get(name)) === null || _a === void 0 ? void 0 : _a.get(parentID)) === null || _b === void 0 ? void 0 : _b.includes(list.key)) { - return; - } - if (!this.lists.has(name)) { - this.lists.set(name, new Map()); - } - if (!this.lists.get(name).has(parentID)) { - this.lists.get(name).set(parentID, new ListCollection([])); - } - if (!this.listsByField.has(parentID)) { - this.listsByField.set(parentID, new Map()); - } - if (!this.listsByField.get(parentID).has(list.key)) { - (_c = this.listsByField.get(parentID)) === null || _c === void 0 ? void 0 : _c.set(list.key, []); - } - // create the list handler - const handler = new List({ ...list, manager: this }); - // add the list to the collection - this.lists.get(list.name).get(parentID).lists.push(handler); - this.listsByField.get(parentID).get(list.key).push(handler); - } - removeIDFromAllLists(id) { - for (const fieldMap of this.lists.values()) { - for (const list of fieldMap.values()) { - list.removeID(id); - } - } - } - deleteField(parentID, field) { - var _a, _b, _c, _d, _e, _f; - // if we have no lists associated with the parent/field combo, don't do anything - if (!((_a = this.listsByField.get(parentID)) === null || _a === void 0 ? void 0 : _a.has(field))) { - return; - } - // grab the list of fields associated with the parent/field combo - for (const list of this.listsByField.get(parentID).get(field)) { - (_c = (_b = this.lists.get(list.name)) === null || _b === void 0 ? void 0 : _b.get(list.recordID)) === null || _c === void 0 ? void 0 : _c.deleteListWithKey(field); - if (((_e = (_d = this.lists.get(list.name)) === null || _d === void 0 ? void 0 : _d.get(list.recordID)) === null || _e === void 0 ? void 0 : _e.lists.length) === 0) { - (_f = this.lists.get(list.name)) === null || _f === void 0 ? void 0 : _f.delete(list.recordID); - } - } - // delete the lists by field lookups - this.listsByField.get(parentID).delete(field); - } -} -export class List { - constructor({ name, recordID, recordType, key, listType, selection, when, filters, connection, manager, abstract, }) { - this.recordID = recordID || rootID; - this.recordType = recordType; - this.key = key; - this.type = listType; - this.cache = manager.cache; - this.selection = selection; - this._when = when; - this.filters = filters; - this.name = name; - this.connection = connection; - this.manager = manager; - this.abstract = abstract; - } - // looks for the collection of all of the lists in the cache that satisfies a when - // condition - when(when) { - return this.manager.lists.get(this.name).get(this.recordID).when(when); - } - append(selection, data, variables = {}) { - return this.addToList(selection, data, variables, 'last'); - } - prepend(selection, data, variables = {}) { - return this.addToList(selection, data, variables, 'first'); - } - addToList(selection, data, variables = {}, where) { - // figure out the type we're adding - const listType = this.listType(data); - // figure out the id of the type we are adding - const dataID = this.cache._internal_unstable.id(listType, data); - // if there are conditions for this operation - if (!this.validateWhen() || !dataID) { - return; - } - // we are going to implement the insert as a write with an update flag on a field - // that matches the key of the list. We'll have to embed the lists data and selection - // in the appropriate objects - let insertSelection = selection; - let insertData = data; - // if we are wrapping a connection, we have to embed the data under edges > node - if (this.connection) { - insertSelection = { - newEntry: { - keyRaw: this.key, - type: 'Connection', - fields: { - edges: { - keyRaw: 'edges', - type: 'ConnectionEdge', - update: (where === 'first' ? 'prepend' : 'append'), - fields: { - node: { - type: listType, - keyRaw: 'node', - fields: { - ...selection, - __typename: { - keyRaw: '__typename', - type: 'String', - }, - }, - }, - }, - }, - }, - }, - }; - insertData = { - newEntry: { - edges: [{ node: { ...data, __typename: listType } }], - }, - }; - } - else { - insertSelection = { - newEntries: { - keyRaw: this.key, - type: listType, - update: (where === 'first' ? 'prepend' : 'append'), - fields: { - ...selection, - __typename: { - keyRaw: '__typename', - type: 'String', - }, - }, - }, - }; - insertData = { - newEntries: [{ ...data, __typename: listType }], - }; - } - // update the cache with the data we just found - this.cache.write({ - selection: insertSelection, - data: insertData, - variables, - parent: this.recordID, - applyUpdates: true, - }); - } - removeID(id, variables = {}) { - var _a; - // if there are conditions for this operation - if (!this.validateWhen()) { - return; - } - // if we are removing from a connection, the id we are removing from - // has to be computed - let parentID = this.recordID; - let targetID = id; - let targetKey = this.key; - // if we are removing a record from a connection we have to walk through - // some embedded references first - if (this.connection) { - const { value: embeddedConnection } = this.cache._internal_unstable.storage.get(this.recordID, this.key); - if (!embeddedConnection) { - return; - } - const embeddedConnectionID = embeddedConnection; - // look at every embedded edge for the one with a node corresponding to the element - // we want to delete - const { value: edges } = this.cache._internal_unstable.storage.get(embeddedConnectionID, 'edges'); - for (const edge of flattenList(edges) || []) { - if (!edge) { - continue; - } - const edgeID = edge; - // look at the edge's node - const { value: nodeID } = this.cache._internal_unstable.storage.get(edgeID, 'node'); - if (!nodeID) { - continue; - } - // if we found the node - if (nodeID === id) { - targetID = edgeID; - } - } - parentID = embeddedConnectionID; - targetKey = 'edges'; - } - // if the id is not contained in the list, dont notify anyone - let value = this.cache._internal_unstable.storage.get(parentID, targetKey) - .value; - if (!value || !value.includes(targetID)) { - return; - } - // get the list of specs that are subscribing to the list - const subscribers = this.cache._internal_unstable.subscriptions.get(this.recordID, this.key); - // disconnect record from any subscriptions associated with the list - this.cache._internal_unstable.subscriptions.remove(targetID, - // if we are unsubscribing from a connection, the fields we care about - // are tucked away under edges - this.connection ? this.selection.edges.fields : this.selection, subscribers, variables); - // remove the target from the parent - this.cache._internal_unstable.storage.remove(parentID, targetKey, targetID); - // notify the subscribers about the change - for (const spec of subscribers) { - // trigger the update - spec.set(this.cache._internal_unstable.getSelection({ - parent: spec.parentID || this.manager.rootID, - selection: spec.selection, - variables: ((_a = spec.variables) === null || _a === void 0 ? void 0 : _a.call(spec)) || {}, - }).data); - } - // return true if we deleted something - return true; - } - remove(data, variables = {}) { - const targetID = this.cache._internal_unstable.id(this.listType(data), data); - if (!targetID) { - return; - } - // figure out the id of the type we are adding - return this.removeID(targetID, variables); - } - listType(data) { - return data.__typename || this.type; - } - validateWhen(when) { - // if this when doesn't apply, we should look at others to see if we should update those behind the scenes - let filters = when || this._when; - let ok = true; - // if there are conditions for this operation - if (filters) { - // we only NEED there to be target filters for must's - const targets = this.filters; - // check must's first - if (filters.must && targets) { - ok = Object.entries(filters.must).reduce((prev, [key, value]) => Boolean(prev && targets[key] == value), ok); - } - // if there are no targets, nothing could be true that can we compare against - if (filters.must_not) { - ok = - !targets || - Object.entries(filters.must_not).reduce((prev, [key, value]) => Boolean(prev && targets[key] != value), ok); - } - } - return ok; - } - toggleElement(selection, data, variables = {}, where) { - // if we dont have something to remove, then add it instead - if (!this.remove(data, variables)) { - this.addToList(selection, data, variables, where); - } - } - // iterating over the list handler should be the same as iterating over - // the underlying linked list - *[Symbol.iterator]() { - let entries = []; - // grab the underlying value from the cache - let value = this.cache._internal_unstable.storage.get(this.recordID, this.key).value; - if (!this.connection) { - entries = flattenList(value); - } - else { - // connections need to reference the edges field for the list of entries - entries = this.cache._internal_unstable.storage.get(value, 'edges') - .value; - } - for (let record of entries) { - yield record; - } - } -} -export class ListCollection { - constructor(lists) { - this.lists = []; - this.lists = lists; - } - append(...args) { - this.lists.forEach((list) => list.append(...args)); - } - prepend(...args) { - this.lists.forEach((list) => list.prepend(...args)); - } - addToList(...args) { - this.lists.forEach((list) => list.addToList(...args)); - } - removeID(...args) { - this.lists.forEach((list) => list.removeID(...args)); - } - remove(...args) { - this.lists.forEach((list) => list.remove(...args)); - } - toggleElement(...args) { - this.lists.forEach((list) => list.toggleElement(...args)); - } - when(when) { - return new ListCollection(this.lists.filter((list) => { - return list.validateWhen(when); - })); - } - includes(key) { - return !!this.lists.find((list) => list.key === key); - } - deleteListWithKey(key) { - return (this.lists = this.lists.filter((list) => list.key !== key)); - } - // iterating over the collection should be the same as iterating over - // the underlying list - *[Symbol.iterator]() { - for (let list of this.lists) { - for (const entry of list) { - yield entry; - } - } - } -} diff --git a/$houdini/runtime/cache/storage.d.ts b/$houdini/runtime/cache/storage.d.ts deleted file mode 100644 index e44159cd..00000000 --- a/$houdini/runtime/cache/storage.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import type { GraphQLValue } from '../lib/types'; -export declare class InMemoryStorage { - private data; - private idCount; - private rank; - constructor(); - get layerCount(): number; - get nextRank(): number; - createLayer(optimistic?: boolean): Layer; - insert(id: string, field: string, location: OperationLocation, target: string): void; - remove(id: string, field: string, target: string): void; - delete(id: string): void; - deleteField(id: string, field: string): void; - getLayer(id: number): Layer; - replaceID(replacement: { - from: string; - to: string; - }): void; - get(id: string, field: string): { - value: GraphQLField; - kind: 'link' | 'scalar' | 'unknown'; - displayLayers: number[]; - }; - writeLink(id: string, field: string, value: string | LinkedList): number; - writeField(id: string, field: string, value: GraphQLValue): number; - resolveLayer(id: number): void; - get topLayer(): Layer; -} -export declare class Layer { - readonly id: LayerID; - optimistic: boolean; - fields: EntityFieldMap; - links: LinkMap; - operations: OperationMap; - deletedIDs: Set; - constructor(id: number); - get(id: string, field: string): [GraphQLField, 'link' | 'scalar']; - getOperations(id: string, field: string): Operation[] | undefined; - writeField(id: string, field: string, value: GraphQLField): LayerID; - writeLink(id: string, field: string, value: null | string | LinkedList): LayerID; - isDisplayLayer(displayLayers: number[]): boolean; - clear(): void; - replaceID({ from, to }: { - from: string; - to: string; - }): void; - removeUndefinedFields(): void; - delete(id: string): void; - deleteField(id: string, field: string): void; - insert(id: string, field: string, where: OperationLocation, target: string): void; - remove(id: string, field: string, target: string): void; - writeLayer(layer: Layer): void; - private addFieldOperation; -} -declare type GraphQLField = GraphQLValue | LinkedList; -declare type EntityMap<_Value> = { - [id: string]: { - [field: string]: _Value; - }; -}; -declare type EntityFieldMap = EntityMap; -declare type LinkMap = EntityMap; -declare type OperationMap = { - [id: string]: { - deleted?: boolean; - undoDeletesInList?: string[]; - fields: { - [field: string]: ListOperation[]; - }; - }; -}; -declare type LinkedList<_Result = string> = (_Result | null | LinkedList<_Result>)[]; -declare type InsertOperation = { - kind: OperationKind.insert; - location: OperationLocation; - id: string; -}; -declare type RemoveOperation = { - kind: OperationKind.remove; - id: string; -}; -declare type DeleteOperation = { - kind: OperationKind.delete; - target: string; -}; -declare type ListOperation = InsertOperation | RemoveOperation; -declare type Operation = ListOperation | DeleteOperation; -export declare enum OperationLocation { - start = "start", - end = "end" -} -export declare enum OperationKind { - delete = "delete", - insert = "insert", - remove = "remove" -} -export declare type LayerID = number; -export {}; diff --git a/$houdini/runtime/cache/storage.js b/$houdini/runtime/cache/storage.js deleted file mode 100644 index 02a476e4..00000000 --- a/$houdini/runtime/cache/storage.js +++ /dev/null @@ -1,442 +0,0 @@ -import { flattenList } from './stuff'; -// NOTE: the current implementation of delete is slow. it should try to compare the -// type of the id being deleted with the type contained in the linked list so that -// the removal logic is only performed when its possible the ID is found inside. -// ie: deleting a user should not slow down looking up a list of cats -export class InMemoryStorage { - constructor() { - this.idCount = 0; - this.rank = 0; - this.data = []; - } - get layerCount() { - return this.data.length; - } - get nextRank() { - return this.rank++; - } - // create a layer and return its id - createLayer(optimistic = false) { - // generate the next layer - const layer = new Layer(this.idCount++); - layer.optimistic = optimistic; - // add the layer to the list - this.data.push(layer); - // pass the layer on so it can be updated - return layer; - } - insert(id, field, location, target) { - return this.topLayer.insert(id, field, location, target); - } - remove(id, field, target) { - return this.topLayer.remove(id, field, target); - } - delete(id) { - return this.topLayer.delete(id); - } - deleteField(id, field) { - return this.topLayer.deleteField(id, field); - } - getLayer(id) { - for (const layer of this.data) { - if (layer.id === id) { - return layer; - } - } - // we didn't find the layer - throw new Error('Could not find layer with id: ' + id); - } - replaceID(replacement) { - for (const layer of this.data) { - layer.replaceID(replacement); - } - } - get(id, field) { - // the list of operations for the field - const operations = { - [OperationKind.insert]: { - [OperationLocation.start]: [], - [OperationLocation.end]: [], - }, - [OperationKind.remove]: new Set(), - }; - // the list of layers we used to build up the value - const layerIDs = []; - // go through the list of layers in reverse - for (let i = this.data.length - 1; i >= 0; i--) { - const layer = this.data[i]; - const [layerValue, kind] = layer.get(id, field); - const layerOperations = layer.getOperations(id, field) || []; - layer.deletedIDs.forEach((v) => { - var _a, _b; - // if the layer wants to undo a delete for the id - if ((_b = (_a = layer.operations[v]) === null || _a === void 0 ? void 0 : _a.undoDeletesInList) === null || _b === void 0 ? void 0 : _b.includes(field)) { - return; - } - operations.remove.add(v); - }); - // if the layer does not contain a value for the field, move on - if (typeof layerValue === 'undefined' && layerOperations.length === 0) { - if (layer.deletedIDs.size > 0) { - layerIDs.push(layer.id); - } - continue; - } - // if the result isn't an array we can just use the value since we can't - // apply operations to the field - if (typeof layerValue !== 'undefined' && !Array.isArray(layerValue)) { - return { - value: layerValue, - kind, - displayLayers: [layer.id], - }; - } - // if the layer contains operations or values add it to the list of relevant layers - // add the layer to the list - layerIDs.push(layer.id); - // if we have an operation - if (layerOperations.length > 0) { - // process every operation - for (const op of layerOperations) { - // remove operation - if (isRemoveOperation(op)) { - operations.remove.add(op.id); - } - // inserts are sorted by location - if (isInsertOperation(op)) { - operations.insert[op.location].unshift(op.id); - } - // if we found a delete operation, we're done - if (isDeleteOperation(op)) { - return { - value: undefined, - kind: 'unknown', - displayLayers: [], - }; - } - } - } - // if we don't have a value to return, we're done - if (typeof layerValue === 'undefined') { - continue; - } - // if there are no operations, move along - if (!operations.remove.size && - !operations.insert.start.length && - !operations.insert.end.length) { - return { value: layerValue, displayLayers: layerIDs, kind: 'link' }; - } - // we have operations to apply to the list - return { - value: [...operations.insert.start, ...layerValue, ...operations.insert.end].filter((value) => !operations.remove.has(value)), - displayLayers: layerIDs, - kind, - }; - } - return { - value: undefined, - kind: 'unknown', - displayLayers: [], - }; - } - writeLink(id, field, value) { - // write to the top most layer - return this.topLayer.writeLink(id, field, value); - } - writeField(id, field, value) { - return this.topLayer.writeField(id, field, value); - } - resolveLayer(id) { - let startingIndex = null; - // find the layer with the matching id - for (const [index, layer] of this.data.entries()) { - if (layer.id !== id) { - continue; - } - // we found the target layer - startingIndex = index - 1; - // its not optimistic any more - this.data[index].optimistic = false; - // we're done - break; - } - // if we didn't find the layer, yell loudly - if (startingIndex === null) { - throw new Error('could not find layer with id: ' + id); - } - // if we are resolving the base layer make sure we start at zero - if (startingIndex === -1) { - startingIndex = 0; - } - // if the starting layer is optimistic then we can't write to it - if (this.data[startingIndex].optimistic) { - startingIndex++; - } - // start walking down the list of layers, applying any non-optimistic ones to the target - const baseLayer = this.data[startingIndex]; - let layerIndex = startingIndex; - while (layerIndex < this.data.length) { - // the layer in question and move the counter up one after we index - const layer = this.data[layerIndex++]; - // if the layer is optimistic, we can't go further - if (layer.optimistic) { - layerIndex--; - break; - } - // apply the layer onto our base - baseLayer.writeLayer(layer); - } - // delete the layers we merged - this.data.splice(startingIndex + 1, layerIndex - startingIndex - 1); - } - get topLayer() { - var _a; - // if there is no base layer - if (this.data.length === 0) { - this.createLayer(); - } - // if the last layer is optimistic, create another layer on top of it - // since optimistic layers have to be written to directly - if ((_a = this.data[this.data.length - 1]) === null || _a === void 0 ? void 0 : _a.optimistic) { - this.createLayer(); - } - // the top layer is safe to write to (its non-null and guaranteed not optimistic) - return this.data[this.data.length - 1]; - } -} -export class Layer { - constructor(id) { - this.optimistic = false; - this.fields = {}; - this.links = {}; - this.operations = {}; - this.deletedIDs = new Set(); - this.id = id; - } - get(id, field) { - var _a, _b; - // if its a link return the value - if (typeof ((_a = this.links[id]) === null || _a === void 0 ? void 0 : _a[field]) !== 'undefined') { - return [this.links[id][field], 'link']; - } - // only other option is a value - return [(_b = this.fields[id]) === null || _b === void 0 ? void 0 : _b[field], 'scalar']; - } - getOperations(id, field) { - var _a, _b, _c; - // if the id has been deleted - if ((_a = this.operations[id]) === null || _a === void 0 ? void 0 : _a.deleted) { - return [ - { - kind: OperationKind.delete, - target: id, - }, - ]; - } - // there could be a mutation for the specific field - if ((_c = (_b = this.operations[id]) === null || _b === void 0 ? void 0 : _b.fields) === null || _c === void 0 ? void 0 : _c[field]) { - return this.operations[id].fields[field]; - } - } - writeField(id, field, value) { - this.fields[id] = { - ...this.fields[id], - [field]: value, - }; - return this.id; - } - writeLink(id, field, value) { - var _a, _b, _c; - // if any of the values in this link are flagged to be deleted, undelete it - const valueList = Array.isArray(value) ? value : [value]; - for (const value of flattenList(valueList)) { - if (!value) { - continue; - } - const fieldOperations = (_a = this.operations[id]) === null || _a === void 0 ? void 0 : _a.fields[field]; - // if the operation was globally deleted - if (((_b = this.operations[value]) === null || _b === void 0 ? void 0 : _b.deleted) || this.deletedIDs.has(value)) { - // undo the delete - this.operations[value] = { - ...this.operations[value], - undoDeletesInList: [...(((_c = this.operations[id]) === null || _c === void 0 ? void 0 : _c.undoDeletesInList) || []), field], - }; - // the value could have been removed specifically from the list - } - else if (value && (fieldOperations === null || fieldOperations === void 0 ? void 0 : fieldOperations.length) > 0) { - // if we have a field operation to remove the list, undo the operation - this.operations[id].fields[field] = fieldOperations.filter((op) => op.kind !== 'remove' || op.id !== value); - } - } - this.links[id] = { - ...this.links[id], - [field]: value, - }; - return this.id; - } - isDisplayLayer(displayLayers) { - return (displayLayers.length === 0 || - displayLayers.includes(this.id) || - Math.max(...displayLayers) < this.id); - } - clear() { - // before we clear the data of the layer, look for any subscribers that need to be updated - // now that everything has been notified we can reset the data - this.links = {}; - this.fields = {}; - this.operations = {}; - this.deletedIDs = new Set(); - } - replaceID({ from, to }) { - // any fields that existing in from, assign to to - this.fields[to] = this.fields[from]; - this.links[to] = this.links[from]; - this.operations[to] = this.operations[from] || { fields: {} }; - if (this.deletedIDs.has(from)) { - this.deletedIDs.add(to); - } - } - removeUndefinedFields() { - // any field that's marked as undefined needs to be deleted - for (const [id, fields] of Object.entries(this.fields)) { - for (const [field, value] of Object.entries(fields)) { - if (typeof value === 'undefined') { - try { - delete this.fields[id][field]; - } - catch { } - try { - delete this.links[id][field]; - } - catch { } - } - } - // if there are no fields left for the object, clean it up - if (Object.keys(fields || {}).length === 0) { - delete this.fields[id]; - } - // if there are no more links, clean it up - if (Object.keys(this.links[id] || {}).length === 0) { - delete this.links[id]; - } - } - } - delete(id) { - // add an insert operation to the map - this.operations = { - ...this.operations, - [id]: { - ...this.operations[id], - deleted: true, - // reapply any delete undos - undoDeletesInList: [], - }, - }; - // add the id to the list of ids that have been deleted in this layer (so we can filter them out later) - this.deletedIDs.add(id); - } - deleteField(id, field) { - this.fields[id] = { - ...this.fields[id], - [field]: undefined, - }; - } - insert(id, field, where, target) { - // add an insert operation for the field - this.addFieldOperation(id, field, { - kind: OperationKind.insert, - id: target, - location: where, - }); - } - remove(id, field, target) { - // add a remove operation for the field - this.addFieldOperation(id, field, { - kind: OperationKind.remove, - id: target, - }); - } - writeLayer(layer) { - // if we are merging into ourselves, we're done - if (layer.id === this.id) { - return; - } - // we have to apply operations before we move fields so we can clean up existing - // data if we have a delete before we copy over the values - for (const [id, ops] of Object.entries(layer.operations)) { - const fields = {}; - // merge the two operation maps - for (const opMap of [this.operations[id], layer.operations[id]].filter(Boolean)) { - for (const [fieldName, operations] of Object.entries(opMap.fields || {})) { - fields[fieldName] = [...(fields[fieldName] || []), ...operations]; - } - } - // only copy a field key if there is something - if (Object.keys(fields).length > 0) { - this.operations[id] = { - ...this.operations[id], - fields, - }; - } - // if we are applying - if (ops === null || ops === void 0 ? void 0 : ops.deleted) { - delete this.fields[id]; - delete this.links[id]; - } - } - // copy the field values - for (const [id, values] of Object.entries(layer.fields)) { - if (!values) { - continue; - } - // we do have a record matching this id, copy the individual fields - for (const [field, value] of Object.entries(values)) { - this.writeField(id, field, value); - } - } - // copy the link values - for (const [id, values] of Object.entries(layer.links)) { - if (!values) { - continue; - } - // we do have a record matching this id, copy the individual links - for (const [field, value] of Object.entries(values)) { - this.writeLink(id, field, value); - } - } - // add the list of deleted ids to this layer - layer.deletedIDs.forEach((v) => this.deletedIDs.add(v)); - } - addFieldOperation(id, field, operation) { - var _a; - this.operations = { - ...this.operations, - [id]: { - ...this.operations[id], - fields: { - [field]: [...(((_a = this.operations[id]) === null || _a === void 0 ? void 0 : _a.fields[field]) || []), operation], - }, - }, - }; - } -} -function isDeleteOperation(value) { - return !!value && value.kind === OperationKind.delete; -} -function isInsertOperation(value) { - return !!value && value.kind === OperationKind.insert; -} -function isRemoveOperation(value) { - return !!value && value.kind === OperationKind.remove; -} -export var OperationLocation; -(function (OperationLocation) { - OperationLocation["start"] = "start"; - OperationLocation["end"] = "end"; -})(OperationLocation || (OperationLocation = {})); -export var OperationKind; -(function (OperationKind) { - OperationKind["delete"] = "delete"; - OperationKind["insert"] = "insert"; - OperationKind["remove"] = "remove"; -})(OperationKind || (OperationKind = {})); diff --git a/$houdini/runtime/cache/stuff.d.ts b/$houdini/runtime/cache/stuff.d.ts deleted file mode 100644 index 7b32db80..00000000 --- a/$houdini/runtime/cache/stuff.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { GraphQLValue } from '..'; -import { LinkedList } from './cache'; -export declare function flattenList(source: LinkedList): T[]; -export declare function evaluateKey(key: string, variables?: { - [key: string]: GraphQLValue; -}): string; diff --git a/$houdini/runtime/cache/stuff.js b/$houdini/runtime/cache/stuff.js deleted file mode 100644 index f531b602..00000000 --- a/$houdini/runtime/cache/stuff.js +++ /dev/null @@ -1,59 +0,0 @@ -export function flattenList(source) { - const flat = []; - // we need to flatten the list links - const unvisited = [source || []]; - while (unvisited.length > 0) { - const target = unvisited.shift(); - for (const id of target) { - if (Array.isArray(id)) { - unvisited.push(id); - continue; - } - flat.push(id); - } - } - return flat; -} -// given a raw key and a set of variables, generate the fully qualified key -export function evaluateKey(key, variables = {}) { - // accumulate the evaluated key - let evaluated = ''; - // accumulate a variable name that we're evaluating - let varName = ''; - // some state to track if we are "in" a string - let inString = false; - for (const char of key) { - // if we are building up a variable - if (varName) { - // if we are looking at a valid variable character - if (varChars.includes(char)) { - // add it to the variable name - varName += char; - continue; - } - // we are at the end of a variable name so we - // need to clean up and add before continuing with the string - // look up the variable and add the result (varName starts with a $) - const value = variables[varName.slice(1)]; - evaluated += typeof value !== 'undefined' ? JSON.stringify(value) : 'undefined'; - // clear the variable name accumulator - varName = ''; - } - // if we are looking at the start of a variable - if (char === '$' && !inString) { - // start the accumulator - varName = '$'; - // move along - continue; - } - // if we found a quote, invert the string state - if (char === '"') { - inString = !inString; - } - // this isn't a special case, just add the letter to the value - evaluated += char; - } - return evaluated; -} -// the list of characters that make up a valid graphql variable name -const varChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789'; diff --git a/$houdini/runtime/cache/subscription.d.ts b/$houdini/runtime/cache/subscription.d.ts deleted file mode 100644 index 8ca0c691..00000000 --- a/$houdini/runtime/cache/subscription.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type { SubscriptionSpec, SubscriptionSelection, GraphQLObject } from '../lib/types'; -import { Cache } from './cache'; -import type { GraphQLValue } from '../lib/types'; -export declare class InMemorySubscriptions { - private cache; - constructor(cache: Cache); - private subscribers; - private referenceCounts; - private keyVersions; - add({ parent, spec, selection, variables, parentType, }: { - parent: string; - parentType?: string; - spec: SubscriptionSpec; - selection: SubscriptionSelection; - variables: { - [key: string]: GraphQLValue; - }; - }): void; - addFieldSubscription({ id, key, selection, spec, parentType, variables, }: { - id: string; - key: string; - selection: SubscriptionSelection[string]; - spec: SubscriptionSpec; - parentType: string; - variables: GraphQLObject; - }): void; - addMany({ parent, selection, variables, subscribers, }: { - parent: string; - selection: SubscriptionSelection; - variables: {}; - subscribers: SubscriptionSpec[]; - }): void; - get(id: string, field: string): SubscriptionSpec[]; - remove(id: string, fields: SubscriptionSelection, targets: SubscriptionSpec[], variables: {}, visited?: string[]): void; - private removeSubscribers; - removeAllSubscribers(id: string, targets?: SubscriptionSpec[], visited?: string[]): void; -} diff --git a/$houdini/runtime/cache/subscription.js b/$houdini/runtime/cache/subscription.js deleted file mode 100644 index 5f71deda..00000000 --- a/$houdini/runtime/cache/subscription.js +++ /dev/null @@ -1,230 +0,0 @@ -import { evaluateKey, flattenList } from './stuff'; -// manage the subscriptions -export class InMemorySubscriptions { - constructor(cache) { - this.subscribers = {}; - this.referenceCounts = {}; - this.keyVersions = {}; - this.cache = cache; - } - add({ parent, spec, selection, variables, parentType, }) { - for (const fieldSelection of Object.values(selection)) { - const { keyRaw, fields, type } = fieldSelection; - const key = evaluateKey(keyRaw, variables); - // add the subscriber to the field - this.addFieldSubscription({ - id: parent, - key, - selection: fieldSelection, - spec, - parentType: parentType || spec.rootType, - variables, - }); - // if the field points to a link, we need to subscribe to any fields of that - // linked record - if (fields) { - // if the link points to a record then we just have to add it to the one - const { value: linkedRecord } = this.cache._internal_unstable.storage.get(parent, key); - let children = !Array.isArray(linkedRecord) - ? [linkedRecord] - : flattenList(linkedRecord) || []; - // add the subscriber to every child - for (const child of children) { - // avoid null children - if (!child) { - continue; - } - // make sure the children update this subscription - this.add({ - parent: child, - spec, - selection: fields, - variables, - parentType: type, - }); - } - } - } - } - addFieldSubscription({ id, key, selection, spec, parentType, variables, }) { - var _a; - // if we haven't seen the id or field before, create a list we can add to - if (!this.subscribers[id]) { - this.subscribers[id] = {}; - } - if (!this.subscribers[id][key]) { - this.subscribers[id][key] = []; - } - // if this is the first time we've seen the raw key - if (!this.keyVersions[key]) { - this.keyVersions[key] = new Set(); - } - // add this version of the key if we need to - this.keyVersions[key].add(key); - if (!this.subscribers[id][key].map(({ set }) => set).includes(spec.set)) { - this.subscribers[id][key].push(spec); - } - // if this is the first time we've seen this key - if (!this.referenceCounts[id]) { - this.referenceCounts[id] = {}; - } - if (!this.referenceCounts[id][key]) { - this.referenceCounts[id][key] = new Map(); - } - const counts = this.referenceCounts[id][key]; - // we're going to increment the current value by one - counts.set(spec.set, (counts.get(spec.set) || 0) + 1); - // reset the lifetime for the key - this.cache._internal_unstable.lifetimes.resetLifetime(id, key); - // if this field is marked as a list, register it. this will overwrite existing list handlers - // so that they can get up to date filters - const { fields, list, filters } = selection; - if (fields && list) { - this.cache._internal_unstable.lists.add({ - name: list.name, - connection: list.connection, - recordID: id, - recordType: ((_a = this.cache._internal_unstable.storage.get(id, '__typename')) === null || _a === void 0 ? void 0 : _a.value) || parentType, - listType: list.type, - key, - selection: fields, - filters: Object.entries(filters || {}).reduce((acc, [key, { kind, value }]) => { - return { - ...acc, - [key]: kind !== 'Variable' ? value : variables[value], - }; - }, {}), - }); - } - } - // this is different from add because of the treatment of lists - addMany({ parent, selection, variables, subscribers, }) { - // look at every field in the selection and add the subscribers - for (const fieldSelection of Object.values(selection)) { - const { keyRaw, fields } = fieldSelection; - const key = evaluateKey(keyRaw, variables); - // add the subscriber to the - for (const spec of subscribers) { - this.addFieldSubscription({ - id: parent, - key, - selection: fieldSelection, - spec, - parentType: 'asdf', - variables, - }); - } - // if there are fields under this - if (fields) { - const { value: link } = this.cache._internal_unstable.storage.get(parent, key); - // figure out who else needs subscribers - const children = !Array.isArray(link) - ? [link] - : flattenList(link); - for (const linkedRecord of children) { - // avoid null records - if (!linkedRecord) { - continue; - } - // insert the subscriber - this.addMany({ - parent: linkedRecord, - selection: fields, - variables, - subscribers, - }); - } - } - } - } - get(id, field) { - var _a; - return ((_a = this.subscribers[id]) === null || _a === void 0 ? void 0 : _a[field]) || []; - } - remove(id, fields, targets, variables, visited = []) { - visited.push(id); - // walk down to every record we know about - const linkedIDs = []; - // look at the fields for ones corresponding to links - for (const selection of Object.values(fields)) { - const key = evaluateKey(selection.keyRaw, variables); - // remove the subscribers for the field - this.removeSubscribers(id, key, targets); - // if there is no subselection it doesn't point to a link, move on - if (!selection.fields) { - continue; - } - // if there is a link associated with this field we need to destroy the handler - if (selection.list) { - } - const { value: previousValue } = this.cache._internal_unstable.storage.get(id, key); - // if its not a list, wrap it as one so we can dry things up - const links = !Array.isArray(previousValue) - ? [previousValue] - : flattenList(previousValue); - for (const link of links) { - if (link !== null) { - linkedIDs.push([link, selection.fields]); - } - } - } - for (const [linkedRecordID, linkFields] of linkedIDs) { - this.remove(linkedRecordID, linkFields, targets, visited); - } - } - removeSubscribers(id, fieldName, specs) { - var _a, _b; - // build up a list of the sets we actually need to remove after - // checking reference counts - let targets = []; - for (const spec of specs) { - // if we dont know this field/set combo, there's nothing to do (probably a bug somewhere) - if (!((_b = (_a = this.referenceCounts[id]) === null || _a === void 0 ? void 0 : _a[fieldName]) === null || _b === void 0 ? void 0 : _b.has(spec.set))) { - continue; - } - const counts = this.referenceCounts[id][fieldName]; - const newVal = (counts.get(spec.set) || 0) - 1; - // decrement the reference of every field - counts.set(spec.set, newVal); - // if that was the last reference we knew of - if (newVal <= 0) { - targets.push(spec.set); - // remove the reference to the set function - counts.delete(spec.set); - } - } - // we do need to remove the set from the list - if (this.subscribers[id]) { - this.subscribers[id][fieldName] = this.get(id, fieldName).filter(({ set }) => !targets.includes(set)); - } - } - removeAllSubscribers(id, targets, visited = []) { - visited.push(id); - // every field that currently being subscribed to needs to be cleaned up - for (const field of Object.keys(this.subscribers[id] || [])) { - // grab the current set of subscribers - const subscribers = targets || this.subscribers[id][field]; - // delete the subscriber for the field - this.removeSubscribers(id, field, subscribers); - // look up the value for the field so we can remove any subscribers that existed because of a - // subscriber to this record - const { value, kind } = this.cache._internal_unstable.storage.get(id, field); - // if the field is a scalar, there's nothing more to do - if (kind === 'scalar') { - continue; - } - // if the value is a single link , wrap it in a list. otherwise, flatten the link list - const nextTargets = Array.isArray(value) - ? flattenList(value) - : [value]; - for (const id of nextTargets) { - // if we have already visited this id, move on - if (visited.includes(id)) { - continue; - } - // keep walking down - this.removeAllSubscribers(id, subscribers, visited); - } - } - } -} diff --git a/$houdini/runtime/index.d.ts b/$houdini/runtime/index.d.ts deleted file mode 100644 index b30fca8e..00000000 --- a/$houdini/runtime/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { GraphQLTagResult } from './lib/types'; -export * from './lib'; -export * from './inline'; -export * from './adapter'; -export declare function graphql(str: TemplateStringsArray): GraphQLTagResult; diff --git a/$houdini/runtime/index.js b/$houdini/runtime/index.js deleted file mode 100644 index 3967b73b..00000000 --- a/$houdini/runtime/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export * from './lib'; -export * from './inline'; -export * from './adapter'; -// this template tag gets removed by the preprocessor so it should never be invoked. -// this function needs to return the same value as what the preprocessor leaves behind for type consistency -export function graphql(str) { - // if this is executed, the preprocessor is not enabled - throw new Error("Looks like you don't have the preprocessor enabled."); -} diff --git a/$houdini/runtime/inline/fragment.d.ts b/$houdini/runtime/inline/fragment.d.ts deleted file mode 100644 index de59581e..00000000 --- a/$houdini/runtime/inline/fragment.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Readable } from 'svelte/store'; -import type { Fragment, GraphQLTagResult } from '../lib/types'; -import { PaginatedDocumentHandlers, PageInfo } from '../lib/pagination'; -export declare function fragment<_Fragment extends Fragment>(fragment: GraphQLTagResult, ref: _Fragment): Readable> & { - data: Readable<_Fragment>; -}; -export declare function fragment<_Fragment extends Fragment>(fragment: GraphQLTagResult, ref: _Fragment | null): Readable | null> & { - data: Readable<_Fragment | null>; -}; -export declare function paginatedFragment<_Fragment extends Fragment>(document: GraphQLTagResult, initialValue: _Fragment | null): { - data: Readable<_Fragment['shape'] | null>; -} & Omit, 'refetch'>; -export declare function paginatedFragment<_Fragment extends Fragment>(document: GraphQLTagResult, initialValue: _Fragment): { - data: Readable<_Fragment['shape']>; -} & Omit, 'pageInfo' & { - pageInfo: Readable; -}>, 'refetch'>; diff --git a/$houdini/runtime/inline/fragment.js b/$houdini/runtime/inline/fragment.js deleted file mode 100644 index c5d498a8..00000000 --- a/$houdini/runtime/inline/fragment.js +++ /dev/null @@ -1,93 +0,0 @@ -import { wrapPaginationStore } from '../lib/pagination'; -export function fragment(fragment, ref) { - // make sure we got a query document - if (fragment.kind !== 'HoudiniFragment' || false) { - throw new Error('getFragment can only take fragment documents'); - } - // load the fragment store for the value - const store = fragment.store.get(ref); - // make sure the store always stays up to date with the fragment value - fragment.proxy.listen((val) => { - // update the fragment value to match the new value - store.update(val); - }); - return { - ...store, - data: { subscribe: store.subscribe }, - }; - // the following block of comments is from a time when fragments had their own subscriptions - // since a query subscribes to its full selection this isn't necessary but will be in the future - // once we optimize subscriptions to only be for the direct selection set. so i'm leaving it - // here for now - // @ts-ignore: typing esm/cjs interop is hard - // const artifact: FragmentArtifact = fragment.artifact.default || fragment.artifact - // const queryVariables = getVariables() - // @ts-ignore: isn't properly typed yet to know if initialValue has the right values - // const parentID = cache._internal_unstable.id(artifact.rootType, initialValue) - // let spec: SubscriptionSpec | null = null - // a fragment has to subscribe individually because svelte can't detect that a prop has changed - // if there is an object passed - // let spec: SubscriptionSpec | null = null - // // wrap the result in a store we can use to keep this query up to date - // const store = writable(initialValue, (set) => { - // // if we couldn't compute the parent of the fragment - // if (!parentID) { - // return - // } - // spec = { - // rootType: artifact.rootType, - // selection: artifact.selection, - // set, - // parentID, - // variables: queryVariables, - // } - // // when the component mounts - // onMount(() => { - // // stay up to date - // cache.subscribe(spec!, queryVariables()) - // }) - // // the function used to clean up the store - // return () => { - // // if there is no subscription spec, there's nothing to subscribe from - // if (!spec) { - // return - // } - // // if we subscribed to something we'll need to clean up - // cache.unsubscribe(spec, queryVariables()) - // } - // }) - // whenever the fragment proxy gives us a new value for the fragment we need to - // update the store's value and possible subscribe to new data - // fragment.proxy.listen((val: _Fragment) => { - // // compute the new parent ID - // // @ts-ignore: id isn't properly typed yet to know if initialValue has the right values - // const newParent = cache._internal_unstable.id(artifact.rootType, val) - // if (!spec || !newParent) { - // return - // } - // // if the parent ID has changed - // if (newParent !== parentID) { - // const variables = queryVariables() - // // subscribe from the old parent - // cache.unsubscribe(spec, variables) - // // update the spec and resubscribe - // spec.parentID = newParent - // cache.subscribe(spec, variables) - // } - // }) -} -export function paginatedFragment(document, initialValue) { - var _a; - // make sure we got a query document - if (document.kind !== 'HoudiniFragment') { - throw new Error('paginatedFragment() must be passed a fragment document'); - } - // if we don't have a pagination fragment there is a problem - if (!((_a = document.artifact.refetch) === null || _a === void 0 ? void 0 : _a.paginated)) { - throw new Error('paginatedFragment must be passed a fragment with @paginate'); - } - // TODO: fix type checking paginated - // @ts-ignore: the query store will only include the methods when it needs to - // and the userland type checking happens as part of the query type generation - return wrapPaginationStore(fragment(document, initialValue)); -} diff --git a/$houdini/runtime/inline/index.d.ts b/$houdini/runtime/inline/index.d.ts deleted file mode 100644 index 9021664e..00000000 --- a/$houdini/runtime/inline/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { query, paginatedQuery } from './query'; -export { mutation } from './mutation'; -export { fragment, paginatedFragment } from './fragment'; -export { subscription } from './subscription'; diff --git a/$houdini/runtime/inline/index.js b/$houdini/runtime/inline/index.js deleted file mode 100644 index 9021664e..00000000 --- a/$houdini/runtime/inline/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export { query, paginatedQuery } from './query'; -export { mutation } from './mutation'; -export { fragment, paginatedFragment } from './fragment'; -export { subscription } from './subscription'; diff --git a/$houdini/runtime/inline/mutation.d.ts b/$houdini/runtime/inline/mutation.d.ts deleted file mode 100644 index b950dc2b..00000000 --- a/$houdini/runtime/inline/mutation.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Operation, GraphQLTagResult } from '../lib'; -export declare type MutationConfig<_Result, _Input> = { - optimisticResponse?: _Result; -}; -export declare function mutation<_Mutation extends Operation>(document: GraphQLTagResult): (variables: _Mutation['input'], mutationConfig?: MutationConfig<_Mutation["result"], _Mutation["input"]> | undefined) => Promise<_Mutation['result']>; diff --git a/$houdini/runtime/inline/mutation.js b/$houdini/runtime/inline/mutation.js deleted file mode 100644 index c79023fe..00000000 --- a/$houdini/runtime/inline/mutation.js +++ /dev/null @@ -1,17 +0,0 @@ -// locals -import { getHoudiniContext } from '../lib'; -export function mutation(document) { - // make sure we got a query document - if (document.kind !== 'HoudiniMutation') { - throw new Error('mutation() must be passed a mutation document'); - } - const context = getHoudiniContext(); - return async (variables, mutationConfig) => { - const { data } = await document.store.mutate({ - variables, - ...mutationConfig, - context, - }); - return data; - }; -} diff --git a/$houdini/runtime/inline/query.d.ts b/$houdini/runtime/inline/query.d.ts deleted file mode 100644 index 7f5e3fa5..00000000 --- a/$houdini/runtime/inline/query.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Readable } from 'svelte/store'; -import { GraphQLTagResult, Operation, QueryResult, CachePolicy } from '../lib/types'; -import { PaginatedDocumentHandlers, PageInfo } from '../lib/pagination'; -export declare function query<_Query extends Operation>(document: GraphQLTagResult): QueryResponse<_Query['result'], _Query['input']>; -export declare type QueryResponse<_Data, _Input> = { - data: Readable<_Data>; - refetch: (input?: _Input, config?: RefetchConfig) => Promise>; - loading: Readable; - partial: Readable; - errors: Readable<{ - message: string; - }[] | null>; - variables: Readable<_Input>; -}; -declare type RefetchConfig = { - policy?: CachePolicy; -}; -export declare function paginatedQuery<_Query extends Operation>(document: GraphQLTagResult): QueryResponse<_Query['result'], _Query['input']> & Omit, 'pageInfos'> & { - pageInfo: Readable; -}; -export {}; diff --git a/$houdini/runtime/inline/query.js b/$houdini/runtime/inline/query.js deleted file mode 100644 index 962f53b4..00000000 --- a/$houdini/runtime/inline/query.js +++ /dev/null @@ -1,42 +0,0 @@ -// externals -import { derived } from 'svelte/store'; -// locals -import { CachePolicy } from '../lib/types'; -import { wrapPaginationStore } from '../lib/pagination'; -import { getHoudiniContext } from '../lib/context'; -export function query(document) { - // make sure we got a query document - if (document.kind !== 'HoudiniQuery') { - throw new Error('query() must be passed a query document'); - } - // build some derived stores for the atomic values - const data = derived(document.store, ($store) => $store.data); - const loading = derived(document.store, ($store) => $store.isFetching); - const partial = derived(document.store, ($store) => $store.partial); - const errors = derived(document.store, ($store) => $store.errors); - const variables = derived(document.store, ($store) => $store.variables); - // load the current houdini context - const context = getHoudiniContext(); - return { - ...document.store, - data, - refetch: (variables, config) => { - return document.store.fetch({ - context, - variables, - policy: CachePolicy.NetworkOnly, - ...config, - }); - }, - errors, - loading, - partial, - variables, - }; -} -export function paginatedQuery(document) { - // TODO: fix type checking paginated - // @ts-ignore: the query store will only include the methods when it needs to - // and the userland type checking happens as part of the query type generation - return wrapPaginationStore(query(document)); -} diff --git a/$houdini/runtime/inline/subscription.d.ts b/$houdini/runtime/inline/subscription.d.ts deleted file mode 100644 index 7517be4d..00000000 --- a/$houdini/runtime/inline/subscription.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Readable } from 'svelte/store'; -import { Operation, GraphQLTagResult } from '../lib/types'; -export declare function subscription<_Subscription extends Operation>(document: GraphQLTagResult, variables?: _Subscription['input']): { - data: Readable<_Subscription['result']>; -}; diff --git a/$houdini/runtime/inline/subscription.js b/$houdini/runtime/inline/subscription.js deleted file mode 100644 index aca6d3d6..00000000 --- a/$houdini/runtime/inline/subscription.js +++ /dev/null @@ -1,23 +0,0 @@ -import { onDestroy } from 'svelte'; -import { isBrowser } from '../adapter'; -// subscription holds open a live connection to the server. it returns a store -// containing the requested data. Houdini will also update the cache with any -// information that it encounters in the response. -export function subscription(document, variables) { - // make sure we got a query document - if (document.kind !== 'HoudiniSubscription') { - throw new Error('subscription() must be passed a subscription document'); - } - // an inline document's value is just the store - const value = { data: { subscribe: document.store.subscribe } }; - // invoking subscription on the server doesn't do anything - if (!isBrowser) { - return value; - } - // every invocation should just be pushed to the store - document.store.listen(variables); - onDestroy(() => { - document.store.unlisten(); - }); - return value; -} diff --git a/$houdini/runtime/lib/config.d.ts b/$houdini/runtime/lib/config.d.ts deleted file mode 100644 index 3f4d2c6d..00000000 --- a/$houdini/runtime/lib/config.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import type { GraphQLSchema } from 'graphql'; -import { CachePolicy } from './types'; -export declare type ScalarSpec = { - type: string; - marshal?: (val: any) => any; - unmarshal?: (val: any) => any; -}; -declare type ScalarMap = { - [typeName: string]: ScalarSpec; -}; -export declare type ConfigFile = { - /** - * A glob pointing at all your graphql operations - * @example glob: `src/** /*.{svelte,gql}` - */ - sourceGlob: string; - /** - * A static representation of your schema - * @example path: `schema.graphql` - * @example glob: `src/** /*.graphql` - * - * FYI: `schemaPath` or `schema` should be defined - */ - schemaPath?: string; - /** - * Raw graphql schema - * - * FYI: `schemaPath` or `schema` should be defined - */ - schema?: string | GraphQLSchema; - /** - * @deprecated use logLevel instead. - */ - quiet?: boolean; - /** - * A url to use to pull the schema. For more information: https://www.houdinigraphql.com/api/cli#generate - */ - apiUrl?: string; - /** - * A boolean that tells the preprocessor to treat every component as a non-route. This is useful for projects built with the static-adapter - */ - static?: boolean; - /** - * An object describing custom scalars for your project. For more information: https://www.houdinigraphql.com/api/config#custom-scalars - */ - scalars?: ScalarMap; - /** - * A path that the generator will use to write schema.graphql and documents.gql files containing all of the internal fragment and directive definitions used in the project. - */ - definitionsPath?: string; - /** - * One of "kit", "sapper", or "svelte". Used to tell the preprocessor what kind of loading paradigm to generate for you. (default: kit) - */ - framework?: 'kit' | 'sapper' | 'svelte'; - /** - * One of "esm" or "commonjs". Tells the artifact generator what kind of modules to create. (default: esm) - */ - module?: 'esm' | 'commonjs'; - /** - * The number of queries that must occur before a value is removed from the cache. For more information: https://www.houdinigraphql.com/guides/caching-data - */ - cacheBufferSize?: number; - /** - * The default cache policy to use for queries. For more information: https://www.houdinigraphql.com/guides/caching-data - */ - defaultCachePolicy?: CachePolicy; - /** - * Specifies wether or not the cache should always use partial data. For more information: https://www.houdinigraphql.com/guides/caching-data#partial-data - */ - defaultPartial?: boolean; - /** - * A list of fields to use when computing a record’s id. The default value is ['id']. For more information: https://www.houdinigraphql.com/guides/caching-data#custom-ids - */ - defaultKeys?: string[]; - /** - * An object that customizes the resolution behavior for a specific type. For more information: https://www.houdinigraphql.com/guides/caching-data#custom-ids - */ - types?: TypeConfig; - /** - * Specifies the style of logging houdini will use when generating your file. One of “quiet”, “full”, “summary”, or “short-summary”. - */ - logLevel?: string; - /** - * A flag to disable fragment masking when generating your document types - */ - disableMasking?: boolean; - /** - * A function to customize the logic houdini uses to identify a route or component when the file - * is _inside_ of the routesDir. You do not need to define this if you have a custom value in - * your SvelteKit config file - Houdini will use what's there. - */ - routes?: (filepath: string) => boolean; - /** - * The directory containing your project routes. For default Kit and Sapper projects, this - * value is ./src/routes - */ - routesDir?: string; - /** - * The path to your framework config file relative to the houdini config file. By - * default, Houdini will look for your framework config file in process.cwd() - * however that's not always valid. Use this option to customize where houdini looks. - */ - frameworkConfigFile?: string; -}; -export declare type TypeConfig = { - [typeName: string]: { - keys?: string[]; - resolve: { - queryField: string; - arguments?: (data: any) => { - [key: string]: any; - }; - }; - }; -}; -export declare function defaultConfigValues(file: ConfigFile): ConfigFile; -export declare function keyFieldsForType(configFile: ConfigFile, type: string): string[]; -export declare function computeID(configFile: ConfigFile, type: string, data: any): string; -export {}; diff --git a/$houdini/runtime/lib/config.js b/$houdini/runtime/lib/config.js deleted file mode 100644 index bdb0f890..00000000 --- a/$houdini/runtime/lib/config.js +++ /dev/null @@ -1,28 +0,0 @@ -export function defaultConfigValues(file) { - return { - defaultKeys: ['id'], - ...file, - types: { - Node: { - keys: ['id'], - resolve: { - queryField: 'node', - arguments: (node) => ({ id: node.id }), - }, - }, - ...file.types, - }, - }; -} -export function keyFieldsForType(configFile, type) { - var _a, _b; - return ((_b = (_a = configFile.types) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.keys) || configFile.defaultKeys; -} -export function computeID(configFile, type, data) { - const fields = keyFieldsForType(configFile, type); - let id = ''; - for (const field of fields) { - id += data[field] + '__'; - } - return id.slice(0, -2); -} diff --git a/$houdini/runtime/lib/context.d.ts b/$houdini/runtime/lib/context.d.ts deleted file mode 100644 index bd8f6c08..00000000 --- a/$houdini/runtime/lib/context.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { HoudiniFetchContext } from './types'; -export declare const setVariables: (vars: () => {}) => () => {}; -export declare function nullHoudiniContext(): HoudiniFetchContext; -export declare function getHoudiniContext(): HoudiniFetchContext; diff --git a/$houdini/runtime/lib/context.js b/$houdini/runtime/lib/context.js deleted file mode 100644 index 745ff889..00000000 --- a/$houdini/runtime/lib/context.js +++ /dev/null @@ -1,46 +0,0 @@ -// externals -import { getContext as svelteContext, setContext } from 'svelte'; -import { get } from 'svelte/store'; -// locals -import { getPage, getSession } from '../adapter'; -import * as log from './log'; -export const setVariables = (vars) => setContext('variables', vars); -export function nullHoudiniContext() { - return { - url: () => null, - session: () => null, - variables: async () => { }, - stuff: () => ({}), - }; -} -export function getHoudiniContext() { - try { - // hold onto references to the current session and url values - const sessionStore = getSession(); - let session = null; - sessionStore.subscribe((val) => (session = val)); - const pageStore = getPage(); - let { url, stuff } = get(pageStore); - pageStore.subscribe((val) => { - url = val.url; - stuff = val.stuff; - }); - return { - url: () => url, - session: () => session, - variables: svelteContext('variables') || (() => ({})), - stuff: () => stuff, - }; - } - catch (e) { - log.info(`${log.red('⚠️ getHoudiniContext() was not called in the right place ⚠️')} -You should do something like the following. Make sure getHoudiniContext is -called at the top of your component (outside any event handlers or function definitions). - -`); - throw new Error(e); - } -} diff --git a/$houdini/runtime/lib/deepEquals.d.ts b/$houdini/runtime/lib/deepEquals.d.ts deleted file mode 100644 index 8bb79f9d..00000000 --- a/$houdini/runtime/lib/deepEquals.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function deepEquals(objA: any, objB: any, map?: WeakMap): boolean; diff --git a/$houdini/runtime/lib/deepEquals.js b/$houdini/runtime/lib/deepEquals.js deleted file mode 100644 index 3c7784d4..00000000 --- a/$houdini/runtime/lib/deepEquals.js +++ /dev/null @@ -1,27 +0,0 @@ -export function deepEquals(objA, objB, map = new WeakMap()) { - if (Object.is(objA, objB)) - return true; - if (objA instanceof Date && objB instanceof Date) { - return objA.getTime() === objB.getTime(); - } - if (objA instanceof RegExp && objB instanceof RegExp) { - return objA.toString() === objB.toString(); - } - if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { - return false; - } - if (map.get(objA) === objB) - return true; - map.set(objA, objB); - const keysA = Reflect.ownKeys(objA); - const keysB = Reflect.ownKeys(objB); - if (keysA.length !== keysB.length) { - return false; - } - for (let i = 0; i < keysA.length; i++) { - if (!Reflect.has(objB, keysA[i]) || !deepEquals(objA[keysA[i]], objB[keysA[i]], map)) { - return false; - } - } - return true; -} diff --git a/$houdini/runtime/lib/errors.d.ts b/$houdini/runtime/lib/errors.d.ts deleted file mode 100644 index 5e354070..00000000 --- a/$houdini/runtime/lib/errors.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function errorsToGraphQLLayout(errors: string | string[]): { - message: string; -}[]; diff --git a/$houdini/runtime/lib/errors.js b/$houdini/runtime/lib/errors.js deleted file mode 100644 index b6b5e4c2..00000000 --- a/$houdini/runtime/lib/errors.js +++ /dev/null @@ -1,8 +0,0 @@ -export function errorsToGraphQLLayout(errors) { - if (Array.isArray(errors)) { - return errors.map((error) => { - return { message: error }; - }); - } - return [{ message: errors }]; -} diff --git a/$houdini/runtime/lib/index.d.ts b/$houdini/runtime/lib/index.d.ts deleted file mode 100644 index 18f17d6d..00000000 --- a/$houdini/runtime/lib/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from './network'; -export * from './proxy'; -export * from './config'; -export { getHoudiniContext } from './context'; -export { errorsToGraphQLLayout } from './errors'; -export * from './types'; -export * from './log'; -export * from './deepEquals'; diff --git a/$houdini/runtime/lib/index.js b/$houdini/runtime/lib/index.js deleted file mode 100644 index 18f17d6d..00000000 --- a/$houdini/runtime/lib/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from './network'; -export * from './proxy'; -export * from './config'; -export { getHoudiniContext } from './context'; -export { errorsToGraphQLLayout } from './errors'; -export * from './types'; -export * from './log'; -export * from './deepEquals'; diff --git a/$houdini/runtime/lib/log.d.ts b/$houdini/runtime/lib/log.d.ts deleted file mode 100644 index def40c70..00000000 --- a/$houdini/runtime/lib/log.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare function error(message: string): void; -export declare function info(message: string): void; -export declare function cyan(message: string): string; -export declare function red(message: string): string; -export declare function yellow(message: string): string; -export declare function green(message: string): string; diff --git a/$houdini/runtime/lib/log.js b/$houdini/runtime/lib/log.js deleted file mode 100644 index 039d8003..00000000 --- a/$houdini/runtime/lib/log.js +++ /dev/null @@ -1,54 +0,0 @@ -// we want to be able to log different colors in the middle of a message. -// this looks something like: -// -// console.log("This message is unformatted, %cbut now it has color!", "color: red") -// -// the entire content needs to be in a single string. each %c refers to the next style in the list -// -// console.log("This message is %cred%c, normal ,%cand then back to blue", "color:red", "", "color:blue") -// -// in order to support the api we want, we will need to wrap the strings in something -// that we can process in order to turn into it into one call to console.log with -// arguments that span around the values left by each color -// $HOUDINI$color$ replaced with "%c" and {color} pushed to the list of colors -// $HOUDINI$ replaced with "%c" and "" pushed to the list of colors (reset) -// NOTE: this format is ignored in node environment so we don't have to worry about a split in the logic -// we just won't have color on the server -function colorize(message) { - // get every instance of the tag - const matches = [...message.matchAll(/\$HOUDINI\$(\w*\$)?/g)]; - // if we dont have any matches, we're done - if (matches.length === 0) { - return [message]; - } - let final = message.replaceAll(/\$HOUDINI\$(\w*\$)?/g, '%c'); - let colors = []; - // ever match with a color, adds somethign to the list. the others add an empty string (a reset) - for (const match of matches) { - const color = match[1] ? `color:${match[1].slice(0, -1)}` : ''; - colors.push(color); - } - return [final, ...colors]; -} -export function error(message) { - console.error(...colorize(message)); -} -export function info(message) { - console.log(...colorize(message)); -} -export function cyan(message) { - return wrapMessage('cyan', message); -} -export function red(message) { - return wrapMessage('red', message); -} -export function yellow(message) { - return wrapMessage('yellow', message); -} -export function green(message) { - return wrapMessage('green', message); -} -const tag = `$HOUDINI$`; -const wrapMessage = (color, message) => { - return tag + `${color}$` + message + tag; -}; diff --git a/$houdini/runtime/lib/network.d.ts b/$houdini/runtime/lib/network.d.ts deleted file mode 100644 index be6f5181..00000000 --- a/$houdini/runtime/lib/network.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -import { LoadEvent, Page } from '@sveltejs/kit'; -import type { ConfigFile } from './config'; -import { CachePolicy, DataSource, GraphQLObject, MutationArtifact, QueryArtifact, SubscriptionArtifact } from './types'; -export declare class HoudiniClient { - private fetchFn; - socket: SubscriptionHandler | null | undefined; - constructor(networkFn: RequestHandler, subscriptionHandler?: SubscriptionHandler | null); - sendRequest<_Data>(ctx: FetchContext, params: FetchParams, session?: FetchSession): Promise>; - init(): void; -} -export declare class Environment extends HoudiniClient { - constructor(...args: ConstructorParameters); -} -export declare function setEnvironment(env: HoudiniClient): void; -export declare function getCurrentClient(): HoudiniClient | null; -export declare type SubscriptionHandler = { - subscribe: (payload: { - query: string; - variables?: {}; - }, handlers: { - next: (payload: { - data?: {}; - errors?: readonly { - message: string; - }[]; - }) => void; - error: (data: {}) => void; - complete: () => void; - }) => () => void; -}; -export declare type FetchParams = { - text: string; - hash: string; - variables: { - [key: string]: any; - }; -}; -export declare type FetchContext = { - fetch: (info: RequestInfo, init?: RequestInit) => Promise; - session: App.Session | null; - stuff: App.Stuff | null; - metadata?: App.Metadata | null; -}; -export declare type BeforeLoadContext = LoadEvent; -export declare type AfterLoadContext = LoadEvent & { - input: Record; - data: Record; -}; -export declare type KitLoadResponse = { - status?: number; - error?: Error; - redirect?: string; - props?: Record; - context?: Record; - maxage?: number; -}; -export declare type FetchSession = any; -declare type GraphQLError = { - message: string; -}; -export declare type RequestPayloadMagic<_Data = any> = { - ssr: boolean; - body: RequestPayload<_Data>; -}; -export declare type RequestPayload<_Data = any> = { - data: _Data; - errors: { - message: string; - }[]; -}; -/** - * ## Tips 👇 - * - * Create a file `src/app.d.ts` containing the following: - * - * ```ts - * declare namespace App { * - * interface Session {} - * interface Metadata {} - * } - * ``` - * - * Like this, Session and Metadata will be typed everywhere! - */ -export declare type RequestHandlerArgs = Omit; -export declare type RequestHandler<_Data> = (args: RequestHandlerArgs, session?: FetchSession) => Promise>; -export declare function executeQuery<_Data extends GraphQLObject, _Input>({ artifact, variables, session, cached, config, metadata, fetch, }: { - artifact: QueryArtifact | MutationArtifact; - variables: _Input; - session: App.Session | null; - cached: boolean; - config: ConfigFile; - metadata?: App.Metadata; - fetch?: LoadEvent['fetch']; -}): Promise<{ - result: RequestPayload; - partial: boolean; -}>; -export declare function convertKitPayload(context: RequestContext, loader: (ctx: LoadEvent) => Promise, page: Page, session: FetchContext['session']): Promise | undefined>; -export declare type FetchQueryResult<_Data> = { - result: RequestPayload<_Data | null>; - source: DataSource | null; - partial: boolean; -}; -export declare type QueryInputs<_Data> = FetchQueryResult<_Data> & { - variables: { - [key: string]: any; - }; -}; -export declare function fetchQuery<_Data extends GraphQLObject, _Input>({ config, context, artifact, variables, cached, policy, }: { - config: ConfigFile; - context: FetchContext; - artifact: QueryArtifact | MutationArtifact; - variables: _Input; - cached?: boolean; - policy?: CachePolicy; -}): Promise>; -export declare class RequestContext { - private loadEvent; - continue: boolean; - returnValue: {}; - constructor(ctx: LoadEvent); - error(status: number, message: string | Error): any; - redirect(status: number, location: string): any; - fetch(input: RequestInfo, init?: RequestInit): Promise; - graphqlErrors(payload: { - errors?: GraphQLError[]; - }): any; - invokeLoadHook({ variant, framework, hookFn, input, data, }: { - variant: 'before' | 'after'; - framework: 'kit' | 'sapper'; - hookFn: KitBeforeLoad | KitAfterLoad | SapperBeforeLoad | SapperAfterLoad; - input: Record; - data: Record; - }): Promise; - computeInput({ config, framework, variableFunction, artifact, }: { - framework: 'kit' | 'sapper'; - variableFunction: SapperBeforeLoad | KitBeforeLoad; - artifact: QueryArtifact | MutationArtifact | SubscriptionArtifact; - config: ConfigFile; - }): {} | null | undefined; -} -declare type SapperBeforeLoad = (page: Page, session: LoadEvent['session']) => Record; -declare type SapperAfterLoad = (page: Page, session: LoadEvent['session'], data: Record, input: Record) => Record; -declare type KitBeforeLoad = (ctx: BeforeLoadContext) => Record; -declare type KitAfterLoad = (ctx: AfterLoadContext) => Record; -export {}; diff --git a/$houdini/runtime/lib/network.js b/$houdini/runtime/lib/network.js deleted file mode 100644 index 06f42d13..00000000 --- a/$houdini/runtime/lib/network.js +++ /dev/null @@ -1,313 +0,0 @@ -// locals -import cache from '../cache'; -import { marshalInputs } from './scalars'; -import { isPrerender } from '../adapter'; -import { CachePolicy, DataSource, } from './types'; -import * as log from './log'; -export class HoudiniClient { - constructor(networkFn, subscriptionHandler) { - this.fetchFn = networkFn; - this.socket = subscriptionHandler; - } - async sendRequest(ctx, params, session) { - let url = ''; - // wrap the user's fetch function so we can identify SSR by checking - // the response.url - const wrapper = async (...args) => { - const response = await ctx.fetch(...args); - if (response.url) { - url = response.url; - } - return response; - }; - // invoke the function - const result = await this.fetchFn.call({ - ...ctx, - get fetch() { - log.info(`${log.red("⚠️ fetch and session are now passed as arguments to your client's network function ⚠️")} -You should update your client to look something like the following: - -async function fetchQuery({ - ${log.yellow('fetch')}, - text = '', - variables = {}, - ${log.yellow('session')}, - metadata, -}: RequestHandlerArgs) { - const result = await fetch( ... ); - - return await result.json(); -} -`); - return wrapper; - }, - }, { - fetch: wrapper, - ...params, - get session() { - // using session while prerendering is not meaningful - if (isPrerender) { - throw new Error('Attempted to access session from a prerendered page. Session would never be populated.'); - } - return session; - }, - metadata: ctx.metadata, - }); - // return the result - return { - body: result, - ssr: !url, - }; - } - init() { - currentClient = this; - } -} -export class Environment extends HoudiniClient { - constructor(...args) { - super(...args); - log.info(`${log.red('⚠️ Environment has been renamed to HoudiniClient. ⚠️')} -You should update your client to look something like the following: - -import { HoudiniClient } from '$houdini/runtime' - -export default new HoudiniClient(fetchQuery) - - -For more information, please visit this link: https://www.houdinigraphql.com/guides/migrating-to-0.15.0#environment -`); - } -} -let currentClient = null; -export function setEnvironment(env) { - log.info(`${log.red('⚠️ setEnvironment is now replaced by environment.init() ⚠️')} -You should update your __layout files to look something like the following: - - - - -For more information, please visit this link: https://www.houdinigraphql.com/guides/migrating-to-0.15.0#environment -`); - env.init(); -} -export function getCurrentClient() { - return currentClient; -} -// This function is responsible for simulating the fetch context, getting the current session and executing the fetchQuery. -// It is mainly used for mutations, refetch and possible other client side operations in the future. -export async function executeQuery({ artifact, variables, session, cached, config, metadata, fetch, }) { - // We use get from svelte/store here to subscribe to the current value and unsubscribe after. - // Maybe there can be a better solution and subscribing only once? - // const session = sessionStore !== null ? get(sessionStore) : sessionStore - // Simulate the fetch/load context - const fetchCtx = { - fetch: fetch !== null && fetch !== void 0 ? fetch : window.fetch.bind(window), - session, - stuff: {}, - page: { - host: '', - path: '', - params: {}, - query: new URLSearchParams(), - }, - }; - const { result: res, partial } = await fetchQuery({ - context: { ...fetchCtx, metadata }, - config, - artifact, - variables, - cached, - }); - // we could have gotten a null response - if (res.errors && res.errors.length > 0) { - throw res.errors; - } - if (!res.data) { - throw new Error('Encountered empty data response in payload'); - } - return { result: res, partial }; -} -// convertKitPayload is responsible for taking the result of kit's load -export async function convertKitPayload(context, loader, page, session) { - // invoke the loader - const result = await loader({ - session: session, - fetch: context.fetch, - ...page, - props: {}, - }); - // if the response contains an error - if (result.error) { - // 500 - internal server error - context.error(result.status || 500, result.error); - return; - } - // if the response contains a redirect - if (result.redirect) { - // 307 - temporary redirect - context.redirect(result.status || 307, result.redirect); - return; - } - // the response contains data! - if (result.props) { - return result.props; - } - // we shouldn't get here - throw new Error('Could not handle response from loader: ' + JSON.stringify(result)); -} -export async function fetchQuery({ config, context, artifact, variables, cached = true, policy, }) { - // grab the current environment - const environment = currentClient; - // if there is no environment - if (!environment) { - return { - result: { data: null, errors: [{ message: 'could not find houdini environment' }] }, - source: null, - partial: false, - }; - } - // enforce cache policies for queries - if (cached && artifact.kind === 'HoudiniQuery') { - // if the user didn't specify a policy, use the artifacts - if (!policy) { - policy = artifact.policy; - } - // this function is called as the first step in requesting data. If the policy prefers - // cached data, we need to load data from the cache (if its available). If the policy - // prefers network data we need to send a request (the onLoad of the component will - // resolve the next data) - // if the cache policy allows for cached data, look at the caches value first - if (policy !== CachePolicy.NetworkOnly) { - // look up the current value in the cache - const value = cache.read({ selection: artifact.selection, variables }); - // if the result is partial and we dont allow it, dont return the value - const allowed = !value.partial || artifact.partial; - // if we have data, use that unless its partial data and we dont allow that - if (value.data !== null && allowed) { - return { - result: { - data: value.data, - errors: [], - }, - source: DataSource.Cache, - partial: value.partial, - }; - } - // if the policy is cacheOnly and we got this far, we need to return null (no network request will be sent) - else if (policy === CachePolicy.CacheOnly) { - return { - result: { - data: null, - errors: [], - }, - source: DataSource.Cache, - partial: false, - }; - } - } - } - // tick the garbage collector asynchronously - setTimeout(() => { - cache._internal_unstable.collectGarbage(); - }, 0); - // the request must be resolved against the network - const result = await environment.sendRequest(context, { text: artifact.raw, hash: artifact.hash, variables }, context.session); - return { - result: result.body, - source: result.ssr ? DataSource.Ssr : DataSource.Network, - partial: false, - }; -} -export class RequestContext { - constructor(ctx) { - this.continue = true; - this.returnValue = {}; - this.loadEvent = ctx; - } - error(status, message) { - this.continue = false; - this.returnValue = { - error: message, - status, - }; - } - redirect(status, location) { - this.continue = false; - this.returnValue = { - redirect: location, - status, - }; - } - fetch(input, init) { - // make sure to bind the window object to the fetch in a browser - const fetch = typeof window !== 'undefined' ? this.loadEvent.fetch.bind(window) : this.loadEvent.fetch; - return fetch(input, init); - } - graphqlErrors(payload) { - // if we have a list of errors - if (payload.errors) { - return this.error(500, payload.errors.map(({ message }) => message).join('\n')); - } - return this.error(500, 'Encountered invalid response: ' + JSON.stringify(payload)); - } - // This hook fires before executing any queries, it allows to redirect/error based on session state for example - // It also allows to return custom props that should be returned from the corresponding load function. - async invokeLoadHook({ variant, framework, hookFn, input, data, }) { - // call the onLoad function to match the framework - let hookCall; - if (framework === 'kit') { - if (variant === 'before') { - hookCall = hookFn.call(this, this.loadEvent); - } - else { - hookCall = hookFn.call(this, { - ...this.loadEvent, - input, - data, - }); - } - } - else { - // sapper - if (variant === 'before') { - hookCall = hookFn.call(this, - // @ts-ignore - this.loadEvent, this.loadEvent.session); - } - else { - hookCall = hookFn.call(this, - // @ts-ignore - this.loadEvent, this.loadEvent.session, data, input); - } - } - let result = await hookCall; - // If the returnValue is already set through this.error or this.redirect return early - if (!this.continue) { - return; - } - // If the result is null or undefined, or the result isn't an object return early - if (result == null || typeof result !== 'object') { - return; - } - this.returnValue = result; - } - // compute the inputs for an operation should reflect the framework's conventions. - // in sapper, this means preparing a `this` for the function. for kit, we can just pass - // the context - computeInput({ config, framework, variableFunction, artifact, }) { - // call the variable function to match the framework - let input = framework === 'kit' - ? // in kit just pass the context directly - variableFunction.call(this, this.loadEvent) - : // we are in sapper mode, so we need to prepare the function context - variableFunction.call(this, - // @ts-ignore - this.loadEvent, this.loadEvent.session); - // and pass page and session - return marshalInputs({ artifact, config, input }); - } -} diff --git a/$houdini/runtime/lib/pagination.d.ts b/$houdini/runtime/lib/pagination.d.ts deleted file mode 100644 index 273170a0..00000000 --- a/$houdini/runtime/lib/pagination.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { Readable, Writable } from 'svelte/store'; -import { FragmentStore, QueryResult, QueryStore, QueryStoreFetchParams } from '..'; -import { ConfigFile } from './config'; -import { GraphQLObject, HoudiniFetchContext, QueryArtifact } from './types'; -import { QueryResultMap } from '../stores/query'; -declare type FetchFn<_Data = any, _Input = any> = (params?: QueryStoreFetchParams<_Input>) => Promise>; -export declare function wrapPaginationStore<_Data, _Input>(store: QueryStore<_Data, _Input> | ReturnType['get']>): { - name: string; - fetch(params?: ({ - variables?: _Input | undefined; - policy?: import("./types").CachePolicy | undefined; - metadata?: any; - blocking?: boolean | undefined; - } & { - event?: import("@sveltejs/kit").RequestEvent> | undefined; - fetch?: ((info: RequestInfo, init?: RequestInit | undefined) => Promise) | undefined; - }) | undefined): Promise>; - fetch(params?: ({ - variables?: _Input | undefined; - policy?: import("./types").CachePolicy | undefined; - metadata?: any; - blocking?: boolean | undefined; - } & { - event?: import("@sveltejs/kit").LoadEvent, Record> | undefined; - }) | undefined): Promise>; - fetch(params?: ({ - variables?: _Input | undefined; - policy?: import("./types").CachePolicy | undefined; - metadata?: any; - blocking?: boolean | undefined; - } & { - context?: HoudiniFetchContext | undefined; - }) | undefined): Promise>; - fetch(params?: QueryStoreFetchParams<_Input> | undefined): Promise>; - subscribe: ((this: void, run: import("svelte/store").Subscriber>, invalidate?: ((value?: QueryResult<_Data, _Input> | undefined) => void) | undefined) => import("svelte/store").Unsubscriber) | ((this: void, run: import("svelte/store").Subscriber<_Data | null>, invalidate?: ((value?: _Data | null | undefined) => void) | undefined) => import("svelte/store").Unsubscriber); -} | { - update: (parent: _Data | null) => void; - subscribe: ((this: void, run: import("svelte/store").Subscriber>, invalidate?: ((value?: QueryResult<_Data, _Input> | undefined) => void) | undefined) => import("svelte/store").Unsubscriber) | ((this: void, run: import("svelte/store").Subscriber<_Data | null>, invalidate?: ((value?: _Data | null | undefined) => void) | undefined) => import("svelte/store").Unsubscriber); -}; -export declare function fragmentHandlers<_Data extends GraphQLObject, _Input>({ config, paginationArtifact, stores, storeName, }: { - storeName: string; - config: ConfigFile; - paginationArtifact: QueryArtifact; - stores: { - [reqID: string]: Readable; - }; -}): PaginatedHandlers<_Data, _Input>; -export declare function queryHandlers<_Data extends GraphQLObject, _Input>({ config, artifact, stores, fetch, queryVariables, storeName, }: { - config: ConfigFile; - artifact: QueryArtifact; - stores: QueryResultMap<_Data, _Input>; - fetch: QueryStore<_Data, _Input>['fetch']; - queryVariables: (reqID: string) => _Input | null; - pageInfo?: Readable; - storeName: string; -}): PaginatedHandlers<_Data, _Input>; -export declare type PaginatedDocumentHandlers<_Data, _Input> = { - loadNextPage(pageCount?: number, after?: string | number): Promise; - loadPreviousPage(pageCount?: number, before?: string): Promise; - loading: Readable; - pageInfo: Readable; - refetch: (vars?: _Input) => Promise<_Data>; -}; -export declare type PaginatedHandlers<_Data, _Input> = { - loadNextPage(houdiniContext: HoudiniFetchContext, pageCount?: number, after?: string | number): Promise; - loadPreviousPage(houdiniContext: HoudiniFetchContext, pageCount?: number, before?: string): Promise; - loading: Readable; - pageInfos: { - [reqID: string]: Writable; - }; - fetch: FetchFn<_Data, _Input>; - onUnsubscribe: (reqID: string) => void; - paginationStrategy?: 'cursor' | 'offset'; -}; -export declare type PageInfo = { - startCursor: string | null; - endCursor: string | null; - hasNextPage: boolean; - hasPreviousPage: boolean; -}; -export declare function extractPageInfo(data: GraphQLObject | null, path: string[]): PageInfo; -export declare function countPage<_Data extends GraphQLObject>(source: string[], value: _Data | null): number; -export declare const pageInfoStore: (session: App.Session | { - session: () => App.Session | null; -} | null, home: { - [key: string]: Writable; -}) => Writable; -export {}; diff --git a/$houdini/runtime/lib/pagination.js b/$houdini/runtime/lib/pagination.js deleted file mode 100644 index 349e1271..00000000 --- a/$houdini/runtime/lib/pagination.js +++ /dev/null @@ -1,458 +0,0 @@ -// externals -import { derived, get, writable } from 'svelte/store'; -// locals -import { deepEquals } from '..'; -import cache from '../cache'; -import { keyFieldsForType } from './config'; -import { getHoudiniContext } from './context'; -import { executeQuery } from './network'; -import { fetchContext, sessionQueryStore } from '../stores/query'; -import { currentReqID, sessionStore } from './session'; -export function wrapPaginationStore(store) { - // @ts-ignore - const { loadNextPage, loadPreviousPage, paginationStrategy, subscribe, ...rest } = store; - // grab the current houdini context - const context = getHoudiniContext(); - const result = rest; - if (loadNextPage) { - // @ts-ignore - result.loadNextPage = (...args) => loadNextPage(context, ...args); - } - if (loadPreviousPage) { - // @ts-ignore - result.loadPreviousPage = (...args) => loadPreviousPage(context, ...args); - } - if (paginationStrategy === 'cursor') { - // @ts-ignore - result.pageInfo = derived([{ subscribe }], ([$store]) => { - // @ts-ignore - return $store.pageInfo; - }); - } - return { subscribe, ...result }; -} -export function fragmentHandlers({ config, paginationArtifact, stores, storeName, }) { - var _a, _b; - const { targetType } = paginationArtifact.refetch || {}; - const typeConfig = (_a = config.types) === null || _a === void 0 ? void 0 : _a[targetType || '']; - if (!typeConfig) { - throw new Error(`Missing type refetch configuration for ${targetType}. For more information, see https://www.houdinigraphql.com/guides/pagination#paginated-fragments`); - } - let queryVariables = (reqID) => ({}); - // if the query is embedded we have to figure out the correct variables to pass - if (paginationArtifact.refetch.embedded) { - // if we have a specific function to use when computing the variables - if ((_b = typeConfig.resolve) === null || _b === void 0 ? void 0 : _b.arguments) { - queryVariables = (reqID) => { - var _a, _b; - const value = get(stores[reqID]); - return (((_b = (_a = typeConfig.resolve).arguments) === null || _b === void 0 ? void 0 : _b.call(_a, value)) || {}); - }; - } - else { - const keys = keyFieldsForType(config, targetType || ''); - queryVariables = (reqID) => { - const value = get(stores[reqID]); - // @ts-ignore - return Object.fromEntries(keys.map((key) => [key, value[key]])); - }; - } - } - return paginationHandlers({ - storeName, - config, - stores, - artifact: paginationArtifact, - queryVariables, - fetch: async () => { - return {}; - }, - getValue: (reqID) => { - return get(stores[reqID]); - }, - }); -} -export function queryHandlers({ config, artifact, stores, fetch, queryVariables, storeName, }) { - // if there's no refetch config for the artifact there's a problem - if (!artifact.refetch) { - throw new Error('paginatedQuery must be passed a query with @paginate.'); - } - // return the handlers - return paginationHandlers({ - artifact, - stores, - queryVariables, - fetch, - config, - storeName, - getValue: (reqID) => { var _a; return ((_a = get(stores[reqID])) === null || _a === void 0 ? void 0 : _a.data) || {}; }, - }); -} -function paginationHandlers({ artifact, stores, queryVariables, fetch, config, storeName, getValue, }) { - var _a, _b; - // start with the defaults and no meaningful page info - let loadPreviousPage = async (...args) => { }; - let loadNextPage = async (...args) => { }; - let pageInfos = {}; - // loading state - let paginationLoadingState = writable(false); - let onUnsubscribe = (reqID) => { }; - let fetchQuery; - let paginationStrategy = (_a = artifact.refetch) === null || _a === void 0 ? void 0 : _a.method; - // if the artifact supports cursor based pagination - if (((_b = artifact.refetch) === null || _b === void 0 ? void 0 : _b.method) === 'cursor') { - // generate the cursor handlers - const cursor = cursorHandlers({ - artifact, - stores, - queryVariables, - loading: paginationLoadingState, - fetch, - config, - storeName, - getValue, - }); - // always track pageInfo - pageInfos = cursor.pageInfos; - // always use the refetch fn - fetchQuery = cursor.fetch; - onUnsubscribe = cursor.onUnsubscribe; - // if we are implementing forward pagination - if (artifact.refetch.update === 'append') { - loadNextPage = cursor.loadNextPage; - } - // the artifact implements backwards pagination - else { - loadPreviousPage = cursor.loadPreviousPage; - } - } - // the artifact supports offset-based pagination, only loadNextPage is valid - else { - const offset = offsetPaginationHandler({ - artifact, - queryVariables, - fetch, - stores, - config, - storeName, - loading: paginationLoadingState, - getValue, - }); - loadNextPage = offset.loadPage; - fetchQuery = offset.fetch; - } - // merge the pagination and document loading state - const loading = derived([paginationLoadingState], ($loadingStates) => $loadingStates[0]); - return { - loadNextPage, - loadPreviousPage, - pageInfos, - loading, - fetch: fetchQuery, - onUnsubscribe, - paginationStrategy, - }; -} -function cursorHandlers({ config, artifact, stores, queryVariables: extraVariables, loading, fetch, storeName, getValue, }) { - const pageInfos = {}; - // dry up the page-loading logic - const loadPage = async ({ houdiniContext, pageSizeVar, input, functionName, }) => { - var _a, _b, _c; - // figure out the reqID for this session - const reqID = currentReqID(houdiniContext, stores); - // get the pageInfo store - const pageInfo = pageInfoStore(houdiniContext, pageInfos); - // set the loading state to true - loading.set(true); - // build up the variables to pass to the query - const loadVariables = { - ...extraVariables === null || extraVariables === void 0 ? void 0 : extraVariables(reqID), - ...houdiniContext.variables(), - ...input, - }; - // if we don't have a value for the page size, tell the user - if (!loadVariables[pageSizeVar] && !artifact.refetch.pageSize) { - throw missingPageSizeError(functionName); - } - // send the query - const { result } = await executeQuery({ - artifact, - variables: loadVariables, - session: (_a = houdiniContext.session) === null || _a === void 0 ? void 0 : _a.call(houdiniContext), - cached: false, - config, - }); - // if the query is embedded in a node field (paginated fragments) - // make sure we look down one more for the updated page info - const resultPath = [...artifact.refetch.path]; - if (artifact.refetch.embedded) { - const { targetType } = artifact.refetch; - // make sure we have a type config for the pagination target type - if (!((_c = (_b = config.types) === null || _b === void 0 ? void 0 : _b[targetType]) === null || _c === void 0 ? void 0 : _c.resolve)) { - throw new Error(`Missing type resolve configuration for ${targetType}. For more information, see https://www.houdinigraphql.com/guides/pagination#paginated-fragments`); - } - // make sure that we pull the value out of the correct query field - resultPath.unshift(config.types[targetType].resolve.queryField); - } - // we need to find the connection object holding the current page info - pageInfo.set(extractPageInfo(result.data, resultPath)); - // update cache with the result - cache.write({ - selection: artifact.selection, - data: result.data, - variables: loadVariables, - applyUpdates: true, - }); - // we're not loading any more - loading.set(false); - }; - return { - loading, - loadNextPage: async (houdiniContext, pageCount) => { - // figure out the reqID for this session - const reqID = currentReqID(houdiniContext, stores); - // we need to find the connection object holding the current page info - const currentPageInfo = extractPageInfo(getValue(reqID), artifact.refetch.path); - // if there is no next page, we're done - if (!currentPageInfo.hasNextPage) { - return; - } - // only specify the page count if we're given one - const input = { - after: currentPageInfo.endCursor, - }; - if (pageCount) { - input.first = pageCount; - } - // load the page - return await loadPage({ - houdiniContext, - pageSizeVar: 'first', - functionName: 'loadNextPage', - input, - }); - }, - loadPreviousPage: async (houdiniContext, pageCount) => { - // figure out the reqID for this session - const reqID = currentReqID(houdiniContext, stores); - // we need to find the connection object holding the current page info - const currentPageInfo = extractPageInfo(getValue(reqID), artifact.refetch.path); - // if there is no next page, we're done - if (!currentPageInfo.hasPreviousPage) { - return; - } - // only specify the page count if we're given one - const input = { - before: currentPageInfo.startCursor, - }; - if (pageCount) { - input.last = pageCount; - } - // load the page - return await loadPage({ - houdiniContext, - pageSizeVar: 'last', - functionName: 'loadPreviousPage', - input, - }); - }, - pageInfos, - async fetch(args) { - // validate and prepare the request context for the current environment (client vs server) - const { context, params } = fetchContext(artifact, storeName, args); - // get the session stores we will write to - const reqID = currentReqID(context.session, stores); - const pageInfo = sessionStore(context.session, pageInfos, nullPageInfo); - const data = sessionQueryStore(context.session, stores); - const { variables } = params !== null && params !== void 0 ? params : {}; - // build up the variables to pass to the query - const queryVariables = { - ...extraVariables(reqID), - ...variables, - }; - // if the input is different than the query variables then we just do everything like normal - if (variables && !deepEquals(extraVariables(reqID), variables)) { - const result = await fetch(params); - pageInfo.set(extractPageInfo(result, artifact.refetch.path)); - } - // we are updating the current set of items, count the number of items that currently exist - // and ask for the full data set - const count = countPage(artifact.refetch.path.concat('edges'), get(data).data) || - artifact.refetch.pageSize; - // if there are more records than the first page, we need fetch to load everything - if (count && count > artifact.refetch.pageSize) { - // reverse cursors need the last entries in the list - queryVariables[artifact.refetch.update === 'prepend' ? 'last' : 'first'] = count; - } - // set the loading state to true - loading.set(true); - // send the query - const result = await fetch({ - ...params, - variables: queryVariables, - }); - // keep the page info store up to date - pageInfo.set(extractPageInfo(result.data, artifact.refetch.path)); - // we're not loading any more - loading.set(false); - return { - data: result.data, - variables: queryVariables, - isFetching: false, - partial: result.partial, - errors: null, - source: result.source, - }; - }, - onUnsubscribe(reqID) { - if (pageInfos[reqID]) { - delete pageInfos[reqID]; - } - }, - }; -} -function offsetPaginationHandler({ artifact, queryVariables: extraVariables, fetch, stores, getValue, config, loading, storeName, }) { - // we need to track the most recent offset for this handler - let currentOffset = (ctx) => { - var _a, _b; - const store = sessionQueryStore(ctx, stores); - return (((_a = artifact.refetch) === null || _a === void 0 ? void 0 : _a.start) || - countPage(artifact.refetch.path, (_b = get(store)) === null || _b === void 0 ? void 0 : _b.data) || - artifact.refetch.pageSize); - }; - return { - loadPage: async (houdiniContext, limit) => { - var _a; - const offset = currentOffset(houdiniContext); - // figure out the reqID for this session - const reqID = currentReqID(houdiniContext, stores); - // build up the variables to pass to the query - const queryVariables = { - ...houdiniContext.variables(), - ...extraVariables(reqID), - offset, - }; - if (limit) { - queryVariables.limit = limit; - } - // if we made it this far without a limit argument and there's no default page size, - // they made a mistake - if (!queryVariables.limit && !artifact.refetch.pageSize) { - throw missingPageSizeError('loadNextPage'); - } - // set the loading state to true - loading.set(true); - // send the query - const { result } = await executeQuery({ - artifact, - variables: queryVariables, - session: (_a = houdiniContext.session) === null || _a === void 0 ? void 0 : _a.call(houdiniContext), - cached: false, - config, - }); - // update cache with the result - cache.write({ - selection: artifact.selection, - data: result.data, - variables: queryVariables, - applyUpdates: true, - }); - // add the page size to the offset so we load the next page next time - const pageSize = queryVariables.limit || artifact.refetch.pageSize; - currentOffset += pageSize; - // we're not loading any more - loading.set(false); - }, - async fetch(args) { - const { params, context } = fetchContext(artifact, storeName, args); - const reqID = currentReqID(context.session, stores); - // make sure we created a query store - sessionQueryStore(context.session, stores); - const { variables } = params !== null && params !== void 0 ? params : {}; - // if the input is different than the query variables then we just do everything like normal - if (variables && !deepEquals(extraVariables(reqID), variables)) { - return fetch(params); - } - // we are updating the current set of items, count the number of items that currently exist - // and ask for the full data set - const count = countPage(artifact.refetch.path, getValue(reqID)) || artifact.refetch.pageSize; - // build up the variables to pass to the query - const queryVariables = { - ...extraVariables(reqID), - }; - // if there are more records than the first page, we need fetch to load everything - if (count > artifact.refetch.pageSize) { - queryVariables.limit = count; - } - // set the loading state to true - loading.set(true); - // send the query - const result = await fetch({ - ...params, - variables: queryVariables, - }); - // we're not loading any more - loading.set(false); - return { - data: result.data, - variables: queryVariables, - isFetching: false, - partial: result.partial, - errors: null, - source: result.source, - }; - }, - }; -} -function missingPageSizeError(fnName) { - return; -} -export function extractPageInfo(data, path) { - var _a; - if (!data) { - return { - startCursor: null, - endCursor: null, - hasNextPage: false, - hasPreviousPage: false, - }; - } - let localPath = [...path]; - // walk down the object until we get to the end - let current = data; - while (localPath.length > 0) { - if (!current) { - break; - } - current = current[localPath.shift()]; - } - return (_a = current === null || current === void 0 ? void 0 : current.pageInfo) !== null && _a !== void 0 ? _a : nullPageInfo(); -} -export function countPage(source, value) { - let data = value; - if (value === null || data === null || data === undefined) { - return 0; - } - for (const field of source) { - const obj = data[field]; - if (obj && !Array.isArray(obj)) { - data = obj; - } - else if (!data) { - throw new Error('Could not count page size'); - } - if (Array.isArray(obj)) { - return obj.length; - } - } - return 0; -} -const nullPageInfo = () => ({ - startCursor: null, - endCursor: null, - hasNextPage: false, - hasPreviousPage: false, -}); -export const pageInfoStore = (session, home) => { - return sessionStore(session, home, nullPageInfo); -}; diff --git a/$houdini/runtime/lib/proxy.d.ts b/$houdini/runtime/lib/proxy.d.ts deleted file mode 100644 index 7cdf173b..00000000 --- a/$houdini/runtime/lib/proxy.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare class HoudiniDocumentProxy { - initial: any; - callbacks: ((val: any) => void)[]; - listen(callback: (val: any) => void): void; - invoke(val: any): void; -} diff --git a/$houdini/runtime/lib/proxy.js b/$houdini/runtime/lib/proxy.js deleted file mode 100644 index 3725a44d..00000000 --- a/$houdini/runtime/lib/proxy.js +++ /dev/null @@ -1,25 +0,0 @@ -// a proxy is an object that we can embed in an artifact so that -// we can mutate the internals of a document handler without worrying about -// the return value of the handler -export class HoudiniDocumentProxy { - constructor() { - this.initial = null; - this.callbacks = []; - } - listen(callback) { - this.callbacks.push(callback); - if (this.initial) { - callback(this.initial); - } - } - invoke(val) { - // if there are no callbacks, just save the value and wait for the first one - if (this.callbacks.length === 0) { - this.initial = val; - return; - } - for (const callback of this.callbacks) { - callback(val); - } - } -} diff --git a/$houdini/runtime/lib/scalars.d.ts b/$houdini/runtime/lib/scalars.d.ts deleted file mode 100644 index 6cfcf556..00000000 --- a/$houdini/runtime/lib/scalars.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { ConfigFile } from './config'; -import { MutationArtifact, QueryArtifact, SubscriptionArtifact, SubscriptionSelection } from './types'; -export declare function marshalSelection({ config, selection, data, }: { - config: ConfigFile; - selection: SubscriptionSelection; - data: unknown; -}): {} | null | undefined; -export declare function marshalInputs({ artifact, config, input, rootType, }: { - artifact: QueryArtifact | MutationArtifact | SubscriptionArtifact; - config: ConfigFile; - input: unknown; - rootType?: string; -}): {} | null | undefined; -export declare function unmarshalSelection(config: ConfigFile, selection: SubscriptionSelection, data: unknown): {} | null | undefined; -export declare function isScalar(config: ConfigFile, type: string): boolean; diff --git a/$houdini/runtime/lib/scalars.js b/$houdini/runtime/lib/scalars.js deleted file mode 100644 index 5b7f103d..00000000 --- a/$houdini/runtime/lib/scalars.js +++ /dev/null @@ -1,132 +0,0 @@ -export function marshalSelection({ config, selection, data, }) { - if (data === null || typeof data === 'undefined') { - return data; - } - // if we are looking at a list - if (Array.isArray(data)) { - // unmarshal every entry in the list - return data.map((val) => marshalSelection({ config, selection, data: val })); - } - // we're looking at an object, build it up from the current input - return Object.fromEntries(Object.entries(data).map(([fieldName, value]) => { - var _a; - // look up the type for the field - const { type, fields } = selection[fieldName]; - // if we don't have type information for this field, just use it directly - // it's most likely a non-custom scalars or enums - if (!type) { - return [fieldName, value]; - } - // if there is a sub selection, walk down the selection - if (fields) { - return [fieldName, marshalSelection({ config, selection: fields, data: value })]; - } - // is the type something that requires marshaling - if ((_a = config.scalars) === null || _a === void 0 ? void 0 : _a[type]) { - const marshalFn = config.scalars[type].marshal; - if (!marshalFn) { - throw new Error(`scalar type ${type} is missing a \`marshal\` function. see https://github.com/AlecAivazis/houdini#%EF%B8%8Fcustom-scalars`); - } - if (Array.isArray(value)) { - return [fieldName, value.map(marshalFn)]; - } - return [fieldName, marshalFn(value)]; - } - // if the type doesn't require marshaling and isn't a referenced type - // then the type is a scalar that doesn't require marshaling - return [fieldName, value]; - })); -} -export function marshalInputs({ artifact, config, input, rootType = '@root', }) { - if (input === null || typeof input === 'undefined') { - return input; - } - // if there are no inputs in the object, nothing to do - if (!artifact.input) { - return input; - } - // the object containing the relevant fields - const fields = rootType === '@root' ? artifact.input.fields : artifact.input.types[rootType]; - // if we are looking at a list - if (Array.isArray(input)) { - return input.map((val) => marshalInputs({ artifact, config, input: val, rootType })); - } - // we're looking at an object, build it up from the current input - return Object.fromEntries(Object.entries(input).map(([fieldName, value]) => { - var _a, _b; - // look up the type for the field - const type = fields === null || fields === void 0 ? void 0 : fields[fieldName]; - // if we don't have type information for this field, just use it directly - // it's most likely a non-custom scalars or enums - if (!type) { - return [fieldName, value]; - } - // is the type something that requires marshaling - const marshalFn = (_b = (_a = config.scalars) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.marshal; - if (marshalFn) { - // if we are looking at a list of scalars - if (Array.isArray(value)) { - return [fieldName, value.map(marshalFn)]; - } - return [fieldName, marshalFn(value)]; - } - // if the type doesn't require marshaling and isn't a referenced type - if (isScalar(config, type) || !artifact.input.types[type]) { - return [fieldName, value]; - } - // we ran into an object type that should be referenced by the artifact - return [fieldName, marshalInputs({ artifact, config, input: value, rootType: type })]; - })); -} -export function unmarshalSelection(config, selection, data) { - if (data === null || typeof data === 'undefined') { - return data; - } - // if we are looking at a list - if (Array.isArray(data)) { - // unmarshal every entry in the list - return data.map((val) => unmarshalSelection(config, selection, val)); - } - // we're looking at an object, build it up from the current input - return Object.fromEntries(Object.entries(data).map(([fieldName, value]) => { - var _a, _b; - // look up the type for the field - const { type, fields } = selection[fieldName]; - // if we don't have type information for this field, just use it directly - // it's most likely a non-custom scalars or enums - if (!type) { - return [fieldName, value]; - } - // if there is a sub selection, walk down the selection - if (fields) { - return [ - fieldName, - // unmarshalSelection({ artifact, config, input: value, rootType: type }), - unmarshalSelection(config, fields, value), - ]; - } - if (value === null) { - return [fieldName, value]; - } - // is the type something that requires marshaling - if ((_b = (_a = config.scalars) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.marshal) { - const unmarshalFn = config.scalars[type].unmarshal; - if (!unmarshalFn) { - throw new Error(`scalar type ${type} is missing an \`unmarshal\` function. see https://github.com/AlecAivazis/houdini#%EF%B8%8Fcustom-scalars`); - } - if (Array.isArray(value)) { - return [fieldName, value.map(unmarshalFn)]; - } - return [fieldName, unmarshalFn(value)]; - } - // if the type doesn't require marshaling and isn't a referenced type - // then the type is a scalar that doesn't require marshaling - return [fieldName, value]; - })); -} -// we can't use config.isScalar because that would require bundling in ~/common -export function isScalar(config, type) { - return ['String', 'Boolean', 'Float', 'ID', 'Int'] - .concat(Object.keys(config.scalars || {})) - .includes(type); -} diff --git a/$houdini/runtime/lib/session.d.ts b/$houdini/runtime/lib/session.d.ts deleted file mode 100644 index fae2344c..00000000 --- a/$houdini/runtime/lib/session.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Writable } from 'svelte/store'; -export declare function sessionStore<_State>(context: Parameters[0], home: { - [key: string]: Writable<_State>; -}, initialState: () => _State): Writable<_State>; -export declare function currentReqID(context: { - session: () => App.Session | null; -} | null | App.Session, home: { - [key: string]: any; -}): string; diff --git a/$houdini/runtime/lib/session.js b/$houdini/runtime/lib/session.js deleted file mode 100644 index f3aed63b..00000000 --- a/$houdini/runtime/lib/session.js +++ /dev/null @@ -1,42 +0,0 @@ -import { writable } from 'svelte/store'; -import { isBrowser } from '../adapter'; -export function sessionStore(context, home, initialState) { - const reqID = currentReqID(context, home); - // if we dont have an entry for this reqID already, create one - if (!home[reqID]) { - home[reqID] = writable(initialState()); - } - // there is an entry for the id, return it and the id we computed - return home[reqID]; -} -export function currentReqID(context, home) { - let session = null; - if (isBrowser) { - return 'CLIENT'; - } - // if we were given a context, we need to pull the session out - if (context && 'session' in context) { - session = typeof context.session === 'function' ? context.session() : context.session; - } - else { - session = context; - } - // @ts-ignore - // get the reqID from the session - let { __houdini_session_key: reqID } = session !== null && session !== void 0 ? session : {}; - // if we already have a reqID, use it - if (reqID) { - return reqID; - } - // make sure that reqID isn't currently being used - while (!reqID || home[reqID]) { - reqID = Math.random().toString(); - } - // save the session - if (session) { - // @ts-ignore - session.__houdini_session_key = reqID; - } - // return the id we computed - return reqID; -} diff --git a/$houdini/runtime/lib/types.d.ts b/$houdini/runtime/lib/types.d.ts deleted file mode 100644 index f40c81c2..00000000 --- a/$houdini/runtime/lib/types.d.ts +++ /dev/null @@ -1,267 +0,0 @@ -import type { LoadEvent, RequestEvent } from '@sveltejs/kit'; -import { Readable } from 'svelte/store'; -import { MutationConfig } from '../inline/mutation'; -import type { ConfigFile } from './config'; -import { HoudiniDocumentProxy } from './proxy'; -export type { ConfigFile } from './config'; -export declare enum CachePolicy { - CacheOrNetwork = "CacheOrNetwork", - CacheOnly = "CacheOnly", - NetworkOnly = "NetworkOnly", - CacheAndNetwork = "CacheAndNetwork" -} -export declare type Fragment<_Result> = { - readonly shape?: _Result; -}; -export declare type Operation<_Result, _Input> = { - readonly result: _Result; - readonly input: _Input; -}; -export declare type Session = any; -export declare type Maybe = T | null | undefined; -export declare type DocumentArtifact = FragmentArtifact | QueryArtifact | MutationArtifact | SubscriptionArtifact; -export declare enum ArtifactKind { - Query = "HoudiniQuery", - Subcription = "HoudiniSubscription", - Mutation = "HoudiniMutation", - Fragment = "HoudiniFragment" -} -export declare type QueryArtifact = BaseCompiledDocument & { - kind: ArtifactKind.Query; - policy?: CachePolicy; - partial?: boolean; -}; -export declare type MutationArtifact = BaseCompiledDocument & { - kind: ArtifactKind.Mutation; -}; -export declare type FragmentArtifact = BaseCompiledDocument & { - kind: ArtifactKind.Fragment; -}; -export declare type SubscriptionArtifact = BaseCompiledDocument & { - kind: ArtifactKind.Subcription; -}; -export declare enum RefetchUpdateMode { - append = "append", - prepend = "prepend", - replace = "replace" -} -export declare type InputObject = { - fields: Record; - types: Record>; -}; -export declare type BaseCompiledDocument = { - name: string; - raw: string; - hash: string; - selection: SubscriptionSelection; - rootType: string; - input?: InputObject; - refetch?: { - update: RefetchUpdateMode; - path: string[]; - method: 'cursor' | 'offset'; - pageSize: number; - start?: string | number; - embedded: boolean; - targetType: string; - paginated: boolean; - direction?: 'forward' | 'backwards'; - }; -}; -export declare type GraphQLTagResult = TaggedGraphqlQuery | TaggedGraphqlFragment | TaggedGraphqlMutation | TaggedGraphqlSubscription; -export declare type TaggedGraphqlFragment = { - kind: 'HoudiniFragment'; - artifact: FragmentArtifact; - store: FragmentStore; - proxy: HoudiniDocumentProxy; -}; -export declare type QueryResult<_Data, _Input> = { - data: _Data | null; - errors: { - message: string; - }[] | null; - isFetching: boolean; - partial: boolean; - source: DataSource | null; - variables: _Input | null; -}; -export declare type MutationResult<_Data, _Input> = { - data: _Data | null; - errors: { - message: string; - }[] | null; - isFetching: boolean; - isOptimisticResponse: boolean; - variables: _Input | null; -}; -declare type FetchGlobalParams<_Input> = { - variables?: _Input; - /** - * The policy to use when performing the fetch. If set to CachePolicy.NetworkOnly, - * a request will always be sent, even if the variables are the same as the last call - * to fetch. - */ - policy?: CachePolicy; - /** - * An object that will be passed to the fetch function. - * You can do what you want with it! - */ - metadata?: App.Metadata; - /** - * Set to true if you want the promise to pause while it's resolving. - * Only enable this if you know what you are doing. This will cause route - * transitions to pause while loading data. - */ - blocking?: boolean; -}; -declare type LoadEventFetchParams<_Input> = FetchGlobalParams<_Input> & { - /** - * Directly the `even` param coming from the `load` function - */ - event?: LoadEvent; -}; -declare type RequestEventFetchParams<_Input> = FetchGlobalParams<_Input> & { - /** - * A RequestEvent should be provided when the store is being used in an endpoint. - * When this happens, fetch also needs to be provided - */ - event?: RequestEvent; - /** - * The fetch function to use when using this store in an endpoint. - */ - fetch?: LoadEvent['fetch']; -}; -declare type ClientFetchParams<_Input> = FetchGlobalParams<_Input> & { - /** - * An object containing all of the current info necessary for a - * client-side fetch. Must be called in component initialization with - * something like this: `const context = getHoudiniFetchContext()` - */ - context?: HoudiniFetchContext; -}; -export declare type QueryStoreFetchParams<_Input> = LoadEventFetchParams<_Input> | RequestEventFetchParams<_Input> | ClientFetchParams<_Input>; -export declare type HoudiniFetchContext = { - url: () => URL | null; - session: () => App.Session | null; - variables: () => {}; - stuff: () => App.Stuff; -}; -export declare type SubscriptionStore<_Shape, _Input> = Readable<_Shape> & { - name: string; - listen: (input: _Input) => void; - unlisten: () => void; -}; -export declare type FragmentStore<_Shape> = { - name: string; - get>(value: T): Readable<_Shape> & { - update: (parent: _Shape | null) => void; - }; - get>(value: T | null): Readable<_Shape | null> & { - update: (parent: _Shape | null) => void; - }; -}; -export declare type QueryStore<_Data, _Input, _Extra = {}> = Readable & _Extra> & { - name: string; - /** - * Fetch the data from the server - */ - fetch(params?: RequestEventFetchParams<_Input>): Promise & _Extra>; - fetch(params?: LoadEventFetchParams<_Input>): Promise & _Extra>; - fetch(params?: ClientFetchParams<_Input>): Promise & _Extra>; - fetch(params?: QueryStoreFetchParams<_Input>): Promise & _Extra>; -}; -export declare type TaggedGraphqlMutation = { - kind: 'HoudiniMutation'; - store: MutationStore; -}; -export declare type MutationStore<_Result, _Input> = Readable> & { - name: string; - mutate: (params: { - variables: _Input; - metadata?: App.Metadata; - context?: HoudiniFetchContext; - fetch?: LoadEvent['fetch']; - } & MutationConfig<_Result, _Input>) => Promise>; -}; -export declare type TaggedGraphqlSubscription = { - kind: 'HoudiniSubscription'; - store: SubscriptionStore; - config: ConfigFile; -}; -export declare type TaggedGraphqlQuery = { - kind: 'HoudiniQuery'; - component: boolean; - store: QueryStore; - config: ConfigFile; - artifact: QueryArtifact; -}; -declare type Filter = { - [key: string]: string | boolean | number; -}; -export declare type ListWhen = { - must?: Filter; - must_not?: Filter; -}; -export declare enum DataSource { - /** - * from the browser cache - */ - Cache = "cache", - /** - * from a browser side `fetch` - */ - Network = "network", - /** - * from a server side `fetch` - */ - Ssr = "ssr" -} -export declare type MutationOperation = { - action: 'insert' | 'remove' | 'delete' | 'toggle'; - list?: string; - type?: string; - parentID?: { - kind: string; - value: string; - }; - position?: 'first' | 'last'; - when?: ListWhen; -}; -export declare const CompiledFragmentKind = "HoudiniFragment"; -export declare const CompiledMutationKind = "HoudiniMutation"; -export declare const CompiledQueryKind = "HoudiniQuery"; -export declare const CompiledSubscriptionKind = "HoudiniSubscription"; -export declare type CompiledDocumentKind = 'HoudiniFragment' | 'HoudiniMutation' | 'HoudiniQuery' | 'HoudiniSubscription'; -export declare type GraphQLObject = { - [key: string]: GraphQLValue; -}; -export declare type GraphQLValue = number | string | boolean | null | GraphQLObject | GraphQLValue[] | undefined; -export declare type SubscriptionSelection = { - [field: string]: { - type: string; - nullable?: boolean; - keyRaw: string; - operations?: MutationOperation[]; - list?: { - name: string; - connection: boolean; - type: string; - }; - update?: RefetchUpdateMode; - filters?: { - [key: string]: { - kind: 'Boolean' | 'String' | 'Float' | 'Int' | 'Variable'; - value: string | number | boolean; - }; - }; - fields?: SubscriptionSelection; - abstract?: boolean; - }; -}; -export declare type SubscriptionSpec = { - rootType: string; - selection: SubscriptionSelection; - set: (data: any) => void; - parentID?: string; - variables?: () => any; -}; diff --git a/$houdini/runtime/lib/types.js b/$houdini/runtime/lib/types.js deleted file mode 100644 index b738d37e..00000000 --- a/$houdini/runtime/lib/types.js +++ /dev/null @@ -1,39 +0,0 @@ -export var CachePolicy; -(function (CachePolicy) { - CachePolicy["CacheOrNetwork"] = "CacheOrNetwork"; - CachePolicy["CacheOnly"] = "CacheOnly"; - CachePolicy["NetworkOnly"] = "NetworkOnly"; - CachePolicy["CacheAndNetwork"] = "CacheAndNetwork"; -})(CachePolicy || (CachePolicy = {})); -export var ArtifactKind; -(function (ArtifactKind) { - ArtifactKind["Query"] = "HoudiniQuery"; - ArtifactKind["Subcription"] = "HoudiniSubscription"; - ArtifactKind["Mutation"] = "HoudiniMutation"; - ArtifactKind["Fragment"] = "HoudiniFragment"; -})(ArtifactKind || (ArtifactKind = {})); -export var RefetchUpdateMode; -(function (RefetchUpdateMode) { - RefetchUpdateMode["append"] = "append"; - RefetchUpdateMode["prepend"] = "prepend"; - RefetchUpdateMode["replace"] = "replace"; -})(RefetchUpdateMode || (RefetchUpdateMode = {})); -export var DataSource; -(function (DataSource) { - /** - * from the browser cache - */ - DataSource["Cache"] = "cache"; - /** - * from a browser side `fetch` - */ - DataSource["Network"] = "network"; - /** - * from a server side `fetch` - */ - DataSource["Ssr"] = "ssr"; -})(DataSource || (DataSource = {})); -export const CompiledFragmentKind = 'HoudiniFragment'; -export const CompiledMutationKind = 'HoudiniMutation'; -export const CompiledQueryKind = 'HoudiniQuery'; -export const CompiledSubscriptionKind = 'HoudiniSubscription'; diff --git a/$houdini/runtime/package.json b/$houdini/runtime/package.json deleted file mode 100644 index 47200257..00000000 --- a/$houdini/runtime/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} diff --git a/$houdini/runtime/stores/fragment.d.ts b/$houdini/runtime/stores/fragment.d.ts deleted file mode 100644 index 2ef3c07b..00000000 --- a/$houdini/runtime/stores/fragment.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ConfigFile, FragmentStore, GraphQLObject, QueryArtifact } from '../lib'; -import { PaginatedHandlers } from '../lib/pagination'; -export declare function fragmentStore<_Data extends GraphQLObject, _Input = {}>({ artifact, config, paginatedArtifact, paginationMethods, storeName, }: { - artifact: QueryArtifact; - config: ConfigFile; - paginated: QueryArtifact; - paginatedArtifact?: QueryArtifact; - paginationMethods: (keyof PaginatedHandlers<_Data, _Input>)[]; - storeName: string; -}): FragmentStore<_Data | null>; diff --git a/$houdini/runtime/stores/fragment.js b/$houdini/runtime/stores/fragment.js deleted file mode 100644 index 106707cd..00000000 --- a/$houdini/runtime/stores/fragment.js +++ /dev/null @@ -1,82 +0,0 @@ -// externals -import { derived, get, readable } from 'svelte/store'; -import { extractPageInfo, fragmentHandlers, pageInfoStore, } from '../lib/pagination'; -import { currentReqID, sessionStore } from '../lib/session'; -import { getSession, isBrowser } from '../adapter'; -// a fragment store exists in multiple places in a given application so we -// can't just return a store directly, the user has to load the version of the -// fragment store for the object the store has been mixed into -export function fragmentStore({ artifact, config, paginatedArtifact, paginationMethods, storeName, }) { - return { - name: artifact.name, - get(initialValue) { - const stores = {}; - // at the moment a fragment store doesn't really do anything - // but we're going to keep it wrapped in a store so we can eventually - // optimize the updates - let store; - // build up the methods we want to use - let extraMethods = {}; - let onUnsubscribe = (reqID) => { }; - let pageInfos = {}; - if (paginatedArtifact) { - const handlers = fragmentHandlers({ - storeName, - config, - paginationArtifact: paginatedArtifact, - stores, - }); - extraMethods = Object.fromEntries(paginationMethods.map((key) => [key, handlers[key]])); - extraMethods.paginationStrategy = handlers.paginationStrategy; - onUnsubscribe = handlers.onUnsubscribe; - pageInfos = handlers.pageInfos; - } - // we need to track the first time we write to a fragment store so we - // can make sure it has data (filled from the initial value argument) - const written = new Set(); - return { - subscribe: (...args) => { - const session = get(getSession()); - // grab the appropriate store for the session - const requestStore = sessionStore(session, stores, () => initialValue); - const reqID = currentReqID(session, stores); - // if we haven't written anything yet - if (!written.has(reqID)) { - written.add(reqID); - // update the fragment value - requestStore.set(initialValue); - // if we have to set up a paginated fragment - if (paginatedArtifact) { - // update the page info - pageInfoStore(session, pageInfos).set(extractPageInfo(initialValue, paginatedArtifact.refetch.path)); - } - } - // hold onto the store reference so client's can update - if (isBrowser) { - store = requestStore; - } - // we need to add the page info - const combined = derived([requestStore, pageInfos[reqID] || readable(null)], ([$store, $pageInfo]) => { - if ($store === null) { - return null; - } - // combine the state and page info values - const everything = { ...$store }; - if ($pageInfo) { - everything.pageInfo = $pageInfo; - } - return everything; - }); - const unsub = combined.subscribe(...args); - return () => { - unsub(); - onUnsubscribe(reqID); - written.delete(reqID); - }; - }, - update: (val) => store === null || store === void 0 ? void 0 : store.set(val), - ...extraMethods, - }; - }, - }; -} diff --git a/$houdini/runtime/stores/index.d.ts b/$houdini/runtime/stores/index.d.ts deleted file mode 100644 index a51dfce3..00000000 --- a/$houdini/runtime/stores/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { queryStore } from './query'; -export { mutationStore } from './mutation'; -export { subscriptionStore } from './subscription'; -export { fragmentStore } from './fragment'; diff --git a/$houdini/runtime/stores/index.js b/$houdini/runtime/stores/index.js deleted file mode 100644 index a51dfce3..00000000 --- a/$houdini/runtime/stores/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export { queryStore } from './query'; -export { mutationStore } from './mutation'; -export { subscriptionStore } from './subscription'; -export { fragmentStore } from './fragment'; diff --git a/$houdini/runtime/stores/mutation.d.ts b/$houdini/runtime/stores/mutation.d.ts deleted file mode 100644 index 2cdd2be8..00000000 --- a/$houdini/runtime/stores/mutation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ConfigFile, MutationStore } from '../lib'; -import type { MutationArtifact } from '../lib'; -export declare function mutationStore<_Data, _Input>({ config, artifact, }: { - config: ConfigFile; - artifact: MutationArtifact; -}): MutationStore<_Data, _Input>; diff --git a/$houdini/runtime/stores/mutation.js b/$houdini/runtime/stores/mutation.js deleted file mode 100644 index 11d9f405..00000000 --- a/$houdini/runtime/stores/mutation.js +++ /dev/null @@ -1,146 +0,0 @@ -// externals -import { get } from 'svelte/store'; -// locals -import { executeQuery, } from '../lib'; -import cache from '../cache'; -import { marshalInputs, marshalSelection, unmarshalSelection } from '../lib/scalars'; -import { getSession } from '../adapter'; -import { sessionStore } from '../lib/session'; -export function mutationStore({ config, artifact, }) { - const stores = {}; - const mutate = async ({ variables, context, metadata, fetch, ...mutationConfig }) => { - var _a, _b; - let fetchContext = context || { - session: () => null, - }; - const store = sessionStore(fetchContext, stores, nullMutationStore); - store.update((c) => { - return { ...c, isFetching: true }; - }); - // treat a mutation like it has an optimistic layer regardless of - // whether there actually _is_ one. This ensures that a query which fires - // after this mutation has been sent will overwrite any return values from the mutation - // - // as far as I can tell, this is an arbitrary decision but it does give a - // well-defined ordering to a subtle situation so that seems like a win - // - const layer = cache._internal_unstable.storage.createLayer(true); - // if there is an optimistic response then we need to write the value immediately - const optimisticResponse = mutationConfig === null || mutationConfig === void 0 ? void 0 : mutationConfig.optimisticResponse; - // hold onto the list of subscribers that we updated because of the optimistic response - // and make sure they are included in the final set of subscribers to notify - let toNotify = []; - if (optimisticResponse) { - toNotify = cache.write({ - selection: artifact.selection, - // make sure that any scalar values get processed into something we can cache - data: marshalSelection({ - config, - selection: artifact.selection, - data: optimisticResponse, - }), - variables, - layer: layer.id, - }); - const storeData = { - data: optimisticResponse, - errors: null, - isFetching: true, - isOptimisticResponse: true, - variables, - }; - // update the store value - store.set(storeData); - } - const newVariables = marshalInputs({ - input: variables, - artifact, - config, - }); - try { - // trigger the mutation - const { result } = await executeQuery({ - config, - artifact, - variables: newVariables, - session: (_a = fetchContext.session) === null || _a === void 0 ? void 0 : _a.call(fetchContext), - cached: false, - metadata, - fetch, - }); - if (result.errors && result.errors.length > 0) { - store.update((s) => ({ - ...s, - errors: result.errors, - isFetching: false, - isOptimisticResponse: false, - data: result.data, - variables: (newVariables || {}), - })); - throw result.errors; - } - // clear the layer holding any mutation results - layer.clear(); - // write the result of the mutation to the cache - cache.write({ - selection: artifact.selection, - data: result.data, - variables: newVariables, - // write to the mutation's layer - layer: layer.id, - // notify any subscribers that we updated with the optimistic response - // in order to address situations where the optimistic update was wrong - notifySubscribers: toNotify, - // make sure that we notify subscribers for any values that we overwrite - // in order to address any race conditions when comparing the previous value - forceNotify: true, - }); - // merge the layer back into the cache - cache._internal_unstable.storage.resolveLayer(layer.id); - // prepare store data - const storeData = { - data: unmarshalSelection(config, artifact.selection, result.data), - errors: (_b = result.errors) !== null && _b !== void 0 ? _b : null, - isFetching: false, - isOptimisticResponse: false, - variables: newVariables, - }; - // update the store value - store.set(storeData); - // return the value to the caller - return storeData; - } - catch (error) { - store.update((s) => ({ - ...s, - errors: error, - isFetching: false, - isOptimisticResponse: false, - data: null, - variables: newVariables, - })); - // if the mutation failed, roll the layer back and delete it - layer.clear(); - cache._internal_unstable.storage.resolveLayer(layer.id); - // bubble the mutation error up to the caller - throw error; - } - }; - return { - name: artifact.name, - subscribe(...args) { - // grab the appropriate store for the session - const requestStore = sessionStore(get(getSession()), stores, nullMutationStore); - // use it's value - return requestStore.subscribe(...args); - }, - mutate, - }; -} -const nullMutationStore = () => ({ - data: null, - errors: null, - isFetching: false, - isOptimisticResponse: false, - variables: null, -}); diff --git a/$houdini/runtime/stores/query.d.ts b/$houdini/runtime/stores/query.d.ts deleted file mode 100644 index a7b2a279..00000000 --- a/$houdini/runtime/stores/query.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Writable } from 'svelte/store'; -import { CachePolicy, GraphQLObject, QueryStore } from '..'; -import { FetchContext, QueryResult, QueryStoreFetchParams } from '../lib'; -import type { ConfigFile, QueryArtifact } from '../lib'; -import { PageInfo, PaginatedHandlers } from '../lib/pagination'; -export declare type QueryResultMap<_Data, _Input> = { - [reqID: string]: Writable & { - pageInfo?: PageInfo; - }>; -}; -export declare function queryStore<_Data extends GraphQLObject, _Input>({ config, artifact, storeName, paginationMethods, paginated, }: { - config: ConfigFile; - artifact: QueryArtifact; - paginated: boolean; - storeName: string; - paginationMethods: (keyof PaginatedHandlers<_Data, _Input>)[]; -}): QueryStore<_Data, _Input>; -export declare function fetchContext<_Data, _Input>(artifact: QueryArtifact, storeName: string, params?: QueryStoreFetchParams<_Input>): { - context: FetchContext; - policy: CachePolicy; - params: QueryStoreFetchParams<_Input>; -}; -export declare const sessionQueryStore: <_Data, _Input>(session: App.Session | { - session: () => App.Session | null; -} | null, home: { - [key: string]: Writable>; -}) => Writable & { - pageInfo?: PageInfo | undefined; -}>; diff --git a/$houdini/runtime/stores/query.js b/$houdini/runtime/stores/query.js deleted file mode 100644 index 6597a558..00000000 --- a/$houdini/runtime/stores/query.js +++ /dev/null @@ -1,437 +0,0 @@ -// externals -import { derived, get, readable } from 'svelte/store'; -// internals -import { CachePolicy, DataSource, fetchQuery } from '..'; -import { clientStarted, getSession, isBrowser } from '../adapter'; -import cache from '../cache'; -import { deepEquals, } from '../lib'; -import { nullHoudiniContext } from '../lib/context'; -import { queryHandlers } from '../lib/pagination'; -import { marshalInputs, unmarshalSelection } from '../lib/scalars'; -import * as log from '../lib/log'; -import { currentReqID, sessionStore } from '../lib/session'; -export function queryStore({ config, artifact, storeName, paginationMethods, paginated, }) { - // at its core, a query store is a writable store with extra methods - const data = {}; - const setFetching = (reqID, isFetching) => { var _a; return (_a = data[reqID]) === null || _a === void 0 ? void 0 : _a.update((s) => ({ ...s, isFetching })); }; - const getVariables = (reqID) => { var _a; return ((_a = get(data[reqID])) === null || _a === void 0 ? void 0 : _a.variables) || null; }; - // the first client-side request after the mocked load() needs to be blocked - let blockNextCSF = false; - // we will be reading and write the last known variables often, avoid frequent gets and updates - let lastVariables = null; - // track the subscription's existence to refresh and unsubscribe when unmounting - let subscriptionSpec = null; - // if there is a load in progress when the CSF triggers we need to stop it - let loadPending = false; - // in order to clear the store's value when unmounting, we need to track how many concurrent subscribers - // we have. when this number is 0, we need to clear the store - let subscriberCount = {}; - // a function to update the store's cache subscriptions - function refreshSubscription(reqID, newVariables) { - // if the variables changed we need to unsubscribe from the old fields and - // listen to the new ones - if (subscriptionSpec) { - cache.unsubscribe(subscriptionSpec, lastVariables || {}); - } - // subscribe to cache updates - subscriptionSpec = { - rootType: artifact.rootType, - selection: artifact.selection, - variables: () => newVariables, - set: (newValue) => { var _a; return (_a = data[reqID]) === null || _a === void 0 ? void 0 : _a.update((s) => ({ ...s, data: newValue })); }, - }; - // make sure we subscribe to the new values - cache.subscribe(subscriptionSpec, newVariables); - // track the newVariables - lastVariables = newVariables; - } - // a function to fetch data (the root of the behavior tree described above) - async function fetch(args) { - // validate and prepare the request context for the current environment (client vs server) - const { context, policy, params } = fetchContext(artifact, storeName, args); - // get the appropriate store for the session - const store = sessionQueryStore(context.session, data); - const reqID = currentReqID(context.session, data); - // identify if this is a CSF or load - const isLoadFetch = Boolean('event' in params && params.event); - const isComponentFetch = !isLoadFetch; - // compute the variables we need to use for the query - const input = (marshalInputs({ - artifact, - config, - input: params === null || params === void 0 ? void 0 : params.variables, - }) || {}); - const newVariables = { - ...lastVariables, - ...input, - }; - // check if the variables are different from the last time we saw them - let variableChange = !deepEquals(lastVariables, newVariables); - // detect if there is a load function that fires before the first CSF - if (isLoadFetch && lastVariables === null && Boolean('event' in (args || {}))) { - blockNextCSF = true; - } - // if we are loading on the client and the variables _are_ different, we have to - // update the subscribers. do that before the fetch so we don't accidentally - // cause the new data to trigger the old subscription after the store has been - // update with fetchAndCache - if (isComponentFetch && variableChange) { - refreshSubscription(reqID, newVariables); - store.update((s) => ({ ...s, variables: newVariables })); - } - // if there is a pending load, don't do anything - if (loadPending && isComponentFetch) { - // if the variables haven't changed and we dont have an active subscription - // then we need to start listening - if (!variableChange && subscriptionSpec === null) { - refreshSubscription(reqID, newVariables); - } - // we've officially blocked a CSF - blockNextCSF = false; - return get(store); - } - if (isComponentFetch) { - // a component fetch is _always_ blocking - params.blocking = true; - } - // the fetch is happening in a load - if (isLoadFetch) { - loadPending = true; - } - // there are a few cases where the CSF needs to be prevented: - // - the last request was from a server-side rendered request (faked by svelte kit) - // - the variables didn't change and we're not being forced to request it - // - there is a pending load function - if (isComponentFetch && - (blockNextCSF || - (!variableChange && params.policy !== CachePolicy.NetworkOnly) || - loadPending)) { - blockNextCSF = false; - // if the variables didn't change, get the latest value and use that - if (!variableChange) { - await fetchAndCache({ - config, - context, - artifact, - variables: newVariables, - store: store, - updateStore: true, - cached: true, - policy: CachePolicy.CacheOnly, - setLoadPending: (val) => { - loadPending = val; - setFetching(reqID, val); - }, - }); - } - // if we dont have a subscription but we're ending early we need to listen for - // changes - if (subscriptionSpec === null) { - refreshSubscription(reqID, newVariables); - } - // make sure we return before the fetch happens - return get(store); - } - // we want to update the store in four situations: ssr, csf, the first load of the ssr response, - // or if we got this far and the variables haven't changed (avoid prefetch) - const updateStore = !isBrowser || - isComponentFetch || - (lastVariables === null && variableChange) || - !variableChange; - // we might not want to wait for the fetch to resolve - const fakeAwait = clientStarted && isBrowser && !(params === null || params === void 0 ? void 0 : params.blocking); - setFetching(reqID, true); - // perform the network request - const request = fetchAndCache({ - config, - context, - artifact, - variables: newVariables, - store: store, - updateStore, - cached: policy !== CachePolicy.NetworkOnly, - setLoadPending: (val) => { - loadPending = val; - setFetching(reqID, val); - }, - }); - // if the await isn't fake, await it - if (!fakeAwait) { - await request; - } - // the store will have been updated already since we waited for the response - return get(store); - } - // add the pagination methods to the store - let extraMethods = {}; - let pageInfos = {}; - // a collection of functions to call when cleaning up - let onUnsub = (key) => { }; - if (paginated) { - const handlers = queryHandlers({ - storeName, - config, - artifact, - stores: data, - async fetch(params) { - return (await fetch({ - ...params, - blocking: true, - })); - }, - queryVariables: getVariables, - }); - extraMethods = Object.fromEntries(paginationMethods.map((key) => [key, handlers[key]])); - extraMethods.paginationStrategy = handlers.paginationStrategy; - pageInfos = handlers.pageInfos; - onUnsub = handlers.onUnsubscribe; - } - return { - name: artifact.name, - subscribe: (...args) => { - var _a; - // figure out the correct store to subscribe to - const session = get(getSession()); - const store = sessionQueryStore(session, data); - const reqID = currentReqID(session, data); - // add the page info store if it exists - const combined = derived([store, pageInfos[reqID] || readable(null)], ([$store, $pageInfo]) => { - const everything = { ...$store }; - if ($pageInfo) { - everything.pageInfo = $pageInfo; - } - return everything; - }); - const bubbleUp = combined.subscribe(...args); - // we have a new subscriber - subscriberCount[reqID] = ((_a = subscriberCount[reqID]) !== null && _a !== void 0 ? _a : 0) + 1; - // Handle unsubscribe - return () => { - // we lost a subscriber - subscriberCount[reqID]--; - // don't clear the store state on the server (breaks SSR) - // or when there is still an active subscriber - if (subscriberCount[reqID] <= 0) { - // clean up any cache subscriptions - if (isBrowser && subscriptionSpec) { - cache.unsubscribe(subscriptionSpec, lastVariables || {}); - subscriptionSpec = null; - } - // clear the variable counter - lastVariables = null; - // reset the store value - delete data[reqID]; - // clean up any pagination state - onUnsub(reqID); - } - // we're done - bubbleUp(); - }; - }, - fetch, - ...extraMethods, - }; -} -export function fetchContext(artifact, storeName, params) { - var _a, _b, _c, _d; - // if we aren't on the browser but there's no event there's a big mistake - if (!isBrowser && - !(params && 'fetch' in params) && - (!params || !('event' in params) || !('fetch' in (params.event || {})))) { - // prettier-ignore - log.error(` - ${log.red(`Missing event args in load function`)}. - - Three options: - ${log.cyan('1/ Prefetching & SSR')} - - - - - ${log.cyan('2/ Client only')} - - - ${log.cyan('3/ Endpoint')} - import fetch from 'node-fetch' - import { ${log.cyan(storeName)} } from '$houdini'; - - export async function get(event) { - return { - props: { - data: await ${log.cyan(storeName)}.fetch({ event, fetch }) - } - }; - } - -`); - throw new Error('Error, check above logs for help.'); - } - let houdiniContext = (params && 'context' in params && params.context) || null; - houdiniContext !== null && houdiniContext !== void 0 ? houdiniContext : (houdiniContext = nullHoudiniContext()); - // looking at the session will error while prerendering - let session = null; - try { - if (params && - 'event' in params && - params.event && - 'session' in params.event && - params.event.session) { - session = params.event.session; - } - else { - session = (_a = houdiniContext.session) === null || _a === void 0 ? void 0 : _a.call(houdiniContext); - } - } - catch { } - // figure out the right policy - let policy = params === null || params === void 0 ? void 0 : params.policy; - if (!policy) { - // use the artifact policy as the default, otherwise prefer the cache over the network - policy = (_b = artifact.policy) !== null && _b !== void 0 ? _b : CachePolicy.CacheOrNetwork; - } - // figure out the right fetch to use - let fetch = null; - if (params) { - if ('fetch' in params && params.fetch) { - fetch = params.fetch; - } - else if ('event' in params && params.event && 'fetch' in params.event) { - fetch = params.event.fetch; - } - } - if (!fetch) { - if (isBrowser) { - fetch = window.fetch.bind(window); - } - else { - throw new Error('Cannot find fetch to use'); - } - } - // find the right stuff - let stuff = ((_c = houdiniContext === null || houdiniContext === void 0 ? void 0 : houdiniContext.stuff) === null || _c === void 0 ? void 0 : _c.call(houdiniContext)) || {}; - if (params && 'event' in params && params.event && 'stuff' in params.event) { - stuff = params.event.stuff; - } - return { - context: { - fetch, - metadata: (_d = params === null || params === void 0 ? void 0 : params.metadata) !== null && _d !== void 0 ? _d : {}, - session, - stuff, - }, - policy, - params: params !== null && params !== void 0 ? params : {}, - }; -} -async function fetchAndCache({ config, context, artifact, variables, store, updateStore, cached, ignoreFollowup, setLoadPending, policy, }) { - const request = await fetchQuery({ - config, - context, - artifact, - variables, - cached, - policy, - }); - const { result, source, partial } = request; - // we're done - setLoadPending(false); - if (result.data && source !== DataSource.Cache) { - // update the cache with the data that we just ran into - cache.write({ - selection: artifact.selection, - data: result.data, - variables: variables || {}, - }); - } - if (updateStore) { - // unmarshal the result into complex scalars if its a response from the server - const unmarshaled = source === DataSource.Cache - ? result.data - : unmarshalSelection(config, artifact.selection, result.data); - // since we know we're not prefetching, we need to update the store with any errors - if (result.errors && result.errors.length > 0) { - store.update((s) => ({ - ...s, - errors: result.errors, - isFetching: false, - partial: false, - data: unmarshaled, - source, - variables, - })); - // don't go any further - throw result.errors; - } - else { - store.set({ - data: (unmarshaled || {}), - variables: variables || {}, - errors: null, - isFetching: false, - partial: request.partial, - source: request.source, - }); - } - } - if (!ignoreFollowup) { - // if the data was loaded from a cached value, and the document cache policy wants a - // network request to be sent after the data was loaded, load the data - if (source === DataSource.Cache && artifact.policy === CachePolicy.CacheAndNetwork) { - fetchAndCache({ - config, - context, - artifact, - variables, - store, - cached: false, - updateStore, - ignoreFollowup: true, - setLoadPending, - policy, - }); - } - // if we have a partial result and we can load the rest of the data - // from the network, send the request - if (partial && artifact.policy === CachePolicy.CacheOrNetwork) { - fetchAndCache({ - config, - context, - artifact, - variables, - store, - cached: false, - updateStore, - ignoreFollowup: true, - setLoadPending, - policy, - }); - } - } - return request; -} -export const sessionQueryStore = (session, home) => { - return sessionStore(session, home, () => ({ - data: null, - errors: null, - isFetching: false, - partial: false, - source: null, - variables: null, - })); -}; diff --git a/$houdini/runtime/stores/subscription.d.ts b/$houdini/runtime/stores/subscription.d.ts deleted file mode 100644 index 91ab9846..00000000 --- a/$houdini/runtime/stores/subscription.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ConfigFile, SubscriptionArtifact, SubscriptionStore } from '../lib'; -export declare function subscriptionStore<_Data, _Input>({ config, artifact, }: { - config: ConfigFile; - artifact: SubscriptionArtifact; -}): SubscriptionStore<_Data | null, _Input>; diff --git a/$houdini/runtime/stores/subscription.js b/$houdini/runtime/stores/subscription.js deleted file mode 100644 index 99361296..00000000 --- a/$houdini/runtime/stores/subscription.js +++ /dev/null @@ -1,83 +0,0 @@ -import { writable } from 'svelte/store'; -// locals -import { isBrowser } from '../adapter'; -import cache from '../cache'; -import { deepEquals } from '../lib'; -import { getCurrentClient } from '../lib/network'; -import { marshalInputs, unmarshalSelection } from '../lib/scalars'; -export function subscriptionStore({ config, artifact, }) { - // a store that holds the latest value - const result = writable(null); - // @ts-expect-error: typechecking cjs/esm interop is hard - // pull the query text out of the compiled artifact - const { raw: text, selection } = artifact.default || artifact; - // the function to call to unregister the subscription - let clearSubscription = () => { }; - // listen might be called multiple times while mounted - let lastVariables = null; - return { - name: artifact.name, - subscribe: result.subscribe, - listen(variables) { - // subscription.listen is a no-op on the server - if (!isBrowser) { - return; - } - // pull out the current client - const env = getCurrentClient(); - // if there isn't one, yell loudly - if (!env) { - throw new Error('Could not find Houdini Client'); - } - // we need to make sure that the user provided a socket connection - if (!env.socket) { - throw new Error('The current Houdini Client is not configured to handle subscriptions. Make sure you ' + - 'passed a socketClient to HoudiniClient constructor.'); - } - // marshal the inputs into their raw values - const marshaledVariables = marshalInputs({ - input: variables || {}, - config, - artifact, - }); - // if the variables haven't changed, don't do anything - if (deepEquals(lastVariables, marshaledVariables)) { - return; - } - // clear any existing subscription - clearSubscription(); - // save the last set - lastVariables = marshaledVariables; - // start listening for updates from the server - clearSubscription = env.socket.subscribe({ - query: text, - variables: marshaledVariables, - }, { - next({ data, errors }) { - // make sure there were no errors - if (errors) { - throw errors; - } - // if we got a result - if (data) { - // update the cache with the result - cache.write({ - selection, - data, - variables: marshaledVariables, - }); - // update the local store - result.set(unmarshalSelection(config, artifact.selection, data)); - } - }, - error(data) { }, - complete() { }, - }); - }, - unlisten() { - clearSubscription(); - clearSubscription = () => { }; - lastVariables = null; - }, - }; -} diff --git a/$houdini/stores/HOME.d.ts b/$houdini/stores/HOME.d.ts deleted file mode 100644 index 7fa4cd08..00000000 --- a/$houdini/stores/HOME.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { HOME$input, HOME$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_HOME: QueryStore - -export declare const HOMEStore: () => typeof GQL_HOME - -export default GQL_HOME diff --git a/$houdini/stores/HOME.js b/$houdini/stores/HOME.js deleted file mode 100644 index 2d8d07a3..00000000 --- a/$houdini/stores/HOME.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/HOME' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_HOME", - paginated: false, - paginationMethods: [], -}) - -export const GQL_HOME = factory() - -export const HOMEStore = factory - -export default GQL_HOME diff --git a/$houdini/stores/INIT.d.ts b/$houdini/stores/INIT.d.ts deleted file mode 100644 index f9f6b806..00000000 --- a/$houdini/stores/INIT.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { INIT$input, INIT$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_INIT: QueryStore - -export declare const INITStore: () => typeof GQL_INIT - -export default GQL_INIT diff --git a/$houdini/stores/INIT.js b/$houdini/stores/INIT.js deleted file mode 100644 index a93256ba..00000000 --- a/$houdini/stores/INIT.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/INIT' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_INIT", - paginated: false, - paginationMethods: [], -}) - -export const GQL_INIT = factory() - -export const INITStore = factory - -export default GQL_INIT diff --git a/$houdini/stores/addToCart.d.ts b/$houdini/stores/addToCart.d.ts deleted file mode 100644 index ebbb7ec3..00000000 --- a/$houdini/stores/addToCart.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { addToCart$input, addToCart$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_addToCart: MutationStore - -export default GQL_addToCart - \ No newline at end of file diff --git a/$houdini/stores/addToCart.js b/$houdini/stores/addToCart.js deleted file mode 100644 index 5de64eec..00000000 --- a/$houdini/stores/addToCart.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/addToCart' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_addToCart = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_addToCart diff --git a/$houdini/stores/address.d.ts b/$houdini/stores/address.d.ts deleted file mode 100644 index cb5f5f88..00000000 --- a/$houdini/stores/address.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { address$input, address$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_address: QueryStore - -export declare const addressStore: () => typeof GQL_address - -export default GQL_address diff --git a/$houdini/stores/address.js b/$houdini/stores/address.js deleted file mode 100644 index d101a982..00000000 --- a/$houdini/stores/address.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/address' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_address", - paginated: false, - paginationMethods: [], -}) - -export const GQL_address = factory() - -export const addressStore = factory - -export default GQL_address diff --git a/$houdini/stores/addresses.d.ts b/$houdini/stores/addresses.d.ts deleted file mode 100644 index 1ad2e1ec..00000000 --- a/$houdini/stores/addresses.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { addresses$input, addresses$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_addresses: QueryStore - -export declare const addressesStore: () => typeof GQL_addresses - -export default GQL_addresses diff --git a/$houdini/stores/addresses.js b/$houdini/stores/addresses.js deleted file mode 100644 index 0fcf5abc..00000000 --- a/$houdini/stores/addresses.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/addresses' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_addresses", - paginated: false, - paginationMethods: [], -}) - -export const GQL_addresses = factory() - -export const addressesStore = factory - -export default GQL_addresses diff --git a/$houdini/stores/blog.d.ts b/$houdini/stores/blog.d.ts deleted file mode 100644 index c11b4f68..00000000 --- a/$houdini/stores/blog.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { blog$input, blog$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_blog: QueryStore - -export declare const blogStore: () => typeof GQL_blog - -export default GQL_blog diff --git a/$houdini/stores/blog.js b/$houdini/stores/blog.js deleted file mode 100644 index fa679987..00000000 --- a/$houdini/stores/blog.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/blog' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_blog", - paginated: false, - paginationMethods: [], -}) - -export const GQL_blog = factory() - -export const blogStore = factory - -export default GQL_blog diff --git a/$houdini/stores/blogs.d.ts b/$houdini/stores/blogs.d.ts deleted file mode 100644 index 06b520c5..00000000 --- a/$houdini/stores/blogs.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { blogs$input, blogs$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_blogs: QueryStore - -export declare const blogsStore: () => typeof GQL_blogs - -export default GQL_blogs diff --git a/$houdini/stores/blogs.js b/$houdini/stores/blogs.js deleted file mode 100644 index 652012b5..00000000 --- a/$houdini/stores/blogs.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/blogs' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_blogs", - paginated: false, - paginationMethods: [], -}) - -export const GQL_blogs = factory() - -export const blogsStore = factory - -export default GQL_blogs diff --git a/$houdini/stores/cart.d.ts b/$houdini/stores/cart.d.ts deleted file mode 100644 index 50a0989e..00000000 --- a/$houdini/stores/cart.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { cart$input, cart$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_cart: QueryStore - -export declare const cartStore: () => typeof GQL_cart - -export default GQL_cart diff --git a/$houdini/stores/cart.js b/$houdini/stores/cart.js deleted file mode 100644 index be80cbd7..00000000 --- a/$houdini/stores/cart.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/cart' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_cart", - paginated: false, - paginationMethods: [], -}) - -export const GQL_cart = factory() - -export const cartStore = factory - -export default GQL_cart diff --git a/$houdini/stores/cashfreePayNowNew.d.ts b/$houdini/stores/cashfreePayNowNew.d.ts deleted file mode 100644 index 273fc17e..00000000 --- a/$houdini/stores/cashfreePayNowNew.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { cashfreePayNowNew$input, cashfreePayNowNew$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_cashfreePayNowNew: MutationStore - -export default GQL_cashfreePayNowNew - \ No newline at end of file diff --git a/$houdini/stores/cashfreePayNowNew.js b/$houdini/stores/cashfreePayNowNew.js deleted file mode 100644 index b78ef7aa..00000000 --- a/$houdini/stores/cashfreePayNowNew.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/cashfreePayNowNew' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_cashfreePayNowNew = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_cashfreePayNowNew diff --git a/$houdini/stores/categories.d.ts b/$houdini/stores/categories.d.ts deleted file mode 100644 index bc907896..00000000 --- a/$houdini/stores/categories.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { categories$input, categories$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_categories: QueryStore - -export declare const categoriesStore: () => typeof GQL_categories - -export default GQL_categories diff --git a/$houdini/stores/categories.js b/$houdini/stores/categories.js deleted file mode 100644 index 7cec47f9..00000000 --- a/$houdini/stores/categories.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/categories' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_categories", - paginated: false, - paginationMethods: [], -}) - -export const GQL_categories = factory() - -export const categoriesStore = factory - -export default GQL_categories diff --git a/$houdini/stores/category.d.ts b/$houdini/stores/category.d.ts deleted file mode 100644 index 299b6aa4..00000000 --- a/$houdini/stores/category.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { category$input, category$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_category: QueryStore - -export declare const categoryStore: () => typeof GQL_category - -export default GQL_category diff --git a/$houdini/stores/category.js b/$houdini/stores/category.js deleted file mode 100644 index 02933d3a..00000000 --- a/$houdini/stores/category.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/category' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_category", - paginated: false, - paginationMethods: [], -}) - -export const GQL_category = factory() - -export const categoryStore = factory - -export default GQL_category diff --git a/$houdini/stores/changePassword.d.ts b/$houdini/stores/changePassword.d.ts deleted file mode 100644 index 6e7bffbc..00000000 --- a/$houdini/stores/changePassword.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { changePassword$input, changePassword$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_changePassword: MutationStore - -export default GQL_changePassword - \ No newline at end of file diff --git a/$houdini/stores/changePassword.js b/$houdini/stores/changePassword.js deleted file mode 100644 index 64d0161e..00000000 --- a/$houdini/stores/changePassword.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/changePassword' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_changePassword = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_changePassword diff --git a/$houdini/stores/checkWishlist.d.ts b/$houdini/stores/checkWishlist.d.ts deleted file mode 100644 index 8d87829b..00000000 --- a/$houdini/stores/checkWishlist.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { checkWishlist$input, checkWishlist$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_checkWishlist: QueryStore - -export declare const checkWishlistStore: () => typeof GQL_checkWishlist - -export default GQL_checkWishlist diff --git a/$houdini/stores/checkWishlist.js b/$houdini/stores/checkWishlist.js deleted file mode 100644 index 19b1ba0c..00000000 --- a/$houdini/stores/checkWishlist.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/checkWishlist' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_checkWishlist", - paginated: false, - paginationMethods: [], -}) - -export const GQL_checkWishlist = factory() - -export const checkWishlistStore = factory - -export default GQL_checkWishlist diff --git a/$houdini/stores/checkout.d.ts b/$houdini/stores/checkout.d.ts deleted file mode 100644 index d2592b70..00000000 --- a/$houdini/stores/checkout.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { checkout$input, checkout$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_checkout: MutationStore - -export default GQL_checkout - \ No newline at end of file diff --git a/$houdini/stores/checkout.js b/$houdini/stores/checkout.js deleted file mode 100644 index cd7c366b..00000000 --- a/$houdini/stores/checkout.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/checkout' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_checkout = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_checkout diff --git a/$houdini/stores/countries.d.ts b/$houdini/stores/countries.d.ts deleted file mode 100644 index 43ececea..00000000 --- a/$houdini/stores/countries.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { countries$input, countries$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_countries: QueryStore - -export declare const countriesStore: () => typeof GQL_countries - -export default GQL_countries diff --git a/$houdini/stores/countries.js b/$houdini/stores/countries.js deleted file mode 100644 index 3f56dbdc..00000000 --- a/$houdini/stores/countries.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/countries' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_countries", - paginated: false, - paginationMethods: [], -}) - -export const GQL_countries = factory() - -export const countriesStore = factory - -export default GQL_countries diff --git a/$houdini/stores/country.d.ts b/$houdini/stores/country.d.ts deleted file mode 100644 index a2c691f8..00000000 --- a/$houdini/stores/country.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { country$input, country$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_country: QueryStore - -export declare const countryStore: () => typeof GQL_country - -export default GQL_country diff --git a/$houdini/stores/country.js b/$houdini/stores/country.js deleted file mode 100644 index c09bae76..00000000 --- a/$houdini/stores/country.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/country' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_country", - paginated: false, - paginationMethods: [], -}) - -export const GQL_country = factory() - -export const countryStore = factory - -export default GQL_country diff --git a/$houdini/stores/deleteAddress.d.ts b/$houdini/stores/deleteAddress.d.ts deleted file mode 100644 index ff28f56b..00000000 --- a/$houdini/stores/deleteAddress.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { deleteAddress$input, deleteAddress$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_deleteAddress: MutationStore - -export default GQL_deleteAddress - \ No newline at end of file diff --git a/$houdini/stores/deleteAddress.js b/$houdini/stores/deleteAddress.js deleted file mode 100644 index e2b63c50..00000000 --- a/$houdini/stores/deleteAddress.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/deleteAddress' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_deleteAddress = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_deleteAddress diff --git a/$houdini/stores/deleteBlog.d.ts b/$houdini/stores/deleteBlog.d.ts deleted file mode 100644 index 0f37ecfc..00000000 --- a/$houdini/stores/deleteBlog.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { deleteBlog$input, deleteBlog$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_deleteBlog: MutationStore - -export default GQL_deleteBlog - \ No newline at end of file diff --git a/$houdini/stores/deleteBlog.js b/$houdini/stores/deleteBlog.js deleted file mode 100644 index 09d6e7f2..00000000 --- a/$houdini/stores/deleteBlog.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/deleteBlog' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_deleteBlog = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_deleteBlog diff --git a/$houdini/stores/deleteCountry.d.ts b/$houdini/stores/deleteCountry.d.ts deleted file mode 100644 index bb48a912..00000000 --- a/$houdini/stores/deleteCountry.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { deleteCountry$input, deleteCountry$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_deleteCountry: MutationStore - -export default GQL_deleteCountry - \ No newline at end of file diff --git a/$houdini/stores/deleteCountry.js b/$houdini/stores/deleteCountry.js deleted file mode 100644 index ba273f6d..00000000 --- a/$houdini/stores/deleteCountry.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/deleteCountry' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_deleteCountry = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_deleteCountry diff --git a/$houdini/stores/deletePaymentMethod.d.ts b/$houdini/stores/deletePaymentMethod.d.ts deleted file mode 100644 index d422268f..00000000 --- a/$houdini/stores/deletePaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { deletePaymentMethod$input, deletePaymentMethod$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_deletePaymentMethod: MutationStore - -export default GQL_deletePaymentMethod - \ No newline at end of file diff --git a/$houdini/stores/deletePaymentMethod.js b/$houdini/stores/deletePaymentMethod.js deleted file mode 100644 index f14f0f7c..00000000 --- a/$houdini/stores/deletePaymentMethod.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/deletePaymentMethod' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_deletePaymentMethod = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_deletePaymentMethod diff --git a/$houdini/stores/emailPassword.d.ts b/$houdini/stores/emailPassword.d.ts deleted file mode 100644 index e461ec0b..00000000 --- a/$houdini/stores/emailPassword.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { emailPassword$input, emailPassword$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_emailPassword: MutationStore - -export default GQL_emailPassword - \ No newline at end of file diff --git a/$houdini/stores/emailPassword.js b/$houdini/stores/emailPassword.js deleted file mode 100644 index 77199793..00000000 --- a/$houdini/stores/emailPassword.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/emailPassword' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_emailPassword = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_emailPassword diff --git a/$houdini/stores/getOtp.d.ts b/$houdini/stores/getOtp.d.ts deleted file mode 100644 index 1cd11e0e..00000000 --- a/$houdini/stores/getOtp.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { getOtp$input, getOtp$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_getOtp: MutationStore - -export default GQL_getOtp - \ No newline at end of file diff --git a/$houdini/stores/getOtp.js b/$houdini/stores/getOtp.js deleted file mode 100644 index 64daa676..00000000 --- a/$houdini/stores/getOtp.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/getOtp' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_getOtp = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_getOtp diff --git a/$houdini/stores/index.d.ts b/$houdini/stores/index.d.ts deleted file mode 100644 index 71556a2d..00000000 --- a/$houdini/stores/index.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { DataSource } from '$houdini/runtime' - -export type Result = { - isFetching: boolean - partial: boolean - source?: DataSource | null - data?: DataType | null - error?: Error | null -} -export * from './address' -export * from './addresses' -export * from './addToCart' -export * from './blog' -export * from './blogs' -export * from './cart' -export * from './cashfreePayNowNew' -export * from './categories' -export * from './category' -export * from './changePassword' -export * from './checkout' -export * from './checkWishlist' -export * from './countries' -export * from './country' -export * from './deleteAddress' -export * from './deleteBlog' -export * from './deleteCountry' -export * from './deletePaymentMethod' -export * from './emailPassword' -export * from './getOtp' -export * from './HOME' -export * from './INIT' -export * from './login' -export * from './me' -export * from './megamenu' -export * from './myAddresses' -export * from './myOrderItems' -export * from './myOrders' -export * from './myWishlist' -export * from './orderItem' -export * from './paymentMethod' -export * from './paymentMethods' -export * from './paymentMethodsAdmin' -export * from './paySuccessPageHit' -export * from './popularSearches' -export * from './product' -export * from './productReviews' -export * from './products' -export * from './productSlug' -export * from './randomVendors' -export * from './removeStoreCountry' -export * from './resendEmail' -export * from './reviews' -export * from './saveAddress' -export * from './saveBlog' -export * from './saveCountry' -export * from './savePaymentMethod' -export * from './saveStoreCountry' -export * from './settings' -export * from './signOut' -export * from './states' -export * from './store' -export * from './storeCountries' -export * from './storeCountry' -export * from './storeOne' -export * from './stripe' -export * from './toggleWishlist' -export * from './topVendors' -export * from './updateProfile' -export * from './vendor' -export * from './vendorProfile' -export * from './verifyEmail' -export * from './verifyOtp' \ No newline at end of file diff --git a/$houdini/stores/index.js b/$houdini/stores/index.js deleted file mode 100644 index 3c4907ed..00000000 --- a/$houdini/stores/index.js +++ /dev/null @@ -1,63 +0,0 @@ -export * from './address' -export * from './addresses' -export * from './addToCart' -export * from './blog' -export * from './blogs' -export * from './cart' -export * from './cashfreePayNowNew' -export * from './categories' -export * from './category' -export * from './changePassword' -export * from './checkout' -export * from './checkWishlist' -export * from './countries' -export * from './country' -export * from './deleteAddress' -export * from './deleteBlog' -export * from './deleteCountry' -export * from './deletePaymentMethod' -export * from './emailPassword' -export * from './getOtp' -export * from './HOME' -export * from './INIT' -export * from './login' -export * from './me' -export * from './megamenu' -export * from './myAddresses' -export * from './myOrderItems' -export * from './myOrders' -export * from './myWishlist' -export * from './orderItem' -export * from './paymentMethod' -export * from './paymentMethods' -export * from './paymentMethodsAdmin' -export * from './paySuccessPageHit' -export * from './popularSearches' -export * from './product' -export * from './productReviews' -export * from './products' -export * from './productSlug' -export * from './randomVendors' -export * from './removeStoreCountry' -export * from './resendEmail' -export * from './reviews' -export * from './saveAddress' -export * from './saveBlog' -export * from './saveCountry' -export * from './savePaymentMethod' -export * from './saveStoreCountry' -export * from './settings' -export * from './signOut' -export * from './states' -export * from './store' -export * from './storeCountries' -export * from './storeCountry' -export * from './storeOne' -export * from './stripe' -export * from './toggleWishlist' -export * from './topVendors' -export * from './updateProfile' -export * from './vendor' -export * from './vendorProfile' -export * from './verifyEmail' -export * from './verifyOtp' \ No newline at end of file diff --git a/$houdini/stores/login.d.ts b/$houdini/stores/login.d.ts deleted file mode 100644 index 913771c9..00000000 --- a/$houdini/stores/login.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { login$input, login$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_login: MutationStore - -export default GQL_login - \ No newline at end of file diff --git a/$houdini/stores/login.js b/$houdini/stores/login.js deleted file mode 100644 index 7585cdf4..00000000 --- a/$houdini/stores/login.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/login' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_login = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_login diff --git a/$houdini/stores/me.d.ts b/$houdini/stores/me.d.ts deleted file mode 100644 index 6fd0e86b..00000000 --- a/$houdini/stores/me.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { me$input, me$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_me: QueryStore - -export declare const meStore: () => typeof GQL_me - -export default GQL_me diff --git a/$houdini/stores/me.js b/$houdini/stores/me.js deleted file mode 100644 index f6d3989d..00000000 --- a/$houdini/stores/me.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/me' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_me", - paginated: false, - paginationMethods: [], -}) - -export const GQL_me = factory() - -export const meStore = factory - -export default GQL_me diff --git a/$houdini/stores/megamenu.d.ts b/$houdini/stores/megamenu.d.ts deleted file mode 100644 index edd23def..00000000 --- a/$houdini/stores/megamenu.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { megamenu$input, megamenu$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_megamenu: QueryStore - -export declare const megamenuStore: () => typeof GQL_megamenu - -export default GQL_megamenu diff --git a/$houdini/stores/megamenu.js b/$houdini/stores/megamenu.js deleted file mode 100644 index d5623f7d..00000000 --- a/$houdini/stores/megamenu.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/megamenu' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_megamenu", - paginated: false, - paginationMethods: [], -}) - -export const GQL_megamenu = factory() - -export const megamenuStore = factory - -export default GQL_megamenu diff --git a/$houdini/stores/myAddresses.d.ts b/$houdini/stores/myAddresses.d.ts deleted file mode 100644 index b9be7b70..00000000 --- a/$houdini/stores/myAddresses.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { myAddresses$input, myAddresses$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_myAddresses: QueryStore - -export declare const myAddressesStore: () => typeof GQL_myAddresses - -export default GQL_myAddresses diff --git a/$houdini/stores/myAddresses.js b/$houdini/stores/myAddresses.js deleted file mode 100644 index 3ad581ce..00000000 --- a/$houdini/stores/myAddresses.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/myAddresses' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_myAddresses", - paginated: false, - paginationMethods: [], -}) - -export const GQL_myAddresses = factory() - -export const myAddressesStore = factory - -export default GQL_myAddresses diff --git a/$houdini/stores/myOrderItems.d.ts b/$houdini/stores/myOrderItems.d.ts deleted file mode 100644 index 29fe658e..00000000 --- a/$houdini/stores/myOrderItems.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { myOrderItems$input, myOrderItems$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_myOrderItems: QueryStore - -export declare const myOrderItemsStore: () => typeof GQL_myOrderItems - -export default GQL_myOrderItems diff --git a/$houdini/stores/myOrderItems.js b/$houdini/stores/myOrderItems.js deleted file mode 100644 index 37f1bbd4..00000000 --- a/$houdini/stores/myOrderItems.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/myOrderItems' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_myOrderItems", - paginated: false, - paginationMethods: [], -}) - -export const GQL_myOrderItems = factory() - -export const myOrderItemsStore = factory - -export default GQL_myOrderItems diff --git a/$houdini/stores/myOrders.d.ts b/$houdini/stores/myOrders.d.ts deleted file mode 100644 index b9a4866a..00000000 --- a/$houdini/stores/myOrders.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { myOrders$input, myOrders$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_myOrders: QueryStore - -export declare const myOrdersStore: () => typeof GQL_myOrders - -export default GQL_myOrders diff --git a/$houdini/stores/myOrders.js b/$houdini/stores/myOrders.js deleted file mode 100644 index e0eec3ab..00000000 --- a/$houdini/stores/myOrders.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/myOrders' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_myOrders", - paginated: false, - paginationMethods: [], -}) - -export const GQL_myOrders = factory() - -export const myOrdersStore = factory - -export default GQL_myOrders diff --git a/$houdini/stores/myWishlist.d.ts b/$houdini/stores/myWishlist.d.ts deleted file mode 100644 index 5ab35344..00000000 --- a/$houdini/stores/myWishlist.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { myWishlist$input, myWishlist$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_myWishlist: QueryStore - -export declare const myWishlistStore: () => typeof GQL_myWishlist - -export default GQL_myWishlist diff --git a/$houdini/stores/myWishlist.js b/$houdini/stores/myWishlist.js deleted file mode 100644 index b5d7b8af..00000000 --- a/$houdini/stores/myWishlist.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/myWishlist' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_myWishlist", - paginated: false, - paginationMethods: [], -}) - -export const GQL_myWishlist = factory() - -export const myWishlistStore = factory - -export default GQL_myWishlist diff --git a/$houdini/stores/orderItem.d.ts b/$houdini/stores/orderItem.d.ts deleted file mode 100644 index b5950155..00000000 --- a/$houdini/stores/orderItem.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { orderItem$input, orderItem$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_orderItem: QueryStore - -export declare const orderItemStore: () => typeof GQL_orderItem - -export default GQL_orderItem diff --git a/$houdini/stores/orderItem.js b/$houdini/stores/orderItem.js deleted file mode 100644 index 6e58a75a..00000000 --- a/$houdini/stores/orderItem.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/orderItem' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_orderItem", - paginated: false, - paginationMethods: [], -}) - -export const GQL_orderItem = factory() - -export const orderItemStore = factory - -export default GQL_orderItem diff --git a/$houdini/stores/paySuccessPageHit.d.ts b/$houdini/stores/paySuccessPageHit.d.ts deleted file mode 100644 index 674a5b07..00000000 --- a/$houdini/stores/paySuccessPageHit.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { paySuccessPageHit$input, paySuccessPageHit$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_paySuccessPageHit: MutationStore - -export default GQL_paySuccessPageHit - \ No newline at end of file diff --git a/$houdini/stores/paySuccessPageHit.js b/$houdini/stores/paySuccessPageHit.js deleted file mode 100644 index 4dbd07aa..00000000 --- a/$houdini/stores/paySuccessPageHit.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/paySuccessPageHit' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_paySuccessPageHit = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_paySuccessPageHit diff --git a/$houdini/stores/paymentMethod.d.ts b/$houdini/stores/paymentMethod.d.ts deleted file mode 100644 index 2f92db03..00000000 --- a/$houdini/stores/paymentMethod.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { paymentMethod$input, paymentMethod$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_paymentMethod: QueryStore - -export declare const paymentMethodStore: () => typeof GQL_paymentMethod - -export default GQL_paymentMethod diff --git a/$houdini/stores/paymentMethod.js b/$houdini/stores/paymentMethod.js deleted file mode 100644 index 4333e162..00000000 --- a/$houdini/stores/paymentMethod.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/paymentMethod' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_paymentMethod", - paginated: false, - paginationMethods: [], -}) - -export const GQL_paymentMethod = factory() - -export const paymentMethodStore = factory - -export default GQL_paymentMethod diff --git a/$houdini/stores/paymentMethods.d.ts b/$houdini/stores/paymentMethods.d.ts deleted file mode 100644 index 8d68c086..00000000 --- a/$houdini/stores/paymentMethods.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { paymentMethods$input, paymentMethods$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_paymentMethods: QueryStore - -export declare const paymentMethodsStore: () => typeof GQL_paymentMethods - -export default GQL_paymentMethods diff --git a/$houdini/stores/paymentMethods.js b/$houdini/stores/paymentMethods.js deleted file mode 100644 index c3e2518d..00000000 --- a/$houdini/stores/paymentMethods.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/paymentMethods' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_paymentMethods", - paginated: false, - paginationMethods: [], -}) - -export const GQL_paymentMethods = factory() - -export const paymentMethodsStore = factory - -export default GQL_paymentMethods diff --git a/$houdini/stores/paymentMethodsAdmin.d.ts b/$houdini/stores/paymentMethodsAdmin.d.ts deleted file mode 100644 index 5fe7861f..00000000 --- a/$houdini/stores/paymentMethodsAdmin.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { paymentMethodsAdmin$input, paymentMethodsAdmin$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_paymentMethodsAdmin: QueryStore - -export declare const paymentMethodsAdminStore: () => typeof GQL_paymentMethodsAdmin - -export default GQL_paymentMethodsAdmin diff --git a/$houdini/stores/paymentMethodsAdmin.js b/$houdini/stores/paymentMethodsAdmin.js deleted file mode 100644 index ff088733..00000000 --- a/$houdini/stores/paymentMethodsAdmin.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/paymentMethodsAdmin' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_paymentMethodsAdmin", - paginated: false, - paginationMethods: [], -}) - -export const GQL_paymentMethodsAdmin = factory() - -export const paymentMethodsAdminStore = factory - -export default GQL_paymentMethodsAdmin diff --git a/$houdini/stores/popularSearches.d.ts b/$houdini/stores/popularSearches.d.ts deleted file mode 100644 index 3d84599f..00000000 --- a/$houdini/stores/popularSearches.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { popularSearches$input, popularSearches$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_popularSearches: QueryStore - -export declare const popularSearchesStore: () => typeof GQL_popularSearches - -export default GQL_popularSearches diff --git a/$houdini/stores/popularSearches.js b/$houdini/stores/popularSearches.js deleted file mode 100644 index 143ee1ce..00000000 --- a/$houdini/stores/popularSearches.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/popularSearches' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_popularSearches", - paginated: false, - paginationMethods: [], -}) - -export const GQL_popularSearches = factory() - -export const popularSearchesStore = factory - -export default GQL_popularSearches diff --git a/$houdini/stores/product.d.ts b/$houdini/stores/product.d.ts deleted file mode 100644 index 1ac5fa03..00000000 --- a/$houdini/stores/product.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { product$input, product$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_product: QueryStore - -export declare const productStore: () => typeof GQL_product - -export default GQL_product diff --git a/$houdini/stores/product.js b/$houdini/stores/product.js deleted file mode 100644 index c14a4849..00000000 --- a/$houdini/stores/product.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/product' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_product", - paginated: false, - paginationMethods: [], -}) - -export const GQL_product = factory() - -export const productStore = factory - -export default GQL_product diff --git a/$houdini/stores/productReviews.d.ts b/$houdini/stores/productReviews.d.ts deleted file mode 100644 index 020acf69..00000000 --- a/$houdini/stores/productReviews.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { productReviews$input, productReviews$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_productReviews: QueryStore - -export declare const productReviewsStore: () => typeof GQL_productReviews - -export default GQL_productReviews diff --git a/$houdini/stores/productReviews.js b/$houdini/stores/productReviews.js deleted file mode 100644 index 5fddc60e..00000000 --- a/$houdini/stores/productReviews.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/productReviews' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_productReviews", - paginated: false, - paginationMethods: [], -}) - -export const GQL_productReviews = factory() - -export const productReviewsStore = factory - -export default GQL_productReviews diff --git a/$houdini/stores/productSlug.d.ts b/$houdini/stores/productSlug.d.ts deleted file mode 100644 index a616d00b..00000000 --- a/$houdini/stores/productSlug.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { productSlug$input, productSlug$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_productSlug: QueryStore - -export declare const productSlugStore: () => typeof GQL_productSlug - -export default GQL_productSlug diff --git a/$houdini/stores/productSlug.js b/$houdini/stores/productSlug.js deleted file mode 100644 index bb8a6da1..00000000 --- a/$houdini/stores/productSlug.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/productSlug' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_productSlug", - paginated: false, - paginationMethods: [], -}) - -export const GQL_productSlug = factory() - -export const productSlugStore = factory - -export default GQL_productSlug diff --git a/$houdini/stores/products.d.ts b/$houdini/stores/products.d.ts deleted file mode 100644 index d8dfaf6b..00000000 --- a/$houdini/stores/products.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { products$input, products$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_products: QueryStore - -export declare const productsStore: () => typeof GQL_products - -export default GQL_products diff --git a/$houdini/stores/products.js b/$houdini/stores/products.js deleted file mode 100644 index ac632e4b..00000000 --- a/$houdini/stores/products.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/products' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_products", - paginated: false, - paginationMethods: [], -}) - -export const GQL_products = factory() - -export const productsStore = factory - -export default GQL_products diff --git a/$houdini/stores/randomVendors.d.ts b/$houdini/stores/randomVendors.d.ts deleted file mode 100644 index cb930556..00000000 --- a/$houdini/stores/randomVendors.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { randomVendors$input, randomVendors$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_randomVendors: QueryStore - -export declare const randomVendorsStore: () => typeof GQL_randomVendors - -export default GQL_randomVendors diff --git a/$houdini/stores/randomVendors.js b/$houdini/stores/randomVendors.js deleted file mode 100644 index 2c4aad9f..00000000 --- a/$houdini/stores/randomVendors.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/randomVendors' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_randomVendors", - paginated: false, - paginationMethods: [], -}) - -export const GQL_randomVendors = factory() - -export const randomVendorsStore = factory - -export default GQL_randomVendors diff --git a/$houdini/stores/removeStoreCountry.d.ts b/$houdini/stores/removeStoreCountry.d.ts deleted file mode 100644 index e1a6445c..00000000 --- a/$houdini/stores/removeStoreCountry.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { removeStoreCountry$input, removeStoreCountry$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_removeStoreCountry: MutationStore - -export default GQL_removeStoreCountry - \ No newline at end of file diff --git a/$houdini/stores/removeStoreCountry.js b/$houdini/stores/removeStoreCountry.js deleted file mode 100644 index a9127a55..00000000 --- a/$houdini/stores/removeStoreCountry.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/removeStoreCountry' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_removeStoreCountry = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_removeStoreCountry diff --git a/$houdini/stores/resendEmail.d.ts b/$houdini/stores/resendEmail.d.ts deleted file mode 100644 index d290d139..00000000 --- a/$houdini/stores/resendEmail.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { resendEmail$input, resendEmail$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_resendEmail: MutationStore - -export default GQL_resendEmail - \ No newline at end of file diff --git a/$houdini/stores/resendEmail.js b/$houdini/stores/resendEmail.js deleted file mode 100644 index c56447ad..00000000 --- a/$houdini/stores/resendEmail.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/resendEmail' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_resendEmail = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_resendEmail diff --git a/$houdini/stores/reviews.d.ts b/$houdini/stores/reviews.d.ts deleted file mode 100644 index ee7142eb..00000000 --- a/$houdini/stores/reviews.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { reviews$input, reviews$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_reviews: QueryStore - -export declare const reviewsStore: () => typeof GQL_reviews - -export default GQL_reviews diff --git a/$houdini/stores/reviews.js b/$houdini/stores/reviews.js deleted file mode 100644 index be8769ab..00000000 --- a/$houdini/stores/reviews.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/reviews' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_reviews", - paginated: false, - paginationMethods: [], -}) - -export const GQL_reviews = factory() - -export const reviewsStore = factory - -export default GQL_reviews diff --git a/$houdini/stores/saveAddress.d.ts b/$houdini/stores/saveAddress.d.ts deleted file mode 100644 index 8102e9b0..00000000 --- a/$houdini/stores/saveAddress.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { saveAddress$input, saveAddress$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_saveAddress: MutationStore - -export default GQL_saveAddress - \ No newline at end of file diff --git a/$houdini/stores/saveAddress.js b/$houdini/stores/saveAddress.js deleted file mode 100644 index 6d00a3bd..00000000 --- a/$houdini/stores/saveAddress.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/saveAddress' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_saveAddress = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_saveAddress diff --git a/$houdini/stores/saveBlog.d.ts b/$houdini/stores/saveBlog.d.ts deleted file mode 100644 index ffdba1bf..00000000 --- a/$houdini/stores/saveBlog.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { saveBlog$input, saveBlog$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_saveBlog: MutationStore - -export default GQL_saveBlog - \ No newline at end of file diff --git a/$houdini/stores/saveBlog.js b/$houdini/stores/saveBlog.js deleted file mode 100644 index 820793c0..00000000 --- a/$houdini/stores/saveBlog.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/saveBlog' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_saveBlog = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_saveBlog diff --git a/$houdini/stores/saveCountry.d.ts b/$houdini/stores/saveCountry.d.ts deleted file mode 100644 index c6518001..00000000 --- a/$houdini/stores/saveCountry.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { saveCountry$input, saveCountry$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_saveCountry: MutationStore - -export default GQL_saveCountry - \ No newline at end of file diff --git a/$houdini/stores/saveCountry.js b/$houdini/stores/saveCountry.js deleted file mode 100644 index 095b5bdd..00000000 --- a/$houdini/stores/saveCountry.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/saveCountry' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_saveCountry = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_saveCountry diff --git a/$houdini/stores/savePaymentMethod.d.ts b/$houdini/stores/savePaymentMethod.d.ts deleted file mode 100644 index b2cbb712..00000000 --- a/$houdini/stores/savePaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { savePaymentMethod$input, savePaymentMethod$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_savePaymentMethod: MutationStore - -export default GQL_savePaymentMethod - \ No newline at end of file diff --git a/$houdini/stores/savePaymentMethod.js b/$houdini/stores/savePaymentMethod.js deleted file mode 100644 index 0472b251..00000000 --- a/$houdini/stores/savePaymentMethod.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/savePaymentMethod' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_savePaymentMethod = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_savePaymentMethod diff --git a/$houdini/stores/saveStoreCountry.d.ts b/$houdini/stores/saveStoreCountry.d.ts deleted file mode 100644 index 9e801949..00000000 --- a/$houdini/stores/saveStoreCountry.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { saveStoreCountry$input, saveStoreCountry$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_saveStoreCountry: MutationStore - -export default GQL_saveStoreCountry - \ No newline at end of file diff --git a/$houdini/stores/saveStoreCountry.js b/$houdini/stores/saveStoreCountry.js deleted file mode 100644 index 7060deee..00000000 --- a/$houdini/stores/saveStoreCountry.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/saveStoreCountry' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_saveStoreCountry = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_saveStoreCountry diff --git a/$houdini/stores/settings.d.ts b/$houdini/stores/settings.d.ts deleted file mode 100644 index 97325d86..00000000 --- a/$houdini/stores/settings.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { settings$input, settings$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_settings: QueryStore - -export declare const settingsStore: () => typeof GQL_settings - -export default GQL_settings diff --git a/$houdini/stores/settings.js b/$houdini/stores/settings.js deleted file mode 100644 index e5a43be5..00000000 --- a/$houdini/stores/settings.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/settings' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_settings", - paginated: false, - paginationMethods: [], -}) - -export const GQL_settings = factory() - -export const settingsStore = factory - -export default GQL_settings diff --git a/$houdini/stores/signOut.d.ts b/$houdini/stores/signOut.d.ts deleted file mode 100644 index ae58bfb5..00000000 --- a/$houdini/stores/signOut.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { signOut$input, signOut$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_signOut: MutationStore - -export default GQL_signOut - \ No newline at end of file diff --git a/$houdini/stores/signOut.js b/$houdini/stores/signOut.js deleted file mode 100644 index 50f656a0..00000000 --- a/$houdini/stores/signOut.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/signOut' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_signOut = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_signOut diff --git a/$houdini/stores/states.d.ts b/$houdini/stores/states.d.ts deleted file mode 100644 index a18a6518..00000000 --- a/$houdini/stores/states.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { states$input, states$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_states: QueryStore - -export declare const statesStore: () => typeof GQL_states - -export default GQL_states diff --git a/$houdini/stores/states.js b/$houdini/stores/states.js deleted file mode 100644 index 216a94a9..00000000 --- a/$houdini/stores/states.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/states' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_states", - paginated: false, - paginationMethods: [], -}) - -export const GQL_states = factory() - -export const statesStore = factory - -export default GQL_states diff --git a/$houdini/stores/store.d.ts b/$houdini/stores/store.d.ts deleted file mode 100644 index 9340adc4..00000000 --- a/$houdini/stores/store.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { store$input, store$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_store: QueryStore - -export declare const storeStore: () => typeof GQL_store - -export default GQL_store diff --git a/$houdini/stores/store.js b/$houdini/stores/store.js deleted file mode 100644 index bb993f33..00000000 --- a/$houdini/stores/store.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/store' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_store", - paginated: false, - paginationMethods: [], -}) - -export const GQL_store = factory() - -export const storeStore = factory - -export default GQL_store diff --git a/$houdini/stores/storeCountries.d.ts b/$houdini/stores/storeCountries.d.ts deleted file mode 100644 index fe94078f..00000000 --- a/$houdini/stores/storeCountries.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { storeCountries$input, storeCountries$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_storeCountries: QueryStore - -export declare const storeCountriesStore: () => typeof GQL_storeCountries - -export default GQL_storeCountries diff --git a/$houdini/stores/storeCountries.js b/$houdini/stores/storeCountries.js deleted file mode 100644 index 02bc7cba..00000000 --- a/$houdini/stores/storeCountries.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/storeCountries' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_storeCountries", - paginated: false, - paginationMethods: [], -}) - -export const GQL_storeCountries = factory() - -export const storeCountriesStore = factory - -export default GQL_storeCountries diff --git a/$houdini/stores/storeCountry.d.ts b/$houdini/stores/storeCountry.d.ts deleted file mode 100644 index 58001289..00000000 --- a/$houdini/stores/storeCountry.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { storeCountry$input, storeCountry$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_storeCountry: QueryStore - -export declare const storeCountryStore: () => typeof GQL_storeCountry - -export default GQL_storeCountry diff --git a/$houdini/stores/storeCountry.js b/$houdini/stores/storeCountry.js deleted file mode 100644 index 68e4414f..00000000 --- a/$houdini/stores/storeCountry.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/storeCountry' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_storeCountry", - paginated: false, - paginationMethods: [], -}) - -export const GQL_storeCountry = factory() - -export const storeCountryStore = factory - -export default GQL_storeCountry diff --git a/$houdini/stores/storeOne.d.ts b/$houdini/stores/storeOne.d.ts deleted file mode 100644 index 31b0f2e4..00000000 --- a/$houdini/stores/storeOne.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { storeOne$input, storeOne$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_storeOne: QueryStore - -export declare const storeOneStore: () => typeof GQL_storeOne - -export default GQL_storeOne diff --git a/$houdini/stores/storeOne.js b/$houdini/stores/storeOne.js deleted file mode 100644 index 2bd872fa..00000000 --- a/$houdini/stores/storeOne.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/storeOne' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_storeOne", - paginated: false, - paginationMethods: [], -}) - -export const GQL_storeOne = factory() - -export const storeOneStore = factory - -export default GQL_storeOne diff --git a/$houdini/stores/stripe.d.ts b/$houdini/stores/stripe.d.ts deleted file mode 100644 index e159cbcf..00000000 --- a/$houdini/stores/stripe.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { stripe$input, stripe$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_stripe: MutationStore - -export default GQL_stripe - \ No newline at end of file diff --git a/$houdini/stores/stripe.js b/$houdini/stores/stripe.js deleted file mode 100644 index ae1d9612..00000000 --- a/$houdini/stores/stripe.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/stripe' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_stripe = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_stripe diff --git a/$houdini/stores/toggleWishlist.d.ts b/$houdini/stores/toggleWishlist.d.ts deleted file mode 100644 index 22fe1eaf..00000000 --- a/$houdini/stores/toggleWishlist.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { toggleWishlist$input, toggleWishlist$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_toggleWishlist: MutationStore - -export default GQL_toggleWishlist - \ No newline at end of file diff --git a/$houdini/stores/toggleWishlist.js b/$houdini/stores/toggleWishlist.js deleted file mode 100644 index 63a5964f..00000000 --- a/$houdini/stores/toggleWishlist.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/toggleWishlist' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_toggleWishlist = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_toggleWishlist diff --git a/$houdini/stores/topVendors.d.ts b/$houdini/stores/topVendors.d.ts deleted file mode 100644 index 05ca06e8..00000000 --- a/$houdini/stores/topVendors.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { topVendors$input, topVendors$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_topVendors: QueryStore - -export declare const topVendorsStore: () => typeof GQL_topVendors - -export default GQL_topVendors diff --git a/$houdini/stores/topVendors.js b/$houdini/stores/topVendors.js deleted file mode 100644 index 26876c19..00000000 --- a/$houdini/stores/topVendors.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/topVendors' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_topVendors", - paginated: false, - paginationMethods: [], -}) - -export const GQL_topVendors = factory() - -export const topVendorsStore = factory - -export default GQL_topVendors diff --git a/$houdini/stores/updateProfile.d.ts b/$houdini/stores/updateProfile.d.ts deleted file mode 100644 index 6716fb63..00000000 --- a/$houdini/stores/updateProfile.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { updateProfile$input, updateProfile$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_updateProfile: MutationStore - -export default GQL_updateProfile - \ No newline at end of file diff --git a/$houdini/stores/updateProfile.js b/$houdini/stores/updateProfile.js deleted file mode 100644 index 96872042..00000000 --- a/$houdini/stores/updateProfile.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/updateProfile' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_updateProfile = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_updateProfile diff --git a/$houdini/stores/vendor.d.ts b/$houdini/stores/vendor.d.ts deleted file mode 100644 index b740e0b3..00000000 --- a/$houdini/stores/vendor.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { vendor$input, vendor$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_vendor: QueryStore - -export declare const vendorStore: () => typeof GQL_vendor - -export default GQL_vendor diff --git a/$houdini/stores/vendor.js b/$houdini/stores/vendor.js deleted file mode 100644 index 65e91d27..00000000 --- a/$houdini/stores/vendor.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/vendor' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_vendor", - paginated: false, - paginationMethods: [], -}) - -export const GQL_vendor = factory() - -export const vendorStore = factory - -export default GQL_vendor diff --git a/$houdini/stores/vendorProfile.d.ts b/$houdini/stores/vendorProfile.d.ts deleted file mode 100644 index 4d07d964..00000000 --- a/$houdini/stores/vendorProfile.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { vendorProfile$input, vendorProfile$result, CachePolicy } from '$houdini' -import { type QueryStore } from '../runtime/lib/types' - - -export declare const GQL_vendorProfile: QueryStore - -export declare const vendorProfileStore: () => typeof GQL_vendorProfile - -export default GQL_vendorProfile diff --git a/$houdini/stores/vendorProfile.js b/$houdini/stores/vendorProfile.js deleted file mode 100644 index 5c00f8b7..00000000 --- a/$houdini/stores/vendorProfile.js +++ /dev/null @@ -1,19 +0,0 @@ -import { houdiniConfig } from '$houdini'; -import { queryStore } from '../runtime/stores' -import artifact from '../artifacts/vendorProfile' -import { defaultConfigValues } from '../runtime/lib' - -// create the query store -const factory = () => queryStore({ - artifact, - config: defaultConfigValues(houdiniConfig), - storeName: "GQL_vendorProfile", - paginated: false, - paginationMethods: [], -}) - -export const GQL_vendorProfile = factory() - -export const vendorProfileStore = factory - -export default GQL_vendorProfile diff --git a/$houdini/stores/verifyEmail.d.ts b/$houdini/stores/verifyEmail.d.ts deleted file mode 100644 index fd351db9..00000000 --- a/$houdini/stores/verifyEmail.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { verifyEmail$input, verifyEmail$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_verifyEmail: MutationStore - -export default GQL_verifyEmail - \ No newline at end of file diff --git a/$houdini/stores/verifyEmail.js b/$houdini/stores/verifyEmail.js deleted file mode 100644 index 34c504c3..00000000 --- a/$houdini/stores/verifyEmail.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/verifyEmail' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_verifyEmail = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_verifyEmail diff --git a/$houdini/stores/verifyOtp.d.ts b/$houdini/stores/verifyOtp.d.ts deleted file mode 100644 index dd4de5bd..00000000 --- a/$houdini/stores/verifyOtp.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { verifyOtp$input, verifyOtp$result } from '$houdini' -import type { MutationStore } from '../runtime/lib/types' - -export declare const GQL_verifyOtp: MutationStore - -export default GQL_verifyOtp - \ No newline at end of file diff --git a/$houdini/stores/verifyOtp.js b/$houdini/stores/verifyOtp.js deleted file mode 100644 index 79ee9733..00000000 --- a/$houdini/stores/verifyOtp.js +++ /dev/null @@ -1,11 +0,0 @@ -import { houdiniConfig } from '$houdini' -import artifact from '../artifacts/verifyOtp' -import { mutationStore } from '../runtime/stores' -import { defaultConfigValues } from '../runtime/lib' - -export const GQL_verifyOtp = mutationStore({ - config: defaultConfigValues(houdiniConfig), - artifact, -}) - -export default GQL_verifyOtp diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/.env b/.env deleted file mode 100644 index 9d430caf..00000000 --- a/.env +++ /dev/null @@ -1,3 +0,0 @@ -VITE_WWW_URL=http://localhost:3000 -VITE_DOMAIN=fashion.misiki.io -HTTP_ENDPOINT=https://api.misiki.io \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..b5ddf230 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +VITE_WWW_URL=http://localhost:3000 +VITE_DOMAIN=covers.misiki.io +HTTP_ENDPOINT=https://api.misiki.io +VITE_PINCODES_API=https://indian-pincodes.vercel.app \ No newline at end of file diff --git a/.env.prod b/.env.prod new file mode 100644 index 00000000..25a1bfa7 --- /dev/null +++ b/.env.prod @@ -0,0 +1,4 @@ +VITE_WWW_URL=https://kitcommerce.tech +VITE_DOMAIN=covers.misiki.io +HTTP_ENDPOINT=https://api.misiki.io +VITE_PINCODES_API=https://indian-pincodes.vercel.app \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2e2b6f74..00977cea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.env node_modules /.svelte /.svelte-kit diff --git a/.graphqlrc.yaml b/.graphqlrc.yaml deleted file mode 100644 index d73d0127..00000000 --- a/.graphqlrc.yaml +++ /dev/null @@ -1,31 +0,0 @@ -# Typical File for extension: vscode-graphql & CodeGen! -projects: - default: - schema: - - ${HTTP_ENDPOINT}/graphql - - ./$houdini/graphql/schema.graphql - documents: - - '**/*.gql' - - ./$houdini/graphql/documents.gql - extensions: - endpoints: - default: - url: ${VITE_WWW_URL}/graphql - codegen: - generates: - ./src/lib/graphql/_kitql/graphqlTypes.ts: - plugins: - - typescript - - typescript-operations - - typed-document-node - - typescript-document-nodes - - ./src/lib/graphql/_kitql/graphqlStores.ts: - plugins: - - '@kitql/graphql-codegen' - config: - importBaseTypesFrom: $lib/graphql/_kitql/graphqlTypes - operationPrefix: 'GQL_' - - config: - useTypeImports: true diff --git a/.npmrc b/.npmrc index 201da81a..d0ef11f9 100644 --- a/.npmrc +++ b/.npmrc @@ -1,5 +1,5 @@ save-exact=true node-linker=hoisted # useful for pnpm -engine-strict=true -auto-install-peers=true +engine-strict=false +auto-install-peers=false strict-peer-dependencies=false \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f740101e..452b83f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,45 +1,28 @@ -##### Stage 1 - Development - Generate dist folder +##### Stage 1 - Build FROM node:18 AS builder LABEL author="Swadesh Behera" -# RUN mkdir -p /app/node_modules && chown -R node:node /app -# RUN mkdir -p /app WORKDIR /usr/app -COPY package*.json ./ -# COPY pnpm-lock.yaml ./ +COPY package.json ./ +COPY yarn.lock ./ +COPY .npmrc ./ ENV PUPPETEER_SKIP_DOWNLOAD="true" -# RUN npm install -g pnpm -RUN npm install +RUN yarn install --force RUN cp -R node_modules prod_node_modules COPY . . -RUN npm run build +RUN yarn run build -##### Stage 2 - Production +##### Stage 2 - Move to Production FROM builder as production WORKDIR /usr/app COPY --from=builder /usr/app/prod_node_modules ./node_modules -COPY --from=builder /usr/app/package*.json ./ +COPY --from=builder /usr/app/package.json ./ +COPY --from=builder /usr/app/yarn.lock ./ ENV PUPPETEER_SKIP_DOWNLOAD="true" ENV NODE_ENV=production -# RUN npm install --omit=dev -# COPY --from=builder /usr/app/build ./build +COPY --from=builder /usr/app/build ./build COPY --from=builder /usr/app/static ./static COPY --from=builder /usr/app/.svelte-kit ./.svelte-kit COPY --from=builder /usr/app/svelte.config.js ./svelte.config.js COPY --from=builder /usr/app/tsconfig.json ./tsconfig.json -# COPY --from=builder /usr/app/vite.config.js ./vite.config.js -# COPY .env . -# USER node -# CMD ["node", "-r", "source-map-support/register", "index.js"] -CMD [ "npm", "start" ] - -# ##### Stage 3 - Nginx -# FROM nginx:alpine -# VOLUME /var/cache/nginx -# COPY --from=builder /usr/app/dist /usr/share/nginx/html -# COPY ./config/nginx/nginx.conf /etc/nginx/conf.d/default.conf -# COPY ./config/nginx/fullchain.pem /etc/letsencrypt/live/api.litekart.in/fullchain.pem -# COPY ./config/nginx/privkey.pem /etc/letsencrypt/live/api.litekart.in/privkey.pem - -# ##### Start nginx -# EXPOSE 80 -# CMD ["nginx","-g","daemon off;"] +COPY --from=builder /usr/app/vite.config.js ./vite.config.js +CMD [ "yarn", "start" ] diff --git a/README.md b/README.md index 67af8861..80848385 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,17 @@ -

Because of major change in SvelteKit v-next-4.0.5, the repo is broken. But nothing to worry, it will be fixed in 1-2 days

+

We are changing with Sveltekit change. Right now we are at `kit:1.0.0-next.442`

+ +## To start Development +``` +git clone git@github.com:itswadesh/svelte-commerce.git +npm i +npm dev +``` + +## To deploy + +``` +docker compose up +``` @@ -45,7 +58,9 @@ ## Update 26-April-2022 -- 26-April-2022 - Attached to GraphQL backend +- 04-September-2022 - Zero-configuration Coolify deployment +- 04-September-2022 - New fully working theme launched +- 04-September-2022 - Attached to ReST API Backend, Migrated to new Sveltekit version - 26-April-2022 - Latest SvelteKit version - 26-April-2022 - Improved image lazy loading - 26-April-2022 - New Banners section diff --git a/devops/copy.js b/devops/copy.js deleted file mode 100644 index ef4d877c..00000000 --- a/devops/copy.js +++ /dev/null @@ -1,8 +0,0 @@ -import shell from 'shelljs' - -shell.rm('-Rf', 'prod') -shell.mkdir('prod') -shell.cp('-R', '.svelte-kit', 'prod/.svelte-kit') -shell.cp('-R', 'package.json', 'prod/package.json') -shell.cp('-R', 'build', 'prod/build') -shell.cp('-R', 'static', 'prod/static') diff --git a/devops/live.js b/devops/live.js deleted file mode 100644 index 15362914..00000000 --- a/devops/live.js +++ /dev/null @@ -1,58 +0,0 @@ -import shell from 'shelljs' -import dotenv from 'dotenv' -import fs from 'fs' -import ssh2shell from 'ssh2shell' -dotenv.config() - -// Start Config -const PM2_NAME = 'svelte-commerce' -const REMOTE_DIR = '/var/www/svelte-commerce' -const REMOTE_host = '139.59.42.129' -const REMOTE_USER = 'root' -const PRIVATE_KEY = process.env.LIVE_KEY -const FILE_NAMES = 'build .svelte-kit package.json static' -// End Config - -// Zip and send file to remote server -shell - .cd('prod') - .exec('tar czf arialshop.tar.gz ' + FILE_NAMES) - .exec( - 'scp -i ' + - PRIVATE_KEY + - ' arialshop.tar.gz ' + - REMOTE_USER + - '@' + - REMOTE_host + - ':' + - REMOTE_DIR - ) -shell.rm('arialshop.tar.gz') - -// Extract and reload pm2 -var host = { - server: { - host: REMOTE_host, - port: 22, - userName: REMOTE_USER, - privateKey: fs.readFileSync(PRIVATE_KEY), - }, - commands: [ - 'cd ' + REMOTE_DIR, - 'sudo tar xf arialshop.tar.gz -C ' + REMOTE_DIR, - 'sudo rm arialshop.tar.gz', - 'sudo npm install --prod', - 'sudo pm2 reload ' + PM2_NAME, - ], -} - -var SSH2Shell = ssh2shell, - //Create a new instance passing in the host object - SSH = new SSH2Shell(host), - //Use a callback function to process the full session text - callback = function (sessionText) { - console.log(sessionText) - } - -//Start the process -SSH.connect(callback) diff --git a/generate-manifest.js b/generate-manifest.js new file mode 100644 index 00000000..3bde57a5 --- /dev/null +++ b/generate-manifest.js @@ -0,0 +1,89 @@ +import fs from 'fs' +import path from 'path' +import sharp from 'sharp' +import { + backgroundColor, + icon, + siteShortTitle, + siteTitle, + themeColor, + shortcuts, + description, + screenshots +} from './src/lib/config/manifest.js' +const __dirname = path.resolve() +const iconsDirectory = path.join(__dirname, 'static/icons') +const manifestFile = path.join(__dirname, 'static/manifest.json') + +const DEFAULT_SIZES = [72, 96, 120, 128, 144, 152, 180, 192, 256, 384, 512] + +const iconImage = sharp(icon) + +const resizeIcon = async ({ size, path }) => { + await iconImage + .resize(size, size, { + kernel: sharp.kernel.nearest, + fit: 'contain', + position: 'center', + background: { r: 255, g: 255, b: 255, alpha: 0.5 } + }) + .toFile(path, (err) => { + if (err) { + console.error(err) + } + }) +} + +const main = async () => { + try { + const { height, width } = await iconImage.metadata() + const maxSize = Math.min(width, height) + const sizes = DEFAULT_SIZES //.filter((element) => element <= maxSize) + + const manifest = { + short_name: siteShortTitle, + name: siteTitle, + icons: sizes.map((size) => { + const path = `icons/icon-${size}x${size}.png` + resizeIcon({ size, path: `static/${path}` }) + if (size === 180) { + return { + src: path, + type: 'image/png', + sizes: `${size}x${size}`, + purpose: 'maskable' + } + } else { + return { + src: path, + type: 'image/png', + sizes: `${size}x${size}`, + purpose: 'any' + } + } + }), + start_url: '/', + background_color: backgroundColor, + display: 'standalone', + scope: '/', + theme_color: themeColor, + shortcuts, + description, + screenshots + } + + fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2)) + } catch (error) { + console.error(error) + } +} + +// console.log('Generating manifest.json') + +fs.mkdir(iconsDirectory, { recursive: true }, (err) => { + if (err) { + return console.error(err) + } +}) + +main() diff --git a/houdini.config.js b/houdini.config.js deleted file mode 100644 index 17bf8f15..00000000 --- a/houdini.config.js +++ /dev/null @@ -1,12 +0,0 @@ -/** @type {import('houdini').ConfigFile} \*/ -const config = { - schemaPath: 'src/lib/graphql/schema.json', - sourceGlob: 'src/**/*.{svelte,gql}', - scalars: { - // Houdini will help you with this part when you will `generate` - // No worries 😉 - }, - disableMasking: true -} - -export default config diff --git a/package.json b/package.json index 9b147791..64e8844b 100644 --- a/package.json +++ b/package.json @@ -1,39 +1,30 @@ { "name": "svelte-commerce", - "version": "2022.08.21", + "version": "2022.09.04", + "private": true, "scripts": { - "dev": "vite dev --port 3000", - "gen": "npm run gen:houdini", - "gen:houdini": "houdini generate", + "dev": "vite dev --host --port 3000", "build": "vite build", "start-node": "node build/index.js", "start": "vite preview --host --port 3000", - "prepare": "npm run gen", - "quality": "npm run quality:eslint && npm run quality:prettier && npm run quality:ts", - "quality:fix": "prettier --ignore-path .gitignore --write --plugin-search-dir=. . && npm run quality:eslint --fix", - "quality:eslint": "eslint --ignore-path .gitignore .", - "quality:prettier": "prettier --ignore-path .gitignore --check --plugin-search-dir=. .", - "quality:ts": "svelte-check --tsconfig ./tsconfig.json", - "quality:ts:w": "npm run quality:ts --watch" + "update": "npm exec -- npx ncu -u -p npm i", + "preview": "vite preview", + "gen:manifest": "node ./generate-manifest.js" }, "devDependencies": { "@sveltejs/amp": "1.0.0-next.1", - "@tailwindcss/forms": "^0.5.0", - "@tailwindcss/line-clamp": "^0.4.0", - "@tailwindcss/typography": "^0.5.4", + "@tailwindcss/forms": "0.5.3", + "@tailwindcss/typography": "^0.5.7", "@types/cookie": "0.5.1", "@types/uuid": "8.3.4", "@typescript-eslint/eslint-plugin": "^5.35.1", "@typescript-eslint/parser": "^5.35.1", - "amazon-s3-uri": "0.1.1", "autoprefixer": "^10.4.8", - "aws-sdk": "^2.1203.0", "cookie": "^0.5.0", "cssnano": "^5.1.13", "daisyui": "^2.24.0", "dayjs": "^1.11.5", "hash-it": "^5.0.2", - "houdini": "0.15.9", "npm-run-all": "4.1.5", "postcss": "^8.4.16", "postcss-cli": "^10.0.0", @@ -41,13 +32,12 @@ "prettier": "^2.7.1", "prettier-plugin-svelte": "^2.7.0", "prettier-plugin-tailwindcss": "^0.1.13", + "sharp": "0.30.7", "simple-svelte-autocomplete": "2.4.0", - "svelte": "^3.49.0", + "svelte": "^3.50.0", "svelte-carousel": "^1.0.19", "svelte-confetti": "1.2.0", - "svelte-hero-icons": "^4.1.1", "svelte-select": "4.4.7", - "svelte-swipe": "^1.8.2", "svelte-timeago": "0.1.2", "svelte-toasts": "^1.1.2", "tailwind-scrollbar": "^1.3.1", @@ -60,22 +50,16 @@ }, "dependencies": { "@beyonk/async-script-loader": "^2.2.2", - "@kitql/all-in": "0.7.7", - "@poppanator/sveltekit-svg": "0.3.4", - "@sveltejs/adapter-auto": "1.0.0-next.66", - "@sveltejs/adapter-node": "1.0.0-next.87", + "@poppanator/sveltekit-svg": "1.0.0", + "@sveltejs/adapter-auto": "1.0.0-next.71", + "@sveltejs/adapter-node": "1.0.0-next.88", "@sveltejs/kit": "1.0.0-next.442", - "cookie": "^0.5.0", "cookie-universal": "^2.2.2", "cross-env": "7.0.3", - "dotenv": "^16.0.1", - "graphql": "16.6.0", - "graphql-tag": "^2.12.6", - "hash-it": "^5.0.2", + "dotenv": "16.0.2", "npm-run-all": "4.1.5", "svelte-preprocess": "^4.10.7", - "universal-cookie": "^4.0.4", - "uuid": "8.3.2", + "ua-parser-js": "1.0.2", "vanilla-lazyload": "17.8.3", "vite": "^3.0.9" }, @@ -83,4 +67,4 @@ "engines": { "node": ">=16.0.0" } -} +} \ No newline at end of file diff --git a/robots.txt b/robots.txt deleted file mode 100644 index e9e57dc4..00000000 --- a/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/src/actions/ga.js b/src/actions/ga.js deleted file mode 100644 index 329eb202..00000000 --- a/src/actions/ga.js +++ /dev/null @@ -1,13 +0,0 @@ -export const googleAnalytics = (gaID) => { - window.dataLayer = window.dataLayer || [] - function gtag() { - dataLayer.push(arguments) - } - gtag('js', new Date()) - - gtag('config', gaID) - - const script = document.createElement('script') - script.src = `https://www.googletagmanager.com/gtag/js?id=${gaID}` - document.body.appendChild(script) -} diff --git a/src/actions/lazyload.js b/src/actions/lazyload.js deleted file mode 100644 index d2e4d93b..00000000 --- a/src/actions/lazyload.js +++ /dev/null @@ -1,42 +0,0 @@ -export function lazyload(node) { - let options = { - root: null, - rootMargin: '0px', - threshold: 0, - } - let fetchImage = (url) => { - return new Promise((resolve, reject) => { - let image = new Image() - image.src = url - // image.class = "loading"; - image.setAttribute('lazy', 'loading') - image.onload = resolve - image.onerror = reject - }) - } - let loadImage = (image) => { - let src = image.dataset.src - fetchImage(src).then(() => { - image.setAttribute('lazy', 'loaded') - // image.class = "loaded"; - image.src = src - }) - } - let handleIntersection = (entries, observer) => { - entries.forEach((entry) => { - if (entry.isIntersecting) { - loadImage(entry.target) - } - }) - } - - let io = new IntersectionObserver(handleIntersection, options) - - io.observe(node) - - return { - destroy() { - io.unobserve(node) - }, - } -} diff --git a/src/actions/toast.js b/src/actions/toast.js deleted file mode 100644 index ff0d3b74..00000000 --- a/src/actions/toast.js +++ /dev/null @@ -1,26 +0,0 @@ -import { writable, readable, derived } from 'svelte/store' -function toaster() { - const { subscribe, set } = writable({ - show: false, - msg: null, - duration: 3000, - color: 'info', - }) - return { - subscribe, - show: (data) => { - data.color = data.color || 'info' - let duration = data.duration || 3000 - set(data) - setTimeout(() => { - set({}) - }, duration) - return data - }, - hide: () => { - set({}) - return {} - }, - } -} -export const toast = toaster() diff --git a/src/app.css b/src/app.css index 61e5dded..58d591bc 100644 --- a/src/app.css +++ b/src/app.css @@ -3,82 +3,30 @@ @tailwind components; @tailwind utilities; -@layer base { - html { - --scrollbarBG: #cfd8dc; - --thumbBG: #90a4ae; - } - body::-webkit-scrollbar { - width: 11px; - } - body { - scrollbar-width: thin; - scrollbar-color: var(--thumbBG) var(--scrollbarBG); - } - body::-webkit-scrollbar-track { - background: var(--scrollbarBG); - } - body::-webkit-scrollbar-thumb { - background-color: var(--thumbBG); - border-radius: 6px; - border: 3px solid var(--scrollbarBG); - } - .scrollbar::-webkit-scrollbar { - width: 11px; - } - .scrollbar { - scrollbar-width: thin; - scrollbar-color: var(--thumbBG) var(--scrollbarBG); - } - .scrollbar::-webkit-scrollbar-track { - background: var(--scrollbarBG); - } - .scrollbar::-webkit-scrollbar-thumb { - background-color: var(--thumbBG); - border-radius: 6px; - border: 3px solid var(--scrollbarBG); - } - - /* Demonstrate a "mostly customized" scrollbar - * (won't be visible otherwise if width/height is specified) */ - .mostly-customized-scrollbar::-webkit-scrollbar { - width: 5px; - height: 8px; - background-color: #cfd8dc; /* or add it to the track */ - } - - /* Add a thumb */ - .mostly-customized-scrollbar::-webkit-scrollbar-thumb { - background: #90a4ae; - } -} @layer components { - .link { - @apply text-indigo-500 hover:text-indigo-700; - } - .link-primary { - @apply text-primary-500 hover:text-primary-700; - } - .zoom-in { - overflow: hidden; - } - .zoom-in img { - width: 100%; - transition: 0.4s all ease-in-out; - } - .zoom-in:hover img { - transform: scale(1.05); - } - .zoom-out { - overflow: hidden; - } - .zoom-out img { - width: 100%; - transform: scale(1.05); - transition: 0.4s all ease-in-out; - } - .zoom-out:hover img { - transform: scale(1); - } -} + .wiggle { + animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + transform: translate3d(0, 0, 0); + backface-visibility: hidden; + perspective: 1000px; + } + + @keyframes shake { + 10%, 90% { + transform: translate3d(-1px, 0, 0); + } + + 20%, 80% { + transform: translate3d(2px, 0, 0); + } + + 30%, 50%, 70% { + transform: translate3d(-4px, 0, 0); + } + + 40%, 60% { + transform: translate3d(4px, 0, 0); + } + } +} \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 00000000..8bf0598f --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,8 @@ +/// + +// See https://kit.svelte.dev/docs/types#the-app-namespace +// for information about these interfaces +declare namespace App { + // interface Platform {} + // interface Stuff {} +} diff --git a/src/app.html b/src/app.html index 3da3a005..6205d592 100644 --- a/src/app.html +++ b/src/app.html @@ -1,28 +1,20 @@ - + - - + + + + + + + - + %sveltekit.head% - - -
%sveltekit.body%
- - - + +
%sveltekit.body%
diff --git a/src/fonts.css b/src/fonts.css new file mode 100644 index 00000000..cb6241f5 --- /dev/null +++ b/src/fonts.css @@ -0,0 +1,139 @@ +/* karla-200 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 200; + src: url('../static/fonts/karla-v23-latin-200.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-200.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-200.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-200.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-200.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-200.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-300 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 300; + src: url('../static/fonts/karla-v23-latin-300.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-300.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-300.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-300.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-300.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-300.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-regular - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 400; + src: url('../static/fonts/karla-v23-latin-regular.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-regular.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-regular.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-regular.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-regular.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-regular.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-500 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 500; + src: url('../static/fonts/karla-v23-latin-500.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-500.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-500.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-500.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-500.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-500.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-600 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 600; + src: url('../static/fonts/karla-v23-latin-600.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-600.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-600.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-600.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-600.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-600.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-700 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 700; + src: url('../static/fonts/karla-v23-latin-700.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-700.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-700.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-700.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-700.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-700.svg#Karla') format('svg'); + /* Legacy iOS */ +} + +/* karla-800 - latin */ +@font-face { + font-family: 'Karla'; + font-style: normal; + font-weight: 800; + src: url('../static/fonts/karla-v23-latin-800.eot'); + /* IE9 Compat Modes */ + src: local(''), + url('../static/fonts/karla-v23-latin-800.eot?#iefix') format('embedded-opentype'), + /* IE6-IE8 */ + url('../static/fonts/karla-v23-latin-800.woff2') format('woff2'), + /* Super Modern Browsers */ + url('../static/fonts/karla-v23-latin-800.woff') format('woff'), + /* Modern Browsers */ + url('../static/fonts/karla-v23-latin-800.ttf') format('truetype'), + /* Safari, Android, iOS */ + url('../static/fonts/karla-v23-latin-800.svg#Karla') format('svg'); + /* Legacy iOS */ +} \ No newline at end of file diff --git a/src/global.d.ts b/src/global.d.ts deleted file mode 100644 index 63908c66..00000000 --- a/src/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/src/hooks/index.ts b/src/hooks/index.ts index cdfa8644..592a1e1f 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -1,130 +1,291 @@ import cookie, { serialize } from 'cookie' import type { Handle } from '@sveltejs/kit' -import { DOMAIN } from '$lib/config' -import { GQL_INIT } from '$houdini' +import { getAPI } from '$lib/util/api' import { v4 as uuidv4 } from 'uuid' -import fetch from 'node-fetch' +// import UAParser from 'ua-parser-js' + +import { + stripePublishableKey, + id, + email, + address, + phone, + websiteName, + websiteLegalName +} from '$lib/config' +import { DOMAIN, HTTP_ENDPOINT } from '$lib/config' +// import type { RequestEvent } from '@sveltejs/kit/types/private' +// import Cookie from 'cookie-universal' +// const coookies = Cookie() +// https://gist.github.com/acoyfellow/d8e86979c66ebea25e1643594e38be73 +// https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP +// https://scotthelme.co.uk/content-security-policy-an-introduction/ +// scanner: https://securityheaders.com/ + +const rootDomain = import.meta.env.VITE_DOMAIN // or your server IP for dev + +// const directives = { +// 'base-uri': ["'self'"], +// 'child-src': ["'self'"], +// // 'connect-src': ["'self'", 'ws://localhost:*'], +// // 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'], +// // 'img-src': ["'self'", 'data:'], +// // 'font-src': ["'self'", 'data:'], +// 'form-action': ["'self'"], +// 'frame-ancestors': ["'self'"], +// 'frame-src': [ +// "'self'", +// 'https://*.youtube.com' +// // "https://*.facebook.com", +// // "https://*.facebook.net", +// // 'https://hcaptcha.com', +// // 'https://*.hcaptcha.com', +// ], +// 'manifest-src': ["'self'"], +// 'media-src': ["'self'", 'data:'], +// 'object-src': ["'none'"], +// // 'style-src': ["'self'", "'unsafe-inline'"], +// // 'style-src': ["'self'", "'unsafe-inline'", 'https://hcaptcha.com', 'https://*.hcaptcha.com'], +// // 'default-src': [ +// // "'self'", +// // rootDomain, +// // `ws://${rootDomain}`, +// // // 'https://*.google.com', +// // // 'https://*.googleapis.com', +// // // 'https://*.firebase.com', +// // // 'https://*.gstatic.com', +// // // 'https://*.cloudfunctions.net', +// // // 'https://*.algolia.net', +// // // 'https://*.facebook.com', +// // // 'https://*.facebook.net', +// // // 'https://*.stripe.com', +// // // 'https://*.sentry.io', +// // ], +// 'script-src': [ +// "'self'", +// "'unsafe-inline'" +// // 'https://*.stripe.com', +// // 'https://*.facebook.com', +// // 'https://*.facebook.net', +// // 'https://hcaptcha.com', +// // 'https://*.hcaptcha.com', +// // 'https://*.sentry.io', +// // 'https://polyfill.io', +// ], +// 'worker-src': ["'self'"], +// // remove report-to & report-uri if you do not want to use Sentry reporting +// 'report-to': ["'csp-endpoint'"], +// 'report-uri': [ +// `https://sentry.io/api/${import.meta.env.VITE_SENTRY_PROJECT_ID}/security/?sentry_key=${ +// import.meta.env.VITE_SENTRY_KEY +// }` +// ] +// } + +// const csp = Object.entries(directives) +// .map(([key, arr]) => key + ' ' + arr.join(' ')) +// .join('; ') export const handle: Handle = async ({ event, resolve }) => { - let store, cart, headers, serializedCookie, settings, megamenu, sid, token, domain, geo, me - // me.gql and cart.gql can not be called here because of unabailability of session cookie. Hence there are executed at __layout.reset.svelte or $lib/Nav.svelte - const request = event.request - const cookies = cookie.parse(request.headers.get('cookie') || '') || {} - event.locals['kitqlCartId'] = cookies.kitqlCartId || uuidv4() - domain = DOMAIN || request.headers.get('host') - if (cookies.store) store = cookies.store && JSON.parse(cookies.store) - try { - const INIT = (await GQL_INIT.fetch({ event, fetch, variables: { domain } })).data - store = store = INIT?.storeOne - settings = INIT?.settings - megamenu = INIT?.megamenu - if (cookies.me) { - me = cookies.me && JSON.parse(cookies.me) - sid = cookies.sid - token = cookies.token - } - } catch (e) { - console.log('hOOKS ERR...', e) - } - if (event.url.searchParams.has('_method')) { - event.method = event.url.searchParams.get('_method').toUpperCase() - } - event.locals = { - store, + let store, + cart, headers, serializedCookie, settings, megamenu, sid, token, + zip, domain, - loginUrl: settings?.otpLogin ? '/auth/otp-login' : '/auth/login', - kitqlCartId: event.locals['kitqlCartId'], geo, - me + me, + ip + // me.gql and cart.gql can not be called here because of unabailability of session cookie. Hence there are executed at __layout.reset.svelte or $lib/Nav.svelte + const request = event.request + // var parser = new UAParser() + // let mobile = parser.getResult().device['type'] == 'mobile' + // console.log('isMobile', mobile) + request.headers.delete('connection') + + // const cookies = cookie.parse(request.headers.get('cookie') || '') || {} + // event.locals['kitqlCartId'] = cookies.kitqlCartId || uuidv4() + // const host = event.request.headers.get('host') + // domain = DOMAIN + // if (cookies.store) store = cookies.store && JSON.parse(cookies.store) + // zip = cookies.zip + try { + // const INIT = await getAPI('init?domain=' + domain, request.headers) + // console.log('Hook....................', domain, store?.id, INIT.storeOne.id) + // let uri = new URL(`${HTTP_ENDPOINT}/api/init?domain=${domain}`) + // let resBeforeJson = await fetch(uri.toString(), { method: 'get' }) + // let INIT = await resBeforeJson.json() + // console.log('Hooks Handle..........', domain, INITRes) + // store = { + // id, + // email, + // address, + // phone, + // websiteName, + // websiteLegalName, + // stripePublishableKey + // } //INIT?.storeOne + // settings = {} //INIT?.settings + // megamenu = {} //INIT?.megamenu + // fetch, + // variables: { store: store?.id } + // }) + // if (cookies.me) { + // me = cookies.me && JSON.parse(cookies.me) + // sid = cookies.sid + // token = cookies.token + // } + // if (cookies.cart) { + // cart = cookies.cart && JSON.parse(cookies.cart) + // } + // geo = cookies.geo && JSON.parse(cookies.geo) + } catch (e) { + console.error('Hooks err...............', e) } + // me = cookies.me && JSON.parse(cookies.me) + // if (event.url.searchParams.has('_method')) { + // event.method = event.url.searchParams.get('_method').toUpperCase() + // } + // event.locals = { + // store, + // headers, + // serializedCookie, + // settings, + // megamenu, + // geo, + // zip, + // sid, + // token, + // domain, + // loginUrl: settings?.otpLogin ? '/auth/otp-login' : '/auth/login', + // // kitqlCartId: event.locals['kitqlCartId'], + // me, + // cart + // } const response = await resolve(event) - if (!cookies.kitqlCartId) { - // if this is the first time the user has visited this app, - // set a cookie so that we recognise them when they return - response.headers.set( - 'Set-Cookie', - cookie.serialize('kitqlCartId', event.locals['kitqlCartId'], { - path: '/', - httpOnly: true - }) - ) - } - if (sid && !cookies.sid) { - response.headers.set( - 'Set-Cookie', - cookie.serialize('sid', sid.toString(), { path: '/', httpOnly: true }) - ) - } + + // if (!cookies.kitqlCartId) { + // // if this is the first time the user has visited this app, + // // set a cookie so that we recognise them when they return + // response.headers.set( + // 'Set-Cookie', + // cookie.serialize('kitqlCartId', event.locals['kitqlCartId'], { + // path: '/', + // httpOnly: true, + // }) + // ) + // } + // if (sid && !cookies.sid) { + // response.headers.set( + // 'Set-Cookie', + // cookie.serialize('sid', sid.toString(), { path: '/', httpOnly: true }) + // ) + // } + // if (geo && !cookies.geo) { + // response.headers.set( + // 'Set-Cookie', + // cookie.serialize('geo', JSON.stringify(geo), { path: '/', httpOnly: true }) + // ) + // } + // , { // Creates issue with logout + // ssr: !event.url.pathname.startsWith('/my'), + // }) if (store) { - const COOKIE_NAME = 'store' - const secure = process.env.NODE_ENV === 'production' - const maxAge = 7200 // (3600 seconds / hour) * 2 hours - const sameSite = 'Strict' - const { id, email, address, phone, websiteName, websiteLegalName, stripePublishableKey } = store - const stringifiedStoreData = - JSON.stringify({ - id, - domain, - address, - phone, - email, - websiteName, - websiteLegalName, - stripePublishableKey, - kitqlCartId: event.locals['kitqlCartId'] - }) || '' - const setStoreCookieValue = `${COOKIE_NAME}=${stringifiedStoreData}; Max-Age=${maxAge}; Path=/; ${ - secure ? 'Secure;' : '' - } HttpOnly; SameSite=${sameSite}` // This line is important else footer will not populate - response.headers.set( - 'Set-Cookie', - cookie.serialize('store', stringifiedStoreData, { path: '/' }) - ) - } - if (geo && !cookies.geo) { - const COOKIE_NAME = 'geo' - const secure = process.env.NODE_ENV === 'production' - const maxAge = 3600 * 2 - const sameSite = 'Strict' - const stringifiedGeoData = JSON.stringify(geo) - const setGeoCookieValue = `${COOKIE_NAME}=${stringifiedGeoData}; Max-Age=${maxAge}; Path=/; ${ - secure ? 'Secure;' : '' - } HttpOnly; SameSite=${sameSite}` // This line is important else footer will not populate - response.headers.set('Set-Cookie', cookie.serialize('geo', stringifiedGeoData, { path: '/' })) + // const COOKIE_NAME = 'store' + // const secure = process.env.NODE_ENV === 'production' + // const maxAge = 7200 // (3600 seconds / hour) * 2 hours + // const sameSite = 'Strict' + // const { id, email, address, phone, websiteName, websiteLegalName, stripePublishableKey } = store + // const stringifiedStoreData = + // JSON.stringify({ + // id, + // domain, + // address, + // phone, + // email, + // websiteName, + // websiteLegalName, + // stripePublishableKey + // // kitqlCartId: event.locals['kitqlCartId'], + // }) || '' + // const setStoreCookieValue = `${COOKIE_NAME}=${stringifiedStoreData}; Max-Age=${maxAge}; Path=/; ${ + // secure ? 'Secure;' : '' + // } HttpOnly; SameSite=${sameSite}` // This line is important else footer will not populate + // response.headers.set( + // 'Set-Cookie', + // cookie.serialize('store', stringifiedStoreData, { path: '/' }) + // ) } + // response.headers.set('X-Frame-Options', 'SAMEORIGIN') + // response.headers.set('Referrer-Policy', 'no-referrer') + // response.headers.set( + // 'Permissions-Policy', + // 'accelerometer=(), autoplay=(), camera=(), document-domain=(), encrypted-media=(), fullscreen=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), sync-xhr=(), usb=(), xr-spatial-tracking=(), geolocation=()' + // ) + // // response.headers.set('X-Content-Type-Options', 'nosniff') + // /* Switch from Content-Security-Policy-Report-Only to Content-Security-Policy once you are satisifed policy is what you want + // * on switch comment out the Report-Only line + // */ + // response.headers.set('Content-Security-Policy-Report-Only', csp) + // // response.headers.set('Content-Security-Policy', csp); + // response.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains; preload') + // response.headers.set( + // 'Expect-CT', + // `max-age=86400, report-uri="https://sentry.io/api/${ + // import.meta.env.VITE_SENTRY_PROJECT_ID + // }/security/?sentry_key=${import.meta.env.VITE_SENTRY_KEY}"` + // ) + // response.headers.set( + // 'Report-To', + // `{group: "csp-endpoint", "max_age": 10886400, "endpoints": [{"url": "https://sentry.io/api/${ + // import.meta.env.VITE_SENTRY_PROJECT_ID + // }/security/?sentry_key=${import.meta.env.VITE_SENTRY_KEY}"}]}` + // ) return response } export const getSession = ({ locals }) => { - const { - token, - geo, - loginUrl, - domain, - sid, - kitqlCartId, - categories, - settings, - store, - megamenu, - me - } = locals - return { - me, - kitqlCartId, - loginUrl, - store, - settings, - domain, - geo, - sid, - token, - DEBUG_MODE: import.meta.env.VITE_DEBUG_MODE - } + // const { + // token, + // loginUrl, + // domain, + // sid, + // zip, + // // kitqlCartId, + // categories, + // settings, + // store, + // megamenu, + // me, + // cart + // } = locals + // return { + // me, + // cart, + // zip, + // // kitqlCartId, + // loginUrl, + // store, + // settings, + // domain, + // sid, + // token, + // DEBUG_MODE: import.meta.env.VITE_DEBUG_MODE + // } } + +// export const serverFetch = async (request) => { +// if (request.url.startsWith('https://api.yourapp.com/')) { +// // clone the original request, but change the URL +// request = new Request( +// request.url.replace('https://api.yourapp.com/', 'http://localhost:9999/'), +// request +// ) +// } + +// return fetch(request) +// } diff --git a/src/lib/AutocompleteItem.svelte b/src/lib/AutocompleteItem.svelte new file mode 100644 index 00000000..973b0f6b --- /dev/null +++ b/src/lib/AutocompleteItem.svelte @@ -0,0 +1,66 @@ + + + + +
+
{item.key}
+
diff --git a/src/lib/CartBar.svelte b/src/lib/CartBar.svelte deleted file mode 100644 index d5da9e98..00000000 --- a/src/lib/CartBar.svelte +++ /dev/null @@ -1,170 +0,0 @@ - - - - -
diff --git a/src/lib/CartButtons.svelte b/src/lib/CartButtons.svelte deleted file mode 100644 index 14186cc5..00000000 --- a/src/lib/CartButtons.svelte +++ /dev/null @@ -1,144 +0,0 @@ - - -{#if cart?.items && !checkCart(product.id)} - - - - - - - - Add to Cart - -{:else} -
- - - - - - -
- {#if loading} -
- -
- {:else} - - {cart?.items?.find((e) => e.pid === product.id).qty} - - {/if} -
- - - - -
-{/if} diff --git a/src/lib/Client.js b/src/lib/Client.js deleted file mode 100644 index ee894178..00000000 --- a/src/lib/Client.js +++ /dev/null @@ -1,28 +0,0 @@ -import { ApolloClient, HttpLink } from '@apollo/client/core/core.cjs.js' -import { InMemoryCache } from '@apollo/client/cache/cache.cjs.js' - -class Client { - constructor() { - if (Client._instance) { - return Client._instance - } - Client._instance = this - - this.client = this.setupClient() - } - - setupClient() { - const link = new HttpLink({ - uri: 'http://localhost:7000/graphql', - fetch, - }) - - const client = new ApolloClient({ - link, - cache: new InMemoryCache(), - }) - return client - } -} - -export const client = new Client().client diff --git a/src/lib/Error.svelte b/src/lib/Error.svelte deleted file mode 100644 index 6d271936..00000000 --- a/src/lib/Error.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - -{#if err} -
- {#if err.message} - {JSON.stringify(err.message, null, 2)} - {:else} - {JSON.stringify(err, null, 2)} - {/if} -
-{/if} diff --git a/src/lib/FixedCheckoutBar.svelte b/src/lib/FixedCheckoutBar.svelte deleted file mode 100644 index fb75ed0c..00000000 --- a/src/lib/FixedCheckoutBar.svelte +++ /dev/null @@ -1,145 +0,0 @@ - - - - -
- {#if cart.qty != 0} - - {/if} -
diff --git a/src/lib/Footer.svelte b/src/lib/Footer.svelte index 4e927d9a..82342b2a 100644 --- a/src/lib/Footer.svelte +++ b/src/lib/Footer.svelte @@ -1,100 +1,443 @@ - -
-
-

{store?.domain}

+
+

Truly Indian Brand

-

{store?.websiteLegalName}

+

Over 2 Million Happy Customers

+
-
- -
-
- -
-
-
- - -
-
- -
-
-
- - -
-
- -
-
-
- - -
-
- -
+
diff --git a/src/lib/Hero.svelte b/src/lib/Hero.svelte deleted file mode 100644 index 2a68dbb4..00000000 --- a/src/lib/Hero.svelte +++ /dev/null @@ -1,76 +0,0 @@ - - -
- {#if heroBanners?.length} - - {#each heroBanners as b, i} - - - - - - - {/each} - - - - {/if} -
diff --git a/src/lib/HeroBanners.svelte b/src/lib/HeroBanners.svelte deleted file mode 100644 index 1ff3d36f..00000000 --- a/src/lib/HeroBanners.svelte +++ /dev/null @@ -1,69 +0,0 @@ - - - - -{#if localHeroBanners} - -{/if} diff --git a/src/lib/Image/Image.svelte b/src/lib/Image/Image.svelte deleted file mode 100644 index 8fb60d5d..00000000 --- a/src/lib/Image/Image.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - - -{alt} diff --git a/src/lib/Image/ImageLoader.svelte b/src/lib/Image/ImageLoader.svelte deleted file mode 100644 index eabcc3be..00000000 --- a/src/lib/Image/ImageLoader.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - - {#if intersecting || nativeLoading} - {alt} - {/if} - diff --git a/src/lib/Image/IntersectionObserver.svelte b/src/lib/Image/IntersectionObserver.svelte deleted file mode 100644 index 8a4effba..00000000 --- a/src/lib/Image/IntersectionObserver.svelte +++ /dev/null @@ -1,54 +0,0 @@ - - - - -
- -
diff --git a/src/lib/Info.svelte b/src/lib/Info.svelte deleted file mode 100644 index 1a38e8ab..00000000 --- a/src/lib/Info.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -
-
-
-

Home made food, Home delivered
Delivery only to Sunabeda Township

-
- - - Join as Chef - -
-
diff --git a/src/lib/Loading.svelte b/src/lib/Loading.svelte deleted file mode 100644 index 4a987d75..00000000 --- a/src/lib/Loading.svelte +++ /dev/null @@ -1,87 +0,0 @@ - - - - -{#if loading || active} -
- - - - - - - -
-{/if} diff --git a/src/lib/MobFilter.svelte b/src/lib/MobFilter.svelte deleted file mode 100644 index e4939938..00000000 --- a/src/lib/MobFilter.svelte +++ /dev/null @@ -1,211 +0,0 @@ - - -
-
-
- - - - - -
-
-
Shop by
-
- - {#each data.categories as item, i} - - {/each} - - - {#if show} - {#each subMenu as item, i} -
-
-
-
{@html item.svg}
-
{item.name}
-
-
-
- {/each} - {/if} - - - -
-
- - - “ Fashion & Clothing is the one makes you look awesome and unique from others! ” - -
- - - -
-
- -
-
-
diff --git a/src/lib/MobFooter.svelte b/src/lib/MobFooter.svelte deleted file mode 100644 index 87354871..00000000 --- a/src/lib/MobFooter.svelte +++ /dev/null @@ -1,129 +0,0 @@ - - - - -
-
- {#each footerMenu as item, i} - -
- {@html item.svg} -
-

- {item.name} -

-
- {/each} -
-
diff --git a/src/lib/MobNav.svelte b/src/lib/MobNav.svelte deleted file mode 100644 index 93bc4f6a..00000000 --- a/src/lib/MobNav.svelte +++ /dev/null @@ -1,79 +0,0 @@ - - - - - diff --git a/src/lib/MobileFooter.svelte b/src/lib/MobileFooter.svelte new file mode 100644 index 00000000..92f26af6 --- /dev/null +++ b/src/lib/MobileFooter.svelte @@ -0,0 +1,181 @@ + + + + +
+ {#each footerItems as item} + + {/each} +
diff --git a/src/lib/Nav.svelte b/src/lib/Nav.svelte index db2ee305..8b0ee5c1 100644 --- a/src/lib/Nav.svelte +++ b/src/lib/Nav.svelte @@ -1,132 +1,609 @@ - - - - - + + +