diff --git a/compat/$live/manifest.gen.ts b/compat/$live/manifest.gen.ts index c1fd806cc..403db8556 100644 --- a/compat/$live/manifest.gen.ts +++ b/compat/$live/manifest.gen.ts @@ -3,27 +3,27 @@ // This file is automatically updated during development when running `dev.ts`. import * as $$$0 from "./loaders/state.ts"; -import * as $$$$0 from "./handlers/router.ts"; -import * as $$$$1 from "./handlers/devPage.ts"; +import * as $$$$0 from "./handlers/devPage.ts"; +import * as $$$$1 from "./handlers/router.ts"; import * as $$$$$$0 from "./sections/UseSlot.tsx"; -import * as $$$$$$1 from "./sections/Slot.tsx"; -import * as $$$$$$2 from "./sections/EmptySection.tsx"; -import * as $$$$$$3 from "./sections/PageInclude.tsx"; -import * as $$$$$$4 from "./sections/Conditional_Beta.tsx"; +import * as $$$$$$1 from "./sections/EmptySection.tsx"; +import * as $$$$$$2 from "./sections/Conditional_Beta.tsx"; +import * as $$$$$$3 from "./sections/Slot.tsx"; +import * as $$$$$$4 from "./sections/PageInclude.tsx"; const manifest = { "loaders": { "$live/loaders/state.ts": $$$0, }, "handlers": { - "$live/handlers/devPage.ts": $$$$1, - "$live/handlers/router.ts": $$$$0, + "$live/handlers/devPage.ts": $$$$0, + "$live/handlers/router.ts": $$$$1, }, "sections": { - "$live/sections/Conditional_Beta.tsx": $$$$$$4, - "$live/sections/EmptySection.tsx": $$$$$$2, - "$live/sections/PageInclude.tsx": $$$$$$3, - "$live/sections/Slot.tsx": $$$$$$1, + "$live/sections/Conditional_Beta.tsx": $$$$$$2, + "$live/sections/EmptySection.tsx": $$$$$$1, + "$live/sections/PageInclude.tsx": $$$$$$4, + "$live/sections/Slot.tsx": $$$$$$3, "$live/sections/UseSlot.tsx": $$$$$$0, }, "name": "$live", diff --git a/compat/std/manifest.gen.ts b/compat/std/manifest.gen.ts index f16bab937..4b83b9abc 100644 --- a/compat/std/manifest.gen.ts +++ b/compat/std/manifest.gen.ts @@ -5,10 +5,10 @@ import * as $0 from "./functions/requestToParam.ts"; import * as $$$0 from "./loaders/x/redirects.ts"; import * as $$$1 from "./loaders/x/font.ts"; -import * as $$$$$$0 from "./sections/SEOPLP.tsx"; -import * as $$$$$$1 from "./sections/Analytics.tsx"; -import * as $$$$$$2 from "./sections/VTEXPortalDataLayerCompatibility.tsx"; -import * as $$$$$$3 from "./sections/SEOPDP.tsx"; +import * as $$$$$$0 from "./sections/SEOPDP.tsx"; +import * as $$$$$$1 from "./sections/SEOPLP.tsx"; +import * as $$$$$$2 from "./sections/Analytics.tsx"; +import * as $$$$$$3 from "./sections/VTEXPortalDataLayerCompatibility.tsx"; const manifest = { "functions": { @@ -19,10 +19,10 @@ const manifest = { "deco-sites/std/loaders/x/redirects.ts": $$$0, }, "sections": { - "deco-sites/std/sections/Analytics.tsx": $$$$$$1, - "deco-sites/std/sections/SEOPDP.tsx": $$$$$$3, - "deco-sites/std/sections/SEOPLP.tsx": $$$$$$0, - "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx": $$$$$$2, + "deco-sites/std/sections/Analytics.tsx": $$$$$$2, + "deco-sites/std/sections/SEOPDP.tsx": $$$$$$0, + "deco-sites/std/sections/SEOPLP.tsx": $$$$$$1, + "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx": $$$$$$3, }, "name": "deco-sites/std", "baseUrl": import.meta.url, diff --git a/decohub/manifest.gen.ts b/decohub/manifest.gen.ts index 44d905a21..f12090e8d 100644 --- a/decohub/manifest.gen.ts +++ b/decohub/manifest.gen.ts @@ -3,13 +3,13 @@ // This file is automatically updated during development when running `dev.ts`. import * as $$$$$$$$$$$0 from "./apps/workflows.ts"; -import * as $$$$$$$$$$$1 from "./apps/handlebars.ts"; -import * as $$$$$$$$$$$2 from "./apps/verified-reviews.ts"; +import * as $$$$$$$$$$$1 from "./apps/verified-reviews.ts"; +import * as $$$$$$$$$$$2 from "./apps/handlebars.ts"; const manifest = { "apps": { - "decohub/apps/handlebars.ts": $$$$$$$$$$$1, - "decohub/apps/verified-reviews.ts": $$$$$$$$$$$2, + "decohub/apps/handlebars.ts": $$$$$$$$$$$2, + "decohub/apps/verified-reviews.ts": $$$$$$$$$$$1, "decohub/apps/workflows.ts": $$$$$$$$$$$0, }, "name": "decohub", diff --git a/scripts/start.ts b/scripts/start.ts index 9c610bbda..b562fd16b 100644 --- a/scripts/start.ts +++ b/scripts/start.ts @@ -20,6 +20,26 @@ const GRAPHQL_EXTENSION = ".graphql.json"; const allOpenAPIPaths: string[] = []; const allGraphqlPaths: string[] = []; +function processTypeInNestedObject(obj: any) { + if (typeof obj === "object" && obj !== null) { + if ("nullable" in obj && obj.nullable === true) { + if ("type" in obj) { + if (Array.isArray(obj.type)) { + obj.type.unshift("null"); + } else { + obj.type = ["null", obj.type]; + } + } + } + + for (const key in obj) { + obj[key] = processTypeInNestedObject(obj[key]); + } + } + + return obj; +} + for await (const entry of walk(".")) { if (entry.isFile) { if (entry.path.endsWith(OPENAPI_EXTENSION)) { @@ -106,7 +126,6 @@ const generateOpenAPI = async () => { if (!item) { continue; } - const { parameters = [], requestBody, @@ -128,7 +147,6 @@ const generateOpenAPI = async () => { .reduce((schema, item) => { if (item?.schema && item.in === "query") { hasParams = true; - schema.properties[item.name] = { description: item.description, ...item.schema, @@ -148,7 +166,9 @@ const generateOpenAPI = async () => { if (hasParams) { schema.required?.push("searchParams"); - schema.properties!["searchParams"] = searchParams; + schema.properties!["searchParams"] = processTypeInNestedObject( + searchParams, + ); } const body = resolve(requestBody) @@ -156,7 +176,7 @@ const generateOpenAPI = async () => { if (body) { schema.required?.push("body"); - schema.properties!["body"] = body; + schema.properties!["body"] = processTypeInNestedObject(body); } const ok = responses?.["200"] || @@ -166,7 +186,7 @@ const generateOpenAPI = async () => { if (response) { schema.required?.push("response"); - schema.properties!["response"] = response; + schema.properties!["response"] = processTypeInNestedObject(response); } const type = `${verb.toUpperCase()} ${pathTemplate}`; diff --git a/shopify/manifest.gen.ts b/shopify/manifest.gen.ts index 18018b218..8b6eac825 100644 --- a/shopify/manifest.gen.ts +++ b/shopify/manifest.gen.ts @@ -3,10 +3,10 @@ // This file is automatically updated during development when running `dev.ts`. import * as $$$0 from "./loaders/ProductList.ts"; -import * as $$$1 from "./loaders/ProductDetailsPage.ts"; -import * as $$$2 from "./loaders/ProductListingPage.ts"; -import * as $$$3 from "./loaders/proxy.ts"; -import * as $$$4 from "./loaders/cart.ts"; +import * as $$$1 from "./loaders/ProductListingPage.ts"; +import * as $$$2 from "./loaders/proxy.ts"; +import * as $$$3 from "./loaders/cart.ts"; +import * as $$$4 from "./loaders/ProductDetailsPage.ts"; import * as $$$$0 from "./handlers/sitemap.ts"; import * as $$$$$$$$$0 from "./actions/cart/updateCoupons.ts"; import * as $$$$$$$$$1 from "./actions/cart/updateItems.ts"; @@ -14,11 +14,11 @@ import * as $$$$$$$$$2 from "./actions/cart/addItems.ts"; const manifest = { "loaders": { - "shopify/loaders/cart.ts": $$$4, - "shopify/loaders/ProductDetailsPage.ts": $$$1, + "shopify/loaders/cart.ts": $$$3, + "shopify/loaders/ProductDetailsPage.ts": $$$4, "shopify/loaders/ProductList.ts": $$$0, - "shopify/loaders/ProductListingPage.ts": $$$2, - "shopify/loaders/proxy.ts": $$$3, + "shopify/loaders/ProductListingPage.ts": $$$1, + "shopify/loaders/proxy.ts": $$$2, }, "handlers": { "shopify/handlers/sitemap.ts": $$$$0, diff --git a/vnda/actions/cart/simulation.ts b/vnda/actions/cart/simulation.ts new file mode 100644 index 000000000..22f0f65f4 --- /dev/null +++ b/vnda/actions/cart/simulation.ts @@ -0,0 +1,32 @@ +import { AppContext } from "../../mod.ts"; +import type { ShippingMethod } from "../../utils/client/types.ts"; +import { badRequest } from "deco/mod.ts"; + +export interface Props { + skuId: string; + quantity: number; + zip: string; +} + +const action = async ( + props: Props, + _req: Request, + ctx: AppContext, +): Promise => { + const { api } = ctx; + const { skuId, quantity, zip } = props; + + if (!skuId || !quantity || !zip) { + badRequest({ + message: "could not find some props", + }); + } + const cep = await api["GET /api/v2/variants/:sku/shipping_methods"]({ + sku: skuId, + quantity, + zip, + }); + return cep.json(); +}; + +export default action; diff --git a/vnda/hooks/useCart.ts b/vnda/hooks/useCart.ts index 81f50308d..43a9f2004 100644 --- a/vnda/hooks/useCart.ts +++ b/vnda/hooks/useCart.ts @@ -42,6 +42,7 @@ const state = { update: enqueue("vnda/actions/cart/updateCart.ts"), addItem: enqueue("vnda/actions/cart/addItem.ts"), updateItem: enqueue("vnda/actions/cart/updateItem.ts"), + simulate: invoke.vnda.actions.cart.simulation, }; export const useCart = () => state; diff --git a/vnda/manifest.gen.ts b/vnda/manifest.gen.ts index f35d0da72..9a7df237d 100644 --- a/vnda/manifest.gen.ts +++ b/vnda/manifest.gen.ts @@ -2,27 +2,29 @@ // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`. -import * as $$$0 from "./loaders/productList.ts"; -import * as $$$1 from "./loaders/productDetailsPage.ts"; -import * as $$$2 from "./loaders/productListingPage.ts"; -import * as $$$3 from "./loaders/proxy.ts"; -import * as $$$4 from "./loaders/cart.ts"; -import * as $$$$$$$$$0 from "./actions/cart/updateItem.ts"; -import * as $$$$$$$$$1 from "./actions/cart/updateCart.ts"; -import * as $$$$$$$$$2 from "./actions/cart/addItem.ts"; +import * as $$$0 from "./loaders/proxy.ts"; +import * as $$$1 from "./loaders/cart.ts"; +import * as $$$2 from "./loaders/productList.ts"; +import * as $$$3 from "./loaders/productListingPage.ts"; +import * as $$$4 from "./loaders/productDetailsPage.ts"; +import * as $$$$$$$$$0 from "./actions/cart/addItem.ts"; +import * as $$$$$$$$$1 from "./actions/cart/simulation.ts"; +import * as $$$$$$$$$2 from "./actions/cart/updateCart.ts"; +import * as $$$$$$$$$3 from "./actions/cart/updateItem.ts"; const manifest = { "loaders": { - "vnda/loaders/cart.ts": $$$4, - "vnda/loaders/productDetailsPage.ts": $$$1, - "vnda/loaders/productList.ts": $$$0, - "vnda/loaders/productListingPage.ts": $$$2, - "vnda/loaders/proxy.ts": $$$3, + "vnda/loaders/cart.ts": $$$1, + "vnda/loaders/productDetailsPage.ts": $$$4, + "vnda/loaders/productList.ts": $$$2, + "vnda/loaders/productListingPage.ts": $$$3, + "vnda/loaders/proxy.ts": $$$0, }, "actions": { - "vnda/actions/cart/addItem.ts": $$$$$$$$$2, - "vnda/actions/cart/updateCart.ts": $$$$$$$$$1, - "vnda/actions/cart/updateItem.ts": $$$$$$$$$0, + "vnda/actions/cart/addItem.ts": $$$$$$$$$0, + "vnda/actions/cart/simulation.ts": $$$$$$$$$1, + "vnda/actions/cart/updateCart.ts": $$$$$$$$$2, + "vnda/actions/cart/updateItem.ts": $$$$$$$$$3, }, "name": "vnda", "baseUrl": import.meta.url, diff --git a/vnda/utils/client/client.ts b/vnda/utils/client/client.ts new file mode 100644 index 000000000..e1330a71d --- /dev/null +++ b/vnda/utils/client/client.ts @@ -0,0 +1,121 @@ +import { + Item, + OrderForm, + ProductGroup, + ProductSearchResult, + RelatedItemTag, + SEO, + ShippingMethod, + Sort, + TagsSearchParams, +} from "./types.ts"; + +export interface API { + /** @docs https://developers.vnda.com.br/reference/get-api-v2-products-id */ + "GET /api/v2/products/:id": { + response: ProductGroup; + searchParams: { include_images: boolean }; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-banners */ + "GET /api/v2/banners": { + searchParams: { + only_valid: boolean; + tag: "listagem-banner-principal"; + }; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-tags-name */ + "GET /api/v2/tags/:name": { + response: RelatedItemTag; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-tags */ + "GET /api/v2/tags": { + response: RelatedItemTag[]; + searchParams: TagsSearchParams; + }; + + "GET /api/v2/seo_data": { + response: SEO[]; + searchParams: { + resource_type: "Product" | "Page"; + resource_id: string | number; + type: "category"; + } | { + resource_type: "Tag"; + code: string; + type: "category"; + }; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-products-search */ + "GET /api/v2/products/search": { + response: Omit; + searchParams: { + term?: string | undefined; + page?: number; + "tags[]"?: string[]; + sort?: Sort; + per_page?: number; + wildcard?: boolean; + } & { [x: string]: unknown }; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-carts-id */ + "GET /api/v2/carts/:cartId": { + response: OrderForm; + }; + + /** @docs https://developers.vnda.com.br/reference/post-api-v2-carts */ + "POST /api/v2/carts": { + response: OrderForm; + }; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-carts-id */ + "PATCH /api/v2/carts/:cartId": { + response: OrderForm; + body: { + agent?: string; + zip?: string; + client_id?: number; + coupon_code?: string; + rebate_token?: string; + }; + }; + + /** @docs https://developers.vnda.com.br/reference/post-api-v2-carts-cart_id-items */ + "POST /api/v2/carts/:cartId/items": { + response: Item; + body: { + sku: string; + quantity: number; + place_id?: number; + store_coupon_code?: string; + customizations?: Record; + extra?: Record; + }; + }; + + /** @docs https://developers.vnda.com.br/reference/patch-api-v2-carts-cart_id-items-id */ + "PATCH /api/v2/carts/:cartId/items/:itemId": { + response: Item; + body: { + sku?: string; + quantity: number; + place_id?: number; + store_coupon_code?: string; + customizations?: Record; + extra?: Record; + }; + }; + + /** @docs https://developers.vnda.com.br/reference/delete-api-v2-carts-cart_id-items-id */ + "DELETE /api/v2/carts/:cartId/items/:itemId": undefined; + + /** @docs https://developers.vnda.com.br/reference/get-api-v2-variants-variant_sku-shipping_methods */ + "GET /api/v2/variants/:sku/shipping_methods": { + response: ShippingMethod[]; + searchParams: { quantity: number; zip: string }; + }; +} diff --git a/vnda/utils/client/types.ts b/vnda/utils/client/types.ts index b873f7485..5a4ddf57f 100644 --- a/vnda/utils/client/types.ts +++ b/vnda/utils/client/types.ts @@ -213,11 +213,15 @@ export interface ShippingMethod { description: string; name: string; price: number; - shipping_method_id: number; + shipping_method_id: number | null; value: string; - countries: string[] | null; + countries: { + country?: string; + price?: string; + }[] | null; fulfillment_company: string | null; value_needed_to_discount: number | null; + notice: string | null; } export interface Address { diff --git a/vnda/utils/openapi/vnda.openapi.gen.ts b/vnda/utils/openapi/vnda.openapi.gen.ts index b6742ba52..591837753 100644 --- a/vnda/utils/openapi/vnda.openapi.gen.ts +++ b/vnda/utils/openapi/vnda.openapi.gen.ts @@ -859,11 +859,11 @@ export interface OpenAPI { */ "POST /api/v2/audience_members": { body: { - first_name?: string; - last_name?: string; + first_name?: null | string; + last_name?: null | string; email: string; - phone_area?: string; - phone?: string; + phone_area?: null | string; + phone?: null | string; tags?: string[]; }; response: AudienceMember; @@ -1481,7 +1481,7 @@ export interface OpenAPI { * Calcula o frete para uma determinada variante */ "GET /api/v2/variants/:sku/shipping_methods": { - body: { + searchParams: { quantity: number; zip: string; }; @@ -1491,11 +1491,11 @@ export interface OpenAPI { price: number; description: string; delivery_days: number; - value_needed_to_discount: number; - shipping_method_id: number; - notice: string; - fulfillment_company: string; - countries: { + value_needed_to_discount: null | number; + shipping_method_id: null | number; + notice: null | string; + fulfillment_company: null | string; + countries: null | { country?: string; price?: string; }[]; @@ -2288,7 +2288,7 @@ export interface OpenAPI { "GET /api/v2/carts/:cartId/samples": { response: { id: number; - image_url: string; + image_url: null | string; name: string; reference: string; updated_at: string; @@ -2299,7 +2299,7 @@ export interface OpenAPI { sku: string; name: string; updated_at: string; - image_url: string; + image_url: null | string; product_id: number; norder: number; }[]; diff --git a/vnda/utils/openapi/vnda.openapi.json b/vnda/utils/openapi/vnda.openapi.json index 34cfb9001..8ee94209f 100644 --- a/vnda/utils/openapi/vnda.openapi.json +++ b/vnda/utils/openapi/vnda.openapi.json @@ -7439,33 +7439,30 @@ "parameters": [ { "$ref": "#/components/parameters/sku" + }, + { + "schema": { + "type": "integer" + }, + "in": "query", + "name": "quantity", + "allowEmptyValue": false, + "required": true + }, + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "zip", + "allowEmptyValue": false, + "required": true } ], "summary": "Calcula frete", "tags": [ "Variantes" ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "quantity": { - "type": "integer" - }, - "zip": { - "type": "string" - } - }, - "required": [ - "quantity", - "zip" - ] - } - } - } - }, "operationId": "get-api-v2-variants-variant_sku-shipping_methods", "responses": { "200": { diff --git a/vtex/manifest.gen.ts b/vtex/manifest.gen.ts index 81f2f63fd..977969d5d 100644 --- a/vtex/manifest.gen.ts +++ b/vtex/manifest.gen.ts @@ -2,77 +2,77 @@ // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`. -import * as $$$0 from "./loaders/legacy/productList.ts"; -import * as $$$1 from "./loaders/legacy/productDetailsPage.ts"; +import * as $$$0 from "./loaders/legacy/suggestions.ts"; +import * as $$$1 from "./loaders/legacy/productList.ts"; import * as $$$2 from "./loaders/legacy/productListingPage.ts"; -import * as $$$3 from "./loaders/legacy/relatedProductsLoader.ts"; -import * as $$$4 from "./loaders/legacy/suggestions.ts"; +import * as $$$3 from "./loaders/legacy/productDetailsPage.ts"; +import * as $$$4 from "./loaders/legacy/relatedProductsLoader.ts"; import * as $$$5 from "./loaders/wishlist.ts"; -import * as $$$6 from "./loaders/navbar.ts"; +import * as $$$6 from "./loaders/user.ts"; import * as $$$7 from "./loaders/proxy.ts"; -import * as $$$8 from "./loaders/intelligentSearch/productList.ts"; -import * as $$$9 from "./loaders/intelligentSearch/productDetailsPage.ts"; -import * as $$$10 from "./loaders/intelligentSearch/productListingPage.ts"; -import * as $$$11 from "./loaders/intelligentSearch/suggestions.ts"; -import * as $$$12 from "./loaders/cart.ts"; -import * as $$$13 from "./loaders/user.ts"; +import * as $$$8 from "./loaders/cart.ts"; +import * as $$$9 from "./loaders/navbar.ts"; +import * as $$$10 from "./loaders/intelligentSearch/suggestions.ts"; +import * as $$$11 from "./loaders/intelligentSearch/productList.ts"; +import * as $$$12 from "./loaders/intelligentSearch/productListingPage.ts"; +import * as $$$13 from "./loaders/intelligentSearch/productDetailsPage.ts"; import * as $$$$0 from "./handlers/sitemap.ts"; import * as $$$$$$$$$0 from "./actions/notifyme.ts"; -import * as $$$$$$$$$1 from "./actions/cart/updateCoupons.ts"; -import * as $$$$$$$$$2 from "./actions/cart/updateAttachment.ts"; -import * as $$$$$$$$$3 from "./actions/cart/updateItems.ts"; -import * as $$$$$$$$$4 from "./actions/cart/updateItemAttachment.ts"; -import * as $$$$$$$$$5 from "./actions/cart/updateUser.ts"; -import * as $$$$$$$$$6 from "./actions/cart/addItems.ts"; -import * as $$$$$$$$$7 from "./actions/cart/removeItems.ts"; -import * as $$$$$$$$$8 from "./actions/cart/getInstallment.ts"; -import * as $$$$$$$$$9 from "./actions/cart/updateItemPrice.ts"; -import * as $$$$$$$$$10 from "./actions/cart/updateProfile.ts"; -import * as $$$$$$$$$11 from "./actions/cart/simulation.ts"; -import * as $$$$$$$$$12 from "./actions/cart/removeItemAttachment.ts"; -import * as $$$$$$$$$13 from "./actions/newsletter/subscribe.ts"; -import * as $$$$$$$$$14 from "./actions/wishlist/removeItem.ts"; +import * as $$$$$$$$$1 from "./actions/newsletter/subscribe.ts"; +import * as $$$$$$$$$2 from "./actions/analytics/sendEvent.ts"; +import * as $$$$$$$$$3 from "./actions/cart/updateCoupons.ts"; +import * as $$$$$$$$$4 from "./actions/cart/updateItemPrice.ts"; +import * as $$$$$$$$$5 from "./actions/cart/updateAttachment.ts"; +import * as $$$$$$$$$6 from "./actions/cart/updateUser.ts"; +import * as $$$$$$$$$7 from "./actions/cart/simulation.ts"; +import * as $$$$$$$$$8 from "./actions/cart/updateProfile.ts"; +import * as $$$$$$$$$9 from "./actions/cart/updateItems.ts"; +import * as $$$$$$$$$10 from "./actions/cart/getInstallment.ts"; +import * as $$$$$$$$$11 from "./actions/cart/updateItemAttachment.ts"; +import * as $$$$$$$$$12 from "./actions/cart/removeItems.ts"; +import * as $$$$$$$$$13 from "./actions/cart/removeItemAttachment.ts"; +import * as $$$$$$$$$14 from "./actions/cart/addItems.ts"; import * as $$$$$$$$$15 from "./actions/wishlist/addItem.ts"; -import * as $$$$$$$$$16 from "./actions/analytics/sendEvent.ts"; +import * as $$$$$$$$$16 from "./actions/wishlist/removeItem.ts"; const manifest = { "loaders": { - "vtex/loaders/cart.ts": $$$12, - "vtex/loaders/intelligentSearch/productDetailsPage.ts": $$$9, - "vtex/loaders/intelligentSearch/productList.ts": $$$8, - "vtex/loaders/intelligentSearch/productListingPage.ts": $$$10, - "vtex/loaders/intelligentSearch/suggestions.ts": $$$11, - "vtex/loaders/legacy/productDetailsPage.ts": $$$1, - "vtex/loaders/legacy/productList.ts": $$$0, + "vtex/loaders/cart.ts": $$$8, + "vtex/loaders/intelligentSearch/productDetailsPage.ts": $$$13, + "vtex/loaders/intelligentSearch/productList.ts": $$$11, + "vtex/loaders/intelligentSearch/productListingPage.ts": $$$12, + "vtex/loaders/intelligentSearch/suggestions.ts": $$$10, + "vtex/loaders/legacy/productDetailsPage.ts": $$$3, + "vtex/loaders/legacy/productList.ts": $$$1, "vtex/loaders/legacy/productListingPage.ts": $$$2, - "vtex/loaders/legacy/relatedProductsLoader.ts": $$$3, - "vtex/loaders/legacy/suggestions.ts": $$$4, - "vtex/loaders/navbar.ts": $$$6, + "vtex/loaders/legacy/relatedProductsLoader.ts": $$$4, + "vtex/loaders/legacy/suggestions.ts": $$$0, + "vtex/loaders/navbar.ts": $$$9, "vtex/loaders/proxy.ts": $$$7, - "vtex/loaders/user.ts": $$$13, + "vtex/loaders/user.ts": $$$6, "vtex/loaders/wishlist.ts": $$$5, }, "handlers": { "vtex/handlers/sitemap.ts": $$$$0, }, "actions": { - "vtex/actions/analytics/sendEvent.ts": $$$$$$$$$16, - "vtex/actions/cart/addItems.ts": $$$$$$$$$6, - "vtex/actions/cart/getInstallment.ts": $$$$$$$$$8, - "vtex/actions/cart/removeItemAttachment.ts": $$$$$$$$$12, - "vtex/actions/cart/removeItems.ts": $$$$$$$$$7, - "vtex/actions/cart/simulation.ts": $$$$$$$$$11, - "vtex/actions/cart/updateAttachment.ts": $$$$$$$$$2, - "vtex/actions/cart/updateCoupons.ts": $$$$$$$$$1, - "vtex/actions/cart/updateItemAttachment.ts": $$$$$$$$$4, - "vtex/actions/cart/updateItemPrice.ts": $$$$$$$$$9, - "vtex/actions/cart/updateItems.ts": $$$$$$$$$3, - "vtex/actions/cart/updateProfile.ts": $$$$$$$$$10, - "vtex/actions/cart/updateUser.ts": $$$$$$$$$5, - "vtex/actions/newsletter/subscribe.ts": $$$$$$$$$13, + "vtex/actions/analytics/sendEvent.ts": $$$$$$$$$2, + "vtex/actions/cart/addItems.ts": $$$$$$$$$14, + "vtex/actions/cart/getInstallment.ts": $$$$$$$$$10, + "vtex/actions/cart/removeItemAttachment.ts": $$$$$$$$$13, + "vtex/actions/cart/removeItems.ts": $$$$$$$$$12, + "vtex/actions/cart/simulation.ts": $$$$$$$$$7, + "vtex/actions/cart/updateAttachment.ts": $$$$$$$$$5, + "vtex/actions/cart/updateCoupons.ts": $$$$$$$$$3, + "vtex/actions/cart/updateItemAttachment.ts": $$$$$$$$$11, + "vtex/actions/cart/updateItemPrice.ts": $$$$$$$$$4, + "vtex/actions/cart/updateItems.ts": $$$$$$$$$9, + "vtex/actions/cart/updateProfile.ts": $$$$$$$$$8, + "vtex/actions/cart/updateUser.ts": $$$$$$$$$6, + "vtex/actions/newsletter/subscribe.ts": $$$$$$$$$1, "vtex/actions/notifyme.ts": $$$$$$$$$0, "vtex/actions/wishlist/addItem.ts": $$$$$$$$$15, - "vtex/actions/wishlist/removeItem.ts": $$$$$$$$$14, + "vtex/actions/wishlist/removeItem.ts": $$$$$$$$$16, }, "name": "vtex", "baseUrl": import.meta.url, diff --git a/wake/manifest.gen.ts b/wake/manifest.gen.ts index 6894a7e83..bdd8f590e 100644 --- a/wake/manifest.gen.ts +++ b/wake/manifest.gen.ts @@ -2,29 +2,29 @@ // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`. -import * as $$$0 from "./loaders/productList.ts"; -import * as $$$1 from "./loaders/productDetailsPage.ts"; -import * as $$$2 from "./loaders/productListingPage.ts"; -import * as $$$3 from "./loaders/proxy.ts"; -import * as $$$4 from "./loaders/cart.ts"; -import * as $$$$$$$$$0 from "./actions/cart/addCoupon.ts"; +import * as $$$0 from "./loaders/proxy.ts"; +import * as $$$1 from "./loaders/cart.ts"; +import * as $$$2 from "./loaders/productList.ts"; +import * as $$$3 from "./loaders/productListingPage.ts"; +import * as $$$4 from "./loaders/productDetailsPage.ts"; +import * as $$$$$$$$$0 from "./actions/cart/updateItemQuantity.ts"; import * as $$$$$$$$$1 from "./actions/cart/addItem.ts"; -import * as $$$$$$$$$2 from "./actions/cart/updateItemQuantity.ts"; +import * as $$$$$$$$$2 from "./actions/cart/addCoupon.ts"; import * as $$$$$$$$$3 from "./actions/cart/removeCoupon.ts"; const manifest = { "loaders": { - "wake/loaders/cart.ts": $$$4, - "wake/loaders/productDetailsPage.ts": $$$1, - "wake/loaders/productList.ts": $$$0, - "wake/loaders/productListingPage.ts": $$$2, - "wake/loaders/proxy.ts": $$$3, + "wake/loaders/cart.ts": $$$1, + "wake/loaders/productDetailsPage.ts": $$$4, + "wake/loaders/productList.ts": $$$2, + "wake/loaders/productListingPage.ts": $$$3, + "wake/loaders/proxy.ts": $$$0, }, "actions": { - "wake/actions/cart/addCoupon.ts": $$$$$$$$$0, + "wake/actions/cart/addCoupon.ts": $$$$$$$$$2, "wake/actions/cart/addItem.ts": $$$$$$$$$1, "wake/actions/cart/removeCoupon.ts": $$$$$$$$$3, - "wake/actions/cart/updateItemQuantity.ts": $$$$$$$$$2, + "wake/actions/cart/updateItemQuantity.ts": $$$$$$$$$0, }, "name": "wake", "baseUrl": import.meta.url, diff --git a/website/manifest.gen.ts b/website/manifest.gen.ts index 261fb5fae..62aaf1fa0 100644 --- a/website/manifest.gen.ts +++ b/website/manifest.gen.ts @@ -3,14 +3,14 @@ // This file is automatically updated during development when running `dev.ts`. import * as $0 from "./functions/requestToParam.ts"; -import * as $$$0 from "./loaders/image.ts"; -import * as $$$1 from "./loaders/redirectsFromCsv.ts"; -import * as $$$2 from "./loaders/extension.ts"; -import * as $$$3 from "./loaders/secret.ts"; -import * as $$$4 from "./loaders/pages.ts"; -import * as $$$5 from "./loaders/asset.ts"; -import * as $$$6 from "./loaders/fonts/local.ts"; -import * as $$$7 from "./loaders/fonts/googleFonts.ts"; +import * as $$$0 from "./loaders/extension.ts"; +import * as $$$1 from "./loaders/image.ts"; +import * as $$$2 from "./loaders/secret.ts"; +import * as $$$3 from "./loaders/fonts/local.ts"; +import * as $$$4 from "./loaders/fonts/googleFonts.ts"; +import * as $$$5 from "./loaders/pages.ts"; +import * as $$$6 from "./loaders/asset.ts"; +import * as $$$7 from "./loaders/redirectsFromCsv.ts"; import * as $$$$0 from "./handlers/router.ts"; import * as $$$$1 from "./handlers/sitemap.ts"; import * as $$$$2 from "./handlers/proxy.ts"; @@ -18,22 +18,22 @@ import * as $$$$3 from "./handlers/fresh.ts"; import * as $$$$4 from "./handlers/redirect.ts"; import * as $$$$$0 from "./pages/Page.tsx"; import * as $$$$$$0 from "./sections/Seo/Seo.tsx"; -import * as $$$$$$$0 from "./matchers/date.ts"; -import * as $$$$$$$1 from "./matchers/environment.ts"; -import * as $$$$$$$2 from "./matchers/site.ts"; -import * as $$$$$$$3 from "./matchers/location.ts"; -import * as $$$$$$$4 from "./matchers/random.ts"; -import * as $$$$$$$5 from "./matchers/multi.ts"; -import * as $$$$$$$6 from "./matchers/negate.ts"; -import * as $$$$$$$7 from "./matchers/cron.ts"; -import * as $$$$$$$8 from "./matchers/device.ts"; -import * as $$$$$$$9 from "./matchers/host.ts"; -import * as $$$$$$$10 from "./matchers/always.ts"; -import * as $$$$$$$11 from "./matchers/userAgent.ts"; -import * as $$$$$$$$0 from "./flags/audience.ts"; -import * as $$$$$$$$1 from "./flags/multivariate.ts"; -import * as $$$$$$$$2 from "./flags/everyone.ts"; -import * as $$$$$$$$3 from "./flags/flag.ts"; +import * as $$$$$$$0 from "./matchers/device.ts"; +import * as $$$$$$$1 from "./matchers/multi.ts"; +import * as $$$$$$$2 from "./matchers/negate.ts"; +import * as $$$$$$$3 from "./matchers/userAgent.ts"; +import * as $$$$$$$4 from "./matchers/always.ts"; +import * as $$$$$$$5 from "./matchers/site.ts"; +import * as $$$$$$$6 from "./matchers/environment.ts"; +import * as $$$$$$$7 from "./matchers/host.ts"; +import * as $$$$$$$8 from "./matchers/date.ts"; +import * as $$$$$$$9 from "./matchers/cron.ts"; +import * as $$$$$$$10 from "./matchers/location.ts"; +import * as $$$$$$$11 from "./matchers/random.ts"; +import * as $$$$$$$$0 from "./flags/everyone.ts"; +import * as $$$$$$$$1 from "./flags/flag.ts"; +import * as $$$$$$$$2 from "./flags/audience.ts"; +import * as $$$$$$$$3 from "./flags/multivariate.ts"; import * as $$$$$$$$$0 from "./actions/secrets/encrypt.ts"; const manifest = { @@ -41,14 +41,14 @@ const manifest = { "website/functions/requestToParam.ts": $0, }, "loaders": { - "website/loaders/asset.ts": $$$5, - "website/loaders/extension.ts": $$$2, - "website/loaders/fonts/googleFonts.ts": $$$7, - "website/loaders/fonts/local.ts": $$$6, - "website/loaders/image.ts": $$$0, - "website/loaders/pages.ts": $$$4, - "website/loaders/redirectsFromCsv.ts": $$$1, - "website/loaders/secret.ts": $$$3, + "website/loaders/asset.ts": $$$6, + "website/loaders/extension.ts": $$$0, + "website/loaders/fonts/googleFonts.ts": $$$4, + "website/loaders/fonts/local.ts": $$$3, + "website/loaders/image.ts": $$$1, + "website/loaders/pages.ts": $$$5, + "website/loaders/redirectsFromCsv.ts": $$$7, + "website/loaders/secret.ts": $$$2, }, "handlers": { "website/handlers/fresh.ts": $$$$3, @@ -64,24 +64,24 @@ const manifest = { "website/sections/Seo/Seo.tsx": $$$$$$0, }, "matchers": { - "website/matchers/always.ts": $$$$$$$10, - "website/matchers/cron.ts": $$$$$$$7, - "website/matchers/date.ts": $$$$$$$0, - "website/matchers/device.ts": $$$$$$$8, - "website/matchers/environment.ts": $$$$$$$1, - "website/matchers/host.ts": $$$$$$$9, - "website/matchers/location.ts": $$$$$$$3, - "website/matchers/multi.ts": $$$$$$$5, - "website/matchers/negate.ts": $$$$$$$6, - "website/matchers/random.ts": $$$$$$$4, - "website/matchers/site.ts": $$$$$$$2, - "website/matchers/userAgent.ts": $$$$$$$11, + "website/matchers/always.ts": $$$$$$$4, + "website/matchers/cron.ts": $$$$$$$9, + "website/matchers/date.ts": $$$$$$$8, + "website/matchers/device.ts": $$$$$$$0, + "website/matchers/environment.ts": $$$$$$$6, + "website/matchers/host.ts": $$$$$$$7, + "website/matchers/location.ts": $$$$$$$10, + "website/matchers/multi.ts": $$$$$$$1, + "website/matchers/negate.ts": $$$$$$$2, + "website/matchers/random.ts": $$$$$$$11, + "website/matchers/site.ts": $$$$$$$5, + "website/matchers/userAgent.ts": $$$$$$$3, }, "flags": { - "website/flags/audience.ts": $$$$$$$$0, - "website/flags/everyone.ts": $$$$$$$$2, - "website/flags/flag.ts": $$$$$$$$3, - "website/flags/multivariate.ts": $$$$$$$$1, + "website/flags/audience.ts": $$$$$$$$2, + "website/flags/everyone.ts": $$$$$$$$0, + "website/flags/flag.ts": $$$$$$$$1, + "website/flags/multivariate.ts": $$$$$$$$3, }, "actions": { "website/actions/secrets/encrypt.ts": $$$$$$$$$0, diff --git a/workflows/manifest.gen.ts b/workflows/manifest.gen.ts index ba355de7d..5daca902a 100644 --- a/workflows/manifest.gen.ts +++ b/workflows/manifest.gen.ts @@ -2,8 +2,8 @@ // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`. -import * as $$$0 from "./loaders/get.ts"; -import * as $$$1 from "./loaders/events.ts"; +import * as $$$0 from "./loaders/events.ts"; +import * as $$$1 from "./loaders/get.ts"; import * as $$$$0 from "./handlers/workflowRunner.ts"; import * as $$$$$$$$$0 from "./actions/start.ts"; import * as $$$$$$$$$1 from "./actions/cancel.ts"; @@ -11,8 +11,8 @@ import * as $$$$$$$$$2 from "./actions/signal.ts"; const manifest = { "loaders": { - "workflows/loaders/events.ts": $$$1, - "workflows/loaders/get.ts": $$$0, + "workflows/loaders/events.ts": $$$0, + "workflows/loaders/get.ts": $$$1, }, "handlers": { "workflows/handlers/workflowRunner.ts": $$$$0,